@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230912.0 → 0.0.0-nightly-20230914.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
package/build/track-changes.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
/*!
|
|
3
3
|
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
4
4
|
* For licensing, see LICENSE.md.
|
|
5
|
-
*/(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var s=e[o];if(void 0!==s)return s.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>dc,TrackChanges:()=>Sc,TrackChangesData:()=>Oc,TrackChangesEditing:()=>Wa});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["_disableUnsupportedCommands","editor","_enabledCommands","isEnabled","commands","_enableCommands","execute","_isEnabledBasedOnSelection","refresh","value","has","forceDisabled","TrackChangesCommand","affectsData","clearForceDisabled"];var c,l;c=a,l=399,function(t){for(;--t;)c.push(c.shift())}(++l);const d=function(t,e){return a[t-=0]};class u extends t.Command{constructor(t,e){super(t),this._enabledCommands=e,this[d("0x0")]=!1,this[d("0xe")](),this[d("0xd")]=!1}[d("0xe")](){this[d("0x9")]=!0}[d("0xc")](){this[d("0x0")]=!this[d("0x0")],this.value?this[d("0x6")]():this[d("0xb")]()}[d("0x6")](){for(const t of this[d("0x7")].commands[d("0xa")]())t[d("0x4")]&&!this._enabledCommands[d("0x1")](t)&&t[d("0x2")](d("0x3"))}[d("0xb")](){for(const t of this[d("0x7")][d("0xa")][d("0xa")]())t[d("0x4")]&&!this[d("0x8")][d("0x1")](t)&&t[d("0x5")](d("0x3"))}}const g=["model","isEnabled","acceptSuggestion","_suggestions","get","getRanges","editor","_isEnabledBasedOnSelection","TrackChangesEditing","execute","track-changes-accept-suggestion-not-found"];var m,f;m=g,f=172,function(t){for(;--t;)m.push(m.shift())}(++f);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this[h("0x7")]=e,this.refresh(),this[h("0x0")]=!1}refresh(){this[h("0x5")]=!0}[h("0x2")](t){const n=this[h("0x7")][h("0x8")](t);if(!n)throw new e.CKEditorError(h("0x3"),this);const o=n[h("0x9")]();this[h("0xa")][h("0x4")].canEditAt(o)&&this[h("0xa")].plugins[h("0x8")](h("0x1"))[h("0x6")](n)}}const b=["editor","refresh","get","canEditAt","model","execute","_suggestions","isEnabled","track-changes-discard-suggestion-not-found","_isEnabledBasedOnSelection","plugins"];var E,_;E=b,_=158,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class C extends t.Command{constructor(t,e){super(t),this._suggestions=e,this[T("0x8")](),this[T("0x5")]=!1}[T("0x8")](){this[T("0x3")]=!0}[T("0x1")](t){const n=this[T("0x2")][T("0x9")](t);if(!n)throw new e.CKEditorError(T("0x4"),this);const o=n.getRanges();this.editor[T("0x0")][T("0xa")](o)&&this[T("0x7")][T("0x6")].get("TrackChangesEditing").discardSuggestion(n)}}const y=["isMultiRange","from","execute","next","getRanges","end","type","isArray","createPositionAt","splice","isTouching","join","replace","schema"," [color ","createPositionAfter","sort","isIntersecting","map","createPositionBefore","length","deletion","change","color","push","isCollapsed","isObject","isInContent"];var k,A;k=y,A=231,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0x9")](((t,e)=>"deletion"==t[v("0x1b")]&&v("0xe")!=e[v("0x1b")]?-1:v("0xe")!=t[v("0x1b")]&&"deletion"==e[v("0x1b")]?1:0))}function S(t,e){let n,o=0;const s=[],r=e[v("0x6")];for(;o<t[v("0xd")];){const i=t[o],x=t[o+1];n||(n=e[v("0xc")](i)),I(e,i,x)||(s[v("0x11")](e.createRange(n,r[v("0x13")](i)?e.createPositionAfter(i):e[v("0x1")](i,v("0x1a")))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t[v("0x8")](e),s=t[v("0xc")](n);return o[v("0x3")](s)}function L(t,e,n){for(;n.length;){const o=n[v("0x2")](0,100);t[v("0xf")]((()=>{for(const t of o)t[v("0x14")]&&e[v("0x17")](t.id)}))}}const N=["getRanges","model","_suggestions","_command","values","isEnabled","editor","from","canEditAt","refresh","execute","some"];var M,w;M=N,w=137,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0xa")]=e,this[O("0x9")]=n,this[O("0x4")](),this._isEnabledBasedOnSelection=!1}[O("0x4")](){const t=Array[O("0x2")](this._suggestions[O("0xb")]())[O("0x6")]((t=>t.isInContent));this[O("0x0")]=this[O("0xa")][O("0x0")]&&t}[O("0x5")](){const t=R(Array[O("0x2")](this._suggestions[O("0xb")]()));for(const e of t){const t=e[O("0x7")]();if(!this[O("0x1")][O("0x8")][O("0x3")](t))return}L(this[O("0x1")][O("0x8")],this[O("0xa")],t)}}const P=["execute","_isEnabledBasedOnSelection","editor","document","isEnabled","size","model","_command","_selectedSuggestions","canEditAt","selection","values","refresh"];var D,B;D=P,B=137,function(t){for(;--t;)D.push(D.shift())}(++B);const j=function(t,e){return P[t-=0]};class U extends t.Command{constructor(t,e,n){super(t),this[j("0x0")]=e,this._suggestions=n,this[j("0x1")]=new Set,this[j("0x5")](),this[j("0x7")]=!1}refresh(){const t=this[j("0x8")][j("0xc")][j("0x9")][j("0x3")],e=Array.from(this._suggestions[j("0x4")]());this[j("0x1")]=function(t,e){const n=Array[v("0x16")](t[v("0x19")]()),o=new Set;for(const s of e)if(s.isInContent)for(const e of n)for(const n of s[v("0x19")]())(e[v("0xa")](n)||t[v("0x12")]&&!s[v("0x15")]&&s[v("0x18")]&&n[v("0x1a")][v("0x3")](e.start))&&o.add(s);return o}(t,e),this.isEnabled=this[j("0x0")][j("0xa")]&&!!this._selectedSuggestions[j("0xb")]}[j("0x6")](){const t=R(Array.from(this[j("0x1")]));for(const e of t){const t=e.getRanges();if(!this[j("0x8")][j("0xc")][j("0x2")](t))return}L(this.editor.model,this[j("0x0")],t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const z=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var W=Array.prototype.splice;const V=function(t){var e=this.__data__,n=z(e,t);return!(n<0)&&(n==e.length-1?e.pop():W.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=z(e,t);return n<0?void 0:e[n][1]};const q=function(t){return z(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=z(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=V,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const J=$;const Q=function(){this.__data__=new J,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const st=ot.Symbol;var rt=Object.prototype,it=rt.hasOwnProperty,xt=rt.toString,at=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var s=xt.call(t);return o&&(e?t[at]=n:delete t[at]),s};var lt=Object.prototype.toString;const dt=function(t){return lt.call(t)};var ut=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ut&&ut in Object(t)?ct(t):dt(t)};const mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,vt=kt.hasOwnProperty,Rt=RegExp("^"+At.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const It=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=It(t,e);return St(n)?n:void 0};const Nt=Lt(ot,"Map");const Mt=Lt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Dt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Dt.call(e,t)};const jt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Ut.prototype.clear=wt,Ut.prototype.delete=Ot,Ut.prototype.get=Pt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||J),string:new Gt}};const zt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Wt=function(t,e){var n=t.__data__;return zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=Wt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Wt(this,t).get(t)};const qt=function(t){return Wt(this,t).has(t)};const Xt=function(t,e){var n=Wt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Vt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Jt=$t;const Qt=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new J(t);this.size=e.size}Zt.prototype.clear=Q,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Qt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),s?ne(n,x,a):se(n,x,a)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,de=ce.propertyIsEnumerable;const ue=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!de.call(t,"callee")};const ge=Array.isArray;const me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===fe?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||me;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return xe(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=ve&&ve.exports===Ae&&et.process;const Se=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Ie=Se&&Se.isTypedArray;const Le=Ie?ke(Ie):ye;var Ne=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&ue(t),s=!n&&!o&&be(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?Me(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var ze=Object.prototype.hasOwnProperty;const We=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&ze.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?Me(t,!0):We(t)};const Ke=function(t,e){return t&&re(e,Ve(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Je=$e?$e.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,o=Je?Je(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,r=[];++n<o;){var i=t[n];e(i,n,t)&&(r[s++]=i)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return re(t,on(t),e)};const rn=function(t,e){for(var n=-1,o=e.length,s=t.length;++n<o;)t[s+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const dn=function(t){return ln(t,Ue,on)};const un=function(t){return ln(t,Ve,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Nt),kn=Tt(mn),An=Tt(fn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=pn||mn&&Rn(mn.resolve())!=bn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case Cn:return Tn;case yn:return pn;case kn:return bn;case An:return En;case vn:return _n}return e});const Sn=Rn;var In=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&In.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Pn=st?st.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(t){return Dn?Object(Dn.call(t)):{}};const jn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const zn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const Wn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Vn=Se&&Se.isMap;const Kn=Vn?ke(Vn):Wn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.isSet;const $n=Xn?ke(Xn):qn;var Jn="[object Arguments]",Qn="[object Function]",Zn="[object Object]",Yn={};Yn[Jn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Qn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,r,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,s,r,i):o(e)),void 0!==x)return x;if(!mt(e))return e;var d=ge(e);if(d){if(x=Ln(e),!a)return Ze(e,x)}else{var u=Sn(e),g=u==Qn||"[object GeneratorFunction]"==u;if(be(e))return Qe(e,a);if(u==Zn||u==Jn||g&&!r){if(x=c||g?{}:zn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[u])return r?e:{};x=Un(e,u,a)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,x),$n(e)?e.forEach((function(s){x.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){x.set(r,t(s,n,o,r,e,i))}));var f=d?void 0:(l?c?un:dn:c?Ve:Ue)(e);return te(f||e,(function(s,r){f&&(s=e[r=s]),se(x,r,t(s,n,o,r,e,i))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Jt),n}io.Cache=Jt;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const po=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!mt(t))return t;for(var s=-1,r=(e=po(e,t)).length,i=r-1,x=t;null!=x&&++s<r;){var a=bo(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,s,r){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var d=-1,u=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++d<x;){var m=t[d],f=e[d];if(o)var h=i?o(f,m,d,e,t,r):o(m,f,d,t,e,r);if(void 0!==h){if(h)continue;u=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(m===t||s(m,t,n,o,r)))return g.push(e)}))){u=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){u=!1;break}}return r.delete(t),r.delete(e),u};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=st?st.prototype:void 0,No=Lo?Lo.valueOf:void 0;const Mo=function(t,e,n,o,s,r,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=So;case"[object Set]":var a=1&o;if(x||(x=Io),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(x(t),x(e),o,s,r,i);return i.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,r){var i=1&n,x=dn(t),a=x.length;if(a!=dn(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:wo.call(e,l)))return!1}var d=r.get(t),u=r.get(e);if(d&&u)return d==e&&u==t;var g=!0;r.set(t,e),r.set(e,t);for(var m=i;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var p=i?o(h,f,l,e,t,r):o(f,h,l,t,e,r);if(!(void 0===p?f===h||s(f,h,n,o,r):p)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),x=ge(e),a=i?Po:Sn(t),c=x?Po:Sn(e),l=(a=a==Fo?Do:a)==Do,d=(c=c==Fo?Do:c)==Do,u=a==c;if(u&&be(t)){if(!be(e))return!1;i=!0,l=!1}if(u&&!l)return r||(r=new Yt),i||Le(t)?Ro(t,e,n,o,s,r):Mo(t,e,a,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=d&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return r||(r=new Yt),s(f,h,n,o,r)}}return!!u&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const zo=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const Wo=function(t,e,n){var o=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(s);++o<s;)r[o]=t[o+e];return r};const Vo=function(t,e){return e.length<2?t:zo(t,Wo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Vo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["getContainedElement","previous","addRange","@external","isMultiRange","_onDiscard","getItems","split","getRange","head","toJSON","map","isIntersecting","next","discard","push","set","addMarker","change","size","get","createdAt","type","addMarkerName","_isDataLoaded","_onAttributesChange","_markerNames","getMarkerNames","_saved","getRanges","creator","hasComments","end","removeMarker","getMultiRangeId","clear","delete","attributes","removeMarkers","getMarkers","length","onAccept","author","markers","filter","isExternal","commentThread","data","decorate","accept","subType","from","_model","onAttributesChange","removeAttribute","getFirstMarker","nodeBefore","getAllAdjacentSuggestions","isInContent","add"];var $o,Jo;$o=Xo,Jo=247,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("0x11")]=!1,this.id=e.id,this[Qo("0xf")]=e[Qo("0xf")],this.subType=e.subType||null,this[Qo("0x23")]=e.author,this[Qo("0x17")]=e.creator||e[Qo("0x23")],this[Qo("0x26")]=Boolean(e[Qo("0x1e")]&&e[Qo("0x1e")][Qo("0x38")]),this[Qo("0x28")]=null,this[Qo("0x2d")]=t,this._onAccept=e[Qo("0x22")],this[Qo("0x3a")]=e.onDiscard,this[Qo("0x12")]=e[Qo("0x2e")],this[Qo("0x13")]=new Set,this.createdAt=null,this.set("authoredAt",null),this[Qo("0x9")](Qo("0x1e"),e[Qo("0x1e")]||{}),this.set("previous",null),this[Qo("0x9")]("next",null),this[Qo("0x9")](Qo("0x27"),null),this[Qo("0x9")](Qo("0x15"),!1),this[Qo("0x29")](Qo("0x2a")),this[Qo("0x29")]("discard")}get[Qo("0x2")](){let t=this;for(;t[Qo("0x36")];)t=t[Qo("0x36")];return t}get[Qo("0x18")](){return!!this[Qo("0x27")]&&this[Qo("0x27")][Qo("0x21")]>0}get[Qo("0x39")](){return 0!=this[Qo("0x13")][Qo("0xc")]&&6==Array[Qo("0x2c")](this[Qo("0x13")])[0][Qo("0x0")](":")[Qo("0x21")]}get[Qo("0x33")](){return null!==this[Qo("0x30")]()}[Qo("0x10")](t){this[Qo("0x13")][Qo("0x34")](t)}getMarkerNames(){return Array[Qo("0x2c")](this[Qo("0x13")])}getMarkers(){return this[Qo("0x14")]().map((t=>this._model[Qo("0x24")][Qo("0xd")](t)))[Qo("0x25")]((t=>t))}getFirstMarker(){return this[Qo("0x20")]()[0]||null}removeMarkers(){this[Qo("0x2d")][Qo("0xb")]((t=>{for(const e of this.getMarkers())t[Qo("0x1a")](e)})),this[Qo("0x13")][Qo("0x1c")]()}[Qo("0x1a")](t){this[Qo("0x2d")].change((e=>{e.removeMarker(t)})),this[Qo("0x13")][Qo("0x1d")](t)}[Qo("0x37")](t){const e="suggestion:"+this.type+":"+this[Qo("0x2b")]+":"+this.id+":"+this[Qo("0x17")].id+":"+Zo[Qo("0x1b")]();this[Qo("0x10")](e),this._model.change((n=>{n[Qo("0xa")](e,{range:t,usingOperation:!0,affectsData:!0})}))}isIntersectingWithRange(t){for(const e of this[Qo("0x16")]())if(e[Qo("0x5")](t))return!0;return!1}[Qo("0x16")](){return this[Qo("0x20")]()[Qo("0x4")]((t=>t[Qo("0x1")]()))}[Qo("0x3b")](){return this[Qo("0x16")]().reduce(((t,e)=>[...t,...e[Qo("0x3b")]()]),[])}getFirstRange(){var t;return(null===(t=this.getFirstMarker())||void 0===t?void 0:t[Qo("0x1")]())||null}[Qo("0x35")](){const t=this.getRanges();if(1!=t.length)return null;const e=t[0],n=e.start.nodeAfter,o=e[Qo("0x19")][Qo("0x31")];return n instanceof i.Element?n!=o?null:n:null}[Qo("0x2a")](){this._onAccept(this.getRanges(),this[Qo("0x28")],this[Qo("0x1e")]),this[Qo("0x1f")]()}[Qo("0x7")](){this[Qo("0x3a")](this[Qo("0x16")](),this[Qo("0x28")],this[Qo("0x1e")]),this[Qo("0x1f")]()}[Qo("0x32")](){const t=[];let e=this.head;for(;e;)t[Qo("0x8")](e),e=e[Qo("0x6")];return t}setAttribute(t,e){const n=eo(this.attributes);_o(n,t,e),Go(n,this[Qo("0x1e")])||(this[Qo("0x1e")]=n,this[Qo("0x12")](n))}[Qo("0x2f")](t){const e=eo(this[Qo("0x1e")]);qo(e,t),Go(e,this[Qo("0x1e")])||(this[Qo("0x1e")]=e,this[Qo("0x12")](this[Qo("0x1e")]))}[Qo("0x3")](){return{id:this.id,type:this[Qo("0x2b")]?this.type+":"+this[Qo("0x2b")]:this[Qo("0xf")],authorId:this[Qo("0x17")].id,createdAt:this[Qo("0xe")],hasComments:this[Qo("0x18")],data:this[Qo("0x28")],attributes:this[Qo("0x1e")]}}static[Qo("0x1b")](){return(0,e.uid)().substr(1,5)}}function Yo(t,e,n){const o=t.t;switch(e){case"Track changes":return o("Track changes");case"Accept suggestion":return o("Accept suggestion");case"Discard suggestion":return o("Discard suggestion");case"Accept all suggestions":return o("Accept all suggestions");case"Accept all selected suggestions":return o("Accept all selected suggestions");case"Discard all suggestions":return o("Discard all suggestions");case"Discard all selected suggestions":return o("Discard all selected suggestions");case"*Reset font size*":return o("*Reset font size*");case"*Reset font family*":return o("*Reset font family*");case"*Reset font color*":return o("*Reset font color*");case"*Reset font background color*":return o("*Reset font background color*");case"*Remove image text alternative*":return o("*Remove image text alternative*");case"*Reset image width*":return o("*Reset image width*");case"*Remove link*":return o("*Remove link*");case"*Check item*":return o("*Check item*");case"*Uncheck item*":return o("*Uncheck item*");case"*Remove all formatting*":return o("*Remove all formatting*");case"*Replace table cells*":return o("*Replace table cells*");case"*Merge cells*":return o("*Merge cells*");case"*Split cell:* vertically":return o("*Split cell:* vertically");case"*Split cell:* horizontally":return o("*Split cell:* horizontally");case"*Indent:* %0":return o("*Indent:* %0",n);case"*Outdent:* %0":return o("*Outdent:* %0",n);case"*Change to:* %0":return o("*Change to:* %0",n);case"*Insert:* %0":return o("*Insert:* %0",n);case"*Format:* %0":return o("*Format:* %0",n);case"*Format:* change table properties":return o("*Format:* change table properties");case"*Format:* change table cell properties":return o("*Format:* change table cell properties");case"*Format:* insert into %0":return o("*Format:* insert into %0",n);case"*Format:* remove from %0":return o("*Format:* remove from %0",n);case"*Format:* replace image URL":return o("*Format:* replace image URL");case"*Format:* resize table":return o("*Format:* resize table");case"*Format:* set order to reversed":return o("*Format:* set order to reversed");case"*Format:* set order to regular":return o("*Format:* set order to regular");case"*Format:* set start index to %0":return o("*Format:* set start index to %0",n);case"*Change %0 content*":return o("*Change %0 content*",n);case"*Remove:* %0":return o("*Remove:* %0",n);case"*Merge:* %0":return o("*Merge:* %0",n);case"*Split:* %0":return o("*Split:* %0",n);case"*Remove format:* %0":return o("*Remove format:* %0",n);case"*Set font size:* %0":return o("*Set font size:* %0",n);case"*Set font family:* %0":return o("*Set font family:* %0",n);case"*Set format to:* %0":return o("*Set format to:* %0",n);case"*Set font color:* %0":return o("*Set font color:* %0",n);case"*Set font background color:* %0":return o("*Set font background color:* %0",n);case"*Set image text alternative:* %0":return o("*Set image text alternative:* %0",n);case"*Set image width:* %0":return o("*Set image width:* %0",n);case"*Set link:* %0":return o("*Set link:* %0",n);case"*Set highlight:* %0":return o("*Set highlight:* %0",n);case"*Remove highlight*":return o("*Remove highlight*");case"FORMAT_HIGHLIGHT":return o({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return o({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return o({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return o({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return o({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return o({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return o({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return o({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return o({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return o({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return o({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return o({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return o({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return o({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return o({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_CIRCLE":return o({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return o({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return o({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return o({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return o({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return o({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return o({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return o({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return o({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return o({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return o({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return o({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_TABLE_OF_CONTENTS":return o({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return o({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return o({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return o({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return o({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return o({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return o({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);default:return e}}const ts=["label","isEqual","pop","_customCallbacks","replace","skip","*Merge:* %0","end","*Remove:* %0","_locale","registerElementLabel","isEmpty","_addDescriptionItems","length","insertion","ELEMENT_SPACE","push","removeContainer","isObject","getFirstRange","isInContent","text","element","match","set","get","REPLACE_TEXT","type","*Split:* %0","Container","$text","getWalker","elementEnd","*Insert:* %0","_itemLabels","indexOf","$1 $2","removeEmptyContainer","normal","name","start","quantity","softBreak","nextSibling","$textProxy","previousSibling","EmptyContainer","_schema","_resolveDescriptionItems","addEmptyContainer","removeObject","getItemLabel","getDescriptions","data","remove","deletion","add","addObject","Object","_itemLabelsCallbacks"];var es,ns;es=ts,ns=335,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class ss{constructor(t,e){this[os("0x1c")]=[],this[os("0x3b")]=new Map,this[os("0x18")]=[],this[os("0xc")]=t,this[os("0x22")]=e}[os("0x11")](t){const e=[];for(let n=0;n<t[os("0x26")];n++){const o=t[n];if(!o[os("0x2d")])continue;let s=!1;for(const t of this._customCallbacks){const n=t(o);if(n){os("0x34")in n&&e.push(n),s=!0;break}}if(!s){this[os("0x25")](e,o);const s=t[n+1];if(s&&!o[os("0x2c")]()[os("0x20")][os("0x1a")](s[os("0x2c")]()[os("0x5")])){const t=e[e.length-1],n="insertion"==o[os("0x34")]?os("0x15"):os("0x13");t&&os("0x2e")==t[os("0x34")]&&(t[n]+="\n")}}}return this._resolveDescriptionItems(e)}registerDescriptionCallback(t){this[os("0x1c")].push(t)}[os("0x23")](t,n,o=e.priorities[os("0x3")]){"function"==typeof t?(0,e.insertToPriorityArray)(this._itemLabelsCallbacks,{matchingCallback:t,label:n,priority:o}):this._itemLabels[os("0x31")](t,n)}[os("0x10")](t,e=1){let n;for(const e of this[os("0x18")])if(e.matchingCallback(t)){n=e[os("0x19")];break}return n||(n=this._itemLabels[os("0x32")](t[os("0x4")])),n?n(e):1!==e?e+" "+t.name+"s":""+t[os("0x4")]}_addDescriptionItems(t,e){const n=e.getFirstRange()[os("0x38")](),o=os("0x27")==e[os("0x34")]?os("0x15"):os("0x13");for(const e of n){const s=e.item,r=t[t[os("0x26")]-1];if(s.is(os("0x9")))r&&r.type[os("0x0")](os("0x36"))>-1&&t[os("0x1b")](),r&&"text"==r[os("0x34")]?r[o]+=s.data:t.push({type:os("0x2e"),add:os("0x15")==o?s[os("0x12")]:"",remove:os("0x13")==o?s[os("0x12")]:""});else if(this[os("0xc")][os("0x2b")](s)){const i=s;if(r&&r[os("0x34")][os("0x0")]("Container")>-1&&t[os("0x1b")](),os("0x39")==e.type)continue;r&&r[os("0x34")]==o+os("0x17")&&r[os("0x2f")][os("0x4")]==i.name?r[os("0x6")]++:t[os("0x29")]({type:o+os("0x17"),element:i,quantity:1}),n[os("0x1e")]((t=>!(os("0x39")==t.type&&t.item==s)))}else if(this[os("0xc")].checkChild(s,os("0x37"))||s.is(os("0x2f"),os("0x7"))){const n=s;if(os("0x15")==o&&"elementStart"==e.type||os("0x13")==o&&os("0x39")==e[os("0x34")])continue;if(r&&-1==r[os("0x34")][os("0x0")](os("0x36"))){os("0x2e")==r.type&&(r[o]+="\n");continue}let i;if(i=os("0x15")==o?n[os("0x8")]&&!this._schema[os("0x2b")](n[os("0x8")])?n[os("0x8")]:null:n.previousSibling&&!this[os("0xc")][os("0x2b")](n[os("0xa")])?n[os("0xa")]:null,n[os("0x24")]||i&&i[os("0x24")]){const e=i&&i[os("0x24")]?i:n;r&&r[os("0x34")]==o+os("0xb")&&r[os("0x2f")].name==e[os("0x4")]?r[os("0x6")]++:t[os("0x29")]({type:o+"EmptyContainer",element:e,quantity:1})}else t[os("0x29")]({type:o+os("0x36"),element:n})}}}[os("0xd")](t){const e=this[os("0x22")],n=[];for(const o of t){switch(o.type){case os("0x2e"):if(o[os("0x15")]=o.add.replace(/(\S)\u000A+(\S)/g,os("0x1"))[os("0x1d")](/\u000A/g,""),o[os("0x13")]=o.remove[os("0x1d")](/(\S)\u000A+(\S)/g,os("0x1"))[os("0x1d")](/\u000A/g,""),""!=o[os("0x15")]&&""!=o[os("0x13")]){n[os("0x29")]({type:os("0x1d"),content:Yo(e,os("0x33"),['"'+o.remove+'"','"'+o[os("0x15")]+'"'])});continue}if(null!=o.add[os("0x30")](/^ +$/)){n[os("0x29")]({type:"insertion",content:Yo(e,os("0x3a"),Yo(e,os("0x28"),o.add[os("0x26")]))});continue}if(null!=o[os("0x13")].match(/^ +$/)){n[os("0x29")]({type:os("0x14"),content:Yo(e,os("0x21"),Yo(e,"ELEMENT_SPACE",o[os("0x13")][os("0x26")]))});continue}if(""!=o[os("0x15")]){n[os("0x29")]({type:os("0x27"),content:Yo(e,os("0x3a"),'"'+o[os("0x15")]+'"')});continue}n[os("0x29")]({type:os("0x14"),content:Yo(e,os("0x21"),'"'+o[os("0x13")]+'"')});continue;case os("0xe"):case os("0x16"):n[os("0x29")]({type:os("0x27"),content:Yo(e,os("0x3a"),this[os("0x10")](o[os("0x2f")],o[os("0x6")]))});continue;case os("0x2"):case os("0xf"):n[os("0x29")]({type:os("0x14"),content:Yo(e,"*Remove:* %0",this[os("0x10")](o[os("0x2f")],o[os("0x6")]))});continue;case"addContainer":n[os("0x29")]({type:"insertion",content:Yo(e,os("0x35"),this[os("0x10")](o.element,o.quantity))});continue;case os("0x2a"):n[os("0x29")]({type:os("0x14"),content:Yo(e,os("0x1f"),this[os("0x10")](o[os("0x2f")],o.quantity))});continue}n[os("0x29")](o)}return n}}const rs=["document","getSelectedBlocks","getAttribute","editor","_descriptionFactory","registerDescriptionCallback","left","contentLanguageDirection","ltr","format","checkAttribute","plugins","commandParams","selection","change","value","model","FORMAT_ALIGN_TO_CENTER","enableCommand","schema","commandName","locale","has","alignment","TrackChangesEditing","afterInit","markBlockFormat","FORMAT_ALIGN_TO_RIGHT","from"];var is,xs;is=rs,xs=229,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x1c")](){const t=this[as("0x6")],e=t[as("0x18")];if(!t.plugins[as("0x19")]("AlignmentEditing"))return;const n=t[as("0xe")].get(as("0x1b"));n[as("0x15")]("alignment",((e,o={})=>{let s=o[as("0x12")];o.value||(s=as("0xb")===t[as("0x18")][as("0xa")]?as("0x9"):"right");const r=Array[as("0x2")](this.editor.model[as("0x3")][as("0x10")][as("0x4")]()).filter((t=>function(t,e,n){const o=t[as("0x5")](as("0x1a"))||null;return e[as("0xd")](t,as("0x1a"))&&n!=o}(t,this[as("0x6")].model[as("0x16")],s)));t[as("0x13")][as("0x11")]((()=>{for(const t of r)n[as("0x0")](t,{commandName:as("0x1a"),commandParams:[{value:s}]})}))})),n[as("0x7")][as("0x8")]((t=>{const{data:n}=t;if(n&&as("0x1a")==n[as("0x17")]){const t=n[as("0xf")][0][as("0x12")];return{type:as("0xc"),content:Yo(e,"*Format:* %0",function(t){switch(t){case"left":return Yo(e,"FORMAT_ALIGN_TO_LEFT");case"right":return Yo(e,as("0x1"));case"center":return Yo(e,as("0x14"));case"justify":return Yo(e,"FORMAT_JUSTIFY_TEXT")}}(t))}}}))}}const ls=["type","ck-suggestion-marker-","parent","isAtEnd","listItem","writer","isLimit","markerName","isBlock","test","addClass","markerRange","previousPosition","consumable","elementEnd","hasAttribute","getWalker","mapper","name","nextSibling","listIndent","TrackChangesEditing","getCustomProperty","getItems","insert","isContent","includes","plugins","schema","element","push","get","bindElementToMarker","createRangeOn"];var ds,us;ds=ls,us=488,function(t){for(;--t;)ds.push(ds.shift())}(++us);const gs=function(t,e){return ls[t-=0]};function ms(t,e,n){const o=[];for(const s of e[gs("0xb")]())s[gs("0x3")](t)&&o.push(n[gs("0x15")](s));return o}function fs(t){const e=[];if(t.is(gs("0x11"),gs("0x1a"))){let n=t[gs("0x7")];for(;n&&n.is(gs("0x11"),gs("0x1a"))&&n.getAttribute(gs("0x8"))>0;)e[gs("0x12")](n),n=n[gs("0x7")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t[gs("0xf")][gs("0x13")](gs("0x9"));return(s,r,i)=>{if(!i[gs("0x1")][gs("0x1f")](r.markerRange,s[gs("0x6")]))return;const x=r[gs("0x21")][gs("0x4")](),a=r[gs("0x21")].start,c=t.model[gs("0x10")];let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t.item;u=u||c[gs("0xd")](e);const n=i[gs("0x5")].toViewElement(e);if(n&&n[gs("0xa")]("addHighlight"))return;gs("0x2")==t[gs("0x16")]&&c[gs("0x1e")](e)&&!c[gs("0x1c")](e)&&(e[gs("0x7")]||a[gs("0x19")]?l&&l[gs("0x18")]==e||(l=e,m(t[gs("0x0")]),g=!0):d=d||t[gs("0x0")])}function m(t){const s=i[gs("0x1b")].createUIElement("span",{class:gs("0x17")+e}),x=i[gs("0x5")].toViewPosition(t);n&&o.activeMarkers[gs("0xe")](r[gs("0x1d")])&&i[gs("0x1b")][gs("0x20")]("ck-suggestion-marker--active",s),i[gs("0x1b")][gs("0xc")](x,s),i[gs("0x5")][gs("0x14")](s,r[gs("0x1d")])}u||g||!d||m(d)}}const ps=["FORMAT_CODE","forceValue","strikethrough","value","FORMAT_STRIKETHROUGH","FORMAT_SUBSCRIPT","getRanges","editor","SuperscriptEditing","TrackChangesEditing","SubscriptEditing","locale","FORMAT_ITALIC","superscript","italic","document","toLowerCase","underline","format","subscript","*Remove format:* %0","BoldEditing","from","*Format:* %0","FORMAT_UNDERLINE","ItalicEditing","StrikethroughEditing","slice","change","registerDescriptionCallback","FORMAT_SUPERSCRIPT","selection","get","CodeEditing","plugins","markInlineFormat"];var bs,Es;bs=ps,Es=431,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=[_s("0x16"),_s("0x1a"),"UnderlineEditing",_s("0x22"),_s("0x1b"),_s("0xb"),_s("0x9")];class Cs extends t.Plugin{afterInit(){const t=this[_s("0x8")],e=t.model,n=t[_s("0x23")].get(_s("0xa")),o=t[_s("0xc")];for(const o of Ts){if(!t[_s("0x23")].has(o))continue;const s=o[_s("0x1c")](0,-7)[_s("0x11")](),r=t.commands[_s("0x21")](s);n.enableCommand(s,((t,o={})=>{const i=e[_s("0x10")][_s("0x20")];if(i.isCollapsed)return void t(o);const x=void 0!==o.forceValue?o[_s("0x2")]:!r[_s("0x4")];e[_s("0x1d")]((()=>{const t=Array[_s("0x17")](i[_s("0x7")]());for(const o of t){const t=x?[o]:ms(s,o,e);for(const e of t)n[_s("0x0")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n._descriptionFactory[_s("0x1e")]((n=>{const{data:s}=n;if(s&&s.commandName===t)return s.commandParams[0].forceValue?{type:"format",content:Yo(o,_s("0x18"),e)}:{type:_s("0x13"),content:Yo(o,_s("0x15"),e)}}))}s("bold",Yo(o,"FORMAT_BOLD")),s(_s("0xf"),Yo(o,_s("0xd"))),s(_s("0x12"),Yo(o,_s("0x19"))),s("code",Yo(o,_s("0x1"))),s(_s("0x3"),Yo(o,_s("0x5"))),s(_s("0x14"),Yo(o,_s("0x6"))),s(_s("0xe"),Yo(o,_s("0x1f")))}}const ys=["plugins","document","has","schema","value","*Remove format:* %0","parent","change","editor","ELEMENT_BLOCK_QUOTE","getSelectedBlocks","locale","from","forceValue","selection","checkChild","blockQuote","afterInit","name","filter","registerDescriptionCallback","$root","format","enableCommand","*Format:* %0","BlockQuoteEditing","get","model","commands"];var ks,As;ks=ys,As=227,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return ys[t-=0]};class Rs extends t.Plugin{[vs("0x16")](){const t=this[vs("0xd")],e=t[vs("0x10")];if(!t[vs("0x5")][vs("0x7")](vs("0x1")))return;const n=t[vs("0x5")][vs("0x2")]("TrackChangesEditing"),o=this.editor[vs("0x4")][vs("0x2")](vs("0x15"));n[vs("0x1c")]("blockQuote",((e,s={})=>{const r=this[vs("0xd")].model[vs("0x6")][vs("0x13")],i=s&&void 0!==s[vs("0x12")]?s.forceValue:!o[vs("0x9")];let x=[];if(i){const e=Array.from(r[vs("0xf")]())[vs("0x18")]((t=>Ss(t)||function(t,e){const n=e[vs("0x14")](t[vs("0xb")],vs("0x15")),o=e[vs("0x14")]([vs("0x1a"),vs("0x15")],t);return n&&o}(t,this[vs("0xd")][vs("0x3")][vs("0x8")])));x=S(e,t[vs("0x3")])}else{const e=Array[vs("0x11")](r[vs("0xf")]())[vs("0x18")]((t=>Ss(t)));x=S(e,t[vs("0x3")])}t.model[vs("0xc")]((()=>{for(const t of x)n.markBlockFormat(t,{commandName:vs("0x15"),commandParams:[{forceValue:i}]})}))})),n._descriptionFactory[vs("0x19")]((t=>{const{data:n}=t;if(n&&vs("0x15")==n.commandName){const t=Yo(e,vs("0xe"));return n.commandParams[0].forceValue?{type:vs("0x1b"),content:Yo(e,vs("0x0"),t)}:{type:"format",content:Yo(e,vs("0xa"),t)}}}))}}function Ss(t){return vs("0x15")==t.parent[vs("0x17")]}const Is=["get","ckbox","TrackChangesEditing","plugins","editor","commands","afterInit"];var Ls,Ns;Ls=Is,Ns=198,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const Ms=function(t,e){return Is[t-=0]};class ws extends t.Plugin{[Ms("0x4")](){const t=this[Ms("0x2")];t[Ms("0x3")][Ms("0x5")](Ms("0x6"))&&t[Ms("0x1")].get(Ms("0x0")).enableCommand(Ms("0x6"))}}const Os=["editor","*Format:* %0","codeBlock","ELEMENT_CODE_BLOCK","formatBlock","model","registerElementLabel","selection","_descriptionFactory","label","get","config","commandParams","forceValue","getSelectedBlocks","language","commands","checkChild","rootElement","markBlockFormat","languages","outdentCodeBlock","plugins","enableCommand","commandName","schema","filter","*Remove format:* %0","blockName","has","CodeBlock","name","from","value","format","document","TrackChangesEditing"];var Fs,Ps;Fs=Os,Ps=197,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{afterInit(){const t=this[Ds("0x19")];if(!t[Ds("0xa")][Ds("0x11")](Ds("0x12")))return;const e=t[Ds("0xa")][Ds("0x23")](Ds("0x18")),n=t.locale,o=t[Ds("0x24")][Ds("0x23")](Ds("0x1b"))[Ds("0x8")],s=t[Ds("0x4")][Ds("0x23")](Ds("0x1b"));e[Ds("0xb")]("indentCodeBlock"),e[Ds("0xb")](Ds("0x9")),e[Ds("0xb")]("codeBlock",((n,r={})=>{const i=t[Ds("0x1e")],x=t.model[Ds("0x17")][Ds("0x20")],a=r&&void 0!==r[Ds("0x1")]?r[Ds("0x1")]:!s[Ds("0x15")];let c;r[Ds("0x3")]||(r[Ds("0x3")]=o[0][Ds("0x3")]),c=a?Array[Ds("0x14")](x.getSelectedBlocks())[Ds("0xe")]((t=>{return js(t)||(e=t,n=i[Ds("0xd")],!e.is(Ds("0x6"))&&!n.isLimit(e)&&n[Ds("0x5")](e.parent,Ds("0x1b")));var e,n})):Array.from(x[Ds("0x2")]()).filter((t=>js(t)));const l=S(c,i);i.change((()=>{for(const t of l)e[Ds("0x7")](t,{commandName:Ds("0x1b"),commandParams:[{...r,forceValue:a}],formatGroupId:Ds("0x10")})}))})),e[Ds("0x21")][Ds("0x1f")]("codeBlock",(t=>Yo(n,Ds("0x1c"),t))),e[Ds("0x21")].registerDescriptionCallback((t=>{const e=n.t,{type:s,data:r}=t;if(Ds("0x1d")==s&&r&&Ds("0x1b")==r[Ds("0xc")]){const t=r.commandParams[0][Ds("0x3")],s=e(o.find((e=>e[Ds("0x3")]===t))[Ds("0x22")]);return r[Ds("0x0")][0][Ds("0x1")]?{type:Ds("0x16"),content:Yo(n,Ds("0x1a"),Yo(n,"ELEMENT_CODE_BLOCK",1)+" ("+s+")")}:{type:Ds("0x16"),content:Yo(n,Ds("0xf"),Yo(n,Ds("0x1c"),1))}}}))}}function js(t){return Ds("0x1b")==t[Ds("0x13")]}const Us=["editor","plugins","get","enableCommand","addCommentThread","TrackChangesEditing"];var Gs,Hs;Gs=Us,Hs=415,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const zs=function(t,e){return Us[t-=0]};class Ws extends t.Plugin{afterInit(){const t=this[zs("0x5")];t[zs("0x0")].has("CommentsEditing")&&t.plugins[zs("0x1")](zs("0x4"))[zs("0x2")](zs("0x3"))}}var Vs=n(181);const Ks=["batch","end","init","enqueueChange","unbindElementFromMarkerName","plugins","model","high","addMarker:suggestion:deletion","options","fromRange","lock","unlock","requires","delete","get","merge","createSelection","markerNameToElements","uiElement","createRange","getFirstRange","unit","selection","root","editing","downcastDispatcher","bind","commands","remove","removeMarker:suggestion:deletion","writer","markerName","deleteForward","start","setSelection","forward","buffer","enableCommand","isCollapsed"];var qs,Xs;qs=Ks,Xs=486,function(t){for(;--t;)qs.push(qs.shift())}(++Xs);const $s=function(t,e){return Ks[t-=0]};class Js extends t.Plugin{static get[$s("0x7")](){return[Vs.Delete]}[$s("0x24")](){const t=this.editor,e=t[$s("0x27")].get("TrackChangesEditing");e[$s("0x20")]($s("0x8"));const n=t[$s("0x16")][$s("0x9")]($s("0x1b"));e.enableCommand("deleteForward",((e,o={})=>{const s=t.model[$s("0xb")](t[$s("0x0")].document[$s("0x11")]);s[$s("0x21")]&&t[$s("0x0")].modifySelection(s,{direction:$s("0x1e"),unit:o[$s("0x10")]});const r=s[$s("0xf")](),x=i.LiveRange[$s("0x4")](r);let a;e(o),a="$graveyard"==x[$s("0x12")].rootName?t[$s("0x0")][$s("0xe")](r.start):t[$s("0x0")][$s("0xe")](x[$s("0x1c")],x[$s("0x23")]),x.detach(),t[$s("0x0")][$s("0x25")](n.buffer[$s("0x22")],(t=>{n.buffer[$s("0x5")](),t[$s("0x1d")](t.createRange(a.end)),n[$s("0x1f")][$s("0x6")]()}))})),t[$s("0x13")].downcastDispatcher.on($s("0x2"),hs(t,"merge"),{priority:$s("0x1")}),t.data[$s("0x14")].on("addMarker:suggestion:deletion",((e,n,o)=>{o[$s("0x3")].showSuggestionHighlights&&hs(t,$s("0xa"),{showActiveMarker:!1})[$s("0x15")](this)(e,n,o)}),{priority:$s("0x1")}),t[$s("0x13")].downcastDispatcher.on($s("0x18"),((t,e,n)=>{const o=n.mapper[$s("0xc")](e[$s("0x1a")]);if(o)for(const t of o)t.is($s("0xd"))&&(n.mapper[$s("0x26")](t,e[$s("0x1a")]),n[$s("0x19")][$s("0x17")](t))}),{priority:$s("0x1")})}}const Qs=["commandParams","commands","from","plugins","DocumentListUtils","end","getFirstRange","afterInit","markMultiRangeBlockFormat","isFirstBlockOfListItem","before","expandListBlocksToCompleteList","has","registerDescriptionCallback","commandName","listIndent","push","value","accept","forceValue","enableCommand","previousSibling","containsItem","parent","createRange","createPositionAt","model","splitListItemBefore","indentList","getAttribute","documentList","*Change to:* %0","refresh","ELEMENT_NUMBERED_LIST","hasAttribute","numberedList","listType","get","_descriptionFactory","ELEMENT_BULLETED_LIST","detach","change","markBlockFormat","DocumentListEditing","outdentList","mergeListItemForward","selection","schema","add","locale","ELEMENT_LIST_ITEM","splitListItemAfter","multipleBlocks","ELEMENT_","format","listItemId","registerCustomCallback","isObject","document","editor","registerElementLabel","*Format:* remove from %0","*Indent:* %0","mergeListItemBackward","fromRange","execute","getSelectedBlocks","nextSibling","toUpperCase","setSelection","start","nodeAfter"];var Zs,Ys;Zs=Qs,Ys=288,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{[tr("0x7")](){const t=this[tr("0x3b")];if(!t[tr("0x3")][tr("0xc")](tr("0x2b")))return;const e=t[tr("0x31")],n=t.plugins.get("TrackChangesEditing"),o=t[tr("0x3")][tr("0x25")](tr("0x4"));function s(e){return()=>{const s=t[tr("0x1")][tr("0x25")](e);let r=Array.from(t.model[tr("0x3a")][tr("0x2e")][tr("0x42")]());if(a(e)){r=o[tr("0xb")](r);const t=[];for(const e of r)o[tr("0x9")](e)&&t[tr("0x10")](e);r=t}t[tr("0x1a")][tr("0x29")]((()=>{n[tr("0x8")](r,{commandName:e,commandParams:[{forceValue:!s[tr("0x11")]}],formatGroupId:tr("0x24")},[],tr("0x1e"))}))}}function r(e){return()=>{const o=function(t){let e=Array[tr("0x2")](t);const n=e.findIndex((t=>!t[tr("0x22")](tr("0x37"))));return n>-1&&(e=e.slice(0,n)),e}(t[tr("0x1a")][tr("0x3a")][tr("0x2e")].getSelectedBlocks()),s=o[o.length-1],r=t[tr("0x1a")][tr("0x2f")][tr("0x39")](s)?"after":tr("0x5"),i=t[tr("0x1a")].createRange(t[tr("0x1a")][tr("0x19")](o[0],tr("0xa")),t[tr("0x1a")][tr("0x19")](s,r));t[tr("0x1a")][tr("0x29")]((()=>{n.markBlockFormat(i,{commandName:e,commandParams:[],formatGroupId:tr("0x24")},function(t){const e=new Set;for(const n of t){let t=n[tr("0x43")];for(;t&&t[tr("0x1d")]("listIndent")>n[tr("0x1d")](tr("0xf"));)e[tr("0x30")](t),t=t[tr("0x43")]}return Array.from(e)}(o))}))}}function x(e){return()=>{const o=t.model[tr("0x3a")][tr("0x2e")][tr("0x42")]().next()[tr("0x11")],s=t[tr("0x1a")][tr("0x19")](o,tr("0xa")),r=t[tr("0x1a")][tr("0x19")](o,0),i=t.model[tr("0x18")](s,r);t.model[tr("0x29")]((()=>{n[tr("0x2a")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x24")})}))}}function a(e){const n=t[tr("0x1")][tr("0x25")]("bulletedList")[tr("0x11")],o=t.commands.get(tr("0x23"))[tr("0x11")];return tr("0x23")===e?n:o}n[tr("0x14")](tr("0x23"),s("numberedList")),n[tr("0x14")]("bulletedList",s("bulletedList")),n[tr("0x14")]("indentList",r("indentList")),n[tr("0x14")](tr("0x2c"),r(tr("0x2c"))),n[tr("0x14")]("splitListItemAfter",x(tr("0x33"))),n[tr("0x14")]("splitListItemBefore",x(tr("0x1b"))),n[tr("0x26")][tr("0x3c")]((function(e){const n=!t[tr("0x1a")][tr("0x2f")][tr("0x39")](e),o=e[tr("0x15")],s=e[tr("0x43")],r=e[tr("0x1d")](tr("0x37")),i=!o||o.getAttribute(tr("0x37"))!==r,x=!s||s[tr("0x1d")](tr("0x37"))!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,tr("0x32"),t))),n[tr("0x26")][tr("0xd")]((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n[tr("0xe")]){case"bulletedList":r=n[tr("0x0")][0][tr("0x13")],i=a(n.commandName),o=r?"*Format:* insert into %0":tr("0x3d"),i&&(o=tr("0x1f")),s={type:tr("0x36"),content:Yo(e,o,Yo(e,tr("0x27")))};break;case tr("0x23"):r=n[tr("0x0")][0][tr("0x13")],i=a(n[tr("0xe")]),o=r?"*Format:* insert into %0":tr("0x3d"),i&&(o=tr("0x1f")),s={type:tr("0x36"),content:Yo(e,o,Yo(e,tr("0x21")))};break;case tr("0x1c"):o=tr("0x3e"),s={type:tr("0x36"),content:Yo(e,o,Yo(e,tr("0x32")))};break;case"outdentList":o=function(t){const e=t[tr("0x6")]();let n=e.start[tr("0x47")];for(;n&&e[tr("0x16")](n);){if(n[tr("0x1d")]("listIndent")>0)return!1;n=n.nextSibling}return!0}(t)?Yo(e,tr("0x3d"),Yo(e,function(t){const e=t.getFirstRange()[tr("0x46")].nodeAfter;return tr("0x35")+e[tr("0x1d")]("listType")[tr("0x44")]()+"_LIST"}(t))):Yo(e,"*Outdent:* %0",Yo(e,tr("0x32"))),s={type:tr("0x36"),content:o};break;case tr("0x3f"):case tr("0x2d"):!1===n[tr("0x34")]&&(o="*Merge:* %0",s={type:"deletion",content:Yo(e,o,Yo(e,tr("0x32")))})}return s})),n._suggestionFactory[tr("0x38")]("formatBlock",tr("0x1e"),tr("0x12"),(function(e,n){const o=[];for(let n of e)n[tr("0x46")][tr("0x47")]===n.end[tr("0x17")]&&(n=t[tr("0x1a")][tr("0x18")](t[tr("0x1a")].createPositionAt(n[tr("0x46")].nodeAfter,0))),o[tr("0x10")](n);t[tr("0x1a")][tr("0x29")]((e=>{const s=t[tr("0x1a")].document[tr("0x2e")],r=Array[tr("0x2")](s.getRanges()).map((t=>i.LiveRange[tr("0x40")](t)));e[tr("0x45")](o),t[tr("0x1")][tr("0x25")](n.commandName)[tr("0x20")](),n.commandParams[tr("0x10")]({forceDefaultExecution:!0}),t[tr("0x41")](n[tr("0xe")],...n[tr("0x0")]),e[tr("0x45")](r);for(const t of r)t[tr("0x28")]()}))}))}}var nr=n(331);const or=["detach","get","model","getFirstRange","plugins","afterExecute","hasClass","editing","data","removeMarker:suggestion:insertion","getFirstPosition","mapper","TrackChangesEditing","parent","createRange","downcastDispatcher","remove","addMarker:suggestion:insertion","markerNameToElements","ck-suggestion-marker-split","document","bind","unbindElementFromMarkerName","createPositionAt","change","selection","markInsertion","enterBlock","markerName","enter","setSelection","high","split"];var sr,rr;sr=or,rr=407,function(t){for(;--t;)sr.push(sr.shift())}(++rr);const ir=function(t,e){return or[t-=0]};class xr extends t.Plugin{static get requires(){return[nr.Enter]}init(){const t=this.editor,e=t[ir("0x1a")][ir("0x17")](ir("0x1")),n=t.commands.get(ir("0x12"));e.enableCommand(ir("0x12"),(()=>{t.model[ir("0xd")]((o=>{const s=t[ir("0x18")][ir("0x9")][ir("0xe")],r=s[ir("0x20")](),x=i.LiveRange.fromRange(s[ir("0x19")]());if(n[ir("0x10")](o)){const n=t[ir("0x18")][ir("0xc")](r[ir("0x2")].nextSibling,0),s=o[ir("0x3")](r,n);e[ir("0xf")](s)}else o[ir("0x13")](o[ir("0x3")](x.end));x[ir("0x16")](),n.fire(ir("0x1b"),{writer:o})}))})),t[ir("0x1d")][ir("0x4")].on(ir("0x6"),hs(t,ir("0x15")),{priority:ir("0x14")}),t[ir("0x1d")][ir("0x4")].on(ir("0x1f"),((t,e,n)=>{const o=n.mapper[ir("0x7")](e[ir("0x11")]);if(o)for(const t of o)t[ir("0x1c")](ir("0x8"))&&(n[ir("0x0")][ir("0xb")](t,e[ir("0x11")]),n.writer[ir("0x5")](t))}),{priority:ir("0x14")}),t[ir("0x1e")][ir("0x4")].on(ir("0x6"),((e,n,o)=>{o.options.showSuggestionHighlights&&hs(t,ir("0x15"),{showActiveMarker:!1})[ir("0xa")](this)(e,n,o)}),{priority:ir("0x14")})}}const ar=["find","FindAndReplaceEditing","getIntersection","findPrevious","model","markers","end","createPositionAt","string","handleFindCommand","afterInit","createRange","findByTextCallback","FindAndReplaceUtils","replaceAll","bind","plugins","enableCommand","_isInDeletionRange","getMarkersGroup","editor","get","item","getRange","start","suggestion:deletion","has"];var cr,lr;cr=ar,lr=209,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const dr=function(t,e){return ar[t-=0]};class ur extends t.Plugin{[dr("0x11")](){if(!this[dr("0x0")].plugins[dr("0x6")](dr("0x8")))return;const t=this.editor[dr("0x17")][dr("0x1")]("TrackChangesEditing");t.enableCommand(dr("0x7"),this[dr("0x10")][dr("0x16")](this)),t[dr("0x18")]("findNext"),t.enableCommand(dr("0xa")),t[dr("0x18")]("replace"),t[dr("0x18")](dr("0x15"))}[dr("0x10")](t,e,n={}){const o=this[dr("0x0")][dr("0x17")][dr("0x1")](dr("0x14"));void 0!==n&&t((t=>(dr("0xf")==typeof e?o[dr("0x13")](e,n):e)(t).filter((e=>!1===this[dr("0x19")](e,t[dr("0x2")])))),n)}[dr("0x19")](t,e){const n=this[dr("0x0")][dr("0xb")][dr("0x12")](this[dr("0x0")][dr("0xb")][dr("0xe")](e,t[dr("0x4")]),this.editor.model[dr("0xe")](e,t[dr("0xd")]));for(const t of this[dr("0x0")][dr("0xb")][dr("0xc")][dr("0x1a")](dr("0x5")))if(null!==n[dr("0x9")](t[dr("0x3")]()))return!0;return!1}}const gr=["title","fontSize.options","enableCommand","has","FontBackgroundColorEditing","selection","get","format","label","getRanges","commandName","_enableCommand","editor","config","_descriptionFactory","FontColorEditing","*Reset font size*","commandParams","afterInit","*Set font color:* %0","FontFamilyEditing","plugins","fontBackgroundColor","fontColor","fontColor.colors","trim","*Set font size:* %0","change","model","fontSize","*Reset font family*","toLowerCase","from","value","TrackChangesEditing","locale","find","*Set font family:* %0","FontSizeEditing","markInlineFormat"];var mr,fr;mr=gr,fr=289,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:hr("0x1d"),commandName:hr("0x14")},{pluginName:hr("0xb"),commandName:"fontFamily"},{pluginName:hr("0x6"),commandName:hr("0xe")},{pluginName:hr("0x23"),commandName:hr("0xd")}];class br extends t.Plugin{[hr("0x9")](){const t=this[hr("0x3")][hr("0x1a")];for(const{pluginName:t,commandName:e}of pr)this[hr("0x3")][hr("0xc")][hr("0x22")](t)&&this[hr("0x2")](e);this[hr("0x3")][hr("0xc")][hr("0x25")](hr("0x19"))[hr("0x5")].registerDescriptionCallback((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hr("0x14")==o.commandName){const e=o[hr("0x8")][0][hr("0x18")];if(e){const o=n(this.editor[hr("0xc")][hr("0x25")]("FontSize").normalizeSizeOptions(this.editor[hr("0x4")][hr("0x25")](hr("0x20")))[hr("0x1b")]((t=>t[hr("0x13")]==e))[hr("0x1f")]).toLowerCase();return{type:"format",content:Yo(t,hr("0x11"),o)}}return{type:hr("0x26"),content:Yo(t,hr("0x7"))}}if("fontFamily"==o[hr("0x1")]){const e=o[hr("0x8")][0][hr("0x18")];return e?{type:hr("0x26"),content:Yo(t,hr("0x1c"),e)}:{type:hr("0x26"),content:Yo(t,hr("0x15"))}}if(hr("0xe")==o[hr("0x1")]){const e=o[hr("0x8")][0][hr("0x18")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x3")][hr("0x4")][hr("0x25")](hr("0xf")))[hr("0x1b")]((t=>t[hr("0x13")]==e));let r=e,i="";return o&&(r=o.label,i=n(r).toLowerCase()),{type:hr("0x26"),content:Yo(t,hr("0xa"),i)[hr("0x10")](),color:{value:e,title:i||r}}}return{type:"format",content:Yo(t,"*Reset font color*")}}if(hr("0xd")==o[hr("0x1")]){const e=o.commandParams[0][hr("0x18")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x3")][hr("0x4")][hr("0x25")]("fontBackgroundColor.colors"))[hr("0x1b")]((t=>t[hr("0x13")]==e));let r=e,i="";return o&&(r=o[hr("0x27")],i=n(r)[hr("0x16")]()),{type:hr("0x26"),content:Yo(t,"*Set font background color:* %0",i).trim(),color:{value:e,title:i||r}}}return{type:hr("0x26"),content:Yo(t,"*Reset font background color*")}}}}))}[hr("0x2")](t){const e=this[hr("0x3")];e.plugins[hr("0x25")](hr("0x19"))[hr("0x21")](t,((n,o={})=>{const s=e[hr("0x13")].document[hr("0x24")],r=o[hr("0x18")];s.isCollapsed?n(o):e.model[hr("0x12")]((()=>{const n=Array[hr("0x17")](s[hr("0x0")]());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0x13")]);for(const o of n)e.plugins[hr("0x25")]("TrackChangesEditing")[hr("0x1e")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["entries","format","config","markInlineFormat","get","isFormatting","copyFormat","normalizeSizeOptions","find","isCollapsed","getAttributeProperties","getAttributes","*Set format to:* %0","commands","toUpperCase","split","fontColor","enableCommand","fontSize","fontSize.options","TrackChangesEditing","title","afterInit","commandName","model","length","fontBackgroundColor","slice","charAt","locale","change","plugins","getItems","isBlock","getRanges","editor","backward","pasteFormat","fontColor.colors","getLastPosition","word","schema","keys","toLowerCase","getFirstPosition"];var _r,Tr;_r=Er,Tr=378,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{[Cr("0x4")](){const t=this[Cr("0x11")],n=t[Cr("0x6")],o=n.document.selection,s=t.plugins[Cr("0x1f")](Cr("0x2")),r=t[Cr("0xb")],i=t[Cr("0x28")][Cr("0x1f")](Cr("0x21")),x=t[Cr("0x28")].get(Cr("0x13"));i&&x&&(s[Cr("0x2c")](Cr("0x13"),((t,r={})=>{const i=r;n[Cr("0xc")]((()=>{const t=Array.from(o[Cr("0x10")]()),r=o[Cr("0x24")]?[kr(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t[Cr("0x26")]()){const t=e[Cr("0x25")](n);t&&t[Cr("0x20")]&&(yield n)}}(t,n));for(const e of t[Cr("0x10")]())for(const t of e[Cr("0xe")]())!n[Cr("0xf")](t)&&o(t)&&(yield t);for(const e of t.getSelectedBlocks())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cr("0x17")]))||0!==Object[Cr("0x18")](i)[Cr("0x7")])for(const t of r)s[Cr("0x1e")](t,{commandName:Cr("0x13"),commandParams:[i]})}))})),s._descriptionFactory.registerDescriptionCallback((e=>{const{data:n}=e;if(n&&Cr("0x13")===n[Cr("0x5")]){const e=[],o=n.commandParams[0];for(const[n,s]of Object[Cr("0x1b")](o))e.push(Ar(t,n,s));return e.length?{type:Cr("0x1c"),content:Yo(r,Cr("0x27"),e.join(", "))}:{type:Cr("0x1c"),content:Yo(r,"*Remove all formatting*")}}})),t[Cr("0xd")][Cr("0x1f")](Cr("0x2"))[Cr("0x2c")](Cr("0x21")))}}function kr(t,e){const n=t.createSelection(e);t.modifySelection(n,{unit:"word",direction:Cr("0x12")});const o=n[Cr("0x1a")]();t.modifySelection(n,{unit:Cr("0x16"),direction:"forward"});const s=n[Cr("0x15")]();return t.createRange(o,s)}function Ar(t,e,n){const o=t[Cr("0xb")].t,r=e[Cr("0x2a")](/(?=[A-Z])/).join(" "),i=o(r[Cr("0xa")](0)[Cr("0x29")]()+r[Cr("0x9")](1))[Cr("0x19")]();if("boolean"==typeof n)return i;if(Cr("0x2b")===e||Cr("0x8")===e){const e=(0,s.normalizeColorOptions)(t.config[Cr("0x1f")](Cr("0x14")))[Cr("0x23")]((t=>t[Cr("0x6")]==n));return i+" ("+(e?o(e.label)[Cr("0x19")]():n)+")"}if(Cr("0x0")===e&&isNaN(parseFloat(n))){const e=t.plugins[Cr("0x1f")]("FontSize")[Cr("0x22")](t[Cr("0x1d")][Cr("0x1f")](Cr("0x1")))[Cr("0x23")]((t=>t[Cr("0x6")]==n));return i+" ("+(e?o(e[Cr("0x3")])[Cr("0x19")]():n)+")"}return i+" ("+n+")"}const vr=["markBlockFormat","title","TrackChangesEditing","heading.options","parent","get","change","match","from","checkChild","afterInit","_descriptionFactory","getSelectedBlocks","heading","registerElementLabel","formatBlock","isObject","editor","format","selection","commandName","config","name","value","plugins","registerDescriptionCallback","ELEMENT_HEADING","blockName","HeadingEditing","enableCommand","model","document","find","commandParams","schema","*Change to:* %0"];var Rr,Sr;Rr=vr,Sr=436,function(t){for(;--t;)Rr.push(Rr.shift())}(++Sr);const Ir=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{[Ir("0x6")](){const t=this.editor,e=t.locale,n=t[Ir("0x11")][Ir("0x1")](Ir("0x23"));if(!t[Ir("0x14")].has(Ir("0x18")))return;const o=t[Ir("0x14")][Ir("0x1")](Ir("0x22"));o[Ir("0x19")](Ir("0x9"),((e,n)=>{const s=n[Ir("0x13")],r=Array[Ir("0x4")](this[Ir("0xd")][Ir("0x1a")][Ir("0x1b")][Ir("0xf")][Ir("0x8")]()).filter((t=>{return e=t,n=s,(o=this[Ir("0xd")][Ir("0x1a")][Ir("0x1e")])[Ir("0x5")](e[Ir("0x0")],n)&&!o[Ir("0xc")](e)&&e[Ir("0x12")]!=n;var e,n,o}));t[Ir("0x1a")][Ir("0x2")]((()=>{for(const t of r)o[Ir("0x20")](t,{commandName:Ir("0x9"),commandParams:[n],formatGroupId:Ir("0x17")},fs(t))}))}));for(const t of n)"paragraph"!=t[Ir("0x1a")]&&o._descriptionFactory[Ir("0xa")](t[Ir("0x1a")],(e=>{const n=Nr(t[Ir("0x1a")]);return null!==n?s(e,n):r(e,t[Ir("0x21")])}));function s(t,n){return Yo(e,Ir("0x16"),[t,n])}function r(t,n){return Yo(e,"ELEMENT_HEADING_CUSTOM",[t,n])}o[Ir("0x7")][Ir("0x15")]((t=>{const{type:o,data:i}=t;if(Ir("0xb")==o&&i&&Ir("0x9")==i[Ir("0x10")]){const t=i[Ir("0x1d")][0].value,o=Nr(t);if(null!==o)return{type:Ir("0xe"),content:Yo(e,Ir("0x1f"),s(1,o))};const x=n[Ir("0x1c")]((e=>e[Ir("0x1a")]===t))[Ir("0x21")];return{type:"format",content:Yo(e,Ir("0x1f"),r(1,x))}}}))}}function Nr(t){const e=t[Ir("0x3")](/^heading(\d+)$/);return e?e[1]:null}const Mr=["TrackChangesEditing","item","change","value","registerDescriptionCallback","format","enableCommand","has","find","*Set highlight:* %0","getLastMatchingPosition","_descriptionFactory","hasAttribute","getAttribute","editor","createRange","highlight","config","get","title","FORMAT_HIGHLIGHT","plugins","model","highlight.options","commandName","push","markInlineFormat","selection","getFirstPosition","getRanges","afterInit","document","locale"];var wr,Or;wr=Mr,Or=173,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Fr=function(t,e){return Mr[t-=0]};class Pr extends t.Plugin{[Fr("0x16")](){const t=this[Fr("0x6")];if(!t[Fr("0xd")][Fr("0x20")]("HighlightEditing"))return;const e=t.plugins[Fr("0xa")](Fr("0x19"));e[Fr("0x1f")](Fr("0x8"),((n,o={})=>{const s=t[Fr("0xe")][Fr("0x17")][Fr("0x13")],r=s[Fr("0x5")](Fr("0x8"));let i=o[Fr("0x1c")],x=[];if(s.isCollapsed){const e=s[Fr("0x14")]();if(!s[Fr("0x4")](Fr("0x8")))return void n(o);{const n=t=>t[Fr("0x1a")][Fr("0x5")]("highlight")===r,o=e[Fr("0x2")](n,{direction:"backward"}),s=e[Fr("0x2")](n);x=[t[Fr("0xe")][Fr("0x7")](o,s)],i==r&&(i=null)}}else for(const e of s[Fr("0x15")]())i?x[Fr("0x11")](e):x.push(...ms(Fr("0x8"),e,t[Fr("0xe")]));t[Fr("0xe")][Fr("0x1b")]((()=>{for(const t of x)e[Fr("0x12")](t,{commandName:"highlight",commandParams:[{value:i}]})}))}));const n=t[Fr("0x18")];e[Fr("0x3")][Fr("0x1d")]((e=>{const{type:o,data:s}=e;if("formatInline"==o&&s&&Fr("0x8")==s[Fr("0x10")]){const e=n.t,o=s.commandParams[0][Fr("0x1c")];if(o){const s=t[Fr("0x9")].get(Fr("0xf"))[Fr("0x0")]((t=>t.model==o)),r=e(s.title).toLowerCase();return{type:Fr("0x1e"),content:Yo(n,Fr("0x1"),r),color:{value:s.color,title:s[Fr("0xb")]}}}return{type:Fr("0x1e"),content:Yo(n,"*Remove highlight*",Yo(n,Fr("0xc")))}}}))}}const Dr=["ELEMENT_HORIZONTAL_LINE","TrackChangesEditing","dataDowncast","createEmptyElement","get","registerElementLabel","high","for","createPositionAt","plugins","div","createContainerElement","conversion","insert","_descriptionFactory","editor","afterInit","HorizontalLineEditing","enableCommand","ck-horizontal-line","showSuggestionHighlights"];var Br,jr;Br=Dr,jr=370,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0x3")](){const t=this[Ur("0x2")];if(!t[Ur("0x11")].has(Ur("0x4")))return;t[Ur("0x11")][Ur("0xc")](Ur("0x9"))[Ur("0x5")]("horizontalLine");const e=t[Ur("0x11")][Ur("0xc")](Ur("0x9")),n=t.locale;e[Ur("0x1")][Ur("0xd")]("horizontalLine",(t=>Yo(n,Ur("0x8"),t))),t[Ur("0x14")][Ur("0xf")](Ur("0xa")).elementToStructure({model:"horizontalLine",view:(t,{writer:e,options:n})=>{if(!n[Ur("0x7")])return null;const o=e[Ur("0x13")](Ur("0x12")),s=e[Ur("0xb")]("hr");return e.addClass(Ur("0x6"),o),e[Ur("0x0")](e[Ur("0x10")](o,0),s),o},converterPriority:Ur("0xe")})}}const Hr=["ELEMENT_HTML_EMBED","getCustomProperty","getSelectedElement","getAttribute","registerDescriptionCallback","locale","element","get","format","htmlEmbed","has","commandName","_descriptionFactory","model","enableCommand","TrackChangesEditing","rawHtmlApi","editing","*Change %0 content*","selection","document","rawHtml","plugins","editor","view"];var zr,Wr;zr=Hr,Wr=319,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{afterInit(){const t=this[Vr("0x4")];if(!t.plugins[Vr("0x10")]("HtmlEmbed"))return;const e=t.plugins[Vr("0xd")]("TrackChangesEditing"),n=t[Vr("0xb")],o=t[Vr("0x17")][Vr("0x5")].document[Vr("0x0")];e[Vr("0x12")].registerElementLabel(Vr("0x2"),(t=>Yo(n,Vr("0x6"),t))),t[Vr("0x3")][Vr("0xd")](Vr("0x15"))[Vr("0x14")]("htmlEmbed",((n,s)=>{const r=t[Vr("0x13")],i=r[Vr("0x1")][Vr("0x0")];r.change((()=>{const t=function(t){const e=t[Vr("0x8")]();return e&&e.is(Vr("0xc"),Vr("0x2"))?t.getSelectedElement():null}(i);if(!t)return void n(null);const r=t[Vr("0x9")]("value")||"";void 0!==s&&s!==r&&(e.markBlockFormat(t,{commandName:Vr("0xf"),commandParams:[s]}),o[Vr("0x8")]()[Vr("0x7")](Vr("0x16")).cancel())}))})),e[Vr("0x12")][Vr("0xa")]((t=>{const{data:e}=t;if(e&&Vr("0xf")==e[Vr("0x11")]){const t=Yo(n,Vr("0x6"));return{type:Vr("0xe"),content:Yo(n,Vr("0x18"),t)}}}))}}const qr=["locale","_suggestionFactory","plugins","alt","markInsertion","getChangedMarkers","newValue","registerCustomCallback","*Set image width:* %0","discardSuggestion","insertImage","*Reset image width*","imageInline","find","start","length","ImageCaptionEditing","hasAttribute","value","imageTypeBlock","Users","editor","ImageUtils","detach","width","isBefore","end","refresh","toPrevious","suggestion","author","join","formatInline","imageStylePostApply","schema","insertion","toLowerCase","_descriptionFactory","toggleImageCaption","getSuggestionCallback","formatBlock","getClosestSelectedImageElement","imageTypeInline","hasSuggestion","ELEMENT_CAPTION","markDeletion","commandName","removeObject","has","commands","title","getContainedElement","previous","_splitMarkerName","TrackChangesEditing","get","ImageBlockEditing","subType","selection","name","isEqual","Block image to inline image","registerDescriptionCallback","createRangeOn","change","filter","convertBlockImageToInline","shouldConvertImageType","createRange","next","isCollapsed","nodeAfter","getCaptionFromImageModelElement","isIntersecting","caption","enableCommand","isInContent","differ","registerElementLabel","format","type","FORMAT_SIDE_IMAGE","forceDefaultExecution","afterInit","discard","resizeImage","addObject","ImageTextAlternativeEditing","markBlockFormat","uploadImage","ImageEditing","getAttribute","imageCaption","getFirstRange","getSuggestion","from","ImageResize","backward","accept","convertInlineImageToBlock","forEach","ImageInlineEditing","getNearestSelectionRange","commandParams","ELEMENT_IMAGE","imageBlock","chain","ELEMENT_INLINE_IMAGE","newRange","ImageStyleEditing","fromPosition","getSuggestions","isBlockImage","document","model","head","forward","findIndex","imageStylePreApply","imageTextAlternative","imageStyle","*Format:* %0"];var Xr,$r;Xr=qr,$r=298,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{[Jr("0x1d")](){const t=this[Jr("0x59")];if(!t[Jr("0x46")][Jr("0x74")](Jr("0x24")))return;const n=t[Jr("0x46")][Jr("0x1")](Jr("0x0")),o=t[Jr("0x46")].get(Jr("0x5a")),s={},r=t[Jr("0x44")];if(n.enableCommand(Jr("0x4e")),n[Jr("0x69")][Jr("0x18")](Jr("0x33"),(t=>Yo(r,Jr("0x32"),t))),n._descriptionFactory.registerElementLabel(Jr("0x50"),(t=>Yo(r,Jr("0x35"),t))),n[Jr("0x69")][Jr("0x18")](Jr("0x14"),(()=>Yo(r,Jr("0x70")))),t[Jr("0x46")][Jr("0x74")]("ImageUploadEditing")&&n[Jr("0x15")](Jr("0x23")),t[Jr("0x46")].has(Jr("0x2"))&&t.plugins[Jr("0x74")](Jr("0x2f"))&&(n[Jr("0x15")](Jr("0x6e"),((e,s)=>{const r=o[Jr("0x6d")](t[Jr("0x3c")][Jr("0x3b")][Jr("0x4")]);t[Jr("0x3c")][Jr("0xa")]((()=>{n.markBlockFormat(r,{commandName:"imageTypeInline",commandParams:[s]},[],"convertBlockImageToInline")}))})),n.enableCommand(Jr("0x57"),((e,s)=>{t[Jr("0x3c")][Jr("0xa")]((r=>{let x=o[Jr("0x6d")](t.model[Jr("0x3b")][Jr("0x4")]),a=r.createRangeOn(x);const c=i.LivePosition[Jr("0x38")](a.start,Jr("0x60")),l=i.LivePosition[Jr("0x38")](a[Jr("0x5e")],"toNext");n[Jr("0x1c")]((()=>e(s))),x=o[Jr("0x6d")](t.model[Jr("0x3b")][Jr("0x4")]),a=r[Jr("0x9")](x);const d=r.createRange(c,l);c[Jr("0x5b")](),l[Jr("0x5b")](),n[Jr("0x22")](x,{commandName:Jr("0x6e"),commandParams:[]},[],Jr("0x2d")),d[Jr("0x52")].isBefore(a.start)&&n[Jr("0x48")](r[Jr("0xe")](d[Jr("0x52")],a[Jr("0x52")]),Jr("0x2d")),a.end[Jr("0x5d")](d[Jr("0x5e")])&&n[Jr("0x48")](r[Jr("0xe")](a[Jr("0x5e")],d[Jr("0x5e")]),Jr("0x2d"))}))})),n[Jr("0x45")].registerCustomCallback(Jr("0x6c"),"convertInlineImageToBlock",Jr("0x63"),(()=>!1)),n[Jr("0x45")].registerCustomCallback(Jr("0x6c"),Jr("0x2d"),"accept",(()=>!1)),n[Jr("0x45")][Jr("0x4b")]("formatBlock",Jr("0x2d"),Jr("0x1e"),n[Jr("0x45")][Jr("0x6b")](Jr("0x6c"),"",Jr("0x2c"))),n._suggestionFactory[Jr("0x4b")](Jr("0x67"),"convertInlineImageToBlock","join",(()=>!1)),n[Jr("0x45")].registerCustomCallback(Jr("0x67"),"convertInlineImageToBlock",Jr("0x1e"),(([e])=>{const o=n._suggestionFactory[Jr("0x6b")]("insertion","",Jr("0x1e"));let s=e[Jr("0x52")],r=e[Jr("0x5e")];const i=t[Jr("0x3c")].schema.getNearestSelectionRange(s,Jr("0x2b")),x=t[Jr("0x3c")][Jr("0x66")][Jr("0x30")](r,Jr("0x3e"));i.isCollapsed&&(s=i[Jr("0x52")]),x[Jr("0x10")]&&(r=x[Jr("0x5e")]),o([t[Jr("0x3c")].createRange(s,r)])})),n._suggestionFactory[Jr("0x4b")]("formatBlock","convertInlineImageToBlock","chain",c),n[Jr("0x45")][Jr("0x4b")](Jr("0x67"),"convertInlineImageToBlock",Jr("0x34"),c)),t[Jr("0x46")][Jr("0x74")](Jr("0x54"))&&(n[Jr("0x15")](Jr("0x6a"),((e,s)=>{const r=t.plugins[Jr("0x1")]("ImageCaptionUtils");let i=o[Jr("0x6d")](t[Jr("0x3c")][Jr("0x3b")][Jr("0x4")]),x=r.getCaptionFromImageModelElement(i);t[Jr("0x3c")][Jr("0xa")]((()=>{if(x)return void n[Jr("0x71")](t[Jr("0x3c")][Jr("0x9")](x));const a=o[Jr("0x3a")](i);e(s),i=o[Jr("0x6d")](t.model[Jr("0x3b")][Jr("0x4")]),x=r[Jr("0x12")](i),n.markInsertion(t[Jr("0x3c")][Jr("0x9")](x),a?null:Jr("0x26"))}))})),n[Jr("0x45")].registerCustomCallback(Jr("0x67"),Jr("0x26"),"chain",c)),t[Jr("0x46")].has("ImageStyleEditing")){n.enableCommand(Jr("0x42"),((s,r)=>{const i=t[Jr("0x46")][Jr("0x1")](Jr("0x58")).me,x=t[Jr("0x75")][Jr("0x1")](Jr("0x42"));let a=o[Jr("0x6d")](t.model[Jr("0x3b")][Jr("0x4")]),c=t.model[Jr("0x9")](a),l=x[Jr("0x56")];if(l==r[Jr("0x56")])return;const d={commandName:"imageStyle",commandParams:[r],formatGroupId:(0,e.uid)()};t.model.change((()=>{if(n[Jr("0x39")]()[Jr("0xb")]((t=>t.isInContent&&i==t[Jr("0x62")]&&(Jr("0x6c")==t[Jr("0x1a")]||Jr("0x64")==t[Jr("0x1a")])&&(Jr("0x40")==t[Jr("0x3")]||"imageStylePostApply"==t[Jr("0x3")])&&t[Jr("0x27")]().isEqual(c)))[Jr("0x2e")]((t=>n[Jr("0x4d")](t[Jr("0x3d")]))),a=o.getClosestSelectedImageElement(t[Jr("0x3c")][Jr("0x3b")].selection),c=t[Jr("0x3c")][Jr("0x9")](a),x.refresh(),t[Jr("0x75")].get(Jr("0x6e"))[Jr("0x5f")](),t[Jr("0x75")].get(Jr("0x57"))[Jr("0x5f")](),l=x.value,l!=r[Jr("0x56")])return o.isInlineImage(a)&&x[Jr("0xd")](r[Jr("0x56")],a)?(s(r),a=o[Jr("0x6d")](t[Jr("0x3c")][Jr("0x3b")][Jr("0x4")]),void n[Jr("0x22")](a,{...d,commandReversedParams:[{value:l||null}]},[],"imageStylePreApply")):void(o.isBlockImage(a)?n[Jr("0x22")](a,d,[],Jr("0x65")):n.markInlineFormat(c,d,Jr("0x65")))}))}));for(const e of t[Jr("0x46")][Jr("0x1")](Jr("0x37")).normalizedStyles)s[e[Jr("0x5")]]=e[Jr("0x76")][Jr("0x68")]();n[Jr("0x45")][Jr("0x4b")]("formatBlock",Jr("0x40"),"join",(()=>!1)),n[Jr("0x45")][Jr("0x4b")](Jr("0x6c"),Jr("0x65"),Jr("0x63"),(()=>!1)),n[Jr("0x45")][Jr("0x4b")](Jr("0x64"),Jr("0x65"),"join",(()=>!1)),n[Jr("0x45")].registerCustomCallback(Jr("0x6c"),Jr("0x40"),Jr("0x2c"),(()=>!1)),n[Jr("0x45")].registerCustomCallback("formatBlock","imageStylePreApply",Jr("0x1e"),((t,e)=>{n[Jr("0x45")][Jr("0x6b")]("formatBlock","","accept")(t,{commandName:e[Jr("0x72")],commandParams:e.commandReversedParams})})),n[Jr("0x45")].registerCustomCallback(Jr("0x6c"),Jr("0x40"),Jr("0x34"),c)}const x=[{type:"formatBlock",subType:Jr("0x40")},{type:Jr("0x67"),subType:Jr("0x26")},{type:Jr("0x6c"),subType:Jr("0x2d")},{type:Jr("0x67"),subType:"convertInlineImageToBlock"}];function a(t,e){const s=x.findIndex((({type:e,subType:n})=>t[Jr("0x1a")]==e&&t.subType==n)),r=x[Jr("0x3f")]((({type:t,subType:n})=>e[Jr("0x1a")]==t&&e[Jr("0x3")]==n));if(s<0||r<0)return!1;const i=t[Jr("0x27")](),a=e[Jr("0x27")]();if((0==s||1==s)&&2==r&&i[Jr("0x13")](a))return!0;if(2==s&&3==r){const t=n._findSuggestions(i,"insertion")[Jr("0xb")]((({suggestion:t,meta:e})=>e.isOwn&&Jr("0x2d")==t[Jr("0x3")]));if(t.length>1&&a.end[Jr("0x6")](i[Jr("0x52")]))return!0;if(1==t[Jr("0x53")]&&(i[Jr("0x52")][Jr("0x6")](a[Jr("0x5e")])||i[Jr("0x5e")][Jr("0x6")](a[Jr("0x52")])))return!0}if(3==s&&3==r&&i.start[Jr("0x5d")](a.start)){const t=i[Jr("0x5e")][Jr("0x11")],e=a.start.nodeBefore;return o.isBlockImage(t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[Jr("0x3c")].document.registerPostFixer((()=>{let e=!1;const s=Array[Jr("0x29")](t.model[Jr("0x3b")][Jr("0x17")][Jr("0x49")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[Jr("0x79")](t);if(Jr("0x61")==s&&n[Jr("0x6f")](a)){if(Jr("0x6c")==i&&(Jr("0x40")==x||"imageStylePostApply"==x)){const t=n[Jr("0x28")](a);if(r[Jr("0x36")]){const s=t.getFirstRange()[Jr("0x77")]();if(o[Jr("0x3a")](s))continue;n[Jr("0x4d")](t),e=!0}}if("insertion"==i&&Jr("0x26")==x&&!r[Jr("0x36")]){const t=n.getSuggestion(a);t.next&&t[Jr("0xf")][Jr("0x16")]&&(n[Jr("0x4d")](t.next),e=!0)}}}return e})),t[Jr("0x46")][Jr("0x74")](Jr("0x2a"))&&n[Jr("0x15")](Jr("0x1f"),((e,s)=>{const r=o[Jr("0x6d")](t.model[Jr("0x3b")][Jr("0x4")]);r[Jr("0x25")](Jr("0x5c"))!=s[Jr("0x5c")]&&t.model[Jr("0xa")]((()=>{n.markBlockFormat(r,{commandName:Jr("0x1f"),commandParams:[s]})}))})),t[Jr("0x46")].has(Jr("0x21"))&&n[Jr("0x15")](Jr("0x41"),((e,s)=>{const r=o[Jr("0x6d")](t.model[Jr("0x3b")][Jr("0x4")]);(r[Jr("0x55")](Jr("0x47"))?r[Jr("0x25")](Jr("0x47")):"")!=s[Jr("0x4a")]&&t[Jr("0x3c")][Jr("0xa")]((()=>{n.markBlockFormat(r,{commandName:Jr("0x41"),commandParams:[s]})}))})),n._descriptionFactory[Jr("0x8")]((t=>{if(x[Jr("0x51")]((({type:e,subType:n})=>t[Jr("0x1a")]==e&&t[Jr("0x3")]==n)))return t[Jr("0x78")]?{}:void 0})),n._descriptionFactory[Jr("0x8")]((t=>{if(Jr("0x67")==t[Jr("0x1a")]||"deletion"==t.type){const e=t.getContainedElement();if(e&&e.is("element",Jr("0x14")))return{type:Jr("0x67")==t[Jr("0x1a")]?Jr("0x20"):Jr("0x73"),element:e,quantity:1}}})),n[Jr("0x69")][Jr("0x8")]((t=>"formatBlock"==t[Jr("0x1a")]&&Jr("0x2d")==t.subType?{type:Jr("0x19"),content:"Inline image to block image"}:Jr("0x6c")==t[Jr("0x1a")]&&Jr("0xc")==t[Jr("0x3")]?{type:Jr("0x19"),content:Jr("0x7")}:void 0)),n[Jr("0x69")].registerDescriptionCallback((t=>{const{data:e}=t;if(e){if("imageStyle"==e.commandName){const t=e[Jr("0x31")][0].value;return n="side"===t?Yo(r,Jr("0x1b")):s[t]||t,{type:Jr("0x19"),content:Yo(r,Jr("0x43"),n)}}if(Jr("0x41")==e[Jr("0x72")]){const t=e.commandParams[0][Jr("0x4a")];return t?{type:Jr("0x19"),content:Yo(r,"*Set image text alternative:* %0",'"'+t+'"')}:{type:Jr("0x19"),content:Yo(r,"*Remove image text alternative*")}}if(Jr("0x1f")==e[Jr("0x72")]){const t=e[Jr("0x31")][0][Jr("0x5c")];return t?{type:Jr("0x19"),content:Yo(r,Jr("0x4c"),t)}:{type:"format",content:Yo(r,Jr("0x4f"))}}}var n}))}}const Zr=["accept","handleSuggestionDescription","editor","model","getSuggestions","source","formatBlock","data","_suggestionFactory","locale","markBlockFormat","enableCommand","getAttribute","replaceImageSource","registerCustomCallback","getSuggestionCallback","format","getSelectedElement","author","has","discard","getContainedElement","change","registerDescriptionCallback","subType","_descriptionFactory","get","*Format:* replace image URL","TrackChangesEditing","plugins","selection","handleReplaceImageCommand","commandName"];var Yr,ti;Yr=Zr,ti=227,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{afterInit(){if(!this[ei("0x6")][ei("0x0")][ei("0x17")]("ImageEditing"))return;const t=this[ei("0x6")].plugins.get(ei("0x20"));t[ei("0xf")]("replaceImageSource",((t,e)=>this.handleReplaceImageCommand(t,e))),t[ei("0xc")][ei("0x12")](ei("0xa"),ei("0x11"),ei("0x4"),t[ei("0xc")][ei("0x13")](ei("0xa"),null,ei("0x18"))),t[ei("0xc")][ei("0x12")](ei("0xa"),ei("0x11"),"discard",t._suggestionFactory[ei("0x13")]("formatBlock",null,ei("0x4"))),t[ei("0x1d")][ei("0x1b")]((t=>this.handleSuggestionDescription(t)))}[ei("0x2")](t,e){const n=this.editor[ei("0x0")][ei("0x1e")](ei("0x20")),o=this[ei("0x6")][ei("0x7")].document[ei("0x1")][ei("0x15")]();this.editor.model[ei("0x1a")]((()=>{let s=o[ei("0x10")]("src");const r=this[ei("0x6")][ei("0x0")][ei("0x1e")]("Users").me;for(const t of n[ei("0x8")]({skipNotAttached:!0})){const e=t[ei("0x19")]();if(ei("0x11")===t[ei("0x1c")]&&e===o){t[ei("0x16")]!==r&&t[ei("0x18")](),s=t[ei("0xb")].commandParams[0][ei("0x9")];break}}t(e),n[ei("0xe")](o,{commandName:ei("0x11"),commandParams:[{source:s}]},[],ei("0x11"))}))}[ei("0x5")](t){const{data:e}=t;if(e&&ei("0x11")===e[ei("0x3")]){const t=ei("0x1f");return{type:ei("0x14"),content:Yo(this[ei("0x6")][ei("0xd")],t)}}}}const oi=["plugins","lowest","_trackChangesValueDuringImport","listenTo","TrackChangesEditing","commands","Users","afterInit","importWord","editor","_setSuggestionData","enableCommand","get","_trackChangesExecuted","dataInsert","value","collaboration_features","bind","track_changes","high","execute","forEach","_handleImportedData"];var si,ri;si=oi,ri=453,function(t){for(;--t;)si.push(si.shift())}(++ri);const ii=function(t,e){return oi[t-=0]};class xi extends t.Plugin{constructor(t){super(t),this._trackChangesValueDuringImport=!1,this._trackChangesExecuted=!1}[ii("0xe")](){const t=this[ii("0x10")],e=t[ii("0xc")][ii("0x13")](ii("0xf")),n=t[ii("0xc")][ii("0x13")]("trackChanges");e&&(e.on(ii("0x4"),((t,[,e])=>{this._trackChangesValueDuringImport=n[ii("0x16")],e[ii("0x0")][ii("0x2")]=!this[ii("0x9")]}),{priority:ii("0x3")}),this[ii("0xa")](e,"dataInsert",this[ii("0x6")][ii("0x1")](this)),this[ii("0xa")](e,ii("0x15"),(()=>{this[ii("0x14")]&&(n.execute(),this[ii("0x14")]=!1)}),{priority:ii("0x8")}),t[ii("0x7")].get(ii("0xb"))[ii("0x12")](ii("0xf")))}[ii("0x6")](t,e){const{suggestions:n}=e,o=this[ii("0x10")][ii("0xc")][ii("0x13")]("trackChanges"),s=o[ii("0x16")];this[ii("0x9")]!==s&&(o[ii("0x4")](),this._trackChangesExecuted=!0),n&&n[ii("0x5")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[ii("0x10")][ii("0x7")][ii("0x13")](ii("0xd")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0xf")}}};this.editor[ii("0x7")].get(ii("0xb"))[ii("0x11")](s)}))}}const ai=["locale","change","registerDescriptionCallback","getItems","TrackChangesEditing","indent","outdentBlock","markBlockFormat","enableCommand","getSelectedBlocks","_descriptionFactory","format","afterInit","getItemLabel","*Outdent:* %0","indentBlock","checkAttribute","editor","commandName","plugins","selection","get","IndentBlock","schema","*Indent:* %0","document","outdent","IndentEditing","model"];var ci,li;ci=ai,li=236,function(t){for(;--t;)ci.push(ci.shift())}(++li);const di=function(t,e){return ai[t-=0]};class ui extends t.Plugin{[di("0x8")](){const t=this[di("0xd")],e=t[di("0xf")][di("0x11")](di("0x0"));t.plugins.has(di("0x17"))&&(e[di("0x4")](di("0x1")),e[di("0x4")](di("0x16")));const n=t[di("0x19")];if(t[di("0xf")].has(di("0x12"))){for(const n of[di("0xb"),di("0x2")])e[di("0x4")](n,(()=>{const o=Array.from(this[di("0xd")][di("0x18")][di("0x15")][di("0x10")][di("0x5")]()).filter((t=>this[di("0xd")][di("0x18")][di("0x13")][di("0xc")](t,"blockIndent")));t.model[di("0x1a")]((()=>{for(const t of o)e[di("0x3")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:di("0xb")})}))}));e[di("0x6")][di("0x1b")]((t=>{const{data:o}=t;if(!o)return;if(di("0xb")!=o[di("0xe")]&&di("0x2")!=o[di("0xe")])return;const s=t[di("0x1c")]()[0],r=e[di("0x6")][di("0x9")](s);return"indentBlock"==o[di("0xe")]?{type:di("0x7"),content:Yo(n,di("0x14"),r)}:di("0x2")==o.commandName?{type:"format",content:Yo(n,di("0xa"),r)}:void 0}))}}}var gi,mi,fi=["get","input","plugins","editor","init","TrackChangesEditing","requires"];gi=fi,mi=487,function(t){for(;--t;)gi.push(gi.shift())}(++mi);var hi=function(t,e){return fi[t-=0]};class pi extends t.Plugin{static get[hi("0x2")](){return[Vs.Input]}[hi("0x0")](){this[hi("0x6")][hi("0x5")][hi("0x3")](hi("0x1")).enableCommand(hi("0x4"))}}const bi=["enableCommand","getRanges","change","unlink","selection","plugins","TrackChangesEditing","markInlineFormat","commandName","linkHref","locale","registerDescriptionCallback","link","*Remove link*","has","model","getFirstRange","hasAttribute","format","document","getFirstPosition","from","commandParams","getAttribute","*Set link:* %0","isCollapsed","get","_descriptionFactory","afterInit"];var Ei,_i;Ei=bi,_i=266,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{[Ti("0x17")](){const t=this.editor;if(!t[Ti("0x0")][Ti("0x9")]("LinkEditing"))return;const e=t[Ti("0x0")][Ti("0x15")](Ti("0x1"));e[Ti("0x18")](Ti("0x7"),((n,o)=>{const s=t[Ti("0xa")].document[Ti("0x1c")];let r=[];if(s[Ti("0x14")]){if(!s[Ti("0xc")](Ti("0x4")))return void n(o);{const e=(0,Vs.findAttributeRange)(s[Ti("0xf")](),"linkHref",s[Ti("0x12")](Ti("0x4")),t.model);r=[e]}}else r=Array[Ti("0x10")](s[Ti("0x19")]());t[Ti("0xa")][Ti("0x1a")]((()=>{for(const t of r)e[Ti("0x2")](t,{commandName:Ti("0x7"),commandParams:[o]})}))})),e[Ti("0x18")]("unlink",(()=>{const n=this.editor[Ti("0xa")],o=n[Ti("0xe")][Ti("0x1c")];n.change((()=>{let n=[];n=o[Ti("0x14")]?[(0,Vs.findAttributeRange)(o[Ti("0xf")](),Ti("0x4"),o[Ti("0x12")](Ti("0x4")),t[Ti("0xa")])]:ms("linkHref",o[Ti("0xb")](),t[Ti("0xa")]);for(const t of n)e[Ti("0x2")](t,{commandName:Ti("0x1b"),commandParams:[]})}))})),e[Ti("0x16")][Ti("0x6")]((e=>{const{data:n}=e,o=t[Ti("0x5")];if(n){if(Ti("0x7")==n[Ti("0x3")]){const t=n[Ti("0x11")][0];return{type:"format",content:Yo(o,Ti("0x13"),'"'+t+'"')}}return Ti("0x1b")==n[Ti("0x3")]?{type:Ti("0xd"),content:Yo(o,Ti("0x8"))}:void 0}}))}}const yi=["locale","get","numbered","bulleted","document","element","commands","registerElementLabel","createPositionAt","numberedList","add","blockName","editor","_descriptionFactory","value","ELEMENT_LIST_ITEM","filter","has","selection","before","findIndex","todoList","registerDescriptionCallback","TodoListEditing","*Outdent:* %0","commandParams","nextSibling","plugins","*Change to:* %0","ELEMENT_BULLETED_LIST","*Indent:* %0","getAttribute","enableCommand","commandName","model","execute","checkTodoList","from","slice","previousSibling","parent","listType","ELEMENT_NUMBERED_LIST","forceValue","listItem","change","indentList","listIndent","*Uncheck item*","outdentList","getSelectedBlocks","_selectedElements","replace","TrackChangesEditing","markBlockFormat","createRange","paragraph","*Check item*","name","bulletedList","todoListChecked","format"];var ki,Ai;ki=yi,Ai=455,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[vi("0x35")],e=t[vi("0x29")];if(!t[vi("0x6")][vi("0x3a")]("ListEditing"))return;const n=t[vi("0x6")].get(vi("0x20")),o=t[vi("0x6")][vi("0x3a")](vi("0x2"));function s(e){return()=>{const o=t[vi("0xd")][vi("0x2d")][vi("0x3b")],s=t[vi("0x2f")][vi("0x2a")](e);if(s[vi("0x37")])return void t[vi("0xe")](vi("0x23"),{});const r=e.slice(0,-4),i=function(t,e,n){let o=Array[vi("0x10")](t).filter((t=>{return e=t,(o=n).checkChild(e[vi("0x13")],vi("0x17"))&&!o.isObject(e);var e,o}));o=o[vi("0x39")]((t=>!t.is(vi("0x2e"),vi("0x17"))||t[vi("0xa")](vi("0x14"))!=e));const s=new Set;for(const t of o)t.is(vi("0x2e"),vi("0x17"))?s.add(Si(t)):s[vi("0x33")](t);return Array[vi("0x10")](s)}(o.getSelectedBlocks(),r,t.model.schema);t[vi("0xd")][vi("0x18")]((()=>{for(const t of i)n[vi("0x21")](t,{commandName:e,commandParams:[{forceValue:!s.value}],formatGroupId:vi("0x34")},Ii(t))}))}}function r(e){return()=>{const o=function(t){let e=Array.from(t);const n=e[vi("0x3d")]((t=>vi("0x17")!=t[vi("0x25")]));return n>-1&&(e=e[vi("0x11")](0,n)),e}(t[vi("0xd")][vi("0x2d")][vi("0x3b")][vi("0x1d")]()),s=t[vi("0xd")][vi("0x22")](t.model[vi("0x31")](o[0],vi("0x3c")),t.model[vi("0x31")](o[o.length-1],"end"));t.model[vi("0x18")]((()=>{n[vi("0x21")](s,{commandName:e,commandParams:[],formatGroupId:vi("0x1a")},function(t){const e=new Set;for(const n of t){let t=n[vi("0x5")];for(;t&&t[vi("0xa")](vi("0x1a"))>n[vi("0xa")](vi("0x1a"));)e.add(t),t=t[vi("0x5")]}return Array[vi("0x10")](e)}(o))}))}}n[vi("0xb")](vi("0x32"),s("numberedList")),n[vi("0xb")]("bulletedList",s(vi("0x26"))),o&&n[vi("0xb")](vi("0x0"),s(vi("0x0"))),n[vi("0xb")](vi("0x19"),r(vi("0x19"))),n[vi("0xb")]("outdentList",r(vi("0x1c"))),o&&n[vi("0xb")](vi("0xf"),(()=>{const e=t[vi("0x2f")][vi("0x2a")]("checkTodoList"),o=Array[vi("0x10")](e[vi("0x1e")]);o[vi("0x39")]((t=>t.getAttribute(vi("0x27"))!=e[vi("0x37")])),t[vi("0xd")][vi("0x18")]((()=>{for(const t of o)n[vi("0x21")](t,{commandName:vi("0xf"),commandParams:[{forceValue:!e[vi("0x37")]}]})}))})),n[vi("0x36")][vi("0x30")](vi("0x17"),(t=>Yo(e,vi("0x38"),t))),n[vi("0x36")][vi("0x1")]((t=>{const{data:n}=t;if(n){if(vi("0x32")==n[vi("0xc")]||vi("0x26")==n.commandName||vi("0x0")==n.commandName)switch(n[vi("0xc")][vi("0x1f")]("List","")){case vi("0x2c"):return o(Yo(e,vi("0x8")));case vi("0x2b"):return o(Yo(e,vi("0x15")));case"todo":return o(Yo(e,"ELEMENT_TODO_LIST"))}if(vi("0x19")==n[vi("0xc")])return{type:"format",content:Yo(e,vi("0x9"),Yo(e,vi("0x38")))};if("outdentList"==n[vi("0xc")])return{type:"format",content:Yo(e,vi("0x3"),Yo(e,vi("0x38")))};if(vi("0xf")==n[vi("0xc")])return n[vi("0x4")][0][vi("0x16")]?{type:vi("0x28"),content:Yo(e,vi("0x24"))}:{type:vi("0x28"),content:Yo(e,vi("0x1b"))}}function o(t){return{type:vi("0x28"),content:Yo(e,vi("0x7"),t)}}}))}}function Si(t){const e=t.getAttribute("listIndent");if(0==e)return t;let n=t;for(;t.previousSibling&&t[vi("0x12")].is(vi("0x2e"),vi("0x17"));){const o=t[vi("0x12")].getAttribute(vi("0x1a"));if(o==e)n=t[vi("0x12")];else if(o<e)break;t=t[vi("0x12")]}return n}function Ii(t){const e=[];if(t.is("element",vi("0x17"))&&t[vi("0xa")](vi("0x1a"))>0){let n=t[vi("0x5")];for(;n&&vi("0x17")==n.name&&n[vi("0xa")](vi("0x1a"))==t.getAttribute(vi("0x1a"));)e.push(n),n=n.nextSibling}return e}const Li=["getAttribute","plugins","numbered","bind","TrackChangesEditing","afterInit","_LIST_","get","listStyle","ListUtils","_getSuggestionBlocks","parent","enableCommand","getSiblingNodes","getSelectedBlocks","ELEMENT_","listReversed","startIndex","handleListStartCommand","element","length","change","forward","getFirstPosition","model","handleDescriptions","backward","createPositionAt","list.properties","commandName","editor","push","*Format:* set order to reversed","createRange","listItem","listStart","*Format:* set start index to %0","from","_getTranslationKeyForListStyle","has","map","handleListStyleCommand","styles","config","markMultiRangeBlockFormat","unshift","filter","_getSuggestionBlocksForListStyle","reversed","locale","handleListReversedCommand","selection","before","getLastPosition","commandParams","type","format","toUpperCase","document","listType"];var Ni,Mi;Ni=Li,Mi=478,function(t){for(;--t;)Ni.push(Ni.shift())}(++Mi);const wi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{[wi("0x7")](){if(!this.editor[wi("0x3")][wi("0x29")]("ListPropertiesEditing"))return;const t=this.editor[wi("0x2d")][wi("0x9")](wi("0x1e")),e=this.editor[wi("0x3")][wi("0x9")](wi("0x6"));t[wi("0x2c")]&&e.enableCommand(wi("0xa"),this[wi("0x2b")][wi("0x5")](this)),t[wi("0x32")]&&e[wi("0xe")](wi("0x12"),this[wi("0x34")][wi("0x5")](this)),t[wi("0x13")]&&e.enableCommand(wi("0x25"),this[wi("0x14")][wi("0x5")](this)),e._descriptionFactory.registerDescriptionCallback(this.handleDescriptions[wi("0x5")](this))}handleListStyleCommand(t,e={}){const n=this.editor.plugins[wi("0x9")]("TrackChangesEditing"),o=this[wi("0x31")]();this[wi("0x20")].model[wi("0x17")]((()=>{n[wi("0x2e")](o,{commandName:"listStyle",commandParams:[{type:e[wi("0x39")]}],formatGroupId:"listStyle"})}))}handleListReversedCommand(t,e={}){const n=this[wi("0x20")][wi("0x3")][wi("0x9")]("TrackChangesEditing"),o=this[wi("0xc")]((t=>t.is(wi("0x15"),"listItem")&&wi("0x4")===t[wi("0x2")](wi("0x1"))));if(o[wi("0x16")]<1)return;const s=o[wi("0x2a")]((t=>this[wi("0x20")][wi("0x1a")].createRange(this[wi("0x20")][wi("0x1a")][wi("0x1d")](t,wi("0x36")),this[wi("0x20")].model[wi("0x1d")](t,0))));this[wi("0x20")][wi("0x1a")][wi("0x17")]((()=>{n[wi("0x2e")](s,{commandName:wi("0x12"),commandParams:[{reversed:e[wi("0x32")]}],formatGroupId:"listReversed"})}))}handleListStartCommand(t,e={}){const n=this[wi("0x20")].plugins[wi("0x9")](wi("0x6")),o=this[wi("0xc")]((t=>t.is(wi("0x15"),wi("0x24"))&&"numbered"===t.getAttribute(wi("0x1"))));if(o[wi("0x16")]<1)return;const s=o.map((t=>this[wi("0x20")][wi("0x1a")][wi("0x23")](this[wi("0x20")][wi("0x1a")][wi("0x1d")](t,"before"),this[wi("0x20")][wi("0x1a")][wi("0x1d")](t,0))));this[wi("0x20")][wi("0x1a")][wi("0x17")]((()=>{n[wi("0x2e")](s,{commandName:wi("0x25"),commandParams:[{startIndex:e[wi("0x13")]}],formatGroupId:wi("0x25")})}))}[wi("0x1b")](t){const e=this.editor[wi("0x33")],{data:n}=t;if(!n)return;let o,s;switch(n[wi("0x1f")]){case"listStyle":o="*Change to:* %0",s={type:wi("0x3a"),content:Yo(e,o,Yo(e,this[wi("0x28")](n[wi("0x38")][0][wi("0x39")])))};break;case"listReversed":o=n[wi("0x38")][0][wi("0x32")]?wi("0x22"):"*Format:* set order to regular",s={type:wi("0x3a"),content:Yo(e,o)};break;case"listStart":o=wi("0x26"),s={type:"format",content:Yo(e,o,n[wi("0x38")][0].startIndex)}}return s}[wi("0x31")](){var t,e,n,o;const s=this[wi("0x20")][wi("0x3")][wi("0x9")]("ListUtils");let r=Array.from(this[wi("0x20")][wi("0x1a")][wi("0x0")].selection[wi("0x10")]());return(null===(t=r[0])||void 0===t?void 0:t.is(wi("0x15"),"listItem"))&&r[wi("0x2f")](...s[wi("0xf")](this[wi("0x20")][wi("0x1a")][wi("0x0")].selection.getFirstPosition(),wi("0x1c"))),(null===(e=r[r[wi("0x16")]-1])||void 0===e?void 0:e.is("element","listItem"))&&r[wi("0x21")](...s.getSiblingNodes(this[wi("0x20")][wi("0x1a")][wi("0x0")].selection[wi("0x37")](),"forward")),r=[...new Set(r)],(null===(o=null===(n=this[wi("0x20")][wi("0x1a")].document.selection[wi("0x19")]())||void 0===n?void 0:n[wi("0xd")])||void 0===o?void 0:o.is(wi("0x15"),wi("0x24")))&&(r=r[wi("0x30")]((t=>t.is(wi("0x15"),wi("0x24"))))),r}[wi("0xc")](t){const e=this[wi("0x20")][wi("0x3")][wi("0x9")]("ListUtils");let n=Array[wi("0x27")](this[wi("0x20")].model[wi("0x0")][wi("0x35")][wi("0x10")]())[wi("0x30")](t)[wi("0x2a")]((t=>{const n=this[wi("0x20")].model[wi("0x1d")](t,0);return[...e[wi("0xf")](n,"backward"),...e[wi("0xf")](n,wi("0x18"))]})).flat();return n=[...new Set(n)],n}[wi("0x28")](t){return wi("0x11")+this.editor[wi("0x3")][wi("0x9")](wi("0xb")).getListTypeFromListStyleType(t).toUpperCase()+wi("0x8")+t[wi("0x3b")]().replace(/-/g,"_")}}const Fi=["elementToElement","enableCommand","plugins","stop","for","media","dataDowncast","afterInit","ELEMENT_MEDIA","data","showSuggestionHighlights","mediaEmbed","high","TrackChangesEditing","options","MediaEmbedEditing","has","conversion","editor","locale","createEmptyElement","_descriptionFactory"];var Pi,Di;Pi=Fi,Di=107,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0xa")](){const t=this[Bi("0x15")];if(!t[Bi("0x5")][Bi("0x13")](Bi("0x12")))return;const e=t[Bi("0x5")].get(Bi("0x10")),n=t[Bi("0x0")];e[Bi("0x4")](Bi("0xe")),e[Bi("0x2")].registerElementLabel("media",(t=>Yo(n,Bi("0xb"),t))),t[Bi("0x14")][Bi("0x7")](Bi("0x9"))[Bi("0x3")]({model:Bi("0x8"),view:(t,{writer:e,options:n})=>{if(n[Bi("0xd")])return e[Bi("0x1")]("div")},converterPriority:Bi("0xf")}),t[Bi("0xc")].downcastDispatcher.on("attribute:url:media",((t,e,n)=>{n[Bi("0x11")][Bi("0xd")]&&t[Bi("0x6")]()}),{priority:"high"})}}const Ui=["TrackChangesEditing","get","enableCommand","MentionEditing","afterInit","mention","has","plugins"];var Gi,Hi;Gi=Ui,Hi=244,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{[zi("0x0")](){const t=this.editor;t.plugins[zi("0x2")](zi("0x7"))&&t[zi("0x3")][zi("0x5")](zi("0x4"))[zi("0x6")](zi("0x1"))}}const Vi=["pageBreak","plugins","afterInit","editor","PageBreakEditing","enableCommand","registerElementLabel","get","locale","ELEMENT_PAGE_BREAK","has","_descriptionFactory","TrackChangesEditing"];var Ki,qi;Ki=Vi,qi=496,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{[Xi("0x0")](){const t=this[Xi("0x1")];if(!t[Xi("0xc")][Xi("0x8")](Xi("0x2")))return;t.plugins.get(Xi("0xa"))[Xi("0x3")](Xi("0xb"));const e=t[Xi("0xc")][Xi("0x5")](Xi("0xa")),n=t[Xi("0x6")];e[Xi("0x9")][Xi("0x4")](Xi("0xb"),(t=>Yo(n,Xi("0x7"),t)))}}const Ji=["activeMarkers","plugins","ELEMENT_PARAGRAPH","Paragraph","type","registerElementLabel","ck-suggestion-marker-split","isTouching","afterInit","registerDescriptionCallback","*Change to:* %0","isLimit","createUIElement","_descriptionFactory","paragraph","$text","filter","addMarker:suggestion:insertion","document","parent","insertParagraph","insertion","change","consumable","enableCommand","from","blockName","downcastDispatcher","showSuggestionHighlights","getSelectedBlocks","get","nodeAfter","writer","checkChild","getItemLabel","editing","ck-suggestion-marker--active","TrackChangesEditing","editor","bindElementToMarker","*Insert:* %0","has","commandName","includes","selection","getFirstRange","markerName","name","isBlock","end","markBlockFormat","markerRange","mapper","toViewPosition","model","locale","insert","options","addClass","highest","span","consume","schema"];var Qi,Zi;Qi=Ji,Zi=224,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{[Yi("0x24")](){const t=this[Yi("0x3")];if(!t[Yi("0x1d")][Yi("0x6")](Yi("0x1f")))return;const e=t[Yi("0x14")],n=t[Yi("0x1d")][Yi("0x3a")](Yi("0x2"));n[Yi("0x29")][Yi("0x21")](Yi("0x2a"),(t=>Yo(e,Yi("0x1e"),t))),n[Yi("0x34")](Yi("0x2a"),((e,o={})=>{const s=t[Yi("0x13")][Yi("0x2e")],r=o[Yi("0x9")]||s[Yi("0x9")],i=Array[Yi("0x35")](r[Yi("0x39")]())[Yi("0x2c")]((t=>{return e=t,(n=this.editor[Yi("0x13")][Yi("0x1b")])[Yi("0x3d")](e[Yi("0x2f")],Yi("0x2a"))&&!n.isObject(e)&&Yi("0x2a")!=e.name;var e,n}));t[Yi("0x13")][Yi("0x32")]((()=>{for(const t of i)n[Yi("0xf")](t,{commandName:"paragraph",commandParams:[],formatGroupId:Yi("0x36")},fs(t))}))})),n[Yi("0x29")][Yi("0x25")]((t=>{const{data:n}=t;if(n&&Yi("0x2a")==n[Yi("0x7")])return{type:"format",content:Yo(e,Yi("0x26"),Yo(e,"ELEMENT_PARAGRAPH"))}})),n[Yi("0x34")](Yi("0x30")),t[Yi("0x0")][Yi("0x37")].on(Yi("0x2d"),ex(t),{priority:"highest"}),t.data[Yi("0x37")].on(Yi("0x2d"),((e,n,o)=>{o[Yi("0x16")][Yi("0x38")]&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:Yi("0x18")});const o=n[Yi("0x29")];o.registerDescriptionCallback((n=>{if("insertion"!==n[Yi("0x20")])return;const{start:s,end:r}=n[Yi("0xa")]();if(!s[Yi("0x23")](r)||!s[Yi("0x3b")])return;const i=t[Yi("0x13")].schema,x=s[Yi("0x3b")];return i[Yi("0xd")](x)&&!i[Yi("0x27")](x)&&i.checkChild(x,Yi("0x2b"))?{type:Yi("0x31"),content:Yo(e,Yi("0x5"),o[Yi("0x3e")](x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Yi("0x1d")][Yi("0x3a")]("TrackChangesEditing"),i=o.markerRange.start,x=o.markerRange[Yi("0xe")],a=t.model.schema;if(!i[Yi("0x23")](x)||!i[Yi("0x3b")])return;const c=i[Yi("0x3b")];if(a[Yi("0xd")](c)&&!a.isLimit(c)&&a[Yi("0x3d")](c,Yi("0x2b"))){if(!s[Yi("0x33")][Yi("0x1a")](o[Yi("0x10")],n[Yi("0xc")]))return;const t=s[Yi("0x3c")][Yi("0x28")](Yi("0x19"),{class:Yi("0x22")}),i=s[Yi("0x11")][Yi("0x12")](x);e&&r[Yi("0x1c")][Yi("0x8")](o[Yi("0xb")])&&s[Yi("0x3c")][Yi("0x17")](Yi("0x1"),t),s[Yi("0x3c")][Yi("0x15")](i,t),s[Yi("0x11")][Yi("0x4")](t,o[Yi("0xb")])}}}const nx=["removeFormat","commandName","getItems","schema","change","locale","markInlineFormat","isFormatting","isCollapsed","plugins","has","model","format","afterInit","from","*Remove all formatting*"];var ox,sx;ox=nx,sx=116,function(t){for(;--t;)ox.push(ox.shift())}(++sx);const rx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{[rx("0x9")](){const t=this.editor;if(!t[rx("0x5")][rx("0x6")]("RemoveFormatEditing"))return;const e=t[rx("0x5")].get("TrackChangesEditing");e.enableCommand(rx("0xc"),(n=>{const o=t[rx("0x7")].document.selection;o[rx("0x4")]?n():t[rx("0x7")][rx("0x0")]((()=>{const n=Array[rx("0xa")](o.getRanges());for(const o of n)for(const n of o[rx("0xe")]())xx(n,t[rx("0x7")][rx("0xf")])&&e[rx("0x2")](t.model.createRangeOn(n),{commandName:rx("0xc"),commandParams:[]})}))})),e._descriptionFactory.registerDescriptionCallback((e=>{const{data:n}=e;if(n&&rx("0xc")==n[rx("0xd")])return{type:rx("0x8"),content:Yo(t[rx("0x1")],rx("0xb"))}}))}}function xx(t,e){for(const[n]of t.getAttributes()){const t=e.getAttributeProperties(n);if(t&&t[rx("0x3")])return!0}return!1}const ax=["TrackChangesEditing","plugins","RestrictedEditingModeEditing","trackChanges","enableCommand","get","acceptSuggestion","discardSuggestion","discardAllSuggestions","acceptSelectedSuggestions","goToNextRestrictedEditingException","acceptAllSuggestions","goToPreviousRestrictedEditingException","discardSelectedSuggestions","has"];var cx,lx;cx=ax,lx=163,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const dx=function(t,e){return ax[t-=0]};class ux extends t.Plugin{afterInit(){const t=this.editor;if(!t[dx("0x3")][dx("0x1")](dx("0x4")))return;const e=t[dx("0x3")][dx("0x7")](dx("0x2"));e[dx("0x6")](dx("0xe")),e[dx("0x6")](dx("0xc"));const n=t.plugins[dx("0x7")](dx("0x4"));n.enableCommand(dx("0x5")),n.enableCommand(dx("0x8")),n[dx("0x6")](dx("0x9")),n[dx("0x6")](dx("0xd")),n.enableCommand(dx("0xa")),n[dx("0x6")](dx("0xb")),n[dx("0x6")](dx("0x0"))}}const gx=["init","downcastDispatcher","test","editing","softBreak","plugins","data","ELEMENT_LINE_BREAK","merge","requires","element","writer","addMarker:suggestion:insertion","showSuggestionHighlights","markerRange","model","locale","addClass","options","high","shiftEnter","split","TrackChangesEditing","mapper","deletion","activeMarkers","createPositionBefore","name","toViewPosition","addMarker:suggestion","bindElementToMarker","_descriptionFactory","get"];var mx,fx;mx=gx,fx=124,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{static get[hx("0x11")](){return[nr.ShiftEnter]}[hx("0x8")](){const t=this.editor,e=t[hx("0xd")][hx("0x7")](hx("0x1e"));e.enableCommand(hx("0x1c")),t[hx("0xb")][hx("0x9")].on(hx("0x14"),bx(t),{priority:hx("0x1b")}),t[hx("0xb")][hx("0x9")].on("addMarker:suggestion:deletion",bx(t),{priority:hx("0x1b")}),t[hx("0xe")].downcastDispatcher.on(hx("0x4"),((e,n,o)=>{o[hx("0x1a")][hx("0x15")]&&bx(t,{showActiveMarker:!1})(e,n,o)})),e[hx("0x6")].registerElementLabel("softBreak",(e=>Yo(t[hx("0x18")],hx("0xf"),e)))}}function bx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[hx("0xd")].get(hx("0x1e"));if(!s.consumable[hx("0xa")](o[hx("0x16")],n[hx("0x2")]))return;const i=t[hx("0x17")];for(const t of o[hx("0x16")].getItems()){if(!t.is(hx("0x12"),hx("0xc")))continue;const n=hx("0x20")==o.markerName[hx("0x1d")](":")[1]?hx("0x10"):"split",x=s[hx("0x13")].createUIElement("span",{class:"ck-suggestion-marker-"+n}),a=s[hx("0x1f")][hx("0x3")](i[hx("0x1")](t));e&&r[hx("0x0")].includes(o.markerName)&&s.writer[hx("0x19")]("ck-suggestion-marker--active",x),s[hx("0x13")].insert(a,x),s[hx("0x1f")][hx("0x5")](x,o.markerName)}}}const Ex=["value","locale","restrictedEditingException","FORMAT_RESTRICTED_DISABLED","markInlineFormat","isCollapsed","document","getRanges","editor","plugins","FORMAT_RESTRICTED_ENABLED","forceValue","selection","afterInit","_descriptionFactory","StandardEditingModeEditing","enableCommand","registerDescriptionCallback","has","change","format","get"];var _x,Tx;_x=Ex,Tx=272,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const Cx=function(t,e){return Ex[t-=0]};class yx extends t.Plugin{[Cx("0x5")](){const t=this[Cx("0x0")],e=t.model,n=t[Cx("0xf")];if(!t[Cx("0x1")][Cx("0xa")](Cx("0x7")))return;const o=t[Cx("0x1")][Cx("0xd")]("TrackChangesEditing"),s=Cx("0x10"),r=t.commands.get(s);o[Cx("0x8")](s,((t,n={})=>{const i=e[Cx("0x14")][Cx("0x4")];if(i[Cx("0x13")])return void t(n);const x=void 0!==n[Cx("0x3")]?n[Cx("0x3")]:!r[Cx("0xe")];e[Cx("0xb")]((()=>{const t=Array.from(i[Cx("0x15")]());for(const n of t){const t=x?[n]:ms(s,n,e);for(const e of t)o[Cx("0x12")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[Cx("0x6")][Cx("0x9")]((t=>{const{data:e}=t;if(e&&e.commandName==s)return e.commandParams[0].forceValue?{type:Cx("0xc"),content:Yo(n,Cx("0x2"))}:{type:Cx("0xc"),content:Yo(n,Cx("0x11"))}}))}}const kx=["model","config","inline","find","TrackChangesEditing","includes","style","createRangeOn","commands","element","block","toLowerCase","format","from","classes","_getStyleDefinition","enabledStyles","push","StyleUtils","plugins","getItems","styleName","get","markInlineFormat","normalizeConfig","_descriptionFactory","change","locale","getAncestors","style.definitions","markBlockFormat","has","forceValue","getSelectedBlocks","name","value","_getRangesWithClasses","style:","*Remove format:* %0","selection","getDefinitionsForView","*Format:* %0","registerDescriptionCallback","DataSchema","afterInit","getRanges","every","commandParams"];var Ax,vx;Ax=kx,vx=462,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Sx extends t.Plugin{[Rx("0xe")](){const t=this.editor;if(!t[Rx("0x25")][Rx("0x1")]("Style"))return;const e=t[Rx("0x1a")][Rx("0x28")]("style"),n=t[Rx("0x25")][Rx("0x28")](Rx("0x16")),o=t[Rx("0x2d")],s=t[Rx("0x25")][Rx("0x28")](Rx("0xd")),r=t.plugins[Rx("0x28")](Rx("0x24"))[Rx("0x2a")](s,t[Rx("0x13")].get(Rx("0x2f")));n.enableCommand(Rx("0x18"),((o,{styleName:i})=>{const x=t[Rx("0x12")].document[Rx("0x9")],a=this[Rx("0x21")](i,r);if(!a)return;if(!e[Rx("0x22")][Rx("0x17")](i))return;if(x.isCollapsed&&!a.isBlock)return void o({styleName:i});const c=!e[Rx("0x5")][Rx("0x17")](a[Rx("0x4")]);if(a.isBlock){const e=function(t,e){const n=new Set;for(const o of t){const t=o[Rx("0x2e")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[Rx("0x17")](o[Rx("0x4")])){n.add(o);break}}return n}(x[Rx("0x3")](),a.modelElements);t[Rx("0x12")][Rx("0x2c")]((()=>{for(const t of e)n[Rx("0x0")](t,{commandName:Rx("0x18"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:Rx("0x7")+i})}))}else{let e=Array[Rx("0x1f")](x[Rx("0xf")]());if(!c){const n=Array[Rx("0x1f")](s[Rx("0xa")](a[Rx("0x1b")],!1))[0].model,o=[];for(const s of e){const e=this[Rx("0x6")](t.model,s,a[Rx("0x20")],n);o[Rx("0x23")](...e)}e=o}t[Rx("0x12")][Rx("0x2c")]((()=>{for(const t of e)n[Rx("0x29")](t,{commandName:"style",commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Rx("0x2b")][Rx("0xc")]((t=>{const{data:e}=t;if(e&&Rx("0x18")===e.commandName)return e.commandParams[0][Rx("0x2")]?{type:"format",content:Yo(o,Rx("0xb"),e[Rx("0x11")][0][Rx("0x27")].toLowerCase())}:{type:Rx("0x1e"),content:Yo(o,Rx("0x8"),e[Rx("0x11")][0][Rx("0x27")][Rx("0x1d")]())}}))}[Rx("0x21")](t,e){let n=e[Rx("0x1c")][Rx("0x15")]((e=>e[Rx("0x4")]===t));return n||(n=e[Rx("0x14")].find((e=>e[Rx("0x4")]===t))),n}_getRangesWithClasses(t,e,n,o){const s=[];for(const r of e[Rx("0x26")]()){const e=r.getAttribute(o);e&&n[Rx("0x10")]((t=>e[Rx("0x20")][Rx("0x17")](t)))&&s.push(t[Rx("0x19")](r))}return s}}const Ix=["insertTableColumnRight","toViewElement","createPositionAt","data","from","MAX_SAFE_INTEGER","getItems","options","_tableSuggestions","getRowIndexes","isTouching","getRanges","getSelectionAffectedTableCells","position","every","hasAttribute","insertTableRowBelow","isArray","accept","fromRange","_tablePostFixingSubtypes","TrackChangesEditing","locale","ELEMENT_TABLE_WITH_TEXT","registerElementLabel","_getSuggestionCoords","createRangeIn","insertTable","_splitMarkerName","plugins","createTableWalker","getChangedMarkers","downcastDispatcher","setSelection","nodeAfter","includes","$textProxy","enqueueChange","tableRow","toLowerCase","addMarker:suggestion","_setupColumnsRowsFixing","selectTableRow","ELEMENT_TABLE_COLUMN","selection","startsWith","change:data","selectTableColumn","getColumnIndexes","ELEMENT_TABLE_ROW","table","batch","getCellLocation","createRangeOn","map","registerCustomCallback","type","join","removeTableColumn","_getCoordsForCells","some","order","document","getFirstRange","highest","last","findAncestor","minRow","writer","name","isEqual","get","markMultiRangeInsertion","isInContent","max","rowspan","registerDescriptionCallback","nodeBefore","*Remove:* %0","deletion","detach","insertion","removeTableRow","tableCell","oldRange","end","substr","mapper","insert","span","MIN_SAFE_INTEGER","TableUtils","cell","tableColumn","getAttribute","$graveyard","subType","tablePaste","refresh","removeClass","*Insert:* %0","change","colspan","getChanges","has","getContainedElement","addClass","discard","filter","start","TableEditing","commands","differ","model","left","element","item","above","first","ELEMENT_TABLE_COLUMN_WITH_TEXT","root","length","enableCommand","editor","add","getChildren","rootName","_suggestionFactory","maxRow","_descriptionFactory"];var Lx,Nx;Lx=Ix,Nx=496,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const Mx=function(t,e){return Ix[t-=0]};class wx extends t.Plugin{constructor(t){super(t),this._tablePostFixingSubtypes=["tableRow","tableColumn"],this[Mx("0x20")]=new Set}afterInit(){const t=this[Mx("0x11")],e=t[Mx("0x7")][Mx("0x56")][Mx("0x44")];if(!t.plugins[Mx("0x80")](Mx("0x4")))return;const n=t[Mx("0x2e")],o=t.plugins[Mx("0x5f")](Mx("0x2d")),s=t[Mx("0x35")][Mx("0x5f")]("TableUtils");o[Mx("0x17")][Mx("0x30")]("table",(t=>Yo(n,"ELEMENT_TABLE",t))),this[Mx("0x41")](),o[Mx("0x10")](Mx("0x33")),o[Mx("0x10")](Mx("0x42")),o[Mx("0x10")](Mx("0x47"));for(const n of["insertTableRowAbove",Mx("0x28")]){const r=t[Mx("0x5")][Mx("0x5f")](n);o[Mx("0x10")](n,(n=>{t[Mx("0x7")][Mx("0x7d")]((t=>{n();const i=Mx("0xb")===r[Mx("0x55")],x=s[Mx("0x24")](e),a=s[Mx("0x21")](x),c=i?a.first-1:a.last+1,l=x[0].findAncestor(Mx("0x4a")),d=s.createTableWalker(l,{startRow:c,endRow:c}),u=Array[Mx("0x1c")](d)[Mx("0x4e")]((e=>t[Mx("0x4d")](e[Mx("0x74")])));o[Mx("0x60")](u,"tableRow")}))}))}for(const n of["insertTableColumnLeft",Mx("0x18")]){const r=t.commands.get(n);o.enableCommand(n,(n=>{t[Mx("0x7")].change((t=>{n();const i=Mx("0x8")===r[Mx("0x55")],x=s[Mx("0x24")](e),a=s[Mx("0x48")](x),c=i?a[Mx("0xc")]-1:a[Mx("0x59")]+1,l=x[0].findAncestor(Mx("0x4a")),d=s[Mx("0x36")](l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[Mx("0x1c")](d)[Mx("0x4e")]((e=>t[Mx("0x4d")](e[Mx("0x74")])));o[Mx("0x60")](u,Mx("0x75"))}))}))}for(const n of[Mx("0x6a"),Mx("0x52")]){const r=n[Mx("0x6e")](11),i=r.toLowerCase(),x=i[Mx("0x6e")](0,3)+Mx("0x71"),a=Mx("0x4a")+r,c="min"+r,l=Mx("0x62")+r;o.enableCommand(n,(()=>{t[Mx("0x7")][Mx("0x7d")]((t=>{const r=s[Mx("0x24")](e),d=r[0][Mx("0x5a")](Mx("0x4a"));let u;if(Mx("0x6a")==n){const t=s[Mx("0x21")](r);u={startRow:t.first,endRow:t[Mx("0x59")],includeAllSlots:!0}}else{const t=s[Mx("0x48")](r);u={startColumn:t[Mx("0xc")],endColumn:t[Mx("0x59")],includeAllSlots:!0}}const g=s[Mx("0x36")](d,u),m=Array[Mx("0x1c")](g).map((({cell:t})=>t)),f=Ox(m[Mx("0x2")]((t=>t[Mx("0x27")](x)))),h=Ox(m[Mx("0x2")]((t=>!t[Mx("0x27")](x))))[Mx("0x4e")]((e=>t[Mx("0x4d")](e))),p=o.markMultiRangeDeletion(h,a);if(p&&(Mx("0x3e")==p[Mx("0x78")]||Mx("0x75")==p.subType)){const e=this[Mx("0x31")](p);for(const n of f){const o=t.createRangeOn(n),r=s[Mx("0x4c")](n),a=n[Mx("0x76")](x)-1,d=e[c],u=e[l];d<=r[i]&&r[i]+a<=u&&p.addRange(o)}}}))}))}function r(n){const o=Array.from(e[Mx("0x23")]())[Mx("0x4e")]((t=>i.LiveRange.fromRange(t)));t[Mx("0x7")][Mx("0x7d")]((e=>{const s=e[Mx("0x4b")];n=n[Mx("0x2")]((t=>Mx("0x77")!=t[Mx("0xe")].rootName)),e.setSelection(n),t[Mx("0x5")][Mx("0x5f")](Mx("0x6a"))[Mx("0x7a")](),t.execute(Mx("0x6a"),{forceDefaultExecution:!0}),t[Mx("0x7")].enqueueChange((()=>{t[Mx("0x7")][Mx("0x3d")](s,(t=>{const e=o[Mx("0x2")]((t=>"$graveyard"!=t.root[Mx("0x14")]));e[Mx("0xf")]>0&&t[Mx("0x39")](e);for(const t of o)t[Mx("0x68")]()}))}))}))}function a(n){t[Mx("0x7")].change((o=>{const s=Array[Mx("0x1c")](e[Mx("0x23")]()).map((t=>i.LiveRange[Mx("0x2b")](t))),r=[];for(const t of n)for(const e of t.getItems({shallow:!0}))r.push(e);for(const e of r)"$graveyard"!=e[Mx("0xe")][Mx("0x14")]&&(o[Mx("0x39")](o[Mx("0x1a")](e,0)),t[Mx("0x5")][Mx("0x5f")]("removeTableColumn")[Mx("0x7a")](),t.execute("removeTableColumn",{forceDefaultExecution:!0}));const x=s[Mx("0x2")]((t=>"$graveyard"!=t[Mx("0xe")][Mx("0x14")]));x[Mx("0xf")]>0&&o.setSelection(x);for(const t of s)t[Mx("0x68")]()}))}function c(t,e){return e[Mx("0x26")]((e=>t[Mx("0x54")]((t=>t.end[Mx("0x5e")](e[Mx("0x3")])||e[Mx("0x6d")][Mx("0x5e")](t[Mx("0x3")])))))}function l(t,e){return t[Mx("0x54")]((t=>e[Mx("0x54")]((e=>t.end[Mx("0x22")](e[Mx("0x3")])))))}t[Mx("0x1b")][Mx("0x38")].on(Mx("0x40"),((t,e,n)=>{if(!n[Mx("0x1f")].showSuggestionHighlights)return;const o=e[Mx("0xa")];if(!o)return;const s=n[Mx("0x6f")][Mx("0x19")](o);function r(t){return Array[Mx("0x29")](t)?t:[t]}s&&Mx("0x6b")===o[Mx("0x5d")]&&(0,x.setHighlightHandling)(s,n[Mx("0x5c")],((t,e,n)=>n[Mx("0x0")](r(e.classes),t)),((t,e,n)=>n[Mx("0x7b")](r(e.classes),t)))}),{priority:Mx("0x58")}),o[Mx("0x17")][Mx("0x64")]((t=>{if("insertion"!=t[Mx("0x50")]&&Mx("0x67")!=t.type)return;const e=t[Mx("0x81")]();if(null!=e&&e.is(Mx("0x9"),Mx("0x4a"))){if(Mx("0x69")==t[Mx("0x50")]){const e=t[Mx("0x1e")]()[Mx("0x2")]((t=>t.is(Mx("0x3c")))).map((t=>t[Mx("0x1b")]));if(e[Mx("0xf")])return{type:Mx("0x69"),content:Yo(n,Mx("0x7c"),Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e.join(" ")+'"'))}}if(Mx("0x67")==t[Mx("0x50")]){const e=t[Mx("0x1e")]()[Mx("0x2")]((t=>t.is(Mx("0x3c"))))[Mx("0x4e")]((t=>t[Mx("0x1b")]));if(e.length)return{type:"deletion",content:Yo(n,Mx("0x66"),Yo(n,Mx("0x2f"),'"'+e[Mx("0x51")](" ")+'"'))}}}})),o[Mx("0x17")][Mx("0x64")]((t=>{if("tableRow"==t[Mx("0x78")]){const e=t[Mx("0x1e")]().filter((t=>t.is(Mx("0x3c"))))[Mx("0x4e")]((t=>t[Mx("0x1b")])),o=this._getSuggestionCoords(t),s=o[Mx("0x16")]-o[Mx("0x5b")]+1;if(Mx("0x69")==t[Mx("0x50")])return e[Mx("0xf")]?{type:"insertion",content:Yo(n,Mx("0x7c"),Yo(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[s,'"'+e[Mx("0x51")](" ")+'"']))}:{type:Mx("0x69"),content:Yo(n,Mx("0x7c"),Yo(n,Mx("0x49"),s))};if(Mx("0x67")==t[Mx("0x50")])return e.length?{type:Mx("0x67"),content:Yo(n,Mx("0x66"),Yo(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[s,'"'+e[Mx("0x51")](" ")+'"']))}:{type:Mx("0x67"),content:Yo(n,Mx("0x66"),Yo(n,Mx("0x49"),s))}}if(Mx("0x75")==t[Mx("0x78")]){const e=t[Mx("0x1e")]().filter((t=>t.is(Mx("0x3c"))))[Mx("0x4e")]((t=>t.data)),o=this[Mx("0x31")](t),s=o.maxColumn-o.minColumn+1;if("insertion"==t[Mx("0x50")])return e[Mx("0xf")]?{type:"insertion",content:Yo(n,"*Insert:* %0",Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[s,'"'+e[Mx("0x51")](" ")+'"']))}:{type:"insertion",content:Yo(n,Mx("0x7c"),Yo(n,Mx("0x43"),s))};if(Mx("0x67")==t[Mx("0x50")])return e[Mx("0xf")]?{type:Mx("0x67"),content:Yo(n,Mx("0x66"),Yo(n,Mx("0xd"),[s,'"'+e[Mx("0x51")](" ")+'"']))}:{type:Mx("0x67"),content:Yo(n,Mx("0x66"),Yo(n,"ELEMENT_TABLE_COLUMN",s))}}})),o[Mx("0x15")].registerCustomCallback(Mx("0x69"),Mx("0x3e"),Mx("0x1"),r),o[Mx("0x15")].registerCustomCallback("deletion",Mx("0x3e"),Mx("0x2a"),r),o[Mx("0x15")].registerCustomCallback(Mx("0x69"),"tableColumn",Mx("0x1"),a),o._suggestionFactory.registerCustomCallback("deletion",Mx("0x75"),Mx("0x2a"),a),o[Mx("0x15")][Mx("0x4f")](Mx("0x69"),Mx("0x75"),Mx("0x51"),c),o[Mx("0x15")].registerCustomCallback(Mx("0x67"),Mx("0x75"),Mx("0x51"),c),o[Mx("0x15")].registerCustomCallback(Mx("0x69"),Mx("0x3e"),"join",l),o[Mx("0x15")][Mx("0x4f")]("deletion","tableRow","join",l)}_acceptFormatSuggestionCallbackFactory(){const t=this[Mx("0x11")],e=t[Mx("0x7")].document[Mx("0x44")];return(n,o)=>{t[Mx("0x7")].change((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][Mx("0x6d")][Mx("0x65")];x&&x[0]&&!1===x[0].forceValue&&(a=n[0].start[Mx("0x3a")]);const c=s[Mx("0x32")](a);if(Mx("0x77")==c.root[Mx("0x14")])return;const l=Array[Mx("0x1c")](e[Mx("0x23")]())[Mx("0x4e")]((t=>i.LiveRange[Mx("0x2b")](t)));s[Mx("0x39")](c),t[Mx("0x5")][Mx("0x5f")](r)[Mx("0x7a")](),x.push({forceDefaultExecution:!0}),t.execute(r,...x);const d=l[Mx("0x2")]((t=>Mx("0x77")!=t[Mx("0xe")].rootName));d[Mx("0xf")]>0&&s[Mx("0x39")](d);for(const t of l)t[Mx("0x68")]()}))}}[Mx("0x53")](t){const e=this[Mx("0x11")][Mx("0x35")][Mx("0x5f")](Mx("0x73"));let n=Number[Mx("0x1d")],o=Number[Mx("0x72")],s=Number.MAX_SAFE_INTEGER,r=Number[Mx("0x72")];for(const i of t){if(Mx("0x77")==i[Mx("0xe")].rootName)continue;const{row:t,column:x}=e[Mx("0x4c")](i),a=i[Mx("0x27")]("rowspan")?i.getAttribute(Mx("0x63"))-1:0,c=i[Mx("0x27")](Mx("0x7e"))?i[Mx("0x76")](Mx("0x7e"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,s=x<s?x:s,r=x+c>r?x+c:r}return{minRow:n,maxRow:o,minColumn:s,maxColumn:r}}[Mx("0x41")](){const t=this[Mx("0x11")],e=t[Mx("0x35")][Mx("0x5f")](Mx("0x2d")),n=t.plugins[Mx("0x5f")](Mx("0x73"));t.model[Mx("0x56")].on(Mx("0x46"),(()=>{const n=Array.from(t[Mx("0x7")].document[Mx("0x6")][Mx("0x37")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[Mx("0x34")](t);if("suggestion"!=n)continue;if(null!=o[Mx("0x6c")])continue;const i=e.getSuggestion(s);this[Mx("0x2c")][Mx("0x3b")](r)&&this._tableSuggestions[Mx("0x12")](i)}}),{priority:"low"});const o=(t,e)=>{let o=!1;const s=e[Mx("0x4d")](t),r=t[Mx("0x5a")]("table"),i=n[Mx("0x4c")](t);for(const e of this[Mx("0x20")]){const n=e.subType,x=n[Mx("0x45")](Mx("0x79")),a=n[Mx("0x6e")](x?10:5),c=a[Mx("0x3f")](),l=c[Mx("0x6e")](0,3)+"span",d="min"+a,u=Mx("0x62")+a;if(!e[Mx("0x61")])continue;if(r!=e[Mx("0x57")]().start[Mx("0x5a")](Mx("0x4a")))continue;if(e.isIntersectingWithRange(s))continue;const g=t.hasAttribute(l)?t[Mx("0x76")](l)-1:0,m=this._getSuggestionCoords(e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e.addRange(s),o=!0)}return o};t.model[Mx("0x56")].registerPostFixer((e=>{let n=!1;for(const s of t[Mx("0x7")][Mx("0x56")].differ[Mx("0x7f")]())if(Mx("0x70")==s[Mx("0x50")])if(Mx("0x3e")==s[Mx("0x5d")])for(const t of s[Mx("0x25")].nodeAfter[Mx("0x13")]())n=n||o(t,e);else Mx("0x6b")==s[Mx("0x5d")]&&(n=n||o(s[Mx("0x25")].nodeAfter,e));return n}))}[Mx("0x31")](t){return this[Mx("0x53")](t[Mx("0x23")]()[Mx("0x4e")]((t=>t[Mx("0x3")].nodeAfter)))}}function Ox(t){return Array[Mx("0x1c")](new Set(t).values())}const Fx=["TableUtils","low","plugins","find","value","map","setSelection","formatBlock","getSuggestions","markMultiRangeBlockFormat","detach","model","registerCustomCallback","getFirstPosition","locale","type","splitTableCellVertically","_acceptFormatSuggestionCallbackFactory","has","return","document","fromRange","mergeTableCellLeft","enableCommand","getSelectionAffectedTableCells","stop","commands","horizontally","highest","accept","from","format","trackChanges","cell","$graveyard","forceDefaultExecution","tableCell","mergeTableCellDown","length","table","mergeTableCellRight","add","splitTableCellHorizontally","_isForcedDefaultExecutionBlock","registerDescriptionCallback","_descriptionFactory","get","direction","refresh","editor","mergeTableCells","TrackChangesEditing","commandName","markBlockFormat","author","selection","_areSelectedCellsMergable","subType","_areMergableCells","*Merge cells*","createTableWalker","size","insertion","*Split cell:* vertically","getAncestors","getCellLocation","filter","afterInit","element","TableEditing","_suggestionFactory","mergeTableCellUp","createRangeOn","change","isEnabled"];var Px,Dx;Px=Fx,Dx=166,function(t){for(;--t;)Px.push(Px.shift())}(++Dx);const Bx=function(t,e){return Fx[t-=0]};class jx extends t.Plugin{static get requires(){return[wx]}[Bx("0x33")](){const t=this[Bx("0x21")],e=t[Bx("0x46")][Bx("0x4")][Bx("0x27")],n=t[Bx("0x49")];if(!t[Bx("0x3d")].has(Bx("0x35")))return;const o=t[Bx("0x3d")][Bx("0x1e")](Bx("0x23")),s=t[Bx("0x3d")].get(Bx("0x3b")),r=t.plugins[Bx("0x1e")](wx);r._tablePostFixingSubtypes.push("mergeTableCells"),o[Bx("0x7")]("mergeTableCells",(()=>{const e=s[Bx("0x8")](t[Bx("0x46")][Bx("0x4")][Bx("0x27")]);t[Bx("0x46")][Bx("0x39")]((()=>{o[Bx("0x44")](e,{commandName:Bx("0x22"),commandParams:[]},[],Bx("0x22"))}))})),t[Bx("0xa")].get(Bx("0x22")).on("execute",((e,n)=>{t[Bx("0xa")][Bx("0x1e")](Bx("0x10"))[Bx("0x3f")]&&(n[Bx("0x16")]>0&&n[n[Bx("0x16")]-1]&&n[n.length-1][Bx("0x13")]||o[Bx("0x1b")]||this._areSelectedCellsMergable()||e[Bx("0x9")]())}),{priority:Bx("0xc")});for(const e of["mergeTableCellUp",Bx("0x18"),Bx("0x15"),Bx("0x6")]){const n=t.commands[Bx("0x1e")](e);o[Bx("0x7")](e,(()=>{const e=t[Bx("0x46")].document[Bx("0x27")][Bx("0x48")]().getAncestors().find((t=>t.is(Bx("0x34"),Bx("0x14")))),s=n[Bx("0x3f")];t[Bx("0x46")][Bx("0x39")]((()=>{o[Bx("0x44")]([e,s],{commandName:Bx("0x22"),commandParams:[]},[],Bx("0x22"))}))}))}for(const e of["splitTableCellVertically",Bx("0x1a")]){const n=t.commands.get(e);o.enableCommand(e,(()=>{const r=s[Bx("0x8")](t[Bx("0x46")][Bx("0x4")][Bx("0x27")])[0],i=r.findAncestor(Bx("0x17")),{column:x,row:a}=s[Bx("0x31")](r);let c=[];if(Bx("0xb")==n[Bx("0x1f")]){const t=s.createTableWalker(i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Bx("0xe")](t)[Bx("0x40")]((t=>t[Bx("0x11")]))}else{const t=s[Bx("0x2c")](i,{column:x,includeAllSlots:!0});c=Array[Bx("0xe")](t)[Bx("0x40")]((t=>t[Bx("0x11")]))}t.model[Bx("0x39")]((t=>{o[Bx("0x25")](t[Bx("0x38")](r),{commandName:e,commandParams:[]},c,e)}))}))}o[Bx("0x1d")][Bx("0x1c")]((t=>{const{data:e}=t;if(e)return"mergeTableCells"==e[Bx("0x24")]?{type:Bx("0xf"),content:Yo(n,Bx("0x2b"))}:void 0})),o[Bx("0x1d")].registerDescriptionCallback((t=>{const{data:e}=t;if(e)return Bx("0x0")==e[Bx("0x24")]?{type:"format",content:Yo(n,Bx("0x2f"))}:"splitTableCellHorizontally"==e.commandName?{type:Bx("0xf"),content:Yo(n,"*Split cell:* horizontally")}:void 0}));const x=r[Bx("0x1")]();for(const t of[Bx("0x37"),"mergeTableCellRight",Bx("0x15"),Bx("0x6")])o[Bx("0x36")].registerCustomCallback("formatBlock",t,Bx("0xd"),x);for(const t of["splitTableCellVertically",Bx("0x1a")])o[Bx("0x36")].registerCustomCallback("formatBlock",t,"accept",x);o[Bx("0x36")][Bx("0x47")](Bx("0x42"),Bx("0x22"),Bx("0xd"),(n=>{t[Bx("0x46")][Bx("0x39")]((o=>{const s=Array[Bx("0xe")](e.getRanges())[Bx("0x40")]((t=>i.LiveRange[Bx("0x5")](t)));o[Bx("0x41")](n),t[Bx("0xa")][Bx("0x1e")](Bx("0x22"))[Bx("0x20")](),t.execute(Bx("0x22"),{forceDefaultExecution:!0});const r=s[Bx("0x32")]((t=>Bx("0x12")!=t.root.rootName));r[Bx("0x16")]>0&&o[Bx("0x41")](r);for(const t of s)t[Bx("0x45")]()}))}));for(const e of[Bx("0x37"),Bx("0x15"),Bx("0x6"),Bx("0x18")]){const n=t.commands[Bx("0x1e")](e);n.on("set:isEnabled",((e,o,s)=>{if(s){const o=t[Bx("0x46")][Bx("0x4")].selection[Bx("0x48")]()[Bx("0x30")]()[Bx("0x3e")]((t=>t.is(Bx("0x34"),Bx("0x14"))));this[Bx("0x2a")](n[Bx("0x3f")],o)||(e[Bx("0x3")]=!1,e[Bx("0x9")]())}}),{priority:Bx("0x3c")})}}[Bx("0x28")](){const t=this[Bx("0x21")][Bx("0xa")][Bx("0x1e")]("mergeTableCells"),e=this[Bx("0x21")][Bx("0x3d")][Bx("0x1e")](Bx("0x3b"));if(!t[Bx("0x3a")])return!1;const n=e[Bx("0x8")](this[Bx("0x21")][Bx("0x46")].document.selection);for(const t of n)for(const e of n)if(t!=e&&!this[Bx("0x2a")](t,e))return!1;return!0}[Bx("0x2a")](t,e){const n=this[Bx("0x21")][Bx("0x3d")][Bx("0x1e")]("TrackChangesEditing"),o=this.editor.model[Bx("0x38")](t),s=this[Bx("0x21")].model.createRangeOn(e),r=new Set,i=new Set;for(const t of n[Bx("0x43")]())if((Bx("0x2e")==t[Bx("0x4a")]||"deletion"==t.type||Bx("0x22")==t[Bx("0x29")])&&t.isInContent)for(const e of t.getRanges())e.containsRange(o,!0)&&r[Bx("0x19")](t[Bx("0x4a")]+":"+t[Bx("0x26")].id),e.containsRange(s,!0)&&i[Bx("0x19")](t[Bx("0x4a")]+":"+t[Bx("0x26")].id);if(r.size!=i[Bx("0x2d")])return!1;for(const t of r)if(!i[Bx("0x2")](t))return!1;return!0}}const Ux=["showSuggestionHighlights","parent","index","enableCommand","removeAttribute","options","consumable","registerCustomCallback","table","isBefore","ck-suggestion-marker--active","formatBlock","name","item","locale","getSelectionAffectedTableCells","ck-suggestion-marker-","createTableWalker","editor","headingRows","toViewElement","first","findAncestor","removeClass","change","accept","TableEditing","model","_suggestionFactory","unbindElementFromMarkerName","end","setTableRowHeader","createRange","afterInit","nodeAfter","markerName","FORMAT_REGULAR_COLUMN","data","addMarker:suggestion","setAttribute","markBlockFormat","TableUtils","requires","value","data-suggestion","setTableColumnHeader","get","createPositionBefore","document","mapper","highest","plugins","getSuggestion","nodeBefore","forceValue","cell","TrackChangesEditing","getAttribute","addClass","commandName","*Format:* %0","commands","getColumnIndexes","markerRange","createPositionAfter","registerDescriptionCallback","format","FORMAT_REGULAR_ROW","getCellLocation","headingColumns","downcastDispatcher","writer","last","editing","bindElementToMarker","getChild","_acceptFormatSuggestionCallbackFactory","_descriptionFactory","childCount","removeMarker:suggestion","selection","commandParams","has"];var Gx,Hx;Gx=Ux,Hx=317,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("0x39")](){return[wx]}[zx("0x30")](){const t=this[zx("0x21")];if(!t[zx("0x42")][zx("0xe")](zx("0x29")))return;const e=t[zx("0x1d")],n=t[zx("0x42")][zx("0x3d")](zx("0x47")),o=t[zx("0x42")][zx("0x3d")]("TableUtils"),s=t[zx("0x42")][zx("0x3d")](wx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n._splitMarkerName(r[zx("0x32")]),c=n[zx("0x43")](a);if(!c[zx("0x34")]||zx("0x3c")!=c[zx("0x34")][zx("0x4a")])return;if(r[zx("0x1c")])return void s.stop();if(!i[zx("0x15")].consume(r[zx("0x4e")],s[zx("0x1b")]))return;const l=r.markerRange.start[zx("0x31")],d=r[zx("0x4e")][zx("0x2d")][zx("0x44")],u=l.parent[zx("0x10")],{column:g}=o[zx("0x0")](l),{column:m}=o.getCellLocation(d);for(let s=g;s<=m;s++){const c=o[zx("0x20")](u,{column:s,includeAllSlots:!1});for(const o of c){const s=o.cell,c=i[zx("0x40")][zx("0x23")](s);i.writer[zx("0x49")]("ck-suggestion-marker-"+x,c),e&&i.writer[zx("0x36")](zx("0x3b"),a,c),i[zx("0x40")][zx("0x6")](c,r[zx("0x32")]),t&&(n.activeMarkers.includes(r[zx("0x32")])?i[zx("0x3")].addClass("ck-suggestion-marker--active",c):i.writer[zx("0x26")]("ck-suggestion-marker--active",c))}}}}n.enableCommand(zx("0x2e"),((e,s)=>{const r=o[zx("0x1e")](t.model[zx("0x3f")][zx("0xc")]),i=o.getRowIndexes(r),x=r[0][zx("0x25")](zx("0x17")),a=x.getAttribute(zx("0x22"))||0,c=s&&null!==s[zx("0x45")]?s[zx("0x45")]:!t[zx("0x4c")][zx("0x3d")](zx("0x2e"))[zx("0x3a")],l=c?i[zx("0x4")]:i[zx("0x24")],d=x[zx("0x7")](l);let u;if(c){const e=x[zx("0x7")](a);if(d[zx("0x11")]<e.index)return;u=t.model[zx("0x2f")](t[zx("0x2a")][zx("0x3e")](e.getChild(0)),t[zx("0x2a")][zx("0x4f")](d[zx("0x7")](d.childCount-1)))}else{const e=x.getChild(a-1);if(!e)return;u=t.model[zx("0x2f")](t.model[zx("0x3e")](d.getChild(0)),t[zx("0x2a")][zx("0x4f")](e[zx("0x7")](e[zx("0xa")]-1)))}t[zx("0x2a")].change((()=>{n[zx("0x37")](u,{commandName:zx("0x2e"),commandParams:[{forceValue:c}]},[],zx("0x2e"))}))})),n[zx("0x12")]("setTableColumnHeader",((e,o)=>{const s=t[zx("0x42")][zx("0x3d")](zx("0x38")),r=s.getSelectionAffectedTableCells(t[zx("0x2a")].document.selection),i=s[zx("0x4d")](r),x=r[0].findAncestor(zx("0x17")),a=x[zx("0x48")](zx("0x1"))||0,c=o&&null!==o.forceValue?o[zx("0x45")]:!t[zx("0x4c")][zx("0x3d")]("setTableColumnHeader").value;let l;const d=x[zx("0x7")](0),u=c?i.last:i[zx("0x24")],g=s[zx("0x20")](x,{startRow:0,column:u,includeAllSlots:!1}),m=Array.from(g)[0][zx("0x46")];if(c){const e=d.getChild(a);if(m[zx("0x18")](e))return;l=t[zx("0x2a")][zx("0x2f")](t[zx("0x2a")].createPositionBefore(e),t[zx("0x2a")].createPositionAfter(m))}else{const e=d.getChild(a-1);if(!e)return;l=t[zx("0x2a")][zx("0x2f")](t.model[zx("0x3e")](m),t.model[zx("0x4f")](e))}t[zx("0x2a")][zx("0x27")]((()=>{n[zx("0x37")](l,{commandName:zx("0x3c"),commandParams:[{forceValue:c}]},[],zx("0x3c"))}))})),t.editing[zx("0x2")].on(zx("0x35"),r(),{priority:zx("0x41")}),t[zx("0x34")][zx("0x2")].on(zx("0x35"),((t,e,n)=>{n[zx("0x14")][zx("0xf")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:zx("0x41")}),t[zx("0x5")][zx("0x2")].on(zx("0xb"),((t,e,o)=>{const{type:s,id:r}=n._splitMarkerName(e[zx("0x32")]),i=n[zx("0x43")](r);if(!i.data||"setTableColumnHeader"!=i[zx("0x34")][zx("0x4a")])return;const x=o[zx("0x40")].markerNameToElements(e[zx("0x32")]);if(x)for(const t of x)o[zx("0x3")].removeClass(zx("0x1f")+s,t),o[zx("0x3")][zx("0x26")](zx("0x19"),t),o[zx("0x3")][zx("0x13")](zx("0x3b"),t),o[zx("0x40")][zx("0x2c")](t,e[zx("0x32")])}),{priority:zx("0x41")}),n[zx("0x9")][zx("0x50")]((t=>{const{data:n}=t;if(n){if(zx("0x2e")==n[zx("0x4a")]){const t=n[zx("0xd")][0][zx("0x45")];return o(Yo(e,t?"FORMAT_HEADER_ROW":zx("0x52")))}if(zx("0x3c")==n.commandName){const t=n.commandParams[0].forceValue;return o(Yo(e,t?"FORMAT_HEADER_COLUMN":zx("0x33")))}}function o(t){return{type:zx("0x51"),content:Yo(e,zx("0x4b"),t)}}}));const i=s[zx("0x8")]();n[zx("0x2b")][zx("0x16")](zx("0x1a"),"setTableRowHeader",zx("0x28"),i),n[zx("0x2b")].registerCustomCallback(zx("0x1a"),"setTableColumnHeader","accept",i)}}const Vx=["suggestion-td","document","getAttributes","previous","editing","findAncestor","tableCellBorderWidth","row","root","next","suggestion","differ","find","markMultiRangeBlockFormat","markers","tablePasteChainId","nodeAfter","columns","getShiftedBy","formatBlock","name","updateMarker","add","getSuggestionCallback","removeRows","options","documentSelection","getItems","suggestion:formatBlock:tablePasteCell","dataDowncast","newRange","subType","batch","move","start","includes","has","createPositionBefore","length","startsWith","tableCellHorizontalAlignment","for","tablePasteColumn","_isForcedDefaultExecutionBlock","element","tableCellBorderStyle","createRangeOn","createRangeIn","_splitMarkerName","isEqual","_suggestionFactory","_createdBatches","map","_descriptionFactory","tableCellBackgroundColor","getTableIfOnlyTableInContent","rowInsertionRanges","columnInsertionIndexes","unwrap","TrackChangesEditing","content","_tablePostFixingSubtypes","column","markMultiRangeDeletion","getSuggestion","tablePaste","rootName","table","tablePasteCell","requires","endRow","tableCell","last","schema","first","insertColumns","insertContent","model","markerName","getContainedElement","cell","getSuggestions","getRowIndexes","endColumn","showSuggestionHighlights","selection","ck-suggestion-marker--active","wrap","remove","author","getAllAdjacentSuggestions","containsRange","low","*Replace table cells*","oldRange","getChild","getColumnIndexes","getRanges","_getCoordsForCells","change","markerAttributes","suggestionLoaded","TableClipboard","Users","markerToHighlight","deletion","tableCellVerticalAlignment","some","tableCellPadding","clipboardOutput","attributes","discard","type","editingDowncast","end","getMarkers","reduce","_replaceTableSlotCell","rowInsertionIndexes","isInContent","afterInit","insertion","plugins","previousSibling","insert","getChangedMarkers","from","push","isEmpty","createTableWalker","accept","filter","insertRows","view","get","tableCellSuggestion","entries","keys","fill","TableUtils","set","getRange","registerPostFixer","paragraph","high","registerCustomCallback","stop","cells","markMultiRangeInsertion","conversion","locale","position","ck-suggestion-marker-insertion","createElement","ck-suggestion-marker","getChildren","deletionRanges","forceDefaultExecution","editor","getRows","removeMarker","$graveyard","trackChanges","tablePasteRow","elementToElement","every","commands"];var Kx,qx;Kx=Vx,qx=197,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Vx[t-=0]},$x=[Xx("0x8f"),"tableCellBorderColor",Xx("0xf"),Xx("0xa"),Xx("0x4c"),Xx("0x18"),Xx("0x4e")],Jx=Object.fromEntries($x[Xx("0x16")]((t=>[t,null])));class Qx extends t.Plugin{static get[Xx("0x27")](){return[wx]}[Xx("0x5a")](){const t=this.editor;if(!t[Xx("0x5c")][Xx("0x6")](Xx("0x48")))return;const n=t.plugins.get(Xx("0x1d")),o=t[Xx("0x5c")][Xx("0x68")](Xx("0x6d")),s=t[Xx("0x5c")][Xx("0x68")](wx),r=t[Xx("0x5c")][Xx("0x68")](Xx("0x48"));s[Xx("0x1f")][Xx("0x61")](Xx("0x85"),Xx("0xc")),t[Xx("0x2f")][Xx("0x2b")].register(Xx("0x69"),{allowIn:Xx("0x29"),allowContentOf:Xx("0x29"),isLimit:!0}),t[Xx("0x77")][Xx("0x86")]({model:Xx("0x69"),view:Xx("0x89")});let i=null;t[Xx("0x2f")].on(Xx("0x2e"),((s,x)=>{const[a,c]=x,l=x[x[Xx("0x8")]-1];l&&l[Xx("0x7f")]||n[Xx("0xd")]||this[Xx("0x80")][Xx("0x88")][Xx("0x68")](Xx("0x84")).value&&function(t,e,n,o,s){if(e&&!e.is(Xx("0xa3")))return!1;const r=s[Xx("0x19")](t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o.getSelectionAffectedTableCells(n[Xx("0x8a")][Xx("0x37")]);if(!i[Xx("0x8")])return!1;const x=i[0][Xx("0x8e")](Xx("0x25")),a=o[Xx("0x34")](i),c=o[Xx("0x42")](i),l={startRow:a[Xx("0x2c")],endRow:a[Xx("0x2a")],startColumn:c[Xx("0x2c")],endColumn:c.last};return 1==i[Xx("0x8")]&&(l[Xx("0x28")]+=o[Xx("0x81")](r)-1,l[Xx("0x35")]+=o.getColumns(r)-1),Yx(x,l,o)}(a,c,t[Xx("0x2f")],o,r)&&(s[Xx("0x74")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Xx("0x2f")][Xx("0x45")]((()=>{t[Xx("0x2f")].insertContent(x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:s,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=i;s.length&&n[Xx("0x76")](s,Xx("0x85"),{tablePasteChainId:o}),r[Xx("0x8")]&&n.markMultiRangeInsertion(r,Xx("0xc"),{tablePasteChainId:o}),a[Xx("0x8")]&&n[Xx("0x76")](a,Xx("0x23"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Xx("0x8")]&&n[Xx("0x21")](c,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0});const d=n[Xx("0x96")](l[Xx("0x16")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Xx("0x26"),{tablePasteChainId:o});if(d){const e=d[Xx("0x55")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t[Xx("0x2f")][Xx("0x10")](o),i=e.find((t=>t[Xx("0x6f")]()[Xx("0x13")](r)));i&&n.push([i[Xx("0x9d")],s])}n[Xx("0x8")]&&d.setAttribute(Xx("0x46"),Object.fromEntries(n))}i=null})))}),{priority:e.priorities[Xx("0x72")]+10}),t[Xx("0x5c")][Xx("0x68")]("TableClipboard").on(Xx("0x57"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t[Xx("0x74")]();const r=n[Xx("0x32")],x=o,a=Zx(r),c=Zx(x);t.return=r;let l=null,d=null;if(c||a)if(a&&!c){s.remove(r.getChild(0));for(const t of Array[Xx("0x60")](x.getChildren()))s[Xx("0x5e")](t,r,Xx("0x54"));const t=i[Xx("0x58")][Xx("0x5")](n[Xx("0x90")]),e=i[Xx("0x1b")].includes(n[Xx("0x20")]);t||e||(l=s[Xx("0x11")](r))}else c&&!a&&(d=s[Xx("0x11")](r));else{const t=s[Xx("0x7b")](Xx("0x69")),e=s[Xx("0x7b")](Xx("0x69"));s[Xx("0x39")](s[Xx("0x11")](r),e),s[Xx("0x5e")](t,r,0);for(const e of Array[Xx("0x60")](x[Xx("0x7d")]()))s[Xx("0x5e")](e,t,Xx("0x54"));l=s[Xx("0x10")](t),d=s[Xx("0x10")](e)}const u=Array.from(x[Xx("0x8b")]())[Xx("0x65")]((([t])=>$x[Xx("0x5")](t)));i[Xx("0x75")].push({element:r,attributes:u[Xx("0x8")]?Object.fromEntries(u):null}),l&&i.insertionRanges[Xx("0x61")](l),d&&i[Xx("0x7e")].push(d)}),{priority:Xx("0x72")}),o.on(Xx("0x2d"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x9a")]||1;i.columnInsertionIndexes=new Array(a)[Xx("0x6c")](x)[Xx("0x16")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x63")](s,{startColumn:x,endColumn:x+a-1}))i.columnInsertionRanges.push(t.model[Xx("0x10")](e))}),{priority:Xx("0x3e")}),o.on(Xx("0x66"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r.rows||1;i[Xx("0x58")]=new Array(a)[Xx("0x6c")](x)[Xx("0x16")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x63")](s,{startRow:x,endRow:x+a-1}))i[Xx("0x1a")][Xx("0x61")](t[Xx("0x2f")][Xx("0x10")](e))}),{priority:"low"}),n[Xx("0x17")].registerDescriptionCallback((e=>{if(e[Xx("0x1")]&&e[Xx("0x1")][Xx("0x9")](Xx("0x23")))return e.previous?{}:{type:Xx("0x5b"),content:Yo(t[Xx("0x78")],Xx("0x3f"))}}));const x=()=>!1;for(const t of[Xx("0x23"),Xx("0xc"),"tablePasteRow",Xx("0x26")])n[Xx("0x14")].registerCustomCallback(Xx("0x5b"),t,"join",x),n[Xx("0x14")][Xx("0x73")]("deletion",t,"join",x),n[Xx("0x14")][Xx("0x73")](Xx("0x9c"),t,"join",x);n._suggestionFactory.registerCustomCallback(Xx("0x9c"),Xx("0x26"),Xx("0x51"),x),n[Xx("0x14")][Xx("0x73")](Xx("0x9c"),Xx("0x26"),"accept",((e,n,o)=>{const s=e[Xx("0x16")]((t=>t[Xx("0x31")]()))[Xx("0x65")]((t=>t)),r=new Map(s[Xx("0x16")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Xx("0x75")])e&&r.set(t,e);else if(o&&o[Xx("0x46")])for(const[e,n]of Object[Xx("0x6a")](o[Xx("0x46")])){const o=t[Xx("0x2f")][Xx("0x97")][Xx("0x68")](e),s=o?o[Xx("0x6f")]().getContainedElement():null;s&&r[Xx("0x6e")](s,n)}t[Xx("0x2f")][Xx("0x45")]((t=>{for(const[e,n]of r)t.setAttributes({...Jx,...n},e)}))}));const a=(e,o)=>{n[Xx("0x14")][Xx("0x73")](e,"tablePaste",o,((s,r,i)=>{t.model[Xx("0x45")]((t=>{const x=[];for(const t of s){const e=t[Xx("0x4")][Xx("0x99")];e.is(Xx("0xe"),"tableCellSuggestion")&&x[Xx("0x61")](e)}n[Xx("0x14")][Xx("0xa0")](e,null,o)(s,r,i);for(const e of x)Xx("0x83")!=e[Xx("0x91")][Xx("0x24")]&&t[Xx("0x1c")](e)}))}))};a(Xx("0x5b"),Xx("0x64")),a("insertion",Xx("0x51")),a(Xx("0x4b"),Xx("0x64")),a("deletion",Xx("0x51")),n[Xx("0x14")].registerCustomCallback("insertion","tablePasteRow",Xx("0x51"),(t=>{const e=t[Xx("0x16")]((t=>t[Xx("0x31")]())),n=e[0][Xx("0x8e")](Xx("0x25")),{minRow:r,maxRow:i}=s._getCoordsForCells(e);o[Xx("0xa1")](n,{at:r,rows:i-r+1})})),n[Xx("0x14")][Xx("0x73")]("insertion","tablePasteColumn",Xx("0x51"),(t=>{const e=t[Xx("0x16")]((t=>t[Xx("0x31")]())),n=e[0][Xx("0x8e")](Xx("0x25")),{minColumn:r,maxColumn:i}=s[Xx("0x44")](e);o.removeColumns(n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e.subType||!e.subType[Xx("0x9")](Xx("0x23")))return;const o=e.attributes.tablePasteChainId,s=n.getSuggestions()[Xx("0x65")]((t=>t[Xx("0x59")]&&t[Xx("0x50")]&&t[Xx("0x50")][Xx("0x98")]==o));s[Xx("0x8")]&&e[Xx("0x3c")]()[Xx("0x8")]!=s[Xx("0x8")]&&s[Xx("0x56")](((t,e)=>(t[Xx("0x92")]=e,e[Xx("0x8c")]=t,e)))};function l(t,e=!0){const{id:o}=n._splitMarkerName(t[Xx("0x30")]),s=[Xx("0x7c"),Xx("0x7a")],r=n.activeMarkers.includes(t[Xx("0x30")]);return r&&s[Xx("0x61")](Xx("0x38")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(Xx("0x47"),c,{priority:Xx("0x72")}),n.on("suggestionUnloaded",c,{priority:Xx("0x72")}),t.model[Xx("0x8a")][Xx("0x70")]((()=>{let e=!1;const o=Array.from(t[Xx("0x2f")][Xx("0x8a")][Xx("0x94")][Xx("0x5f")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[Xx("0x12")](s);if(Xx("0x93")!=o||Xx("0x4b")!=i||r[Xx("0x40")])continue;if(!n.hasSuggestion(x))continue;const a=n[Xx("0x22")](x)[Xx("0x43")](),c=t[Xx("0x5c")].get(Xx("0x49")).me;for(const t of n[Xx("0x33")]())if(t[Xx("0x59")]&&t[Xx("0x3b")]==c&&"formatBlock"==t[Xx("0x52")]&&Xx("0x26")==t[Xx("0x1")]&&t[Xx("0x43")]()[Xx("0x87")]((t=>a[Xx("0x4d")]((e=>e[Xx("0x3d")](t,!0))))))for(const n of t[Xx("0x3c")]())n[Xx("0x59")]&&(n[Xx("0x51")](),e=!0)}return e})),t[Xx("0x2f")].document.registerPostFixer((e=>{const o=t[Xx("0x88")][Xx("0x68")]("redo");if(!o||!o[Xx("0x15")][Xx("0x6")](e[Xx("0x2")]))return!1;let s=!1;const r=t[Xx("0x5c")].get(Xx("0x49")).me,i=t[Xx("0x2f")][Xx("0x8a")][Xx("0x94")].getChanges(),x=Array[Xx("0x60")](t.model[Xx("0x8a")][Xx("0x94")][Xx("0x5f")]())[Xx("0x65")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[Xx("0x12")](t);return Xx("0x93")==o&&Xx("0x23")==s&&i==r.id&&!e.oldRange}));for(const t of i){if("insert"!=t[Xx("0x52")]||Xx("0x69")!=t.name||1!=t[Xx("0x8")])continue;const n=e.createRange(t[Xx("0x79")],t[Xx("0x79")][Xx("0x9b")](1));if(!x[Xx("0x95")]((({data:t})=>t[Xx("0x0")].isEqual(n))))for(const{name:t,data:o}of x)if(n[Xx("0x3d")](o.newRange)){e[Xx("0x9e")](t,{range:n}),s=!0;break}}return s})),t.model[Xx("0x8a")].registerPostFixer((e=>{let o=!1;const s=t[Xx("0x5c")][Xx("0x68")](Xx("0x49")).me,r=n[Xx("0x33")]()[Xx("0x65")]((t=>t[Xx("0x59")]&&t[Xx("0x3b")]==s)),i=new Set,x=new Set;for(const t of r)if("tablePaste"==t.subType)for(const e of t.getMarkers()){const n=e[Xx("0x6f")]().getContainedElement();if(n)if(n.is("element",Xx("0x69"))&&Zx(n)){t[Xx("0x82")](e[Xx("0x9d")]),i[Xx("0x9f")](n),o=!0;const s=n.nextSibling,r=n[Xx("0x5d")],a=s&&s.is(Xx("0xe"),"tableCellSuggestion"),c=r&&r.is("element",Xx("0x69"));a&&!i.has(s)&&x[Xx("0x9f")](s),c&&!i[Xx("0x6")](r)&&x[Xx("0x9f")](r)}else n.is(Xx("0xe"),Xx("0x71"))&&n[Xx("0x62")]&&(t[Xx("0x82")](e.name),o=!0)}else if(Xx("0x26")==t[Xx("0x1")]){if(!t[Xx("0x50")]||!t.attributes[Xx("0x98")])continue;const e=t[Xx("0x50")][Xx("0x46")];if(e&&Object[Xx("0x6b")](e)[Xx("0x8")])continue;const n=t[Xx("0x50")][Xx("0x98")];let s=!0,i=!0;for(const e of r)if(e[Xx("0x1")]&&e[Xx("0x1")][Xx("0x9")](Xx("0x23"))){if(!e.attributes[Xx("0x98")]){i=!1;break}if(e.id!=t.id&&e.attributes[Xx("0x98")]==n){s=!1;break}}i&&s&&(t.removeMarkers(),o=!0)}for(const t of i)e.remove(t);for(const t of x)e[Xx("0x1c")](t);return o})),t.conversion[Xx("0xb")](Xx("0x53"))[Xx("0x4a")]({model:Xx("0xa5"),view:(t,e)=>l(t),converterPriority:Xx("0x72")}),t[Xx("0x77")][Xx("0xb")](Xx("0xa6"))[Xx("0x4a")]({model:Xx("0xa5"),view:(t,e)=>e[Xx("0xa2")][Xx("0x36")]?l(t,!1):null,converterPriority:Xx("0x72")});const d=t[Xx("0x8d")][Xx("0x67")];this.listenTo(d[Xx("0x8a")],Xx("0x4f"),((t,e)=>{const n=[];for(const t of d.createRangeIn(e[Xx("0x1e")])[Xx("0xa4")]())t.is("element",Xx("0x89"))&&n[Xx("0x61")](t);d[Xx("0x45")]((t=>{for(const e of n)t[Xx("0x3")](t[Xx("0x11")](e),t[Xx("0x7")](e)),t[Xx("0x3a")](e)}))}))}}function Zx(t){if(t.isEmpty)return!0;const e=t[Xx("0x41")](0);return e.is(Xx("0xe"),Xx("0x71"))&&e[Xx("0x62")]}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Xx("0x63")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["document","TrackChangesEditing","_suggestionFactory","format","data","locale","enableCommand","getTableColumnsWidths","handleResizeTableWidthCommand","getContainedElement","formatGroupId","getSuggestionCallback","afterInit","columnWidths","registerDescriptionCallback","discard","accept","model","has","author","change","registerCustomCallback","selection","plugins","_descriptionFactory","getColumnGroupElement","table","getAttribute","*Format:* resize table","resizeTableWidth","TableColumnResizeEditing","commandParams","tableWidth","handleSuggestionDescription","editor","subType","get","formatBlock","resizeTable","Users","markBlockFormat","bind"];var ea,na;ea=ta,na=371,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class sa extends t.Plugin{[oa("0x13")](){if(!this[oa("0x29")][oa("0x1e")][oa("0x19")](oa("0x25")))return;const t=this[oa("0x29")].plugins[oa("0x1")](oa("0x8"));t[oa("0xd")]("resizeTableWidth",this.handleResizeTableWidthCommand[oa("0x6")](this)),t[oa("0xd")]("resizeColumnWidths",this[oa("0xf")].bind(this)),t[oa("0x9")][oa("0x1c")](oa("0x2"),"resizeTable","accept",t._suggestionFactory[oa("0x12")](oa("0x2"),null,oa("0x16"))),t[oa("0x9")].registerCustomCallback(oa("0x2"),oa("0x3"),oa("0x16"),t[oa("0x9")].getSuggestionCallback(oa("0x2"),null,oa("0x17"))),t[oa("0x1f")][oa("0x15")](this.handleSuggestionDescription[oa("0x6")](this))}handleResizeTableWidthCommand(t,e){const n=this[oa("0x29")][oa("0x1e")][oa("0x1")](oa("0x8")),o=this[oa("0x29")][oa("0x1e")].get(oa("0x25")),s=e[oa("0x21")]||this[oa("0x29")][oa("0x18")][oa("0x7")][oa("0x1d")].getSelectedElement();this[oa("0x29")][oa("0x18")][oa("0x1b")]((()=>{const r=o[oa("0x20")](s);let i=r?o[oa("0xe")](r):null,x=s[oa("0x22")](oa("0x27"))||null;const a=e[oa("0x27")]||x,c=e[oa("0x14")]||i,l=this.editor.plugins[oa("0x1")](oa("0x4")).me;for(const t of n.getSuggestions()){const e=t[oa("0x10")]();if(oa("0x3")===t[oa("0x0")]&&e===s){t[oa("0x1a")]!==l&&t[oa("0x16")]();const e=t[oa("0xb")][oa("0x26")];x=e[0].tableWidth,i=e[0][oa("0x14")];break}}t({table:s,tableWidth:a,columnWidths:c}),n[oa("0x5")](s,{commandName:oa("0x24"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:"resizeTable"},[],"resizeTable")}))}[oa("0x28")](t){const{data:e}=t;if(e&&"resizeTable"===e[oa("0x11")]){const t=oa("0x23");return{type:oa("0xa"),content:Yo(this.editor[oa("0xc")],t)}}}}const ra=["insertTemplate","has","Template","get","editor","plugins","TrackChangesEditing","enableCommand","afterInit"];var ia,xa;ia=ra,xa=121,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{[aa("0x4")](){const t=this[aa("0x0")];t[aa("0x1")][aa("0x6")](aa("0x7"))&&t[aa("0x1")][aa("0x8")](aa("0x2"))[aa("0x3")](aa("0x5"))}}const la=["tableOfContents","commands","get","_descriptionFactory","plugins","locale","afterInit","editor","enableCommand","TrackChangesEditing","ELEMENT_TABLE_OF_CONTENTS","insertTableOfContents"];var da,ua;da=la,ua=268,function(t){for(;--t;)da.push(da.shift())}(++ua);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x2")](){const t=this[ga("0x3")];if(!t[ga("0x9")][ga("0xa")](ga("0x7")))return;t.plugins[ga("0xa")]("TrackChangesEditing")[ga("0x4")](ga("0x7"));const e=t[ga("0x0")][ga("0xa")](ga("0x5")),n=t[ga("0x1")];e[ga("0xb")].registerElementLabel(ga("0x8"),(t=>Yo(n,ga("0x6"),t)))}}const fa=["afterInit","_splitMarkerName","schema","getChangedMarkers","get","isTouching","title-content","_descriptionFactory","isCollapsed","nodeBefore","Title","model","removeMarker","element","newRange","start","registerElementLabel","has","plugins","isEqual","suggestion","forward","differ","end","locale","TrackChangesEditing","document","from"];var ha,pa;ha=fa,pa=258,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{[ba("0x16")](){const t=this.editor;if(!t[ba("0xc")][ba("0xb")](ba("0x4")))return;const e=t[ba("0xc")][ba("0x1a")](ba("0x13"));e[ba("0x1")][ba("0xa")](ba("0x0"),(()=>Yo(t[ba("0x12")],"ELEMENT_TITLE"))),t.model[ba("0x14")].registerPostFixer((n=>{let o=!1;const s=Array[ba("0x15")](t[ba("0x5")][ba("0x14")][ba("0x10")][ba("0x19")]());for(const{name:r,data:i}of s){const{group:s}=e[ba("0x17")](r);if(ba("0xe")!==s||!i[ba("0x8")])continue;const x=i[ba("0x8")],a=x[ba("0x11")][ba("0x3")];if(!a||!a.is(ba("0x7"),ba("0x0")))continue;if(!x[ba("0x9")][ba("0x1b")](x.end))continue;const c=t[ba("0x5")][ba("0x18")].getNearestSelectionRange(x[ba("0x11")],ba("0xf"));if(c&&c[ba("0x2")]){const t=n.createRange(x[ba("0x9")],c.start);t[ba("0xd")](x)||(n.updateMarker(r,{range:t}),o=!0)}o||(n[ba("0x6")](r),o=!0)}return o}))}}const _a=["redo","editor","get","TrackChangesEditing","afterInit","plugins","UndoEditing","has"];var Ta,Ca;Ta=_a,Ca=176,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0x4")](){const t=this[ya("0x1")],e=t[ya("0x5")][ya("0x2")](ya("0x3"));t[ya("0x5")][ya("0x7")](ya("0x6"))&&(e.enableCommand("undo"),e.enableCommand(ya("0x0")))}}const Aa=["enableCommand","TrackChangesEditing","plugins","toggleTableCaption","has","requires","TableCaptionEditing","afterInit"];var va,Ra;va=Aa,Ra=233,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Sa=function(t,e){return Aa[t-=0]};class Ia extends t.Plugin{static get[Sa("0x4")](){return[wx]}[Sa("0x6")](){const t=this.editor;t[Sa("0x1")][Sa("0x3")](Sa("0x5"))&&t[Sa("0x1")].get(Sa("0x0"))[Sa("0x7")](Sa("0x2"))}}const La=["model","list.properties","*Format:* set order to reversed","change","styles","toUpperCase","isFirstBlockOfListItem","_LIST_","_getSuggestionBlocks","listReversed","DocumentListPropertiesEditing","format","afterInit","get","enableCommand","expandListBlocksToCompleteList","getSelectedBlocks","TrackChangesEditing","_getTranslationKeyForListStyle","listStyle","numbered","handleListStyleCommand","commandParams","isListItemBlock","type","_descriptionFactory","startIndex","filter","document","bind","*Change to:* %0","getListTypeFromListStyleType","length","registerDescriptionCallback","listType","plugins","DocumentListPropertiesUtils","replace","DocumentListUtils","from","selection","handleListStartCommand","push","editor","getAttribute","_getSuggestionBlocksForListStyle","locale","markMultiRangeBlockFormat","listStart","reversed","handleDescriptions"];var Na,Ma;Na=La,Ma=239,function(t){for(;--t;)Na.push(Na.shift())}(++Ma);const wa=function(t,e){return La[t-=0]};class Oa extends t.Plugin{[wa("0x1c")](){if(!this.editor[wa("0x0")].has(wa("0x1a")))return;const t=this[wa("0x8")].config[wa("0x1d")](wa("0x11")),e=this[wa("0x8")][wa("0x0")][wa("0x1d")](wa("0x21"));t[wa("0x14")]&&e[wa("0x1e")](wa("0x23"),this[wa("0x25")].bind(this)),t[wa("0xe")]&&e[wa("0x1e")](wa("0x19"),this.handleListReversedCommand[wa("0x2d")](this)),t[wa("0x2a")]&&e[wa("0x1e")](wa("0xd"),this[wa("0x6")][wa("0x2d")](this)),e[wa("0x29")][wa("0x31")](this[wa("0xf")][wa("0x2d")](this))}[wa("0x25")](t,e={}){const n=this[wa("0x8")][wa("0x0")][wa("0x1d")](wa("0x21")),o=this[wa("0xa")]();this[wa("0x8")][wa("0x10")][wa("0x13")]((()=>{n.markMultiRangeBlockFormat(o,{commandName:wa("0x23"),commandParams:[{type:e[wa("0x28")]}],formatGroupId:wa("0x23")})}))}handleListReversedCommand(t,e={}){const n=this.editor[wa("0x0")][wa("0x1d")](wa("0x21")),o=this.editor[wa("0x0")][wa("0x1d")](wa("0x3")),s=this[wa("0x18")]((t=>o[wa("0x27")](t)&&"numbered"===t[wa("0x9")](wa("0x32"))));null!==s&&this[wa("0x8")].model.change((()=>{n.markMultiRangeBlockFormat(s,{commandName:"listReversed",commandParams:[{reversed:e[wa("0xe")]}],formatGroupId:wa("0x19")})}))}[wa("0x6")](t,e={}){const n=this[wa("0x8")].plugins[wa("0x1d")]("TrackChangesEditing"),o=this[wa("0x8")][wa("0x0")][wa("0x1d")](wa("0x3")),s=this[wa("0x18")]((t=>o[wa("0x27")](t)&&wa("0x24")===t[wa("0x9")]("listType")));null!==s&&this[wa("0x8")].model.change((()=>{n[wa("0xc")](s,{commandName:"listStart",commandParams:[{startIndex:e[wa("0x2a")]}],formatGroupId:wa("0xd")})}))}handleDescriptions(t){const e=this[wa("0x8")][wa("0xb")],{data:n}=t;if(!n)return;let o,s;switch(n.commandName){case wa("0x23"):o=wa("0x2e"),s={type:wa("0x1b"),content:Yo(e,o,Yo(e,this[wa("0x22")](n[wa("0x26")][0].type)))};break;case wa("0x19"):o=n[wa("0x26")][0][wa("0xe")]?wa("0x12"):"*Format:* set order to regular",s={type:wa("0x1b"),content:Yo(e,o)};break;case wa("0xd"):o="*Format:* set start index to %0",s={type:wa("0x1b"),content:Yo(e,o,n[wa("0x26")][0].startIndex)}}return s}[wa("0xa")](){const t=this[wa("0x8")].plugins[wa("0x1d")](wa("0x3"));let e=Array[wa("0x4")](this[wa("0x8")][wa("0x10")][wa("0x2c")][wa("0x5")][wa("0x20")]());return e.push(...t[wa("0x1f")](e)),e=[...new Set(e)],e}[wa("0x18")](t){const e=this[wa("0x8")][wa("0x0")].get("DocumentListUtils");let n=Array.from(this.editor[wa("0x10")][wa("0x2c")][wa("0x5")][wa("0x20")]())[wa("0x2b")](t);if(!n[wa("0x30")])return null;n=e[wa("0x1f")](n);const o=[];for(const t of n)e[wa("0x16")](t)&&o[wa("0x7")](t);return o}[wa("0x22")](t){return"ELEMENT_"+this[wa("0x8")][wa("0x0")][wa("0x1d")](wa("0x1"))[wa("0x2f")](t)[wa("0x15")]()+wa("0x17")+t[wa("0x15")]()[wa("0x2")](/-/g,"_")}}const Fa=["_descriptionFactory","enqueueChange","table","change","_suggestionFactory","registerDescriptionCallback","getSuggestionCallback","plugins","tableBorderColor","tableCellBorderWidth","get","getFirstPosition","tableCellWidth","discard","batch","tableCellBackgroundColor","document","locale","tableBorderWidth","handleSuggestionDescription","tableCellHeight","enableCommand","TrackChangesEditing","model","TablePropertiesEditing","tableWidth","tableBorderStyle","findAncestor","handleDiscardAction","accept","tableCellBorderColor","removeAttribute","_handlePropertyChange","pluginName","has","selection","getAttribute","registerCustomCallback","format","join","data","subType","tableCellProperties","getSuggestions","formatBlock","tableProperties","getSelectionAffectedTableCells","start","*Format:* change table cell properties","tableCellPadding","_getSuggestion","setAttribute","markBlockFormat","getContainedElement","editor","TableCellPropertiesEditing"];var Pa,Da;Pa=Fa,Da=451,function(t){for(;--t;)Pa.push(Pa.shift())}(++Da);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{constructor(t){super(t),this[Ba("0x2a")]=[Ba("0x5"),Ba("0x17"),Ba("0xf"),"tableAlignment",Ba("0x16"),"tableHeight","tableBackgroundColor"],this[Ba("0x27")]=[Ba("0x1b"),"tableCellBorderStyle",Ba("0x6"),Ba("0x2e"),Ba("0x9"),Ba("0x11"),Ba("0xc"),"tableCellHorizontalAlignment","tableCellVerticalAlignment"]}static get[Ba("0x1e")](){return"TrackChangesTableProperties"}afterInit(){const t=this[Ba("0x33")][Ba("0x4")][Ba("0x7")](Ba("0x13"));if(this[Ba("0x33")][Ba("0x4")][Ba("0x1f")](Ba("0x15"))){for(const e of this.tableProperties)t.enableCommand(e,((t,n)=>{const o=this[Ba("0x33")][Ba("0x14")][Ba("0xd")].selection[Ba("0x8")]()[Ba("0x18")](Ba("0x37"));this[Ba("0x1d")](e,[o],this[Ba("0x2a")],"tableProperties",t,n)}));t[Ba("0x1")][Ba("0x22")](Ba("0x29"),Ba("0x2a"),Ba("0x1a"),t[Ba("0x1")][Ba("0x3")](Ba("0x29"),null,Ba("0xa"))),t._suggestionFactory[Ba("0x22")](Ba("0x29"),"tableProperties",Ba("0xa"),((t,e)=>this[Ba("0x19")](this[Ba("0x2a")],t,e))),t._suggestionFactory[Ba("0x22")](Ba("0x29"),Ba("0x2a"),Ba("0x24"),(()=>!1))}if(this.editor.plugins[Ba("0x1f")](Ba("0x34"))){for(const e of this[Ba("0x27")])t[Ba("0x12")](e,((t,n)=>{const o=this[Ba("0x33")][Ba("0x4")].get("TableUtils")[Ba("0x2b")](this.editor[Ba("0x14")][Ba("0xd")][Ba("0x20")]);this[Ba("0x1d")](e,o,this[Ba("0x27")],Ba("0x27"),t,n)}));t[Ba("0x1")][Ba("0x22")](Ba("0x29"),Ba("0x27"),Ba("0x1a"),t[Ba("0x1")][Ba("0x3")]("formatBlock",null,"discard")),t._suggestionFactory.registerCustomCallback(Ba("0x29"),Ba("0x27"),"discard",((t,e)=>this[Ba("0x19")](this[Ba("0x27")],t,e))),t[Ba("0x1")][Ba("0x22")](Ba("0x29"),Ba("0x27"),Ba("0x24"),(()=>!1))}t[Ba("0x35")][Ba("0x2")]((t=>this.handleSuggestionDescription(t)))}_handlePropertyChange(t,e,n,o,s,r){const i=this[Ba("0x33")][Ba("0x4")][Ba("0x7")](Ba("0x13"));this.editor[Ba("0x14")][Ba("0x36")](r[Ba("0xb")],(()=>{for(const t of e)if(this._getSuggestion(t,o))s(r);else{const e={};for(const o of n){const n=t[Ba("0x21")](o);void 0!==n&&(e[o]=n)}s(r),i[Ba("0x31")](t,{commandParams:[e]},[],o)}}))}[Ba("0x19")](t,e,n){const o=e[0][Ba("0x2c")].nodeAfter,s=n.commandParams[0];this[Ba("0x33")].model[Ba("0x0")]((e=>{for(const n of t)void 0!==s[n]?e[Ba("0x30")](n,s[n],o):e[Ba("0x1c")](n,o)}))}[Ba("0x10")](t){if(t[Ba("0x25")])switch(t[Ba("0x26")]){case Ba("0x2a"):return{type:"format",content:Yo(this.editor.locale,"*Format:* change table properties")};case Ba("0x27"):return{type:Ba("0x23"),content:Yo(this[Ba("0x33")][Ba("0xe")],Ba("0x2d"))}}}[Ba("0x2f")](t,e){const n=this[Ba("0x33")][Ba("0x4")][Ba("0x7")](Ba("0x13"));for(const o of n[Ba("0x28")]({skipNotAttached:!0})){const n=o[Ba("0x32")]();if(o[Ba("0x26")]===e&&n===t)return o}return null}}const Ua=["values","PENDING_ACTION_SUGGESTION","low","markerToHighlight","_updateSuggestionData","isIntersectingWithRange","_addSuggestionMarker","has","formatBlock:accept","deleteContent","after","default","markerName","parent","next","range","_getAuthorFromId","_commentsRepository","subType","markMultiRangeInsertion","suggestion","author","createRangeIn","remove","highest","_customCallbacks","$marker","getChangedMarkers","_splitMarkerName","insertion:","targetPosition","update:suggestion","acceptAllSuggestions","_enabledCommands","createSelection","formatBlock:join","deletion:chain","buildSuggestion","_defaultCallbacks","start","_createSuggestion","conversion","before","isAtEnd","rethrowUnexpectedError","Users","init","markMultiRangeDeletion","isExternal","define","isEqual","batch","_setSuggestionRange","markMultiRangeBlockFormat","hasSuggestion","isAfter","move","discardSuggestion","pluginName","createdAt","isMultiRange","_isDataLoaded","requires","dataToMarker","editor","enableReadOnlyMode","options","_suggestionState","trackChanges.mergeNestedSuggestions","writer","suggestion:","isOwn","schema","multipleBlocks","delete","dataDowncast","splice","widget","_trackFormatChanges","clear","insertion","showSuggestionHighlights","getUser","_suggestionFactory","isUndo","getItems","suggestionChanged","data-suggestion","includes","data","isBefore","registerPostFixer","never","for","formatInline","isRemovable","getSuggestions","insertion:discard","oldRange","trackChangesCommand","getMultiRangeId","editing","commentThread","nodeBefore","removeMarker","join","normal","getFirstMarker","setTo","value","collaboration.channelId","adapter","removeMarker:suggestion:formatBlock","insertion:accept","document","getAttribute","config","_isForcedDefaultExecutionBlock","discardSelectedSuggestions","track-changes-adapter-already-set","getAllAdjacentSuggestions","lowest","forward","isLimit","getFirstRange","addSuggestionData","elementEnd","add","applyOperation","_suggestions","name","_setSuggestionData","track-changes-suggestion-not-found","consume","isBlock","sort","_descriptionFactory","bindElementToMarker","toViewElement","deletion:accept","suggestionUnloaded","authoredAt","multi","end","registerCustomCallback","isInContent","execute","_rangeIsInLocalUserInsertion","differ","updateSuggestion","change","markDeletion","tablePasteChainId","attributes","_joinSuggestions","removeComment","editingDowncast","then","track-changes-suggestion-data-mismatch","markers","keys","getCommentThread","formatInline:","formatInline:accept","getCustomProperty","deletion:join","plugins","containsPosition","split","_model","PendingActions","isNextTo","newRange","formatInline:chain","activeMarkers","getSuggestionCallback","always","formatInline:join","deletion:","getRange","getDifference","deletion","from","get","dataReady","markerToData","type","mapper","elementStart","skipNestingCheck","external:","_breakSuggestionMarker","length","notReady","every","setAttribute","clone","_registerDefaultCallbacks","_checkSuggestionCorrectness","getIntersection","fromCharCode","$graveyard","ck-suggestion-marker-","discard","_onDiscard","hasCommentThread","createPositionAt","enableCommand","discardAllSuggestions","position","getWalker","updateMarker","fetchCommentThread","addMarker:suggestion:formatBlock","_joinWithAdjacentSuggestions","addHighlight","accepted","some","createRange","addMarkerName","formatGroupId","insertion:chain","_mergeNestedSuggestions","stop","forceDefaultExecution","acceptSuggestion","suggestion-type","elementToElement","getShiftedBy","head","containsItem","upcast","markerReady","assign","model","isTouching","addSuggestion","isCollapsed","isAtStart","rejected","CommentsRepository","deletion:discard","listenTo","removeMarkers","set","addClass","formatBlock:","_findSuggestions","commandName","createElement","isLocal","setSelection","getLastMatchingPosition","map","authorName","consumable","ready","filter","marker-count","creator","getRanges","_removeSuggestion","element","backward","addRange","_handleNewSuggestionMarker","$textProxy","group","_refreshSuggestionsChain","high","fire","isInsideObject","moveTargetPosition","detach","trackChanges","splitPosition","TrackChangesEditing","insert","_cutOutSuggestionMarker","containsRange","locale","ck-suggestion-marker-formatBlock","_getSuggestionData","_editor","track-changes-adapter-missing-getsuggestion","toJSON","getMarkers","formatBlock","fromRange","ck-suggestion-marker","markInsertion","size","accept","suggestionLoaded","item","trackChanges.trackFormatChanges","addUser","substr","howMany","_getExternalAuthor","root","addComment","_addThreadToSuggestion","nodeAfter","stopListening","containsRangeInObject","rootName","getSuggestion","isObject","addCommentThread","getNearestSelectionRange","getAncestors","@external","_saved","createPositionBefore","ck-suggestion-marker--active","previous","commands","addMarker","push","change:_saved","_adapter","selection","removeClass","removed"];var Ga,Ha;Ga=Ua,Ha=181,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const za=function(t,e){return Ua[t-=0]};class Wa extends t.Plugin{static get[za("0xce")](){return[za("0x3b"),r.Users,t.PendingActions,cs,Cs,Rs,ws,Bs,Ws,Js,er,Oa,xr,ur,br,yr,Lr,Pr,Gr,Kr,Qr,ni,xi,ui,pi,Ci,Ri,Oi,ji,Wi,$i,tx,ix,ux,px,yx,Sx,wx,jx,Wx,Ia,Qx,sa,ma,ja,ca,Ea,ka]}static get[za("0xca")](){return za("0x5f")}constructor(t){function e(t){return t[za("0x48")]((t=>String[za("0x13")](t))).join("")}super(t),this.set(za("0x13e"),[]),this.on("change:activeMarkers",((e,n,o,s)=>{this[za("0x139")][za("0x126")]((()=>{for(const e of[...s,...o])this._model[za("0x12f")][za("0x97")](e)&&t[za("0xf5")].reconvertMarker(e)}))})),this[za("0x118")]=new ss(this.editor[za("0x35")][za("0xd8")],this[za("0xd0")][za("0x63")]),this[za("0x8c")]=null,this[za("0xe3")]=new Va(this[za("0xd0")]),this._suggestions=new Map,this[za("0xa1")]=t.plugins.get(za("0x3b")),this[za("0xb1")]=new Set,this[za("0x139")]=this.editor.model,this._suggestionState=new WeakMap,this[za("0x105")]=!1,t[za("0x104")][za("0xc1")](za("0x72"),za("0x9b")),this._trackFormatChanges=t.config[za("0x2")](za("0x72")),t[za("0x104")][za("0xc1")](za("0xd4"),!0),this[za("0x29")]=t[za("0x104")].get("trackChanges.mergeNestedSuggestions"),this[za("0xf3")]=new u(t,this[za("0xb1")]),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,49,56,50,52])}[za("0xbe")](){const t=this[za("0xd0")];t[za("0xb9")][za("0xed")]("editingDowncast")[za("0x93")]({model:za("0xa4"),view:t=>{const{id:e,type:n}=this._splitMarkerName(t[za("0x9c")]),o=[za("0x6c"),"ck-suggestion-marker-"+n];let s=3e3;return this[za("0x13e")].includes(t[za("0x9c")])&&(o[za("0x8a")](za("0x86")),s=3010),"deletion"==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[za("0xb9")].for(za("0xdb"))[za("0x10f")]((e=>{e.on("addMarker:suggestion",((e,n,o)=>{if(!o.options[za("0xe1")])return;const s=n[za("0x71")];if(!s)return;const r=o[za("0x6")][za("0x11a")](s);t[za("0x35")][za("0xd8")].isObject(s)&&r&&!r[za("0x134")](za("0xdd"))&&r.is("containerElement")&&(0,x.toWidget)(r,o.writer)}),{priority:za("0x58")})})),t.conversion[za("0xed")]("dataDowncast")[za("0x93")]({model:"suggestion",view:(t,e)=>{if(!e.options[za("0xe1")])return null;const{type:n}=this[za("0xac")](t[za("0x9c")]);return{classes:[za("0x6c"),za("0x15")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o.item)return;if(o[za("0x71")].is(za("0x8d")))return void s[za("0x4a")][za("0x115")](o[za("0x71")],n[za("0x112")]);const r=s.mapper[za("0x11a")](o[za("0x71")]);if(!o.item.is(za("0x51"))||!t[za("0x35")][za("0xd8")][za("0x116")](o[za("0x71")])||r[za("0x134")]("addHighlight"))return;const{id:i}=this[za("0xac")](o[za("0x9c")]);s[za("0xd5")][za("0x40")]([za("0x6c"),za("0x64")],r),s[za("0xd5")][za("0xe")](za("0xe7"),i,r),s[za("0x6")][za("0x119")](r,o[za("0x9c")]),e&&(this[za("0x13e")][za("0xe8")](o[za("0x9c")])?s[za("0xd5")][za("0x40")](za("0x86"),r):s[za("0xd5")][za("0x8e")](za("0x86"),r));for(const e of t[za("0x35")][za("0xa6")](o[za("0x71")])[za("0xe5")]())s[za("0x4a")].consume(e,n.name);s.consumable[za("0x115")](o.item,n[za("0x112")])};t[za("0xb9")][za("0xed")](za("0xdb"))[za("0x10f")]((t=>{t.on("addMarker:suggestion:formatBlock",((t,e,o)=>{o[za("0xd2")][za("0xe1")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:za("0xa8")})})),t[za("0xb9")][za("0xed")]("dataDowncast")[za("0x4")]({model:za("0xa4"),view:(t,e)=>e.options[za("0xe1")]?null:{group:za("0xa4"),name:t[za("0x74")](11)}}),t[za("0xb9")][za("0xed")](za("0x32"))[za("0x2e")]({view:{name:"suggestion",attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=za("0xd6")+t.getAttribute(za("0x2d"))+":"+t[za("0x103")]("id");return t[za("0x103")](za("0x4d"))&&(n+=":"+t[za("0x103")]("marker-count")),e[za("0x44")](za("0xaa"),{"data-name":n})}}),t[za("0xb9")][za("0xed")]("upcast")[za("0xcf")]({view:za("0xa4")}),t.conversion[za("0xed")]("editingDowncast")[za("0x10f")]((t=>{t.on(za("0x20"),n(),{priority:za("0x58")})})),t.conversion[za("0xed")](za("0x12c")).add((t=>{t.on(za("0x100"),((t,e,n)=>{const o=n.mapper.markerNameToElements(e.markerName);if(o)for(const t of o)t[za("0x134")](za("0x22"))||(n[za("0xd5")][za("0x8e")]([za("0x6c"),za("0x64"),"ck-suggestion-marker--active"],t),n[za("0xd5")].removeAttribute("data-suggestion",t),n.mapper.unbindElementFromMarkerName(t,e.markerName))}),{priority:"high"})})),t[za("0x35")][za("0x102")].registerPostFixer((e=>{let n=!1;const o=Array[za("0x1")](t[za("0x35")][za("0x102")][za("0x124")][za("0xab")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[za("0xac")](x);if(za("0xa4")!==o)continue;const d=this[za("0x111")][za("0x2")](l);if(null!=a[za("0x13c")])if(za("0xee")==c&&(n=n||Xa(a.newRange,x,e,t[za("0x35")][za("0xd8")])),a.newRange[za("0x38")]||za("0x14")==a[za("0x13c")].root.rootName||za("0x6a")==c&&!Ja(a[za("0x13c")])||za("0x0")==c&&(qa(i=a[za("0x13c")])||(r=i)[za("0xb7")][za("0x9d")]==r[za("0x11f")][za("0xf7")]&&r[za("0xb7")][za("0xbb")]))e[za("0xf8")](x),n=!0;else{if(!d||!d[za("0x121")])continue;s.add(d)}}var r,i;return s.size>0&&(n=!!this[za("0x21")](s)||n),n})),t[za("0x35")][za("0x102")][za("0xeb")]((e=>{let n=!1;for(const o of t.model.document[za("0x124")].getChanges()){if(za("0x60")!=o.type)continue;const s=o[za("0x1c")][za("0x2f")](o[za("0xb")]);if(s.isAtEnd)for(const r of this[za("0x111")][za("0x90")]()){if(r.isMultiRange||!r[za("0x121")])continue;if(za("0x6a")!=r[za("0x5")])continue;const i=r.getFirstRange();if(i[za("0xb7")][za("0x9d")]!=i[za("0x11f")][za("0x9d")]&&i[za("0x11f")][za("0xc2")](o[za("0x1c")])){const o=t.model[za("0x25")](i[za("0xb7")],s);e.updateMarker(r[za("0xfb")](),{range:o}),n=!0}}}return n})),t[za("0x35")].markers.on(za("0xaf"),((t,e,n)=>{if(null==n){const{id:t}=this[za("0xac")](e.name),n=this[za("0x111")][za("0x2")](t);n&&n[za("0x26")](e.name)}})),t[za("0x35")][za("0x102")].on("change:data",(()=>{const e=Array[za("0x1")](t[za("0x35")][za("0x102")][za("0x124")].getChangedMarkers())[za("0x4c")]((t=>za("0xa4")===this[za("0xac")](t[za("0x112")])[za("0x56")]));if(0===e[za("0xb")])return;e[za("0x117")](((t,e)=>{const n=t[za("0xe9")][za("0xf2")],o=e[za("0xe9")].oldRange;return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[za("0xb7")][za("0xea")](o[za("0xb7")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[za("0xac")](t);if(null===s[za("0xf2")]){const e=this[za("0x54")](t);o.add(e)}else{const t=this[za("0x111")].get(e);null!==s[za("0x13c")]||t[za("0x121")]?(n[za("0x10f")](t[za("0x30")]),o.add(t)):this[za("0x50")](t)}}o[za("0x6e")]>0&&this[za("0x57")](o);for(const t of n)this[za("0x59")](za("0xe6"),t)})),t.model.on(za("0x110"),((e,n)=>{const o=n[0];if(!this[za("0x111")][za("0x6e")])return;if(!o.isDocumentOperation)return;if(o[za("0xc3")][za("0xe4")]||!o[za("0xc3")][za("0x45")])return;let s,r;switch(o[za("0x5")]){case za("0x60"):s=t[za("0x35")][za("0x19")](o[za("0x1c")]),r=s[za("0x2f")](o[za("0x75")]);break;case za("0x138"):s=t[za("0x35")][za("0x19")](o[za("0x5e")]),r=t[za("0x35")][za("0x19")](o[za("0x5b")]);break;case za("0xc8"):s=t[za("0x35")][za("0x19")](o[za("0xae")]),r=s[za("0x2f")](o.howMany);break;default:return}const i=t[za("0x35")].createRange(s,r);t.model[za("0x126")]((()=>{for(const{suggestion:t,meta:e}of this[za("0x42")](i)){if(t[za("0xcc")])continue;if(za("0xee")==t[za("0x5")])continue;const n=t.data&&t[za("0xe9")].multipleBlocks;(za("0x6a")!=t[za("0x5")]||za("0x138")==o[za("0x5")]&&!n)&&(e[za("0x7c")]||za("0xe0")==t[za("0x5")]&&e[za("0xd7")]||t[za("0x10c")]()[za("0x62")](i)&&this[za("0xa")](t,s,r))}}))}),{priority:za("0x109")}),t[za("0x35")].on("deleteContent",((e,n)=>{const o=n[0],s=n[1];if(s&&s[za("0x2b")])return;if(this._isForcedDefaultExecutionBlock)return;if(!this[za("0xf3")][za("0xfd")])return;if(o[za("0x38")])return;const r=t[za("0x35")][za("0xd8")],{start:i,end:x}=o[za("0x10c")](),a=i[za("0x7a")]&&r[za("0x10b")](i[za("0x7a")])?null:r[za("0x81")](i,za("0x10a")),c=x[za("0xf7")]&&r[za("0x10b")](x[za("0xf7")])?null:r.getNearestSelectionRange(x,za("0x52")),l=t[za("0x35")].createRange(a?a[za("0xb7")]:i,c?c[za("0x11f")]:x);t[za("0x35")][za("0x126")]((e=>{this[za("0x127")](l);const n=t.model.schema.getNearestSelectionRange(l[za("0xb7")]);o.is("documentSelection")?e[za("0x46")](n):o[za("0xfc")](n)})),e[za("0x2a")]()}),{priority:e.priorities[za("0xfa")]+10}),t.model.on("insertContent",((e,n)=>{const o=n[n[za("0xb")]-1];o&&o[za("0x2b")]||this[za("0x105")]||this.trackChangesCommand[za("0xfd")]&&(t[za("0x35")].change((()=>{let o=t.model.insertContent(n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e.return=o[za("0xf")]();const s=o[za("0x11f")][za("0xf7")],r=t[za("0x35")][za("0xd8")];s&&r[za("0x116")](s)&&!r[za("0x7f")](s)&&(o=t[za("0x35")][za("0x25")](o[za("0xb7")],t[za("0x35")].createPositionAt(s,"end"))),this[za("0x6d")](o)})),e.stop())}),{priority:za("0x58")}),this[za("0xd0")][za("0x88")][za("0x10f")](za("0x5d"),this[za("0xf3")]),this.enableCommand(za("0x5d"));const o=new p(t,this[za("0x111")]);t[za("0x88")].add(za("0x2c"),o),this[za("0x1a")](za("0x2c"));const s=new C(t,this[za("0x111")]);t[za("0x88")][za("0x10f")](za("0xc9"),s),this[za("0x1a")](za("0xc9")),t[za("0x88")].add("acceptAllSuggestions",new F(t,o,this[za("0x111")])),this.enableCommand(za("0xb0")),t.commands[za("0x10f")](za("0x1b"),new F(t,s,this[za("0x111")])),this[za("0x1a")]("discardAllSuggestions"),t[za("0x88")][za("0x10f")]("acceptSelectedSuggestions",new U(t,o,this._suggestions)),this[za("0x1a")]("acceptSelectedSuggestions"),t[za("0x88")][za("0x10f")]("discardSelectedSuggestions",new U(t,s,this[za("0x111")])),this[za("0x1a")](za("0x106"));const r=t[za("0x136")][za("0x2")](za("0x3b"));this[za("0x3d")](r,za("0x78"),((t,{threadId:e})=>{const n=this[za("0x111")].get(e);n&&n[za("0xf6")]&&1===n[za("0xf6")][za("0xb")]&&this._updateSuggestionData(e,{hasComments:!0})}),{priority:za("0x92")}),this[za("0x3d")](r,za("0x12b"),((t,{threadId:e})=>{const n=this[za("0x111")][za("0x2")](e);n&&n[za("0xf6")]&&!n.commentThread[za("0xb")]&&this[za("0x94")](e,{hasComments:!1})}),{priority:"low"})}set[za("0xff")](t){if(this[za("0x8c")])throw new e.CKEditorError(za("0x107"),this);this._adapter=t}get[za("0xff")](){return this[za("0x8c")]}[za("0xf0")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[za("0x111")].values())t&&!e[za("0x121")]||n.push(e);return e?n[za("0x48")]((t=>t[za("0x68")]())):n}[za("0x7e")](t){const n=this._suggestions[za("0x2")](t);if(!n)throw new e.CKEditorError(za("0x114"),this);return n}[za("0xc6")](t){return this[za("0x111")][za("0x97")](t)}[za("0x10d")](t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[za("0x5")].split(":"),i=this[za("0x111")][za("0x2")](n)||this[za("0xb8")](s,r,n,e,o);if(this[za("0x79")](i),this[za("0x11")](i,s,r||null,e),i[za("0xcb")]=t[za("0xcb")],i[za("0xcd")]=!0,o&&o[za("0x83")]){const t=o[za("0x83")],e=this[za("0x76")](t[za("0x49")]);i[za("0x11d")]=t[za("0xcb")],i[za("0xa5")]=e,i[za("0xc0")]=!0}else i.authoredAt=t.createdAt;switch(t[za("0xe9")]&&(i[za("0xe9")]=t.data),t.attributes&&(i[za("0x129")]=t[za("0x129")]),this._adapter&&this[za("0x8c")][za("0x37")]||(i[za("0x84")]=!0),this[za("0xd3")].get(i)){case za("0xc"):this._suggestionState[za("0x3f")](i,za("0x3"));break;case za("0x33"):i.isInContent?(this[za("0x57")](new Set([i])),this._joinWithAdjacentSuggestions(new Set([i])),this._suggestionState[za("0x3f")](i,za("0x4b")),this.fire(za("0x70"),i)):this[za("0xd3")][za("0x3f")](i,za("0x8f"))}return i}[za("0x2c")](t){this[za("0x2b")]((()=>{this[za("0xd0")][za("0x35")][za("0x126")]((()=>{for(const e of t.getAllAdjacentSuggestions())e.accept()}))}))}[za("0xc9")](t){this[za("0x2b")]((()=>{this[za("0xd0")][za("0x35")].change((()=>{for(const e of t[za("0x108")]())e[za("0x16")]()}))}))}[za("0x1a")](t,n){const o=this.editor[za("0x88")][za("0x2")](t);if(!o)throw new e.CKEditorError("track-changes-command-not-found",this,{commandName:t});this._enabledCommands[za("0x10f")](o),n&&o.on(za("0x122"),((t,e)=>{this[za("0xf3")][za("0xfd")]&&(this[za("0x105")]||e[za("0xb")]>0&&e[e.length-1]&&e[e[za("0xb")]-1][za("0x2b")]||(n(((...t)=>o.execute(...t,{forceDefaultExecution:!0})),...e),t.stop()))}),{priority:za("0x58")})}[za("0x2b")](t){let n,o;const s=this[za("0x105")];this[za("0x105")]=!0;try{n=t()}catch(t){o=t}return s||(this._isForcedDefaultExecutionBlock=!1),o&&e.CKEditorError[za("0xbc")](o,this),n}[za("0x6d")](t,n=null,o={}){if(t[za("0x38")])return null;const s=this[za("0xd0")].plugins[za("0x2")]("Users").me;for(const{suggestion:e,meta:s}of this[za("0x42")](t,za("0xe0")))if(s[za("0xd7")]){if(!s[za("0x13b")]){if(s[za("0x7c")]){if(!this._mergeNestedSuggestions||!tc(e,o))continue;return e}if(tc(e,o))return e;this[za("0xa")](e,t[za("0xb7")],t.end);break}if(n==e[za("0xa2")]&&tc(e,o)){const n=e[za("0x10c")]();return n[za("0xb7")].isEqual(t.end)?this._setSuggestionRange(e,this[za("0x139")][za("0x25")](t.start,n[za("0x11f")])):this._setSuggestionRange(e,this[za("0x139")][za("0x25")](n.start,t[za("0x11f")])),e}}const r=(0,e.uid)(),i=s.id,x=n?za("0xad")+n:za("0xe0"),a=this[za("0x113")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this._addSuggestionMarker(x,r,i,t),a}[za("0xa3")](t,n=za("0x11e"),o={}){const s=this.editor.plugins.get(za("0xbd")).me,r=this._suggestionFactory[za("0x13f")](za("0xe0"),n,za("0xf9"));for(const e of this[za("0xf0")]())if(e[za("0xa5")].id==s.id&&"insertion"==e[za("0x5")]&&e[za("0xa2")]==n&&tc(e,o)&&(r(e[za("0x4f")](),t)||r(t,e.getRanges()))){for(const n of t)e.addRange(n);return e}for(const{suggestion:e,meta:n}of this[za("0x42")](t,za("0xe0"))){if(!n[za("0xd7")])continue;if(!this[za("0x29")]&&n[za("0x7c")])continue;if(!tc(e,o))continue;let s=!0;for(const n of e.getRanges())for(const e of t)if(!n[za("0x62")](e)){s=!1;break}if(s)return e}const i=(0,e.uid)(),x=s.id,a="insertion:"+n,c=this._setSuggestionData({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[za("0x96")](a,i,x,e,Zo[za("0xf4")]());return c}markInlineFormat(t,n,o=null,s={}){if(o=o||$a(n),t[za("0x38")])return null;if("never"===this[za("0xde")]){const e=this._suggestionFactory[za("0x13f")](za("0xee"),o,za("0x6f"));return this[za("0x2b")]((()=>e([t],n,s))),null}const r=this[za("0xd0")][za("0x136")].get(za("0xbd")).me,i=[];if(za("0x140")!==this[za("0xde")])for(const{suggestion:e,meta:n}of this[za("0x42")](t,za("0xe0")))n.isOwn&&!n[za("0x5a")]&&i[za("0x8a")](...e[za("0x4f")]());const x=function(t,e){const n=[];for(const o of e){const e=t[za("0x12")](o);e&&n[za("0x8a")](e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[za("0xb")];){const o=n[e].getDifference(t);n[za("0xdc")](e,1,...o),e+=o[za("0xb")]}}return n}(t,i);x[za("0xb")]&&this[za("0x139")].change((()=>{for(const t of x){const e=this[za("0xe3")].getSuggestionCallback(za("0xee"),o,za("0x6f"));this[za("0x2b")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t[za("0xb7")],a=t[za("0x11f")];for(const{suggestion:e,meta:n}of this[za("0x42")](t,"formatInline")){if(!n[za("0xd7")])continue;if(e[za("0xa2")]!=o)continue;if(!tc(e,s))continue;const r=e.getFirstRange();if(r[za("0x62")](t,!0))return null;x=x.isBefore(r[za("0xb7")])?x:r[za("0xb7")],a=a[za("0xc7")](r[za("0x11f")])?a:r.end,i?r.start[za("0xea")](i[za("0x10c")]()[za("0xb7")])?(i[za("0x3e")](),i=e):e[za("0x3e")]():i=e}const c=this[za("0x139")][za("0x25")](x,a);if(i)this._setSuggestionRange(i,c);else{const t=(0,e.uid)(),i=r.id;this[za("0x113")]({id:t,type:za("0x132")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this._addSuggestionMarker(za("0x132")+o,t,i,c)}}return null}markBlockFormat(t,n,o=[],s=null,r={}){n[za("0x27")]||(n[za("0x27")]=n[za("0x43")]),n.multipleBlocks=t.is(za("0x9f")),s=s||$a(n);const i=o.map((t=>Qa(t,this[za("0x139")]))),x=t.is(za("0x9f"))?t:Qa(t,this[za("0x139")]);if(za("0xec")===this[za("0xde")]){const t=this[za("0xe3")].getSuggestionCallback(za("0x6a"),s,za("0x6f"));return this[za("0x2b")]((()=>t([x],n,r))),null}i[za("0x8a")](x);let a=!0;for(const t of i)if(!this[za("0x123")](t)){a=!1;break}if(a&&"always"!==this[za("0xde")]){const t=this._suggestionFactory[za("0x13f")](za("0x6a"),s,za("0x6f"));return this.forceDefaultExecution((()=>t([x],n,r))),null}let c=null,l=x[za("0xb7")],d=x.end;for(const{suggestion:t,meta:e}of this[za("0x42")](x,za("0x6a"))){if(!e[za("0xd7")])continue;if(e[za("0x13b")]||e.containsRangeInObject||e[za("0x5a")])continue;if(t[za("0xe9")][za("0x27")]!=n[za("0x27")])continue;if(!tc(t,r))continue;const o=t[za("0x10c")]();if(t[za("0xa2")]==s){if(o[za("0x62")](x,!0))return null;l=l[za("0xea")](o[za("0xb7")])?l:o[za("0xb7")],d=d[za("0xc7")](o[za("0x11f")])?d:o[za("0x11f")],c?o[za("0xb7")][za("0xea")](c[za("0x10c")]().start)?(c[za("0x3e")](),c=t):t.removeMarkers():c=t}else{const e=x[za("0x12")](o);this[za("0x61")](t,e)}}const u=this[za("0xd0")][za("0x136")].get(za("0xbd")).me,g=(0,e.uid)(),m=u.id;if(c)return this[za("0xc4")](c,this._model[za("0x25")](l,d)),c;{const t=this[za("0x113")]({id:g,type:za("0x41")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this._addSuggestionMarker(za("0x41")+s,g,m,this._model[za("0x25")](l,d)),t}}[za("0xc5")](t,n,o=[],s=null,r={}){n[za("0x27")]||(n[za("0x27")]=n[za("0x43")]);const i=t[0];n[za("0xd9")]=i.is(za("0x9f")),s=s||$a(n);const x=o.map((t=>Qa(t,this._model))),a=i.is(za("0x9f"))?t:t[za("0x48")]((t=>Qa(t,this[za("0x139")])));if(za("0xec")===this[za("0xde")]){const t=this[za("0xe3")][za("0x13f")](za("0x6a"),s,za("0x6f"));return this.forceDefaultExecution((()=>t(a,n,r))),null}x[za("0x8a")](...a);let c=!0;for(const t of x)if(!this[za("0x123")](t)){c=!1;break}if(c&&"always"!==this[za("0xde")]){const t=this[za("0xe3")][za("0x13f")](za("0x6a"),s,za("0x6f"));return this[za("0x2b")]((()=>t(a,n,r))),null}const l=this[za("0xd0")][za("0x136")][za("0x2")](za("0xbd")).me;for(const t of this.getSuggestions()){if(t.author.id!=l.id)continue;if("formatBlock"!=t[za("0x5")]||t[za("0xe9")].formatGroupId!=n[za("0x27")])continue;if(!tc(t,r))continue;const e=t[za("0xa2")]==s;for(let n=0;n<a[za("0xb")];n++){const o=a[n];for(const s of t[za("0x69")]()){const r=s[za("0x143")]();if(o.isEqual(r)){e?(a[za("0xdc")](n,1),n--):t[za("0xf8")](s[za("0x112")]);break}}}}if(0==a[za("0xb")])return null;const d=this[za("0xe3")].getSuggestionCallback(za("0x6a"),s,za("0xf9"));for(const t of this[za("0xf0")]())if(t[za("0xa5")].id==l.id&&za("0x6a")==t[za("0x5")]&&t.data.formatGroupId==n[za("0x27")]&&t[za("0xa2")]==s&&tc(t,r)&&(d(t[za("0x4f")](),a)||d(a,t[za("0x4f")]()))){for(const e of a)t[za("0x53")](e);return t}const u=(0,e.uid)(),g=l.id,m=za("0x41")+s,f=this._setSuggestionData({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[za("0x96")](m,u,g,t,Zo[za("0xf4")]());return f}[za("0x127")](t,n=null,o={}){if(t[za("0x38")])return null;const s=this[za("0xd0")][za("0x136")][za("0x2")](za("0xbd")).me,r=new i.LiveRange(t[za("0xb7")],t[za("0x11f")]);for(const{suggestion:t,meta:e}of this[za("0x42")](r,za("0xe0")))if(e.isOwn&&!e[za("0x13b")])if(t[za("0xcc")]){const e=t[za("0x4f")]()[za("0x4c")]((t=>za("0x14")!=t[za("0x77")].rootName));if(e[za("0xd")]((t=>r[za("0x62")](t,!0)))&&t.discard(),e[za("0x24")]((t=>t[za("0x62")](r,!0)))){const t=this[za("0xe3")][za("0x13f")](za("0x0"),n,"accept");return this.forceDefaultExecution((()=>t([r],null,o))),null}}else{const e=r[za("0x12")](t.getFirstRange());null!==e&&t[za("0x17")]([e],null,o)}if(r[za("0x5c")](),r[za("0x38")]||za("0x14")==r[za("0x77")].rootName)return null;let x=null,a=r.start,c=r[za("0x11f")];const l=this[za("0x42")](r,"deletion");for(const{suggestion:t,meta:e}of l){const n=this[za("0x139")][za("0x25")](a,c);if(e[za("0xd7")]&&(this[za("0x29")]||!e[za("0x7c")]&&!e[za("0x5a")]))if(t.isMultiRange){if(!tc(t,o))continue;let e=!0;for(const o of t[za("0x4f")]()){if(o[za("0x62")](n,!0))return t;n[za("0x62")](o)||(e=!1)}e&&t[za("0x16")]()}else{const e=t[za("0x10c")]();if(e[za("0x62")](n,!0))return t;if(!tc(t,o)){n[za("0x62")](e)?t[za("0x3e")]():e[za("0x137")](a)?a=e.end:e[za("0x137")](c)&&(c=e[za("0xb7")]);continue}a=a.isBefore(e[za("0xb7")])?a:e.start,c=c.isAfter(e[za("0x11f")])?c:e[za("0x11f")],o=Object[za("0x34")]({},t[za("0x129")]),x?e[za("0xb7")][za("0xea")](x[za("0x10c")]().start)?(x[za("0x3e")](),x=t):t[za("0x3e")]():x=t}}if(x)return this._setSuggestionRange(x,this._model.createRange(a,c)),x;{const t=(0,e.uid)(),r=this[za("0x139")].createRange(a,c),i=s.id,x=n?za("0x142")+n:za("0x0"),l=this[za("0x113")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x96")](x,t,i,r),l}}[za("0xbf")](t,n=za("0x11e"),o={}){const s=this[za("0xd0")][za("0x136")][za("0x2")]("Users").me,r=t.map((t=>new i.LiveRange(t[za("0xb7")],t.end))),x=new Set;for(const{suggestion:t,meta:e}of this._findSuggestions(r,za("0xe0")))e[za("0xd7")]&&!e[za("0x13b")]&&x[za("0x10f")](t);for(const e of x)if(e[za("0xcc")]){const s=e[za("0x4f")]();if((!e.attributes||!e[za("0x129")][za("0x8")])&&s.every((t=>r[za("0x24")]((e=>e[za("0x62")](t,!0)))))&&e[za("0x16")](),r[za("0xd")]((t=>s.some((e=>e[za("0x62")](t,!0)))))){const e=this[za("0xe3")][za("0x13f")](za("0x0"),n,za("0x6f"));return this[za("0x2b")]((()=>e(t,null,o))),null}}else{const t=e[za("0x10c")]();if(r[za("0x24")]((e=>e[za("0x62")](t,!0)))&&e.discard(),r[za("0xd")]((e=>t[za("0x62")](e,!0)))){const t=this[za("0xe3")][za("0x13f")](za("0x0"),n,"accept");return this[za("0x2b")]((()=>t(r,null,o))),null}}const a=this[za("0xe3")][za("0x13f")](za("0x0"),n,za("0xf9"));let c=null;for(const t of this.getSuggestions())if(t[za("0xa5")].id==s.id&&t[za("0x121")]&&za("0x0")==t[za("0x5")]&&t[za("0xa2")]==n&&tc(t,o)&&(a(t[za("0x4f")](),r)||a(r,t[za("0x4f")]())))if(c){if(t.commentThread&&t[za("0xf6")].length)continue;for(const e of t[za("0x4f")]())c.isIntersectingWithRange(e)||c[za("0x53")](e);t[za("0x3e")]()}else{c=t;for(const e of r)t[za("0x95")](e)||t.addRange(e)}if(c)return c;x[za("0xdf")]();for(const{suggestion:t,meta:e}of this._findSuggestions(r,za("0x0")))e[za("0xd7")]&&(this._mergeNestedSuggestions||!e.containsRangeInObject&&!e[za("0x5a")])&&tc(t,o)&&x[za("0x10f")](t);for(const t of x){const e=t[za("0x4f")]();if((!o||!o.skipNestingCheck)&&r[za("0xd")]((t=>e[za("0x24")]((e=>e[za("0x62")](t,!0))))))return t;(!t.attributes||!t[za("0x129")][za("0x8")])&&e.every((t=>r[za("0x24")]((e=>e.containsRange(t,!0)))))&&t[za("0x16")]()}const l=(0,e.uid)(),d=s.id,u=za("0x142")+n,g=this[za("0x113")]({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of r)t.detach(),t[za("0x38")]||za("0x14")==t[za("0x77")][za("0x7d")]||this[za("0x96")](u,l,d,t,Zo[za("0xf4")]());return g}[za("0xc4")](t,e){const n=t[za("0xfb")]();this[za("0x139")][za("0x126")]((t=>{t[za("0x1e")](n,{range:e})}))}[za("0x79")](t){const e=t.id,n=this[za("0xd0")][za("0x104")][za("0x2")](za("0xfe"));this[za("0xa1")][za("0x18")](e)||this[za("0xa1")][za("0x80")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this._commentsRepository[za("0x131")](e);o.unbind(za("0xef")),o[za("0xef")]=!1,t[za("0xf6")]=o}[za("0x11")](t,n,o,s){if(t[za("0x5")]!=n||t.subType!=o||t[za("0x4e")].id!=s)throw this[za("0xd0")][za("0xd1")](za("0x12e")),new e.CKEditorError(za("0x12e"),this)}[za("0x61")](t,n){const o=t[za("0x10c")]();if(n[za("0xc2")](o))t.removeMarkers();else if(o[za("0x62")](n)){const s=this._model[za("0x19")](n.start[za("0xf7")],"end");this[za("0xc4")](t,this[za("0x139")][za("0x25")](o[za("0xb7")],s));const r=(0,e.uid)(),i=t[za("0x4e")].id,x=t[za("0x5")]+":"+t[za("0xa2")];this[za("0x113")]({id:r,type:x,createdAt:new Date,authorId:i,data:t.data,attributes:t[za("0x129")]});const a=this._model[za("0x19")](n.end.parent,za("0x9a")),c=this[za("0x139")][za("0x25")](a,o[za("0x11f")]);this[za("0x96")](x,r,i,c)}else if(o[za("0x137")](n.start)){const e=this[za("0x139")][za("0x19")](n[za("0xb7")][za("0xf7")],za("0x11f"));this[za("0xc4")](t,this[za("0x139")][za("0x25")](o[za("0xb7")],e))}else{const e=this[za("0x139")].createPositionAt(n[za("0x11f")].parent,za("0x9a"));this[za("0xc4")](t,this[za("0x139")][za("0x25")](e,o[za("0x11f")]))}}[za("0x123")](t){for(const{suggestion:e,meta:n}of this[za("0x42")](t,"insertion")){if(!n[za("0xd7")])continue;const o=e.getRanges();for(const e of o)if(!t[za("0x144")](e)[za("0xb")])return!0}return!1}[za("0xa0")](t){const n=this[za("0xd0")][za("0x136")][za("0x2")]("Users")[za("0xe2")](t);if(!n)throw new e.CKEditorError("track-changes-user-not-found",this);return n}_getExternalAuthor(t){const e=this.editor[za("0x136")].get(za("0xbd")),n=(0,r.hashObject)(za("0x9")+t);return e[za("0xe2")](n)||e[za("0x73")]({id:n,name:t})}[za("0xb8")](t,e,n,o,s){const r=this[za("0xa0")](o),i=this[za("0xe3")].buildSuggestion(t,e,n,r,s,(t=>this[za("0x94")](n,{attributes:t})));return this[za("0x3d")](i,za("0x6f"),(()=>{this._updateSuggestionData(n,{state:za("0x23")})}),{priority:"high"}),this[za("0x3d")](i,"discard",(()=>{this[za("0x94")](n,{state:za("0x3a")})}),{priority:"high"}),this._suggestions[za("0x3f")](n,i),this._suggestionState[za("0x3f")](i,"notReady"),i}_splitMarkerName(t){const e=t[za("0x138")](":");return{group:e[0],type:e[1],subType:e[za("0xb")]>=5?e[2]:null,id:e[za("0xb")]<5?e[2]:e[3],authorId:e[za("0xb")]<5?e[3]:e[4],markerCount:6==e.length?e[5]:null}}[za("0xa")](t,n,o){const s=t.getFirstRange(),r=s[za("0xb7")],i=s.end;this[za("0xc4")](t,this[za("0x139")].createRange(r,n));const x=(0,e.uid)(),a=t.creator.id,c=t[za("0x5")]+(t[za("0xa2")]?":"+t.subType:"");this[za("0x113")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t.attributes,data:t[za("0xe9")]}),za("0x6a")==t.type&&(o=this._model[za("0x85")](o[za("0x9d")])),this[za("0x96")](c,x,a,this[za("0x139")][za("0x25")](o,i))}[za("0x42")](t,e=null){const n=[],o=this[za("0xd0")][za("0x136")].get("Users").me;Array.isArray(t)||(t=[t]);for(const s of this[za("0xf0")]()){if(!s[za("0x121")])continue;if(e&&s[za("0x5")]!=e)continue;let r=!1;for(const e of s[za("0x4f")]()){for(const i of t){const t=i[za("0xb7")][za("0xc2")](e[za("0x11f")])||i[za("0x11f")][za("0xc2")](e[za("0xb7")]);if(t||i[za("0x12")](e)){const x=i[za("0x62")](e)&&Ka(this[za("0x139")].schema,e.start,i),a=e[za("0x62")](i)&&Ka(this[za("0x139")].schema,i[za("0xb7")],e);n.push({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[za("0x139")][za("0x126")]((r=>{let i=za("0xd6")+t+":"+e+":"+n;s&&(i=i+":"+s),r[za("0x89")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[za("0x50")](t){const e=t.previous,n=t[za("0x9e")];t[za("0x87")]=null,null!=e&&(e[za("0x9e")]=null),t[za("0x9e")]=null,null!=n&&(n.previous=null),za("0x4b")==this[za("0xd3")][za("0x2")](t)&&(this._suggestionState.set(t,za("0x8f")),this[za("0x59")](za("0x11c"),t,e,n))}[za("0x113")](t){const n=t.id,o=this.addSuggestionData(t);if(this[za("0x8c")]&&this[za("0x8c")][za("0x37")]){const s=this.editor[za("0x136")][za("0x2")](za("0x13a")),r=o.hasComments,i=o[za("0xa2")]?o.type+":"+o[za("0xa2")]:o[za("0x5")],x=this[za("0xd0")][za("0x63")],a=s[za("0x10f")](Yo(x,za("0x91"))),c={id:n,type:i,hasComments:r,data:t[za("0xe9")]||null,originalSuggestionId:t.originalSuggestionId||null,attributes:o[za("0x129")]};this[za("0x8c")][za("0x37")](c)[za("0x12d")]((t=>{o[za("0x84")]=!0,s[za("0xa7")](a),t&&t[za("0xcb")]&&(this[za("0x111")].get(n)[za("0xcb")]=t[za("0xcb")])})).catch((t=>{throw(0,e.logWarning)("error-saving-suggestion-data-suggestion-discarded"),this[za("0xd0")][za("0x35")].enqueueChange({isUndoable:!1},(()=>{o[za("0x16")]()})),o[za("0x7b")](),this[za("0x111")][za("0xda")](o.id),this._suggestionState[za("0xda")](o),t}))}return o}[za("0x94")](t,e){const n=this[za("0xd0")][za("0x136")][za("0x2")](za("0x13a")),o=this.getSuggestion(t);if(this[za("0x8c")]&&this[za("0x8c")][za("0x125")])if(o[za("0x84")]){const o=n.add(Yo(this[za("0xd0")][za("0x63")],za("0x91")));this[za("0x8c")][za("0x125")](t,e)[za("0x12d")]((()=>{n[za("0xa7")](o)}))}else o.on(za("0x8b"),(()=>{this[za("0x94")](t,e)}))}[za("0x65")](t){if(!this[za("0x8c")]||!this[za("0x8c")][za("0x7e")])throw new e.CKEditorError(za("0x67"),this);return this[za("0x8c")].getSuggestion(t)}[za("0x54")](t){const{id:e,type:n,subType:o,authorId:s}=this[za("0xac")](t),r=this[za("0x111")][za("0x2")](e)||this._createSuggestion(n,o,e,s,{});switch(this[za("0x11")](r,n,o,s),this[za("0xd3")].get(r)){case za("0xc"):this[za("0x65")](e)[za("0x12d")]((t=>{let n=Promise.resolve();t.hasComments&&(n=this[za("0xa1")][za("0x1f")]({channelId:this[za("0xd0")].config.get(za("0xfe")),threadId:e})),n[za("0x12d")]((()=>{this[za("0x10d")](t)._saved=!0}))})),this[za("0xd3")][za("0x3f")](r,za("0x33"));break;case za("0x8f"):this[za("0x94")](e,{state:"open"});case za("0x3"):this[za("0xd3")].set(r,"ready"),this[za("0x59")](za("0x70"),r);break;case za("0x4b"):this.fire(za("0xe6"),r)}return r.addMarkerName(t),r}_refreshSuggestionsChain(t){const e=Array[za("0x1")](t).filter((t=>!t[za("0xcc")])),n=this[za("0xf0")]({skipNotAttached:!0})[za("0x4c")]((t=>!t[za("0xcc")])),o=n[za("0x4c")]((e=>!t[za("0x97")](e))),s=new Map(n[za("0x48")]((t=>[t,this[za("0xe3")][za("0x13f")](t[za("0x5")],t[za("0xa2")],"chain")]))),r=new Map(n[za("0x48")]((t=>[t,t.getFirstRange()]))),i=new Set,x=new Set;for(let t=0;t<e[za("0xb")];t++)a(e[t],e,t+1);for(let t=0;t<e.length;t++)a(e[t],o,0);for(let t=0;t<e.length;t++){const n=e[t];!x.has(n)&&n[za("0x87")]&&(n[za("0x87")][za("0x9e")]===n&&(n[za("0x87")][za("0x9e")]=null),n[za("0x87")]=null),!i[za("0x97")](n)&&n[za("0x9e")]&&(n.next[za("0x87")]===n&&(n[za("0x9e")].previous=null),n[za("0x9e")]=null)}function a(t,e,n){for(let o=n;o<e[za("0xb")];o++){const n=c(t,e[o]);n&&(n[0][za("0x9e")]=n[1],n[1][za("0x87")]=n[0],i.add(n[0]),x[za("0x10f")](n[1]))}}function c(t,e){if(t.author.id!==e[za("0xa5")].id)return null;const n=s[za("0x2")](t)(t,e,r[za("0x2")](t),r[za("0x2")](e));return n&&s[za("0x2")](e)(t,e,r[za("0x2")](t),r[za("0x2")](e))?n[1][za("0xf6")]&&n[1][za("0xf6")].length?null:n:null}}_joinWithAdjacentSuggestions(t){const e=Array.from(t),n=this[za("0xf0")]({skipNotAttached:!0}),o=n[za("0x4c")]((e=>!t[za("0x97")](e))),s=new Map(e.map((t=>[t,this._suggestionFactory.getSuggestionCallback(t.type,t[za("0xa2")],za("0xf9"))]))),r=new Map(n[za("0x48")]((t=>[t,t[za("0x4f")]()])));for(let t=0;t<e[za("0xb")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[za("0xb")];t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n[za("0xb")];i++){const o=n[i];if(o[za("0x5")]!==e.type||o[za("0xa5")].id!==e[za("0xa5")].id||o[za("0xa2")]!==e[za("0xa2")])continue;if(!Ya(e,o))continue;const x=s[za("0x2")](e),a=r[za("0x2")](e),c=r[za("0x2")](o),l=e[za("0xf6")]&&e[za("0xf6")][za("0xb")],d=o[za("0xf6")]&&o[za("0xf6")][za("0xb")];if(!l&&x(c,a))return t[za("0x12a")](o,e),r[za("0xda")](e),!0;if(!d&&x(a,c))return t._joinSuggestions(e,o),r[za("0xda")](o),!0}return!1}}[za("0x12a")](t,e){if(t[za("0xcc")])for(const n of e.getRanges())t[za("0x53")](n);else{const n=e.getFirstRange()[za("0x11f")];this._setSuggestionRange(t,this[za("0x139")][za("0x25")](t[za("0x10c")]()[za("0xb7")],n))}e.removeMarkers()}}class Va{constructor(t){this[za("0x66")]=t,this[za("0x139")]=t[za("0x35")],this[za("0xa9")]=new Map,this[za("0xb6")]=new Map,this[za("0x10")]()}[za("0xb5")](t,e,n,o,s,r){return new Zo(this[za("0x139")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[za("0x13f")](t,e,za("0x6f"))(...n),onDiscard:(...n)=>this[za("0x13f")](t,e,"discard")(...n)})}[za("0x120")](t,e,n,o){const s=t+":"+e+":"+n;this[za("0xa9")].set(s,o)}getSuggestionCallback(t,e,n){const o=t+":"+e+":"+n;return this._customCallbacks[za("0x2")](o)||this[za("0xb6")][za("0x2")](t+":"+n)}_registerDefaultCallbacks(){const t=()=>!1,e=t=>{t[za("0x117")](((t,e)=>t[za("0xb7")].isBefore(e[za("0xb7")])?1:-1)),this[za("0x139")][za("0x126")]((e=>{for(const n of t){let t;t=n[za("0x11f")][za("0xbb")]&&n[za("0x11f")][za("0x9d")]==n[za("0xb7")][za("0x7a")]?e[za("0xb2")](n[za("0xb7")][za("0x7a")],"on"):e.createSelection(n),this[za("0x139")][za("0x99")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[za("0x139")][za("0x126")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[za("0x48")]((t=>(qa(t)&&(t=this[za("0x139")][za("0x25")](t[za("0x11f")])),t)))[za("0x4c")]((t=>za("0x14")!==t[za("0x77")][za("0x7d")]));if(r[za("0xb")]<1)return;const x=Array[za("0x1")](this._model[za("0x102")][za("0x8d")].getRanges())[za("0x48")]((t=>i.LiveRange[za("0x6b")](t)));n[za("0x46")](r);for(const t of this[za("0x66")][za("0x88")][za("0x88")]())t.refresh();s[za("0x8a")]({forceDefaultExecution:!0}),this._editor.execute(o,...s);const a=x.filter((t=>za("0x14")!=t[za("0x77")][za("0x7d")]));a.length>0&&n[za("0x46")](a);for(const t of x)t.detach()}))},o=(t,e)=>1==t[za("0xb")]&&1==e[za("0xb")]&&t[0][za("0x11f")][za("0xc2")](e[0][za("0xb7")]),s=(t,e,n,o)=>Za(t,e,n,o,this[za("0x139")])?[t,e]:Za(e,t,o,n,this._model)?[e,t]:null;this._defaultCallbacks[za("0x3f")](za("0x101"),t),this[za("0xb6")].set(za("0xf1"),e),this[za("0xb6")][za("0x3f")]("insertion:join",o),this[za("0xb6")][za("0x3f")](za("0x28"),s),this._defaultCallbacks[za("0x3f")](za("0x11b"),e),this._defaultCallbacks[za("0x3f")](za("0x3c"),t),this[za("0xb6")][za("0x3f")](za("0x135"),o),this._defaultCallbacks[za("0x3f")](za("0xb4"),s),this[za("0xb6")][za("0x3f")](za("0x133"),n),this._defaultCallbacks[za("0x3f")]("formatInline:discard",t),this[za("0xb6")][za("0x3f")](za("0x141"),o),this[za("0xb6")][za("0x3f")](za("0x13d"),t),this[za("0xb6")][za("0x3f")](za("0x98"),n),this[za("0xb6")][za("0x3f")]("formatBlock:discard",t),this[za("0xb6")][za("0x3f")](za("0xb3"),o),this[za("0xb6")][za("0x3f")]("formatBlock:chain",t)}}function Ka(t,e,n){for(const o of e[za("0x9d")][za("0x82")]({includeSelf:!0,parentFirst:!0})){if(o[za("0x77")]==o)return!1;if(!n[za("0x31")](o))return!1;if(t[za("0x7f")](o)||t[za("0x10b")](o))return!0}return!1}function qa(t){return t[za("0x11f")][za("0x9d")]==t[za("0xb7")].nodeAfter&&t.end[za("0x39")]}function Xa(t,e,n,o){const s=t=>!t[za("0x71")].is(za("0x55"))&&!o[za("0x7f")](t[za("0x71")]),r=t[za("0xb7")].getLastMatchingPosition(s),i=t[za("0x11f")][za("0x47")](s,{direction:za("0x52")});return!(t[za("0xb7")].isEqual(r)&&t[za("0x11f")][za("0xc2")](i)||(r[za("0xea")](i)?n.updateMarker(e,{range:n[za("0x25")](r,i)}):n[za("0xf8")](e),0))}function $a(t){return(0,r.hashObject)(t)}function Ja(t){const e=t[za("0xb7")][za("0x7a")];return e&&e.is(za("0x51"))}function Qa(t,e){const n=e[za("0xd8")][za("0x7f")](t)||e[za("0xd8")].isSelectable(t);return e.createRange(e[za("0x19")](t,za("0xba")),n?e.createPositionAfter(t):e[za("0x19")](t,za("0x11f")))}function Za(t,e,n,o,s){if(!Ya(t,e))return!1;if(n[za("0x11f")][za("0xc2")](o[za("0xb7")]))return!0;if(t.type!=e[za("0x5")])return!1;if(!n.end[za("0x36")](o[za("0xb7")]))return!1;const r=s[za("0x25")](n[za("0x11f")],o[za("0xb7")])[za("0x1d")]();for(const t of r)if([za("0x7"),za("0x10e")][za("0xe8")](t[za("0x5")])&&s[za("0xd8")].isLimit(t.item))return!1;return!0}function Ya(t,e){return!(!t[za("0xcd")]||!e[za("0xcd")])&&Go(t[za("0x129")],e[za("0x129")])}function tc(t,e){const n=ec(t[za("0x129")]),o=ec(e);if(!t[za("0xcd")])return!1;for(const t of Object[za("0x130")](o))if(!Go(n[t],o[t]))return!1;return!0}function ec(t){const e=Object[za("0x34")]({},t);return delete e.skipNestingCheck,delete e[za("0x128")],e}const nc=["destroy","unbind","get","_editor","_pendingAction","PendingActions","commands","stopListening","getRanges","remove","isEnabled","canAccept","_acceptCommand","canDiscard","bind","commentThreadController","add","discardSuggestion","acceptSuggestion","model","_discardCommand","execute","PENDING_ACTION_SUGGESTION","_removePendingAction","listenTo","locale","isDirty","view","_setPendingAction","plugins"];var oc,sc;oc=nc,sc=480,function(t){for(;--t;)oc.push(oc.shift())}(++sc);const rc=function(t,e){return nc[t-=0]};class ic extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[rc("0x13")]=e,this.view=n,this.commentThreadController=o,this._editor=t,this[rc("0xc")]=t[rc("0x6")][rc("0x2")]("acceptSuggestion"),this[rc("0x14")]=t[rc("0x6")][rc("0x2")](rc("0x11")),this.view[rc("0xe")](rc("0xa")).to(this._acceptCommand,this._discardCommand,((t,e)=>t||e)),this.view[rc("0xe")]("canAccept").to(this[rc("0xc")],"isEnabled",(t=>t&&this[rc("0x3")][rc("0x13")].canEditAt(e[rc("0x8")]()))),this[rc("0x1b")][rc("0xe")]("canDiscard").to(this[rc("0x14")],rc("0xa"),(t=>t&&this[rc("0x3")].model.canEditAt(e[rc("0x8")]()))),this[rc("0x4")]=null,n[rc("0x1a")]&&this._setPendingAction(),this.listenTo(n,"acceptSuggestion",(()=>this[rc("0x12")]())),this[rc("0x18")](n,rc("0x11"),(()=>this.discardSuggestion())),this.listenTo(n,"change:isDirty",(()=>{n[rc("0x1a")]?this[rc("0x1c")]():this[rc("0x17")]()}))}[rc("0x12")](){this[rc("0xc")][rc("0x15")](this[rc("0x13")].id)}[rc("0x11")](){this[rc("0x14")].execute(this[rc("0x13")].id)}[rc("0x0")](){this.view[rc("0x1")](rc("0xa")),this[rc("0x1b")][rc("0x1")](rc("0xb")),this[rc("0x1b")][rc("0x1")](rc("0xd")),this[rc("0x7")](),this[rc("0xf")][rc("0x0")](),this[rc("0x4")]&&this[rc("0x17")]()}[rc("0x1c")](){const t=Yo(this[rc("0x3")][rc("0x19")],rc("0x16"));this[rc("0x4")]=this[rc("0x3")][rc("0x1d")][rc("0x2")]("PendingActions")[rc("0x10")](t)}_removePendingAction(){null!==this._pendingAction&&this[rc("0x3")][rc("0x1d")][rc("0x2")](rc("0x5"))[rc("0x9")](this[rc("0x4")]),this[rc("0x4")]=null}}const xc=["addComment","_localUser","_config","set","destroy","isActive","locale","commentsListView","delegate","isEnabled","_model","bind","commentThreadInputView","commentThread","fire","submit","removeComment","canAccept","_createCommentViews","isReadOnly","value","showInput","isDirty","commentInputView","_createCommentThreadInputView","hasDirtyComment","cancel","assign","authoredAt","updateComment","focus","editorConfig","length"];var ac,cc;ac=xc,cc=445,function(t){for(;--t;)ac.push(ac.shift())}(++cc);const lc=function(t,e){return xc[t-=0]};class dc extends s.View{constructor(t,e,n,o){super(t),this.commentsListView=null,this.commentThreadInputView=null,this[lc("0x14")](lc("0x16"),!1),this[lc("0x14")](lc("0xc"),e[lc("0xc")]),this.bind(lc("0xc")).to(e),this[lc("0x14")]("descriptionParts",[]),this.set(lc("0x6"),!1),this.set(lc("0x1a"),!1),this[lc("0x14")](lc("0x1"),!1),this.set("canDiscard",!1),this[lc("0x1b")]=e,this[lc("0x12")]=n,this[lc("0x13")]=o,o.disableComments?this[lc("0x14")](lc("0x10"),1):this[lc("0x2")]()}focus(){this.element[lc("0xe")]()}[lc("0x15")](){this[lc("0x18")]&&this[lc("0x18")][lc("0x15")](),this.commentThreadInputView&&this[lc("0x1d")][lc("0x15")](),super[lc("0x15")]()}[lc("0x2")](){const{CommentsListView:t}=this[lc("0x13")];this[lc("0x18")]=new t(this[lc("0x17")],this[lc("0x1b")][lc("0x1e")],Object[lc("0xb")]({CommentView:this._config.CommentView},this[lc("0x13")])),this[lc("0x18")][lc("0x19")]("removeComment").to(this),this[lc("0x18")][lc("0x19")](lc("0xd")).to(this),this[lc("0x18")].bind(lc("0x16")).to(this),this.set(lc("0x10"),this[lc("0x18")].length+1),this[lc("0x1c")](lc("0x10")).to(this[lc("0x18")],lc("0x10"),(t=>t+1)),this[lc("0x1d")]=this[lc("0x8")](),this.on(lc("0x0"),(()=>this[lc("0xe")]())),this[lc("0x1c")](lc("0x6")).to(this[lc("0x18")],lc("0x9"),this[lc("0x1d")][lc("0x7")],lc("0x4"),((t,e)=>t||!!e))}[lc("0x8")](){const{CommentThreadInputView:t}=this[lc("0x13")],e=new t(this.locale,this[lc("0x12")],this[lc("0x13")][lc("0xf")]),n=e.commentInputView;return e[lc("0x1c")](lc("0x5")).to(this,lc("0x16"),this._model[lc("0x1e")],lc("0x3"),n,lc("0x4"),((t,e,n)=>!!n||t&&!e)),n.on(lc("0x20"),((t,e)=>{this[lc("0x1f")](lc("0x11"),e),n.editor.setData("")})),n.on(lc("0xa"),(()=>this[lc("0xe")]())),n[lc("0x1c")]("disabledSubmit").to(this[lc("0x1b")][lc("0x1e")],lc("0x3")),e}}const uc=["ck-suggestion--disabled-comments","ck-annotation__actions","title","div","ck-suggestion--discard","acceptButton","commentsListView","Accept suggestion","source","bindTemplate","bind","acceptSuggestion",'" title="',"color","render","userView","isExternal","editorReady","_descriptionElement","querySelector","ck-annotation__content-wrapper","ck-comment__external","editorDestroyed","</p>","description","delegate","authoredAt","getExternalSuggestionNote","formatDateTime","attributes","disableComments","ck-annotation","creator","getUserViewNotificationText","EXTERNAL_AVATAR","split","change:description","<p>","name","setTemplate","children","ck-annotation__info-time","locale","importWord","value",'<span class="ck-suggestion-type">',"innerHTML","push","ck-suggestion-wrapper--active","_config","execute","isEnabled","EXTERNAL_SUGGESTION","extendTemplate","descriptionParts","createElement","_model","ck-annotation__info","cancel","_createButton",".ck-annotation__content-wrapper","@external",'"></span>',"set","element","map","isActive","discardButton","canDiscard","ck-annotation__info-name","ck-suggestion","join","getTemplate","ck-suggestion__user","EXTERNAL_IMPORT_WORD_AVATAR","ck-annotation__user","author","ck-suggestion__info","check","ck-suggestion-","type","ck-suggestion__main","commentThreadInputView","span","ck-annotation__main","commentThread","ck-comment__info-time"];var gc,mc;gc=uc,mc=166,function(t){for(;--t;)gc.push(gc.shift())}(++mc);const fc=function(t,e){return uc[t-=0]};class hc extends dc{constructor(e,n,o,s){super(e,n,o,s),this[fc("0x47")](fc("0x1"),""),this[fc("0x12")](fc("0x1")).to(this,fc("0x3e"),(t=>t&&t[0]?t[0][fc("0x1")]:"")),this[fc("0x12")](fc("0x20")).to(this,fc("0x3e"),this,fc("0x4a"),((t,e)=>{let n="";for(const e of t)n+=fc("0x2d")+pc(e.content,e[fc("0x15")])+fc("0x1f");return e?n:(0,r.trimHtml)(n,{limit:140})})),this._descriptionElement=null,this[fc("0xd")]=this[fc("0x43")](Yo(e,fc("0xf")),t.icons[fc("0x56")],"ck-suggestion--accept",fc("0x13"),"sw"),this[fc("0xd")][fc("0x12")](fc("0x3b")).to(this,"canAccept"),this.discardButton=this._createButton(Yo(e,"Discard suggestion"),t.icons[fc("0x42")],fc("0xc"),"discardSuggestion","sw"),this[fc("0x4b")][fc("0x12")](fc("0x3b")).to(this,fc("0x4c")),this[fc("0x17")]=new r.UserView(e,this[fc("0x40")][fc("0x54")],this[fc("0x29")]()),this.userView.extendTemplate({attributes:{class:[fc("0x51"),fc("0x53")]}}),this[fc("0x2f")](this.getTemplate())}[fc("0x50")](){const t=this[fc("0x11")],e=[{tag:fc("0xb"),attributes:{class:[fc("0x55"),fc("0x41")]},children:[{tag:fc("0x4"),children:[{text:this.userView[fc("0x2e")]}],attributes:{class:["ck-suggestion__info-name",fc("0x4d")]}},{tag:"time",attributes:{datetime:t.to(fc("0x22")),class:[fc("0x7"),fc("0x31")]},children:[{text:t.to(fc("0x22"),(t=>this[fc("0x39")][fc("0x24")](t)))}]}]},{tag:fc("0xb"),attributes:{class:["ck-suggestion__actions",fc("0x9")]},children:[this[fc("0xd")],this.discardButton]},{tag:fc("0xb"),attributes:{class:[fc("0x1c")]}}];this._model[fc("0x18")]&&e.push({tag:fc("0xb"),attributes:{class:[fc("0x1d")]},children:[{text:this[fc("0x23")]()}]});const n={tag:fc("0xb"),attributes:{class:["ck-suggestion-wrapper",t.if(fc("0x4a"),fc("0x38")),t.to(fc("0x1"),(t=>fc("0x0")+t)),this[fc("0x39")][fc("0x26")]&&fc("0x8")],"data-suggestion-id":this._model.id,"data-thread-id":this[fc("0x40")][fc("0x6")].id,"data-author-id":this[fc("0x40")][fc("0x54")].id,tabindex:-1},children:[{tag:fc("0xb"),attributes:{class:[fc("0x4e"),fc("0x27")]},children:[this.userView,{tag:fc("0xb"),attributes:{class:[fc("0x2"),fc("0x5")]},children:e}]}]};return this[fc("0xe")]&&this.commentThreadInputView&&(n[fc("0x30")][fc("0x37")](this[fc("0xe")],this[fc("0x3")]),this[fc("0xe")][fc("0x21")](fc("0x19")).to(this),this.commentsListView[fc("0x21")]("editorDestroyed").to(this),this[fc("0x3")][fc("0x21")](fc("0x19")).to(this),this[fc("0x3")].delegate(fc("0x1e")).to(this)),n}[fc("0x16")](){super.render(),this._descriptionElement=this[fc("0x48")][fc("0x1b")](fc("0x44")),this[fc("0x1a")][fc("0x36")]=this[fc("0x20")],this.on(fc("0x2c"),((t,e,n)=>{this[fc("0x1a")][fc("0x36")]=n}))}[fc("0x43")](t,e,n,o,r){const i=new s.ButtonView(this.locale);return i[fc("0x47")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[fc("0x3d")]({attributes:{class:n}}),i.on(fc("0x3a"),(()=>{this.fire(o,this[fc("0x40")].id)})),i}[fc("0x23")](){return"importWord"===this[fc("0x40")].attributes[fc("0x45")].source?Yo(this.locale,"EXTERNAL_IMPORT_WORD_SUGGESTION"):Yo(this[fc("0x32")],fc("0x3c"))}[fc("0x29")](){return this[fc("0x40")][fc("0x18")]?fc("0x33")===this[fc("0x40")][fc("0x25")][fc("0x45")][fc("0x10")]?Yo(this.locale,fc("0x52"),this[fc("0x40")][fc("0x28")][fc("0x2e")]):Yo(this[fc("0x32")],fc("0x2a"),this[fc("0x40")].creator[fc("0x2e")]):null}}function pc(t,e){let n="";return n+=t[fc("0x2b")]("*")[fc("0x49")](((t,e)=>e%2!=0?fc("0x35")+bc(t)+"</span>":bc(t)))[fc("0x4f")](""),e&&(n+='<span class="ck-suggestion-color" style="background-color: '+e[fc("0x34")]+fc("0x14")+e[fc("0xa")]+fc("0x46")),n}function bc(t){const e=document[fc("0x3f")](fc("0x4"));return e.innerText=t,e[fc("0x36")]}const Ec=["filter","_annotationViews","toMany","has","delete","suggestionChanged","Discard all selected suggestions","map","isInContent","SuggestionThreadView","view","suggestionUnloaded","isEnabled","getSuggestion","trackChanges","_updateController","arrowView","Annotations","Track changes","type","button","addComment","_viewToController","lowest","getJoined","innerView","values","get","destroy","requires","_refreshActiveMarkers","buttonView","_createUIButton","locale","set","_descriptionFactory","commandName","descriptionParts","focus","trackChanges.disableComments","switchbutton","length","getAllAdjacentSuggestions","commentThread","Discard all suggestions","isDirty","discardSelectedSuggestions","getMarkers","activeMarkers","Accept all selected suggestions","listenTo","_suggestionToController","add","commands","value","init","_handleControllerBuffer","model","reduce","bind","comments.maxCommentCharsWhenCollapsed","Accept all suggestions","_disableComments","getFirstRange","getRanges","getDescriptions","suggestionLoaded","addSourceCollector","change:activeAnnotations","getMarkerNames","discardAllSuggestions","TrackChangesEditing","editor","_bindAnnotationToEditors","trackChanges.SuggestionThreadView","CommentView","previous","CommentsUI","getByInnerView","hasSuggestion","change:previous","registerAnnotation","_unbindEditors","createAnnotationView","pluginName","size","EditorAnnotations","createCommentThreadController","isMultiRange","execute","_destroyController","mainView","acceptSelectedSuggestions","remove","acceptButton","actionView","isOn","config","push","editing","head","createAnnotation","CommentsRepository","from","acceptAllSuggestions","refreshSelectedViews","activeAnnotations","_initializeController","plugins","_handleSuggestionControllerDelayed"];var _c,Tc;_c=Ec,Tc=127,function(t){for(;--t;)_c.push(_c.shift())}(++Tc);const Cc=function(t,e){return Ec[t-=0]};class yc extends t.Plugin{static get[Cc("0xc")](){return[Wa,r.Users,Cc("0x55"),"Annotations",Cc("0x45")]}static get[Cc("0x43")](){return"TrackChangesUI"}constructor(t){super(t),this._suggestionToController=new Map,this[Cc("0x5")]=new Map,this._annotationViews=new Map,this[Cc("0x27")]=new Map;const e=this.editor[Cc("0x50")];e.define(Cc("0x39"),hc),e.define(Cc("0x16"),!1),this[Cc("0x2d")]=e[Cc("0xa")](Cc("0x16"))}[Cc("0x5c")](t,e){0===this._handleControllerBuffer[Cc("0x44")]&&setTimeout((()=>{for(const[t,e]of this._handleControllerBuffer){const n=this._suggestionToController[Cc("0x60")](t);n||e?n&&e&&this[Cc("0x49")](t):this[Cc("0x5a")](t)}this[Cc("0x37")][Cc("0x5b")][Cc("0xa")]("EditorAnnotations")[Cc("0x58")](),this[Cc("0xd")](),this[Cc("0x27")].clear()}),10),this[Cc("0x27")][Cc("0x11")](t,e)}[Cc("0x26")](){const t=this.editor,e=t[Cc("0x5b")][Cc("0xa")]("TrackChangesEditing"),n=t[Cc("0x5b")][Cc("0xa")]("Annotations"),o=t[Cc("0x5b")][Cc("0xa")](Cc("0x45")),s=t[Cc("0x5b")][Cc("0xa")]("CommentsRepository");t.ui.componentFactory[Cc("0x23")](Cc("0x6b"),(t=>this[Cc("0xf")](t))),o[Cc("0x32")]((()=>{const t=[];for(const[e,n]of Array[Cc("0x56")](this[Cc("0x22")])){const o=e[Cc("0x19")](),s=[];for(const t of o){if(!t[Cc("0x65")])continue;if(t[Cc("0x47")]){s[Cc("0x51")](...t[Cc("0x2f")]());continue}const e=t[Cc("0x2e")]();if(s[Cc("0x18")]>0){const t=s[0][Cc("0x7")](e);if(t){s[0]=t;continue}}s[Cc("0x51")](e)}t.push([n[Cc("0x67")],s])}return t})),this[Cc("0x21")](e,Cc("0x31"),((t,e)=>{this[Cc("0x21")](e,Cc("0x3f"),((t,n,o,s)=>{e[Cc("0x65")]&&(null==o?(this[Cc("0x6c")](s[Cc("0x53")]),this[Cc("0x5c")](e,!1)):(this._updateController(o[Cc("0x53")]),this[Cc("0x5c")](e,!0)))})),null===e[Cc("0x3b")]?this[Cc("0x5c")](e,!1):this[Cc("0x6c")](e[Cc("0x53")])})),this[Cc("0x21")](e,Cc("0x68"),((t,e,n)=>{this.stopListening(e,Cc("0x3f")),this[Cc("0x27")][Cc("0x61")](e);const o=n?n.head:e,s=this._suggestionToController[Cc("0xa")](o);null!==n&&this[Cc("0x6c")](o),null===n&&s&&this[Cc("0x49")](e)})),this[Cc("0x21")](e,Cc("0x62"),((t,e)=>{this[Cc("0x6c")](e)})),this[Cc("0x21")](n,Cc("0x33"),(()=>{this[Cc("0xd")]()})),this[Cc("0x21")](s,Cc("0x4"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Cc("0x3e")](n))return;const s=e[Cc("0x6a")](n);this[Cc("0x22")].get(s).view[Cc("0x15")]()}),{priority:Cc("0x6")})}_refreshActiveMarkers(){const t=this[Cc("0x37")].plugins.get("Annotations"),e=this[Cc("0x37")][Cc("0x5b")][Cc("0xa")](Cc("0x36")),n=Array[Cc("0x56")](t[Cc("0x59")],(t=>t[Cc("0x8")]))[Cc("0x5d")]((t=>this[Cc("0x5")].has(t))),o=[];for(const t of n){const e=this[Cc("0x5")].get(t)[Cc("0x28")][Cc("0x19")]();o[Cc("0x51")](...e[Cc("0x29")](((t,e)=>[...t,...e[Cc("0x34")]()]),[]))}e[Cc("0x1f")]=o}[Cc("0xf")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Cc("0x37")][Cc("0x24")].get(Cc("0x6b")),r=Yo(t,Cc("0x1"));n[Cc("0xe")][Cc("0x11")]({tooltip:r,label:r,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n.buttonView[Cc("0x2a")](Cc("0x4f")).to(o,Cc("0x25")),n[Cc("0xe")].on("execute",(()=>{o[Cc("0x48")](),this.editor.editing[Cc("0x67")].focus()}));const i=new e.Collection,x=[{type:Cc("0x17"),model:{withText:!0,label:r,commandName:Cc("0x6b")}},{type:"separator"},{type:Cc("0x3"),model:{withText:!0,label:Yo(t,Cc("0x2c")),commandName:Cc("0x57")}},{type:"button",model:{withText:!0,label:Yo(t,Cc("0x20")),commandName:Cc("0x4b")}},{type:Cc("0x3"),model:{withText:!0,label:Yo(t,Cc("0x1b")),commandName:Cc("0x35")}},{type:Cc("0x3"),model:{withText:!0,label:Yo(t,Cc("0x63")),commandName:Cc("0x1d")}}];for(const t of x){let e={type:"separator"};if(t[Cc("0x28")]){const n=new s.Model(t[Cc("0x28")]),o=this.editor.commands[Cc("0xa")](n.commandName);n[Cc("0x2a")](Cc("0x4f"),Cc("0x69")).to(o,"value",Cc("0x69")),e={type:t.type,model:n}}i.add(e)}(0,s.addListToDropdown)(n,i);const a=x[Cc("0x5d")]((t=>null!=t.model))[Cc("0x64")]((t=>this[Cc("0x37")][Cc("0x24")][Cc("0xa")](t[Cc("0x28")][Cc("0x13")]))),c=n[Cc("0xe")];return c[Cc("0x4e")].unbind(Cc("0x69")),c[Cc("0x6d")].unbind(Cc("0x69")),c[Cc("0x4e")][Cc("0x2a")](Cc("0x69")).to(o,Cc("0x69")),c[Cc("0x6d")].bind("isEnabled")[Cc("0x5f")](a,Cc("0x69"),((...t)=>t.some((t=>t)))),n.on(Cc("0x48"),(t=>{this[Cc("0x37")][Cc("0x48")](t.source[Cc("0x13")]),this[Cc("0x37")][Cc("0x52")][Cc("0x67")].focus()})),n}[Cc("0x5a")](t){const e=this.editor,n=e.config,o=e.plugins[Cc("0xa")](Cc("0x0")),s=e[Cc("0x5b")].get(Cc("0x55")),i=e[Cc("0x5b")][Cc("0xa")](Cc("0x45")),x=e.plugins.get(r.Users).me,a=n[Cc("0xa")](Cc("0x6b"))[Cc("0x66")],{CommentsListView:c,CommentThreadInputView:l}=e[Cc("0x5b")][Cc("0xa")](Cc("0x3c"));let d,u;this[Cc("0x5e")].has(t.id)?(u=this[Cc("0x5e")].get(t.id),d=u[Cc("0x4a")]):(d=new a(e[Cc("0x10")],t,x,{disableComments:this[Cc("0x2d")],editorConfig:n[Cc("0xa")]("comments.editorConfig"),maxCommentsWhenCollapsed:n[Cc("0xa")]("comments.maxCommentsWhenCollapsed"),maxThreadTotalWeight:n[Cc("0xa")]("comments.maxThreadTotalWeight"),maxCommentCharsWhenCollapsed:n[Cc("0xa")](Cc("0x2b")),formatDateTime:(0,r.getDateTimeFormatter)(n[Cc("0xa")](Cc("0x10"))),CommentView:n[Cc("0xa")]("comments")[Cc("0x3a")],CommentsListView:c,CommentThreadInputView:l}),d[Cc("0x4d")].on("execute",(()=>{e[Cc("0x52")][Cc("0x67")][Cc("0x15")]()})),d.discardButton.on(Cc("0x48"),(()=>{e[Cc("0x52")][Cc("0x67")].focus()})),u=o[Cc("0x42")](this[Cc("0x37")][Cc("0x10")],d),u[Cc("0x2a")](Cc("0x1c")).to(d,"isDirty"),u[Cc("0x2a")](Cc("0x18")).to(d),u.bind(Cc("0x2")).to(d,Cc("0x2"),(t=>"suggestion-"+t)),this[Cc("0x5e")][Cc("0x11")](t.id,u));const g=s[Cc("0x46")](t[Cc("0x1a")],d),m=new ic(e,t,d,g),f=t.getAllAdjacentSuggestions()[Cc("0x5d")]((t=>t[Cc("0x65")]));d.descriptionParts=e[Cc("0x5b")].get("TrackChangesEditing")[Cc("0x12")][Cc("0x30")](f),this[Cc("0x22")][Cc("0x11")](t,m),this._viewToController[Cc("0x11")](d,m);const h=o[Cc("0x54")]({view:u,target:()=>{const n=[],o=t.getAllAdjacentSuggestions()[Cc("0x5d")]((t=>t[Cc("0x65")]));for(const t of o)n[Cc("0x51")](...t[Cc("0x1e")]());return(0,r.getAllMarkersDomElementsSorted)(e.editing,n)},type:()=>"suggestion-"+m[Cc("0x67")][Cc("0x2")]});s[Cc("0x38")](d,h),o[Cc("0x23")](h),i[Cc("0x40")](h)}_destroyController(t){const e=this[Cc("0x37")][Cc("0x5b")][Cc("0xa")](Cc("0x55")),n=this[Cc("0x37")][Cc("0x5b")][Cc("0xa")](Cc("0x0")),o=this[Cc("0x22")].get(t),s=o[Cc("0x67")],r=n[Cc("0x3d")](s);e[Cc("0x41")](s),r&&n[Cc("0x4c")](r),this[Cc("0x22")].delete(t),this._viewToController[Cc("0x61")](s),o[Cc("0xb")]()}[Cc("0x6c")](t){if(!t[Cc("0x65")]||!this[Cc("0x22")][Cc("0x60")](t))return;const e=this[Cc("0x37")].plugins.get(Cc("0x36")),n=this[Cc("0x22")][Cc("0xa")](t),o=t.getAllAdjacentSuggestions();n[Cc("0x67")][Cc("0x14")]=e[Cc("0x12")][Cc("0x30")](o)}[Cc("0xb")](){for(const t of this[Cc("0x22")].keys())this._destroyController(t);for(const t of this[Cc("0x5e")][Cc("0x9")]())t[Cc("0x4a")][Cc("0xb")]();super[Cc("0xb")]()}}var kc,Ac,vc=["TrackChanges","getSuggestion","addSuggestionData","get","editor","plugins","getSuggestions","requires","pluginName","adapter"];kc=vc,Ac=326,function(t){for(;--t;)kc.push(kc.shift())}(++Ac);var Rc=function(t,e){return vc[t-=0]};class Sc extends t.Plugin{static get[Rc("0x1")](){return[Wa,yc,"Comments"]}static get[Rc("0x2")](){return Rc("0x4")}set[Rc("0x3")](t){this.editor[Rc("0x9")][Rc("0x7")](Wa).adapter=t}get[Rc("0x3")](){return this[Rc("0x8")][Rc("0x9")][Rc("0x7")](Wa)[Rc("0x3")]}addSuggestion(t){return this[Rc("0x8")][Rc("0x9")][Rc("0x7")](Wa)[Rc("0x6")](t)}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[Rc("0x8")].plugins[Rc("0x7")](Wa)[Rc("0x0")]({skipNotAttached:t,toJSON:e})}[Rc("0x5")](t){return this.editor[Rc("0x9")][Rc("0x7")](Wa)[Rc("0x5")](t)}}const Ic=["_adapter","init","push","map","getRootNames","acceptAllSuggestions","reduce","function","set","getDataWithAcceptedSuggestions","constructor","getRootsAttributes","Users","get","TrackChangesDataGetter","pluginName","appendChild","trackChangesData","useAnonymousUser","data","div","result","getFullData","document","end","requires","Pagination","execute","addUser","TrackChangesData","destroy","plugins","TrackChangesEditing","editor","getSuggestions","getDataWithDiscardedSuggestions","rootsAttributes","getUser","trackChangesData.editorCreator","define","discardAllSuggestions","model","config"];var Lc,Nc;Lc=Ic,Nc=295,function(t){for(;--t;)Lc.push(Lc.shift())}(++Nc);const Mc=function(t,e){return Ic[t-=0]},wc=[Mc("0x20")];class Oc extends t.Plugin{static get[Mc("0x1f")](){return[Wa]}static get[Mc("0x15")](){return Mc("0x23")}init(){const t=this[Mc("0x27")];if(t[Mc("0x5")][Mc("0x2")](Mc("0x1"),(e=>{const n=t[Mc("0x4")][Mc("0x1d")][Mc("0xa")]()[Mc("0xc")](((t,e)=>(t[e]="",t)),{});return t[Mc("0x10")].create(n,e)})),Mc("0xd")!=typeof t[Mc("0x5")][Mc("0x13")](Mc("0x17")).editorCreator)throw new e.CKEditorError("track-changes-data-invalid-editor-creator")}[Mc("0xf")](t){return Dc(this[Mc("0x27")],!0,t)}[Mc("0x29")](t){return Dc(this[Mc("0x27")],!1,t)}}class Fc extends t.Plugin{static get[Mc("0x15")](){return Mc("0x14")}constructor(t){super(t),this[Mc("0x1b")]=Mc("0x1e")}[Mc("0x7")](){this[Mc("0x27")][Mc("0x25")][Mc("0x13")]("CommentsRepository")[Mc("0x6")]={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[Mc("0x27")][Mc("0x25")].get(Mc("0x26"))[Mc("0x6")]=null}}function Pc(t){return void 0!==t[Mc("0x11")]}async function Dc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,wc);o[Mc("0x25")][Mc("0x8")](Wa,Fc),o[Mc("0x2a")]=Pc(t)?t[Mc("0x11")]():void 0;const s=document.createDocumentFragment(),i=t[Mc("0x5")][Mc("0x13")](Mc("0x17")).editorCreator,x=await i(o,(()=>function(t){const e=document.createElement(Mc("0x1a"));return t[Mc("0x16")](e),e}(s)));!function(t,e){const n=t[Mc("0x4")].document[Mc("0xa")]().reduce(((e,n)=>(e[n]=t[Mc("0x19")].get({rootName:n}),e)),{}),o=t[Mc("0x25")].get("Users").users[Mc("0x9")]((t=>({id:t.id,name:t.name}))),s=t[Mc("0x25")][Mc("0x13")](Mc("0x26"))[Mc("0x28")]({skipNotAttached:!0,toJSON:!0}),r=e[Mc("0x25")][Mc("0x13")](Mc("0x12")),i=e[Mc("0x25")].get(Mc("0x26"));for(const t of o)r[Mc("0x0")](t.id)||r[Mc("0x22")](t);r.me||r[Mc("0x18")]();for(const t of s)i.addSuggestionData(t);e[Mc("0x19")][Mc("0xe")](n)}(t,x),x[Mc("0x21")](Mc(e?"0xb":"0x3"));const a=Pc(x)?x[Mc("0x1c")](n):x.data[Mc("0x13")](n);return await x[Mc("0x24")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|
|
5
|
+
*/(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var s=e[o];if(void 0!==s)return s.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>uc,TrackChanges:()=>Sc,TrackChangesData:()=>Oc,TrackChangesEditing:()=>Wa});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["value","refresh","_isEnabledBasedOnSelection","isEnabled","has","_enabledCommands","forceDisabled","_disableUnsupportedCommands","TrackChangesCommand","affectsData","commands","clearForceDisabled","_enableCommands"];var c,l;c=a,l=257,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return a[t-=0]};class d extends t.Command{constructor(t,e){super(t),this._enabledCommands=e,this[u("0x3")]=!1,this[u("0x4")](),this[u("0x5")]=!1}refresh(){this[u("0x6")]=!0}execute(){this.value=!this[u("0x3")],this[u("0x3")]?this[u("0xa")]():this[u("0x2")]()}_disableUnsupportedCommands(){for(const t of this.editor[u("0x0")][u("0x0")]())t[u("0xc")]&&!this[u("0x8")][u("0x7")](t)&&t[u("0x9")]("TrackChangesCommand")}_enableCommands(){for(const t of this.editor[u("0x0")][u("0x0")]())t[u("0xc")]&&!this[u("0x8")][u("0x7")](t)&&t[u("0x1")](u("0xb"))}}const g=["canEditAt","execute","editor","refresh","get","getRanges","isEnabled","plugins","acceptSuggestion"];var m,f;m=g,f=211,function(t){for(;--t;)m.push(m.shift())}(++f);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this._suggestions=e,this[h("0x8")](),this._isEnabledBasedOnSelection=!1}refresh(){this[h("0x2")]=!0}[h("0x6")](t){const n=this._suggestions[h("0x0")](t);if(!n)throw new e.CKEditorError("track-changes-accept-suggestion-not-found",this);const o=n[h("0x1")]();this.editor.model[h("0x5")](o)&&this[h("0x7")][h("0x3")][h("0x0")]("TrackChangesEditing")[h("0x4")](n)}}const b=["TrackChangesEditing","get","discardSuggestion","getRanges","track-changes-discard-suggestion-not-found","_isEnabledBasedOnSelection","plugins","refresh","execute","isEnabled"];var E,_;E=b,_=309,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("0x6")]=!1}[T("0x8")](){this[T("0x0")]=!0}[T("0x9")](t){const n=this._suggestions[T("0x2")](t);if(!n)throw new e.CKEditorError(T("0x5"),this);const o=n[T("0x4")]();this.editor.model.canEditAt(o)&&this.editor[T("0x7")].get(T("0x1"))[T("0x3")](n)}}const y=["sort","isArray","createPositionAfter","createPositionBefore","start"," [color ","change","from","createRange","join","value","getRanges","deletion","type","isIntersecting","splice","map","schema","content","replace","execute","isObject","createPositionAt","next","length","isTouching","isInContent","push","isMultiRange","add","color","end"];var k,A;k=y,A=229,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0x1b")](((t,e)=>v("0x7")==t[v("0x8")]&&v("0x7")!=e[v("0x8")]?-1:v("0x7")!=t.type&&v("0x7")==e[v("0x8")]?1:0))}function S(t,e){let n,o=0;const s=[],r=e[v("0xc")];for(;o<t[v("0x13")];){const i=t[o],x=t[o+1];n||(n=e.createPositionBefore(i)),I(e,i,x)||(s[v("0x16")](e[v("0x3")](n,r[v("0x10")](i)?e[v("0x1d")](i):e[v("0x11")](i,"end"))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t[v("0x1d")](e),s=t[v("0x1e")](n);return o[v("0x14")](s)}function L(t,e,n){for(;n[v("0x13")];){const o=n[v("0xa")](0,100);t[v("0x1")]((()=>{for(const t of o)t[v("0x15")]&&e[v("0xf")](t.id)}))}}const N=["execute","isInContent","editor","some","values","model","from","refresh","_command","isEnabled"];var M,w;M=N,w=225,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0x3")]=e,this._suggestions=n,this[O("0x2")](),this._isEnabledBasedOnSelection=!1}[O("0x2")](){const t=Array[O("0x1")](this._suggestions[O("0x9")]())[O("0x8")]((t=>t[O("0x6")]));this[O("0x4")]=this[O("0x3")][O("0x4")]&&t}[O("0x5")](){const t=R(Array[O("0x1")](this._suggestions.values()));for(const e of t){const t=e.getRanges();if(!this[O("0x7")][O("0x0")].canEditAt(t))return}L(this.editor.model,this[O("0x3")],t)}}const P=["from","isEnabled","_selectedSuggestions","refresh","canEditAt","_suggestions","editor","_isEnabledBasedOnSelection","_command","getRanges","model","document","selection"];var D,B;D=P,B=354,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("0x5")]=e,this[j("0x2")]=n,this[j("0xc")]=new Set,this[j("0x0")](),this[j("0x4")]=!1}[j("0x0")](){const t=this[j("0x3")][j("0x7")][j("0x8")][j("0x9")],e=Array[j("0xa")](this[j("0x2")].values());this[j("0xc")]=function(t,e){const n=Array[v("0x2")](t[v("0x6")]()),o=new Set;for(const s of e)if(s[v("0x15")])for(const e of n)for(const n of s.getRanges())(e[v("0x9")](n)||t.isCollapsed&&!s[v("0x17")]&&s[v("0x12")]&&n[v("0x1a")][v("0x14")](e[v("0x1f")]))&&o[v("0x18")](s);return o}(t,e),this[j("0xb")]=this[j("0x5")][j("0xb")]&&!!this[j("0xc")].size}execute(){const t=R(Array[j("0xa")](this[j("0xc")]));for(const e of t){const t=e[j("0x6")]();if(!this[j("0x3")][j("0x7")][j("0x1")](t))return}L(this[j("0x3")][j("0x7")],this[j("0x5")],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 X=function(t){return z(this.__data__,t)>-1};const q=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=X,$.prototype.set=q;const J=$;const Q=function(){this.__data__=new J,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const st=ot.Symbol;var rt=Object.prototype,it=rt.hasOwnProperty,xt=rt.toString,at=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var s=xt.call(t);return o&&(e?t[at]=n:delete t[at]),s};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":dt&&dt in Object(t)?ct(t):ut(t)};const mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,vt=kt.hasOwnProperty,Rt=RegExp("^"+At.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const It=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=It(t,e);return St(n)?n:void 0};const Nt=Lt(ot,"Map");const Mt=Lt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Dt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Dt.call(e,t)};const jt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Ut.prototype.clear=wt,Ut.prototype.delete=Ot,Ut.prototype.get=Pt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||J),string:new Gt}};const zt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Wt=function(t,e){var n=t.__data__;return zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=Wt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Wt(this,t).get(t)};const Xt=function(t){return Wt(this,t).has(t)};const qt=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=Xt,$t.prototype.set=qt;const Jt=$t;const Qt=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new J(t);this.size=e.size}Zt.prototype.clear=Q,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Qt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),s?ne(n,x,a):se(n,x,a)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,ue=ce.propertyIsEnumerable;const de=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!ue.call(t,"callee")};const ge=Array.isArray;const me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===fe?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||me;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return xe(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=ve&&ve.exports===Ae&&et.process;const Se=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Ie=Se&&Se.isTypedArray;const Le=Ie?ke(Ie):ye;var Ne=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&de(t),s=!n&&!o&&be(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?Me(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var ze=Object.prototype.hasOwnProperty;const We=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&ze.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?Me(t,!0):We(t)};const Ke=function(t,e){return t&&re(e,Ve(e),t)};var Xe="object"==typeof exports&&exports&&!exports.nodeType&&exports,qe=Xe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=qe&&qe.exports===Xe?ot.Buffer:void 0,Je=$e?$e.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,o=Je?Je(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,r=[];++n<o;){var i=t[n];e(i,n,t)&&(r[s++]=i)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return re(t,on(t),e)};const rn=function(t,e){for(var n=-1,o=e.length,s=t.length;++n<o;)t[s+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const un=function(t){return ln(t,Ue,on)};const dn=function(t){return ln(t,Ve,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Nt),kn=Tt(mn),An=Tt(fn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=pn||mn&&Rn(mn.resolve())!=bn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case Cn:return Tn;case yn:return pn;case kn:return bn;case An:return En;case vn:return _n}return e});const Sn=Rn;var In=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&In.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Pn=st?st.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(t){return Dn?Object(Dn.call(t)):{}};const jn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const zn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const Wn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Vn=Se&&Se.isMap;const Kn=Vn?ke(Vn):Wn;const Xn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var qn=Se&&Se.isSet;const $n=qn?ke(qn):Xn;var Jn="[object Arguments]",Qn="[object Function]",Zn="[object Object]",Yn={};Yn[Jn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Qn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,r,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,s,r,i):o(e)),void 0!==x)return x;if(!mt(e))return e;var u=ge(e);if(u){if(x=Ln(e),!a)return Ze(e,x)}else{var d=Sn(e),g=d==Qn||"[object GeneratorFunction]"==d;if(be(e))return Qe(e,a);if(d==Zn||d==Jn||g&&!r){if(x=c||g?{}:zn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[d])return r?e:{};x=Un(e,d,a)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,x),$n(e)?e.forEach((function(s){x.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){x.set(r,t(s,n,o,r,e,i))}));var f=u?void 0:(l?c?dn:un:c?Ve:Ue)(e);return te(f||e,(function(s,r){f&&(s=e[r=s]),se(x,r,t(s,n,o,r,e,i))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Jt),n}io.Cache=Jt;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const po=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!mt(t))return t;for(var s=-1,r=(e=po(e,t)).length,i=r-1,x=t;null!=x&&++s<r;){var a=bo(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,s,r){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++u<x;){var m=t[u],f=e[u];if(o)var h=i?o(f,m,u,e,t,r):o(m,f,u,t,e,r);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(m===t||s(m,t,n,o,r)))return g.push(e)}))){d=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){d=!1;break}}return r.delete(t),r.delete(e),d};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=st?st.prototype:void 0,No=Lo?Lo.valueOf:void 0;const Mo=function(t,e,n,o,s,r,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=So;case"[object Set]":var a=1&o;if(x||(x=Io),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(x(t),x(e),o,s,r,i);return i.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,r){var i=1&n,x=un(t),a=x.length;if(a!=un(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:wo.call(e,l)))return!1}var u=r.get(t),d=r.get(e);if(u&&d)return u==e&&d==t;var g=!0;r.set(t,e),r.set(e,t);for(var m=i;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var p=i?o(h,f,l,e,t,r):o(f,h,l,t,e,r);if(!(void 0===p?f===h||s(f,h,n,o,r):p)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),x=ge(e),a=i?Po:Sn(t),c=x?Po:Sn(e),l=(a=a==Fo?Do:a)==Do,u=(c=c==Fo?Do:c)==Do,d=a==c;if(d&&be(t)){if(!be(e))return!1;i=!0,l=!1}if(d&&!l)return r||(r=new Yt),i||Le(t)?Ro(t,e,n,o,s,r):Mo(t,e,a,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=u&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return r||(r=new Yt),s(f,h,n,o,r)}}return!!d&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const zo=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const Wo=function(t,e,n){var o=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(s);++o<s;)r[o]=t[o+e];return r};const Vo=function(t,e){return e.length<2?t:zo(t,Wo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Vo(t,e))||delete t[bo(Ho(e))]};const Xo=function(t,e){return null==t||Ko(t,e)},qo=["length","onAccept","isIntersecting","authoredAt","decorate","nodeBefore","delete","next","hasComments","isExternal","getMarkerNames","map","onDiscard","clear","getRange","getItems","getRanges","discard","_onDiscard","head","setAttribute","isMultiRange","removeAttribute","push","addRange","suggestion:","from","substr","author","getFirstMarker","getMarkers","data","set","removeMarker","change","previous","isIntersectingWithRange","accept","add","_model","createdAt","removeMarkers","size","type","subType","filter","split","reduce","addMarkerName","end","_markerNames","commentThread","creator","_onAttributesChange","attributes","isInContent","start","nodeAfter"];var $o,Jo;$o=qo,Jo=305,function(t){for(;--t;)$o.push($o.shift())}(++Jo);const Qo=function(t,e){return qo[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this._isDataLoaded=!1,this.id=e.id,this[Qo("0x1c")]=e[Qo("0x1c")],this[Qo("0x1d")]=e[Qo("0x1d")]||null,this[Qo("0xd")]=e.author,this[Qo("0x25")]=e.creator||e.author,this[Qo("0x34")]=Boolean(e[Qo("0x27")]&&e[Qo("0x27")]["@external"]),this[Qo("0x10")]=null,this._model=t,this._onAccept=e[Qo("0x2c")],this[Qo("0x3")]=e[Qo("0x37")],this[Qo("0x26")]=e.onAttributesChange,this[Qo("0x23")]=new Set,this[Qo("0x19")]=null,this[Qo("0x11")](Qo("0x2e"),null),this[Qo("0x11")](Qo("0x27"),e[Qo("0x27")]||{}),this[Qo("0x11")](Qo("0x14"),null),this[Qo("0x11")]("next",null),this[Qo("0x11")](Qo("0x24"),null),this[Qo("0x11")]("_saved",!1),this[Qo("0x2f")](Qo("0x16")),this[Qo("0x2f")](Qo("0x2"))}get[Qo("0x4")](){let t=this;for(;t[Qo("0x14")];)t=t[Qo("0x14")];return t}get[Qo("0x33")](){return!!this[Qo("0x24")]&&this.commentThread.length>0}get[Qo("0x6")](){return 0!=this[Qo("0x23")][Qo("0x1b")]&&6==Array[Qo("0xb")](this[Qo("0x23")])[0][Qo("0x1f")](":").length}get[Qo("0x28")](){return null!==this[Qo("0xe")]()}[Qo("0x21")](t){this[Qo("0x23")][Qo("0x17")](t)}[Qo("0x35")](){return Array.from(this[Qo("0x23")])}[Qo("0xf")](){return this[Qo("0x35")]()[Qo("0x36")]((t=>this._model.markers.get(t)))[Qo("0x1e")]((t=>t))}[Qo("0xe")](){return this.getMarkers()[0]||null}[Qo("0x1a")](){this._model[Qo("0x13")]((t=>{for(const e of this[Qo("0xf")]())t[Qo("0x12")](e)})),this[Qo("0x23")][Qo("0x38")]()}[Qo("0x12")](t){this[Qo("0x18")][Qo("0x13")]((e=>{e[Qo("0x12")](t)})),this[Qo("0x23")][Qo("0x31")](t)}[Qo("0x9")](t){const e=Qo("0xa")+this.type+":"+this[Qo("0x1d")]+":"+this.id+":"+this[Qo("0x25")].id+":"+Zo.getMultiRangeId();this[Qo("0x21")](e),this[Qo("0x18")].change((n=>{n.addMarker(e,{range:t,usingOperation:!0,affectsData:!0})}))}[Qo("0x15")](t){for(const e of this[Qo("0x1")]())if(e[Qo("0x2d")](t))return!0;return!1}[Qo("0x1")](){return this[Qo("0xf")]().map((t=>t[Qo("0x39")]()))}[Qo("0x0")](){return this[Qo("0x1")]()[Qo("0x20")](((t,e)=>[...t,...e[Qo("0x0")]()]),[])}getFirstRange(){var t;return(null===(t=this[Qo("0xe")]())||void 0===t?void 0:t[Qo("0x39")]())||null}getContainedElement(){const t=this[Qo("0x1")]();if(1!=t[Qo("0x2b")])return null;const e=t[0],n=e[Qo("0x29")][Qo("0x2a")],o=e[Qo("0x22")][Qo("0x30")];return n instanceof i.Element?n!=o?null:n:null}accept(){this._onAccept(this[Qo("0x1")](),this.data,this[Qo("0x27")]),this.removeMarkers()}[Qo("0x2")](){this[Qo("0x3")](this.getRanges(),this[Qo("0x10")],this[Qo("0x27")]),this[Qo("0x1a")]()}getAllAdjacentSuggestions(){const t=[];let e=this[Qo("0x4")];for(;e;)t[Qo("0x8")](e),e=e[Qo("0x32")];return t}[Qo("0x5")](t,e){const n=eo(this[Qo("0x27")]);_o(n,t,e),Go(n,this[Qo("0x27")])||(this.attributes=n,this[Qo("0x26")](n))}[Qo("0x7")](t){const e=eo(this[Qo("0x27")]);Xo(e,t),Go(e,this.attributes)||(this.attributes=e,this[Qo("0x26")](this[Qo("0x27")]))}toJSON(){return{id:this.id,type:this[Qo("0x1d")]?this[Qo("0x1c")]+":"+this[Qo("0x1d")]:this.type,authorId:this[Qo("0x25")].id,createdAt:this[Qo("0x19")],hasComments:this[Qo("0x33")],data:this[Qo("0x10")],attributes:this[Qo("0x27")]}}static getMultiRangeId(){return(0,e.uid)()[Qo("0xc")](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=["insertion","function","item","remove","_addDescriptionItems","_customCallbacks","text","_resolveDescriptionItems","length","removeObject","pop","_schema","type","normal","Container","get","removeEmptyContainer","_itemLabelsCallbacks","previousSibling","deletion","element","elementEnd","push","$1 $2","replace","skip","*Insert:* %0","matchingCallback","data","getFirstRange","getDescriptions","match","indexOf","*Remove:* %0","nextSibling","$text","EmptyContainer","_itemLabels","addEmptyContainer","REPLACE_TEXT","isEqual","_locale","quantity","set","name","addContainer","isInContent","start","*Merge:* %0","addObject","isEmpty","softBreak","$textProxy","getItemLabel","ELEMENT_SPACE","isObject","registerDescriptionCallback","add"];var es,ns;es=ts,ns=142,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class ss{constructor(t,e){this[os("0x25")]=[],this[os("0xb")]=new Map,this[os("0x31")]=[],this._schema=t,this[os("0xf")]=e}[os("0x4")](t){const e=[];for(let n=0;n<t[os("0x28")];n++){const o=t[n];if(!o[os("0x14")])continue;let s=!1;for(const t of this[os("0x25")]){const n=t(o);if(n){os("0x2c")in n&&e[os("0x36")](n),s=!0;break}}if(!s){this[os("0x24")](e,o);const s=t[n+1];if(s&&!o[os("0x3")]().end[os("0xe")](s.getFirstRange()[os("0x15")])){const t=e[e.length-1],n="insertion"==o[os("0x2c")]?os("0x1f"):"remove";t&&os("0x26")==t[os("0x2c")]&&(t[n]+="\n")}}}return this._resolveDescriptionItems(e)}[os("0x1e")](t){this[os("0x25")].push(t)}registerElementLabel(t,n,o=e.priorities[os("0x2d")]){os("0x21")==typeof t?(0,e.insertToPriorityArray)(this._itemLabelsCallbacks,{matchingCallback:t,label:n,priority:o}):this[os("0xb")][os("0x11")](t,n)}[os("0x1b")](t,e=1){let n;for(const e of this[os("0x31")])if(e[os("0x1")](t)){n=e.label;break}return n||(n=this[os("0xb")][os("0x2f")](t[os("0x12")])),n?n(e):1!==e?e+" "+t.name+"s":""+t[os("0x12")]}_addDescriptionItems(t,e){const n=e.getFirstRange().getWalker(),o="insertion"==e[os("0x2c")]?os("0x1f"):"remove";for(const e of n){const s=e[os("0x22")],r=t[t[os("0x28")]-1];if(s.is(os("0x1a")))r&&r[os("0x2c")][os("0x6")]("Container")>-1&&t[os("0x2a")](),r&&os("0x26")==r[os("0x2c")]?r[o]+=s[os("0x2")]:t[os("0x36")]({type:"text",add:os("0x1f")==o?s.data:"",remove:os("0x23")==o?s[os("0x2")]:""});else if(this[os("0x2b")][os("0x1d")](s)){const i=s;if(r&&r[os("0x2c")][os("0x6")](os("0x2e"))>-1&&t.pop(),os("0x35")==e[os("0x2c")])continue;r&&r[os("0x2c")]==o+"Object"&&r[os("0x34")][os("0x12")]==i[os("0x12")]?r[os("0x10")]++:t[os("0x36")]({type:o+"Object",element:i,quantity:1}),n[os("0x39")]((t=>!(os("0x35")==t[os("0x2c")]&&t.item==s)))}else if(this[os("0x2b")].checkChild(s,os("0x9"))||s.is("element",os("0x19"))){const n=s;if(os("0x1f")==o&&"elementStart"==e[os("0x2c")]||os("0x23")==o&&os("0x35")==e.type)continue;if(r&&-1==r.type[os("0x6")]("Container")){os("0x26")==r.type&&(r[o]+="\n");continue}let i;if(i=os("0x1f")==o?n[os("0x8")]&&!this[os("0x2b")][os("0x1d")](n.nextSibling)?n[os("0x8")]:null:n[os("0x32")]&&!this[os("0x2b")][os("0x1d")](n[os("0x32")])?n.previousSibling:null,n[os("0x18")]||i&&i[os("0x18")]){const e=i&&i[os("0x18")]?i:n;r&&r[os("0x2c")]==o+os("0xa")&&r[os("0x34")][os("0x12")]==e.name?r.quantity++:t[os("0x36")]({type:o+"EmptyContainer",element:e,quantity:1})}else t[os("0x36")]({type:o+"Container",element:n})}}}[os("0x27")](t){const e=this[os("0xf")],n=[];for(const o of t){switch(o.type){case os("0x26"):if(o.add=o[os("0x1f")][os("0x38")](/(\S)\u000A+(\S)/g,os("0x37"))[os("0x38")](/\u000A/g,""),o.remove=o.remove[os("0x38")](/(\S)\u000A+(\S)/g,os("0x37"))[os("0x38")](/\u000A/g,""),""!=o[os("0x1f")]&&""!=o[os("0x23")]){n[os("0x36")]({type:os("0x38"),content:Yo(e,os("0xd"),['"'+o.remove+'"','"'+o.add+'"'])});continue}if(null!=o[os("0x1f")][os("0x5")](/^ +$/)){n[os("0x36")]({type:os("0x20"),content:Yo(e,os("0x0"),Yo(e,os("0x1c"),o[os("0x1f")][os("0x28")]))});continue}if(null!=o[os("0x23")][os("0x5")](/^ +$/)){n[os("0x36")]({type:os("0x33"),content:Yo(e,os("0x7"),Yo(e,os("0x1c"),o[os("0x23")][os("0x28")]))});continue}if(""!=o[os("0x1f")]){n[os("0x36")]({type:os("0x20"),content:Yo(e,"*Insert:* %0",'"'+o[os("0x1f")]+'"')});continue}n[os("0x36")]({type:os("0x33"),content:Yo(e,os("0x7"),'"'+o.remove+'"')});continue;case os("0xc"):case os("0x17"):n.push({type:os("0x20"),content:Yo(e,os("0x0"),this[os("0x1b")](o.element,o[os("0x10")]))});continue;case os("0x30"):case os("0x29"):n.push({type:"deletion",content:Yo(e,os("0x7"),this[os("0x1b")](o[os("0x34")],o[os("0x10")]))});continue;case os("0x13"):n.push({type:os("0x20"),content:Yo(e,"*Split:* %0",this[os("0x1b")](o.element,o.quantity))});continue;case"removeContainer":n.push({type:os("0x33"),content:Yo(e,os("0x16"),this.getItemLabel(o.element,o[os("0x10")]))});continue}n[os("0x36")](o)}return n}}const rs=["center","AlignmentEditing","format","afterInit","plugins","commandName","left","markBlockFormat","alignment","document","editor","value","selection","TrackChangesEditing","locale","registerDescriptionCallback","getSelectedBlocks","FORMAT_ALIGN_TO_CENTER","change","schema","FORMAT_JUSTIFY_TEXT","right","justify","contentLanguageDirection","*Format:* %0","ltr","enableCommand","filter","model","FORMAT_ALIGN_TO_LEFT"];var is,xs;is=rs,xs=294,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x9")](){const t=this.editor,e=t.locale;if(!t[as("0xa")].has(as("0x7")))return;const n=t[as("0xa")].get(as("0x13"));n[as("0x2")]("alignment",((e,o={})=>{let s=o[as("0x11")];o.value||(s=as("0x1")===t[as("0x14")][as("0x1d")]?as("0xc"):as("0x1b"));const r=Array.from(this.editor[as("0x4")][as("0xf")][as("0x12")][as("0x16")]())[as("0x3")]((t=>function(t,e,n){const o=t.getAttribute(as("0xe"))||null;return e.checkAttribute(t,as("0xe"))&&n!=o}(t,this[as("0x10")][as("0x4")][as("0x19")],s)));t[as("0x4")][as("0x18")]((()=>{for(const t of r)n[as("0xd")](t,{commandName:as("0xe"),commandParams:[{value:s}]})}))})),n._descriptionFactory[as("0x15")]((t=>{const{data:n}=t;if(n&&as("0xe")==n[as("0xb")]){const t=n.commandParams[0][as("0x11")];return{type:as("0x8"),content:Yo(e,as("0x0"),function(t){switch(t){case as("0xc"):return Yo(e,as("0x5"));case"right":return Yo(e,"FORMAT_ALIGN_TO_RIGHT");case as("0x6"):return Yo(e,as("0x17"));case as("0x1c"):return Yo(e,as("0x1a"))}}(t))}}}))}}const ls=["getWalker","includes","listItem","addHighlight","get","isBlock","TrackChangesEditing","toViewPosition","nextSibling","ck-suggestion-marker--active","bindElementToMarker","parent","writer","hasAttribute","isLimit","markerName","markerRange","plugins","activeMarkers","item","isAtEnd","push","createUIElement","test","getAttribute","element","insert","previousPosition","elementEnd","schema","consumable","mapper","ck-suggestion-marker-","addClass","name"];var us,ds;us=ls,ds=412,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};function ms(t,e,n){const o=[];for(const s of e.getItems())s[gs("0x15")](t)&&o[gs("0x1d")](n.createRangeOn(s));return o}function fs(t){const e=[];if(t.is(gs("0x21"),gs("0xa"))){let n=t[gs("0x10")];for(;n&&n.is(gs("0x21"),gs("0xa"))&&n[gs("0x20")]("listIndent")>0;)e[gs("0x1d")](n),n=n[gs("0x10")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t[gs("0x19")][gs("0xc")](gs("0xe"));return(s,r,i)=>{if(!i[gs("0x3")][gs("0x1f")](r.markerRange,s[gs("0x7")]))return;const x=r[gs("0x18")][gs("0x8")](),a=r[gs("0x18")].start,c=t.model[gs("0x2")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[gs("0x1b")];d=d||c.isContent(e);const n=i[gs("0x4")].toViewElement(e);if(n&&n.getCustomProperty(gs("0xb")))return;gs("0x1")==t.type&&c[gs("0xd")](e)&&!c[gs("0x16")](e)&&(e[gs("0x10")]||a[gs("0x1c")]?l&&l[gs("0x13")]==e||(l=e,m(t[gs("0x0")]),g=!0):u=u||t[gs("0x0")])}function m(t){const s=i.writer[gs("0x1e")]("span",{class:gs("0x5")+e}),x=i[gs("0x4")][gs("0xf")](t);n&&o[gs("0x1a")][gs("0x9")](r[gs("0x17")])&&i[gs("0x14")][gs("0x6")](gs("0x11"),s),i[gs("0x14")][gs("0x22")](x,s),i[gs("0x4")][gs("0x12")](s,r[gs("0x17")])}d||g||!u||m(u)}}const ps=["markInlineFormat","FORMAT_SUPERSCRIPT","format","afterInit","FORMAT_BOLD","getRanges","subscript","model","FORMAT_UNDERLINE","underline","get","slice","UnderlineEditing","commandName","editor","ItalicEditing","document","*Remove format:* %0","commands","FORMAT_ITALIC","from","bold","superscript","forceValue","isCollapsed","value","plugins","FORMAT_STRIKETHROUGH","CodeEditing","StrikethroughEditing","code","commandParams","toLowerCase","enableCommand","BoldEditing","selection","locale","italic","*Format:* %0"];var bs,Es;bs=ps,Es=441,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=[_s("0x16"),_s("0x3"),_s("0x0"),_s("0x10"),_s("0x11"),"SubscriptEditing","SuperscriptEditing"];class Cs extends t.Plugin{[_s("0x1e")](){const t=this[_s("0x2")],e=t[_s("0x22")],n=t.plugins[_s("0x25")]("TrackChangesEditing"),o=t[_s("0x18")];for(const o of Ts){if(!t[_s("0xe")].has(o))continue;const s=o[_s("0x26")](0,-7)[_s("0x14")](),r=t[_s("0x6")][_s("0x25")](s);n[_s("0x15")](s,((t,o={})=>{const i=e[_s("0x4")][_s("0x17")];if(i[_s("0xc")])return void t(o);const x=void 0!==o[_s("0xb")]?o[_s("0xb")]:!r[_s("0xd")];e.change((()=>{const t=Array[_s("0x8")](i[_s("0x20")]());for(const o of t){const t=x?[o]:ms(s,o,e);for(const e of t)n[_s("0x1b")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n._descriptionFactory.registerDescriptionCallback((n=>{const{data:s}=n;if(s&&s[_s("0x1")]===t)return s[_s("0x13")][0][_s("0xb")]?{type:"format",content:Yo(o,_s("0x1a"),e)}:{type:_s("0x1d"),content:Yo(o,_s("0x5"),e)}}))}s(_s("0x9"),Yo(o,_s("0x1f"))),s(_s("0x19"),Yo(o,_s("0x7"))),s(_s("0x24"),Yo(o,_s("0x23"))),s(_s("0x12"),Yo(o,"FORMAT_CODE")),s("strikethrough",Yo(o,_s("0xf"))),s(_s("0x21"),Yo(o,"FORMAT_SUBSCRIPT")),s(_s("0xa"),Yo(o,_s("0x1c")))}}const ys=["TrackChangesEditing","model","blockQuote","plugins","document","change","checkChild","BlockQuoteEditing","parent","getSelectedBlocks","from","format","$root","get","commandName","ELEMENT_BLOCK_QUOTE","registerDescriptionCallback","name","forceValue","afterInit","filter","value","locale","*Remove format:* %0","schema","enableCommand","editor","markBlockFormat"];var ks,As;ks=ys,As=276,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return ys[t-=0]};class Rs extends t.Plugin{[vs("0x17")](){const t=this[vs("0x2")],e=t[vs("0x1a")];if(!t[vs("0x7")].has(vs("0xb")))return;const n=t.plugins[vs("0x11")](vs("0x4")),o=this[vs("0x2")].commands[vs("0x11")](vs("0x6"));n[vs("0x1")](vs("0x6"),((e,s={})=>{const r=this[vs("0x2")][vs("0x5")][vs("0x8")].selection,i=s&&void 0!==s[vs("0x16")]?s[vs("0x16")]:!o[vs("0x19")];let x=[];if(i){const e=Array[vs("0xe")](r[vs("0xd")]())[vs("0x18")]((t=>Ss(t)||function(t,e){const n=e[vs("0xa")](t.parent,vs("0x6")),o=e[vs("0xa")]([vs("0x10"),vs("0x6")],t);return n&&o}(t,this.editor[vs("0x5")][vs("0x0")])));x=S(e,t[vs("0x5")])}else{const e=Array.from(r[vs("0xd")]())[vs("0x18")]((t=>Ss(t)));x=S(e,t.model)}t[vs("0x5")][vs("0x9")]((()=>{for(const t of x)n[vs("0x3")](t,{commandName:vs("0x6"),commandParams:[{forceValue:i}]})}))})),n._descriptionFactory[vs("0x14")]((t=>{const{data:n}=t;if(n&&vs("0x6")==n[vs("0x12")]){const t=Yo(e,vs("0x13"));return n.commandParams[0].forceValue?{type:"format",content:Yo(e,"*Format:* %0",t)}:{type:vs("0xf"),content:Yo(e,vs("0x1b"),t)}}}))}}function Ss(t){return vs("0x6")==t[vs("0xc")][vs("0x15")]}const Is=["enableCommand","plugins","ckbox","afterInit","editor","get","commands"];var Ls,Ns;Ls=Is,Ns=157,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const Ms=function(t,e){return Is[t-=0]};class ws extends t.Plugin{[Ms("0x0")](){const t=this[Ms("0x1")];t[Ms("0x3")][Ms("0x2")](Ms("0x6"))&&t[Ms("0x5")][Ms("0x2")]("TrackChangesEditing")[Ms("0x4")](Ms("0x6"))}}const Os=["enableCommand","value","afterInit","change","document","has","blockName","format","find","indentCodeBlock","getSelectedBlocks","ELEMENT_CODE_BLOCK","get","formatBlock","model","selection","TrackChangesEditing","schema","commandParams","filter","from","registerDescriptionCallback","outdentCodeBlock","_descriptionFactory","forceValue","locale","*Remove format:* %0","language","parent","codeBlock","rootElement","CodeBlock","plugins","editor","isLimit"];var Fs,Ps;Fs=Os,Ps=326,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x1a")](){const t=this[Ds("0x16")];if(!t[Ds("0x15")][Ds("0x1d")](Ds("0x14")))return;const e=t[Ds("0x15")][Ds("0x1")](Ds("0x5")),n=t[Ds("0xe")],o=t.config[Ds("0x1")](Ds("0x12")).languages,s=t.commands.get(Ds("0x12"));e[Ds("0x18")](Ds("0x21")),e[Ds("0x18")](Ds("0xb")),e.enableCommand(Ds("0x12"),((n,r={})=>{const i=t[Ds("0x3")],x=t[Ds("0x3")][Ds("0x1c")][Ds("0x4")],a=r&&void 0!==r.forceValue?r[Ds("0xd")]:!s[Ds("0x19")];let c;r[Ds("0x10")]||(r[Ds("0x10")]=o[0][Ds("0x10")]),c=a?Array[Ds("0x9")](x[Ds("0x22")]())[Ds("0x8")]((t=>{return js(t)||(e=t,n=i[Ds("0x6")],!e.is(Ds("0x13"))&&!n[Ds("0x17")](e)&&n.checkChild(e[Ds("0x11")],"codeBlock"));var e,n})):Array[Ds("0x9")](x[Ds("0x22")]()).filter((t=>js(t)));const l=S(c,i);i[Ds("0x1b")]((()=>{for(const t of l)e.markBlockFormat(t,{commandName:Ds("0x12"),commandParams:[{...r,forceValue:a}],formatGroupId:Ds("0x1e")})}))})),e[Ds("0xc")].registerElementLabel("codeBlock",(t=>Yo(n,Ds("0x0"),t))),e[Ds("0xc")][Ds("0xa")]((t=>{const e=n.t,{type:s,data:r}=t;if(Ds("0x2")==s&&r&&"codeBlock"==r.commandName){const t=r[Ds("0x7")][0][Ds("0x10")],s=e(o[Ds("0x20")]((e=>e[Ds("0x10")]===t)).label);return r.commandParams[0][Ds("0xd")]?{type:Ds("0x1f"),content:Yo(n,"*Format:* %0",Yo(n,Ds("0x0"),1)+" ("+s+")")}:{type:Ds("0x1f"),content:Yo(n,Ds("0xf"),Yo(n,"ELEMENT_CODE_BLOCK",1))}}}))}}function js(t){return"codeBlock"==t.name}const Us=["has","TrackChangesEditing","CommentsEditing","addCommentThread","get","plugins","editor"];var Gs,Hs;Gs=Us,Hs=372,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const zs=function(t,e){return Us[t-=0]};class Ws extends t.Plugin{afterInit(){const t=this[zs("0x5")];t[zs("0x4")][zs("0x6")](zs("0x1"))&&t.plugins[zs("0x3")](zs("0x0")).enableCommand(zs("0x2"))}}var Vs=n(181);const Ks=["high","options","get","mapper","remove","showSuggestionHighlights","unit","batch","$graveyard","isCollapsed","fromRange","writer","modifySelection","addMarker:suggestion:deletion","setSelection","createSelection","document","editing","requires","end","init","forward","markerName","bind","getFirstRange","commands","TrackChangesEditing","removeMarker:suggestion:deletion","unlock","downcastDispatcher","detach","enqueueChange","buffer","delete","plugins","createRange","markerNameToElements","start","rootName","merge","root","uiElement","model","data","lock","editor","deleteForward","enableCommand"];var Xs,qs;Xs=Ks,qs=102,function(t){for(;--t;)Xs.push(Xs.shift())}(++qs);const $s=function(t,e){return Ks[t-=0]};class Js extends t.Plugin{static get[$s("0xc")](){return[Vs.Delete]}[$s("0xe")](){const t=this[$s("0x27")],e=t[$s("0x1c")][$s("0x2c")]($s("0x14"));e.enableCommand($s("0x1b"));const n=t[$s("0x13")][$s("0x2c")]($s("0x28"));e[$s("0x29")]($s("0x28"),((e,o={})=>{const s=t[$s("0x24")][$s("0x9")](t[$s("0x24")][$s("0xa")].selection);s[$s("0x3")]&&t[$s("0x24")][$s("0x6")](s,{direction:$s("0xf"),unit:o[$s("0x0")]});const r=s[$s("0x12")](),x=i.LiveRange[$s("0x4")](r);let a;e(o),a=$s("0x2")==x[$s("0x22")][$s("0x20")]?t[$s("0x24")][$s("0x1d")](r[$s("0x1f")]):t[$s("0x24")][$s("0x1d")](x.start,x[$s("0xd")]),x[$s("0x18")](),t[$s("0x24")][$s("0x19")](n[$s("0x1a")][$s("0x1")],(t=>{n[$s("0x1a")][$s("0x26")](),t[$s("0x8")](t[$s("0x1d")](a.end)),n[$s("0x1a")][$s("0x16")]()}))})),t[$s("0xb")][$s("0x17")].on("addMarker:suggestion:deletion",hs(t,$s("0x21")),{priority:$s("0x2a")}),t[$s("0x25")][$s("0x17")].on($s("0x7"),((e,n,o)=>{o[$s("0x2b")][$s("0x2f")]&&hs(t,$s("0x21"),{showActiveMarker:!1})[$s("0x11")](this)(e,n,o)}),{priority:"high"}),t[$s("0xb")][$s("0x17")].on($s("0x15"),((t,e,n)=>{const o=n[$s("0x2d")][$s("0x1e")](e[$s("0x10")]);if(o)for(const t of o)t.is($s("0x23"))&&(n.mapper.unbindElementFromMarkerName(t,e[$s("0x10")]),n[$s("0x5")][$s("0x2e")](t))}),{priority:"high"})}}const Qs=["selection","forceValue","value","indentList","registerElementLabel","after","numberedList","listIndent","bulletedList","format","multipleBlocks","end","commandName","length","splitListItemBefore","start","locale","previousSibling","commandParams","change","before","listType","schema","markMultiRangeBlockFormat","isObject","*Change to:* %0","splitListItemAfter","accept","_LIST","commands","enableCommand","push","from","parent","markBlockFormat","*Format:* insert into %0","getSelectedBlocks","ELEMENT_BULLETED_LIST","model","refresh","mergeListItemForward","outdentList","*Indent:* %0","*Format:* remove from %0","createPositionAt","nextSibling","editor","nodeAfter","isFirstBlockOfListItem","expandListBlocksToCompleteList","getRanges","containsItem","createRange","getFirstRange","document","getAttribute","*Outdent:* %0","execute","registerDescriptionCallback","get","plugins","DocumentListUtils","has","toUpperCase","documentList","TrackChangesEditing","listItemId","map","deletion","ELEMENT_LIST_ITEM","hasAttribute","ELEMENT_","_suggestionFactory","_descriptionFactory"];var Zs,Ys;Zs=Qs,Ys=489,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{afterInit(){const t=this[tr("0x1")];if(!t.plugins[tr("0x11")]("DocumentListEditing"))return;const e=t[tr("0x2d")],n=t[tr("0xf")][tr("0xe")](tr("0x14")),o=t[tr("0xf")][tr("0xe")](tr("0x10"));function s(e){return()=>{const s=t[tr("0x3a")].get(e);let r=Array[tr("0x3d")](t.model[tr("0x9")].selection[tr("0x41")]());if(a(e)){r=o[tr("0x4")](r);const t=[];for(const e of r)o[tr("0x3")](e)&&t.push(e);r=t}t[tr("0x43")][tr("0x30")]((()=>{n[tr("0x34")](r,{commandName:e,commandParams:[{forceValue:!s[tr("0x1f")]}],formatGroupId:tr("0x32")},[],tr("0x13"))}))}}function r(e){return()=>{const o=function(t){let e=Array[tr("0x3d")](t);const n=e.findIndex((t=>!t[tr("0x19")]("listItemId")));return n>-1&&(e=e.slice(0,n)),e}(t.model[tr("0x9")][tr("0x1d")][tr("0x41")]()),s=o[o[tr("0x2a")]-1],r=t[tr("0x43")][tr("0x33")][tr("0x35")](s)?tr("0x22"):tr("0x28"),i=t[tr("0x43")][tr("0x7")](t[tr("0x43")][tr("0x49")](o[0],"before"),t[tr("0x43")][tr("0x49")](s,r));t[tr("0x43")].change((()=>{n[tr("0x3f")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x32")},function(t){const e=new Set;for(const n of t){let t=n[tr("0x0")];for(;t&&t[tr("0xa")](tr("0x24"))>n.getAttribute(tr("0x24"));)e.add(t),t=t.nextSibling}return Array[tr("0x3d")](e)}(o))}))}}function x(e){return()=>{const o=t.model[tr("0x9")][tr("0x1d")].getSelectedBlocks().next().value,s=t[tr("0x43")][tr("0x49")](o,tr("0x31")),r=t[tr("0x43")][tr("0x49")](o,0),i=t.model[tr("0x7")](s,r);t.model[tr("0x30")]((()=>{n[tr("0x3f")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x32")})}))}}function a(e){const n=t[tr("0x3a")][tr("0xe")](tr("0x25"))[tr("0x1f")],o=t[tr("0x3a")][tr("0xe")]("numberedList")[tr("0x1f")];return"numberedList"===e?n:o}n[tr("0x3b")]("numberedList",s(tr("0x23"))),n.enableCommand(tr("0x25"),s(tr("0x25"))),n[tr("0x3b")](tr("0x20"),r(tr("0x20"))),n[tr("0x3b")](tr("0x46"),r(tr("0x46"))),n[tr("0x3b")]("splitListItemAfter",x(tr("0x37"))),n.enableCommand(tr("0x2b"),x(tr("0x2b"))),n[tr("0x1c")][tr("0x21")]((function(e){const n=!t[tr("0x43")].schema.isObject(e),o=e[tr("0x2e")],s=e[tr("0x0")],r=e.getAttribute(tr("0x15")),i=!o||o[tr("0xa")](tr("0x15"))!==r,x=!s||s[tr("0xa")](tr("0x15"))!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,"ELEMENT_LIST_ITEM",t))),n._descriptionFactory[tr("0xd")]((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n[tr("0x29")]){case tr("0x25"):r=n[tr("0x2f")][0][tr("0x1e")],i=a(n[tr("0x29")]),o=tr(r?"0x40":"0x48"),i&&(o="*Change to:* %0"),s={type:tr("0x26"),content:Yo(e,o,Yo(e,tr("0x42")))};break;case tr("0x23"):r=n[tr("0x2f")][0].forceValue,i=a(n.commandName),o=tr(r?"0x40":"0x48"),i&&(o=tr("0x36")),s={type:tr("0x26"),content:Yo(e,o,Yo(e,"ELEMENT_NUMBERED_LIST"))};break;case tr("0x20"):o=tr("0x47"),s={type:tr("0x26"),content:Yo(e,o,Yo(e,tr("0x18")))};break;case tr("0x46"):o=function(t){const e=t[tr("0x8")]();let n=e[tr("0x2c")][tr("0x2")];for(;n&&e[tr("0x6")](n);){if(n[tr("0xa")](tr("0x24"))>0)return!1;n=n[tr("0x0")]}return!0}(t)?Yo(e,"*Format:* remove from %0",Yo(e,function(t){const e=t.getFirstRange()[tr("0x2c")][tr("0x2")];return tr("0x1a")+e[tr("0xa")](tr("0x32"))[tr("0x12")]()+tr("0x39")}(t))):Yo(e,tr("0xb"),Yo(e,tr("0x18"))),s={type:tr("0x26"),content:o};break;case"mergeListItemBackward":case tr("0x45"):!1===n[tr("0x27")]&&(o="*Merge:* %0",s={type:tr("0x17"),content:Yo(e,o,Yo(e,tr("0x18")))})}return s})),n[tr("0x1b")].registerCustomCallback("formatBlock",tr("0x13"),tr("0x38"),(function(e,n){const o=[];for(let n of e)n[tr("0x2c")][tr("0x2")]===n[tr("0x28")][tr("0x3e")]&&(n=t[tr("0x43")].createRange(t[tr("0x43")][tr("0x49")](n[tr("0x2c")][tr("0x2")],0))),o[tr("0x3c")](n);t[tr("0x43")][tr("0x30")]((e=>{const s=t[tr("0x43")][tr("0x9")][tr("0x1d")],r=Array.from(s[tr("0x5")]())[tr("0x16")]((t=>i.LiveRange.fromRange(t)));e.setSelection(o),t[tr("0x3a")][tr("0xe")](n[tr("0x29")])[tr("0x44")](),n[tr("0x2f")][tr("0x3c")]({forceDefaultExecution:!0}),t[tr("0xc")](n[tr("0x29")],...n[tr("0x2f")]),e.setSelection(r);for(const t of r)t.detach()}))}))}}var nr=n(331);const or=["TrackChangesEditing","split","editing","enter","enableCommand","setSelection","parent","unbindElementFromMarkerName","model","markerName","end","ck-suggestion-marker-split","high","data","downcastDispatcher","createPositionAt","enterBlock","bind","get","fire","markInsertion","remove","addMarker:suggestion:insertion","hasClass","createRange","plugins","removeMarker:suggestion:insertion","detach","writer","change","init","afterExecute","commands","getFirstPosition","options"];var sr,rr;sr=or,rr=257,function(t){for(;--t;)sr.push(sr.shift())}(++rr);const ir=function(t,e){return or[t-=0]};class xr extends t.Plugin{static get requires(){return[nr.Enter]}[ir("0x12")](){const t=this.editor,e=t[ir("0xd")][ir("0x6")](ir("0x17")),n=t[ir("0x14")].get(ir("0x1a"));e[ir("0x1b")](ir("0x1a"),(()=>{t[ir("0x1f")][ir("0x11")]((o=>{const s=t[ir("0x1f")].document.selection,r=s[ir("0x15")](),x=i.LiveRange.fromRange(s.getFirstRange());if(n[ir("0x4")](o)){const n=t[ir("0x1f")][ir("0x3")](r[ir("0x1d")].nextSibling,0),s=o[ir("0xc")](r,n);e[ir("0x8")](s)}else o[ir("0x1c")](o[ir("0xc")](x[ir("0x21")]));x[ir("0xf")](),n[ir("0x7")](ir("0x13"),{writer:o})}))})),t[ir("0x19")].downcastDispatcher.on(ir("0xa"),hs(t,ir("0x18")),{priority:ir("0x0")}),t[ir("0x19")][ir("0x2")].on(ir("0xe"),((t,e,n)=>{const o=n.mapper.markerNameToElements(e[ir("0x20")]);if(o)for(const t of o)t[ir("0xb")](ir("0x22"))&&(n.mapper[ir("0x1e")](t,e.markerName),n[ir("0x10")][ir("0x9")](t))}),{priority:ir("0x0")}),t[ir("0x1")][ir("0x2")].on(ir("0xa"),((e,n,o)=>{o[ir("0x16")].showSuggestionHighlights&&hs(t,ir("0x18"),{showActiveMarker:!1})[ir("0x5")](this)(e,n,o)}),{priority:ir("0x0")})}}const ar=["findPrevious","plugins","TrackChangesEditing","getRange","get","model","has","handleFindCommand","getIntersection","afterInit","createPositionAt","createRange","editor","FindAndReplaceUtils","_isInDeletionRange","start","suggestion:deletion","end","string","replace","enableCommand"];var cr,lr;cr=ar,lr=352,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const ur=function(t,e){return ar[t-=0]};class dr extends t.Plugin{[ur("0xe")](){if(!this[ur("0x11")].plugins[ur("0xb")]("FindAndReplaceEditing"))return;const t=this[ur("0x11")][ur("0x6")].get(ur("0x7"));t[ur("0x4")]("find",this[ur("0xc")].bind(this)),t[ur("0x4")]("findNext"),t[ur("0x4")](ur("0x5")),t[ur("0x4")](ur("0x3")),t[ur("0x4")]("replaceAll")}[ur("0xc")](t,e,n={}){const o=this[ur("0x11")].plugins[ur("0x9")](ur("0x12"));void 0!==n&&t((t=>(ur("0x2")==typeof e?o.findByTextCallback(e,n):e)(t).filter((e=>!1===this[ur("0x13")](e,t.item)))),n)}[ur("0x13")](t,e){const n=this[ur("0x11")][ur("0xa")][ur("0x10")](this.editor[ur("0xa")].createPositionAt(e,t[ur("0x14")]),this.editor[ur("0xa")][ur("0xf")](e,t[ur("0x1")]));for(const t of this[ur("0x11")][ur("0xa")].markers.getMarkersGroup(ur("0x0")))if(null!==n[ur("0xd")](t[ur("0x8")]()))return!0;return!1}}const gr=["fontBackgroundColor","has","get","TrackChangesEditing","enableCommand","*Reset font background color*","*Set font family:* %0","*Set font size:* %0","*Reset font family*","fontSize.options","config","plugins","find","isCollapsed","markInlineFormat","fontSize","editor","change","fontColor","model","value","label","document","afterInit","FontFamilyEditing","commandName","fontColor.colors","toLowerCase","normalizeSizeOptions","registerDescriptionCallback","commandParams","format","FontSize","from","fontBackgroundColor.colors","getRanges","*Set font color:* %0","FontColorEditing","_enableCommand","fontFamily","title","FontBackgroundColorEditing","_descriptionFactory"];var mr,fr;mr=gr,fr=483,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:"FontSizeEditing",commandName:"fontSize"},{pluginName:hr("0xe"),commandName:hr("0x1d")},{pluginName:hr("0x1b"),commandName:hr("0x8")},{pluginName:hr("0x1f"),commandName:hr("0x21")}];class br extends t.Plugin{[hr("0xd")](){const t=this[hr("0x6")].locale;for(const{pluginName:t,commandName:e}of pr)this.editor[hr("0x1")][hr("0x22")](t)&&this[hr("0x1c")](e);this.editor[hr("0x1")][hr("0x23")](hr("0x24"))[hr("0x20")][hr("0x13")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hr("0x5")==o.commandName){const e=o[hr("0x14")][0][hr("0xa")];if(e){const o=n(this[hr("0x6")][hr("0x1")][hr("0x23")](hr("0x16"))[hr("0x12")](this[hr("0x6")][hr("0x0")][hr("0x23")](hr("0x2a")))[hr("0x2")]((t=>t[hr("0x9")]==e))[hr("0x1e")])[hr("0x11")]();return{type:"format",content:Yo(t,hr("0x28"),o)}}return{type:hr("0x15"),content:Yo(t,"*Reset font size*")}}if(hr("0x1d")==o[hr("0xf")]){const e=o.commandParams[0][hr("0xa")];return e?{type:"format",content:Yo(t,hr("0x27"),e)}:{type:hr("0x15"),content:Yo(t,hr("0x29"))}}if(hr("0x8")==o[hr("0xf")]){const e=o[hr("0x14")][0][hr("0xa")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x6")].config[hr("0x23")](hr("0x10")))[hr("0x2")]((t=>t[hr("0x9")]==e));let r=e,i="";return o&&(r=o[hr("0xb")],i=n(r).toLowerCase()),{type:hr("0x15"),content:Yo(t,hr("0x1a"),i).trim(),color:{value:e,title:i||r}}}return{type:hr("0x15"),content:Yo(t,"*Reset font color*")}}if(hr("0x21")==o[hr("0xf")]){const e=o[hr("0x14")][0].value;if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x6")][hr("0x0")][hr("0x23")](hr("0x18")))[hr("0x2")]((t=>t[hr("0x9")]==e));let r=e,i="";return o&&(r=o.label,i=n(r)[hr("0x11")]()),{type:hr("0x15"),content:Yo(t,"*Set font background color:* %0",i).trim(),color:{value:e,title:i||r}}}return{type:hr("0x15"),content:Yo(t,hr("0x26"))}}}}))}_enableCommand(t){const e=this[hr("0x6")];e[hr("0x1")][hr("0x23")](hr("0x24"))[hr("0x25")](t,((n,o={})=>{const s=e[hr("0x9")][hr("0xc")].selection,r=o.value;s[hr("0x3")]?n(o):e[hr("0x9")][hr("0x7")]((()=>{const n=Array[hr("0x17")](s[hr("0x19")]());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0x9")]);for(const o of n)e[hr("0x1")][hr("0x23")](hr("0x24"))[hr("0x4")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["commands","schema","selection","isCollapsed","TrackChangesEditing","plugins","normalizeSizeOptions","entries","find","getAttributeProperties","fontColor","config","*Remove all formatting*","getItems","locale","get","getFirstPosition","getLastPosition","markInlineFormat","fontBackgroundColor","getRanges","boolean","createSelection","isBlock","afterInit","format","modifySelection","_descriptionFactory","push","editor","length","word","backward","copyFormat","label","document","join","isFormatting","commandName","toLowerCase","charAt","fontSize.options","commandParams","pasteFormat","registerDescriptionCallback"];var _r,Tr;_r=Er,Tr=236,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{[Cr("0xd")](){const t=this[Cr("0x12")],n=t.model,o=n[Cr("0x18")][Cr("0x24")],s=t[Cr("0x27")][Cr("0x4")](Cr("0x26")),r=t[Cr("0x3")],i=t[Cr("0x22")][Cr("0x4")](Cr("0x16")),x=t[Cr("0x22")][Cr("0x4")](Cr("0x20"));i&&x&&(s.enableCommand(Cr("0x20"),((t,r={})=>{const i=r;n.change((()=>{const t=Array.from(o.getRanges()),r=o[Cr("0x25")]?[kr(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t.getAttributes()){const t=e[Cr("0x2b")](n);t&&t[Cr("0x1a")]&&(yield n)}}(t,n));for(const e of t[Cr("0x9")]())for(const t of e[Cr("0x2")]())!n[Cr("0xc")](t)&&o(t)&&(yield t);for(const e of t.getSelectedBlocks())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cr("0x23")]))||0!==Object.keys(i)[Cr("0x13")])for(const t of r)s[Cr("0x7")](t,{commandName:Cr("0x20"),commandParams:[i]})}))})),s[Cr("0x10")][Cr("0x21")]((e=>{const{data:n}=e;if(n&&Cr("0x20")===n[Cr("0x1b")]){const e=[],o=n[Cr("0x1f")][0];for(const[n,s]of Object[Cr("0x29")](o))e[Cr("0x11")](Ar(t,n,s));return e[Cr("0x13")]?{type:Cr("0xe"),content:Yo(r,"*Set format to:* %0",e[Cr("0x19")](", "))}:{type:Cr("0xe"),content:Yo(r,Cr("0x1"))}}})),t.plugins[Cr("0x4")]("TrackChangesEditing").enableCommand(Cr("0x16")))}}function kr(t,e){const n=t[Cr("0xb")](e);t[Cr("0xf")](n,{unit:Cr("0x14"),direction:Cr("0x15")});const o=n[Cr("0x5")]();t[Cr("0xf")](n,{unit:Cr("0x14"),direction:"forward"});const s=n[Cr("0x6")]();return t.createRange(o,s)}function Ar(t,e,n){const o=t[Cr("0x3")].t,r=e.split(/(?=[A-Z])/)[Cr("0x19")](" "),i=o(r[Cr("0x1d")](0).toUpperCase()+r.slice(1))[Cr("0x1c")]();if(Cr("0xa")==typeof n)return i;if(Cr("0x2c")===e||Cr("0x8")===e){const e=(0,s.normalizeColorOptions)(t[Cr("0x0")][Cr("0x4")]("fontColor.colors"))[Cr("0x2a")]((t=>t.model==n));return i+" ("+(e?o(e[Cr("0x17")]).toLowerCase():n)+")"}if("fontSize"===e&&isNaN(parseFloat(n))){const e=t[Cr("0x27")][Cr("0x4")]("FontSize")[Cr("0x28")](t[Cr("0x0")][Cr("0x4")](Cr("0x1e"))).find((t=>t.model==n));return i+" ("+(e?o(e.title)[Cr("0x1c")]():n)+")"}return i+" ("+n+")"}const vr=["checkChild","_descriptionFactory","title","HeadingEditing","formatBlock","afterInit","ELEMENT_HEADING_CUSTOM","has","from","format","document","filter","get","find","match","registerDescriptionCallback","commandName","model","isObject","markBlockFormat","getSelectedBlocks","TrackChangesEditing","selection","name","value","editor","heading.options","ELEMENT_HEADING","paragraph","plugins","registerElementLabel","*Change to:* %0","parent","heading"];var Rr,Sr;Rr=vr,Sr=284,function(t){for(;--t;)Rr.push(Rr.shift())}(++Sr);const Ir=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{[Ir("0x1b")](){const t=this.editor,e=t.locale,n=t.config.get(Ir("0xe"));if(!t[Ir("0x11")][Ir("0x1d")](Ir("0x19")))return;const o=t[Ir("0x11")][Ir("0x0")](Ir("0x9"));o.enableCommand(Ir("0x15"),((e,n)=>{const s=n[Ir("0xc")],r=Array[Ir("0x1e")](this[Ir("0xd")][Ir("0x5")][Ir("0x20")][Ir("0xa")][Ir("0x8")]())[Ir("0x21")]((t=>{return e=t,n=s,(o=this.editor[Ir("0x5")].schema)[Ir("0x16")](e[Ir("0x14")],n)&&!o[Ir("0x6")](e)&&e[Ir("0xb")]!=n;var e,n,o}));t.model.change((()=>{for(const t of r)o[Ir("0x7")](t,{commandName:Ir("0x15"),commandParams:[n],formatGroupId:"blockName"},fs(t))}))}));for(const t of n)Ir("0x10")!=t[Ir("0x5")]&&o[Ir("0x17")][Ir("0x12")](t[Ir("0x5")],(e=>{const n=Nr(t.model);return null!==n?s(e,n):r(e,t[Ir("0x18")])}));function s(t,n){return Yo(e,Ir("0xf"),[t,n])}function r(t,n){return Yo(e,Ir("0x1c"),[t,n])}o[Ir("0x17")][Ir("0x3")]((t=>{const{type:o,data:i}=t;if(Ir("0x1a")==o&&i&&"heading"==i[Ir("0x4")]){const t=i.commandParams[0][Ir("0xc")],o=Nr(t);if(null!==o)return{type:Ir("0x1f"),content:Yo(e,Ir("0x13"),s(1,o))};const x=n[Ir("0x1")]((e=>e[Ir("0x5")]===t))[Ir("0x18")];return{type:Ir("0x1f"),content:Yo(e,Ir("0x13"),r(1,x))}}}))}}function Nr(t){const e=t[Ir("0x2")](/^heading(\d+)$/);return e?e[1]:null}const Mr=["format","config","commandName","TrackChangesEditing","HighlightEditing","isCollapsed","getAttribute","*Set highlight:* %0","toLowerCase","markInlineFormat","enableCommand","getFirstPosition","highlight.options","highlight","title","value","push","createRange","color","get","backward","model","getRanges","change","hasAttribute","item","plugins","formatInline","locale","_descriptionFactory","find","has","registerDescriptionCallback"];var wr,Or;wr=Mr,Or=311,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Fr=function(t,e){return Mr[t-=0]};class Pr extends t.Plugin{afterInit(){const t=this.editor;if(!t.plugins[Fr("0x11")](Fr("0x17")))return;const e=t[Fr("0xc")].get(Fr("0x16"));e[Fr("0x1d")](Fr("0x20"),((n,o={})=>{const s=t[Fr("0x7")].document.selection,r=s.getAttribute(Fr("0x20"));let i=o[Fr("0x1")],x=[];if(s[Fr("0x18")]){const e=s[Fr("0x1e")]();if(!s[Fr("0xa")](Fr("0x20")))return void n(o);{const n=t=>t[Fr("0xb")][Fr("0x19")](Fr("0x20"))===r,o=e.getLastMatchingPosition(n,{direction:Fr("0x6")}),s=e.getLastMatchingPosition(n);x=[t.model[Fr("0x3")](o,s)],i==r&&(i=null)}}else for(const e of s[Fr("0x8")]())i?x.push(e):x[Fr("0x2")](...ms(Fr("0x20"),e,t[Fr("0x7")]));t[Fr("0x7")][Fr("0x9")]((()=>{for(const t of x)e[Fr("0x1c")](t,{commandName:"highlight",commandParams:[{value:i}]})}))}));const n=t[Fr("0xe")];e[Fr("0xf")][Fr("0x12")]((e=>{const{type:o,data:s}=e;if(Fr("0xd")==o&&s&&Fr("0x20")==s[Fr("0x15")]){const e=n.t,o=s.commandParams[0][Fr("0x1")];if(o){const s=t[Fr("0x14")][Fr("0x5")](Fr("0x1f"))[Fr("0x10")]((t=>t.model==o)),r=e(s[Fr("0x0")])[Fr("0x1b")]();return{type:Fr("0x13"),content:Yo(n,Fr("0x1a"),r),color:{value:s[Fr("0x4")],title:s[Fr("0x0")]}}}return{type:Fr("0x13"),content:Yo(n,"*Remove highlight*",Yo(n,"FORMAT_HIGHLIGHT"))}}}))}}const Dr=["TrackChangesEditing","createContainerElement","createEmptyElement","afterInit","editor","has","elementToStructure","plugins","horizontalLine","ELEMENT_HORIZONTAL_LINE","registerElementLabel","addClass","dataDowncast","get","_descriptionFactory","ck-horizontal-line","for","conversion","locale","insert"];var Br,jr;Br=Dr,jr=336,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0x7")](){const t=this[Ur("0x8")];if(!t.plugins[Ur("0x9")]("HorizontalLineEditing"))return;t[Ur("0xb")][Ur("0x11")](Ur("0x4")).enableCommand(Ur("0xc"));const e=t.plugins[Ur("0x11")](Ur("0x4")),n=t[Ur("0x2")];e[Ur("0x12")][Ur("0xe")](Ur("0xc"),(t=>Yo(n,Ur("0xd"),t))),t[Ur("0x1")][Ur("0x0")](Ur("0x10"))[Ur("0xa")]({model:Ur("0xc"),view:(t,{writer:e,options:n})=>{if(!n.showSuggestionHighlights)return null;const o=e[Ur("0x5")]("div"),s=e[Ur("0x6")]("hr");return e[Ur("0xf")](Ur("0x13"),o),e[Ur("0x3")](e.createPositionAt(o,0),s),o},converterPriority:"high"})}}const Hr=["editor","change","rawHtml","rawHtmlApi","value","get","commandName","HtmlEmbed","getCustomProperty","registerDescriptionCallback","model","afterInit","_descriptionFactory","enableCommand","TrackChangesEditing","view","htmlEmbed","markBlockFormat","ELEMENT_HTML_EMBED","element","*Change %0 content*","cancel","plugins","selection"];var zr,Wr;zr=Hr,Wr=384,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Vr("0xb")](){const t=this[Vr("0x0")];if(!t[Vr("0x16")].has(Vr("0x7")))return;const e=t[Vr("0x16")][Vr("0x5")](Vr("0xe")),n=t.locale,o=t.editing[Vr("0xf")].document[Vr("0x17")];e._descriptionFactory.registerElementLabel(Vr("0x2"),(t=>Yo(n,Vr("0x12"),t))),t[Vr("0x16")][Vr("0x5")](Vr("0xe"))[Vr("0xd")]("htmlEmbed",((n,s)=>{const r=t[Vr("0xa")],i=r.document.selection;r[Vr("0x1")]((()=>{const t=function(t){const e=t.getSelectedElement();return e&&e.is(Vr("0x13"),"rawHtml")?t.getSelectedElement():null}(i);if(!t)return void n(null);const r=t.getAttribute(Vr("0x4"))||"";void 0!==s&&s!==r&&(e[Vr("0x11")](t,{commandName:Vr("0x10"),commandParams:[s]}),o.getSelectedElement()[Vr("0x8")](Vr("0x3"))[Vr("0x15")]())}))})),e[Vr("0xc")][Vr("0x9")]((t=>{const{data:e}=t;if(e&&"htmlEmbed"==e[Vr("0x6")]){const t=Yo(n,Vr("0x12"));return{type:"format",content:Yo(n,Vr("0x14"),t)}}}))}}const Xr=["convertBlockImageToInline","*Set image width:* %0","ImageInlineEditing","element","commandName","formatInline","model","side","getSuggestions","removeObject","hasSuggestion","isEqual","findIndex","imageBlock","nodeAfter","suggestion","shouldConvertImageType","*Format:* %0","commandReversedParams","isOwn","Block image to inline image","convertInlineImageToBlock","_findSuggestions","_descriptionFactory","registerCustomCallback","end","imageStylePostApply","previous","newValue","name","plugins","has","getSuggestionCallback","getFirstRange","type","imageTypeInline","ImageEditing","TrackChangesEditing","_splitMarkerName","value","insertImage","markBlockFormat","nodeBefore","commandParams","toNext","imageCaption","ELEMENT_INLINE_IMAGE","getNearestSelectionRange","find","accept","start","chain","subType","schema","getCaptionFromImageModelElement","resizeImage","alt","refresh","newRange","backward","next","enableCommand","discard","document","formatBlock","ELEMENT_IMAGE","_suggestionFactory","createRangeOn","markInsertion","isBefore","join","ImageTextAlternativeEditing","forEach","filter","author","ELEMENT_CAPTION","isInContent","editor","get","selection","ImageCaptionUtils","isCollapsed","afterInit","imageStyle","length","registerElementLabel","*Set image text alternative:* %0","discardSuggestion","title","FORMAT_SIDE_IMAGE","imageStylePreApply","hasAttribute","uploadImage","createRange","getAttribute","getContainedElement","getSuggestion","isInlineImage","ImageStyleEditing","commands","ImageBlockEditing","getChangedMarkers","imageTextAlternative","getClosestSelectedImageElement","forward","ImageUtils","registerDescriptionCallback","change","caption","insertion","head","isIntersecting","ImageUploadEditing","format","normalizedStyles","width","isBlockImage"];var qr,$r;qr=Xr,$r=192,function(t){for(;--t;)qr.push(qr.shift())}(++$r);const Jr=function(t,e){return Xr[t-=0]};class Qr extends t.Plugin{[Jr("0x7")](){const t=this[Jr("0x2")];if(!t[Jr("0x48")][Jr("0x49")](Jr("0x4e")))return;const n=t.plugins[Jr("0x3")](Jr("0x4f")),o=t[Jr("0x48")][Jr("0x3")](Jr("0x1e")),s={},r=t.locale;if(n[Jr("0x67")](Jr("0x52")),n._descriptionFactory[Jr("0xa")](Jr("0x37"),(t=>Yo(r,Jr("0x6b"),t))),n[Jr("0x41")][Jr("0xa")]("imageInline",(t=>Yo(r,Jr("0x58"),t))),n[Jr("0x41")][Jr("0xa")](Jr("0x21"),(()=>Yo(r,Jr("0x0")))),t[Jr("0x48")][Jr("0x49")](Jr("0x25"))&&n[Jr("0x67")](Jr("0x11")),t[Jr("0x48")][Jr("0x49")](Jr("0x19"))&&t[Jr("0x48")][Jr("0x49")](Jr("0x2c"))&&(n[Jr("0x67")](Jr("0x4d"),((e,s)=>{const r=o[Jr("0x1c")](t[Jr("0x30")].document[Jr("0x4")]);t[Jr("0x30")][Jr("0x20")]((()=>{n[Jr("0x53")](r,{commandName:Jr("0x4d"),commandParams:[s]},[],Jr("0x2a"))}))})),n.enableCommand("imageTypeBlock",((e,s)=>{t.model[Jr("0x20")]((r=>{let x=o.getClosestSelectedImageElement(t[Jr("0x30")].document[Jr("0x4")]),a=r.createRangeOn(x);const c=i.LivePosition.fromPosition(a[Jr("0x5c")],"toPrevious"),l=i.LivePosition.fromPosition(a[Jr("0x43")],Jr("0x56"));n.forceDefaultExecution((()=>e(s))),x=o.getClosestSelectedImageElement(t[Jr("0x30")][Jr("0x69")][Jr("0x4")]),a=r[Jr("0x6d")](x);const u=r.createRange(c,l);c.detach(),l.detach(),n.markBlockFormat(x,{commandName:Jr("0x4d"),commandParams:[]},[],Jr("0x3f")),u[Jr("0x5c")].isBefore(a[Jr("0x5c")])&&n[Jr("0x6e")](r[Jr("0x12")](u.start,a[Jr("0x5c")]),Jr("0x3f")),a.end[Jr("0x6f")](u[Jr("0x43")])&&n[Jr("0x6e")](r[Jr("0x12")](a.end,u.end),Jr("0x3f"))}))})),n[Jr("0x6c")].registerCustomCallback("formatBlock",Jr("0x3f"),Jr("0x70"),(()=>!1)),n[Jr("0x6c")][Jr("0x42")](Jr("0x6a"),Jr("0x3f"),"accept",(()=>!1)),n[Jr("0x6c")][Jr("0x42")](Jr("0x6a"),Jr("0x3f"),Jr("0x68"),n[Jr("0x6c")].getSuggestionCallback("formatBlock","",Jr("0x5b"))),n[Jr("0x6c")].registerCustomCallback(Jr("0x22"),Jr("0x3f"),"join",(()=>!1)),n[Jr("0x6c")][Jr("0x42")](Jr("0x22"),Jr("0x3f"),Jr("0x68"),(([e])=>{const o=n[Jr("0x6c")][Jr("0x4a")](Jr("0x22"),"",Jr("0x68"));let s=e[Jr("0x5c")],r=e[Jr("0x43")];const i=t[Jr("0x30")][Jr("0x5f")][Jr("0x59")](s,Jr("0x65")),x=t[Jr("0x30")][Jr("0x5f")][Jr("0x59")](r,Jr("0x1d"));i[Jr("0x6")]&&(s=i[Jr("0x5c")]),x.isCollapsed&&(r=x[Jr("0x43")]),o([t[Jr("0x30")][Jr("0x12")](s,r)])})),n[Jr("0x6c")][Jr("0x42")](Jr("0x6a"),Jr("0x3f"),Jr("0x5d"),c),n[Jr("0x6c")][Jr("0x42")]("insertion",Jr("0x3f"),Jr("0x5d"),c)),t[Jr("0x48")][Jr("0x49")]("ImageCaptionEditing")&&(n[Jr("0x67")]("toggleImageCaption",((e,s)=>{const r=t.plugins[Jr("0x3")](Jr("0x5"));let i=o[Jr("0x1c")](t[Jr("0x30")][Jr("0x69")].selection),x=r[Jr("0x60")](i);t.model[Jr("0x20")]((()=>{if(x)return void n.markDeletion(t[Jr("0x30")][Jr("0x6d")](x));const a=o[Jr("0x29")](i);e(s),i=o[Jr("0x1c")](t[Jr("0x30")].document.selection),x=r[Jr("0x60")](i),n[Jr("0x6e")](t[Jr("0x30")][Jr("0x6d")](x),a?null:Jr("0x57"))}))})),n[Jr("0x6c")].registerCustomCallback(Jr("0x22"),Jr("0x57"),Jr("0x5d"),c)),t[Jr("0x48")][Jr("0x49")](Jr("0x17"))){n.enableCommand(Jr("0x8"),((s,r)=>{const i=t.plugins[Jr("0x3")]("Users").me,x=t[Jr("0x18")][Jr("0x3")](Jr("0x8"));let a=o[Jr("0x1c")](t[Jr("0x30")][Jr("0x69")][Jr("0x4")]),c=t[Jr("0x30")][Jr("0x6d")](a),l=x.value;if(l==r[Jr("0x51")])return;const u={commandName:Jr("0x8"),commandParams:[r],formatGroupId:(0,e.uid)()};t[Jr("0x30")][Jr("0x20")]((()=>{if(n[Jr("0x32")]()[Jr("0x73")]((t=>t[Jr("0x1")]&&i==t[Jr("0x74")]&&(Jr("0x6a")==t[Jr("0x4c")]||Jr("0x2f")==t.type)&&("imageStylePreApply"==t[Jr("0x5e")]||Jr("0x44")==t.subType)&&t.getFirstRange()[Jr("0x35")](c)))[Jr("0x72")]((t=>n[Jr("0xc")](t[Jr("0x23")]))),a=o.getClosestSelectedImageElement(t[Jr("0x30")][Jr("0x69")][Jr("0x4")]),c=t[Jr("0x30")].createRangeOn(a),x[Jr("0x63")](),t[Jr("0x18")][Jr("0x3")](Jr("0x4d")).refresh(),t.commands[Jr("0x3")]("imageTypeBlock")[Jr("0x63")](),l=x[Jr("0x51")],l!=r[Jr("0x51")])return o[Jr("0x16")](a)&&x[Jr("0x3a")](r[Jr("0x51")],a)?(s(r),a=o[Jr("0x1c")](t.model[Jr("0x69")][Jr("0x4")]),void n.markBlockFormat(a,{...u,commandReversedParams:[{value:l||null}]},[],Jr("0xf"))):void(o[Jr("0x29")](a)?n[Jr("0x53")](a,u,[],Jr("0x44")):n.markInlineFormat(c,u,Jr("0x44")))}))}));for(const e of t[Jr("0x48")].get("ImageStyleEditing")[Jr("0x27")])s[e[Jr("0x47")]]=e[Jr("0xd")].toLowerCase();n[Jr("0x6c")][Jr("0x42")](Jr("0x6a"),"imageStylePreApply",Jr("0x70"),(()=>!1)),n[Jr("0x6c")][Jr("0x42")](Jr("0x6a"),Jr("0x44"),"join",(()=>!1)),n[Jr("0x6c")][Jr("0x42")](Jr("0x2f"),Jr("0x44"),Jr("0x70"),(()=>!1)),n[Jr("0x6c")][Jr("0x42")](Jr("0x6a"),Jr("0xf"),Jr("0x5b"),(()=>!1)),n[Jr("0x6c")][Jr("0x42")]("formatBlock",Jr("0xf"),Jr("0x68"),((t,e)=>{n[Jr("0x6c")][Jr("0x4a")](Jr("0x6a"),"",Jr("0x5b"))(t,{commandName:e[Jr("0x2e")],commandParams:e[Jr("0x3c")]})})),n._suggestionFactory[Jr("0x42")](Jr("0x6a"),Jr("0xf"),Jr("0x5d"),c)}const x=[{type:"formatBlock",subType:Jr("0xf")},{type:Jr("0x22"),subType:Jr("0x57")},{type:Jr("0x6a"),subType:Jr("0x3f")},{type:Jr("0x22"),subType:"convertInlineImageToBlock"}];function a(t,e){const s=x[Jr("0x36")]((({type:e,subType:n})=>t[Jr("0x4c")]==e&&t[Jr("0x5e")]==n)),r=x.findIndex((({type:t,subType:n})=>e[Jr("0x4c")]==t&&e[Jr("0x5e")]==n));if(s<0||r<0)return!1;const i=t[Jr("0x4b")](),a=e[Jr("0x4b")]();if((0==s||1==s)&&2==r&&i[Jr("0x24")](a))return!0;if(2==s&&3==r){const t=n[Jr("0x40")](i,"insertion")[Jr("0x73")]((({suggestion:t,meta:e})=>e[Jr("0x3d")]&&Jr("0x3f")==t.subType));if(t[Jr("0x9")]>1&&a[Jr("0x43")].isEqual(i[Jr("0x5c")]))return!0;if(1==t[Jr("0x9")]&&(i[Jr("0x5c")][Jr("0x35")](a[Jr("0x43")])||i[Jr("0x43")][Jr("0x35")](a[Jr("0x5c")])))return!0}if(3==s&&3==r&&i[Jr("0x5c")].isBefore(a[Jr("0x5c")])){const t=i.end[Jr("0x38")],e=a[Jr("0x5c")][Jr("0x54")];return o[Jr("0x29")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t.model[Jr("0x69")].registerPostFixer((()=>{let e=!1;const s=Array.from(t[Jr("0x30")][Jr("0x69")].differ[Jr("0x1a")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[Jr("0x50")](t);if(Jr("0x39")==s&&n[Jr("0x34")](a)){if(Jr("0x6a")==i&&(Jr("0xf")==x||Jr("0x44")==x)){const t=n[Jr("0x15")](a);if(r[Jr("0x64")]){const s=t[Jr("0x4b")]()[Jr("0x14")]();if(o[Jr("0x29")](s))continue;n[Jr("0xc")](t),e=!0}}if(Jr("0x22")==i&&Jr("0x57")==x&&!r[Jr("0x64")]){const t=n[Jr("0x15")](a);t[Jr("0x66")]&&t[Jr("0x66")][Jr("0x1")]&&(n.discardSuggestion(t.next),e=!0)}}}return e})),t[Jr("0x48")][Jr("0x49")]("ImageResize")&&n[Jr("0x67")](Jr("0x61"),((e,s)=>{const r=o[Jr("0x1c")](t[Jr("0x30")].document[Jr("0x4")]);r[Jr("0x13")]("width")!=s.width&&t[Jr("0x30")][Jr("0x20")]((()=>{n[Jr("0x53")](r,{commandName:Jr("0x61"),commandParams:[s]})}))})),t[Jr("0x48")][Jr("0x49")](Jr("0x71"))&&n.enableCommand(Jr("0x1b"),((e,s)=>{const r=o[Jr("0x1c")](t.model[Jr("0x69")][Jr("0x4")]);(r[Jr("0x10")](Jr("0x62"))?r[Jr("0x13")](Jr("0x62")):"")!=s[Jr("0x46")]&&t.model[Jr("0x20")]((()=>{n[Jr("0x53")](r,{commandName:Jr("0x1b"),commandParams:[s]})}))})),n._descriptionFactory.registerDescriptionCallback((t=>{if(x[Jr("0x5a")]((({type:e,subType:n})=>t.type==e&&t[Jr("0x5e")]==n)))return t[Jr("0x45")]?{}:void 0})),n[Jr("0x41")][Jr("0x1f")]((t=>{if(Jr("0x22")==t[Jr("0x4c")]||"deletion"==t[Jr("0x4c")]){const e=t.getContainedElement();if(e&&e.is(Jr("0x2d"),"caption"))return{type:Jr("0x22")==t[Jr("0x4c")]?"addObject":Jr("0x33"),element:e,quantity:1}}})),n[Jr("0x41")][Jr("0x1f")]((t=>Jr("0x6a")==t[Jr("0x4c")]&&"convertInlineImageToBlock"==t[Jr("0x5e")]?{type:Jr("0x26"),content:"Inline image to block image"}:Jr("0x6a")==t[Jr("0x4c")]&&Jr("0x2a")==t[Jr("0x5e")]?{type:Jr("0x26"),content:Jr("0x3e")}:void 0)),n[Jr("0x41")][Jr("0x1f")]((t=>{const{data:e}=t;if(e){if(Jr("0x8")==e[Jr("0x2e")]){const t=e[Jr("0x55")][0][Jr("0x51")];return n=Jr("0x31")===t?Yo(r,Jr("0xe")):s[t]||t,{type:Jr("0x26"),content:Yo(r,Jr("0x3b"),n)}}if(Jr("0x1b")==e[Jr("0x2e")]){const t=e[Jr("0x55")][0][Jr("0x46")];return t?{type:Jr("0x26"),content:Yo(r,Jr("0xb"),'"'+t+'"')}:{type:Jr("0x26"),content:Yo(r,"*Remove image text alternative*")}}if(Jr("0x61")==e[Jr("0x2e")]){const t=e.commandParams[0][Jr("0x28")];return t?{type:Jr("0x26"),content:Yo(r,Jr("0x2b"),t)}:{type:Jr("0x26"),content:Yo(r,"*Reset image width*")}}}var n}))}}const Zr=["selection","afterInit","discard","_suggestionFactory","source","commandName","handleSuggestionDescription","locale","registerCustomCallback","accept","_descriptionFactory","getAttribute","getSuggestionCallback","has","model","getSelectedElement","author","enableCommand","replaceImageSource","ImageEditing","*Format:* replace image URL","editor","change","getContainedElement","registerDescriptionCallback","get","formatBlock","getSuggestions","plugins","handleReplaceImageCommand"];var Yr,ti;Yr=Zr,ti=343,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{[ei("0x12")](){if(!this[ei("0x8")].plugins[ei("0x0")](ei("0x6")))return;const t=this[ei("0x8")][ei("0xf")][ei("0xc")]("TrackChangesEditing");t[ei("0x4")]("replaceImageSource",((t,e)=>this[ei("0x10")](t,e))),t[ei("0x14")][ei("0x19")]("formatBlock","replaceImageSource",ei("0x1a"),t[ei("0x14")].getSuggestionCallback(ei("0xd"),null,ei("0x13"))),t[ei("0x14")][ei("0x19")](ei("0xd"),ei("0x5"),ei("0x13"),t[ei("0x14")][ei("0x1d")](ei("0xd"),null,"accept")),t[ei("0x1b")][ei("0xb")]((t=>this[ei("0x17")](t)))}[ei("0x10")](t,e){const n=this[ei("0x8")][ei("0xf")][ei("0xc")]("TrackChangesEditing"),o=this.editor[ei("0x1")].document[ei("0x11")][ei("0x2")]();this[ei("0x8")][ei("0x1")][ei("0x9")]((()=>{let s=o[ei("0x1c")]("src");const r=this[ei("0x8")][ei("0xf")].get("Users").me;for(const t of n[ei("0xe")]({skipNotAttached:!0})){const e=t[ei("0xa")]();if(ei("0x5")===t.subType&&e===o){t[ei("0x3")]!==r&&t[ei("0x13")](),s=t.data.commandParams[0][ei("0x15")];break}}t(e),n.markBlockFormat(o,{commandName:"replaceImageSource",commandParams:[{source:s}]},[],"replaceImageSource")}))}[ei("0x17")](t){const{data:e}=t;if(e&&"replaceImageSource"===e[ei("0x16")]){const t=ei("0x7");return{type:"format",content:Yo(this[ei("0x8")][ei("0x18")],t)}}}}const oi=["Users","trackChanges","listenTo","enableCommand","afterInit","value","plugins","forEach","importWord","bind","commands","high","_handleImportedData","lowest","get","track_changes","_trackChangesValueDuringImport","TrackChangesEditing","_trackChangesExecuted","dataInsert","execute","editor","_setSuggestionData"];var si,ri;si=oi,ri=241,function(t){for(;--t;)si.push(si.shift())}(++ri);const ii=function(t,e){return oi[t-=0]};class xi extends t.Plugin{constructor(t){super(t),this._trackChangesValueDuringImport=!1,this[ii("0x7")]=!1}[ii("0x10")](){const t=this[ii("0xa")],e=t[ii("0x16")][ii("0x3")](ii("0x14")),n=t[ii("0x16")][ii("0x3")](ii("0xd"));e&&(e.on(ii("0x9"),((t,[,e])=>{this[ii("0x5")]=n[ii("0x11")],e.collaboration_features[ii("0x4")]=!this[ii("0x5")]}),{priority:ii("0x0")}),this[ii("0xe")](e,ii("0x8"),this[ii("0x1")][ii("0x15")](this)),this.listenTo(e,ii("0x8"),(()=>{this[ii("0x7")]&&(n[ii("0x9")](),this[ii("0x7")]=!1)}),{priority:ii("0x2")}),t.plugins[ii("0x3")](ii("0x6"))[ii("0xf")](ii("0x14")))}_handleImportedData(t,e){const{suggestions:n}=e,o=this[ii("0xa")][ii("0x16")].get(ii("0xd")),s=o[ii("0x11")];this[ii("0x5")]!==s&&(o.execute(),this[ii("0x7")]=!0),n&&n[ii("0x13")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[ii("0xa")][ii("0x12")][ii("0x3")](ii("0xc")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:"importWord"}}};this[ii("0xa")][ii("0x12")][ii("0x3")](ii("0x6"))[ii("0xb")](s)}))}}const ai=["*Outdent:* %0","model","indentBlock","get","plugins","outdent","locale","from","has","*Indent:* %0","markBlockFormat","enableCommand","indent","_descriptionFactory","TrackChangesEditing","afterInit","getItemLabel","document","getSelectedBlocks","outdentBlock","commandName","editor","checkAttribute","schema","format","IndentEditing"];var ci,li;ci=ai,li=131,function(t){for(;--t;)ci.push(ci.shift())}(++li);const ui=function(t,e){return ai[t-=0]};class di extends t.Plugin{[ui("0xe")](){const t=this[ui("0x14")],e=t[ui("0x3")][ui("0x2")](ui("0xd"));t[ui("0x3")].has(ui("0x18"))&&(e[ui("0xa")](ui("0xb")),e[ui("0xa")](ui("0x4")));const n=t[ui("0x5")];if(t.plugins[ui("0x7")]("IndentBlock")){for(const n of[ui("0x1"),ui("0x12")])e[ui("0xa")](n,(()=>{const o=Array[ui("0x6")](this.editor[ui("0x0")][ui("0x10")].selection[ui("0x11")]()).filter((t=>this.editor[ui("0x0")][ui("0x16")][ui("0x15")](t,"blockIndent")));t[ui("0x0")].change((()=>{for(const t of o)e[ui("0x9")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:ui("0x1")})}))}));e[ui("0xc")].registerDescriptionCallback((t=>{const{data:o}=t;if(!o)return;if(ui("0x1")!=o[ui("0x13")]&&ui("0x12")!=o.commandName)return;const s=t.getItems()[0],r=e._descriptionFactory[ui("0xf")](s);return"indentBlock"==o[ui("0x13")]?{type:ui("0x17"),content:Yo(n,ui("0x8"),r)}:ui("0x12")==o[ui("0x13")]?{type:ui("0x17"),content:Yo(n,ui("0x19"),r)}:void 0}))}}}var gi,mi,fi=["TrackChangesEditing","editor"];gi=fi,mi=283,function(t){for(;--t;)gi.push(gi.shift())}(++mi);var hi=function(t,e){return fi[t-=0]};class pi extends t.Plugin{static get requires(){return[Vs.Input]}init(){this[hi("0x0")].plugins.get(hi("0x1")).enableCommand("input")}}const bi=["document","model","linkHref","plugins","unlink","registerDescriptionCallback","format","get","afterInit","*Set link:* %0","change","enableCommand","link","getAttribute","TrackChangesEditing","markInlineFormat","commandName","getFirstPosition","locale","getFirstRange","commandParams","getRanges","*Remove link*","isCollapsed","LinkEditing"];var Ei,_i;Ei=bi,_i=392,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{[Ti("0x10")](){const t=this.editor;if(!t[Ti("0xb")].has(Ti("0x7")))return;const e=t[Ti("0xb")][Ti("0xf")](Ti("0x16"));e[Ti("0x13")]("link",((n,o)=>{const s=t[Ti("0x9")].document.selection;let r=[];if(s[Ti("0x6")]){if(!s.hasAttribute(Ti("0xa")))return void n(o);{const e=(0,Vs.findAttributeRange)(s.getFirstPosition(),Ti("0xa"),s[Ti("0x15")](Ti("0xa")),t.model);r=[e]}}else r=Array.from(s[Ti("0x4")]());t.model[Ti("0x12")]((()=>{for(const t of r)e.markInlineFormat(t,{commandName:Ti("0x14"),commandParams:[o]})}))})),e[Ti("0x13")](Ti("0xc"),(()=>{const n=this.editor[Ti("0x9")],o=n[Ti("0x8")].selection;n[Ti("0x12")]((()=>{let n=[];n=o.isCollapsed?[(0,Vs.findAttributeRange)(o[Ti("0x0")](),Ti("0xa"),o[Ti("0x15")](Ti("0xa")),t.model)]:ms(Ti("0xa"),o[Ti("0x2")](),t[Ti("0x9")]);for(const t of n)e[Ti("0x17")](t,{commandName:Ti("0xc"),commandParams:[]})}))})),e._descriptionFactory[Ti("0xd")]((e=>{const{data:n}=e,o=t[Ti("0x1")];if(n){if(Ti("0x14")==n[Ti("0x18")]){const t=n[Ti("0x3")][0];return{type:Ti("0xe"),content:Yo(o,Ti("0x11"),'"'+t+'"')}}return"unlink"==n[Ti("0x18")]?{type:Ti("0xe"),content:Yo(o,Ti("0x5"))}:void 0}}))}}const yi=["change","checkTodoList","_selectedElements","before","slice","*Change to:* %0","add","listIndent","has","plugins","schema","todoList","from","todo","commandName","*Indent:* %0","blockName","model","registerDescriptionCallback","isObject","List","listType","format","value","nextSibling","commandParams","getSelectedBlocks","markBlockFormat","registerElementLabel","ELEMENT_TODO_LIST","*Uncheck item*","forceValue","get","outdentList","numberedList","locale","*Check item*","commands","TodoListEditing","ELEMENT_LIST_ITEM","element","selection","name","afterInit","enableCommand","_descriptionFactory","replace","getAttribute","previousSibling","checkChild","bulletedList","document","todoListChecked","filter","listItem","indentList","createPositionAt"];var ki,Ai;ki=yi,Ai=345,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0x28")](){const t=this.editor,e=t[vi("0x20")];if(!t[vi("0x6")][vi("0x5")]("ListEditing"))return;const n=t[vi("0x6")][vi("0x1d")]("TrackChangesEditing"),o=t[vi("0x6")][vi("0x5")](vi("0x23"));function s(e){return()=>{const o=t[vi("0xe")][vi("0x30")][vi("0x26")],s=t[vi("0x22")][vi("0x1d")](e);if(s.value)return void t.execute("paragraph",{});const r=e[vi("0x1")](0,-4),i=function(t,e,n){let o=Array[vi("0x9")](t)[vi("0x32")]((t=>{return e=t,(o=n)[vi("0x2e")](e.parent,vi("0x33"))&&!o[vi("0x10")](e);var e,o}));o=o[vi("0x32")]((t=>!t.is("element",vi("0x33"))||t.getAttribute(vi("0x12"))!=e));const s=new Set;for(const t of o)t.is(vi("0x25"),vi("0x33"))?s[vi("0x3")](Si(t)):s[vi("0x3")](t);return Array[vi("0x9")](s)}(o.getSelectedBlocks(),r,t[vi("0xe")][vi("0x7")]);t[vi("0xe")][vi("0x36")]((()=>{for(const t of i)n[vi("0x18")](t,{commandName:e,commandParams:[{forceValue:!s.value}],formatGroupId:vi("0xd")},Ii(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[vi("0x9")](t);const n=e.findIndex((t=>vi("0x33")!=t[vi("0x27")]));return n>-1&&(e=e[vi("0x1")](0,n)),e}(t[vi("0xe")][vi("0x30")][vi("0x26")][vi("0x17")]()),s=t[vi("0xe")].createRange(t[vi("0xe")].createPositionAt(o[0],vi("0x0")),t[vi("0xe")][vi("0x35")](o[o.length-1],"end"));t.model[vi("0x36")]((()=>{n[vi("0x18")](s,{commandName:e,commandParams:[],formatGroupId:vi("0x4")},function(t){const e=new Set;for(const n of t){let t=n[vi("0x15")];for(;t&&t[vi("0x2c")](vi("0x4"))>n[vi("0x2c")](vi("0x4"));)e[vi("0x3")](t),t=t[vi("0x15")]}return Array[vi("0x9")](e)}(o))}))}}n[vi("0x29")](vi("0x1f"),s(vi("0x1f"))),n[vi("0x29")](vi("0x2f"),s(vi("0x2f"))),o&&n[vi("0x29")](vi("0x8"),s(vi("0x8"))),n[vi("0x29")](vi("0x34"),r(vi("0x34"))),n[vi("0x29")]("outdentList",r(vi("0x1e"))),o&&n[vi("0x29")]("checkTodoList",(()=>{const e=t[vi("0x22")][vi("0x1d")]("checkTodoList"),o=Array[vi("0x9")](e[vi("0x38")]);o.filter((t=>t.getAttribute(vi("0x31"))!=e[vi("0x14")])),t[vi("0xe")][vi("0x36")]((()=>{for(const t of o)n[vi("0x18")](t,{commandName:vi("0x37"),commandParams:[{forceValue:!e[vi("0x14")]}]})}))})),n._descriptionFactory[vi("0x19")]("listItem",(t=>Yo(e,vi("0x24"),t))),n[vi("0x2a")][vi("0xf")]((t=>{const{data:n}=t;if(n){if(vi("0x1f")==n.commandName||vi("0x2f")==n[vi("0xb")]||"todoList"==n.commandName)switch(n[vi("0xb")][vi("0x2b")](vi("0x11"),"")){case"bulleted":return o(Yo(e,"ELEMENT_BULLETED_LIST"));case"numbered":return o(Yo(e,"ELEMENT_NUMBERED_LIST"));case vi("0xa"):return o(Yo(e,vi("0x1a")))}if(vi("0x34")==n[vi("0xb")])return{type:vi("0x13"),content:Yo(e,vi("0xc"),Yo(e,vi("0x24")))};if("outdentList"==n.commandName)return{type:vi("0x13"),content:Yo(e,"*Outdent:* %0",Yo(e,vi("0x24")))};if(vi("0x37")==n[vi("0xb")])return n[vi("0x16")][0][vi("0x1c")]?{type:"format",content:Yo(e,vi("0x21"))}:{type:vi("0x13"),content:Yo(e,vi("0x1b"))}}function o(t){return{type:vi("0x13"),content:Yo(e,vi("0x2"),t)}}}))}}function Si(t){const e=t[vi("0x2c")]("listIndent");if(0==e)return t;let n=t;for(;t[vi("0x2d")]&&t[vi("0x2d")].is(vi("0x25"),vi("0x33"));){const o=t.previousSibling[vi("0x2c")](vi("0x4"));if(o==e)n=t[vi("0x2d")];else if(o<e)break;t=t[vi("0x2d")]}return n}function Ii(t){const e=[];if(t.is(vi("0x25"),vi("0x33"))&&t[vi("0x2c")]("listIndent")>0){let n=t[vi("0x15")];for(;n&&"listItem"==n[vi("0x27")]&&n[vi("0x2c")](vi("0x4"))==t[vi("0x2c")](vi("0x4"));)e.push(n),n=n[vi("0x15")]}return e}const Li=["getFirstPosition","getSiblingNodes","length","bind","type","editor","createRange","push","plugins","*Format:* set order to regular","listStart","createPositionAt","has","parent","ELEMENT_","reversed","filter","document","ListPropertiesEditing","getListTypeFromListStyleType","list.properties","map","get","handleListStyleCommand","commandParams","listType","toUpperCase","getAttribute","model","enableCommand","getSelectedBlocks","format","TrackChangesEditing","from","config","handleDescriptions","registerDescriptionCallback","listReversed","handleListReversedCommand","listStyle","_getTranslationKeyForListStyle","_getSuggestionBlocks","markMultiRangeBlockFormat","_getSuggestionBlocksForListStyle","change","ListUtils","locale","listItem","startIndex","selection","styles","afterInit","getLastPosition","numbered","handleListStartCommand","forward","backward","element"];var Ni,Mi;Ni=Li,Mi=213,function(t){for(;--t;)Ni.push(Ni.shift())}(++Mi);const wi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{[wi("0xc")](){if(!this[wi("0x18")].plugins[wi("0x1f")](wi("0x25")))return;const t=this[wi("0x18")][wi("0x35")].get(wi("0x27")),e=this[wi("0x18")][wi("0x1b")][wi("0x29")](wi("0x33"));t[wi("0xb")]&&e[wi("0x30")](wi("0x0"),this[wi("0x2a")][wi("0x16")](this)),t[wi("0x22")]&&e[wi("0x30")](wi("0x38"),this[wi("0x39")][wi("0x16")](this)),t.startIndex&&e.enableCommand(wi("0x1d"),this.handleListStartCommand[wi("0x16")](this)),e._descriptionFactory[wi("0x37")](this[wi("0x36")][wi("0x16")](this))}[wi("0x2a")](t,e={}){const n=this.editor.plugins[wi("0x29")](wi("0x33")),o=this[wi("0x4")]();this[wi("0x18")][wi("0x2f")].change((()=>{n[wi("0x3")](o,{commandName:"listStyle",commandParams:[{type:e[wi("0x17")]}],formatGroupId:"listStyle"})}))}handleListReversedCommand(t,e={}){const n=this[wi("0x18")][wi("0x1b")][wi("0x29")]("TrackChangesEditing"),o=this[wi("0x2")]((t=>t.is(wi("0x12"),wi("0x8"))&&wi("0xe")===t[wi("0x2e")]("listType")));if(o.length<1)return;const s=o[wi("0x28")]((t=>this.editor.model[wi("0x19")](this[wi("0x18")][wi("0x2f")][wi("0x1e")](t,"before"),this[wi("0x18")][wi("0x2f")][wi("0x1e")](t,0))));this[wi("0x18")][wi("0x2f")][wi("0x5")]((()=>{n[wi("0x3")](s,{commandName:wi("0x38"),commandParams:[{reversed:e[wi("0x22")]}],formatGroupId:"listReversed"})}))}[wi("0xf")](t,e={}){const n=this[wi("0x18")][wi("0x1b")][wi("0x29")](wi("0x33")),o=this[wi("0x2")]((t=>t.is(wi("0x12"),wi("0x8"))&&wi("0xe")===t.getAttribute(wi("0x2c"))));if(o[wi("0x15")]<1)return;const s=o[wi("0x28")]((t=>this[wi("0x18")][wi("0x2f")][wi("0x19")](this[wi("0x18")].model[wi("0x1e")](t,"before"),this[wi("0x18")][wi("0x2f")][wi("0x1e")](t,0))));this[wi("0x18")][wi("0x2f")][wi("0x5")]((()=>{n[wi("0x3")](s,{commandName:wi("0x1d"),commandParams:[{startIndex:e[wi("0x9")]}],formatGroupId:wi("0x1d")})}))}handleDescriptions(t){const e=this.editor[wi("0x7")],{data:n}=t;if(!n)return;let o,s;switch(n.commandName){case wi("0x0"):o="*Change to:* %0",s={type:wi("0x32"),content:Yo(e,o,Yo(e,this._getTranslationKeyForListStyle(n.commandParams[0][wi("0x17")])))};break;case wi("0x38"):o=n[wi("0x2b")][0].reversed?"*Format:* set order to reversed":wi("0x1c"),s={type:"format",content:Yo(e,o)};break;case wi("0x1d"):o="*Format:* set start index to %0",s={type:"format",content:Yo(e,o,n[wi("0x2b")][0][wi("0x9")])}}return s}[wi("0x4")](){var t,e,n,o;const s=this[wi("0x18")][wi("0x1b")][wi("0x29")](wi("0x6"));let r=Array[wi("0x34")](this[wi("0x18")][wi("0x2f")][wi("0x24")][wi("0xa")][wi("0x31")]());return(null===(t=r[0])||void 0===t?void 0:t.is(wi("0x12"),"listItem"))&&r.unshift(...s[wi("0x14")](this[wi("0x18")].model[wi("0x24")][wi("0xa")][wi("0x13")](),wi("0x11"))),(null===(e=r[r[wi("0x15")]-1])||void 0===e?void 0:e.is(wi("0x12"),wi("0x8")))&&r[wi("0x1a")](...s[wi("0x14")](this[wi("0x18")].model[wi("0x24")][wi("0xa")][wi("0xd")](),"forward")),r=[...new Set(r)],(null===(o=null===(n=this[wi("0x18")].model[wi("0x24")][wi("0xa")][wi("0x13")]())||void 0===n?void 0:n[wi("0x20")])||void 0===o?void 0:o.is(wi("0x12"),wi("0x8")))&&(r=r.filter((t=>t.is(wi("0x12"),wi("0x8"))))),r}[wi("0x2")](t){const e=this[wi("0x18")].plugins[wi("0x29")](wi("0x6"));let n=Array[wi("0x34")](this.editor[wi("0x2f")][wi("0x24")][wi("0xa")][wi("0x31")]())[wi("0x23")](t)[wi("0x28")]((t=>{const n=this.editor.model[wi("0x1e")](t,0);return[...e[wi("0x14")](n,wi("0x11")),...e[wi("0x14")](n,wi("0x10"))]})).flat();return n=[...new Set(n)],n}[wi("0x1")](t){return wi("0x21")+this[wi("0x18")][wi("0x1b")].get(wi("0x6"))[wi("0x26")](t)[wi("0x2d")]()+"_LIST_"+t[wi("0x2d")]().replace(/-/g,"_")}}const Fi=["locale","editor","has","plugins","enableCommand","conversion","registerElementLabel","high","for","_descriptionFactory","media","stop","options","TrackChangesEditing","showSuggestionHighlights","ELEMENT_MEDIA","elementToElement","MediaEmbedEditing","createEmptyElement","div","get","downcastDispatcher"];var Pi,Di;Pi=Fi,Di=200,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{afterInit(){const t=this[Bi("0x15")];if(!t[Bi("0x1")][Bi("0x0")](Bi("0xf")))return;const e=t[Bi("0x1")][Bi("0x12")](Bi("0xb")),n=t[Bi("0x14")];e[Bi("0x2")]("mediaEmbed"),e[Bi("0x7")][Bi("0x4")](Bi("0x8"),(t=>Yo(n,Bi("0xd"),t))),t[Bi("0x3")][Bi("0x6")]("dataDowncast")[Bi("0xe")]({model:Bi("0x8"),view:(t,{writer:e,options:n})=>{if(n.showSuggestionHighlights)return e[Bi("0x10")](Bi("0x11"))},converterPriority:Bi("0x5")}),t.data[Bi("0x13")].on("attribute:url:media",((t,e,n)=>{n[Bi("0xa")][Bi("0xc")]&&t[Bi("0x9")]()}),{priority:Bi("0x5")})}}const Ui=["editor","enableCommand","has","plugins","afterInit","MentionEditing","TrackChangesEditing"];var Gi,Hi;Gi=Ui,Hi=104,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{[zi("0x5")](){const t=this[zi("0x1")];t.plugins[zi("0x3")](zi("0x6"))&&t[zi("0x4")].get(zi("0x0"))[zi("0x2")]("mention")}}const Vi=["registerElementLabel","plugins","TrackChangesEditing","locale","PageBreakEditing","has","ELEMENT_PAGE_BREAK","pageBreak","editor","enableCommand","get"];var Ki,Xi;Ki=Vi,Xi=247,function(t){for(;--t;)Ki.push(Ki.shift())}(++Xi);const qi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{afterInit(){const t=this[qi("0x3")];if(!t[qi("0x7")][qi("0x0")](qi("0xa")))return;t[qi("0x7")][qi("0x5")](qi("0x8"))[qi("0x4")](qi("0x2"));const e=t[qi("0x7")][qi("0x5")](qi("0x8")),n=t[qi("0x9")];e._descriptionFactory[qi("0x6")]("pageBreak",(t=>Yo(n,qi("0x1"),t)))}}const Ji=["$text","plugins","isBlock","consume","name","filter","addMarker:suggestion:insertion","showSuggestionHighlights","format","get","span","Paragraph","registerDescriptionCallback","getSelectedBlocks","insertion","consumable","options","start","downcastDispatcher","editing","highest","_descriptionFactory","paragraph","ck-suggestion-marker--active","afterInit","markerRange","toViewPosition","nodeAfter","insertParagraph","getFirstRange","editor","parent","getItemLabel","markerName","selection","markBlockFormat","schema","enableCommand","isLimit","insert","blockName","change","TrackChangesEditing","checkChild","writer","model","registerElementLabel","end","activeMarkers","ELEMENT_PARAGRAPH","document","addClass","mapper"];var Qi,Zi;Qi=Ji,Zi=173,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{[Yi("0xa")](){const t=this[Yi("0x10")];if(!t.plugins.has(Yi("0x32")))return;const e=t.locale,n=t.plugins.get(Yi("0x1c"));n._descriptionFactory[Yi("0x20")](Yi("0x8"),(t=>Yo(e,Yi("0x23"),t))),n[Yi("0x17")](Yi("0x8"),((e,o={})=>{const s=t[Yi("0x1f")][Yi("0x24")],r=o[Yi("0x14")]||s[Yi("0x14")],i=Array.from(r[Yi("0x34")]())[Yi("0x2c")]((t=>{return e=t,(n=this[Yi("0x10")][Yi("0x1f")][Yi("0x16")])[Yi("0x1d")](e[Yi("0x11")],"paragraph")&&!n.isObject(e)&&Yi("0x8")!=e[Yi("0x2b")];var e,n}));t[Yi("0x1f")][Yi("0x1b")]((()=>{for(const t of i)n[Yi("0x15")](t,{commandName:Yi("0x8"),commandParams:[],formatGroupId:Yi("0x1a")},fs(t))}))})),n._descriptionFactory.registerDescriptionCallback((t=>{const{data:n}=t;if(n&&Yi("0x8")==n.commandName)return{type:Yi("0x2f"),content:Yo(e,"*Change to:* %0",Yo(e,Yi("0x23")))}})),n[Yi("0x17")](Yi("0xe")),t[Yi("0x5")][Yi("0x4")].on(Yi("0x2d"),ex(t),{priority:Yi("0x6")}),t.data[Yi("0x4")].on("addMarker:suggestion:insertion",((e,n,o)=>{o[Yi("0x2")][Yi("0x2e")]&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:Yi("0x6")});const o=n[Yi("0x7")];o[Yi("0x33")]((n=>{if(Yi("0x0")!==n.type)return;const{start:s,end:r}=n[Yi("0xf")]();if(!s.isTouching(r)||!s[Yi("0xd")])return;const i=t.model[Yi("0x16")],x=s[Yi("0xd")];return i[Yi("0x29")](x)&&!i[Yi("0x18")](x)&&i.checkChild(x,Yi("0x27"))?{type:"insertion",content:Yo(e,"*Insert:* %0",o[Yi("0x12")](x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Yi("0x28")][Yi("0x30")](Yi("0x1c")),i=o[Yi("0xb")][Yi("0x3")],x=o[Yi("0xb")][Yi("0x21")],a=t[Yi("0x1f")][Yi("0x16")];if(!i.isTouching(x)||!i[Yi("0xd")])return;const c=i[Yi("0xd")];if(a[Yi("0x29")](c)&&!a[Yi("0x18")](c)&&a[Yi("0x1d")](c,Yi("0x27"))){if(!s[Yi("0x1")][Yi("0x2a")](o[Yi("0xb")],n.name))return;const t=s[Yi("0x1e")].createUIElement(Yi("0x31"),{class:"ck-suggestion-marker-split"}),i=s[Yi("0x26")][Yi("0xc")](x);e&&r[Yi("0x22")].includes(o[Yi("0x13")])&&s[Yi("0x1e")][Yi("0x25")](Yi("0x9"),t),s[Yi("0x1e")][Yi("0x19")](i,t),s[Yi("0x26")].bindElementToMarker(t,o[Yi("0x13")])}}}const nx=["getAttributeProperties","from","getAttributes","createRangeOn","_descriptionFactory","*Remove all formatting*","document","commandName","get","has","editor","afterInit","model","selection","change","removeFormat","getItems","enableCommand","isFormatting","registerDescriptionCallback","plugins"];var ox,sx;ox=nx,sx=401,function(t){for(;--t;)ox.push(ox.shift())}(++sx);const rx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{[rx("0x9")](){const t=this[rx("0x8")];if(!t[rx("0x12")][rx("0x7")]("RemoveFormatEditing"))return;const e=t.plugins[rx("0x6")]("TrackChangesEditing");e[rx("0xf")]("removeFormat",(n=>{const o=t[rx("0xa")][rx("0x4")][rx("0xb")];o.isCollapsed?n():t[rx("0xa")][rx("0xc")]((()=>{const n=Array[rx("0x14")](o.getRanges());for(const o of n)for(const n of o[rx("0xe")]())xx(n,t[rx("0xa")].schema)&&e.markInlineFormat(t[rx("0xa")][rx("0x1")](n),{commandName:rx("0xd"),commandParams:[]})}))})),e[rx("0x2")][rx("0x11")]((e=>{const{data:n}=e;if(n&&rx("0xd")==n[rx("0x5")])return{type:"format",content:Yo(t.locale,rx("0x3"))}}))}}function xx(t,e){for(const[n]of t[rx("0x0")]()){const t=e[rx("0x13")](n);if(t&&t[rx("0x10")])return!0}return!1}const ax=["has","acceptAllSuggestions","TrackChangesEditing","acceptSelectedSuggestions","discardSuggestion","get","discardAllSuggestions","enableCommand","goToNextRestrictedEditingException","discardSelectedSuggestions","RestrictedEditingModeEditing","acceptSuggestion","plugins","editor"];var cx,lx;cx=ax,lx=217,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{afterInit(){const t=this[ux("0x6")];if(!t[ux("0x5")][ux("0x7")](ux("0x3")))return;const e=t.plugins[ux("0xc")](ux("0x9"));e[ux("0x0")]("goToPreviousRestrictedEditingException"),e[ux("0x0")](ux("0x1"));const n=t[ux("0x5")].get(ux("0x3"));n.enableCommand("trackChanges"),n[ux("0x0")](ux("0x4")),n[ux("0x0")](ux("0xb")),n[ux("0x0")](ux("0x8")),n[ux("0x0")](ux("0xd")),n[ux("0x0")](ux("0xa")),n[ux("0x0")](ux("0x2"))}}const gx=["plugins","high","mapper","merge","addMarker:suggestion","enableCommand","addMarker:suggestion:deletion","span","createPositionBefore","markerRange","test","createUIElement","downcastDispatcher","softBreak","editor","options","editing","addClass","insert","get","split","deletion","markerName","getItems","consumable","model","ck-suggestion-marker-","TrackChangesEditing","_descriptionFactory","writer"];var mx,fx;mx=gx,fx=197,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{static get requires(){return[nr.ShiftEnter]}init(){const t=this[hx("0x1b")],e=t.plugins[hx("0x2")]("TrackChangesEditing");e[hx("0x12")]("shiftEnter"),t[hx("0x1d")][hx("0x19")].on("addMarker:suggestion:insertion",bx(t),{priority:hx("0xe")}),t[hx("0x1d")][hx("0x19")].on(hx("0x13"),bx(t),{priority:hx("0xe")}),t.data.downcastDispatcher.on(hx("0x11"),((e,n,o)=>{o[hx("0x1c")].showSuggestionHighlights&&bx(t,{showActiveMarker:!1})(e,n,o)})),e[hx("0xb")].registerElementLabel(hx("0x1a"),(e=>Yo(t.locale,"ELEMENT_LINE_BREAK",e)))}}function bx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[hx("0xd")].get(hx("0xa"));if(!s[hx("0x7")][hx("0x17")](o[hx("0x16")],n.name))return;const i=t[hx("0x8")];for(const t of o[hx("0x16")][hx("0x6")]()){if(!t.is("element","softBreak"))continue;const n=hx("0x4")==o[hx("0x5")][hx("0x3")](":")[1]?hx("0x10"):hx("0x3"),x=s[hx("0xc")][hx("0x18")](hx("0x14"),{class:hx("0x9")+n}),a=s[hx("0xf")].toViewPosition(i[hx("0x15")](t));e&&r.activeMarkers.includes(o[hx("0x5")])&&s[hx("0xc")][hx("0x0")]("ck-suggestion-marker--active",x),s[hx("0xc")][hx("0x1")](a,x),s[hx("0xf")].bindElementToMarker(x,o[hx("0x5")])}}}const Ex=["afterInit","getRanges","locale","from","format","FORMAT_RESTRICTED_ENABLED","plugins","registerDescriptionCallback","change","markInlineFormat","commands","has","FORMAT_RESTRICTED_DISABLED","model","get","forceValue","commandName","enableCommand","TrackChangesEditing","editor"];var _x,Tx;_x=Ex,Tx=227,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const Cx=function(t,e){return Ex[t-=0]};class yx extends t.Plugin{[Cx("0xd")](){const t=this[Cx("0xc")],e=t[Cx("0x6")],n=t[Cx("0xf")];if(!t.plugins[Cx("0x4")]("StandardEditingModeEditing"))return;const o=t[Cx("0x13")][Cx("0x7")](Cx("0xb")),s="restrictedEditingException",r=t[Cx("0x3")][Cx("0x7")](s);o[Cx("0xa")](s,((t,n={})=>{const i=e.document.selection;if(i.isCollapsed)return void t(n);const x=void 0!==n[Cx("0x8")]?n[Cx("0x8")]:!r.value;e[Cx("0x1")]((()=>{const t=Array[Cx("0x10")](i[Cx("0xe")]());for(const n of t){const t=x?[n]:ms(s,n,e);for(const e of t)o[Cx("0x2")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o._descriptionFactory[Cx("0x0")]((t=>{const{data:e}=t;if(e&&e[Cx("0x9")]==s)return e.commandParams[0][Cx("0x8")]?{type:Cx("0x11"),content:Yo(n,Cx("0x12"))}:{type:Cx("0x11"),content:Yo(n,Cx("0x5"))}}))}}const kx=["editor","isBlock","add","commands","plugins","style","_descriptionFactory","_getRangesWithClasses","style:","styleName","Style","normalizeConfig","createRangeOn","every","name","registerDescriptionCallback","toLowerCase","value","enableCommand","commandName","format","change","includes","locale","get","enabledStyles","push","find","classes","getAttribute","from","markBlockFormat","model","StyleUtils","modelElements","config","*Remove format:* %0","_getStyleDefinition","getAncestors","selection","commandParams","getRanges","document","*Format:* %0","element","afterInit","block"];var Ax,vx;Ax=kx,vx=266,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Sx extends t.Plugin{[Rx("0xe")](){const t=this[Rx("0x10")];if(!t.plugins.has(Rx("0x1a")))return;const e=t[Rx("0x13")].get(Rx("0x15")),n=t[Rx("0x14")][Rx("0x28")]("TrackChangesEditing"),o=t[Rx("0x27")],s=t[Rx("0x14")][Rx("0x28")]("DataSchema"),r=t.plugins[Rx("0x28")](Rx("0x2"))[Rx("0x1b")](s,t[Rx("0x4")][Rx("0x28")]("style.definitions"));n[Rx("0x22")](Rx("0x15"),((o,{styleName:i})=>{const x=t[Rx("0x1")][Rx("0xb")][Rx("0x8")],a=this[Rx("0x6")](i,r);if(!a)return;if(!e[Rx("0x29")][Rx("0x26")](i))return;if(x.isCollapsed&&!a[Rx("0x11")])return void o({styleName:i});const c=!e[Rx("0x21")][Rx("0x26")](a.name);if(a[Rx("0x11")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o[Rx("0x7")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[Rx("0x26")](o[Rx("0x1e")])){n[Rx("0x12")](o);break}}return n}(x.getSelectedBlocks(),a[Rx("0x3")]);t[Rx("0x1")][Rx("0x25")]((()=>{for(const t of e)n[Rx("0x0")](t,{commandName:Rx("0x15"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:Rx("0x18")+i})}))}else{let e=Array.from(x[Rx("0xa")]());if(!c){const n=Array[Rx("0x2e")](s.getDefinitionsForView(a[Rx("0xd")],!1))[0].model,o=[];for(const s of e){const e=this[Rx("0x17")](t[Rx("0x1")],s,a.classes,n);o.push(...e)}e=o}t[Rx("0x1")].change((()=>{for(const t of e)n.markInlineFormat(t,{commandName:"style",commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Rx("0x16")][Rx("0x1f")]((t=>{const{data:e}=t;if(e&&Rx("0x15")===e[Rx("0x23")])return e[Rx("0x9")][0].forceValue?{type:"format",content:Yo(o,Rx("0xc"),e.commandParams[0].styleName[Rx("0x20")]())}:{type:Rx("0x24"),content:Yo(o,Rx("0x5"),e[Rx("0x9")][0][Rx("0x19")][Rx("0x20")]())}}))}[Rx("0x6")](t,e){let n=e[Rx("0xf")][Rx("0x2b")]((e=>e[Rx("0x1e")]===t));return n||(n=e.inline.find((e=>e[Rx("0x1e")]===t))),n}[Rx("0x17")](t,e,n,o){const s=[];for(const r of e.getItems()){const e=r[Rx("0x2d")](o);e&&n[Rx("0x1d")]((t=>e[Rx("0x2c")].includes(t)))&&s[Rx("0x2a")](t[Rx("0x1c")](r))}return s}}const Ix=["addClass","add","getColumnIndexes","_acceptFormatSuggestionCallbackFactory","$textProxy","insertTableRowBelow","isIntersectingWithRange","getSuggestion","startsWith","rootName","map","removeTableRow","isEqual","execute","addMarker:suggestion","end","removeClass","minRow","rowspan","includes","_suggestionFactory","tableRow","registerPostFixer","getChildren","root","order","batch","length","low","position","minColumn","highest","ELEMENT_TABLE_ROW_WITH_TEXT","isArray","first","TableUtils","editor","ELEMENT_TABLE_COLUMN_WITH_TEXT","_getSuggestionCoords","change","deletion","getCellLocation","push","last","nodeAfter","from","cell","*Remove:* %0","getItems","insertTableColumnLeft","ELEMENT_TABLE_ROW","some","removeTableColumn","classes","max","table","insertTable","markMultiRangeInsertion","getSelectionAffectedTableCells","insertTableColumnRight","tableColumn","differ","_splitMarkerName","enqueueChange","ELEMENT_TABLE_COLUMN","downcastDispatcher","enableCommand","mapper","_descriptionFactory","plugins","_setupColumnsRowsFixing","tableCell","filter","getAttribute","get","commands","registerCustomCallback","suggestion","showSuggestionHighlights","refresh","_getCoordsForCells","insertion","findAncestor","writer","element","subType","join","_tablePostFixingSubtypes","document","discard","createRangeOn","above","min","ELEMENT_TABLE_WITH_TEXT","getChanges","createPositionAt","data","span","insertTableRowAbove","hasAttribute","values","TableEditing","colspan","getRanges","$graveyard","isTouching","substr","options","item","_tableSuggestions","getChangedMarkers","locale","TrackChangesEditing","*Insert:* %0","createRangeIn","addRange","model","detach","selection","getContainedElement","name","maxRow","MIN_SAFE_INTEGER","maxColumn","setSelection","createTableWalker","afterInit","fromRange","type","accept","selectTableColumn","start","MAX_SAFE_INTEGER","toLowerCase"];var Lx,Nx;Lx=Ix,Nx=404,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const Mx=function(t,e){return Ix[t-=0]};class wx extends t.Plugin{constructor(t){super(t),this[Mx("0x55")]=["tableRow",Mx("0x3a")],this[Mx("0x6b")]=new Set}[Mx("0x7c")](){const t=this[Mx("0x22")],e=t[Mx("0x72")][Mx("0x56")].selection;if(!t[Mx("0x43")].has(Mx("0x63")))return;const n=t[Mx("0x6d")],o=t.plugins[Mx("0x48")]("TrackChangesEditing"),s=t[Mx("0x43")].get("TableUtils");o._descriptionFactory.registerElementLabel(Mx("0x35"),(t=>Yo(n,"ELEMENT_TABLE",t))),this._setupColumnsRowsFixing(),o[Mx("0x40")](Mx("0x36")),o[Mx("0x40")]("selectTableRow"),o[Mx("0x40")](Mx("0x80"));for(const n of[Mx("0x60"),Mx("0x3")]){const r=t.commands[Mx("0x48")](n);o[Mx("0x40")](n,(n=>{t[Mx("0x72")][Mx("0x25")]((t=>{n();const i=Mx("0x59")===r[Mx("0x17")],x=s[Mx("0x38")](e),a=s.getRowIndexes(x),c=i?a[Mx("0x20")]-1:a[Mx("0x29")]+1,l=x[0][Mx("0x50")](Mx("0x35")),u=s[Mx("0x7b")](l,{startRow:c,endRow:c}),d=Array.from(u)[Mx("0x8")]((e=>t[Mx("0x58")](e[Mx("0x2c")])));o[Mx("0x37")](d,Mx("0x13"))}))}))}for(const n of[Mx("0x2f"),Mx("0x39")]){const r=t.commands.get(n);o[Mx("0x40")](n,(n=>{t[Mx("0x72")][Mx("0x25")]((t=>{n();const i="left"===r.order,x=s[Mx("0x38")](e),a=s[Mx("0x0")](x),c=i?a[Mx("0x20")]-1:a[Mx("0x29")]+1,l=x[0][Mx("0x50")](Mx("0x35")),u=s[Mx("0x7b")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Mx("0x2b")](u).map((e=>t[Mx("0x58")](e[Mx("0x2c")])));o[Mx("0x37")](d,Mx("0x3a"))}))}))}for(const n of[Mx("0x9"),Mx("0x32")]){const r=n[Mx("0x68")](11),i=r[Mx("0x83")](),x=i[Mx("0x68")](0,3)+"span",a=Mx("0x35")+r,c=Mx("0x5a")+r,l=Mx("0x34")+r;o[Mx("0x40")](n,(()=>{t[Mx("0x72")][Mx("0x25")]((t=>{const r=s[Mx("0x38")](e),u=r[0][Mx("0x50")](Mx("0x35"));let d;if(Mx("0x9")==n){const t=s.getRowIndexes(r);d={startRow:t[Mx("0x20")],endRow:t.last,includeAllSlots:!0}}else{const t=s[Mx("0x0")](r);d={startColumn:t[Mx("0x20")],endColumn:t.last,includeAllSlots:!0}}const g=s[Mx("0x7b")](u,d),m=Array[Mx("0x2b")](g)[Mx("0x8")]((({cell:t})=>t)),f=Ox(m[Mx("0x46")]((t=>t[Mx("0x61")](x)))),h=Ox(m.filter((t=>!t[Mx("0x61")](x)))).map((e=>t.createRangeOn(e))),p=o.markMultiRangeDeletion(h,a);if(p&&("tableRow"==p[Mx("0x53")]||"tableColumn"==p[Mx("0x53")])){const e=this._getSuggestionCoords(p);for(const n of f){const o=t.createRangeOn(n),r=s[Mx("0x27")](n),a=n[Mx("0x47")](x)-1,u=e[c],d=e[l];u<=r[i]&&r[i]+a<=d&&p[Mx("0x71")](o)}}}))}))}function r(n){const o=Array[Mx("0x2b")](e[Mx("0x65")]())[Mx("0x8")]((t=>i.LiveRange[Mx("0x7d")](t)));t[Mx("0x72")][Mx("0x25")]((e=>{const s=e[Mx("0x18")];n=n[Mx("0x46")]((t=>Mx("0x66")!=t[Mx("0x16")][Mx("0x7")])),e[Mx("0x7a")](n),t[Mx("0x49")][Mx("0x48")](Mx("0x9"))[Mx("0x4d")](),t[Mx("0xb")](Mx("0x9"),{forceDefaultExecution:!0}),t[Mx("0x72")][Mx("0x3d")]((()=>{t[Mx("0x72")][Mx("0x3d")](s,(t=>{const e=o[Mx("0x46")]((t=>Mx("0x66")!=t[Mx("0x16")][Mx("0x7")]));e[Mx("0x19")]>0&&t.setSelection(e);for(const t of o)t[Mx("0x73")]()}))}))}))}function a(n){t[Mx("0x72")][Mx("0x25")]((o=>{const s=Array[Mx("0x2b")](e[Mx("0x65")]()).map((t=>i.LiveRange.fromRange(t))),r=[];for(const t of n)for(const e of t[Mx("0x2e")]({shallow:!0}))r.push(e);for(const e of r)Mx("0x66")!=e[Mx("0x16")][Mx("0x7")]&&(o.setSelection(o[Mx("0x5d")](e,0)),t.commands[Mx("0x48")](Mx("0x32"))[Mx("0x4d")](),t[Mx("0xb")](Mx("0x32"),{forceDefaultExecution:!0}));const x=s.filter((t=>Mx("0x66")!=t.root[Mx("0x7")]));x.length>0&&o.setSelection(x);for(const t of s)t[Mx("0x73")]()}))}function c(t,e){return e.every((e=>t[Mx("0x31")]((t=>t[Mx("0xd")][Mx("0xa")](e.start)||e[Mx("0xd")][Mx("0xa")](t.start)))))}function l(t,e){return t[Mx("0x31")]((t=>e[Mx("0x31")]((e=>t[Mx("0xd")][Mx("0x67")](e.start)))))}t[Mx("0x5e")][Mx("0x3f")].on(Mx("0xc"),((t,e,n)=>{if(!n[Mx("0x69")][Mx("0x4c")])return;const o=e[Mx("0x6a")];if(!o)return;const s=n[Mx("0x41")].toViewElement(o);function r(t){return Array[Mx("0x1f")](t)?t:[t]}s&&Mx("0x45")===o[Mx("0x76")]&&(0,x.setHighlightHandling)(s,n[Mx("0x51")],((t,e,n)=>n[Mx("0x84")](r(e[Mx("0x33")]),t)),((t,e,n)=>n[Mx("0xe")](r(e.classes),t)))}),{priority:Mx("0x1d")}),o[Mx("0x42")].registerDescriptionCallback((t=>{if(Mx("0x4f")!=t.type&&"deletion"!=t[Mx("0x7e")])return;const e=t[Mx("0x75")]();if(null!=e&&e.is(Mx("0x52"),Mx("0x35"))){if(Mx("0x4f")==t[Mx("0x7e")]){const e=t[Mx("0x2e")]()[Mx("0x46")]((t=>t.is(Mx("0x2"))))[Mx("0x8")]((t=>t[Mx("0x5e")]));if(e[Mx("0x19")])return{type:Mx("0x4f"),content:Yo(n,Mx("0x6f"),Yo(n,Mx("0x5b"),'"'+e[Mx("0x54")](" ")+'"'))}}if(Mx("0x26")==t[Mx("0x7e")]){const e=t[Mx("0x2e")]()[Mx("0x46")]((t=>t.is(Mx("0x2"))))[Mx("0x8")]((t=>t[Mx("0x5e")]));if(e[Mx("0x19")])return{type:Mx("0x26"),content:Yo(n,Mx("0x2d"),Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Mx("0x54")](" ")+'"'))}}}})),o[Mx("0x42")].registerDescriptionCallback((t=>{if(Mx("0x13")==t[Mx("0x53")]){const e=t[Mx("0x2e")]()[Mx("0x46")]((t=>t.is(Mx("0x2"))))[Mx("0x8")]((t=>t[Mx("0x5e")])),o=this._getSuggestionCoords(t),s=o[Mx("0x77")]-o[Mx("0xf")]+1;if(Mx("0x4f")==t[Mx("0x7e")])return e[Mx("0x19")]?{type:"insertion",content:Yo(n,Mx("0x6f"),Yo(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[s,'"'+e[Mx("0x54")](" ")+'"']))}:{type:Mx("0x4f"),content:Yo(n,Mx("0x6f"),Yo(n,Mx("0x30"),s))};if(Mx("0x26")==t[Mx("0x7e")])return e[Mx("0x19")]?{type:Mx("0x26"),content:Yo(n,Mx("0x2d"),Yo(n,Mx("0x1e"),[s,'"'+e[Mx("0x54")](" ")+'"']))}:{type:Mx("0x26"),content:Yo(n,Mx("0x2d"),Yo(n,Mx("0x30"),s))}}if(Mx("0x3a")==t[Mx("0x53")]){const e=t[Mx("0x2e")]()[Mx("0x46")]((t=>t.is(Mx("0x2"))))[Mx("0x8")]((t=>t.data)),o=this[Mx("0x24")](t),s=o[Mx("0x79")]-o[Mx("0x1c")]+1;if(Mx("0x4f")==t[Mx("0x7e")])return e[Mx("0x19")]?{type:"insertion",content:Yo(n,Mx("0x6f"),Yo(n,Mx("0x23"),[s,'"'+e[Mx("0x54")](" ")+'"']))}:{type:"insertion",content:Yo(n,Mx("0x6f"),Yo(n,Mx("0x3e"),s))};if(Mx("0x26")==t[Mx("0x7e")])return e[Mx("0x19")]?{type:Mx("0x26"),content:Yo(n,Mx("0x2d"),Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[s,'"'+e[Mx("0x54")](" ")+'"']))}:{type:Mx("0x26"),content:Yo(n,Mx("0x2d"),Yo(n,Mx("0x3e"),s))}}})),o[Mx("0x12")][Mx("0x4a")](Mx("0x4f"),Mx("0x13"),Mx("0x57"),r),o[Mx("0x12")][Mx("0x4a")](Mx("0x26"),Mx("0x13"),"accept",r),o[Mx("0x12")].registerCustomCallback(Mx("0x4f"),Mx("0x3a"),Mx("0x57"),a),o[Mx("0x12")][Mx("0x4a")](Mx("0x26"),Mx("0x3a"),Mx("0x7f"),a),o[Mx("0x12")][Mx("0x4a")](Mx("0x4f"),Mx("0x3a"),Mx("0x54"),c),o._suggestionFactory[Mx("0x4a")](Mx("0x26"),"tableColumn",Mx("0x54"),c),o[Mx("0x12")].registerCustomCallback(Mx("0x4f"),Mx("0x13"),Mx("0x54"),l),o[Mx("0x12")][Mx("0x4a")](Mx("0x26"),"tableRow",Mx("0x54"),l)}[Mx("0x1")](){const t=this[Mx("0x22")],e=t[Mx("0x72")][Mx("0x56")][Mx("0x74")];return(n,o)=>{t[Mx("0x72")].change((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][Mx("0xd")].nodeBefore;x&&x[0]&&!1===x[0].forceValue&&(a=n[0][Mx("0x81")][Mx("0x2a")]);const c=s[Mx("0x70")](a);if("$graveyard"==c[Mx("0x16")][Mx("0x7")])return;const l=Array[Mx("0x2b")](e.getRanges()).map((t=>i.LiveRange[Mx("0x7d")](t)));s.setSelection(c),t[Mx("0x49")][Mx("0x48")](r)[Mx("0x4d")](),x[Mx("0x28")]({forceDefaultExecution:!0}),t[Mx("0xb")](r,...x);const u=l[Mx("0x46")]((t=>Mx("0x66")!=t[Mx("0x16")][Mx("0x7")]));u[Mx("0x19")]>0&&s[Mx("0x7a")](u);for(const t of l)t[Mx("0x73")]()}))}}[Mx("0x4e")](t){const e=this[Mx("0x22")][Mx("0x43")][Mx("0x48")](Mx("0x21"));let n=Number.MAX_SAFE_INTEGER,o=Number.MIN_SAFE_INTEGER,s=Number[Mx("0x82")],r=Number[Mx("0x78")];for(const i of t){if(Mx("0x66")==i[Mx("0x16")][Mx("0x7")])continue;const{row:t,column:x}=e[Mx("0x27")](i),a=i[Mx("0x61")](Mx("0x10"))?i[Mx("0x47")](Mx("0x10"))-1:0,c=i[Mx("0x61")](Mx("0x64"))?i.getAttribute("colspan")-1:0;n=t<n?t:n,o=t+a>o?t+a:o,s=x<s?x:s,r=x+c>r?x+c:r}return{minRow:n,maxRow:o,minColumn:s,maxColumn:r}}[Mx("0x44")](){const t=this.editor,e=t[Mx("0x43")][Mx("0x48")](Mx("0x6e")),n=t[Mx("0x43")][Mx("0x48")](Mx("0x21"));t.model[Mx("0x56")].on("change:data",(()=>{const n=Array[Mx("0x2b")](t[Mx("0x72")][Mx("0x56")][Mx("0x3b")][Mx("0x6c")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[Mx("0x3c")](t);if(Mx("0x4b")!=n)continue;if(null!=o.oldRange)continue;const i=e[Mx("0x5")](s);this._tablePostFixingSubtypes[Mx("0x11")](r)&&this[Mx("0x6b")][Mx("0x85")](i)}}),{priority:Mx("0x1a")});const o=(t,e)=>{let o=!1;const s=e.createRangeOn(t),r=t[Mx("0x50")](Mx("0x35")),i=n[Mx("0x27")](t);for(const e of this[Mx("0x6b")]){const n=e[Mx("0x53")],x=n[Mx("0x6")]("tablePaste"),a=n[Mx("0x68")](x?10:5),c=a[Mx("0x83")](),l=c[Mx("0x68")](0,3)+Mx("0x5f"),u="min"+a,d=Mx("0x34")+a;if(!e.isInContent)continue;if(r!=e.getFirstRange()[Mx("0x81")].findAncestor("table"))continue;if(e[Mx("0x4")](s))continue;const g=t.hasAttribute(l)?t.getAttribute(l)-1:0,m=this[Mx("0x24")](e),f=m[u],h=m[d];f<=i[c]&&i[c]+g<=h&&(e[Mx("0x71")](s),o=!0)}return o};t[Mx("0x72")].document[Mx("0x14")]((e=>{let n=!1;for(const s of t[Mx("0x72")][Mx("0x56")][Mx("0x3b")][Mx("0x5c")]())if("insert"==s.type)if("tableRow"==s[Mx("0x76")])for(const t of s[Mx("0x1b")].nodeAfter[Mx("0x15")]())n=n||o(t,e);else Mx("0x45")==s[Mx("0x76")]&&(n=n||o(s[Mx("0x1b")].nodeAfter,e));return n}))}_getSuggestionCoords(t){return this[Mx("0x4e")](t.getRanges().map((t=>t[Mx("0x81")][Mx("0x2a")])))}}function Ox(t){return Array[Mx("0x2b")](new Set(t)[Mx("0x62")]())}const Fx=["length","_tablePostFixingSubtypes","document","change","refresh","direction","*Merge cells*","getSuggestions","commands","locale","getAncestors","createRangeOn","return","_areSelectedCellsMergable","registerCustomCallback","accept","getFirstPosition","from","map","trackChanges","cell","mergeTableCellDown","add","table","mergeTableCellLeft","filter","low","_descriptionFactory","isInContent","author","splitTableCellHorizontally","type","mergeTableCells","rootName","_suggestionFactory","_areMergableCells","get","execute","setSelection","TableUtils","editor","forceDefaultExecution","plugins","TrackChangesEditing","createTableWalker","containsRange","registerDescriptionCallback","_acceptFormatSuggestionCallbackFactory","getRanges","value","enableCommand","afterInit","insertion","tableCell","commandName","push","root","formatBlock","splitTableCellVertically","format","getSelectionAffectedTableCells","element","deletion","fromRange","model","markMultiRangeBlockFormat","*Split cell:* vertically","mergeTableCellRight","detach","findAncestor","selection","has"];var Px,Dx;Px=Fx,Dx=173,function(t){for(;--t;)Px.push(Px.shift())}(++Dx);const Bx=function(t,e){return Fx[t-=0]};class jx extends t.Plugin{static get requires(){return[wx]}[Bx("0x16")](){const t=this[Bx("0xb")],e=t[Bx("0x23")][Bx("0x2d")][Bx("0x29")],n=t[Bx("0x34")];if(!t.plugins[Bx("0x2a")]("TableEditing"))return;const o=t[Bx("0xd")][Bx("0x7")](Bx("0xe")),s=t.plugins[Bx("0x7")](Bx("0xa")),r=t[Bx("0xd")].get(wx);r[Bx("0x2c")][Bx("0x1a")](Bx("0x3")),o.enableCommand("mergeTableCells",(()=>{const e=s[Bx("0x1f")](t[Bx("0x23")][Bx("0x2d")][Bx("0x29")]);t[Bx("0x23")][Bx("0x2e")]((()=>{o[Bx("0x24")](e,{commandName:Bx("0x3"),commandParams:[]},[],Bx("0x3"))}))})),t[Bx("0x33")].get("mergeTableCells").on(Bx("0x8"),((e,n)=>{t[Bx("0x33")][Bx("0x7")](Bx("0x3e"))[Bx("0x14")]&&(n[Bx("0x2b")]>0&&n[n[Bx("0x2b")]-1]&&n[n[Bx("0x2b")]-1][Bx("0xc")]||o._isForcedDefaultExecutionBlock||this[Bx("0x38")]()||e.stop())}),{priority:"highest"});for(const e of["mergeTableCellUp",Bx("0x26"),"mergeTableCellDown",Bx("0x43")]){const n=t[Bx("0x33")][Bx("0x7")](e);o[Bx("0x15")](e,(()=>{const e=t.model[Bx("0x2d")][Bx("0x29")][Bx("0x3b")]()[Bx("0x35")]().find((t=>t.is("element",Bx("0x18")))),s=n[Bx("0x14")];t.model[Bx("0x2e")]((()=>{o[Bx("0x24")]([e,s],{commandName:Bx("0x3"),commandParams:[]},[],Bx("0x3"))}))}))}for(const e of[Bx("0x1d"),Bx("0x1")]){const n=t.commands.get(e);o[Bx("0x15")](e,(()=>{const r=s[Bx("0x1f")](t[Bx("0x23")][Bx("0x2d")].selection)[0],i=r[Bx("0x28")](Bx("0x42")),{column:x,row:a}=s.getCellLocation(r);let c=[];if("horizontally"==n[Bx("0x30")]){const t=s[Bx("0xf")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Bx("0x3c")](t).map((t=>t[Bx("0x3f")]))}else{const t=s[Bx("0xf")](i,{column:x,includeAllSlots:!0});c=Array[Bx("0x3c")](t)[Bx("0x3d")]((t=>t[Bx("0x3f")]))}t.model[Bx("0x2e")]((t=>{o.markBlockFormat(t[Bx("0x36")](r),{commandName:e,commandParams:[]},c,e)}))}))}o[Bx("0x46")][Bx("0x11")]((t=>{const{data:e}=t;if(e)return Bx("0x3")==e[Bx("0x19")]?{type:Bx("0x1e"),content:Yo(n,Bx("0x31"))}:void 0})),o[Bx("0x46")][Bx("0x11")]((t=>{const{data:e}=t;if(e)return Bx("0x1d")==e[Bx("0x19")]?{type:Bx("0x1e"),content:Yo(n,Bx("0x25"))}:Bx("0x1")==e[Bx("0x19")]?{type:Bx("0x1e"),content:Yo(n,"*Split cell:* horizontally")}:void 0}));const x=r[Bx("0x12")]();for(const t of["mergeTableCellUp",Bx("0x26"),"mergeTableCellDown",Bx("0x43")])o[Bx("0x5")][Bx("0x39")]("formatBlock",t,"accept",x);for(const t of["splitTableCellVertically",Bx("0x1")])o[Bx("0x5")][Bx("0x39")](Bx("0x1c"),t,Bx("0x3a"),x);o[Bx("0x5")].registerCustomCallback(Bx("0x1c"),Bx("0x3"),"accept",(n=>{t[Bx("0x23")][Bx("0x2e")]((o=>{const s=Array[Bx("0x3c")](e[Bx("0x13")]())[Bx("0x3d")]((t=>i.LiveRange[Bx("0x22")](t)));o[Bx("0x9")](n),t[Bx("0x33")][Bx("0x7")](Bx("0x3"))[Bx("0x2f")](),t.execute(Bx("0x3"),{forceDefaultExecution:!0});const r=s[Bx("0x44")]((t=>"$graveyard"!=t[Bx("0x1b")][Bx("0x4")]));r[Bx("0x2b")]>0&&o.setSelection(r);for(const t of s)t[Bx("0x27")]()}))}));for(const e of["mergeTableCellUp",Bx("0x40"),Bx("0x43"),Bx("0x26")]){const n=t[Bx("0x33")][Bx("0x7")](e);n.on("set:isEnabled",((e,o,s)=>{if(s){const o=t.model[Bx("0x2d")][Bx("0x29")][Bx("0x3b")]()[Bx("0x35")]().find((t=>t.is(Bx("0x20"),Bx("0x18"))));this[Bx("0x6")](n.value,o)||(e[Bx("0x37")]=!1,e.stop())}}),{priority:Bx("0x45")})}}[Bx("0x38")](){const t=this.editor.commands[Bx("0x7")](Bx("0x3")),e=this[Bx("0xb")][Bx("0xd")][Bx("0x7")](Bx("0xa"));if(!t.isEnabled)return!1;const n=e[Bx("0x1f")](this[Bx("0xb")][Bx("0x23")][Bx("0x2d")][Bx("0x29")]);for(const t of n)for(const e of n)if(t!=e&&!this[Bx("0x6")](t,e))return!1;return!0}[Bx("0x6")](t,e){const n=this.editor.plugins[Bx("0x7")](Bx("0xe")),o=this.editor[Bx("0x23")][Bx("0x36")](t),s=this.editor[Bx("0x23")][Bx("0x36")](e),r=new Set,i=new Set;for(const t of n[Bx("0x32")]())if((Bx("0x17")==t.type||Bx("0x21")==t[Bx("0x2")]||Bx("0x3")==t.subType)&&t[Bx("0x47")])for(const e of t.getRanges())e[Bx("0x10")](o,!0)&&r[Bx("0x41")](t[Bx("0x2")]+":"+t[Bx("0x0")].id),e[Bx("0x10")](s,!0)&&i[Bx("0x41")](t[Bx("0x2")]+":"+t[Bx("0x0")].id);if(r.size!=i.size)return!1;for(const t of r)if(!i[Bx("0x2a")](t))return!1;return!0}}const Ux=["highest","markerRange","headingColumns","get","options","requires","registerCustomCallback","editing","model","data","removeAttribute","start","toViewElement","table","*Format:* %0","getSuggestion","_splitMarkerName","first","FORMAT_HEADER_ROW","change","findAncestor","consume","commandParams","_acceptFormatSuggestionCallbackFactory","nodeBefore","_suggestionFactory","getChild","activeMarkers","childCount","addMarker:suggestion","parent","TableUtils","markerName","getSelectionAffectedTableCells","from","FORMAT_REGULAR_ROW","markerNameToElements","commands","end","setAttribute","addClass","index","showSuggestionHighlights","data-suggestion","formatBlock","locale","removeMarker:suggestion","value","createPositionAfter","selection","afterInit","createPositionBefore","forceValue","getAttribute","createRange","downcastDispatcher","accept","markBlockFormat","enableCommand","commandName","ck-suggestion-marker--active","unbindElementFromMarkerName","last","consumable","removeClass","plugins","format","ck-suggestion-marker-","setTableColumnHeader","writer","mapper","has","cell","bindElementToMarker","getRowIndexes","FORMAT_REGULAR_COLUMN","getCellLocation","document","name","createTableWalker","setTableRowHeader","editor","isBefore"];var Gx,Hx;Gx=Ux,Hx=453,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("0x32")](){return[wx]}[zx("0xc")](){const t=this[zx("0x2b")];if(!t[zx("0x1b")][zx("0x21")]("TableEditing"))return;const e=t[zx("0x7")],n=t[zx("0x1b")][zx("0x30")]("TrackChangesEditing"),o=t[zx("0x1b")][zx("0x30")](zx("0x4c")),s=t.plugins[zx("0x30")](wx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[zx("0x3d")](r[zx("0x4d")]),c=n[zx("0x3c")](a);if(!c.data||"setTableColumnHeader"!=c.data[zx("0x15")])return;if(r.item)return void s.stop();if(!i[zx("0x19")][zx("0x42")](r[zx("0x2e")],s[zx("0x28")]))return;const l=r[zx("0x2e")][zx("0x38")].nodeAfter,u=r[zx("0x2e")][zx("0x0")][zx("0x45")],d=l.parent[zx("0x4b")],{column:g}=o[zx("0x26")](l),{column:m}=o[zx("0x26")](u);for(let s=g;s<=m;s++){const c=o[zx("0x29")](d,{column:s,includeAllSlots:!1});for(const o of c){const s=o[zx("0x22")],c=i[zx("0x20")][zx("0x39")](s);i[zx("0x1f")].addClass(zx("0x1d")+x,c),e&&i[zx("0x1f")][zx("0x1")]("data-suggestion",a,c),i[zx("0x20")][zx("0x23")](c,r[zx("0x4d")]),t&&(n[zx("0x48")].includes(r[zx("0x4d")])?i[zx("0x1f")][zx("0x2")](zx("0x16"),c):i[zx("0x1f")].removeClass("ck-suggestion-marker--active",c))}}}}n[zx("0x14")](zx("0x2a"),((e,s)=>{const r=o.getSelectionAffectedTableCells(t[zx("0x35")][zx("0x27")][zx("0xb")]),i=o[zx("0x24")](r),x=r[0][zx("0x41")](zx("0x3a")),a=x[zx("0xf")]("headingRows")||0,c=s&&null!==s.forceValue?s.forceValue:!t[zx("0x52")][zx("0x30")](zx("0x2a"))[zx("0x9")],l=c?i.last:i[zx("0x3e")],u=x[zx("0x47")](l);let d;if(c){const e=x[zx("0x47")](a);if(u.index<e[zx("0x3")])return;d=t[zx("0x35")][zx("0x10")](t[zx("0x35")][zx("0xd")](e[zx("0x47")](0)),t[zx("0x35")][zx("0xa")](u[zx("0x47")](u[zx("0x49")]-1)))}else{const e=x.getChild(a-1);if(!e)return;d=t[zx("0x35")][zx("0x10")](t[zx("0x35")][zx("0xd")](u.getChild(0)),t.model[zx("0xa")](e[zx("0x47")](e[zx("0x49")]-1)))}t[zx("0x35")][zx("0x40")]((()=>{n[zx("0x13")](d,{commandName:zx("0x2a"),commandParams:[{forceValue:c}]},[],zx("0x2a"))}))})),n[zx("0x14")](zx("0x1e"),((e,o)=>{const s=t[zx("0x1b")][zx("0x30")](zx("0x4c")),r=s[zx("0x4e")](t[zx("0x35")].document[zx("0xb")]),i=s.getColumnIndexes(r),x=r[0][zx("0x41")](zx("0x3a")),a=x[zx("0xf")](zx("0x2f"))||0,c=o&&null!==o[zx("0xe")]?o[zx("0xe")]:!t.commands[zx("0x30")](zx("0x1e")).value;let l;const u=x[zx("0x47")](0),d=c?i[zx("0x18")]:i[zx("0x3e")],g=s[zx("0x29")](x,{startRow:0,column:d,includeAllSlots:!1}),m=Array[zx("0x4f")](g)[0].cell;if(c){const e=u[zx("0x47")](a);if(m[zx("0x2c")](e))return;l=t[zx("0x35")][zx("0x10")](t[zx("0x35")][zx("0xd")](e),t.model.createPositionAfter(m))}else{const e=u[zx("0x47")](a-1);if(!e)return;l=t[zx("0x35")][zx("0x10")](t[zx("0x35")][zx("0xd")](m),t[zx("0x35")].createPositionAfter(e))}t.model[zx("0x40")]((()=>{n[zx("0x13")](l,{commandName:"setTableColumnHeader",commandParams:[{forceValue:c}]},[],zx("0x1e"))}))})),t.editing[zx("0x11")].on(zx("0x4a"),r(),{priority:zx("0x2d")}),t.data[zx("0x11")].on(zx("0x4a"),((t,e,n)=>{n[zx("0x31")][zx("0x4")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:zx("0x2d")}),t[zx("0x34")].downcastDispatcher.on(zx("0x8"),((t,e,o)=>{const{type:s,id:r}=n._splitMarkerName(e[zx("0x4d")]),i=n.getSuggestion(r);if(!i.data||"setTableColumnHeader"!=i[zx("0x36")][zx("0x15")])return;const x=o[zx("0x20")][zx("0x51")](e[zx("0x4d")]);if(x)for(const t of x)o.writer[zx("0x1a")]("ck-suggestion-marker-"+s,t),o.writer.removeClass(zx("0x16"),t),o.writer[zx("0x37")](zx("0x5"),t),o[zx("0x20")][zx("0x17")](t,e.markerName)}),{priority:zx("0x2d")}),n._descriptionFactory.registerDescriptionCallback((t=>{const{data:n}=t;if(n){if(zx("0x2a")==n[zx("0x15")]){const t=n[zx("0x43")][0][zx("0xe")];return o(Yo(e,zx(t?"0x3f":"0x50")))}if("setTableColumnHeader"==n[zx("0x15")]){const t=n.commandParams[0].forceValue;return o(Yo(e,t?"FORMAT_HEADER_COLUMN":zx("0x25")))}}function o(t){return{type:zx("0x1c"),content:Yo(e,zx("0x3b"),t)}}}));const i=s[zx("0x44")]();n[zx("0x46")][zx("0x33")](zx("0x6"),zx("0x2a"),zx("0x12"),i),n[zx("0x46")].registerCustomCallback("formatBlock","setTableColumnHeader",zx("0x12"),i)}}const Vx=["differ","previous","insert","tableCellSuggestion","author","removeMarkers","getSuggestions","endColumn","registerCustomCallback","deletion","tableCell","length","paragraph","suggestion:formatBlock:tablePasteCell","forceDefaultExecution","rows","_suggestionFactory","endRow","insertColumns","*Replace table cells*","rootName","register","keys","afterInit","getItems","getChild","removeRows","setAttributes","selection","hasSuggestion","ck-suggestion-marker","type","filter","_tablePostFixingSubtypes","getChildren","registerPostFixer","requires","markerName","every","TrackChangesEditing","insertRows","find","get","getColumns","model","getChanges","columns","removeColumns","tablePaste","value","markerToHighlight","suggestionUnloaded","end","map","deletionRanges","trackChanges","editing","discard","has","push","cells","subType","high","root","suggestionLoaded","tableCellVerticalAlignment","tablePasteChainId","tableCellHorizontalAlignment","getRange","getRowIndexes","fromEntries","fill","includes","from","position","rowInsertionRanges","insertion","getContainedElement","markerAttributes","markers","editingDowncast","createPositionBefore","view","createTableWalker","move","for","getMarkers","getAllAdjacentSuggestions","Users","_getCoordsForCells","commands","showSuggestionHighlights","_createdBatches","last","document","change","insertContent","listenTo","tableCellBorderStyle","getRanges","startsWith","next","oldRange","_replaceTableSlotCell","elementToElement","rowInsertionIndexes","formatBlock","_splitMarkerName","accept","findAncestor","isInContent","getSelectionAffectedTableCells","markMultiRangeInsertion","insertionRanges","table","tablePasteColumn","first","$graveyard","suggestion-td","stop","columnInsertionRanges","updateMarker","plugins","cell","removeMarker","isEmpty","editor","return","content","TableUtils","TableClipboard","getTableIfOnlyTableInContent","attributes","_isForcedDefaultExecutionBlock","isEqual","_descriptionFactory","low","createElement","tablePasteCell","batch","createRangeOn","columnInsertionIndexes","tablePasteRow","locale","getSuggestion","set","documentSelection","element","markMultiRangeBlockFormat","nextSibling","name","nodeAfter","tableCellPadding","some","createRangeIn","suggestion","add","tableCellBackgroundColor","getRows","join","conversion","containsRange","remove"];var Kx,Xx;Kx=Vx,Xx=406,function(t){for(;--t;)Kx.push(Kx.shift())}(++Xx);const qx=function(t,e){return Vx[t-=0]},$x=["tableCellBorderWidth","tableCellBorderColor",qx("0x12"),qx("0x96"),qx("0x94"),qx("0x4d"),qx("0x48")],Jx=Object.fromEntries($x[qx("0x88")]((t=>[t,null])));class Qx extends t.Plugin{static get[qx("0x77")](){return[wx]}[qx("0x6a")](){const t=this[qx("0x2e")];if(!t[qx("0x2a")][qx("0x8d")](qx("0x32")))return;const n=t.plugins.get(qx("0x7a")),o=t[qx("0x2a")][qx("0x7d")](qx("0x31")),s=t[qx("0x2a")][qx("0x7d")](wx),r=t.plugins[qx("0x7d")](qx("0x32"));s[qx("0x74")][qx("0x8e")](qx("0x3e"),qx("0x23")),t[qx("0x7f")].schema[qx("0x68")](qx("0x56"),{allowIn:qx("0x5d"),allowContentOf:"tableCell",isLimit:!0}),t[qx("0x50")][qx("0x18")]({model:"tableCellSuggestion",view:"suggestion-td"});let i=null;t.model.on(qx("0x10"),((s,x)=>{const[a,c]=x,l=x[x[qx("0x5e")]-1];l&&l[qx("0x61")]||n[qx("0x35")]||this[qx("0x2e")][qx("0xa")].get(qx("0x8a"))[qx("0x84")]&&function(t,e,n,o,s){if(e&&!e.is(qx("0x42")))return!1;const r=s[qx("0x33")](t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o[qx("0x1f")](n[qx("0xe")][qx("0x6f")]);if(!i[qx("0x5e")])return!1;const x=i[0].findAncestor("table"),a=o[qx("0x98")](i),c=o.getColumnIndexes(i),l={startRow:a[qx("0x24")],endRow:a[qx("0xd")],startColumn:c[qx("0x24")],endColumn:c[qx("0xd")]};return 1==i[qx("0x5e")]&&(l[qx("0x64")]+=o[qx("0x4e")](r)-1,l[qx("0x5a")]+=o[qx("0x7e")](r)-1),Yx(x,l,o)}(a,c,t[qx("0x7f")],o,r)&&(s[qx("0x27")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[qx("0x7f")][qx("0xf")]((()=>{t[qx("0x7f")][qx("0x10")](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[qx("0x5e")]&&n[qx("0x20")](s,"tablePasteRow",{tablePasteChainId:o}),r[qx("0x5e")]&&n.markMultiRangeInsertion(r,qx("0x23"),{tablePasteChainId:o}),a.length&&n[qx("0x20")](a,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0}),c.length&&n.markMultiRangeDeletion(c,qx("0x83"),{tablePasteChainId:o,skipNestingCheck:!0});const u=n[qx("0x44")](l[qx("0x88")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],"tablePasteCell",{tablePasteChainId:o});if(u){const e=u.getMarkers(),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t.model[qx("0x3c")](o),i=e.find((t=>t[qx("0x97")]()[qx("0x36")](r)));i&&n[qx("0x8e")]([i[qx("0x46")],s])}n.length&&u.setAttribute(qx("0xa1"),Object[qx("0x99")](n))}i=null})))}),{priority:e.priorities.high+10}),t[qx("0x2a")][qx("0x7d")](qx("0x32")).on(qx("0x17"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t[qx("0x27")]();const r=n[qx("0x2b")],x=o,a=Zx(r),c=Zx(x);t[qx("0x2f")]=r;let l=null,u=null;if(c||a)if(a&&!c){s[qx("0x52")](r[qx("0x6c")](0));for(const t of Array[qx("0x9c")](x.getChildren()))s[qx("0x55")](t,r,qx("0x87"));const t=i[qx("0x19")][qx("0x9b")](n.row),e=i[qx("0x3d")][qx("0x9b")](n.column);t||e||(l=s.createRangeIn(r))}else c&&!a&&(u=s[qx("0x4a")](r));else{const t=s[qx("0x39")](qx("0x56")),e=s[qx("0x39")]("tableCellSuggestion");s.wrap(s.createRangeIn(r),e),s[qx("0x55")](t,r,0);for(const e of Array[qx("0x9c")](x[qx("0x75")]()))s[qx("0x55")](e,t,qx("0x87"));l=s[qx("0x3c")](t),u=s[qx("0x3c")](e)}const d=Array[qx("0x9c")](x.getAttributes())[qx("0x73")]((([t])=>$x[qx("0x9b")](t)));i[qx("0x8f")].push({element:r,attributes:d[qx("0x5e")]?Object[qx("0x99")](d):null}),l&&i[qx("0x21")][qx("0x8e")](l),u&&i[qx("0x89")][qx("0x8e")](u)}),{priority:qx("0x91")}),o.on(qx("0x65"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[qx("0x81")]||1;i[qx("0x3d")]=new Array(a)[qx("0x9a")](x)[qx("0x88")](((t,e)=>t+e));for(const{cell:e}of o[qx("0x3")](s,{startColumn:x,endColumn:x+a-1}))i[qx("0x28")][qx("0x8e")](t[qx("0x7f")][qx("0x3c")](e))}),{priority:qx("0x38")}),o.on(qx("0x7b"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[qx("0x62")]||1;i[qx("0x19")]=new Array(a)[qx("0x9a")](x)[qx("0x88")](((t,e)=>t+e));for(const{cell:e}of o[qx("0x3")](s,{startRow:x,endRow:x+a-1}))i[qx("0x9e")].push(t[qx("0x7f")][qx("0x3c")](e))}),{priority:qx("0x38")}),n[qx("0x37")].registerDescriptionCallback((e=>{if(e.subType&&e.subType.startsWith(qx("0x83")))return e.previous?{}:{type:qx("0x9f"),content:Yo(t[qx("0x3f")],qx("0x66"))}}));const x=()=>!1;for(const t of["tablePaste",qx("0x23"),qx("0x3e"),qx("0x3a")])n[qx("0x63")].registerCustomCallback(qx("0x9f"),t,"join",x),n[qx("0x63")].registerCustomCallback(qx("0x5c"),t,qx("0x4f"),x),n._suggestionFactory[qx("0x5b")]("formatBlock",t,qx("0x4f"),x);n[qx("0x63")][qx("0x5b")](qx("0x1a"),"tablePasteCell",qx("0x8c"),x),n[qx("0x63")].registerCustomCallback(qx("0x1a"),"tablePasteCell",qx("0x1c"),((e,n,o)=>{const s=e[qx("0x88")]((t=>t.getContainedElement()))[qx("0x73")]((t=>t)),r=new Map(s[qx("0x88")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i.cells)e&&r[qx("0x41")](t,e);else if(o&&o.markerAttributes)for(const[e,n]of Object.entries(o[qx("0xa1")])){const o=t[qx("0x7f")][qx("0xa2")][qx("0x7d")](e),s=o?o[qx("0x97")]()[qx("0xa0")]():null;s&&r[qx("0x41")](s,n)}t[qx("0x7f")][qx("0xf")]((t=>{for(const[e,n]of r)t[qx("0x6e")]({...Jx,...n},e)}))}));const a=(e,o)=>{n._suggestionFactory[qx("0x5b")](e,qx("0x83"),o,((s,r,i)=>{t[qx("0x7f")][qx("0xf")]((t=>{const x=[];for(const t of s){const e=t.start[qx("0x47")];e.is("element","tableCellSuggestion")&&x.push(e)}n[qx("0x63")].getSuggestionCallback(e,null,o)(s,r,i);for(const e of x)qx("0x25")!=e[qx("0x92")][qx("0x67")]&&t.unwrap(e)}))}))};a("insertion",qx("0x1c")),a(qx("0x9f"),"discard"),a(qx("0x5c"),"accept"),a(qx("0x5c"),"discard"),n._suggestionFactory[qx("0x5b")](qx("0x9f"),"tablePasteRow",qx("0x8c"),(t=>{const e=t[qx("0x88")]((t=>t[qx("0xa0")]())),n=e[0][qx("0x1d")](qx("0x22")),{minRow:r,maxRow:i}=s[qx("0x9")](e);o[qx("0x6d")](n,{at:r,rows:i-r+1})})),n[qx("0x63")][qx("0x5b")](qx("0x9f"),qx("0x23"),qx("0x8c"),(t=>{const e=t[qx("0x88")]((t=>t[qx("0xa0")]())),n=e[0].findAncestor(qx("0x22")),{minColumn:r,maxColumn:i}=s._getCoordsForCells(e);o[qx("0x82")](n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[qx("0x90")]||!e.subType[qx("0x14")](qx("0x83")))return;const o=e[qx("0x34")][qx("0x95")],s=n[qx("0x59")]()[qx("0x73")]((t=>t.isInContent&&t[qx("0x34")]&&t.attributes.tablePasteChainId==o));s[qx("0x5e")]&&e[qx("0x7")]().length!=s[qx("0x5e")]&&s.reduce(((t,e)=>(t[qx("0x15")]=e,e[qx("0x54")]=t,e)))};function l(t,e=!0){const{id:o}=n[qx("0x1b")](t.markerName),s=[qx("0x71"),"ck-suggestion-marker-insertion"],r=n.activeMarkers[qx("0x9b")](t[qx("0x78")]);return r&&s[qx("0x8e")]("ck-suggestion-marker--active"),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(qx("0x93"),c,{priority:qx("0x91")}),n.on(qx("0x86"),c,{priority:qx("0x91")}),t[qx("0x7f")][qx("0xe")][qx("0x76")]((()=>{let e=!1;const o=Array[qx("0x9c")](t[qx("0x7f")][qx("0xe")][qx("0x53")].getChangedMarkers());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[qx("0x1b")](s);if(qx("0x4b")!=o||qx("0x5c")!=i||r[qx("0x16")])continue;if(!n[qx("0x70")](x))continue;const a=n[qx("0x40")](x)[qx("0x13")](),c=t[qx("0x2a")][qx("0x7d")]("Users").me;for(const t of n.getSuggestions())if(t[qx("0x1e")]&&t[qx("0x57")]==c&&qx("0x1a")==t[qx("0x72")]&&qx("0x3a")==t[qx("0x90")]&&t[qx("0x13")]()[qx("0x79")]((t=>a[qx("0x49")]((e=>e[qx("0x51")](t,!0))))))for(const n of t[qx("0x7")]())n[qx("0x1e")]&&(n[qx("0x8c")](),e=!0)}return e})),t[qx("0x7f")][qx("0xe")].registerPostFixer((e=>{const o=t.commands[qx("0x7d")]("redo");if(!o||!o[qx("0xc")].has(e[qx("0x3b")]))return!1;let s=!1;const r=t.plugins[qx("0x7d")](qx("0x8")).me,i=t[qx("0x7f")][qx("0xe")].differ[qx("0x80")](),x=Array[qx("0x9c")](t[qx("0x7f")][qx("0xe")][qx("0x53")].getChangedMarkers())[qx("0x73")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[qx("0x1b")](t);return"suggestion"==o&&qx("0x83")==s&&i==r.id&&!e[qx("0x16")]}));for(const t of i){if(qx("0x55")!=t[qx("0x72")]||"tableCellSuggestion"!=t[qx("0x46")]||1!=t[qx("0x5e")])continue;const n=e.createRange(t[qx("0x9d")],t[qx("0x9d")].getShiftedBy(1));if(!x[qx("0x7c")]((({data:t})=>t.newRange[qx("0x36")](n))))for(const{name:t,data:o}of x)if(n[qx("0x51")](o.newRange)){e[qx("0x29")](t,{range:n}),s=!0;break}}return s})),t[qx("0x7f")][qx("0xe")][qx("0x76")]((e=>{let o=!1;const s=t[qx("0x2a")][qx("0x7d")]("Users").me,r=n.getSuggestions().filter((t=>t[qx("0x1e")]&&t[qx("0x57")]==s)),i=new Set,x=new Set;for(const t of r)if(qx("0x83")==t[qx("0x90")])for(const e of t[qx("0x6")]()){const n=e[qx("0x97")]().getContainedElement();if(n)if(n.is(qx("0x43"),"tableCellSuggestion")&&Zx(n)){t.removeMarker(e[qx("0x46")]),i.add(n),o=!0;const s=n[qx("0x45")],r=n.previousSibling,a=s&&s.is(qx("0x43"),qx("0x56")),c=r&&r.is(qx("0x43"),qx("0x56"));a&&!i.has(s)&&x[qx("0x4c")](s),c&&!i.has(r)&&x[qx("0x4c")](r)}else n.is("element",qx("0x5f"))&&n[qx("0x2d")]&&(t[qx("0x2c")](e[qx("0x46")]),o=!0)}else if(qx("0x3a")==t.subType){if(!t[qx("0x34")]||!t[qx("0x34")][qx("0x95")])continue;const e=t[qx("0x34")][qx("0xa1")];if(e&&Object[qx("0x69")](e)[qx("0x5e")])continue;const n=t.attributes.tablePasteChainId;let s=!0,i=!0;for(const e of r)if(e[qx("0x90")]&&e.subType[qx("0x14")]("tablePaste")){if(!e.attributes[qx("0x95")]){i=!1;break}if(e.id!=t.id&&e[qx("0x34")][qx("0x95")]==n){s=!1;break}}i&&s&&(t[qx("0x58")](),o=!0)}for(const t of i)e[qx("0x52")](t);for(const t of x)e.unwrap(t);return o})),t.conversion[qx("0x5")](qx("0x0"))[qx("0x85")]({model:qx("0x60"),view:(t,e)=>l(t),converterPriority:qx("0x91")}),t.conversion[qx("0x5")]("dataDowncast")[qx("0x85")]({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>e.options[qx("0xb")]?l(t,!1):null,converterPriority:qx("0x91")});const u=t[qx("0x8b")][qx("0x2")];this[qx("0x11")](u[qx("0xe")],"clipboardOutput",((t,e)=>{const n=[];for(const t of u.createRangeIn(e[qx("0x30")])[qx("0x6b")]())t.is(qx("0x43"),qx("0x26"))&&n[qx("0x8e")](t);u[qx("0xf")]((t=>{for(const e of n)t[qx("0x4")](t[qx("0x4a")](e),t[qx("0x1")](e)),t[qx("0x52")](e)}))}))}}function Zx(t){if(t[qx("0x2d")])return!0;const e=t.getChild(0);return e.is(qx("0x43"),"paragraph")&&e[qx("0x2d")]}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[qx("0x3")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["bind","Users","format","getSuggestionCallback","data","TableColumnResizeEditing","handleResizeTableWidthCommand","author","get","plugins","editor","getContainedElement","_descriptionFactory","_suggestionFactory","resizeTableWidth","registerDescriptionCallback","resizeTable","getColumnGroupElement","afterInit","has","accept","*Format:* resize table","change","table","tableWidth","model","formatBlock","discard","markBlockFormat","TrackChangesEditing","columnWidths","subType","handleSuggestionDescription","commandParams","locale","getTableColumnsWidths","registerCustomCallback"];var ea,na;ea=ta,na=108,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class sa extends t.Plugin{[oa("0x15")](){if(!this.editor[oa("0xc")][oa("0x16")](oa("0x8")))return;const t=this[oa("0xd")][oa("0xc")][oa("0xb")](oa("0x20"));t.enableCommand("resizeTableWidth",this[oa("0x9")][oa("0x3")](this)),t.enableCommand("resizeColumnWidths",this[oa("0x9")].bind(this)),t[oa("0x10")][oa("0x2")](oa("0x1d"),"resizeTable",oa("0x17"),t[oa("0x10")][oa("0x6")](oa("0x1d"),null,"discard")),t[oa("0x10")].registerCustomCallback(oa("0x1d"),"resizeTable",oa("0x1e"),t[oa("0x10")][oa("0x6")](oa("0x1d"),null,"accept")),t[oa("0xf")][oa("0x12")](this[oa("0x23")][oa("0x3")](this))}[oa("0x9")](t,e){const n=this[oa("0xd")].plugins[oa("0xb")]("TrackChangesEditing"),o=this[oa("0xd")][oa("0xc")].get("TableColumnResizeEditing"),s=e[oa("0x1a")]||this[oa("0xd")][oa("0x1c")].document.selection.getSelectedElement();this.editor[oa("0x1c")][oa("0x19")]((()=>{const r=o[oa("0x14")](s);let i=r?o[oa("0x1")](r):null,x=s.getAttribute("tableWidth")||null;const a=e[oa("0x1b")]||x,c=e.columnWidths||i,l=this[oa("0xd")].plugins[oa("0xb")](oa("0x4")).me;for(const t of n.getSuggestions()){const e=t[oa("0xe")]();if(oa("0x13")===t[oa("0x22")]&&e===s){t[oa("0xa")]!==l&&t[oa("0x1e")]();const e=t[oa("0x7")][oa("0x24")];x=e[0][oa("0x1b")],i=e[0][oa("0x21")];break}}t({table:s,tableWidth:a,columnWidths:c}),n[oa("0x1f")](s,{commandName:oa("0x11"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:oa("0x13")},[],oa("0x13"))}))}[oa("0x23")](t){const{data:e}=t;if(e&&"resizeTable"===e.formatGroupId){const t=oa("0x18");return{type:oa("0x5"),content:Yo(this.editor[oa("0x0")],t)}}}}const ra=["get","enableCommand","Template","editor","TrackChangesEditing","plugins"];var ia,xa;ia=ra,xa=329,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{afterInit(){const t=this[aa("0x4")];t.plugins.has(aa("0x3"))&&t[aa("0x0")][aa("0x1")](aa("0x5"))[aa("0x2")]("insertTemplate")}}const la=["get","editor","plugins","commands","insertTableOfContents","ELEMENT_TABLE_OF_CONTENTS","registerElementLabel","locale","enableCommand","TrackChangesEditing","afterInit"];var ua,da;ua=la,da=127,function(t){for(;--t;)ua.push(ua.shift())}(++da);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x4")](){const t=this[ga("0x6")];if(!t[ga("0x8")].get(ga("0x9")))return;t.plugins[ga("0x5")](ga("0x3"))[ga("0x2")](ga("0x9"));const e=t[ga("0x7")][ga("0x5")](ga("0x3")),n=t[ga("0x1")];e._descriptionFactory[ga("0x0")]("tableOfContents",(t=>Yo(n,ga("0xa"),t)))}}const fa=["createRange","isCollapsed","from","afterInit","suggestion","element","_splitMarkerName","isTouching","get","end","removeMarker","TrackChangesEditing","title-content","model","getChangedMarkers","forward","plugins","getNearestSelectionRange","document","start","Title","has","ELEMENT_TITLE","newRange","editor","differ","nodeBefore"];var ha,pa;ha=fa,pa=363,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{[ba("0x12")](){const t=this[ba("0xc")];if(!t[ba("0x4")][ba("0x9")](ba("0x8")))return;const e=t[ba("0x4")][ba("0x17")](ba("0x1a"));e._descriptionFactory.registerElementLabel("title-content",(()=>Yo(t.locale,ba("0xa")))),t[ba("0x1")][ba("0x6")].registerPostFixer((n=>{let o=!1;const s=Array[ba("0x11")](t.model[ba("0x6")][ba("0xd")][ba("0x2")]());for(const{name:r,data:i}of s){const{group:s}=e[ba("0x15")](r);if(ba("0x13")!==s||!i[ba("0xb")])continue;const x=i[ba("0xb")],a=x[ba("0x18")][ba("0xe")];if(!a||!a.is(ba("0x14"),ba("0x0")))continue;if(!x[ba("0x7")][ba("0x16")](x.end))continue;const c=t[ba("0x1")].schema[ba("0x5")](x[ba("0x18")],ba("0x3"));if(c&&c[ba("0x10")]){const t=n[ba("0xf")](x[ba("0x7")],c[ba("0x7")]);t.isEqual(x)||(n.updateMarker(r,{range:t}),o=!0)}o||(n[ba("0x19")](r),o=!0)}return o}))}}const _a=["afterInit","enableCommand","undo","redo","get","UndoEditing"];var Ta,Ca;Ta=_a,Ca=409,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0x5")](){const t=this.editor,e=t.plugins[ya("0x3")]("TrackChangesEditing");t.plugins.has(ya("0x4"))&&(e[ya("0x0")](ya("0x1")),e.enableCommand(ya("0x2")))}}const Aa=["requires","has","TableCaptionEditing","afterInit","get","enableCommand","editor","TrackChangesEditing","plugins"];var va,Ra;va=Aa,Ra=282,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Sa=function(t,e){return Aa[t-=0]};class Ia extends t.Plugin{static get[Sa("0x6")](){return[wx]}[Sa("0x0")](){const t=this[Sa("0x3")];t.plugins[Sa("0x7")](Sa("0x8"))&&t[Sa("0x5")][Sa("0x1")](Sa("0x4"))[Sa("0x2")]("toggleTableCaption")}}const La=["commandName","handleListStartCommand","numbered","config","listStart","bind","editor","document","ELEMENT_","isFirstBlockOfListItem","getAttribute","handleDescriptions","from","DocumentListPropertiesEditing","handleListStyleCommand","change","*Change to:* %0","DocumentListUtils","enableCommand","*Format:* set order to reversed","expandListBlocksToCompleteList","_descriptionFactory","TrackChangesEditing","commandParams","list.properties","handleListReversedCommand","get","reversed","isListItemBlock","listReversed","getListTypeFromListStyleType","markMultiRangeBlockFormat","_getSuggestionBlocksForListStyle","format","afterInit","replace","DocumentListPropertiesUtils","model","startIndex","listType","has","listStyle","toUpperCase","registerDescriptionCallback","plugins","locale","push","getSelectedBlocks","_getSuggestionBlocks","length","type","styles"];var Na,Ma;Na=La,Ma=109,function(t){for(;--t;)Na.push(Na.shift())}(++Ma);const wa=function(t,e){return La[t-=0]};class Oa extends t.Plugin{[wa("0x1d")](){if(!this[wa("0x1")].plugins[wa("0x23")](wa("0x8")))return;const t=this[wa("0x1")][wa("0x32")][wa("0x15")](wa("0x13")),e=this[wa("0x1")][wa("0x27")].get(wa("0x11"));t[wa("0x2e")]&&e[wa("0xd")](wa("0x24"),this[wa("0x9")].bind(this)),t[wa("0x16")]&&e.enableCommand(wa("0x18"),this[wa("0x14")][wa("0x0")](this)),t.startIndex&&e.enableCommand("listStart",this[wa("0x30")][wa("0x0")](this)),e[wa("0x10")][wa("0x26")](this[wa("0x6")][wa("0x0")](this))}handleListStyleCommand(t,e={}){const n=this[wa("0x1")][wa("0x27")][wa("0x15")]("TrackChangesEditing"),o=this[wa("0x1b")]();this[wa("0x1")][wa("0x20")][wa("0xa")]((()=>{n[wa("0x1a")](o,{commandName:wa("0x24"),commandParams:[{type:e.type}],formatGroupId:wa("0x24")})}))}[wa("0x14")](t,e={}){const n=this[wa("0x1")][wa("0x27")][wa("0x15")](wa("0x11")),o=this[wa("0x1")][wa("0x27")].get(wa("0xc")),s=this[wa("0x2b")]((t=>o.isListItemBlock(t)&&"numbered"===t[wa("0x5")]("listType")));null!==s&&this[wa("0x1")][wa("0x20")].change((()=>{n.markMultiRangeBlockFormat(s,{commandName:wa("0x18"),commandParams:[{reversed:e.reversed}],formatGroupId:wa("0x18")})}))}[wa("0x30")](t,e={}){const n=this[wa("0x1")].plugins.get(wa("0x11")),o=this[wa("0x1")].plugins[wa("0x15")](wa("0xc")),s=this._getSuggestionBlocks((t=>o[wa("0x17")](t)&&wa("0x31")===t[wa("0x5")](wa("0x22"))));null!==s&&this[wa("0x1")][wa("0x20")][wa("0xa")]((()=>{n[wa("0x1a")](s,{commandName:"listStart",commandParams:[{startIndex:e.startIndex}],formatGroupId:"listStart"})}))}[wa("0x6")](t){const e=this[wa("0x1")][wa("0x28")],{data:n}=t;if(!n)return;let o,s;switch(n[wa("0x2f")]){case wa("0x24"):o=wa("0xb"),s={type:wa("0x1c"),content:Yo(e,o,Yo(e,this._getTranslationKeyForListStyle(n[wa("0x12")][0][wa("0x2d")])))};break;case wa("0x18"):o=n[wa("0x12")][0][wa("0x16")]?wa("0xe"):"*Format:* set order to regular",s={type:wa("0x1c"),content:Yo(e,o)};break;case wa("0x33"):o="*Format:* set start index to %0",s={type:"format",content:Yo(e,o,n[wa("0x12")][0][wa("0x21")])}}return s}_getSuggestionBlocksForListStyle(){const t=this[wa("0x1")].plugins.get(wa("0xc"));let e=Array[wa("0x7")](this.editor[wa("0x20")].document.selection.getSelectedBlocks());return e[wa("0x29")](...t[wa("0xf")](e)),e=[...new Set(e)],e}[wa("0x2b")](t){const e=this[wa("0x1")].plugins[wa("0x15")](wa("0xc"));let n=Array[wa("0x7")](this.editor.model[wa("0x2")].selection[wa("0x2a")]()).filter(t);if(!n[wa("0x2c")])return null;n=e.expandListBlocksToCompleteList(n);const o=[];for(const t of n)e[wa("0x4")](t)&&o[wa("0x29")](t);return o}_getTranslationKeyForListStyle(t){return wa("0x3")+this[wa("0x1")][wa("0x27")].get(wa("0x1f"))[wa("0x19")](t)[wa("0x25")]()+"_LIST_"+t[wa("0x25")]()[wa("0x1e")](/-/g,"_")}}const Fa=["handleSuggestionDescription","tableCellBorderWidth","TablePropertiesEditing","locale","getSuggestions","tableBorderWidth","TableCellPropertiesEditing","TrackChangesTableProperties","*Format:* change table cell properties","getSuggestionCallback","tableBorderStyle","_descriptionFactory","change","afterInit","getAttribute","handleDiscardAction","start","accept","editor","findAncestor","join","tableCellBackgroundColor","selection","getFirstPosition","tableCellProperties","setAttribute","enableCommand","get","registerDescriptionCallback","_suggestionFactory","removeAttribute","getContainedElement","model","TrackChangesEditing","plugins","data","_getSuggestion","_handlePropertyChange","tableCellPadding","tableBorderColor","format","document","tableWidth","table","TableUtils","discard","formatBlock","tableAlignment","getSelectionAffectedTableCells","subType","registerCustomCallback","tableHeight","*Format:* change table properties","tableCellWidth","tableProperties","tableCellBorderStyle","markBlockFormat"];var Pa,Da;Pa=Fa,Da=260,function(t){for(;--t;)Pa.push(Pa.shift())}(++Da);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{constructor(t){super(t),this[Ba("0x16")]=[Ba("0x7"),Ba("0x23"),Ba("0x1e"),Ba("0xf"),Ba("0xa"),Ba("0x13"),"tableBackgroundColor"],this.tableCellProperties=["tableCellBorderColor",Ba("0x17"),Ba("0x1a"),Ba("0x6"),Ba("0x15"),"tableCellHeight",Ba("0x2e"),"tableCellHorizontalAlignment","tableCellVerticalAlignment"]}static get pluginName(){return Ba("0x20")}[Ba("0x26")](){const t=this[Ba("0x2b")][Ba("0x2")][Ba("0x34")](Ba("0x1"));if(this.editor[Ba("0x2")].has(Ba("0x1b"))){for(const e of this[Ba("0x16")])t[Ba("0x33")](e,((t,n)=>{const o=this[Ba("0x2b")][Ba("0x0")][Ba("0x9")][Ba("0x2f")][Ba("0x30")]()[Ba("0x2c")](Ba("0xb"));this._handlePropertyChange(e,[o],this.tableProperties,Ba("0x16"),t,n)}));t._suggestionFactory[Ba("0x12")](Ba("0xe"),Ba("0x16"),Ba("0x2a"),t[Ba("0x36")][Ba("0x22")](Ba("0xe"),null,Ba("0xd"))),t[Ba("0x36")][Ba("0x12")]("formatBlock","tableProperties",Ba("0xd"),((t,e)=>this.handleDiscardAction(this[Ba("0x16")],t,e))),t[Ba("0x36")][Ba("0x12")]("formatBlock",Ba("0x16"),"join",(()=>!1))}if(this[Ba("0x2b")][Ba("0x2")].has(Ba("0x1f"))){for(const e of this[Ba("0x31")])t[Ba("0x33")](e,((t,n)=>{const o=this.editor[Ba("0x2")][Ba("0x34")](Ba("0xc"))[Ba("0x10")](this[Ba("0x2b")][Ba("0x0")][Ba("0x9")][Ba("0x2f")]);this[Ba("0x5")](e,o,this.tableCellProperties,Ba("0x31"),t,n)}));t[Ba("0x36")][Ba("0x12")]("formatBlock","tableCellProperties",Ba("0x2a"),t[Ba("0x36")].getSuggestionCallback(Ba("0xe"),null,"discard")),t._suggestionFactory[Ba("0x12")]("formatBlock",Ba("0x31"),Ba("0xd"),((t,e)=>this[Ba("0x28")](this.tableCellProperties,t,e))),t[Ba("0x36")].registerCustomCallback(Ba("0xe"),Ba("0x31"),Ba("0x2d"),(()=>!1))}t[Ba("0x24")][Ba("0x35")]((t=>this[Ba("0x19")](t)))}[Ba("0x5")](t,e,n,o,s,r){const i=this[Ba("0x2b")].plugins.get(Ba("0x1"));this[Ba("0x2b")].model.enqueueChange(r.batch,(()=>{for(const t of e)if(this[Ba("0x4")](t,o))s(r);else{const e={};for(const o of n){const n=t[Ba("0x27")](o);void 0!==n&&(e[o]=n)}s(r),i[Ba("0x18")](t,{commandParams:[e]},[],o)}}))}handleDiscardAction(t,e,n){const o=e[0][Ba("0x29")].nodeAfter,s=n.commandParams[0];this[Ba("0x2b")].model[Ba("0x25")]((e=>{for(const n of t)void 0!==s[n]?e[Ba("0x32")](n,s[n],o):e[Ba("0x37")](n,o)}))}[Ba("0x19")](t){if(t[Ba("0x3")])switch(t[Ba("0x11")]){case Ba("0x16"):return{type:Ba("0x8"),content:Yo(this[Ba("0x2b")].locale,Ba("0x14"))};case Ba("0x31"):return{type:"format",content:Yo(this.editor[Ba("0x1c")],Ba("0x21"))}}}[Ba("0x4")](t,e){const n=this[Ba("0x2b")].plugins[Ba("0x34")](Ba("0x1"));for(const o of n[Ba("0x1d")]({skipNotAttached:!0})){const n=o[Ba("0x38")]();if(o.subType===e&&n===t)return o}return null}}const Ua=["isAfter","deletion:accept","adapter","isInsideObject","enableCommand","_getExternalAuthor","filter","formatBlock:discard","insertion:chain","attributes","change","suggestionUnloaded","editor","author","createSelection","isLocal","type","fromCharCode","TrackChangesEditing","error-saving-suggestion-data-suggestion-discarded","markerNameToElements","markInsertion","map","fetchCommentThread","hasComments","_removeSuggestion","getRange","_customCallbacks","position","normal","delete","from","for","setSelection","get","setAttribute","discardAllSuggestions","enqueueChange","getAncestors","data-suggestion","external:","getNearestSelectionRange","splice","getWalker","getChangedMarkers","addHighlight","registerPostFixer","size","_joinSuggestions","clone","every","next","authorName","getUser","_registerDefaultCallbacks","_rangeIsInLocalUserInsertion","insertion:join","insertion:","creator","rejected","markMultiRangeDeletion","tablePasteChainId","isDocumentOperation","head","values","$textProxy","addSuggestionData","editing","data","deletion:discard","high","document","addCommentThread","catch","addMarkerName","getSuggestion","multipleBlocks","containsRangeInObject","name","isInContent","Users","getSuggestions","isObject","before","CommentsRepository","isMultiRange","unbind","elementEnd","authoredAt","_splitMarkerName","_getSuggestionData","_addThreadToSuggestion","markers","_adapter","_editor","updateMarker","moveTargetPosition","formatBlock:chain","createPositionBefore","substr","removeMarker","sort","_suggestionFactory","always","trackChanges.mergeNestedSuggestions","formatInline:","isAtStart","isLimit","removeMarkers","push","isTouching","getFirstRange","getItems","change:data","buildSuggestion","enableReadOnlyMode","stopListening","consumable","deletion:join","getAttribute","getIntersection","PENDING_ACTION_SUGGESTION","targetPosition","locale","_model","mapper","markMultiRangeBlockFormat","config","after","conversion","acceptSuggestion","activeMarkers","isCollapsed","registerCustomCallback","originalSuggestionId","_enabledCommands","ck-suggestion-marker-","isEqual","marker-count","rootName","createRangeIn","start","ck-suggestion-marker","refresh","some","_breakSuggestionMarker","getCustomProperty","_mergeNestedSuggestions","getCommentThread","isUndo","setTo","model","createdAt","fromRange","removeComment","_saved","track-changes-user-not-found","set","_checkSuggestionCorrectness","consume","multi","track-changes-suggestion-data-mismatch","markerToHighlight","acceptAllSuggestions","_setSuggestionRange","has","writer","then","getLastMatchingPosition","low","$graveyard","_cutOutSuggestionMarker","markerName","trackChanges.trackFormatChanges","editingDowncast","newRange","skipNestingCheck","_trackFormatChanges","add","isIntersectingWithRange","nodeAfter","containsRange","formatBlock:","formatBlock","selection","containerElement","_joinWithAdjacentSuggestions","pluginName","suggestionChanged","backward","_suggestionState","widget","hasSuggestion","rethrowUnexpectedError","formatInline:chain","insertion","isBlock","_getAuthorFromId","_handleNewSuggestionMarker","getSuggestionCallback","_suggestions","subType","group","_createSuggestion","removeMarker:suggestion:formatBlock","removed","formatInline:discard","nodeBefore","isAtEnd","fire","getShiftedBy","addMarker:suggestion:formatBlock","containsItem","isSelectable","change:_saved","deletion:chain","getFirstMarker","element","hasCommentThread","@external","_addSuggestionMarker","addRange","discard","return","getAllAdjacentSuggestions","PendingActions","insertContent","_setSuggestionData","requires","toJSON","forceDefaultExecution","getDifference","removeAttribute","insert","markInlineFormat","_defaultCallbacks","collaboration.channelId","remove","_commentsRepository","_isForcedDefaultExecutionBlock","parent","addSuggestion","acceptSelectedSuggestions","oldRange","define","root","deletion","accept","formatGroupId","length","isArray","addMarker:suggestion","includes","bindElementToMarker","listenTo","howMany","updateSuggestion","plugins","markDeletion","removeClass","split","getRanges","highest","track-changes-adapter-missing-getsuggestion","_refreshSuggestionsChain","suggestion","end","commandName","isOwn","formatInline:join","_updateSuggestionData","ck-suggestion-marker-formatBlock","formatBlock:join","addMarker","formatInline","dataDowncast","never","stop","deletion:","differ","containsPosition","forward","range","ready","deleteContent","join","item","discardSuggestion","showSuggestionHighlights","move","suggestion-type","addComment","createPositionAt","elementToElement","createElement","getMultiRangeId","notReady","createPositionAfter","resolve","assign","commands","getChanges","_descriptionFactory","open","toViewElement","dataReady","trackChanges","previous","detach","execute","markerToData","trackChangesCommand","discardSelectedSuggestions","batch","_isDataLoaded","clear","ck-suggestion-marker--active","isNextTo","options","schema","markerReady","value","isRemovable","commentThread","addClass","insertion:discard","suggestion:","track-changes-command-not-found","lowest","createRange","getMarkers","_findSuggestions","isBefore"];var Ga,Ha;Ga=Ua,Ha=243,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const za=function(t,e){return Ua[t-=0]};class Wa extends t.Plugin{static get[za("0x13e")](){return[za("0xae"),r.Users,t.PendingActions,cs,Cs,Rs,ws,Bs,Ws,Js,er,Oa,xr,dr,br,yr,Lr,Pr,Gr,Kr,Qr,ni,xi,di,pi,Ci,Ri,Oi,ji,Wi,$i,tx,ix,dx,px,yx,Sx,wx,jx,Wx,Ia,Qx,sa,ma,ja,ca,Ea,ka]}static get[za("0x115")](){return za("0x6c")}constructor(t){function e(t){return t.map((t=>String[za("0x6b")](t)))[za("0x2a")]("")}super(t),this[za("0xf7")](za("0xdd"),[]),this.on("change:activeMarkers",((e,n,o,s)=>{this[za("0xd6")][za("0x64")]((()=>{for(const e of[...s,...o])this._model[za("0xb6")][za("0xff")](e)&&t[za("0x9d")].reconvertMarker(e)}))})),this[za("0x3b")]=new ss(this[za("0x66")][za("0xf1")][za("0x4c")],this.editor[za("0xd5")]),this[za("0xb7")]=null,this[za("0xc0")]=new Va(this.editor),this[za("0x122")]=new Map,this[za("0x148")]=t.plugins[za("0x7c")](za("0xae")),this[za("0xe1")]=new Set,this._model=this.editor[za("0xf1")],this[za("0x118")]=new WeakMap,this._isForcedDefaultExecutionBlock=!1,t[za("0xd9")][za("0x1")](za("0x107"),"default"),this[za("0x10b")]=t[za("0xd9")][za("0x7c")](za("0x107")),t[za("0xd9")][za("0x1")](za("0xc2"),!0),this[za("0xed")]=t[za("0xd9")][za("0x7c")](za("0xc2")),this[za("0x44")]=new d(t,this._enabledCommands),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,49,56,50,56])}init(){const t=this[za("0x66")];t[za("0xdb")].for(za("0x108")).markerToHighlight({model:"suggestion",view:t=>{const{id:e,type:n}=this[za("0xb3")](t[za("0x106")]),o=[za("0xe8"),za("0xe2")+n];let s=3e3;return this[za("0xdd")].includes(t.markerName)&&(o[za("0xc7")](za("0x49")),s=3010),za("0x3")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[za("0xdb")][za("0x7a")](za("0x20"))[za("0x10c")]((e=>{e.on(za("0x8"),((e,n,o)=>{if(!o[za("0x4b")][za("0x2d")])return;const s=n.item;if(!s)return;const r=o[za("0xd7")].toViewElement(s);t[za("0xf1")][za("0x4c")][za("0xac")](s)&&r&&!r[za("0xec")](za("0x119"))&&r.is(za("0x113"))&&(0,x.toWidget)(r,o.writer)}),{priority:za("0xa0")})})),t[za("0xdb")][za("0x7a")]("dataDowncast")[za("0xfc")]({model:za("0x16"),view:(t,e)=>{if(!e[za("0x4b")][za("0x2d")])return null;const{type:n}=this._splitMarkerName(t[za("0x106")]);return{classes:["ck-suggestion-marker",za("0xe2")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o.item)return;if(o[za("0x2b")].is("selection"))return void s[za("0xcf")][za("0xf9")](o[za("0x2b")],n.name);const r=s[za("0xd7")][za("0x3d")](o.item);if(!o[za("0x2b")].is(za("0x133"))||!t[za("0xf1")][za("0x4c")].isBlock(o.item)||r[za("0xec")](za("0x87")))return;const{id:i}=this[za("0xb3")](o[za("0x106")]);s[za("0x100")][za("0x51")]([za("0xe8"),"ck-suggestion-marker-formatBlock"],r),s[za("0x100")][za("0x7d")](za("0x81"),i,r),s[za("0xd7")][za("0xa")](r,o.markerName),e&&(this[za("0xdd")][za("0x9")](o[za("0x106")])?s[za("0x100")][za("0x51")](za("0x49"),r):s[za("0x100")].removeClass(za("0x49"),r));for(const e of t[za("0xf1")][za("0xe6")](o[za("0x2b")])[za("0xca")]())s[za("0xcf")][za("0xf9")](e,n.name);s.consumable.consume(o.item,n.name)};t[za("0xdb")][za("0x7a")](za("0x20"))[za("0x10c")]((t=>{t.on(za("0x12d"),((t,e,o)=>{o.options[za("0x2d")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:za("0x13")})})),t.conversion[za("0x7a")]("dataDowncast")[za("0x43")]({model:"suggestion",view:(t,e)=>e[za("0x4b")][za("0x2d")]?null:{group:"suggestion",name:t[za("0xbd")](11)}}),t[za("0xdb")][za("0x7a")]("upcast")[za("0x32")]({view:{name:za("0x16"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n="suggestion:"+t[za("0xd1")](za("0x2f"))+":"+t[za("0xd1")]("id");return t[za("0xd1")](za("0xe4"))&&(n+=":"+t.getAttribute("marker-count")),e[za("0x33")]("$marker",{"data-name":n})}}),t[za("0xdb")][za("0x7a")]("upcast").dataToMarker({view:"suggestion"}),t[za("0xdb")].for(za("0x108"))[za("0x10c")]((t=>{t.on("addMarker:suggestion:formatBlock",n(),{priority:za("0xa0")})})),t[za("0xdb")][za("0x7a")](za("0x108"))[za("0x10c")]((t=>{t.on(za("0x126"),((t,e,n)=>{const o=n[za("0xd7")][za("0x6e")](e[za("0x106")]);if(o)for(const t of o)t[za("0xec")](za("0x87"))||(n[za("0x100")][za("0x10")]([za("0xe8"),za("0x1c"),za("0x49")],t),n[za("0x100")][za("0x142")](za("0x81"),t),n.mapper.unbindElementFromMarkerName(t,e.markerName))}),{priority:za("0xa0")})})),t[za("0xf1")].document[za("0x88")]((e=>{let n=!1;const o=Array[za("0x79")](t[za("0xf1")][za("0xa1")][za("0x24")][za("0x86")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this._splitMarkerName(x);if(za("0x16")!==o)continue;const u=this[za("0x122")].get(l);if(null!=a[za("0x109")])if(za("0x1f")==c&&(n=n||qa(a[za("0x109")],x,e,t.model[za("0x4c")])),a[za("0x109")][za("0xde")]||za("0x104")==a.newRange.root[za("0xe5")]||za("0x111")==c&&!Ja(a[za("0x109")])||za("0x3")==c&&(Xa(i=a[za("0x109")])||(r=i)[za("0xe7")][za("0x14a")]==r.end[za("0x129")]&&r.start[za("0x12a")]))e.removeMarker(x),n=!0;else{if(!u||!u[za("0xa9")])continue;s[za("0x10c")](u)}}var r,i;return s[za("0x89")]>0&&(n=!!this[za("0x114")](s)||n),n})),t.model[za("0xa1")][za("0x88")]((e=>{let n=!1;for(const o of t[za("0xf1")][za("0xa1")].differ[za("0x3a")]()){if(za("0x143")!=o.type)continue;const s=o.position[za("0x12c")](o.length);if(s[za("0x12a")])for(const r of this[za("0x122")].values()){if(r[za("0xaf")]||!r[za("0xa9")])continue;if(za("0x111")!=r[za("0x6a")])continue;const i=r.getFirstRange();if(i[za("0xe7")][za("0x14a")]!=i.end[za("0x14a")]&&i[za("0x17")][za("0xe3")](o[za("0x76")])){const o=t[za("0xf1")].createRange(i[za("0xe7")],s);e[za("0xb9")](r[za("0x132")](),{range:o}),n=!0}}}return n})),t[za("0xf1")][za("0xb6")].on("update:suggestion",((t,e,n)=>{if(null==n){const{id:t}=this[za("0xb3")](e[za("0xa8")]),n=this[za("0x122")].get(t);n&&n.addMarkerName(e[za("0xa8")])}})),t[za("0xf1")].document.on(za("0xcb"),(()=>{const e=Array[za("0x79")](t[za("0xf1")][za("0xa1")][za("0x24")].getChangedMarkers())[za("0x60")]((t=>za("0x16")===this[za("0xb3")](t[za("0xa8")])[za("0x124")]));if(0===e[za("0x6")])return;e[za("0xbf")](((t,e)=>{const n=t[za("0x9e")][za("0x0")],o=e[za("0x9e")][za("0x0")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n.start.isBefore(o[za("0xe7")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[za("0xb3")](t);if(null===s[za("0x0")]){const e=this._handleNewSuggestionMarker(t);o[za("0x10c")](e)}else{const t=this[za("0x122")][za("0x7c")](e);null!==s[za("0x109")]||t[za("0xa9")]?(n.add(t[za("0x99")]),o[za("0x10c")](t)):this[za("0x73")](t)}}o[za("0x89")]>0&&this[za("0x15")](o);for(const t of n)this[za("0x12b")](za("0x116"),t)})),t[za("0xf1")].on("applyOperation",((e,n)=>{const o=n[0];if(!this[za("0x122")][za("0x89")])return;if(!o[za("0x98")])return;if(o.batch[za("0xef")]||!o[za("0x46")][za("0x69")])return;let s,r;switch(o[za("0x6a")]){case za("0x143"):s=t[za("0xf1")][za("0x31")](o[za("0x76")]),r=s[za("0x12c")](o[za("0xc")]);break;case"split":s=t.model[za("0x31")](o.splitPosition),r=t[za("0xf1")][za("0x31")](o[za("0xba")]);break;case za("0x2e"):s=t[za("0xf1")][za("0x31")](o[za("0xd4")]),r=s.getShiftedBy(o.howMany);break;default:return}const i=t.model[za("0x56")](s,r);t[za("0xf1")].change((()=>{for(const{suggestion:t,meta:e}of this[za("0x58")](i)){if(t.isMultiRange)continue;if("formatInline"==t.type)continue;const n=t.data&&t.data[za("0xa6")];(za("0x111")!=t[za("0x6a")]||za("0x11")==o[za("0x6a")]&&!n)&&(e.containsRangeInObject||"insertion"==t[za("0x6a")]&&e[za("0x19")]||t[za("0xc9")]()[za("0x10f")](i)&&this[za("0xeb")](t,s,r))}}))}),{priority:za("0x55")}),t.model.on(za("0x29"),((e,n)=>{const o=n[0],s=n[1];if(s&&s.forceDefaultExecution)return;if(this[za("0x149")])return;if(!this[za("0x44")][za("0x4e")])return;if(o.isCollapsed)return;const r=t[za("0xf1")][za("0x4c")],{start:i,end:x}=o.getFirstRange(),a=i[za("0x10e")]&&r.isLimit(i[za("0x10e")])?null:r[za("0x83")](i,za("0x26")),c=x.nodeBefore&&r[za("0xc5")](x[za("0x129")])?null:r.getNearestSelectionRange(x,za("0x117")),l=t[za("0xf1")][za("0x56")](a?a.start:i,c?c[za("0x17")]:x);t[za("0xf1")][za("0x64")]((e=>{this[za("0xf")](l);const n=t[za("0xf1")][za("0x4c")].getNearestSelectionRange(l[za("0xe7")]);o.is("documentSelection")?e[za("0x7b")](n):o[za("0xf0")](n)})),e[za("0x22")]()}),{priority:e.priorities[za("0x77")]+10}),t.model.on("insertContent",((e,n)=>{const o=n[n[za("0x6")]-1];o&&o[za("0x140")]||this[za("0x149")]||this[za("0x44")][za("0x4e")]&&(t[za("0xf1")][za("0x64")]((()=>{let o=t[za("0xf1")][za("0x13c")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[za("0x139")]=o[za("0x8b")]();const s=o.end[za("0x129")],r=t[za("0xf1")].schema;s&&r[za("0x11e")](s)&&!r.isObject(s)&&(o=t[za("0xf1")][za("0x56")](o[za("0xe7")],t[za("0xf1")][za("0x31")](s,za("0x17")))),this[za("0x6f")](o)})),e.stop())}),{priority:za("0xa0")}),this[za("0x66")].commands[za("0x10c")](za("0x3f"),this[za("0x44")]),this[za("0x5e")](za("0x3f"));const o=new p(t,this[za("0x122")]);t.commands.add(za("0xdc"),o),this[za("0x5e")](za("0xdc"));const s=new C(t,this[za("0x122")]);t.commands[za("0x10c")](za("0x2c"),s),this[za("0x5e")](za("0x2c")),t[za("0x39")].add(za("0xfd"),new F(t,o,this._suggestions)),this[za("0x5e")](za("0xfd")),t[za("0x39")][za("0x10c")]("discardAllSuggestions",new F(t,s,this[za("0x122")])),this[za("0x5e")](za("0x7e")),t[za("0x39")][za("0x10c")]("acceptSelectedSuggestions",new U(t,o,this[za("0x122")])),this[za("0x5e")](za("0x14c")),t[za("0x39")][za("0x10c")](za("0x45"),new U(t,s,this._suggestions)),this[za("0x5e")](za("0x45"));const r=t[za("0xe")][za("0x7c")]("CommentsRepository");this[za("0xb")](r,za("0x30"),((t,{threadId:e})=>{const n=this._suggestions[za("0x7c")](e);n&&n[za("0x50")]&&1===n.commentThread.length&&this[za("0x1b")](e,{hasComments:!0})}),{priority:za("0x103")}),this[za("0xb")](r,za("0xf4"),((t,{threadId:e})=>{const n=this._suggestions.get(e);n&&n[za("0x50")]&&!n[za("0x50")][za("0x6")]&&this._updateSuggestionData(e,{hasComments:!1})}),{priority:"low"})}set[za("0x5c")](t){if(this[za("0xb7")])throw new e.CKEditorError("track-changes-adapter-already-set",this);this[za("0xb7")]=t}get[za("0x5c")](){return this[za("0xb7")]}[za("0xab")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[za("0x122")][za("0x9a")]())t&&!e[za("0xa9")]||n.push(e);return e?n.map((t=>t[za("0x13f")]())):n}getSuggestion(t){const n=this[za("0x122")][za("0x7c")](t);if(!n)throw new e.CKEditorError("track-changes-suggestion-not-found",this);return n}[za("0x11a")](t){return this[za("0x122")][za("0xff")](t)}[za("0x9c")](t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[za("0x6a")][za("0x11")](":"),i=this._suggestions[za("0x7c")](n)||this[za("0x125")](s,r,n,e,o);if(this[za("0xb5")](i),this[za("0xf8")](i,s,r||null,e),i[za("0xf2")]=t[za("0xf2")],i[za("0x47")]=!0,o&&o[za("0x135")]){const t=o[za("0x135")],e=this[za("0x5f")](t[za("0x8e")]);i[za("0xb2")]=t[za("0xf2")],i[za("0x67")]=e,i.isExternal=!0}else i.authoredAt=t.createdAt;switch(t.data&&(i[za("0x9e")]=t.data),t[za("0x63")]&&(i[za("0x63")]=t[za("0x63")]),this[za("0xb7")]&&this._adapter[za("0x14b")]||(i[za("0xf5")]=!0),this._suggestionState[za("0x7c")](i)){case za("0x35"):this[za("0x118")][za("0xf7")](i,za("0x3e"));break;case za("0x4d"):i[za("0xa9")]?(this._refreshSuggestionsChain(new Set([i])),this[za("0x114")](new Set([i])),this[za("0x118")][za("0xf7")](i,za("0x28")),this[za("0x12b")]("suggestionLoaded",i)):this._suggestionState[za("0xf7")](i,za("0x127"))}return i}[za("0xdc")](t){this[za("0x140")]((()=>{this.editor[za("0xf1")][za("0x64")]((()=>{for(const e of t[za("0x13a")]())e[za("0x4")]()}))}))}discardSuggestion(t){this.forceDefaultExecution((()=>{this[za("0x66")][za("0xf1")][za("0x64")]((()=>{for(const e of t.getAllAdjacentSuggestions())e[za("0x138")]()}))}))}[za("0x5e")](t,n){const o=this.editor[za("0x39")][za("0x7c")](t);if(!o)throw new e.CKEditorError(za("0x54"),this,{commandName:t});this[za("0xe1")][za("0x10c")](o),n&&o.on(za("0x42"),((t,e)=>{this[za("0x44")][za("0x4e")]&&(this._isForcedDefaultExecutionBlock||e.length>0&&e[e[za("0x6")]-1]&&e[e.length-1][za("0x140")]||(n(((...t)=>o[za("0x42")](...t,{forceDefaultExecution:!0})),...e),t.stop()))}),{priority:za("0xa0")})}forceDefaultExecution(t){let n,o;const s=this[za("0x149")];this[za("0x149")]=!0;try{n=t()}catch(t){o=t}return s||(this[za("0x149")]=!1),o&&e.CKEditorError[za("0x11b")](o,this),n}[za("0x6f")](t,n=null,o={}){if(t[za("0xde")])return null;const s=this[za("0x66")][za("0xe")].get("Users").me;for(const{suggestion:e,meta:s}of this._findSuggestions(t,"insertion"))if(s[za("0x19")]){if(!s[za("0x4a")]){if(s.containsRangeInObject){if(!this[za("0xed")]||!tc(e,o))continue;return e}if(tc(e,o))return e;this[za("0xeb")](e,t[za("0xe7")],t.end);break}if(n==e.subType&&tc(e,o)){const n=e[za("0xc9")]();return n.start[za("0xe3")](t.end)?this[za("0xfe")](e,this._model[za("0x56")](t[za("0xe7")],n[za("0x17")])):this._setSuggestionRange(e,this[za("0xd6")][za("0x56")](n[za("0xe7")],t.end)),e}}const r=(0,e.uid)(),i=s.id,x=n?za("0x93")+n:"insertion",a=this[za("0x13d")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x136")](x,r,i,t),a}markMultiRangeInsertion(t,n=za("0xfa"),o={}){const s=this[za("0x66")][za("0xe")][za("0x7c")](za("0xaa")).me,r=this._suggestionFactory[za("0x121")](za("0x11d"),n,za("0x2a"));for(const e of this[za("0xab")]())if(e[za("0x67")].id==s.id&&za("0x11d")==e.type&&e[za("0x123")]==n&&tc(e,o)&&(r(e[za("0x12")](),t)||r(t,e[za("0x12")]()))){for(const n of t)e[za("0x137")](n);return e}for(const{suggestion:e,meta:n}of this[za("0x58")](t,za("0x11d"))){if(!n.isOwn)continue;if(!this[za("0xed")]&&n.containsRangeInObject)continue;if(!tc(e,o))continue;let s=!0;for(const n of e.getRanges())for(const e of t)if(!n[za("0x10f")](e)){s=!1;break}if(s)return e}const i=(0,e.uid)(),x=s.id,a=za("0x93")+n,c=this[za("0x13d")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[za("0x136")](a,i,x,e,Zo[za("0x34")]());return c}[za("0x144")](t,n,o=null,s={}){if(o=o||$a(n),t[za("0xde")])return null;if("never"===this[za("0x10b")]){const e=this[za("0xc0")][za("0x121")](za("0x1f"),o,za("0x4"));return this[za("0x140")]((()=>e([t],n,s))),null}const r=this[za("0x66")][za("0xe")].get("Users").me,i=[];if(za("0xc1")!==this[za("0x10b")])for(const{suggestion:e,meta:n}of this[za("0x58")](t,"insertion"))n[za("0x19")]&&!n[za("0x5d")]&&i[za("0xc7")](...e[za("0x12")]());const x=function(t,e){const n=[];for(const o of e){const e=t[za("0xd2")](o);e&&n.push(e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[za("0x6")];){const o=n[e][za("0x141")](t);n[za("0x84")](e,1,...o),e+=o.length}}return n}(t,i);x[za("0x6")]&&this[za("0xd6")].change((()=>{for(const t of x){const e=this._suggestionFactory[za("0x121")]("formatInline",o,za("0x4"));this[za("0x140")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t[za("0xe7")],a=t.end;for(const{suggestion:e,meta:n}of this[za("0x58")](t,za("0x1f"))){if(!n[za("0x19")])continue;if(e.subType!=o)continue;if(!tc(e,s))continue;const r=e[za("0xc9")]();if(r[za("0x10f")](t,!0))return null;x=x[za("0x59")](r[za("0xe7")])?x:r[za("0xe7")],a=a[za("0x5a")](r[za("0x17")])?a:r[za("0x17")],i?r[za("0xe7")].isBefore(i[za("0xc9")]()[za("0xe7")])?(i[za("0xc6")](),i=e):e[za("0xc6")]():i=e}const c=this._model.createRange(x,a);if(i)this[za("0xfe")](i,c);else{const t=(0,e.uid)(),i=r.id;this._setSuggestionData({id:t,type:za("0xc3")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[za("0x136")](za("0xc3")+o,t,i,c)}}return null}markBlockFormat(t,n,o=[],s=null,r={}){n[za("0x5")]||(n[za("0x5")]=n[za("0x18")]),n[za("0xa6")]=t.is(za("0x27")),s=s||$a(n);const i=o[za("0x70")]((t=>Qa(t,this[za("0xd6")]))),x=t.is(za("0x27"))?t:Qa(t,this[za("0xd6")]);if(za("0x21")===this[za("0x10b")]){const t=this._suggestionFactory[za("0x121")]("formatBlock",s,"accept");return this[za("0x140")]((()=>t([x],n,r))),null}i.push(x);let a=!0;for(const t of i)if(!this._rangeIsInLocalUserInsertion(t)){a=!1;break}if(a&&za("0xc1")!==this[za("0x10b")]){const t=this[za("0xc0")][za("0x121")](za("0x111"),s,"accept");return this.forceDefaultExecution((()=>t([x],n,r))),null}let c=null,l=x[za("0xe7")],u=x.end;for(const{suggestion:t,meta:e}of this[za("0x58")](x,"formatBlock")){if(!e.isOwn)continue;if(e[za("0x4a")]||e[za("0xa7")]||e[za("0x5d")])continue;if(t[za("0x9e")][za("0x5")]!=n[za("0x5")])continue;if(!tc(t,r))continue;const o=t[za("0xc9")]();if(t[za("0x123")]==s){if(o[za("0x10f")](x,!0))return null;l=l.isBefore(o.start)?l:o[za("0xe7")],u=u[za("0x5a")](o[za("0x17")])?u:o[za("0x17")],c?o[za("0xe7")][za("0x59")](c[za("0xc9")]()[za("0xe7")])?(c[za("0xc6")](),c=t):t[za("0xc6")]():c=t}else{const e=x[za("0xd2")](o);this._cutOutSuggestionMarker(t,e)}}const d=this.editor[za("0xe")][za("0x7c")]("Users").me,g=(0,e.uid)(),m=d.id;if(c)return this[za("0xfe")](c,this[za("0xd6")][za("0x56")](l,u)),c;{const t=this._setSuggestionData({id:g,type:"formatBlock:"+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this[za("0x136")]("formatBlock:"+s,g,m,this._model.createRange(l,u)),t}}[za("0xd8")](t,n,o=[],s=null,r={}){n[za("0x5")]||(n.formatGroupId=n[za("0x18")]);const i=t[0];n[za("0xa6")]=i.is(za("0x27")),s=s||$a(n);const x=o.map((t=>Qa(t,this[za("0xd6")]))),a=i.is("range")?t:t[za("0x70")]((t=>Qa(t,this[za("0xd6")])));if("never"===this[za("0x10b")]){const t=this[za("0xc0")][za("0x121")](za("0x111"),s,za("0x4"));return this[za("0x140")]((()=>t(a,n,r))),null}x[za("0xc7")](...a);let c=!0;for(const t of x)if(!this[za("0x91")](t)){c=!1;break}if(c&&"always"!==this[za("0x10b")]){const t=this._suggestionFactory[za("0x121")](za("0x111"),s,za("0x4"));return this[za("0x140")]((()=>t(a,n,r))),null}const l=this.editor.plugins[za("0x7c")](za("0xaa")).me;for(const t of this.getSuggestions()){if(t[za("0x67")].id!=l.id)continue;if(za("0x111")!=t[za("0x6a")]||t[za("0x9e")].formatGroupId!=n.formatGroupId)continue;if(!tc(t,r))continue;const e=t[za("0x123")]==s;for(let n=0;n<a[za("0x6")];n++){const o=a[n];for(const s of t[za("0x57")]()){const r=s[za("0x74")]();if(o.isEqual(r)){e?(a[za("0x84")](n,1),n--):t[za("0xbe")](s[za("0xa8")]);break}}}}if(0==a.length)return null;const u=this[za("0xc0")].getSuggestionCallback(za("0x111"),s,za("0x2a"));for(const t of this[za("0xab")]())if(t.author.id==l.id&&za("0x111")==t[za("0x6a")]&&t[za("0x9e")][za("0x5")]==n[za("0x5")]&&t.subType==s&&tc(t,r)&&(u(t.getRanges(),a)||u(a,t.getRanges()))){for(const e of a)t.addRange(e);return t}const d=(0,e.uid)(),g=l.id,m=za("0x110")+s,f=this[za("0x13d")]({id:d,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[za("0x136")](m,d,g,t,Zo[za("0x34")]());return f}[za("0xf")](t,n=null,o={}){if(t.isCollapsed)return null;const s=this.editor[za("0xe")][za("0x7c")](za("0xaa")).me,r=new i.LiveRange(t[za("0xe7")],t.end);for(const{suggestion:t,meta:e}of this[za("0x58")](r,za("0x11d")))if(e[za("0x19")]&&!e[za("0x4a")])if(t.isMultiRange){const e=t[za("0x12")]()[za("0x60")]((t=>za("0x104")!=t[za("0x2")][za("0xe5")]));if(e[za("0x8c")]((t=>r[za("0x10f")](t,!0)))&&t[za("0x138")](),e[za("0xea")]((t=>t.containsRange(r,!0)))){const t=this[za("0xc0")].getSuggestionCallback(za("0x3"),n,za("0x4"));return this.forceDefaultExecution((()=>t([r],null,o))),null}}else{const e=r[za("0xd2")](t[za("0xc9")]());null!==e&&t._onDiscard([e],null,o)}if(r[za("0x41")](),r[za("0xde")]||za("0x104")==r[za("0x2")][za("0xe5")])return null;let x=null,a=r[za("0xe7")],c=r[za("0x17")];const l=this[za("0x58")](r,za("0x3"));for(const{suggestion:t,meta:e}of l){const n=this[za("0xd6")][za("0x56")](a,c);if(e[za("0x19")]&&(this[za("0xed")]||!e[za("0xa7")]&&!e[za("0x5d")]))if(t[za("0xaf")]){if(!tc(t,o))continue;let e=!0;for(const o of t[za("0x12")]()){if(o[za("0x10f")](n,!0))return t;n[za("0x10f")](o)||(e=!1)}e&&t[za("0x138")]()}else{const e=t[za("0xc9")]();if(e[za("0x10f")](n,!0))return t;if(!tc(t,o)){n[za("0x10f")](e)?t[za("0xc6")]():e[za("0x25")](a)?a=e[za("0x17")]:e[za("0x25")](c)&&(c=e[za("0xe7")]);continue}a=a[za("0x59")](e[za("0xe7")])?a:e.start,c=c[za("0x5a")](e[za("0x17")])?c:e.end,o=Object[za("0x38")]({},t[za("0x63")]),x?e[za("0xe7")][za("0x59")](x[za("0xc9")]()[za("0xe7")])?(x.removeMarkers(),x=t):t[za("0xc6")]():x=t}}if(x)return this._setSuggestionRange(x,this._model[za("0x56")](a,c)),x;{const t=(0,e.uid)(),r=this[za("0xd6")][za("0x56")](a,c),i=s.id,x=n?za("0x23")+n:za("0x3"),l=this[za("0x13d")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x136")](x,t,i,r),l}}[za("0x96")](t,n=za("0xfa"),o={}){const s=this[za("0x66")].plugins[za("0x7c")](za("0xaa")).me,r=t.map((t=>new i.LiveRange(t[za("0xe7")],t[za("0x17")]))),x=new Set;for(const{suggestion:t,meta:e}of this._findSuggestions(r,za("0x11d")))e[za("0x19")]&&!e.isNextTo&&x[za("0x10c")](t);for(const e of x)if(e[za("0xaf")]){const s=e[za("0x12")]();if((!e[za("0x63")]||!e[za("0x63")].skipNestingCheck)&&s[za("0x8c")]((t=>r.some((e=>e[za("0x10f")](t,!0)))))&&e[za("0x138")](),r[za("0x8c")]((t=>s.some((e=>e.containsRange(t,!0)))))){const e=this[za("0xc0")][za("0x121")]("deletion",n,za("0x4"));return this.forceDefaultExecution((()=>e(t,null,o))),null}}else{const t=e[za("0xc9")]();if(r.some((e=>e.containsRange(t,!0)))&&e[za("0x138")](),r.every((e=>t.containsRange(e,!0)))){const t=this._suggestionFactory[za("0x121")](za("0x3"),n,za("0x4"));return this[za("0x140")]((()=>t(r,null,o))),null}}const a=this[za("0xc0")][za("0x121")](za("0x3"),n,"join");let c=null;for(const t of this[za("0xab")]())if(t.author.id==s.id&&t.isInContent&&za("0x3")==t[za("0x6a")]&&t.subType==n&&tc(t,o)&&(a(t.getRanges(),r)||a(r,t[za("0x12")]())))if(c){if(t[za("0x50")]&&t[za("0x50")].length)continue;for(const e of t[za("0x12")]())c.isIntersectingWithRange(e)||c.addRange(e);t.removeMarkers()}else{c=t;for(const e of r)t[za("0x10d")](e)||t[za("0x137")](e)}if(c)return c;x[za("0x48")]();for(const{suggestion:t,meta:e}of this[za("0x58")](r,za("0x3")))e[za("0x19")]&&(this[za("0xed")]||!e.containsRangeInObject&&!e[za("0x5d")])&&tc(t,o)&&x[za("0x10c")](t);for(const t of x){const e=t[za("0x12")]();if((!o||!o[za("0x10a")])&&r[za("0x8c")]((t=>e[za("0xea")]((e=>e[za("0x10f")](t,!0))))))return t;(!t[za("0x63")]||!t[za("0x63")][za("0x10a")])&&e.every((t=>r.some((e=>e[za("0x10f")](t,!0)))))&&t[za("0x138")]()}const l=(0,e.uid)(),u=s.id,d=za("0x23")+n,g=this[za("0x13d")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of r)t[za("0x41")](),t[za("0xde")]||"$graveyard"==t[za("0x2")][za("0xe5")]||this[za("0x136")](d,l,u,t,Zo[za("0x34")]());return g}_setSuggestionRange(t,e){const n=t[za("0x132")]();this[za("0xd6")].change((t=>{t[za("0xb9")](n,{range:e})}))}[za("0xb5")](t){const e=t.id,n=this[za("0x66")][za("0xd9")].get("collaboration.channelId");this[za("0x148")][za("0x134")](e)||this._commentsRepository[za("0xa2")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[za("0x148")][za("0xee")](e);o[za("0xb0")]("isRemovable"),o[za("0x4f")]=!1,t[za("0x50")]=o}[za("0xf8")](t,n,o,s){if(t.type!=n||t[za("0x123")]!=o||t[za("0x94")].id!=s)throw this[za("0x66")][za("0xcd")](za("0xfb")),new e.CKEditorError(za("0xfb"),this)}[za("0x105")](t,n){const o=t.getFirstRange();if(n[za("0xe3")](o))t[za("0xc6")]();else if(o[za("0x10f")](n)){const s=this._model[za("0x31")](n.start[za("0x129")],"end");this._setSuggestionRange(t,this[za("0xd6")].createRange(o[za("0xe7")],s));const r=(0,e.uid)(),i=t[za("0x94")].id,x=t.type+":"+t.subType;this._setSuggestionData({id:r,type:x,createdAt:new Date,authorId:i,data:t[za("0x9e")],attributes:t[za("0x63")]});const a=this[za("0xd6")][za("0x31")](n.end[za("0x14a")],"after"),c=this[za("0xd6")][za("0x56")](a,o[za("0x17")]);this[za("0x136")](x,r,i,c)}else if(o.containsPosition(n[za("0xe7")])){const e=this[za("0xd6")].createPositionAt(n[za("0xe7")][za("0x129")],za("0x17"));this._setSuggestionRange(t,this[za("0xd6")][za("0x56")](o[za("0xe7")],e))}else{const e=this[za("0xd6")].createPositionAt(n[za("0x17")].parent,za("0xda"));this._setSuggestionRange(t,this._model[za("0x56")](e,o[za("0x17")]))}}_rangeIsInLocalUserInsertion(t){for(const{suggestion:e,meta:n}of this[za("0x58")](t,"insertion")){if(!n[za("0x19")])continue;const o=e.getRanges();for(const e of o)if(!t[za("0x141")](e)[za("0x6")])return!0}return!1}_getAuthorFromId(t){const n=this.editor[za("0xe")][za("0x7c")](za("0xaa"))[za("0x8f")](t);if(!n)throw new e.CKEditorError(za("0xf6"),this);return n}[za("0x5f")](t){const e=this[za("0x66")][za("0xe")].get(za("0xaa")),n=(0,r.hashObject)(za("0x82")+t);return e[za("0x8f")](n)||e.addUser({id:n,name:t})}[za("0x125")](t,e,n,o,s){const r=this[za("0x11f")](o),i=this[za("0xc0")][za("0xcc")](t,e,n,r,s,(t=>this[za("0x1b")](n,{attributes:t})));return this[za("0xb")](i,za("0x4"),(()=>{this[za("0x1b")](n,{state:"accepted"})}),{priority:za("0xa0")}),this[za("0xb")](i,"discard",(()=>{this[za("0x1b")](n,{state:za("0x95")})}),{priority:"high"}),this[za("0x122")][za("0xf7")](n,i),this[za("0x118")][za("0xf7")](i,"notReady"),i}_splitMarkerName(t){const e=t[za("0x11")](":");return{group:e[0],type:e[1],subType:e[za("0x6")]>=5?e[2]:null,id:e[za("0x6")]<5?e[2]:e[3],authorId:e[za("0x6")]<5?e[3]:e[4],markerCount:6==e[za("0x6")]?e[5]:null}}[za("0xeb")](t,n,o){const s=t[za("0xc9")](),r=s[za("0xe7")],i=s[za("0x17")];this[za("0xfe")](t,this._model.createRange(r,n));const x=(0,e.uid)(),a=t[za("0x94")].id,c=t[za("0x6a")]+(t.subType?":"+t[za("0x123")]:"");this[za("0x13d")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[za("0x63")],data:t[za("0x9e")]}),za("0x111")==t[za("0x6a")]&&(o=this._model[za("0xbc")](o.parent)),this._addSuggestionMarker(c,x,a,this._model[za("0x56")](o,i))}[za("0x58")](t,e=null){const n=[],o=this[za("0x66")][za("0xe")][za("0x7c")](za("0xaa")).me;Array[za("0x7")](t)||(t=[t]);for(const s of this.getSuggestions()){if(!s[za("0xa9")])continue;if(e&&s[za("0x6a")]!=e)continue;let r=!1;for(const e of s[za("0x12")]()){for(const i of t){const t=i.start[za("0xe3")](e[za("0x17")])||i.end[za("0xe3")](e[za("0xe7")]);if(t||i.getIntersection(e)){const x=i[za("0x10f")](e)&&Ka(this._model[za("0x4c")],e[za("0xe7")],i),a=e[za("0x10f")](i)&&Ka(this[za("0xd6")][za("0x4c")],i[za("0xe7")],e);n[za("0xc7")]({suggestion:s,meta:{isOwn:o==s[za("0x67")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),r=!0;break}}if(r)break}}return n}[za("0x136")](t,e,n,o,s){this[za("0xd6")].change((r=>{let i=za("0x53")+t+":"+e+":"+n;s&&(i=i+":"+s),r[za("0x1e")](i,{range:o,usingOperation:!0,affectsData:!0})}))}_removeSuggestion(t){const e=t[za("0x40")],n=t[za("0x8d")];t[za("0x40")]=null,null!=e&&(e[za("0x8d")]=null),t[za("0x8d")]=null,null!=n&&(n[za("0x40")]=null),za("0x28")==this._suggestionState[za("0x7c")](t)&&(this[za("0x118")][za("0xf7")](t,za("0x127")),this[za("0x12b")](za("0x65"),t,e,n))}[za("0x13d")](t){const n=t.id,o=this[za("0x9c")](t);if(this[za("0xb7")]&&this[za("0xb7")][za("0x14b")]){const s=this[za("0x66")][za("0xe")].get(za("0x13b")),r=o[za("0x72")],i=o[za("0x123")]?o[za("0x6a")]+":"+o[za("0x123")]:o[za("0x6a")],x=this[za("0x66")][za("0xd5")],a=s.add(Yo(x,za("0xd3"))),c={id:n,type:i,hasComments:r,data:t[za("0x9e")]||null,originalSuggestionId:t[za("0xe0")]||null,attributes:o[za("0x63")]};this[za("0xb7")].addSuggestion(c)[za("0x101")]((t=>{o[za("0xf5")]=!0,s[za("0x147")](a),t&&t.createdAt&&(this[za("0x122")][za("0x7c")](n).createdAt=t.createdAt)}))[za("0xa3")]((t=>{throw(0,e.logWarning)(za("0x6d")),this[za("0x66")][za("0xf1")][za("0x7f")]({isUndoable:!1},(()=>{o.discard()})),o[za("0xce")](),this[za("0x122")].delete(o.id),this[za("0x118")][za("0x78")](o),t}))}return o}_updateSuggestionData(t,e){const n=this.editor[za("0xe")][za("0x7c")]("PendingActions"),o=this[za("0xa5")](t);if(this[za("0xb7")]&&this[za("0xb7")][za("0xd")])if(o[za("0xf5")]){const o=n[za("0x10c")](Yo(this.editor[za("0xd5")],"PENDING_ACTION_SUGGESTION"));this._adapter[za("0xd")](t,e)[za("0x101")]((()=>{n[za("0x147")](o)}))}else o.on(za("0x130"),(()=>{this[za("0x1b")](t,e)}))}_getSuggestionData(t){if(!this[za("0xb7")]||!this._adapter[za("0xa5")])throw new e.CKEditorError(za("0x14"),this);return this._adapter.getSuggestion(t)}[za("0x120")](t){const{id:e,type:n,subType:o,authorId:s}=this[za("0xb3")](t),r=this[za("0x122")][za("0x7c")](e)||this._createSuggestion(n,o,e,s,{});switch(this[za("0xf8")](r,n,o,s),this[za("0x118")][za("0x7c")](r)){case za("0x35"):this[za("0xb4")](e)[za("0x101")]((t=>{let n=Promise[za("0x37")]();t[za("0x72")]&&(n=this[za("0x148")][za("0x71")]({channelId:this[za("0x66")][za("0xd9")][za("0x7c")](za("0x146")),threadId:e})),n[za("0x101")]((()=>{this[za("0x9c")](t)._saved=!0}))})),this[za("0x118")].set(r,za("0x4d"));break;case za("0x127"):this[za("0x1b")](e,{state:za("0x3c")});case za("0x3e"):this._suggestionState.set(r,za("0x28")),this[za("0x12b")]("suggestionLoaded",r);break;case za("0x28"):this[za("0x12b")](za("0x116"),r)}return r[za("0xa4")](t),r}[za("0x15")](t){const e=Array[za("0x79")](t)[za("0x60")]((t=>!t[za("0xaf")])),n=this[za("0xab")]({skipNotAttached:!0})[za("0x60")]((t=>!t.isMultiRange)),o=n[za("0x60")]((e=>!t.has(e))),s=new Map(n[za("0x70")]((t=>[t,this._suggestionFactory.getSuggestionCallback(t[za("0x6a")],t.subType,"chain")]))),r=new Map(n[za("0x70")]((t=>[t,t[za("0xc9")]()]))),i=new Set,x=new Set;for(let t=0;t<e[za("0x6")];t++)a(e[t],e,t+1);for(let t=0;t<e[za("0x6")];t++)a(e[t],o,0);for(let t=0;t<e[za("0x6")];t++){const n=e[t];!x[za("0xff")](n)&&n[za("0x40")]&&(n[za("0x40")].next===n&&(n.previous[za("0x8d")]=null),n[za("0x40")]=null),!i.has(n)&&n[za("0x8d")]&&(n.next[za("0x40")]===n&&(n.next[za("0x40")]=null),n.next=null)}function a(t,e,n){for(let o=n;o<e.length;o++){const n=c(t,e[o]);n&&(n[0][za("0x8d")]=n[1],n[1][za("0x40")]=n[0],i[za("0x10c")](n[0]),x[za("0x10c")](n[1]))}}function c(t,e){if(t[za("0x67")].id!==e[za("0x67")].id)return null;const n=s.get(t)(t,e,r[za("0x7c")](t),r.get(e));return n&&s[za("0x7c")](e)(t,e,r[za("0x7c")](t),r[za("0x7c")](e))?n[1][za("0x50")]&&n[1][za("0x50")].length?null:n:null}}[za("0x114")](t){const e=Array[za("0x79")](t),n=this.getSuggestions({skipNotAttached:!0}),o=n[za("0x60")]((e=>!t[za("0xff")](e))),s=new Map(e[za("0x70")]((t=>[t,this[za("0xc0")][za("0x121")](t.type,t.subType,za("0x2a"))]))),r=new Map(n[za("0x70")]((t=>[t,t[za("0x12")]()])));for(let t=0;t<e[za("0x6")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e.length;t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n[za("0x6")];i++){const o=n[i];if(o.type!==e[za("0x6a")]||o[za("0x67")].id!==e.author.id||o[za("0x123")]!==e[za("0x123")])continue;if(!Ya(e,o))continue;const x=s[za("0x7c")](e),a=r[za("0x7c")](e),c=r[za("0x7c")](o),l=e[za("0x50")]&&e[za("0x50")].length,u=o[za("0x50")]&&o[za("0x50")][za("0x6")];if(!l&&x(c,a))return t[za("0x8a")](o,e),r[za("0x78")](e),!0;if(!u&&x(a,c))return t[za("0x8a")](e,o),r[za("0x78")](o),!0}return!1}}[za("0x8a")](t,e){if(t[za("0xaf")])for(const n of e[za("0x12")]())t[za("0x137")](n);else{const n=e[za("0xc9")]()[za("0x17")];this._setSuggestionRange(t,this._model.createRange(t[za("0xc9")]().start,n))}e[za("0xc6")]()}}class Va{constructor(t){this[za("0xb8")]=t,this[za("0xd6")]=t.model,this._customCallbacks=new Map,this[za("0x145")]=new Map,this._registerDefaultCallbacks()}[za("0xcc")](t,e,n,o,s,r){return new Zo(this[za("0xd6")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[za("0x121")](t,e,za("0x4"))(...n),onDiscard:(...n)=>this[za("0x121")](t,e,za("0x138"))(...n)})}[za("0xdf")](t,e,n,o){const s=t+":"+e+":"+n;this._customCallbacks[za("0xf7")](s,o)}[za("0x121")](t,e,n){const o=t+":"+e+":"+n;return this[za("0x75")].get(o)||this[za("0x145")][za("0x7c")](t+":"+n)}[za("0x90")](){const t=()=>!1,e=t=>{t.sort(((t,e)=>t.start[za("0x59")](e[za("0xe7")])?1:-1)),this[za("0xd6")].change((e=>{for(const n of t){let t;t=n.end[za("0x12a")]&&n[za("0x17")].parent==n.start[za("0x10e")]?e.createSelection(n[za("0xe7")][za("0x10e")],"on"):e[za("0x68")](n),this[za("0xd6")][za("0x29")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[za("0xd6")].change((n=>{const{commandName:o,commandParams:s=[]}=e,r=t.map((t=>(Xa(t)&&(t=this[za("0xd6")][za("0x56")](t.end)),t)))[za("0x60")]((t=>za("0x104")!==t[za("0x2")][za("0xe5")]));if(r.length<1)return;const x=Array.from(this[za("0xd6")][za("0xa1")][za("0x112")][za("0x12")]()).map((t=>i.LiveRange[za("0xf3")](t)));n.setSelection(r);for(const t of this[za("0xb8")][za("0x39")][za("0x39")]())t[za("0xe9")]();s[za("0xc7")]({forceDefaultExecution:!0}),this[za("0xb8")][za("0x42")](o,...s);const a=x.filter((t=>za("0x104")!=t[za("0x2")][za("0xe5")]));a[za("0x6")]>0&&n[za("0x7b")](a);for(const t of x)t.detach()}))},o=(t,e)=>1==t[za("0x6")]&&1==e[za("0x6")]&&t[0][za("0x17")].isEqual(e[0][za("0xe7")]),s=(t,e,n,o)=>Za(t,e,n,o,this[za("0xd6")])?[t,e]:Za(e,t,o,n,this._model)?[e,t]:null;this[za("0x145")][za("0xf7")]("insertion:accept",t),this[za("0x145")][za("0xf7")](za("0x52"),e),this._defaultCallbacks[za("0xf7")](za("0x92"),o),this[za("0x145")][za("0xf7")](za("0x62"),s),this[za("0x145")][za("0xf7")](za("0x5b"),e),this[za("0x145")][za("0xf7")](za("0x9f"),t),this[za("0x145")][za("0xf7")](za("0xd0"),o),this[za("0x145")][za("0xf7")](za("0x131"),s),this[za("0x145")][za("0xf7")]("formatInline:accept",n),this[za("0x145")][za("0xf7")](za("0x128"),t),this[za("0x145")][za("0xf7")](za("0x1a"),o),this[za("0x145")][za("0xf7")](za("0x11c"),t),this[za("0x145")][za("0xf7")]("formatBlock:accept",n),this[za("0x145")][za("0xf7")](za("0x61"),t),this[za("0x145")].set(za("0x1d"),o),this._defaultCallbacks[za("0xf7")](za("0xbb"),t)}}function Ka(t,e,n){for(const o of e[za("0x14a")][za("0x80")]({includeSelf:!0,parentFirst:!0})){if(o[za("0x2")]==o)return!1;if(!n[za("0x12e")](o))return!1;if(t.isObject(o)||t[za("0xc5")](o))return!0}return!1}function Xa(t){return t[za("0x17")].parent==t.start.nodeAfter&&t[za("0x17")][za("0xc4")]}function qa(t,e,n,o){const s=t=>!t[za("0x2b")].is(za("0x9b"))&&!o[za("0xac")](t[za("0x2b")]),r=t[za("0xe7")].getLastMatchingPosition(s),i=t.end[za("0x102")](s,{direction:za("0x117")});return!(t[za("0xe7")][za("0xe3")](r)&&t[za("0x17")][za("0xe3")](i)||(r.isBefore(i)?n[za("0xb9")](e,{range:n[za("0x56")](r,i)}):n[za("0xbe")](e),0))}function $a(t){return(0,r.hashObject)(t)}function Ja(t){const e=t[za("0xe7")][za("0x10e")];return e&&e.is(za("0x133"))}function Qa(t,e){const n=e[za("0x4c")][za("0xac")](t)||e.schema[za("0x12f")](t);return e[za("0x56")](e[za("0x31")](t,za("0xad")),n?e[za("0x36")](t):e[za("0x31")](t,za("0x17")))}function Za(t,e,n,o,s){if(!Ya(t,e))return!1;if(n[za("0x17")][za("0xe3")](o.start))return!0;if(t.type!=e.type)return!1;if(!n[za("0x17")][za("0xc8")](o[za("0xe7")]))return!1;const r=s[za("0x56")](n.end,o[za("0xe7")])[za("0x85")]();for(const t of r)if(["elementStart",za("0xb1")].includes(t.type)&&s[za("0x4c")].isLimit(t.item))return!1;return!0}function Ya(t,e){return!(!t[za("0x47")]||!e._isDataLoaded)&&Go(t[za("0x63")],e[za("0x63")])}function tc(t,e){const n=ec(t[za("0x63")]),o=ec(e);if(!t[za("0x47")])return!1;for(const t of Object.keys(o))if(!Go(n[t],o[t]))return!1;return!0}function ec(t){const e=Object.assign({},t);return delete e[za("0x10a")],delete e[za("0x97")],e}const nc=["model","change:isDirty","locale","view","destroy","isEnabled","canDiscard","_pendingAction","isDirty","_setPendingAction","execute","get","remove","_acceptCommand","bind","_discardCommand","canEditAt","plugins","commentThreadController","acceptSuggestion","commands","unbind","listenTo","_editor","_removePendingAction","discardSuggestion","getRanges","add","canAccept","stopListening","PendingActions"];var oc,sc;oc=nc,sc=308,function(t){for(;--t;)oc.push(oc.shift())}(++sc);const rc=function(t,e){return nc[t-=0]};class ic extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[rc("0x2")]=e,this.view=n,this[rc("0x14")]=o,this[rc("0x19")]=t,this[rc("0xf")]=t[rc("0x16")][rc("0xd")](rc("0x15")),this._discardCommand=t[rc("0x16")][rc("0xd")](rc("0x1b")),this.view[rc("0x10")](rc("0x7")).to(this._acceptCommand,this[rc("0x11")],((t,e)=>t||e)),this[rc("0x5")][rc("0x10")](rc("0x1e")).to(this[rc("0xf")],"isEnabled",(t=>t&&this[rc("0x19")][rc("0x2")][rc("0x12")](e[rc("0x1c")]()))),this.view.bind(rc("0x8")).to(this[rc("0x11")],"isEnabled",(t=>t&&this[rc("0x19")][rc("0x2")][rc("0x12")](e.getRanges()))),this[rc("0x9")]=null,n[rc("0xa")]&&this._setPendingAction(),this[rc("0x18")](n,"acceptSuggestion",(()=>this.acceptSuggestion())),this[rc("0x18")](n,rc("0x1b"),(()=>this[rc("0x1b")]())),this[rc("0x18")](n,rc("0x3"),(()=>{n.isDirty?this[rc("0xb")]():this[rc("0x1a")]()}))}[rc("0x15")](){this[rc("0xf")][rc("0xc")](this[rc("0x2")].id)}[rc("0x1b")](){this[rc("0x11")][rc("0xc")](this[rc("0x2")].id)}destroy(){this[rc("0x5")][rc("0x17")](rc("0x7")),this[rc("0x5")][rc("0x17")](rc("0x1e")),this[rc("0x5")][rc("0x17")](rc("0x8")),this[rc("0x0")](),this.commentThreadController[rc("0x6")](),this._pendingAction&&this[rc("0x1a")]()}[rc("0xb")](){const t=Yo(this[rc("0x19")][rc("0x4")],"PENDING_ACTION_SUGGESTION");this[rc("0x9")]=this[rc("0x19")][rc("0x13")][rc("0xd")]("PendingActions")[rc("0x1d")](t)}[rc("0x1a")](){null!==this[rc("0x9")]&&this[rc("0x19")][rc("0x13")][rc("0xd")](rc("0x1"))[rc("0xe")](this._pendingAction),this[rc("0x9")]=null}}const xc=["_config","isEnabled","isReadOnly","CommentView","commentThread","updateComment","focus","set","_localUser","_createCommentThreadInputView","submit","destroy","commentThreadInputView","element","removeComment","showInput","value","disableComments","bind","length","commentsListView","descriptionParts","authoredAt","isDirty","hasDirtyComment","locale","assign","delegate","isActive","canAccept","fire","commentInputView","_model","_createCommentViews"];var ac,cc;ac=xc,cc=416,function(t){for(;--t;)ac.push(ac.shift())}(++cc);const lc=function(t,e){return xc[t-=0]};class uc extends s.View{constructor(t,e,n,o){super(t),this[lc("0xc")]=null,this[lc("0x4")]=null,this[lc("0x21")](lc("0x14"),!1),this[lc("0x21")](lc("0xe"),e[lc("0xe")]),this[lc("0xa")](lc("0xe")).to(e),this[lc("0x21")](lc("0xd"),[]),this[lc("0x21")]("isDirty",!1),this.set(lc("0x1b"),!1),this.set(lc("0x15"),!1),this[lc("0x21")]("canDiscard",!1),this[lc("0x18")]=e,this[lc("0x0")]=n,this[lc("0x1a")]=o,o[lc("0x9")]?this.set("length",1):this[lc("0x19")]()}focus(){this[lc("0x5")][lc("0x20")]()}[lc("0x3")](){this[lc("0xc")]&&this[lc("0xc")].destroy(),this[lc("0x4")]&&this[lc("0x4")].destroy(),super[lc("0x3")]()}[lc("0x19")](){const{CommentsListView:t}=this[lc("0x1a")];this[lc("0xc")]=new t(this.locale,this[lc("0x18")][lc("0x1e")],Object[lc("0x12")]({CommentView:this[lc("0x1a")][lc("0x1d")]},this[lc("0x1a")])),this[lc("0xc")].delegate(lc("0x6")).to(this),this[lc("0xc")][lc("0x13")](lc("0x1f")).to(this),this[lc("0xc")][lc("0xa")]("isActive").to(this),this.set("length",this[lc("0xc")].length+1),this.bind(lc("0xb")).to(this[lc("0xc")],lc("0xb"),(t=>t+1)),this[lc("0x4")]=this[lc("0x1")](),this.on(lc("0x6"),(()=>this[lc("0x20")]())),this[lc("0xa")](lc("0xf")).to(this[lc("0xc")],lc("0x10"),this.commentThreadInputView[lc("0x17")],lc("0x8"),((t,e)=>t||!!e))}[lc("0x1")](){const{CommentThreadInputView:t}=this[lc("0x1a")],e=new t(this[lc("0x11")],this[lc("0x0")],this[lc("0x1a")].editorConfig),n=e[lc("0x17")];return e[lc("0xa")](lc("0x7")).to(this,lc("0x14"),this._model[lc("0x1e")],lc("0x1c"),n,lc("0x8"),((t,e,n)=>!!n||t&&!e)),n.on(lc("0x2"),((t,e)=>{this[lc("0x16")]("addComment",e),n.editor.setData("")})),n.on("cancel",(()=>this[lc("0x20")]())),n[lc("0xa")]("disabledSubmit").to(this[lc("0x18")][lc("0x1e")],lc("0x1c")),e}}const dc=["descriptionParts","ck-comment__info-time","_model","editorDestroyed","commentsListView","span","bind","isEnabled","EXTERNAL_SUGGESTION","join","Accept suggestion","querySelector","bindTemplate","ck-annotation__actions","authoredAt","execute","ck-suggestion__info","isActive","time","innerText","ck-suggestion--disabled-comments","fire","importWord","ck-comment__external","EXTERNAL_AVATAR","editorReady",'"></span>',"canAccept","change:description","color","isExternal","discardButton","source","ck-annotation__info-time","ck-annotation","delegate","attributes","name","ck-suggestion__main","_createButton","acceptButton","<p>","value","canDiscard","creator","EXTERNAL_IMPORT_WORD_SUGGESTION","ck-suggestion--accept","description","extendTemplate","setTemplate","content","EXTERNAL_IMPORT_WORD_AVATAR","ck-suggestion","check","_config",'" title="',"author","</span>","ck-suggestion--discard",'<span class="ck-suggestion-type">',"getUserViewNotificationText","_descriptionElement","getExternalSuggestionNote","commentThreadInputView","div","map","type","getTemplate","set","locale","cancel","push","innerHTML","ck-suggestion__info-name","</p>","formatDateTime","@external","userView","ck-annotation__info-name","disableComments"];var gc,mc;gc=dc,mc=186,function(t){for(;--t;)gc.push(gc.shift())}(++mc);const fc=function(t,e){return dc[t-=0]};class hc extends uc{constructor(e,n,o,s){super(e,n,o,s),this[fc("0x2a")](fc("0x28"),""),this[fc("0x3c")](fc("0x28")).to(this,fc("0x36"),(t=>t&&t[0]?t[0].type:"")),this.bind(fc("0x15")).to(this,fc("0x36"),this,fc("0x47"),((t,e)=>{let n="";for(const e of t)n+=fc("0xf")+pc(e[fc("0x18")],e[fc("0x3")])+fc("0x30");return e?n:(0,r.trimHtml)(n,{limit:140})})),this[fc("0x23")]=null,this[fc("0xe")]=this[fc("0xd")](Yo(e,fc("0x40")),t.icons[fc("0x1b")],fc("0x14"),"acceptSuggestion","sw"),this.acceptButton[fc("0x3c")](fc("0x3d")).to(this,fc("0x1")),this[fc("0x5")]=this[fc("0xd")](Yo(e,"Discard suggestion"),t.icons[fc("0x2c")],fc("0x20"),"discardSuggestion","sw"),this[fc("0x5")][fc("0x3c")](fc("0x3d")).to(this,fc("0x11")),this[fc("0x33")]=new r.UserView(e,this[fc("0x38")].author,this[fc("0x22")]()),this[fc("0x33")][fc("0x16")]({attributes:{class:["ck-suggestion__user","ck-annotation__user"]}}),this[fc("0x17")](this.getTemplate())}[fc("0x29")](){const t=this[fc("0x42")],e=[{tag:"div",attributes:{class:[fc("0x46"),"ck-annotation__info"]},children:[{tag:"span",children:[{text:this.userView.name}],attributes:{class:[fc("0x2f"),fc("0x34")]}},{tag:fc("0x48"),attributes:{datetime:t.to(fc("0x44")),class:[fc("0x37"),fc("0x7")]},children:[{text:t.to("authoredAt",(t=>this[fc("0x1c")][fc("0x31")](t)))}]}]},{tag:fc("0x26"),attributes:{class:["ck-suggestion__actions",fc("0x43")]},children:[this[fc("0xe")],this.discardButton]},{tag:"div",attributes:{class:["ck-annotation__content-wrapper"]}}];this[fc("0x38")][fc("0x4")]&&e.push({tag:fc("0x26"),attributes:{class:[fc("0x4d")]},children:[{text:this[fc("0x24")]()}]});const n={tag:fc("0x26"),attributes:{class:["ck-suggestion-wrapper",t.if("isActive","ck-suggestion-wrapper--active"),t.to(fc("0x28"),(t=>"ck-suggestion-"+t)),this[fc("0x1c")][fc("0x35")]&&fc("0x4a")],"data-suggestion-id":this[fc("0x38")].id,"data-thread-id":this[fc("0x38")].commentThread.id,"data-author-id":this[fc("0x38")][fc("0x1e")].id,tabindex:-1},children:[{tag:"div",attributes:{class:[fc("0x1a"),fc("0x8")]},children:[this.userView,{tag:"div",attributes:{class:[fc("0xc"),"ck-annotation__main"]},children:e}]}]};return this[fc("0x3a")]&&this[fc("0x25")]&&(n.children[fc("0x2d")](this[fc("0x3a")],this[fc("0x25")]),this[fc("0x3a")][fc("0x9")](fc("0x4f")).to(this),this[fc("0x3a")][fc("0x9")](fc("0x39")).to(this),this[fc("0x25")].delegate(fc("0x4f")).to(this),this[fc("0x25")][fc("0x9")](fc("0x39")).to(this)),n}render(){super.render(),this._descriptionElement=this.element[fc("0x41")](".ck-annotation__content-wrapper"),this._descriptionElement[fc("0x2e")]=this[fc("0x15")],this.on(fc("0x2"),((t,e,n)=>{this._descriptionElement.innerHTML=n}))}[fc("0xd")](t,e,n,o,r){const i=new s.ButtonView(this[fc("0x2b")]);return i[fc("0x2a")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[fc("0x16")]({attributes:{class:n}}),i.on(fc("0x45"),(()=>{this[fc("0x4b")](o,this[fc("0x38")].id)})),i}getExternalSuggestionNote(){return fc("0x4c")===this[fc("0x38")].attributes[fc("0x32")][fc("0x6")]?Yo(this[fc("0x2b")],fc("0x13")):Yo(this[fc("0x2b")],fc("0x3e"))}[fc("0x22")](){return this._model.isExternal?"importWord"===this[fc("0x38")][fc("0xa")][fc("0x32")][fc("0x6")]?Yo(this.locale,fc("0x19"),this._model[fc("0x12")][fc("0xb")]):Yo(this[fc("0x2b")],fc("0x4e"),this[fc("0x38")][fc("0x12")].name):null}}function pc(t,e){let n="";return n+=t.split("*")[fc("0x27")](((t,e)=>e%2!=0?fc("0x21")+bc(t)+fc("0x1f"):bc(t)))[fc("0x3f")](""),e&&(n+='<span class="ck-suggestion-color" style="background-color: '+e[fc("0x10")]+fc("0x1d")+e.title+fc("0x0")),n}function bc(t){const e=document.createElement(fc("0x3b"));return e[fc("0x49")]=t,e[fc("0x2e")]}const Ec=["head","source","change:activeAnnotations","has","_handleControllerBuffer","destroy","getSuggestion","listenTo","model","trackChanges.disableComments","TrackChangesUI","change:previous","actionView","editing","getMarkerNames","requires","push","SuggestionThreadView","arrowView","hasSuggestion","button","isEnabled","type","_refreshActiveMarkers","Annotations","comments.maxThreadTotalWeight","remove","_createUIButton","addSourceCollector","isMultiRange","CommentView","getAllAdjacentSuggestions","componentFactory","_suggestionToController","lowest","length","stopListening","comments","getJoined","Accept all suggestions","_handleSuggestionControllerDelayed","from","separator","map","isInContent","registerAnnotation","discardButton","TrackChangesEditing","buttonView","commentThread","define","trackChanges","activeAnnotations","clear","getByInnerView","trackChanges.SuggestionThreadView","isOn","suggestionUnloaded","execute","toMany","pluginName","Accept all selected suggestions","init","bind","set","previous","_destroyController","suggestion-","createCommentThreadController","editor","innerView","_unbindEditors","CommentsUI","commands","view","plugins","_descriptionFactory","_annotationViews","discardSelectedSuggestions","CommentsRepository","_bindAnnotationToEditors","getRanges","getDescriptions","add","commandName","EditorAnnotations","value","acceptAllSuggestions","size","config","filter","getMarkers","focus","Discard all selected suggestions","isDirty","_updateController","unbind","refreshSelectedViews","_viewToController","mainView","locale","activeMarkers","some","get","delete","switchbutton","acceptButton"];var _c,Tc;_c=Ec,Tc=235,function(t){for(;--t;)_c.push(_c.shift())}(++Tc);const Cc=function(t,e){return Ec[t-=0]};class yc extends t.Plugin{static get[Cc("0x65")](){return[Wa,r.Users,Cc("0x3a"),Cc("0x3"),Cc("0x40")]}static get[Cc("0x27")](){return Cc("0x60")}constructor(t){super(t),this._suggestionToController=new Map,this[Cc("0x4d")]=new Map,this[Cc("0x38")]=new Map,this[Cc("0x5a")]=new Map;const e=this[Cc("0x30")][Cc("0x44")];e[Cc("0x1d")](Cc("0x22"),hc),e[Cc("0x1d")](Cc("0x5f"),!1),this._disableComments=e[Cc("0x52")]("trackChanges.disableComments")}_handleSuggestionControllerDelayed(t,e){0===this[Cc("0x5a")][Cc("0x43")]&&setTimeout((()=>{for(const[t,e]of this._handleControllerBuffer){const n=this[Cc("0xc")][Cc("0x59")](t);n||e?n&&e&&this._destroyController(t):this._initializeController(t)}this[Cc("0x30")][Cc("0x36")][Cc("0x52")](Cc("0x40"))[Cc("0x4c")](),this[Cc("0x2")](),this[Cc("0x5a")][Cc("0x20")]()}),10),this[Cc("0x5a")].set(t,e)}[Cc("0x29")](){const t=this[Cc("0x30")],e=t[Cc("0x36")].get(Cc("0x1a")),n=t[Cc("0x36")].get(Cc("0x3")),o=t[Cc("0x36")][Cc("0x52")]("EditorAnnotations"),s=t.plugins[Cc("0x52")](Cc("0x3a"));t.ui[Cc("0xb")][Cc("0x3e")](Cc("0x1e"),(t=>this[Cc("0x6")](t))),o[Cc("0x7")]((()=>{const t=[];for(const[e,n]of Array[Cc("0x14")](this[Cc("0xc")])){const o=e[Cc("0xa")](),s=[];for(const t of o){if(!t[Cc("0x17")])continue;if(t[Cc("0x8")]){s[Cc("0x66")](...t[Cc("0x3c")]());continue}const e=t.getFirstRange();if(s[Cc("0xe")]>0){const t=s[0][Cc("0x11")](e);if(t){s[0]=t;continue}}s[Cc("0x66")](e)}t.push([n[Cc("0x35")],s])}return t})),this[Cc("0x5d")](e,"suggestionLoaded",((t,e)=>{this[Cc("0x5d")](e,Cc("0x61"),((t,n,o,s)=>{e[Cc("0x17")]&&(null==o?(this[Cc("0x4a")](s.head),this[Cc("0x13")](e,!1)):(this[Cc("0x4a")](o[Cc("0x56")]),this[Cc("0x13")](e,!0)))})),null===e[Cc("0x2c")]?this._handleSuggestionControllerDelayed(e,!1):this[Cc("0x4a")](e[Cc("0x56")])})),this[Cc("0x5d")](e,Cc("0x24"),((t,e,n)=>{this[Cc("0xf")](e,Cc("0x61")),this[Cc("0x5a")][Cc("0x53")](e);const o=n?n.head:e,s=this._suggestionToController[Cc("0x52")](o);null!==n&&this[Cc("0x4a")](o),null===n&&s&&this[Cc("0x2d")](e)})),this[Cc("0x5d")](e,"suggestionChanged",((t,e)=>{this[Cc("0x4a")](e)})),this[Cc("0x5d")](n,Cc("0x58"),(()=>{this[Cc("0x2")]()})),this[Cc("0x5d")](s,"addComment",((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Cc("0x69")](n))return;const s=e[Cc("0x5c")](n);this[Cc("0xc")][Cc("0x52")](s)[Cc("0x35")][Cc("0x47")]()}),{priority:Cc("0xd")})}_refreshActiveMarkers(){const t=this[Cc("0x30")][Cc("0x36")][Cc("0x52")](Cc("0x3")),e=this[Cc("0x30")][Cc("0x36")].get(Cc("0x1a")),n=Array.from(t[Cc("0x1f")],(t=>t[Cc("0x31")]))[Cc("0x45")]((t=>this[Cc("0x4d")].has(t))),o=[];for(const t of n){const e=this[Cc("0x4d")][Cc("0x52")](t)[Cc("0x5e")][Cc("0xa")]();o[Cc("0x66")](...e.reduce(((t,e)=>[...t,...e[Cc("0x64")]()]),[]))}e[Cc("0x50")]=o}[Cc("0x6")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Cc("0x30")][Cc("0x34")][Cc("0x52")](Cc("0x1e")),r=Yo(t,"Track changes");n.buttonView[Cc("0x2b")]({tooltip:r,label:r,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[Cc("0x1b")][Cc("0x2a")](Cc("0x23")).to(o,Cc("0x41")),n[Cc("0x1b")].on(Cc("0x25"),(()=>{o[Cc("0x25")](),this.editor[Cc("0x63")].view.focus()}));const i=new e.Collection,x=[{type:Cc("0x54"),model:{withText:!0,label:r,commandName:"trackChanges"}},{type:"separator"},{type:Cc("0x6a"),model:{withText:!0,label:Yo(t,Cc("0x12")),commandName:Cc("0x42")}},{type:Cc("0x6a"),model:{withText:!0,label:Yo(t,Cc("0x28")),commandName:"acceptSelectedSuggestions"}},{type:"button",model:{withText:!0,label:Yo(t,"Discard all suggestions"),commandName:"discardAllSuggestions"}},{type:Cc("0x6a"),model:{withText:!0,label:Yo(t,Cc("0x48")),commandName:Cc("0x39")}}];for(const t of x){let e={type:Cc("0x15")};if(t[Cc("0x5e")]){const n=new s.Model(t[Cc("0x5e")]),o=this.editor[Cc("0x34")][Cc("0x52")](n[Cc("0x3f")]);n[Cc("0x2a")](Cc("0x23"),Cc("0x0")).to(o,Cc("0x41"),Cc("0x0")),e={type:t[Cc("0x1")],model:n}}i[Cc("0x3e")](e)}(0,s.addListToDropdown)(n,i);const a=x[Cc("0x45")]((t=>null!=t[Cc("0x5e")]))[Cc("0x16")]((t=>this[Cc("0x30")][Cc("0x34")][Cc("0x52")](t.model.commandName))),c=n[Cc("0x1b")];return c[Cc("0x62")].unbind(Cc("0x0")),c[Cc("0x68")][Cc("0x4b")]("isEnabled"),c[Cc("0x62")][Cc("0x2a")]("isEnabled").to(o,Cc("0x0")),c[Cc("0x68")][Cc("0x2a")](Cc("0x0"))[Cc("0x26")](a,Cc("0x0"),((...t)=>t[Cc("0x51")]((t=>t)))),n.on(Cc("0x25"),(t=>{this.editor.execute(t[Cc("0x57")][Cc("0x3f")]),this[Cc("0x30")].editing[Cc("0x35")][Cc("0x47")]()})),n}_initializeController(t){const e=this.editor,n=e.config,o=e[Cc("0x36")][Cc("0x52")](Cc("0x3")),s=e[Cc("0x36")][Cc("0x52")]("CommentsRepository"),i=e[Cc("0x36")][Cc("0x52")](Cc("0x40")),x=e.plugins[Cc("0x52")](r.Users).me,a=n[Cc("0x52")](Cc("0x1e"))[Cc("0x67")],{CommentsListView:c,CommentThreadInputView:l}=e[Cc("0x36")][Cc("0x52")](Cc("0x33"));let u,d;this._annotationViews[Cc("0x59")](t.id)?(d=this[Cc("0x38")][Cc("0x52")](t.id),u=d[Cc("0x4e")]):(u=new a(e.locale,t,x,{disableComments:this._disableComments,editorConfig:n[Cc("0x52")]("comments.editorConfig"),maxCommentsWhenCollapsed:n[Cc("0x52")]("comments.maxCommentsWhenCollapsed"),maxThreadTotalWeight:n[Cc("0x52")](Cc("0x4")),maxCommentCharsWhenCollapsed:n.get("comments.maxCommentCharsWhenCollapsed"),formatDateTime:(0,r.getDateTimeFormatter)(n[Cc("0x52")](Cc("0x4f"))),CommentView:n[Cc("0x52")](Cc("0x10"))[Cc("0x9")],CommentsListView:c,CommentThreadInputView:l}),u[Cc("0x55")].on(Cc("0x25"),(()=>{e[Cc("0x63")][Cc("0x35")][Cc("0x47")]()})),u[Cc("0x19")].on(Cc("0x25"),(()=>{e[Cc("0x63")][Cc("0x35")][Cc("0x47")]()})),d=o.createAnnotationView(this[Cc("0x30")][Cc("0x4f")],u),d[Cc("0x2a")](Cc("0x49")).to(u,Cc("0x49")),d[Cc("0x2a")](Cc("0xe")).to(u),d[Cc("0x2a")]("type").to(u,Cc("0x1"),(t=>Cc("0x2e")+t)),this[Cc("0x38")][Cc("0x2b")](t.id,d));const g=s[Cc("0x2f")](t[Cc("0x1c")],u),m=new ic(e,t,u,g),f=t[Cc("0xa")]()[Cc("0x45")]((t=>t[Cc("0x17")]));u.descriptionParts=e.plugins[Cc("0x52")](Cc("0x1a"))[Cc("0x37")][Cc("0x3d")](f),this[Cc("0xc")].set(t,m),this[Cc("0x4d")][Cc("0x2b")](u,m);const h=o.createAnnotation({view:d,target:()=>{const n=[],o=t[Cc("0xa")]()[Cc("0x45")]((t=>t[Cc("0x17")]));for(const t of o)n[Cc("0x66")](...t[Cc("0x46")]());return(0,r.getAllMarkersDomElementsSorted)(e[Cc("0x63")],n)},type:()=>Cc("0x2e")+m[Cc("0x35")].type});s[Cc("0x3b")](u,h),o[Cc("0x3e")](h),i[Cc("0x18")](h)}_destroyController(t){const e=this[Cc("0x30")].plugins.get(Cc("0x3a")),n=this[Cc("0x30")][Cc("0x36")].get(Cc("0x3")),o=this[Cc("0xc")][Cc("0x52")](t),s=o[Cc("0x35")],r=n[Cc("0x21")](s);e[Cc("0x32")](s),r&&n[Cc("0x5")](r),this[Cc("0xc")][Cc("0x53")](t),this[Cc("0x4d")][Cc("0x53")](s),o[Cc("0x5b")]()}[Cc("0x4a")](t){if(!t[Cc("0x17")]||!this[Cc("0xc")].has(t))return;const e=this[Cc("0x30")].plugins[Cc("0x52")](Cc("0x1a")),n=this._suggestionToController.get(t),o=t.getAllAdjacentSuggestions();n[Cc("0x35")].descriptionParts=e._descriptionFactory[Cc("0x3d")](o)}destroy(){for(const t of this._suggestionToController.keys())this[Cc("0x2d")](t);for(const t of this[Cc("0x38")].values())t[Cc("0x4e")][Cc("0x5b")]();super[Cc("0x5b")]()}}var kc,Ac,vc=["editor","pluginName","getSuggestions","getSuggestion","plugins","addSuggestionData","requires","Comments","adapter","get","TrackChanges"];kc=vc,Ac=178,function(t){for(;--t;)kc.push(kc.shift())}(++Ac);var Rc=function(t,e){return vc[t-=0]};class Sc extends t.Plugin{static get[Rc("0x4")](){return[Wa,yc,Rc("0x5")]}static get[Rc("0xa")](){return Rc("0x8")}set adapter(t){this[Rc("0x9")][Rc("0x2")][Rc("0x7")](Wa).adapter=t}get[Rc("0x6")](){return this[Rc("0x9")][Rc("0x2")][Rc("0x7")](Wa).adapter}addSuggestion(t){return this[Rc("0x9")].plugins[Rc("0x7")](Wa)[Rc("0x3")](t)}[Rc("0x0")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this.editor[Rc("0x2")][Rc("0x7")](Wa)[Rc("0x0")]({skipNotAttached:t,toJSON:e})}[Rc("0x1")](t){return this[Rc("0x9")][Rc("0x2")][Rc("0x7")](Wa)[Rc("0x1")](t)}}const Ic=["addUser","track-changes-data-invalid-editor-creator","constructor","get","getDataWithDiscardedSuggestions","TrackChangesEditing","init","end","document","createDocumentFragment","plugins","div","discardAllSuggestions","_adapter","rootsAttributes","Users","define","model","result","push","getUser","appendChild","pluginName","config","CommentsRepository","users","create","editor","getDataWithAcceptedSuggestions","Pagination","getFullData","set","function","TrackChangesDataGetter","reduce","addSuggestionData","requires","destroy","trackChangesData.editorCreator","getRootsAttributes","getRootNames","editorCreator","acceptAllSuggestions","createElement","name"];var Lc,Nc;Lc=Ic,Nc=200,function(t){for(;--t;)Lc.push(Lc.shift())}(++Nc);const Mc=function(t,e){return Ic[t-=0]},wc=[Mc("0x9")];class Oc extends t.Plugin{static get[Mc("0x10")](){return[Wa]}static get[Mc("0x2")](){return"TrackChangesData"}[Mc("0x1f")](){const t=this[Mc("0x7")];if(t[Mc("0x3")][Mc("0x29")](Mc("0x12"),(e=>{const n=t.model.document[Mc("0x14")]()[Mc("0xe")](((t,e)=>(t[e]="",t)),{});return t[Mc("0x1b")][Mc("0x6")](n,e)})),Mc("0xc")!=typeof t[Mc("0x3")][Mc("0x1c")]("trackChangesData")[Mc("0x15")])throw new e.CKEditorError(Mc("0x1a"))}[Mc("0x8")](t){return Dc(this[Mc("0x7")],!0,t)}[Mc("0x1d")](t){return Dc(this.editor,!1,t)}}class Fc extends t.Plugin{static get[Mc("0x2")](){return Mc("0xd")}constructor(t){super(t),this[Mc("0x2b")]=Mc("0x20")}[Mc("0x1f")](){this.editor[Mc("0x23")][Mc("0x1c")](Mc("0x4"))._adapter={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this[Mc("0x7")][Mc("0x23")].get(Mc("0x1e"))[Mc("0x26")]=null}}function Pc(t){return void 0!==t[Mc("0x13")]}async function Dc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,wc);o.plugins[Mc("0x2c")](Wa,Fc),o[Mc("0x27")]=Pc(t)?t[Mc("0x13")]():void 0;const s=document[Mc("0x22")](),i=t[Mc("0x3")][Mc("0x1c")]("trackChangesData").editorCreator,x=await i(o,(()=>function(t){const e=document[Mc("0x17")](Mc("0x24"));return t[Mc("0x1")](e),e}(s)));!function(t,e){const n=t[Mc("0x2a")][Mc("0x21")][Mc("0x14")]()[Mc("0xe")](((e,n)=>(e[n]=t.data[Mc("0x1c")]({rootName:n}),e)),{}),o=t.plugins[Mc("0x1c")](Mc("0x28"))[Mc("0x5")].map((t=>({id:t.id,name:t[Mc("0x18")]}))),s=t[Mc("0x23")][Mc("0x1c")](Mc("0x1e")).getSuggestions({skipNotAttached:!0,toJSON:!0}),r=e.plugins[Mc("0x1c")]("Users"),i=e[Mc("0x23")][Mc("0x1c")]("TrackChangesEditing");for(const t of o)r[Mc("0x0")](t.id)||r[Mc("0x19")](t);r.me||r.useAnonymousUser();for(const t of s)i[Mc("0xf")](t);e.data[Mc("0xb")](n)}(t,x),x.execute(Mc(e?"0x16":"0x25"));const a=Pc(x)?x[Mc("0xa")](n):x.data[Mc("0x1c")](n);return await x[Mc("0x11")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|