@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231026.0 → 0.0.0-nightly-20231027.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
package/build/track-changes.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
/*!
|
|
3
3
|
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
4
4
|
* For licensing, see LICENSE.md.
|
|
5
|
-
*/(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var s=e[o];if(void 0!==s)return s.exports;var i=e[o]={exports:{}};return t[o](i,i.exports,n),i.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>hc,TrackChanges:()=>Mc,TrackChangesData:()=>jc,TrackChangesEditing:()=>$a});var t=n(704),e=n(209),s=n(273),i=n(417),r=n(492),x=n(995);const a=["_disableUnsupportedCommands","affectsData","value","TrackChangesCommand","forceDisabled","_enabledCommands","refresh","execute","editor","clearForceDisabled","commands","_enableCommands","isEnabled","has"];var c,l;c=a,l=280,function(t){for(;--t;)c.push(c.shift())}(++l);const d=function(t,e){return a[t-=0]};class u extends t.Command{constructor(t,e){super(t),this._enabledCommands=e,this[d("0x2")]=!1,this[d("0x6")](),this._isEnabledBasedOnSelection=!1}[d("0x6")](){this[d("0xc")]=!0}[d("0x7")](){this[d("0x2")]=!this[d("0x2")],this[d("0x2")]?this[d("0x0")]():this[d("0xb")]()}[d("0x0")](){for(const t of this[d("0x8")][d("0xa")][d("0xa")]())t.affectsData&&!this[d("0x5")].has(t)&&t[d("0x4")](d("0x3"))}[d("0xb")](){for(const t of this[d("0x8")][d("0xa")][d("0xa")]())t[d("0x1")]&&!this[d("0x5")][d("0xd")](t)&&t[d("0x9")](d("0x3"))}}const g=["isEnabled","plugins","TrackChangesEditing","_suggestions","acceptSuggestion","get","canEditAt","refresh","getRanges","track-changes-accept-suggestion-not-found","model","_isEnabledBasedOnSelection"];var m,f;m=g,f=392,function(t){for(;--t;)m.push(m.shift())}(++f);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this._suggestions=e,this[h("0xb")](),this[h("0x3")]=!1}refresh(){this[h("0x4")]=!0}execute(t){const n=this[h("0x7")].get(t);if(!n)throw new e.CKEditorError(h("0x1"),this);const o=n[h("0x0")]();this.editor[h("0x2")][h("0xa")](o)&&this.editor[h("0x5")][h("0x9")](h("0x6"))[h("0x8")](n)}}const b=["_isEnabledBasedOnSelection","model","editor","TrackChangesEditing","get","canEditAt","discardSuggestion","_suggestions","plugins","getRanges","refresh"];var E,_;E=b,_=372,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class C extends t.Command{constructor(t,e){super(t),this._suggestions=e,this.refresh(),this[T("0x2")]=!1}[T("0x1")](){this.isEnabled=!0}execute(t){const n=this[T("0x9")].get(t);if(!n)throw new e.CKEditorError("track-changes-discard-suggestion-not-found",this);const o=n[T("0x0")]();this[T("0x4")][T("0x3")][T("0x7")](o)&&this[T("0x4")][T("0xa")][T("0x6")](T("0x5"))[T("0x8")](n)}}const y=["type","from","createPositionAt","start","map","change","end","value","length","color","sort","isTouching","join","deletion","schema","content","getRanges","isMultiRange","isObject","add"," [color ","isIntersecting","isInContent","createPositionAfter","isCollapsed","replace","createRange","push","execute","createPositionBefore"];var k,A;k=y,A=274,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0x6")](((t,e)=>v("0x9")==t.type&&v("0x9")!=e[v("0x1a")]?-1:"deletion"!=t.type&&v("0x9")==e[v("0x1a")]?1:0))}function S(t,e){let n,o=0;const s=[],i=e[v("0xa")];for(;o<t.length;){const r=t[o],x=t[o+1];n||(n=e[v("0x19")](r)),I(e,r,x)||(s[v("0x17")](e[v("0x16")](n,i[v("0xe")](r)?e[v("0x13")](r):e[v("0x1c")](r,v("0x2")))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t[v("0x13")](e),s=t[v("0x19")](n);return o[v("0x7")](s)}function L(t,e,n){for(;n[v("0x4")];){const o=n.splice(0,100);t[v("0x1")]((()=>{for(const t of o)t[v("0x12")]&&e[v("0x18")](t.id)}))}}const N=["values","editor","isInContent","refresh","from","_isEnabledBasedOnSelection","isEnabled","model","_command","canEditAt","some","_suggestions"];var w,M;w=N,M=462,function(t){for(;--t;)w.push(w.shift())}(++M);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0x2")]=e,this._suggestions=n,this[O("0x9")](),this[O("0xb")]=!1}[O("0x9")](){const t=Array[O("0xa")](this[O("0x5")][O("0x6")]())[O("0x4")]((t=>t[O("0x8")]));this[O("0x0")]=this[O("0x2")][O("0x0")]&&t}execute(){const t=R(Array[O("0xa")](this[O("0x5")][O("0x6")]()));for(const e of t){const t=e.getRanges();if(!this[O("0x7")][O("0x1")][O("0x3")](t))return}L(this[O("0x7")][O("0x1")],this[O("0x2")],t)}}const P=["editor","_suggestions","getRanges","from","document","isEnabled","canEditAt","model","_isEnabledBasedOnSelection","refresh","size","_selectedSuggestions","selection","_command","values"];var D,B;D=P,B=200,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("0x8")]=e,this._suggestions=n,this[j("0x6")]=new Set,this[j("0x4")](),this[j("0x3")]=!1}refresh(){const t=this[j("0xa")][j("0x2")][j("0xe")][j("0x7")],e=Array[j("0xd")](this[j("0xb")][j("0x9")]());this[j("0x6")]=function(t,e){const n=Array[v("0x1b")](t[v("0xc")]()),o=new Set;for(const s of e)if(s[v("0x12")])for(const e of n)for(const n of s[v("0xc")]())(e[v("0x11")](n)||t[v("0x14")]&&!s[v("0xd")]&&s.next&&n[v("0x2")][v("0x7")](e[v("0x1d")]))&&o[v("0xf")](s);return o}(t,e),this[j("0x0")]=this._command[j("0x0")]&&!!this._selectedSuggestions[j("0x5")]}execute(){const t=R(Array[j("0xd")](this[j("0x6")]));for(const e of t){const t=e[j("0xc")]();if(!this[j("0xa")][j("0x2")][j("0x1")](t))return}L(this[j("0xa")][j("0x2")],this[j("0x8")],t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const W=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var z=Array.prototype.splice;const V=function(t){var e=this.__data__,n=W(e,t);return!(n<0)&&(n==e.length-1?e.pop():z.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=W(e,t);return n<0?void 0:e[n][1]};const q=function(t){return W(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=W(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 it=Object.prototype,rt=it.hasOwnProperty,xt=it.toString,at=st?st.toStringTag:void 0;const ct=function(t){var e=rt.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var s=xt.call(t);return o&&(e?t[at]=n:delete t[at]),s};var lt=Object.prototype.toString;const dt=function(t){return lt.call(t)};var ut=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ut&&ut in Object(t)?ct(t):dt(t)};const mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,vt=kt.hasOwnProperty,Rt=RegExp("^"+At.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const It=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=It(t,e);return St(n)?n:void 0};const Nt=Lt(ot,"Map");const wt=Lt(Object,"create");const Mt=function(){this.__data__=wt?wt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;if(wt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Dt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return wt?void 0!==e[t]:Dt.call(e,t)};const jt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=wt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Ut.prototype.clear=Mt,Ut.prototype.delete=Ot,Ut.prototype.get=Pt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||Q),string:new Gt}};const Wt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const zt=function(t,e){var n=t.__data__;return Wt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=zt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return zt(this,t).get(t)};const qt=function(t){return zt(this,t).has(t)};const Xt=function(t,e){var n=zt(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 ie=function(t,e,n,o){var s=!n;n||(n={});for(var i=-1,r=e.length;++i<r;){var x=e[i],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 re=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,de=ce.propertyIsEnumerable;const ue=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!de.call(t,"callee")};const ge=Array.isArray;const me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===fe?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||me;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return xe(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=ve&&ve.exports===Ae&&et.process;const Se=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Ie=Se&&Se.isTypedArray;const Le=Ie?ke(Ie):ye;var Ne=Object.prototype.hasOwnProperty;const we=function(t,e){var n=ge(t),o=!n&&ue(t),s=!n&&!o&&be(t),i=!n&&!o&&!s&&Le(t),r=n||o||s||i,x=r?re(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||r&&("length"==c||s&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var Me=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Me)};const Fe=function(t,e){return function(n){return t(e(n))}};const Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?we(t):Be(t)};const Ge=function(t,e){return t&&ie(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 We=Object.prototype.hasOwnProperty;const ze=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&We.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?we(t,!0):ze(t)};const Ke=function(t,e){return t&&ie(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,i=[];++n<o;){var r=t[n];e(r,n,t)&&(i[s++]=r)}return i};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 ie(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 ie(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const dn=function(t){return ln(t,Ue,on)};const un=function(t){return ln(t,Ve,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Nt),kn=Tt(mn),An=Tt(fn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=pn||mn&&Rn(mn.resolve())!=bn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case Cn:return Tn;case yn:return pn;case kn:return bn;case An:return En;case vn:return _n}return e});const Sn=Rn;var In=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&In.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const wn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const Mn=function(t,e){var n=e?wn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Pn=st?st.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(t){return Dn?Object(Dn.call(t)):{}};const jn=function(t,e){var n=e?wn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return wn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return Mn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Wn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const zn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Vn=Se&&Se.isMap;const Kn=Vn?ke(Vn):zn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.isSet;const $n=Xn?ke(Xn):qn;var Qn="[object Arguments]",Jn="[object Function]",Zn="[object Object]",Yn={};Yn[Qn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Jn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,i,r){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=i?o(e,s,i,r):o(e)),void 0!==x)return x;if(!mt(e))return e;var d=ge(e);if(d){if(x=Ln(e),!a)return Ze(e,x)}else{var u=Sn(e),g=u==Jn||"[object GeneratorFunction]"==u;if(be(e))return Je(e,a);if(u==Zn||u==Qn||g&&!i){if(x=c||g?{}:Wn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[u])return i?e:{};x=Un(e,u,a)}}r||(r=new Yt);var m=r.get(e);if(m)return m;r.set(e,x),$n(e)?e.forEach((function(s){x.add(t(s,n,o,s,e,r))})):Kn(e)&&e.forEach((function(s,i){x.set(i,t(s,n,o,i,e,r))}));var f=d?void 0:(l?c?un:dn:c?Ve:Ue)(e);return te(f||e,(function(s,i){f&&(s=e[i=s]),se(x,i,t(s,n,o,i,e,r))})),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 io=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 ro(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],i=n.cache;if(i.has(s))return i.get(s);var r=t.apply(this,o);return n.cache=i.set(s,r)||i,r};return n.cache=new(ro.Cache||Qt),n}ro.Cache=Qt;const xo=ro;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:io(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,i=(e=po(e,t)).length,r=i-1,x=t;null!=x&&++s<i;){var a=bo(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=r){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,i){var r=1&n,x=t.length,a=e.length;if(x!=a&&!(r&&a>x))return!1;var c=i.get(t),l=i.get(e);if(c&&l)return c==e&&l==t;var d=-1,u=!0,g=2&n?new ko:void 0;for(i.set(t,e),i.set(e,t);++d<x;){var m=t[d],f=e[d];if(o)var h=r?o(f,m,d,e,t,i):o(m,f,d,t,e,i);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,i)))return g.push(e)}))){u=!1;break}}else if(m!==f&&!s(m,f,n,o,i)){u=!1;break}}return i.delete(t),i.delete(e),u};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=st?st.prototype:void 0,No=Lo?Lo.valueOf:void 0;const wo=function(t,e,n,o,s,i,r){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||!i(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=So;case"[object Set]":var a=1&o;if(x||(x=Io),t.size!=e.size&&!a)return!1;var c=r.get(t);if(c)return c==e;o|=2,r.set(t,e);var l=Ro(x(t),x(e),o,s,i,r);return r.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var Mo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,i){var r=1&n,x=dn(t),a=x.length;if(a!=dn(e).length&&!r)return!1;for(var c=a;c--;){var l=x[c];if(!(r?l in e:Mo.call(e,l)))return!1}var d=i.get(t),u=i.get(e);if(d&&u)return d==e&&u==t;var g=!0;i.set(t,e),i.set(e,t);for(var m=r;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var p=r?o(h,f,l,e,t,i):o(f,h,l,t,e,i);if(!(void 0===p?f===h||s(f,h,n,o,i):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 i.delete(t),i.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,i){var r=ge(t),x=ge(e),a=r?Po:Sn(t),c=x?Po:Sn(e),l=(a=a==Fo?Do:a)==Do,d=(c=c==Fo?Do:c)==Do,u=a==c;if(u&&be(t)){if(!be(e))return!1;r=!0,l=!1}if(u&&!l)return i||(i=new Yt),r||Le(t)?Ro(t,e,n,o,s,i):wo(t,e,a,n,o,s,i);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 i||(i=new Yt),s(f,h,n,o,i)}}return!!u&&(i||(i=new Yt),Oo(t,e,n,o,s,i))};const Uo=function t(e,n,o,s,i){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,i))};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 Wo=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 zo=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 i=Array(s);++o<s;)i[o]=t[o+e];return i};const Vo=function(t,e){return e.length<2?t:Wo(t,zo(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=["creator","decorate","getRanges","_model","getRange","suggestion:","getFirstRange","_onAccept","start","clear","_onAttributesChange","type","removeAttribute","isIntersectingWithRange","substr","setAttribute","next","_saved","addMarkerName","filter","head","_markerNames","isIntersecting","get","set","data","onDiscard","onAttributesChange","getItems","change","removeMarker","getFirstMarker","_isDataLoaded","_onDiscard","addMarker","previous","split","getContainedElement","markers","push","length","author","getMarkers","subType","@external","getMarkerNames","commentThread","addRange","nodeBefore","from","reduce","toJSON","attributes","nodeAfter","authoredAt","isExternal","discard","delete","map","getAllAdjacentSuggestions","removeMarkers","isMultiRange"];var $o,Qo;$o=Xo,Qo=247,function(t){for(;--t;)$o.push($o.shift())}(++Qo);const Jo=function(t,e){return Xo[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this[Jo("0x21")]=!1,this.id=e.id,this[Jo("0xc")]=e.type,this[Jo("0x2c")]=e.subType||null,this[Jo("0x2a")]=e[Jo("0x2a")],this[Jo("0x1")]=e[Jo("0x1")]||e[Jo("0x2a")],this[Jo("0x38")]=Boolean(e[Jo("0x35")]&&e[Jo("0x35")][Jo("0x2d")]),this[Jo("0x1a")]=null,this._model=t,this[Jo("0x8")]=e.onAccept,this[Jo("0x22")]=e[Jo("0x1b")],this._onAttributesChange=e[Jo("0x1c")],this[Jo("0x16")]=new Set,this.createdAt=null,this[Jo("0x19")](Jo("0x37"),null),this[Jo("0x19")](Jo("0x35"),e[Jo("0x35")]||{}),this[Jo("0x19")](Jo("0x24"),null),this[Jo("0x19")](Jo("0x11"),null),this.set("commentThread",null),this[Jo("0x19")](Jo("0x12"),!1),this[Jo("0x2")]("accept"),this[Jo("0x2")](Jo("0x39"))}get[Jo("0x15")](){let t=this;for(;t[Jo("0x24")];)t=t[Jo("0x24")];return t}get hasComments(){return!!this[Jo("0x2f")]&&this[Jo("0x2f")][Jo("0x29")]>0}get[Jo("0x0")](){return 0!=this._markerNames.size&&6==Array[Jo("0x32")](this._markerNames)[0][Jo("0x25")](":").length}get isInContent(){return null!==this[Jo("0x20")]()}[Jo("0x13")](t){this[Jo("0x16")].add(t)}[Jo("0x2e")](){return Array[Jo("0x32")](this._markerNames)}[Jo("0x2b")](){return this[Jo("0x2e")]()[Jo("0x3b")]((t=>this[Jo("0x4")][Jo("0x27")][Jo("0x18")](t)))[Jo("0x14")]((t=>t))}[Jo("0x20")](){return this[Jo("0x2b")]()[0]||null}[Jo("0x3d")](){this[Jo("0x4")][Jo("0x1e")]((t=>{for(const e of this[Jo("0x2b")]())t[Jo("0x1f")](e)})),this[Jo("0x16")][Jo("0xa")]()}[Jo("0x1f")](t){this[Jo("0x4")][Jo("0x1e")]((e=>{e[Jo("0x1f")](t)})),this[Jo("0x16")][Jo("0x3a")](t)}[Jo("0x30")](t){const e=Jo("0x6")+this.type+":"+this[Jo("0x2c")]+":"+this.id+":"+this[Jo("0x1")].id+":"+Zo.getMultiRangeId();this[Jo("0x13")](e),this[Jo("0x4")].change((n=>{n[Jo("0x23")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Jo("0xe")](t){for(const e of this[Jo("0x3")]())if(e[Jo("0x17")](t))return!0;return!1}[Jo("0x3")](){return this[Jo("0x2b")]().map((t=>t[Jo("0x5")]()))}[Jo("0x1d")](){return this[Jo("0x3")]()[Jo("0x33")](((t,e)=>[...t,...e[Jo("0x1d")]()]),[])}[Jo("0x7")](){var t;return(null===(t=this[Jo("0x20")]())||void 0===t?void 0:t[Jo("0x5")]())||null}[Jo("0x26")](){const t=this.getRanges();if(1!=t[Jo("0x29")])return null;const e=t[0],n=e[Jo("0x9")][Jo("0x36")],o=e.end[Jo("0x31")];return n instanceof r.Element?n!=o?null:n:null}accept(){this[Jo("0x8")](this[Jo("0x3")](),this[Jo("0x1a")],this.attributes),this[Jo("0x3d")]()}[Jo("0x39")](){this._onDiscard(this.getRanges(),this[Jo("0x1a")],this.attributes),this[Jo("0x3d")]()}[Jo("0x3c")](){const t=[];let e=this[Jo("0x15")];for(;e;)t[Jo("0x28")](e),e=e[Jo("0x11")];return t}[Jo("0x10")](t,e){const n=eo(this[Jo("0x35")]);_o(n,t,e),Go(n,this[Jo("0x35")])||(this[Jo("0x35")]=n,this._onAttributesChange(n))}[Jo("0xd")](t){const e=eo(this[Jo("0x35")]);qo(e,t),Go(e,this[Jo("0x35")])||(this[Jo("0x35")]=e,this[Jo("0xb")](this[Jo("0x35")]))}[Jo("0x34")](){return{id:this.id,type:this[Jo("0x2c")]?this.type+":"+this[Jo("0x2c")]:this.type,authorId:this.creator.id,createdAt:this.createdAt,hasComments:this.hasComments,data:this[Jo("0x1a")],attributes:this[Jo("0x35")]}}static getMultiRangeId(){return(0,e.uid)()[Jo("0xf")](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=["Container","add","elementStart","addContainer","ELEMENT_SPACE","matchingCallback","push","*Insert:* %0","addObject","$text","checkChild","pop","get","registerElementLabel","insertion","EmptyContainer","match","label","_resolveDescriptionItems","item","quantity","indexOf","remove","length","deletion","isInContent","text","previousSibling","_locale","*Split:* %0","set","registerDescriptionCallback","*Merge:* %0","element","isEmpty","type","addEmptyContainer","elementEnd","softBreak","nextSibling","Object","skip","data","_customCallbacks","function","getItemLabel","end","getDescriptions","removeObject","getFirstRange","getWalker","_itemLabels","isEqual","normal","name","isObject","*Remove:* %0","_schema","replace"];var es,ns;es=ts,ns=317,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("0x1d")]=new Map,this._itemLabelsCallbacks=[],this[os("0x23")]=t,this[os("0x6")]=e}[os("0x19")](t){const e=[];for(let n=0;n<t[os("0x1")];n++){const o=t[n];if(!o[os("0x3")])continue;let s=!1;for(const t of this._customCallbacks){const n=t(o);if(n){"type"in n&&e.push(n),s=!0;break}}if(!s){this._addDescriptionItems(e,o);const s=t[n+1];if(s&&!o.getFirstRange()[os("0x18")][os("0x1e")](s[os("0x1b")]().start)){const t=e[e[os("0x1")]-1],n="insertion"==o.type?"add":os("0x0");t&&os("0x4")==t[os("0xd")]&&(t[n]+="\n")}}}return this[os("0x37")](e)}[os("0x9")](t){this[os("0x15")].push(t)}[os("0x32")](t,n,o=e.priorities[os("0x1f")]){os("0x16")==typeof t?(0,e.insertToPriorityArray)(this._itemLabelsCallbacks,{matchingCallback:t,label:n,priority:o}):this[os("0x1d")][os("0x8")](t,n)}[os("0x17")](t,e=1){let n;for(const e of this._itemLabelsCallbacks)if(e[os("0x2a")](t)){n=e[os("0x36")];break}return n||(n=this._itemLabels[os("0x31")](t[os("0x20")])),n?n(e):1!==e?e+" "+t.name+"s":""+t[os("0x20")]}_addDescriptionItems(t,e){const n=e[os("0x1b")]()[os("0x1c")](),o="insertion"==e[os("0xd")]?"add":os("0x0");for(const e of n){const s=e[os("0x38")],i=t[t[os("0x1")]-1];if(s.is("$textProxy"))i&&i[os("0xd")][os("0x3a")]("Container")>-1&&t[os("0x30")](),i&&os("0x4")==i[os("0xd")]?i[o]+=s[os("0x14")]:t[os("0x2b")]({type:os("0x4"),add:os("0x26")==o?s.data:"",remove:os("0x0")==o?s[os("0x14")]:""});else if(this[os("0x23")][os("0x21")](s)){const r=s;if(i&&i[os("0xd")][os("0x3a")]("Container")>-1&&t.pop(),os("0xf")==e[os("0xd")])continue;i&&i[os("0xd")]==o+os("0x12")&&i[os("0xb")][os("0x20")]==r[os("0x20")]?i[os("0x39")]++:t[os("0x2b")]({type:o+os("0x12"),element:r,quantity:1}),n[os("0x13")]((t=>!("elementEnd"==t[os("0xd")]&&t[os("0x38")]==s)))}else if(this[os("0x23")][os("0x2f")](s,os("0x2e"))||s.is(os("0xb"),os("0x10"))){const n=s;if(os("0x26")==o&&os("0x27")==e[os("0xd")]||os("0x0")==o&&"elementEnd"==e.type)continue;if(i&&-1==i[os("0xd")][os("0x3a")](os("0x25"))){os("0x4")==i[os("0xd")]&&(i[o]+="\n");continue}let r;if(r=os("0x26")==o?n[os("0x11")]&&!this[os("0x23")][os("0x21")](n.nextSibling)?n[os("0x11")]:null:n[os("0x5")]&&!this[os("0x23")].isObject(n.previousSibling)?n.previousSibling:null,n[os("0xc")]||r&&r[os("0xc")]){const e=r&&r.isEmpty?r:n;i&&i[os("0xd")]==o+os("0x34")&&i[os("0xb")][os("0x20")]==e[os("0x20")]?i[os("0x39")]++:t[os("0x2b")]({type:o+os("0x34"),element:e,quantity:1})}else t.push({type:o+os("0x25"),element:n})}}}[os("0x37")](t){const e=this._locale,n=[];for(const o of t){switch(o.type){case os("0x4"):if(o[os("0x26")]=o[os("0x26")].replace(/(\S)\u000A+(\S)/g,"$1 $2")[os("0x24")](/\u000A/g,""),o[os("0x0")]=o.remove[os("0x24")](/(\S)\u000A+(\S)/g,"$1 $2")[os("0x24")](/\u000A/g,""),""!=o[os("0x26")]&&""!=o[os("0x0")]){n[os("0x2b")]({type:os("0x24"),content:Yo(e,"REPLACE_TEXT",['"'+o[os("0x0")]+'"','"'+o[os("0x26")]+'"'])});continue}if(null!=o[os("0x26")][os("0x35")](/^ +$/)){n.push({type:os("0x33"),content:Yo(e,os("0x2c"),Yo(e,os("0x29"),o[os("0x26")][os("0x1")]))});continue}if(null!=o[os("0x0")][os("0x35")](/^ +$/)){n.push({type:os("0x2"),content:Yo(e,os("0x22"),Yo(e,os("0x29"),o[os("0x0")][os("0x1")]))});continue}if(""!=o[os("0x26")]){n[os("0x2b")]({type:os("0x33"),content:Yo(e,"*Insert:* %0",'"'+o[os("0x26")]+'"')});continue}n[os("0x2b")]({type:os("0x2"),content:Yo(e,"*Remove:* %0",'"'+o[os("0x0")]+'"')});continue;case os("0xe"):case os("0x2d"):n[os("0x2b")]({type:os("0x33"),content:Yo(e,"*Insert:* %0",this[os("0x17")](o[os("0xb")],o.quantity))});continue;case"removeEmptyContainer":case os("0x1a"):n[os("0x2b")]({type:os("0x2"),content:Yo(e,os("0x22"),this.getItemLabel(o[os("0xb")],o[os("0x39")]))});continue;case os("0x28"):n.push({type:os("0x33"),content:Yo(e,os("0x7"),this[os("0x17")](o.element,o[os("0x39")]))});continue;case"removeContainer":n[os("0x2b")]({type:os("0x2"),content:Yo(e,os("0xa"),this[os("0x17")](o[os("0xb")],o[os("0x39")]))});continue}n[os("0x2b")](o)}return n}}const is=["showAIAssistant","enableCommand","TrackChangesEditing","afterInit","get","editor","plugins","commands"];var rs,xs;rs=is,xs=201,function(t){for(;--t;)rs.push(rs.shift())}(++xs);const as=function(t,e){return is[t-=0]};class cs extends t.Plugin{[as("0x2")](){const t=this[as("0x4")],e=t[as("0x5")][as("0x3")](as("0x1"));t[as("0x6")][as("0x3")](as("0x7"))&&e[as("0x0")](as("0x7"))}}const ls=["schema","commandParams","plugins","FORMAT_JUSTIFY_TEXT","locale","has","checkAttribute","format","contentLanguageDirection","model","document","FORMAT_ALIGN_TO_CENTER","get","right","afterInit","TrackChangesEditing","markBlockFormat","*Format:* %0","enableCommand","value","left","_descriptionFactory","commandName","alignment","registerDescriptionCallback","editor","getSelectedBlocks","FORMAT_ALIGN_TO_RIGHT","change","justify","from","selection"];var ds,us;ds=ls,us=289,function(t){for(;--t;)ds.push(ds.shift())}(++us);const gs=function(t,e){return ls[t-=0]};class ms extends t.Plugin{[gs("0xd")](){const t=this[gs("0x18")],e=t[gs("0x3")];if(!t[gs("0x1")][gs("0x4")]("AlignmentEditing"))return;const n=t.plugins[gs("0xb")](gs("0xe"));n[gs("0x11")](gs("0x16"),((e,o={})=>{let s=o[gs("0x12")];o.value||(s="ltr"===t[gs("0x3")][gs("0x7")]?gs("0x13"):gs("0xc"));const i=Array[gs("0x1d")](this[gs("0x18")][gs("0x8")][gs("0x9")][gs("0x1e")][gs("0x19")]()).filter((t=>function(t,e,n){const o=t.getAttribute(gs("0x16"))||null;return e[gs("0x5")](t,gs("0x16"))&&n!=o}(t,this[gs("0x18")][gs("0x8")][gs("0x1f")],s)));t[gs("0x8")][gs("0x1b")]((()=>{for(const t of i)n[gs("0xf")](t,{commandName:gs("0x16"),commandParams:[{value:s}]})}))})),n[gs("0x14")][gs("0x17")]((t=>{const{data:n}=t;if(n&&gs("0x16")==n[gs("0x15")]){const t=n[gs("0x0")][0][gs("0x12")];return{type:gs("0x6"),content:Yo(e,gs("0x10"),function(t){switch(t){case"left":return Yo(e,"FORMAT_ALIGN_TO_LEFT");case gs("0xc"):return Yo(e,gs("0x1a"));case"center":return Yo(e,gs("0xa"));case gs("0x1c"):return Yo(e,gs("0x2"))}}(t))}}}))}}const fs=["element","addClass","name","createRangeOn","markerRange","TrackChangesEditing","getAttribute","span","elementEnd","getCustomProperty","start","get","mapper","toViewElement","activeMarkers","plugins","markerName","item","isLimit","listIndent","test","createUIElement","insert","ck-suggestion-marker--active","bindElementToMarker","getItems","previousPosition","addHighlight","isContent","ck-suggestion-marker-","isAtEnd","nextSibling","writer","push","schema","listItem"];var hs,ps;hs=fs,ps=278,function(t){for(;--t;)hs.push(hs.shift())}(++ps);const bs=function(t,e){return fs[t-=0]};function Es(t,e,n){const o=[];for(const s of e[bs("0x23")]())s.hasAttribute(t)&&o[bs("0x7")](n[bs("0xd")](s));return o}function _s(t){const e=[];if(t.is(bs("0xa"),bs("0x9"))){let n=t.nextSibling;for(;n&&n.is("element",bs("0x9"))&&n[bs("0x10")](bs("0x1d"))>0;)e[bs("0x7")](n),n=n[bs("0x5")]}return e}function Ts(t,e,{showActiveMarker:n=!0}={}){const o=t[bs("0x19")][bs("0x15")](bs("0xf"));return(s,i,r)=>{if(!r.consumable[bs("0x1e")](i[bs("0xe")],s[bs("0xc")]))return;const x=i[bs("0xe")].getWalker(),a=i[bs("0xe")][bs("0x14")],c=t.model[bs("0x8")];let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t[bs("0x1b")];u=u||c[bs("0x2")](e);const n=r.mapper[bs("0x17")](e);if(n&&n[bs("0x13")](bs("0x1")))return;bs("0x12")==t.type&&c.isBlock(e)&&!c[bs("0x1c")](e)&&(e[bs("0x5")]||a[bs("0x4")]?l&&l.parent==e||(l=e,m(t[bs("0x0")]),g=!0):d=d||t.previousPosition)}function m(t){const s=r.writer[bs("0x1f")](bs("0x11"),{class:bs("0x3")+e}),x=r.mapper.toViewPosition(t);n&&o[bs("0x18")].includes(i[bs("0x1a")])&&r[bs("0x6")][bs("0xb")](bs("0x21"),s),r[bs("0x6")][bs("0x20")](x,s),r[bs("0x16")][bs("0x22")](s,i[bs("0x1a")])}u||g||!d||m(d)}}const Cs=["CodeEditing","isCollapsed","UnderlineEditing","format","BoldEditing","slice","FORMAT_BOLD","FORMAT_STRIKETHROUGH","forceValue","commands","StrikethroughEditing","SuperscriptEditing","value","getRanges","editor","underline","FORMAT_CODE","ItalicEditing","enableCommand","selection","bold","model","FORMAT_UNDERLINE","get","TrackChangesEditing","*Remove format:* %0","from","*Format:* %0","markInlineFormat","locale","FORMAT_SUBSCRIPT","plugins","commandParams"];var ys,ks;ys=Cs,ks=346,function(t){for(;--t;)ys.push(ys.shift())}(++ks);const As=function(t,e){return Cs[t-=0]},vs=[As("0x15"),As("0x1"),As("0x13"),As("0x11"),As("0x1b"),"SubscriptEditing",As("0x1c")];class Rs extends t.Plugin{afterInit(){const t=this[As("0x1f")],e=t[As("0x5")],n=t[As("0xf")][As("0x7")](As("0x8")),o=t[As("0xd")];for(const o of vs){if(!t[As("0xf")].has(o))continue;const s=o[As("0x16")](0,-7).toLowerCase(),i=t[As("0x1a")].get(s);n[As("0x2")](s,((t,o={})=>{const r=e.document[As("0x3")];if(r[As("0x12")])return void t(o);const x=void 0!==o[As("0x19")]?o[As("0x19")]:!i[As("0x1d")];e.change((()=>{const t=Array[As("0xa")](r[As("0x1e")]());for(const o of t){const t=x?[o]:Es(s,o,e);for(const e of t)n[As("0xc")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n._descriptionFactory.registerDescriptionCallback((n=>{const{data:s}=n;if(s&&s.commandName===t)return s[As("0x10")][0][As("0x19")]?{type:"format",content:Yo(o,As("0xb"),e)}:{type:As("0x14"),content:Yo(o,As("0x9"),e)}}))}s(As("0x4"),Yo(o,As("0x17"))),s("italic",Yo(o,"FORMAT_ITALIC")),s(As("0x20"),Yo(o,As("0x6"))),s("code",Yo(o,As("0x0"))),s("strikethrough",Yo(o,As("0x18"))),s("subscript",Yo(o,As("0xe"))),s("superscript",Yo(o,"FORMAT_SUPERSCRIPT"))}}const Ss=["_descriptionFactory","registerDescriptionCallback","name","document","plugins","blockQuote","getSelectedBlocks","change","ELEMENT_BLOCK_QUOTE","*Remove format:* %0","BlockQuoteEditing","locale","commandName","enableCommand","get","checkChild","markBlockFormat","*Format:* %0","model","parent","format","afterInit","commandParams","value","filter","editor","has","schema","forceValue","from"];var Is,Ls;Is=Ss,Ls=136,function(t){for(;--t;)Is.push(Is.shift())}(++Ls);const Ns=function(t,e){return Ss[t-=0]};class ws extends t.Plugin{[Ns("0x5")](){const t=this[Ns("0x9")],e=t[Ns("0x19")];if(!t[Ns("0x12")][Ns("0xa")](Ns("0x18")))return;const n=t[Ns("0x12")][Ns("0x1c")]("TrackChangesEditing"),o=this.editor.commands[Ns("0x1c")](Ns("0x13"));n[Ns("0x1b")]("blockQuote",((e,s={})=>{const i=this[Ns("0x9")][Ns("0x2")][Ns("0x11")].selection,r=s&&void 0!==s[Ns("0xc")]?s[Ns("0xc")]:!o[Ns("0x7")];let x=[];if(r){const e=Array[Ns("0xd")](i[Ns("0x14")]())[Ns("0x8")]((t=>Ms(t)||function(t,e){const n=e.checkChild(t[Ns("0x3")],Ns("0x13")),o=e[Ns("0x1d")](["$root","blockQuote"],t);return n&&o}(t,this[Ns("0x9")][Ns("0x2")][Ns("0xb")])));x=S(e,t[Ns("0x2")])}else{const e=Array[Ns("0xd")](i[Ns("0x14")]()).filter((t=>Ms(t)));x=S(e,t[Ns("0x2")])}t[Ns("0x2")][Ns("0x15")]((()=>{for(const t of x)n[Ns("0x0")](t,{commandName:Ns("0x13"),commandParams:[{forceValue:r}]})}))})),n[Ns("0xe")][Ns("0xf")]((t=>{const{data:n}=t;if(n&&"blockQuote"==n[Ns("0x1a")]){const t=Yo(e,Ns("0x16"));return n[Ns("0x6")][0][Ns("0xc")]?{type:Ns("0x4"),content:Yo(e,Ns("0x1"),t)}:{type:Ns("0x4"),content:Yo(e,Ns("0x17"),t)}}}))}}function Ms(t){return"blockQuote"==t[Ns("0x3")][Ns("0x10")]}const Os=["ckbox","plugins","get","TrackChangesEditing"];var Fs,Ps;Fs=Os,Ps=412,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{afterInit(){const t=this.editor;t.commands.get(Ds("0x0"))&&t[Ds("0x1")][Ds("0x2")](Ds("0x3")).enableCommand(Ds("0x0"))}}const js=["get","commandName","plugins","TrackChangesEditing","getSelectedBlocks","parent","model","*Remove format:* %0","codeBlock","markBlockFormat","change","checkChild","from","indentCodeBlock","formatBlock","_descriptionFactory","find","format","languages","forceValue","blockName","editor","afterInit","label","locale","commands","outdentCodeBlock","registerElementLabel","rootElement","document","config","ELEMENT_CODE_BLOCK","CodeBlock","language","registerDescriptionCallback","commandParams","enableCommand"];var Us,Gs;Us=js,Gs=130,function(t){for(;--t;)Us.push(Us.shift())}(++Gs);const Hs=function(t,e){return js[t-=0]};class Ws extends t.Plugin{[Hs("0x3")](){const t=this[Hs("0x2")];if(!t[Hs("0x14")].has(Hs("0xd")))return;const e=t[Hs("0x14")][Hs("0x12")](Hs("0x15")),n=t[Hs("0x5")],o=t[Hs("0xb")].get(Hs("0x1a"))[Hs("0x24")],s=t[Hs("0x6")].get(Hs("0x1a"));e[Hs("0x11")](Hs("0x1f")),e.enableCommand(Hs("0x7")),e[Hs("0x11")](Hs("0x1a"),((n,i={})=>{const r=t[Hs("0x18")],x=t.model[Hs("0xa")].selection,a=i&&void 0!==i.forceValue?i[Hs("0x0")]:!s.value;let c;i.language||(i[Hs("0xe")]=o[0][Hs("0xe")]),c=a?Array[Hs("0x1e")](x[Hs("0x16")]()).filter((t=>{return zs(t)||(e=t,n=r.schema,!e.is(Hs("0x9"))&&!n.isLimit(e)&&n[Hs("0x1d")](e[Hs("0x17")],Hs("0x1a")));var e,n})):Array[Hs("0x1e")](x[Hs("0x16")]()).filter((t=>zs(t)));const l=S(c,r);r[Hs("0x1c")]((()=>{for(const t of l)e[Hs("0x1b")](t,{commandName:Hs("0x1a"),commandParams:[{...i,forceValue:a}],formatGroupId:Hs("0x1")})}))})),e[Hs("0x21")][Hs("0x8")](Hs("0x1a"),(t=>Yo(n,Hs("0xc"),t))),e[Hs("0x21")][Hs("0xf")]((t=>{const e=n.t,{type:s,data:i}=t;if(Hs("0x20")==s&&i&&Hs("0x1a")==i[Hs("0x13")]){const t=i.commandParams[0].language,s=e(o[Hs("0x22")]((e=>e[Hs("0xe")]===t))[Hs("0x4")]);return i[Hs("0x10")][0][Hs("0x0")]?{type:"format",content:Yo(n,"*Format:* %0",Yo(n,"ELEMENT_CODE_BLOCK",1)+" ("+s+")")}:{type:Hs("0x23"),content:Yo(n,Hs("0x19"),Yo(n,Hs("0xc"),1))}}}))}}function zs(t){return Hs("0x1a")==t.name}const Vs=["editor","enableCommand","has","plugins","addCommentThread","get"];var Ks,qs;Ks=Vs,qs=379,function(t){for(;--t;)Ks.push(Ks.shift())}(++qs);const Xs=function(t,e){return Vs[t-=0]};class $s extends t.Plugin{afterInit(){const t=this[Xs("0x5")];t[Xs("0x2")][Xs("0x1")]("CommentsEditing")&&t.plugins[Xs("0x4")]("TrackChangesEditing")[Xs("0x0")](Xs("0x3"))}}var Qs=n(181);const Js=["editor","setSelection","init","bind","deleteForward","commands","getFirstRange","enqueueChange","high","fromRange","buffer","delete","start","lock","showSuggestionHighlights","editing","TrackChangesEditing","requires","removeMarker:suggestion:deletion","isCollapsed","modifySelection","model","root","markerName","markerNameToElements","downcastDispatcher","unbindElementFromMarkerName","get","unlock","remove","writer","createRange","selection","mapper","detach","document","forward","createSelection","uiElement","unit","merge","enableCommand"];var Zs,Ys;Zs=Js,Ys=437,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const ti=function(t,e){return Js[t-=0]};class ei extends t.Plugin{static get[ti("0x0")](){return[Qs.Delete]}[ti("0x1b")](){const t=this[ti("0x19")],e=t.plugins[ti("0xa")](ti("0x29"));e[ti("0x18")](ti("0x24"));const n=t[ti("0x1e")][ti("0xa")](ti("0x1d"));e.enableCommand(ti("0x1d"),((e,o={})=>{const s=t[ti("0x4")][ti("0x14")](t[ti("0x4")][ti("0x12")][ti("0xf")]);s[ti("0x2")]&&t[ti("0x4")][ti("0x3")](s,{direction:ti("0x13"),unit:o[ti("0x16")]});const i=s[ti("0x1f")](),x=r.LiveRange[ti("0x22")](i);let a;e(o),a="$graveyard"==x[ti("0x5")].rootName?t[ti("0x4")][ti("0xe")](i[ti("0x25")]):t[ti("0x4")].createRange(x[ti("0x25")],x.end),x[ti("0x11")](),t.model[ti("0x20")](n.buffer.batch,(t=>{n[ti("0x23")][ti("0x26")](),t[ti("0x1a")](t[ti("0xe")](a.end)),n[ti("0x23")][ti("0xb")]()}))})),t[ti("0x28")][ti("0x8")].on("addMarker:suggestion:deletion",Ts(t,ti("0x17")),{priority:"high"}),t.data.downcastDispatcher.on("addMarker:suggestion:deletion",((e,n,o)=>{o.options[ti("0x27")]&&Ts(t,ti("0x17"),{showActiveMarker:!1})[ti("0x1c")](this)(e,n,o)}),{priority:ti("0x21")}),t[ti("0x28")][ti("0x8")].on(ti("0x1"),((t,e,n)=>{const o=n.mapper[ti("0x7")](e.markerName);if(o)for(const t of o)t.is(ti("0x15"))&&(n[ti("0x10")][ti("0x9")](t,e[ti("0x6")]),n[ti("0xd")][ti("0xc")](t))}),{priority:ti("0x21")})}}const ni=["enableCommand","ELEMENT_BULLETED_LIST","documentList","setSelection","registerCustomCallback","config","map","model","DocumentListEditing","findIndex","length","registerElementLabel","change","getFirstRange","bulletedList","commandParams","splitListItemBefore","ELEMENT_NUMBERED_LIST","start","editor","markMultiRangeBlockFormat","execute","containsItem","list.multiBlock","paragraph","_suggestionFactory","ELEMENT_","schema","before","markBlockFormat","listItemId","has","isObject","push","*Format:* insert into %0","expandListBlocksToCompleteList","TrackChangesEditing","_LIST","registerDescriptionCallback","nextSibling","afterInit","getRanges","splitListItemAfter","format","multipleBlocks","nodeAfter","forceValue","deletion","*Outdent:* %0","*Indent:* %0","after","end","_descriptionFactory","add","getAttribute","document","listType","refresh","commands","ELEMENT_LIST_ITEM","formatBlock","hasAttribute","selection","slice","indentList","value","*Format:* remove from %0","createPositionAt","get","previousSibling","mergeListItemForward","plugins","commandName","*Merge:* %0","numberedList","createRange","from","*Change to:* %0","getSelectedBlocks","outdentList"];var oi,si;oi=ni,si=308,function(t){for(;--t;)oi.push(oi.shift())}(++si);const ii=function(t,e){return ni[t-=0]};class ri extends t.Plugin{[ii("0x34")](){const t=this[ii("0x1f")];if(!t[ii("0x3")][ii("0x2b")](ii("0x14")))return;const e=t.locale,n=t[ii("0x3")][ii("0x0")](ii("0x30")),o=t.plugins[ii("0x0")]("DocumentListUtils");function s(e){return()=>{const s=t[ii("0x46")][ii("0x0")](e);if(s[ii("0x4d")]&&!t[ii("0x11")].get(ii("0x23")))return void t[ii("0x21")](ii("0x24"),{});let i=Array.from(t.model[ii("0x43")][ii("0x4a")][ii("0xa")]());if(a(e)){i=o[ii("0x2f")](i);const t=[];for(const e of i)o.isFirstBlockOfListItem(e)&&t[ii("0x2d")](e);i=t}t.model[ii("0x18")]((()=>{n[ii("0x20")](i,{commandName:e,commandParams:[{forceValue:!s[ii("0x4d")]}],formatGroupId:ii("0x44")},[],ii("0xe"))}))}}function i(e){return()=>{const o=function(t){let e=Array[ii("0x8")](t);const n=e[ii("0x15")]((t=>!t[ii("0x49")](ii("0x2a"))));return n>-1&&(e=e[ii("0x4b")](0,n)),e}(t[ii("0x13")][ii("0x43")].selection.getSelectedBlocks()),s=o[o[ii("0x16")]-1],i=t[ii("0x13")][ii("0x27")][ii("0x2c")](s)?ii("0x3e"):"end",r=t[ii("0x13")][ii("0x7")](t.model[ii("0x4f")](o[0],"before"),t[ii("0x13")].createPositionAt(s,i));t[ii("0x13")].change((()=>{n[ii("0x29")](r,{commandName:e,commandParams:[],formatGroupId:ii("0x44")},function(t){const e=new Set;for(const n of t){let t=n[ii("0x33")];for(;t&&t[ii("0x42")]("listIndent")>n[ii("0x42")]("listIndent");)e[ii("0x41")](t),t=t[ii("0x33")]}return Array[ii("0x8")](e)}(o))}))}}function x(e){return()=>{const o=t.model[ii("0x43")][ii("0x4a")].getSelectedBlocks().next()[ii("0x4d")],s=t[ii("0x13")].createPositionAt(o,ii("0x28")),i=t[ii("0x13")][ii("0x4f")](o,0),r=t.model[ii("0x7")](s,i);t[ii("0x13")][ii("0x18")]((()=>{n.markBlockFormat(r,{commandName:e,commandParams:[],formatGroupId:ii("0x44")})}))}}function a(e){const n=t[ii("0x46")][ii("0x0")](ii("0x1a"))[ii("0x4d")],o=t[ii("0x46")][ii("0x0")]("numberedList")[ii("0x4d")];return"numberedList"===e?n:o}n.enableCommand(ii("0x6"),s(ii("0x6"))),n[ii("0xc")](ii("0x1a"),s(ii("0x1a"))),n.enableCommand(ii("0x4c"),i(ii("0x4c"))),n[ii("0xc")](ii("0xb"),i(ii("0xb"))),n[ii("0xc")](ii("0x36"),x(ii("0x36"))),n[ii("0xc")](ii("0x1c"),x(ii("0x1c"))),n[ii("0x40")][ii("0x17")]((function(e){const n=!t[ii("0x13")][ii("0x27")][ii("0x2c")](e),o=e[ii("0x1")],s=e[ii("0x33")],i=e[ii("0x42")](ii("0x2a")),r=!o||o.getAttribute("listItemId")!==i,x=!s||s[ii("0x42")](ii("0x2a"))!==i;return n&&Boolean(i)&&r&&x}),(t=>Yo(e,ii("0x47"),t))),n[ii("0x40")][ii("0x32")]((function(n){const{data:o}=n;if(!o)return;let s,i,r,x;switch(o[ii("0x4")]){case"bulletedList":r=o[ii("0x1b")][0].forceValue,x=a(o[ii("0x4")]),s=ii(r?"0x2e":"0x4e"),!x&&t.config.get("list.multiBlock")||(s=ii("0x9")),i={type:ii("0x37"),content:Yo(e,s,Yo(e,ii("0xd")))};break;case ii("0x6"):r=o[ii("0x1b")][0][ii("0x3a")],x=a(o[ii("0x4")]),s=ii(r?"0x2e":"0x4e"),!x&&t[ii("0x11")][ii("0x0")](ii("0x23"))||(s=ii("0x9")),i={type:ii("0x37"),content:Yo(e,s,Yo(e,ii("0x1d")))};break;case ii("0x4c"):s=ii("0x3d"),i={type:ii("0x37"),content:Yo(e,s,Yo(e,"ELEMENT_LIST_ITEM"))};break;case ii("0xb"):s=function(t){const e=t[ii("0x19")]();let n=e[ii("0x1e")].nodeAfter;for(;n&&e[ii("0x22")](n);){if(n[ii("0x42")]("listIndent")>0)return!1;n=n.nextSibling}return!0}(n)?Yo(e,ii("0x4e"),Yo(e,function(t){const e=t[ii("0x19")]()[ii("0x1e")][ii("0x39")];return ii("0x26")+e.getAttribute(ii("0x44")).toUpperCase()+ii("0x31")}(n))):Yo(e,ii("0x3c"),Yo(e,ii("0x47"))),i={type:ii("0x37"),content:s};break;case"mergeListItemBackward":case ii("0x2"):!1===o[ii("0x38")]&&(s=ii("0x5"),i={type:ii("0x3b"),content:Yo(e,s,Yo(e,"ELEMENT_LIST_ITEM"))})}return i})),n[ii("0x25")][ii("0x10")](ii("0x48"),ii("0xe"),"accept",(function(e,n){const o=[];for(let n of e)n.start[ii("0x39")]===n[ii("0x3f")].parent&&(n=t.model[ii("0x7")](t.model.createPositionAt(n[ii("0x1e")][ii("0x39")],0))),o[ii("0x2d")](n);t[ii("0x13")][ii("0x18")]((e=>{const s=t[ii("0x13")][ii("0x43")][ii("0x4a")],i=Array.from(s[ii("0x35")]())[ii("0x12")]((t=>r.LiveRange.fromRange(t)));e[ii("0xf")](o),t[ii("0x46")][ii("0x0")](n[ii("0x4")])[ii("0x45")](),n[ii("0x1b")][ii("0x2d")]({forceDefaultExecution:!0}),t[ii("0x21")](n[ii("0x4")],...n[ii("0x1b")]),e.setSelection(i);for(const t of i)t.detach()}))}))}}var xi=n(331);const ai=["parent","options","selection","high","split","downcastDispatcher","showSuggestionHighlights","plugins","end","detach","init","fire","hasClass","data","setSelection","nextSibling","requires","model","unbindElementFromMarkerName","ck-suggestion-marker-split","afterExecute","bind","createRange","writer","remove","document","markerName","get","enterBlock","getFirstPosition","editing","mapper","change","editor","addMarker:suggestion:insertion"];var ci,li;ci=ai,li=219,function(t){for(;--t;)ci.push(ci.shift())}(++li);const di=function(t,e){return ai[t-=0]};class ui extends t.Plugin{static get[di("0x7")](){return[xi.Enter]}[di("0x1")](){const t=this[di("0x18")],e=t[di("0x21")][di("0x12")]("TrackChangesEditing"),n=t.commands.get("enter");e.enableCommand("enter",(()=>{t[di("0x8")][di("0x17")]((o=>{const s=t[di("0x8")][di("0x10")][di("0x1c")],i=s[di("0x14")](),x=r.LiveRange.fromRange(s.getFirstRange());if(n[di("0x13")](o)){const n=t[di("0x8")].createPositionAt(i[di("0x1a")][di("0x6")],0),s=o[di("0xd")](i,n);e.markInsertion(s)}else o[di("0x5")](o[di("0xd")](x[di("0x22")]));x[di("0x0")](),n[di("0x2")](di("0xb"),{writer:o})}))})),t[di("0x15")][di("0x1f")].on(di("0x19"),Ts(t,di("0x1e")),{priority:"high"}),t.editing.downcastDispatcher.on("removeMarker:suggestion:insertion",((t,e,n)=>{const o=n.mapper.markerNameToElements(e[di("0x11")]);if(o)for(const t of o)t[di("0x3")](di("0xa"))&&(n[di("0x16")][di("0x9")](t,e[di("0x11")]),n[di("0xe")][di("0xf")](t))}),{priority:di("0x1d")}),t[di("0x4")][di("0x1f")].on(di("0x19"),((e,n,o)=>{o[di("0x1b")][di("0x20")]&&Ts(t,"split",{showActiveMarker:!1})[di("0xc")](this)(e,n,o)}),{priority:di("0x1d")})}}const gi=["replace","find","createPositionAt","findByTextCallback","findNext","FindAndReplaceEditing","createRange","afterInit","TrackChangesEditing","_isInDeletionRange","model","plugins","string","getIntersection","findPrevious","get","editor","enableCommand","start","item","has","getRange","suggestion:deletion","handleFindCommand","filter","getMarkersGroup","replaceAll"];var mi,fi;mi=gi,fi=377,function(t){for(;--t;)mi.push(mi.shift())}(++fi);const hi=function(t,e){return gi[t-=0]};class pi extends t.Plugin{[hi("0x8")](){if(!this[hi("0x11")].plugins[hi("0x15")](hi("0x6")))return;const t=this.editor.plugins[hi("0x10")](hi("0x9"));t[hi("0x12")](hi("0x2"),this[hi("0x18")].bind(this)),t.enableCommand(hi("0x5")),t[hi("0x12")](hi("0xf")),t.enableCommand(hi("0x1")),t[hi("0x12")](hi("0x0"))}[hi("0x18")](t,e,n={}){const o=this[hi("0x11")][hi("0xc")][hi("0x10")]("FindAndReplaceUtils");if(void 0!==n)return t((t=>(hi("0xd")==typeof e?o[hi("0x4")](e,n):e)(t)[hi("0x19")]((e=>!1===this[hi("0xa")](e,t[hi("0x14")])))),n)}[hi("0xa")](t,e){const n=this.editor[hi("0xb")][hi("0x7")](this[hi("0x11")].model[hi("0x3")](e,t[hi("0x13")]),this[hi("0x11")][hi("0xb")][hi("0x3")](e,t.end));for(const t of this.editor[hi("0xb")].markers[hi("0x1a")](hi("0x17")))if(null!==n[hi("0xe")](t[hi("0x16")]()))return!0;return!1}}const bi=["change","TrackChangesEditing","get","config","_descriptionFactory","fontFamily","fontBackgroundColor.colors","commandParams","FontSizeEditing","*Reset font size*","markInlineFormat","plugins","FontFamilyEditing","*Set font color:* %0","_enableCommand","*Set font size:* %0","fontSize.options","value","commandName","fontColor","from","enableCommand","selection","fontSize","trim","format","*Reset font color*","toLowerCase","editor","FontBackgroundColorEditing","fontColor.colors","model","fontBackgroundColor","registerDescriptionCallback","FontColorEditing","find","isCollapsed","FontSize","*Set font background color:* %0"];var Ei,_i;Ei=bi,_i=308,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]},Ci=[{pluginName:Ti("0xc"),commandName:"fontSize"},{pluginName:Ti("0x10"),commandName:Ti("0x9")},{pluginName:Ti("0x26"),commandName:Ti("0x17")},{pluginName:Ti("0x21"),commandName:Ti("0x24")}];class yi extends t.Plugin{afterInit(){const t=this.editor.locale;for(const{pluginName:t,commandName:e}of Ci)this[Ti("0x20")][Ti("0xf")].has(t)&&this[Ti("0x12")](e);this.editor[Ti("0xf")].get("TrackChangesEditing")[Ti("0x8")][Ti("0x25")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if(Ti("0x1b")==o[Ti("0x16")]){const e=o[Ti("0xb")][0][Ti("0x15")];if(e){const o=n(this[Ti("0x20")][Ti("0xf")].get(Ti("0x2")).normalizeSizeOptions(this[Ti("0x20")][Ti("0x7")].get(Ti("0x14"))).find((t=>t[Ti("0x23")]==e)).title)[Ti("0x1f")]();return{type:Ti("0x1d"),content:Yo(t,Ti("0x13"),o)}}return{type:Ti("0x1d"),content:Yo(t,Ti("0xd"))}}if("fontFamily"==o[Ti("0x16")]){const e=o.commandParams[0][Ti("0x15")];return e?{type:Ti("0x1d"),content:Yo(t,"*Set font family:* %0",e)}:{type:"format",content:Yo(t,"*Reset font family*")}}if(Ti("0x17")==o[Ti("0x16")]){const e=o[Ti("0xb")][0][Ti("0x15")];if(e){const o=(0,s.normalizeColorOptions)(this[Ti("0x20")][Ti("0x7")][Ti("0x6")](Ti("0x22")))[Ti("0x0")]((t=>t[Ti("0x23")]==e));let i=e,r="";return o&&(i=o.label,r=n(i)[Ti("0x1f")]()),{type:Ti("0x1d"),content:Yo(t,Ti("0x11"),r)[Ti("0x1c")](),color:{value:e,title:r||i}}}return{type:Ti("0x1d"),content:Yo(t,Ti("0x1e"))}}if("fontBackgroundColor"==o[Ti("0x16")]){const e=o[Ti("0xb")][0][Ti("0x15")];if(e){const o=(0,s.normalizeColorOptions)(this[Ti("0x20")][Ti("0x7")][Ti("0x6")](Ti("0xa")))[Ti("0x0")]((t=>t[Ti("0x23")]==e));let i=e,r="";return o&&(i=o.label,r=n(i).toLowerCase()),{type:Ti("0x1d"),content:Yo(t,Ti("0x3"),r)[Ti("0x1c")](),color:{value:e,title:r||i}}}return{type:Ti("0x1d"),content:Yo(t,"*Reset font background color*")}}}}))}[Ti("0x12")](t){const e=this[Ti("0x20")];e.plugins[Ti("0x6")]("TrackChangesEditing")[Ti("0x19")](t,((n,o={})=>{const s=e.model.document[Ti("0x1a")],i=o.value;s[Ti("0x1")]?n(o):e[Ti("0x23")][Ti("0x4")]((()=>{const n=Array[Ti("0x18")](s.getRanges());for(const o of n){const n=i?[o]:Es(t,o,e.model);for(const o of n)e[Ti("0xf")][Ti("0x6")](Ti("0x5"))[Ti("0xe")](o,{commandName:t,commandParams:[{value:i}]})}}))}))}}const ki=["TrackChangesEditing","title","join","change","from","slice","forward","fontColor.colors","getSelectedBlocks","locale","getLastPosition","pasteFormat","_descriptionFactory","charAt","getRanges","fontSize","copyFormat","enableCommand","plugins","toUpperCase","*Set format to:* %0","afterInit","commands","createSelection","isBlock","FontSize","get","createRange","getFirstPosition","model","schema","boolean","entries","*Remove all formatting*","getAttributeProperties","config","fontBackgroundColor","toLowerCase","registerDescriptionCallback","format","length","label","word","keys","document","isFormatting","find","split","fontColor","normalizeSizeOptions","getAttributes","modifySelection","backward","selection","isCollapsed","getItems","editor"];var Ai,vi;Ai=ki,vi=405,function(t){for(;--t;)Ai.push(Ai.shift())}(++vi);const Ri=function(t,e){return ki[t-=0]};class Si extends t.Plugin{[Ri("0xf")](){const t=this[Ri("0x32")],n=t[Ri("0x17")],o=n[Ri("0x26")][Ri("0x2f")],s=t.plugins[Ri("0x14")](Ri("0x33")),i=t.locale,r=t[Ri("0x10")][Ri("0x14")](Ri("0xa")),x=t[Ri("0x10")].get(Ri("0x5"));r&&x&&(s[Ri("0xb")](Ri("0x5"),((t,i={})=>{const r=i;n[Ri("0x36")]((()=>{const t=Array[Ri("0x37")](o.getRanges()),i=o[Ri("0x30")]?[Ii(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t[Ri("0x2c")]()){const t=e[Ri("0x1c")](n);t&&t[Ri("0x27")]&&(yield n)}}(t,n));for(const e of t[Ri("0x8")]())for(const t of e[Ri("0x31")]())!n[Ri("0x12")](t)&&o(t)&&(yield t);for(const e of t[Ri("0x2")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Ri("0x18")]))||0!==Object[Ri("0x25")](r)[Ri("0x22")])for(const t of i)s.markInlineFormat(t,{commandName:Ri("0x5"),commandParams:[r]})}))})),s[Ri("0x6")][Ri("0x20")]((e=>{const{data:n}=e;if(n&&Ri("0x5")===n.commandName){const e=[],o=n.commandParams[0];for(const[n,s]of Object[Ri("0x1a")](o))e.push(Li(t,n,s));return e.length?{type:Ri("0x21"),content:Yo(i,Ri("0xe"),e[Ri("0x35")](", "))}:{type:Ri("0x21"),content:Yo(i,Ri("0x1b"))}}})),t[Ri("0xc")].get(Ri("0x33"))[Ri("0xb")](Ri("0xa")))}}function Ii(t,e){const n=t[Ri("0x11")](e);t[Ri("0x2d")](n,{unit:Ri("0x24"),direction:Ri("0x2e")});const o=n[Ri("0x16")]();t[Ri("0x2d")](n,{unit:"word",direction:Ri("0x0")});const s=n[Ri("0x4")]();return t[Ri("0x15")](o,s)}function Li(t,e,n){const o=t[Ri("0x3")].t,i=e[Ri("0x29")](/(?=[A-Z])/)[Ri("0x35")](" "),r=o(i[Ri("0x7")](0)[Ri("0xd")]()+i[Ri("0x38")](1))[Ri("0x1f")]();if(Ri("0x19")==typeof n)return r;if(Ri("0x2a")===e||Ri("0x1e")===e){const e=(0,s.normalizeColorOptions)(t[Ri("0x1d")][Ri("0x14")](Ri("0x1")))[Ri("0x28")]((t=>t.model==n));return r+" ("+(e?o(e[Ri("0x23")])[Ri("0x1f")]():n)+")"}if(Ri("0x9")===e&&isNaN(parseFloat(n))){const e=t[Ri("0xc")][Ri("0x14")](Ri("0x13"))[Ri("0x2b")](t[Ri("0x1d")].get("fontSize.options"))[Ri("0x28")]((t=>t[Ri("0x17")]==n));return r+" ("+(e?o(e[Ri("0x34")])[Ri("0x1f")]():n)+")"}return r+" ("+n+")"}const Ni=["document","getSelectedBlocks","parent","registerElementLabel","format","paragraph","commandParams","match","heading","name","find","HeadingEditing","value","has","get","enableCommand","markBlockFormat","heading.options","filter","config","model","editor","checkChild","plugins","selection","blockName","ELEMENT_HEADING_CUSTOM","_descriptionFactory","formatBlock","title","isObject","locale"];var wi,Mi;wi=Ni,Mi=247,function(t){for(;--t;)wi.push(wi.shift())}(++Mi);const Oi=function(t,e){return Ni[t-=0]};class Fi extends t.Plugin{afterInit(){const t=this[Oi("0x1e")],e=t[Oi("0x8")],n=t[Oi("0x1c")].get(Oi("0x1a"));if(!t[Oi("0x0")][Oi("0x16")](Oi("0x14")))return;const o=t[Oi("0x0")][Oi("0x17")]("TrackChangesEditing");o[Oi("0x18")](Oi("0x11"),((e,n)=>{const s=n[Oi("0x15")],i=Array.from(this[Oi("0x1e")][Oi("0x1d")][Oi("0x9")][Oi("0x1")][Oi("0xa")]())[Oi("0x1b")]((t=>{return e=t,n=s,(o=this[Oi("0x1e")].model.schema)[Oi("0x1f")](e[Oi("0xb")],n)&&!o[Oi("0x7")](e)&&e[Oi("0x12")]!=n;var e,n,o}));t[Oi("0x1d")].change((()=>{for(const t of i)o[Oi("0x19")](t,{commandName:"heading",commandParams:[n],formatGroupId:Oi("0x2")},_s(t))}))}));for(const t of n)Oi("0xe")!=t[Oi("0x1d")]&&o[Oi("0x4")][Oi("0xc")](t[Oi("0x1d")],(e=>{const n=Pi(t[Oi("0x1d")]);return null!==n?s(e,n):i(e,t[Oi("0x6")])}));function s(t,n){return Yo(e,"ELEMENT_HEADING",[t,n])}function i(t,n){return Yo(e,Oi("0x3"),[t,n])}o[Oi("0x4")].registerDescriptionCallback((t=>{const{type:o,data:r}=t;if(Oi("0x5")==o&&r&&Oi("0x11")==r.commandName){const t=r[Oi("0xf")][0][Oi("0x15")],o=Pi(t);if(null!==o)return{type:Oi("0xd"),content:Yo(e,"*Change to:* %0",s(1,o))};const x=n[Oi("0x13")]((e=>e[Oi("0x1d")]===t))[Oi("0x6")];return{type:Oi("0xd"),content:Yo(e,"*Change to:* %0",i(1,x))}}}))}}function Pi(t){const e=t[Oi("0x10")](/^heading(\d+)$/);return e?e[1]:null}const Di=["editor","push","item","hasAttribute","title","getAttribute","TrackChangesEditing","highlight","registerDescriptionCallback","getFirstPosition","backward","change","createRange","toLowerCase","find","plugins","formatInline","has","afterInit","model","enableCommand","commandName","HighlightEditing","format","selection","isCollapsed","getRanges","get","commandParams","_descriptionFactory","document","FORMAT_HIGHLIGHT","*Remove highlight*","markInlineFormat","value","color","locale"];var Bi,ji;Bi=Di,ji=314,function(t){for(;--t;)Bi.push(Bi.shift())}(++ji);const Ui=function(t,e){return Di[t-=0]};class Gi extends t.Plugin{[Ui("0x0")](){const t=this[Ui("0x13")];if(!t[Ui("0x22")][Ui("0x24")](Ui("0x4")))return;const e=t[Ui("0x22")][Ui("0x9")](Ui("0x19"));e[Ui("0x2")]("highlight",((n,o={})=>{const s=t[Ui("0x1")][Ui("0xc")][Ui("0x6")],i=s.getAttribute(Ui("0x1a"));let r=o[Ui("0x10")],x=[];if(s[Ui("0x7")]){const e=s[Ui("0x1c")]();if(!s[Ui("0x16")](Ui("0x1a")))return void n(o);{const n=t=>t[Ui("0x15")][Ui("0x18")](Ui("0x1a"))===i,o=e.getLastMatchingPosition(n,{direction:Ui("0x1d")}),s=e.getLastMatchingPosition(n);x=[t[Ui("0x1")][Ui("0x1f")](o,s)],r==i&&(r=null)}}else for(const e of s[Ui("0x8")]())r?x[Ui("0x14")](e):x[Ui("0x14")](...Es(Ui("0x1a"),e,t[Ui("0x1")]));t.model[Ui("0x1e")]((()=>{for(const t of x)e[Ui("0xf")](t,{commandName:Ui("0x1a"),commandParams:[{value:r}]})}))}));const n=t[Ui("0x12")];e[Ui("0xb")][Ui("0x1b")]((e=>{const{type:o,data:s}=e;if(Ui("0x23")==o&&s&&"highlight"==s[Ui("0x3")]){const e=n.t,o=s[Ui("0xa")][0][Ui("0x10")];if(o){const s=t.config[Ui("0x9")]("highlight.options")[Ui("0x21")]((t=>t[Ui("0x1")]==o)),i=e(s[Ui("0x17")])[Ui("0x20")]();return{type:Ui("0x5"),content:Yo(n,"*Set highlight:* %0",i),color:{value:s[Ui("0x11")],title:s.title}}}return{type:Ui("0x5"),content:Yo(n,Ui("0xe"),Yo(n,Ui("0xd")))}}}))}}const Hi=["conversion","horizontalLine","HorizontalLineEditing","locale","enableCommand","addClass","afterInit","get","ELEMENT_HORIZONTAL_LINE","registerElementLabel","plugins","_descriptionFactory","createPositionAt","createEmptyElement","TrackChangesEditing","editor","createContainerElement","dataDowncast","insert"];var Wi,zi;Wi=Hi,zi=149,function(t){for(;--t;)Wi.push(Wi.shift())}(++zi);const Vi=function(t,e){return Hi[t-=0]};class Ki extends t.Plugin{[Vi("0x9")](){const t=this[Vi("0x12")];if(!t[Vi("0xd")].has(Vi("0x5")))return;t[Vi("0xd")][Vi("0xa")]("TrackChangesEditing")[Vi("0x7")](Vi("0x4"));const e=t[Vi("0xd")][Vi("0xa")](Vi("0x11")),n=t[Vi("0x6")];e[Vi("0xe")][Vi("0xc")](Vi("0x4"),(t=>Yo(n,Vi("0xb"),t))),t[Vi("0x3")].for(Vi("0x1")).elementToStructure({model:"horizontalLine",view:(t,{writer:e,options:n})=>{if(!n.showSuggestionHighlights)return null;const o=e[Vi("0x0")]("div"),s=e[Vi("0x10")]("hr");return e[Vi("0x8")]("ck-horizontal-line",o),e[Vi("0x2")](e[Vi("0xf")](o,0),s),o},converterPriority:"high"})}}const qi=["enableCommand","selection","HtmlEmbed","rawHtmlApi","editing","document","value","plugins","cancel","htmlEmbed","commandName","ELEMENT_HTML_EMBED","TrackChangesEditing","change","getSelectedElement","markBlockFormat","model","afterInit","rawHtml","registerDescriptionCallback","_descriptionFactory","*Change %0 content*","element","get","locale"];var Xi,$i;Xi=qi,$i=130,function(t){for(;--t;)Xi.push(Xi.shift())}(++$i);const Qi=function(t,e){return qi[t-=0]};class Ji extends t.Plugin{[Qi("0xc")](){const t=this.editor;if(!t[Qi("0x2")].has(Qi("0x16")))return;const e=t.plugins.get(Qi("0x7")),n=t[Qi("0x13")],o=t[Qi("0x18")].view.document[Qi("0x15")];e[Qi("0xf")].registerElementLabel(Qi("0xd"),(t=>Yo(n,Qi("0x6"),t))),t[Qi("0x2")][Qi("0x12")]("TrackChangesEditing")[Qi("0x14")](Qi("0x4"),((n,s)=>{const i=t[Qi("0xb")],r=i[Qi("0x0")][Qi("0x15")];i[Qi("0x8")]((()=>{const t=function(t){const e=t.getSelectedElement();return e&&e.is(Qi("0x11"),Qi("0xd"))?t[Qi("0x9")]():null}(r);if(!t)return void n(null);const i=t.getAttribute(Qi("0x1"))||"";void 0!==s&&s!==i&&(e[Qi("0xa")](t,{commandName:Qi("0x4"),commandParams:[s]}),o[Qi("0x9")]().getCustomProperty(Qi("0x17"))[Qi("0x3")]())}))})),e[Qi("0xf")][Qi("0xe")]((t=>{const{data:e}=t;if(e&&Qi("0x4")==e[Qi("0x5")]){const t=Yo(n,Qi("0x6"));return{type:"format",content:Yo(n,Qi("0x10"),t)}}}))}}const Zi=["imageCaption","schema","toggleImageCaption","hasAttribute","formatBlock","subType","Users","join","ImageTextAlternativeEditing","ImageUploadEditing","refresh","resizedWidth","_suggestionFactory","isBlockImage","imageTextAlternative","toLowerCase","chain","createRange","registerPostFixer","hasSuggestion","differ","author","discard","shouldConvertImageType","side","name","imageTypeInline","ImageCaptionEditing","start","Inline image to block image","has","getSuggestions","removeObject","nodeAfter","isInContent","imageStylePreApply","_descriptionFactory","imageStyle","getClosestSelectedImageElement","change","previous","formatInline","element","format","_splitMarkerName","getChangedMarkers","getCaptionFromImageModelElement","registerDescriptionCallback","commands","suggestion","editor","registerCustomCallback","imageInline","backward","normalizedStyles","get","markBlockFormat","alt","ImageUtils","*Reset image width*","*Format:* %0","deletion","getNearestSelectionRange","setImageNaturalSizeAttributes","findIndex","getSuggestionCallback","*Remove image text alternative*","forceDefaultExecution","markInlineFormat","end","caption","value","toPrevious","getContainedElement","insertion","commandReversedParams","addObject","insertImage","ELEMENT_CAPTION","ImageBlockEditing","getFirstRange","markDeletion","*Set image width:* %0","isIntersecting","imageBlock","convertInlineImageToBlock","accept","imageStylePostApply","getAttribute","newRange","isCollapsed","isEqual","registerElementLabel","discardSuggestion","ImageStyleEditing","type","createRangeOn","plugins","title","imageTypeBlock","ELEMENT_IMAGE","convertBlockImageToInline","length","next","newValue","find","enableCommand","head","document","markInsertion","forward","ImageInlineEditing","filter","commandParams","isBefore","nodeBefore","getSuggestion","resizeImage","model","selection","commandName","ImageCaptionUtils"];var Yi,tr;Yi=Zi,tr=429,function(t){for(;--t;)Yi.push(Yi.shift())}(++tr);const er=function(t,e){return Zi[t-=0]};class nr extends t.Plugin{afterInit(){const t=this[er("0x6d")];if(!t[er("0x22")][er("0x59")]("ImageEditing"))return;const n=t.plugins[er("0x72")]("TrackChangesEditing"),o=t.plugins[er("0x72")](er("0x75")),s={},i=t.locale;if(n[er("0x2b")](er("0xe")),n[er("0x5f")][er("0x1d")](er("0x15"),(t=>Yo(i,er("0x25"),t))),n[er("0x5f")][er("0x1d")](er("0x6f"),(t=>Yo(i,"ELEMENT_INLINE_IMAGE",t))),n[er("0x5f")].registerElementLabel(er("0x7"),(()=>Yo(i,er("0xf")))),t[er("0x22")][er("0x59")](er("0x44"))&&n[er("0x2b")]("uploadImage"),t[er("0x22")][er("0x59")](er("0x10"))&&t[er("0x22")].has(er("0x30"))&&(n[er("0x2b")](er("0x55"),((e,s)=>{const i=o.getClosestSelectedImageElement(t[er("0x37")][er("0x2d")][er("0x38")]);t[er("0x37")][er("0x62")]((()=>{n[er("0x73")](i,{commandName:"imageTypeInline",commandParams:[s]},[],er("0x26"))}))})),n[er("0x2b")](er("0x24"),((e,s)=>{t.model[er("0x62")]((i=>{let x=o.getClosestSelectedImageElement(t[er("0x37")][er("0x2d")][er("0x38")]),a=i[er("0x21")](x);const c=r.LivePosition.fromPosition(a[er("0x57")],er("0x9")),l=r.LivePosition.fromPosition(a.end,"toNext");n[er("0x4")]((()=>e(s))),x=o[er("0x61")](t[er("0x37")].document.selection),a=i[er("0x21")](x);const d=i[er("0x4c")](c,l);c.detach(),l.detach(),n[er("0x73")](x,{commandName:er("0x55"),commandParams:[s]},[],er("0x16")),d.start[er("0x33")](a.start)&&n[er("0x2e")](i[er("0x4c")](d[er("0x57")],a[er("0x57")]),er("0x16")),a[er("0x6")].isBefore(d[er("0x6")])&&n[er("0x2e")](i[er("0x4c")](a[er("0x6")],d[er("0x6")]),"convertInlineImageToBlock")}))})),n[er("0x47")][er("0x6e")](er("0x3f"),er("0x16"),"join",(()=>!1)),n[er("0x47")].registerCustomCallback(er("0x3f"),er("0x16"),er("0x17"),(()=>!1)),n[er("0x47")].registerCustomCallback(er("0x3f"),er("0x16"),er("0x51"),n[er("0x47")][er("0x2")](er("0x3f"),"",er("0x17"))),n[er("0x47")][er("0x6e")]("insertion","convertInlineImageToBlock",er("0x42"),(()=>!1)),n[er("0x47")][er("0x6e")](er("0xb"),er("0x16"),er("0x51"),(([e])=>{const o=n._suggestionFactory[er("0x2")](er("0xb"),"","discard");let s=e[er("0x57")],i=e[er("0x6")];const r=t.model[er("0x3c")][er("0x79")](s,er("0x70")),x=t[er("0x37")][er("0x3c")][er("0x79")](i,er("0x2f"));r[er("0x1b")]&&(s=r[er("0x57")]),x[er("0x1b")]&&(i=x[er("0x6")]),o([t[er("0x37")][er("0x4c")](s,i)])})),n[er("0x47")][er("0x6e")](er("0x3f"),er("0x16"),"chain",c),n[er("0x47")][er("0x6e")](er("0xb"),er("0x16"),er("0x4b"),c)),t[er("0x22")][er("0x59")](er("0x56"))&&(n[er("0x2b")](er("0x3d"),((e,s)=>{const i=t[er("0x22")][er("0x72")](er("0x3a"));let r=o[er("0x61")](t[er("0x37")][er("0x2d")].selection),x=i[er("0x69")](r);t[er("0x37")].change((()=>{if(x)return void n[er("0x12")](t[er("0x37")][er("0x21")](x));const a=o[er("0x48")](r);e(s),r=o.getClosestSelectedImageElement(t[er("0x37")].document[er("0x38")]),x=i[er("0x69")](r),n[er("0x2e")](t[er("0x37")].createRangeOn(x),a?null:er("0x3b"))}))})),n[er("0x47")].registerCustomCallback("insertion","imageCaption",er("0x4b"),c)),t[er("0x22")][er("0x59")]("ImageStyleEditing")){n[er("0x2b")](er("0x60"),((s,i)=>{const r=t[er("0x22")].get(er("0x41")).me,x=t[er("0x6b")][er("0x72")](er("0x60"));let a=o.getClosestSelectedImageElement(t[er("0x37")][er("0x2d")][er("0x38")]),c=t.model[er("0x21")](a),l=x[er("0x8")];if(l==i[er("0x8")])return;const d={commandName:"imageStyle",commandParams:[i],formatGroupId:(0,e.uid)()};t[er("0x37")][er("0x62")]((()=>{if(n[er("0x5a")]()[er("0x31")]((t=>t[er("0x5d")]&&r==t[er("0x50")]&&(er("0x3f")==t.type||er("0x64")==t[er("0x20")])&&(er("0x5e")==t[er("0x40")]||er("0x18")==t[er("0x40")])&&t[er("0x11")]().isEqual(c))).forEach((t=>n.discardSuggestion(t[er("0x2c")]))),a=o[er("0x61")](t[er("0x37")][er("0x2d")][er("0x38")]),c=t[er("0x37")].createRangeOn(a),x[er("0x45")](),t[er("0x6b")][er("0x72")](er("0x55"))[er("0x45")](),t[er("0x6b")][er("0x72")](er("0x24")).refresh(),l=x.value,l!=i[er("0x8")])return o.isInlineImage(a)&&x[er("0x52")](i[er("0x8")],a)?(s({...i,setImageSizes:!1}),a=o[er("0x61")](t.model[er("0x2d")][er("0x38")]),void n.markBlockFormat(a,{...d,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],er("0x5e"))):void(o[er("0x48")](a)?n[er("0x73")](a,d,[],"imageStylePostApply"):n[er("0x5")](c,d,"imageStylePostApply"))}))}));for(const e of t.plugins[er("0x72")](er("0x1f"))[er("0x71")])s[e[er("0x54")]]=e[er("0x23")][er("0x4a")]();n[er("0x47")].registerCustomCallback(er("0x3f"),er("0x5e"),er("0x42"),(()=>!1)),n[er("0x47")].registerCustomCallback(er("0x3f"),er("0x18"),er("0x42"),(()=>!1)),n[er("0x47")][er("0x6e")](er("0x64"),"imageStylePostApply",er("0x42"),(()=>!1)),n._suggestionFactory[er("0x6e")](er("0x3f"),"imageStylePreApply",er("0x17"),(([t])=>{o[er("0x0")](t.getContainedElement())})),n[er("0x47")][er("0x6e")](er("0x3f"),er("0x5e"),er("0x51"),((t,e)=>{n[er("0x47")].getSuggestionCallback(er("0x3f"),"",er("0x17"))(t,{commandName:e[er("0x39")],commandParams:e[er("0xc")]})})),n._suggestionFactory[er("0x6e")](er("0x3f"),er("0x5e"),er("0x4b"),c)}const x=[{type:er("0x3f"),subType:er("0x5e")},{type:"insertion",subType:er("0x3b")},{type:"formatBlock",subType:er("0x16")},{type:er("0xb"),subType:er("0x16")}];function a(t,e){const s=x[er("0x1")]((({type:e,subType:n})=>t[er("0x20")]==e&&t[er("0x40")]==n)),i=x[er("0x1")]((({type:t,subType:n})=>e[er("0x20")]==t&&e[er("0x40")]==n));if(s<0||i<0)return!1;const r=t[er("0x11")](),a=e[er("0x11")]();if((0==s||1==s)&&2==i&&r[er("0x14")](a))return!0;if(2==s&&3==i){const t=n._findSuggestions(r,er("0xb")).filter((({suggestion:t,meta:e})=>e.isOwn&&"convertInlineImageToBlock"==t[er("0x40")]));if(t[er("0x27")]>1&&a[er("0x6")][er("0x1c")](r[er("0x57")]))return!0;if(1==t.length&&(r[er("0x57")][er("0x1c")](a[er("0x6")])||r[er("0x6")][er("0x1c")](a[er("0x57")])))return!0}if(3==s&&3==i&&r[er("0x57")][er("0x33")](a.start)){const t=r[er("0x6")][er("0x5c")],e=a[er("0x57")][er("0x34")];return o[er("0x48")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[er("0x37")].document[er("0x4d")]((()=>{let e=!1;const s=Array.from(t[er("0x37")][er("0x2d")][er("0x4f")][er("0x68")]());for(const{name:t,data:i}of s){const{group:s,type:r,subType:x,id:a}=n[er("0x67")](t);if(er("0x6c")==s&&n[er("0x4e")](a)){if("formatBlock"==r&&("imageStylePreApply"==x||"imageStylePostApply"==x)){const t=n[er("0x35")](a);if(i[er("0x1a")]){const s=t[er("0x11")]()[er("0xa")]();if(o[er("0x48")](s))continue;n[er("0x1e")](t),e=!0}}if(er("0xb")==r&&"imageCaption"==x&&!i[er("0x1a")]){const t=n[er("0x35")](a);t.next&&t[er("0x28")][er("0x5d")]&&(n[er("0x1e")](t[er("0x28")]),e=!0)}}}return e})),t[er("0x22")][er("0x59")]("ImageResize")&&n[er("0x2b")](er("0x36"),((e,s)=>{const i=o.getClosestSelectedImageElement(t[er("0x37")].document.selection);i.getAttribute(er("0x46"))!=s.width&&t[er("0x37")][er("0x62")]((()=>{n[er("0x73")](i,{commandName:er("0x36"),commandParams:[s]})}))})),t[er("0x22")].has(er("0x43"))&&n[er("0x2b")](er("0x49"),((e,s)=>{const i=o[er("0x61")](t[er("0x37")][er("0x2d")].selection);(i[er("0x3e")](er("0x74"))?i[er("0x19")](er("0x74")):"")!=s[er("0x29")]&&t.model[er("0x62")]((()=>{n[er("0x73")](i,{commandName:er("0x49"),commandParams:[s]})}))})),n._descriptionFactory[er("0x6a")]((t=>{if(x[er("0x2a")]((({type:e,subType:n})=>t[er("0x20")]==e&&t[er("0x40")]==n)))return t[er("0x63")]?{}:void 0})),n._descriptionFactory[er("0x6a")]((t=>{if(er("0xb")==t[er("0x20")]||er("0x78")==t.type){const e=t[er("0xa")]();if(e&&e.is(er("0x65"),er("0x7")))return{type:er("0xb")==t[er("0x20")]?er("0xd"):er("0x5b"),element:e,quantity:1}}})),n._descriptionFactory[er("0x6a")]((t=>er("0x3f")==t[er("0x20")]&&er("0x16")==t[er("0x40")]?{type:er("0x66"),content:er("0x58")}:er("0x3f")==t[er("0x20")]&&er("0x26")==t[er("0x40")]?{type:er("0x66"),content:"Block image to inline image"}:void 0)),n[er("0x5f")][er("0x6a")]((t=>{const{data:e}=t;if(e){if(er("0x60")==e[er("0x39")]){const t=e[er("0x32")][0][er("0x8")];return n=er("0x53")===t?Yo(i,"FORMAT_SIDE_IMAGE"):s[t]||t,{type:er("0x66"),content:Yo(i,er("0x77"),n)}}if(er("0x49")==e[er("0x39")]){const t=e.commandParams[0][er("0x29")];return t?{type:er("0x66"),content:Yo(i,"*Set image text alternative:* %0",'"'+t+'"')}:{type:er("0x66"),content:Yo(i,er("0x3"))}}if(er("0x36")==e[er("0x39")]){const t=e[er("0x32")][0].width;return t?{type:er("0x66"),content:Yo(i,er("0x13"),t)}:{type:er("0x66"),content:Yo(i,er("0x76"))}}}var n}))}}const or=["enableCommand","getAttribute","markBlockFormat","get","replaceImageSource","src","handleReplaceImageCommand","handleSuggestionDescription","afterInit","selection","locale","discard","formatBlock","*Format:* replace image URL","_suggestionFactory","getSuggestionCallback","commandName","plugins","_descriptionFactory","accept","editor","getSuggestions","Users","model","change","getSelectedElement","registerCustomCallback","registerDescriptionCallback","TrackChangesEditing","source"];var sr,ir;sr=or,ir=346,function(t){for(;--t;)sr.push(sr.shift())}(++ir);const rr=function(t,e){return or[t-=0]};class xr extends t.Plugin{[rr("0x16")](){if(!this[rr("0x4")].plugins.has("ImageEditing"))return;const t=this[rr("0x4")][rr("0x1")][rr("0x11")](rr("0xc"));t[rr("0xe")](rr("0x12"),((t,e)=>this.handleReplaceImageCommand(t,e))),t._suggestionFactory[rr("0xa")](rr("0x1a"),"replaceImageSource",rr("0x3"),t._suggestionFactory.getSuggestionCallback(rr("0x1a"),null,"discard")),t[rr("0x1c")][rr("0xa")](rr("0x1a"),rr("0x12"),rr("0x19"),t._suggestionFactory[rr("0x1d")](rr("0x1a"),null,rr("0x3"))),t[rr("0x2")][rr("0xb")]((t=>this[rr("0x15")](t)))}[rr("0x14")](t,e){const n=this[rr("0x4")][rr("0x1")][rr("0x11")](rr("0xc")),o=this.editor[rr("0x7")].document[rr("0x17")][rr("0x9")]();this[rr("0x4")][rr("0x7")][rr("0x8")]((()=>{let s=o[rr("0xf")](rr("0x13"));const i=this.editor.plugins[rr("0x11")](rr("0x6")).me;for(const t of n[rr("0x5")]({skipNotAttached:!0})){const e=t.getContainedElement();if(rr("0x12")===t.subType&&e===o){t.author!==i&&t.discard(),s=t.data.commandParams[0][rr("0xd")];break}}t(e),n[rr("0x10")](o,{commandName:"replaceImageSource",commandParams:[{source:s}]},[],"replaceImageSource")}))}[rr("0x15")](t){const{data:e}=t;if(e&&rr("0x12")===e[rr("0x0")]){const t=rr("0x1b");return{type:"format",content:Yo(this[rr("0x4")][rr("0x18")],t)}}}}const ar=["forEach","enableCommand","_trackChangesValueDuringImport","get","execute","_trackChangesExecuted","_setSuggestionData","commands","value","dataInsert","lowest","listenTo","afterInit","editor","importWord","collaboration_features","high","_handleImportedData","plugins","trackChanges","TrackChangesEditing"];var cr,lr;cr=ar,lr=252,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const dr=function(t,e){return ar[t-=0]};class ur extends t.Plugin{constructor(t){super(t),this[dr("0x2")]=!1,this._trackChangesExecuted=!1}[dr("0xc")](){const t=this[dr("0xd")],e=t[dr("0x7")].get("importWord"),n=t[dr("0x7")][dr("0x3")](dr("0x13"));e&&(e.on("execute",((t,[,e])=>{this[dr("0x2")]=n[dr("0x8")],e[dr("0xf")].track_changes=!this[dr("0x2")]}),{priority:dr("0x10")}),this[dr("0xb")](e,dr("0x9"),this[dr("0x11")].bind(this)),this.listenTo(e,dr("0x9"),(()=>{this[dr("0x5")]&&(n.execute(),this[dr("0x5")]=!1)}),{priority:dr("0xa")}),t[dr("0x12")][dr("0x3")]("TrackChangesEditing")[dr("0x1")]("importWord"))}[dr("0x11")](t,e){const{suggestions:n}=e,o=this[dr("0xd")][dr("0x7")][dr("0x3")](dr("0x13")),s=o[dr("0x8")];this._trackChangesValueDuringImport!==s&&(o[dr("0x4")](),this[dr("0x5")]=!0),n&&n[dr("0x0")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[dr("0xd")][dr("0x12")][dr("0x3")]("Users").me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:dr("0xe")}}};this[dr("0xd")].plugins[dr("0x3")](dr("0x14"))[dr("0x6")](s)}))}}const gr=["outdent","has","get","commandName","_descriptionFactory","filter","*Outdent:* %0","plugins","indentBlock","change","afterInit","document","blockIndent","registerDescriptionCallback","enableCommand","format","indent","locale","TrackChangesEditing","outdentBlock","markBlockFormat","getItemLabel","*Indent:* %0","editor","from","model","getItems"];var mr,fr;mr=gr,fr=295,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]};class pr extends t.Plugin{[hr("0xc")](){const t=this[hr("0x19")],e=t[hr("0x9")][hr("0x4")](hr("0x14"));t[hr("0x9")][hr("0x3")]("IndentEditing")&&(e[hr("0x10")](hr("0x12")),e.enableCommand(hr("0x2")));const n=t[hr("0x13")];if(t.plugins[hr("0x3")]("IndentBlock")){for(const n of[hr("0xa"),"outdentBlock"])e[hr("0x10")](n,(()=>{const o=Array[hr("0x1a")](this[hr("0x19")].model[hr("0xd")].selection.getSelectedBlocks())[hr("0x7")]((t=>this[hr("0x19")][hr("0x0")].schema.checkAttribute(t,hr("0xe"))));t[hr("0x0")][hr("0xb")]((()=>{for(const t of o)e[hr("0x16")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:hr("0xa")})}))}));e[hr("0x6")][hr("0xf")]((t=>{const{data:o}=t;if(!o)return;if(hr("0xa")!=o[hr("0x5")]&&hr("0x15")!=o[hr("0x5")])return;const s=t[hr("0x1")]()[0],i=e._descriptionFactory[hr("0x17")](s);return"indentBlock"==o.commandName?{type:hr("0x11"),content:Yo(n,hr("0x18"),i)}:hr("0x15")==o[hr("0x5")]?{type:hr("0x11"),content:Yo(n,hr("0x8"),i)}:void 0}))}}}var br,Er,_r=["TrackChangesEditing","requires","enableCommand","get","plugins","init","editor"];br=_r,Er=478,function(t){for(;--t;)br.push(br.shift())}(++Er);var Tr=function(t,e){return _r[t-=0]};class Cr extends t.Plugin{static get[Tr("0x6")](){return[Qs.Input]}[Tr("0x3")](){this[Tr("0x4")][Tr("0x2")][Tr("0x1")](Tr("0x5"))[Tr("0x0")]("input")}}const yr=["afterInit","editor","*Set link:* %0","LinkEditing","link","_descriptionFactory","format","model","locale","change","getRanges","markInlineFormat","registerDescriptionCallback","from","document","plugins","linkHref","getFirstRange","has","getAttribute","enableCommand","commandName","commandParams","get","TrackChangesEditing","selection","*Remove link*","unlink","getFirstPosition"];var kr,Ar;kr=yr,Ar=475,function(t){for(;--t;)kr.push(kr.shift())}(++Ar);const vr=function(t,e){return yr[t-=0]};class Rr extends t.Plugin{[vr("0x12")](){const t=this[vr("0x13")];if(!t[vr("0x4")][vr("0x7")](vr("0x15")))return;const e=t[vr("0x4")][vr("0xc")](vr("0xd"));e[vr("0x9")]("link",((n,o)=>{const s=t[vr("0x19")][vr("0x3")][vr("0xe")];let i=[];if(s.isCollapsed){if(!s.hasAttribute(vr("0x5")))return void n(o);{const e=(0,Qs.findAttributeRange)(s[vr("0x11")](),vr("0x5"),s[vr("0x8")](vr("0x5")),t[vr("0x19")]);i=[e]}}else i=Array[vr("0x2")](s[vr("0x1c")]());t[vr("0x19")][vr("0x1b")]((()=>{for(const t of i)e[vr("0x0")](t,{commandName:vr("0x16"),commandParams:[o]})}))})),e[vr("0x9")](vr("0x10"),(()=>{const n=this[vr("0x13")][vr("0x19")],o=n[vr("0x3")][vr("0xe")];n.change((()=>{let n=[];n=o.isCollapsed?[(0,Qs.findAttributeRange)(o.getFirstPosition(),"linkHref",o[vr("0x8")](vr("0x5")),t[vr("0x19")])]:Es(vr("0x5"),o[vr("0x6")](),t[vr("0x19")]);for(const t of n)e[vr("0x0")](t,{commandName:vr("0x10"),commandParams:[]})}))})),e[vr("0x17")][vr("0x1")]((e=>{const{data:n}=e,o=t[vr("0x1a")];if(n){if(vr("0x16")==n[vr("0xa")]){const t=n[vr("0xb")][0];return{type:vr("0x18"),content:Yo(o,vr("0x14"),'"'+t+'"')}}return vr("0x10")==n[vr("0xa")]?{type:vr("0x18"),content:Yo(o,vr("0xf"))}:void 0}}))}}const Sr=["paragraph","execute","todoListChecked","registerDescriptionCallback","_descriptionFactory","element","TodoListEditing","findIndex","afterInit","nextSibling","numberedList","name","model","parent","ELEMENT_TODO_LIST","List","get","filter","TrackChangesEditing","commands","change","getAttribute","commandParams","*Change to:* %0","markBlockFormat","slice","bulletedList","todo","listItem","bulleted","add","*Indent:* %0","length","listIndent","locale","document","getSelectedBlocks","selection","push","_selectedElements","editor","before","replace","ELEMENT_LIST_ITEM","outdentList","ListEditing","end","checkChild","checkTodoList","createRange","createPositionAt","previousSibling","has","todoList","*Outdent:* %0","plugins","enableCommand","commandName","value","format","from"];var Ir,Lr;Ir=Sr,Lr=104,function(t){for(;--t;)Ir.push(Ir.shift())}(++Lr);const Nr=function(t,e){return Sr[t-=0]};class wr extends t.Plugin{[Nr("0x1a")](){const t=this[Nr("0x3a")],e=t[Nr("0x34")];if(!t[Nr("0xc")].has(Nr("0x2")))return;const n=t[Nr("0xc")].get(Nr("0x24")),o=t.plugins[Nr("0x9")](Nr("0x18"));function s(e){return()=>{const o=t[Nr("0x1e")][Nr("0x35")][Nr("0x37")],s=t[Nr("0x25")][Nr("0x22")](e);if(s[Nr("0xf")])return void t[Nr("0x13")](Nr("0x12"),{});const i=e[Nr("0x2b")](0,-4),r=function(t,e,n){let o=Array[Nr("0x11")](t).filter((t=>{return e=t,(o=n)[Nr("0x4")](e[Nr("0x1f")],Nr("0x2e"))&&!o.isObject(e);var e,o}));o=o[Nr("0x23")]((t=>!t.is(Nr("0x17"),Nr("0x2e"))||t.getAttribute("listType")!=e));const s=new Set;for(const t of o)t.is(Nr("0x17"),Nr("0x2e"))?s.add(Mr(t)):s[Nr("0x30")](t);return Array[Nr("0x11")](s)}(o[Nr("0x36")](),i,t.model.schema);t[Nr("0x1e")][Nr("0x26")]((()=>{for(const t of r)n[Nr("0x2a")](t,{commandName:e,commandParams:[{forceValue:!s[Nr("0xf")]}],formatGroupId:"blockName"},Or(t))}))}}function i(e){return()=>{const o=function(t){let e=Array[Nr("0x11")](t);const n=e[Nr("0x19")]((t=>Nr("0x2e")!=t[Nr("0x1d")]));return n>-1&&(e=e[Nr("0x2b")](0,n)),e}(t[Nr("0x1e")][Nr("0x35")][Nr("0x37")][Nr("0x36")]()),s=t[Nr("0x1e")][Nr("0x6")](t[Nr("0x1e")][Nr("0x7")](o[0],Nr("0x3b")),t.model.createPositionAt(o[o[Nr("0x32")]-1],Nr("0x3")));t.model[Nr("0x26")]((()=>{n[Nr("0x2a")](s,{commandName:e,commandParams:[],formatGroupId:Nr("0x33")},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t[Nr("0x27")]("listIndent")>n[Nr("0x27")]("listIndent");)e.add(t),t=t[Nr("0x1b")]}return Array[Nr("0x11")](e)}(o))}))}}n[Nr("0xd")](Nr("0x1c"),s(Nr("0x1c"))),n[Nr("0xd")](Nr("0x2c"),s(Nr("0x2c"))),o&&n[Nr("0xd")]("todoList",s(Nr("0xa"))),n.enableCommand("indentList",i("indentList")),n[Nr("0xd")](Nr("0x1"),i("outdentList")),o&&n[Nr("0xd")]("checkTodoList",(()=>{const e=t[Nr("0x25")][Nr("0x22")](Nr("0x5")),o=Array[Nr("0x11")](e[Nr("0x39")]);o.filter((t=>t.getAttribute(Nr("0x14"))!=e[Nr("0xf")])),t.model[Nr("0x26")]((()=>{for(const t of o)n.markBlockFormat(t,{commandName:"checkTodoList",commandParams:[{forceValue:!e.value}]})}))})),n[Nr("0x16")].registerElementLabel(Nr("0x2e"),(t=>Yo(e,"ELEMENT_LIST_ITEM",t))),n[Nr("0x16")][Nr("0x15")]((t=>{const{data:n}=t;if(n){if(Nr("0x1c")==n[Nr("0xe")]||Nr("0x2c")==n[Nr("0xe")]||Nr("0xa")==n[Nr("0xe")])switch(n.commandName[Nr("0x3c")](Nr("0x21"),"")){case Nr("0x2f"):return o(Yo(e,"ELEMENT_BULLETED_LIST"));case"numbered":return o(Yo(e,"ELEMENT_NUMBERED_LIST"));case Nr("0x2d"):return o(Yo(e,Nr("0x20")))}if("indentList"==n.commandName)return{type:Nr("0x10"),content:Yo(e,Nr("0x31"),Yo(e,"ELEMENT_LIST_ITEM"))};if(Nr("0x1")==n.commandName)return{type:Nr("0x10"),content:Yo(e,Nr("0xb"),Yo(e,Nr("0x0")))};if("checkTodoList"==n[Nr("0xe")])return n[Nr("0x28")][0].forceValue?{type:Nr("0x10"),content:Yo(e,"*Check item*")}:{type:Nr("0x10"),content:Yo(e,"*Uncheck item*")}}function o(t){return{type:"format",content:Yo(e,Nr("0x29"),t)}}}))}}function Mr(t){const e=t[Nr("0x27")](Nr("0x33"));if(0==e)return t;let n=t;for(;t[Nr("0x8")]&&t[Nr("0x8")].is(Nr("0x17"),Nr("0x2e"));){const o=t[Nr("0x8")][Nr("0x27")](Nr("0x33"));if(o==e)n=t.previousSibling;else if(o<e)break;t=t[Nr("0x8")]}return n}function Or(t){const e=[];if(t.is("element",Nr("0x2e"))&&t[Nr("0x27")](Nr("0x33"))>0){let n=t[Nr("0x1b")];for(;n&&Nr("0x2e")==n.name&&n[Nr("0x27")](Nr("0x33"))==t[Nr("0x27")](Nr("0x33"));)e[Nr("0x38")](n),n=n[Nr("0x1b")]}return e}const Fr=["handleListStyleCommand","map","listStyle","model","_LIST_","ListUtils","forward","_getTranslationKeyForListStyle","ListPropertiesEditing","_getSuggestionBlocks","backward","listReversed","bind","handleListReversedCommand","reversed","registerDescriptionCallback","commandParams","element","getAttribute","unshift","from","getFirstPosition","commandName","*Format:* set order to reversed","replace","change","document","listItem","numbered","handleDescriptions","length","getSelectedBlocks","enableCommand","startIndex","_getSuggestionBlocksForListStyle","has","before","editor","listType","plugins","get","toUpperCase","TrackChangesEditing","handleListStartCommand","createPositionAt","createRange","parent","getSiblingNodes","afterInit","getLastPosition","type","filter","selection","styles","_descriptionFactory","markMultiRangeBlockFormat","listStart"];var Pr,Dr;Pr=Fr,Dr=203,function(t){for(;--t;)Pr.push(Pr.shift())}(++Dr);const Br=function(t,e){return Fr[t-=0]};class jr extends t.Plugin{[Br("0x10")](){if(!this.editor[Br("0x7")][Br("0x3")](Br("0x21")))return;const t=this[Br("0x5")].config.get("list.properties"),e=this[Br("0x5")][Br("0x7")][Br("0x8")]("TrackChangesEditing");t[Br("0x15")]&&e[Br("0x0")]("listStyle",this.handleListStyleCommand[Br("0x25")](this)),t[Br("0x27")]&&e[Br("0x0")](Br("0x24"),this[Br("0x26")][Br("0x25")](this)),t[Br("0x1")]&&e[Br("0x0")](Br("0x18"),this[Br("0xb")][Br("0x25")](this)),e[Br("0x16")][Br("0x28")](this[Br("0x36")][Br("0x25")](this))}[Br("0x19")](t,e={}){const n=this[Br("0x5")][Br("0x7")].get(Br("0xa")),o=this[Br("0x2")]();this[Br("0x5")][Br("0x1c")][Br("0x32")]((()=>{n[Br("0x17")](o,{commandName:"listStyle",commandParams:[{type:e[Br("0x12")]}],formatGroupId:Br("0x1b")})}))}[Br("0x26")](t,e={}){const n=this[Br("0x5")][Br("0x7")][Br("0x8")](Br("0xa")),o=this._getSuggestionBlocks((t=>t.is(Br("0x2a"),Br("0x34"))&&"numbered"===t[Br("0x2b")](Br("0x6"))));if(o[Br("0x37")]<1)return;const s=o[Br("0x1a")]((t=>this[Br("0x5")].model[Br("0xd")](this[Br("0x5")][Br("0x1c")][Br("0xc")](t,Br("0x4")),this[Br("0x5")].model[Br("0xc")](t,0))));this[Br("0x5")][Br("0x1c")].change((()=>{n[Br("0x17")](s,{commandName:Br("0x24"),commandParams:[{reversed:e.reversed}],formatGroupId:Br("0x24")})}))}[Br("0xb")](t,e={}){const n=this[Br("0x5")][Br("0x7")][Br("0x8")]("TrackChangesEditing"),o=this[Br("0x22")]((t=>t.is("element",Br("0x34"))&&Br("0x35")===t.getAttribute("listType")));if(o[Br("0x37")]<1)return;const s=o[Br("0x1a")]((t=>this[Br("0x5")][Br("0x1c")][Br("0xd")](this[Br("0x5")][Br("0x1c")][Br("0xc")](t,"before"),this[Br("0x5")][Br("0x1c")].createPositionAt(t,0))));this.editor[Br("0x1c")][Br("0x32")]((()=>{n[Br("0x17")](s,{commandName:Br("0x18"),commandParams:[{startIndex:e[Br("0x1")]}],formatGroupId:Br("0x18")})}))}handleDescriptions(t){const e=this[Br("0x5")].locale,{data:n}=t;if(!n)return;let o,s;switch(n[Br("0x2f")]){case Br("0x1b"):o="*Change to:* %0",s={type:"format",content:Yo(e,o,Yo(e,this[Br("0x20")](n[Br("0x29")][0].type)))};break;case Br("0x24"):o=n.commandParams[0][Br("0x27")]?Br("0x30"):"*Format:* set order to regular",s={type:"format",content:Yo(e,o)};break;case Br("0x18"):o="*Format:* set start index to %0",s={type:"format",content:Yo(e,o,n[Br("0x29")][0][Br("0x1")])}}return s}[Br("0x2")](){var t,e,n,o;const s=this.editor[Br("0x7")].get(Br("0x1e"));let i=Array.from(this.editor[Br("0x1c")][Br("0x33")][Br("0x14")][Br("0x38")]());return(null===(t=i[0])||void 0===t?void 0:t.is(Br("0x2a"),Br("0x34")))&&i[Br("0x2c")](...s[Br("0xf")](this[Br("0x5")][Br("0x1c")][Br("0x33")][Br("0x14")][Br("0x2e")](),Br("0x23"))),(null===(e=i[i[Br("0x37")]-1])||void 0===e?void 0:e.is(Br("0x2a"),Br("0x34")))&&i.push(...s[Br("0xf")](this[Br("0x5")][Br("0x1c")][Br("0x33")][Br("0x14")][Br("0x11")](),Br("0x1f"))),i=[...new Set(i)],(null===(o=null===(n=this[Br("0x5")].model[Br("0x33")][Br("0x14")][Br("0x2e")]())||void 0===n?void 0:n[Br("0xe")])||void 0===o?void 0:o.is(Br("0x2a"),"listItem"))&&(i=i.filter((t=>t.is(Br("0x2a"),"listItem")))),i}_getSuggestionBlocks(t){const e=this.editor.plugins[Br("0x8")](Br("0x1e"));let n=Array[Br("0x2d")](this[Br("0x5")].model.document[Br("0x14")][Br("0x38")]())[Br("0x13")](t)[Br("0x1a")]((t=>{const n=this.editor[Br("0x1c")][Br("0xc")](t,0);return[...e[Br("0xf")](n,Br("0x23")),...e[Br("0xf")](n,Br("0x1f"))]})).flat();return n=[...new Set(n)],n}[Br("0x20")](t){return"ELEMENT_"+this[Br("0x5")][Br("0x7")][Br("0x8")]("ListUtils").getListTypeFromListStyleType(t)[Br("0x9")]()+Br("0x1d")+t[Br("0x9")]()[Br("0x31")](/-/g,"_")}}const Ur=["high","ELEMENT_MEDIA","stop","conversion","createEmptyElement","_descriptionFactory","dataDowncast","MediaEmbedEditing","TrackChangesEditing","get","locale","editor","has","afterInit","options","plugins","media","showSuggestionHighlights","mediaEmbed","attribute:url:media"];var Gr,Hr;Gr=Ur,Hr=371,function(t){for(;--t;)Gr.push(Gr.shift())}(++Hr);const Wr=function(t,e){return Ur[t-=0]};class zr extends t.Plugin{[Wr("0x2")](){const t=this[Wr("0x0")];if(!t[Wr("0x4")][Wr("0x1")](Wr("0x10")))return;const e=t[Wr("0x4")][Wr("0x12")](Wr("0x11")),n=t[Wr("0x13")];e.enableCommand(Wr("0x7")),e[Wr("0xe")].registerElementLabel(Wr("0x5"),(t=>Yo(n,Wr("0xa"),t))),t[Wr("0xc")].for(Wr("0xf")).elementToElement({model:"media",view:(t,{writer:e,options:n})=>{if(n[Wr("0x6")])return e[Wr("0xd")]("div")},converterPriority:"high"}),t.data.downcastDispatcher.on(Wr("0x8"),((t,e,n)=>{n[Wr("0x3")].showSuggestionHighlights&&t[Wr("0xb")]()}),{priority:Wr("0x9")})}}const Vr=["mention","editor","TrackChangesEditing","enableCommand","MentionEditing","has"];var Kr,qr;Kr=Vr,qr=375,function(t){for(;--t;)Kr.push(Kr.shift())}(++qr);const Xr=function(t,e){return Vr[t-=0]};class $r extends t.Plugin{afterInit(){const t=this[Xr("0x4")];t.plugins[Xr("0x2")](Xr("0x1"))&&t.plugins.get(Xr("0x5"))[Xr("0x0")](Xr("0x3"))}}const Qr=["get","afterInit","editor","plugins","enableCommand","locale","registerElementLabel","_descriptionFactory","TrackChangesEditing"];var Jr,Zr;Jr=Qr,Zr=304,function(t){for(;--t;)Jr.push(Jr.shift())}(++Zr);const Yr=function(t,e){return Qr[t-=0]};class tx extends t.Plugin{[Yr("0x3")](){const t=this[Yr("0x4")];if(!t[Yr("0x5")].has("PageBreakEditing"))return;t[Yr("0x5")][Yr("0x2")](Yr("0x1"))[Yr("0x6")]("pageBreak");const e=t[Yr("0x5")][Yr("0x2")](Yr("0x1")),n=t[Yr("0x7")];e[Yr("0x0")][Yr("0x8")]("pageBreak",(t=>Yo(n,"ELEMENT_PAGE_BREAK",t)))}}const ex=["markBlockFormat","markerRange","has","commandName","insertion","locale","consume","isTouching","registerElementLabel","ELEMENT_PARAGRAPH","ck-suggestion-marker-split","data","insert","$text","end","selection","paragraph","nodeAfter","enableCommand","registerDescriptionCallback","TrackChangesEditing","markerName","model","schema","bindElementToMarker","isObject","*Insert:* %0","activeMarkers","addClass","addMarker:suggestion:insertion","span","checkChild","change","toViewPosition","blockName","plugins","getFirstRange","editor","mapper","options","isLimit","getItemLabel","get","Paragraph","afterInit","from","filter","type","parent","writer","getSelectedBlocks","_descriptionFactory","name","isBlock"];var nx,ox;nx=ex,ox=309,function(t){for(;--t;)nx.push(nx.shift())}(++ox);const sx=function(t,e){return ex[t-=0]};class ix extends t.Plugin{[sx("0x5")](){const t=this[sx("0x34")];if(!t[sx("0x32")][sx("0x11")](sx("0x4")))return;const e=t[sx("0x14")],n=t[sx("0x32")][sx("0x3")](sx("0x23"));n[sx("0xc")][sx("0x17")](sx("0x1f"),(t=>Yo(e,sx("0x18"),t))),n[sx("0x21")](sx("0x1f"),((e,o={})=>{const s=t.model.document,i=o.selection||s[sx("0x1e")],r=Array[sx("0x6")](i[sx("0xb")]())[sx("0x7")]((t=>{return e=t,(n=this[sx("0x34")][sx("0x25")][sx("0x26")])[sx("0x2e")](e[sx("0x9")],"paragraph")&&!n[sx("0x28")](e)&&sx("0x1f")!=e.name;var e,n}));t.model[sx("0x2f")]((()=>{for(const t of r)n[sx("0xf")](t,{commandName:sx("0x1f"),commandParams:[],formatGroupId:sx("0x31")},_s(t))}))})),n._descriptionFactory[sx("0x22")]((t=>{const{data:n}=t;if(n&&sx("0x1f")==n[sx("0x12")])return{type:"format",content:Yo(e,"*Change to:* %0",Yo(e,sx("0x18")))}})),n[sx("0x21")]("insertParagraph"),t.editing.downcastDispatcher.on("addMarker:suggestion:insertion",rx(t),{priority:"highest"}),t[sx("0x1a")].downcastDispatcher.on(sx("0x2c"),((e,n,o)=>{o[sx("0x0")].showSuggestionHighlights&&rx(t,{showActiveMarker:!1})(e,n,o)}),{priority:"highest"});const o=n[sx("0xc")];o[sx("0x22")]((n=>{if(sx("0x13")!==n[sx("0x8")])return;const{start:s,end:i}=n[sx("0x33")]();if(!s[sx("0x16")](i)||!s[sx("0x20")])return;const r=t[sx("0x25")][sx("0x26")],x=s[sx("0x20")];return r[sx("0xe")](x)&&!r.isLimit(x)&&r[sx("0x2e")](x,sx("0x1c"))?{type:sx("0x13"),content:Yo(e,sx("0x29"),o[sx("0x2")](x,1))}:void 0}))}}function rx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const i=t[sx("0x32")][sx("0x3")]("TrackChangesEditing"),r=o[sx("0x10")].start,x=o[sx("0x10")][sx("0x1d")],a=t[sx("0x25")][sx("0x26")];if(!r[sx("0x16")](x)||!r.nodeAfter)return;const c=r[sx("0x20")];if(a.isBlock(c)&&!a[sx("0x1")](c)&&a[sx("0x2e")](c,"$text")){if(!s.consumable[sx("0x15")](o[sx("0x10")],n[sx("0xd")]))return;const t=s[sx("0xa")].createUIElement(sx("0x2d"),{class:sx("0x19")}),r=s[sx("0x35")][sx("0x30")](x);e&&i[sx("0x2a")].includes(o.markerName)&&s[sx("0xa")][sx("0x2b")]("ck-suggestion-marker--active",t),s.writer[sx("0x1b")](r,t),s[sx("0x35")][sx("0x27")](t,o[sx("0x24")])}}}const xx=["TrackChangesEditing","isFormatting","schema","removeFormat","enableCommand","editor","createRangeOn","get","document","*Remove all formatting*","getAttributes","_descriptionFactory","from","has","getItems","selection","registerDescriptionCallback","RemoveFormatEditing","getAttributeProperties","afterInit","commandName","locale","model","change","plugins"];var ax,cx;ax=xx,cx=387,function(t){for(;--t;)ax.push(ax.shift())}(++cx);const lx=function(t,e){return xx[t-=0]};class dx extends t.Plugin{[lx("0x7")](){const t=this[lx("0x12")];if(!t[lx("0xc")][lx("0x1")](lx("0x5")))return;const e=t[lx("0xc")][lx("0x14")](lx("0xd"));e[lx("0x11")](lx("0x10"),(n=>{const o=t.model[lx("0x15")][lx("0x3")];o.isCollapsed?n():t.model[lx("0xb")]((()=>{const n=Array[lx("0x0")](o.getRanges());for(const o of n)for(const n of o[lx("0x2")]())ux(n,t[lx("0xa")][lx("0xf")])&&e.markInlineFormat(t[lx("0xa")][lx("0x13")](n),{commandName:lx("0x10"),commandParams:[]})}))})),e[lx("0x18")][lx("0x4")]((e=>{const{data:n}=e;if(n&&lx("0x10")==n[lx("0x8")])return{type:"format",content:Yo(t[lx("0x9")],lx("0x16"))}}))}}function ux(t,e){for(const[n]of t[lx("0x17")]()){const t=e[lx("0x6")](n);if(t&&t[lx("0xe")])return!0}return!1}const gx=["acceptSelectedSuggestions","enableCommand","discardSelectedSuggestions","goToNextRestrictedEditingException","discardAllSuggestions","RestrictedEditingModeEditing","plugins","acceptAllSuggestions","afterInit","trackChanges","TrackChangesEditing","discardSuggestion","editor","goToPreviousRestrictedEditingException","get"];var mx,fx;mx=gx,fx=191,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{[hx("0xc")](){const t=this[hx("0x1")];if(!t.plugins.has(hx("0x9")))return;const e=t.plugins[hx("0x3")](hx("0xe"));e[hx("0x5")](hx("0x2")),e[hx("0x5")](hx("0x7"));const n=t[hx("0xa")][hx("0x3")](hx("0x9"));n.enableCommand(hx("0xd")),n[hx("0x5")]("acceptSuggestion"),n.enableCommand(hx("0x0")),n.enableCommand(hx("0xb")),n[hx("0x5")](hx("0x8")),n.enableCommand(hx("0x4")),n.enableCommand(hx("0x6"))}}const bx=["bindElementToMarker","split","createPositionBefore","createUIElement","merge","editor","includes","ck-suggestion-marker--active","activeMarkers","ck-suggestion-marker-","getItems","ELEMENT_LINE_BREAK","deletion","locale","consumable","addMarker:suggestion:insertion","mapper","editing","get","TrackChangesEditing","markerName","registerElementLabel","options","shiftEnter","addClass","requires","high","toViewPosition","showSuggestionHighlights","downcastDispatcher","insert","writer","plugins","markerRange","span","_descriptionFactory","softBreak","test"];var Ex,_x;Ex=bx,_x=223,function(t){for(;--t;)Ex.push(Ex.shift())}(++_x);const Tx=function(t,e){return bx[t-=0]};class Cx extends t.Plugin{static get[Tx("0x1e")](){return[xi.ShiftEnter]}init(){const t=this[Tx("0xa")],e=t[Tx("0x25")][Tx("0x17")]("TrackChangesEditing");e.enableCommand(Tx("0x1c")),t.editing[Tx("0x22")].on(Tx("0x14"),yx(t),{priority:"high"}),t[Tx("0x16")][Tx("0x22")].on("addMarker:suggestion:deletion",yx(t),{priority:Tx("0x1f")}),t.data.downcastDispatcher.on("addMarker:suggestion",((e,n,o)=>{o[Tx("0x1b")][Tx("0x21")]&&yx(t,{showActiveMarker:!1})(e,n,o)})),e[Tx("0x2")][Tx("0x1a")](Tx("0x3"),(e=>Yo(t[Tx("0x12")],Tx("0x10"),e)))}}function yx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const i=t[Tx("0x25")][Tx("0x17")](Tx("0x18"));if(!s[Tx("0x13")][Tx("0x4")](o[Tx("0x0")],n.name))return;const r=t.model;for(const t of o[Tx("0x0")][Tx("0xf")]()){if(!t.is("element",Tx("0x3")))continue;const n=Tx("0x11")==o[Tx("0x19")][Tx("0x6")](":")[1]?Tx("0x9"):Tx("0x6"),x=s[Tx("0x24")][Tx("0x8")](Tx("0x1"),{class:Tx("0xe")+n}),a=s[Tx("0x15")][Tx("0x20")](r[Tx("0x7")](t));e&&i[Tx("0xd")][Tx("0xb")](o.markerName)&&s[Tx("0x24")][Tx("0x1d")](Tx("0xc"),x),s[Tx("0x24")][Tx("0x23")](a,x),s[Tx("0x15")][Tx("0x5")](x,o[Tx("0x19")])}}}const kx=["selection","value","enableCommand","FORMAT_RESTRICTED_ENABLED","registerDescriptionCallback","forceValue","_descriptionFactory","has","commandParams","commands","markInlineFormat","FORMAT_RESTRICTED_DISABLED","change","getRanges","from","get","restrictedEditingException","format","document","locale","plugins"];var Ax,vx;Ax=kx,vx=393,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Sx extends t.Plugin{afterInit(){const t=this.editor,e=t.model,n=t[Rx("0x4")];if(!t[Rx("0x5")][Rx("0xd")]("StandardEditingModeEditing"))return;const o=t.plugins[Rx("0x0")]("TrackChangesEditing"),s=Rx("0x1"),i=t[Rx("0xf")][Rx("0x0")](s);o[Rx("0x8")](s,((t,n={})=>{const r=e[Rx("0x3")][Rx("0x6")];if(r.isCollapsed)return void t(n);const x=void 0!==n.forceValue?n[Rx("0xb")]:!i[Rx("0x7")];e[Rx("0x12")]((()=>{const t=Array[Rx("0x14")](r[Rx("0x13")]());for(const n of t){const t=x?[n]:Es(s,n,e);for(const e of t)o[Rx("0x10")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[Rx("0xc")][Rx("0xa")]((t=>{const{data:e}=t;if(e&&e.commandName==s)return e[Rx("0xe")][0][Rx("0xb")]?{type:Rx("0x2"),content:Yo(n,Rx("0x9"))}:{type:Rx("0x2"),content:Yo(n,Rx("0x11"))}}))}}const Ix=["getRanges","commandName","find","name","isBlock","every","createRangeOn","afterInit","getItems","model","push","_descriptionFactory","styleName","getSelectedBlocks","DataSchema","element","style","config","plugins","markBlockFormat","getDefinitionsForView","TrackChangesEditing","document","Style","StyleUtils","getAttribute","get","commands","inline","_getStyleDefinition","_getRangesWithClasses","style:","*Remove format:* %0","selection","modelElements","format","change","includes","locale","style.definitions","toLowerCase","classes","block","*Format:* %0","getAncestors","add","commandParams","value","from","editor"];var Lx,Nx;Lx=Ix,Nx=498,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const wx=function(t,e){return Ix[t-=0]};class Mx extends t.Plugin{[wx("0x9")](){const t=this[wx("0x1")];if(!t[wx("0x14")].has(wx("0x19")))return;const e=t[wx("0x1d")][wx("0x1c")](wx("0x12")),n=t.plugins[wx("0x1c")](wx("0x17")),o=t[wx("0x28")],s=t.plugins[wx("0x1c")](wx("0x10")),i=t[wx("0x14")][wx("0x1c")](wx("0x1a")).normalizeConfig(s,t[wx("0x13")].get(wx("0x29")));n.enableCommand(wx("0x12"),((o,{styleName:r})=>{const x=t[wx("0xb")][wx("0x18")][wx("0x23")],a=this[wx("0x1f")](r,i);if(!a)return;if(!e.enabledStyles[wx("0x27")](r))return;if(x.isCollapsed&&!a[wx("0x6")])return void o({styleName:r});const c=!e[wx("0x31")][wx("0x27")](a.name);if(a[wx("0x6")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o[wx("0x2e")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[wx("0x27")](o.name)){n[wx("0x2f")](o);break}}return n}(x[wx("0xf")](),a[wx("0x24")]);t[wx("0xb")][wx("0x26")]((()=>{for(const t of e)n[wx("0x15")](t,{commandName:wx("0x12"),commandParams:[{styleName:r,forceValue:c}],formatGroupId:wx("0x21")+r})}))}else{let e=Array[wx("0x0")](x[wx("0x2")]());if(!c){const n=Array.from(s[wx("0x16")](a[wx("0x11")],!1))[0].model,o=[];for(const s of e){const e=this[wx("0x20")](t[wx("0xb")],s,a[wx("0x2b")],n);o[wx("0xc")](...e)}e=o}t[wx("0xb")][wx("0x26")]((()=>{for(const t of e)n.markInlineFormat(t,{commandName:wx("0x12"),commandParams:[{styleName:r,forceValue:c}]})}))}})),n[wx("0xd")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&wx("0x12")===e[wx("0x3")])return e.commandParams[0].forceValue?{type:wx("0x25"),content:Yo(o,wx("0x2d"),e[wx("0x30")][0].styleName[wx("0x2a")]())}:{type:wx("0x25"),content:Yo(o,wx("0x22"),e.commandParams[0][wx("0xe")][wx("0x2a")]())}}))}_getStyleDefinition(t,e){let n=e[wx("0x2c")][wx("0x4")]((e=>e[wx("0x5")]===t));return n||(n=e[wx("0x1e")][wx("0x4")]((e=>e[wx("0x5")]===t))),n}[wx("0x20")](t,e,n,o){const s=[];for(const i of e[wx("0xa")]()){const e=i[wx("0x1b")](o);e&&n[wx("0x7")]((t=>e[wx("0x2b")][wx("0x27")](t)))&&s[wx("0xc")](t[wx("0x8")](i))}return s}}const Ox=["TableEditing","span","max","writer","position","detach","left","fromRange","maxRow","registerPostFixer","removeClass","downcastDispatcher","addClass","name","toViewElement","tableCell","document","createPositionAt","classes","ELEMENT_TABLE_WITH_TEXT","_getSuggestionCoords","isInContent","last","nodeAfter","TrackChangesEditing","deletion","nodeBefore","getSelectionAffectedTableCells","type","toLowerCase","ELEMENT_TABLE_ROW","root","insertion","length","*Insert:* %0","getItems","MAX_SAFE_INTEGER","join","enableCommand","enqueueChange","low","_tableSuggestions","refresh","oldRange","getRowIndexes","tablePaste","min","ELEMENT_TABLE_COLUMN_WITH_TEXT","registerElementLabel","data","createTableWalker","forceValue","setSelection","ELEMENT_TABLE_COLUMN","start","options","markMultiRangeInsertion","findAncestor","commands","_suggestionFactory","insertTableRowBelow","tableColumn","selection","getFirstRange","getAttribute","highest","_setupColumnsRowsFixing","includes","above","cell","colspan","TableUtils","_descriptionFactory","model","insertTableRowAbove","isEqual","$graveyard","values","_tablePostFixingSubtypes","ELEMENT_TABLE_ROW_WITH_TEXT","every","end","rootName","discard","removeTableColumn","*Remove:* %0","filter","order","_acceptFormatSuggestionCallbackFactory","tableRow","hasAttribute","some","insertTableColumnRight","editor","insert","table","accept","from","afterInit","map","item","getSuggestion","change","element","execute","getRanges","add","$textProxy","has","insertTable","isTouching","_splitMarkerName","differ","subType","maxColumn","registerCustomCallback","createRangeOn","removeTableRow","_getCoordsForCells","getCellLocation","insertTableColumnLeft","push","plugins","registerDescriptionCallback","minColumn","substr","get","addRange","getChildren","first"];var Fx,Px;Fx=Ox,Px=308,function(t){for(;--t;)Fx.push(Fx.shift())}(++Px);const Dx=function(t,e){return Ox[t-=0]};class Bx extends t.Plugin{constructor(t){super(t),this[Dx("0x1e")]=["tableRow",Dx("0xd")],this[Dx("0x7b")]=new Set}[Dx("0x32")](){const t=this[Dx("0x2d")],e=t[Dx("0x19")][Dx("0x62")][Dx("0xe")];if(!t[Dx("0x4a")][Dx("0x3c")](Dx("0x52")))return;const n=t.locale,o=t.plugins.get(Dx("0x6a")),s=t.plugins.get(Dx("0x17"));o[Dx("0x18")][Dx("0x0")]("table",(t=>Yo(n,"ELEMENT_TABLE",t))),this[Dx("0x12")](),o.enableCommand(Dx("0x3d")),o[Dx("0x78")]("selectTableRow"),o[Dx("0x78")]("selectTableColumn");for(const n of[Dx("0x1a"),Dx("0xc")]){const i=t[Dx("0xa")][Dx("0x4e")](n);o.enableCommand(n,(n=>{t.model[Dx("0x36")]((t=>{n();const r=Dx("0x14")===i[Dx("0x27")],x=s.getSelectionAffectedTableCells(e),a=s[Dx("0x7e")](x),c=r?a[Dx("0x51")]-1:a[Dx("0x68")]+1,l=x[0][Dx("0x9")](Dx("0x2f")),d=s[Dx("0x2")](l,{startRow:c,endRow:c}),u=Array.from(d)[Dx("0x33")]((e=>t[Dx("0x44")](e[Dx("0x15")])));o[Dx("0x8")](u,Dx("0x29"))}))}))}for(const n of[Dx("0x48"),Dx("0x2c")]){const i=t.commands[Dx("0x4e")](n);o[Dx("0x78")](n,(n=>{t[Dx("0x19")].change((t=>{n();const r=Dx("0x58")===i.order,x=s[Dx("0x6d")](e),a=s.getColumnIndexes(x),c=r?a.first-1:a[Dx("0x68")]+1,l=x[0][Dx("0x9")](Dx("0x2f")),d=s[Dx("0x2")](l,{startRow:0,column:c,includeAllSlots:!1}),u=Array.from(d).map((e=>t[Dx("0x44")](e[Dx("0x15")])));o[Dx("0x8")](u,Dx("0xd"))}))}))}for(const n of[Dx("0x45"),Dx("0x24")]){const i=n[Dx("0x4d")](11),r=i[Dx("0x6f")](),x=r[Dx("0x4d")](0,3)+Dx("0x53"),a="table"+i,c=Dx("0x80")+i,l=Dx("0x54")+i;o[Dx("0x78")](n,(()=>{t[Dx("0x19")][Dx("0x36")]((t=>{const i=s[Dx("0x6d")](e),d=i[0].findAncestor(Dx("0x2f"));let u;if(Dx("0x45")==n){const t=s[Dx("0x7e")](i);u={startRow:t[Dx("0x51")],endRow:t.last,includeAllSlots:!0}}else{const t=s.getColumnIndexes(i);u={startColumn:t[Dx("0x51")],endColumn:t.last,includeAllSlots:!0}}const g=s.createTableWalker(d,u),m=Array[Dx("0x31")](g).map((({cell:t})=>t)),f=jx(m[Dx("0x26")]((t=>t[Dx("0x2a")](x)))),h=jx(m.filter((t=>!t.hasAttribute(x))))[Dx("0x33")]((e=>t[Dx("0x44")](e))),p=o.markMultiRangeDeletion(h,a);if(p&&(Dx("0x29")==p.subType||Dx("0xd")==p[Dx("0x41")])){const e=this[Dx("0x66")](p);for(const n of f){const o=t[Dx("0x44")](n),i=s[Dx("0x47")](n),a=n[Dx("0x10")](x)-1,d=e[c],u=e[l];d<=i[r]&&i[r]+a<=u&&p[Dx("0x4f")](o)}}}))}))}function i(n){const o=Array[Dx("0x31")](e.getRanges())[Dx("0x33")]((t=>r.LiveRange.fromRange(t)));t[Dx("0x19")][Dx("0x36")]((e=>{const s=e.batch;n=n[Dx("0x26")]((t=>Dx("0x1c")!=t[Dx("0x71")].rootName)),e[Dx("0x4")](n),t[Dx("0xa")].get(Dx("0x45"))[Dx("0x7c")](),t.execute(Dx("0x45"),{forceDefaultExecution:!0}),t[Dx("0x19")][Dx("0x79")]((()=>{t[Dx("0x19")][Dx("0x79")](s,(t=>{const e=o[Dx("0x26")]((t=>Dx("0x1c")!=t[Dx("0x71")][Dx("0x22")]));e.length>0&&t[Dx("0x4")](e);for(const t of o)t[Dx("0x57")]()}))}))}))}function a(n){t[Dx("0x19")][Dx("0x36")]((o=>{const s=Array[Dx("0x31")](e[Dx("0x39")]()).map((t=>r.LiveRange.fromRange(t))),i=[];for(const t of n)for(const e of t[Dx("0x75")]({shallow:!0}))i[Dx("0x49")](e);for(const e of i)Dx("0x1c")!=e[Dx("0x71")].rootName&&(o[Dx("0x4")](o[Dx("0x63")](e,0)),t[Dx("0xa")][Dx("0x4e")]("removeTableColumn")[Dx("0x7c")](),t.execute(Dx("0x24"),{forceDefaultExecution:!0}));const x=s[Dx("0x26")]((t=>Dx("0x1c")!=t[Dx("0x71")][Dx("0x22")]));x[Dx("0x73")]>0&&o[Dx("0x4")](x);for(const t of s)t[Dx("0x57")]()}))}function c(t,e){return e[Dx("0x20")]((e=>t.some((t=>t.end[Dx("0x1b")](e.start)||e[Dx("0x21")][Dx("0x1b")](t[Dx("0x6")])))))}function l(t,e){return t[Dx("0x2b")]((t=>e[Dx("0x2b")]((e=>t.end[Dx("0x3e")](e[Dx("0x6")])))))}t[Dx("0x1")][Dx("0x5d")].on("addMarker:suggestion",((t,e,n)=>{if(!n[Dx("0x7")].showSuggestionHighlights)return;const o=e[Dx("0x34")];if(!o)return;const s=n.mapper[Dx("0x60")](o);function i(t){return Array.isArray(t)?t:[t]}s&&Dx("0x61")===o[Dx("0x5f")]&&(0,x.setHighlightHandling)(s,n[Dx("0x55")],((t,e,n)=>n[Dx("0x5e")](i(e[Dx("0x64")]),t)),((t,e,n)=>n[Dx("0x5c")](i(e[Dx("0x64")]),t)))}),{priority:Dx("0x11")}),o[Dx("0x18")][Dx("0x4b")]((t=>{if(Dx("0x72")!=t[Dx("0x6e")]&&Dx("0x6b")!=t[Dx("0x6e")])return;const e=t.getContainedElement();if(null!=e&&e.is(Dx("0x37"),"table")){if(Dx("0x72")==t[Dx("0x6e")]){const e=t.getItems()[Dx("0x26")]((t=>t.is(Dx("0x3b"))))[Dx("0x33")]((t=>t[Dx("0x1")]));if(e[Dx("0x73")])return{type:"insertion",content:Yo(n,Dx("0x74"),Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Dx("0x77")](" ")+'"'))}}if(Dx("0x6b")==t[Dx("0x6e")]){const e=t[Dx("0x75")]().filter((t=>t.is(Dx("0x3b"))))[Dx("0x33")]((t=>t[Dx("0x1")]));if(e[Dx("0x73")])return{type:Dx("0x6b"),content:Yo(n,Dx("0x25"),Yo(n,Dx("0x65"),'"'+e[Dx("0x77")](" ")+'"'))}}}})),o[Dx("0x18")][Dx("0x4b")]((t=>{if(Dx("0x29")==t[Dx("0x41")]){const e=t[Dx("0x75")]().filter((t=>t.is(Dx("0x3b")))).map((t=>t[Dx("0x1")])),o=this._getSuggestionCoords(t),s=o[Dx("0x5a")]-o.minRow+1;if(Dx("0x72")==t.type)return e[Dx("0x73")]?{type:"insertion",content:Yo(n,Dx("0x74"),Yo(n,Dx("0x1f"),[s,'"'+e[Dx("0x77")](" ")+'"']))}:{type:Dx("0x72"),content:Yo(n,"*Insert:* %0",Yo(n,Dx("0x70"),s))};if(Dx("0x6b")==t[Dx("0x6e")])return e[Dx("0x73")]?{type:"deletion",content:Yo(n,Dx("0x25"),Yo(n,Dx("0x1f"),[s,'"'+e[Dx("0x77")](" ")+'"']))}:{type:Dx("0x6b"),content:Yo(n,Dx("0x25"),Yo(n,"ELEMENT_TABLE_ROW",s))}}if(Dx("0xd")==t[Dx("0x41")]){const e=t[Dx("0x75")]()[Dx("0x26")]((t=>t.is("$textProxy")))[Dx("0x33")]((t=>t[Dx("0x1")])),o=this[Dx("0x66")](t),s=o[Dx("0x42")]-o[Dx("0x4c")]+1;if(Dx("0x72")==t[Dx("0x6e")])return e[Dx("0x73")]?{type:Dx("0x72"),content:Yo(n,Dx("0x74"),Yo(n,Dx("0x81"),[s,'"'+e[Dx("0x77")](" ")+'"']))}:{type:Dx("0x72"),content:Yo(n,Dx("0x74"),Yo(n,"ELEMENT_TABLE_COLUMN",s))};if(Dx("0x6b")==t[Dx("0x6e")])return e[Dx("0x73")]?{type:"deletion",content:Yo(n,Dx("0x25"),Yo(n,Dx("0x81"),[s,'"'+e[Dx("0x77")](" ")+'"']))}:{type:Dx("0x6b"),content:Yo(n,Dx("0x25"),Yo(n,Dx("0x5"),s))}}})),o[Dx("0xb")][Dx("0x43")](Dx("0x72"),Dx("0x29"),Dx("0x23"),i),o[Dx("0xb")][Dx("0x43")](Dx("0x6b"),Dx("0x29"),Dx("0x30"),i),o._suggestionFactory.registerCustomCallback("insertion",Dx("0xd"),Dx("0x23"),a),o[Dx("0xb")][Dx("0x43")]("deletion",Dx("0xd"),"accept",a),o[Dx("0xb")][Dx("0x43")](Dx("0x72"),Dx("0xd"),Dx("0x77"),c),o[Dx("0xb")][Dx("0x43")](Dx("0x6b"),Dx("0xd"),"join",c),o[Dx("0xb")][Dx("0x43")](Dx("0x72"),Dx("0x29"),"join",l),o[Dx("0xb")][Dx("0x43")](Dx("0x6b"),Dx("0x29"),"join",l)}[Dx("0x28")](){const t=this[Dx("0x2d")],e=t[Dx("0x19")].document[Dx("0xe")];return(n,o)=>{t[Dx("0x19")][Dx("0x36")]((s=>{const{commandName:i,commandParams:x}=o;let a=n[0].end[Dx("0x6c")];x&&x[0]&&!1===x[0][Dx("0x3")]&&(a=n[0].start[Dx("0x69")]);const c=s.createRangeIn(a);if(Dx("0x1c")==c[Dx("0x71")].rootName)return;const l=Array.from(e.getRanges())[Dx("0x33")]((t=>r.LiveRange[Dx("0x59")](t)));s[Dx("0x4")](c),t[Dx("0xa")][Dx("0x4e")](i)[Dx("0x7c")](),x[Dx("0x49")]({forceDefaultExecution:!0}),t[Dx("0x38")](i,...x);const d=l[Dx("0x26")]((t=>Dx("0x1c")!=t.root.rootName));d[Dx("0x73")]>0&&s[Dx("0x4")](d);for(const t of l)t[Dx("0x57")]()}))}}[Dx("0x46")](t){const e=this[Dx("0x2d")][Dx("0x4a")][Dx("0x4e")](Dx("0x17"));let n=Number[Dx("0x76")],o=Number.MIN_SAFE_INTEGER,s=Number[Dx("0x76")],i=Number.MIN_SAFE_INTEGER;for(const r of t){if(Dx("0x1c")==r[Dx("0x71")][Dx("0x22")])continue;const{row:t,column:x}=e[Dx("0x47")](r),a=r[Dx("0x2a")]("rowspan")?r.getAttribute("rowspan")-1:0,c=r.hasAttribute(Dx("0x16"))?r[Dx("0x10")](Dx("0x16"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,s=x<s?x:s,i=x+c>i?x+c:i}return{minRow:n,maxRow:o,minColumn:s,maxColumn:i}}[Dx("0x12")](){const t=this[Dx("0x2d")],e=t[Dx("0x4a")][Dx("0x4e")]("TrackChangesEditing"),n=t[Dx("0x4a")].get(Dx("0x17"));t[Dx("0x19")].document.on("change:data",(()=>{const n=Array[Dx("0x31")](t[Dx("0x19")][Dx("0x62")][Dx("0x40")].getChangedMarkers());for(const{name:t,data:o}of n){const{group:n,id:s,subType:i}=e[Dx("0x3f")](t);if("suggestion"!=n)continue;if(null!=o[Dx("0x7d")])continue;const r=e[Dx("0x35")](s);this[Dx("0x1e")][Dx("0x13")](i)&&this[Dx("0x7b")][Dx("0x3a")](r)}}),{priority:Dx("0x7a")});const o=(t,e)=>{let o=!1;const s=e[Dx("0x44")](t),i=t[Dx("0x9")](Dx("0x2f")),r=n.getCellLocation(t);for(const e of this._tableSuggestions){const n=e[Dx("0x41")],x=n.startsWith(Dx("0x7f")),a=n[Dx("0x4d")](x?10:5),c=a.toLowerCase(),l=c[Dx("0x4d")](0,3)+Dx("0x53"),d=Dx("0x80")+a,u=Dx("0x54")+a;if(!e[Dx("0x67")])continue;if(i!=e[Dx("0xf")]().start[Dx("0x9")](Dx("0x2f")))continue;if(e.isIntersectingWithRange(s))continue;const g=t.hasAttribute(l)?t[Dx("0x10")](l)-1:0,m=this[Dx("0x66")](e),f=m[d],h=m[u];f<=r[c]&&r[c]+g<=h&&(e[Dx("0x4f")](s),o=!0)}return o};t[Dx("0x19")][Dx("0x62")][Dx("0x5b")]((e=>{let n=!1;for(const s of t.model[Dx("0x62")][Dx("0x40")].getChanges())if(Dx("0x2e")==s[Dx("0x6e")])if(Dx("0x29")==s.name)for(const t of s.position[Dx("0x69")][Dx("0x50")]())n=n||o(t,e);else"tableCell"==s.name&&(n=n||o(s[Dx("0x56")][Dx("0x69")],e));return n}))}[Dx("0x66")](t){return this[Dx("0x46")](t[Dx("0x39")]().map((t=>t[Dx("0x6")][Dx("0x69")])))}}function jx(t){return Array[Dx("0x31")](new Set(t)[Dx("0x1d")]())}const Ux=["filter","set:isEnabled","$graveyard","commandName","length","getAncestors","getRanges","registerDescriptionCallback","push","accept","author","afterInit","registerCustomCallback","TrackChangesEditing","selection","TableUtils","detach","mergeTableCellLeft","splitTableCellVertically","getSelectionAffectedTableCells","*Split cell:* vertically","editor","splitTableCellHorizontally","root","markMultiRangeBlockFormat","element","return","commands","value","document","refresh","createRangeOn","type","_isForcedDefaultExecutionBlock","_suggestionFactory","*Split cell:* horizontally","getCellLocation","has","map","tableCell","plugins","locale","format","insertion","getFirstPosition","enableCommand","size","mergeTableCells","table","mergeTableCellDown","TableEditing","add","direction","forceDefaultExecution","model","execute","_areMergableCells","mergeTableCellRight","find","formatBlock","get","from","cell","containsRange","findAncestor","fromRange","horizontally","change","deletion","_descriptionFactory","mergeTableCellUp","createTableWalker","_areSelectedCellsMergable","subType","_tablePostFixingSubtypes"];var Gx,Hx;Gx=Ux,Hx=387,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const Wx=function(t,e){return Ux[t-=0]};class zx extends t.Plugin{static get requires(){return[Bx]}[Wx("0x4a")](){const t=this[Wx("0x9")],e=t[Wx("0x2a")][Wx("0x11")][Wx("0x2")],n=t[Wx("0x1d")];if(!t.plugins[Wx("0x19")](Wx("0x26")))return;const o=t[Wx("0x1c")][Wx("0x30")](Wx("0x1")),s=t.plugins[Wx("0x30")](Wx("0x3")),i=t[Wx("0x1c")].get(Bx);i[Wx("0x3e")][Wx("0x47")](Wx("0x23")),o.enableCommand(Wx("0x23"),(()=>{const e=s[Wx("0x7")](t[Wx("0x2a")][Wx("0x11")][Wx("0x2")]);t.model.change((()=>{o[Wx("0xc")](e,{commandName:"mergeTableCells",commandParams:[]},[],Wx("0x23"))}))})),t.commands[Wx("0x30")](Wx("0x23")).on(Wx("0x2b"),((e,n)=>{t[Wx("0xf")].get("trackChanges")[Wx("0x10")]&&(n[Wx("0x43")]>0&&n[n[Wx("0x43")]-1]&&n[n[Wx("0x43")]-1][Wx("0x29")]||o[Wx("0x15")]||this[Wx("0x3c")]()||e.stop())}),{priority:"highest"});for(const e of["mergeTableCellUp",Wx("0x2d"),Wx("0x25"),Wx("0x5")]){const n=t.commands.get(e);o[Wx("0x21")](e,(()=>{const e=t[Wx("0x2a")].document[Wx("0x2")].getFirstPosition()[Wx("0x44")]()[Wx("0x2e")]((t=>t.is(Wx("0xd"),Wx("0x1b")))),s=n[Wx("0x10")];t[Wx("0x2a")][Wx("0x37")]((()=>{o[Wx("0xc")]([e,s],{commandName:Wx("0x23"),commandParams:[]},[],"mergeTableCells")}))}))}for(const e of[Wx("0x6"),"splitTableCellHorizontally"]){const n=t[Wx("0xf")][Wx("0x30")](e);o.enableCommand(e,(()=>{const i=s[Wx("0x7")](t[Wx("0x2a")].document.selection)[0],r=i[Wx("0x34")](Wx("0x24")),{column:x,row:a}=s[Wx("0x18")](i);let c=[];if(Wx("0x36")==n[Wx("0x28")]){const t=s[Wx("0x3b")](r,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Wx("0x31")](t)[Wx("0x1a")]((t=>t.cell))}else{const t=s[Wx("0x3b")](r,{column:x,includeAllSlots:!0});c=Array.from(t)[Wx("0x1a")]((t=>t[Wx("0x32")]))}t.model[Wx("0x37")]((t=>{o.markBlockFormat(t[Wx("0x13")](i),{commandName:e,commandParams:[]},c,e)}))}))}o[Wx("0x39")][Wx("0x46")]((t=>{const{data:e}=t;if(e)return"mergeTableCells"==e[Wx("0x42")]?{type:Wx("0x1e"),content:Yo(n,"*Merge cells*")}:void 0})),o[Wx("0x39")][Wx("0x46")]((t=>{const{data:e}=t;if(e)return Wx("0x6")==e[Wx("0x42")]?{type:Wx("0x1e"),content:Yo(n,Wx("0x8"))}:Wx("0xa")==e[Wx("0x42")]?{type:Wx("0x1e"),content:Yo(n,Wx("0x17"))}:void 0}));const x=i._acceptFormatSuggestionCallbackFactory();for(const t of[Wx("0x3a"),"mergeTableCellRight",Wx("0x25"),"mergeTableCellLeft"])o[Wx("0x16")][Wx("0x0")]("formatBlock",t,"accept",x);for(const t of[Wx("0x6"),Wx("0xa")])o._suggestionFactory.registerCustomCallback(Wx("0x2f"),t,Wx("0x48"),x);o[Wx("0x16")][Wx("0x0")](Wx("0x2f"),Wx("0x23"),"accept",(n=>{t[Wx("0x2a")][Wx("0x37")]((o=>{const s=Array[Wx("0x31")](e[Wx("0x45")]())[Wx("0x1a")]((t=>r.LiveRange[Wx("0x35")](t)));o.setSelection(n),t.commands[Wx("0x30")](Wx("0x23"))[Wx("0x12")](),t[Wx("0x2b")](Wx("0x23"),{forceDefaultExecution:!0});const i=s[Wx("0x3f")]((t=>Wx("0x41")!=t[Wx("0xb")].rootName));i.length>0&&o.setSelection(i);for(const t of s)t[Wx("0x4")]()}))}));for(const e of["mergeTableCellUp",Wx("0x25"),Wx("0x5"),"mergeTableCellRight"]){const n=t[Wx("0xf")][Wx("0x30")](e);n.on(Wx("0x40"),((e,o,s)=>{if(s){const o=t[Wx("0x2a")].document[Wx("0x2")][Wx("0x20")]()[Wx("0x44")]()[Wx("0x2e")]((t=>t.is(Wx("0xd"),Wx("0x1b"))));this._areMergableCells(n[Wx("0x10")],o)||(e[Wx("0xe")]=!1,e.stop())}}),{priority:"low"})}}[Wx("0x3c")](){const t=this[Wx("0x9")][Wx("0xf")].get(Wx("0x23")),e=this.editor[Wx("0x1c")].get("TableUtils");if(!t.isEnabled)return!1;const n=e[Wx("0x7")](this[Wx("0x9")].model[Wx("0x11")][Wx("0x2")]);for(const t of n)for(const e of n)if(t!=e&&!this[Wx("0x2c")](t,e))return!1;return!0}_areMergableCells(t,e){const n=this[Wx("0x9")].plugins[Wx("0x30")](Wx("0x1")),o=this.editor[Wx("0x2a")][Wx("0x13")](t),s=this[Wx("0x9")].model[Wx("0x13")](e),i=new Set,r=new Set;for(const t of n.getSuggestions())if((Wx("0x1f")==t[Wx("0x14")]||Wx("0x38")==t[Wx("0x14")]||Wx("0x23")==t[Wx("0x3d")])&&t.isInContent)for(const e of t[Wx("0x45")]())e[Wx("0x33")](o,!0)&&i[Wx("0x27")](t[Wx("0x14")]+":"+t[Wx("0x49")].id),e[Wx("0x33")](s,!0)&&r[Wx("0x27")](t[Wx("0x14")]+":"+t[Wx("0x49")].id);if(i[Wx("0x22")]!=r[Wx("0x22")])return!1;for(const t of i)if(!r[Wx("0x19")](t))return!1;return!0}}const Vx=["_suggestionFactory","createPositionAfter","TrackChangesEditing","markerName","markerRange","markerNameToElements","format","getChild","findAncestor","getRowIndexes","table","getSuggestion","removeMarker:suggestion","enableCommand","removeAttribute","highest","ck-suggestion-marker-","childCount","TableUtils","get","addClass","TableEditing","value","last","getAttribute","showSuggestionHighlights","commandName","activeMarkers","consume","model","consumable","change","end","data","forceValue","item","setAttribute","writer","from","FORMAT_HEADER_COLUMN","FORMAT_REGULAR_ROW","getCellLocation","accept","createPositionBefore","commands","toViewElement","removeClass","setTableRowHeader","includes","nodeBefore","formatBlock","headingRows","getColumnIndexes","addMarker:suggestion","registerDescriptionCallback","registerCustomCallback","createRange","editing","stop","options","parent","_splitMarkerName","getSelectionAffectedTableCells","_descriptionFactory","plugins","downcastDispatcher","start","nodeAfter","selection","document","name","first","markBlockFormat","ck-suggestion-marker--active","setTableColumnHeader","mapper","cell","headingColumns","FORMAT_REGULAR_COLUMN","FORMAT_HEADER_ROW","commandParams"];var Kx,qx;Kx=Vx,qx=407,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Vx[t-=0]};class $x extends t.Plugin{static get requires(){return[Bx]}afterInit(){const t=this.editor;if(!t.plugins.has(Xx("0x13")))return;const e=t.locale,n=t[Xx("0x3e")][Xx("0x11")](Xx("0x0")),o=t[Xx("0x3e")].get("TableUtils"),s=t[Xx("0x3e")][Xx("0x11")](Bx);function i({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,i,r)=>{const{type:x,id:a}=n[Xx("0x3b")](i.markerName),c=n[Xx("0x9")](a);if(!c[Xx("0x1f")]||Xx("0x48")!=c[Xx("0x1f")].commandName)return;if(i[Xx("0x21")])return void s[Xx("0x38")]();if(!r[Xx("0x1c")][Xx("0x1a")](i[Xx("0x2")],s[Xx("0x44")]))return;const l=i[Xx("0x2")][Xx("0x40")][Xx("0x41")],d=i[Xx("0x2")][Xx("0x1e")][Xx("0x2f")],u=l[Xx("0x3a")][Xx("0x3a")],{column:g}=o.getCellLocation(l),{column:m}=o[Xx("0x27")](d);for(let s=g;s<=m;s++){const c=o.createTableWalker(u,{column:s,includeAllSlots:!1});for(const o of c){const s=o.cell,c=r.mapper[Xx("0x2b")](s);r[Xx("0x23")].addClass(Xx("0xe")+x,c),e&&r[Xx("0x23")][Xx("0x22")]("data-suggestion",a,c),r.mapper.bindElementToMarker(c,i[Xx("0x1")]),t&&(n[Xx("0x19")][Xx("0x2e")](i.markerName)?r[Xx("0x23")][Xx("0x12")](Xx("0x47"),c):r[Xx("0x23")][Xx("0x2c")](Xx("0x47"),c))}}}}n[Xx("0xb")](Xx("0x2d"),((e,s)=>{const i=o.getSelectionAffectedTableCells(t[Xx("0x1b")][Xx("0x43")][Xx("0x42")]),r=o[Xx("0x7")](i),x=i[0][Xx("0x6")](Xx("0x8")),a=x[Xx("0x16")](Xx("0x31"))||0,c=s&&null!==s[Xx("0x20")]?s[Xx("0x20")]:!t[Xx("0x2a")][Xx("0x11")](Xx("0x2d"))[Xx("0x14")],l=c?r[Xx("0x15")]:r[Xx("0x45")],d=x.getChild(l);let u;if(c){const e=x[Xx("0x5")](a);if(d.index<e.index)return;u=t[Xx("0x1b")].createRange(t[Xx("0x1b")][Xx("0x29")](e.getChild(0)),t.model[Xx("0x50")](d[Xx("0x5")](d[Xx("0xf")]-1)))}else{const e=x[Xx("0x5")](a-1);if(!e)return;u=t[Xx("0x1b")][Xx("0x36")](t[Xx("0x1b")].createPositionBefore(d[Xx("0x5")](0)),t[Xx("0x1b")][Xx("0x50")](e[Xx("0x5")](e[Xx("0xf")]-1)))}t[Xx("0x1b")][Xx("0x1d")]((()=>{n[Xx("0x46")](u,{commandName:Xx("0x2d"),commandParams:[{forceValue:c}]},[],"setTableRowHeader")}))})),n[Xx("0xb")](Xx("0x48"),((e,o)=>{const s=t[Xx("0x3e")][Xx("0x11")](Xx("0x10")),i=s[Xx("0x3c")](t.model[Xx("0x43")][Xx("0x42")]),r=s[Xx("0x32")](i),x=i[0][Xx("0x6")]("table"),a=x[Xx("0x16")](Xx("0x4b"))||0,c=o&&null!==o[Xx("0x20")]?o[Xx("0x20")]:!t[Xx("0x2a")][Xx("0x11")](Xx("0x48"))[Xx("0x14")];let l;const d=x.getChild(0),u=c?r[Xx("0x15")]:r[Xx("0x45")],g=s.createTableWalker(x,{startRow:0,column:u,includeAllSlots:!1}),m=Array[Xx("0x24")](g)[0][Xx("0x4a")];if(c){const e=d.getChild(a);if(m.isBefore(e))return;l=t[Xx("0x1b")][Xx("0x36")](t[Xx("0x1b")].createPositionBefore(e),t[Xx("0x1b")][Xx("0x50")](m))}else{const e=d.getChild(a-1);if(!e)return;l=t[Xx("0x1b")][Xx("0x36")](t[Xx("0x1b")][Xx("0x29")](m),t.model[Xx("0x50")](e))}t[Xx("0x1b")][Xx("0x1d")]((()=>{n[Xx("0x46")](l,{commandName:Xx("0x48"),commandParams:[{forceValue:c}]},[],Xx("0x48"))}))})),t.editing[Xx("0x3f")].on(Xx("0x33"),i(),{priority:Xx("0xd")}),t[Xx("0x1f")][Xx("0x3f")].on(Xx("0x33"),((t,e,n)=>{n[Xx("0x39")][Xx("0x17")]&&i({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:Xx("0xd")}),t[Xx("0x37")][Xx("0x3f")].on(Xx("0xa"),((t,e,o)=>{const{type:s,id:i}=n[Xx("0x3b")](e.markerName),r=n.getSuggestion(i);if(!r[Xx("0x1f")]||"setTableColumnHeader"!=r[Xx("0x1f")][Xx("0x18")])return;const x=o[Xx("0x49")][Xx("0x3")](e[Xx("0x1")]);if(x)for(const t of x)o[Xx("0x23")][Xx("0x2c")]("ck-suggestion-marker-"+s,t),o.writer.removeClass("ck-suggestion-marker--active",t),o.writer[Xx("0xc")]("data-suggestion",t),o[Xx("0x49")].unbindElementFromMarkerName(t,e[Xx("0x1")])}),{priority:Xx("0xd")}),n[Xx("0x3d")][Xx("0x34")]((t=>{const{data:n}=t;if(n){if(Xx("0x2d")==n[Xx("0x18")]){const t=n[Xx("0x4e")][0][Xx("0x20")];return o(Yo(e,Xx(t?"0x4d":"0x26")))}if(Xx("0x48")==n.commandName){const t=n[Xx("0x4e")][0][Xx("0x20")];return o(Yo(e,Xx(t?"0x25":"0x4c")))}}function o(t){return{type:Xx("0x4"),content:Yo(e,"*Format:* %0",t)}}}));const r=s._acceptFormatSuggestionCallbackFactory();n[Xx("0x4f")][Xx("0x35")](Xx("0x30"),"setTableRowHeader",Xx("0x28"),r),n[Xx("0x4f")][Xx("0x35")](Xx("0x30"),"setTableColumnHeader",Xx("0x28"),r)}}const Qx=["add","registerPostFixer","getSelectionAffectedTableCells","options","tableCellBorderWidth","getChangedMarkers","editing","tableCellHorizontalAlignment","selection","cell","*Replace table cells*","reduce","startsWith","map","editingDowncast","rowInsertionRanges","tablePaste","removeMarker","getContainedElement","updateMarker","previous","plugins","first","next","registerDescriptionCallback","nodeAfter","accept","suggestion","keys","remove","documentSelection","getRanges","document","subType","markerToHighlight","TableUtils","markers","length","insertion","get","set","suggestionLoaded","conversion","view","rootName","ck-suggestion-marker-insertion","createRangeIn","getAttributes","low","discard","for","insert","insertColumns","createTableWalker","columns","deletionRanges","unwrap","_isForcedDefaultExecutionBlock","_createdBatches","has","registerCustomCallback","markMultiRangeInsertion","elementToElement","tableCellSuggestion","attributes","join","find","change","cells","_replaceTableSlotCell","some","previousSibling","clipboardOutput","rowInsertionIndexes","markMultiRangeBlockFormat","formatBlock","TrackChangesEditing","getChanges","isEqual","_tablePostFixingSubtypes","oldRange","getShiftedBy","requires","schema","push","getRange","paragraph","afterInit","suggestion:formatBlock:tablePasteCell","insertionRanges","findAncestor","isInContent","createRange","getRowIndexes","name","editor","tablePasteRow","stop","fill","getChildren","tableCellVerticalAlignment","high","getColumns","tablePasteCell","root","suggestionUnloaded","redo","insertRows","wrap","type","tableCellBorderColor","getMarkers","setAttribute","tablePasteChainId","end","nextSibling","endRow","ck-suggestion-marker--active","differ","getItems","column","TableClipboard","$graveyard","hasSuggestion","removeMarkers","model","getSuggestion","_suggestionFactory","columnInsertionIndexes","getRows","tableCell","containsRange","newRange","getSuggestionCallback","removeColumns","endColumn","value","register","commands","position","author","_splitMarkerName","isEmpty","tablePasteColumn","Users","tableCellBackgroundColor","markerName","createElement","createRangeOn","markerAttributes","forceDefaultExecution","locale","from","return","getSuggestions","filter","element","suggestion-td","fromEntries","getTableIfOnlyTableInContent","_getCoordsForCells","activeMarkers","includes","deletion","columnInsertionRanges"];var Jx,Zx;Jx=Qx,Zx=278,function(t){for(;--t;)Jx.push(Jx.shift())}(++Zx);const Yx=function(t,e){return Qx[t-=0]},ta=[Yx("0x38"),Yx("0xa2"),"tableCellBorderStyle",Yx("0x3b"),Yx("0x98"),Yx("0x20"),"tableCellPadding"],ea=Object.fromEntries(ta.map((t=>[t,null])));class na extends t.Plugin{static get[Yx("0x86")](){return[Bx]}[Yx("0x8b")](){const t=this[Yx("0x93")];if(!t[Yx("0x49")][Yx("0x6f")](Yx("0x8")))return;const n=t[Yx("0x49")][Yx("0x5b")](Yx("0x80")),o=t[Yx("0x49")][Yx("0x5b")](Yx("0x57")),s=t[Yx("0x49")][Yx("0x5b")](Bx),i=t[Yx("0x49")][Yx("0x5b")]("TableClipboard");s[Yx("0x83")][Yx("0x88")](Yx("0x94"),Yx("0x1e")),t.model[Yx("0x87")][Yx("0x18")](Yx("0x73"),{allowIn:Yx("0x11"),allowContentOf:Yx("0x11"),isLimit:!0}),t.conversion[Yx("0x72")]({model:Yx("0x73"),view:Yx("0x2c")});let r=null;t[Yx("0xc")].on("insertContent",((s,x)=>{const[a,c]=x,l=x[x.length-1];l&&l[Yx("0x25")]||n[Yx("0x6d")]||this[Yx("0x93")][Yx("0x19")][Yx("0x5b")]("trackChanges")[Yx("0x17")]&&function(t,e,n,o,s){if(e&&!e.is(Yx("0x52")))return!1;const i=s[Yx("0x2e")](t,n);if(!i||!sa(i,void 0,o))return!1;const r=o[Yx("0x36")](n[Yx("0x54")][Yx("0x3c")]);if(!r[Yx("0x59")])return!1;const x=r[0][Yx("0x8e")]("table"),a=o[Yx("0x91")](r),c=o.getColumnIndexes(r),l={startRow:a[Yx("0x4a")],endRow:a.last,startColumn:c[Yx("0x4a")],endColumn:c.last};return 1==r[Yx("0x59")]&&(l[Yx("0x3")]+=o[Yx("0x10")](i)-1,l[Yx("0x16")]+=o[Yx("0x9a")](i)-1),sa(x,l,o)}(a,c,t[Yx("0xc")],o,i)&&(s[Yx("0x95")](),r={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Yx("0xc")][Yx("0x77")]((()=>{t.model.insertContent(x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:s,columnInsertionRanges:i,insertionRanges:a,deletionRanges:c,cells:l}=r;s.length&&n[Yx("0x71")](s,Yx("0x94"),{tablePasteChainId:o}),i[Yx("0x59")]&&n[Yx("0x71")](i,"tablePasteColumn",{tablePasteChainId:o}),a[Yx("0x59")]&&n[Yx("0x71")](a,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0}),c[Yx("0x59")]&&n.markMultiRangeDeletion(c,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0});const d=n[Yx("0x7e")](l[Yx("0x41")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Yx("0x9b"),{tablePasteChainId:o});if(d){const e=d[Yx("0xa3")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const i=t[Yx("0xc")][Yx("0x23")](o),r=e[Yx("0x76")]((t=>t[Yx("0x89")]()[Yx("0x82")](i)));r&&n[Yx("0x88")]([r.name,s])}n[Yx("0x59")]&&d[Yx("0xa4")](Yx("0x24"),Object[Yx("0x2d")](n))}r=null})))}),{priority:e.priorities.high+10}),t[Yx("0x49")][Yx("0x5b")]("TableClipboard").on(Yx("0x79"),((t,e)=>{const[n,o,,s]=e;if(!r)return;t.stop();const i=n[Yx("0x3d")],x=o,a=oa(i),c=oa(x);t[Yx("0x28")]=i;let l=null,d=null;if(c||a)if(a&&!c){s[Yx("0x51")](i.getChild(0));for(const t of Array[Yx("0x27")](x[Yx("0x97")]()))s[Yx("0x67")](t,i,Yx("0x1"));const t=r[Yx("0x7d")][Yx("0x31")](n.row),e=r[Yx("0xf")][Yx("0x31")](n[Yx("0x7")]);t||e||(l=s[Yx("0x62")](i))}else c&&!a&&(d=s[Yx("0x62")](i));else{const t=s[Yx("0x22")](Yx("0x73")),e=s[Yx("0x22")](Yx("0x73"));s[Yx("0xa0")](s.createRangeIn(i),e),s.insert(t,i,0);for(const e of Array[Yx("0x27")](x[Yx("0x97")]()))s.insert(e,t,Yx("0x1"));l=s[Yx("0x23")](t),d=s[Yx("0x23")](e)}const u=Array[Yx("0x27")](x[Yx("0x63")]())[Yx("0x2a")]((([t])=>ta[Yx("0x31")](t)));r[Yx("0x78")].push({element:i,attributes:u[Yx("0x59")]?Object.fromEntries(u):null}),l&&r[Yx("0x8d")][Yx("0x88")](l),d&&r[Yx("0x6b")][Yx("0x88")](d)}),{priority:Yx("0x99")}),o.on(Yx("0x68"),((e,n)=>{const[s,i={}]=n;if(!r)return;const x=i.at||0,a=i[Yx("0x6a")]||1;r[Yx("0xf")]=new Array(a)[Yx("0x96")](x)[Yx("0x41")](((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(s,{startColumn:x,endColumn:x+a-1}))r[Yx("0x33")][Yx("0x88")](t[Yx("0xc")].createRangeOn(e))}),{priority:Yx("0x64")}),o.on(Yx("0x9f"),((e,n)=>{const[s,i={}]=n;if(!r)return;const x=i.at||0,a=i.rows||1;r[Yx("0x7d")]=new Array(a).fill(x)[Yx("0x41")](((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(s,{startRow:x,endRow:x+a-1}))r[Yx("0x43")][Yx("0x88")](t[Yx("0xc")][Yx("0x23")](e))}),{priority:"low"}),n._descriptionFactory[Yx("0x4c")]((e=>{if(e.subType&&e[Yx("0x55")][Yx("0x40")](Yx("0x44")))return e[Yx("0x48")]?{}:{type:"insertion",content:Yo(t[Yx("0x26")],Yx("0x3e"))}}));const x=()=>!1;for(const t of[Yx("0x44"),Yx("0x1e"),"tablePasteRow",Yx("0x9b")])n._suggestionFactory.registerCustomCallback(Yx("0x5a"),t,Yx("0x75"),x),n[Yx("0xe")][Yx("0x70")]("deletion",t,Yx("0x75"),x),n[Yx("0xe")][Yx("0x70")](Yx("0x7f"),t,Yx("0x75"),x);n[Yx("0xe")].registerCustomCallback(Yx("0x7f"),Yx("0x9b"),"discard",x),n._suggestionFactory[Yx("0x70")](Yx("0x7f"),Yx("0x9b"),Yx("0x4e"),((e,n,o)=>{const s=e[Yx("0x41")]((t=>t.getContainedElement())).filter((t=>t)),i=new Map(s[Yx("0x41")]((t=>[t,null])));if(r)for(const{element:t,attributes:e}of r[Yx("0x78")])e&&i[Yx("0x5c")](t,e);else if(o&&o[Yx("0x24")])for(const[e,n]of Object.entries(o[Yx("0x24")])){const o=t.model[Yx("0x58")][Yx("0x5b")](e),s=o?o[Yx("0x89")]()[Yx("0x46")]():null;s&&i[Yx("0x5c")](s,n)}t[Yx("0xc")][Yx("0x77")]((t=>{for(const[e,n]of i)t.setAttributes({...ea,...n},e)}))}));const a=(e,o)=>{n[Yx("0xe")][Yx("0x70")](e,Yx("0x44"),o,((s,i,r)=>{t[Yx("0xc")].change((t=>{const x=[];for(const t of s){const e=t.start[Yx("0x4d")];e.is(Yx("0x2b"),Yx("0x73"))&&x[Yx("0x88")](e)}n[Yx("0xe")][Yx("0x14")](e,null,o)(s,i,r);for(const e of x)Yx("0x9")!=e[Yx("0x9c")][Yx("0x60")]&&t[Yx("0x6c")](e)}))}))};a("insertion","accept"),a(Yx("0x5a"),Yx("0x65")),a(Yx("0x32"),"accept"),a("deletion",Yx("0x65")),n[Yx("0xe")][Yx("0x70")](Yx("0x5a"),Yx("0x94"),Yx("0x65"),(t=>{const e=t[Yx("0x41")]((t=>t.getContainedElement())),n=e[0].findAncestor("table"),{minRow:i,maxRow:r}=s[Yx("0x2f")](e);o.removeRows(n,{at:i,rows:r-i+1})})),n._suggestionFactory[Yx("0x70")](Yx("0x5a"),"tablePasteColumn",Yx("0x65"),(t=>{const e=t[Yx("0x41")]((t=>t.getContainedElement())),n=e[0].findAncestor("table"),{minColumn:i,maxColumn:r}=s._getCoordsForCells(e);o[Yx("0x15")](n,{at:i,columns:r-i+1})}));const c=(t,e)=>{if(!e.subType||!e[Yx("0x55")].startsWith(Yx("0x44")))return;const o=e[Yx("0x74")][Yx("0x0")],s=n[Yx("0x29")]()[Yx("0x2a")]((t=>t[Yx("0x8f")]&&t.attributes&&t[Yx("0x74")].tablePasteChainId==o));s[Yx("0x59")]&&e.getAllAdjacentSuggestions()[Yx("0x59")]!=s[Yx("0x59")]&&s[Yx("0x3f")](((t,e)=>(t[Yx("0x4b")]=e,e[Yx("0x48")]=t,e)))};function l(t,e=!0){const{id:o}=n[Yx("0x1c")](t[Yx("0x21")]),s=["ck-suggestion-marker",Yx("0x61")],i=n[Yx("0x30")][Yx("0x31")](t[Yx("0x21")]);return i&&s[Yx("0x88")](Yx("0x4")),{classes:s,attributes:{"data-suggestion":o},priority:i&&e?3010:3e3}}n.on(Yx("0x5d"),c,{priority:Yx("0x99")}),n.on(Yx("0x9d"),c,{priority:Yx("0x99")}),t[Yx("0xc")][Yx("0x54")][Yx("0x35")]((()=>{let e=!1;const o=Array[Yx("0x27")](t[Yx("0xc")].document[Yx("0x5")][Yx("0x39")]());for(const{name:s,data:i}of o){const{group:o,type:r,id:x}=n._splitMarkerName(s);if(Yx("0x4f")!=o||Yx("0x32")!=r||i.oldRange)continue;if(!n[Yx("0xa")](x))continue;const a=n[Yx("0xd")](x).getRanges(),c=t[Yx("0x49")].get("Users").me;for(const t of n.getSuggestions())if(t[Yx("0x8f")]&&t[Yx("0x1b")]==c&&Yx("0x7f")==t[Yx("0xa1")]&&Yx("0x9b")==t[Yx("0x55")]&&t[Yx("0x53")]().every((t=>a[Yx("0x7a")]((e=>e.containsRange(t,!0))))))for(const n of t.getAllAdjacentSuggestions())n[Yx("0x8f")]&&(n[Yx("0x65")](),e=!0)}return e})),t[Yx("0xc")].document[Yx("0x35")]((e=>{const o=t[Yx("0x19")][Yx("0x5b")](Yx("0x9e"));if(!o||!o[Yx("0x6e")].has(e.batch))return!1;let s=!1;const i=t[Yx("0x49")].get(Yx("0x1f")).me,r=t[Yx("0xc")][Yx("0x54")][Yx("0x5")][Yx("0x81")](),x=Array[Yx("0x27")](t[Yx("0xc")][Yx("0x54")][Yx("0x5")][Yx("0x39")]()).filter((({name:t,data:e})=>{const{group:o,subType:s,authorId:r}=n[Yx("0x1c")](t);return Yx("0x4f")==o&&Yx("0x44")==s&&r==i.id&&!e[Yx("0x84")]}));for(const t of r){if(Yx("0x67")!=t.type||Yx("0x73")!=t[Yx("0x92")]||1!=t[Yx("0x59")])continue;const n=e[Yx("0x90")](t.position,t[Yx("0x1a")][Yx("0x85")](1));if(!x[Yx("0x76")]((({data:t})=>t[Yx("0x13")][Yx("0x82")](n))))for(const{name:t,data:o}of x)if(n[Yx("0x12")](o.newRange)){e[Yx("0x47")](t,{range:n}),s=!0;break}}return s})),t.model[Yx("0x54")][Yx("0x35")]((e=>{let o=!1;const s=t[Yx("0x49")][Yx("0x5b")](Yx("0x1f")).me,i=n.getSuggestions().filter((t=>t[Yx("0x8f")]&&t[Yx("0x1b")]==s)),r=new Set,x=new Set;for(const t of i)if("tablePaste"==t.subType)for(const e of t[Yx("0xa3")]()){const n=e[Yx("0x89")]()[Yx("0x46")]();if(n)if(n.is("element",Yx("0x73"))&&oa(n)){t[Yx("0x45")](e[Yx("0x92")]),r[Yx("0x34")](n),o=!0;const s=n[Yx("0x2")],i=n[Yx("0x7b")],a=s&&s.is("element",Yx("0x73")),c=i&&i.is(Yx("0x2b"),Yx("0x73"));a&&!r[Yx("0x6f")](s)&&x[Yx("0x34")](s),c&&!r[Yx("0x6f")](i)&&x.add(i)}else n.is(Yx("0x2b"),"paragraph")&&n[Yx("0x1d")]&&(t[Yx("0x45")](e[Yx("0x92")]),o=!0)}else if("tablePasteCell"==t[Yx("0x55")]){if(!t[Yx("0x74")]||!t[Yx("0x74")][Yx("0x0")])continue;const e=t[Yx("0x74")].markerAttributes;if(e&&Object[Yx("0x50")](e).length)continue;const n=t.attributes[Yx("0x0")];let s=!0,r=!0;for(const e of i)if(e[Yx("0x55")]&&e[Yx("0x55")].startsWith(Yx("0x44"))){if(!e[Yx("0x74")][Yx("0x0")]){r=!1;break}if(e.id!=t.id&&e[Yx("0x74")].tablePasteChainId==n){s=!1;break}}r&&s&&(t[Yx("0xb")](),o=!0)}for(const t of r)e.remove(t);for(const t of x)e[Yx("0x6c")](t);return o})),t[Yx("0x5e")].for(Yx("0x42")).markerToHighlight({model:Yx("0x8c"),view:(t,e)=>l(t),converterPriority:"high"}),t[Yx("0x5e")][Yx("0x66")]("dataDowncast")[Yx("0x56")]({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>e[Yx("0x37")].showSuggestionHighlights?l(t,!1):null,converterPriority:"high"});const d=t[Yx("0x3a")][Yx("0x5f")];this.listenTo(d[Yx("0x54")],Yx("0x7c"),((t,e)=>{const n=[];for(const t of d[Yx("0x62")](e.content)[Yx("0x6")]())t.is(Yx("0x2b"),Yx("0x2c"))&&n.push(t);d[Yx("0x77")]((t=>{for(const e of n)t.move(t.createRangeIn(e),t.createPositionBefore(e)),t[Yx("0x51")](e)}))}))}}function oa(t){if(t.isEmpty)return!0;const e=t.getChild(0);return e.is(Yx("0x2b"),Yx("0x8a"))&&e[Yx("0x1d")]}function sa(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:i}of n[Yx("0x69")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=i)return!1;return!0}const ia=["TrackChangesEditing","handleSuggestionDescription","format","model","resizeTable","document","selection","getSelectedElement","getAttribute","data","plugins","discard","table","resizeTableWidth","getSuggestionCallback","handleResizeTableWidthCommand","getTableColumnsWidths","bind","change","getColumnGroupElement","*Format:* resize table","resizeColumnWidths","afterInit","markBlockFormat","formatBlock","TableColumnResizeEditing","tableWidth","get","_suggestionFactory","registerDescriptionCallback","getContainedElement","getSuggestions","editor","formatGroupId","_descriptionFactory","locale","commandParams"];var ra,xa;ra=ia,xa=110,function(t){for(;--t;)ra.push(ra.shift())}(++xa);const aa=function(t,e){return ia[t-=0]};class ca extends t.Plugin{[aa("0x17")](){if(!this[aa("0x21")][aa("0xb")].has(aa("0x1a")))return;const t=this[aa("0x21")][aa("0xb")][aa("0x1c")](aa("0x1"));t.enableCommand("resizeTableWidth",this.handleResizeTableWidthCommand[aa("0x12")](this)),t.enableCommand(aa("0x16"),this[aa("0x10")][aa("0x12")](this)),t[aa("0x1d")].registerCustomCallback(aa("0x19"),aa("0x5"),"accept",t[aa("0x1d")][aa("0xf")](aa("0x19"),null,aa("0xc"))),t._suggestionFactory.registerCustomCallback(aa("0x19"),"resizeTable",aa("0xc"),t[aa("0x1d")][aa("0xf")](aa("0x19"),null,"accept")),t[aa("0x23")][aa("0x1e")](this.handleSuggestionDescription[aa("0x12")](this))}handleResizeTableWidthCommand(t,e){const n=this[aa("0x21")][aa("0xb")][aa("0x1c")](aa("0x1")),o=this.editor.plugins[aa("0x1c")](aa("0x1a")),s=e[aa("0xd")]||this[aa("0x21")].model[aa("0x6")][aa("0x7")][aa("0x8")]();this[aa("0x21")][aa("0x4")][aa("0x13")]((()=>{const i=o[aa("0x14")](s);let r=i?o[aa("0x11")](i):null,x=s[aa("0x9")](aa("0x1b"))||null;const a=e[aa("0x1b")]||x,c=e.columnWidths||r,l=this.editor[aa("0xb")].get("Users").me;for(const t of n[aa("0x20")]()){const e=t[aa("0x1f")]();if(aa("0x5")===t.subType&&e===s){t.author!==l&&t.discard();const e=t[aa("0xa")][aa("0x0")];x=e[0][aa("0x1b")],r=e[0].columnWidths;break}}t({table:s,tableWidth:a,columnWidths:c}),n[aa("0x18")](s,{commandName:aa("0xe"),commandParams:[{tableWidth:x,columnWidths:r}],formatGroupId:aa("0x5")},[],aa("0x5"))}))}[aa("0x2")](t){const{data:e}=t;if(e&&aa("0x5")===e[aa("0x22")]){const t=aa("0x15");return{type:aa("0x3"),content:Yo(this[aa("0x21")][aa("0x24")],t)}}}}const la=["insertTemplate","plugins","Template","TrackChangesEditing","get"];var da,ua;da=la,ua=479,function(t){for(;--t;)da.push(da.shift())}(++ua);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{afterInit(){const t=this.editor;t[ga("0x2")].has(ga("0x3"))&&t[ga("0x2")][ga("0x0")](ga("0x4")).enableCommand(ga("0x1"))}}const fa=["get","enableCommand","tableOfContents","plugins","editor","_descriptionFactory","TrackChangesEditing","registerElementLabel","insertTableOfContents","commands","afterInit"];var ha,pa;ha=fa,pa=334,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{[ba("0x6")](){const t=this[ba("0x0")];if(!t[ba("0x5")][ba("0x7")]("insertTableOfContents"))return;t[ba("0xa")][ba("0x7")](ba("0x2"))[ba("0x8")](ba("0x4"));const e=t.plugins[ba("0x7")](ba("0x2")),n=t.locale;e[ba("0x1")][ba("0x3")](ba("0x9"),(t=>Yo(n,"ELEMENT_TABLE_OF_CONTENTS",t)))}}const _a=["plugins","Title","_splitMarkerName","document","locale","has","registerPostFixer","nodeBefore","TrackChangesEditing","newRange","registerElementLabel","editor","isCollapsed","model","end","isEqual","isTouching","element","start","schema","differ","afterInit","suggestion","ELEMENT_TITLE","title-content","forward","get","getChangedMarkers"];var Ta,Ca;Ta=_a,Ca=497,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0x0")](){const t=this[ya("0x12")];if(!t[ya("0x7")][ya("0xc")](ya("0x8")))return;const e=t[ya("0x7")][ya("0x5")](ya("0xf"));e._descriptionFactory[ya("0x11")](ya("0x3"),(()=>Yo(t[ya("0xb")],ya("0x2")))),t[ya("0x14")].document[ya("0xd")]((n=>{let o=!1;const s=Array.from(t[ya("0x14")][ya("0xa")][ya("0x1b")][ya("0x6")]());for(const{name:i,data:r}of s){const{group:s}=e[ya("0x9")](i);if(ya("0x1")!==s||!r[ya("0x10")])continue;const x=r[ya("0x10")],a=x[ya("0x15")][ya("0xe")];if(!a||!a.is(ya("0x18"),ya("0x3")))continue;if(!x[ya("0x19")][ya("0x17")](x[ya("0x15")]))continue;const c=t[ya("0x14")][ya("0x1a")].getNearestSelectionRange(x[ya("0x15")],ya("0x4"));if(c&&c[ya("0x13")]){const t=n.createRange(x.start,c[ya("0x19")]);t[ya("0x16")](x)||(n.updateMarker(i,{range:t}),o=!0)}o||(n.removeMarker(i),o=!0)}return o}))}}const Aa=["UndoEditing","plugins","afterInit","has","get","undo","redo","enableCommand"];var va,Ra;va=Aa,Ra=427,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Sa=function(t,e){return Aa[t-=0]};class Ia extends t.Plugin{[Sa("0x7")](){const t=this.editor,e=t[Sa("0x6")][Sa("0x1")]("TrackChangesEditing");t.plugins[Sa("0x0")](Sa("0x5"))&&(e[Sa("0x4")](Sa("0x2")),e.enableCommand(Sa("0x3")))}}const La=["get","has","afterInit","requires","editor","enableCommand","plugins"];var Na,wa;Na=La,wa=490,function(t){for(;--t;)Na.push(Na.shift())}(++wa);const Ma=function(t,e){return La[t-=0]};class Oa extends t.Plugin{static get[Ma("0x3")](){return[Bx]}[Ma("0x2")](){const t=this[Ma("0x4")];t[Ma("0x6")][Ma("0x1")]("TableCaptionEditing")&&t.plugins[Ma("0x0")]("TrackChangesEditing")[Ma("0x5")]("toggleTableCaption")}}const Fa=["format","filter","bind","document","getAttribute","list.properties","listStart","editor","DocumentListUtils","*Format:* set start index to %0","_getSuggestionBlocks","*Format:* set order to reversed","change","reversed","handleListStartCommand","_descriptionFactory","toUpperCase","handleDescriptions","listType","locale","_LIST_","listReversed","length","_getTranslationKeyForListStyle","plugins","afterInit","handleListStyleCommand","from","_getSuggestionBlocksForListStyle","listStyle","commandParams","handleListReversedCommand","*Change to:* %0","model","TrackChangesEditing","selection","push","startIndex","has","numbered","isListItemBlock","get","markMultiRangeBlockFormat","getSelectedBlocks","enableCommand","isFirstBlockOfListItem","config","ELEMENT_","type","DocumentListPropertiesEditing","commandName","styles","DocumentListPropertiesUtils"];var Pa,Da;Pa=Fa,Da=329,function(t){for(;--t;)Pa.push(Pa.shift())}(++Da);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{[Ba("0xe")](){if(!this[Ba("0x31")][Ba("0xd")][Ba("0x1b")](Ba("0x26")))return;const t=this[Ba("0x31")][Ba("0x23")][Ba("0x1e")](Ba("0x2f")),e=this[Ba("0x31")][Ba("0xd")].get("TrackChangesEditing");t[Ba("0x28")]&&e[Ba("0x21")](Ba("0x12"),this[Ba("0xf")].bind(this)),t[Ba("0x2")]&&e.enableCommand(Ba("0xa"),this[Ba("0x14")][Ba("0x2c")](this)),t[Ba("0x1a")]&&e[Ba("0x21")](Ba("0x30"),this[Ba("0x3")][Ba("0x2c")](this)),e[Ba("0x4")].registerDescriptionCallback(this[Ba("0x6")].bind(this))}[Ba("0xf")](t,e={}){const n=this.editor[Ba("0xd")].get(Ba("0x17")),o=this[Ba("0x11")]();this[Ba("0x31")][Ba("0x16")].change((()=>{n[Ba("0x1f")](o,{commandName:"listStyle",commandParams:[{type:e[Ba("0x25")]}],formatGroupId:"listStyle"})}))}[Ba("0x14")](t,e={}){const n=this[Ba("0x31")][Ba("0xd")][Ba("0x1e")](Ba("0x17")),o=this[Ba("0x31")][Ba("0xd")][Ba("0x1e")](Ba("0x32")),s=this[Ba("0x34")]((t=>o[Ba("0x1d")](t)&&Ba("0x1c")===t.getAttribute(Ba("0x7"))));null!==s&&this[Ba("0x31")][Ba("0x16")][Ba("0x1")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:Ba("0xa"),commandParams:[{reversed:e.reversed}],formatGroupId:Ba("0xa")})}))}[Ba("0x3")](t,e={}){const n=this.editor[Ba("0xd")][Ba("0x1e")](Ba("0x17")),o=this[Ba("0x31")][Ba("0xd")][Ba("0x1e")](Ba("0x32")),s=this[Ba("0x34")]((t=>o[Ba("0x1d")](t)&&Ba("0x1c")===t[Ba("0x2e")]("listType")));null!==s&&this[Ba("0x31")][Ba("0x16")][Ba("0x1")]((()=>{n[Ba("0x1f")](s,{commandName:Ba("0x30"),commandParams:[{startIndex:e[Ba("0x1a")]}],formatGroupId:Ba("0x30")})}))}[Ba("0x6")](t){const e=this[Ba("0x31")][Ba("0x8")],{data:n}=t;if(!n)return;let o,s;switch(n[Ba("0x27")]){case Ba("0x12"):o=Ba("0x15"),s={type:"format",content:Yo(e,o,Yo(e,this[Ba("0xc")](n.commandParams[0].type)))};break;case Ba("0xa"):o=n[Ba("0x13")][0].reversed?Ba("0x0"):"*Format:* set order to regular",s={type:Ba("0x2a"),content:Yo(e,o)};break;case"listStart":o=Ba("0x33"),s={type:Ba("0x2a"),content:Yo(e,o,n.commandParams[0][Ba("0x1a")])}}return s}[Ba("0x11")](){const t=this[Ba("0x31")].plugins[Ba("0x1e")](Ba("0x32"));let e=Array[Ba("0x10")](this[Ba("0x31")].model[Ba("0x2d")].selection[Ba("0x20")]());return e[Ba("0x19")](...t.expandListBlocksToCompleteList(e)),e=[...new Set(e)],e}[Ba("0x34")](t){const e=this[Ba("0x31")].plugins[Ba("0x1e")](Ba("0x32"));let n=Array[Ba("0x10")](this[Ba("0x31")][Ba("0x16")].document[Ba("0x18")][Ba("0x20")]())[Ba("0x2b")](t);if(!n[Ba("0xb")])return null;n=e.expandListBlocksToCompleteList(n);const o=[];for(const t of n)e[Ba("0x22")](t)&&o[Ba("0x19")](t);return o}[Ba("0xc")](t){return Ba("0x24")+this[Ba("0x31")][Ba("0xd")][Ba("0x1e")](Ba("0x29")).getListTypeFromListStyleType(t)[Ba("0x5")]()+Ba("0x9")+t[Ba("0x5")]().replace(/-/g,"_")}}const Ua=["registerCustomCallback","enqueueChange","accept","model","afterInit","has","tableCellHeight","tableBackgroundColor","getAttribute","subType","tableProperties","enableCommand","removeAttribute","document","editor","tableHeight","_getSuggestion","tableCellVerticalAlignment","tableWidth","getFirstPosition","join","get","tableBorderStyle","table","plugins","tableCellBorderWidth","*Format:* change table properties","start","getContainedElement","_suggestionFactory","_descriptionFactory","commandParams","formatBlock","data","getSuggestions","handleDiscardAction","getSuggestionCallback","_handlePropertyChange","TrackChangesTableProperties","discard","tableCellPadding","TablePropertiesEditing","TableUtils","handleSuggestionDescription","TrackChangesEditing","selection","tableCellHorizontalAlignment","tableCellProperties","format"];var Ga,Ha;Ga=Ua,Ha=260,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const Wa=function(t,e){return Ua[t-=0]};class za extends t.Plugin{constructor(t){super(t),this[Wa("0x2c")]=["tableBorderColor",Wa("0x7"),"tableBorderWidth","tableAlignment",Wa("0x3"),Wa("0x0"),Wa("0x29")],this[Wa("0x20")]=["tableCellBorderColor","tableCellBorderStyle",Wa("0xa"),Wa("0x19"),"tableCellWidth",Wa("0x28"),"tableCellBackgroundColor",Wa("0x1f"),Wa("0x2")]}static get pluginName(){return Wa("0x17")}[Wa("0x26")](){const t=this[Wa("0x30")][Wa("0x9")][Wa("0x6")](Wa("0x1d"));if(this[Wa("0x30")][Wa("0x9")][Wa("0x27")](Wa("0x1a"))){for(const e of this.tableProperties)t[Wa("0x2d")](e,((t,n)=>{const o=this[Wa("0x30")][Wa("0x25")][Wa("0x2f")][Wa("0x1e")][Wa("0x4")]().findAncestor(Wa("0x8"));this._handlePropertyChange(e,[o],this.tableProperties,"tableProperties",t,n)}));t[Wa("0xe")][Wa("0x22")](Wa("0x11"),Wa("0x2c"),Wa("0x24"),t[Wa("0xe")][Wa("0x15")]("formatBlock",null,Wa("0x18"))),t[Wa("0xe")][Wa("0x22")]("formatBlock",Wa("0x2c"),Wa("0x18"),((t,e)=>this[Wa("0x14")](this.tableProperties,t,e))),t._suggestionFactory[Wa("0x22")](Wa("0x11"),"tableProperties",Wa("0x5"),(()=>!1))}if(this[Wa("0x30")][Wa("0x9")].has("TableCellPropertiesEditing")){for(const e of this.tableCellProperties)t[Wa("0x2d")](e,((t,n)=>{const o=this[Wa("0x30")][Wa("0x9")].get(Wa("0x1b")).getSelectionAffectedTableCells(this[Wa("0x30")][Wa("0x25")][Wa("0x2f")][Wa("0x1e")]);this[Wa("0x16")](e,o,this.tableCellProperties,Wa("0x20"),t,n)}));t[Wa("0xe")][Wa("0x22")](Wa("0x11"),Wa("0x20"),Wa("0x24"),t._suggestionFactory.getSuggestionCallback(Wa("0x11"),null,Wa("0x18"))),t._suggestionFactory[Wa("0x22")](Wa("0x11"),Wa("0x20"),Wa("0x18"),((t,e)=>this[Wa("0x14")](this[Wa("0x20")],t,e))),t[Wa("0xe")][Wa("0x22")](Wa("0x11"),"tableCellProperties","join",(()=>!1))}t[Wa("0xf")].registerDescriptionCallback((t=>this[Wa("0x1c")](t)))}[Wa("0x16")](t,e,n,o,s,i){const r=this[Wa("0x30")].plugins[Wa("0x6")]("TrackChangesEditing");this[Wa("0x30")][Wa("0x25")][Wa("0x23")](i.batch,(()=>{for(const t of e)if(this[Wa("0x1")](t,o))s(i);else{const e={};for(const o of n){const n=t[Wa("0x2a")](o);void 0!==n&&(e[o]=n)}s(i),r.markBlockFormat(t,{commandParams:[e]},[],o)}}))}[Wa("0x14")](t,e,n){const o=e[0][Wa("0xc")].nodeAfter,s=n[Wa("0x10")][0];this[Wa("0x30")][Wa("0x25")].change((e=>{for(const n of t)void 0!==s[n]?e.setAttribute(n,s[n],o):e[Wa("0x2e")](n,o)}))}handleSuggestionDescription(t){if(t[Wa("0x12")])switch(t[Wa("0x2b")]){case Wa("0x2c"):return{type:Wa("0x21"),content:Yo(this[Wa("0x30")].locale,Wa("0xb"))};case Wa("0x20"):return{type:"format",content:Yo(this[Wa("0x30")].locale,"*Format:* change table cell properties")}}}[Wa("0x1")](t,e){const n=this.editor[Wa("0x9")][Wa("0x6")](Wa("0x1d"));for(const o of n[Wa("0x13")]({skipNotAttached:!0})){const n=o[Wa("0xd")]();if(o[Wa("0x2b")]===e&&n===t)return o}return null}}const Va=["getSuggestions","_adapter","_rangeIsInLocalUserInsertion","containerElement","formatInline","addSuggestion","getAttribute","clone","updateSuggestion","selection","pluginName","never","isInContent","substr","acceptSuggestion","always","consumable","_updateSuggestionData","after","_model","markInsertion","markMultiRangeDeletion","isBefore","removeClass","element","getShiftedBy","setTo","plugins","authorName","next","newRange","isObject","get","split","Users","for","_trackFormatChanges","sort","type","addComment","length","_checkSuggestionCorrectness","notReady","_mergeNestedSuggestions","hasCommentThread","size","getFirstRange","_cutOutSuggestionMarker","trackChanges","isInsideObject","writer","elementStart","suggestion","set","_createSuggestion","schema","enqueueChange","assign","isAtEnd","addMarkerName","rejected","commandName","editor","delete","clear","trackChanges.mergeNestedSuggestions","track-changes-user-not-found","_getSuggestionData","lowest","from","markers","isAfter","high","isNextTo","createRange","isExternal","removeMarker:suggestion:formatBlock","removeComment","insert","discardSelectedSuggestions","_suggestionFactory","return","forceDefaultExecution","values","dataDowncast","containsPosition","requires","adapter","highest","setAttribute","attributes","change:data","editing","registerPostFixer","filter","value","ck-suggestion-marker","createSelection","containsRange","change:_saved","insertion:discard","_refreshSuggestionsChain","@external","ck-suggestion-marker-formatBlock","isBlock","insertion:chain","trackChangesCommand","bindElementToMarker","some","track-changes-suggestion-not-found","marker-count","has","differ","discardAllSuggestions","addRange","_defaultCallbacks","_customCallbacks","deletion:join","$graveyard","deletion","before","getRanges","_joinWithAdjacentSuggestions","then","join","formatGroupId","discardSuggestion","addSuggestionData","locale","getAllAdjacentSuggestions","_handleNewSuggestionMarker","markerToHighlight","splice","originalSuggestionId","createPositionAt","getMarkers","suggestionLoaded","insertion","insertContent","isArray","define","author","acceptSelectedSuggestions","deletion:accept","addMarker:suggestion","insertion:accept","insertion:","isUndo","chain","isLimit","fetchCommentThread","showSuggestionHighlights","addUser","$textProxy","formatInline:","_commentsRepository","end","root","item","subType","splitPosition","consume","buildSuggestion","getChanges","accept","_splitMarkerName","listenTo","_removeSuggestion","formatBlock:discard","isAtStart","getChangedMarkers","elementEnd","markBlockFormat","_editor","targetPosition","getWalker","_isForcedDefaultExecutionBlock","conversion","deletion:chain","CommentsRepository","default","move","commentThread","_findSuggestions","activeMarkers","previous","_joinSuggestions","accepted","multipleBlocks","every","document","getAncestors","change","getSuggestionCallback","formatBlock:join","removeMarker","keys","isOwn","removed","discard","markInlineFormat","unbind","getIntersection","_getExternalAuthor","formatBlock:","change:activeMarkers","isRemovable","deletion:discard","track-changes-command-not-found","enableReadOnlyMode","suggestion-type","getDifference","map","external:","_enabledCommands","creator","formatBlock","isIntersectingWithRange","range","formatInline:discard","addMarker:suggestion:formatBlock","_setSuggestionRange","deletion:","stopListening","getUser","position","markerName","tablePasteChainId","PENDING_ACTION_SUGGESTION","authoredAt","push","parent","fire","markerNameToElements","addCommentThread","updateMarker","nodeAfter","markerReady","oldRange","_suggestions","howMany","mapper","_registerDefaultCallbacks","dataToMarker","detach","batch","nodeBefore","acceptAllSuggestions","hasComments","containsRangeInObject","formatInline:chain","multi","add","_descriptionFactory","ck-suggestion-marker-","options","error-saving-suggestion-data-suggestion-discarded","forward","ready","data","trackChanges.trackFormatChanges","isSelectable","config","getItems","getMultiRangeId","update:suggestion","isDocumentOperation","model","execute","_saved","getFirstMarker","reconvertMarker","init","_setSuggestionData","createdAt","getLastMatchingPosition","_addThreadToSuggestion","catch","track-changes-adapter-missing-getsuggestion","toViewElement","PendingActions","data-suggestion","dataReady","remove","isLocal","stop","refresh","suggestionUnloaded","_suggestionState","addHighlight","start","setSelection","_isDataLoaded","_addSuggestionMarker","markerToData","isCollapsed","backward","createElement","getCustomProperty","removeMarkers","isMultiRange","editingDowncast","name","deleteContent","track-changes-suggestion-data-mismatch","widget","_getAuthorFromId","markDeletion","suggestionChanged","rootName","addClass","moveTargetPosition","isEqual","commands","enableCommand","ck-suggestion-marker--active","low","getSuggestion","elementToElement","upcast","getNearestSelectionRange","_breakSuggestionMarker","includes"];var Ka,qa;Ka=Va,qa=162,function(t){for(;--t;)Ka.push(Ka.shift())}(++qa);const Xa=function(t,e){return Va[t-=0]};class $a extends t.Plugin{static get[Xa("0xf7")](){return["CommentsRepository",i.Users,t.PendingActions,cs,ms,Rs,ws,Bs,Ws,$s,ei,ri,ja,ui,pi,yi,Si,Fi,Gi,Ki,Ji,nr,xr,ur,pr,Cr,Rr,wr,jr,zr,$r,tx,ix,dx,px,Cx,Sx,Mx,Bx,zx,$x,Oa,na,ca,Ea,za,ma,ka,Ia]}static get[Xa("0xab")](){return"TrackChangesEditing"}constructor(t){function e(t){return t[Xa("0x32")]((t=>String.fromCharCode(t))).join("")}super(t),this.set(Xa("0x16"),[]),this.on(Xa("0x2b"),((e,n,o,s)=>{this._model.change((()=>{for(const e of[...s,...o])this[Xa("0xb4")].markers[Xa("0x110")](e)&&t[Xa("0xfd")][Xa("0x6d")](e)}))})),this[Xa("0x5b")]=new ss(this.editor.model[Xa("0xd8")],this[Xa("0xdf")][Xa("0x121")]),this[Xa("0xa2")]=null,this[Xa("0xf1")]=new Qa(this[Xa("0xdf")]),this._suggestions=new Map,this._commentsRepository=t[Xa("0xbc")][Xa("0xc1")](Xa("0x11")),this._enabledCommands=new Set,this._model=this[Xa("0xdf")][Xa("0x69")],this[Xa("0x7e")]=new WeakMap,this._isForcedDefaultExecutionBlock=!1,t[Xa("0x64")].define(Xa("0x62"),Xa("0x12")),this[Xa("0xc5")]=t.config[Xa("0xc1")]("trackChanges.trackFormatChanges"),t[Xa("0x64")][Xa("0x12d")](Xa("0xe2"),!0),this[Xa("0xcc")]=t[Xa("0x64")][Xa("0xc1")](Xa("0xe2")),this[Xa("0x10b")]=new u(t,this[Xa("0x34")]),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,50,48,53,50])}[Xa("0x6e")](){const t=this[Xa("0xdf")];t[Xa("0xf")][Xa("0xc4")]("editingDowncast")[Xa("0x124")]({model:Xa("0xd5"),view:t=>{const{id:e,type:n}=this[Xa("0x3")](t[Xa("0x40")]),o=[Xa("0x101"),"ck-suggestion-marker-"+n];let s=3e3;return this[Xa("0x16")][Xa("0xa0")](t[Xa("0x40")])&&(o[Xa("0x44")](Xa("0x99")),s=3010),"deletion"==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t.conversion[Xa("0xc4")](Xa("0xf5"))[Xa("0x5a")]((e=>{e.on(Xa("0x131"),((e,n,o)=>{if(!o[Xa("0x5d")].showSuggestionHighlights)return;const s=n[Xa("0x13f")];if(!s)return;const i=o[Xa("0x4f")][Xa("0x75")](s);t[Xa("0x69")][Xa("0xd8")][Xa("0xc0")](s)&&i&&!i[Xa("0x88")](Xa("0x8f"))&&i.is(Xa("0xa4"))&&(0,x.toWidget)(i,o[Xa("0xd3")])}),{priority:Xa("0xe9")})})),t[Xa("0xf")][Xa("0xc4")]("dataDowncast")[Xa("0x124")]({model:Xa("0xd5"),view:(t,e)=>{if(!e[Xa("0x5d")].showSuggestionHighlights)return null;const{type:n}=this[Xa("0x3")](t.markerName);return{classes:[Xa("0x101"),Xa("0x5c")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o.item)return;if(o[Xa("0x13f")].is(Xa("0xaa")))return void s[Xa("0xb1")].consume(o[Xa("0x13f")],n[Xa("0x8c")]);const i=s[Xa("0x4f")][Xa("0x75")](o[Xa("0x13f")]);if(!o.item.is(Xa("0xb9"))||!t[Xa("0x69")][Xa("0xd8")][Xa("0x109")](o[Xa("0x13f")])||i[Xa("0x88")](Xa("0x7f")))return;const{id:r}=this[Xa("0x3")](o[Xa("0x40")]);s.writer[Xa("0x94")]([Xa("0x101"),Xa("0x108")],i),s.writer[Xa("0xfa")](Xa("0x77"),r,i),s[Xa("0x4f")][Xa("0x10c")](i,o.markerName),e&&(this[Xa("0x16")][Xa("0xa0")](o[Xa("0x40")])?s[Xa("0xd3")][Xa("0x94")](Xa("0x99"),i):s[Xa("0xd3")][Xa("0xb8")](Xa("0x99"),i));for(const e of t[Xa("0x69")].createRangeIn(o[Xa("0x13f")])[Xa("0x65")]())s.consumable[Xa("0x142")](e,n[Xa("0x8c")]);s[Xa("0xb1")][Xa("0x142")](o[Xa("0x13f")],n[Xa("0x8c")])};t[Xa("0xf")][Xa("0xc4")](Xa("0xf5")).add((t=>{t.on(Xa("0x3a"),((t,e,o)=>{o[Xa("0x5d")][Xa("0x138")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:Xa("0xf9")})})),t[Xa("0xf")][Xa("0xc4")](Xa("0xf5"))[Xa("0x84")]({model:Xa("0xd5"),view:(t,e)=>e[Xa("0x5d")].showSuggestionHighlights?null:{group:Xa("0xd5"),name:t[Xa("0xae")](11)}}),t.conversion[Xa("0xc4")](Xa("0x9d"))[Xa("0x9c")]({view:{name:"suggestion",attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n="suggestion:"+t[Xa("0xa7")](Xa("0x30"))+":"+t.getAttribute("id");return t.getAttribute(Xa("0x10f"))&&(n+=":"+t[Xa("0xa7")](Xa("0x10f"))),e[Xa("0x87")]("$marker",{"data-name":n})}}),t[Xa("0xf")][Xa("0xc4")](Xa("0x9d"))[Xa("0x51")]({view:Xa("0xd5")}),t.conversion[Xa("0xc4")](Xa("0x8b")).add((t=>{t.on(Xa("0x3a"),n(),{priority:Xa("0xe9")})})),t.conversion[Xa("0xc4")](Xa("0x8b")).add((t=>{t.on(Xa("0xed"),((t,e,n)=>{const o=n.mapper[Xa("0x47")](e[Xa("0x40")]);if(o)for(const t of o)t[Xa("0x88")](Xa("0x7f"))||(n[Xa("0xd3")][Xa("0xb8")]([Xa("0x101"),Xa("0x108"),Xa("0x99")],t),n[Xa("0xd3")].removeAttribute(Xa("0x77"),t),n.mapper.unbindElementFromMarkerName(t,e[Xa("0x40")]))}),{priority:"high"})})),t[Xa("0x69")][Xa("0x1c")][Xa("0xfe")]((e=>{let n=!1;const o=Array[Xa("0xe6")](t[Xa("0x69")].document.differ[Xa("0x8")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[Xa("0x3")](x);if(Xa("0xd5")!==o)continue;const d=this[Xa("0x4d")][Xa("0xc1")](l);if(null!=a.newRange)if(Xa("0xa5")==c&&(n=n||Ya(a[Xa("0xbf")],x,e,t[Xa("0x69")][Xa("0xd8")])),a[Xa("0xbf")].isCollapsed||"$graveyard"==a[Xa("0xbf")][Xa("0x13e")].rootName||Xa("0x36")==c&&!ec(a[Xa("0xbf")])||Xa("0x118")==c&&(Za(r=a[Xa("0xbf")])||(i=r).start[Xa("0x45")]==i[Xa("0x13d")][Xa("0x54")]&&i[Xa("0x80")][Xa("0xdb")]))e[Xa("0x21")](x),n=!0;else{if(!d||!d.isInContent)continue;s[Xa("0x5a")](d)}}var i,r;return s[Xa("0xce")]>0&&(n=!!this[Xa("0x11b")](s)||n),n})),t[Xa("0x69")][Xa("0x1c")].registerPostFixer((e=>{let n=!1;for(const o of t[Xa("0x69")][Xa("0x1c")][Xa("0x111")][Xa("0x1")]()){if(Xa("0xef")!=o[Xa("0xc7")])continue;const s=o[Xa("0x3f")][Xa("0xba")](o[Xa("0xc9")]);if(s.isAtEnd)for(const i of this[Xa("0x4d")][Xa("0xf4")]()){if(i.isMultiRange||!i[Xa("0xad")])continue;if(Xa("0x36")!=i.type)continue;const r=i[Xa("0xcf")]();if(r[Xa("0x80")].parent!=r.end[Xa("0x45")]&&r[Xa("0x13d")].isEqual(o[Xa("0x3f")])){const o=t[Xa("0x69")][Xa("0xeb")](r[Xa("0x80")],s);e[Xa("0x49")](i[Xa("0x6c")](),{range:o}),n=!0}}}return n})),t.model[Xa("0xe7")].on(Xa("0x67"),((t,e,n)=>{if(null==n){const{id:t}=this[Xa("0x3")](e[Xa("0x8c")]),n=this[Xa("0x4d")][Xa("0xc1")](t);n&&n[Xa("0xdc")](e[Xa("0x8c")])}})),t[Xa("0x69")][Xa("0x1c")].on(Xa("0xfc"),(()=>{const e=Array[Xa("0xe6")](t[Xa("0x69")].document[Xa("0x111")][Xa("0x8")]())[Xa("0xff")]((t=>Xa("0xd5")===this[Xa("0x3")](t[Xa("0x8c")]).group));if(0===e[Xa("0xc9")])return;e[Xa("0xc6")](((t,e)=>{const n=t[Xa("0x61")][Xa("0x4c")],o=e[Xa("0x61")].oldRange;return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[Xa("0x80")][Xa("0xb7")](o[Xa("0x80")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[Xa("0x3")](t);if(null===s[Xa("0x4c")]){const e=this[Xa("0x123")](t);o.add(e)}else{const t=this[Xa("0x4d")].get(e);null!==s[Xa("0xbf")]||t.isInContent?(n[Xa("0x5a")](t.head),o[Xa("0x5a")](t)):this[Xa("0x5")](t)}}o[Xa("0xce")]>0&&this[Xa("0x106")](o);for(const t of n)this[Xa("0x46")](Xa("0x92"),t)})),t.model.on("applyOperation",((e,n)=>{const o=n[0];if(!this[Xa("0x4d")][Xa("0xce")])return;if(!o[Xa("0x68")])return;if(o.batch[Xa("0x134")]||!o[Xa("0x53")][Xa("0x7a")])return;let s,i;switch(o[Xa("0xc7")]){case Xa("0xef"):s=t.model[Xa("0x127")](o[Xa("0x3f")]),i=s[Xa("0xba")](o[Xa("0x4e")]);break;case Xa("0xc2"):s=t[Xa("0x69")][Xa("0x127")](o[Xa("0x141")]),i=t[Xa("0x69")][Xa("0x127")](o[Xa("0x95")]);break;case Xa("0x13"):s=t[Xa("0x69")].createPositionAt(o[Xa("0xc")]),i=s.getShiftedBy(o.howMany);break;default:return}const r=t[Xa("0x69")][Xa("0xeb")](s,i);t.model[Xa("0x1e")]((()=>{for(const{suggestion:t,meta:e}of this[Xa("0x15")](r)){if(t.isMultiRange)continue;if("formatInline"==t[Xa("0xc7")])continue;const n=t[Xa("0x61")]&&t.data[Xa("0x1a")];(Xa("0x36")!=t.type||Xa("0xc2")==o.type&&!n)&&(e.containsRangeInObject||Xa("0x12a")==t[Xa("0xc7")]&&e[Xa("0x23")]||t.getFirstRange().containsRange(r)&&this[Xa("0x9f")](t,s,i))}}))}),{priority:Xa("0xe5")}),t[Xa("0x69")].on("deleteContent",((e,n)=>{const o=n[0],s=n[1];if(s&&s.forceDefaultExecution)return;if(this._isForcedDefaultExecutionBlock)return;if(!this[Xa("0x10b")][Xa("0x100")])return;if(o[Xa("0x85")])return;const i=t.model[Xa("0xd8")],{start:r,end:x}=o[Xa("0xcf")](),a=r[Xa("0x4a")]&&i[Xa("0x136")](r[Xa("0x4a")])?null:i.getNearestSelectionRange(r,Xa("0x5f")),c=x.nodeBefore&&i[Xa("0x136")](x.nodeBefore)?null:i[Xa("0x9e")](x,Xa("0x86")),l=t.model[Xa("0xeb")](a?a.start:r,c?c[Xa("0x13d")]:x);t.model[Xa("0x1e")]((e=>{this[Xa("0x91")](l);const n=t[Xa("0x69")][Xa("0xd8")][Xa("0x9e")](l[Xa("0x80")]);o.is("documentSelection")?e.setSelection(n):o[Xa("0xbb")](n)})),e[Xa("0x7b")]()}),{priority:e.priorities.normal+10}),t[Xa("0x69")].on(Xa("0x12b"),((e,n)=>{const o=n[n[Xa("0xc9")]-1];o&&o[Xa("0xf3")]||this[Xa("0xe")]||this[Xa("0x10b")].value&&(t[Xa("0x69")][Xa("0x1e")]((()=>{let o=t[Xa("0x69")][Xa("0x12b")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e.return=o[Xa("0xa8")]();const s=o[Xa("0x13d")][Xa("0x54")],i=t[Xa("0x69")][Xa("0xd8")];s&&i.isBlock(s)&&!i[Xa("0xc0")](s)&&(o=t[Xa("0x69")][Xa("0xeb")](o[Xa("0x80")],t.model[Xa("0x127")](s,Xa("0x13d")))),this[Xa("0xb5")](o)})),e[Xa("0x7b")]())}),{priority:"high"}),this[Xa("0xdf")][Xa("0x97")][Xa("0x5a")]("trackChanges",this[Xa("0x10b")]),this[Xa("0x98")](Xa("0xd1"));const o=new p(t,this[Xa("0x4d")]);t[Xa("0x97")].add("acceptSuggestion",o),this[Xa("0x98")](Xa("0xaf"));const s=new C(t,this[Xa("0x4d")]);t[Xa("0x97")][Xa("0x5a")](Xa("0x11f"),s),this[Xa("0x98")](Xa("0x11f")),t.commands[Xa("0x5a")](Xa("0x55"),new F(t,o,this._suggestions)),this[Xa("0x98")](Xa("0x55")),t[Xa("0x97")].add(Xa("0x112"),new F(t,s,this._suggestions)),this[Xa("0x98")]("discardAllSuggestions"),t[Xa("0x97")][Xa("0x5a")](Xa("0x12f"),new U(t,o,this[Xa("0x4d")])),this[Xa("0x98")](Xa("0x12f")),t.commands[Xa("0x5a")](Xa("0xf0"),new U(t,s,this[Xa("0x4d")])),this[Xa("0x98")](Xa("0xf0"));const i=t.plugins[Xa("0xc1")](Xa("0x11"));this[Xa("0x4")](i,Xa("0xc8"),((t,{threadId:e})=>{const n=this[Xa("0x4d")][Xa("0xc1")](e);n&&n[Xa("0x14")]&&1===n[Xa("0x14")][Xa("0xc9")]&&this._updateSuggestionData(e,{hasComments:!0})}),{priority:Xa("0x9a")}),this.listenTo(i,Xa("0xee"),((t,{threadId:e})=>{const n=this[Xa("0x4d")].get(e);n&&n[Xa("0x14")]&&!n[Xa("0x14")][Xa("0xc9")]&&this[Xa("0xb2")](e,{hasComments:!1})}),{priority:"low"})}set[Xa("0xf8")](t){if(this[Xa("0xa2")])throw new e.CKEditorError("track-changes-adapter-already-set",this);this[Xa("0xa2")]=t}get[Xa("0xf8")](){return this[Xa("0xa2")]}[Xa("0xa1")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this._suggestions[Xa("0xf4")]())t&&!e[Xa("0xad")]||n[Xa("0x44")](e);return e?n[Xa("0x32")]((t=>t.toJSON())):n}[Xa("0x9b")](t){const n=this[Xa("0x4d")][Xa("0xc1")](t);if(!n)throw new e.CKEditorError(Xa("0x10e"),this);return n}hasSuggestion(t){return this[Xa("0x4d")].has(t)}[Xa("0x120")](t){const{authorId:e,id:n,attributes:o}=t,[s,i]=t[Xa("0xc7")][Xa("0xc2")](":"),r=this[Xa("0x4d")][Xa("0xc1")](n)||this[Xa("0xd7")](s,i,n,e,o);if(this[Xa("0x72")](r),this[Xa("0xca")](r,s,i||null,e),r.createdAt=t[Xa("0x70")],r._isDataLoaded=!0,o&&o[Xa("0x107")]){const t=o[Xa("0x107")],e=this[Xa("0x29")](t[Xa("0xbd")]);r[Xa("0x43")]=t[Xa("0x70")],r.author=e,r[Xa("0xec")]=!0}else r[Xa("0x43")]=t.createdAt;switch(t[Xa("0x61")]&&(r[Xa("0x61")]=t.data),t[Xa("0xfb")]&&(r[Xa("0xfb")]=t.attributes),this[Xa("0xa2")]&&this[Xa("0xa2")][Xa("0xa6")]||(r[Xa("0x6b")]=!0),this[Xa("0x7e")][Xa("0xc1")](r)){case Xa("0xcb"):this._suggestionState[Xa("0xd6")](r,"dataReady");break;case"markerReady":r.isInContent?(this._refreshSuggestionsChain(new Set([r])),this._joinWithAdjacentSuggestions(new Set([r])),this[Xa("0x7e")][Xa("0xd6")](r,Xa("0x60")),this[Xa("0x46")](Xa("0x129"),r)):this[Xa("0x7e")][Xa("0xd6")](r,Xa("0x24"))}return r}[Xa("0xaf")](t){this[Xa("0xf3")]((()=>{this[Xa("0xdf")].model[Xa("0x1e")]((()=>{for(const e of t[Xa("0x122")]())e[Xa("0x2")]()}))}))}[Xa("0x11f")](t){this[Xa("0xf3")]((()=>{this.editor[Xa("0x69")][Xa("0x1e")]((()=>{for(const e of t[Xa("0x122")]())e[Xa("0x25")]()}))}))}[Xa("0x98")](t,n){const o=this[Xa("0xdf")].commands[Xa("0xc1")](t);if(!o)throw new e.CKEditorError(Xa("0x2e"),this,{commandName:t});this[Xa("0x34")].add(o),n&&o.on("execute",((t,e)=>{this.trackChangesCommand[Xa("0x100")]&&(this[Xa("0xe")]||e.length>0&&e[e.length-1]&&e[e[Xa("0xc9")]-1][Xa("0xf3")]||(t[Xa("0xf2")]=n(((...t)=>o.execute(...t,{forceDefaultExecution:!0})),...e),t[Xa("0x7b")]()))}),{priority:"high"})}[Xa("0xf3")](t){let n,o;const s=this[Xa("0xe")];this._isForcedDefaultExecutionBlock=!0;try{n=t()}catch(t){o=t}return s||(this._isForcedDefaultExecutionBlock=!1),o&&e.CKEditorError.rethrowUnexpectedError(o,this),n}[Xa("0xb5")](t,n=null,o={}){if(t[Xa("0x85")])return null;const s=this[Xa("0xdf")][Xa("0xbc")][Xa("0xc1")]("Users").me;for(const{suggestion:e,meta:s}of this._findSuggestions(t,Xa("0x12a")))if(s.isOwn){if(!s[Xa("0xea")]){if(s.containsRangeInObject){if(!this._mergeNestedSuggestions||!ic(e,o))continue;return e}if(ic(e,o))return e;this[Xa("0x9f")](e,t.start,t[Xa("0x13d")]);break}if(n==e[Xa("0x140")]&&ic(e,o)){const n=e[Xa("0xcf")]();return n.start[Xa("0x96")](t[Xa("0x13d")])?this[Xa("0x3b")](e,this[Xa("0xb4")][Xa("0xeb")](t.start,n[Xa("0x13d")])):this._setSuggestionRange(e,this[Xa("0xb4")][Xa("0xeb")](n[Xa("0x80")],t[Xa("0x13d")])),e}}const i=(0,e.uid)(),r=s.id,x=n?Xa("0x133")+n:Xa("0x12a"),a=this[Xa("0x6f")]({id:i,type:x,createdAt:new Date,authorId:r,attributes:o});return this[Xa("0x83")](x,i,r,t),a}markMultiRangeInsertion(t,n=Xa("0x59"),o={}){const s=this[Xa("0xdf")][Xa("0xbc")][Xa("0xc1")](Xa("0xc3")).me,i=this._suggestionFactory[Xa("0x1f")](Xa("0x12a"),n,Xa("0x11d"));for(const e of this[Xa("0xa1")]())if(e.author.id==s.id&&"insertion"==e[Xa("0xc7")]&&e[Xa("0x140")]==n&&ic(e,o)&&(i(e.getRanges(),t)||i(t,e[Xa("0x11a")]()))){for(const n of t)e[Xa("0x113")](n);return e}for(const{suggestion:e,meta:n}of this[Xa("0x15")](t,"insertion")){if(!n[Xa("0x23")])continue;if(!this[Xa("0xcc")]&&n.containsRangeInObject)continue;if(!ic(e,o))continue;let s=!0;for(const n of e.getRanges())for(const e of t)if(!n[Xa("0x103")](e)){s=!1;break}if(s)return e}const r=(0,e.uid)(),x=s.id,a=Xa("0x133")+n,c=this[Xa("0x6f")]({id:r,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[Xa("0x83")](a,r,x,e,Zo[Xa("0x66")]());return c}[Xa("0x26")](t,n,o=null,s={}){if(o=o||tc(n),t.isCollapsed)return null;if(Xa("0xac")===this[Xa("0xc5")]){const e=this._suggestionFactory[Xa("0x1f")]("formatInline",o,Xa("0x2"));return this[Xa("0xf3")]((()=>e([t],n,s))),null}const i=this.editor[Xa("0xbc")][Xa("0xc1")]("Users").me,r=[];if("always"!==this[Xa("0xc5")])for(const{suggestion:e,meta:n}of this[Xa("0x15")](t,Xa("0x12a")))n[Xa("0x23")]&&!n.isInsideObject&&r[Xa("0x44")](...e[Xa("0x11a")]());const x=function(t,e){const n=[];for(const o of e){const e=t[Xa("0x28")](o);e&&n.push(e)}return n}(t,r),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[Xa("0xc9")];){const o=n[e][Xa("0x31")](t);n[Xa("0x125")](e,1,...o),e+=o.length}}return n}(t,r);x[Xa("0xc9")]&&this[Xa("0xb4")][Xa("0x1e")]((()=>{for(const t of x){const e=this[Xa("0xf1")][Xa("0x1f")](Xa("0xa5"),o,Xa("0x2"));this[Xa("0xf3")]((()=>e([t],n,s)))}}));for(const t of a){let r=null,x=t[Xa("0x80")],a=t.end;for(const{suggestion:e,meta:n}of this[Xa("0x15")](t,Xa("0xa5"))){if(!n[Xa("0x23")])continue;if(e[Xa("0x140")]!=o)continue;if(!ic(e,s))continue;const i=e[Xa("0xcf")]();if(i[Xa("0x103")](t,!0))return null;x=x.isBefore(i[Xa("0x80")])?x:i[Xa("0x80")],a=a.isAfter(i.end)?a:i[Xa("0x13d")],r?i[Xa("0x80")][Xa("0xb7")](r[Xa("0xcf")]()[Xa("0x80")])?(r[Xa("0x89")](),r=e):e.removeMarkers():r=e}const c=this[Xa("0xb4")][Xa("0xeb")](x,a);if(r)this[Xa("0x3b")](r,c);else{const t=(0,e.uid)(),r=i.id;this[Xa("0x6f")]({id:t,type:"formatInline:"+o,data:n,createdAt:new Date,authorId:r,attributes:s}),this[Xa("0x83")](Xa("0x13b")+o,t,r,c)}}return null}[Xa("0xa")](t,n,o=[],s=null,i={}){n.formatGroupId||(n[Xa("0x11e")]=n[Xa("0xde")]),n.multipleBlocks=t.is(Xa("0x38")),s=s||tc(n);const r=o.map((t=>nc(t,this[Xa("0xb4")]))),x=t.is(Xa("0x38"))?t:nc(t,this._model);if(Xa("0xac")===this._trackFormatChanges){const t=this._suggestionFactory.getSuggestionCallback(Xa("0x36"),s,"accept");return this[Xa("0xf3")]((()=>t([x],n,i))),null}r[Xa("0x44")](x);let a=!0;for(const t of r)if(!this[Xa("0xa3")](t)){a=!1;break}if(a&&Xa("0xb0")!==this[Xa("0xc5")]){const t=this[Xa("0xf1")].getSuggestionCallback(Xa("0x36"),s,Xa("0x2"));return this.forceDefaultExecution((()=>t([x],n,i))),null}let c=null,l=x[Xa("0x80")],d=x[Xa("0x13d")];for(const{suggestion:t,meta:e}of this[Xa("0x15")](x,Xa("0x36"))){if(!e[Xa("0x23")])continue;if(e.isNextTo||e.containsRangeInObject||e[Xa("0xd2")])continue;if(t[Xa("0x61")][Xa("0x11e")]!=n.formatGroupId)continue;if(!ic(t,i))continue;const o=t[Xa("0xcf")]();if(t[Xa("0x140")]==s){if(o[Xa("0x103")](x,!0))return null;l=l[Xa("0xb7")](o[Xa("0x80")])?l:o[Xa("0x80")],d=d.isAfter(o[Xa("0x13d")])?d:o[Xa("0x13d")],c?o.start[Xa("0xb7")](c[Xa("0xcf")]()[Xa("0x80")])?(c[Xa("0x89")](),c=t):t[Xa("0x89")]():c=t}else{const e=x[Xa("0x28")](o);this._cutOutSuggestionMarker(t,e)}}const u=this.editor.plugins[Xa("0xc1")](Xa("0xc3")).me,g=(0,e.uid)(),m=u.id;if(c)return this[Xa("0x3b")](c,this[Xa("0xb4")][Xa("0xeb")](l,d)),c;{const t=this._setSuggestionData({id:g,type:Xa("0x2a")+s,data:n,createdAt:new Date,authorId:m,attributes:i});return this[Xa("0x83")](Xa("0x2a")+s,g,m,this[Xa("0xb4")][Xa("0xeb")](l,d)),t}}markMultiRangeBlockFormat(t,n,o=[],s=null,i={}){n[Xa("0x11e")]||(n[Xa("0x11e")]=n.commandName);const r=t[0];n.multipleBlocks=r.is(Xa("0x38")),s=s||tc(n);const x=o.map((t=>nc(t,this._model))),a=r.is(Xa("0x38"))?t:t.map((t=>nc(t,this._model)));if("never"===this[Xa("0xc5")]){const t=this[Xa("0xf1")].getSuggestionCallback(Xa("0x36"),s,Xa("0x2"));return this[Xa("0xf3")]((()=>t(a,n,i))),null}x[Xa("0x44")](...a);let c=!0;for(const t of x)if(!this[Xa("0xa3")](t)){c=!1;break}if(c&&Xa("0xb0")!==this[Xa("0xc5")]){const t=this._suggestionFactory[Xa("0x1f")](Xa("0x36"),s,"accept");return this[Xa("0xf3")]((()=>t(a,n,i))),null}const l=this[Xa("0xdf")][Xa("0xbc")][Xa("0xc1")]("Users").me;for(const t of this.getSuggestions()){if(t[Xa("0x12e")].id!=l.id)continue;if(Xa("0x36")!=t.type||t[Xa("0x61")][Xa("0x11e")]!=n[Xa("0x11e")])continue;if(!ic(t,i))continue;const e=t[Xa("0x140")]==s;for(let n=0;n<a.length;n++){const o=a[n];for(const s of t[Xa("0x128")]()){const i=s.getRange();if(o[Xa("0x96")](i)){e?(a[Xa("0x125")](n,1),n--):t.removeMarker(s[Xa("0x8c")]);break}}}}if(0==a.length)return null;const d=this[Xa("0xf1")][Xa("0x1f")](Xa("0x36"),s,Xa("0x11d"));for(const t of this.getSuggestions())if(t[Xa("0x12e")].id==l.id&&Xa("0x36")==t[Xa("0xc7")]&&t[Xa("0x61")][Xa("0x11e")]==n.formatGroupId&&t.subType==s&&ic(t,i)&&(d(t[Xa("0x11a")](),a)||d(a,t[Xa("0x11a")]()))){for(const e of a)t[Xa("0x113")](e);return t}const u=(0,e.uid)(),g=l.id,m=Xa("0x2a")+s,f=this[Xa("0x6f")]({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:i});for(const t of a)this[Xa("0x83")](m,u,g,t,Zo.getMultiRangeId());return f}[Xa("0x91")](t,n=null,o={}){if(t.isCollapsed)return null;const s=this[Xa("0xdf")][Xa("0xbc")][Xa("0xc1")](Xa("0xc3")).me,i=new r.LiveRange(t[Xa("0x80")],t[Xa("0x13d")]);for(const{suggestion:t,meta:e}of this[Xa("0x15")](i,"insertion"))if(e[Xa("0x23")]&&!e[Xa("0xea")])if(t[Xa("0x8a")]){const e=t[Xa("0x11a")]()[Xa("0xff")]((t=>Xa("0x117")!=t[Xa("0x13e")][Xa("0x93")]));if(e[Xa("0x1b")]((t=>i[Xa("0x103")](t,!0)))&&t[Xa("0x25")](),e.some((t=>t[Xa("0x103")](i,!0)))){const t=this._suggestionFactory[Xa("0x1f")]("deletion",n,Xa("0x2"));return this.forceDefaultExecution((()=>t([i],null,o))),null}}else{const e=i[Xa("0x28")](t[Xa("0xcf")]());null!==e&&t._onDiscard([e],null,o)}if(i[Xa("0x52")](),i[Xa("0x85")]||Xa("0x117")==i[Xa("0x13e")].rootName)return null;let x=null,a=i.start,c=i[Xa("0x13d")];const l=this[Xa("0x15")](i,"deletion");for(const{suggestion:t,meta:e}of l){const n=this._model[Xa("0xeb")](a,c);if(e[Xa("0x23")]&&(this[Xa("0xcc")]||!e[Xa("0x57")]&&!e[Xa("0xd2")]))if(t[Xa("0x8a")]){if(!ic(t,o))continue;let e=!0;for(const o of t[Xa("0x11a")]()){if(o[Xa("0x103")](n,!0))return t;n.containsRange(o)||(e=!1)}e&&t[Xa("0x25")]()}else{const e=t[Xa("0xcf")]();if(e[Xa("0x103")](n,!0))return t;if(!ic(t,o)){n[Xa("0x103")](e)?t[Xa("0x89")]():e.containsPosition(a)?a=e[Xa("0x13d")]:e.containsPosition(c)&&(c=e[Xa("0x80")]);continue}a=a[Xa("0xb7")](e.start)?a:e.start,c=c[Xa("0xe8")](e.end)?c:e[Xa("0x13d")],o=Object[Xa("0xda")]({},t[Xa("0xfb")]),x?e.start[Xa("0xb7")](x[Xa("0xcf")]()[Xa("0x80")])?(x[Xa("0x89")](),x=t):t[Xa("0x89")]():x=t}}if(x)return this._setSuggestionRange(x,this[Xa("0xb4")][Xa("0xeb")](a,c)),x;{const t=(0,e.uid)(),i=this._model.createRange(a,c),r=s.id,x=n?Xa("0x3c")+n:Xa("0x118"),l=this[Xa("0x6f")]({id:t,type:x,createdAt:new Date,authorId:r,attributes:o});return this._addSuggestionMarker(x,t,r,i),l}}[Xa("0xb6")](t,n=Xa("0x59"),o={}){const s=this[Xa("0xdf")][Xa("0xbc")].get(Xa("0xc3")).me,i=t[Xa("0x32")]((t=>new r.LiveRange(t[Xa("0x80")],t[Xa("0x13d")]))),x=new Set;for(const{suggestion:t,meta:e}of this[Xa("0x15")](i,Xa("0x12a")))e[Xa("0x23")]&&!e.isNextTo&&x[Xa("0x5a")](t);for(const e of x)if(e[Xa("0x8a")]){const s=e[Xa("0x11a")]();if((!e[Xa("0xfb")]||!e[Xa("0xfb")].skipNestingCheck)&&s[Xa("0x1b")]((t=>i[Xa("0x10d")]((e=>e[Xa("0x103")](t,!0)))))&&e.discard(),i[Xa("0x1b")]((t=>s[Xa("0x10d")]((e=>e.containsRange(t,!0)))))){const e=this[Xa("0xf1")][Xa("0x1f")](Xa("0x118"),n,"accept");return this[Xa("0xf3")]((()=>e(t,null,o))),null}}else{const t=e[Xa("0xcf")]();if(i[Xa("0x10d")]((e=>e.containsRange(t,!0)))&&e[Xa("0x25")](),i[Xa("0x1b")]((e=>t[Xa("0x103")](e,!0)))){const t=this[Xa("0xf1")][Xa("0x1f")](Xa("0x118"),n,Xa("0x2"));return this[Xa("0xf3")]((()=>t(i,null,o))),null}}const a=this[Xa("0xf1")][Xa("0x1f")](Xa("0x118"),n,Xa("0x11d"));let c=null;for(const t of this[Xa("0xa1")]())if(t[Xa("0x12e")].id==s.id&&t.isInContent&&Xa("0x118")==t[Xa("0xc7")]&&t[Xa("0x140")]==n&&ic(t,o)&&(a(t[Xa("0x11a")](),i)||a(i,t[Xa("0x11a")]())))if(c){if(t[Xa("0x14")]&&t.commentThread.length)continue;for(const e of t[Xa("0x11a")]())c[Xa("0x37")](e)||c[Xa("0x113")](e);t.removeMarkers()}else{c=t;for(const e of i)t[Xa("0x37")](e)||t[Xa("0x113")](e)}if(c)return c;x[Xa("0xe1")]();for(const{suggestion:t,meta:e}of this._findSuggestions(i,Xa("0x118")))e[Xa("0x23")]&&(this[Xa("0xcc")]||!e[Xa("0x57")]&&!e[Xa("0xd2")])&&ic(t,o)&&x[Xa("0x5a")](t);for(const t of x){const e=t[Xa("0x11a")]();if((!o||!o.skipNestingCheck)&&i[Xa("0x1b")]((t=>e[Xa("0x10d")]((e=>e[Xa("0x103")](t,!0))))))return t;(!t[Xa("0xfb")]||!t[Xa("0xfb")].skipNestingCheck)&&e.every((t=>i.some((e=>e[Xa("0x103")](t,!0)))))&&t[Xa("0x25")]()}const l=(0,e.uid)(),d=s.id,u=Xa("0x3c")+n,g=this[Xa("0x6f")]({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of i)t[Xa("0x52")](),t[Xa("0x85")]||Xa("0x117")==t[Xa("0x13e")][Xa("0x93")]||this[Xa("0x83")](u,l,d,t,Zo.getMultiRangeId());return g}_setSuggestionRange(t,e){const n=t[Xa("0x6c")]();this[Xa("0xb4")][Xa("0x1e")]((t=>{t.updateMarker(n,{range:e})}))}_addThreadToSuggestion(t){const e=t.id,n=this.editor[Xa("0x64")].get("collaboration.channelId");this[Xa("0x13c")][Xa("0xcd")](e)||this._commentsRepository[Xa("0x48")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[Xa("0x13c")].getCommentThread(e);o[Xa("0x27")](Xa("0x2c")),o[Xa("0x2c")]=!1,t[Xa("0x14")]=o}[Xa("0xca")](t,n,o,s){if(t.type!=n||t[Xa("0x140")]!=o||t.creator.id!=s)throw this[Xa("0xdf")][Xa("0x2f")](Xa("0x8e")),new e.CKEditorError(Xa("0x8e"),this)}[Xa("0xd0")](t,n){const o=t[Xa("0xcf")]();if(n[Xa("0x96")](o))t[Xa("0x89")]();else if(o[Xa("0x103")](n)){const s=this[Xa("0xb4")][Xa("0x127")](n.start[Xa("0x54")],Xa("0x13d"));this._setSuggestionRange(t,this[Xa("0xb4")].createRange(o[Xa("0x80")],s));const i=(0,e.uid)(),r=t[Xa("0x35")].id,x=t[Xa("0xc7")]+":"+t[Xa("0x140")];this[Xa("0x6f")]({id:i,type:x,createdAt:new Date,authorId:r,data:t.data,attributes:t[Xa("0xfb")]});const a=this[Xa("0xb4")][Xa("0x127")](n[Xa("0x13d")].parent,Xa("0xb3")),c=this[Xa("0xb4")].createRange(a,o[Xa("0x13d")]);this[Xa("0x83")](x,i,r,c)}else if(o[Xa("0xf6")](n[Xa("0x80")])){const e=this[Xa("0xb4")][Xa("0x127")](n.start.nodeBefore,Xa("0x13d"));this[Xa("0x3b")](t,this[Xa("0xb4")][Xa("0xeb")](o[Xa("0x80")],e))}else{const e=this[Xa("0xb4")][Xa("0x127")](n.end.parent,"after");this[Xa("0x3b")](t,this._model.createRange(e,o[Xa("0x13d")]))}}_rangeIsInLocalUserInsertion(t){for(const{suggestion:e,meta:n}of this[Xa("0x15")](t,Xa("0x12a"))){if(!n[Xa("0x23")])continue;const o=e[Xa("0x11a")]();for(const e of o)if(!t[Xa("0x31")](e)[Xa("0xc9")])return!0}return!1}[Xa("0x90")](t){const n=this[Xa("0xdf")].plugins.get(Xa("0xc3"))[Xa("0x3e")](t);if(!n)throw new e.CKEditorError(Xa("0xe3"),this);return n}_getExternalAuthor(t){const e=this.editor.plugins[Xa("0xc1")](Xa("0xc3")),n=(0,i.hashObject)(Xa("0x33")+t);return e[Xa("0x3e")](n)||e[Xa("0x139")]({id:n,name:t})}_createSuggestion(t,e,n,o,s){const i=this[Xa("0x90")](o),r=this[Xa("0xf1")][Xa("0x0")](t,e,n,i,s,(t=>this[Xa("0xb2")](n,{attributes:t})));return this.listenTo(r,Xa("0x2"),(()=>{this[Xa("0xb2")](n,{state:Xa("0x19")})}),{priority:"high"}),this[Xa("0x4")](r,"discard",(()=>{this[Xa("0xb2")](n,{state:Xa("0xdd")})}),{priority:Xa("0xe9")}),this[Xa("0x4d")][Xa("0xd6")](n,r),this[Xa("0x7e")].set(r,Xa("0xcb")),r}[Xa("0x3")](t){const e=t[Xa("0xc2")](":");return{group:e[0],type:e[1],subType:e[Xa("0xc9")]>=5?e[2]:null,id:e[Xa("0xc9")]<5?e[2]:e[3],authorId:e[Xa("0xc9")]<5?e[3]:e[4],markerCount:6==e[Xa("0xc9")]?e[5]:null}}[Xa("0x9f")](t,n,o){const s=t[Xa("0xcf")](),i=s.start,r=s[Xa("0x13d")];this[Xa("0x3b")](t,this[Xa("0xb4")][Xa("0xeb")](i,n));const x=(0,e.uid)(),a=t[Xa("0x35")].id,c=t.type+(t[Xa("0x140")]?":"+t[Xa("0x140")]:"");this[Xa("0x6f")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[Xa("0xfb")],data:t[Xa("0x61")]}),"formatBlock"==t[Xa("0xc7")]&&(o=this[Xa("0xb4")].createPositionBefore(o[Xa("0x45")])),this[Xa("0x83")](c,x,a,this._model[Xa("0xeb")](o,r))}[Xa("0x15")](t,e=null){const n=[],o=this[Xa("0xdf")][Xa("0xbc")][Xa("0xc1")](Xa("0xc3")).me;Array[Xa("0x12c")](t)||(t=[t]);for(const s of this[Xa("0xa1")]()){if(!s[Xa("0xad")])continue;if(e&&s[Xa("0xc7")]!=e)continue;let i=!1;for(const e of s[Xa("0x11a")]()){for(const r of t){const t=r[Xa("0x80")][Xa("0x96")](e[Xa("0x13d")])||r[Xa("0x13d")].isEqual(e[Xa("0x80")]);if(t||r[Xa("0x28")](e)){const x=r[Xa("0x103")](e)&&Ja(this[Xa("0xb4")][Xa("0xd8")],e[Xa("0x80")],r),a=e[Xa("0x103")](r)&&Ja(this._model[Xa("0xd8")],r.start,e);n[Xa("0x44")]({suggestion:s,meta:{isOwn:o==s[Xa("0x12e")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),i=!0;break}}if(i)break}}return n}[Xa("0x83")](t,e,n,o,s){this[Xa("0xb4")].change((i=>{let r="suggestion:"+t+":"+e+":"+n;s&&(r=r+":"+s),i.addMarker(r,{range:o,usingOperation:!0,affectsData:!0})}))}[Xa("0x5")](t){const e=t[Xa("0x17")],n=t.next;t.previous=null,null!=e&&(e.next=null),t[Xa("0xbe")]=null,null!=n&&(n[Xa("0x17")]=null),"ready"==this._suggestionState[Xa("0xc1")](t)&&(this[Xa("0x7e")][Xa("0xd6")](t,Xa("0x24")),this[Xa("0x46")](Xa("0x7d"),t,e,n))}[Xa("0x6f")](t){const n=t.id,o=this[Xa("0x120")](t);if(this[Xa("0xa2")]&&this._adapter[Xa("0xa6")]){const s=this.editor[Xa("0xbc")][Xa("0xc1")](Xa("0x76")),i=o[Xa("0x56")],r=o[Xa("0x140")]?o.type+":"+o.subType:o[Xa("0xc7")],x=this[Xa("0xdf")].locale,a=s[Xa("0x5a")](Yo(x,"PENDING_ACTION_SUGGESTION")),c={id:n,type:r,hasComments:i,data:t[Xa("0x61")]||null,originalSuggestionId:t[Xa("0x126")]||null,attributes:o[Xa("0xfb")]};this[Xa("0xa2")][Xa("0xa6")](c)[Xa("0x11c")]((t=>{o[Xa("0x6b")]=!0,s[Xa("0x79")](a),t&&t[Xa("0x70")]&&(this[Xa("0x4d")][Xa("0xc1")](n).createdAt=t[Xa("0x70")])}))[Xa("0x73")]((t=>{throw(0,e.logWarning)(Xa("0x5e")),this.editor[Xa("0x69")][Xa("0xd9")]({isUndoable:!1},(()=>{o[Xa("0x25")]()})),o[Xa("0x3d")](),this[Xa("0x4d")][Xa("0xe0")](o.id),this._suggestionState[Xa("0xe0")](o),t}))}return o}[Xa("0xb2")](t,e){const n=this[Xa("0xdf")][Xa("0xbc")][Xa("0xc1")](Xa("0x76")),o=this.getSuggestion(t);if(this[Xa("0xa2")]&&this._adapter[Xa("0xa9")])if(o[Xa("0x6b")]){const o=n[Xa("0x5a")](Yo(this[Xa("0xdf")].locale,Xa("0x42")));this[Xa("0xa2")][Xa("0xa9")](t,e)[Xa("0x11c")]((()=>{n[Xa("0x79")](o)}))}else o.on(Xa("0x104"),(()=>{this[Xa("0xb2")](t,e)}))}[Xa("0xe4")](t){if(!this._adapter||!this[Xa("0xa2")][Xa("0x9b")])throw new e.CKEditorError(Xa("0x74"),this);return this[Xa("0xa2")][Xa("0x9b")](t)}_handleNewSuggestionMarker(t){const{id:e,type:n,subType:o,authorId:s}=this[Xa("0x3")](t),i=this[Xa("0x4d")].get(e)||this._createSuggestion(n,o,e,s,{});switch(this[Xa("0xca")](i,n,o,s),this[Xa("0x7e")][Xa("0xc1")](i)){case Xa("0xcb"):this[Xa("0xe4")](e).then((t=>{let n=Promise.resolve();t[Xa("0x56")]&&(n=this[Xa("0x13c")][Xa("0x137")]({channelId:this[Xa("0xdf")][Xa("0x64")][Xa("0xc1")]("collaboration.channelId"),threadId:e})),n[Xa("0x11c")]((()=>{this[Xa("0x120")](t)[Xa("0x6b")]=!0}))})),this._suggestionState.set(i,Xa("0x4b"));break;case Xa("0x24"):this[Xa("0xb2")](e,{state:"open"});case Xa("0x78"):this[Xa("0x7e")].set(i,Xa("0x60")),this[Xa("0x46")]("suggestionLoaded",i);break;case"ready":this[Xa("0x46")](Xa("0x92"),i)}return i[Xa("0xdc")](t),i}[Xa("0x106")](t){const e=Array[Xa("0xe6")](t)[Xa("0xff")]((t=>!t[Xa("0x8a")])),n=this[Xa("0xa1")]({skipNotAttached:!0}).filter((t=>!t[Xa("0x8a")])),o=n[Xa("0xff")]((e=>!t[Xa("0x110")](e))),s=new Map(n[Xa("0x32")]((t=>[t,this[Xa("0xf1")][Xa("0x1f")](t[Xa("0xc7")],t[Xa("0x140")],Xa("0x135"))]))),i=new Map(n[Xa("0x32")]((t=>[t,t[Xa("0xcf")]()]))),r=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[Xa("0xc9")];t++)a(e[t],o,0);for(let t=0;t<e[Xa("0xc9")];t++){const n=e[t];!x.has(n)&&n.previous&&(n[Xa("0x17")][Xa("0xbe")]===n&&(n.previous.next=null),n[Xa("0x17")]=null),!r.has(n)&&n.next&&(n[Xa("0xbe")][Xa("0x17")]===n&&(n[Xa("0xbe")][Xa("0x17")]=null),n[Xa("0xbe")]=null)}function a(t,e,n){for(let o=n;o<e.length;o++){const n=c(t,e[o]);n&&(n[0][Xa("0xbe")]=n[1],n[1][Xa("0x17")]=n[0],r[Xa("0x5a")](n[0]),x.add(n[1]))}}function c(t,e){if(t.author.id!==e[Xa("0x12e")].id)return null;const n=s[Xa("0xc1")](t)(t,e,i.get(t),i[Xa("0xc1")](e));return n&&s[Xa("0xc1")](e)(t,e,i[Xa("0xc1")](t),i.get(e))?n[1][Xa("0x14")]&&n[1][Xa("0x14")].length?null:n:null}}[Xa("0x11b")](t){const e=Array[Xa("0xe6")](t),n=this[Xa("0xa1")]({skipNotAttached:!0}),o=n[Xa("0xff")]((e=>!t.has(e))),s=new Map(e.map((t=>[t,this[Xa("0xf1")][Xa("0x1f")](t[Xa("0xc7")],t[Xa("0x140")],"join")]))),i=new Map(n.map((t=>[t,t[Xa("0x11a")]()])));for(let t=0;t<e[Xa("0xc9")];t++)if(r(this,e[t],e,t+1))return!0;for(let t=0;t<e[Xa("0xc9")];t++)if(r(this,e[t],o,0))return!0;return!1;function r(t,e,n,o){for(let r=o;r<n[Xa("0xc9")];r++){const o=n[r];if(o[Xa("0xc7")]!==e[Xa("0xc7")]||o[Xa("0x12e")].id!==e[Xa("0x12e")].id||o.subType!==e[Xa("0x140")])continue;if(!sc(e,o))continue;const x=s.get(e),a=i[Xa("0xc1")](e),c=i[Xa("0xc1")](o),l=e[Xa("0x14")]&&e.commentThread[Xa("0xc9")],d=o[Xa("0x14")]&&o[Xa("0x14")][Xa("0xc9")];if(!l&&x(c,a))return t[Xa("0x18")](o,e),i[Xa("0xe0")](e),!0;if(!d&&x(a,c))return t[Xa("0x18")](e,o),i[Xa("0xe0")](o),!0}return!1}}[Xa("0x18")](t,e){if(t[Xa("0x8a")])for(const n of e.getRanges())t[Xa("0x113")](n);else{const n=e[Xa("0xcf")]().end;this[Xa("0x3b")](t,this[Xa("0xb4")][Xa("0xeb")](t[Xa("0xcf")]().start,n))}e[Xa("0x89")]()}}class Qa{constructor(t){this[Xa("0xb")]=t,this[Xa("0xb4")]=t.model,this[Xa("0x115")]=new Map,this._defaultCallbacks=new Map,this._registerDefaultCallbacks()}buildSuggestion(t,e,n,o,s,i){return new Zo(this._model,{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:i,onAccept:(...n)=>this[Xa("0x1f")](t,e,Xa("0x2"))(...n),onDiscard:(...n)=>this[Xa("0x1f")](t,e,Xa("0x25"))(...n)})}registerCustomCallback(t,e,n,o){const s=t+":"+e+":"+n;this[Xa("0x115")][Xa("0xd6")](s,o)}getSuggestionCallback(t,e,n){const o=t+":"+e+":"+n;return this[Xa("0x115")][Xa("0xc1")](o)||this[Xa("0x114")][Xa("0xc1")](t+":"+n)}[Xa("0x50")](){const t=()=>!1,e=t=>{t[Xa("0xc6")](((t,e)=>t[Xa("0x80")][Xa("0xb7")](e[Xa("0x80")])?1:-1)),this[Xa("0xb4")].change((e=>{for(const n of t){let t;t=n[Xa("0x13d")][Xa("0xdb")]&&n.end.parent==n.start[Xa("0x4a")]?e[Xa("0x102")](n[Xa("0x80")][Xa("0x4a")],"on"):e.createSelection(n),this._model[Xa("0x8d")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this._model[Xa("0x1e")]((n=>{const{commandName:o,commandParams:s=[]}=e,i=t[Xa("0x32")]((t=>(Za(t)&&(t=this[Xa("0xb4")].createRange(t[Xa("0x13d")])),t)))[Xa("0xff")]((t=>Xa("0x117")!==t[Xa("0x13e")][Xa("0x93")]));if(i.length<1)return;const x=Array.from(this._model[Xa("0x1c")].selection[Xa("0x11a")]()).map((t=>r.LiveRange.fromRange(t)));n[Xa("0x81")](i);for(const t of this._editor[Xa("0x97")].commands())t[Xa("0x7c")]();s.push({forceDefaultExecution:!0}),this[Xa("0xb")][Xa("0x6a")](o,...s);const a=x[Xa("0xff")]((t=>Xa("0x117")!=t.root.rootName));a[Xa("0xc9")]>0&&n.setSelection(a);for(const t of x)t[Xa("0x52")]()}))},o=(t,e)=>1==t.length&&1==e[Xa("0xc9")]&&t[0].end[Xa("0x96")](e[0][Xa("0x80")]),s=(t,e,n,o)=>oc(t,e,n,o,this._model)?[t,e]:oc(e,t,o,n,this._model)?[e,t]:null;this._defaultCallbacks[Xa("0xd6")](Xa("0x132"),t),this[Xa("0x114")][Xa("0xd6")](Xa("0x105"),e),this._defaultCallbacks[Xa("0xd6")]("insertion:join",o),this[Xa("0x114")].set(Xa("0x10a"),s),this[Xa("0x114")][Xa("0xd6")](Xa("0x130"),e),this[Xa("0x114")][Xa("0xd6")](Xa("0x2d"),t),this[Xa("0x114")][Xa("0xd6")](Xa("0x116"),o),this[Xa("0x114")].set(Xa("0x10"),s),this._defaultCallbacks.set("formatInline:accept",n),this._defaultCallbacks.set(Xa("0x39"),t),this[Xa("0x114")][Xa("0xd6")]("formatInline:join",o),this[Xa("0x114")][Xa("0xd6")](Xa("0x58"),t),this[Xa("0x114")][Xa("0xd6")]("formatBlock:accept",n),this[Xa("0x114")][Xa("0xd6")](Xa("0x6"),t),this[Xa("0x114")][Xa("0xd6")](Xa("0x20"),o),this[Xa("0x114")].set("formatBlock:chain",t)}}function Ja(t,e,n){for(const o of e[Xa("0x45")][Xa("0x1d")]({includeSelf:!0,parentFirst:!0})){if(o[Xa("0x13e")]==o)return!1;if(!n.containsItem(o))return!1;if(t.isObject(o)||t[Xa("0x136")](o))return!0}return!1}function Za(t){return t[Xa("0x13d")][Xa("0x45")]==t[Xa("0x80")].nodeAfter&&t[Xa("0x13d")][Xa("0x7")]}function Ya(t,e,n,o){const s=t=>!t[Xa("0x13f")].is(Xa("0x13a"))&&!o[Xa("0xc0")](t[Xa("0x13f")]),i=t[Xa("0x80")][Xa("0x71")](s),r=t[Xa("0x13d")][Xa("0x71")](s,{direction:Xa("0x86")});return!(t[Xa("0x80")][Xa("0x96")](i)&&t[Xa("0x13d")][Xa("0x96")](r)||(i[Xa("0xb7")](r)?n[Xa("0x49")](e,{range:n.createRange(i,r)}):n.removeMarker(e),0))}function tc(t){return(0,i.hashObject)(t)}function ec(t){const e=t[Xa("0x80")][Xa("0x4a")];return e&&e.is(Xa("0xb9"))}function nc(t,e){const n=e[Xa("0xd8")][Xa("0xc0")](t)||e[Xa("0xd8")][Xa("0x63")](t);return e[Xa("0xeb")](e[Xa("0x127")](t,Xa("0x119")),n?e.createPositionAfter(t):e[Xa("0x127")](t,"end"))}function oc(t,e,n,o,s){if(!sc(t,e))return!1;if(n.end.isEqual(o[Xa("0x80")]))return!0;if(t[Xa("0xc7")]!=e.type)return!1;if(!n[Xa("0x13d")].isTouching(o[Xa("0x80")]))return!1;const i=s[Xa("0xeb")](n[Xa("0x13d")],o.start)[Xa("0xd")]();for(const t of i)if([Xa("0xd4"),Xa("0x9")][Xa("0xa0")](t[Xa("0xc7")])&&s[Xa("0xd8")][Xa("0x136")](t[Xa("0x13f")]))return!1;return!0}function sc(t,e){return!(!t._isDataLoaded||!e[Xa("0x82")])&&Go(t[Xa("0xfb")],e[Xa("0xfb")])}function ic(t,e){const n=rc(t[Xa("0xfb")]),o=rc(e);if(!t[Xa("0x82")])return!1;for(const t of Object[Xa("0x22")](o))if(!Go(n[t],o[t]))return!1;return!0}function rc(t){const e=Object[Xa("0xda")]({},t);return delete e.skipNestingCheck,delete e[Xa("0x41")],e}const xc=["_pendingAction","_discardCommand","discardSuggestion","bind","_setPendingAction","destroy","PendingActions","unbind","commentThreadController","stopListening","canEditAt","execute","add","canAccept","isEnabled","_editor","_acceptCommand","listenTo","commands","change:isDirty","locale","view","remove","model","get","plugins","_removePendingAction","isDirty","canDiscard","acceptSuggestion"];var ac,cc;ac=xc,cc=292,function(t){for(;--t;)ac.push(ac.shift())}(++cc);const lc=function(t,e){return xc[t-=0]};class dc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[lc("0x1")]=e,this[lc("0x1d")]=n,this[lc("0x10")]=o,this[lc("0x17")]=t,this[lc("0x18")]=t[lc("0x1a")][lc("0x2")](lc("0x7")),this[lc("0x9")]=t[lc("0x1a")][lc("0x2")](lc("0xa")),this.view[lc("0xb")](lc("0x16")).to(this._acceptCommand,this[lc("0x9")],((t,e)=>t||e)),this[lc("0x1d")][lc("0xb")](lc("0x15")).to(this[lc("0x18")],"isEnabled",(t=>t&&this[lc("0x17")].model[lc("0x12")](e.getRanges()))),this[lc("0x1d")].bind(lc("0x6")).to(this[lc("0x9")],lc("0x16"),(t=>t&&this[lc("0x17")][lc("0x1")][lc("0x12")](e.getRanges()))),this[lc("0x8")]=null,n[lc("0x5")]&&this[lc("0xc")](),this[lc("0x19")](n,lc("0x7"),(()=>this[lc("0x7")]())),this[lc("0x19")](n,lc("0xa"),(()=>this[lc("0xa")]())),this[lc("0x19")](n,lc("0x1b"),(()=>{n[lc("0x5")]?this[lc("0xc")]():this._removePendingAction()}))}[lc("0x7")](){this[lc("0x18")][lc("0x13")](this.model.id)}[lc("0xa")](){this[lc("0x9")][lc("0x13")](this.model.id)}[lc("0xd")](){this[lc("0x1d")][lc("0xf")](lc("0x16")),this[lc("0x1d")].unbind("canAccept"),this[lc("0x1d")].unbind(lc("0x6")),this[lc("0x11")](),this.commentThreadController[lc("0xd")](),this[lc("0x8")]&&this[lc("0x4")]()}[lc("0xc")](){const t=Yo(this[lc("0x17")][lc("0x1c")],"PENDING_ACTION_SUGGESTION");this[lc("0x8")]=this[lc("0x17")][lc("0x3")][lc("0x2")]("PendingActions")[lc("0x14")](t)}_removePendingAction(){null!==this._pendingAction&&this._editor[lc("0x3")][lc("0x2")](lc("0xe"))[lc("0x0")](this._pendingAction),this[lc("0x8")]=null}}const uc=["commentsListView","_config","element","commentInputView","bind","cancel","canDiscard","submit","setData","length","destroy","delegate","locale","focus","removeComment","_localUser","value","disabledSubmit","_createCommentThreadInputView","CommentView","commentThreadInputView","commentThread","addComment","set","isDirty","updateComment","_createCommentViews","isReadOnly","authoredAt","showInput","editor","fire","_model","isActive"];var gc,mc;gc=uc,mc=315,function(t){for(;--t;)gc.push(gc.shift())}(++mc);const fc=function(t,e){return uc[t-=0]};class hc extends s.View{constructor(t,e,n,o){super(t),this[fc("0x19")]=null,this[fc("0xb")]=null,this[fc("0xe")]("isActive",!1),this[fc("0xe")]("authoredAt",e[fc("0x13")]),this[fc("0x1d")](fc("0x13")).to(e),this[fc("0xe")]("descriptionParts",[]),this[fc("0xe")](fc("0xf"),!1),this[fc("0xe")]("isEnabled",!1),this[fc("0xe")]("canAccept",!1),this[fc("0xe")](fc("0x1f"),!1),this._model=e,this._localUser=n,this._config=o,o.disableComments?this[fc("0xe")](fc("0x0"),1):this[fc("0x11")]()}focus(){this[fc("0x1b")][fc("0x4")]()}[fc("0x1")](){this[fc("0x19")]&&this[fc("0x19")][fc("0x1")](),this[fc("0xb")]&&this.commentThreadInputView[fc("0x1")](),super[fc("0x1")]()}[fc("0x11")](){const{CommentsListView:t}=this._config;this[fc("0x19")]=new t(this[fc("0x3")],this[fc("0x17")][fc("0xc")],Object.assign({CommentView:this[fc("0x1a")][fc("0xa")]},this._config)),this.commentsListView[fc("0x2")]("removeComment").to(this),this[fc("0x19")][fc("0x2")](fc("0x10")).to(this),this[fc("0x19")][fc("0x1d")](fc("0x18")).to(this),this[fc("0xe")]("length",this[fc("0x19")].length+1),this[fc("0x1d")](fc("0x0")).to(this.commentsListView,"length",(t=>t+1)),this.commentThreadInputView=this[fc("0x9")](),this.on(fc("0x5"),(()=>this[fc("0x4")]())),this[fc("0x1d")](fc("0xf")).to(this[fc("0x19")],"hasDirtyComment",this[fc("0xb")][fc("0x1c")],fc("0x7"),((t,e)=>t||!!e))}_createCommentThreadInputView(){const{CommentThreadInputView:t}=this._config,e=new t(this[fc("0x3")],this[fc("0x6")],this._config.editorConfig),n=e[fc("0x1c")];return e.bind(fc("0x14")).to(this,fc("0x18"),this._model[fc("0xc")],fc("0x12"),n,"value",((t,e,n)=>!!n||t&&!e)),n.on(fc("0x20"),((t,e)=>{this[fc("0x16")](fc("0xd"),e),n[fc("0x15")][fc("0x21")]("")})),n.on(fc("0x1e"),(()=>this.focus())),n[fc("0x1d")](fc("0x8")).to(this[fc("0x17")][fc("0xc")],fc("0x12")),e}}const pc=["map",".ck-annotation__content-wrapper","div","set","children","ck-suggestion-","span","ck-suggestion__info","isExternal","bind","isActive","ck-annotation__info","content","_model","execute","userView","editorReady","acceptSuggestion","source","element","ck-annotation__info-name","ck-annotation__user","editorDestroyed","bindTemplate","getTemplate","name","join","discardButton","value","_config","EXTERNAL_IMPORT_WORD_SUGGESTION","querySelector","ck-suggestion__main","attributes","commentThread",'<span class="ck-suggestion-type">',"descriptionParts","creator","_createButton","setTemplate","time","formatDateTime","innerText","discardSuggestion","author","importWord","type",'"></span>',"cancel","</p>","ck-suggestion",'<span class="ck-suggestion-color" style="background-color: ',"render","acceptButton","EXTERNAL_AVATAR","ck-annotation__info-time","push","locale","description","color","EXTERNAL_IMPORT_WORD_AVATAR","commentsListView","change:description","delegate","ck-suggestion--disabled-comments","EXTERNAL_SUGGESTION","ck-suggestion__info-name","ck-suggestion--discard","ck-suggestion__user","commentThreadInputView","_descriptionElement","ck-suggestion--accept","check","ck-suggestion-wrapper--active","innerHTML","createElement","split","extendTemplate","@external","canAccept","getUserViewNotificationText","ck-annotation__content-wrapper","authoredAt","isEnabled"];var bc,Ec;bc=pc,Ec=134,function(t){for(;--t;)bc.push(bc.shift())}(++Ec);const _c=function(t,e){return pc[t-=0]};class Tc extends hc{constructor(e,n,o,s){super(e,n,o,s),this[_c("0x25")](_c("0x50"),""),this.bind(_c("0x50")).to(this,_c("0x46"),(t=>t&&t[0]?t[0].type:"")),this[_c("0x2b")](_c("0x8")).to(this,_c("0x46"),this,_c("0x2c"),((t,e)=>{let n="";for(const e of t)n+="<p>"+Cc(e[_c("0x2e")],e[_c("0x9")])+_c("0x53");return e?n:(0,i.trimHtml)(n,{limit:140})})),this[_c("0x14")]=null,this[_c("0x3")]=this[_c("0x48")](Yo(e,"Accept suggestion"),t.icons[_c("0x16")],_c("0x15"),_c("0x33"),"sw"),this[_c("0x3")].bind(_c("0x21")).to(this,_c("0x1d")),this[_c("0x3d")]=this[_c("0x48")](Yo(e,"Discard suggestion"),t.icons[_c("0x52")],_c("0x11"),_c("0x4d"),"sw"),this[_c("0x3d")][_c("0x2b")](_c("0x21")).to(this,"canDiscard"),this[_c("0x31")]=new i.UserView(e,this._model[_c("0x4e")],this[_c("0x1e")]()),this.userView[_c("0x1b")]({attributes:{class:[_c("0x12"),_c("0x37")]}}),this[_c("0x49")](this[_c("0x3a")]())}getTemplate(){const t=this[_c("0x39")],e=[{tag:_c("0x24"),attributes:{class:[_c("0x29"),_c("0x2d")]},children:[{tag:_c("0x28"),children:[{text:this[_c("0x31")][_c("0x3b")]}],attributes:{class:[_c("0x10"),_c("0x36")]}},{tag:_c("0x4a"),attributes:{datetime:t.to(_c("0x20")),class:["ck-comment__info-time",_c("0x5")]},children:[{text:t.to(_c("0x20"),(t=>this[_c("0x3f")][_c("0x4b")](t)))}]}]},{tag:_c("0x24"),attributes:{class:["ck-suggestion__actions","ck-annotation__actions"]},children:[this.acceptButton,this[_c("0x3d")]]},{tag:_c("0x24"),attributes:{class:[_c("0x1f")]}}];this._model[_c("0x2a")]&&e[_c("0x6")]({tag:"div",attributes:{class:["ck-comment__external"]},children:[{text:this.getExternalSuggestionNote()}]});const n={tag:_c("0x24"),attributes:{class:["ck-suggestion-wrapper",t.if(_c("0x2c"),_c("0x17")),t.to("type",(t=>_c("0x27")+t)),this[_c("0x3f")].disableComments&&_c("0xe")],"data-suggestion-id":this._model.id,"data-thread-id":this[_c("0x2f")][_c("0x44")].id,"data-author-id":this[_c("0x2f")][_c("0x4e")].id,tabindex:-1},children:[{tag:_c("0x24"),attributes:{class:[_c("0x0"),"ck-annotation"]},children:[this[_c("0x31")],{tag:_c("0x24"),attributes:{class:[_c("0x42"),"ck-annotation__main"]},children:e}]}]};return this[_c("0xb")]&&this[_c("0x13")]&&(n[_c("0x26")].push(this[_c("0xb")],this[_c("0x13")]),this[_c("0xb")][_c("0xd")](_c("0x32")).to(this),this[_c("0xb")][_c("0xd")](_c("0x38")).to(this),this.commentThreadInputView[_c("0xd")](_c("0x32")).to(this),this[_c("0x13")][_c("0xd")](_c("0x38")).to(this)),n}[_c("0x2")](){super[_c("0x2")](),this[_c("0x14")]=this[_c("0x35")][_c("0x41")](_c("0x23")),this[_c("0x14")][_c("0x18")]=this[_c("0x8")],this.on(_c("0xc"),((t,e,n)=>{this._descriptionElement[_c("0x18")]=n}))}[_c("0x48")](t,e,n,o,i){const r=new s.ButtonView(this[_c("0x7")]);return r[_c("0x25")]({label:t,icon:e,tooltip:!0,tooltipPosition:i}),r[_c("0x1b")]({attributes:{class:n}}),r.on(_c("0x30"),(()=>{this.fire(o,this[_c("0x2f")].id)})),r}getExternalSuggestionNote(){return _c("0x4f")===this[_c("0x2f")][_c("0x43")][_c("0x1c")].source?Yo(this.locale,_c("0x40")):Yo(this[_c("0x7")],_c("0xf"))}[_c("0x1e")](){return this[_c("0x2f")][_c("0x2a")]?_c("0x4f")===this[_c("0x2f")][_c("0x43")]["@external"][_c("0x34")]?Yo(this[_c("0x7")],_c("0xa"),this[_c("0x2f")].creator[_c("0x3b")]):Yo(this[_c("0x7")],_c("0x4"),this[_c("0x2f")][_c("0x47")].name):null}}function Cc(t,e){let n="";return n+=t[_c("0x1a")]("*")[_c("0x22")](((t,e)=>e%2!=0?_c("0x45")+yc(t)+"</span>":yc(t)))[_c("0x3c")](""),e&&(n+=_c("0x1")+e[_c("0x3e")]+'" title="'+e.title+_c("0x51")),n}function yc(t){const e=document[_c("0x19")]("span");return e[_c("0x4c")]=t,e[_c("0x18")]}const kc=["lowest","acceptSelectedSuggestions","createCommentThreadController","pluginName","map","buttonView","Discard all selected suggestions","getJoined","Annotations","suggestionChanged","TrackChangesEditing","head","acceptButton","activeAnnotations","_disableComments","_bindAnnotationToEditors","delete","commentThread","has","size","change:previous","init","locale","unbind","getFirstRange","actionView","some","remove","getRanges","plugins","trackChanges.SuggestionThreadView","button","add","getSuggestion","editing","type","listenTo","isInContent","refreshSelectedViews","comments.maxThreadTotalWeight","CommentsRepository","requires","destroy","push","_viewToController","arrowView","filter","Discard all suggestions","bind","isEnabled","_handleControllerBuffer","set","isOn","_descriptionFactory","get","_handleSuggestionControllerDelayed","_unbindEditors","config","getDescriptions","_createUIButton","focus","separator","reduce","commands","change:activeAnnotations","_suggestionToController","getMarkerNames","mainView","addComment","getAllAdjacentSuggestions","CommentsUI","_updateController","comments.editorConfig","discardButton","acceptAllSuggestions","keys","_annotationViews","TrackChangesUI","Accept all selected suggestions","registerAnnotation","define","suggestion-","model","descriptionParts","clear","editor","_initializeController","length","view","execute","comments","commandName","source","isMultiRange","from","isDirty","trackChanges.disableComments","_destroyController","value","suggestionLoaded","_refreshActiveMarkers","addSourceCollector","getByInnerView","Accept all suggestions","createAnnotationView","trackChanges","EditorAnnotations","stopListening","switchbutton"];var Ac,vc;Ac=kc,vc=387,function(t){for(;--t;)Ac.push(Ac.shift())}(++vc);const Rc=function(t,e){return kc[t-=0]};class Sc extends t.Plugin{static get[Rc("0x5a")](){return[$a,i.Users,"CommentsRepository",Rc("0x39"),"EditorAnnotations"]}static get[Rc("0x34")](){return Rc("0x11")}constructor(t){super(t),this[Rc("0x5")]=new Map,this[Rc("0x5d")]=new Map,this[Rc("0x10")]=new Map,this[Rc("0x63")]=new Map;const e=this.editor.config;e[Rc("0x14")](Rc("0x4f"),Tc),e[Rc("0x14")](Rc("0x24"),!1),this[Rc("0x3f")]=e[Rc("0x67")]("trackChanges.disableComments")}[Rc("0x68")](t,e){0===this[Rc("0x63")][Rc("0x44")]&&setTimeout((()=>{for(const[t,e]of this._handleControllerBuffer){const n=this[Rc("0x5")][Rc("0x43")](t);n||e?n&&e&&this._destroyController(t):this[Rc("0x1a")](t)}this[Rc("0x19")][Rc("0x4e")][Rc("0x67")]("EditorAnnotations")[Rc("0x57")](),this[Rc("0x28")](),this[Rc("0x63")][Rc("0x18")]()}),10),this[Rc("0x63")][Rc("0x64")](t,e)}[Rc("0x46")](){const t=this.editor,e=t[Rc("0x4e")][Rc("0x67")](Rc("0x3b")),n=t.plugins[Rc("0x67")](Rc("0x39")),o=t.plugins[Rc("0x67")](Rc("0x2e")),s=t[Rc("0x4e")][Rc("0x67")](Rc("0x59"));t.ui.componentFactory[Rc("0x51")]("trackChanges",(t=>this[Rc("0x6c")](t))),o[Rc("0x29")]((()=>{const t=[];for(const[e,n]of Array[Rc("0x22")](this._suggestionToController)){const o=e[Rc("0x9")](),s=[];for(const t of o){if(!t[Rc("0x56")])continue;if(t[Rc("0x21")]){s[Rc("0x5c")](...t[Rc("0x4d")]());continue}const e=t[Rc("0x49")]();if(s[Rc("0x1b")]>0){const t=s[0][Rc("0x38")](e);if(t){s[0]=t;continue}}s[Rc("0x5c")](e)}t[Rc("0x5c")]([n[Rc("0x1c")],s])}return t})),this[Rc("0x55")](e,Rc("0x27"),((t,e)=>{this.listenTo(e,Rc("0x45"),((t,n,o,s)=>{e[Rc("0x56")]&&(null==o?(this[Rc("0xb")](s[Rc("0x3c")]),this[Rc("0x68")](e,!1)):(this[Rc("0xb")](o[Rc("0x3c")]),this[Rc("0x68")](e,!0)))})),null===e.previous?this._handleSuggestionControllerDelayed(e,!1):this[Rc("0xb")](e[Rc("0x3c")])})),this[Rc("0x55")](e,"suggestionUnloaded",((t,e,n)=>{this[Rc("0x2f")](e,Rc("0x45")),this[Rc("0x63")][Rc("0x41")](e);const o=n?n[Rc("0x3c")]:e,s=this[Rc("0x5")][Rc("0x67")](o);null!==n&&this[Rc("0xb")](o),null===n&&s&&this[Rc("0x25")](e)})),this[Rc("0x55")](e,Rc("0x3a"),((t,e)=>{this[Rc("0xb")](e)})),this[Rc("0x55")](n,Rc("0x4"),(()=>{this[Rc("0x28")]()})),this[Rc("0x55")](s,Rc("0x8"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e.hasSuggestion(n))return;const s=e[Rc("0x52")](n);this._suggestionToController[Rc("0x67")](s)[Rc("0x1c")][Rc("0x0")]()}),{priority:Rc("0x31")})}_refreshActiveMarkers(){const t=this[Rc("0x19")][Rc("0x4e")][Rc("0x67")](Rc("0x39")),e=this.editor[Rc("0x4e")][Rc("0x67")](Rc("0x3b")),n=Array.from(t[Rc("0x3e")],(t=>t.innerView))[Rc("0x5f")]((t=>this[Rc("0x5d")][Rc("0x43")](t))),o=[];for(const t of n){const e=this._viewToController[Rc("0x67")](t)[Rc("0x16")].getAllAdjacentSuggestions();o[Rc("0x5c")](...e[Rc("0x2")](((t,e)=>[...t,...e[Rc("0x6")]()]),[]))}e.activeMarkers=o}[Rc("0x6c")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Rc("0x19")][Rc("0x3")][Rc("0x67")](Rc("0x2d")),i=Yo(t,"Track changes");n[Rc("0x36")][Rc("0x64")]({tooltip:i,label:i,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[Rc("0x36")][Rc("0x61")](Rc("0x65")).to(o,Rc("0x26")),n[Rc("0x36")].on(Rc("0x1d"),(()=>{o[Rc("0x1d")](),this[Rc("0x19")][Rc("0x53")][Rc("0x1c")].focus()}));const r=new e.Collection,x=[{type:Rc("0x30"),model:{withText:!0,label:i,commandName:Rc("0x2d")}},{type:"separator"},{type:"button",model:{withText:!0,label:Yo(t,Rc("0x2b")),commandName:Rc("0xe")}},{type:"button",model:{withText:!0,label:Yo(t,Rc("0x12")),commandName:Rc("0x32")}},{type:Rc("0x50"),model:{withText:!0,label:Yo(t,Rc("0x60")),commandName:"discardAllSuggestions"}},{type:Rc("0x50"),model:{withText:!0,label:Yo(t,Rc("0x37")),commandName:"discardSelectedSuggestions"}}];for(const t of x){let e={type:Rc("0x1")};if(t[Rc("0x16")]){const n=new s.Model(t[Rc("0x16")]),o=this[Rc("0x19")].commands[Rc("0x67")](n[Rc("0x1f")]);n[Rc("0x61")](Rc("0x65"),Rc("0x62")).to(o,Rc("0x26"),Rc("0x62")),e={type:t[Rc("0x54")],model:n}}r[Rc("0x51")](e)}(0,s.addListToDropdown)(n,r);const a=x.filter((t=>null!=t[Rc("0x16")]))[Rc("0x35")]((t=>this[Rc("0x19")][Rc("0x3")].get(t[Rc("0x16")][Rc("0x1f")]))),c=n[Rc("0x36")];return c.actionView[Rc("0x48")](Rc("0x62")),c.arrowView.unbind("isEnabled"),c[Rc("0x4a")][Rc("0x61")]("isEnabled").to(o,"isEnabled"),c[Rc("0x5e")][Rc("0x61")]("isEnabled").toMany(a,Rc("0x62"),((...t)=>t[Rc("0x4b")]((t=>t)))),n.on(Rc("0x1d"),(t=>{this[Rc("0x19")][Rc("0x1d")](t[Rc("0x20")][Rc("0x1f")]),this[Rc("0x19")][Rc("0x53")][Rc("0x1c")][Rc("0x0")]()})),n}[Rc("0x1a")](t){const e=this[Rc("0x19")],n=e[Rc("0x6a")],o=e.plugins[Rc("0x67")](Rc("0x39")),s=e[Rc("0x4e")][Rc("0x67")](Rc("0x59")),r=e[Rc("0x4e")][Rc("0x67")]("EditorAnnotations"),x=e[Rc("0x4e")][Rc("0x67")](i.Users).me,a=n[Rc("0x67")](Rc("0x2d")).SuggestionThreadView,{CommentsListView:c,CommentThreadInputView:l}=e[Rc("0x4e")].get(Rc("0xa"));let d,u;this[Rc("0x10")][Rc("0x43")](t.id)?(u=this[Rc("0x10")][Rc("0x67")](t.id),d=u[Rc("0x7")]):(d=new a(e[Rc("0x47")],t,x,{disableComments:this[Rc("0x3f")],editorConfig:n[Rc("0x67")](Rc("0xc")),maxCommentsWhenCollapsed:n[Rc("0x67")]("comments.maxCommentsWhenCollapsed"),maxThreadTotalWeight:n.get(Rc("0x58")),maxCommentCharsWhenCollapsed:n[Rc("0x67")]("comments.maxCommentCharsWhenCollapsed"),formatDateTime:(0,i.getDateTimeFormatter)(n[Rc("0x67")]("locale")),CommentView:n[Rc("0x67")](Rc("0x1e")).CommentView,CommentsListView:c,CommentThreadInputView:l}),d[Rc("0x3d")].on(Rc("0x1d"),(()=>{e.editing.view.focus()})),d[Rc("0xd")].on(Rc("0x1d"),(()=>{e.editing[Rc("0x1c")][Rc("0x0")]()})),u=o[Rc("0x2c")](this[Rc("0x19")][Rc("0x47")],d),u[Rc("0x61")](Rc("0x23")).to(d,Rc("0x23")),u[Rc("0x61")](Rc("0x1b")).to(d),u[Rc("0x61")](Rc("0x54")).to(d,Rc("0x54"),(t=>Rc("0x15")+t)),this[Rc("0x10")].set(t.id,u));const g=s[Rc("0x33")](t[Rc("0x42")],d),m=new dc(e,t,d,g),f=t[Rc("0x9")]()[Rc("0x5f")]((t=>t.isInContent));d[Rc("0x17")]=e[Rc("0x4e")][Rc("0x67")](Rc("0x3b"))._descriptionFactory[Rc("0x6b")](f),this[Rc("0x5")][Rc("0x64")](t,m),this[Rc("0x5d")][Rc("0x64")](d,m);const h=o.createAnnotation({view:u,target:()=>{const n=[],o=t[Rc("0x9")]()[Rc("0x5f")]((t=>t[Rc("0x56")]));for(const t of o)n[Rc("0x5c")](...t.getMarkers());return(0,i.getAllMarkersDomElementsSorted)(e[Rc("0x53")],n)},type:()=>"suggestion-"+m.view.type});s[Rc("0x40")](d,h),o.add(h),r[Rc("0x13")](h)}_destroyController(t){const e=this.editor[Rc("0x4e")].get(Rc("0x59")),n=this.editor.plugins[Rc("0x67")](Rc("0x39")),o=this[Rc("0x5")].get(t),s=o.view,i=n[Rc("0x2a")](s);e[Rc("0x69")](s),i&&n[Rc("0x4c")](i),this[Rc("0x5")].delete(t),this[Rc("0x5d")][Rc("0x41")](s),o[Rc("0x5b")]()}[Rc("0xb")](t){if(!t[Rc("0x56")]||!this._suggestionToController[Rc("0x43")](t))return;const e=this[Rc("0x19")][Rc("0x4e")].get("TrackChangesEditing"),n=this[Rc("0x5")][Rc("0x67")](t),o=t.getAllAdjacentSuggestions();n.view[Rc("0x17")]=e[Rc("0x66")][Rc("0x6b")](o)}[Rc("0x5b")](){for(const t of this[Rc("0x5")][Rc("0xf")]())this[Rc("0x25")](t);for(const t of this._annotationViews.values())t[Rc("0x7")][Rc("0x5b")]();super[Rc("0x5b")]()}}var Ic,Lc,Nc=["adapter","addSuggestion","getSuggestions","get","plugins","TrackChanges","Comments","editor"];Ic=Nc,Lc=461,function(t){for(;--t;)Ic.push(Ic.shift())}(++Lc);var wc=function(t,e){return Nc[t-=0]};class Mc extends t.Plugin{static get requires(){return[$a,Sc,wc("0x1")]}static get pluginName(){return wc("0x0")}set[wc("0x3")](t){this[wc("0x2")][wc("0x7")][wc("0x6")]($a)[wc("0x3")]=t}get[wc("0x3")](){return this[wc("0x2")].plugins[wc("0x6")]($a)[wc("0x3")]}[wc("0x4")](t){return this[wc("0x2")].plugins[wc("0x6")]($a).addSuggestionData(t)}[wc("0x5")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[wc("0x2")].plugins[wc("0x6")]($a)[wc("0x5")]({skipNotAttached:t,toJSON:e})}getSuggestion(t){return this[wc("0x2")][wc("0x7")][wc("0x6")]($a).getSuggestion(t)}}const Oc=["getRootNames","getRootsAttributes","TrackChangesDataGetter","Users","TrackChangesData","data","acceptAllSuggestions","getUser","function","plugins","trackChangesData.editorCreator","init","discardAllSuggestions","editor","constructor","getFullData","editorCreator","getSuggestions","pluginName","reduce","_adapter","trackChangesData","rootsAttributes","define","useAnonymousUser","end","document","destroy","track-changes-data-invalid-editor-creator","TrackChangesEditing","name","addUser","execute","config","set","result","create","get","getDataWithAcceptedSuggestions","model","CommentsRepository","Pagination"];var Fc,Pc;Fc=Oc,Pc=297,function(t){for(;--t;)Fc.push(Fc.shift())}(++Pc);const Dc=function(t,e){return Oc[t-=0]},Bc=[Dc("0x26")];class jc extends t.Plugin{static get requires(){return[$a]}static get pluginName(){return Dc("0x1")}[Dc("0x8")](){const t=this[Dc("0xa")];if(t[Dc("0x1e")][Dc("0x14")](Dc("0x7"),(e=>{const n=t[Dc("0x24")][Dc("0x17")][Dc("0x27")]()[Dc("0x10")](((t,e)=>(t[e]="",t)),{});return t[Dc("0xb")][Dc("0x21")](n,e)})),Dc("0x5")!=typeof t.config[Dc("0x22")](Dc("0x12"))[Dc("0xd")])throw new e.CKEditorError(Dc("0x19"))}[Dc("0x23")](t){return Hc(this[Dc("0xa")],!0,t)}getDataWithDiscardedSuggestions(t){return Hc(this.editor,!1,t)}}class Uc extends t.Plugin{static get[Dc("0xf")](){return Dc("0x29")}constructor(t){super(t),this[Dc("0x20")]=Dc("0x16")}init(){this[Dc("0xa")][Dc("0x6")][Dc("0x22")](Dc("0x25"))[Dc("0x11")]={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this.editor[Dc("0x6")].get(Dc("0x1a"))[Dc("0x11")]=null}}function Gc(t){return void 0!==t[Dc("0x28")]}async function Hc(t,e,n){const o=(0,i.sanitizeEditorConfig)(t,Bc);o[Dc("0x6")].push($a,Uc),o[Dc("0x13")]=Gc(t)?t[Dc("0x28")]():void 0;const s=document.createDocumentFragment(),r=t[Dc("0x1e")].get(Dc("0x12"))[Dc("0xd")],x=await r(o,(()=>function(t){const e=document.createElement("div");return t.appendChild(e),e}(s)));!function(t,e){const n=t[Dc("0x24")][Dc("0x17")][Dc("0x27")]()[Dc("0x10")](((e,n)=>(e[n]=t[Dc("0x2")].get({rootName:n}),e)),{}),o=t[Dc("0x6")][Dc("0x22")](Dc("0x0")).users.map((t=>({id:t.id,name:t[Dc("0x1b")]}))),s=t[Dc("0x6")][Dc("0x22")]("TrackChangesEditing")[Dc("0xe")]({skipNotAttached:!0,toJSON:!0}),i=e[Dc("0x6")][Dc("0x22")]("Users"),r=e[Dc("0x6")].get(Dc("0x1a"));for(const t of o)i[Dc("0x4")](t.id)||i[Dc("0x1c")](t);i.me||i[Dc("0x15")]();for(const t of s)r.addSuggestionData(t);e[Dc("0x2")][Dc("0x1f")](n)}(t,x),x[Dc("0x1d")](Dc(e?"0x3":"0x9"));const a=Gc(x)?x[Dc("0xc")](n):x[Dc("0x2")][Dc("0x22")](n);return await x[Dc("0x18")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|
|
5
|
+
*/(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var s=e[o];if(void 0!==s)return s.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>hc,TrackChanges:()=>Mc,TrackChangesData:()=>jc,TrackChangesEditing:()=>$a});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["_isEnabledBasedOnSelection","forceDisabled","commands","_enableCommands","value","clearForceDisabled","_disableUnsupportedCommands","_enabledCommands","TrackChangesCommand","has","refresh","isEnabled","editor","execute","affectsData"];var c,l;c=a,l=195,function(t){for(;--t;)c.push(c.shift())}(++l);const d=function(t,e){return a[t-=0]};class u extends t.Command{constructor(t,e){super(t),this._enabledCommands=e,this[d("0x4")]=!1,this[d("0xa")](),this[d("0x0")]=!1}[d("0xa")](){this[d("0xb")]=!0}[d("0xd")](){this[d("0x4")]=!this[d("0x4")],this[d("0x4")]?this[d("0x6")]():this[d("0x3")]()}[d("0x6")](){for(const t of this[d("0xc")][d("0x2")][d("0x2")]())t[d("0xe")]&&!this[d("0x7")][d("0x9")](t)&&t[d("0x1")](d("0x8"))}[d("0x3")](){for(const t of this[d("0xc")][d("0x2")].commands())t[d("0xe")]&&!this[d("0x7")][d("0x9")](t)&&t[d("0x5")](d("0x8"))}}const g=["_isEnabledBasedOnSelection","model","acceptSuggestion","_suggestions","get","refresh","isEnabled","execute","getRanges","TrackChangesEditing","plugins","editor","track-changes-accept-suggestion-not-found"];var m,f;m=g,f=223,function(t){for(;--t;)m.push(m.shift())}(++f);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this._suggestions=e,this[h("0x3")](),this[h("0xb")]=!1}refresh(){this[h("0x4")]=!0}[h("0x5")](t){const n=this[h("0x1")][h("0x2")](t);if(!n)throw new e.CKEditorError(h("0xa"),this);const o=n[h("0x6")]();this[h("0x9")][h("0xc")].canEditAt(o)&&this[h("0x9")][h("0x8")][h("0x2")](h("0x7"))[h("0x0")](n)}}const b=["track-changes-discard-suggestion-not-found","plugins","canEditAt","_suggestions","get","editor","getRanges","refresh","isEnabled"];var E,_;E=b,_=369,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class C extends t.Command{constructor(t,e){super(t),this[T("0x3")]=e,this.refresh(),this._isEnabledBasedOnSelection=!1}[T("0x7")](){this[T("0x8")]=!0}execute(t){const n=this[T("0x3")][T("0x4")](t);if(!n)throw new e.CKEditorError(T("0x0"),this);const o=n[T("0x6")]();this[T("0x5")].model[T("0x2")](o)&&this[T("0x5")][T("0x1")][T("0x4")]("TrackChangesEditing").discardSuggestion(n)}}const y=["push","content","change","sort","color","createPositionBefore","createPositionAfter","schema","map","deletion","type","isIntersecting","replace","createPositionAt","isArray","splice","isInContent","length","start","end","join","getRanges","isObject","execute","next","isMultiRange","value","isCollapsed","from"];var k,A;k=y,A=137,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0xb")](((t,e)=>v("0x11")==t.type&&v("0x11")!=e[v("0x12")]?-1:v("0x11")!=t.type&&v("0x11")==e[v("0x12")]?1:0))}function S(t,e){let n,o=0;const s=[],r=e[v("0xf")];for(;o<t[v("0x19")];){const i=t[o],x=t[o+1];n||(n=e[v("0xd")](i)),I(e,i,x)||(s[v("0x8")](e.createRange(n,r[v("0x1")](i)?e[v("0xe")](i):e[v("0x15")](i,"end"))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t[v("0xe")](e),s=t[v("0xd")](n);return o.isTouching(s)}function L(t,e,n){for(;n[v("0x19")];){const o=n[v("0x17")](0,100);t[v("0xa")]((()=>{for(const t of o)t.isInContent&&e[v("0x2")](t.id)}))}}const N=["model","_suggestions","_command","values","some","isInContent","_isEnabledBasedOnSelection","canEditAt","isEnabled","from","refresh","editor"];var w,M;w=N,M=490,function(t){for(;--t;)w.push(w.shift())}(++M);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0x4")]=e,this[O("0x3")]=n,this[O("0x0")](),this[O("0x8")]=!1}[O("0x0")](){const t=Array[O("0xb")](this._suggestions[O("0x5")]())[O("0x6")]((t=>t[O("0x7")]));this[O("0xa")]=this[O("0x4")][O("0xa")]&&t}execute(){const t=R(Array[O("0xb")](this[O("0x3")][O("0x5")]()));for(const e of t){const t=e.getRanges();if(!this.editor[O("0x2")][O("0x9")](t))return}L(this[O("0x1")][O("0x2")],this[O("0x4")],t)}}const P=["document","canEditAt","refresh","editor","isEnabled","selection","_selectedSuggestions","getRanges","_isEnabledBasedOnSelection","model","from","_command","_suggestions"];var D,B;D=P,B=225,function(t){for(;--t;)D.push(D.shift())}(++B);const j=function(t,e){return P[t-=0]};class U extends t.Command{constructor(t,e,n){super(t),this._command=e,this._suggestions=n,this._selectedSuggestions=new Set,this[j("0xb")](),this[j("0x4")]=!1}[j("0xb")](){const t=this[j("0xc")][j("0x5")][j("0x9")][j("0x1")],e=Array[j("0x6")](this[j("0x8")].values());this[j("0x2")]=function(t,e){const n=Array[v("0x7")](t[v("0x0")]()),o=new Set;for(const s of e)if(s[v("0x18")])for(const e of n)for(const n of s[v("0x0")]())(e[v("0x13")](n)||t[v("0x6")]&&!s[v("0x4")]&&s[v("0x3")]&&n[v("0x1b")].isTouching(e[v("0x1a")]))&&o.add(s);return o}(t,e),this[j("0x0")]=this[j("0x7")][j("0x0")]&&!!this[j("0x2")].size}execute(){const t=R(Array[j("0x6")](this._selectedSuggestions));for(const e of t){const t=e[j("0x3")]();if(!this[j("0xc")][j("0x5")][j("0xa")](t))return}L(this[j("0xc")][j("0x5")],this[j("0x7")],t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const z=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var W=Array.prototype.splice;const V=function(t){var e=this.__data__,n=z(e,t);return!(n<0)&&(n==e.length-1?e.pop():W.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=z(e,t);return n<0?void 0:e[n][1]};const q=function(t){return z(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=z(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=V,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const J=$;const Q=function(){this.__data__=new J,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const st=ot.Symbol;var rt=Object.prototype,it=rt.hasOwnProperty,xt=rt.toString,at=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var s=xt.call(t);return o&&(e?t[at]=n:delete t[at]),s};var lt=Object.prototype.toString;const dt=function(t){return lt.call(t)};var ut=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ut&&ut in Object(t)?ct(t):dt(t)};const mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,vt=kt.hasOwnProperty,Rt=RegExp("^"+At.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const It=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=It(t,e);return St(n)?n:void 0};const Nt=Lt(ot,"Map");const wt=Lt(Object,"create");const Mt=function(){this.__data__=wt?wt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;if(wt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Dt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return wt?void 0!==e[t]:Dt.call(e,t)};const jt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=wt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Ut.prototype.clear=Mt,Ut.prototype.delete=Ot,Ut.prototype.get=Pt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||J),string:new Gt}};const zt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Wt=function(t,e){var n=t.__data__;return zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=Wt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Wt(this,t).get(t)};const qt=function(t){return Wt(this,t).has(t)};const Xt=function(t,e){var n=Wt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Vt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Jt=$t;const Qt=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new J(t);this.size=e.size}Zt.prototype.clear=Q,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Qt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),s?ne(n,x,a):se(n,x,a)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,de=ce.propertyIsEnumerable;const ue=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!de.call(t,"callee")};const ge=Array.isArray;const me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===fe?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||me;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return xe(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=ve&&ve.exports===Ae&&et.process;const Se=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Ie=Se&&Se.isTypedArray;const Le=Ie?ke(Ie):ye;var Ne=Object.prototype.hasOwnProperty;const we=function(t,e){var n=ge(t),o=!n&&ue(t),s=!n&&!o&&be(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var Me=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Me)};const Fe=function(t,e){return function(n){return t(e(n))}};const Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?we(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var ze=Object.prototype.hasOwnProperty;const We=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&ze.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?we(t,!0):We(t)};const Ke=function(t,e){return t&&re(e,Ve(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Je=$e?$e.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,o=Je?Je(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,r=[];++n<o;){var i=t[n];e(i,n,t)&&(r[s++]=i)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return re(t,on(t),e)};const rn=function(t,e){for(var n=-1,o=e.length,s=t.length;++n<o;)t[s+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const dn=function(t){return ln(t,Ue,on)};const un=function(t){return ln(t,Ve,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Nt),kn=Tt(mn),An=Tt(fn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=pn||mn&&Rn(mn.resolve())!=bn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case Cn:return Tn;case yn:return pn;case kn:return bn;case An:return En;case vn:return _n}return e});const Sn=Rn;var In=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&In.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const wn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const Mn=function(t,e){var n=e?wn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Pn=st?st.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(t){return Dn?Object(Dn.call(t)):{}};const jn=function(t,e){var n=e?wn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return wn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return Mn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const zn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const Wn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Vn=Se&&Se.isMap;const Kn=Vn?ke(Vn):Wn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.isSet;const $n=Xn?ke(Xn):qn;var Jn="[object Arguments]",Qn="[object Function]",Zn="[object Object]",Yn={};Yn[Jn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Qn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,r,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,s,r,i):o(e)),void 0!==x)return x;if(!mt(e))return e;var d=ge(e);if(d){if(x=Ln(e),!a)return Ze(e,x)}else{var u=Sn(e),g=u==Qn||"[object GeneratorFunction]"==u;if(be(e))return Qe(e,a);if(u==Zn||u==Jn||g&&!r){if(x=c||g?{}:zn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[u])return r?e:{};x=Un(e,u,a)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,x),$n(e)?e.forEach((function(s){x.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){x.set(r,t(s,n,o,r,e,i))}));var f=d?void 0:(l?c?un:dn:c?Ve:Ue)(e);return te(f||e,(function(s,r){f&&(s=e[r=s]),se(x,r,t(s,n,o,r,e,i))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Jt),n}io.Cache=Jt;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const po=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!mt(t))return t;for(var s=-1,r=(e=po(e,t)).length,i=r-1,x=t;null!=x&&++s<r;){var a=bo(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,s,r){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var d=-1,u=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++d<x;){var m=t[d],f=e[d];if(o)var h=i?o(f,m,d,e,t,r):o(m,f,d,t,e,r);if(void 0!==h){if(h)continue;u=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(m===t||s(m,t,n,o,r)))return g.push(e)}))){u=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){u=!1;break}}return r.delete(t),r.delete(e),u};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=st?st.prototype:void 0,No=Lo?Lo.valueOf:void 0;const wo=function(t,e,n,o,s,r,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=So;case"[object Set]":var a=1&o;if(x||(x=Io),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(x(t),x(e),o,s,r,i);return i.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var Mo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,r){var i=1&n,x=dn(t),a=x.length;if(a!=dn(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:Mo.call(e,l)))return!1}var d=r.get(t),u=r.get(e);if(d&&u)return d==e&&u==t;var g=!0;r.set(t,e),r.set(e,t);for(var m=i;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var p=i?o(h,f,l,e,t,r):o(f,h,l,t,e,r);if(!(void 0===p?f===h||s(f,h,n,o,r):p)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),x=ge(e),a=i?Po:Sn(t),c=x?Po:Sn(e),l=(a=a==Fo?Do:a)==Do,d=(c=c==Fo?Do:c)==Do,u=a==c;if(u&&be(t)){if(!be(e))return!1;i=!0,l=!1}if(u&&!l)return r||(r=new Yt),i||Le(t)?Ro(t,e,n,o,s,r):wo(t,e,a,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=d&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return r||(r=new Yt),s(f,h,n,o,r)}}return!!u&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const zo=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const Wo=function(t,e,n){var o=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(s);++o<s;)r[o]=t[o+e];return r};const Vo=function(t,e){return e.length<2?t:zo(t,Wo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Vo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["_onAttributesChange","reduce","set","next","attributes","isExternal","end","setAttribute","from","getFirstMarker","getMarkers","isIntersectingWithRange","removeMarkers","addMarkerName","_isDataLoaded","getFirstRange","isMultiRange","suggestion:","previous","_onDiscard","getRanges","isInContent","@external","nodeAfter","accept","onAttributesChange","_markerNames","clear","head","creator","removeAttribute","split","type","onDiscard","nodeBefore","getMarkerNames","markers","decorate","subType","get","createdAt","data","push","addMarker","getItems","_onAccept","_model","change","getMultiRangeId","filter","getRange","map","discard","authoredAt","removeMarker","getAllAdjacentSuggestions","commentThread","substr","add","author","length","toJSON"];var $o,Jo;$o=Xo,Jo=358,function(t){for(;--t;)$o.push($o.shift())}(++Jo);const Qo=function(t,e){return Xo[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this[Qo("0x1c")]=!1,this.id=e.id,this[Qo("0x2e")]=e[Qo("0x2e")],this[Qo("0x34")]=e[Qo("0x34")]||null,this[Qo("0xb")]=e.author,this.creator=e[Qo("0x2b")]||e.author,this[Qo("0x13")]=Boolean(e[Qo("0x12")]&&e[Qo("0x12")][Qo("0x24")]),this[Qo("0x37")]=null,this[Qo("0x3c")]=t,this[Qo("0x3b")]=e.onAccept,this[Qo("0x21")]=e[Qo("0x2f")],this._onAttributesChange=e[Qo("0x27")],this[Qo("0x28")]=new Set,this[Qo("0x36")]=null,this[Qo("0x10")](Qo("0x5"),null),this.set(Qo("0x12"),e[Qo("0x12")]||{}),this.set(Qo("0x20"),null),this[Qo("0x10")]("next",null),this[Qo("0x10")](Qo("0x8"),null),this[Qo("0x10")]("_saved",!1),this[Qo("0x33")]("accept"),this.decorate(Qo("0x4"))}get[Qo("0x2a")](){let t=this;for(;t[Qo("0x20")];)t=t.previous;return t}get hasComments(){return!!this[Qo("0x8")]&&this.commentThread[Qo("0xc")]>0}get[Qo("0x1e")](){return 0!=this._markerNames.size&&6==Array[Qo("0x16")](this[Qo("0x28")])[0][Qo("0x2d")](":").length}get[Qo("0x23")](){return null!==this[Qo("0x17")]()}[Qo("0x1b")](t){this[Qo("0x28")][Qo("0xa")](t)}getMarkerNames(){return Array[Qo("0x16")](this._markerNames)}[Qo("0x18")](){return this[Qo("0x31")]()[Qo("0x3")]((t=>this[Qo("0x3c")][Qo("0x32")][Qo("0x35")](t)))[Qo("0x1")]((t=>t))}[Qo("0x17")](){return this[Qo("0x18")]()[0]||null}[Qo("0x1a")](){this._model[Qo("0x3d")]((t=>{for(const e of this[Qo("0x18")]())t[Qo("0x6")](e)})),this[Qo("0x28")][Qo("0x29")]()}removeMarker(t){this._model[Qo("0x3d")]((e=>{e[Qo("0x6")](t)})),this[Qo("0x28")].delete(t)}addRange(t){const e=Qo("0x1f")+this[Qo("0x2e")]+":"+this.subType+":"+this.id+":"+this[Qo("0x2b")].id+":"+Zo[Qo("0x0")]();this[Qo("0x1b")](e),this[Qo("0x3c")][Qo("0x3d")]((n=>{n[Qo("0x39")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Qo("0x19")](t){for(const e of this[Qo("0x22")]())if(e.isIntersecting(t))return!0;return!1}[Qo("0x22")](){return this[Qo("0x18")]()[Qo("0x3")]((t=>t.getRange()))}[Qo("0x3a")](){return this[Qo("0x22")]()[Qo("0xf")](((t,e)=>[...t,...e[Qo("0x3a")]()]),[])}[Qo("0x1d")](){var t;return(null===(t=this[Qo("0x17")]())||void 0===t?void 0:t[Qo("0x2")]())||null}getContainedElement(){const t=this[Qo("0x22")]();if(1!=t.length)return null;const e=t[0],n=e.start[Qo("0x25")],o=e[Qo("0x14")][Qo("0x30")];return n instanceof i.Element?n!=o?null:n:null}[Qo("0x26")](){this[Qo("0x3b")](this[Qo("0x22")](),this[Qo("0x37")],this[Qo("0x12")]),this[Qo("0x1a")]()}[Qo("0x4")](){this[Qo("0x21")](this.getRanges(),this[Qo("0x37")],this[Qo("0x12")]),this.removeMarkers()}[Qo("0x7")](){const t=[];let e=this[Qo("0x2a")];for(;e;)t[Qo("0x38")](e),e=e[Qo("0x11")];return t}[Qo("0x15")](t,e){const n=eo(this[Qo("0x12")]);_o(n,t,e),Go(n,this.attributes)||(this[Qo("0x12")]=n,this[Qo("0xe")](n))}[Qo("0x2c")](t){const e=eo(this.attributes);qo(e,t),Go(e,this[Qo("0x12")])||(this.attributes=e,this._onAttributesChange(this[Qo("0x12")]))}[Qo("0xd")](){return{id:this.id,type:this[Qo("0x34")]?this[Qo("0x2e")]+":"+this[Qo("0x34")]:this.type,authorId:this[Qo("0x2b")].id,createdAt:this[Qo("0x36")],hasComments:this.hasComments,data:this.data,attributes:this[Qo("0x12")]}}static[Qo("0x0")](){return(0,e.uid)()[Qo("0x9")](1,5)}}function Yo(t,e,n){const o=t.t;switch(e){case"Track changes":return o("Track changes");case"Accept suggestion":return o("Accept suggestion");case"Discard suggestion":return o("Discard suggestion");case"Accept all suggestions":return o("Accept all suggestions");case"Accept all selected suggestions":return o("Accept all selected suggestions");case"Discard all suggestions":return o("Discard all suggestions");case"Discard all selected suggestions":return o("Discard all selected suggestions");case"*Reset font size*":return o("*Reset font size*");case"*Reset font family*":return o("*Reset font family*");case"*Reset font color*":return o("*Reset font color*");case"*Reset font background color*":return o("*Reset font background color*");case"*Remove image text alternative*":return o("*Remove image text alternative*");case"*Reset image width*":return o("*Reset image width*");case"*Remove link*":return o("*Remove link*");case"*Check item*":return o("*Check item*");case"*Uncheck item*":return o("*Uncheck item*");case"*Remove all formatting*":return o("*Remove all formatting*");case"*Replace table cells*":return o("*Replace table cells*");case"*Merge cells*":return o("*Merge cells*");case"*Split cell:* vertically":return o("*Split cell:* vertically");case"*Split cell:* horizontally":return o("*Split cell:* horizontally");case"*Indent:* %0":return o("*Indent:* %0",n);case"*Outdent:* %0":return o("*Outdent:* %0",n);case"*Change to:* %0":return o("*Change to:* %0",n);case"*Insert:* %0":return o("*Insert:* %0",n);case"*Format:* %0":return o("*Format:* %0",n);case"*Format:* change table properties":return o("*Format:* change table properties");case"*Format:* change table cell properties":return o("*Format:* change table cell properties");case"*Format:* insert into %0":return o("*Format:* insert into %0",n);case"*Format:* remove from %0":return o("*Format:* remove from %0",n);case"*Format:* replace image URL":return o("*Format:* replace image URL");case"*Format:* resize table":return o("*Format:* resize table");case"*Format:* set order to reversed":return o("*Format:* set order to reversed");case"*Format:* set order to regular":return o("*Format:* set order to regular");case"*Format:* set start index to %0":return o("*Format:* set start index to %0",n);case"*Change %0 content*":return o("*Change %0 content*",n);case"*Remove:* %0":return o("*Remove:* %0",n);case"*Merge:* %0":return o("*Merge:* %0",n);case"*Split:* %0":return o("*Split:* %0",n);case"*Remove format:* %0":return o("*Remove format:* %0",n);case"*Set font size:* %0":return o("*Set font size:* %0",n);case"*Set font family:* %0":return o("*Set font family:* %0",n);case"*Set format to:* %0":return o("*Set format to:* %0",n);case"*Set font color:* %0":return o("*Set font color:* %0",n);case"*Set font background color:* %0":return o("*Set font background color:* %0",n);case"*Set image text alternative:* %0":return o("*Set image text alternative:* %0",n);case"*Set image width:* %0":return o("*Set image width:* %0",n);case"*Set link:* %0":return o("*Set link:* %0",n);case"*Set highlight:* %0":return o("*Set highlight:* %0",n);case"*Remove highlight*":return o("*Remove highlight*");case"FORMAT_HIGHLIGHT":return o({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return o({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return o({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return o({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return o({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return o({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return o({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return o({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return o({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return o({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return o({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return o({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return o({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return o({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return o({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_CIRCLE":return o({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return o({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return o({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return o({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return o({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return o({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return o({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return o({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return o({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return o({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return o({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return o({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_TABLE_OF_CONTENTS":return o({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return o({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return o({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return o({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return o({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return o({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return o({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);default:return e}}const ts=["get","getDescriptions","isEqual","_itemLabelsCallbacks","previousSibling","elementEnd","removeObject","function","Container","_schema","*Split:* %0","label","normal","element","softBreak","matchingCallback","REPLACE_TEXT","push","length","text","addEmptyContainer","addContainer","isEmpty","quantity","isInContent","EmptyContainer","nextSibling","registerDescriptionCallback","_addDescriptionItems","removeContainer","type","_itemLabels","skip","addObject","data","*Insert:* %0","$textProxy","add","remove","match","ELEMENT_SPACE","_locale","isObject","deletion","Object","replace","elementStart","*Remove:* %0","_resolveDescriptionItems","end","getFirstRange","pop","insertion","getItemLabel","indexOf","$1 $2","name","*Merge:* %0","set"];var es,ns;es=ts,ns=151,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class ss{constructor(t,e){this._customCallbacks=[],this[os("0x39")]=new Map,this[os("0x1d")]=[],this[os("0x23")]=t,this._locale=e}[os("0x1b")](t){const e=[];for(let n=0;n<t[os("0x2c")];n++){const o=t[n];if(!o[os("0x32")])continue;let s=!1;for(const t of this._customCallbacks){const n=t(o);if(n){os("0x38")in n&&e[os("0x2b")](n),s=!0;break}}if(!s){this._addDescriptionItems(e,o);const s=t[n+1];if(s&&!o.getFirstRange()[os("0x10")][os("0x1c")](s[os("0x11")]().start)){const t=e[e[os("0x2c")]-1],n=os("0x13")==o.type?os("0x4"):os("0x5");t&&"text"==t[os("0x38")]&&(t[n]+="\n")}}}return this[os("0xf")](e)}[os("0x35")](t){this._customCallbacks[os("0x2b")](t)}registerElementLabel(t,n,o=e.priorities[os("0x26")]){os("0x21")==typeof t?(0,e.insertToPriorityArray)(this[os("0x1d")],{matchingCallback:t,label:n,priority:o}):this[os("0x39")][os("0x19")](t,n)}[os("0x14")](t,e=1){let n;for(const e of this._itemLabelsCallbacks)if(e[os("0x29")](t)){n=e[os("0x25")];break}return n||(n=this[os("0x39")][os("0x1a")](t.name)),n?n(e):1!==e?e+" "+t[os("0x17")]+"s":""+t.name}[os("0x36")](t,e){const n=e[os("0x11")]().getWalker(),o="insertion"==e.type?os("0x4"):os("0x5");for(const e of n){const s=e.item,r=t[t.length-1];if(s.is(os("0x3")))r&&r.type[os("0x15")](os("0x22"))>-1&&t.pop(),r&&os("0x2d")==r.type?r[o]+=s[os("0x1")]:t[os("0x2b")]({type:os("0x2d"),add:os("0x4")==o?s[os("0x1")]:"",remove:"remove"==o?s[os("0x1")]:""});else if(this[os("0x23")].isObject(s)){const i=s;if(r&&r[os("0x38")][os("0x15")](os("0x22"))>-1&&t[os("0x12")](),os("0x1f")==e[os("0x38")])continue;r&&r[os("0x38")]==o+os("0xb")&&r[os("0x27")].name==i[os("0x17")]?r[os("0x31")]++:t.push({type:o+os("0xb"),element:i,quantity:1}),n[os("0x3a")]((t=>!("elementEnd"==t.type&&t.item==s)))}else if(this[os("0x23")].checkChild(s,"$text")||s.is(os("0x27"),os("0x28"))){const n=s;if("add"==o&&os("0xd")==e.type||"remove"==o&&"elementEnd"==e[os("0x38")])continue;if(r&&-1==r[os("0x38")].indexOf(os("0x22"))){os("0x2d")==r[os("0x38")]&&(r[o]+="\n");continue}let i;if(i=os("0x4")==o?n[os("0x34")]&&!this._schema.isObject(n[os("0x34")])?n[os("0x34")]:null:n.previousSibling&&!this[os("0x23")][os("0x9")](n[os("0x1e")])?n[os("0x1e")]:null,n[os("0x30")]||i&&i.isEmpty){const e=i&&i.isEmpty?i:n;r&&r.type==o+os("0x33")&&r[os("0x27")].name==e[os("0x17")]?r[os("0x31")]++:t[os("0x2b")]({type:o+os("0x33"),element:e,quantity:1})}else t[os("0x2b")]({type:o+os("0x22"),element:n})}}}[os("0xf")](t){const e=this[os("0x8")],n=[];for(const o of t){switch(o[os("0x38")]){case os("0x2d"):if(o[os("0x4")]=o[os("0x4")].replace(/(\S)\u000A+(\S)/g,os("0x16"))[os("0xc")](/\u000A/g,""),o[os("0x5")]=o[os("0x5")][os("0xc")](/(\S)\u000A+(\S)/g,os("0x16"))[os("0xc")](/\u000A/g,""),""!=o[os("0x4")]&&""!=o.remove){n.push({type:os("0xc"),content:Yo(e,os("0x2a"),['"'+o[os("0x5")]+'"','"'+o[os("0x4")]+'"'])});continue}if(null!=o[os("0x4")][os("0x6")](/^ +$/)){n[os("0x2b")]({type:"insertion",content:Yo(e,"*Insert:* %0",Yo(e,os("0x7"),o[os("0x4")][os("0x2c")]))});continue}if(null!=o.remove[os("0x6")](/^ +$/)){n[os("0x2b")]({type:os("0xa"),content:Yo(e,os("0xe"),Yo(e,os("0x7"),o.remove[os("0x2c")]))});continue}if(""!=o[os("0x4")]){n.push({type:os("0x13"),content:Yo(e,os("0x2"),'"'+o[os("0x4")]+'"')});continue}n[os("0x2b")]({type:os("0xa"),content:Yo(e,os("0xe"),'"'+o[os("0x5")]+'"')});continue;case os("0x2e"):case os("0x0"):n[os("0x2b")]({type:"insertion",content:Yo(e,os("0x2"),this.getItemLabel(o[os("0x27")],o[os("0x31")]))});continue;case"removeEmptyContainer":case os("0x20"):n.push({type:os("0xa"),content:Yo(e,os("0xe"),this.getItemLabel(o.element,o[os("0x31")]))});continue;case os("0x2f"):n[os("0x2b")]({type:os("0x13"),content:Yo(e,os("0x24"),this[os("0x14")](o.element,o.quantity))});continue;case os("0x37"):n[os("0x2b")]({type:"deletion",content:Yo(e,os("0x18"),this[os("0x14")](o[os("0x27")],o[os("0x31")]))});continue}n[os("0x2b")](o)}return n}}const rs=["TrackChangesEditing","showAIAssistant","commands","enableCommand","plugins"];var is,xs;is=rs,xs=446,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{afterInit(){const t=this.editor,e=t[as("0x3")].get(as("0x4"));t[as("0x1")].get(as("0x0"))&&e[as("0x2")](as("0x0"))}}const ls=["checkAttribute","getAttribute","afterInit","center","alignment","schema","model","locale","enableCommand","FORMAT_ALIGN_TO_CENTER","*Format:* %0","getSelectedBlocks","format","get","right","left","value","from","FORMAT_ALIGN_TO_RIGHT","AlignmentEditing","filter","selection","markBlockFormat","TrackChangesEditing","ltr","editor","plugins","has","document","change","commandName","justify","FORMAT_ALIGN_TO_LEFT"];var ds,us;ds=ls,us=438,function(t){for(;--t;)ds.push(ds.shift())}(++us);const gs=function(t,e){return ls[t-=0]};class ms extends t.Plugin{[gs("0x1a")](){const t=this[gs("0x10")],e=t.locale;if(!t[gs("0x11")][gs("0x12")](gs("0xa")))return;const n=t[gs("0x11")][gs("0x4")](gs("0xe"));n[gs("0x20")]("alignment",((e,o={})=>{let s=o[gs("0x7")];o[gs("0x7")]||(s=gs("0xf")===t[gs("0x1f")].contentLanguageDirection?"left":"right");const r=Array[gs("0x8")](this[gs("0x10")].model[gs("0x13")][gs("0xc")][gs("0x2")]())[gs("0xb")]((t=>function(t,e,n){const o=t[gs("0x19")](gs("0x1c"))||null;return e[gs("0x18")](t,gs("0x1c"))&&n!=o}(t,this.editor[gs("0x1e")][gs("0x1d")],s)));t.model[gs("0x14")]((()=>{for(const t of r)n[gs("0xd")](t,{commandName:"alignment",commandParams:[{value:s}]})}))})),n._descriptionFactory.registerDescriptionCallback((t=>{const{data:n}=t;if(n&&gs("0x1c")==n[gs("0x15")]){const t=n.commandParams[0][gs("0x7")];return{type:gs("0x3"),content:Yo(e,gs("0x1"),function(t){switch(t){case gs("0x6"):return Yo(e,gs("0x17"));case gs("0x5"):return Yo(e,gs("0x9"));case gs("0x1b"):return Yo(e,gs("0x0"));case gs("0x16"):return Yo(e,"FORMAT_JUSTIFY_TEXT")}}(t))}}}))}}const fs=["getCustomProperty","ck-suggestion-marker-","createUIElement","isLimit","writer","item","insert","type","start","plugins","includes","listIndent","consumable","getWalker","get","nextSibling","TrackChangesEditing","name","getItems","element","addHighlight","activeMarkers","test","model","toViewPosition","mapper","isContent","schema","previousPosition","addClass","createRangeOn","markerName","getAttribute","push","markerRange","toViewElement","isBlock","listItem"];var hs,ps;hs=fs,ps=500,function(t){for(;--t;)hs.push(hs.shift())}(++ps);const bs=function(t,e){return fs[t-=0]};function Es(t,e,n){const o=[];for(const s of e[bs("0xc")]())s.hasAttribute(t)&&o[bs("0x1b")](n[bs("0x18")](s));return o}function _s(t){const e=[];if(t.is(bs("0xd"),"listItem")){let n=t[bs("0x9")];for(;n&&n.is(bs("0xd"),bs("0x1f"))&&n[bs("0x1a")](bs("0x5"))>0;)e.push(n),n=n.nextSibling}return e}function Ts(t,e,{showActiveMarker:n=!0}={}){const o=t[bs("0x3")][bs("0x8")](bs("0xa"));return(s,r,i)=>{if(!i[bs("0x6")][bs("0x10")](r[bs("0x1c")],s[bs("0xb")]))return;const x=r[bs("0x1c")][bs("0x7")](),a=r[bs("0x1c")][bs("0x2")],c=t[bs("0x11")][bs("0x15")];let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t[bs("0x25")];u=u||c[bs("0x14")](e);const n=i.mapper[bs("0x1d")](e);if(n&&n[bs("0x20")](bs("0xe")))return;"elementEnd"==t[bs("0x1")]&&c[bs("0x1e")](e)&&!c[bs("0x23")](e)&&(e[bs("0x9")]||a.isAtEnd?l&&l.parent==e||(l=e,m(t[bs("0x16")]),g=!0):d=d||t[bs("0x16")])}function m(t){const s=i[bs("0x24")][bs("0x22")]("span",{class:bs("0x21")+e}),x=i.mapper[bs("0x12")](t);n&&o[bs("0xf")][bs("0x4")](r[bs("0x19")])&&i[bs("0x24")][bs("0x17")]("ck-suggestion-marker--active",s),i[bs("0x24")][bs("0x0")](x,s),i[bs("0x13")].bindElementToMarker(s,r[bs("0x19")])}u||g||!d||m(d)}}const Cs=["TrackChangesEditing","commandParams","format","commands","get","slice","FORMAT_ITALIC","markInlineFormat","StrikethroughEditing","code","value","FORMAT_SUPERSCRIPT","editor","plugins","subscript","toLowerCase","*Format:* %0","CodeEditing","from","change","strikethrough","UnderlineEditing","registerDescriptionCallback","SubscriptEditing","_descriptionFactory","afterInit","bold","enableCommand","ItalicEditing","BoldEditing","getRanges","italic","superscript","selection","forceValue","*Remove format:* %0","document","locale","underline","has","SuperscriptEditing","FORMAT_CODE","FORMAT_SUBSCRIPT"];var ys,ks;ys=Cs,ks=281,function(t){for(;--t;)ys.push(ys.shift())}(++ks);const As=function(t,e){return Cs[t-=0]},vs=[As("0x6"),As("0x5"),As("0x29"),As("0x25"),As("0x1c"),As("0x0"),As("0x11")];class Rs extends t.Plugin{[As("0x2")](){const t=this[As("0x20")],e=t.model,n=t.plugins[As("0x18")](As("0x14")),o=t[As("0xe")];for(const o of vs){if(!t[As("0x21")][As("0x10")](o))continue;const s=o[As("0x19")](0,-7)[As("0x23")](),r=t[As("0x17")][As("0x18")](s);n[As("0x4")](s,((t,o={})=>{const i=e[As("0xd")][As("0xa")];if(i.isCollapsed)return void t(o);const x=void 0!==o[As("0xb")]?o[As("0xb")]:!r[As("0x1e")];e[As("0x27")]((()=>{const t=Array[As("0x26")](i[As("0x7")]());for(const o of t){const t=x?[o]:Es(s,o,e);for(const e of t)n[As("0x1b")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n[As("0x1")][As("0x2a")]((n=>{const{data:s}=n;if(s&&s.commandName===t)return s[As("0x15")][0].forceValue?{type:As("0x16"),content:Yo(o,As("0x24"),e)}:{type:As("0x16"),content:Yo(o,As("0xc"),e)}}))}s(As("0x3"),Yo(o,"FORMAT_BOLD")),s(As("0x8"),Yo(o,As("0x1a"))),s(As("0xf"),Yo(o,"FORMAT_UNDERLINE")),s(As("0x1d"),Yo(o,As("0x12"))),s(As("0x28"),Yo(o,"FORMAT_STRIKETHROUGH")),s(As("0x22"),Yo(o,As("0x13"))),s(As("0x9"),Yo(o,As("0x1f")))}}const Ss=["name","blockQuote","_descriptionFactory","*Format:* %0","enableCommand","plugins","*Remove format:* %0","ELEMENT_BLOCK_QUOTE","$root","format","document","BlockQuoteEditing","schema","filter","commandName","from","TrackChangesEditing","commandParams","locale","getSelectedBlocks","registerDescriptionCallback","parent","afterInit","selection","editor","value","change","get","model","forceValue"];var Is,Ls;Is=Ss,Ls=237,function(t){for(;--t;)Is.push(Is.shift())}(++Ls);const Ns=function(t,e){return Ss[t-=0]};class ws extends t.Plugin{[Ns("0x19")](){const t=this[Ns("0x1b")],e=t[Ns("0x15")];if(!t[Ns("0x8")].has(Ns("0xe")))return;const n=t[Ns("0x8")][Ns("0x0")](Ns("0x13")),o=this[Ns("0x1b")].commands.get("blockQuote");n[Ns("0x7")]("blockQuote",((e,s={})=>{const r=this.editor.model[Ns("0xd")][Ns("0x1a")],i=s&&void 0!==s.forceValue?s[Ns("0x2")]:!o[Ns("0x1c")];let x=[];if(i){const e=Array[Ns("0x12")](r.getSelectedBlocks())[Ns("0x10")]((t=>Ms(t)||function(t,e){const n=e.checkChild(t.parent,Ns("0x4")),o=e.checkChild([Ns("0xb"),Ns("0x4")],t);return n&&o}(t,this[Ns("0x1b")][Ns("0x1")][Ns("0xf")])));x=S(e,t[Ns("0x1")])}else{const e=Array[Ns("0x12")](r[Ns("0x16")]())[Ns("0x10")]((t=>Ms(t)));x=S(e,t[Ns("0x1")])}t[Ns("0x1")][Ns("0x1d")]((()=>{for(const t of x)n.markBlockFormat(t,{commandName:Ns("0x4"),commandParams:[{forceValue:i}]})}))})),n[Ns("0x5")][Ns("0x17")]((t=>{const{data:n}=t;if(n&&Ns("0x4")==n[Ns("0x11")]){const t=Yo(e,Ns("0xa"));return n[Ns("0x14")][0][Ns("0x2")]?{type:"format",content:Yo(e,Ns("0x6"),t)}:{type:Ns("0xc"),content:Yo(e,Ns("0x9"),t)}}}))}}function Ms(t){return Ns("0x4")==t[Ns("0x18")][Ns("0x3")]}const Os=["commands","enableCommand","afterInit","editor","TrackChangesEditing","ckbox","plugins"];var Fs,Ps;Fs=Os,Ps=169,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x1")](){const t=this[Ds("0x2")];t[Ds("0x6")].get("ckbox")&&t[Ds("0x5")].get(Ds("0x3"))[Ds("0x0")](Ds("0x4"))}}const js=["CodeBlock","registerElementLabel","schema","indentCodeBlock","*Remove format:* %0","name","registerDescriptionCallback","_descriptionFactory","rootElement","languages","has","model","from","forceValue","document","locale","config","isLimit","ELEMENT_CODE_BLOCK","editor","format","getSelectedBlocks","checkChild","language","commandParams","filter","commands","TrackChangesEditing","afterInit","enableCommand","codeBlock","plugins","*Format:* %0","label","outdentCodeBlock","get"];var Us,Gs;Us=js,Gs=361,function(t){for(;--t;)Us.push(Us.shift())}(++Gs);const Hs=function(t,e){return js[t-=0]};class zs extends t.Plugin{[Hs("0x1b")](){const t=this[Hs("0x12")];if(!t[Hs("0x1e")][Hs("0x9")](Hs("0x23")))return;const e=t[Hs("0x1e")][Hs("0x22")](Hs("0x1a")),n=t[Hs("0xe")],o=t[Hs("0xf")][Hs("0x22")]("codeBlock")[Hs("0x8")],s=t[Hs("0x19")][Hs("0x22")]("codeBlock");e[Hs("0x1c")](Hs("0x2")),e[Hs("0x1c")](Hs("0x21")),e[Hs("0x1c")](Hs("0x1d"),((n,r={})=>{const i=t[Hs("0xa")],x=t[Hs("0xa")][Hs("0xd")].selection,a=r&&void 0!==r[Hs("0xc")]?r[Hs("0xc")]:!s.value;let c;r[Hs("0x16")]||(r[Hs("0x16")]=o[0].language),c=a?Array[Hs("0xb")](x[Hs("0x14")]())[Hs("0x18")]((t=>{return Ws(t)||(e=t,n=i[Hs("0x1")],!e.is(Hs("0x7"))&&!n[Hs("0x10")](e)&&n[Hs("0x15")](e.parent,Hs("0x1d")));var e,n})):Array[Hs("0xb")](x[Hs("0x14")]())[Hs("0x18")]((t=>Ws(t)));const l=S(c,i);i.change((()=>{for(const t of l)e.markBlockFormat(t,{commandName:Hs("0x1d"),commandParams:[{...r,forceValue:a}],formatGroupId:"blockName"})}))})),e._descriptionFactory[Hs("0x0")]("codeBlock",(t=>Yo(n,Hs("0x11"),t))),e[Hs("0x6")][Hs("0x5")]((t=>{const e=n.t,{type:s,data:r}=t;if("formatBlock"==s&&r&&Hs("0x1d")==r.commandName){const t=r[Hs("0x17")][0][Hs("0x16")],s=e(o.find((e=>e[Hs("0x16")]===t))[Hs("0x20")]);return r[Hs("0x17")][0][Hs("0xc")]?{type:Hs("0x13"),content:Yo(n,Hs("0x1f"),Yo(n,"ELEMENT_CODE_BLOCK",1)+" ("+s+")")}:{type:"format",content:Yo(n,Hs("0x3"),Yo(n,Hs("0x11"),1))}}}))}}function Ws(t){return"codeBlock"==t[Hs("0x4")]}const Vs=["has","get","editor","plugins","addCommentThread","afterInit","CommentsEditing","TrackChangesEditing"];var Ks,qs;Ks=Vs,qs=235,function(t){for(;--t;)Ks.push(Ks.shift())}(++qs);const Xs=function(t,e){return Vs[t-=0]};class $s extends t.Plugin{[Xs("0x2")](){const t=this[Xs("0x7")];t[Xs("0x0")][Xs("0x5")](Xs("0x3"))&&t[Xs("0x0")][Xs("0x6")](Xs("0x4")).enableCommand(Xs("0x1"))}}var Js=n(181);const Qs=["enqueueChange","end","isCollapsed","createRange","mapper","data","requires","detach","enableCommand","high","unbindElementFromMarkerName","selection","root","merge","commands","fromRange","setSelection","unit","lock","start","markerNameToElements","remove","downcastDispatcher","forward","unlock","addMarker:suggestion:deletion","TrackChangesEditing","editor","deleteForward","buffer","bind","model","options","$graveyard","editing","writer","modifySelection","rootName","delete","showSuggestionHighlights","batch","getFirstRange","get","plugins","uiElement"];var Zs,Ys;Zs=Qs,Ys=302,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{static get[tr("0x13")](){return[Js.Delete]}init(){const t=this[tr("0x28")],e=t[tr("0xb")][tr("0xa")](tr("0x27"));e[tr("0x15")](tr("0x6"));const n=t[tr("0x1b")][tr("0xa")](tr("0x29"));e[tr("0x15")](tr("0x29"),((e,o={})=>{const s=t[tr("0x2c")].createSelection(t.model.document[tr("0x18")]);s[tr("0xf")]&&t[tr("0x2c")][tr("0x4")](s,{direction:tr("0x24"),unit:o[tr("0x1e")]});const r=s[tr("0x9")](),x=i.LiveRange[tr("0x1c")](r);let a;e(o),a=tr("0x1")==x[tr("0x19")][tr("0x5")]?t[tr("0x2c")][tr("0x10")](r.start):t.model[tr("0x10")](x[tr("0x20")],x[tr("0xe")]),x[tr("0x14")](),t[tr("0x2c")][tr("0xd")](n[tr("0x2a")][tr("0x8")],(t=>{n[tr("0x2a")][tr("0x1f")](),t[tr("0x1d")](t[tr("0x10")](a[tr("0xe")])),n[tr("0x2a")][tr("0x25")]()}))})),t[tr("0x2")][tr("0x23")].on(tr("0x26"),Ts(t,tr("0x1a")),{priority:tr("0x16")}),t[tr("0x12")].downcastDispatcher.on(tr("0x26"),((e,n,o)=>{o[tr("0x0")][tr("0x7")]&&Ts(t,"merge",{showActiveMarker:!1})[tr("0x2b")](this)(e,n,o)}),{priority:tr("0x16")}),t[tr("0x2")][tr("0x23")].on("removeMarker:suggestion:deletion",((t,e,n)=>{const o=n[tr("0x11")][tr("0x21")](e.markerName);if(o)for(const t of o)t.is(tr("0xc"))&&(n.mapper[tr("0x17")](t,e.markerName),n[tr("0x3")][tr("0x22")](t))}),{priority:tr("0x16")})}}const nr=["getRanges","change","start","nextSibling","setSelection","schema","paragraph","execute","mergeListItemForward","multipleBlocks","commands","*Format:* insert into %0","push","config","has","markMultiRangeBlockFormat","toUpperCase","end","*Change to:* %0","model","list.multiBlock","outdentList","selection","numberedList","deletion","_LIST","getAttribute","accept","indentList","enableCommand","add","format","getSelectedBlocks","ELEMENT_LIST_ITEM","get","commandName","*Format:* remove from %0","fromRange","slice","listItemId","length","plugins","listIndent","after","documentList","value","bulletedList","registerDescriptionCallback","map","refresh","locale","before","ELEMENT_BULLETED_LIST","createRange","document","parent","from","listType","commandParams","isFirstBlockOfListItem","registerCustomCallback","forceValue","markBlockFormat","ELEMENT_NUMBERED_LIST","DocumentListEditing","createPositionAt","nodeAfter","expandListBlocksToCompleteList","afterInit","isObject","ELEMENT_","splitListItemBefore","formatBlock","*Outdent:* %0","getFirstRange","registerElementLabel","_descriptionFactory","containsItem","DocumentListUtils","splitListItemAfter"];var or,sr;or=nr,sr=377,function(t){for(;--t;)or.push(or.shift())}(++sr);const rr=function(t,e){return nr[t-=0]};class ir extends t.Plugin{[rr("0xb")](){const t=this.editor;if(!t[rr("0x40")][rr("0x25")](rr("0x7")))return;const e=t[rr("0x49")],n=t[rr("0x40")][rr("0x39")]("TrackChangesEditing"),o=t[rr("0x40")][rr("0x39")](rr("0x15"));function s(e){return()=>{const s=t[rr("0x21")][rr("0x39")](e);if(s.value&&!t[rr("0x24")][rr("0x39")](rr("0x2b")))return void t.execute(rr("0x1d"),{});let r=Array.from(t[rr("0x2a")][rr("0x4d")].selection[rr("0x37")]());if(a(e)){r=o[rr("0xa")](r);const t=[];for(const e of r)o[rr("0x2")](e)&&t[rr("0x23")](e);r=t}t.model[rr("0x18")]((()=>{n[rr("0x26")](r,{commandName:e,commandParams:[{forceValue:!s[rr("0x44")]}],formatGroupId:rr("0x0")},[],rr("0x43"))}))}}function r(e){return()=>{const o=function(t){let e=Array[rr("0x4f")](t);const n=e.findIndex((t=>!t.hasAttribute(rr("0x3e"))));return n>-1&&(e=e[rr("0x3d")](0,n)),e}(t.model[rr("0x4d")][rr("0x2d")].getSelectedBlocks()),s=o[o[rr("0x3f")]-1],r=t.model[rr("0x1c")][rr("0xc")](s)?rr("0x42"):rr("0x28"),i=t[rr("0x2a")][rr("0x4c")](t[rr("0x2a")][rr("0x8")](o[0],"before"),t[rr("0x2a")].createPositionAt(s,r));t[rr("0x2a")].change((()=>{n[rr("0x5")](i,{commandName:e,commandParams:[],formatGroupId:rr("0x0")},function(t){const e=new Set;for(const n of t){let t=n[rr("0x1a")];for(;t&&t[rr("0x31")]("listIndent")>n.getAttribute("listIndent");)e[rr("0x35")](t),t=t.nextSibling}return Array[rr("0x4f")](e)}(o))}))}}function x(e){return()=>{const o=t[rr("0x2a")][rr("0x4d")][rr("0x2d")][rr("0x37")]().next().value,s=t[rr("0x2a")][rr("0x8")](o,rr("0x4a")),r=t[rr("0x2a")][rr("0x8")](o,0),i=t[rr("0x2a")][rr("0x4c")](s,r);t[rr("0x2a")][rr("0x18")]((()=>{n[rr("0x5")](i,{commandName:e,commandParams:[],formatGroupId:rr("0x0")})}))}}function a(e){const n=t.commands[rr("0x39")]("bulletedList")[rr("0x44")],o=t.commands[rr("0x39")](rr("0x2e"))[rr("0x44")];return rr("0x2e")===e?n:o}n.enableCommand(rr("0x2e"),s(rr("0x2e"))),n.enableCommand(rr("0x45"),s(rr("0x45"))),n[rr("0x34")](rr("0x33"),r(rr("0x33"))),n[rr("0x34")](rr("0x2c"),r("outdentList")),n[rr("0x34")](rr("0x16"),x(rr("0x16"))),n.enableCommand("splitListItemBefore",x(rr("0xe"))),n[rr("0x13")][rr("0x12")]((function(e){const n=!t[rr("0x2a")].schema[rr("0xc")](e),o=e.previousSibling,s=e[rr("0x1a")],r=e.getAttribute("listItemId"),i=!o||o[rr("0x31")](rr("0x3e"))!==r,x=!s||s[rr("0x31")](rr("0x3e"))!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,"ELEMENT_LIST_ITEM",t))),n[rr("0x13")][rr("0x46")]((function(n){const{data:o}=n;if(!o)return;let s,r,i,x;switch(o[rr("0x3a")]){case"bulletedList":i=o[rr("0x1")][0].forceValue,x=a(o[rr("0x3a")]),s=rr(i?"0x22":"0x3b"),!x&&t[rr("0x24")][rr("0x39")](rr("0x2b"))||(s=rr("0x29")),r={type:rr("0x36"),content:Yo(e,s,Yo(e,rr("0x4b")))};break;case rr("0x2e"):i=o[rr("0x1")][0][rr("0x4")],x=a(o[rr("0x3a")]),s=rr(i?"0x22":"0x3b"),!x&&t[rr("0x24")][rr("0x39")](rr("0x2b"))||(s="*Change to:* %0"),r={type:rr("0x36"),content:Yo(e,s,Yo(e,rr("0x6")))};break;case"indentList":s="*Indent:* %0",r={type:"format",content:Yo(e,s,Yo(e,rr("0x38")))};break;case"outdentList":s=function(t){const e=t[rr("0x11")]();let n=e[rr("0x19")][rr("0x9")];for(;n&&e[rr("0x14")](n);){if(n.getAttribute(rr("0x41"))>0)return!1;n=n[rr("0x1a")]}return!0}(n)?Yo(e,"*Format:* remove from %0",Yo(e,function(t){const e=t[rr("0x11")]()[rr("0x19")].nodeAfter;return rr("0xd")+e[rr("0x31")](rr("0x0"))[rr("0x27")]()+rr("0x30")}(n))):Yo(e,rr("0x10"),Yo(e,rr("0x38"))),r={type:rr("0x36"),content:s};break;case"mergeListItemBackward":case rr("0x1f"):!1===o[rr("0x20")]&&(s="*Merge:* %0",r={type:rr("0x2f"),content:Yo(e,s,Yo(e,rr("0x38")))})}return r})),n._suggestionFactory[rr("0x3")](rr("0xf"),rr("0x43"),rr("0x32"),(function(e,n){const o=[];for(let n of e)n[rr("0x19")][rr("0x9")]===n.end[rr("0x4e")]&&(n=t.model[rr("0x4c")](t[rr("0x2a")].createPositionAt(n.start.nodeAfter,0))),o[rr("0x23")](n);t.model[rr("0x18")]((e=>{const s=t[rr("0x2a")][rr("0x4d")][rr("0x2d")],r=Array.from(s[rr("0x17")]())[rr("0x47")]((t=>i.LiveRange[rr("0x3c")](t)));e[rr("0x1b")](o),t[rr("0x21")][rr("0x39")](n[rr("0x3a")])[rr("0x48")](),n[rr("0x1")][rr("0x23")]({forceDefaultExecution:!0}),t[rr("0x1e")](n[rr("0x3a")],...n[rr("0x1")]),e[rr("0x1b")](r);for(const t of r)t.detach()}))}))}}var xr=n(331);const ar=["enableCommand","options","parent","getFirstRange","markInsertion","markerName","get","enter","addMarker:suggestion:insertion","mapper","fromRange","getFirstPosition","setSelection","init","TrackChangesEditing","ck-suggestion-marker-split","editor","remove","split","detach","downcastDispatcher","removeMarker:suggestion:insertion","hasClass","document","high","writer","createRange","editing","plugins","showSuggestionHighlights","fire","commands","afterExecute","data","model","createPositionAt","requires","selection","change"];var cr,lr;cr=ar,lr=430,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const dr=function(t,e){return ar[t-=0]};class ur extends t.Plugin{static get[dr("0x23")](){return[xr.Enter]}[dr("0xc")](){const t=this[dr("0xf")],e=t[dr("0x1b")][dr("0x5")](dr("0xd")),n=t[dr("0x1e")][dr("0x5")](dr("0x6"));e[dr("0x26")](dr("0x6"),(()=>{t[dr("0x21")][dr("0x25")]((o=>{const s=t.model[dr("0x16")][dr("0x24")],r=s[dr("0xa")](),x=i.LiveRange[dr("0x9")](s[dr("0x2")]());if(n.enterBlock(o)){const n=t[dr("0x21")][dr("0x22")](r[dr("0x1")].nextSibling,0),s=o[dr("0x19")](r,n);e[dr("0x3")](s)}else o[dr("0xb")](o.createRange(x.end));x[dr("0x12")](),n[dr("0x1d")](dr("0x1f"),{writer:o})}))})),t[dr("0x1a")][dr("0x13")].on(dr("0x7"),Ts(t,dr("0x11")),{priority:dr("0x17")}),t[dr("0x1a")][dr("0x13")].on(dr("0x14"),((t,e,n)=>{const o=n[dr("0x8")].markerNameToElements(e[dr("0x4")]);if(o)for(const t of o)t[dr("0x15")](dr("0xe"))&&(n.mapper.unbindElementFromMarkerName(t,e[dr("0x4")]),n[dr("0x18")][dr("0x10")](t))}),{priority:"high"}),t[dr("0x20")].downcastDispatcher.on("addMarker:suggestion:insertion",((e,n,o)=>{o[dr("0x0")][dr("0x1c")]&&Ts(t,dr("0x11"),{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:dr("0x17")})}}const gr=["filter","getIntersection","handleFindCommand","get","findByTextCallback","createRange","FindAndReplaceUtils","has","enableCommand","model","markers","replaceAll","afterInit","editor","suggestion:deletion","bind","getRange","start","TrackChangesEditing","findNext","getMarkersGroup","end","string","plugins","findPrevious","FindAndReplaceEditing","_isInDeletionRange"];var mr,fr;mr=gr,fr=245,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]};class pr extends t.Plugin{[hr("0xa")](){if(!this.editor[hr("0x15")][hr("0x5")](hr("0x17")))return;const t=this[hr("0xb")][hr("0x15")][hr("0x1")](hr("0x10"));t[hr("0x6")]("find",this.handleFindCommand[hr("0xd")](this)),t[hr("0x6")](hr("0x11")),t[hr("0x6")](hr("0x16")),t[hr("0x6")]("replace"),t[hr("0x6")](hr("0x9"))}[hr("0x0")](t,e,n={}){const o=this[hr("0xb")][hr("0x15")][hr("0x1")](hr("0x4"));if(void 0!==n)return t((t=>(hr("0x14")==typeof e?o[hr("0x2")](e,n):e)(t)[hr("0x19")]((e=>!1===this._isInDeletionRange(e,t.item)))),n)}[hr("0x18")](t,e){const n=this[hr("0xb")].model[hr("0x3")](this[hr("0xb")][hr("0x7")].createPositionAt(e,t[hr("0xf")]),this[hr("0xb")].model.createPositionAt(e,t[hr("0x13")]));for(const t of this[hr("0xb")][hr("0x7")][hr("0x8")][hr("0x12")](hr("0xc")))if(null!==n[hr("0x1a")](t[hr("0xe")]()))return!0;return!1}}const br=["FontFamilyEditing","afterInit","get","getRanges","_enableCommand","*Set font family:* %0","document","change","fontBackgroundColor","value","trim","toLowerCase","*Reset font color*","fontSize","FontColorEditing","isCollapsed","has","locale","commandName","fontColor.colors","*Set font background color:* %0","_descriptionFactory","from","*Set font color:* %0","fontBackgroundColor.colors","TrackChangesEditing","plugins","*Reset font family*","find","label","format","enableCommand","*Set font size:* %0","FontSize","*Reset font size*","fontColor","model","commandParams","editor","config"];var Er,_r;Er=br,_r=189,function(t){for(;--t;)Er.push(Er.shift())}(++_r);const Tr=function(t,e){return br[t-=0]},Cr=[{pluginName:"FontSizeEditing",commandName:Tr("0x18")},{pluginName:Tr("0xb"),commandName:"fontFamily"},{pluginName:Tr("0x19"),commandName:Tr("0x6")},{pluginName:"FontBackgroundColorEditing",commandName:Tr("0x13")}];class yr extends t.Plugin{[Tr("0xc")](){const t=this[Tr("0x9")][Tr("0x1c")];for(const{pluginName:t,commandName:e}of Cr)this[Tr("0x9")].plugins[Tr("0x1b")](t)&&this[Tr("0xf")](e);this[Tr("0x9")][Tr("0x25")][Tr("0xd")](Tr("0x24"))[Tr("0x20")].registerDescriptionCallback((e=>{const n=t.t,{data:o}=e;if(null!=o){if(Tr("0x18")==o[Tr("0x1d")]){const e=o[Tr("0x8")][0].value;if(e){const o=n(this[Tr("0x9")].plugins[Tr("0xd")](Tr("0x4")).normalizeSizeOptions(this[Tr("0x9")].config[Tr("0xd")]("fontSize.options"))[Tr("0x27")]((t=>t[Tr("0x7")]==e)).title)[Tr("0x16")]();return{type:Tr("0x1"),content:Yo(t,Tr("0x3"),o)}}return{type:Tr("0x1"),content:Yo(t,Tr("0x5"))}}if("fontFamily"==o[Tr("0x1d")]){const e=o.commandParams[0][Tr("0x14")];return e?{type:Tr("0x1"),content:Yo(t,Tr("0x10"),e)}:{type:Tr("0x1"),content:Yo(t,Tr("0x26"))}}if(Tr("0x6")==o[Tr("0x1d")]){const e=o[Tr("0x8")][0][Tr("0x14")];if(e){const o=(0,s.normalizeColorOptions)(this[Tr("0x9")][Tr("0xa")].get(Tr("0x1e")))[Tr("0x27")]((t=>t[Tr("0x7")]==e));let r=e,i="";return o&&(r=o[Tr("0x0")],i=n(r).toLowerCase()),{type:Tr("0x1"),content:Yo(t,Tr("0x22"),i)[Tr("0x15")](),color:{value:e,title:i||r}}}return{type:Tr("0x1"),content:Yo(t,Tr("0x17"))}}if("fontBackgroundColor"==o[Tr("0x1d")]){const e=o.commandParams[0][Tr("0x14")];if(e){const o=(0,s.normalizeColorOptions)(this.editor[Tr("0xa")].get(Tr("0x23")))[Tr("0x27")]((t=>t[Tr("0x7")]==e));let r=e,i="";return o&&(r=o[Tr("0x0")],i=n(r)[Tr("0x16")]()),{type:Tr("0x1"),content:Yo(t,Tr("0x1f"),i)[Tr("0x15")](),color:{value:e,title:i||r}}}return{type:Tr("0x1"),content:Yo(t,"*Reset font background color*")}}}}))}[Tr("0xf")](t){const e=this.editor;e[Tr("0x25")].get("TrackChangesEditing")[Tr("0x2")](t,((n,o={})=>{const s=e[Tr("0x7")][Tr("0x11")].selection,r=o[Tr("0x14")];s[Tr("0x1a")]?n(o):e[Tr("0x7")][Tr("0x12")]((()=>{const n=Array[Tr("0x21")](s[Tr("0xe")]());for(const o of n){const n=r?[o]:Es(t,o,e[Tr("0x7")]);for(const o of n)e[Tr("0x25")].get(Tr("0x24")).markInlineFormat(o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const kr=["*Remove all formatting*","getLastPosition","commandParams","fontBackgroundColor","getSelectedBlocks","slice","find","enableCommand","backward","change","from","plugins","registerDescriptionCallback","word","fontColor.colors","format","title","getFirstPosition","normalizeSizeOptions","document","commands","length","editor","schema","markInlineFormat","fontColor","selection","toLowerCase","getRanges","FontSize","copyFormat","modifySelection","config","pasteFormat","boolean","fontSize","afterInit","_descriptionFactory","commandName","entries","get","isFormatting","join","createSelection","toUpperCase","model","locale","getAttributeProperties","forward","getItems","*Set format to:* %0"];var Ar,vr;Ar=kr,vr=318,function(t){for(;--t;)Ar.push(Ar.shift())}(++vr);const Rr=function(t,e){return kr[t-=0]};class Sr extends t.Plugin{[Rr("0x18")](){const t=this[Rr("0xa")],n=t[Rr("0x21")],o=n[Rr("0x7")][Rr("0xe")],s=t.plugins.get("TrackChangesEditing"),r=t[Rr("0x22")],i=t[Rr("0x8")][Rr("0x1c")](Rr("0x12")),x=t[Rr("0x8")][Rr("0x1c")](Rr("0x15"));i&&x&&(s[Rr("0x2e")]("pasteFormat",((t,r={})=>{const i=r;n[Rr("0x30")]((()=>{const t=Array[Rr("0x31")](o[Rr("0x10")]()),r=o.isCollapsed?[Ir(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t.getAttributes()){const t=e[Rr("0x23")](n);t&&t[Rr("0x1d")]&&(yield n)}}(t,n));for(const e of t[Rr("0x10")]())for(const t of e[Rr("0x25")]())!n.isBlock(t)&&o(t)&&(yield t);for(const e of t[Rr("0x2b")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Rr("0xb")]))||0!==Object.keys(i)[Rr("0x9")])for(const t of r)s[Rr("0xc")](t,{commandName:Rr("0x15"),commandParams:[i]})}))})),s[Rr("0x19")][Rr("0x0")]((e=>{const{data:n}=e;if(n&&Rr("0x15")===n[Rr("0x1a")]){const e=[],o=n[Rr("0x29")][0];for(const[n,s]of Object[Rr("0x1b")](o))e.push(Lr(t,n,s));return e.length?{type:"format",content:Yo(r,Rr("0x26"),e.join(", "))}:{type:Rr("0x3"),content:Yo(r,Rr("0x27"))}}})),t[Rr("0x32")][Rr("0x1c")]("TrackChangesEditing")[Rr("0x2e")](Rr("0x12")))}}function Ir(t,e){const n=t[Rr("0x1f")](e);t[Rr("0x13")](n,{unit:"word",direction:Rr("0x2f")});const o=n[Rr("0x5")]();t.modifySelection(n,{unit:Rr("0x1"),direction:Rr("0x24")});const s=n[Rr("0x28")]();return t.createRange(o,s)}function Lr(t,e,n){const o=t[Rr("0x22")].t,r=e.split(/(?=[A-Z])/)[Rr("0x1e")](" "),i=o(r.charAt(0)[Rr("0x20")]()+r[Rr("0x2c")](1)).toLowerCase();if(Rr("0x16")==typeof n)return i;if(Rr("0xd")===e||Rr("0x2a")===e){const e=(0,s.normalizeColorOptions)(t.config[Rr("0x1c")](Rr("0x2"))).find((t=>t[Rr("0x21")]==n));return i+" ("+(e?o(e.label)[Rr("0xf")]():n)+")"}if(Rr("0x17")===e&&isNaN(parseFloat(n))){const e=t[Rr("0x32")][Rr("0x1c")](Rr("0x11"))[Rr("0x6")](t[Rr("0x14")][Rr("0x1c")]("fontSize.options"))[Rr("0x2d")]((t=>t.model==n));return i+" ("+(e?o(e[Rr("0x4")])[Rr("0xf")]():n)+")"}return i+" ("+n+")"}const Nr=["isObject","getSelectedBlocks","heading","markBlockFormat","formatBlock","checkChild","model","get","HeadingEditing","ELEMENT_HEADING_CUSTOM","*Change to:* %0","filter","title","commandParams","enableCommand","paragraph","name","has","plugins","match","heading.options","format","blockName","editor","ELEMENT_HEADING","_descriptionFactory","registerDescriptionCallback","selection","value","find","document","parent","schema"];var wr,Mr;wr=Nr,Mr=373,function(t){for(;--t;)wr.push(wr.shift())}(++Mr);const Or=function(t,e){return Nr[t-=0]};class Fr extends t.Plugin{afterInit(){const t=this[Or("0xd")],e=t.locale,n=t.config[Or("0x1e")](Or("0xa"));if(!t[Or("0x8")][Or("0x7")](Or("0x1f")))return;const o=t.plugins[Or("0x1e")]("TrackChangesEditing");o[Or("0x4")](Or("0x19"),((e,n)=>{const s=n[Or("0x12")],r=Array.from(this[Or("0xd")].model[Or("0x14")][Or("0x11")][Or("0x18")]())[Or("0x1")]((t=>{return e=t,n=s,(o=this.editor[Or("0x1d")][Or("0x16")])[Or("0x1c")](e[Or("0x15")],n)&&!o[Or("0x17")](e)&&e[Or("0x6")]!=n;var e,n,o}));t[Or("0x1d")].change((()=>{for(const t of r)o[Or("0x1a")](t,{commandName:Or("0x19"),commandParams:[n],formatGroupId:Or("0xc")},_s(t))}))}));for(const t of n)Or("0x5")!=t[Or("0x1d")]&&o[Or("0xf")].registerElementLabel(t[Or("0x1d")],(e=>{const n=Pr(t[Or("0x1d")]);return null!==n?s(e,n):r(e,t[Or("0x2")])}));function s(t,n){return Yo(e,Or("0xe"),[t,n])}function r(t,n){return Yo(e,Or("0x20"),[t,n])}o[Or("0xf")][Or("0x10")]((t=>{const{type:o,data:i}=t;if(Or("0x1b")==o&&i&&Or("0x19")==i.commandName){const t=i[Or("0x3")][0][Or("0x12")],o=Pr(t);if(null!==o)return{type:Or("0xb"),content:Yo(e,Or("0x0"),s(1,o))};const x=n[Or("0x13")]((e=>e[Or("0x1d")]===t))[Or("0x2")];return{type:Or("0xb"),content:Yo(e,Or("0x0"),r(1,x))}}}))}}function Pr(t){const e=t[Or("0x9")](/^heading(\d+)$/);return e?e[1]:null}const Dr=["backward","registerDescriptionCallback","editor","*Remove highlight*","createRange","config","selection","highlight","item","plugins","format","value","_descriptionFactory","TrackChangesEditing","getAttribute","markInlineFormat","model","*Set highlight:* %0","commandName","find","push","getLastMatchingPosition","FORMAT_HIGHLIGHT","isCollapsed","color","afterInit","has","toLowerCase","title"];var Br,jr;Br=Dr,jr=239,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0x12")](){const t=this[Ur("0x18")];if(!t[Ur("0x2")][Ur("0x13")]("HighlightEditing"))return;const e=t[Ur("0x2")].get(Ur("0x6"));e.enableCommand(Ur("0x0"),((n,o={})=>{const s=t[Ur("0x9")].document[Ur("0x1c")],r=s[Ur("0x7")](Ur("0x0"));let i=o.value,x=[];if(s[Ur("0x10")]){const e=s.getFirstPosition();if(!s.hasAttribute(Ur("0x0")))return void n(o);{const n=t=>t[Ur("0x1")][Ur("0x7")]("highlight")===r,o=e[Ur("0xe")](n,{direction:Ur("0x16")}),s=e[Ur("0xe")](n);x=[t[Ur("0x9")][Ur("0x1a")](o,s)],i==r&&(i=null)}}else for(const e of s.getRanges())i?x[Ur("0xd")](e):x[Ur("0xd")](...Es(Ur("0x0"),e,t[Ur("0x9")]));t[Ur("0x9")].change((()=>{for(const t of x)e[Ur("0x8")](t,{commandName:Ur("0x0"),commandParams:[{value:i}]})}))}));const n=t.locale;e[Ur("0x5")][Ur("0x17")]((e=>{const{type:o,data:s}=e;if("formatInline"==o&&s&&Ur("0x0")==s[Ur("0xb")]){const e=n.t,o=s.commandParams[0][Ur("0x4")];if(o){const s=t[Ur("0x1b")].get("highlight.options")[Ur("0xc")]((t=>t[Ur("0x9")]==o)),r=e(s[Ur("0x15")])[Ur("0x14")]();return{type:Ur("0x3"),content:Yo(n,Ur("0xa"),r),color:{value:s[Ur("0x11")],title:s[Ur("0x15")]}}}return{type:Ur("0x3"),content:Yo(n,Ur("0x19"),Yo(n,Ur("0xf")))}}}))}}const Hr=["ELEMENT_HORIZONTAL_LINE","dataDowncast","_descriptionFactory","for","high","has","afterInit","createContainerElement","horizontalLine","elementToStructure","showSuggestionHighlights","conversion","get","div","plugins","TrackChangesEditing","editor","registerElementLabel","HorizontalLineEditing"];var zr,Wr;zr=Hr,Wr=290,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Vr("0x1")](){const t=this[Vr("0xb")];if(!t.plugins[Vr("0x0")](Vr("0xd")))return;t[Vr("0x9")][Vr("0x7")]("TrackChangesEditing").enableCommand(Vr("0x3"));const e=t[Vr("0x9")][Vr("0x7")](Vr("0xa")),n=t.locale;e[Vr("0x10")][Vr("0xc")](Vr("0x3"),(t=>Yo(n,Vr("0xe"),t))),t[Vr("0x6")][Vr("0x11")](Vr("0xf"))[Vr("0x4")]({model:Vr("0x3"),view:(t,{writer:e,options:n})=>{if(!n[Vr("0x5")])return null;const o=e[Vr("0x2")](Vr("0x8")),s=e.createEmptyElement("hr");return e.addClass("ck-horizontal-line",o),e.insert(e.createPositionAt(o,0),s),o},converterPriority:Vr("0x12")})}}const qr=["change","TrackChangesEditing","htmlEmbed","getSelectedElement","has","model","cancel","value","enableCommand","ELEMENT_HTML_EMBED","editing","registerElementLabel","markBlockFormat","view","rawHtml","locale","*Change %0 content*","getAttribute","commandName","getCustomProperty","rawHtmlApi","get","plugins","_descriptionFactory","document","element"];var Xr,$r;Xr=qr,$r=256,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{afterInit(){const t=this.editor;if(!t[Jr("0x0")][Jr("0x8")]("HtmlEmbed"))return;const e=t.plugins[Jr("0x19")](Jr("0x5")),n=t[Jr("0x13")],o=t[Jr("0xe")][Jr("0x11")][Jr("0x2")].selection;e[Jr("0x1")][Jr("0xf")](Jr("0x12"),(t=>Yo(n,Jr("0xd"),t))),t.plugins[Jr("0x19")](Jr("0x5"))[Jr("0xc")](Jr("0x6"),((n,s)=>{const r=t[Jr("0x9")],i=r[Jr("0x2")].selection;r[Jr("0x4")]((()=>{const t=function(t){const e=t.getSelectedElement();return e&&e.is(Jr("0x3"),Jr("0x12"))?t.getSelectedElement():null}(i);if(!t)return void n(null);const r=t[Jr("0x15")](Jr("0xb"))||"";void 0!==s&&s!==r&&(e[Jr("0x10")](t,{commandName:"htmlEmbed",commandParams:[s]}),o[Jr("0x7")]()[Jr("0x17")](Jr("0x18"))[Jr("0xa")]())}))})),e[Jr("0x1")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&Jr("0x6")==e[Jr("0x16")]){const t=Yo(n,Jr("0xd"));return{type:"format",content:Yo(n,Jr("0x14"),t)}}}))}}const Zr=["getContainedElement","accept","fromPosition","imageTypeInline","commandName","schema","formatInline","isCollapsed","registerDescriptionCallback","*Set image text alternative:* %0","hasAttribute","nodeAfter","shouldConvertImageType","side","markInsertion","length","has","ImageResize","imageTypeBlock","imageStyle","value","getClosestSelectedImageElement","join","ImageEditing","alt","next","insertion","ImageTextAlternativeEditing","*Format:* %0","filter","createRangeOn","suggestion","toNext","detach","registerElementLabel","model","getCaptionFromImageModelElement","caption","backward","selection","*Remove image text alternative*","_suggestionFactory","getAttribute","imageStylePreApply","imageInline","commandReversedParams","ELEMENT_INLINE_IMAGE","getSuggestionCallback","toggleImageCaption","format","findIndex","editor","uploadImage","_splitMarkerName","ELEMENT_IMAGE","commandParams","ImageUploadEditing","type","document","ImageInlineEditing","discardSuggestion","subType","getChangedMarkers","enableCommand","change","author","_findSuggestions","hasSuggestion","convertInlineImageToBlock","convertBlockImageToInline","toLowerCase","imageStylePostApply","createRange","markBlockFormat","_descriptionFactory","refresh","ImageBlockEditing","newRange","getNearestSelectionRange","width","normalizedStyles","*Set image width:* %0","ImageStyleEditing","start","isBefore","forceDefaultExecution","get","ELEMENT_CAPTION","plugins","isBlockImage","find","*Reset image width*","previous","ImageCaptionUtils","afterInit","head","isOwn","commands","isEqual","formatBlock","imageCaption","markInlineFormat","element","getFirstRange","Users","imageTextAlternative","isInContent","registerPostFixer","insertImage","end","discard","name","setImageNaturalSizeAttributes","FORMAT_SIDE_IMAGE","chain","resizeImage","newValue","forward","imageBlock","registerCustomCallback"];var Yr,ti;Yr=Zr,ti=424,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{[ei("0x1e")](){const t=this[ei("0x6b")];if(!t[ei("0x18")][ei("0x48")](ei("0x4f")))return;const n=t[ei("0x18")].get("TrackChangesEditing"),o=t[ei("0x18")].get("ImageUtils"),s={},r=t.locale;if(n[ei("0x77")](ei("0x2c")),n._descriptionFactory[ei("0x5a")](ei("0x36"),(t=>Yo(r,ei("0x6e"),t))),n[ei("0xa")][ei("0x5a")](ei("0x64"),(t=>Yo(r,ei("0x66"),t))),n[ei("0xa")][ei("0x5a")](ei("0x5d"),(()=>Yo(r,ei("0x17")))),t[ei("0x18")][ei("0x48")](ei("0x70"))&&n[ei("0x77")](ei("0x6c")),t[ei("0x18")][ei("0x48")](ei("0xc"))&&t[ei("0x18")][ei("0x48")](ei("0x73"))&&(n[ei("0x77")](ei("0x3b"),((e,s)=>{const r=o[ei("0x4d")](t[ei("0x5b")][ei("0x72")][ei("0x5f")]);t[ei("0x5b")][ei("0x0")]((()=>{n[ei("0x9")](r,{commandName:ei("0x3b"),commandParams:[s]},[],"convertBlockImageToInline")}))})),n[ei("0x77")](ei("0x4a"),((e,s)=>{t[ei("0x5b")][ei("0x0")]((r=>{let x=o[ei("0x4d")](t[ei("0x5b")][ei("0x72")][ei("0x5f")]),a=r[ei("0x56")](x);const c=i.LivePosition.fromPosition(a[ei("0x13")],"toPrevious"),l=i.LivePosition[ei("0x3a")](a[ei("0x2d")],ei("0x58"));n[ei("0x15")]((()=>e(s))),x=o[ei("0x4d")](t[ei("0x5b")][ei("0x72")].selection),a=r[ei("0x56")](x);const d=r.createRange(c,l);c[ei("0x59")](),l.detach(),n[ei("0x9")](x,{commandName:ei("0x3b"),commandParams:[s]},[],ei("0x4")),d[ei("0x13")].isBefore(a.start)&&n[ei("0x46")](r[ei("0x8")](d.start,a.start),ei("0x4")),a[ei("0x2d")][ei("0x14")](d.end)&&n.markInsertion(r[ei("0x8")](a[ei("0x2d")],d.end),ei("0x4"))}))})),n[ei("0x61")][ei("0x37")](ei("0x23"),"convertInlineImageToBlock",ei("0x4e"),(()=>!1)),n[ei("0x61")][ei("0x37")](ei("0x23"),ei("0x4"),ei("0x39"),(()=>!1)),n._suggestionFactory.registerCustomCallback(ei("0x23"),ei("0x4"),"discard",n[ei("0x61")].getSuggestionCallback(ei("0x23"),"",ei("0x39"))),n[ei("0x61")][ei("0x37")](ei("0x52"),ei("0x4"),ei("0x4e"),(()=>!1)),n._suggestionFactory[ei("0x37")](ei("0x52"),ei("0x4"),ei("0x2e"),(([e])=>{const o=n._suggestionFactory[ei("0x67")](ei("0x52"),"",ei("0x2e"));let s=e[ei("0x13")],r=e[ei("0x2d")];const i=t.model.schema.getNearestSelectionRange(s,ei("0x5e")),x=t.model[ei("0x3d")][ei("0xe")](r,ei("0x35"));i.isCollapsed&&(s=i[ei("0x13")]),x[ei("0x3f")]&&(r=x[ei("0x2d")]),o([t[ei("0x5b")][ei("0x8")](s,r)])})),n[ei("0x61")][ei("0x37")](ei("0x23"),ei("0x4"),ei("0x32"),c),n[ei("0x61")][ei("0x37")]("insertion",ei("0x4"),"chain",c)),t[ei("0x18")][ei("0x48")]("ImageCaptionEditing")&&(n[ei("0x77")](ei("0x68"),((e,s)=>{const r=t.plugins[ei("0x16")](ei("0x1d"));let i=o[ei("0x4d")](t[ei("0x5b")][ei("0x72")][ei("0x5f")]),x=r[ei("0x5c")](i);t.model[ei("0x0")]((()=>{if(x)return void n.markDeletion(t.model[ei("0x56")](x));const a=o[ei("0x19")](i);e(s),i=o[ei("0x4d")](t[ei("0x5b")][ei("0x72")].selection),x=r[ei("0x5c")](i),n[ei("0x46")](t[ei("0x5b")].createRangeOn(x),a?null:ei("0x24"))}))})),n[ei("0x61")].registerCustomCallback(ei("0x52"),ei("0x24"),ei("0x32"),c)),t[ei("0x18")][ei("0x48")](ei("0x12"))){n[ei("0x77")]("imageStyle",((s,r)=>{const i=t[ei("0x18")].get(ei("0x28")).me,x=t.commands[ei("0x16")]("imageStyle");let a=o.getClosestSelectedImageElement(t[ei("0x5b")][ei("0x72")][ei("0x5f")]),c=t[ei("0x5b")][ei("0x56")](a),l=x[ei("0x4c")];if(l==r[ei("0x4c")])return;const d={commandName:ei("0x4b"),commandParams:[r],formatGroupId:(0,e.uid)()};t.model[ei("0x0")]((()=>{if(n.getSuggestions().filter((t=>t.isInContent&&i==t[ei("0x1")]&&(ei("0x23")==t[ei("0x71")]||ei("0x3e")==t[ei("0x71")])&&(ei("0x63")==t.subType||"imageStylePostApply"==t[ei("0x75")])&&t[ei("0x27")]().isEqual(c))).forEach((t=>n.discardSuggestion(t[ei("0x1f")]))),a=o.getClosestSelectedImageElement(t.model.document[ei("0x5f")]),c=t.model[ei("0x56")](a),x[ei("0xb")](),t[ei("0x21")][ei("0x16")]("imageTypeInline").refresh(),t[ei("0x21")][ei("0x16")]("imageTypeBlock")[ei("0xb")](),l=x[ei("0x4c")],l!=r[ei("0x4c")])return o.isInlineImage(a)&&x[ei("0x44")](r[ei("0x4c")],a)?(s({...r,setImageSizes:!1}),a=o.getClosestSelectedImageElement(t.model[ei("0x72")].selection),void n.markBlockFormat(a,{...d,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],"imageStylePreApply")):void(o[ei("0x19")](a)?n.markBlockFormat(a,d,[],ei("0x7")):n[ei("0x25")](c,d,"imageStylePostApply"))}))}));for(const e of t[ei("0x18")][ei("0x16")](ei("0x12"))[ei("0x10")])s[e[ei("0x2f")]]=e.title[ei("0x6")]();n[ei("0x61")][ei("0x37")](ei("0x23"),ei("0x63"),ei("0x4e"),(()=>!1)),n[ei("0x61")].registerCustomCallback(ei("0x23"),ei("0x7"),ei("0x4e"),(()=>!1)),n[ei("0x61")][ei("0x37")](ei("0x3e"),ei("0x7"),"join",(()=>!1)),n[ei("0x61")][ei("0x37")](ei("0x23"),ei("0x63"),"accept",(([t])=>{o[ei("0x30")](t[ei("0x38")]())})),n._suggestionFactory[ei("0x37")](ei("0x23"),"imageStylePreApply","discard",((t,e)=>{n._suggestionFactory[ei("0x67")](ei("0x23"),"",ei("0x39"))(t,{commandName:e[ei("0x3c")],commandParams:e[ei("0x65")]})})),n[ei("0x61")][ei("0x37")](ei("0x23"),ei("0x63"),ei("0x32"),c)}const x=[{type:ei("0x23"),subType:"imageStylePreApply"},{type:"insertion",subType:ei("0x24")},{type:ei("0x23"),subType:ei("0x4")},{type:"insertion",subType:ei("0x4")}];function a(t,e){const s=x[ei("0x6a")]((({type:e,subType:n})=>t[ei("0x71")]==e&&t[ei("0x75")]==n)),r=x.findIndex((({type:t,subType:n})=>e[ei("0x71")]==t&&e.subType==n));if(s<0||r<0)return!1;const i=t[ei("0x27")](),a=e[ei("0x27")]();if((0==s||1==s)&&2==r&&i.isIntersecting(a))return!0;if(2==s&&3==r){const t=n[ei("0x2")](i,"insertion")[ei("0x55")]((({suggestion:t,meta:e})=>e[ei("0x20")]&&ei("0x4")==t[ei("0x75")]));if(t[ei("0x47")]>1&&a[ei("0x2d")].isEqual(i.start))return!0;if(1==t[ei("0x47")]&&(i.start[ei("0x22")](a.end)||i[ei("0x2d")][ei("0x22")](a.start)))return!0}if(3==s&&3==r&&i[ei("0x13")][ei("0x14")](a[ei("0x13")])){const t=i[ei("0x2d")][ei("0x43")],e=a[ei("0x13")].nodeBefore;return o[ei("0x19")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[ei("0x5b")].document[ei("0x2b")]((()=>{let e=!1;const s=Array.from(t[ei("0x5b")][ei("0x72")].differ[ei("0x76")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[ei("0x6d")](t);if(ei("0x57")==s&&n[ei("0x3")](a)){if(ei("0x23")==i&&(ei("0x63")==x||ei("0x7")==x)){const t=n.getSuggestion(a);if(r[ei("0xd")]){const s=t[ei("0x27")]().getContainedElement();if(o[ei("0x19")](s))continue;n[ei("0x74")](t),e=!0}}if(ei("0x52")==i&&"imageCaption"==x&&!r[ei("0xd")]){const t=n.getSuggestion(a);t[ei("0x51")]&&t[ei("0x51")][ei("0x2a")]&&(n[ei("0x74")](t[ei("0x51")]),e=!0)}}}return e})),t[ei("0x18")][ei("0x48")](ei("0x49"))&&n[ei("0x77")]("resizeImage",((e,s)=>{const r=o[ei("0x4d")](t[ei("0x5b")][ei("0x72")][ei("0x5f")]);r[ei("0x62")]("resizedWidth")!=s[ei("0xf")]&&t[ei("0x5b")].change((()=>{n[ei("0x9")](r,{commandName:"resizeImage",commandParams:[s]})}))})),t.plugins[ei("0x48")](ei("0x53"))&&n[ei("0x77")](ei("0x29"),((e,s)=>{const r=o[ei("0x4d")](t.model[ei("0x72")].selection);(r[ei("0x42")](ei("0x50"))?r.getAttribute("alt"):"")!=s[ei("0x34")]&&t[ei("0x5b")][ei("0x0")]((()=>{n[ei("0x9")](r,{commandName:"imageTextAlternative",commandParams:[s]})}))})),n[ei("0xa")][ei("0x40")]((t=>{if(x[ei("0x1a")]((({type:e,subType:n})=>t[ei("0x71")]==e&&t.subType==n)))return t[ei("0x1c")]?{}:void 0})),n[ei("0xa")][ei("0x40")]((t=>{if("insertion"==t[ei("0x71")]||"deletion"==t[ei("0x71")]){const e=t[ei("0x38")]();if(e&&e.is(ei("0x26"),ei("0x5d")))return{type:"insertion"==t[ei("0x71")]?"addObject":"removeObject",element:e,quantity:1}}})),n._descriptionFactory[ei("0x40")]((t=>ei("0x23")==t[ei("0x71")]&&"convertInlineImageToBlock"==t.subType?{type:"format",content:"Inline image to block image"}:ei("0x23")==t.type&&ei("0x5")==t.subType?{type:ei("0x69"),content:"Block image to inline image"}:void 0)),n[ei("0xa")][ei("0x40")]((t=>{const{data:e}=t;if(e){if(ei("0x4b")==e[ei("0x3c")]){const t=e[ei("0x6f")][0].value;return n=ei("0x45")===t?Yo(r,ei("0x31")):s[t]||t,{type:"format",content:Yo(r,ei("0x54"),n)}}if(ei("0x29")==e[ei("0x3c")]){const t=e.commandParams[0].newValue;return t?{type:ei("0x69"),content:Yo(r,ei("0x41"),'"'+t+'"')}:{type:ei("0x69"),content:Yo(r,ei("0x60"))}}if(ei("0x33")==e[ei("0x3c")]){const t=e.commandParams[0][ei("0xf")];return t?{type:"format",content:Yo(r,ei("0x11"),t)}:{type:ei("0x69"),content:Yo(r,ei("0x1b"))}}}var n}))}}const oi=["document","ImageEditing","registerCustomCallback","commandName","locale","get","author","model","replaceImageSource","editor","format","subType","discard","handleReplaceImageCommand","commandParams","formatBlock","src","plugins","registerDescriptionCallback","TrackChangesEditing","accept","getSuggestions","selection","getSuggestionCallback","getContainedElement","enableCommand","has","markBlockFormat","_descriptionFactory","getAttribute","_suggestionFactory","handleSuggestionDescription","change"];var si,ri;si=oi,ri=295,function(t){for(;--t;)si.push(si.shift())}(++ri);const ii=function(t,e){return oi[t-=0]};class xi extends t.Plugin{afterInit(){if(!this[ii("0xb")][ii("0x13")][ii("0x1c")](ii("0x3")))return;const t=this.editor[ii("0x13")][ii("0x7")](ii("0x15"));t[ii("0x1b")](ii("0xa"),((t,e)=>this[ii("0xf")](t,e))),t._suggestionFactory.registerCustomCallback("formatBlock","replaceImageSource",ii("0x16"),t[ii("0x20")].getSuggestionCallback(ii("0x11"),null,ii("0xe"))),t._suggestionFactory[ii("0x4")]("formatBlock",ii("0xa"),ii("0xe"),t[ii("0x20")][ii("0x19")](ii("0x11"),null,ii("0x16"))),t[ii("0x1e")][ii("0x14")]((t=>this.handleSuggestionDescription(t)))}[ii("0xf")](t,e){const n=this[ii("0xb")].plugins[ii("0x7")](ii("0x15")),o=this[ii("0xb")][ii("0x9")][ii("0x2")][ii("0x18")].getSelectedElement();this[ii("0xb")][ii("0x9")][ii("0x1")]((()=>{let s=o[ii("0x1f")](ii("0x12"));const r=this[ii("0xb")][ii("0x13")][ii("0x7")]("Users").me;for(const t of n[ii("0x17")]({skipNotAttached:!0})){const e=t[ii("0x1a")]();if(ii("0xa")===t[ii("0xd")]&&e===o){t[ii("0x8")]!==r&&t[ii("0xe")](),s=t.data[ii("0x10")][0].source;break}}t(e),n[ii("0x1d")](o,{commandName:ii("0xa"),commandParams:[{source:s}]},[],"replaceImageSource")}))}[ii("0x0")](t){const{data:e}=t;if(e&&ii("0xa")===e[ii("0x5")]){const t="*Format:* replace image URL";return{type:ii("0xc"),content:Yo(this[ii("0xb")][ii("0x6")],t)}}}}const ai=["TrackChangesEditing","dataInsert","_trackChangesValueDuringImport","high","plugins","get","value","trackChanges","Users","commands","listenTo","_handleImportedData","forEach","_setSuggestionData","enableCommand","editor","bind","_trackChangesExecuted","importWord","lowest","execute","track_changes"];var ci,li;ci=ai,li=388,function(t){for(;--t;)ci.push(ci.shift())}(++li);const di=function(t,e){return ai[t-=0]};class ui extends t.Plugin{constructor(t){super(t),this._trackChangesValueDuringImport=!1,this[di("0x3")]=!1}afterInit(){const t=this[di("0x1")],e=t.commands[di("0xd")](di("0x4")),n=t[di("0x11")][di("0xd")](di("0xf"));e&&(e.on(di("0x6"),((t,[,e])=>{this[di("0xa")]=n.value,e.collaboration_features[di("0x7")]=!this[di("0xa")]}),{priority:di("0xb")}),this.listenTo(e,di("0x9"),this._handleImportedData[di("0x2")](this)),this[di("0x12")](e,"dataInsert",(()=>{this._trackChangesExecuted&&(n.execute(),this[di("0x3")]=!1)}),{priority:di("0x5")}),t[di("0xc")][di("0xd")](di("0x8"))[di("0x0")](di("0x4")))}[di("0x13")](t,e){const{suggestions:n}=e,o=this[di("0x1")][di("0x11")].get(di("0xf")),s=o[di("0xe")];this[di("0xa")]!==s&&(o[di("0x6")](),this[di("0x3")]=!0),n&&n[di("0x14")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[di("0x1")].plugins[di("0xd")](di("0x10")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:"importWord"}}};this[di("0x1")][di("0xc")][di("0xd")](di("0x8"))[di("0x15")](s)}))}}const gi=["indent","afterInit","enableCommand","commandName","model","from","getSelectedBlocks","_descriptionFactory","*Outdent:* %0","markBlockFormat","indentBlock","*Indent:* %0","document","format","registerDescriptionCallback","locale","get","editor","plugins","getItems","outdentBlock","has","getItemLabel","change","checkAttribute","filter","IndentEditing"];var mi,fi;mi=gi,fi=330,function(t){for(;--t;)mi.push(mi.shift())}(++fi);const hi=function(t,e){return gi[t-=0]};class pi extends t.Plugin{[hi("0x16")](){const t=this.editor,e=t.plugins[hi("0xa")]("TrackChangesEditing");t[hi("0xc")][hi("0xf")](hi("0x14"))&&(e[hi("0x17")](hi("0x15")),e.enableCommand("outdent"));const n=t[hi("0x9")];if(t[hi("0xc")][hi("0xf")]("IndentBlock")){for(const n of[hi("0x4"),hi("0xe")])e.enableCommand(n,(()=>{const o=Array[hi("0x1a")](this[hi("0xb")][hi("0x19")][hi("0x6")].selection[hi("0x0")]())[hi("0x13")]((t=>this[hi("0xb")][hi("0x19")].schema[hi("0x12")](t,"blockIndent")));t[hi("0x19")][hi("0x11")]((()=>{for(const t of o)e[hi("0x3")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:hi("0x4")})}))}));e._descriptionFactory[hi("0x8")]((t=>{const{data:o}=t;if(!o)return;if(hi("0x4")!=o[hi("0x18")]&&hi("0xe")!=o[hi("0x18")])return;const s=t[hi("0xd")]()[0],r=e[hi("0x1")][hi("0x10")](s);return hi("0x4")==o[hi("0x18")]?{type:hi("0x7"),content:Yo(n,hi("0x5"),r)}:hi("0xe")==o.commandName?{type:hi("0x7"),content:Yo(n,hi("0x2"),r)}:void 0}))}}}var bi,Ei,_i=["TrackChangesEditing","plugins","input","init","get","requires"];bi=_i,Ei=464,function(t){for(;--t;)bi.push(bi.shift())}(++Ei);var Ti=function(t,e){return _i[t-=0]};class Ci extends t.Plugin{static get[Ti("0x3")](){return[Js.Input]}[Ti("0x1")](){this.editor[Ti("0x5")][Ti("0x2")](Ti("0x4")).enableCommand(Ti("0x0"))}}const yi=["getRanges","enableCommand","link","commandName","locale","format","plugins","document","markInlineFormat","isCollapsed","get","*Set link:* %0","getAttribute","TrackChangesEditing","change","selection","commandParams","from","getFirstPosition","_descriptionFactory","unlink","linkHref","model","editor","LinkEditing"];var ki,Ai;ki=yi,Ai=406,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{afterInit(){const t=this.editor;if(!t[vi("0x0")].has(vi("0x12")))return;const e=t[vi("0x0")][vi("0x4")](vi("0x7"));e[vi("0x14")]("link",((n,o)=>{const s=t.model.document[vi("0x9")];let r=[];if(s[vi("0x3")]){if(!s.hasAttribute(vi("0xf")))return void n(o);{const e=(0,Js.findAttributeRange)(s[vi("0xc")](),vi("0xf"),s.getAttribute(vi("0xf")),t[vi("0x10")]);r=[e]}}else r=Array[vi("0xb")](s[vi("0x13")]());t[vi("0x10")][vi("0x8")]((()=>{for(const t of r)e[vi("0x2")](t,{commandName:"link",commandParams:[o]})}))})),e.enableCommand(vi("0xe"),(()=>{const n=this[vi("0x11")][vi("0x10")],o=n[vi("0x1")].selection;n[vi("0x8")]((()=>{let n=[];n=o.isCollapsed?[(0,Js.findAttributeRange)(o[vi("0xc")](),vi("0xf"),o[vi("0x6")]("linkHref"),t[vi("0x10")])]:Es(vi("0xf"),o.getFirstRange(),t[vi("0x10")]);for(const t of n)e[vi("0x2")](t,{commandName:vi("0xe"),commandParams:[]})}))})),e[vi("0xd")].registerDescriptionCallback((e=>{const{data:n}=e,o=t[vi("0x17")];if(n){if(vi("0x15")==n[vi("0x16")]){const t=n[vi("0xa")][0];return{type:vi("0x18"),content:Yo(o,vi("0x5"),'"'+t+'"')}}return vi("0xe")==n[vi("0x16")]?{type:"format",content:Yo(o,"*Remove link*")}:void 0}}))}}const Si=["name","numberedList","before","todoList","previousSibling","add","slice","isObject","listIndent","ELEMENT_NUMBERED_LIST","TrackChangesEditing","document","filter","change","indentList","end","ELEMENT_TODO_LIST","commandName","value","selection","getSelectedBlocks","has","plugins","listType","replace","checkTodoList","enableCommand","bulletedList","ELEMENT_LIST_ITEM","checkChild","parent","*Check item*","nextSibling","element","bulleted","model","editor","format","List","get","_selectedElements","_descriptionFactory","push","TodoListEditing","afterInit","length","todoListChecked","findIndex","forceValue","paragraph","outdentList","from","commands","registerElementLabel","createRange","ListEditing","commandParams","numbered","*Indent:* %0","execute","registerDescriptionCallback","createPositionAt","*Outdent:* %0","getAttribute","listItem","markBlockFormat","*Change to:* %0"];var Ii,Li;Ii=Si,Li=428,function(t){for(;--t;)Ii.push(Ii.shift())}(++Li);const Ni=function(t,e){return Si[t-=0]};class wi extends t.Plugin{[Ni("0x12")](){const t=this[Ni("0xa")],e=t.locale;if(!t[Ni("0x3f")][Ni("0x3e")](Ni("0x1d")))return;const n=t[Ni("0x3f")][Ni("0xd")](Ni("0x33")),o=t[Ni("0x3f")][Ni("0x3e")](Ni("0x11"));function s(e){return()=>{const o=t[Ni("0x9")][Ni("0x34")][Ni("0x3c")],s=t[Ni("0x1a")][Ni("0xd")](e);if(s[Ni("0x3b")])return void t[Ni("0x21")](Ni("0x17"),{});const r=e[Ni("0x2f")](0,-4),i=function(t,e,n){let o=Array.from(t).filter((t=>{return e=t,(o=n)[Ni("0x3")](e[Ni("0x4")],Ni("0x26"))&&!o[Ni("0x30")](e);var e,o}));o=o.filter((t=>!t.is("element","listItem")||t.getAttribute(Ni("0x40"))!=e));const s=new Set;for(const t of o)t.is(Ni("0x7"),Ni("0x26"))?s[Ni("0x2e")](Mi(t)):s[Ni("0x2e")](t);return Array[Ni("0x19")](s)}(o[Ni("0x3d")](),r,t[Ni("0x9")].schema);t[Ni("0x9")][Ni("0x36")]((()=>{for(const t of i)n.markBlockFormat(t,{commandName:e,commandParams:[{forceValue:!s.value}],formatGroupId:"blockName"},Oi(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[Ni("0x19")](t);const n=e[Ni("0x15")]((t=>"listItem"!=t[Ni("0x29")]));return n>-1&&(e=e[Ni("0x2f")](0,n)),e}(t[Ni("0x9")].document[Ni("0x3c")][Ni("0x3d")]()),s=t[Ni("0x9")][Ni("0x1c")](t[Ni("0x9")][Ni("0x23")](o[0],Ni("0x2b")),t.model[Ni("0x23")](o[o[Ni("0x13")]-1],Ni("0x38")));t[Ni("0x9")][Ni("0x36")]((()=>{n[Ni("0x27")](s,{commandName:e,commandParams:[],formatGroupId:Ni("0x31")},function(t){const e=new Set;for(const n of t){let t=n[Ni("0x6")];for(;t&&t.getAttribute(Ni("0x31"))>n[Ni("0x25")](Ni("0x31"));)e[Ni("0x2e")](t),t=t[Ni("0x6")]}return Array.from(e)}(o))}))}}n.enableCommand("numberedList",s(Ni("0x2a"))),n[Ni("0x0")]("bulletedList",s(Ni("0x1"))),o&&n[Ni("0x0")]("todoList",s(Ni("0x2c"))),n[Ni("0x0")](Ni("0x37"),r(Ni("0x37"))),n.enableCommand(Ni("0x18"),r("outdentList")),o&&n.enableCommand(Ni("0x42"),(()=>{const e=t.commands[Ni("0xd")](Ni("0x42")),o=Array[Ni("0x19")](e[Ni("0xe")]);o[Ni("0x35")]((t=>t[Ni("0x25")](Ni("0x14"))!=e.value)),t[Ni("0x9")][Ni("0x36")]((()=>{for(const t of o)n[Ni("0x27")](t,{commandName:Ni("0x42"),commandParams:[{forceValue:!e[Ni("0x3b")]}]})}))})),n._descriptionFactory[Ni("0x1b")](Ni("0x26"),(t=>Yo(e,Ni("0x2"),t))),n[Ni("0xf")][Ni("0x22")]((t=>{const{data:n}=t;if(n){if(Ni("0x2a")==n[Ni("0x3a")]||Ni("0x1")==n[Ni("0x3a")]||Ni("0x2c")==n.commandName)switch(n[Ni("0x3a")][Ni("0x41")](Ni("0xc"),"")){case Ni("0x8"):return o(Yo(e,"ELEMENT_BULLETED_LIST"));case Ni("0x1f"):return o(Yo(e,Ni("0x32")));case"todo":return o(Yo(e,Ni("0x39")))}if("indentList"==n[Ni("0x3a")])return{type:"format",content:Yo(e,Ni("0x20"),Yo(e,"ELEMENT_LIST_ITEM"))};if(Ni("0x18")==n[Ni("0x3a")])return{type:Ni("0xb"),content:Yo(e,Ni("0x24"),Yo(e,Ni("0x2")))};if("checkTodoList"==n[Ni("0x3a")])return n[Ni("0x1e")][0][Ni("0x16")]?{type:"format",content:Yo(e,Ni("0x5"))}:{type:Ni("0xb"),content:Yo(e,"*Uncheck item*")}}function o(t){return{type:Ni("0xb"),content:Yo(e,Ni("0x28"),t)}}}))}}function Mi(t){const e=t[Ni("0x25")](Ni("0x31"));if(0==e)return t;let n=t;for(;t[Ni("0x2d")]&&t.previousSibling.is(Ni("0x7"),"listItem");){const o=t[Ni("0x2d")][Ni("0x25")](Ni("0x31"));if(o==e)n=t[Ni("0x2d")];else if(o<e)break;t=t[Ni("0x2d")]}return n}function Oi(t){const e=[];if(t.is(Ni("0x7"),Ni("0x26"))&&t[Ni("0x25")](Ni("0x31"))>0){let n=t[Ni("0x6")];for(;n&&"listItem"==n[Ni("0x29")]&&n.getAttribute(Ni("0x31"))==t.getAttribute("listIndent");)e[Ni("0x10")](n),n=n.nextSibling}return e}const Fi=["listReversed","push","commandParams","handleListReversedCommand","getLastPosition","length","markMultiRangeBlockFormat","toUpperCase","reversed","numbered","getAttribute","document","forward","startIndex","list.properties","format","createRange","createPositionAt","has","listStart","commandName","element","*Change to:* %0","backward","selection","model","_descriptionFactory","filter","handleDescriptions","map","getSiblingNodes","editor","_getSuggestionBlocksForListStyle","_LIST_","registerDescriptionCallback","handleListStartCommand","getSelectedBlocks","replace","change","listStyle","config","handleListStyleCommand","from","*Format:* set order to reversed","bind","plugins","TrackChangesEditing","type","before","listType","flat","*Format:* set start index to %0","get","_getTranslationKeyForListStyle","ListUtils","listItem","getFirstPosition","_getSuggestionBlocks"];var Pi,Di;Pi=Fi,Di=166,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{afterInit(){if(!this[Bi("0x27")][Bi("0x35")][Bi("0x1a")]("ListPropertiesEditing"))return;const t=this[Bi("0x27")][Bi("0x30")][Bi("0x2")](Bi("0x16")),e=this[Bi("0x27")][Bi("0x35")].get("TrackChangesEditing");t.styles&&e.enableCommand(Bi("0x2f"),this[Bi("0x31")][Bi("0x34")](this)),t[Bi("0x10")]&&e.enableCommand(Bi("0x8"),this.handleListReversedCommand[Bi("0x34")](this)),t.startIndex&&e.enableCommand(Bi("0x1b"),this[Bi("0x2b")][Bi("0x34")](this)),e[Bi("0x22")][Bi("0x2a")](this.handleDescriptions[Bi("0x34")](this))}[Bi("0x31")](t,e={}){const n=this.editor[Bi("0x35")][Bi("0x2")](Bi("0x36")),o=this[Bi("0x28")]();this.editor.model[Bi("0x2e")]((()=>{n[Bi("0xe")](o,{commandName:"listStyle",commandParams:[{type:e[Bi("0x37")]}],formatGroupId:Bi("0x2f")})}))}[Bi("0xb")](t,e={}){const n=this[Bi("0x27")][Bi("0x35")][Bi("0x2")]("TrackChangesEditing"),o=this[Bi("0x7")]((t=>t.is("element",Bi("0x5"))&&Bi("0x11")===t[Bi("0x12")](Bi("0x39"))));if(o.length<1)return;const s=o.map((t=>this.editor[Bi("0x21")][Bi("0x18")](this.editor[Bi("0x21")][Bi("0x19")](t,Bi("0x38")),this[Bi("0x27")].model[Bi("0x19")](t,0))));this[Bi("0x27")].model[Bi("0x2e")]((()=>{n[Bi("0xe")](s,{commandName:Bi("0x8"),commandParams:[{reversed:e.reversed}],formatGroupId:Bi("0x8")})}))}[Bi("0x2b")](t,e={}){const n=this[Bi("0x27")].plugins[Bi("0x2")](Bi("0x36")),o=this[Bi("0x7")]((t=>t.is(Bi("0x1d"),"listItem")&&Bi("0x11")===t[Bi("0x12")](Bi("0x39"))));if(o[Bi("0xd")]<1)return;const s=o[Bi("0x25")]((t=>this[Bi("0x27")][Bi("0x21")][Bi("0x18")](this[Bi("0x27")][Bi("0x21")][Bi("0x19")](t,Bi("0x38")),this[Bi("0x27")][Bi("0x21")][Bi("0x19")](t,0))));this.editor[Bi("0x21")][Bi("0x2e")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:"listStart",commandParams:[{startIndex:e[Bi("0x15")]}],formatGroupId:Bi("0x1b")})}))}[Bi("0x24")](t){const e=this[Bi("0x27")].locale,{data:n}=t;if(!n)return;let o,s;switch(n[Bi("0x1c")]){case Bi("0x2f"):o=Bi("0x1e"),s={type:Bi("0x17"),content:Yo(e,o,Yo(e,this[Bi("0x3")](n[Bi("0xa")][0].type)))};break;case Bi("0x8"):o=n[Bi("0xa")][0].reversed?Bi("0x33"):"*Format:* set order to regular",s={type:Bi("0x17"),content:Yo(e,o)};break;case"listStart":o=Bi("0x1"),s={type:Bi("0x17"),content:Yo(e,o,n[Bi("0xa")][0][Bi("0x15")])}}return s}_getSuggestionBlocksForListStyle(){var t,e,n,o;const s=this[Bi("0x27")].plugins[Bi("0x2")](Bi("0x4"));let r=Array[Bi("0x32")](this[Bi("0x27")][Bi("0x21")][Bi("0x13")][Bi("0x20")][Bi("0x2c")]());return(null===(t=r[0])||void 0===t?void 0:t.is("element","listItem"))&&r.unshift(...s[Bi("0x26")](this[Bi("0x27")][Bi("0x21")].document[Bi("0x20")].getFirstPosition(),Bi("0x1f"))),(null===(e=r[r[Bi("0xd")]-1])||void 0===e?void 0:e.is(Bi("0x1d"),Bi("0x5")))&&r[Bi("0x9")](...s[Bi("0x26")](this[Bi("0x27")][Bi("0x21")][Bi("0x13")][Bi("0x20")][Bi("0xc")](),Bi("0x14"))),r=[...new Set(r)],(null===(o=null===(n=this[Bi("0x27")][Bi("0x21")][Bi("0x13")][Bi("0x20")][Bi("0x6")]())||void 0===n?void 0:n.parent)||void 0===o?void 0:o.is(Bi("0x1d"),"listItem"))&&(r=r[Bi("0x23")]((t=>t.is(Bi("0x1d"),Bi("0x5"))))),r}_getSuggestionBlocks(t){const e=this[Bi("0x27")].plugins[Bi("0x2")](Bi("0x4"));let n=Array[Bi("0x32")](this[Bi("0x27")].model[Bi("0x13")][Bi("0x20")].getSelectedBlocks()).filter(t)[Bi("0x25")]((t=>{const n=this[Bi("0x27")][Bi("0x21")][Bi("0x19")](t,0);return[...e.getSiblingNodes(n,Bi("0x1f")),...e[Bi("0x26")](n,"forward")]}))[Bi("0x0")]();return n=[...new Set(n)],n}_getTranslationKeyForListStyle(t){return"ELEMENT_"+this[Bi("0x27")][Bi("0x35")][Bi("0x2")](Bi("0x4")).getListTypeFromListStyleType(t).toUpperCase()+Bi("0x29")+t[Bi("0xf")]()[Bi("0x2d")](/-/g,"_")}}const Ui=["data","high","locale","_descriptionFactory","stop","plugins","mediaEmbed","showSuggestionHighlights","afterInit","TrackChangesEditing","get","ELEMENT_MEDIA","downcastDispatcher","for","options","conversion","media","MediaEmbedEditing","has","div","editor","dataDowncast","attribute:url:media"];var Gi,Hi;Gi=Ui,Hi=167,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{[zi("0x2")](){const t=this[zi("0xe")];if(!t[zi("0x16")][zi("0xc")](zi("0xb")))return;const e=t[zi("0x16")][zi("0x4")](zi("0x3")),n=t[zi("0x13")];e.enableCommand(zi("0x0")),e[zi("0x14")].registerElementLabel(zi("0xa"),(t=>Yo(n,zi("0x5"),t))),t[zi("0x9")][zi("0x7")](zi("0xf")).elementToElement({model:zi("0xa"),view:(t,{writer:e,options:n})=>{if(n[zi("0x1")])return e.createEmptyElement(zi("0xd"))},converterPriority:zi("0x12")}),t[zi("0x11")][zi("0x6")].on(zi("0x10"),((t,e,n)=>{n[zi("0x8")][zi("0x1")]&&t[zi("0x15")]()}),{priority:"high"})}}const Vi=["editor","has","enableCommand","TrackChangesEditing","afterInit","plugins","mention"];var Ki,qi;Ki=Vi,qi=174,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{[Xi("0x5")](){const t=this[Xi("0x1")];t.plugins[Xi("0x2")]("MentionEditing")&&t[Xi("0x6")].get(Xi("0x4"))[Xi("0x3")](Xi("0x0"))}}const Ji=["ELEMENT_PAGE_BREAK","_descriptionFactory","afterInit","PageBreakEditing","locale","enableCommand","plugins","TrackChangesEditing","get","pageBreak","registerElementLabel"];var Qi,Zi;Qi=Ji,Zi=315,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{[Yi("0x6")](){const t=this.editor;if(!t[Yi("0xa")].has(Yi("0x7")))return;t[Yi("0xa")].get(Yi("0x0"))[Yi("0x9")](Yi("0x2"));const e=t.plugins[Yi("0x1")](Yi("0x0")),n=t[Yi("0x8")];e[Yi("0x5")][Yi("0x3")](Yi("0x2"),(t=>Yo(n,Yi("0x4"),t)))}}const ex=["data","isLimit","model","isBlock","addClass","ELEMENT_PARAGRAPH","format","insertion","getFirstRange","name","enableCommand","commandName","downcastDispatcher","parent","$text","checkChild","start","locale","registerDescriptionCallback","change","TrackChangesEditing","ck-suggestion-marker-split","mapper","end","blockName","selection","*Insert:* %0","showSuggestionHighlights","options","Paragraph","*Change to:* %0","writer","span","markerRange","afterInit","markerName","registerElementLabel","paragraph","plugins","insertParagraph","bindElementToMarker","schema","isTouching","document","get","addMarker:suggestion:insertion","_descriptionFactory","editor","nodeAfter","toViewPosition","activeMarkers","includes","getSelectedBlocks","markBlockFormat","highest"];var nx,ox;nx=ex,ox=347,function(t){for(;--t;)nx.push(nx.shift())}(++ox);const sx=function(t,e){return ex[t-=0]};class rx extends t.Plugin{[sx("0x11")](){const t=this[sx("0x1e")];if(!t[sx("0x15")].has(sx("0xc")))return;const e=t[sx("0x0")],n=t[sx("0x15")][sx("0x1b")]("TrackChangesEditing");n._descriptionFactory[sx("0x13")](sx("0x14"),(t=>Yo(e,sx("0x2b"),t))),n.enableCommand(sx("0x14"),((e,o={})=>{const s=t[sx("0x28")][sx("0x1a")],r=o[sx("0x8")]||s[sx("0x8")],i=Array.from(r[sx("0x23")]()).filter((t=>{return e=t,(n=this.editor[sx("0x28")].schema)[sx("0x35")](e[sx("0x33")],sx("0x14"))&&!n.isObject(e)&&sx("0x14")!=e[sx("0x2f")];var e,n}));t[sx("0x28")][sx("0x2")]((()=>{for(const t of i)n[sx("0x24")](t,{commandName:sx("0x14"),commandParams:[],formatGroupId:sx("0x7")},_s(t))}))})),n[sx("0x1d")][sx("0x1")]((t=>{const{data:n}=t;if(n&&"paragraph"==n[sx("0x31")])return{type:sx("0x2c"),content:Yo(e,sx("0xd"),Yo(e,sx("0x2b")))}})),n[sx("0x30")](sx("0x16")),t.editing[sx("0x32")].on(sx("0x1c"),ix(t),{priority:sx("0x25")}),t[sx("0x26")][sx("0x32")].on(sx("0x1c"),((e,n,o)=>{o[sx("0xb")][sx("0xa")]&&ix(t,{showActiveMarker:!1})(e,n,o)}),{priority:sx("0x25")});const o=n[sx("0x1d")];o[sx("0x1")]((n=>{if(sx("0x2d")!==n.type)return;const{start:s,end:r}=n[sx("0x2e")]();if(!s[sx("0x19")](r)||!s[sx("0x1f")])return;const i=t[sx("0x28")][sx("0x18")],x=s[sx("0x1f")];return i[sx("0x29")](x)&&!i[sx("0x27")](x)&&i[sx("0x35")](x,sx("0x34"))?{type:sx("0x2d"),content:Yo(e,sx("0x9"),o.getItemLabel(x,1))}:void 0}))}}function ix(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[sx("0x15")][sx("0x1b")](sx("0x3")),i=o[sx("0x10")][sx("0x36")],x=o[sx("0x10")][sx("0x6")],a=t[sx("0x28")][sx("0x18")];if(!i[sx("0x19")](x)||!i[sx("0x1f")])return;const c=i[sx("0x1f")];if(a[sx("0x29")](c)&&!a[sx("0x27")](c)&&a[sx("0x35")](c,"$text")){if(!s.consumable.consume(o.markerRange,n.name))return;const t=s[sx("0xe")].createUIElement(sx("0xf"),{class:sx("0x4")}),i=s.mapper[sx("0x20")](x);e&&r[sx("0x21")][sx("0x22")](o[sx("0x12")])&&s[sx("0xe")][sx("0x2a")]("ck-suggestion-marker--active",t),s.writer.insert(i,t),s[sx("0x5")][sx("0x17")](t,o[sx("0x12")])}}}const xx=["RemoveFormatEditing","getRanges","markInlineFormat","locale","afterInit","removeFormat","change","model","isCollapsed","document","from","_descriptionFactory","isFormatting","get","createRangeOn","getAttributes","commandName","has","registerDescriptionCallback","getAttributeProperties","format"];var ax,cx;ax=xx,cx=301,function(t){for(;--t;)ax.push(ax.shift())}(++cx);const lx=function(t,e){return xx[t-=0]};class dx extends t.Plugin{[lx("0x12")](){const t=this.editor;if(!t.plugins[lx("0xa")](lx("0xe")))return;const e=t.plugins[lx("0x6")]("TrackChangesEditing");e.enableCommand(lx("0x13"),(n=>{const o=t[lx("0x0")][lx("0x2")].selection;o[lx("0x1")]?n():t[lx("0x0")][lx("0x14")]((()=>{const n=Array[lx("0x3")](o[lx("0xf")]());for(const o of n)for(const n of o.getItems())ux(n,t[lx("0x0")].schema)&&e[lx("0x10")](t[lx("0x0")][lx("0x7")](n),{commandName:lx("0x13"),commandParams:[]})}))})),e[lx("0x4")][lx("0xb")]((e=>{const{data:n}=e;if(n&&lx("0x13")==n[lx("0x9")])return{type:lx("0xd"),content:Yo(t[lx("0x11")],"*Remove all formatting*")}}))}}function ux(t,e){for(const[n]of t[lx("0x8")]()){const t=e[lx("0xc")](n);if(t&&t[lx("0x5")])return!0}return!1}const gx=["discardSuggestion","enableCommand","plugins","afterInit","RestrictedEditingModeEditing","editor","acceptAllSuggestions","goToNextRestrictedEditingException","discardAllSuggestions","acceptSelectedSuggestions","TrackChangesEditing","get"];var mx,fx;mx=gx,fx=297,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{[hx("0x6")](){const t=this[hx("0x8")];if(!t[hx("0x5")].has(hx("0x7")))return;const e=t.plugins[hx("0x2")](hx("0x1"));e[hx("0x4")]("goToPreviousRestrictedEditingException"),e[hx("0x4")](hx("0xa"));const n=t.plugins[hx("0x2")](hx("0x7"));n[hx("0x4")]("trackChanges"),n[hx("0x4")]("acceptSuggestion"),n.enableCommand(hx("0x3")),n.enableCommand(hx("0x9")),n.enableCommand(hx("0xb")),n.enableCommand(hx("0x0")),n[hx("0x4")]("discardSelectedSuggestions")}}const bx=["test","markerRange","registerElementLabel","writer","editor","locale","_descriptionFactory","createPositionBefore","markerName","editing","showSuggestionHighlights","data","createUIElement","init","shiftEnter","model","includes","addMarker:suggestion:deletion","deletion","merge","addMarker:suggestion:insertion","getItems","TrackChangesEditing","plugins","softBreak","high","insert","ck-suggestion-marker-","get","span","element","toViewPosition","addMarker:suggestion","addClass","mapper","split"];var Ex,_x;Ex=bx,_x=310,function(t){for(;--t;)Ex.push(Ex.shift())}(++_x);const Tx=function(t,e){return bx[t-=0]};class Cx extends t.Plugin{static get requires(){return[xr.ShiftEnter]}[Tx("0x1b")](){const t=this[Tx("0x12")],e=t[Tx("0x1")][Tx("0x6")](Tx("0x0"));e.enableCommand(Tx("0x1c")),t.editing.downcastDispatcher.on(Tx("0x22"),yx(t),{priority:Tx("0x3")}),t[Tx("0x17")].downcastDispatcher.on(Tx("0x1f"),yx(t),{priority:Tx("0x3")}),t[Tx("0x19")].downcastDispatcher.on(Tx("0xa"),((e,n,o)=>{o.options[Tx("0x18")]&&yx(t,{showActiveMarker:!1})(e,n,o)})),e[Tx("0x14")][Tx("0x10")](Tx("0x2"),(e=>Yo(t[Tx("0x13")],"ELEMENT_LINE_BREAK",e)))}}function yx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t.plugins[Tx("0x6")](Tx("0x0"));if(!s.consumable[Tx("0xe")](o[Tx("0xf")],n.name))return;const i=t[Tx("0x1d")];for(const t of o[Tx("0xf")][Tx("0x23")]()){if(!t.is(Tx("0x8"),Tx("0x2")))continue;const n=Tx("0x20")==o.markerName.split(":")[1]?Tx("0x21"):Tx("0xd"),x=s[Tx("0x11")][Tx("0x1a")](Tx("0x7"),{class:Tx("0x5")+n}),a=s[Tx("0xc")][Tx("0x9")](i[Tx("0x15")](t));e&&r.activeMarkers[Tx("0x1e")](o.markerName)&&s[Tx("0x11")][Tx("0xb")]("ck-suggestion-marker--active",x),s[Tx("0x11")][Tx("0x4")](a,x),s[Tx("0xc")].bindElementToMarker(x,o[Tx("0x16")])}}}const kx=["document","afterInit","from","enableCommand","registerDescriptionCallback","value","commandName","restrictedEditingException","selection","TrackChangesEditing","forceValue","FORMAT_RESTRICTED_DISABLED","plugins","commandParams","markInlineFormat","has","StandardEditingModeEditing","commands","_descriptionFactory","isCollapsed","FORMAT_RESTRICTED_ENABLED","editor","format"];var Ax,vx;Ax=kx,vx=177,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Sx extends t.Plugin{[Rx("0x8")](){const t=this[Rx("0x5")],e=t.model,n=t.locale;if(!t[Rx("0x13")][Rx("0x16")](Rx("0x0")))return;const o=t[Rx("0x13")].get(Rx("0x10")),s=Rx("0xe"),r=t[Rx("0x1")].get(s);o[Rx("0xa")](s,((t,n={})=>{const i=e[Rx("0x7")][Rx("0xf")];if(i[Rx("0x3")])return void t(n);const x=void 0!==n[Rx("0x11")]?n[Rx("0x11")]:!r[Rx("0xc")];e.change((()=>{const t=Array[Rx("0x9")](i.getRanges());for(const n of t){const t=x?[n]:Es(s,n,e);for(const e of t)o[Rx("0x15")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[Rx("0x2")][Rx("0xb")]((t=>{const{data:e}=t;if(e&&e[Rx("0xd")]==s)return e[Rx("0x14")][0][Rx("0x11")]?{type:Rx("0x6"),content:Yo(n,Rx("0x4"))}:{type:Rx("0x6"),content:Yo(n,Rx("0x12"))}}))}}const Ix=["add","editor","toLowerCase","modelElements","element","normalizeConfig","get","isCollapsed","styleName","plugins","includes","find","_descriptionFactory","commandName","every","commands","DataSchema","model","isBlock","createRangeOn","getAttribute","*Remove format:* %0","document","inline","forceValue","getRanges","markBlockFormat","getItems","push","commandParams","change","TrackChangesEditing","has","format","enableCommand","afterInit","value","_getStyleDefinition","config","_getRangesWithClasses","from","style","block","name","Style","markInlineFormat"];var Lx,Nx;Lx=Ix,Nx=328,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const wx=function(t,e){return Ix[t-=0]};class Mx extends t.Plugin{[wx("0x1d")](){const t=this[wx("0x29")];if(!t[wx("0x3")][wx("0x1a")](wx("0x26")))return;const e=t[wx("0x9")][wx("0x0")](wx("0x23")),n=t[wx("0x3")][wx("0x0")](wx("0x19")),o=t.locale,s=t[wx("0x3")].get(wx("0xa")),r=t[wx("0x3")].get("StyleUtils")[wx("0x2d")](s,t[wx("0x20")][wx("0x0")]("style.definitions"));n[wx("0x1c")](wx("0x23"),((o,{styleName:i})=>{const x=t.model[wx("0x10")].selection,a=this[wx("0x1f")](i,r);if(!a)return;if(!e.enabledStyles[wx("0x4")](i))return;if(x[wx("0x1")]&&!a[wx("0xc")])return void o({styleName:i});const c=!e[wx("0x1e")][wx("0x4")](a[wx("0x25")]);if(a[wx("0xc")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o.getAncestors({includeSelf:!0,parentFirst:!0});for(const o of t)if(e.includes(o[wx("0x25")])){n[wx("0x28")](o);break}}return n}(x.getSelectedBlocks(),a[wx("0x2b")]);t[wx("0xb")][wx("0x18")]((()=>{for(const t of e)n[wx("0x14")](t,{commandName:wx("0x23"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:"style:"+i})}))}else{let e=Array.from(x[wx("0x13")]());if(!c){const n=Array[wx("0x22")](s.getDefinitionsForView(a[wx("0x2c")],!1))[0].model,o=[];for(const s of e){const e=this[wx("0x21")](t.model,s,a.classes,n);o[wx("0x16")](...e)}e=o}t[wx("0xb")][wx("0x18")]((()=>{for(const t of e)n[wx("0x27")](t,{commandName:"style",commandParams:[{styleName:i,forceValue:c}]})}))}})),n[wx("0x6")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&wx("0x23")===e[wx("0x7")])return e.commandParams[0][wx("0x12")]?{type:"format",content:Yo(o,"*Format:* %0",e[wx("0x17")][0][wx("0x2")][wx("0x2a")]())}:{type:wx("0x1b"),content:Yo(o,wx("0xf"),e[wx("0x17")][0][wx("0x2")].toLowerCase())}}))}[wx("0x1f")](t,e){let n=e[wx("0x24")][wx("0x5")]((e=>e[wx("0x25")]===t));return n||(n=e[wx("0x11")].find((e=>e[wx("0x25")]===t))),n}_getRangesWithClasses(t,e,n,o){const s=[];for(const r of e[wx("0x15")]()){const e=r[wx("0xe")](o);e&&n[wx("0x8")]((t=>e.classes[wx("0x4")](t)))&&s[wx("0x16")](t[wx("0xd")](r))}return s}}const Ox=["createRangeIn","isInContent","name","push","removeTableRow","isEqual","getRanges","createRangeOn","options","createPositionAt","ELEMENT_TABLE_ROW_WITH_TEXT","discard","substr","refresh","locale","selectTableRow","span","TableEditing","nodeBefore","getChildren","markMultiRangeInsertion","includes","minRow","_tableSuggestions","isIntersectingWithRange","model","getSelectionAffectedTableCells","order","isArray","editor","batch","filter","change:data","above","tablePaste","getFirstRange","nodeAfter","hasAttribute","registerCustomCallback","end","colspan","insertion","values","data","change","getCellLocation","insert","showSuggestionHighlights","last","document","detach","insertTableColumnRight","startsWith","registerElementLabel","MAX_SAFE_INTEGER","tableRow","element","selection","addMarker:suggestion","add","enableCommand","setSelection","maxColumn","_getCoordsForCells","root","enqueueChange","fromRange","ELEMENT_TABLE_ROW","rowspan","length","*Insert:* %0","_descriptionFactory","position","createTableWalker","$graveyard","accept","tableColumn","_suggestionFactory","left","_tablePostFixingSubtypes","rootName","max","getRowIndexes","toLowerCase","ELEMENT_TABLE_COLUMN_WITH_TEXT","execute","ELEMENT_TABLE_WITH_TEXT","from","TrackChangesEditing","insertTableRowAbove","classes","map","get","addClass","some","removeClass","_acceptFormatSuggestionCallbackFactory","tableCell","removeTableColumn","getAttribute","getChangedMarkers","item","type","getItems","isTouching","*Remove:* %0","addRange","table","highest","deletion","forceValue","cell","findAncestor","min","_setupColumnsRowsFixing","subType","join","getSuggestion","downcastDispatcher","has","$textProxy","registerPostFixer","ELEMENT_TABLE_COLUMN","insertTable","MIN_SAFE_INTEGER","oldRange","commands","insertTableColumnLeft","TableUtils","writer","_getSuggestionCoords","plugins","start","first","maxRow"];var Fx,Px;Fx=Ox,Px=263,function(t){for(;--t;)Fx.push(Fx.shift())}(++Px);const Dx=function(t,e){return Ox[t-=0]};class Bx extends t.Plugin{constructor(t){super(t),this[Dx("0x56")]=[Dx("0x3e"),Dx("0x53")],this._tableSuggestions=new Set}afterInit(){const t=this[Dx("0x24")],e=t.model[Dx("0x38")][Dx("0x40")];if(!t.plugins[Dx("0x7e")](Dx("0x18")))return;const n=t[Dx("0x15")],o=t.plugins[Dx("0x63")](Dx("0x5f")),s=t[Dx("0x3")][Dx("0x63")]("TableUtils");o[Dx("0x4e")][Dx("0x3c")](Dx("0x72"),(t=>Yo(n,"ELEMENT_TABLE",t))),this._setupColumnsRowsFixing(),o[Dx("0x43")](Dx("0x82")),o[Dx("0x43")](Dx("0x16")),o.enableCommand("selectTableColumn");for(const n of[Dx("0x60"),"insertTableRowBelow"]){const r=t[Dx("0x85")][Dx("0x63")](n);o[Dx("0x43")](n,(n=>{t[Dx("0x20")][Dx("0x33")]((t=>{n();const i=Dx("0x28")===r.order,x=s[Dx("0x21")](e),a=s.getRowIndexes(x),c=i?a.first-1:a[Dx("0x37")]+1,l=x[0][Dx("0x77")]("table"),d=s[Dx("0x50")](l,{startRow:c,endRow:c}),u=Array[Dx("0x5e")](d)[Dx("0x62")]((e=>t[Dx("0xe")](e[Dx("0x76")])));o[Dx("0x1b")](u,Dx("0x3e"))}))}))}for(const n of[Dx("0x86"),Dx("0x3a")]){const r=t[Dx("0x85")].get(n);o[Dx("0x43")](n,(n=>{t[Dx("0x20")][Dx("0x33")]((t=>{n();const i=Dx("0x55")===r[Dx("0x22")],x=s[Dx("0x21")](e),a=s.getColumnIndexes(x),c=i?a[Dx("0x5")]-1:a[Dx("0x37")]+1,l=x[0][Dx("0x77")]("table"),d=s[Dx("0x50")](l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[Dx("0x5e")](d)[Dx("0x62")]((e=>t[Dx("0xe")](e[Dx("0x76")])));o[Dx("0x1b")](u,Dx("0x53"))}))}))}for(const n of["removeTableRow",Dx("0x69")]){const r=n.substr(11),i=r[Dx("0x5a")](),x=i[Dx("0x13")](0,3)+Dx("0x17"),a=Dx("0x72")+r,c=Dx("0x78")+r,l=Dx("0x58")+r;o[Dx("0x43")](n,(()=>{t.model[Dx("0x33")]((t=>{const r=s.getSelectionAffectedTableCells(e),d=r[0][Dx("0x77")](Dx("0x72"));let u;if("removeTableRow"==n){const t=s[Dx("0x59")](r);u={startRow:t.first,endRow:t.last,includeAllSlots:!0}}else{const t=s.getColumnIndexes(r);u={startColumn:t[Dx("0x5")],endColumn:t[Dx("0x37")],includeAllSlots:!0}}const g=s.createTableWalker(d,u),m=Array.from(g)[Dx("0x62")]((({cell:t})=>t)),f=jx(m[Dx("0x26")]((t=>t[Dx("0x2c")](x)))),h=jx(m[Dx("0x26")]((t=>!t.hasAttribute(x))))[Dx("0x62")]((e=>t.createRangeOn(e))),p=o.markMultiRangeDeletion(h,a);if(p&&(Dx("0x3e")==p[Dx("0x7a")]||Dx("0x53")==p[Dx("0x7a")])){const e=this._getSuggestionCoords(p);for(const n of f){const o=t.createRangeOn(n),r=s[Dx("0x34")](n),a=n[Dx("0x6a")](x)-1,d=e[c],u=e[l];d<=r[i]&&r[i]+a<=u&&p[Dx("0x71")](o)}}}))}))}function r(n){const o=Array[Dx("0x5e")](e[Dx("0xd")]()).map((t=>i.LiveRange.fromRange(t)));t[Dx("0x20")][Dx("0x33")]((e=>{const s=e[Dx("0x25")];n=n[Dx("0x26")]((t=>Dx("0x51")!=t[Dx("0x47")][Dx("0x57")])),e[Dx("0x44")](n),t[Dx("0x85")][Dx("0x63")](Dx("0xb")).refresh(),t[Dx("0x5c")](Dx("0xb"),{forceDefaultExecution:!0}),t[Dx("0x20")][Dx("0x48")]((()=>{t[Dx("0x20")][Dx("0x48")](s,(t=>{const e=o[Dx("0x26")]((t=>Dx("0x51")!=t[Dx("0x47")][Dx("0x57")]));e[Dx("0x4c")]>0&&t[Dx("0x44")](e);for(const t of o)t[Dx("0x39")]()}))}))}))}function a(n){t.model[Dx("0x33")]((o=>{const s=Array[Dx("0x5e")](e[Dx("0xd")]())[Dx("0x62")]((t=>i.LiveRange[Dx("0x49")](t))),r=[];for(const t of n)for(const e of t[Dx("0x6e")]({shallow:!0}))r.push(e);for(const e of r)Dx("0x51")!=e.root.rootName&&(o.setSelection(o[Dx("0x10")](e,0)),t[Dx("0x85")][Dx("0x63")](Dx("0x69"))[Dx("0x14")](),t[Dx("0x5c")](Dx("0x69"),{forceDefaultExecution:!0}));const x=s[Dx("0x26")]((t=>Dx("0x51")!=t[Dx("0x47")][Dx("0x57")]));x[Dx("0x4c")]>0&&o[Dx("0x44")](x);for(const t of s)t[Dx("0x39")]()}))}function c(t,e){return e.every((e=>t[Dx("0x65")]((t=>t[Dx("0x2e")][Dx("0xc")](e[Dx("0x4")])||e.end[Dx("0xc")](t[Dx("0x4")])))))}function l(t,e){return t[Dx("0x65")]((t=>e[Dx("0x65")]((e=>t[Dx("0x2e")][Dx("0x6f")](e[Dx("0x4")])))))}t[Dx("0x32")][Dx("0x7d")].on(Dx("0x41"),((t,e,n)=>{if(!n[Dx("0xf")][Dx("0x36")])return;const o=e[Dx("0x6c")];if(!o)return;const s=n.mapper.toViewElement(o);function r(t){return Array[Dx("0x23")](t)?t:[t]}s&&"tableCell"===o[Dx("0x9")]&&(0,x.setHighlightHandling)(s,n[Dx("0x1")],((t,e,n)=>n[Dx("0x64")](r(e[Dx("0x61")]),t)),((t,e,n)=>n[Dx("0x66")](r(e[Dx("0x61")]),t)))}),{priority:Dx("0x73")}),o._descriptionFactory.registerDescriptionCallback((t=>{if(Dx("0x30")!=t[Dx("0x6d")]&&Dx("0x74")!=t[Dx("0x6d")])return;const e=t.getContainedElement();if(null!=e&&e.is(Dx("0x3f"),Dx("0x72"))){if(Dx("0x30")==t.type){const e=t.getItems()[Dx("0x26")]((t=>t.is("$textProxy"))).map((t=>t[Dx("0x32")]));if(e[Dx("0x4c")])return{type:Dx("0x30"),content:Yo(n,Dx("0x4d"),Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Dx("0x7b")](" ")+'"'))}}if("deletion"==t.type){const e=t[Dx("0x6e")]()[Dx("0x26")]((t=>t.is(Dx("0x7f"))))[Dx("0x62")]((t=>t[Dx("0x32")]));if(e.length)return{type:Dx("0x74"),content:Yo(n,Dx("0x70"),Yo(n,Dx("0x5d"),'"'+e[Dx("0x7b")](" ")+'"'))}}}})),o[Dx("0x4e")].registerDescriptionCallback((t=>{if(Dx("0x3e")==t.subType){const e=t[Dx("0x6e")]()[Dx("0x26")]((t=>t.is(Dx("0x7f"))))[Dx("0x62")]((t=>t[Dx("0x32")])),o=this[Dx("0x2")](t),s=o[Dx("0x6")]-o[Dx("0x1d")]+1;if("insertion"==t[Dx("0x6d")])return e[Dx("0x4c")]?{type:Dx("0x30"),content:Yo(n,Dx("0x4d"),Yo(n,Dx("0x11"),[s,'"'+e[Dx("0x7b")](" ")+'"']))}:{type:Dx("0x30"),content:Yo(n,"*Insert:* %0",Yo(n,Dx("0x4a"),s))};if("deletion"==t[Dx("0x6d")])return e[Dx("0x4c")]?{type:"deletion",content:Yo(n,Dx("0x70"),Yo(n,Dx("0x11"),[s,'"'+e[Dx("0x7b")](" ")+'"']))}:{type:Dx("0x74"),content:Yo(n,"*Remove:* %0",Yo(n,Dx("0x4a"),s))}}if(Dx("0x53")==t.subType){const e=t[Dx("0x6e")]()[Dx("0x26")]((t=>t.is(Dx("0x7f"))))[Dx("0x62")]((t=>t[Dx("0x32")])),o=this[Dx("0x2")](t),s=o[Dx("0x45")]-o.minColumn+1;if(Dx("0x30")==t[Dx("0x6d")])return e[Dx("0x4c")]?{type:Dx("0x30"),content:Yo(n,Dx("0x4d"),Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[s,'"'+e.join(" ")+'"']))}:{type:Dx("0x30"),content:Yo(n,Dx("0x4d"),Yo(n,Dx("0x81"),s))};if("deletion"==t.type)return e[Dx("0x4c")]?{type:Dx("0x74"),content:Yo(n,Dx("0x70"),Yo(n,Dx("0x5b"),[s,'"'+e[Dx("0x7b")](" ")+'"']))}:{type:Dx("0x74"),content:Yo(n,Dx("0x70"),Yo(n,Dx("0x81"),s))}}})),o[Dx("0x54")][Dx("0x2d")](Dx("0x30"),Dx("0x3e"),Dx("0x12"),r),o[Dx("0x54")][Dx("0x2d")](Dx("0x74"),"tableRow","accept",r),o[Dx("0x54")][Dx("0x2d")]("insertion",Dx("0x53"),"discard",a),o._suggestionFactory.registerCustomCallback(Dx("0x74"),Dx("0x53"),Dx("0x52"),a),o._suggestionFactory[Dx("0x2d")](Dx("0x30"),Dx("0x53"),Dx("0x7b"),c),o[Dx("0x54")][Dx("0x2d")](Dx("0x74"),Dx("0x53"),"join",c),o[Dx("0x54")].registerCustomCallback(Dx("0x30"),"tableRow",Dx("0x7b"),l),o._suggestionFactory.registerCustomCallback(Dx("0x74"),Dx("0x3e"),"join",l)}[Dx("0x67")](){const t=this.editor,e=t[Dx("0x20")][Dx("0x38")].selection;return(n,o)=>{t[Dx("0x20")][Dx("0x33")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][Dx("0x2e")][Dx("0x19")];x&&x[0]&&!1===x[0][Dx("0x75")]&&(a=n[0].start[Dx("0x2b")]);const c=s[Dx("0x7")](a);if("$graveyard"==c.root[Dx("0x57")])return;const l=Array.from(e[Dx("0xd")]())[Dx("0x62")]((t=>i.LiveRange[Dx("0x49")](t)));s[Dx("0x44")](c),t[Dx("0x85")].get(r).refresh(),x[Dx("0xa")]({forceDefaultExecution:!0}),t[Dx("0x5c")](r,...x);const d=l[Dx("0x26")]((t=>Dx("0x51")!=t.root[Dx("0x57")]));d[Dx("0x4c")]>0&&s[Dx("0x44")](d);for(const t of l)t[Dx("0x39")]()}))}}[Dx("0x46")](t){const e=this[Dx("0x24")][Dx("0x3")].get(Dx("0x0"));let n=Number[Dx("0x3d")],o=Number[Dx("0x83")],s=Number[Dx("0x3d")],r=Number[Dx("0x83")];for(const i of t){if(Dx("0x51")==i.root[Dx("0x57")])continue;const{row:t,column:x}=e[Dx("0x34")](i),a=i[Dx("0x2c")](Dx("0x4b"))?i[Dx("0x6a")](Dx("0x4b"))-1:0,c=i.hasAttribute("colspan")?i[Dx("0x6a")](Dx("0x2f"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,s=x<s?x:s,r=x+c>r?x+c:r}return{minRow:n,maxRow:o,minColumn:s,maxColumn:r}}[Dx("0x79")](){const t=this[Dx("0x24")],e=t.plugins[Dx("0x63")](Dx("0x5f")),n=t[Dx("0x3")].get(Dx("0x0"));t[Dx("0x20")][Dx("0x38")].on(Dx("0x27"),(()=>{const n=Array[Dx("0x5e")](t[Dx("0x20")][Dx("0x38")].differ[Dx("0x6b")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e._splitMarkerName(t);if("suggestion"!=n)continue;if(null!=o[Dx("0x84")])continue;const i=e[Dx("0x7c")](s);this._tablePostFixingSubtypes[Dx("0x1c")](r)&&this[Dx("0x1e")][Dx("0x42")](i)}}),{priority:"low"});const o=(t,e)=>{let o=!1;const s=e.createRangeOn(t),r=t[Dx("0x77")](Dx("0x72")),i=n[Dx("0x34")](t);for(const e of this[Dx("0x1e")]){const n=e[Dx("0x7a")],x=n[Dx("0x3b")](Dx("0x29")),a=n[Dx("0x13")](x?10:5),c=a.toLowerCase(),l=c[Dx("0x13")](0,3)+Dx("0x17"),d=Dx("0x78")+a,u=Dx("0x58")+a;if(!e[Dx("0x8")])continue;if(r!=e[Dx("0x2a")]()[Dx("0x4")][Dx("0x77")](Dx("0x72")))continue;if(e[Dx("0x1f")](s))continue;const g=t[Dx("0x2c")](l)?t[Dx("0x6a")](l)-1:0,m=this._getSuggestionCoords(e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e[Dx("0x71")](s),o=!0)}return o};t[Dx("0x20")][Dx("0x38")][Dx("0x80")]((e=>{let n=!1;for(const s of t.model[Dx("0x38")].differ.getChanges())if(Dx("0x35")==s.type)if("tableRow"==s[Dx("0x9")])for(const t of s.position[Dx("0x2b")][Dx("0x1a")]())n=n||o(t,e);else Dx("0x68")==s[Dx("0x9")]&&(n=n||o(s[Dx("0x4f")][Dx("0x2b")],e));return n}))}[Dx("0x2")](t){return this[Dx("0x46")](t[Dx("0xd")]()[Dx("0x62")]((t=>t.start[Dx("0x2b")])))}}function jx(t){return Array[Dx("0x5e")](new Set(t)[Dx("0x31")]())}const Ux=["type","mergeTableCellRight","deletion","set:isEnabled","return","TrackChangesEditing","plugins","afterInit","document","element","findAncestor","from","createRangeOn","stop","TableUtils","execute","locale","accept","root","length","_descriptionFactory","splitTableCellVertically","mergeTableCellDown","markBlockFormat","format","getRanges","push","has","tableCell","registerDescriptionCallback","map","TableEditing","forceDefaultExecution","_areSelectedCellsMergable","enableCommand","change","requires","horizontally","formatBlock","_suggestionFactory","direction","value","author","getCellLocation","setSelection","get","refresh","highest","trackChanges","_isForcedDefaultExecutionBlock","*Merge cells*","registerCustomCallback","model","filter","commandName","_areMergableCells","low","editor","getFirstPosition","splitTableCellHorizontally","mergeTableCells","getSelectionAffectedTableCells","rootName","find","selection","createTableWalker","mergeTableCellLeft","commands","detach","subType","add","$graveyard","mergeTableCellUp","containsRange"];var Gx,Hx;Gx=Ux,Hx=215,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const zx=function(t,e){return Ux[t-=0]};class Wx extends t.Plugin{static get[zx("0x2b")](){return[Bx]}[zx("0xe")](){const t=this[zx("0x40")],e=t[zx("0x3b")].document[zx("0x47")],n=t[zx("0x17")];if(!t[zx("0xd")][zx("0x22")](zx("0x26")))return;const o=t.plugins[zx("0x34")](zx("0xc")),s=t[zx("0xd")][zx("0x34")](zx("0x15")),r=t.plugins[zx("0x34")](Bx);r._tablePostFixingSubtypes[zx("0x21")](zx("0x43")),o[zx("0x29")](zx("0x43"),(()=>{const e=s[zx("0x44")](t[zx("0x3b")][zx("0xf")].selection);t[zx("0x3b")][zx("0x2a")]((()=>{o.markMultiRangeBlockFormat(e,{commandName:zx("0x43"),commandParams:[]},[],"mergeTableCells")}))})),t[zx("0x0")][zx("0x34")](zx("0x43")).on(zx("0x16"),((e,n)=>{t[zx("0x0")][zx("0x34")](zx("0x37"))[zx("0x30")]&&(n.length>0&&n[n.length-1]&&n[n[zx("0x1a")]-1][zx("0x27")]||o[zx("0x38")]||this[zx("0x28")]()||e[zx("0x14")]())}),{priority:zx("0x36")});for(const e of[zx("0x5"),"mergeTableCellRight","mergeTableCellDown",zx("0x49")]){const n=t.commands.get(e);o.enableCommand(e,(()=>{const e=t[zx("0x3b")][zx("0xf")][zx("0x47")].getFirstPosition().getAncestors().find((t=>t.is(zx("0x10"),zx("0x23")))),s=n[zx("0x30")];t[zx("0x3b")].change((()=>{o.markMultiRangeBlockFormat([e,s],{commandName:"mergeTableCells",commandParams:[]},[],zx("0x43"))}))}))}for(const e of[zx("0x1c"),zx("0x42")]){const n=t[zx("0x0")][zx("0x34")](e);o.enableCommand(e,(()=>{const r=s[zx("0x44")](t.model[zx("0xf")][zx("0x47")])[0],i=r[zx("0x11")]("table"),{column:x,row:a}=s[zx("0x32")](r);let c=[];if(zx("0x2c")==n[zx("0x2f")]){const t=s[zx("0x48")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array.from(t)[zx("0x25")]((t=>t.cell))}else{const t=s[zx("0x48")](i,{column:x,includeAllSlots:!0});c=Array.from(t)[zx("0x25")]((t=>t.cell))}t[zx("0x3b")][zx("0x2a")]((t=>{o[zx("0x1e")](t[zx("0x13")](r),{commandName:e,commandParams:[]},c,e)}))}))}o[zx("0x1b")][zx("0x24")]((t=>{const{data:e}=t;if(e)return"mergeTableCells"==e[zx("0x3d")]?{type:zx("0x1f"),content:Yo(n,zx("0x39"))}:void 0})),o[zx("0x1b")][zx("0x24")]((t=>{const{data:e}=t;if(e)return zx("0x1c")==e[zx("0x3d")]?{type:zx("0x1f"),content:Yo(n,"*Split cell:* vertically")}:zx("0x42")==e[zx("0x3d")]?{type:"format",content:Yo(n,"*Split cell:* horizontally")}:void 0}));const x=r._acceptFormatSuggestionCallbackFactory();for(const t of[zx("0x5"),zx("0x8"),zx("0x1d"),zx("0x49")])o[zx("0x2e")][zx("0x3a")]("formatBlock",t,zx("0x18"),x);for(const t of[zx("0x1c"),"splitTableCellHorizontally"])o[zx("0x2e")][zx("0x3a")](zx("0x2d"),t,"accept",x);o[zx("0x2e")][zx("0x3a")](zx("0x2d"),zx("0x43"),zx("0x18"),(n=>{t[zx("0x3b")].change((o=>{const s=Array[zx("0x12")](e.getRanges())[zx("0x25")]((t=>i.LiveRange.fromRange(t)));o.setSelection(n),t.commands[zx("0x34")](zx("0x43"))[zx("0x35")](),t.execute("mergeTableCells",{forceDefaultExecution:!0});const r=s[zx("0x3c")]((t=>zx("0x4")!=t[zx("0x19")][zx("0x45")]));r[zx("0x1a")]>0&&o[zx("0x33")](r);for(const t of s)t[zx("0x1")]()}))}));for(const e of[zx("0x5"),zx("0x1d"),zx("0x49"),"mergeTableCellRight"]){const n=t.commands[zx("0x34")](e);n.on(zx("0xa"),((e,o,s)=>{if(s){const o=t[zx("0x3b")][zx("0xf")][zx("0x47")][zx("0x41")]().getAncestors()[zx("0x46")]((t=>t.is("element",zx("0x23"))));this[zx("0x3e")](n[zx("0x30")],o)||(e[zx("0xb")]=!1,e[zx("0x14")]())}}),{priority:zx("0x3f")})}}_areSelectedCellsMergable(){const t=this.editor[zx("0x0")][zx("0x34")](zx("0x43")),e=this[zx("0x40")][zx("0xd")][zx("0x34")](zx("0x15"));if(!t.isEnabled)return!1;const n=e[zx("0x44")](this[zx("0x40")][zx("0x3b")].document[zx("0x47")]);for(const t of n)for(const e of n)if(t!=e&&!this[zx("0x3e")](t,e))return!1;return!0}[zx("0x3e")](t,e){const n=this[zx("0x40")][zx("0xd")][zx("0x34")](zx("0xc")),o=this.editor[zx("0x3b")][zx("0x13")](t),s=this[zx("0x40")][zx("0x3b")][zx("0x13")](e),r=new Set,i=new Set;for(const t of n.getSuggestions())if(("insertion"==t[zx("0x7")]||zx("0x9")==t[zx("0x7")]||zx("0x43")==t[zx("0x2")])&&t.isInContent)for(const e of t[zx("0x20")]())e[zx("0x6")](o,!0)&&r[zx("0x3")](t[zx("0x7")]+":"+t[zx("0x31")].id),e[zx("0x6")](s,!0)&&i[zx("0x3")](t[zx("0x7")]+":"+t[zx("0x31")].id);if(r.size!=i.size)return!1;for(const t of r)if(!i.has(t))return!1;return!0}}const Vx=["headingColumns","_splitMarkerName","includes","addClass","last","selection","markBlockFormat","removeAttribute","cell","model","document","registerDescriptionCallback","getSelectionAffectedTableCells","setTableRowHeader","editing","data","editor","plugins","data-suggestion","showSuggestionHighlights","enableCommand","createTableWalker","getChild","mapper","childCount","table","TrackChangesEditing","getRowIndexes","index","consume","ck-suggestion-marker--active","setTableColumnHeader","*Format:* %0","getAttribute","createRange","from","setAttribute","FORMAT_HEADER_ROW","value","isBefore","accept","options","getSuggestion","first","consumable","FORMAT_HEADER_COLUMN","highest","markerName","commands","get","change","writer","stop","createPositionAfter","formatBlock","activeMarkers","TableEditing","markerRange","TableUtils","findAncestor","commandParams","afterInit","forceValue","removeClass","downcastDispatcher","_suggestionFactory","registerCustomCallback","getCellLocation","FORMAT_REGULAR_ROW","FORMAT_REGULAR_COLUMN","name","unbindElementFromMarkerName","createPositionBefore","addMarker:suggestion","parent","nodeBefore","commandName","format"];var Kx,qx;Kx=Vx,qx=262,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Vx[t-=0]};class $x extends t.Plugin{static get requires(){return[Bx]}[Xx("0x21")](){const t=this[Xx("0x42")];if(!t[Xx("0x43")].has(Xx("0x1c")))return;const e=t.locale,n=t[Xx("0x43")][Xx("0x15")](Xx("0x4c")),o=t.plugins.get(Xx("0x1e")),s=t[Xx("0x43")][Xx("0x15")](Bx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[Xx("0x33")](r[Xx("0x13")]),c=n[Xx("0xe")](a);if(!c[Xx("0x41")]||Xx("0x3")!=c[Xx("0x41")][Xx("0x30")])return;if(r.item)return void s[Xx("0x18")]();if(!i[Xx("0x10")][Xx("0x1")](r[Xx("0x1d")],s[Xx("0x2a")]))return;const l=r[Xx("0x1d")].start.nodeAfter,d=r[Xx("0x1d")].end[Xx("0x2f")],u=l.parent[Xx("0x2e")],{column:g}=o.getCellLocation(l),{column:m}=o[Xx("0x27")](d);for(let s=g;s<=m;s++){const c=o[Xx("0x47")](u,{column:s,includeAllSlots:!1});for(const o of c){const s=o.cell,c=i[Xx("0x49")].toViewElement(s);i.writer.addClass("ck-suggestion-marker-"+x,c),e&&i[Xx("0x17")][Xx("0x8")]("data-suggestion",a,c),i[Xx("0x49")].bindElementToMarker(c,r.markerName),t&&(n[Xx("0x1b")][Xx("0x34")](r[Xx("0x13")])?i[Xx("0x17")][Xx("0x35")](Xx("0x2"),c):i[Xx("0x17")][Xx("0x23")](Xx("0x2"),c))}}}}n[Xx("0x46")]("setTableRowHeader",((e,s)=>{const r=o[Xx("0x3e")](t[Xx("0x3b")][Xx("0x3c")].selection),i=o[Xx("0x4d")](r),x=r[0].findAncestor(Xx("0x4b")),a=x.getAttribute("headingRows")||0,c=s&&null!==s[Xx("0x22")]?s.forceValue:!t[Xx("0x14")][Xx("0x15")]("setTableRowHeader")[Xx("0xa")],l=c?i[Xx("0x36")]:i[Xx("0xf")],d=x.getChild(l);let u;if(c){const e=x.getChild(a);if(d[Xx("0x0")]<e[Xx("0x0")])return;u=t[Xx("0x3b")][Xx("0x6")](t[Xx("0x3b")][Xx("0x2c")](e[Xx("0x48")](0)),t[Xx("0x3b")].createPositionAfter(d[Xx("0x48")](d[Xx("0x4a")]-1)))}else{const e=x.getChild(a-1);if(!e)return;u=t[Xx("0x3b")][Xx("0x6")](t[Xx("0x3b")][Xx("0x2c")](d[Xx("0x48")](0)),t.model[Xx("0x19")](e[Xx("0x48")](e[Xx("0x4a")]-1)))}t.model[Xx("0x16")]((()=>{n[Xx("0x38")](u,{commandName:Xx("0x3f"),commandParams:[{forceValue:c}]},[],Xx("0x3f"))}))})),n.enableCommand("setTableColumnHeader",((e,o)=>{const s=t[Xx("0x43")].get(Xx("0x1e")),r=s[Xx("0x3e")](t.model[Xx("0x3c")][Xx("0x37")]),i=s.getColumnIndexes(r),x=r[0][Xx("0x1f")]("table"),a=x[Xx("0x5")](Xx("0x32"))||0,c=o&&null!==o[Xx("0x22")]?o[Xx("0x22")]:!t[Xx("0x14")][Xx("0x15")](Xx("0x3"))[Xx("0xa")];let l;const d=x.getChild(0),u=c?i[Xx("0x36")]:i[Xx("0xf")],g=s[Xx("0x47")](x,{startRow:0,column:u,includeAllSlots:!1}),m=Array[Xx("0x7")](g)[0][Xx("0x3a")];if(c){const e=d[Xx("0x48")](a);if(m[Xx("0xb")](e))return;l=t[Xx("0x3b")][Xx("0x6")](t[Xx("0x3b")][Xx("0x2c")](e),t.model[Xx("0x19")](m))}else{const e=d[Xx("0x48")](a-1);if(!e)return;l=t[Xx("0x3b")][Xx("0x6")](t.model[Xx("0x2c")](m),t[Xx("0x3b")].createPositionAfter(e))}t[Xx("0x3b")][Xx("0x16")]((()=>{n[Xx("0x38")](l,{commandName:Xx("0x3"),commandParams:[{forceValue:c}]},[],"setTableColumnHeader")}))})),t.editing[Xx("0x24")].on(Xx("0x2d"),r(),{priority:Xx("0x12")}),t[Xx("0x41")][Xx("0x24")].on("addMarker:suggestion",((t,e,n)=>{n[Xx("0xd")][Xx("0x45")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:Xx("0x12")}),t[Xx("0x40")][Xx("0x24")].on("removeMarker:suggestion",((t,e,o)=>{const{type:s,id:r}=n[Xx("0x33")](e[Xx("0x13")]),i=n[Xx("0xe")](r);if(!i[Xx("0x41")]||Xx("0x3")!=i[Xx("0x41")][Xx("0x30")])return;const x=o[Xx("0x49")].markerNameToElements(e[Xx("0x13")]);if(x)for(const t of x)o[Xx("0x17")][Xx("0x23")]("ck-suggestion-marker-"+s,t),o[Xx("0x17")][Xx("0x23")](Xx("0x2"),t),o[Xx("0x17")][Xx("0x39")](Xx("0x44"),t),o[Xx("0x49")][Xx("0x2b")](t,e[Xx("0x13")])}),{priority:Xx("0x12")}),n._descriptionFactory[Xx("0x3d")]((t=>{const{data:n}=t;if(n){if(Xx("0x3f")==n.commandName){const t=n[Xx("0x20")][0][Xx("0x22")];return o(Yo(e,Xx(t?"0x9":"0x28")))}if("setTableColumnHeader"==n[Xx("0x30")]){const t=n[Xx("0x20")][0].forceValue;return o(Yo(e,Xx(t?"0x11":"0x29")))}}function o(t){return{type:Xx("0x31"),content:Yo(e,Xx("0x4"),t)}}}));const i=s._acceptFormatSuggestionCallbackFactory();n[Xx("0x25")][Xx("0x26")]("formatBlock",Xx("0x3f"),Xx("0xc"),i),n[Xx("0x25")][Xx("0x26")](Xx("0x1a"),"setTableColumnHeader","accept",i)}}const Jx=["isInContent","Users","getColumnIndexes","_getCoordsForCells","table","next","low","markerToHighlight","removeMarkers","add","some","subType","getRanges","insertion","getAllAdjacentSuggestions","getShiftedBy","tableCellBorderStyle","_splitMarkerName","editor","getAttributes","createTableWalker","findAncestor","view","columnInsertionRanges","tablePasteCell","keys","suggestionLoaded","containsRange","registerPostFixer","$graveyard","getTableIfOnlyTableInContent","conversion","suggestionUnloaded","getSelectionAffectedTableCells","newRange","activeMarkers","tableCellSuggestion","rootName","move","set","suggestion","getSuggestionCallback","options","createRangeOn","removeMarker","model","value","last","position","map","change","entries","isEqual","elementToElement","markMultiRangeInsertion","selection","tablePasteRow","batch","cell","getRange","registerCustomCallback","first","_isForcedDefaultExecutionBlock","nodeAfter","commands","ck-suggestion-marker-insertion","paragraph","insertionRanges","removeRows","get","_replaceTableSlotCell","deletion","find","fromEntries","editingDowncast","fill","getRows","formatBlock","TableClipboard","forceDefaultExecution","oldRange","getChildren","tablePaste","listenTo","length","content","insertRows","endColumn","setAttribute","suggestion:formatBlock:tablePasteCell","insertContent","ck-suggestion-marker--active","markerName","hasSuggestion","markerAttributes","reduce","getSuggestion","endRow","tableCellHorizontalAlignment","setAttributes","tableCellPadding","column","remove","getSuggestions","insert","start","getChild","updateMarker","ck-suggestion-marker","discard","tableCellBackgroundColor","getChanges","getColumns","high","dataDowncast","cells","removeColumns","root","author","unwrap","_suggestionFactory","element","for","columns","showSuggestionHighlights","isEmpty","differ","getMarkers","documentSelection","tablePasteColumn","createRangeIn","has","wrap","insertColumns","registerDescriptionCallback","schema","afterInit","rowInsertionRanges","_createdBatches","name","createPositionBefore","rows","columnInsertionIndexes","from","push","register","*Replace table cells*","tablePasteChainId","return","previous","startsWith","join","editing","tableCell","_descriptionFactory","getChangedMarkers","end","suggestion-td","plugins","document","every","getContainedElement","tableCellBorderColor","rowInsertionIndexes","attributes","markers","includes","type","TableUtils","filter"];var Qx,Zx;Qx=Jx,Zx=183,function(t){for(;--t;)Qx.push(Qx.shift())}(++Zx);const Yx=function(t,e){return Jx[t-=0]},ta=["tableCellBorderWidth",Yx("0x95"),Yx("0x3"),Yx("0x55"),"tableCellVerticalAlignment",Yx("0x61"),Yx("0x57")],ea=Object.fromEntries(ta[Yx("0x24")]((t=>[t,null])));class na extends t.Plugin{static get requires(){return[Bx]}[Yx("0x7b")](){const t=this[Yx("0x5")];if(!t[Yx("0x91")][Yx("0x76")](Yx("0x41")))return;const n=t.plugins.get("TrackChangesEditing"),o=t[Yx("0x91")][Yx("0x38")](Yx("0x9b")),s=t[Yx("0x91")].get(Bx),r=t[Yx("0x91")][Yx("0x38")](Yx("0x41"));s._tablePostFixingSubtypes.push("tablePasteRow",Yx("0x74")),t[Yx("0x20")][Yx("0x7a")][Yx("0x84")](Yx("0x17"),{allowIn:Yx("0x8c"),allowContentOf:Yx("0x8c"),isLimit:!0}),t[Yx("0x12")][Yx("0x28")]({model:Yx("0x17"),view:Yx("0x90")});let i=null;t[Yx("0x20")].on(Yx("0x4d"),((s,x)=>{const[a,c]=x,l=x[x[Yx("0x47")]-1];l&&l[Yx("0x42")]||n[Yx("0x31")]||this[Yx("0x5")].commands[Yx("0x38")]("trackChanges")[Yx("0x21")]&&function(t,e,n,o,s){if(e&&!e.is(Yx("0x73")))return!1;const r=s[Yx("0x11")](t,n);if(!r||!sa(r,void 0,o))return!1;const i=o[Yx("0x14")](n[Yx("0x92")][Yx("0x2a")]);if(!i[Yx("0x47")])return!1;const x=i[0][Yx("0x8")](Yx("0xa1")),a=o.getRowIndexes(i),c=o[Yx("0x9f")](i),l={startRow:a[Yx("0x30")],endRow:a.last,startColumn:c[Yx("0x30")],endColumn:c[Yx("0x22")]};return 1==i[Yx("0x47")]&&(l[Yx("0x54")]+=o[Yx("0x3f")](r)-1,l[Yx("0x4a")]+=o[Yx("0x63")](r)-1),sa(x,l,o)}(a,c,t[Yx("0x20")],o,r)&&(s.stop(),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t.model[Yx("0x25")]((()=>{t[Yx("0x20")][Yx("0x4d")](x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:s,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=i;s[Yx("0x47")]&&n[Yx("0x29")](s,Yx("0x2b"),{tablePasteChainId:o}),r.length&&n[Yx("0x29")](r,Yx("0x74"),{tablePasteChainId:o}),a[Yx("0x47")]&&n[Yx("0x29")](a,Yx("0x45"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Yx("0x47")]&&n.markMultiRangeDeletion(c,Yx("0x45"),{tablePasteChainId:o,skipNestingCheck:!0});const d=n.markMultiRangeBlockFormat(l[Yx("0x24")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Yx("0xb"),{tablePasteChainId:o});if(d){const e=d[Yx("0x72")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t.model[Yx("0x1e")](o),i=e[Yx("0x3b")]((t=>t[Yx("0x2e")]()[Yx("0x27")](r)));i&&n[Yx("0x83")]([i[Yx("0x7e")],s])}n[Yx("0x47")]&&d[Yx("0x4b")](Yx("0x51"),Object[Yx("0x3c")](n))}i=null})))}),{priority:e.priorities[Yx("0x64")]+10}),t.plugins[Yx("0x38")](Yx("0x41")).on(Yx("0x39"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t.stop();const r=n[Yx("0x2d")],x=o,a=oa(r),c=oa(x);t[Yx("0x87")]=r;let l=null,d=null;if(c||a)if(a&&!c){s.remove(r[Yx("0x5d")](0));for(const t of Array[Yx("0x82")](x[Yx("0x44")]()))s[Yx("0x5b")](t,r,Yx("0x8f"));const t=i.rowInsertionIndexes.includes(n.row),e=i[Yx("0x81")][Yx("0x99")](n[Yx("0x58")]);t||e||(l=s[Yx("0x75")](r))}else c&&!a&&(d=s[Yx("0x75")](r));else{const t=s.createElement(Yx("0x17")),e=s.createElement("tableCellSuggestion");s[Yx("0x77")](s.createRangeIn(r),e),s[Yx("0x5b")](t,r,0);for(const e of Array.from(x[Yx("0x44")]()))s.insert(e,t,Yx("0x8f"));l=s[Yx("0x1e")](t),d=s[Yx("0x1e")](e)}const u=Array[Yx("0x82")](x[Yx("0x6")]())[Yx("0x9c")]((([t])=>ta[Yx("0x99")](t)));i[Yx("0x66")][Yx("0x83")]({element:r,attributes:u[Yx("0x47")]?Object.fromEntries(u):null}),l&&i[Yx("0x36")][Yx("0x83")](l),d&&i.deletionRanges[Yx("0x83")](d)}),{priority:Yx("0x64")}),o.on(Yx("0x78"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Yx("0x6e")]||1;i[Yx("0x81")]=new Array(a)[Yx("0x3e")](x)[Yx("0x24")](((t,e)=>t+e));for(const{cell:e}of o[Yx("0x7")](s,{startColumn:x,endColumn:x+a-1}))i[Yx("0xa")].push(t.model[Yx("0x1e")](e))}),{priority:"low"}),o.on(Yx("0x49"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Yx("0x80")]||1;i[Yx("0x96")]=new Array(a)[Yx("0x3e")](x).map(((t,e)=>t+e));for(const{cell:e}of o[Yx("0x7")](s,{startRow:x,endRow:x+a-1}))i[Yx("0x7c")][Yx("0x83")](t.model[Yx("0x1e")](e))}),{priority:Yx("0xa3")}),n[Yx("0x8d")][Yx("0x79")]((e=>{if(e[Yx("0xa8")]&&e[Yx("0xa8")][Yx("0x89")](Yx("0x45")))return e[Yx("0x88")]?{}:{type:Yx("0x0"),content:Yo(t.locale,Yx("0x85"))}}));const x=()=>!1;for(const t of[Yx("0x45"),Yx("0x74"),"tablePasteRow",Yx("0xb")])n[Yx("0x6b")][Yx("0x2f")]("insertion",t,Yx("0x8a"),x),n._suggestionFactory[Yx("0x2f")](Yx("0x3a"),t,Yx("0x8a"),x),n[Yx("0x6b")][Yx("0x2f")](Yx("0x40"),t,"join",x);n._suggestionFactory.registerCustomCallback(Yx("0x40"),Yx("0xb"),Yx("0x60"),x),n._suggestionFactory.registerCustomCallback(Yx("0x40"),"tablePasteCell","accept",((e,n,o)=>{const s=e[Yx("0x24")]((t=>t.getContainedElement()))[Yx("0x9c")]((t=>t)),r=new Map(s[Yx("0x24")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Yx("0x66")])e&&r[Yx("0x1a")](t,e);else if(o&&o[Yx("0x51")])for(const[e,n]of Object[Yx("0x26")](o[Yx("0x51")])){const o=t.model[Yx("0x98")][Yx("0x38")](e),s=o?o[Yx("0x2e")]().getContainedElement():null;s&&r.set(s,n)}t[Yx("0x20")][Yx("0x25")]((t=>{for(const[e,n]of r)t[Yx("0x56")]({...ea,...n},e)}))}));const a=(e,o)=>{n._suggestionFactory[Yx("0x2f")](e,Yx("0x45"),o,((s,r,i)=>{t[Yx("0x20")][Yx("0x25")]((t=>{const x=[];for(const t of s){const e=t[Yx("0x5c")][Yx("0x32")];e.is("element",Yx("0x17"))&&x[Yx("0x83")](e)}n[Yx("0x6b")][Yx("0x1c")](e,null,o)(s,r,i);for(const e of x)Yx("0x10")!=e[Yx("0x68")][Yx("0x18")]&&t[Yx("0x6a")](e)}))}))};a("insertion","accept"),a(Yx("0x0"),"discard"),a(Yx("0x3a"),"accept"),a(Yx("0x3a"),Yx("0x60")),n[Yx("0x6b")].registerCustomCallback(Yx("0x0"),Yx("0x2b"),Yx("0x60"),(t=>{const e=t[Yx("0x24")]((t=>t[Yx("0x94")]())),n=e[0][Yx("0x8")](Yx("0xa1")),{minRow:r,maxRow:i}=s._getCoordsForCells(e);o[Yx("0x37")](n,{at:r,rows:i-r+1})})),n[Yx("0x6b")][Yx("0x2f")]("insertion",Yx("0x74"),Yx("0x60"),(t=>{const e=t[Yx("0x24")]((t=>t[Yx("0x94")]())),n=e[0][Yx("0x8")](Yx("0xa1")),{minColumn:r,maxColumn:i}=s[Yx("0xa0")](e);o[Yx("0x67")](n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[Yx("0xa8")]||!e.subType[Yx("0x89")](Yx("0x45")))return;const o=e[Yx("0x97")][Yx("0x86")],s=n[Yx("0x5a")]()[Yx("0x9c")]((t=>t.isInContent&&t[Yx("0x97")]&&t.attributes[Yx("0x86")]==o));s[Yx("0x47")]&&e[Yx("0x1")]().length!=s[Yx("0x47")]&&s[Yx("0x52")](((t,e)=>(t[Yx("0xa2")]=e,e[Yx("0x88")]=t,e)))};function l(t,e=!0){const{id:o}=n[Yx("0x4")](t[Yx("0x4f")]),s=[Yx("0x5f"),Yx("0x34")],r=n[Yx("0x16")].includes(t[Yx("0x4f")]);return r&&s[Yx("0x83")](Yx("0x4e")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(Yx("0xd"),c,{priority:Yx("0x64")}),n.on(Yx("0x13"),c,{priority:Yx("0x64")}),t[Yx("0x20")][Yx("0x92")].registerPostFixer((()=>{let e=!1;const o=Array[Yx("0x82")](t.model[Yx("0x92")][Yx("0x71")].getChangedMarkers());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[Yx("0x4")](s);if(Yx("0x1b")!=o||Yx("0x3a")!=i||r[Yx("0x43")])continue;if(!n[Yx("0x50")](x))continue;const a=n[Yx("0x53")](x)[Yx("0xa9")](),c=t[Yx("0x91")][Yx("0x38")](Yx("0x9e")).me;for(const t of n[Yx("0x5a")]())if(t[Yx("0x9d")]&&t[Yx("0x69")]==c&&Yx("0x40")==t[Yx("0x9a")]&&Yx("0xb")==t[Yx("0xa8")]&&t.getRanges()[Yx("0x93")]((t=>a[Yx("0xa7")]((e=>e[Yx("0xe")](t,!0))))))for(const n of t[Yx("0x1")]())n[Yx("0x9d")]&&(n[Yx("0x60")](),e=!0)}return e})),t.model[Yx("0x92")][Yx("0xf")]((e=>{const o=t[Yx("0x33")][Yx("0x38")]("redo");if(!o||!o[Yx("0x7d")][Yx("0x76")](e[Yx("0x2c")]))return!1;let s=!1;const r=t.plugins[Yx("0x38")](Yx("0x9e")).me,i=t.model.document.differ[Yx("0x62")](),x=Array.from(t[Yx("0x20")][Yx("0x92")].differ[Yx("0x8e")]())[Yx("0x9c")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[Yx("0x4")](t);return Yx("0x1b")==o&&Yx("0x45")==s&&i==r.id&&!e[Yx("0x43")]}));for(const t of i){if("insert"!=t.type||Yx("0x17")!=t[Yx("0x7e")]||1!=t[Yx("0x47")])continue;const n=e.createRange(t.position,t[Yx("0x23")][Yx("0x2")](1));if(!x[Yx("0x3b")]((({data:t})=>t[Yx("0x15")].isEqual(n))))for(const{name:t,data:o}of x)if(n[Yx("0xe")](o[Yx("0x15")])){e[Yx("0x5e")](t,{range:n}),s=!0;break}}return s})),t[Yx("0x20")][Yx("0x92")][Yx("0xf")]((e=>{let o=!1;const s=t[Yx("0x91")].get(Yx("0x9e")).me,r=n[Yx("0x5a")]()[Yx("0x9c")]((t=>t[Yx("0x9d")]&&t[Yx("0x69")]==s)),i=new Set,x=new Set;for(const t of r)if(Yx("0x45")==t[Yx("0xa8")])for(const e of t.getMarkers()){const n=e[Yx("0x2e")]()[Yx("0x94")]();if(n)if(n.is("element",Yx("0x17"))&&oa(n)){t[Yx("0x1f")](e[Yx("0x7e")]),i[Yx("0xa6")](n),o=!0;const s=n.nextSibling,r=n.previousSibling,a=s&&s.is("element",Yx("0x17")),c=r&&r.is(Yx("0x6c"),Yx("0x17"));a&&!i.has(s)&&x[Yx("0xa6")](s),c&&!i[Yx("0x76")](r)&&x.add(r)}else n.is(Yx("0x6c"),Yx("0x35"))&&n[Yx("0x70")]&&(t[Yx("0x1f")](e.name),o=!0)}else if(Yx("0xb")==t[Yx("0xa8")]){if(!t[Yx("0x97")]||!t[Yx("0x97")][Yx("0x86")])continue;const e=t[Yx("0x97")][Yx("0x51")];if(e&&Object[Yx("0xc")](e)[Yx("0x47")])continue;const n=t[Yx("0x97")][Yx("0x86")];let s=!0,i=!0;for(const e of r)if(e.subType&&e[Yx("0xa8")][Yx("0x89")](Yx("0x45"))){if(!e[Yx("0x97")][Yx("0x86")]){i=!1;break}if(e.id!=t.id&&e[Yx("0x97")][Yx("0x86")]==n){s=!1;break}}i&&s&&(t[Yx("0xa5")](),o=!0)}for(const t of i)e[Yx("0x59")](t);for(const t of x)e[Yx("0x6a")](t);return o})),t.conversion[Yx("0x6d")](Yx("0x3d"))[Yx("0xa4")]({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>l(t),converterPriority:Yx("0x64")}),t[Yx("0x12")][Yx("0x6d")](Yx("0x65"))[Yx("0xa4")]({model:Yx("0x4c"),view:(t,e)=>e[Yx("0x1d")][Yx("0x6f")]?l(t,!1):null,converterPriority:Yx("0x64")});const d=t[Yx("0x8b")][Yx("0x9")];this[Yx("0x46")](d[Yx("0x92")],"clipboardOutput",((t,e)=>{const n=[];for(const t of d[Yx("0x75")](e[Yx("0x48")]).getItems())t.is("element",Yx("0x90"))&&n.push(t);d[Yx("0x25")]((t=>{for(const e of n)t[Yx("0x19")](t[Yx("0x75")](e),t[Yx("0x7f")](e)),t[Yx("0x59")](e)}))}))}}function oa(t){if(t.isEmpty)return!0;const e=t[Yx("0x5d")](0);return e.is(Yx("0x6c"),Yx("0x35"))&&e[Yx("0x70")]}function sa(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n.createTableWalker(t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ra=["resizeColumnWidths","_suggestionFactory","commandParams","format","subType","formatBlock","registerDescriptionCallback","editor","resizeTable","selection","enableCommand","tableWidth","formatGroupId","getSuggestionCallback","plugins","getContainedElement","handleSuggestionDescription","bind","data","*Format:* resize table","Users","document","change","handleResizeTableWidthCommand","model","author","table","get","markBlockFormat","TrackChangesEditing","accept","getSelectedElement","discard","registerCustomCallback","TableColumnResizeEditing","columnWidths"];var ia,xa;ia=ra,xa=210,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{afterInit(){if(!this[aa("0xd")].plugins.has(aa("0x4")))return;const t=this[aa("0xd")][aa("0x14")][aa("0x21")](aa("0x23"));t[aa("0x10")]("resizeTableWidth",this.handleResizeTableWidthCommand[aa("0x17")](this)),t.enableCommand(aa("0x6"),this[aa("0x1d")].bind(this)),t[aa("0x7")][aa("0x3")](aa("0xb"),aa("0xe"),aa("0x0"),t._suggestionFactory[aa("0x13")]("formatBlock",null,aa("0x2"))),t[aa("0x7")].registerCustomCallback(aa("0xb"),aa("0xe"),"discard",t[aa("0x7")][aa("0x13")](aa("0xb"),null,aa("0x0"))),t._descriptionFactory[aa("0xc")](this[aa("0x16")][aa("0x17")](this))}[aa("0x1d")](t,e){const n=this.editor.plugins.get(aa("0x23")),o=this[aa("0xd")][aa("0x14")][aa("0x21")](aa("0x4")),s=e[aa("0x20")]||this[aa("0xd")].model[aa("0x1b")][aa("0xf")][aa("0x1")]();this[aa("0xd")][aa("0x1e")][aa("0x1c")]((()=>{const r=o.getColumnGroupElement(s);let i=r?o.getTableColumnsWidths(r):null,x=s.getAttribute("tableWidth")||null;const a=e.tableWidth||x,c=e[aa("0x5")]||i,l=this[aa("0xd")].plugins[aa("0x21")](aa("0x1a")).me;for(const t of n.getSuggestions()){const e=t[aa("0x15")]();if("resizeTable"===t[aa("0xa")]&&e===s){t[aa("0x1f")]!==l&&t.discard();const e=t[aa("0x18")][aa("0x8")];x=e[0][aa("0x11")],i=e[0][aa("0x5")];break}}t({table:s,tableWidth:a,columnWidths:c}),n[aa("0x22")](s,{commandName:"resizeTableWidth",commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:"resizeTable"},[],aa("0xe"))}))}[aa("0x16")](t){const{data:e}=t;if(e&&"resizeTable"===e[aa("0x12")]){const t=aa("0x19");return{type:aa("0x9"),content:Yo(this[aa("0xd")].locale,t)}}}}const la=["insertTemplate","enableCommand","afterInit","Template","plugins"];var da,ua;da=la,ua=128,function(t){for(;--t;)da.push(da.shift())}(++ua);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x4")](){const t=this.editor;t.plugins.has(ga("0x0"))&&t[ga("0x1")].get("TrackChangesEditing")[ga("0x3")](ga("0x2"))}}const fa=["ELEMENT_TABLE_OF_CONTENTS","insertTableOfContents","registerElementLabel","get","locale","tableOfContents","editor","_descriptionFactory","plugins","TrackChangesEditing","afterInit","enableCommand","commands"];var ha,pa;ha=fa,pa=410,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{[ba("0x3")](){const t=this[ba("0xc")];if(!t[ba("0x5")][ba("0x9")](ba("0x7")))return;t[ba("0x1")].get(ba("0x2"))[ba("0x4")](ba("0x7"));const e=t[ba("0x1")][ba("0x9")](ba("0x2")),n=t[ba("0xa")];e[ba("0x0")][ba("0x8")](ba("0xb"),(t=>Yo(n,ba("0x6"),t)))}}const _a=["createRange","_splitMarkerName","_descriptionFactory","model","ELEMENT_TITLE","isTouching","afterInit","editor","locale","getNearestSelectionRange","updateMarker","forward","differ","isEqual","start","get","title-content","removeMarker","schema","suggestion","Title","getChangedMarkers","newRange","has","document","nodeBefore","isCollapsed","from","registerElementLabel","plugins","end"];var Ta,Ca;Ta=_a,Ca=383,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0x1a")](){const t=this[ya("0x1b")];if(!t[ya("0x12")][ya("0xc")](ya("0x9")))return;const e=t[ya("0x12")][ya("0x4")]("TrackChangesEditing");e[ya("0x16")][ya("0x11")]("title-content",(()=>Yo(t[ya("0x1c")],ya("0x18")))),t[ya("0x17")][ya("0xd")].registerPostFixer((n=>{let o=!1;const s=Array[ya("0x10")](t[ya("0x17")][ya("0xd")][ya("0x1")][ya("0xa")]());for(const{name:r,data:i}of s){const{group:s}=e[ya("0x15")](r);if(ya("0x8")!==s||!i.newRange)continue;const x=i[ya("0xb")],a=x[ya("0x13")][ya("0xe")];if(!a||!a.is("element",ya("0x5")))continue;if(!x.start[ya("0x19")](x[ya("0x13")]))continue;const c=t[ya("0x17")][ya("0x7")][ya("0x1d")](x[ya("0x13")],ya("0x0"));if(c&&c[ya("0xf")]){const t=n[ya("0x14")](x[ya("0x3")],c.start);t[ya("0x2")](x)||(n[ya("0x1e")](r,{range:t}),o=!0)}o||(n[ya("0x6")](r),o=!0)}return o}))}}const Aa=["has","editor","UndoEditing","enableCommand","TrackChangesEditing","undo","get","redo","plugins"];var va,Ra;va=Aa,Ra=222,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Sa=function(t,e){return Aa[t-=0]};class Ia extends t.Plugin{afterInit(){const t=this[Sa("0x4")],e=t[Sa("0x2")][Sa("0x0")](Sa("0x7"));t.plugins[Sa("0x3")](Sa("0x5"))&&(e.enableCommand(Sa("0x8")),e[Sa("0x6")](Sa("0x1")))}}const La=["TrackChangesEditing","requires","has","toggleTableCaption","afterInit","editor"];var Na,wa;Na=La,wa=310,function(t){for(;--t;)Na.push(Na.shift())}(++wa);const Ma=function(t,e){return La[t-=0]};class Oa extends t.Plugin{static get[Ma("0x3")](){return[Bx]}[Ma("0x0")](){const t=this[Ma("0x1")];t.plugins[Ma("0x4")]("TableCaptionEditing")&&t.plugins.get(Ma("0x2")).enableCommand(Ma("0x5"))}}const Fa=["TrackChangesEditing","config","toUpperCase","selection","_getTranslationKeyForListStyle","listStart","ELEMENT_","getAttribute","expandListBlocksToCompleteList","get","format","listType","afterInit","handleListReversedCommand","from","numbered","handleDescriptions","getListTypeFromListStyleType","_getSuggestionBlocksForListStyle","DocumentListPropertiesEditing","startIndex","DocumentListPropertiesUtils","enableCommand","locale","model","plugins","*Change to:* %0","bind","DocumentListUtils","editor","commandName","isFirstBlockOfListItem","registerDescriptionCallback","markMultiRangeBlockFormat","getSelectedBlocks","commandParams","*Format:* set order to regular","push","isListItemBlock","reversed","listReversed","change","has","type","filter","handleListStartCommand"];var Pa,Da;Pa=Fa,Da=272,function(t){for(;--t;)Pa.push(Pa.shift())}(++Da);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{[Ba("0x10")](){if(!this[Ba("0x21")][Ba("0x1d")][Ba("0x0")](Ba("0x17")))return;const t=this[Ba("0x21")][Ba("0x5")][Ba("0xd")]("list.properties"),e=this.editor[Ba("0x1d")][Ba("0xd")]("TrackChangesEditing");t.styles&&e[Ba("0x1a")]("listStyle",this.handleListStyleCommand.bind(this)),t[Ba("0x2b")]&&e[Ba("0x1a")](Ba("0x2c"),this[Ba("0x11")][Ba("0x1f")](this)),t[Ba("0x18")]&&e[Ba("0x1a")]("listStart",this[Ba("0x3")][Ba("0x1f")](this)),e._descriptionFactory[Ba("0x24")](this.handleDescriptions[Ba("0x1f")](this))}handleListStyleCommand(t,e={}){const n=this[Ba("0x21")][Ba("0x1d")][Ba("0xd")](Ba("0x4")),o=this[Ba("0x16")]();this[Ba("0x21")].model[Ba("0x2d")]((()=>{n[Ba("0x25")](o,{commandName:"listStyle",commandParams:[{type:e[Ba("0x1")]}],formatGroupId:"listStyle"})}))}[Ba("0x11")](t,e={}){const n=this.editor[Ba("0x1d")][Ba("0xd")](Ba("0x4")),o=this[Ba("0x21")][Ba("0x1d")].get(Ba("0x20")),s=this._getSuggestionBlocks((t=>o[Ba("0x2a")](t)&&"numbered"===t[Ba("0xb")]("listType")));null!==s&&this[Ba("0x21")][Ba("0x1c")][Ba("0x2d")]((()=>{n[Ba("0x25")](s,{commandName:Ba("0x2c"),commandParams:[{reversed:e[Ba("0x2b")]}],formatGroupId:Ba("0x2c")})}))}handleListStartCommand(t,e={}){const n=this[Ba("0x21")][Ba("0x1d")][Ba("0xd")](Ba("0x4")),o=this[Ba("0x21")].plugins[Ba("0xd")]("DocumentListUtils"),s=this._getSuggestionBlocks((t=>o[Ba("0x2a")](t)&&Ba("0x13")===t[Ba("0xb")](Ba("0xf"))));null!==s&&this.editor[Ba("0x1c")].change((()=>{n[Ba("0x25")](s,{commandName:Ba("0x9"),commandParams:[{startIndex:e[Ba("0x18")]}],formatGroupId:Ba("0x9")})}))}[Ba("0x14")](t){const e=this[Ba("0x21")][Ba("0x1b")],{data:n}=t;if(!n)return;let o,s;switch(n[Ba("0x22")]){case"listStyle":o=Ba("0x1e"),s={type:Ba("0xe"),content:Yo(e,o,Yo(e,this._getTranslationKeyForListStyle(n.commandParams[0].type)))};break;case Ba("0x2c"):o=n[Ba("0x27")][0][Ba("0x2b")]?"*Format:* set order to reversed":Ba("0x28"),s={type:Ba("0xe"),content:Yo(e,o)};break;case Ba("0x9"):o="*Format:* set start index to %0",s={type:Ba("0xe"),content:Yo(e,o,n[Ba("0x27")][0].startIndex)}}return s}[Ba("0x16")](){const t=this.editor[Ba("0x1d")].get("DocumentListUtils");let e=Array[Ba("0x12")](this[Ba("0x21")][Ba("0x1c")].document[Ba("0x7")][Ba("0x26")]());return e[Ba("0x29")](...t.expandListBlocksToCompleteList(e)),e=[...new Set(e)],e}_getSuggestionBlocks(t){const e=this[Ba("0x21")][Ba("0x1d")][Ba("0xd")](Ba("0x20"));let n=Array.from(this[Ba("0x21")].model.document.selection[Ba("0x26")]())[Ba("0x2")](t);if(!n.length)return null;n=e[Ba("0xc")](n);const o=[];for(const t of n)e[Ba("0x23")](t)&&o[Ba("0x29")](t);return o}[Ba("0x8")](t){return Ba("0xa")+this[Ba("0x21")][Ba("0x1d")][Ba("0xd")](Ba("0x19"))[Ba("0x15")](t).toUpperCase()+"_LIST_"+t[Ba("0x6")]().replace(/-/g,"_")}}const Ua=["registerCustomCallback","TableCellPropertiesEditing","plugins","join","TrackChangesTableProperties","*Format:* change table cell properties","subType","formatBlock","handleSuggestionDescription","editor","getSelectionAffectedTableCells","_getSuggestion","_handlePropertyChange","getContainedElement","TablePropertiesEditing","_suggestionFactory","TrackChangesEditing","tableCellBackgroundColor","registerDescriptionCallback","tableCellHeight","tableBorderStyle","change","pluginName","getAttribute","tableHeight","*Format:* change table properties","handleDiscardAction","getSuggestionCallback","removeAttribute","nodeAfter","getFirstPosition","get","table","tableCellBorderColor","enableCommand","tableCellPadding","has","findAncestor","document","data","markBlockFormat","model","tableCellProperties","accept","tableWidth","tableBorderWidth","format","afterInit","selection","tableCellHorizontalAlignment","tableCellWidth","getSuggestions","locale","tableProperties","discard","TableUtils"];var Ga,Ha;Ga=Ua,Ha=327,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const za=function(t,e){return Ua[t-=0]};class Wa extends t.Plugin{constructor(t){super(t),this[za("0x6")]=["tableBorderColor",za("0x1d"),za("0x36"),"tableAlignment",za("0x35"),za("0x21"),"tableBackgroundColor"],this.tableCellProperties=[za("0x2a"),"tableCellBorderStyle","tableCellBorderWidth",za("0x2c"),za("0x3"),za("0x1c"),za("0x1a"),za("0x2"),"tableCellVerticalAlignment"]}static get[za("0x1f")](){return za("0xd")}[za("0x0")](){const t=this[za("0x12")].plugins[za("0x28")]("TrackChangesEditing");if(this[za("0x12")][za("0xb")][za("0x2d")](za("0x17"))){for(const e of this.tableProperties)t[za("0x2b")](e,((t,n)=>{const o=this[za("0x12")][za("0x32")].document[za("0x1")][za("0x27")]()[za("0x2e")](za("0x29"));this[za("0x15")](e,[o],this.tableProperties,za("0x6"),t,n)}));t[za("0x18")].registerCustomCallback(za("0x10"),za("0x6"),za("0x34"),t[za("0x18")][za("0x24")]("formatBlock",null,"discard")),t[za("0x18")][za("0x9")](za("0x10"),za("0x6"),"discard",((t,e)=>this[za("0x23")](this[za("0x6")],t,e))),t._suggestionFactory[za("0x9")](za("0x10"),"tableProperties",za("0xc"),(()=>!1))}if(this[za("0x12")][za("0xb")][za("0x2d")](za("0xa"))){for(const e of this.tableCellProperties)t[za("0x2b")](e,((t,n)=>{const o=this[za("0x12")][za("0xb")].get(za("0x8"))[za("0x13")](this[za("0x12")][za("0x32")][za("0x2f")][za("0x1")]);this._handlePropertyChange(e,o,this[za("0x33")],za("0x33"),t,n)}));t._suggestionFactory.registerCustomCallback("formatBlock",za("0x33"),"accept",t[za("0x18")].getSuggestionCallback(za("0x10"),null,za("0x7"))),t._suggestionFactory[za("0x9")](za("0x10"),za("0x33"),za("0x7"),((t,e)=>this[za("0x23")](this[za("0x33")],t,e))),t[za("0x18")][za("0x9")](za("0x10"),za("0x33"),za("0xc"),(()=>!1))}t._descriptionFactory[za("0x1b")]((t=>this.handleSuggestionDescription(t)))}[za("0x15")](t,e,n,o,s,r){const i=this[za("0x12")][za("0xb")][za("0x28")]("TrackChangesEditing");this.editor.model.enqueueChange(r.batch,(()=>{for(const t of e)if(this[za("0x14")](t,o))s(r);else{const e={};for(const o of n){const n=t[za("0x20")](o);void 0!==n&&(e[o]=n)}s(r),i[za("0x31")](t,{commandParams:[e]},[],o)}}))}[za("0x23")](t,e,n){const o=e[0].start[za("0x26")],s=n.commandParams[0];this[za("0x12")][za("0x32")][za("0x1e")]((e=>{for(const n of t)void 0!==s[n]?e.setAttribute(n,s[n],o):e[za("0x25")](n,o)}))}[za("0x11")](t){if(t[za("0x30")])switch(t[za("0xf")]){case za("0x6"):return{type:za("0x37"),content:Yo(this[za("0x12")].locale,za("0x22"))};case"tableCellProperties":return{type:"format",content:Yo(this.editor[za("0x5")],za("0xe"))}}}[za("0x14")](t,e){const n=this[za("0x12")].plugins[za("0x28")](za("0x19"));for(const o of n[za("0x4")]({skipNotAttached:!0})){const n=o[za("0x16")]();if(o[za("0xf")]===e&&n===t)return o}return null}}const Va=["formatBlock:chain","length","ck-suggestion-marker","range","_createSuggestion","createSelection","markInlineFormat","addRange","always","isCollapsed","markerToData","lowest","buildSuggestion","some","requires","insertion","model","trackChanges.mergeNestedSuggestions","substr","rootName","item","formatInline:accept","high","mapper","parent","isMultiRange","editingDowncast","containsItem","trackChanges","CommentsRepository","size","element","isBefore","detach","consume","formatInline:chain","$marker","ready","deletion:accept","return","listenTo","getMultiRangeId","hasComments","execute","deletion:chain","addSuggestionData","containsRange","_splitMarkerName","toJSON","registerPostFixer","getFirstMarker","fromCharCode","getItems","getAttribute","filter","_setSuggestionRange","push","activeMarkers","ck-suggestion-marker-","_adapter","getUser","_suggestions","originalSuggestionId","suggestionLoaded","collaboration.channelId","head","stopListening","commentThread","rejected","removeMarker","isAtEnd","elementToElement","adapter","init","formatBlock:","oldRange","markMultiRangeInsertion","map","editing","highest","previous","_enabledCommands","_customCallbacks","markerNameToElements","markDeletion","multi","value","add","getAllAdjacentSuggestions","_defaultCallbacks","_addThreadToSuggestion","isLimit","consumable","suggestionChanged","setTo","low","$textProxy","acceptAllSuggestions","deletion:join","dataDowncast","clear","getCustomProperty","_breakSuggestionMarker","unbindElementFromMarkerName","update:suggestion","assign","@external","insert","includes","removeComment","writer","removeMarkers","type","addUser","accepted","Users","acceptSuggestion","getRanges","getFirstRange","suggestion","_registerDefaultCallbacks","PENDING_ACTION_SUGGESTION","commands","addMarkerName","locale","isIntersectingWithRange","isDocumentOperation","trackChanges.trackFormatChanges","before","deletion","_setSuggestionData","track-changes-adapter-already-set","deleteContent","author","markBlockFormat","name","getDifference","discardSelectedSuggestions","enableReadOnlyMode","showSuggestionHighlights","_saved","backward","_onDiscard","_model","getIntersection","createRangeIn","_isDataLoaded","skipNestingCheck","markerName","insertion:discard","track-changes-suggestion-data-mismatch","updateMarker","_updateSuggestionData","toViewElement","removeMarker:suggestion:formatBlock","values","keys","normal","getAncestors","marker-count","then","selection","fire","trackChangesCommand","suggestionUnloaded","subType","end","get","_getAuthorFromId","isInContent","hasSuggestion","removed","_joinSuggestions","addMarker:suggestion:formatBlock","_suggestionState","removeClass","nodeAfter","isArray","setSelection","formatInline:","splice","_rangeIsInLocalUserInsertion","getMarkers","authorName","containerElement","isOwn","notReady","after","creator","conversion","getSuggestionCallback","stop","data","addClass","_refreshSuggestionsChain","open","isUndo","forward","getSuggestion","root","from","isRemovable","isInsideObject","insertion:chain","define","_findSuggestions","getCommentThread","suggestion-type","PendingActions","splitPosition","isNextTo","isObject","_cutOutSuggestionMarker","suggestion:","options","getChanges","updateSuggestion","deletion:discard","getSuggestions","nodeBefore","upcast","containsRangeInObject","elementEnd","accept","has","next","getShiftedBy","_removeSuggestion","ck-suggestion-marker-formatBlock","insertion:accept","batch","delete","insertContent","addMarker","createPositionAt","discardSuggestion","insertion:","markMultiRangeBlockFormat","schema","createElement","split","isAfter","clone","multipleBlocks","formatBlock:accept","attributes","config","change","elementStart","_trackFormatChanges","for","track-changes-adapter-missing-getsuggestion","_getSuggestionData","markers","start","$graveyard","formatBlock:discard","sort","_editor","default","formatBlock","_suggestionFactory","markerToHighlight","position","refresh","editor","_addSuggestionMarker","getChangedMarkers","createPositionBefore","chain","differ","_checkSuggestionCorrectness","formatGroupId","howMany","ck-suggestion-marker--active","set","remove","enableCommand","_getExternalAuthor","containsPosition","fetchCommentThread","getRange","acceptSelectedSuggestions","addSuggestion","getNearestSelectionRange","unbind","data-suggestion","discardAllSuggestions","isBlock","bindElementToMarker","every","move","formatInline:join","tablePasteChainId","track-changes-command-not-found","markerReady","isAtStart","discard","newRange","formatInline","addCommentThread","_isForcedDefaultExecutionBlock","applyOperation","track-changes-suggestion-not-found","createRange","external:","forceDefaultExecution","createdAt","isSelectable","dataReady","isEqual","plugins","document","deletion:","hasCommentThread","markInsertion","resolve","_commentsRepository","_mergeNestedSuggestions","join","_joinWithAdjacentSuggestions"];var Ka,qa;Ka=Va,qa=407,function(t){for(;--t;)Ka.push(Ka.shift())}(++qa);const Xa=function(t,e){return Va[t-=0]};class $a extends t.Plugin{static get[Xa("0xf9")](){return[Xa("0x108"),r.Users,t.PendingActions,cs,ms,Rs,ws,Bs,zs,$s,er,ir,ja,ur,pr,yr,Sr,Fr,Gr,Kr,Qr,ni,xi,ui,pi,Ci,Ri,wi,ji,Wi,$i,tx,rx,dx,px,Cx,Sx,Mx,Bx,Wx,$x,Oa,na,ca,Ea,Wa,ma,ka,Ia]}static get pluginName(){return"TrackChangesEditing"}constructor(t){function e(t){return t[Xa("0x138")]((t=>String[Xa("0x11e")](t)))[Xa("0xe9")]("")}super(t),this[Xa("0xbd")](Xa("0x124"),[]),this.on("change:activeMarkers",((e,n,o,s)=>{this[Xa("0x39")][Xa("0xa1")]((()=>{for(const e of[...s,...o])this[Xa("0x39")][Xa("0xa7")].has(e)&&t[Xa("0x139")].reconvertMarker(e)}))})),this._descriptionFactory=new ss(this[Xa("0xb3")].model.schema,this.editor.locale),this[Xa("0x126")]=null,this[Xa("0xaf")]=new Ja(this[Xa("0xb3")]),this[Xa("0x128")]=new Map,this[Xa("0xe7")]=t[Xa("0xe1")][Xa("0x51")](Xa("0x108")),this[Xa("0x13c")]=new Set,this[Xa("0x39")]=this[Xa("0xb3")][Xa("0xfb")],this[Xa("0x58")]=new WeakMap,this._isForcedDefaultExecutionBlock=!1,t[Xa("0xa0")][Xa("0x76")](Xa("0x29"),Xa("0xad")),this[Xa("0xa3")]=t[Xa("0xa0")][Xa("0x51")](Xa("0x29")),t[Xa("0xa0")][Xa("0x76")](Xa("0xfc"),!0),this._mergeNestedSuggestions=t[Xa("0xa0")][Xa("0x51")](Xa("0xfc")),this[Xa("0x4d")]=new u(t,this[Xa("0x13c")]),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,50,48,53,52])}[Xa("0x134")](){const t=this.editor;t[Xa("0x67")][Xa("0xa4")](Xa("0x105"))[Xa("0xb0")]({model:Xa("0x21"),view:t=>{const{id:e,type:n}=this._splitMarkerName(t[Xa("0x3e")]),o=[Xa("0xed"),Xa("0x125")+n];let s=3e3;return this[Xa("0x124")][Xa("0x16")](t[Xa("0x3e")])&&(o[Xa("0x123")](Xa("0xbc")),s=3010),Xa("0x2b")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[Xa("0x67")][Xa("0xa4")](Xa("0xd"))[Xa("0x1")]((e=>{e.on("addMarker:suggestion",((e,n,o)=>{if(!o.options.showSuggestionHighlights)return;const s=n[Xa("0xff")];if(!s)return;const r=o.mapper[Xa("0x43")](s);t[Xa("0xfb")][Xa("0x98")][Xa("0x7d")](s)&&r&&!r.getCustomProperty("widget")&&r.is(Xa("0x62"))&&(0,x.toWidget)(r,o[Xa("0x18")])}),{priority:Xa("0x101")})})),t.conversion[Xa("0xa4")]("dataDowncast").markerToHighlight({model:Xa("0x21"),view:(t,e)=>{if(!e[Xa("0x80")][Xa("0x35")])return null;const{type:n}=this[Xa("0x11a")](t[Xa("0x3e")]);return{classes:[Xa("0xed"),Xa("0x125")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[Xa("0xff")])return;if(o[Xa("0xff")].is(Xa("0x4b")))return void s[Xa("0x6")].consume(o.item,n[Xa("0x31")]);const r=s[Xa("0x102")][Xa("0x43")](o[Xa("0xff")]);if(!o[Xa("0xff")].is(Xa("0x10a"))||!t[Xa("0xfb")][Xa("0x98")][Xa("0xca")](o[Xa("0xff")])||r.getCustomProperty("addHighlight"))return;const{id:i}=this[Xa("0x11a")](o[Xa("0x3e")]);s[Xa("0x18")].addClass([Xa("0xed"),Xa("0x8e")],r),s[Xa("0x18")].setAttribute(Xa("0xc8"),i,r),s[Xa("0x102")][Xa("0xcb")](r,o.markerName),e&&(this[Xa("0x124")][Xa("0x16")](o[Xa("0x3e")])?s[Xa("0x18")][Xa("0x6b")](Xa("0xbc"),r):s[Xa("0x18")][Xa("0x59")]("ck-suggestion-marker--active",r));for(const e of t.model[Xa("0x3b")](o.item)[Xa("0x11f")]())s[Xa("0x6")][Xa("0x10d")](e,n.name);s[Xa("0x6")].consume(o[Xa("0xff")],n[Xa("0x31")])};t[Xa("0x67")].for(Xa("0xd"))[Xa("0x1")]((t=>{t.on(Xa("0x57"),((t,e,o)=>{o.options[Xa("0x35")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:Xa("0x13a")})})),t[Xa("0x67")][Xa("0xa4")]("dataDowncast")[Xa("0xf5")]({model:Xa("0x21"),view:(t,e)=>e.options.showSuggestionHighlights?null:{group:"suggestion",name:t[Xa("0xfd")](11)}}),t[Xa("0x67")].for(Xa("0x86"))[Xa("0x132")]({view:{name:Xa("0x21"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=Xa("0x7f")+t.getAttribute(Xa("0x79"))+":"+t[Xa("0x120")]("id");return t[Xa("0x120")](Xa("0x49"))&&(n+=":"+t[Xa("0x120")](Xa("0x49"))),e[Xa("0x99")](Xa("0x10f"),{"data-name":n})}}),t[Xa("0x67")][Xa("0xa4")](Xa("0x86")).dataToMarker({view:Xa("0x21")}),t[Xa("0x67")][Xa("0xa4")](Xa("0x105")).add((t=>{t.on("addMarker:suggestion:formatBlock",n(),{priority:"high"})})),t.conversion[Xa("0xa4")](Xa("0x105"))[Xa("0x1")]((t=>{t.on(Xa("0x44"),((t,e,n)=>{const o=n[Xa("0x102")][Xa("0x13e")](e.markerName);if(o)for(const t of o)t[Xa("0xf")]("addHighlight")||(n[Xa("0x18")][Xa("0x59")]([Xa("0xed"),"ck-suggestion-marker-formatBlock",Xa("0xbc")],t),n[Xa("0x18")].removeAttribute(Xa("0xc8"),t),n[Xa("0x102")][Xa("0x11")](t,e[Xa("0x3e")]))}),{priority:Xa("0x101")})})),t.model[Xa("0xe2")][Xa("0x11c")]((e=>{let n=!1;const o=Array.from(t[Xa("0xfb")][Xa("0xe2")][Xa("0xb8")].getChangedMarkers()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[Xa("0x11a")](x);if(Xa("0x21")!==o)continue;const d=this._suggestions[Xa("0x51")](l);if(null!=a[Xa("0xd4")])if(Xa("0xd5")==c&&(n=n||Ya(a.newRange,x,e,t.model.schema)),a.newRange[Xa("0xf4")]||Xa("0xa9")==a.newRange[Xa("0x71")][Xa("0xfe")]||Xa("0xae")==c&&!ec(a.newRange)||Xa("0x2b")==c&&(Za(i=a.newRange)||(r=i)[Xa("0xa8")][Xa("0x103")]==r.end[Xa("0x85")]&&r[Xa("0xa8")][Xa("0x131")]))e[Xa("0x130")](x),n=!0;else{if(!d||!d[Xa("0x53")])continue;s[Xa("0x1")](d)}}var r,i;return s[Xa("0x109")]>0&&(n=!!this[Xa("0xea")](s)||n),n})),t[Xa("0xfb")][Xa("0xe2")].registerPostFixer((e=>{let n=!1;for(const o of t.model.document.differ[Xa("0x81")]()){if(Xa("0x15")!=o[Xa("0x1a")])continue;const s=o[Xa("0xb1")][Xa("0x8c")](o[Xa("0xec")]);if(s.isAtEnd)for(const r of this._suggestions[Xa("0x45")]()){if(r[Xa("0x104")]||!r[Xa("0x53")])continue;if("formatBlock"!=r.type)continue;const i=r[Xa("0x20")]();if(i[Xa("0xa8")][Xa("0x103")]!=i.end[Xa("0x103")]&&i[Xa("0x50")].isEqual(o.position)){const o=t[Xa("0xfb")].createRange(i[Xa("0xa8")],s);e[Xa("0x41")](r.getFirstMarker(),{range:o}),n=!0}}}return n})),t[Xa("0xfb")][Xa("0xa7")].on(Xa("0x12"),((t,e,n)=>{if(null==n){const{id:t}=this[Xa("0x11a")](e[Xa("0x31")]),n=this._suggestions[Xa("0x51")](t);n&&n[Xa("0x25")](e.name)}})),t[Xa("0xfb")][Xa("0xe2")].on("change:data",(()=>{const e=Array.from(t[Xa("0xfb")][Xa("0xe2")][Xa("0xb8")][Xa("0xb5")]()).filter((t=>"suggestion"===this[Xa("0x11a")](t[Xa("0x31")]).group));if(0===e[Xa("0xec")])return;e[Xa("0xab")](((t,e)=>{const n=t[Xa("0x6a")][Xa("0x136")],o=e[Xa("0x6a")][Xa("0x136")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[Xa("0xa8")].isBefore(o.start)?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[Xa("0x11a")](t);if(null===s[Xa("0x136")]){const e=this._handleNewSuggestionMarker(t);o[Xa("0x1")](e)}else{const t=this._suggestions[Xa("0x51")](e);null!==s[Xa("0xd4")]||t[Xa("0x53")]?(n[Xa("0x1")](t[Xa("0x12c")]),o.add(t)):this[Xa("0x8d")](t)}}o[Xa("0x109")]>0&&this._refreshSuggestionsChain(o);for(const t of n)this[Xa("0x4c")](Xa("0x7"),t)})),t[Xa("0xfb")].on(Xa("0xd8"),((e,n)=>{const o=n[0];if(!this[Xa("0x128")][Xa("0x109")])return;if(!o[Xa("0x28")])return;if(o[Xa("0x90")][Xa("0x6e")]||!o.batch.isLocal)return;let s,r;switch(o.type){case Xa("0x15"):s=t[Xa("0xfb")][Xa("0x94")](o[Xa("0xb1")]),r=s[Xa("0x8c")](o[Xa("0xbb")]);break;case Xa("0x9a"):s=t[Xa("0xfb")].createPositionAt(o[Xa("0x7b")]),r=t[Xa("0xfb")][Xa("0x94")](o.moveTargetPosition);break;case Xa("0xcd"):s=t[Xa("0xfb")][Xa("0x94")](o.targetPosition),r=s[Xa("0x8c")](o[Xa("0xbb")]);break;default:return}const i=t[Xa("0xfb")][Xa("0xda")](s,r);t[Xa("0xfb")][Xa("0xa1")]((()=>{for(const{suggestion:t,meta:e}of this._findSuggestions(i)){if(t[Xa("0x104")])continue;if(Xa("0xd5")==t[Xa("0x1a")])continue;const n=t[Xa("0x6a")]&&t[Xa("0x6a")][Xa("0x9d")];(Xa("0xae")!=t[Xa("0x1a")]||Xa("0x9a")==o[Xa("0x1a")]&&!n)&&(e.containsRangeInObject||Xa("0xfa")==t[Xa("0x1a")]&&e.isOwn||t.getFirstRange()[Xa("0x119")](i)&&this[Xa("0x10")](t,s,r))}}))}),{priority:Xa("0xf6")}),t[Xa("0xfb")].on(Xa("0x2e"),((e,n)=>{const o=n[0],s=n[1];if(s&&s[Xa("0xdc")])return;if(this[Xa("0xd7")])return;if(!this[Xa("0x4d")][Xa("0x0")])return;if(o[Xa("0xf4")])return;const r=t.model[Xa("0x98")],{start:i,end:x}=o.getFirstRange(),a=i[Xa("0x5a")]&&r[Xa("0x5")](i.nodeAfter)?null:r[Xa("0xc6")](i,Xa("0x6f")),c=x.nodeBefore&&r[Xa("0x5")](x[Xa("0x85")])?null:r[Xa("0xc6")](x,Xa("0x37")),l=t[Xa("0xfb")][Xa("0xda")](a?a[Xa("0xa8")]:i,c?c[Xa("0x50")]:x);t[Xa("0xfb")][Xa("0xa1")]((e=>{this[Xa("0x13f")](l);const n=t[Xa("0xfb")].schema.getNearestSelectionRange(l[Xa("0xa8")]);o.is("documentSelection")?e[Xa("0x5c")](n):o[Xa("0x8")](n)})),e.stop()}),{priority:e.priorities[Xa("0x47")]+10}),t.model.on(Xa("0x92"),((e,n)=>{const o=n[n[Xa("0xec")]-1];o&&o[Xa("0xdc")]||this[Xa("0xd7")]||this[Xa("0x4d")][Xa("0x0")]&&(t[Xa("0xfb")][Xa("0xa1")]((()=>{let o=t.model[Xa("0x92")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[Xa("0x112")]=o[Xa("0x9c")]();const s=o[Xa("0x50")][Xa("0x85")],r=t[Xa("0xfb")][Xa("0x98")];s&&r.isBlock(s)&&!r.isObject(s)&&(o=t[Xa("0xfb")][Xa("0xda")](o[Xa("0xa8")],t[Xa("0xfb")][Xa("0x94")](s,Xa("0x50")))),this[Xa("0xe5")](o)})),e[Xa("0x69")]())}),{priority:"high"}),this[Xa("0xb3")][Xa("0x24")][Xa("0x1")](Xa("0x107"),this[Xa("0x4d")]),this[Xa("0xbf")](Xa("0x107"));const o=new p(t,this[Xa("0x128")]);t[Xa("0x24")][Xa("0x1")](Xa("0x1e"),o),this.enableCommand("acceptSuggestion");const s=new C(t,this[Xa("0x128")]);t[Xa("0x24")][Xa("0x1")](Xa("0x95"),s),this[Xa("0xbf")](Xa("0x95")),t[Xa("0x24")][Xa("0x1")](Xa("0xb"),new F(t,o,this[Xa("0x128")])),this[Xa("0xbf")]("acceptAllSuggestions"),t.commands[Xa("0x1")](Xa("0xc9"),new F(t,s,this._suggestions)),this[Xa("0xbf")](Xa("0xc9")),t[Xa("0x24")][Xa("0x1")](Xa("0xc4"),new U(t,o,this[Xa("0x128")])),this[Xa("0xbf")](Xa("0xc4")),t[Xa("0x24")][Xa("0x1")](Xa("0x33"),new U(t,s,this[Xa("0x128")])),this.enableCommand(Xa("0x33"));const r=t[Xa("0xe1")][Xa("0x51")](Xa("0x108"));this[Xa("0x113")](r,"addComment",((t,{threadId:e})=>{const n=this[Xa("0x128")][Xa("0x51")](e);n&&n.commentThread&&1===n[Xa("0x12e")][Xa("0xec")]&&this[Xa("0x42")](e,{hasComments:!0})}),{priority:Xa("0x9")}),this[Xa("0x113")](r,Xa("0x17"),((t,{threadId:e})=>{const n=this[Xa("0x128")][Xa("0x51")](e);n&&n.commentThread&&!n[Xa("0x12e")][Xa("0xec")]&&this[Xa("0x42")](e,{hasComments:!1})}),{priority:Xa("0x9")})}set[Xa("0x133")](t){if(this[Xa("0x126")])throw new e.CKEditorError(Xa("0x2d"),this);this[Xa("0x126")]=t}get[Xa("0x133")](){return this[Xa("0x126")]}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[Xa("0x128")][Xa("0x45")]())t&&!e[Xa("0x53")]||n[Xa("0x123")](e);return e?n[Xa("0x138")]((t=>t[Xa("0x11b")]())):n}[Xa("0x70")](t){const n=this[Xa("0x128")].get(t);if(!n)throw new e.CKEditorError(Xa("0xd9"),this);return n}[Xa("0x54")](t){return this._suggestions[Xa("0x8a")](t)}addSuggestionData(t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[Xa("0x1a")][Xa("0x9a")](":"),i=this[Xa("0x128")][Xa("0x51")](n)||this[Xa("0xef")](s,r,n,e,o);if(this[Xa("0x4")](i),this[Xa("0xb9")](i,s,r||null,e),i[Xa("0xdd")]=t[Xa("0xdd")],i[Xa("0x3c")]=!0,o&&o["@external"]){const t=o[Xa("0x14")],e=this[Xa("0xc0")](t[Xa("0x61")]);i.authoredAt=t[Xa("0xdd")],i[Xa("0x2f")]=e,i.isExternal=!0}else i.authoredAt=t[Xa("0xdd")];switch(t[Xa("0x6a")]&&(i[Xa("0x6a")]=t[Xa("0x6a")]),t[Xa("0x9f")]&&(i[Xa("0x9f")]=t[Xa("0x9f")]),this[Xa("0x126")]&&this[Xa("0x126")][Xa("0xc5")]||(i[Xa("0x36")]=!0),this[Xa("0x58")][Xa("0x51")](i)){case Xa("0x64"):this[Xa("0x58")][Xa("0xbd")](i,Xa("0xdf"));break;case Xa("0xd1"):i[Xa("0x53")]?(this[Xa("0x6c")](new Set([i])),this[Xa("0xea")](new Set([i])),this[Xa("0x58")].set(i,"ready"),this[Xa("0x4c")](Xa("0x12a"),i)):this[Xa("0x58")][Xa("0xbd")](i,"removed")}return i}[Xa("0x1e")](t){this[Xa("0xdc")]((()=>{this.editor[Xa("0xfb")].change((()=>{for(const e of t[Xa("0x2")]())e[Xa("0x89")]()}))}))}discardSuggestion(t){this[Xa("0xdc")]((()=>{this.editor[Xa("0xfb")][Xa("0xa1")]((()=>{for(const e of t[Xa("0x2")]())e.discard()}))}))}enableCommand(t,n){const o=this.editor.commands[Xa("0x51")](t);if(!o)throw new e.CKEditorError(Xa("0xd0"),this,{commandName:t});this._enabledCommands[Xa("0x1")](o),n&&o.on("execute",((t,e)=>{this[Xa("0x4d")].value&&(this._isForcedDefaultExecutionBlock||e[Xa("0xec")]>0&&e[e[Xa("0xec")]-1]&&e[e[Xa("0xec")]-1][Xa("0xdc")]||(t.return=n(((...t)=>o[Xa("0x116")](...t,{forceDefaultExecution:!0})),...e),t[Xa("0x69")]()))}),{priority:Xa("0x101")})}[Xa("0xdc")](t){let n,o;const s=this._isForcedDefaultExecutionBlock;this._isForcedDefaultExecutionBlock=!0;try{n=t()}catch(t){o=t}return s||(this[Xa("0xd7")]=!1),o&&e.CKEditorError.rethrowUnexpectedError(o,this),n}[Xa("0xe5")](t,n=null,o={}){if(t[Xa("0xf4")])return null;const s=this.editor.plugins[Xa("0x51")](Xa("0x1d")).me;for(const{suggestion:e,meta:s}of this[Xa("0x77")](t,Xa("0xfa")))if(s[Xa("0x63")]){if(!s[Xa("0x7c")]){if(s[Xa("0x87")]){if(!this[Xa("0xe8")]||!rc(e,o))continue;return e}if(rc(e,o))return e;this._breakSuggestionMarker(e,t[Xa("0xa8")],t[Xa("0x50")]);break}if(n==e[Xa("0x4f")]&&rc(e,o)){const n=e[Xa("0x20")]();return n[Xa("0xa8")][Xa("0xe0")](t[Xa("0x50")])?this._setSuggestionRange(e,this._model[Xa("0xda")](t.start,n.end)):this._setSuggestionRange(e,this._model[Xa("0xda")](n[Xa("0xa8")],t[Xa("0x50")])),e}}const r=(0,e.uid)(),i=s.id,x=n?Xa("0x96")+n:Xa("0xfa"),a=this[Xa("0x2c")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[Xa("0xb4")](x,r,i,t),a}[Xa("0x137")](t,n=Xa("0x140"),o={}){const s=this[Xa("0xb3")][Xa("0xe1")][Xa("0x51")](Xa("0x1d")).me,r=this[Xa("0xaf")].getSuggestionCallback("insertion",n,Xa("0xe9"));for(const e of this[Xa("0x84")]())if(e[Xa("0x2f")].id==s.id&&Xa("0xfa")==e[Xa("0x1a")]&&e[Xa("0x4f")]==n&&rc(e,o)&&(r(e[Xa("0x1f")](),t)||r(t,e[Xa("0x1f")]()))){for(const n of t)e[Xa("0xf2")](n);return e}for(const{suggestion:e,meta:n}of this[Xa("0x77")](t,"insertion")){if(!n.isOwn)continue;if(!this[Xa("0xe8")]&&n[Xa("0x87")])continue;if(!rc(e,o))continue;let s=!0;for(const n of e.getRanges())for(const e of t)if(!n[Xa("0x119")](e)){s=!1;break}if(s)return e}const i=(0,e.uid)(),x=s.id,a=Xa("0x96")+n,c=this[Xa("0x2c")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[Xa("0xb4")](a,i,x,e,Zo.getMultiRangeId());return c}[Xa("0xf1")](t,n,o=null,s={}){if(o=o||tc(n),t[Xa("0xf4")])return null;if("never"===this._trackFormatChanges){const e=this[Xa("0xaf")][Xa("0x68")](Xa("0xd5"),o,Xa("0x89"));return this[Xa("0xdc")]((()=>e([t],n,s))),null}const r=this.editor[Xa("0xe1")].get("Users").me,i=[];if(Xa("0xf3")!==this._trackFormatChanges)for(const{suggestion:e,meta:n}of this._findSuggestions(t,Xa("0xfa")))n.isOwn&&!n[Xa("0x74")]&&i[Xa("0x123")](...e[Xa("0x1f")]());const x=function(t,e){const n=[];for(const o of e){const e=t.getIntersection(o);e&&n[Xa("0x123")](e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n.length;){const o=n[e][Xa("0x32")](t);n[Xa("0x5e")](e,1,...o),e+=o[Xa("0xec")]}}return n}(t,i);x[Xa("0xec")]&&this[Xa("0x39")][Xa("0xa1")]((()=>{for(const t of x){const e=this[Xa("0xaf")][Xa("0x68")](Xa("0xd5"),o,"accept");this[Xa("0xdc")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t[Xa("0xa8")],a=t[Xa("0x50")];for(const{suggestion:e,meta:n}of this._findSuggestions(t,"formatInline")){if(!n[Xa("0x63")])continue;if(e[Xa("0x4f")]!=o)continue;if(!rc(e,s))continue;const r=e[Xa("0x20")]();if(r[Xa("0x119")](t,!0))return null;x=x[Xa("0x10b")](r.start)?x:r[Xa("0xa8")],a=a.isAfter(r.end)?a:r[Xa("0x50")],i?r[Xa("0xa8")][Xa("0x10b")](i.getFirstRange().start)?(i[Xa("0x19")](),i=e):e.removeMarkers():i=e}const c=this[Xa("0x39")][Xa("0xda")](x,a);if(i)this._setSuggestionRange(i,c);else{const t=(0,e.uid)(),i=r.id;this[Xa("0x2c")]({id:t,type:Xa("0x5d")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[Xa("0xb4")](Xa("0x5d")+o,t,i,c)}}return null}[Xa("0x30")](t,n,o=[],s=null,r={}){n[Xa("0xba")]||(n[Xa("0xba")]=n.commandName),n[Xa("0x9d")]=t.is(Xa("0xee")),s=s||tc(n);const i=o.map((t=>nc(t,this[Xa("0x39")]))),x=t.is(Xa("0xee"))?t:nc(t,this[Xa("0x39")]);if("never"===this[Xa("0xa3")]){const t=this._suggestionFactory[Xa("0x68")](Xa("0xae"),s,Xa("0x89"));return this[Xa("0xdc")]((()=>t([x],n,r))),null}i[Xa("0x123")](x);let a=!0;for(const t of i)if(!this._rangeIsInLocalUserInsertion(t)){a=!1;break}if(a&&"always"!==this._trackFormatChanges){const t=this._suggestionFactory[Xa("0x68")](Xa("0xae"),s,Xa("0x89"));return this[Xa("0xdc")]((()=>t([x],n,r))),null}let c=null,l=x[Xa("0xa8")],d=x[Xa("0x50")];for(const{suggestion:t,meta:e}of this[Xa("0x77")](x,Xa("0xae"))){if(!e[Xa("0x63")])continue;if(e.isNextTo||e[Xa("0x87")]||e[Xa("0x74")])continue;if(t[Xa("0x6a")][Xa("0xba")]!=n[Xa("0xba")])continue;if(!rc(t,r))continue;const o=t[Xa("0x20")]();if(t[Xa("0x4f")]==s){if(o.containsRange(x,!0))return null;l=l[Xa("0x10b")](o.start)?l:o[Xa("0xa8")],d=d.isAfter(o.end)?d:o[Xa("0x50")],c?o[Xa("0xa8")][Xa("0x10b")](c[Xa("0x20")]()[Xa("0xa8")])?(c[Xa("0x19")](),c=t):t[Xa("0x19")]():c=t}else{const e=x[Xa("0x3a")](o);this[Xa("0x7e")](t,e)}}const u=this[Xa("0xb3")][Xa("0xe1")][Xa("0x51")]("Users").me,g=(0,e.uid)(),m=u.id;if(c)return this[Xa("0x122")](c,this._model[Xa("0xda")](l,d)),c;{const t=this[Xa("0x2c")]({id:g,type:Xa("0x135")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this[Xa("0xb4")](Xa("0x135")+s,g,m,this[Xa("0x39")][Xa("0xda")](l,d)),t}}[Xa("0x97")](t,n,o=[],s=null,r={}){n[Xa("0xba")]||(n[Xa("0xba")]=n.commandName);const i=t[0];n[Xa("0x9d")]=i.is("range"),s=s||tc(n);const x=o[Xa("0x138")]((t=>nc(t,this._model))),a=i.is("range")?t:t[Xa("0x138")]((t=>nc(t,this._model)));if("never"===this[Xa("0xa3")]){const t=this[Xa("0xaf")][Xa("0x68")](Xa("0xae"),s,"accept");return this.forceDefaultExecution((()=>t(a,n,r))),null}x.push(...a);let c=!0;for(const t of x)if(!this[Xa("0x5f")](t)){c=!1;break}if(c&&"always"!==this[Xa("0xa3")]){const t=this[Xa("0xaf")][Xa("0x68")]("formatBlock",s,Xa("0x89"));return this.forceDefaultExecution((()=>t(a,n,r))),null}const l=this[Xa("0xb3")][Xa("0xe1")][Xa("0x51")](Xa("0x1d")).me;for(const t of this[Xa("0x84")]()){if(t[Xa("0x2f")].id!=l.id)continue;if("formatBlock"!=t[Xa("0x1a")]||t[Xa("0x6a")][Xa("0xba")]!=n[Xa("0xba")])continue;if(!rc(t,r))continue;const e=t[Xa("0x4f")]==s;for(let n=0;n<a[Xa("0xec")];n++){const o=a[n];for(const s of t[Xa("0x60")]()){const r=s[Xa("0xc3")]();if(o[Xa("0xe0")](r)){e?(a.splice(n,1),n--):t.removeMarker(s[Xa("0x31")]);break}}}}if(0==a[Xa("0xec")])return null;const d=this[Xa("0xaf")][Xa("0x68")](Xa("0xae"),s,"join");for(const t of this[Xa("0x84")]())if(t[Xa("0x2f")].id==l.id&&"formatBlock"==t[Xa("0x1a")]&&t.data[Xa("0xba")]==n[Xa("0xba")]&&t.subType==s&&rc(t,r)&&(d(t.getRanges(),a)||d(a,t[Xa("0x1f")]()))){for(const e of a)t[Xa("0xf2")](e);return t}const u=(0,e.uid)(),g=l.id,m=Xa("0x135")+s,f=this[Xa("0x2c")]({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[Xa("0xb4")](m,u,g,t,Zo[Xa("0x114")]());return f}[Xa("0x13f")](t,n=null,o={}){if(t[Xa("0xf4")])return null;const s=this.editor[Xa("0xe1")][Xa("0x51")](Xa("0x1d")).me,r=new i.LiveRange(t.start,t.end);for(const{suggestion:t,meta:e}of this[Xa("0x77")](r,"insertion"))if(e[Xa("0x63")]&&!e[Xa("0x7c")])if(t[Xa("0x104")]){const e=t[Xa("0x1f")]()[Xa("0x121")]((t=>"$graveyard"!=t[Xa("0x71")][Xa("0xfe")]));if(e[Xa("0xcc")]((t=>r[Xa("0x119")](t,!0)))&&t[Xa("0xd3")](),e.some((t=>t[Xa("0x119")](r,!0)))){const t=this[Xa("0xaf")].getSuggestionCallback(Xa("0x2b"),n,Xa("0x89"));return this.forceDefaultExecution((()=>t([r],null,o))),null}}else{const e=r[Xa("0x3a")](t[Xa("0x20")]());null!==e&&t[Xa("0x38")]([e],null,o)}if(r[Xa("0x10c")](),r[Xa("0xf4")]||"$graveyard"==r.root[Xa("0xfe")])return null;let x=null,a=r[Xa("0xa8")],c=r[Xa("0x50")];const l=this[Xa("0x77")](r,Xa("0x2b"));for(const{suggestion:t,meta:e}of l){const n=this[Xa("0x39")][Xa("0xda")](a,c);if(e[Xa("0x63")]&&(this[Xa("0xe8")]||!e[Xa("0x87")]&&!e[Xa("0x74")]))if(t[Xa("0x104")]){if(!rc(t,o))continue;let e=!0;for(const o of t[Xa("0x1f")]()){if(o[Xa("0x119")](n,!0))return t;n.containsRange(o)||(e=!1)}e&&t[Xa("0xd3")]()}else{const e=t[Xa("0x20")]();if(e[Xa("0x119")](n,!0))return t;if(!rc(t,o)){n[Xa("0x119")](e)?t.removeMarkers():e[Xa("0xc1")](a)?a=e[Xa("0x50")]:e[Xa("0xc1")](c)&&(c=e[Xa("0xa8")]);continue}a=a[Xa("0x10b")](e[Xa("0xa8")])?a:e.start,c=c[Xa("0x9b")](e[Xa("0x50")])?c:e.end,o=Object[Xa("0x13")]({},t[Xa("0x9f")]),x?e[Xa("0xa8")][Xa("0x10b")](x.getFirstRange()[Xa("0xa8")])?(x[Xa("0x19")](),x=t):t[Xa("0x19")]():x=t}}if(x)return this[Xa("0x122")](x,this._model.createRange(a,c)),x;{const t=(0,e.uid)(),r=this[Xa("0x39")].createRange(a,c),i=s.id,x=n?Xa("0xe3")+n:Xa("0x2b"),l=this[Xa("0x2c")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[Xa("0xb4")](x,t,i,r),l}}markMultiRangeDeletion(t,n="multi",o={}){const s=this.editor[Xa("0xe1")][Xa("0x51")](Xa("0x1d")).me,r=t.map((t=>new i.LiveRange(t[Xa("0xa8")],t.end))),x=new Set;for(const{suggestion:t,meta:e}of this[Xa("0x77")](r,Xa("0xfa")))e[Xa("0x63")]&&!e[Xa("0x7c")]&&x[Xa("0x1")](t);for(const e of x)if(e[Xa("0x104")]){const s=e[Xa("0x1f")]();if((!e[Xa("0x9f")]||!e[Xa("0x9f")][Xa("0x3d")])&&s[Xa("0xcc")]((t=>r.some((e=>e[Xa("0x119")](t,!0)))))&&e[Xa("0xd3")](),r.every((t=>s[Xa("0xf8")]((e=>e.containsRange(t,!0)))))){const e=this._suggestionFactory[Xa("0x68")](Xa("0x2b"),n,Xa("0x89"));return this[Xa("0xdc")]((()=>e(t,null,o))),null}}else{const t=e[Xa("0x20")]();if(r.some((e=>e.containsRange(t,!0)))&&e[Xa("0xd3")](),r.every((e=>t[Xa("0x119")](e,!0)))){const t=this[Xa("0xaf")].getSuggestionCallback(Xa("0x2b"),n,"accept");return this[Xa("0xdc")]((()=>t(r,null,o))),null}}const a=this[Xa("0xaf")].getSuggestionCallback(Xa("0x2b"),n,"join");let c=null;for(const t of this.getSuggestions())if(t[Xa("0x2f")].id==s.id&&t[Xa("0x53")]&&Xa("0x2b")==t[Xa("0x1a")]&&t[Xa("0x4f")]==n&&rc(t,o)&&(a(t[Xa("0x1f")](),r)||a(r,t[Xa("0x1f")]())))if(c){if(t[Xa("0x12e")]&&t[Xa("0x12e")][Xa("0xec")])continue;for(const e of t[Xa("0x1f")]())c[Xa("0x27")](e)||c.addRange(e);t.removeMarkers()}else{c=t;for(const e of r)t[Xa("0x27")](e)||t[Xa("0xf2")](e)}if(c)return c;x[Xa("0xe")]();for(const{suggestion:t,meta:e}of this[Xa("0x77")](r,Xa("0x2b")))e.isOwn&&(this._mergeNestedSuggestions||!e[Xa("0x87")]&&!e[Xa("0x74")])&&rc(t,o)&&x[Xa("0x1")](t);for(const t of x){const e=t[Xa("0x1f")]();if((!o||!o[Xa("0x3d")])&&r[Xa("0xcc")]((t=>e.some((e=>e[Xa("0x119")](t,!0))))))return t;(!t[Xa("0x9f")]||!t[Xa("0x9f")][Xa("0x3d")])&&e[Xa("0xcc")]((t=>r.some((e=>e[Xa("0x119")](t,!0)))))&&t[Xa("0xd3")]()}const l=(0,e.uid)(),d=s.id,u=Xa("0xe3")+n,g=this[Xa("0x2c")]({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of r)t[Xa("0x10c")](),t[Xa("0xf4")]||"$graveyard"==t[Xa("0x71")][Xa("0xfe")]||this[Xa("0xb4")](u,l,d,t,Zo[Xa("0x114")]());return g}[Xa("0x122")](t,e){const n=t[Xa("0x11d")]();this[Xa("0x39")][Xa("0xa1")]((t=>{t[Xa("0x41")](n,{range:e})}))}[Xa("0x4")](t){const e=t.id,n=this[Xa("0xb3")].config[Xa("0x51")](Xa("0x12b"));this[Xa("0xe7")][Xa("0xe4")](e)||this._commentsRepository[Xa("0xd6")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[Xa("0xe7")][Xa("0x78")](e);o[Xa("0xc7")](Xa("0x73")),o[Xa("0x73")]=!1,t.commentThread=o}[Xa("0xb9")](t,n,o,s){if(t[Xa("0x1a")]!=n||t[Xa("0x4f")]!=o||t[Xa("0x66")].id!=s)throw this[Xa("0xb3")][Xa("0x34")](Xa("0x40")),new e.CKEditorError(Xa("0x40"),this)}[Xa("0x7e")](t,n){const o=t[Xa("0x20")]();if(n[Xa("0xe0")](o))t[Xa("0x19")]();else if(o[Xa("0x119")](n)){const s=this[Xa("0x39")][Xa("0x94")](n[Xa("0xa8")].nodeBefore,Xa("0x50"));this[Xa("0x122")](t,this[Xa("0x39")].createRange(o.start,s));const r=(0,e.uid)(),i=t[Xa("0x66")].id,x=t[Xa("0x1a")]+":"+t[Xa("0x4f")];this[Xa("0x2c")]({id:r,type:x,createdAt:new Date,authorId:i,data:t.data,attributes:t.attributes});const a=this[Xa("0x39")].createPositionAt(n[Xa("0x50")][Xa("0x103")],"after"),c=this[Xa("0x39")][Xa("0xda")](a,o[Xa("0x50")]);this[Xa("0xb4")](x,r,i,c)}else if(o.containsPosition(n.start)){const e=this[Xa("0x39")].createPositionAt(n[Xa("0xa8")][Xa("0x85")],"end");this[Xa("0x122")](t,this[Xa("0x39")][Xa("0xda")](o.start,e))}else{const e=this._model.createPositionAt(n[Xa("0x50")][Xa("0x103")],Xa("0x65"));this._setSuggestionRange(t,this[Xa("0x39")][Xa("0xda")](e,o.end))}}[Xa("0x5f")](t){for(const{suggestion:e,meta:n}of this[Xa("0x77")](t,"insertion")){if(!n[Xa("0x63")])continue;const o=e[Xa("0x1f")]();for(const e of o)if(!t[Xa("0x32")](e).length)return!0}return!1}[Xa("0x52")](t){const n=this[Xa("0xb3")].plugins[Xa("0x51")]("Users").getUser(t);if(!n)throw new e.CKEditorError("track-changes-user-not-found",this);return n}[Xa("0xc0")](t){const e=this[Xa("0xb3")].plugins[Xa("0x51")](Xa("0x1d")),n=(0,r.hashObject)(Xa("0xdb")+t);return e[Xa("0x127")](n)||e[Xa("0x1b")]({id:n,name:t})}[Xa("0xef")](t,e,n,o,s){const r=this._getAuthorFromId(o),i=this[Xa("0xaf")][Xa("0xf7")](t,e,n,r,s,(t=>this[Xa("0x42")](n,{attributes:t})));return this.listenTo(i,"accept",(()=>{this[Xa("0x42")](n,{state:Xa("0x1c")})}),{priority:"high"}),this[Xa("0x113")](i,Xa("0xd3"),(()=>{this[Xa("0x42")](n,{state:Xa("0x12f")})}),{priority:Xa("0x101")}),this[Xa("0x128")][Xa("0xbd")](n,i),this[Xa("0x58")][Xa("0xbd")](i,Xa("0x64")),i}[Xa("0x11a")](t){const e=t[Xa("0x9a")](":");return{group:e[0],type:e[1],subType:e[Xa("0xec")]>=5?e[2]:null,id:e[Xa("0xec")]<5?e[2]:e[3],authorId:e[Xa("0xec")]<5?e[3]:e[4],markerCount:6==e.length?e[5]:null}}[Xa("0x10")](t,n,o){const s=t[Xa("0x20")](),r=s[Xa("0xa8")],i=s[Xa("0x50")];this[Xa("0x122")](t,this[Xa("0x39")].createRange(r,n));const x=(0,e.uid)(),a=t[Xa("0x66")].id,c=t[Xa("0x1a")]+(t.subType?":"+t[Xa("0x4f")]:"");this[Xa("0x2c")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[Xa("0x9f")],data:t.data}),"formatBlock"==t.type&&(o=this[Xa("0x39")][Xa("0xb6")](o.parent)),this[Xa("0xb4")](c,x,a,this._model[Xa("0xda")](o,i))}[Xa("0x77")](t,e=null){const n=[],o=this[Xa("0xb3")][Xa("0xe1")][Xa("0x51")](Xa("0x1d")).me;Array[Xa("0x5b")](t)||(t=[t]);for(const s of this[Xa("0x84")]()){if(!s[Xa("0x53")])continue;if(e&&s[Xa("0x1a")]!=e)continue;let r=!1;for(const e of s[Xa("0x1f")]()){for(const i of t){const t=i[Xa("0xa8")][Xa("0xe0")](e[Xa("0x50")])||i[Xa("0x50")][Xa("0xe0")](e.start);if(t||i[Xa("0x3a")](e)){const x=i[Xa("0x119")](e)&&Qa(this[Xa("0x39")][Xa("0x98")],e[Xa("0xa8")],i),a=e[Xa("0x119")](i)&&Qa(this._model[Xa("0x98")],i[Xa("0xa8")],e);n[Xa("0x123")]({suggestion:s,meta:{isOwn:o==s.author,isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),r=!0;break}}if(r)break}}return n}_addSuggestionMarker(t,e,n,o,s){this[Xa("0x39")].change((r=>{let i=Xa("0x7f")+t+":"+e+":"+n;s&&(i=i+":"+s),r[Xa("0x93")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[Xa("0x8d")](t){const e=t[Xa("0x13b")],n=t.next;t[Xa("0x13b")]=null,null!=e&&(e[Xa("0x8b")]=null),t.next=null,null!=n&&(n.previous=null),Xa("0x110")==this._suggestionState.get(t)&&(this[Xa("0x58")][Xa("0xbd")](t,Xa("0x55")),this.fire(Xa("0x4e"),t,e,n))}[Xa("0x2c")](t){const n=t.id,o=this.addSuggestionData(t);if(this[Xa("0x126")]&&this[Xa("0x126")][Xa("0xc5")]){const s=this[Xa("0xb3")][Xa("0xe1")].get(Xa("0x7a")),r=o[Xa("0x115")],i=o[Xa("0x4f")]?o[Xa("0x1a")]+":"+o.subType:o[Xa("0x1a")],x=this[Xa("0xb3")][Xa("0x26")],a=s[Xa("0x1")](Yo(x,Xa("0x23"))),c={id:n,type:i,hasComments:r,data:t[Xa("0x6a")]||null,originalSuggestionId:t[Xa("0x129")]||null,attributes:o[Xa("0x9f")]};this[Xa("0x126")][Xa("0xc5")](c)[Xa("0x4a")]((t=>{o[Xa("0x36")]=!0,s[Xa("0xbe")](a),t&&t[Xa("0xdd")]&&(this._suggestions[Xa("0x51")](n)[Xa("0xdd")]=t[Xa("0xdd")])})).catch((t=>{throw(0,e.logWarning)("error-saving-suggestion-data-suggestion-discarded"),this[Xa("0xb3")].model.enqueueChange({isUndoable:!1},(()=>{o[Xa("0xd3")]()})),o[Xa("0x12d")](),this[Xa("0x128")][Xa("0x91")](o.id),this[Xa("0x58")].delete(o),t}))}return o}[Xa("0x42")](t,e){const n=this.editor[Xa("0xe1")][Xa("0x51")]("PendingActions"),o=this[Xa("0x70")](t);if(this[Xa("0x126")]&&this[Xa("0x126")].updateSuggestion)if(o[Xa("0x36")]){const o=n.add(Yo(this.editor[Xa("0x26")],Xa("0x23")));this._adapter[Xa("0x82")](t,e).then((()=>{n[Xa("0xbe")](o)}))}else o.on("change:_saved",(()=>{this[Xa("0x42")](t,e)}))}[Xa("0xa6")](t){if(!this._adapter||!this[Xa("0x126")][Xa("0x70")])throw new e.CKEditorError(Xa("0xa5"),this);return this[Xa("0x126")][Xa("0x70")](t)}_handleNewSuggestionMarker(t){const{id:e,type:n,subType:o,authorId:s}=this[Xa("0x11a")](t),r=this[Xa("0x128")][Xa("0x51")](e)||this._createSuggestion(n,o,e,s,{});switch(this._checkSuggestionCorrectness(r,n,o,s),this._suggestionState.get(r)){case"notReady":this[Xa("0xa6")](e)[Xa("0x4a")]((t=>{let n=Promise[Xa("0xe6")]();t.hasComments&&(n=this[Xa("0xe7")][Xa("0xc2")]({channelId:this.editor[Xa("0xa0")][Xa("0x51")](Xa("0x12b")),threadId:e})),n[Xa("0x4a")]((()=>{this[Xa("0x118")](t)[Xa("0x36")]=!0}))})),this[Xa("0x58")][Xa("0xbd")](r,Xa("0xd1"));break;case Xa("0x55"):this._updateSuggestionData(e,{state:Xa("0x6d")});case Xa("0xdf"):this[Xa("0x58")][Xa("0xbd")](r,Xa("0x110")),this[Xa("0x4c")](Xa("0x12a"),r);break;case Xa("0x110"):this.fire("suggestionChanged",r)}return r.addMarkerName(t),r}[Xa("0x6c")](t){const e=Array[Xa("0x72")](t)[Xa("0x121")]((t=>!t[Xa("0x104")])),n=this.getSuggestions({skipNotAttached:!0})[Xa("0x121")]((t=>!t.isMultiRange)),o=n.filter((e=>!t.has(e))),s=new Map(n.map((t=>[t,this[Xa("0xaf")][Xa("0x68")](t[Xa("0x1a")],t[Xa("0x4f")],Xa("0xb7"))]))),r=new Map(n.map((t=>[t,t[Xa("0x20")]()]))),i=new Set,x=new Set;for(let t=0;t<e[Xa("0xec")];t++)a(e[t],e,t+1);for(let t=0;t<e[Xa("0xec")];t++)a(e[t],o,0);for(let t=0;t<e[Xa("0xec")];t++){const n=e[t];!x[Xa("0x8a")](n)&&n.previous&&(n[Xa("0x13b")][Xa("0x8b")]===n&&(n[Xa("0x13b")][Xa("0x8b")]=null),n[Xa("0x13b")]=null),!i[Xa("0x8a")](n)&&n[Xa("0x8b")]&&(n[Xa("0x8b")][Xa("0x13b")]===n&&(n[Xa("0x8b")].previous=null),n[Xa("0x8b")]=null)}function a(t,e,n){for(let o=n;o<e[Xa("0xec")];o++){const n=c(t,e[o]);n&&(n[0][Xa("0x8b")]=n[1],n[1][Xa("0x13b")]=n[0],i.add(n[0]),x[Xa("0x1")](n[1]))}}function c(t,e){if(t[Xa("0x2f")].id!==e.author.id)return null;const n=s[Xa("0x51")](t)(t,e,r[Xa("0x51")](t),r[Xa("0x51")](e));return n&&s[Xa("0x51")](e)(t,e,r[Xa("0x51")](t),r[Xa("0x51")](e))?n[1][Xa("0x12e")]&&n[1][Xa("0x12e")][Xa("0xec")]?null:n:null}}[Xa("0xea")](t){const e=Array[Xa("0x72")](t),n=this[Xa("0x84")]({skipNotAttached:!0}),o=n.filter((e=>!t[Xa("0x8a")](e))),s=new Map(e[Xa("0x138")]((t=>[t,this[Xa("0xaf")][Xa("0x68")](t.type,t[Xa("0x4f")],Xa("0xe9"))]))),r=new Map(n[Xa("0x138")]((t=>[t,t.getRanges()])));for(let t=0;t<e[Xa("0xec")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[Xa("0xec")];t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n[Xa("0xec")];i++){const o=n[i];if(o[Xa("0x1a")]!==e[Xa("0x1a")]||o[Xa("0x2f")].id!==e[Xa("0x2f")].id||o[Xa("0x4f")]!==e[Xa("0x4f")])continue;if(!sc(e,o))continue;const x=s[Xa("0x51")](e),a=r.get(e),c=r.get(o),l=e[Xa("0x12e")]&&e.commentThread[Xa("0xec")],d=o.commentThread&&o[Xa("0x12e")][Xa("0xec")];if(!l&&x(c,a))return t._joinSuggestions(o,e),r[Xa("0x91")](e),!0;if(!d&&x(a,c))return t._joinSuggestions(e,o),r[Xa("0x91")](o),!0}return!1}}[Xa("0x56")](t,e){if(t.isMultiRange)for(const n of e[Xa("0x1f")]())t[Xa("0xf2")](n);else{const n=e[Xa("0x20")]().end;this[Xa("0x122")](t,this[Xa("0x39")].createRange(t[Xa("0x20")]()[Xa("0xa8")],n))}e.removeMarkers()}}class Ja{constructor(t){this[Xa("0xac")]=t,this[Xa("0x39")]=t[Xa("0xfb")],this[Xa("0x13d")]=new Map,this._defaultCallbacks=new Map,this[Xa("0x22")]()}buildSuggestion(t,e,n,o,s,r){return new Zo(this[Xa("0x39")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[Xa("0x68")](t,e,"accept")(...n),onDiscard:(...n)=>this[Xa("0x68")](t,e,Xa("0xd3"))(...n)})}registerCustomCallback(t,e,n,o){const s=t+":"+e+":"+n;this[Xa("0x13d")][Xa("0xbd")](s,o)}[Xa("0x68")](t,e,n){const o=t+":"+e+":"+n;return this[Xa("0x13d")].get(o)||this[Xa("0x3")].get(t+":"+n)}[Xa("0x22")](){const t=()=>!1,e=t=>{t[Xa("0xab")](((t,e)=>t[Xa("0xa8")].isBefore(e[Xa("0xa8")])?1:-1)),this[Xa("0x39")][Xa("0xa1")]((e=>{for(const n of t){let t;t=n[Xa("0x50")][Xa("0x131")]&&n[Xa("0x50")].parent==n[Xa("0xa8")].nodeAfter?e[Xa("0xf0")](n[Xa("0xa8")][Xa("0x5a")],"on"):e[Xa("0xf0")](n),this[Xa("0x39")][Xa("0x2e")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[Xa("0x39")].change((n=>{const{commandName:o,commandParams:s=[]}=e,r=t.map((t=>(Za(t)&&(t=this[Xa("0x39")][Xa("0xda")](t[Xa("0x50")])),t)))[Xa("0x121")]((t=>Xa("0xa9")!==t.root[Xa("0xfe")]));if(r[Xa("0xec")]<1)return;const x=Array[Xa("0x72")](this[Xa("0x39")].document[Xa("0x4b")][Xa("0x1f")]()).map((t=>i.LiveRange.fromRange(t)));n.setSelection(r);for(const t of this._editor[Xa("0x24")][Xa("0x24")]())t[Xa("0xb2")]();s.push({forceDefaultExecution:!0}),this[Xa("0xac")][Xa("0x116")](o,...s);const a=x[Xa("0x121")]((t=>Xa("0xa9")!=t.root[Xa("0xfe")]));a[Xa("0xec")]>0&&n[Xa("0x5c")](a);for(const t of x)t[Xa("0x10c")]()}))},o=(t,e)=>1==t[Xa("0xec")]&&1==e.length&&t[0][Xa("0x50")][Xa("0xe0")](e[0].start),s=(t,e,n,o)=>oc(t,e,n,o,this[Xa("0x39")])?[t,e]:oc(e,t,o,n,this._model)?[e,t]:null;this[Xa("0x3")][Xa("0xbd")](Xa("0x8f"),t),this[Xa("0x3")][Xa("0xbd")](Xa("0x3f"),e),this[Xa("0x3")][Xa("0xbd")]("insertion:join",o),this[Xa("0x3")].set(Xa("0x75"),s),this[Xa("0x3")][Xa("0xbd")](Xa("0x111"),e),this[Xa("0x3")][Xa("0xbd")](Xa("0x83"),t),this[Xa("0x3")][Xa("0xbd")](Xa("0xc"),o),this[Xa("0x3")].set(Xa("0x117"),s),this._defaultCallbacks.set(Xa("0x100"),n),this[Xa("0x3")][Xa("0xbd")]("formatInline:discard",t),this._defaultCallbacks.set(Xa("0xce"),o),this[Xa("0x3")][Xa("0xbd")](Xa("0x10e"),t),this[Xa("0x3")].set(Xa("0x9e"),n),this[Xa("0x3")][Xa("0xbd")](Xa("0xaa"),t),this._defaultCallbacks[Xa("0xbd")]("formatBlock:join",o),this[Xa("0x3")][Xa("0xbd")](Xa("0xeb"),t)}}function Qa(t,e,n){for(const o of e.parent[Xa("0x48")]({includeSelf:!0,parentFirst:!0})){if(o[Xa("0x71")]==o)return!1;if(!n[Xa("0x106")](o))return!1;if(t[Xa("0x7d")](o)||t[Xa("0x5")](o))return!0}return!1}function Za(t){return t[Xa("0x50")][Xa("0x103")]==t[Xa("0xa8")][Xa("0x5a")]&&t[Xa("0x50")][Xa("0xd2")]}function Ya(t,e,n,o){const s=t=>!t[Xa("0xff")].is(Xa("0xa"))&&!o[Xa("0x7d")](t[Xa("0xff")]),r=t.start.getLastMatchingPosition(s),i=t[Xa("0x50")].getLastMatchingPosition(s,{direction:Xa("0x37")});return!(t[Xa("0xa8")][Xa("0xe0")](r)&&t[Xa("0x50")][Xa("0xe0")](i)||(r[Xa("0x10b")](i)?n[Xa("0x41")](e,{range:n.createRange(r,i)}):n[Xa("0x130")](e),0))}function tc(t){return(0,r.hashObject)(t)}function ec(t){const e=t.start[Xa("0x5a")];return e&&e.is(Xa("0x10a"))}function nc(t,e){const n=e[Xa("0x98")][Xa("0x7d")](t)||e[Xa("0x98")][Xa("0xde")](t);return e[Xa("0xda")](e[Xa("0x94")](t,Xa("0x2a")),n?e.createPositionAfter(t):e[Xa("0x94")](t,Xa("0x50")))}function oc(t,e,n,o,s){if(!sc(t,e))return!1;if(n[Xa("0x50")].isEqual(o[Xa("0xa8")]))return!0;if(t.type!=e.type)return!1;if(!n[Xa("0x50")].isTouching(o.start))return!1;const r=s.createRange(n[Xa("0x50")],o[Xa("0xa8")]).getWalker();for(const t of r)if([Xa("0xa2"),Xa("0x88")][Xa("0x16")](t[Xa("0x1a")])&&s[Xa("0x98")].isLimit(t.item))return!1;return!0}function sc(t,e){return!(!t[Xa("0x3c")]||!e._isDataLoaded)&&Go(t[Xa("0x9f")],e[Xa("0x9f")])}function rc(t,e){const n=ic(t[Xa("0x9f")]),o=ic(e);if(!t[Xa("0x3c")])return!1;for(const t of Object[Xa("0x46")](o))if(!Go(n[t],o[t]))return!1;return!0}function ic(t){const e=Object[Xa("0x13")]({},t);return delete e[Xa("0x3d")],delete e[Xa("0xcf")],e}const xc=["PENDING_ACTION_SUGGESTION","change:isDirty","canAccept","listenTo","unbind","isDirty","commands","execute","_pendingAction","view","_setPendingAction","bind","PendingActions","getRanges","canDiscard","_removePendingAction","add","isEnabled","stopListening","plugins","commentThreadController","canEditAt","discardSuggestion","_acceptCommand","get","model","_editor","_discardCommand","acceptSuggestion"];var ac,cc;ac=xc,cc=493,function(t){for(;--t;)ac.push(ac.shift())}(++cc);const lc=function(t,e){return xc[t-=0]};class dc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this.model=e,this.view=n,this[lc("0x14")]=o,this._editor=t,this[lc("0x17")]=t[lc("0x6")][lc("0x18")](lc("0x1c")),this._discardCommand=t.commands[lc("0x18")]("discardSuggestion"),this[lc("0x9")][lc("0xb")](lc("0x11")).to(this[lc("0x17")],this[lc("0x1b")],((t,e)=>t||e)),this[lc("0x9")][lc("0xb")]("canAccept").to(this[lc("0x17")],lc("0x11"),(t=>t&&this._editor.model[lc("0x15")](e[lc("0xd")]()))),this[lc("0x9")][lc("0xb")]("canDiscard").to(this[lc("0x1b")],"isEnabled",(t=>t&&this._editor.model[lc("0x15")](e.getRanges()))),this[lc("0x8")]=null,n[lc("0x5")]&&this[lc("0xa")](),this[lc("0x3")](n,lc("0x1c"),(()=>this[lc("0x1c")]())),this.listenTo(n,lc("0x16"),(()=>this.discardSuggestion())),this[lc("0x3")](n,lc("0x1"),(()=>{n[lc("0x5")]?this._setPendingAction():this._removePendingAction()}))}[lc("0x1c")](){this[lc("0x17")][lc("0x7")](this[lc("0x19")].id)}[lc("0x16")](){this[lc("0x1b")][lc("0x7")](this[lc("0x19")].id)}destroy(){this.view.unbind("isEnabled"),this[lc("0x9")].unbind(lc("0x2")),this[lc("0x9")][lc("0x4")](lc("0xe")),this[lc("0x12")](),this[lc("0x14")].destroy(),this[lc("0x8")]&&this[lc("0xf")]()}[lc("0xa")](){const t=Yo(this[lc("0x1a")].locale,lc("0x0"));this[lc("0x8")]=this[lc("0x1a")][lc("0x13")][lc("0x18")](lc("0xc"))[lc("0x10")](t)}[lc("0xf")](){null!==this._pendingAction&&this[lc("0x1a")].plugins[lc("0x18")]("PendingActions").remove(this[lc("0x8")]),this[lc("0x8")]=null}}const uc=["bind","assign","_createCommentThreadInputView","_model","showInput","_config","canDiscard","locale","disabledSubmit","_localUser","submit","removeComment","disableComments","descriptionParts","isReadOnly","set","commentsListView","CommentView","addComment","commentThreadInputView","isDirty","length","commentThread","hasDirtyComment","_createCommentViews","isActive","editorConfig","destroy","delegate","commentInputView","value","cancel","focus"];var gc,mc;gc=uc,mc=320,function(t){for(;--t;)gc.push(gc.shift())}(++mc);const fc=function(t,e){return uc[t-=0]};class hc extends s.View{constructor(t,e,n,o){super(t),this[fc("0x1a")]=null,this.commentThreadInputView=null,this[fc("0x19")](fc("0x2"),!1),this.set("authoredAt",e.authoredAt),this.bind("authoredAt").to(e),this[fc("0x19")](fc("0x17"),[]),this.set("isDirty",!1),this[fc("0x19")]("isEnabled",!1),this[fc("0x19")]("canAccept",!1),this[fc("0x19")](fc("0x10"),!1),this[fc("0xd")]=e,this[fc("0x13")]=n,this[fc("0xf")]=o,o[fc("0x16")]?this[fc("0x19")](fc("0x1f"),1):this[fc("0x1")]()}[fc("0x9")](){this.element[fc("0x9")]()}[fc("0x4")](){this[fc("0x1a")]&&this[fc("0x1a")][fc("0x4")](),this[fc("0x1d")]&&this[fc("0x1d")][fc("0x4")](),super[fc("0x4")]()}_createCommentViews(){const{CommentsListView:t}=this[fc("0xf")];this[fc("0x1a")]=new t(this[fc("0x11")],this._model[fc("0x20")],Object[fc("0xb")]({CommentView:this[fc("0xf")][fc("0x1b")]},this._config)),this.commentsListView[fc("0x5")]("removeComment").to(this),this.commentsListView.delegate("updateComment").to(this),this[fc("0x1a")][fc("0xa")](fc("0x2")).to(this),this.set("length",this.commentsListView[fc("0x1f")]+1),this[fc("0xa")]("length").to(this[fc("0x1a")],fc("0x1f"),(t=>t+1)),this[fc("0x1d")]=this[fc("0xc")](),this.on(fc("0x15"),(()=>this[fc("0x9")]())),this[fc("0xa")](fc("0x1e")).to(this[fc("0x1a")],fc("0x0"),this.commentThreadInputView[fc("0x6")],fc("0x7"),((t,e)=>t||!!e))}_createCommentThreadInputView(){const{CommentThreadInputView:t}=this._config,e=new t(this.locale,this[fc("0x13")],this[fc("0xf")][fc("0x3")]),n=e[fc("0x6")];return e[fc("0xa")](fc("0xe")).to(this,fc("0x2"),this[fc("0xd")][fc("0x20")],fc("0x18"),n,fc("0x7"),((t,e,n)=>!!n||t&&!e)),n.on(fc("0x14"),((t,e)=>{this.fire(fc("0x1c"),e),n.editor.setData("")})),n.on(fc("0x8"),(()=>this.focus())),n[fc("0xa")](fc("0x12")).to(this._model[fc("0x20")],fc("0x18")),e}}const pc=["ck-comment__info-time","EXTERNAL_SUGGESTION","</span>","discardButton","@external","ck-suggestion__main","isEnabled",'<span class="ck-suggestion-type">',"ck-suggestion__actions","userView","disableComments","description","commentsListView","render","getTemplate","join","canAccept","bind","commentThreadInputView","attributes","author","createElement","ck-suggestion","ck-suggestion__info","_createButton",'<span class="ck-suggestion-color" style="background-color: ',"div","time","_config","source","innerText","importWord","discardSuggestion","ck-annotation__info","creator","authoredAt","isExternal",".ck-annotation__content-wrapper","ck-suggestion__user","acceptSuggestion","title","ck-comment__external","type","push","querySelector","ck-annotation__main","canDiscard","ck-suggestion--discard","getUserViewNotificationText","ck-annotation","span","name","map","ck-annotation__info-time","<p>","descriptionParts","element",'" title="',"locale","split","setTemplate",'"></span>',"Discard suggestion","ck-suggestion__info-name","change:description","isActive","content","innerHTML","editorReady","Accept suggestion","acceptButton","ck-suggestion--disabled-comments","delegate","EXTERNAL_AVATAR","formatDateTime","value","editorDestroyed","ck-annotation__content-wrapper","check","_descriptionElement","extendTemplate","_model"];var bc,Ec;bc=pc,Ec=214,function(t){for(;--t;)bc.push(bc.shift())}(++Ec);const _c=function(t,e){return pc[t-=0]};class Tc extends hc{constructor(e,n,o,s){super(e,n,o,s),this.set("type",""),this.bind(_c("0x4a")).to(this,_c("0x5"),(t=>t&&t[0]?t[0][_c("0x4a")]:"")),this[_c("0x31")](_c("0x2b")).to(this,_c("0x5"),this,_c("0xf"),((t,e)=>{let n="";for(const e of t)n+=_c("0x4")+Cc(e[_c("0x10")],e.color)+"</p>";return e?n:(0,r.trimHtml)(n,{limit:140})})),this[_c("0x1d")]=null,this.acceptButton=this[_c("0x38")](Yo(e,_c("0x13")),t.icons[_c("0x1c")],"ck-suggestion--accept",_c("0x47"),"sw"),this.acceptButton[_c("0x31")](_c("0x26")).to(this,_c("0x30")),this[_c("0x23")]=this[_c("0x38")](Yo(e,_c("0xc")),t.icons.cancel,_c("0x4f"),_c("0x40"),"sw"),this[_c("0x23")][_c("0x31")](_c("0x26")).to(this,_c("0x4e")),this[_c("0x29")]=new r.UserView(e,this[_c("0x1f")].author,this[_c("0x50")]()),this[_c("0x29")][_c("0x1e")]({attributes:{class:[_c("0x46"),"ck-annotation__user"]}}),this[_c("0xa")](this[_c("0x2e")]())}[_c("0x2e")](){const t=this.bindTemplate,e=[{tag:"div",attributes:{class:[_c("0x37"),_c("0x41")]},children:[{tag:_c("0x0"),children:[{text:this[_c("0x29")][_c("0x1")]}],attributes:{class:[_c("0xd"),"ck-annotation__info-name"]}},{tag:_c("0x3b"),attributes:{datetime:t.to(_c("0x43")),class:[_c("0x20"),_c("0x3")]},children:[{text:t.to(_c("0x43"),(t=>this[_c("0x3c")][_c("0x18")](t)))}]}]},{tag:_c("0x3a"),attributes:{class:[_c("0x28"),"ck-annotation__actions"]},children:[this[_c("0x14")],this.discardButton]},{tag:_c("0x3a"),attributes:{class:[_c("0x1b")]}}];this._model[_c("0x44")]&&e[_c("0x4b")]({tag:"div",attributes:{class:[_c("0x49")]},children:[{text:this.getExternalSuggestionNote()}]});const n={tag:_c("0x3a"),attributes:{class:["ck-suggestion-wrapper",t.if(_c("0xf"),"ck-suggestion-wrapper--active"),t.to(_c("0x4a"),(t=>"ck-suggestion-"+t)),this._config[_c("0x2a")]&&_c("0x15")],"data-suggestion-id":this[_c("0x1f")].id,"data-thread-id":this[_c("0x1f")].commentThread.id,"data-author-id":this._model[_c("0x34")].id,tabindex:-1},children:[{tag:_c("0x3a"),attributes:{class:[_c("0x36"),_c("0x51")]},children:[this.userView,{tag:"div",attributes:{class:[_c("0x25"),_c("0x4d")]},children:e}]}]};return this[_c("0x2c")]&&this.commentThreadInputView&&(n.children[_c("0x4b")](this[_c("0x2c")],this[_c("0x32")]),this[_c("0x2c")].delegate(_c("0x12")).to(this),this[_c("0x2c")][_c("0x16")](_c("0x1a")).to(this),this.commentThreadInputView.delegate(_c("0x12")).to(this),this[_c("0x32")].delegate(_c("0x1a")).to(this)),n}[_c("0x2d")](){super[_c("0x2d")](),this[_c("0x1d")]=this[_c("0x6")][_c("0x4c")](_c("0x45")),this[_c("0x1d")][_c("0x11")]=this[_c("0x2b")],this.on(_c("0xe"),((t,e,n)=>{this._descriptionElement[_c("0x11")]=n}))}[_c("0x38")](t,e,n,o,r){const i=new s.ButtonView(this[_c("0x8")]);return i.set({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[_c("0x1e")]({attributes:{class:n}}),i.on("execute",(()=>{this.fire(o,this[_c("0x1f")].id)})),i}getExternalSuggestionNote(){return _c("0x3f")===this[_c("0x1f")][_c("0x33")][_c("0x24")].source?Yo(this.locale,"EXTERNAL_IMPORT_WORD_SUGGESTION"):Yo(this[_c("0x8")],_c("0x21"))}[_c("0x50")](){return this[_c("0x1f")][_c("0x44")]?_c("0x3f")===this[_c("0x1f")].attributes[_c("0x24")][_c("0x3d")]?Yo(this[_c("0x8")],"EXTERNAL_IMPORT_WORD_AVATAR",this[_c("0x1f")][_c("0x42")].name):Yo(this[_c("0x8")],_c("0x17"),this[_c("0x1f")][_c("0x42")][_c("0x1")]):null}}function Cc(t,e){let n="";return n+=t[_c("0x9")]("*")[_c("0x2")](((t,e)=>e%2!=0?_c("0x27")+yc(t)+_c("0x22"):yc(t)))[_c("0x2f")](""),e&&(n+=_c("0x39")+e[_c("0x19")]+_c("0x7")+e[_c("0x48")]+_c("0xb")),n}function yc(t){const e=document[_c("0x35")]("span");return e[_c("0x3e")]=t,e[_c("0x11")]}const kc=["trackChanges","get","CommentsUI","getDescriptions","commandName","getMarkerNames","change:activeAnnotations","acceptSelectedSuggestions","reduce","getRanges","focus","Track changes","_disableComments","trackChanges.SuggestionThreadView","commentThread","isDirty","createCommentThreadController","push","pluginName","suggestion-","addComment","bind","descriptionParts","comments.maxThreadTotalWeight","execute","innerView","isEnabled","unbind","clear","activeMarkers","button","previous","SuggestionThreadView","length","from","arrowView","Discard all suggestions","suggestionChanged","getMarkers","getAllAdjacentSuggestions","locale","switchbutton","comments","comments.maxCommentCharsWhenCollapsed","refreshSelectedViews","createAnnotationView","createAnnotation","suggestionLoaded","commands","_destroyController","getSuggestion","_initializeController","delete","lowest","init","_handleControllerBuffer","_createUIButton","acceptAllSuggestions","map","define","change:previous","editing","keys","_viewToController","set","getJoined","_descriptionFactory","type","remove","_handleSuggestionControllerDelayed","filter","model","plugins","add","EditorAnnotations","mainView","_updateController","_unbindEditors","CommentView","editor","TrackChangesUI","hasSuggestion","isOn","Accept all selected suggestions","_suggestionToController","toMany","listenTo","_annotationViews","values","componentFactory","getFirstRange","trackChanges.disableComments","_refreshActiveMarkers","Annotations","getByInnerView","Accept all suggestions","buttonView","destroy","Discard all selected suggestions","isInContent","view","TrackChangesEditing","CommentsRepository","has","discardButton","head","acceptButton","actionView"];var Ac,vc;Ac=kc,vc=148,function(t){for(;--t;)Ac.push(Ac.shift())}(++vc);const Rc=function(t,e){return kc[t-=0]};class Sc extends t.Plugin{static get requires(){return[$a,r.Users,Rc("0x3e"),"Annotations",Rc("0x22")]}static get[Rc("0x56")](){return Rc("0x28")}constructor(t){super(t),this[Rc("0x2c")]=new Map,this[Rc("0x17")]=new Map,this[Rc("0x2f")]=new Map,this[Rc("0xf")]=new Map;const e=this[Rc("0x27")].config;e[Rc("0x13")](Rc("0x51"),Tc),e[Rc("0x13")](Rc("0x33"),!1),this[Rc("0x50")]=e[Rc("0x45")](Rc("0x33"))}[Rc("0x1d")](t,e){0===this[Rc("0xf")].size&&setTimeout((()=>{for(const[t,e]of this._handleControllerBuffer){const n=this[Rc("0x2c")][Rc("0x3f")](t);n||e?n&&e&&this[Rc("0x9")](t):this[Rc("0xb")](t)}this.editor[Rc("0x20")][Rc("0x45")](Rc("0x22"))[Rc("0x4")](),this[Rc("0x34")](),this._handleControllerBuffer[Rc("0x60")]()}),10),this[Rc("0xf")].set(t,e)}[Rc("0xe")](){const t=this[Rc("0x27")],e=t[Rc("0x20")][Rc("0x45")](Rc("0x3d")),n=t[Rc("0x20")][Rc("0x45")]("Annotations"),o=t[Rc("0x20")][Rc("0x45")]("EditorAnnotations"),s=t[Rc("0x20")][Rc("0x45")](Rc("0x3e"));t.ui[Rc("0x31")][Rc("0x21")]("trackChanges",(t=>this[Rc("0x10")](t))),o.addSourceCollector((()=>{const t=[];for(const[e,n]of Array[Rc("0x66")](this[Rc("0x2c")])){const o=e[Rc("0x6b")](),s=[];for(const t of o){if(!t[Rc("0x3b")])continue;if(t.isMultiRange){s.push(...t[Rc("0x4d")]());continue}const e=t[Rc("0x32")]();if(s[Rc("0x65")]>0){const t=s[0][Rc("0x19")](e);if(t){s[0]=t;continue}}s[Rc("0x55")](e)}t[Rc("0x55")]([n.view,s])}return t})),this[Rc("0x2e")](e,Rc("0x7"),((t,e)=>{this[Rc("0x2e")](e,Rc("0x14"),((t,n,o,s)=>{e[Rc("0x3b")]&&(null==o?(this[Rc("0x24")](s.head),this[Rc("0x1d")](e,!1)):(this[Rc("0x24")](o[Rc("0x41")]),this[Rc("0x1d")](e,!0)))})),null===e[Rc("0x63")]?this[Rc("0x1d")](e,!1):this[Rc("0x24")](e[Rc("0x41")])})),this[Rc("0x2e")](e,"suggestionUnloaded",((t,e,n)=>{this.stopListening(e,Rc("0x14")),this[Rc("0xf")][Rc("0xc")](e);const o=n?n[Rc("0x41")]:e,s=this._suggestionToController.get(o);null!==n&&this[Rc("0x24")](o),null===n&&s&&this[Rc("0x9")](e)})),this[Rc("0x2e")](e,Rc("0x69"),((t,e)=>{this[Rc("0x24")](e)})),this.listenTo(n,Rc("0x4a"),(()=>{this[Rc("0x34")]()})),this[Rc("0x2e")](s,Rc("0x58"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Rc("0x29")](n))return;const s=e[Rc("0xa")](n);this[Rc("0x2c")][Rc("0x45")](s)[Rc("0x3c")][Rc("0x4e")]()}),{priority:Rc("0xd")})}[Rc("0x34")](){const t=this[Rc("0x27")][Rc("0x20")][Rc("0x45")]("Annotations"),e=this.editor[Rc("0x20")][Rc("0x45")](Rc("0x3d")),n=Array.from(t.activeAnnotations,(t=>t[Rc("0x5d")])).filter((t=>this[Rc("0x17")][Rc("0x3f")](t))),o=[];for(const t of n){const e=this[Rc("0x17")][Rc("0x45")](t)[Rc("0x1f")].getAllAdjacentSuggestions();o[Rc("0x55")](...e[Rc("0x4c")](((t,e)=>[...t,...e[Rc("0x49")]()]),[]))}e[Rc("0x61")]=o}[Rc("0x10")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Rc("0x27")][Rc("0x8")].get(Rc("0x44")),r=Yo(t,Rc("0x4f"));n[Rc("0x38")].set({tooltip:r,label:r,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[Rc("0x38")][Rc("0x59")](Rc("0x2a")).to(o,"value"),n.buttonView.on(Rc("0x5c"),(()=>{o[Rc("0x5c")](),this.editor[Rc("0x15")][Rc("0x3c")][Rc("0x4e")]()}));const i=new e.Collection,x=[{type:Rc("0x1"),model:{withText:!0,label:r,commandName:Rc("0x44")}},{type:"separator"},{type:"button",model:{withText:!0,label:Yo(t,Rc("0x37")),commandName:Rc("0x11")}},{type:Rc("0x62"),model:{withText:!0,label:Yo(t,Rc("0x2b")),commandName:Rc("0x4b")}},{type:Rc("0x62"),model:{withText:!0,label:Yo(t,Rc("0x68")),commandName:"discardAllSuggestions"}},{type:Rc("0x62"),model:{withText:!0,label:Yo(t,Rc("0x3a")),commandName:"discardSelectedSuggestions"}}];for(const t of x){let e={type:"separator"};if(t[Rc("0x1f")]){const n=new s.Model(t[Rc("0x1f")]),o=this[Rc("0x27")].commands[Rc("0x45")](n[Rc("0x48")]);n.bind(Rc("0x2a"),Rc("0x5e")).to(o,"value",Rc("0x5e")),e={type:t[Rc("0x1b")],model:n}}i[Rc("0x21")](e)}(0,s.addListToDropdown)(n,i);const a=x[Rc("0x1e")]((t=>null!=t.model))[Rc("0x12")]((t=>this[Rc("0x27")][Rc("0x8")][Rc("0x45")](t.model[Rc("0x48")]))),c=n[Rc("0x38")];return c[Rc("0x43")][Rc("0x5f")](Rc("0x5e")),c[Rc("0x67")].unbind(Rc("0x5e")),c[Rc("0x43")][Rc("0x59")]("isEnabled").to(o,"isEnabled"),c[Rc("0x67")][Rc("0x59")](Rc("0x5e"))[Rc("0x2d")](a,Rc("0x5e"),((...t)=>t.some((t=>t)))),n.on(Rc("0x5c"),(t=>{this.editor[Rc("0x5c")](t.source[Rc("0x48")]),this[Rc("0x27")][Rc("0x15")][Rc("0x3c")][Rc("0x4e")]()})),n}[Rc("0xb")](t){const e=this[Rc("0x27")],n=e.config,o=e[Rc("0x20")][Rc("0x45")](Rc("0x35")),s=e[Rc("0x20")].get(Rc("0x3e")),i=e.plugins.get(Rc("0x22")),x=e[Rc("0x20")][Rc("0x45")](r.Users).me,a=n[Rc("0x45")](Rc("0x44"))[Rc("0x64")],{CommentsListView:c,CommentThreadInputView:l}=e[Rc("0x20")][Rc("0x45")](Rc("0x46"));let d,u;this[Rc("0x2f")][Rc("0x3f")](t.id)?(u=this[Rc("0x2f")][Rc("0x45")](t.id),d=u[Rc("0x23")]):(d=new a(e[Rc("0x0")],t,x,{disableComments:this[Rc("0x50")],editorConfig:n.get("comments.editorConfig"),maxCommentsWhenCollapsed:n[Rc("0x45")]("comments.maxCommentsWhenCollapsed"),maxThreadTotalWeight:n[Rc("0x45")](Rc("0x5b")),maxCommentCharsWhenCollapsed:n.get(Rc("0x3")),formatDateTime:(0,r.getDateTimeFormatter)(n.get(Rc("0x0"))),CommentView:n.get(Rc("0x2"))[Rc("0x26")],CommentsListView:c,CommentThreadInputView:l}),d[Rc("0x42")].on(Rc("0x5c"),(()=>{e[Rc("0x15")].view[Rc("0x4e")]()})),d[Rc("0x40")].on(Rc("0x5c"),(()=>{e.editing[Rc("0x3c")][Rc("0x4e")]()})),u=o[Rc("0x5")](this[Rc("0x27")][Rc("0x0")],d),u.bind(Rc("0x53")).to(d,Rc("0x53")),u[Rc("0x59")](Rc("0x65")).to(d),u.bind(Rc("0x1b")).to(d,"type",(t=>Rc("0x57")+t)),this[Rc("0x2f")][Rc("0x18")](t.id,u));const g=s[Rc("0x54")](t[Rc("0x52")],d),m=new dc(e,t,d,g),f=t[Rc("0x6b")]()[Rc("0x1e")]((t=>t[Rc("0x3b")]));d[Rc("0x5a")]=e.plugins.get(Rc("0x3d"))._descriptionFactory[Rc("0x47")](f),this[Rc("0x2c")].set(t,m),this[Rc("0x17")].set(d,m);const h=o[Rc("0x6")]({view:u,target:()=>{const n=[],o=t[Rc("0x6b")]()[Rc("0x1e")]((t=>t.isInContent));for(const t of o)n.push(...t[Rc("0x6a")]());return(0,r.getAllMarkersDomElementsSorted)(e.editing,n)},type:()=>Rc("0x57")+m[Rc("0x3c")][Rc("0x1b")]});s._bindAnnotationToEditors(d,h),o[Rc("0x21")](h),i.registerAnnotation(h)}[Rc("0x9")](t){const e=this.editor.plugins[Rc("0x45")](Rc("0x3e")),n=this.editor.plugins[Rc("0x45")](Rc("0x35")),o=this._suggestionToController[Rc("0x45")](t),s=o[Rc("0x3c")],r=n[Rc("0x36")](s);e[Rc("0x25")](s),r&&n[Rc("0x1c")](r),this[Rc("0x2c")].delete(t),this[Rc("0x17")][Rc("0xc")](s),o[Rc("0x39")]()}[Rc("0x24")](t){if(!t[Rc("0x3b")]||!this[Rc("0x2c")][Rc("0x3f")](t))return;const e=this.editor[Rc("0x20")][Rc("0x45")]("TrackChangesEditing"),n=this[Rc("0x2c")].get(t),o=t.getAllAdjacentSuggestions();n[Rc("0x3c")][Rc("0x5a")]=e[Rc("0x1a")][Rc("0x47")](o)}[Rc("0x39")](){for(const t of this[Rc("0x2c")][Rc("0x16")]())this[Rc("0x9")](t);for(const t of this[Rc("0x2f")][Rc("0x30")]())t[Rc("0x23")].destroy();super[Rc("0x39")]()}}var Ic,Lc,Nc=["getSuggestion","pluginName","plugins","get","TrackChanges","adapter","getSuggestions","Comments","editor"];Ic=Nc,Lc=156,function(t){for(;--t;)Ic.push(Ic.shift())}(++Lc);var wc=function(t,e){return Nc[t-=0]};class Mc extends t.Plugin{static get requires(){return[$a,Sc,wc("0x4")]}static get[wc("0x7")](){return wc("0x1")}set adapter(t){this[wc("0x5")][wc("0x8")].get($a)[wc("0x2")]=t}get adapter(){return this.editor[wc("0x8")][wc("0x0")]($a)[wc("0x2")]}addSuggestion(t){return this[wc("0x5")][wc("0x8")][wc("0x0")]($a).addSuggestionData(t)}[wc("0x3")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this.editor[wc("0x8")][wc("0x0")]($a)[wc("0x3")]({skipNotAttached:t,toJSON:e})}getSuggestion(t){return this[wc("0x5")].plugins[wc("0x0")]($a)[wc("0x6")](t)}}const Oc=["addUser","rootsAttributes","name","getSuggestions","document","getDataWithDiscardedSuggestions","getRootsAttributes","requires","editorCreator","getDataWithAcceptedSuggestions","plugins","config","getFullData","set","_adapter","destroy","define","execute","constructor","editor","get","function","createDocumentFragment","Pagination","result","end","createElement","users","TrackChangesEditing","Users","pluginName","useAnonymousUser","init","discardAllSuggestions","getUser","create","trackChangesData","TrackChangesDataGetter","map","div","model","data"];var Fc,Pc;Fc=Oc,Pc=128,function(t){for(;--t;)Fc.push(Fc.shift())}(++Pc);const Dc=function(t,e){return Oc[t-=0]},Bc=[Dc("0x15")];class jc extends t.Plugin{static get[Dc("0x5")](){return[$a]}static get[Dc("0x1c")](){return"TrackChangesData"}init(){const t=this[Dc("0x11")];if(t[Dc("0x9")][Dc("0xe")]("trackChangesData.editorCreator",(e=>{const n=t[Dc("0x26")][Dc("0x2")].getRootNames().reduce(((t,e)=>(t[e]="",t)),{});return t[Dc("0x10")][Dc("0x21")](n,e)})),Dc("0x13")!=typeof t[Dc("0x9")][Dc("0x12")](Dc("0x22"))[Dc("0x6")])throw new e.CKEditorError("track-changes-data-invalid-editor-creator")}[Dc("0x7")](t){return Hc(this[Dc("0x11")],!0,t)}[Dc("0x3")](t){return Hc(this.editor,!1,t)}}class Uc extends t.Plugin{static get pluginName(){return Dc("0x23")}constructor(t){super(t),this[Dc("0x16")]=Dc("0x17")}[Dc("0x1e")](){this[Dc("0x11")][Dc("0x8")][Dc("0x12")]("CommentsRepository")[Dc("0xc")]={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this[Dc("0x11")][Dc("0x8")][Dc("0x12")](Dc("0x1a"))[Dc("0xc")]=null}}function Gc(t){return void 0!==t[Dc("0x4")]}async function Hc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,Bc);o.plugins.push($a,Uc),o[Dc("0x29")]=Gc(t)?t[Dc("0x4")]():void 0;const s=document[Dc("0x14")](),i=t[Dc("0x9")][Dc("0x12")](Dc("0x22"))[Dc("0x6")],x=await i(o,(()=>function(t){const e=document[Dc("0x18")](Dc("0x25"));return t.appendChild(e),e}(s)));!function(t,e){const n=t[Dc("0x26")][Dc("0x2")].getRootNames().reduce(((e,n)=>(e[n]=t[Dc("0x27")][Dc("0x12")]({rootName:n}),e)),{}),o=t[Dc("0x8")][Dc("0x12")](Dc("0x1b"))[Dc("0x19")][Dc("0x24")]((t=>({id:t.id,name:t[Dc("0x0")]}))),s=t[Dc("0x8")][Dc("0x12")](Dc("0x1a"))[Dc("0x1")]({skipNotAttached:!0,toJSON:!0}),r=e[Dc("0x8")][Dc("0x12")](Dc("0x1b")),i=e[Dc("0x8")][Dc("0x12")](Dc("0x1a"));for(const t of o)r[Dc("0x20")](t.id)||r[Dc("0x28")](t);r.me||r[Dc("0x1d")]();for(const t of s)i.addSuggestionData(t);e[Dc("0x27")][Dc("0xb")](n)}(t,x),x[Dc("0xf")](e?"acceptAllSuggestions":Dc("0x1f"));const a=Gc(x)?x[Dc("0xa")](n):x.data[Dc("0x12")](n);return await x[Dc("0xd")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|