@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231226.0 → 0.0.0-nightly-20231228.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.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 i=e[o];if(void 0!==i)return i.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:()=>Pc,TrackChanges:()=>el,TrackChangesData:()=>xl,TrackChangesEditing:()=>hc});var t=n(704),e=n(209),i=n(273),r=n(417),s=n(492),x=n(995);const a=["execute","_enableCommands","_enabledCommands","has","refresh","_disableUnsupportedCommands","value","clearForceDisabled","commands","TrackChangesCommand","isEnabled"];var c,l;c=a,l=213,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return a[t-=0]};class d extends t.Command{constructor(t,e){super(t),this[u("0x9")]=e,this[u("0x2")]=!1,this[u("0x0")](),this._isEnabledBasedOnSelection=!1}refresh(){this[u("0x6")]=!0}[u("0x7")](){this.value=!this.value,this[u("0x2")]?this[u("0x1")]():this[u("0x8")]()}[u("0x1")](){for(const t of this.editor[u("0x4")][u("0x4")]())t.affectsData&&!this[u("0x9")][u("0xa")](t)&&t.forceDisabled(u("0x5"))}[u("0x8")](){for(const t of this.editor[u("0x4")][u("0x4")]())t.affectsData&&!this[u("0x9")][u("0xa")](t)&&t[u("0x3")](u("0x5"))}}const g=["plugins","getRanges","execute","get","_suggestions","model","TrackChangesEditing","acceptSuggestion","track-changes-accept-suggestion-not-found","canEditAt","editor"];var f,m;f=g,m=201,function(t){for(;--t;)f.push(f.shift())}(++m);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this[h("0x1")]=e,this.refresh(),this._isEnabledBasedOnSelection=!1}refresh(){this.isEnabled=!0}[h("0xa")](t){const n=this[h("0x1")][h("0x0")](t);if(!n)throw new e.CKEditorError(h("0x5"),this);const o=n[h("0x9")]();this[h("0x7")][h("0x2")][h("0x6")](o)&&this.editor[h("0x8")][h("0x0")](h("0x3"))[h("0x4")](n)}}const b=["discardSuggestion","_isEnabledBasedOnSelection","track-changes-discard-suggestion-not-found","execute","isEnabled","canEditAt","getRanges","_suggestions","model","get","editor","refresh"];var E,_;E=b,_=369,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class y extends t.Command{constructor(t,e){super(t),this[T("0xa")]=e,this[T("0x2")](),this[T("0x4")]=!1}[T("0x2")](){this[T("0x7")]=!0}[T("0x6")](t){const n=this._suggestions[T("0x0")](t);if(!n)throw new e.CKEditorError(T("0x5"),this);const o=n[T("0x9")]();this.editor[T("0xb")][T("0x8")](o)&&this[T("0x1")].plugins[T("0x0")]("TrackChangesEditing")[T("0x3")](n)}}const C=["isCollapsed","isTouching","type","push","execute","from","createRange","createPositionAfter","join","getRanges","isObject","content","length","splice","schema","color","deletion","isInContent","isMultiRange","change","isIntersecting","end","isArray"," [color ","start","sort"];var A,k;A=C,k=184,function(t){for(;--t;)A.push(A.shift())}(++k);const I=function(t,e){return C[t-=0]};function S(t){return t[I("0x17")](((t,e)=>I("0xe")==t[I("0x0")]&&I("0xe")!=e[I("0x0")]?-1:I("0xe")!=t[I("0x0")]&&I("0xe")==e.type?1:0))}function R(t,e){let n,o=0;const i=[],r=e[I("0xc")];for(;o<t.length;){const s=t[o],x=t[o+1];n||(n=e.createPositionBefore(s)),v(e,s,x)||(i[I("0x1")](e[I("0x4")](n,r[I("0x8")](s)?e.createPositionAfter(s):e.createPositionAt(s,I("0x13")))),n=null),o++}return i}function v(t,e,n){if(!n)return!1;const o=t[I("0x5")](e),i=t.createPositionBefore(n);return o[I("0x19")](i)}function N(t,e,n){for(;n[I("0xa")];){const o=n[I("0xb")](0,100);t[I("0x11")]((()=>{for(const t of o)t[I("0xf")]&&e[I("0x2")](t.id)}))}}const L=["_suggestions","some","execute","_isEnabledBasedOnSelection","values","model","from","editor","isInContent","_command","canEditAt","isEnabled","refresh"];var M,w;M=L,w=327,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return L[t-=0]};class D extends t.Command{constructor(t,e,n){super(t),this[O("0x7")]=e,this[O("0xb")]=n,this[O("0xa")](),this[O("0x1")]=!1}[O("0xa")](){const t=Array[O("0x4")](this[O("0xb")][O("0x2")]())[O("0xc")]((t=>t[O("0x6")]));this.isEnabled=this[O("0x7")][O("0x9")]&&t}[O("0x0")](){const t=S(Array[O("0x4")](this[O("0xb")][O("0x2")]()));for(const e of t){const t=e.getRanges();if(!this[O("0x5")][O("0x3")][O("0x8")](t))return}N(this[O("0x5")][O("0x3")],this[O("0x7")],t)}}const F=["_command","getRanges","editor","_suggestions","document","canEditAt","_selectedSuggestions","from","execute","values","model","selection"];var B,P;B=F,P=497,function(t){for(;--t;)B.push(B.shift())}(++P);const U=function(t,e){return F[t-=0]};class j extends t.Command{constructor(t,e,n){super(t),this[U("0x7")]=e,this[U("0xa")]=n,this[U("0x1")]=new Set,this.refresh(),this._isEnabledBasedOnSelection=!1}refresh(){const t=this[U("0x9")][U("0x5")][U("0xb")][U("0x6")],e=Array[U("0x2")](this[U("0xa")][U("0x4")]());this[U("0x1")]=function(t,e){const n=Array[I("0x3")](t[I("0x7")]()),o=new Set;for(const i of e)if(i.isInContent)for(const e of n)for(const n of i[I("0x7")]())(e[I("0x12")](n)||t[I("0x18")]&&!i[I("0x10")]&&i.next&&n[I("0x13")][I("0x19")](e[I("0x16")]))&&o.add(i);return o}(t,e),this.isEnabled=this[U("0x7")].isEnabled&&!!this._selectedSuggestions.size}[U("0x3")](){const t=S(Array[U("0x2")](this[U("0x1")]));for(const e of t){const t=e[U("0x8")]();if(!this[U("0x9")].model[U("0x0")](t))return}N(this[U("0x9")][U("0x5")],this._command,t)}}const G=function(){this.__data__=[],this.size=0};const V=function(t,e){return t===e||t!=t&&e!=e};const H=function(t,e){for(var n=t.length;n--;)if(V(t[n][0],e))return n;return-1};var z=Array.prototype.splice;const W=function(t){var e=this.__data__,n=H(e,t);return!(n<0)&&(n==e.length-1?e.pop():z.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=H(e,t);return n<0?void 0:e[n][1]};const q=function(t){return H(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=H(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=W,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const Z=$;const Y=function(){this.__data__=new Z,this.size=0};const J=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Q=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 it=ot.Symbol;var rt=Object.prototype,st=rt.hasOwnProperty,xt=rt.toString,at=it?it.toStringTag:void 0;const ct=function(t){var e=st.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var i=xt.call(t);return o&&(e?t[at]=n:delete t[at]),i};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=it?it.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 ft=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const mt=function(t){if(!ft(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 yt=/^\[object .+?Constructor\]$/,Ct=Function.prototype,At=Object.prototype,kt=Ct.toString,It=At.hasOwnProperty,St=RegExp("^"+kt.call(It).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Rt=function(t){return!(!ft(t)||Et(t))&&(mt(t)?St:yt).test(Tt(t))};const vt=function(t,e){return null==t?void 0:t[e]};const Nt=function(t,e){var n=vt(t,e);return Rt(n)?n:void 0};const Lt=Nt(ot,"Map");const Mt=Nt(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 Dt=Object.prototype.hasOwnProperty;const Ft=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Dt.call(e,t)?e[t]:void 0};var Bt=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Bt.call(e,t)};const Ut=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 jt(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])}}jt.prototype.clear=wt,jt.prototype.delete=Ot,jt.prototype.get=Ft,jt.prototype.has=Pt,jt.prototype.set=Ut;const Gt=jt;const Vt=function(){this.size=0,this.__data__={hash:new Gt,map:new(Lt||Z),string:new Gt}};const Ht=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const zt=function(t,e){var n=t.__data__;return Ht(e)?n["string"==typeof e?"string":"hash"]:n.map};const Wt=function(t){var e=zt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return zt(this,t).get(t)};const qt=function(t){return zt(this,t).has(t)};const Xt=function(t,e){var n=zt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Vt,$t.prototype.delete=Wt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Zt=$t;const Yt=function(t,e){var n=this.__data__;if(n instanceof Z){var o=n.__data__;if(!Lt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Zt(o)}return n.set(t,e),this.size=n.size,this};function Jt(t){var e=this.__data__=new Z(t);this.size=e.size}Jt.prototype.clear=Y,Jt.prototype.delete=J,Jt.prototype.get=Q,Jt.prototype.has=tt,Jt.prototype.set=Yt;const Qt=Jt;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=Nt(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 ie=function(t,e,n){var o=t[e];oe.call(t,e)&&V(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var i=!n;n||(n={});for(var r=-1,s=e.length;++r<s;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),i?ne(n,x,a):ie(n,x,a)}return n};const se=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 fe=function(){return!1};var me="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=me&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===me?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||fe;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 ye={};ye["[object Float32Array]"]=ye["[object Float64Array]"]=ye["[object Int8Array]"]=ye["[object Int16Array]"]=ye["[object Int32Array]"]=ye["[object Uint8Array]"]=ye["[object Uint8ClampedArray]"]=ye["[object Uint16Array]"]=ye["[object Uint32Array]"]=!0,ye["[object Arguments]"]=ye["[object Array]"]=ye["[object ArrayBuffer]"]=ye["[object Boolean]"]=ye["[object DataView]"]=ye["[object Date]"]=ye["[object Error]"]=ye["[object Function]"]=ye["[object Map]"]=ye["[object Number]"]=ye["[object Object]"]=ye["[object RegExp]"]=ye["[object Set]"]=ye["[object String]"]=ye["[object WeakMap]"]=!1;const Ce=function(t){return xe(t)&&Te(t.length)&&!!ye[gt(t)]};const Ae=function(t){return function(e){return t(e)}};var ke="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ie=ke&&"object"==typeof module&&module&&!module.nodeType&&module,Se=Ie&&Ie.exports===ke&&et.process;const Re=function(){try{var t=Ie&&Ie.require&&Ie.require("util").types;return t||Se&&Se.binding&&Se.binding("util")}catch(t){}}();var ve=Re&&Re.isTypedArray;const Ne=ve?Ae(ve):Ce;var Le=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&de(t),i=!n&&!o&&be(t),r=!n&&!o&&!i&&Ne(t),s=n||o||i||r,x=s?se(t.length,String):[],a=x.length;for(var c in t)!e&&!Le.call(t,c)||s&&("length"==c||i&&("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 De=function(t,e){return function(n){return t(e(n))}};const Fe=De(Object.keys,Object);var Be=Object.prototype.hasOwnProperty;const Pe=function(t){if(!Oe(t))return Fe(t);var e=[];for(var n in Object(t))Be.call(t,n)&&"constructor"!=n&&e.push(n);return e};const Ue=function(t){return null!=t&&Te(t.length)&&!mt(t)};const je=function(t){return Ue(t)?Me(t):Pe(t)};const Ge=function(t,e){return t&&re(e,je(e),t)};const Ve=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var He=Object.prototype.hasOwnProperty;const ze=function(t){if(!ft(t))return Ve(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&He.call(t,o))&&n.push(o);return n};const We=function(t){return Ue(t)?Me(t,!0):ze(t)};const Ke=function(t,e){return t&&re(e,We(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,Ze=$e?$e.allocUnsafe:void 0;const Ye=function(t,e){if(e)return t.slice();var n=t.length,o=Ze?Ze(n):new t.constructor(n);return t.copy(o),o};const Je=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Qe=function(t,e){for(var n=-1,o=null==t?0:t.length,i=0,r=[];++n<o;){var s=t[n];e(s,n,t)&&(r[i++]=s)}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),Qe(nn(t),(function(e){return en.call(t,e)})))}:tn;const rn=function(t,e){return re(t,on(t),e)};const sn=function(t,e){for(var n=-1,o=e.length,i=t.length;++n<o;)t[i+n]=e[n];return t};const xn=De(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)sn(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:sn(o,n(t))};const un=function(t){return ln(t,je,on)};const dn=function(t){return ln(t,We,an)};const gn=Nt(ot,"DataView");const fn=Nt(ot,"Promise");const mn=Nt(ot,"Set");const hn=Nt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",yn=Tt(gn),Cn=Tt(Lt),An=Tt(fn),kn=Tt(mn),In=Tt(hn),Sn=gt;(gn&&Sn(new gn(new ArrayBuffer(1)))!=Tn||Lt&&Sn(new Lt)!=pn||fn&&Sn(fn.resolve())!=bn||mn&&Sn(new mn)!=En||hn&&Sn(new hn)!=_n)&&(Sn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case yn:return Tn;case Cn:return pn;case An:return bn;case kn:return En;case In:return _n}return e});const Rn=Sn;var vn=Object.prototype.hasOwnProperty;const Nn=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&vn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Ln=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Ln(e).set(new Ln(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 Dn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Fn=it?it.prototype:void 0,Bn=Fn?Fn.valueOf:void 0;const Pn=function(t){return Bn?Object(Bn.call(t)):{}};const Un=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const jn=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 Un(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 Dn(t);case"[object Symbol]":return Pn(t)}};var Gn=Object.create;const Vn=function(){function t(){}return function(e){if(!ft(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Hn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Vn(xn(t))};const zn=function(t){return xe(t)&&"[object Map]"==Rn(t)};var Wn=Re&&Re.isMap;const Kn=Wn?Ae(Wn):zn;const qn=function(t){return xe(t)&&"[object Set]"==Rn(t)};var Xn=Re&&Re.isSet;const $n=Xn?Ae(Xn):qn;var Zn="[object Arguments]",Yn="[object Function]",Jn="[object Object]",Qn={};Qn[Zn]=Qn["[object Array]"]=Qn["[object ArrayBuffer]"]=Qn["[object DataView]"]=Qn["[object Boolean]"]=Qn["[object Date]"]=Qn["[object Float32Array]"]=Qn["[object Float64Array]"]=Qn["[object Int8Array]"]=Qn["[object Int16Array]"]=Qn["[object Int32Array]"]=Qn["[object Map]"]=Qn["[object Number]"]=Qn[Jn]=Qn["[object RegExp]"]=Qn["[object Set]"]=Qn["[object String]"]=Qn["[object Symbol]"]=Qn["[object Uint8Array]"]=Qn["[object Uint8ClampedArray]"]=Qn["[object Uint16Array]"]=Qn["[object Uint32Array]"]=!0,Qn["[object Error]"]=Qn[Yn]=Qn["[object WeakMap]"]=!1;const to=function t(e,n,o,i,r,s){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,i,r,s):o(e)),void 0!==x)return x;if(!ft(e))return e;var u=ge(e);if(u){if(x=Nn(e),!a)return Je(e,x)}else{var d=Rn(e),g=d==Yn||"[object GeneratorFunction]"==d;if(be(e))return Ye(e,a);if(d==Jn||d==Zn||g&&!r){if(x=c||g?{}:Hn(e),!a)return c?cn(e,Ke(x,e)):rn(e,Ge(x,e))}else{if(!Qn[d])return r?e:{};x=jn(e,d,a)}}s||(s=new Qt);var f=s.get(e);if(f)return f;s.set(e,x),$n(e)?e.forEach((function(i){x.add(t(i,n,o,i,e,s))})):Kn(e)&&e.forEach((function(i,r){x.set(r,t(i,n,o,r,e,s))}));var m=u?void 0:(l?c?dn:un:c?We:je)(e);return te(m||e,(function(i,r){m&&(i=e[r=i]),ie(x,r,t(i,n,o,r,e,s))})),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)\]/,io=/^\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))||(io.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function so(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,i=e?e.apply(this,o):o[0],r=n.cache;if(r.has(i))return r.get(i);var s=t.apply(this,o);return n.cache=r.set(i,s)||r,s};return n.cache=new(so.Cache||Zt),n}so.Cache=Zt;const xo=so;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,i){e.push(o?i.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,i=Array(o);++n<o;)i[n]=e(t[n],n,t);return i};var go=it?it.prototype:void 0,fo=go?go.toString:void 0;const mo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return fo?fo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":mo(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(!ft(t))return t;for(var i=-1,r=(e=po(e,t)).length,s=r-1,x=t;null!=x&&++i<r;){var a=bo(e[i]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(i!=s){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=ft(l)?l:_e(e[i+1])?[]:{})}ie(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 yo=function(t){return this.__data__.has(t)};function Co(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Zt;++e<n;)this.add(t[e])}Co.prototype.add=Co.prototype.push=To,Co.prototype.has=yo;const Ao=Co;const ko=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 Io=function(t,e){return t.has(e)};const So=function(t,e,n,o,i,r){var s=1&n,x=t.length,a=e.length;if(x!=a&&!(s&&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 Ao:void 0;for(r.set(t,e),r.set(e,t);++u<x;){var f=t[u],m=e[u];if(o)var h=s?o(m,f,u,e,t,r):o(f,m,u,t,e,r);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!ko(e,(function(t,e){if(!Io(g,e)&&(f===t||i(f,t,n,o,r)))return g.push(e)}))){d=!1;break}}else if(f!==m&&!i(f,m,n,o,r)){d=!1;break}}return r.delete(t),r.delete(e),d};const Ro=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const vo=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var No=it?it.prototype:void 0,Lo=No?No.valueOf:void 0;const Mo=function(t,e,n,o,i,r,s){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 Ln(t),new Ln(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return V(+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=Ro;case"[object Set]":var a=1&o;if(x||(x=vo),t.size!=e.size&&!a)return!1;var c=s.get(t);if(c)return c==e;o|=2,s.set(t,e);var l=So(x(t),x(e),o,i,r,s);return s.delete(t),l;case"[object Symbol]":if(Lo)return Lo.call(t)==Lo.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,i,r){var s=1&n,x=un(t),a=x.length;if(a!=un(e).length&&!s)return!1;for(var c=a;c--;){var l=x[c];if(!(s?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 f=s;++c<a;){var m=t[l=x[c]],h=e[l];if(o)var p=s?o(h,m,l,e,t,r):o(m,h,l,t,e,r);if(!(void 0===p?m===h||i(m,h,n,o,r):p)){g=!1;break}f||(f="constructor"==l)}if(g&&!f){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 Do="[object Arguments]",Fo="[object Array]",Bo="[object Object]",Po=Object.prototype.hasOwnProperty;const Uo=function(t,e,n,o,i,r){var s=ge(t),x=ge(e),a=s?Fo:Rn(t),c=x?Fo:Rn(e),l=(a=a==Do?Bo:a)==Bo,u=(c=c==Do?Bo:c)==Bo,d=a==c;if(d&&be(t)){if(!be(e))return!1;s=!0,l=!1}if(d&&!l)return r||(r=new Qt),s||Ne(t)?So(t,e,n,o,i,r):Mo(t,e,a,n,o,i,r);if(!(1&n)){var g=l&&Po.call(t,"__wrapped__"),f=u&&Po.call(e,"__wrapped__");if(g||f){var m=g?t.value():t,h=f?e.value():e;return r||(r=new Qt),i(m,h,n,o,r)}}return!!d&&(r||(r=new Qt),Oo(t,e,n,o,i,r))};const jo=function t(e,n,o,i,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:Uo(e,n,o,i,t,r))};const Go=function(t,e){return jo(t,e)};const Vo=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Ho=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const zo=function(t,e,n){var o=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(i);++o<i;)r[o]=t[o+e];return r};const Wo=function(t,e){return e.length<2?t:Ho(t,zo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Wo(t,e))||delete t[bo(Vo(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["getContainedElement","@external","subType","type","addRange","getRanges","end","createdAt","_onAttributesChange","previous","filter","set","reduce","isMultiRange","length","_onDiscard","isIntersecting","split","_onAccept","change","_isDataLoaded","_markerNames","substr","onAccept","commentThread","setAttribute","markers","getFirstMarker","decorate","_model","map","accept","_saved","getAllAdjacentSuggestions","discard","creator","addMarkerName","removeMarker","onAttributesChange","start","hasComments","getMultiRangeId","getMarkerNames","push","data","isIntersectingWithRange","nodeBefore","next","getRange","attributes","authoredAt","author","removeMarkers","getMarkers","from","delete","getFirstRange","addMarker","nodeAfter"];var $o,Zo;$o=Xo,Zo=215,function(t){for(;--t;)$o.push($o.shift())}(++Zo);const Yo=function(t,e){return Xo[t-=0]};class Jo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this[Yo("0x29")]=!1,this.id=e.id,this.type=e[Yo("0x18")],this[Yo("0x17")]=e[Yo("0x17")]||null,this[Yo("0xd")]=e.author,this.creator=e.creator||e.author,this.isExternal=Boolean(e[Yo("0xb")]&&e[Yo("0xb")][Yo("0x16")]),this.data=null,this[Yo("0x32")]=t,this[Yo("0x27")]=e[Yo("0x2c")],this[Yo("0x24")]=e.onDiscard,this[Yo("0x1d")]=e[Yo("0x0")],this._markerNames=new Set,this[Yo("0x1c")]=null,this[Yo("0x20")](Yo("0xc"),null),this[Yo("0x20")]("attributes",e.attributes||{}),this[Yo("0x20")](Yo("0x1e"),null),this[Yo("0x20")]("next",null),this.set(Yo("0x2d"),null),this[Yo("0x20")](Yo("0x35"),!1),this[Yo("0x31")](Yo("0x34")),this[Yo("0x31")](Yo("0x37"))}get head(){let t=this;for(;t[Yo("0x1e")];)t=t[Yo("0x1e")];return t}get[Yo("0x2")](){return!!this[Yo("0x2d")]&&this[Yo("0x2d")].length>0}get[Yo("0x22")](){return 0!=this[Yo("0x2a")].size&&6==Array[Yo("0x10")](this[Yo("0x2a")])[0][Yo("0x26")](":").length}get isInContent(){return null!==this[Yo("0x30")]()}[Yo("0x39")](t){this[Yo("0x2a")].add(t)}[Yo("0x4")](){return Array.from(this[Yo("0x2a")])}[Yo("0xf")](){return this[Yo("0x4")]().map((t=>this[Yo("0x32")][Yo("0x2f")].get(t)))[Yo("0x1f")]((t=>t))}getFirstMarker(){return this[Yo("0xf")]()[0]||null}[Yo("0xe")](){this[Yo("0x32")][Yo("0x28")]((t=>{for(const e of this[Yo("0xf")]())t[Yo("0x3a")](e)})),this[Yo("0x2a")].clear()}removeMarker(t){this[Yo("0x32")][Yo("0x28")]((e=>{e[Yo("0x3a")](t)})),this[Yo("0x2a")][Yo("0x11")](t)}[Yo("0x19")](t){const e="suggestion:"+this[Yo("0x18")]+":"+this[Yo("0x17")]+":"+this.id+":"+this[Yo("0x38")].id+":"+Jo[Yo("0x3")]();this[Yo("0x39")](e),this[Yo("0x32")].change((n=>{n[Yo("0x13")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Yo("0x7")](t){for(const e of this[Yo("0x1a")]())if(e[Yo("0x25")](t))return!0;return!1}getRanges(){return this[Yo("0xf")]()[Yo("0x33")]((t=>t[Yo("0xa")]()))}getItems(){return this[Yo("0x1a")]()[Yo("0x21")](((t,e)=>[...t,...e.getItems()]),[])}[Yo("0x12")](){var t;return(null===(t=this[Yo("0x30")]())||void 0===t?void 0:t[Yo("0xa")]())||null}[Yo("0x15")](){const t=this.getRanges();if(1!=t[Yo("0x23")])return null;const e=t[0],n=e[Yo("0x1")][Yo("0x14")],o=e[Yo("0x1b")][Yo("0x8")];return n instanceof s.Element?n!=o?null:n:null}accept(){this._onAccept(this[Yo("0x1a")](),this[Yo("0x6")],this.attributes),this[Yo("0xe")]()}[Yo("0x37")](){this[Yo("0x24")](this.getRanges(),this[Yo("0x6")],this[Yo("0xb")]),this[Yo("0xe")]()}[Yo("0x36")](){const t=[];let e=this.head;for(;e;)t[Yo("0x5")](e),e=e[Yo("0x9")];return t}[Yo("0x2e")](t,e){const n=eo(this[Yo("0xb")]);_o(n,t,e),Go(n,this[Yo("0xb")])||(this[Yo("0xb")]=n,this._onAttributesChange(n))}removeAttribute(t){const e=eo(this.attributes);qo(e,t),Go(e,this[Yo("0xb")])||(this.attributes=e,this[Yo("0x1d")](this[Yo("0xb")]))}toJSON(){return{id:this.id,type:this[Yo("0x17")]?this[Yo("0x18")]+":"+this[Yo("0x17")]:this[Yo("0x18")],authorId:this[Yo("0x38")].id,createdAt:this.createdAt,hasComments:this[Yo("0x2")],data:this.data,attributes:this[Yo("0xb")]}}static[Yo("0x3")](){return(0,e.uid)()[Yo("0x2b")](1,5)}}function Qo(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"*Replace image URL*":return o("*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 format:* %0":return o("*Set format:* %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_DEFAULT":return o({string:"bulleted list (default)",id:"ELEMENT_BULLETED_LIST_DEFAULT"});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_DEFAULT":return o({string:"numbered list (default)",id:"ELEMENT_NUMBERED_LIST_DEFAULT"});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_ALIGNMENT":return o({string:"alignment",id:"FORMAT_ALIGNMENT"});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"FORMAT_INDENT":return o({string:"indent",id:"FORMAT_INDENT"});case"FORMAT_LIST_REVERSED":return o({string:"list reversed",id:"FORMAT_LIST_REVERSED"});case"FORMAT_LIST_START":return o({string:"list start",id:"FORMAT_LIST_START"});case"FORMAT_FONT_SIZE":return o({string:"font size",id:"FORMAT_FONT_SIZE"});case"FORMAT_FONT_FAMILY":return o({string:"font family",id:"FORMAT_FONT_FAMILY"});case"FORMAT_FONT_COLOR":return o({string:"font color",id:"FORMAT_FONT_COLOR"});case"FORMAT_FONT_BACKGROUND":return o({string:"font background color",id:"FORMAT_FONT_BACKGROUND"});case"FORMAT_IMAGE_SIZE":return o({string:"image size",id:"FORMAT_IMAGE_SIZE"});case"FORMAT_STYLE":return o({string:"style",id:"FORMAT_STYLE"});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);case"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering insertion suggestion.",id:"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving insertion suggestion.",id:"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering deletion suggestion.",id:"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving deletion suggestion.",id:"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering formatting suggestion.",id:"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving formatting suggestion.",id:"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT"});default:return e}}const ti=["isInContent","data","deletion","_attributeLabels","indexOf","function","$textProxy","_locale","replace","getFirstRange","type","element","*Remove format:* %0","$1 $2","item","_addDescriptionItems","pop","name","*Insert:* %0","format","EmptyContainer","getItemLabel","start","set","normal","_itemLabelsCallbacks","removeObject","skip","softBreak","_handleCustomCallbackDescription","_schema","has","isObject","remove","add","*Change to:* %0","registerElementLabel","join","_handleRenameSuggestionDescription","match","*Remove:* %0","addFormat","previousSibling","ELEMENT_SPACE","label","checkChild","*Merge:* %0","_handleInsertRemoveSuggestionDescription","matchingCallback","nextSibling","length","text","$text","get","isEmpty","elementEnd","insertion","nodeAfter","_handleAttributeSuggestionDescription","Object","subType","isEqual","_itemLabels","elementStart","addObject","getWalker","quantity","newValue","attribute","key","registerAttributeLabel","removeFormat","_customCallbacks","addContainer","push","Container","map"];var ei,ni;ei=ti,ni=138,function(t){for(;--t;)ei.push(ei.shift())}(++ni);const oi=function(t,e){return ti[t-=0]};class ii{constructor(t,e){this[oi("0xb")]=[],this[oi("0x1")]=new Map,this[oi("0x29")]=[],this._attributeLabels=new Map,this[oi("0x2e")]=t,this[oi("0x17")]=e}getDescriptions(t){const e=[],n=new Set,o=new Set;for(let i=0;i<t[oi("0x42")];i++){const r=t[i];if(!r[oi("0x10")])continue;const s=this._handleCustomCallbackDescription(r);if(s){if(null!=r[oi("0x4c")]){if(n[oi("0x2f")](r[oi("0x4c")]))continue;n[oi("0x32")](r[oi("0x4c")])}e.push(s)}else if(oi("0x7")!=r.type)"insertion"!=r[oi("0x1a")]&&oi("0x12")!=r[oi("0x1a")]||this[oi("0x3f")](e,r,t[i+1]);else{const t=r[oi("0x11")][oi("0x8")];if(o[oi("0x2f")](t))continue;o[oi("0x32")](r.data[oi("0x8")]),t==mc?this[oi("0x36")](e,r):this._handleAttributeSuggestionDescription(e,r)}}return this._resolveDescriptionItems(e)}registerDescriptionCallback(t){this[oi("0xb")][oi("0xd")](t)}[oi("0x34")](t,n,o=e.priorities[oi("0x28")]){oi("0x15")==typeof t?(0,e.insertToPriorityArray)(this[oi("0x29")],{matchingCallback:t,label:n,priority:o}):this._itemLabels[oi("0x27")](t,n)}[oi("0x9")](t,e){this[oi("0x13")][oi("0x27")](t,e)}[oi("0x25")](t,e=1){let n;for(const e of this[oi("0x29")])if(e[oi("0x40")](t)){n=e[oi("0x3c")];break}return n||(n=this._itemLabels[oi("0x45")](t[oi("0x21")])),n?n(e):1!==e?e+" "+t[oi("0x21")]+"s":""+t.name}[oi("0x1f")](t,e){const n=e[oi("0x19")]()[oi("0x4")](),o=oi("0x48")==e.type?"add":oi("0x31");for(const e of n){const i=e[oi("0x1e")],r=t[t[oi("0x42")]-1];if(i.is(oi("0x16")))r&&r.type[oi("0x14")](oi("0xe"))>-1&&t[oi("0x20")](),r&&oi("0x43")==r.type?r[o]+=i[oi("0x11")]:t[oi("0xd")]({type:oi("0x43"),add:oi("0x32")==o?i[oi("0x11")]:"",remove:oi("0x31")==o?i[oi("0x11")]:""});else if(this[oi("0x2e")][oi("0x30")](i)){const s=i;if(r&&r.type.indexOf("Container")>-1&&t.pop(),oi("0x47")==e[oi("0x1a")])continue;r&&r[oi("0x1a")]==o+"Object"&&r[oi("0x1b")][oi("0x21")]==s[oi("0x21")]?r[oi("0x5")]++:t[oi("0xd")]({type:o+oi("0x4b"),element:s,quantity:1}),n[oi("0x2b")]((t=>!(oi("0x47")==t.type&&t[oi("0x1e")]==i)))}else if(this._schema[oi("0x3d")](i,oi("0x44"))||i.is("element",oi("0x2c"))){const n=i;if("add"==o&&oi("0x2")==e[oi("0x1a")]||oi("0x31")==o&&oi("0x47")==e[oi("0x1a")])continue;if(r&&-1==r[oi("0x1a")].indexOf(oi("0xe"))){oi("0x43")==r[oi("0x1a")]&&(r[o]+="\n");continue}let s;if(s=oi("0x32")==o?n[oi("0x41")]&&!this[oi("0x2e")][oi("0x30")](n.nextSibling)?n[oi("0x41")]:null:n[oi("0x3a")]&&!this[oi("0x2e")].isObject(n[oi("0x3a")])?n[oi("0x3a")]:null,n[oi("0x46")]||s&&s[oi("0x46")]){const e=s&&s[oi("0x46")]?s:n;r&&r[oi("0x1a")]==o+"EmptyContainer"&&r[oi("0x1b")][oi("0x21")]==e.name?r.quantity++:t[oi("0xd")]({type:o+oi("0x24"),element:e,quantity:1})}else t.push({type:o+oi("0xe"),element:n})}}}_resolveDescriptionItems(t){const e=this[oi("0x17")],n=[],o=[],i=[];for(const r of t)switch(r[oi("0x1a")]){case oi("0x43"):if(r.add=r[oi("0x32")][oi("0x18")](/(\S)\u000A+(\S)/g,oi("0x1d"))[oi("0x18")](/\u000A/g,""),r.remove=r[oi("0x31")].replace(/(\S)\u000A+(\S)/g,oi("0x1d"))[oi("0x18")](/\u000A/g,""),""!=r.add&&""!=r[oi("0x31")]){n.push({type:"replace",content:Qo(e,"REPLACE_TEXT",['"'+r[oi("0x31")]+'"','"'+r.add+'"'])});continue}if(null!=r.add[oi("0x37")](/^ +$/)){n.push({type:oi("0x48"),content:Qo(e,oi("0x22"),Qo(e,"ELEMENT_SPACE",r[oi("0x32")][oi("0x42")]))});continue}if(null!=r.remove.match(/^ +$/)){n.push({type:oi("0x12"),content:Qo(e,oi("0x38"),Qo(e,oi("0x3b"),r[oi("0x31")][oi("0x42")]))});continue}if(""!=r.add){n.push({type:oi("0x48"),content:Qo(e,oi("0x22"),'"'+r[oi("0x32")]+'"')});continue}n[oi("0xd")]({type:oi("0x12"),content:Qo(e,oi("0x38"),'"'+r[oi("0x31")]+'"')});continue;case"addEmptyContainer":case oi("0x3"):n[oi("0xd")]({type:oi("0x48"),content:Qo(e,oi("0x22"),this[oi("0x25")](r[oi("0x1b")],r[oi("0x5")]))});continue;case"removeEmptyContainer":case oi("0x2a"):n[oi("0xd")]({type:"deletion",content:Qo(e,oi("0x38"),this[oi("0x25")](r[oi("0x1b")],r[oi("0x5")]))});continue;case oi("0xc"):n[oi("0xd")]({type:oi("0x48"),content:Qo(e,"*Split:* %0",this[oi("0x25")](r[oi("0x1b")],r[oi("0x5")]))});continue;case"removeContainer":n[oi("0xd")]({type:oi("0x12"),content:Qo(e,oi("0x3e"),this[oi("0x25")](r[oi("0x1b")],r[oi("0x5")]))});continue;case"addFormat":o.push(r[oi("0x8")]);continue;case oi("0xa"):i.push(r[oi("0x8")]);continue;default:n[oi("0xd")](r)}if(o[oi("0x42")]){const t=o[oi("0xf")]((t=>this[oi("0x13")][oi("0x2f")](t)?this[oi("0x13")][oi("0x45")](t):t))[oi("0x35")](", ");n[oi("0xd")]({type:oi("0x23"),content:Qo(this._locale,"*Set format:* %0",t)})}if(i.length){const t=i[oi("0xf")]((t=>this[oi("0x13")][oi("0x2f")](t)?this[oi("0x13")][oi("0x45")](t):t))[oi("0x35")](", ");n[oi("0xd")]({type:oi("0x23"),content:Qo(this[oi("0x17")],oi("0x1c"),t)})}return n}[oi("0x2d")](t){for(const e of this[oi("0xb")]){const n=e(t);if(n&&"type"in n)return n}}[oi("0x4a")](t,e){const n=e[oi("0x11")],o=void 0===n[oi("0x6")]?oi("0xa"):oi("0x39");t[oi("0xd")]({type:o,key:n[oi("0x8")]})}[oi("0x36")](t,e){t[oi("0xd")]({type:"format",content:Qo(this[oi("0x17")],oi("0x33"),this.getItemLabel(e[oi("0x19")]().start[oi("0x49")],1))})}[oi("0x3f")](t,e,n){if(this[oi("0x1f")](t,e),n&&n[oi("0x19")]()&&!e.getFirstRange().end[oi("0x0")](n.getFirstRange()[oi("0x26")])){const n=t[t.length-1],o="insertion"==e[oi("0x1a")]?oi("0x32"):oi("0x31");n&&"text"==n.type&&(n[o]+="\n")}}}const ri=["plugins","TrackChangesEditing","get","showAIAssistant","editor"];var si,xi;si=ri,xi=100,function(t){for(;--t;)si.push(si.shift())}(++xi);const ai=function(t,e){return ri[t-=0]};class ci extends t.Plugin{afterInit(){const t=this[ai("0x4")],e=t[ai("0x0")][ai("0x2")](ai("0x1"));t.commands.get(ai("0x3"))&&e.enableCommand(ai("0x3"))}}const li=["*Format:* %0","FORMAT_ALIGN_TO_RIGHT","_registerLegacyDescription","justify","_descriptionFactory","TrackChangesEditing","formatBlock","commandName","FORMAT_ALIGNMENT","afterInit","center","locale","registerDescriptionCallback","has","format","get","_enableDefaultAttributesIntegration","registerAttributeLabel","commandParams","FORMAT_ALIGN_TO_LEFT","right","left","plugins","alignment","FORMAT_JUSTIFY_TEXT","FORMAT_ALIGN_TO_CENTER"];var ui,di;ui=li,di=203,function(t){for(;--t;)ui.push(ui.shift())}(++di);const gi=function(t,e){return li[t-=0]};class fi extends t.Plugin{[gi("0xe")](){const t=this.editor,e=t[gi("0x10")];if(!t[gi("0x1")][gi("0x12")]("AlignmentEditing"))return;const n=t.plugins[gi("0x14")](gi("0xa"));n[gi("0x15")](gi("0x2"),[],[gi("0x2")]),n._descriptionFactory[gi("0x16")](gi("0x2"),Qo(e,gi("0xd"))),this[gi("0x7")]()}[gi("0x7")](){const t=this.editor,e=t[gi("0x10")];t[gi("0x1")][gi("0x14")](gi("0xa"))[gi("0x9")][gi("0x11")]((t=>{if(gi("0xb")!=t.type)return;const{data:n}=t;if(n&&gi("0x2")==n[gi("0xc")]){const t=n[gi("0x17")][0].value;return{type:gi("0x13"),content:Qo(e,gi("0x5"),function(t){switch(t){case gi("0x0"):return Qo(e,gi("0x18"));case gi("0x19"):return Qo(e,gi("0x6"));case gi("0xf"):return Qo(e,gi("0x4"));case gi("0x8"):return Qo(e,gi("0x3"))}}(t))}}}))}}const mi=["registerDescriptionCallback","FORMAT_STRIKETHROUGH","plugins","has","underline","FORMAT_SUPERSCRIPT","FORMAT_ITALIC","FORMAT_BOLD","formatInline","locale","superscript","FORMAT_","*Remove format:* %0","*Format:* %0","get","_descriptionFactory","commandParams","TrackChangesEditing","SuperscriptEditing","FORMAT_UNDERLINE","format","subscript","ItalicEditing","UnderlineEditing","_registerLegacyDescription","bold","FORMAT_SUBSCRIPT","FORMAT_CODE","editor","strikethrough","code","italic","forceValue","slice","BoldEditing","afterInit"];var hi,pi;hi=mi,pi=435,function(t){for(;--t;)hi.push(hi.shift())}(++pi);const bi=function(t,e){return mi[t-=0]},Ei=[bi("0x1f"),bi("0x13"),bi("0x14"),"CodeEditing","StrikethroughEditing","SubscriptEditing",bi("0xf")];class _i extends t.Plugin{[bi("0x20")](){const t=this[bi("0x19")],e=t[bi("0x23")][bi("0xb")](bi("0xe")),n=t[bi("0x6")];for(const o of Ei){if(!t[bi("0x23")][bi("0x0")](o))continue;const i=o[bi("0x1e")](0,-7).toLowerCase(),r=bi("0x8")+i.toUpperCase();e._enableDefaultAttributesIntegration(i,[i]),e[bi("0xc")].registerAttributeLabel(i,Qo(n,r))}this[bi("0x15")]()}[bi("0x15")](){const t=this.editor,e=t[bi("0x6")],n=t.plugins.get(bi("0xe"));function o(t,o){n[bi("0xc")][bi("0x21")]((n=>{if(bi("0x5")!=n.type)return;const{data:i}=n;return i&&i.commandName===t?i[bi("0xd")][0][bi("0x1d")]?{type:"format",content:Qo(e,bi("0xa"),o)}:{type:bi("0x11"),content:Qo(e,bi("0x9"),o)}:void 0}))}o(bi("0x16"),Qo(e,bi("0x4"))),o(bi("0x1c"),Qo(e,bi("0x3"))),o(bi("0x1"),Qo(e,bi("0x10"))),o(bi("0x1b"),Qo(e,bi("0x18"))),o(bi("0x1a"),Qo(e,bi("0x22"))),o(bi("0x12"),Qo(e,bi("0x17"))),o(bi("0x7"),Qo(e,bi("0x2")))}}const Ti=["enableCommand","value","checkChild","schema","ELEMENT_BLOCK_QUOTE","filter","has","name","_descriptionFactory","commandName","selection","commands","document","editor","from","forceValue","*Remove format:* %0","get","commandParams","$root","model","BlockQuoteEditing","locale","format","*Set format:* %0","plugins","change","blockQuote","parent","getSelectedBlocks"];var yi,Ci;yi=Ti,Ci=312,function(t){for(;--t;)yi.push(yi.shift())}(++Ci);const Ai=function(t,e){return Ti[t-=0]};class ki extends t.Plugin{afterInit(){const t=this[Ai("0x1")],e=t[Ai("0xa")];if(!t[Ai("0xd")][Ai("0x18")](Ai("0x9")))return;const n=t[Ai("0xd")][Ai("0x5")]("TrackChangesEditing"),o=this.editor[Ai("0x1d")][Ai("0x5")]("blockQuote");n[Ai("0x12")]("blockQuote",((e,i={})=>{const r=this[Ai("0x1")][Ai("0x8")][Ai("0x0")][Ai("0x1c")],s=i&&void 0!==i[Ai("0x3")]?i.forceValue:!o[Ai("0x13")];let x=[];if(s){const e=Array[Ai("0x2")](r[Ai("0x11")]())[Ai("0x17")]((t=>Ii(t)||function(t,e){const n=e[Ai("0x14")](t[Ai("0x10")],Ai("0xf")),o=e[Ai("0x14")]([Ai("0x7"),Ai("0xf")],t);return n&&o}(t,this.editor.model[Ai("0x15")])));x=R(e,t[Ai("0x8")])}else{const e=Array.from(r[Ai("0x11")]()).filter((t=>Ii(t)));x=R(e,t.model)}t[Ai("0x8")][Ai("0xe")]((()=>{for(const t of x)n.markBlockFormat(t,{commandName:Ai("0xf"),commandParams:[{forceValue:s}]})}))})),n[Ai("0x1a")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&Ai("0xf")==n[Ai("0x1b")]){const t=Qo(e,Ai("0x16"));return n[Ai("0x6")][0][Ai("0x3")]?{type:Ai("0xb"),content:Qo(e,Ai("0xc"),t)}:{type:Ai("0xb"),content:Qo(e,Ai("0x4"),t)}}}))}}function Ii(t){return Ai("0xf")==t[Ai("0x10")][Ai("0x19")]}const Si=["plugins","enableCommand","afterInit","editor","commands","TrackChangesEditing"];var Ri,vi;Ri=Si,vi=364,function(t){for(;--t;)Ri.push(Ri.shift())}(++vi);const Ni=function(t,e){return Si[t-=0]};class Li extends t.Plugin{[Ni("0x4")](){const t=this[Ni("0x5")];t[Ni("0x0")].get("ckbox")&&t[Ni("0x2")].get(Ni("0x1"))[Ni("0x3")]("ckbox")}}const Mi=["rootElement","getSelectedBlocks","commandParams","from","forceValue","ELEMENT_CODE_BLOCK","*Set format:* %0","schema","CodeBlock","formatBlock","codeBlock","checkChild","document","get","*Remove format:* %0","format","value","toLowerCase","find","commandName","parent","editor","isLimit","afterInit","enableCommand","selection","_descriptionFactory","languages","name","indentCodeBlock","model","plugins","filter","language","TrackChangesEditing","registerElementLabel","blockName"];var wi,Oi;wi=Mi,Oi=106,function(t){for(;--t;)wi.push(wi.shift())}(++Oi);const Di=function(t,e){return Mi[t-=0]};class Fi extends t.Plugin{[Di("0x1c")](){const t=this[Di("0x1a")];if(!t.plugins.has(Di("0xd")))return;const e=t[Di("0x24")][Di("0x12")](Di("0x2")),n=t.locale,o=t.config.get(Di("0xf"))[Di("0x20")],i=t.commands[Di("0x12")](Di("0xf"));e[Di("0x1d")](Di("0x22")),e[Di("0x1d")]("outdentCodeBlock"),e.enableCommand("codeBlock",((n,r={})=>{const s=t[Di("0x23")],x=t[Di("0x23")][Di("0x11")][Di("0x1e")],a=r&&void 0!==r[Di("0x9")]?r[Di("0x9")]:!i[Di("0x15")];let c;r[Di("0x1")]||(r[Di("0x1")]=o[0][Di("0x1")]),c=a?Array[Di("0x8")](x[Di("0x6")]())[Di("0x0")]((t=>{return Bi(t)||(e=t,n=s[Di("0xc")],!e.is(Di("0x5"))&&!n[Di("0x1b")](e)&&n[Di("0x10")](e[Di("0x19")],"codeBlock"));var e,n})):Array[Di("0x8")](x[Di("0x6")]())[Di("0x0")]((t=>Bi(t)));const l=R(c,s);s.change((()=>{for(const t of l)e.markBlockFormat(t,{commandName:Di("0xf"),commandParams:[{...r,forceValue:a}],formatGroupId:Di("0x4")})}))})),e[Di("0x1f")][Di("0x3")](Di("0xf"),(t=>Qo(n,Di("0xa"),t))),e[Di("0x1f")].registerDescriptionCallback((t=>{if(Di("0xe")!=t.type)return;const e=n.t,{data:i}=t;if(!i||Di("0xf")!=i[Di("0x18")])return;const r=i[Di("0x7")][0][Di("0x1")],s=e(o[Di("0x17")]((t=>t[Di("0x1")]===r)).label)[Di("0x16")]();return i[Di("0x7")][0][Di("0x9")]?{type:Di("0x14"),content:Qo(n,Di("0xb"),Qo(n,Di("0xa"),1)+" ("+s+")")}:{type:Di("0x14"),content:Qo(n,Di("0x13"),Qo(n,"ELEMENT_CODE_BLOCK",1))}}))}}function Bi(t){return Di("0xf")==t[Di("0x21")]}const Pi=["editor","plugins","TrackChangesEditing","has","enableCommand","addCommentThread","CommentsEditing","get"];var Ui,ji;Ui=Pi,ji=396,function(t){for(;--t;)Ui.push(Ui.shift())}(++ji);const Gi=function(t,e){return Pi[t-=0]};class Vi extends t.Plugin{afterInit(){const t=this[Gi("0x4")];t.plugins[Gi("0x7")](Gi("0x2"))&&t[Gi("0x5")][Gi("0x3")](Gi("0x6"))[Gi("0x0")](Gi("0x1"))}}var Hi=n(181);const zi=["item","listItem","getCustomProperty","get","addClass","getWalker","name","isAtEnd","consumable","writer","TrackChangesEditing","type","activeMarkers","addHighlight","mapper","ck-suggestion-marker--active","createRangeOn","insert","nextSibling","createUIElement","span","listIndent","model","markerRange","getItems","push","isBlock","plugins","hasAttribute","ck-suggestion-marker-","test","markerName","parent","previousPosition","getAttribute","isLimit"];var Wi,Ki;Wi=zi,Ki=415,function(t){for(;--t;)Wi.push(Wi.shift())}(++Ki);const qi=function(t,e){return zi[t-=0]};function Xi(t,e,n){const o=[];for(const i of e[qi("0x5")]())i[qi("0x9")](t)&&o[qi("0x6")](n[qi("0x21")](i));return o}function $i(t,e,{showActiveMarker:n=!0}={}){const o=t[qi("0x8")][qi("0x14")](qi("0x1b"));return(i,r,s)=>{if(!s[qi("0x19")][qi("0xb")](r.markerRange,i[qi("0x17")]))return;const x=r[qi("0x4")][qi("0x16")](),a=r[qi("0x4")].start,c=t[qi("0x3")].schema;let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[qi("0x11")];d=d||c.isContent(e);const n=s[qi("0x1f")].toViewElement(e);if(n&&n[qi("0x13")](qi("0x1e")))return;"elementEnd"==t[qi("0x1c")]&&c[qi("0x7")](e)&&!c[qi("0x10")](e)&&(e.nextSibling||a[qi("0x18")]?l&&l[qi("0xd")]==e||(l=e,f(t.previousPosition),g=!0):u=u||t[qi("0xe")])}function f(t){const i=s[qi("0x1a")][qi("0x0")](qi("0x1"),{class:qi("0xa")+e}),x=s[qi("0x1f")].toViewPosition(t);n&&o[qi("0x1d")].includes(r[qi("0xc")])&&s.writer[qi("0x15")](qi("0x20"),i),s[qi("0x1a")][qi("0x22")](x,i),s[qi("0x1f")].bindElementToMarker(i,r[qi("0xc")])}d||g||!u||f(u)}}const Zi=["root","plugins","document","detach","unbindElementFromMarkerName","createRange","markerName","TrackChangesEditing","showSuggestionHighlights","isCollapsed","mapper","rootName","bind","uiElement","buffer","merge","end","editing","high","get","deleteForward","fromRange","enableCommand","model","unlock","downcastDispatcher","removeMarker:suggestion:deletion","options","selection","lock","start","editor","delete","addMarker:suggestion:deletion","$graveyard","remove","forward","requires","createSelection","modifySelection","init","getFirstRange"];var Yi,Ji;Yi=Zi,Ji=352,function(t){for(;--t;)Yi.push(Yi.shift())}(++Ji);const Qi=function(t,e){return Zi[t-=0]};class tr extends t.Plugin{static get[Qi("0x15")](){return[Hi.Delete]}[Qi("0x18")](){const t=this[Qi("0xf")],e=t[Qi("0x1b")][Qi("0x3")](Qi("0x21"));e[Qi("0x6")](Qi("0x10"));const n=t.commands.get(Qi("0x4"));e[Qi("0x6")](Qi("0x4"),((e,o={})=>{const i=t[Qi("0x7")][Qi("0x16")](t.model[Qi("0x1c")][Qi("0xc")]);i[Qi("0x23")]&&t[Qi("0x7")][Qi("0x17")](i,{direction:Qi("0x14"),unit:o.unit});const r=i[Qi("0x19")](),x=s.LiveRange[Qi("0x5")](r);let a;e(o),a=Qi("0x12")==x[Qi("0x1a")][Qi("0x25")]?t.model[Qi("0x1f")](r[Qi("0xe")]):t[Qi("0x7")].createRange(x[Qi("0xe")],x[Qi("0x0")]),x[Qi("0x1d")](),t[Qi("0x7")].enqueueChange(n[Qi("0x28")].batch,(t=>{n[Qi("0x28")][Qi("0xd")](),t.setSelection(t[Qi("0x1f")](a.end)),n[Qi("0x28")][Qi("0x8")]()}))})),t[Qi("0x1")].downcastDispatcher.on(Qi("0x11"),$i(t,Qi("0x29")),{priority:Qi("0x2")}),t.data[Qi("0x9")].on(Qi("0x11"),((e,n,o)=>{o[Qi("0xb")][Qi("0x22")]&&$i(t,Qi("0x29"),{showActiveMarker:!1})[Qi("0x26")](this)(e,n,o)}),{priority:Qi("0x2")}),t[Qi("0x1")][Qi("0x9")].on(Qi("0xa"),((t,e,n)=>{const o=n[Qi("0x24")].markerNameToElements(e[Qi("0x20")]);if(o)for(const t of o)t.is(Qi("0x27"))&&(n[Qi("0x24")][Qi("0x1e")](t,e[Qi("0x20")]),n.writer[Qi("0x13")](t))}),{priority:Qi("0x2")})}}const er=["registerElementLabel","mergeListItemBackward","refresh","enableCommand","has","numberedList","*Format:* insert into %0","registerCustomCallback","*Format:* remove from %0","listItemId","expandListBlocksToCompleteList","end","deletion","createRange","indentList","nodeAfter","execute","ELEMENT_","*Indent:* %0","selection","formatBlock","format","registerDescriptionCallback","mergeListItemForward","splitListItemAfter","get","map","value","findIndex","length","ELEMENT_NUMBERED_LIST","createPositionAt","fromRange","commands","schema","multipleBlocks","*Change to:* %0","TrackChangesEditing","add","ELEMENT_LIST_ITEM","isFirstBlockOfListItem","markMultiRangeBlockFormat","paragraph","DocumentListUtils","parent","before","document","commandParams","nextSibling","setSelection","getAttribute","start","config","splitListItemBefore","previousSibling","ELEMENT_BULLETED_LIST","locale","model","_descriptionFactory","hasAttribute","containsItem","*Merge:* %0","plugins","change","slice","accept","markBlockFormat","listType","getRanges","getFirstRange","bulletedList","after","type","editor","commandName","outdentList","from","getSelectedBlocks","documentList","listIndent","next"];var nr,or;nr=er,or=389,function(t){for(;--t;)nr.push(nr.shift())}(++or);const ir=function(t,e){return er[t-=0]};class rr extends t.Plugin{afterInit(){const t=this[ir("0x8")];if(!t[ir("0x4e")][ir("0x14")]("DocumentListEditing"))return;const e=t[ir("0x48")],n=t[ir("0x4e")][ir("0x29")](ir("0x35")),o=t[ir("0x4e")][ir("0x29")](ir("0x3b"));function i(e){return()=>{const i=t[ir("0x31")][ir("0x29")](e);if(i[ir("0x2b")]&&!t[ir("0x44")][ir("0x29")]("list.multiBlock"))return void t[ir("0x20")](ir("0x3a"),{});let r=Array[ir("0xb")](t.model[ir("0x3e")][ir("0x23")][ir("0xc")]());if(a(e)){r=o[ir("0x1a")](r);const t=[];for(const e of r)o[ir("0x38")](e)&&t.push(e);r=t}t[ir("0x49")][ir("0x4f")]((()=>{n[ir("0x39")](r,{commandName:e,commandParams:[{forceValue:!i[ir("0x2b")]}],formatGroupId:ir("0x2")},[],ir("0xd"))}))}}function r(e){return()=>{const o=function(t){let e=Array[ir("0xb")](t);const n=e[ir("0x2c")]((t=>!t[ir("0x4b")](ir("0x19"))));return n>-1&&(e=e[ir("0x50")](0,n)),e}(t.model[ir("0x3e")][ir("0x23")][ir("0xc")]()),i=o[o[ir("0x2d")]-1],r=t.model[ir("0x32")].isObject(i)?ir("0x6"):ir("0x1b"),s=t.model[ir("0x1d")](t[ir("0x49")][ir("0x2f")](o[0],ir("0x3d")),t.model[ir("0x2f")](i,r));t[ir("0x49")].change((()=>{n[ir("0x1")](s,{commandName:e,commandParams:[],formatGroupId:"listType"},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t[ir("0x42")](ir("0xe"))>n[ir("0x42")](ir("0xe"));)e[ir("0x36")](t),t=t[ir("0x40")]}return Array[ir("0xb")](e)}(o))}))}}function x(e){return()=>{const o=t.model[ir("0x3e")][ir("0x23")][ir("0xc")]()[ir("0xf")]()[ir("0x2b")],i=t[ir("0x49")][ir("0x2f")](o,ir("0x3d")),r=t.model.createPositionAt(o,0),s=t[ir("0x49")][ir("0x1d")](i,r);t[ir("0x49")][ir("0x4f")]((()=>{n[ir("0x1")](s,{commandName:e,commandParams:[],formatGroupId:ir("0x2")})}))}}function a(e){const n=t[ir("0x31")][ir("0x29")](ir("0x5")).value,o=t[ir("0x31")][ir("0x29")](ir("0x15")).value;return ir("0x15")===e?n:o}n.enableCommand(ir("0x15"),i(ir("0x15"))),n.enableCommand("bulletedList",i(ir("0x5"))),n[ir("0x13")](ir("0x1e"),r("indentList")),n[ir("0x13")]("outdentList",r(ir("0xa"))),n[ir("0x13")](ir("0x28"),x("splitListItemAfter")),n.enableCommand(ir("0x45"),x(ir("0x45"))),n[ir("0x4a")][ir("0x10")]((function(e){const n=!t[ir("0x49")][ir("0x32")].isObject(e),o=e[ir("0x46")],i=e.nextSibling,r=e[ir("0x42")]("listItemId"),s=!o||o.getAttribute(ir("0x19"))!==r,x=!i||i[ir("0x42")](ir("0x19"))!==r;return n&&Boolean(r)&&s&&x}),(t=>Qo(e,"ELEMENT_LIST_ITEM",t))),n[ir("0x4a")][ir("0x26")]((function(n){if(ir("0x24")!=n.type&&"formatInline"!=n[ir("0x7")])return;const{data:o}=n;if(!o)return;let i,r,s,x;switch(o[ir("0x9")]){case ir("0x5"):s=o.commandParams[0].forceValue,x=a(o[ir("0x9")]),i=ir(s?"0x16":"0x18"),!x&&t[ir("0x44")][ir("0x29")]("list.multiBlock")||(i=ir("0x34")),r={type:ir("0x25"),content:Qo(e,i,Qo(e,ir("0x47")))};break;case ir("0x15"):s=o.commandParams[0].forceValue,x=a(o[ir("0x9")]),i=ir(s?"0x16":"0x18"),!x&&t[ir("0x44")][ir("0x29")]("list.multiBlock")||(i="*Change to:* %0"),r={type:ir("0x25"),content:Qo(e,i,Qo(e,ir("0x2e")))};break;case ir("0x1e"):i=ir("0x22"),r={type:ir("0x25"),content:Qo(e,i,Qo(e,ir("0x37")))};break;case ir("0xa"):i=function(t){const e=t[ir("0x4")]();let n=e[ir("0x43")][ir("0x1f")];for(;n&&e[ir("0x4c")](n);){if(n.getAttribute(ir("0xe"))>0)return!1;n=n[ir("0x40")]}return!0}(n)?Qo(e,"*Format:* remove from %0",Qo(e,function(t){const e=t[ir("0x4")]()[ir("0x43")][ir("0x1f")];return ir("0x21")+e[ir("0x42")](ir("0x2")).toUpperCase()+"_LIST"}(n))):Qo(e,"*Outdent:* %0",Qo(e,ir("0x37"))),r={type:ir("0x25"),content:i};break;case ir("0x11"):case ir("0x27"):!1===o[ir("0x33")]&&(i=ir("0x4d"),r={type:ir("0x1c"),content:Qo(e,i,Qo(e,ir("0x37")))})}return r})),n._suggestionFactory[ir("0x17")](ir("0x24"),ir("0xd"),ir("0x0"),(function(e,n){const o=[];for(let n of e)n[ir("0x43")][ir("0x1f")]===n[ir("0x1b")][ir("0x3c")]&&(n=t.model[ir("0x1d")](t[ir("0x49")][ir("0x2f")](n.start.nodeAfter,0))),o.push(n);t[ir("0x49")][ir("0x4f")]((e=>{const i=t[ir("0x49")][ir("0x3e")][ir("0x23")],r=Array[ir("0xb")](i[ir("0x3")]())[ir("0x2a")]((t=>s.LiveRange[ir("0x30")](t)));e[ir("0x41")](o),t[ir("0x31")].get(n[ir("0x9")])[ir("0x12")](),n[ir("0x3f")].push({forceDefaultExecution:!0}),t[ir("0x20")](n[ir("0x9")],...n[ir("0x3f")]),e[ir("0x41")](r);for(const t of r)t.detach()}))}))}}const sr=["commandName","get","DocumentListUtils","isFirstBlockOfListItem","model","isListItemBlock","has","editor","bind","TrackChangesEditing","filter","commandParams","handleListStartCommand","markMultiRangeBlockFormat","ELEMENT_","expandListBlocksToCompleteList","handleListReversedCommand","listStart","handleDescriptions","list.properties","plugins","numbered","length","config","format","*Format:* set order to regular","listType","getAttribute","getSelectedBlocks","listReversed","reversed","DocumentListPropertiesUtils","enableCommand","push","from","_getSuggestionBlocks","_descriptionFactory","*Change to:* %0","document","selection","replace","locale","DocumentListPropertiesEditing","registerDescriptionCallback","type","handleListStyleCommand","_LIST_","startIndex","listStyle"];var xr,ar;xr=sr,ar=224,function(t){for(;--t;)xr.push(xr.shift())}(++ar);const cr=function(t,e){return sr[t-=0]};class lr extends t.Plugin{afterInit(){if(!this[cr("0x1c")][cr("0x29")][cr("0x1b")](cr("0xe")))return;const t=this.editor[cr("0x2c")][cr("0x16")](cr("0x28")),e=this[cr("0x1c")][cr("0x29")][cr("0x16")]("TrackChangesEditing");t.styles&&e[cr("0x4")](cr("0x14"),this[cr("0x11")][cr("0x1d")](this)),t[cr("0x2")]&&e.enableCommand(cr("0x1"),this[cr("0x25")][cr("0x1d")](this)),t[cr("0x13")]&&e[cr("0x4")]("listStart",this.handleListStartCommand.bind(this)),e[cr("0x8")][cr("0xf")](this.handleDescriptions[cr("0x1d")](this))}[cr("0x11")](t,e={}){const n=this[cr("0x1c")][cr("0x29")].get("TrackChangesEditing"),o=this._getSuggestionBlocksForListStyle();this[cr("0x1c")][cr("0x19")].change((()=>{n[cr("0x22")](o,{commandName:"listStyle",commandParams:[{type:e[cr("0x10")]}],formatGroupId:cr("0x14")})}))}[cr("0x25")](t,e={}){const n=this.editor[cr("0x29")][cr("0x16")](cr("0x1e")),o=this[cr("0x1c")][cr("0x29")][cr("0x16")](cr("0x17")),i=this[cr("0x7")]((t=>o[cr("0x1a")](t)&&cr("0x2a")===t.getAttribute("listType")));null!==i&&this[cr("0x1c")][cr("0x19")].change((()=>{n[cr("0x22")](i,{commandName:cr("0x1"),commandParams:[{reversed:e[cr("0x2")]}],formatGroupId:cr("0x1")})}))}[cr("0x21")](t,e={}){const n=this[cr("0x1c")][cr("0x29")][cr("0x16")]("TrackChangesEditing"),o=this[cr("0x1c")][cr("0x29")][cr("0x16")]("DocumentListUtils"),i=this[cr("0x7")]((t=>o.isListItemBlock(t)&&cr("0x2a")===t[cr("0x30")](cr("0x2f"))));null!==i&&this[cr("0x1c")][cr("0x19")].change((()=>{n.markMultiRangeBlockFormat(i,{commandName:"listStart",commandParams:[{startIndex:e.startIndex}],formatGroupId:cr("0x26")})}))}[cr("0x27")](t){if("formatBlock"!=t[cr("0x10")]&&"formatInline"!=t.type)return;const e=this.editor[cr("0xd")],{data:n}=t;if(!n)return;let o,i;switch(n[cr("0x15")]){case cr("0x14"):o=cr("0x9"),i={type:"format",content:Qo(e,o,Qo(e,this._getTranslationKeyForListStyle(n[cr("0x20")][0].type)))};break;case cr("0x1"):o=n[cr("0x20")][0][cr("0x2")]?"*Format:* set order to reversed":cr("0x2e"),i={type:"format",content:Qo(e,o)};break;case cr("0x26"):o="*Format:* set start index to %0",i={type:cr("0x2d"),content:Qo(e,o,n.commandParams[0].startIndex)}}return i}_getSuggestionBlocksForListStyle(){const t=this.editor.plugins[cr("0x16")](cr("0x17"));let e=Array[cr("0x6")](this.editor[cr("0x19")][cr("0xa")][cr("0xb")][cr("0x0")]());return e[cr("0x5")](...t.expandListBlocksToCompleteList(e)),e=[...new Set(e)],e}_getSuggestionBlocks(t){const e=this.editor[cr("0x29")][cr("0x16")]("DocumentListUtils");let n=Array[cr("0x6")](this.editor[cr("0x19")][cr("0xa")].selection.getSelectedBlocks())[cr("0x1f")](t);if(!n[cr("0x2b")])return null;n=e[cr("0x24")](n);const o=[];for(const t of n)e[cr("0x18")](t)&&o[cr("0x5")](t);return o}_getTranslationKeyForListStyle(t){return cr("0x23")+this[cr("0x1c")][cr("0x29")][cr("0x16")](cr("0x3")).getListTypeFromListStyleType(t).toUpperCase()+cr("0x12")+t.toUpperCase()[cr("0xc")](/-/g,"_")}}var ur=n(331);const dr=["ck-suggestion-marker-split","bind","data","document","markerName","createPositionAt","mapper","model","markerNameToElements","fromRange","addMarker:suggestion:insertion","getFirstRange","remove","unbindElementFromMarkerName","enter","detach","commands","enterBlock","hasClass","fire","end","downcastDispatcher","selection","split","options","editing","showSuggestionHighlights","createRange","enableCommand","get","high","afterExecute","nextSibling","change","parent"];var gr,fr;gr=dr,fr=299,function(t){for(;--t;)gr.push(gr.shift())}(++fr);const mr=function(t,e){return dr[t-=0]};class hr extends t.Plugin{static get requires(){return[ur.Enter]}init(){const t=this.editor,e=t.plugins[mr("0xa")]("TrackChangesEditing"),n=t[mr("0x20")].get("enter");e[mr("0x9")](mr("0x1e"),(()=>{t[mr("0x17")][mr("0xe")]((o=>{const i=t.model[mr("0x13")][mr("0x3")],r=i.getFirstPosition(),x=s.LiveRange[mr("0x19")](i[mr("0x1b")]());if(n[mr("0x21")](o)){const n=t.model[mr("0x15")](r[mr("0xf")][mr("0xd")],0),i=o[mr("0x8")](r,n);e.markInsertion(i)}else o.setSelection(o.createRange(x[mr("0x1")]));x[mr("0x1f")](),n[mr("0x0")](mr("0xc"),{writer:o})}))})),t.editing.downcastDispatcher.on(mr("0x1a"),$i(t,mr("0x4")),{priority:mr("0xb")}),t[mr("0x6")].downcastDispatcher.on("removeMarker:suggestion:insertion",((t,e,n)=>{const o=n.mapper[mr("0x18")](e[mr("0x14")]);if(o)for(const t of o)t[mr("0x22")](mr("0x10"))&&(n[mr("0x16")][mr("0x1d")](t,e[mr("0x14")]),n.writer[mr("0x1c")](t))}),{priority:mr("0xb")}),t[mr("0x12")][mr("0x2")].on(mr("0x1a"),((e,n,o)=>{o[mr("0x5")][mr("0x7")]&&$i(t,"split",{showActiveMarker:!1})[mr("0x11")](this)(e,n,o)}),{priority:mr("0xb")})}}const pr=["filter","findPrevious","string","handleFindCommand","model","has","replace","TrackChangesEditing","enableCommand","_isInDeletionRange","createRange","editor","get","FindAndReplaceUtils","createPositionAt","afterInit","getIntersection","suggestion:deletion","start","find","bind","plugins"];var br,Er;br=pr,Er=101,function(t){for(;--t;)br.push(br.shift())}(++Er);const _r=function(t,e){return pr[t-=0]};class Tr extends t.Plugin{[_r("0x2")](){if(!this.editor[_r("0x8")][_r("0xe")]("FindAndReplaceEditing"))return;const t=this[_r("0x14")][_r("0x8")][_r("0x15")](_r("0x10"));t[_r("0x11")](_r("0x6"),this.handleFindCommand[_r("0x7")](this)),t.enableCommand("findNext"),t[_r("0x11")](_r("0xa")),t[_r("0x11")](_r("0xf")),t[_r("0x11")]("replaceAll")}[_r("0xc")](t,e,n={}){const o=this[_r("0x14")][_r("0x8")][_r("0x15")](_r("0x0"));return t((t=>(_r("0xb")==typeof e?o.findByTextCallback(e,n):e)(t)[_r("0x9")]((e=>!1===this[_r("0x12")](e,t.item)))),n)}[_r("0x12")](t,e){const n=this[_r("0x14")][_r("0xd")][_r("0x13")](this[_r("0x14")].model[_r("0x1")](e,t[_r("0x5")]),this[_r("0x14")][_r("0xd")][_r("0x1")](e,t.end));for(const t of this[_r("0x14")][_r("0xd")].markers.getMarkersGroup(_r("0x4")))if(null!==n[_r("0x3")](t.getRange()))return!0;return!1}}const yr=["locale","_registerLegacyDescription","fontColor","registerAttributeLabel","find","has","fontSize","normalizeSizeOptions","*Set font color:* %0","FontSizeEditing","FORMAT_FONT_SIZE","model","fontFamily","toLowerCase","fontSize.options","fontBackgroundColor.colors","format","type","FORMAT_FONT_COLOR","fontBackgroundColor","plugins","editor","value","config","trim","commandName","get","label","*Set font size:* %0","afterInit","commandParams","registerDescriptionCallback","*Reset font family*","title","_descriptionFactory","*Reset font size*","FORMAT_FONT_FAMILY","formatInline","fontColor.colors","FontFamilyEditing","_enableDefaultAttributesIntegration"];var Cr,Ar;Cr=yr,Ar=195,function(t){for(;--t;)Cr.push(Cr.shift())}(++Ar);const kr=function(t,e){return yr[t-=0]},Ir=[{pluginName:kr("0x13"),commandName:"fontSize"},{pluginName:kr("0x8"),commandName:kr("0x16")},{pluginName:"FontColorEditing",commandName:kr("0xc")},{pluginName:"FontBackgroundColorEditing",commandName:kr("0x1d")}];class Sr extends t.Plugin{[kr("0x27")](){const t=this[kr("0x1f")][kr("0xa")],e=this[kr("0x1f")][kr("0x1e")].get("TrackChangesEditing");for(const{pluginName:t,commandName:n}of Ir)this[kr("0x1f")][kr("0x1e")][kr("0xf")](t)&&e[kr("0x9")](n,[n]);t.t,e[kr("0x3")][kr("0xd")](kr("0x10"),Qo(t,kr("0x14"))),e[kr("0x3")].registerAttributeLabel("fontFamily",Qo(t,kr("0x5"))),e[kr("0x3")][kr("0xd")](kr("0xc"),Qo(t,kr("0x1c"))),e[kr("0x3")][kr("0xd")]("fontBackgroundColor",Qo(t,"FORMAT_FONT_BACKGROUND")),this[kr("0xb")]()}[kr("0xb")](){const t=this[kr("0x1f")],e=t[kr("0xa")];t[kr("0x1e")].get("TrackChangesEditing")[kr("0x3")][kr("0x0")]((t=>{const n=e.t;if(kr("0x6")!=t[kr("0x1b")])return;const{data:o}=t;if(null!=o){if(kr("0x10")==o[kr("0x23")]){const t=o.commandParams[0][kr("0x20")];if(t){const o=n(this[kr("0x1f")][kr("0x1e")][kr("0x24")]("FontSize")[kr("0x11")](this[kr("0x1f")][kr("0x21")][kr("0x24")](kr("0x18"))).find((e=>e.model==t))[kr("0x2")])[kr("0x17")]();return{type:kr("0x1a"),content:Qo(e,kr("0x26"),o)}}return{type:kr("0x1a"),content:Qo(e,kr("0x4"))}}if(kr("0x16")==o[kr("0x23")]){const t=o[kr("0x28")][0].value;return t?{type:kr("0x1a"),content:Qo(e,"*Set font family:* %0",t)}:{type:"format",content:Qo(e,kr("0x1"))}}if("fontColor"==o[kr("0x23")]){const t=o[kr("0x28")][0][kr("0x20")];if(t){const o=(0,i.normalizeColorOptions)(this[kr("0x1f")].config[kr("0x24")](kr("0x7")))[kr("0xe")]((e=>e[kr("0x15")]==t));let r=t,s="";return o&&(r=o.label,s=n(r)[kr("0x17")]()),{type:kr("0x1a"),content:Qo(e,kr("0x12"),s)[kr("0x22")](),color:{value:t,title:s||r}}}return{type:"format",content:Qo(e,"*Reset font color*")}}if("fontBackgroundColor"==o[kr("0x23")]){const t=o[kr("0x28")][0][kr("0x20")];if(t){const o=(0,i.normalizeColorOptions)(this[kr("0x1f")][kr("0x21")][kr("0x24")](kr("0x19")))[kr("0xe")]((e=>e.model==t));let r=t,s="";return o&&(r=o[kr("0x25")],s=n(r).toLowerCase()),{type:"format",content:Qo(e,"*Set font background color:* %0",s)[kr("0x22")](),color:{value:t,title:s||r}}}return{type:"format",content:Qo(e,"*Reset font background color*")}}}}))}}const Rr=["find","label","boolean","slice","*Remove all formatting*","*Set format to:* %0","registerDescriptionCallback","_registerLegacyDescription","title","fontColor","formatBlock","type","fontBackgroundColor","config","get","editor","pasteFormat","TrackChangesEditing","entries","fontSize.options","join","commandName","plugins","toLowerCase","FontSize","commands","_enableDefaultAttributesIntegration","locale","afterInit","split","charAt","normalizeSizeOptions","_descriptionFactory","copyFormat","model"];var vr,Nr;vr=Rr,Nr=237,function(t){for(;--t;)vr.push(vr.shift())}(++Nr);const Lr=function(t,e){return Rr[t-=0]};class Mr extends t.Plugin{[Lr("0x1")](){const t=this[Lr("0x17")],e=t[Lr("0x1e")].get(Lr("0x19")),n=t[Lr("0x21")][Lr("0x16")](Lr("0x6")),o=t[Lr("0x21")][Lr("0x16")](Lr("0x18"));n&&o&&(e[Lr("0x22")](Lr("0x18")),e.enableCommand(Lr("0x6")),this[Lr("0xf")]())}_registerLegacyDescription(){const t=this.editor,e=t[Lr("0x0")];t[Lr("0x1e")][Lr("0x16")](Lr("0x19"))[Lr("0x5")][Lr("0xe")]((n=>{if(Lr("0x12")!=n[Lr("0x13")]&&"formatInline"!=n.type)return;const{data:o}=n;if(o&&Lr("0x18")===o[Lr("0x1d")]){const n=[],i=o.commandParams[0];for(const[e,o]of Object[Lr("0x1a")](i))n.push(wr(t,e,o));return n.length?{type:"format",content:Qo(e,Lr("0xd"),n[Lr("0x1c")](", "))}:{type:"format",content:Qo(e,Lr("0xc"))}}}))}}function wr(t,e,n){const o=t[Lr("0x0")].t,r=e[Lr("0x2")](/(?=[A-Z])/).join(" "),s=o(r[Lr("0x3")](0).toUpperCase()+r[Lr("0xb")](1))[Lr("0x1f")]();if(Lr("0xa")==typeof n)return s;if(Lr("0x11")===e||Lr("0x14")===e){const e=(0,i.normalizeColorOptions)(t[Lr("0x15")][Lr("0x16")]("fontColor.colors"))[Lr("0x8")]((t=>t[Lr("0x7")]==n));return s+" ("+(e?o(e[Lr("0x9")]).toLowerCase():n)+")"}if("fontSize"===e&&isNaN(parseFloat(n))){const e=t[Lr("0x1e")][Lr("0x16")](Lr("0x20"))[Lr("0x4")](t[Lr("0x15")][Lr("0x16")](Lr("0x1b"))).find((t=>t[Lr("0x7")]==n));return s+" ("+(e?o(e[Lr("0x10")]).toLowerCase():n)+")"}return s+" ("+n+")"}const Or=["view","plugins","match","registerDescriptionCallback","_getHeadingLevel","TrackChangesEditing","commandName","name","_registerLegacyDescription","type","get","afterInit","ELEMENT_HEADING_CUSTOM","config","find","title","_descriptionFactory","format","editor","_headingOptions","_enableDefaultAttributesIntegration","HeadingEditing","*Change to:* %0","ELEMENT_HEADING","heading","commandParams","model","formatBlock","paragraph","locale","heading.options"];var Dr,Fr;Dr=Or,Fr=292,function(t){for(;--t;)Dr.push(Dr.shift())}(++Fr);const Br=function(t,e){return Or[t-=0]};class Pr extends t.Plugin{[Br("0x1d")](){const t=this[Br("0x5")];if(!t.plugins.has(Br("0x8")))return;this[Br("0x6")]=t[Br("0x0")][Br("0x1c")](Br("0x11"));const e=t[Br("0x10")],n=t[Br("0x13")][Br("0x1c")](Br("0x17"));n[Br("0x7")](Br("0xb"));for(const t of this._headingOptions)Br("0xf")!=t.model&&n[Br("0x3")].registerElementLabel(t[Br("0xd")],(n=>{const o=this[Br("0x16")](t.model);return null!==o?(s=n,x=o,Qo(e,Br("0xa"),[s,x])):(i=n,r=t[Br("0x2")],Qo(e,Br("0x1e"),[i,r]));var i,r,s,x}));this._registerLegacyDescription()}[Br("0x1a")](){const t=this[Br("0x5")],e=t[Br("0x10")];t[Br("0x13")][Br("0x1c")]("TrackChangesEditing")._descriptionFactory[Br("0x15")]((t=>{if(Br("0xe")!=t[Br("0x1b")])return;const{data:n}=t;if(n&&Br("0xb")==n[Br("0x18")]){const t=n[Br("0xc")][0].value,s=this[Br("0x16")](t);if(null!==s)return{type:"format",content:Qo(e,Br("0x9"),(1,r=s,Qo(e,Br("0xa"),[1,r])))};const x=this[Br("0x6")][Br("0x1")]((e=>e[Br("0xd")]===t))[Br("0x2")];return{type:Br("0x4"),content:Qo(e,"*Change to:* %0",(o=1,i=x,Qo(e,Br("0x1e"),[o,i])))}}var o,i,r}))}[Br("0x16")](t){var e,n;const o=t[Br("0x14")](/^heading(\d+)/);if(o)return o[1];const i=null===(e=this[Br("0x6")])||void 0===e?void 0:e.find((e=>e[Br("0xd")]==t));if(i&&i[Br("0x12")]){const t=i[Br("0x12")],e=(null!==(n=t[Br("0x19")])&&void 0!==n?n:t)[Br("0x14")](/^h(\d+)/);if(e)return e[1]}return null}}const Ur=["registerDescriptionCallback","find","value","editor","_registerLegacyDescription","locale","type","color","has","TrackChangesEditing","format","*Set highlight:* %0","FORMAT_HIGHLIGHT","toLowerCase","plugins","get","*Remove highlight*","model","afterInit","_descriptionFactory","highlight","config","HighlightEditing","highlight.options"];var jr,Gr;jr=Ur,Gr=216,function(t){for(;--t;)jr.push(jr.shift())}(++Gr);const Vr=function(t,e){return Ur[t-=0]};class Hr extends t.Plugin{[Vr("0x12")](){const t=this.editor;if(!t[Vr("0xe")][Vr("0x8")](Vr("0x16")))return;const e=t[Vr("0xe")][Vr("0xf")](Vr("0x9")),n=t[Vr("0x5")];e._enableDefaultAttributesIntegration(Vr("0x14"),["highlight"]),e[Vr("0x13")].registerAttributeLabel(Vr("0x14"),Qo(n,Vr("0xc"))),this._registerLegacyDescription()}[Vr("0x4")](){const t=this[Vr("0x3")],e=t[Vr("0x5")];t[Vr("0xe")].get(Vr("0x9"))[Vr("0x13")][Vr("0x0")]((n=>{if("formatInline"!=n[Vr("0x6")])return;const{data:o}=n;if(o&&"highlight"==o.commandName){const n=e.t,i=o.commandParams[0][Vr("0x2")];if(i){const o=t[Vr("0x15")][Vr("0xf")](Vr("0x17"))[Vr("0x1")]((t=>t[Vr("0x11")]==i)),r=n(o.title)[Vr("0xd")]();return{type:Vr("0xa"),content:Qo(e,Vr("0xb"),r),color:{value:o[Vr("0x7")],title:o.title}}}return{type:Vr("0xa"),content:Qo(e,Vr("0x10"),Qo(e,"FORMAT_HIGHLIGHT"))}}}))}}const zr=["plugins","createPositionAt","has","TrackChangesEditing","insert","createEmptyElement","editor","showSuggestionHighlights","enableCommand","high","ELEMENT_HORIZONTAL_LINE","get","for","addClass","afterInit","HorizontalLineEditing","div","elementToStructure","horizontalLine"];var Wr,Kr;Wr=zr,Kr=279,function(t){for(;--t;)Wr.push(Wr.shift())}(++Kr);const qr=function(t,e){return zr[t-=0]};class Xr extends t.Plugin{[qr("0x1")](){const t=this[qr("0xc")];if(!t.plugins[qr("0x8")](qr("0x2")))return;t[qr("0x6")][qr("0x11")](qr("0x9"))[qr("0xe")](qr("0x5"));const e=t[qr("0x6")].get(qr("0x9")),n=t.locale;e._descriptionFactory.registerElementLabel(qr("0x5"),(t=>Qo(n,qr("0x10"),t))),t.conversion[qr("0x12")]("dataDowncast")[qr("0x4")]({model:qr("0x5"),view:(t,{writer:e,options:n})=>{if(!n[qr("0xd")])return null;const o=e.createContainerElement(qr("0x3")),i=e[qr("0xb")]("hr");return e[qr("0x0")]("ck-horizontal-line",o),e[qr("0xa")](e[qr("0x7")](o,0),i),o},converterPriority:qr("0xf")})}}const $r=["*Change %0 content*","registerElementLabel","start","locale","registerDescriptionCallback","_enableDefaultAttributesIntegration","editor","htmlEmbed","afterInit","ELEMENT_HTML_EMBED","get","format","type","_descriptionFactory","key","HtmlEmbed","_registerLegacyDescription","commandName","plugins","TrackChangesEditing","value","rawHtml"];var Zr,Yr;Zr=$r,Yr=349,function(t){for(;--t;)Zr.push(Zr.shift())}(++Yr);const Jr=function(t,e){return $r[t-=0]};class Qr extends t.Plugin{[Jr("0xb")](){const t=this[Jr("0x9")];if(!t[Jr("0x15")].has(Jr("0x12")))return;const e=t.plugins.get(Jr("0x0")),n=t[Jr("0x6")];e._descriptionFactory[Jr("0x4")](Jr("0x2"),(t=>Qo(n,Jr("0xc"),t))),e[Jr("0x8")](Jr("0xa"),[],["value"]),e._descriptionFactory.registerDescriptionCallback((t=>{if("attribute"!=t[Jr("0xf")])return;const{data:e}=t;if(e&&Jr("0x1")==e[Jr("0x11")]&&t.getFirstRange()[Jr("0x5")].nodeAfter.is("element",Jr("0x2"))){const t=Qo(n,"ELEMENT_HTML_EMBED");return{type:Jr("0xe"),content:Qo(n,Jr("0x3"),t)}}})),this[Jr("0x13")]()}[Jr("0x13")](){const t=this[Jr("0x9")],e=t[Jr("0x6")];t[Jr("0x15")][Jr("0xd")](Jr("0x0"))[Jr("0x10")][Jr("0x7")]((t=>{if("formatBlock"!=t[Jr("0xf")])return;const{data:n}=t;if(n&&Jr("0xa")==n[Jr("0x14")]){const t=Qo(e,"ELEMENT_HTML_EMBED");return{type:Jr("0xe"),content:Qo(e,Jr("0x3"),t)}}}))}}const ts=["_enableDefaultAttributesIntegration","fromPosition","uploadImage","forward","plugins","*Set image text alternative:* %0","imageTextAlternative","toNext","imageInline","editor","model","key","isBefore","registerDescriptionCallback","ImageResize","isIntersecting","markBlockFormat","discard","accept","getContainedElement","ELEMENT_IMAGE","formatInline","convertInlineImageToBlock","end","*Remove image text alternative*","enableCommand","getClosestSelectedImageElement","ELEMENT_CAPTION","insertImage","detach","backward","document","ImageCaptionUtils","markInsertion","registerCustomCallback","getCaptionFromImageModelElement","convertBlockImageToInline","_descriptionFactory","formatBlock","caption","registerElementLabel","FORMAT_IMAGE_SIZE","element","schema","chain","nodeBefore","start","length","createRange","isBlockImage","isEqual","ImageCaptionEditing","locale","ImageInlineEditing","insertion","ImageEditing","*Reset image width*","imageTypeInline","ImageUploadEditing","commandParams","isCollapsed","findIndex","*Set image width:* %0","markDeletion","Block image to inline image","getNearestSelectionRange","imageCaption","_suggestionFactory","nodeAfter","TrackChangesEditing","resizedWidth","find","removeObject","change","forceDefaultExecution","ImageBlockEditing","isOwn","type","get","imageTypeBlock","join","format","afterInit","addObject","resizeImage","registerAttributeLabel","imageBlock","toggleImageCaption","getFirstRange","ImageTextAlternativeEditing","has","commandName","selection","newValue","filter","subType"];var es,ns;es=ts,ns=405,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class is extends t.Plugin{[os("0x3d")](){const t=this[os("0x54")];if(!t[os("0x4f")][os("0x45")](os("0x22")))return;const e=t.plugins[os("0x39")](os("0x30")),n=t[os("0x4f")][os("0x39")]("ImageUtils"),o=t[os("0x1f")];e[os("0x4")](os("0x7")),e[os("0x10")].registerElementLabel(os("0x41"),(t=>Qo(o,os("0x5f"),t))),e[os("0x10")][os("0x13")](os("0x53"),(t=>Qo(o,"ELEMENT_INLINE_IMAGE",t))),e._descriptionFactory.registerElementLabel(os("0x12"),(()=>Qo(o,os("0x6")))),t[os("0x4f")][os("0x45")](os("0x25"))&&e[os("0x4")](os("0x4d")),t[os("0x4f")][os("0x45")](os("0x36"))&&t.plugins[os("0x45")](os("0x20"))&&(e[os("0x4")](os("0x24"),((o,i)=>{const r=n[os("0x5")](t[os("0x55")].document[os("0x47")]);t[os("0x55")].change((()=>{e[os("0x5b")](r,{commandName:os("0x24"),commandParams:[i]},[],os("0xf"))}))})),e.enableCommand(os("0x3a"),((o,i)=>{t[os("0x55")][os("0x34")]((r=>{let x=n[os("0x5")](t[os("0x55")].document[os("0x47")]),a=r.createRangeOn(x);const c=s.LivePosition.fromPosition(a[os("0x19")],"toPrevious"),l=s.LivePosition[os("0x4c")](a[os("0x2")],os("0x52"));e[os("0x35")]((()=>o(i))),x=n[os("0x5")](t[os("0x55")][os("0xa")][os("0x47")]),a=r.createRangeOn(x);const u=r[os("0x1b")](c,l);c[os("0x8")](),l.detach(),e[os("0x5b")](x,{commandName:os("0x24"),commandParams:[i]},[],os("0x1")),u[os("0x19")][os("0x57")](a.start)&&e[os("0xc")](r[os("0x1b")](u[os("0x19")],a.start),os("0x1")),a[os("0x2")][os("0x57")](u[os("0x2")])&&e[os("0xc")](r.createRange(a.end,u[os("0x2")]),"convertInlineImageToBlock")}))})),e[os("0x2e")][os("0xd")](os("0x11"),os("0x1"),os("0x3b"),(()=>!1)),e[os("0x2e")].registerCustomCallback("formatBlock","convertInlineImageToBlock",os("0x5d"),(()=>!1)),e._suggestionFactory.registerCustomCallback(os("0x11"),os("0x1"),os("0x5c"),e._suggestionFactory.getSuggestionCallback("formatBlock","",os("0x5d"))),e[os("0x2e")][os("0xd")](os("0x21"),os("0x1"),"join",(()=>!1)),e[os("0x2e")][os("0xd")]("insertion",os("0x1"),os("0x5c"),(([n])=>{const o=e[os("0x2e")].getSuggestionCallback(os("0x21"),"",os("0x5c"));let i=n[os("0x19")],r=n[os("0x2")];const s=t.model[os("0x16")][os("0x2c")](i,os("0x9")),x=t[os("0x55")][os("0x16")][os("0x2c")](r,os("0x4e"));s[os("0x27")]&&(i=s[os("0x19")]),x[os("0x27")]&&(r=x.end),o([t[os("0x55")][os("0x1b")](i,r)])})),e._suggestionFactory[os("0xd")](os("0x11"),os("0x1"),os("0x17"),x),e[os("0x2e")][os("0xd")](os("0x21"),os("0x1"),os("0x17"),x)),t[os("0x4f")][os("0x45")](os("0x1e"))&&(e[os("0x4")](os("0x42"),((o,i)=>{const r=t[os("0x4f")][os("0x39")](os("0xb"));let s=n[os("0x5")](t[os("0x55")].document[os("0x47")]),x=r[os("0xe")](s);t.model[os("0x34")]((()=>{if(x)return void e[os("0x2a")](t[os("0x55")].createRangeOn(x));const a=n[os("0x1c")](s);o(i),s=n[os("0x5")](t[os("0x55")].document[os("0x47")]),x=r[os("0xe")](s),e[os("0xc")](t[os("0x55")].createRangeOn(x),a?null:os("0x2d"))}))})),e[os("0x2e")].registerCustomCallback(os("0x21"),"imageCaption",os("0x17"),x));const i=[{type:os("0x11"),subType:"imageStylePreApply"},{type:os("0x21"),subType:os("0x2d")},{type:"formatBlock",subType:"convertInlineImageToBlock"},{type:"insertion",subType:os("0x1")}];function r(t,o){const r=i[os("0x28")]((({type:e,subType:n})=>t[os("0x38")]==e&&t[os("0x4a")]==n)),s=i.findIndex((({type:t,subType:e})=>o[os("0x38")]==t&&o[os("0x4a")]==e));if(r<0||s<0)return!1;const x=t[os("0x43")](),a=o[os("0x43")]();if((0==r||1==r)&&2==s&&x[os("0x5a")](a))return!0;if(2==r&&3==s){const t=e._findSuggestions(x,"insertion")[os("0x49")]((({suggestion:t,meta:e})=>e[os("0x37")]&&os("0x1")==t.subType));if(t[os("0x1a")]>1&&a[os("0x2")][os("0x1d")](x[os("0x19")]))return!0;if(1==t[os("0x1a")]&&(x.start[os("0x1d")](a.end)||x[os("0x2")][os("0x1d")](a[os("0x19")])))return!0}if(3==r&&3==s&&x.start[os("0x57")](a[os("0x19")])){const t=x[os("0x2")][os("0x2f")],e=a[os("0x19")][os("0x18")];return n[os("0x1c")](t)&&t===e}return!1}function x(t,e){return r(t,e)?[t,e]:r(e,t)?[e,t]:null}t[os("0x4f")][os("0x45")](os("0x59"))&&(e[os("0x4b")](os("0x3f"),[],[os("0x31")]),e[os("0x10")][os("0x40")](os("0x31"),Qo(o,os("0x14")))),t[os("0x4f")][os("0x45")](os("0x44"))&&e._enableDefaultAttributesIntegration("imageTextAlternative",[],["alt"]),e[os("0x10")][os("0x58")]((t=>{if(i[os("0x32")]((({type:e,subType:n})=>t[os("0x38")]==e&&t[os("0x4a")]==n)))return t.previous?{}:void 0})),e._descriptionFactory[os("0x58")]((t=>{if("insertion"==t[os("0x38")]||"deletion"==t[os("0x38")]){const e=t[os("0x5e")]();if(e&&e.is(os("0x15"),os("0x12")))return{type:"insertion"==t[os("0x38")]?os("0x3e"):os("0x33"),element:e,quantity:1}}})),e[os("0x10")][os("0x58")]((t=>os("0x11")==t.type&&"convertInlineImageToBlock"==t[os("0x4a")]?{type:os("0x3c"),content:"Inline image to block image"}:os("0x11")==t.type&&os("0xf")==t.subType?{type:os("0x3c"),content:os("0x2b")}:void 0)),e[os("0x10")][os("0x58")]((t=>{if("attribute"!=t.type)return;const{data:e}=t;if(!e||"alt"!=e[os("0x56")])return;const n=e.newValue;return n?{type:os("0x3c"),content:Qo(o,os("0x50"),'"'+n+'"')}:{type:os("0x3c"),content:Qo(o,os("0x3"))}})),this._registerLegacyDescription()}_registerLegacyDescription(){const t=this[os("0x54")],e=t.locale;t.plugins[os("0x39")](os("0x30"))[os("0x10")][os("0x58")]((t=>{if(os("0x11")!=t[os("0x38")]&&os("0x0")!=t[os("0x38")])return;const{data:n}=t;if(n){if(os("0x51")==n[os("0x46")]){const t=n[os("0x26")][0][os("0x48")];return t?{type:os("0x3c"),content:Qo(e,os("0x50"),'"'+t+'"')}:{type:os("0x3c"),content:Qo(e,os("0x3"))}}if("resizeImage"==n[os("0x46")]){const t=n[os("0x26")][0].width;return t?{type:os("0x3c"),content:Qo(e,os("0x29"),t)}:{type:os("0x3c"),content:Qo(e,os("0x23"))}}}}))}}const rs=["ImageEditing","replaceImageSource","type","formatBlock","getSuggestionCallback","has","_suggestionFactory","registerDescriptionCallback","afterInit","attribute","editor","get","registerCustomCallback","format","oldValue","_descriptionFactory","_registerLegacyDescription","locale","key","_handleLegacySuggestions","formatInline","TrackChangesEditing","src","plugins","commandName","accept","newValue"];var ss,xs;ss=rs,xs=355,function(t){for(;--t;)ss.push(ss.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x4")](){if(!this[as("0x6")].plugins[as("0x1")](as("0x17")))return;const t=this[as("0x6")][as("0xd")],e=this[as("0x6")].plugins.get(as("0x11"));e._enableDefaultAttributesIntegration("replaceImageSource",[],[as("0x12")]),e[as("0xb")][as("0x3")]((e=>{if(as("0x5")!=e[as("0x19")])return;const{data:n}=e;return n&&as("0x12")==n[as("0xe")]?n[as("0x16")]&&n[as("0xa")]?{type:as("0x9"),content:Qo(t,"*Replace image URL*")}:{type:as("0x9"),content:""}:void 0})),this[as("0xf")]()}[as("0xf")](){const t=this.editor[as("0x13")].get(as("0x11"));t[as("0x2")].registerCustomCallback("formatBlock","replaceImageSource",as("0x15"),t[as("0x2")][as("0x0")](as("0x1a"),null,"discard")),t[as("0x2")][as("0x8")](as("0x1a"),as("0x18"),"discard",t._suggestionFactory.getSuggestionCallback(as("0x1a"),null,as("0x15"))),this[as("0xc")]()}[as("0xc")](){const t=this[as("0x6")],e=t.locale;t[as("0x13")][as("0x7")](as("0x11"))[as("0xb")][as("0x3")]((t=>{if(as("0x1a")!=t[as("0x19")]&&as("0x10")!=t[as("0x19")])return;const{data:n}=t;return n&&as("0x18")==n[as("0x14")]?{type:as("0x9"),content:Qo(e,"*Format:* replace image URL")}:void 0}))}}const ls=["shouldConvertImageType","isBlockImage","_suggestionFactory","isIntersecting","findIndex","accept","imageTypeBlock","Users","forEach","normalizedStyles","nodeAfter","ImageUtils","length","change","insertion","ImageStyleEditing","isEqual","getSuggestions","has","_descriptionFactory","formatBlock","differ","refresh","setImageNaturalSizeAttributes","afterInit","subType","end","value","document","chain","isInContent","commands","get","_registerLegacyDescription","editor","*Format:* %0","isInlineImage","enableCommand","join","getSuggestionCallback","registerPostFixer","getClosestSelectedImageElement","formatInline","isBefore","selection","getContainedElement","imageTypeInline","isOwn","getSuggestion","start","convertInlineImageToBlock","title","plugins","name","side","type","markBlockFormat","nodeBefore","getChangedMarkers","createRangeOn","filter","hasSuggestion","next","imageCaption","imageStylePostApply","commandParams","getFirstRange","registerCustomCallback","FORMAT_SIDE_IMAGE","head","_findSuggestions","discardSuggestion","format","imageStyle","toLowerCase","model","commandName","newRange","author","registerDescriptionCallback","TrackChangesEditing","imageStylePreApply"];var us,ds;us=ls,ds=343,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};class fs extends t.Plugin{[gs("0x9")](){const t=this.editor;if(!t[gs("0x25")][gs("0x3")](gs("0x0")))return;const n=t.plugins[gs("0x11")](gs("0x41")),o=t.plugins[gs("0x11")](gs("0x4e")),i={};n[gs("0x16")]("imageStyle",((i,r)=>{const s=t.plugins[gs("0x11")](gs("0x4a")).me,x=t.commands[gs("0x11")]("imageStyle");let a=o.getClosestSelectedImageElement(t.model[gs("0xd")][gs("0x1d")]),c=t[gs("0x3c")][gs("0x2c")](a),l=x.value;if(l==r[gs("0xc")])return;const u={commandName:"imageStyle",commandParams:[r],formatGroupId:(0,e.uid)()};t[gs("0x3c")][gs("0x50")]((()=>{if(n[gs("0x2")]().filter((t=>t[gs("0xf")]&&s==t[gs("0x3f")]&&(gs("0x5")==t[gs("0x28")]||gs("0x1b")==t[gs("0x28")])&&(gs("0x42")==t[gs("0xa")]||gs("0x31")==t[gs("0xa")])&&t[gs("0x33")]()[gs("0x1")](c)))[gs("0x4b")]((t=>n[gs("0x38")](t[gs("0x36")]))),a=o[gs("0x1a")](t[gs("0x3c")][gs("0xd")][gs("0x1d")]),c=t[gs("0x3c")][gs("0x2c")](a),x[gs("0x7")](),t[gs("0x10")][gs("0x11")](gs("0x1f"))[gs("0x7")](),t[gs("0x10")][gs("0x11")](gs("0x49"))[gs("0x7")](),l=x[gs("0xc")],l!=r.value)return o[gs("0x15")](a)&&x[gs("0x43")](r[gs("0xc")],a)?(i({...r,setImageSizes:!1}),a=o[gs("0x1a")](t[gs("0x3c")][gs("0xd")][gs("0x1d")]),void n[gs("0x29")](a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],gs("0x42"))):void(o[gs("0x44")](a)?n[gs("0x29")](a,u,[],gs("0x31")):n.markInlineFormat(c,u,"imageStylePostApply"))}))}));for(const e of t.plugins[gs("0x11")](gs("0x0"))[gs("0x4c")])i[e[gs("0x26")]]=e[gs("0x24")][gs("0x3b")]();n[gs("0x45")][gs("0x34")](gs("0x5"),gs("0x42"),"join",(()=>!1)),n[gs("0x45")][gs("0x34")]("formatBlock","imageStylePostApply",gs("0x17"),(()=>!1)),n._suggestionFactory[gs("0x34")](gs("0x1b"),gs("0x31"),"join",(()=>!1)),n[gs("0x45")][gs("0x34")](gs("0x5"),gs("0x42"),"accept",(([t])=>{o[gs("0x8")](t[gs("0x1e")]())})),n[gs("0x45")][gs("0x34")]("formatBlock",gs("0x42"),"discard",((t,e)=>{n._suggestionFactory[gs("0x18")](gs("0x5"),"",gs("0x48"))(t,{commandName:e[gs("0x3d")],commandParams:e.commandReversedParams})})),n[gs("0x45")].registerCustomCallback(gs("0x5"),"imageStylePreApply",gs("0xe"),(function(t,e){return s(t,e)?[t,e]:s(e,t)?[e,t]:null}));const r=[{type:"formatBlock",subType:gs("0x42")},{type:gs("0x51"),subType:"imageCaption"},{type:gs("0x5"),subType:gs("0x23")},{type:"insertion",subType:gs("0x23")}];function s(t,e){const i=r[gs("0x47")]((({type:e,subType:n})=>t[gs("0x28")]==e&&t[gs("0xa")]==n)),s=r[gs("0x47")]((({type:t,subType:n})=>e.type==t&&e[gs("0xa")]==n));if(i<0||s<0)return!1;const x=t[gs("0x33")](),a=e[gs("0x33")]();if((0==i||1==i)&&2==s&&x[gs("0x46")](a))return!0;if(2==i&&3==s){const t=n[gs("0x37")](x,gs("0x51"))[gs("0x2d")]((({suggestion:t,meta:e})=>e[gs("0x20")]&&gs("0x23")==t[gs("0xa")]));if(t[gs("0x4f")]>1&&a[gs("0xb")][gs("0x1")](x[gs("0x22")]))return!0;if(1==t[gs("0x4f")]&&(x[gs("0x22")][gs("0x1")](a[gs("0xb")])||x[gs("0xb")].isEqual(a[gs("0x22")])))return!0}if(3==i&&3==s&&x[gs("0x22")][gs("0x1c")](a[gs("0x22")])){const t=x[gs("0xb")][gs("0x4d")],e=a[gs("0x22")][gs("0x2a")];return o[gs("0x44")](t)&&t===e}return!1}t[gs("0x3c")][gs("0xd")][gs("0x19")]((()=>{let e=!1;const i=Array.from(t.model[gs("0xd")][gs("0x6")][gs("0x2b")]());for(const{name:t,data:r}of i){const{group:i,type:s,subType:x,id:a}=n._splitMarkerName(t);if("suggestion"==i&&n[gs("0x2e")](a)){if(gs("0x5")==s&&(gs("0x42")==x||"imageStylePostApply"==x)){const t=n[gs("0x21")](a);if(r[gs("0x3e")]){const i=t[gs("0x33")]().getContainedElement();if(o[gs("0x44")](i))continue;n[gs("0x38")](t),e=!0}}if(gs("0x51")==s&&gs("0x30")==x&&!r[gs("0x3e")]){const t=n[gs("0x21")](a);t[gs("0x2f")]&&t[gs("0x2f")][gs("0xf")]&&(n[gs("0x38")](t[gs("0x2f")]),e=!0)}}}return e})),this[gs("0x12")](i)}[gs("0x12")](t){const e=this[gs("0x13")],n=e.locale;e[gs("0x25")][gs("0x11")](gs("0x41"))[gs("0x4")][gs("0x40")]((e=>{if("formatBlock"!=e[gs("0x28")]&&gs("0x1b")!=e.type)return;const{data:o}=e;if(!o||gs("0x3a")!=o.commandName)return;const i=o[gs("0x32")][0].value;return r=gs("0x27")===i?Qo(n,gs("0x35")):t[i]||i,{type:gs("0x39"),content:Qo(n,gs("0x14"),r)};var r}))}}const ms=["afterInit","trackChanges","commands","importWord","_trackChangesValueDuringImport","forEach","get","plugins","execute","dataInsert","high","TrackChangesEditing","_setSuggestionData","bind","lowest","editor","_handleImportedData","value","enableCommand","track_changes","_trackChangesExecuted"];var hs,ps;hs=ms,ps=235,function(t){for(;--t;)hs.push(hs.shift())}(++ps);const bs=function(t,e){return ms[t-=0]};class Es extends t.Plugin{constructor(t){super(t),this[bs("0x0")]=!1,this[bs("0x10")]=!1}[bs("0x11")](){const t=this[bs("0xb")],e=t[bs("0x13")][bs("0x2")](bs("0x14")),n=t[bs("0x13")][bs("0x2")](bs("0x12"));e&&(e.on(bs("0x4"),((t,[,e])=>{this._trackChangesValueDuringImport=n.value,e.collaboration_features[bs("0xf")]=!this[bs("0x0")]}),{priority:bs("0x6")}),this.listenTo(e,bs("0x5"),this._handleImportedData[bs("0x9")](this)),this.listenTo(e,bs("0x5"),(()=>{this[bs("0x10")]&&(n[bs("0x4")](),this[bs("0x10")]=!1)}),{priority:bs("0xa")}),t[bs("0x3")][bs("0x2")]("TrackChangesEditing")[bs("0xe")](bs("0x14")))}[bs("0xc")](t,e){const{suggestions:n}=e,o=this[bs("0xb")].commands[bs("0x2")](bs("0x12")),i=o[bs("0xd")];this[bs("0x0")]!==i&&(o[bs("0x4")](),this._trackChangesExecuted=!0),n&&n[bs("0x1")]((({id:t,type:e,author:n,created_at:o})=>{const i={id:t,type:e,authorId:this[bs("0xb")][bs("0x3")][bs("0x2")]("Users").me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:bs("0x14")}}};this[bs("0xb")].plugins[bs("0x2")](bs("0x7"))[bs("0x8")](i)}))}}const _s=["has","commandName","blockIndent","getItems","registerAttributeLabel","outdent","indent","TrackChangesEditing","IndentEditing","get","outdentBlock","indentBlock","IndentBlock","FORMAT_INDENT","_descriptionFactory","locale","plugins","*Outdent:* %0","getItemLabel","registerDescriptionCallback","_enableDefaultAttributesIntegration","*Indent:* %0","editor","enableCommand","_registerBlockAttribute","type","_registerLegacyDescription"];var Ts,ys;Ts=_s,ys=292,function(t){for(;--t;)Ts.push(Ts.shift())}(++ys);const Cs=function(t,e){return _s[t-=0]};class As extends t.Plugin{afterInit(){const t=this.editor,e=t[Cs("0x15")][Cs("0xe")](Cs("0xc"));if(t[Cs("0x15")][Cs("0x5")](Cs("0xd"))&&(e[Cs("0x1")](Cs("0xb")),e[Cs("0x1")](Cs("0xa"))),t[Cs("0x15")][Cs("0x5")](Cs("0x11")))for(const t of[Cs("0x10"),Cs("0xf")])e[Cs("0x19")](t);const n=t[Cs("0x14")];e[Cs("0x2")]("blockIndent"),e._descriptionFactory[Cs("0x9")](Cs("0x7"),Qo(n,Cs("0x12"))),this[Cs("0x4")]()}[Cs("0x4")](){const t=this[Cs("0x0")],e=t.locale,n=t.plugins.get(Cs("0xc"));n[Cs("0x13")][Cs("0x18")]((t=>{if("formatBlock"!=t[Cs("0x3")])return;const{data:o}=t;if(!o)return;if(Cs("0x10")!=o[Cs("0x6")]&&Cs("0xf")!=o[Cs("0x6")])return;const i=t[Cs("0x8")]()[0],r=n[Cs("0x13")][Cs("0x17")](i);return Cs("0x10")==o[Cs("0x6")]?{type:"format",content:Qo(e,Cs("0x1a"),r)}:Cs("0xf")==o[Cs("0x6")]?{type:"format",content:Qo(e,Cs("0x16"),r)}:void 0}))}}var ks,Is,Ss=["requires","get","TrackChangesEditing","input","enableCommand","editor","init"];ks=Ss,Is=254,function(t){for(;--t;)ks.push(ks.shift())}(++Is);var Rs=function(t,e){return Ss[t-=0]};class vs extends t.Plugin{static get[Rs("0x5")](){return[Hi.Input]}[Rs("0x4")](){this[Rs("0x3")].plugins[Rs("0x6")](Rs("0x0"))[Rs("0x2")](Rs("0x1"))}}const Ns=["format","link","afterInit","locale","manualDecorators","editor","get","has","plugins","linkHref","_registerLegacyDescription","LinkEditing","*Set link:* %0","TrackChangesEditing","_enableDefaultAttributesIntegration","*Remove link*","link (","commands","commandParams","unlink","_descriptionFactory","newValue","key","map"];var Ls,Ms;Ls=Ns,Ms=415,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ms);const ws=function(t,e){return Ns[t-=0]};class Os extends t.Plugin{[ws("0x13")](){const t=this.editor;if(!t.plugins[ws("0x0")](ws("0x4")))return;const e=t[ws("0x1")][ws("0x17")](ws("0x6")),n=t[ws("0xa")][ws("0x17")](ws("0x12"));e[ws("0x7")](ws("0x12"),[ws("0x2"),...n.manualDecorators[ws("0x10")]((t=>t.id))]),e[ws("0x7")](ws("0xc"));for(const t of n[ws("0x15")])e[ws("0xd")].registerAttributeLabel(t.id,ws("0x9")+t.label.toLowerCase()+")");e[ws("0xd")].registerDescriptionCallback((e=>{if("attribute"!=e.type)return;const{data:n}=e;if(!n||ws("0x2")!=n[ws("0xf")])return;const o=n[ws("0xe")],i=t.locale;return{type:ws("0x11"),content:null==o?Qo(i,ws("0x8")):Qo(i,ws("0x5"),'"'+o+'"')}})),this[ws("0x3")]()}_registerLegacyDescription(){const t=this[ws("0x16")],e=t[ws("0x14")];t[ws("0x1")][ws("0x17")](ws("0x6"))[ws("0xd")].registerDescriptionCallback((t=>{if("formatInline"!=t.type)return;const{data:n}=t;if(n){if(ws("0x12")==n.commandName){const t=n[ws("0xb")][0];return{type:"format",content:Qo(e,ws("0x5"),'"'+t+'"')}}return ws("0xc")==n.commandName?{type:ws("0x11"),content:Qo(e,ws("0x8"))}:void 0}}))}}const Ds=["previousSibling","bulletedList","getSelectedBlocks","locale","name","findIndex","editor","registerElementLabel","ELEMENT_NUMBERED_LIST","replace","slice","*Outdent:* %0","format","*Check item*","commandParams","_descriptionFactory","TodoListEditing","checkTodoList","commands","plugins","markBlockFormat","*Uncheck item*","afterInit","formatInline","todoListChecked","registerDescriptionCallback","List","document","enableCommand","todoList","element","end","listItem","createPositionAt","filter","type","selection","commandName","model","ELEMENT_BULLETED_LIST","schema","numbered","getAttribute","value","TrackChangesEditing","ELEMENT_LIST_ITEM","length","outdentList","push","has","listIndent","change","get","parent","indentList","*Change to:* %0","nextSibling","add","before","execute","from","paragraph","numberedList","formatBlock","bulleted"];var Fs,Bs;Fs=Ds,Bs=334,function(t){for(;--t;)Fs.push(Fs.shift())}(++Bs);const Ps=function(t,e){return Ds[t-=0]};class Us extends t.Plugin{[Ps("0xd")](){const t=this[Ps("0x3e")],e=t[Ps("0x3b")];if(!t[Ps("0xa")][Ps("0x28")]("ListEditing"))return;const n=t[Ps("0xa")][Ps("0x2b")](Ps("0x23")),o=t[Ps("0xa")][Ps("0x28")](Ps("0x7"));function i(e){return()=>{const o=t[Ps("0x1d")].document[Ps("0x1b")],i=t[Ps("0x9")][Ps("0x2b")](e);if(i[Ps("0x22")])return void t[Ps("0x32")](Ps("0x34"),{});const r=e[Ps("0x1")](0,-4),s=function(t,e,n){let o=Array[Ps("0x33")](t)[Ps("0x19")]((t=>{return e=t,(o=n).checkChild(e[Ps("0x2c")],Ps("0x17"))&&!o.isObject(e);var e,o}));o=o[Ps("0x19")]((t=>!t.is(Ps("0x15"),Ps("0x17"))||t[Ps("0x21")]("listType")!=e));const i=new Set;for(const t of o)t.is(Ps("0x15"),"listItem")?i[Ps("0x30")](js(t)):i[Ps("0x30")](t);return Array.from(i)}(o[Ps("0x3a")](),r,t.model[Ps("0x1f")]);t.model[Ps("0x2a")]((()=>{for(const t of s)n[Ps("0xb")](t,{commandName:e,commandParams:[{forceValue:!i[Ps("0x22")]}],formatGroupId:"blockName"},Gs(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[Ps("0x33")](t);const n=e[Ps("0x3d")]((t=>"listItem"!=t[Ps("0x3c")]));return n>-1&&(e=e.slice(0,n)),e}(t[Ps("0x1d")][Ps("0x12")][Ps("0x1b")].getSelectedBlocks()),i=t[Ps("0x1d")].createRange(t.model[Ps("0x18")](o[0],Ps("0x31")),t[Ps("0x1d")][Ps("0x18")](o[o[Ps("0x25")]-1],Ps("0x16")));t.model[Ps("0x2a")]((()=>{n[Ps("0xb")](i,{commandName:e,commandParams:[],formatGroupId:"listIndent"},function(t){const e=new Set;for(const n of t){let t=n[Ps("0x2f")];for(;t&&t[Ps("0x21")](Ps("0x29"))>n[Ps("0x21")](Ps("0x29"));)e.add(t),t=t[Ps("0x2f")]}return Array[Ps("0x33")](e)}(o))}))}}n[Ps("0x13")](Ps("0x35"),i("numberedList")),n.enableCommand(Ps("0x39"),i("bulletedList")),o&&n.enableCommand("todoList",i(Ps("0x14"))),n[Ps("0x13")]("indentList",r(Ps("0x2d"))),n[Ps("0x13")](Ps("0x26"),r(Ps("0x26"))),o&&n.enableCommand("checkTodoList",(()=>{const e=t[Ps("0x9")][Ps("0x2b")](Ps("0x8")),o=Array[Ps("0x33")](e._selectedElements);o[Ps("0x19")]((t=>t[Ps("0x21")](Ps("0xf"))!=e[Ps("0x22")])),t[Ps("0x1d")].change((()=>{for(const t of o)n[Ps("0xb")](t,{commandName:Ps("0x8"),commandParams:[{forceValue:!e.value}]})}))})),n[Ps("0x6")][Ps("0x3f")]("listItem",(t=>Qo(e,Ps("0x24"),t))),n[Ps("0x6")][Ps("0x10")]((t=>{if(Ps("0x36")!=t.type&&Ps("0xe")!=t[Ps("0x1a")])return;const{data:n}=t;if(n){if("numberedList"==n[Ps("0x1c")]||"bulletedList"==n[Ps("0x1c")]||Ps("0x14")==n.commandName)switch(n[Ps("0x1c")][Ps("0x0")](Ps("0x11"),"")){case Ps("0x37"):return o(Qo(e,Ps("0x1e")));case Ps("0x20"):return o(Qo(e,Ps("0x40")));case"todo":return o(Qo(e,"ELEMENT_TODO_LIST"))}if(Ps("0x2d")==n[Ps("0x1c")])return{type:"format",content:Qo(e,"*Indent:* %0",Qo(e,Ps("0x24")))};if("outdentList"==n[Ps("0x1c")])return{type:Ps("0x3"),content:Qo(e,Ps("0x2"),Qo(e,Ps("0x24")))};if(Ps("0x8")==n[Ps("0x1c")])return n[Ps("0x5")][0].forceValue?{type:Ps("0x3"),content:Qo(e,Ps("0x4"))}:{type:Ps("0x3"),content:Qo(e,Ps("0xc"))}}function o(t){return{type:Ps("0x3"),content:Qo(e,Ps("0x2e"),t)}}}))}}function js(t){const e=t[Ps("0x21")](Ps("0x29"));if(0==e)return t;let n=t;for(;t[Ps("0x38")]&&t.previousSibling.is("element",Ps("0x17"));){const o=t[Ps("0x38")][Ps("0x21")](Ps("0x29"));if(o==e)n=t[Ps("0x38")];else if(o<e)break;t=t[Ps("0x38")]}return n}function Gs(t){const e=[];if(t.is(Ps("0x15"),Ps("0x17"))&&t[Ps("0x21")](Ps("0x29"))>0){let n=t[Ps("0x2f")];for(;n&&Ps("0x17")==n.name&&n[Ps("0x21")](Ps("0x29"))==t[Ps("0x21")](Ps("0x29"));)e[Ps("0x27")](n),n=n.nextSibling}return e}const Vs=["document","getSelectedBlocks","createPositionAt","flat","change","list.properties","push","replace","ListPropertiesEditing","format","get","editor","selection","getSiblingNodes","*Change to:* %0","unshift","toUpperCase","_getTranslationKeyForListStyle","has","map","_LIST_","model","numbered","reversed","parent","listItem","handleDescriptions","formatInline","_getSuggestionBlocksForListStyle","ELEMENT_","ListUtils","enableCommand","_getSuggestionBlocks","styles","config","listReversed","createRange","listStyle","getFirstPosition","formatBlock","element","commandParams","plugins","getListTypeFromListStyleType","TrackChangesEditing","markMultiRangeBlockFormat","type","before","startIndex","getAttribute","handleListStartCommand","forward","handleListReversedCommand","backward","listStart","filter","handleListStyleCommand","from","length","*Format:* set order to reversed","*Format:* set start index to %0","_descriptionFactory","bind"];var Hs,zs;Hs=Vs,zs=181,function(t){for(;--t;)Hs.push(Hs.shift())}(++zs);const Ws=function(t,e){return Vs[t-=0]};class Ks extends t.Plugin{afterInit(){if(!this[Ws("0x13")][Ws("0x32")][Ws("0x1a")](Ws("0x10")))return;const t=this[Ws("0x13")][Ws("0x2a")][Ws("0x12")](Ws("0xd")),e=this[Ws("0x13")][Ws("0x32")].get(Ws("0x34"));t[Ws("0x29")]&&e[Ws("0x27")]("listStyle",this[Ws("0x1")][Ws("0x7")](this)),t[Ws("0x1f")]&&e[Ws("0x27")](Ws("0x2b"),this.handleListReversedCommand[Ws("0x7")](this)),t[Ws("0x38")]&&e[Ws("0x27")]("listStart",this[Ws("0x3a")][Ws("0x7")](this)),e[Ws("0x6")].registerDescriptionCallback(this[Ws("0x22")][Ws("0x7")](this))}[Ws("0x1")](t,e={}){const n=this[Ws("0x13")][Ws("0x32")][Ws("0x12")](Ws("0x34")),o=this[Ws("0x24")]();this[Ws("0x13")][Ws("0x1d")][Ws("0xc")]((()=>{n.markMultiRangeBlockFormat(o,{commandName:Ws("0x2d"),commandParams:[{type:e[Ws("0x36")]}],formatGroupId:"listStyle"})}))}[Ws("0x3c")](t,e={}){const n=this.editor[Ws("0x32")][Ws("0x12")](Ws("0x34")),o=this._getSuggestionBlocks((t=>t.is(Ws("0x30"),Ws("0x21"))&&Ws("0x1e")===t[Ws("0x39")]("listType")));if(o[Ws("0x3")]<1)return;const i=o.map((t=>this.editor[Ws("0x1d")][Ws("0x2c")](this[Ws("0x13")][Ws("0x1d")][Ws("0xa")](t,Ws("0x37")),this.editor[Ws("0x1d")][Ws("0xa")](t,0))));this[Ws("0x13")][Ws("0x1d")][Ws("0xc")]((()=>{n[Ws("0x35")](i,{commandName:Ws("0x2b"),commandParams:[{reversed:e[Ws("0x1f")]}],formatGroupId:Ws("0x2b")})}))}[Ws("0x3a")](t,e={}){const n=this.editor[Ws("0x32")][Ws("0x12")](Ws("0x34")),o=this._getSuggestionBlocks((t=>t.is(Ws("0x30"),Ws("0x21"))&&"numbered"===t.getAttribute("listType")));if(o[Ws("0x3")]<1)return;const i=o.map((t=>this[Ws("0x13")].model.createRange(this[Ws("0x13")][Ws("0x1d")][Ws("0xa")](t,Ws("0x37")),this.editor.model[Ws("0xa")](t,0))));this[Ws("0x13")][Ws("0x1d")][Ws("0xc")]((()=>{n[Ws("0x35")](i,{commandName:Ws("0x3e"),commandParams:[{startIndex:e[Ws("0x38")]}],formatGroupId:Ws("0x3e")})}))}[Ws("0x22")](t){if(Ws("0x2f")!=t[Ws("0x36")]&&Ws("0x23")!=t[Ws("0x36")])return;const e=this[Ws("0x13")].locale,{data:n}=t;if(!n)return;let o,i;switch(n.commandName){case Ws("0x2d"):o=Ws("0x16"),i={type:"format",content:Qo(e,o,Qo(e,this[Ws("0x19")](n[Ws("0x31")][0][Ws("0x36")])))};break;case Ws("0x2b"):o=n[Ws("0x31")][0][Ws("0x1f")]?Ws("0x4"):"*Format:* set order to regular",i={type:Ws("0x11"),content:Qo(e,o)};break;case Ws("0x3e"):o=Ws("0x5"),i={type:"format",content:Qo(e,o,n.commandParams[0][Ws("0x38")])}}return i}[Ws("0x24")](){var t,e,n,o;const i=this.editor[Ws("0x32")].get(Ws("0x26"));let r=Array[Ws("0x2")](this.editor[Ws("0x1d")][Ws("0x8")][Ws("0x14")][Ws("0x9")]());return(null===(t=r[0])||void 0===t?void 0:t.is("element",Ws("0x21")))&&r[Ws("0x17")](...i.getSiblingNodes(this[Ws("0x13")][Ws("0x1d")].document[Ws("0x14")][Ws("0x2e")](),Ws("0x3d"))),(null===(e=r[r[Ws("0x3")]-1])||void 0===e?void 0:e.is(Ws("0x30"),"listItem"))&&r[Ws("0xe")](...i[Ws("0x15")](this[Ws("0x13")][Ws("0x1d")][Ws("0x8")][Ws("0x14")].getLastPosition(),"forward")),r=[...new Set(r)],(null===(o=null===(n=this[Ws("0x13")][Ws("0x1d")][Ws("0x8")][Ws("0x14")][Ws("0x2e")]())||void 0===n?void 0:n[Ws("0x20")])||void 0===o?void 0:o.is("element",Ws("0x21")))&&(r=r[Ws("0x0")]((t=>t.is(Ws("0x30"),Ws("0x21"))))),r}[Ws("0x28")](t){const e=this[Ws("0x13")][Ws("0x32")][Ws("0x12")](Ws("0x26"));let n=Array[Ws("0x2")](this[Ws("0x13")][Ws("0x1d")].document[Ws("0x14")][Ws("0x9")]())[Ws("0x0")](t)[Ws("0x1b")]((t=>{const n=this.editor.model[Ws("0xa")](t,0);return[...e[Ws("0x15")](n,Ws("0x3d")),...e.getSiblingNodes(n,Ws("0x3b"))]}))[Ws("0xb")]();return n=[...new Set(n)],n}[Ws("0x19")](t){return Ws("0x25")+this[Ws("0x13")][Ws("0x32")][Ws("0x12")](Ws("0x26"))[Ws("0x33")](t)[Ws("0x18")]()+Ws("0x1c")+t[Ws("0x18")]()[Ws("0xf")](/-/g,"_")}}const qs=["downcastDispatcher","locale","afterInit","has","MediaEmbedEditing","high","editor","get","plugins","attribute:url:media","for","registerElementLabel","createEmptyElement","showSuggestionHighlights","ELEMENT_MEDIA","TrackChangesEditing","div","mediaEmbed","elementToElement","stop","data","media","_descriptionFactory"];var Xs,$s;Xs=qs,$s=216,function(t){for(;--t;)Xs.push(Xs.shift())}(++$s);const Zs=function(t,e){return qs[t-=0]};class Ys extends t.Plugin{[Zs("0x10")](){const t=this[Zs("0x14")];if(!t.plugins[Zs("0x11")](Zs("0x12")))return;const e=t[Zs("0x16")][Zs("0x15")](Zs("0x6")),n=t[Zs("0xf")];e.enableCommand(Zs("0x8")),e[Zs("0xd")][Zs("0x2")](Zs("0xc"),(t=>Qo(n,Zs("0x5"),t))),t.conversion[Zs("0x1")]("dataDowncast")[Zs("0x9")]({model:Zs("0xc"),view:(t,{writer:e,options:n})=>{if(n[Zs("0x4")])return e[Zs("0x3")](Zs("0x7"))},converterPriority:Zs("0x13")}),t[Zs("0xb")][Zs("0xe")].on(Zs("0x0"),((t,e,n)=>{n.options[Zs("0x4")]&&t[Zs("0xa")]()}),{priority:Zs("0x13")})}}const Js=["plugins","MentionEditing","afterInit","enableCommand","TrackChangesEditing","get","mention","has","editor"];var Qs,tx;Qs=Js,tx=357,function(t){for(;--t;)Qs.push(Qs.shift())}(++tx);const ex=function(t,e){return Js[t-=0]};class nx extends t.Plugin{[ex("0x5")](){const t=this[ex("0x2")];t[ex("0x3")][ex("0x1")](ex("0x4"))&&t[ex("0x3")][ex("0x8")](ex("0x7"))[ex("0x6")](ex("0x0"))}}const ox=["pageBreak","locale","_descriptionFactory","editor","has","registerElementLabel","PageBreakEditing","enableCommand","plugins","TrackChangesEditing","afterInit"];var ix,rx;ix=ox,rx=220,function(t){for(;--t;)ix.push(ix.shift())}(++rx);const sx=function(t,e){return ox[t-=0]};class xx extends t.Plugin{[sx("0xa")](){const t=this[sx("0x3")];if(!t[sx("0x8")][sx("0x4")](sx("0x6")))return;t[sx("0x8")].get(sx("0x9"))[sx("0x7")](sx("0x0"));const e=t.plugins.get(sx("0x9")),n=t[sx("0x1")];e[sx("0x2")][sx("0x5")](sx("0x0"),(t=>Qo(n,"ELEMENT_PAGE_BREAK",t)))}}const ax=["paragraph","ELEMENT_PARAGRAPH","Paragraph","bindElementToMarker","schema","getFirstRange","span","_registerLegacyDescription","type","*Change to:* %0","get","registerElementLabel","isLimit","ck-suggestion-marker-split","markerName","highest","format","addClass","insert","downcastDispatcher","plugins","includes","showSuggestionHighlights","TrackChangesEditing","checkChild","afterInit","name","locale","nodeAfter","ck-suggestion-marker--active","_descriptionFactory","editor","isTouching","addMarker:suggestion:insertion","commandName","start","insertParagraph","enableCommand","registerDescriptionCallback","$text","consumable","markerRange","createUIElement","writer"];var cx,lx;cx=ax,lx=154,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{[ux("0x3")](){const t=this[ux("0x9")];if(!t[ux("0x2a")].has(ux("0x18")))return;const e=t[ux("0x5")],n=t.plugins[ux("0x20")](ux("0x1"));n._descriptionFactory[ux("0x21")](ux("0x16"),(t=>Qo(e,ux("0x17"),t))),n._enableDefaultAttributesIntegration(ux("0x16")),n[ux("0xf")](ux("0xe")),t.editing[ux("0x29")].on(ux("0xb"),gx(t),{priority:"highest"}),t.data[ux("0x29")].on(ux("0xb"),((e,n,o)=>{o.options[ux("0x0")]&&gx(t,{showActiveMarker:!1})(e,n,o)}),{priority:ux("0x25")});const o=n[ux("0x8")];o[ux("0x10")]((n=>{if("insertion"!==n[ux("0x1e")])return;const{start:i,end:r}=n[ux("0x1b")]();if(!i[ux("0xa")](r)||!i.nodeAfter)return;const s=t.model[ux("0x1a")],x=i[ux("0x6")];return s.isBlock(x)&&!s[ux("0x22")](x)&&s[ux("0x2")](x,ux("0x11"))?{type:"insertion",content:Qo(e,"*Insert:* %0",o.getItemLabel(x,1))}:void 0})),this[ux("0x1d")]()}[ux("0x1d")](){const t=this[ux("0x9")],e=t[ux("0x5")];t[ux("0x2a")][ux("0x20")]("TrackChangesEditing")[ux("0x8")][ux("0x10")]((t=>{if("formatBlock"!=t.type)return;const{data:n}=t;return n&&ux("0x16")==n[ux("0xc")]?{type:ux("0x26"),content:Qo(e,ux("0x1f"),Qo(e,"ELEMENT_PARAGRAPH"))}:void 0}))}}function gx(t,{showActiveMarker:e=!0}={}){return(n,o,i)=>{const r=t.plugins.get("TrackChangesEditing"),s=o.markerRange[ux("0xd")],x=o[ux("0x13")].end,a=t.model.schema;if(!s[ux("0xa")](x)||!s[ux("0x6")])return;const c=s[ux("0x6")];if(a.isBlock(c)&&!a[ux("0x22")](c)&&a[ux("0x2")](c,ux("0x11"))){if(!i[ux("0x12")].consume(o[ux("0x13")],n[ux("0x4")]))return;const t=i[ux("0x15")][ux("0x14")](ux("0x1c"),{class:ux("0x23")}),s=i.mapper.toViewPosition(x);e&&r.activeMarkers[ux("0x2b")](o.markerName)&&i.writer[ux("0x27")](ux("0x7"),t),i[ux("0x15")][ux("0x28")](s,t),i.mapper[ux("0x19")](t,o[ux("0x24")])}}}const fx=["afterInit","_descriptionFactory","type","locale","*Remove all formatting*","commandName","format","formatBlock","removeFormat","get","RemoveFormatEditing","editor","registerDescriptionCallback","_enableDefaultAttributesIntegration","plugins","_registerLegacyDescription"];var mx,hx;mx=fx,hx=440,function(t){for(;--t;)mx.push(mx.shift())}(++hx);const px=function(t,e){return fx[t-=0]};class bx extends t.Plugin{[px("0x8")](){const t=this[px("0x3")];t[px("0x6")].has(px("0x2"))&&(t[px("0x6")][px("0x1")]("TrackChangesEditing")[px("0x5")](px("0x0")),this._registerLegacyDescription())}[px("0x7")](){const t=this.editor;t[px("0x6")][px("0x1")]("TrackChangesEditing")[px("0x9")][px("0x4")]((e=>{if(px("0xf")!=e[px("0xa")]&&"formatInline"!=e[px("0xa")])return;const{data:n}=e;return n&&px("0x0")==n[px("0xd")]?{type:px("0xe"),content:Qo(t[px("0xb")],px("0xc"))}:void 0}))}}const Ex=["enableCommand","has","acceptSelectedSuggestions","discardSelectedSuggestions","RestrictedEditingModeEditing","goToPreviousRestrictedEditingException","discardAllSuggestions","goToNextRestrictedEditingException","TrackChangesEditing","acceptSuggestion","plugins","acceptAllSuggestions","editor","get"];var _x,Tx;_x=Ex,Tx=381,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const yx=function(t,e){return Ex[t-=0]};class Cx extends t.Plugin{afterInit(){const t=this[yx("0x9")];if(!t[yx("0x7")][yx("0xc")](yx("0x1")))return;const e=t.plugins[yx("0xa")](yx("0x5"));e[yx("0xb")](yx("0x2")),e[yx("0xb")](yx("0x4"));const n=t[yx("0x7")][yx("0xa")](yx("0x1"));n[yx("0xb")]("trackChanges"),n[yx("0xb")](yx("0x6")),n.enableCommand("discardSuggestion"),n.enableCommand(yx("0x8")),n.enableCommand(yx("0x3")),n.enableCommand(yx("0xd")),n[yx("0xb")](yx("0x0"))}}const Ax=["_descriptionFactory","toViewPosition","TrackChangesEditing","addMarker:suggestion:insertion","span","ck-suggestion-marker--active","ck-suggestion-marker-","name","createUIElement","addClass","high","options","downcastDispatcher","insert","markerName","merge","createPositionBefore","enableCommand","editing","activeMarkers","test","includes","ELEMENT_LINE_BREAK","plugins","softBreak","registerElementLabel","split","markerRange","shiftEnter","editor","writer","get","element","locale","consumable","mapper"];var kx,Ix;kx=Ax,Ix=124,function(t){for(;--t;)kx.push(kx.shift())}(++Ix);const Sx=function(t,e){return Ax[t-=0]};class Rx extends t.Plugin{static get requires(){return[ur.ShiftEnter]}init(){const t=this[Sx("0xd")],e=t.plugins[Sx("0xf")]("TrackChangesEditing");e[Sx("0x1")](Sx("0xc")),t[Sx("0x2")][Sx("0x20")].on(Sx("0x17"),vx(t),{priority:Sx("0x1e")}),t[Sx("0x2")][Sx("0x20")].on("addMarker:suggestion:deletion",vx(t),{priority:"high"}),t.data.downcastDispatcher.on("addMarker:suggestion",((e,n,o)=>{o[Sx("0x1f")].showSuggestionHighlights&&vx(t,{showActiveMarker:!1})(e,n,o)})),e[Sx("0x14")][Sx("0x9")](Sx("0x8"),(e=>Qo(t[Sx("0x11")],Sx("0x6"),e)))}}function vx(t,{showActiveMarker:e=!0}={}){return(n,o,i)=>{const r=t[Sx("0x7")][Sx("0xf")](Sx("0x16"));if(!i[Sx("0x12")][Sx("0x4")](o[Sx("0xb")],n[Sx("0x1b")]))return;const s=t.model;for(const t of o[Sx("0xb")].getItems()){if(!t.is(Sx("0x10"),Sx("0x8")))continue;const n="deletion"==o.markerName[Sx("0xa")](":")[1]?Sx("0x23"):Sx("0xa"),x=i[Sx("0xe")][Sx("0x1c")](Sx("0x18"),{class:Sx("0x1a")+n}),a=i.mapper[Sx("0x15")](s[Sx("0x0")](t));e&&r[Sx("0x3")][Sx("0x5")](o[Sx("0x22")])&&i[Sx("0xe")][Sx("0x1d")](Sx("0x19"),x),i.writer[Sx("0x21")](a,x),i[Sx("0x13")].bindElementToMarker(x,o[Sx("0x22")])}}}const Nx=["has","StandardEditingModeEditing","registerDescriptionCallback","editor","forceValue","commands","isCollapsed","FORMAT_RESTRICTED_ENABLED","plugins","TrackChangesEditing","type","model","selection","document","FORMAT_RESTRICTED_DISABLED","markInlineFormat","getRanges","_descriptionFactory","from","change","format","get","restrictedEditingException","commandParams","commandName"];var Lx,Mx;Lx=Nx,Mx=334,function(t){for(;--t;)Lx.push(Lx.shift())}(++Mx);const wx=function(t,e){return Nx[t-=0]};class Ox extends t.Plugin{afterInit(){const t=this[wx("0x13")],e=t[wx("0x2")],n=t.locale;if(!t[wx("0x18")][wx("0x10")](wx("0x11")))return;const o=t[wx("0x18")].get(wx("0x0")),i=wx("0xd"),r=t[wx("0x15")][wx("0xc")](i);o.enableCommand(i,((t,n={})=>{const s=e[wx("0x4")][wx("0x3")];if(s[wx("0x16")])return void t(n);const x=void 0!==n.forceValue?n[wx("0x14")]:!r.value;e[wx("0xa")]((()=>{const t=Array[wx("0x9")](s[wx("0x7")]());for(const n of t){const t=x?[n]:Xi(i,n,e);for(const e of t)o[wx("0x6")](e,{commandName:i,commandParams:[{forceValue:x}]})}}))})),o[wx("0x8")][wx("0x12")]((t=>{if("formatBlock"!=t.type&&"formatInline"!=t[wx("0x1")])return;const{data:e}=t;return e&&e[wx("0xf")]==i?e[wx("0xe")][0].forceValue?{type:wx("0xb"),content:Qo(n,wx("0x17"))}:{type:wx("0xb"),content:Qo(n,wx("0x5"))}:void 0}))}}const Dx=["element","_enableDefaultAttributesIntegration","get","inline","StyleUtils","_registerInlineAttribute","type","add","style","block","getGhsAttributeNameForElement","format","FORMAT_STYLE","toLowerCase","styleName","plugins","afterInit","_descriptionFactory","locale","has","ghsAttributes","forceValue","DataSchema","Style","TrackChangesEditing","editor","normalizeConfig","GeneralHtmlSupport","formatInline","registerAttributeLabel","config","_registerLegacyDescription","*Set format:* %0","commandParams"];var Fx,Bx;Fx=Dx,Bx=365,function(t){for(;--t;)Fx.push(Fx.shift())}(++Bx);const Px=function(t,e){return Dx[t-=0]};class Ux extends t.Plugin{[Px("0x19")](){const t=this[Px("0x0")];if(!t.plugins.has(Px("0x20"))||!t[Px("0x18")][Px("0x1c")](Px("0x1f")))return;const e=t.plugins[Px("0xb")](Px("0x21")),n=t[Px("0x1b")],o=t[Px("0x5")][Px("0xb")](Px("0x11")),i=t[Px("0x18")].get(Px("0x2")),r=t.plugins.get(Px("0xd"))[Px("0x1")](t[Px("0x18")][Px("0xb")](Px("0x1f")),o.definitions);e[Px("0xa")](Px("0x11"));const s=new Set;for(const t of r[Px("0x12")]){const e=i[Px("0x13")](t[Px("0x9")]);s[Px("0x10")](e)}const x=new Set;for(const t of r[Px("0xc")]){const e=i.getGhsAttributeNameForElement(t[Px("0x9")]);x[Px("0x10")](e);for(const e of t[Px("0x1d")])x[Px("0x10")](e)}for(const t of s)e._registerBlockAttribute(t),e[Px("0x1a")].registerAttributeLabel(t,Qo(n,Px("0x15")));for(const t of x)e[Px("0xe")](t),e[Px("0x1a")][Px("0x4")](t,Qo(n,Px("0x15")));this[Px("0x6")]()}[Px("0x6")](){const t=this[Px("0x0")],e=t[Px("0x1b")];t.plugins[Px("0xb")](Px("0x21"))[Px("0x1a")].registerDescriptionCallback((t=>{if("formatBlock"!=t[Px("0xf")]&&Px("0x3")!=t[Px("0xf")])return;const{data:n}=t;return n&&Px("0x11")===n.commandName?n[Px("0x8")][0][Px("0x1e")]?{type:Px("0x14"),content:Qo(e,Px("0x7"),n[Px("0x8")][0][Px("0x17")][Px("0x16")]())}:{type:"format",content:Qo(e,"*Remove format:* %0",n[Px("0x8")][0].styleName[Px("0x16")]())}:void 0}))}}const jx=["_getSuggestionCoords","insert","registerCustomCallback","locale","startsWith","isEqual","registerElementLabel","MIN_SAFE_INTEGER","markMultiRangeDeletion","addRange","TableUtils","_tablePostFixingSubtypes","above","colspan","get","values","hasAttribute","selectTableRow","insertTableColumnLeft","addMarker:suggestion","createRangeOn","registerDescriptionCallback","createTableWalker","from","commands","fromRange","getChildren","getSuggestion","plugins","nodeBefore","editor","includes","getChanges","getItems","insertTableRowBelow","registerPostFixer","low","removeClass","cell","deletion","tableCell","refresh","data","filter","ELEMENT_TABLE_WITH_TEXT","toLowerCase","rowspan","root","findAncestor","document","nodeAfter","item","insertTable","_splitMarkerName","insertTableRowAbove","getSelectionAffectedTableCells","table","TableEditing","ELEMENT_TABLE_COLUMN_WITH_TEXT","getCellLocation","discard","$textProxy","enableCommand","writer","$graveyard","getFirstRange","maxColumn","detach","change","enqueueChange","selectTableColumn","_tableSuggestions","subType","position","*Remove:* %0","getChangedMarkers","push","getRanges","removeTableColumn","getAttribute","getContainedElement","first","order","insertion","showSuggestionHighlights","length","markMultiRangeInsertion","accept","name","maxRow","rootName","has","last","insertTableColumnRight","classes","setSelection","ELEMENT_TABLE_ROW","mapper","forceValue","every","removeTableRow","some","substr","model","_acceptFormatSuggestionCallbackFactory","tableRow","createRangeIn","min","isIntersectingWithRange","execute","ELEMENT_TABLE_ROW_WITH_TEXT","addClass","minColumn","oldRange","_getCoordsForCells","differ","*Insert:* %0","map","_setupColumnsRowsFixing","_suggestionFactory","type","add","MAX_SAFE_INTEGER","tableColumn","downcastDispatcher","join","start","change:data","ELEMENT_TABLE","batch","selection","_descriptionFactory","end","isInContent","max"];var Gx,Vx;Gx=jx,Vx=238,function(t){for(;--t;)Gx.push(Gx.shift())}(++Vx);const Hx=function(t,e){return jx[t-=0]};class zx extends t.Plugin{constructor(t){super(t),this[Hx("0x2b")]=[Hx("0x2"),Hx("0x14")],this[Hx("0x67")]=new Set}afterInit(){const t=this.editor,e=t[Hx("0x0")][Hx("0x51")][Hx("0x1b")];if(!t[Hx("0x3c")][Hx("0x7b")](Hx("0x59")))return;const n=t[Hx("0x23")],o=t[Hx("0x3c")][Hx("0x2e")]("TrackChangesEditing"),i=t[Hx("0x3c")][Hx("0x2e")](Hx("0x2a"));o[Hx("0x1c")][Hx("0x26")](Hx("0x58"),(t=>Qo(n,Hx("0x19"),t))),this[Hx("0xf")](),o[Hx("0x5e")](Hx("0x54")),o.enableCommand(Hx("0x31")),o[Hx("0x5e")](Hx("0x66"));for(const n of[Hx("0x56"),Hx("0x42")]){const r=t[Hx("0x38")][Hx("0x2e")](n);o[Hx("0x5e")](n,(n=>{t[Hx("0x0")][Hx("0x64")]((t=>{n();const s=Hx("0x2c")===r[Hx("0x72")],x=i.getSelectionAffectedTableCells(e),a=i.getRowIndexes(x),c=s?a[Hx("0x71")]-1:a.last+1,l=x[0][Hx("0x50")](Hx("0x58")),u=i[Hx("0x36")](l,{startRow:c,endRow:c}),d=Array[Hx("0x37")](u)[Hx("0xe")]((e=>t[Hx("0x34")](e[Hx("0x46")])));o[Hx("0x76")](d,Hx("0x2"))}))}))}for(const n of[Hx("0x32"),Hx("0x7d")]){const r=t[Hx("0x38")].get(n);o[Hx("0x5e")](n,(n=>{t.model.change((t=>{n();const s="left"===r[Hx("0x72")],x=i.getSelectionAffectedTableCells(e),a=i.getColumnIndexes(x),c=s?a.first-1:a[Hx("0x7c")]+1,l=x[0][Hx("0x50")](Hx("0x58")),u=i[Hx("0x36")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Hx("0x37")](u)[Hx("0xe")]((e=>t[Hx("0x34")](e[Hx("0x46")])));o[Hx("0x76")](d,Hx("0x14"))}))}))}for(const n of["removeTableRow",Hx("0x6e")]){const r=n[Hx("0x86")](11),s=r[Hx("0x4d")](),x=s.substr(0,3)+"span",a=Hx("0x58")+r,c=Hx("0x4")+r,l=Hx("0x1f")+r;o[Hx("0x5e")](n,(()=>{t[Hx("0x0")][Hx("0x64")]((t=>{const r=i[Hx("0x57")](e),u=r[0][Hx("0x50")](Hx("0x58"));let d;if(Hx("0x84")==n){const t=i.getRowIndexes(r);d={startRow:t[Hx("0x71")],endRow:t[Hx("0x7c")],includeAllSlots:!0}}else{const t=i.getColumnIndexes(r);d={startColumn:t[Hx("0x71")],endColumn:t[Hx("0x7c")],includeAllSlots:!0}}const g=i[Hx("0x36")](u,d),f=Array[Hx("0x37")](g)[Hx("0xe")]((({cell:t})=>t)),m=Wx(f.filter((t=>t[Hx("0x30")](x)))),h=Wx(f[Hx("0x4b")]((t=>!t[Hx("0x30")](x))))[Hx("0xe")]((e=>t[Hx("0x34")](e))),p=o[Hx("0x28")](h,a);if(p&&(Hx("0x2")==p[Hx("0x68")]||Hx("0x14")==p[Hx("0x68")])){const e=this[Hx("0x20")](p);for(const n of m){const o=t[Hx("0x34")](n),r=i.getCellLocation(n),a=n[Hx("0x6f")](x)-1,u=e[c],d=e[l];u<=r[s]&&r[s]+a<=d&&p[Hx("0x29")](o)}}}))}))}function r(n){const o=Array[Hx("0x37")](e[Hx("0x6d")]()).map((t=>s.LiveRange[Hx("0x39")](t)));t[Hx("0x0")][Hx("0x64")]((e=>{const i=e[Hx("0x1a")];n=n[Hx("0x4b")]((t=>Hx("0x60")!=t[Hx("0x4f")][Hx("0x7a")])),e.setSelection(n),t.commands[Hx("0x2e")](Hx("0x84")).refresh(),t[Hx("0x6")](Hx("0x84"),{forceDefaultExecution:!0}),t[Hx("0x0")][Hx("0x65")]((()=>{t[Hx("0x0")][Hx("0x65")](i,(t=>{const e=o[Hx("0x4b")]((t=>Hx("0x60")!=t.root[Hx("0x7a")]));e[Hx("0x75")]>0&&t[Hx("0x7f")](e);for(const t of o)t[Hx("0x63")]()}))}))}))}function a(n){t[Hx("0x0")][Hx("0x64")]((o=>{const i=Array[Hx("0x37")](e.getRanges()).map((t=>s.LiveRange[Hx("0x39")](t))),r=[];for(const t of n)for(const e of t[Hx("0x41")]({shallow:!0}))r.push(e);for(const e of r)Hx("0x60")!=e[Hx("0x4f")][Hx("0x7a")]&&(o[Hx("0x7f")](o.createPositionAt(e,0)),t.commands.get(Hx("0x6e")).refresh(),t[Hx("0x6")](Hx("0x6e"),{forceDefaultExecution:!0}));const x=i[Hx("0x4b")]((t=>Hx("0x60")!=t[Hx("0x4f")][Hx("0x7a")]));x[Hx("0x75")]>0&&o[Hx("0x7f")](x);for(const t of i)t[Hx("0x63")]()}))}function c(t,e){return e[Hx("0x83")]((e=>t[Hx("0x85")]((t=>t.end[Hx("0x25")](e.start)||e[Hx("0x1d")][Hx("0x25")](t[Hx("0x17")])))))}function l(t,e){return t[Hx("0x85")]((t=>e.some((e=>t[Hx("0x1d")].isTouching(e[Hx("0x17")])))))}t.data[Hx("0x15")].on(Hx("0x33"),((t,e,n)=>{if(!n.options[Hx("0x74")])return;const o=e[Hx("0x53")];if(!o)return;const i=n[Hx("0x81")].toViewElement(o);function r(t){return Array.isArray(t)?t:[t]}i&&Hx("0x48")===o[Hx("0x78")]&&(0,x.setHighlightHandling)(i,n[Hx("0x5f")],((t,e,n)=>n[Hx("0x8")](r(e[Hx("0x7e")]),t)),((t,e,n)=>n[Hx("0x45")](r(e.classes),t)))}),{priority:"highest"}),o[Hx("0x1c")][Hx("0x35")]((t=>{if(Hx("0x73")!=t[Hx("0x11")]&&Hx("0x47")!=t[Hx("0x11")])return;const e=t[Hx("0x70")]();if(null!=e&&e.is("element",Hx("0x58"))){if("insertion"==t.type){const e=t[Hx("0x41")]()[Hx("0x4b")]((t=>t.is(Hx("0x5d"))))[Hx("0xe")]((t=>t[Hx("0x4a")]));if(e[Hx("0x75")])return{type:Hx("0x73"),content:Qo(n,Hx("0xd"),Qo(n,Hx("0x4c"),'"'+e.join(" ")+'"'))}}if("deletion"==t[Hx("0x11")]){const e=t.getItems()[Hx("0x4b")]((t=>t.is("$textProxy"))).map((t=>t[Hx("0x4a")]));if(e[Hx("0x75")])return{type:"deletion",content:Qo(n,Hx("0x6a"),Qo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Hx("0x16")](" ")+'"'))}}}})),o[Hx("0x1c")][Hx("0x35")]((t=>{if(Hx("0x2")==t[Hx("0x68")]){const e=t[Hx("0x41")]()[Hx("0x4b")]((t=>t.is(Hx("0x5d")))).map((t=>t[Hx("0x4a")])),o=this._getSuggestionCoords(t),i=o[Hx("0x79")]-o.minRow+1;if("insertion"==t[Hx("0x11")])return e[Hx("0x75")]?{type:"insertion",content:Qo(n,Hx("0xd"),Qo(n,Hx("0x7"),[i,'"'+e[Hx("0x16")](" ")+'"']))}:{type:Hx("0x73"),content:Qo(n,Hx("0xd"),Qo(n,Hx("0x80"),i))};if("deletion"==t[Hx("0x11")])return e.length?{type:Hx("0x47"),content:Qo(n,"*Remove:* %0",Qo(n,Hx("0x7"),[i,'"'+e[Hx("0x16")](" ")+'"']))}:{type:Hx("0x47"),content:Qo(n,Hx("0x6a"),Qo(n,Hx("0x80"),i))}}if("tableColumn"==t[Hx("0x68")]){const e=t[Hx("0x41")]()[Hx("0x4b")]((t=>t.is(Hx("0x5d"))))[Hx("0xe")]((t=>t[Hx("0x4a")])),o=this._getSuggestionCoords(t),i=o[Hx("0x62")]-o[Hx("0x9")]+1;if(Hx("0x73")==t[Hx("0x11")])return e[Hx("0x75")]?{type:Hx("0x73"),content:Qo(n,"*Insert:* %0",Qo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[i,'"'+e[Hx("0x16")](" ")+'"']))}:{type:Hx("0x73"),content:Qo(n,Hx("0xd"),Qo(n,"ELEMENT_TABLE_COLUMN",i))};if("deletion"==t[Hx("0x11")])return e[Hx("0x75")]?{type:Hx("0x47"),content:Qo(n,"*Remove:* %0",Qo(n,Hx("0x5a"),[i,'"'+e[Hx("0x16")](" ")+'"']))}:{type:Hx("0x47"),content:Qo(n,"*Remove:* %0",Qo(n,"ELEMENT_TABLE_COLUMN",i))}}})),o[Hx("0x10")].registerCustomCallback(Hx("0x73"),Hx("0x2"),Hx("0x5c"),r),o[Hx("0x10")][Hx("0x22")](Hx("0x47"),Hx("0x2"),Hx("0x77"),r),o._suggestionFactory.registerCustomCallback(Hx("0x73"),Hx("0x14"),Hx("0x5c"),a),o[Hx("0x10")].registerCustomCallback(Hx("0x47"),"tableColumn",Hx("0x77"),a),o._suggestionFactory[Hx("0x22")](Hx("0x73"),"tableColumn","join",c),o[Hx("0x10")][Hx("0x22")](Hx("0x47"),Hx("0x14"),"join",c),o[Hx("0x10")][Hx("0x22")](Hx("0x73"),Hx("0x2"),Hx("0x16"),l),o[Hx("0x10")].registerCustomCallback(Hx("0x47"),Hx("0x2"),Hx("0x16"),l)}[Hx("0x1")](){const t=this[Hx("0x3e")],e=t[Hx("0x0")][Hx("0x51")][Hx("0x1b")];return(n,o)=>{t.model[Hx("0x64")]((i=>{const{commandName:r,commandParams:x}=o;let a=n[0][Hx("0x1d")][Hx("0x3d")];x&&x[0]&&!1===x[0][Hx("0x82")]&&(a=n[0].start.nodeAfter);const c=i[Hx("0x3")](a);if("$graveyard"==c.root[Hx("0x7a")])return;const l=Array.from(e[Hx("0x6d")]())[Hx("0xe")]((t=>s.LiveRange[Hx("0x39")](t)));i[Hx("0x7f")](c),t[Hx("0x38")][Hx("0x2e")](r)[Hx("0x49")](),x[Hx("0x6c")]({forceDefaultExecution:!0}),t[Hx("0x6")](r,...x);const u=l[Hx("0x4b")]((t=>"$graveyard"!=t.root[Hx("0x7a")]));u[Hx("0x75")]>0&&i.setSelection(u);for(const t of l)t[Hx("0x63")]()}))}}[Hx("0xb")](t){const e=this[Hx("0x3e")][Hx("0x3c")][Hx("0x2e")](Hx("0x2a"));let n=Number[Hx("0x13")],o=Number[Hx("0x27")],i=Number[Hx("0x13")],r=Number[Hx("0x27")];for(const s of t){if(Hx("0x60")==s.root[Hx("0x7a")])continue;const{row:t,column:x}=e[Hx("0x5b")](s),a=s[Hx("0x30")](Hx("0x4e"))?s[Hx("0x6f")](Hx("0x4e"))-1:0,c=s.hasAttribute(Hx("0x2d"))?s[Hx("0x6f")](Hx("0x2d"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,i=x<i?x:i,r=x+c>r?x+c:r}return{minRow:n,maxRow:o,minColumn:i,maxColumn:r}}[Hx("0xf")](){const t=this[Hx("0x3e")],e=t.plugins[Hx("0x2e")]("TrackChangesEditing"),n=t[Hx("0x3c")][Hx("0x2e")](Hx("0x2a"));t[Hx("0x0")][Hx("0x51")].on(Hx("0x18"),(()=>{const n=Array[Hx("0x37")](t[Hx("0x0")][Hx("0x51")][Hx("0xc")][Hx("0x6b")]());for(const{name:t,data:o}of n){const{group:n,id:i,subType:r}=e[Hx("0x55")](t);if("suggestion"!=n)continue;if(null!=o[Hx("0xa")])continue;const s=e[Hx("0x3b")](i);this[Hx("0x2b")][Hx("0x3f")](r)&&this[Hx("0x67")][Hx("0x12")](s)}}),{priority:Hx("0x44")});const o=(t,e)=>{let o=!1;const i=e[Hx("0x34")](t),r=t.findAncestor(Hx("0x58")),s=n[Hx("0x5b")](t);for(const e of this[Hx("0x67")]){const n=e[Hx("0x68")],x=n[Hx("0x24")]("tablePaste"),a=n[Hx("0x86")](x?10:5),c=a[Hx("0x4d")](),l=c[Hx("0x86")](0,3)+"span",u=Hx("0x4")+a,d=Hx("0x1f")+a;if(!e[Hx("0x1e")])continue;if(r!=e[Hx("0x61")]().start[Hx("0x50")]("table"))continue;if(e[Hx("0x5")](i))continue;const g=t.hasAttribute(l)?t[Hx("0x6f")](l)-1:0,f=this[Hx("0x20")](e),m=f[u],h=f[d];m<=s[c]&&s[c]+g<=h&&(e[Hx("0x29")](i),o=!0)}return o};t[Hx("0x0")][Hx("0x51")][Hx("0x43")]((e=>{let n=!1;for(const i of t[Hx("0x0")][Hx("0x51")][Hx("0xc")][Hx("0x40")]())if(Hx("0x21")==i[Hx("0x11")])if(Hx("0x2")==i[Hx("0x78")])for(const t of i.position[Hx("0x52")][Hx("0x3a")]())n=n||o(t,e);else"tableCell"==i[Hx("0x78")]&&(n=n||o(i[Hx("0x69")][Hx("0x52")],e));return n}))}[Hx("0x20")](t){return this[Hx("0xb")](t[Hx("0x6d")]()[Hx("0xe")]((t=>t.start[Hx("0x52")])))}}function Wx(t){return Array[Hx("0x37")](new Set(t)[Hx("0x2f")]())}const Kx=["_areSelectedCellsMergable","TableEditing","add","locale","createRangeOn","getRanges","setSelection","*Split cell:* horizontally","set:isEnabled","length","get","insertion","commandName","editor","commands","accept","mergeTableCells","_acceptFormatSuggestionCallbackFactory","createTableWalker","author","formatBlock","_tablePostFixingSubtypes","mergeTableCellLeft","push","containsRange","has","tableCell","format","_areMergableCells","_isForcedDefaultExecutionBlock","markMultiRangeBlockFormat","splitTableCellHorizontally","trackChanges","enableCommand","_suggestionFactory","direction","afterInit","subType","_descriptionFactory","mergeTableCellDown","mergeTableCellRight","document","execute","refresh","requires","type","*Split cell:* vertically","map","deletion","fromRange","registerDescriptionCallback","getSelectionAffectedTableCells","stop","formatInline","forceDefaultExecution","getFirstPosition","$graveyard","value","cell","markBlockFormat","element","filter","horizontally","size","TableUtils","isInContent","selection","model","splitTableCellVertically","getCellLocation","plugins","change","find","mergeTableCellUp","highest","*Merge cells*","getAncestors","registerCustomCallback","from"];var qx,Xx;qx=Kx,Xx=209,function(t){for(;--t;)qx.push(qx.shift())}(++Xx);const $x=function(t,e){return Kx[t-=0]};class Zx extends t.Plugin{static get[$x("0x48")](){return[zx]}[$x("0x40")](){const t=this[$x("0x29")],e=t.model[$x("0x45")][$x("0xf")],n=t[$x("0x1f")];if(!t[$x("0x13")][$x("0x35")]($x("0x1d")))return;const o=t[$x("0x13")].get("TrackChangesEditing"),i=t.plugins[$x("0x26")]($x("0xd")),r=t.plugins[$x("0x26")](zx);r[$x("0x31")][$x("0x33")]($x("0x2c")),o.enableCommand($x("0x2c"),(()=>{const e=i[$x("0x0")](t[$x("0x10")][$x("0x45")][$x("0xf")]);t[$x("0x10")][$x("0x14")]((()=>{o[$x("0x3a")](e,{commandName:"mergeTableCells",commandParams:[]},[],$x("0x2c"))}))})),t[$x("0x2a")][$x("0x26")]($x("0x2c")).on($x("0x46"),((e,n)=>{t[$x("0x2a")][$x("0x26")]($x("0x3c"))[$x("0x6")]&&(n.length>0&&n[n.length-1]&&n[n[$x("0x25")]-1][$x("0x3")]||o[$x("0x39")]||this[$x("0x1c")]()||e[$x("0x1")]())}),{priority:$x("0x17")});for(const e of[$x("0x16"),$x("0x44"),$x("0x43"),$x("0x32")]){const n=t[$x("0x2a")].get(e);o[$x("0x3d")](e,(()=>{const e=t.model[$x("0x45")][$x("0xf")][$x("0x4")]()[$x("0x19")]()[$x("0x15")]((t=>t.is($x("0x9"),$x("0x36")))),i=n[$x("0x6")];t[$x("0x10")].change((()=>{o[$x("0x3a")]([e,i],{commandName:$x("0x2c"),commandParams:[]},[],"mergeTableCells")}))}))}for(const e of[$x("0x11"),"splitTableCellHorizontally"]){const n=t[$x("0x2a")][$x("0x26")](e);o.enableCommand(e,(()=>{const r=i.getSelectionAffectedTableCells(t.model.document[$x("0xf")])[0],s=r.findAncestor("table"),{column:x,row:a}=i[$x("0x12")](r);let c=[];if($x("0xb")==n[$x("0x3f")]){const t=i.createTableWalker(s,{startRow:a,endRow:a,includeAllSlots:!0});c=Array.from(t).map((t=>t[$x("0x7")]))}else{const t=i[$x("0x2e")](s,{column:x,includeAllSlots:!0});c=Array[$x("0x1b")](t)[$x("0x4b")]((t=>t[$x("0x7")]))}t[$x("0x10")].change((t=>{o[$x("0x8")](t.createRangeOn(r),{commandName:e,commandParams:[]},c,e)}))}))}o[$x("0x42")][$x("0x4e")]((t=>{if($x("0x30")!=t.type&&$x("0x2")!=t.type)return;const{data:e}=t;return e&&$x("0x2c")==e[$x("0x28")]?{type:$x("0x37"),content:Qo(n,$x("0x18"))}:void 0})),o[$x("0x42")][$x("0x4e")]((t=>{if($x("0x30")!=t[$x("0x49")]&&$x("0x2")!=t[$x("0x49")])return;const{data:e}=t;return e?$x("0x11")==e.commandName?{type:"format",content:Qo(n,$x("0x4a"))}:$x("0x3b")==e[$x("0x28")]?{type:$x("0x37"),content:Qo(n,$x("0x23"))}:void 0:void 0}));const x=r[$x("0x2d")]();for(const t of[$x("0x16"),$x("0x44"),"mergeTableCellDown",$x("0x32")])o[$x("0x3e")].registerCustomCallback("formatBlock",t,$x("0x2b"),x);for(const t of["splitTableCellVertically",$x("0x3b")])o[$x("0x3e")][$x("0x1a")]($x("0x30"),t,$x("0x2b"),x);o[$x("0x3e")][$x("0x1a")]($x("0x30"),$x("0x2c"),$x("0x2b"),(n=>{t.model.change((o=>{const i=Array[$x("0x1b")](e.getRanges())[$x("0x4b")]((t=>s.LiveRange[$x("0x4d")](t)));o.setSelection(n),t[$x("0x2a")][$x("0x26")]($x("0x2c"))[$x("0x47")](),t[$x("0x46")]($x("0x2c"),{forceDefaultExecution:!0});const r=i[$x("0xa")]((t=>$x("0x5")!=t.root.rootName));r[$x("0x25")]>0&&o[$x("0x22")](r);for(const t of i)t.detach()}))}));for(const e of["mergeTableCellUp",$x("0x43"),$x("0x32"),"mergeTableCellRight"]){const n=t.commands[$x("0x26")](e);n.on($x("0x24"),((e,o,i)=>{if(i){const o=t[$x("0x10")][$x("0x45")][$x("0xf")][$x("0x4")]()[$x("0x19")]()[$x("0x15")]((t=>t.is("element",$x("0x36"))));this._areMergableCells(n.value,o)||(e.return=!1,e[$x("0x1")]())}}),{priority:"low"})}}[$x("0x1c")](){const t=this[$x("0x29")][$x("0x2a")][$x("0x26")]($x("0x2c")),e=this[$x("0x29")][$x("0x13")][$x("0x26")]($x("0xd"));if(!t.isEnabled)return!1;const n=e.getSelectionAffectedTableCells(this[$x("0x29")][$x("0x10")][$x("0x45")][$x("0xf")]);for(const t of n)for(const e of n)if(t!=e&&!this._areMergableCells(t,e))return!1;return!0}[$x("0x38")](t,e){const n=this[$x("0x29")][$x("0x13")].get("TrackChangesEditing"),o=this[$x("0x29")][$x("0x10")][$x("0x20")](t),i=this.editor[$x("0x10")][$x("0x20")](e),r=new Set,s=new Set;for(const t of n.getSuggestions())if(($x("0x27")==t[$x("0x49")]||$x("0x4c")==t[$x("0x49")]||$x("0x2c")==t[$x("0x41")])&&t[$x("0xe")])for(const e of t[$x("0x21")]())e[$x("0x34")](o,!0)&&r[$x("0x1e")](t[$x("0x49")]+":"+t[$x("0x2f")].id),e[$x("0x34")](i,!0)&&s[$x("0x1e")](t.type+":"+t[$x("0x2f")].id);if(r.size!=s[$x("0xc")])return!1;for(const t of r)if(!s[$x("0x35")](t))return!1;return!0}}const Yx=["_descriptionFactory","downcastDispatcher","stop","format","registerCustomCallback","FORMAT_REGULAR_ROW","formatBlock","removeClass","_acceptFormatSuggestionCallbackFactory","bindElementToMarker","showSuggestionHighlights","accept","editor","toViewElement","addClass","commandParams","getCellLocation","cell","data","setTableRowHeader","markerName","ck-suggestion-marker--active","getSuggestion","*Format:* %0","writer","options","setTableColumnHeader","end","_enableDefaultAttributesIntegration","removeAttribute","start","markerRange","includes","setAttribute","createTableWalker","locale","headingColumns","FORMAT_HEADER_ROW","headingRows","_handleLegacySuggestions","parent","nodeAfter","registerDescriptionCallback","TableUtils","commandName","get","activeMarkers","TrackChangesEditing","editing","mapper","consume","item","requires","FORMAT_HEADER_COLUMN","data-suggestion","_suggestionFactory","registerAttributeLabel","addMarker:suggestion","highest","_registerLegacyDescription","plugins","type","TableEditing","forceValue","ck-suggestion-marker-","unbindElementFromMarkerName"];var Jx,Qx;Jx=Yx,Qx=252,function(t){for(;--t;)Jx.push(Jx.shift())}(++Qx);const ta=function(t,e){return Yx[t-=0]};class ea extends t.Plugin{static get[ta("0x40")](){return[zx]}afterInit(){const t=this[ta("0x18")];if(!t.plugins.has(ta("0x8")))return;const e=t[ta("0x2f")],n=t[ta("0x6")][ta("0x39")]("TrackChangesEditing");n[ta("0x28")](ta("0x1f"),[],[ta("0x32")]),n[ta("0x28")](ta("0x26"),[],[ta("0x30")]),n[ta("0xc")][ta("0x2")]("headingRows",Qo(e,ta("0x31"))),n[ta("0xc")].registerAttributeLabel("headingColumns",Qo(e,ta("0x41"))),this[ta("0x33")]()}_handleLegacySuggestions(){const t=this.editor[ta("0x6")].get(ta("0x3b")),e=this[ta("0x18")][ta("0x6")][ta("0x39")](ta("0x37")),n=this[ta("0x18")].plugins.get(zx)[ta("0x14")]();function o({showActiveMarker:n=!0,setDataAttribute:o=!0}={}){return(i,r,s)=>{const{type:x,id:a}=t._splitMarkerName(r[ta("0x20")]),c=t[ta("0x22")](a),l=c.data;if(ta("0x12")!=c[ta("0x7")]||!l||ta("0x26")!=l.commandName)return;if(r[ta("0x3f")])return void i[ta("0xe")]();if(!s.consumable[ta("0x3e")](r[ta("0x2b")],i.name))return;const u=r[ta("0x2b")][ta("0x2a")][ta("0x35")],d=r[ta("0x2b")][ta("0x27")].nodeBefore,g=u[ta("0x34")][ta("0x34")],{column:f}=e.getCellLocation(u),{column:m}=e[ta("0x1c")](d);for(let i=f;i<=m;i++){const c=e[ta("0x2e")](g,{column:i,includeAllSlots:!1});for(const e of c){const i=e[ta("0x1d")],c=s[ta("0x3d")][ta("0x19")](i);s.writer[ta("0x1a")]("ck-suggestion-marker-"+x,c),o&&s.writer[ta("0x2d")]("data-suggestion",a,c),s[ta("0x3d")][ta("0x15")](c,r.markerName),n&&(t[ta("0x3a")][ta("0x2c")](r.markerName)?s.writer.addClass(ta("0x21"),c):s[ta("0x24")][ta("0x13")](ta("0x21"),c))}}}}t[ta("0x1")][ta("0x10")](ta("0x12"),"setTableRowHeader",ta("0x17"),n),t[ta("0x1")].registerCustomCallback("formatBlock",ta("0x26"),"accept",n),this[ta("0x18")].editing.downcastDispatcher.on(ta("0x3"),o(),{priority:ta("0x4")}),this[ta("0x18")][ta("0x1e")][ta("0xd")].on(ta("0x3"),((t,e,n)=>{n[ta("0x25")][ta("0x16")]&&o({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:ta("0x4")}),this[ta("0x18")][ta("0x3c")][ta("0xd")].on("removeMarker:suggestion",((e,n,o)=>{const{type:i,id:r}=t._splitMarkerName(n[ta("0x20")]),s=t[ta("0x22")](r),x=s[ta("0x1e")];if(ta("0x12")!=s[ta("0x7")]||!x||ta("0x26")!=x[ta("0x38")])return;const a=o[ta("0x3d")].markerNameToElements(n.markerName);if(a)for(const t of a)o[ta("0x24")].removeClass(ta("0xa")+i,t),o[ta("0x24")][ta("0x13")](ta("0x21"),t),o.writer[ta("0x29")](ta("0x0"),t),o.mapper[ta("0xb")](t,n[ta("0x20")])}),{priority:"highest"}),this[ta("0x5")]()}[ta("0x5")](){const t=this[ta("0x18")],e=t.locale;function n(t){return{type:ta("0xf"),content:Qo(e,ta("0x23"),t)}}t[ta("0x6")].get(ta("0x3b"))[ta("0xc")][ta("0x36")]((t=>{if(ta("0x12")!=t[ta("0x7")])return;const{data:o}=t;if(o){if(ta("0x1f")==o.commandName){const t=o[ta("0x1b")][0][ta("0x9")];return n(Qo(e,ta(t?"0x31":"0x11")))}if(ta("0x26")==o[ta("0x38")]){const t=o[ta("0x1b")][0].forceValue;return n(Qo(e,t?ta("0x41"):"FORMAT_REGULAR_COLUMN"))}}}))}}const na=["ck-suggestion-marker--active","options","tableCellSuggestion","model","selection","tablePaste","filter","getChanges","root","getSuggestion","reduce","tableCellBorderColor","every","join","nextSibling","insert","isEqual","tablePasteCell","table","nodeAfter","tablePasteRow","getSuggestions","markerAttributes","batch","paragraph","subType","markers","markMultiRangeInsertion","createRangeIn","insertion","cell","getRowIndexes","getChild","push","move","deletion","registerPostFixer","has","requires","_replaceTableSlotCell","endRow","tableCellHorizontalAlignment","high","length","getColumnIndexes","_descriptionFactory","_createdBatches","tableCell","columnInsertionRanges","columnInsertionIndexes","markerToHighlight","createRangeOn","tableCellPadding","createTableWalker","registerDescriptionCallback","tableCellVerticalAlignment","insertColumns","tableCellBorderStyle","getSelectionAffectedTableCells","registerCustomCallback","fill","listenTo","from","hasSuggestion","isEmpty","deletionRanges","low","map","newRange","last","_splitMarkerName","removeMarkers","removeMarker","formatBlock","rootName","getChildren","element","tablePasteColumn","conversion","suggestion-td","attributes","includes","discard","remove","suggestionLoaded","TableClipboard","createElement","getRows","add","view","ck-suggestion-marker-insertion","editing","position","startsWith","suggestion","first","getItems","findAncestor","end","commands","Users","insertRows","createPositionBefore","getAllAdjacentSuggestions","editor","document","getMarkers","insertContent","find","return","accept","getRange","wrap","start","endColumn","name","register","type","for","author","change","showSuggestionHighlights","rowInsertionIndexes","get","getShiftedBy","createRange","tablePasteChainId","_suggestionFactory","column","differ","containsRange","getContainedElement","removeRows","getRanges","cells","_getCoordsForCells","isInContent","redo","markerName","documentSelection","getSuggestionCallback","value","insertionRanges","updateMarker","getTableIfOnlyTableInContent","rowInsertionRanges","getChangedMarkers","previous","columns","entries","ck-suggestion-marker","tableCellBackgroundColor","elementToElement","trackChanges","fromEntries","setAttribute","_tablePostFixingSubtypes","markMultiRangeBlockFormat","removeColumns","unwrap","markMultiRangeDeletion","editingDowncast","getColumns","plugins"];var oa,ia;oa=na,ia=278,function(t){for(;--t;)oa.push(oa.shift())}(++ia);const ra=function(t,e){return na[t-=0]},sa=["tableCellBorderWidth",ra("0x3d"),ra("0x6b"),ra("0x5b"),ra("0x69"),ra("0x25"),ra("0x66")],xa=Object[ra("0x28")](sa[ra("0x75")]((t=>[t,null])));class aa extends t.Plugin{static get[ra("0x58")](){return[zx]}afterInit(){const t=this[ra("0x9a")];if(!t.plugins[ra("0x57")](ra("0x87")))return;const n=t[ra("0x31")].get("TrackChangesEditing"),o=t[ra("0x31")][ra("0x9")]("TableUtils"),i=t[ra("0x31")][ra("0x9")](zx),r=t[ra("0x31")][ra("0x9")](ra("0x87"));i[ra("0x2a")][ra("0x53")](ra("0x46"),"tablePasteColumn"),t[ra("0x35")].schema[ra("0x2")](ra("0x34"),{allowIn:ra("0x61"),allowContentOf:ra("0x61"),isLimit:!0}),t.conversion[ra("0x26")]({model:"tableCellSuggestion",view:"suggestion-td"});let s=null;t[ra("0x35")].on(ra("0x9d"),((i,x)=>{const[a,c]=x,l=x[x[ra("0x5d")]-1];l&&l.forceDefaultExecution||n._isForcedDefaultExecutionBlock||this[ra("0x9a")][ra("0x95")][ra("0x9")](ra("0x27"))[ra("0x1b")]&&function(t,e,n,o,i){if(e&&!e.is(ra("0x19")))return!1;const r=i[ra("0x1e")](t,n);if(!r||!la(r,void 0,o))return!1;const s=o[ra("0x6c")](n.document[ra("0x36")]);if(!s[ra("0x5d")])return!1;const x=s[0].findAncestor(ra("0x44")),a=o[ra("0x51")](s),c=o[ra("0x5e")](s),l={startRow:a[ra("0x91")],endRow:a.last,startColumn:c[ra("0x91")],endColumn:c[ra("0x77")]};return 1==s.length&&(l[ra("0x5a")]+=o[ra("0x89")](r)-1,l[ra("0x0")]+=o[ra("0x30")](r)-1),la(x,l,o)}(a,c,t[ra("0x35")],o,r)&&(i.stop(),s={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t.model[ra("0x6")]((()=>{t[ra("0x35")][ra("0x9d")](x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:i,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=s;i[ra("0x5d")]&&n.markMultiRangeInsertion(i,ra("0x46"),{tablePasteChainId:o}),r[ra("0x5d")]&&n.markMultiRangeInsertion(r,ra("0x7f"),{tablePasteChainId:o}),a[ra("0x5d")]&&n[ra("0x4d")](a,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0}),c[ra("0x5d")]&&n[ra("0x2e")](c,ra("0x37"),{tablePasteChainId:o,skipNestingCheck:!0});const u=n[ra("0x2b")](l[ra("0x75")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],"tablePasteCell",{tablePasteChainId:o});if(u){const e=u[ra("0x9c")](),n=[];for(const{element:o,attributes:i}of l){if(!i)continue;const r=t.model.createRangeOn(o),s=e.find((t=>t[ra("0xa1")]()[ra("0x42")](r)));s&&n[ra("0x53")]([s[ra("0x1")],i])}n[ra("0x5d")]&&u[ra("0x29")](ra("0x48"),Object[ra("0x28")](n))}s=null})))}),{priority:e.priorities[ra("0x5c")]+10}),t[ra("0x31")][ra("0x9")](ra("0x87")).on(ra("0x59"),((t,e)=>{const[n,o,,i]=e;if(!s)return;t.stop();const r=n[ra("0x50")],x=o,a=ca(r),c=ca(x);t[ra("0x9f")]=r;let l=null,u=null;if(c||a)if(a&&!c){i[ra("0x85")](r[ra("0x52")](0));for(const t of Array[ra("0x70")](x[ra("0x7d")]()))i.insert(t,r,ra("0x94"));const t=s[ra("0x8")].includes(n.row),e=s[ra("0x63")][ra("0x83")](n[ra("0xe")]);t||e||(l=i[ra("0x4e")](r))}else c&&!a&&(u=i[ra("0x4e")](r));else{const t=i[ra("0x88")]("tableCellSuggestion"),e=i[ra("0x88")]("tableCellSuggestion");i[ra("0xa2")](i[ra("0x4e")](r),e),i[ra("0x41")](t,r,0);for(const e of Array[ra("0x70")](x[ra("0x7d")]()))i[ra("0x41")](e,t,"end");l=i[ra("0x65")](t),u=i[ra("0x65")](e)}const d=Array.from(x.getAttributes()).filter((([t])=>sa[ra("0x83")](t)));s[ra("0x14")].push({element:r,attributes:d.length?Object[ra("0x28")](d):null}),l&&s[ra("0x1c")][ra("0x53")](l),u&&s[ra("0x73")][ra("0x53")](u)}),{priority:ra("0x5c")}),o.on(ra("0x6a"),((e,n)=>{const[i,r={}]=n;if(!s)return;const x=r.at||0,a=r[ra("0x22")]||1;s[ra("0x63")]=new Array(a)[ra("0x6e")](x).map(((t,e)=>t+e));for(const{cell:e}of o[ra("0x67")](i,{startColumn:x,endColumn:x+a-1}))s[ra("0x62")].push(t.model[ra("0x65")](e))}),{priority:ra("0x74")}),o.on(ra("0x97"),((e,n)=>{const[i,r={}]=n;if(!s)return;const x=r.at||0,a=r.rows||1;s[ra("0x8")]=new Array(a).fill(x)[ra("0x75")](((t,e)=>t+e));for(const{cell:e}of o[ra("0x67")](i,{startRow:x,endRow:x+a-1}))s[ra("0x1f")][ra("0x53")](t[ra("0x35")][ra("0x65")](e))}),{priority:ra("0x74")}),n[ra("0x5f")][ra("0x68")]((e=>{if(e.subType&&e[ra("0x4b")][ra("0x8f")](ra("0x37")))return e.previous?{}:{type:ra("0x4f"),content:Qo(t.locale,"*Replace table cells*")}}));const x=()=>!1;for(const t of[ra("0x37"),"tablePasteColumn",ra("0x46"),ra("0x43")])n._suggestionFactory.registerCustomCallback(ra("0x4f"),t,"join",x),n[ra("0xd")][ra("0x6d")](ra("0x55"),t,ra("0x3f"),x),n[ra("0xd")][ra("0x6d")](ra("0x7b"),t,ra("0x3f"),x);n._suggestionFactory[ra("0x6d")](ra("0x7b"),"tablePasteCell",ra("0x84"),x),n[ra("0xd")][ra("0x6d")](ra("0x7b"),ra("0x43"),ra("0xa0"),((e,n,o)=>{const i=e[ra("0x75")]((t=>t[ra("0x11")]()))[ra("0x38")]((t=>t)),r=new Map(i[ra("0x75")]((t=>[t,null])));if(s)for(const{element:t,attributes:e}of s[ra("0x14")])e&&r.set(t,e);else if(o&&o.markerAttributes)for(const[e,n]of Object[ra("0x23")](o[ra("0x48")])){const o=t[ra("0x35")][ra("0x4c")][ra("0x9")](e),i=o?o[ra("0xa1")]().getContainedElement():null;i&&r.set(i,n)}t.model[ra("0x6")]((t=>{for(const[e,n]of r)t.setAttributes({...xa,...n},e)}))}));const a=(e,o)=>{n[ra("0xd")][ra("0x6d")](e,ra("0x37"),o,((i,r,s)=>{t.model.change((t=>{const x=[];for(const t of i){const e=t[ra("0xa3")][ra("0x45")];e.is("element",ra("0x34"))&&x[ra("0x53")](e)}n._suggestionFactory[ra("0x1a")](e,null,o)(i,r,s);for(const e of x)"$graveyard"!=e[ra("0x3a")][ra("0x7c")]&&t.unwrap(e)}))}))};a(ra("0x4f"),ra("0xa0")),a("insertion","discard"),a(ra("0x55"),ra("0xa0")),a(ra("0x55"),"discard"),n[ra("0xd")][ra("0x6d")](ra("0x4f"),ra("0x46"),ra("0x84"),(t=>{const e=t.map((t=>t[ra("0x11")]())),n=e[0][ra("0x93")](ra("0x44")),{minRow:r,maxRow:s}=i[ra("0x15")](e);o[ra("0x12")](n,{at:r,rows:s-r+1})})),n[ra("0xd")].registerCustomCallback(ra("0x4f"),ra("0x7f"),ra("0x84"),(t=>{const e=t.map((t=>t[ra("0x11")]())),n=e[0].findAncestor(ra("0x44")),{minColumn:r,maxColumn:s}=i._getCoordsForCells(e);o[ra("0x2c")](n,{at:r,columns:s-r+1})}));const c=(t,e)=>{if(!e[ra("0x4b")]||!e[ra("0x4b")][ra("0x8f")](ra("0x37")))return;const o=e[ra("0x82")][ra("0xc")],i=n[ra("0x47")]().filter((t=>t[ra("0x16")]&&t[ra("0x82")]&&t[ra("0x82")].tablePasteChainId==o));i[ra("0x5d")]&&e[ra("0x99")]()[ra("0x5d")]!=i.length&&i[ra("0x3c")](((t,e)=>(t.next=e,e[ra("0x21")]=t,e)))};function l(t,e=!0){const{id:o}=n._splitMarkerName(t[ra("0x18")]),i=[ra("0x24"),ra("0x8c")],r=n.activeMarkers.includes(t[ra("0x18")]);return r&&i[ra("0x53")](ra("0x32")),{classes:i,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(ra("0x86"),c,{priority:"high"}),n.on("suggestionUnloaded",c,{priority:ra("0x5c")}),t.model[ra("0x9b")][ra("0x56")]((()=>{let e=!1;const o=Array.from(t[ra("0x35")][ra("0x9b")][ra("0xf")][ra("0x20")]());for(const{name:i,data:r}of o){const{group:o,type:s,id:x}=n[ra("0x78")](i);if(ra("0x90")!=o||ra("0x55")!=s||r.oldRange)continue;if(!n[ra("0x71")](x))continue;const a=n[ra("0x3b")](x)[ra("0x13")](),c=t[ra("0x31")].get(ra("0x96")).me;for(const t of n[ra("0x47")]())if(t[ra("0x16")]&&t[ra("0x5")]==c&&ra("0x7b")==t[ra("0x3")]&&ra("0x43")==t[ra("0x4b")]&&t.getRanges()[ra("0x3e")]((t=>a.some((e=>e[ra("0x10")](t,!0))))))for(const n of t[ra("0x99")]())n[ra("0x16")]&&(n[ra("0x84")](),e=!0)}return e})),t.model[ra("0x9b")][ra("0x56")]((e=>{const o=t[ra("0x95")][ra("0x9")](ra("0x17"));if(!o||!o[ra("0x60")][ra("0x57")](e[ra("0x49")]))return!1;let i=!1;const r=t[ra("0x31")].get(ra("0x96")).me,s=t.model[ra("0x9b")][ra("0xf")][ra("0x39")](),x=Array[ra("0x70")](t.model.document[ra("0xf")][ra("0x20")]())[ra("0x38")]((({name:t,data:e})=>{const{group:o,subType:i,authorId:s}=n[ra("0x78")](t);return ra("0x90")==o&&ra("0x37")==i&&s==r.id&&!e.oldRange}));for(const t of s){if(ra("0x41")!=t[ra("0x3")]||ra("0x34")!=t.name||1!=t[ra("0x5d")])continue;const n=e[ra("0xb")](t[ra("0x8e")],t[ra("0x8e")][ra("0xa")](1));if(!x[ra("0x9e")]((({data:t})=>t[ra("0x76")][ra("0x42")](n))))for(const{name:t,data:o}of x)if(n[ra("0x10")](o.newRange)){e[ra("0x1d")](t,{range:n}),i=!0;break}}return i})),t[ra("0x35")][ra("0x9b")][ra("0x56")]((e=>{let o=!1;const i=t[ra("0x31")][ra("0x9")]("Users").me,r=n[ra("0x47")]()[ra("0x38")]((t=>t[ra("0x16")]&&t[ra("0x5")]==i)),s=new Set,x=new Set;for(const t of r)if(ra("0x37")==t.subType)for(const e of t[ra("0x9c")]()){const n=e[ra("0xa1")]().getContainedElement();if(n)if(n.is(ra("0x7e"),ra("0x34"))&&ca(n)){t[ra("0x7a")](e[ra("0x1")]),s.add(n),o=!0;const i=n[ra("0x40")],r=n.previousSibling,a=i&&i.is(ra("0x7e"),"tableCellSuggestion"),c=r&&r.is(ra("0x7e"),ra("0x34"));a&&!s[ra("0x57")](i)&&x[ra("0x8a")](i),c&&!s[ra("0x57")](r)&&x[ra("0x8a")](r)}else n.is(ra("0x7e"),"paragraph")&&n[ra("0x72")]&&(t[ra("0x7a")](e[ra("0x1")]),o=!0)}else if(ra("0x43")==t[ra("0x4b")]){if(!t[ra("0x82")]||!t.attributes.tablePasteChainId)continue;const e=t[ra("0x82")][ra("0x48")];if(e&&Object.keys(e)[ra("0x5d")])continue;const n=t[ra("0x82")][ra("0xc")];let i=!0,s=!0;for(const e of r)if(e[ra("0x4b")]&&e[ra("0x4b")][ra("0x8f")](ra("0x37"))){if(!e[ra("0x82")][ra("0xc")]){s=!1;break}if(e.id!=t.id&&e[ra("0x82")][ra("0xc")]==n){i=!1;break}}s&&i&&(t[ra("0x79")](),o=!0)}for(const t of s)e[ra("0x85")](t);for(const t of x)e[ra("0x2d")](t);return o})),t[ra("0x80")][ra("0x4")](ra("0x2f"))[ra("0x64")]({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>l(t),converterPriority:ra("0x5c")}),t[ra("0x80")][ra("0x4")]("dataDowncast").markerToHighlight({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>e[ra("0x33")][ra("0x7")]?l(t,!1):null,converterPriority:ra("0x5c")});const u=t[ra("0x8d")][ra("0x8b")];this[ra("0x6f")](u[ra("0x9b")],"clipboardOutput",((t,e)=>{const n=[];for(const t of u[ra("0x4e")](e.content)[ra("0x92")]())t.is(ra("0x7e"),ra("0x81"))&&n.push(t);u[ra("0x6")]((t=>{for(const e of n)t[ra("0x54")](t[ra("0x4e")](e),t[ra("0x98")](e)),t[ra("0x85")](e)}))}))}}function ca(t){if(t[ra("0x72")])return!0;const e=t[ra("0x52")](0);return e.is(ra("0x7e"),ra("0x4a"))&&e[ra("0x72")]}function la(t,e={},n){for(const{isAnchor:o,cellHeight:i,cellWidth:r}of n[ra("0x67")](t,{includeAllSlots:!0,...e}))if(!o||1!=i||1!=r)return!1;return!0}const ua=["type","formatInline","getAttribute","_suggestionFactory","commandParams","formatBlock","discard","resizeTableWidth","data","tableWidth","document","TrackChangesEditing","_descriptionFactory","handleResizeTableWidthCommand","registerCustomCallback","format","columnWidths","author","getContainedElement","getSuggestionCallback","editor","enableCommand","getSuggestions","afterInit","selection","handleSuggestionDescription","getTableColumnsWidths","resizeTable","plugins","locale","bind","formatGroupId","*Format:* resize table","getColumnGroupElement","get","accept","registerDescriptionCallback","model"];var da,ga;da=ua,ga=286,function(t){for(;--t;)da.push(da.shift())}(++ga);const fa=function(t,e){return ua[t-=0]};class ma extends t.Plugin{[fa("0x3")](){if(!this[fa("0x0")][fa("0x8")].has("TableColumnResizeEditing"))return;const t=this[fa("0x0")][fa("0x8")][fa("0xe")](fa("0x1d"));t[fa("0x1")](fa("0x19"),this[fa("0x1f")][fa("0xa")](this)),t[fa("0x15")][fa("0x20")](fa("0x17"),fa("0x7"),"accept",t[fa("0x15")][fa("0x25")](fa("0x17"),null,fa("0x18"))),t[fa("0x15")].registerCustomCallback(fa("0x17"),"resizeTable",fa("0x18"),t[fa("0x15")][fa("0x25")](fa("0x17"),null,fa("0xf"))),t[fa("0x1e")][fa("0x10")](this[fa("0x5")].bind(this))}handleResizeTableWidthCommand(t,e){const n=this[fa("0x0")][fa("0x8")].get(fa("0x1d")),o=this[fa("0x0")][fa("0x8")][fa("0xe")]("TableColumnResizeEditing"),i=e.table||this[fa("0x0")][fa("0x11")][fa("0x1c")][fa("0x4")].getSelectedElement();this[fa("0x0")][fa("0x11")].change((()=>{const r=o[fa("0xd")](i);let s=r?o[fa("0x6")](r):null,x=i[fa("0x14")]("tableWidth")||null;const a=e.tableWidth||x,c=e.columnWidths||s,l=this[fa("0x0")].plugins[fa("0xe")]("Users").me;for(const t of n[fa("0x2")]()){const e=t[fa("0x24")]();if("resizeTable"===t.subType&&e===i){t[fa("0x23")]!==l&&t.discard();const e=t[fa("0x1a")][fa("0x16")];x=e[0][fa("0x1b")],s=e[0][fa("0x22")];break}}t({table:i,tableWidth:a,columnWidths:c}),n.markBlockFormat(i,{commandName:"resizeTableWidth",commandParams:[{tableWidth:x,columnWidths:s}],formatGroupId:"resizeTable"},[],"resizeTable")}))}[fa("0x5")](t){if(fa("0x17")!=t[fa("0x12")]&&fa("0x13")!=t.type)return;const{data:e}=t;if(e&&fa("0x7")===e[fa("0xb")]){const t=fa("0xc");return{type:fa("0x21"),content:Qo(this[fa("0x0")][fa("0x9")],t)}}}}const ha=["has","enableCommand","TrackChangesEditing","plugins","get","insertTemplate","afterInit","Template"];var pa,ba;pa=ha,ba=245,function(t){for(;--t;)pa.push(pa.shift())}(++ba);const Ea=function(t,e){return ha[t-=0]};class _a extends t.Plugin{[Ea("0x1")](){const t=this.editor;t.plugins[Ea("0x3")](Ea("0x2"))&&t[Ea("0x6")][Ea("0x7")](Ea("0x5"))[Ea("0x4")](Ea("0x0"))}}const Ta=["locale","get","editor","_descriptionFactory","afterInit","insertTableOfContents","commands","ELEMENT_TABLE_OF_CONTENTS","registerElementLabel","tableOfContents","plugins"];var ya,Ca;ya=Ta,Ca=134,function(t){for(;--t;)ya.push(ya.shift())}(++Ca);const Aa=function(t,e){return Ta[t-=0]};class ka extends t.Plugin{[Aa("0x2")](){const t=this[Aa("0x0")];if(!t[Aa("0x4")][Aa("0xa")](Aa("0x3")))return;t[Aa("0x8")][Aa("0xa")]("TrackChangesEditing").enableCommand(Aa("0x3"));const e=t.plugins[Aa("0xa")]("TrackChangesEditing"),n=t[Aa("0x9")];e[Aa("0x1")][Aa("0x6")](Aa("0x7"),(t=>Qo(n,Aa("0x5"),t)))}}const Ia=["differ","_descriptionFactory","ELEMENT_TITLE","afterInit","getNearestSelectionRange","has","end","isTouching","model","document","suggestion","schema","_splitMarkerName","updateMarker","start","isCollapsed","nodeBefore","newRange","plugins","element","registerElementLabel","locale","title-content","forward"];var Sa,Ra;Sa=Ia,Ra=318,function(t){for(;--t;)Sa.push(Sa.shift())}(++Ra);const va=function(t,e){return Ia[t-=0]};class Na extends t.Plugin{[va("0x15")](){const t=this.editor;if(!t[va("0xc")][va("0x17")]("Title"))return;const e=t[va("0xc")].get("TrackChangesEditing");e[va("0x13")][va("0xe")](va("0x10"),(()=>Qo(t[va("0xf")],va("0x14")))),t[va("0x2")][va("0x3")].registerPostFixer((n=>{let o=!1;const i=Array.from(t.model.document[va("0x12")].getChangedMarkers());for(const{name:r,data:s}of i){const{group:i}=e[va("0x6")](r);if(va("0x4")!==i||!s[va("0xb")])continue;const x=s[va("0xb")],a=x[va("0x0")][va("0xa")];if(!a||!a.is(va("0xd"),va("0x10")))continue;if(!x[va("0x8")][va("0x1")](x.end))continue;const c=t.model[va("0x5")][va("0x16")](x[va("0x0")],va("0x11"));if(c&&c[va("0x9")]){const t=n.createRange(x[va("0x8")],c[va("0x8")]);t.isEqual(x)||(n[va("0x7")](r,{range:t}),o=!0)}o||(n.removeMarker(r),o=!0)}return o}))}}const La=["UndoEditing","enableCommand","editor","get","afterInit","TrackChangesEditing","undo","plugins"];var Ma,wa;Ma=La,wa=334,function(t){for(;--t;)Ma.push(Ma.shift())}(++wa);const Oa=function(t,e){return La[t-=0]};class Da extends t.Plugin{[Oa("0x6")](){const t=this[Oa("0x4")],e=t[Oa("0x1")][Oa("0x5")](Oa("0x7"));t[Oa("0x1")].has(Oa("0x2"))&&(e[Oa("0x3")](Oa("0x0")),e[Oa("0x3")]("redo"))}}const Fa=["enableCommand","TableCaptionEditing","get","has","afterInit","plugins","TrackChangesEditing","requires"];var Ba,Pa;Ba=Fa,Pa=365,function(t){for(;--t;)Ba.push(Ba.shift())}(++Pa);const Ua=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{static get[Ua("0x2")](){return[zx]}[Ua("0x7")](){const t=this.editor;t[Ua("0x0")][Ua("0x6")](Ua("0x4"))&&t[Ua("0x0")][Ua("0x5")](Ua("0x1"))[Ua("0x3")]("toggleTableCaption")}}const Ga=["change","table","getAttribute","tableCellBorderColor","enableCommand","tableBackgroundColor","selection","_descriptionFactory","getSuggestionCallback","TablePropertiesEditing","markBlockFormat","getContainedElement","enqueueChange","tableAlignment","document","get","tableCellProperties","removeAttribute","findAncestor","tableCellVerticalAlignment","tableCellBorderStyle","TableCellPropertiesEditing","tableBorderColor","data","afterInit","commandParams","getSuggestions","TrackChangesTableProperties","*Format:* change table cell properties","model","_handlePropertyChange","registerDescriptionCallback","discard","_suggestionFactory","locale","join","handleDiscardAction","_getSuggestion","plugins","tableCellBackgroundColor","editor","tableWidth","tableBorderStyle","registerCustomCallback","formatBlock","setAttribute","format","tableBorderWidth","tableCellBorderWidth","pluginName","tableCellWidth","tableHeight","tableProperties","subType","accept","has","TrackChangesEditing","tableCellPadding","start","getSelectionAffectedTableCells"];var Va,Ha;Va=Ga,Ha=374,function(t){for(;--t;)Va.push(Va.shift())}(++Ha);const za=function(t,e){return Ga[t-=0]};class Wa extends t.Plugin{constructor(t){super(t),this.tableProperties=[za("0x8"),za("0x1c"),za("0x21"),za("0x3b"),za("0x1b"),za("0x25"),za("0x33")],this[za("0x2")]=[za("0x31"),za("0x6"),za("0x22"),za("0x2b"),za("0x24"),"tableCellHeight",za("0x19"),"tableCellHorizontalAlignment",za("0x5")]}static get[za("0x23")](){return za("0xd")}[za("0xa")](){const t=this.editor[za("0x18")][za("0x1")](za("0x2a"));if(this.editor.plugins[za("0x29")](za("0x37"))){for(const e of this[za("0x26")])t[za("0x32")](e,((t,n)=>{const o=this[za("0x1a")].model[za("0x0")].selection.getFirstPosition()[za("0x4")](za("0x2f"));this._handlePropertyChange(e,[o],this[za("0x26")],za("0x26"),t,n)}));t._suggestionFactory[za("0x1d")]("formatBlock","tableProperties",za("0x28"),t[za("0x13")].getSuggestionCallback(za("0x1e"),null,za("0x12"))),t[za("0x13")].registerCustomCallback(za("0x1e"),"tableProperties","discard",((t,e)=>this[za("0x16")](this.tableProperties,t,e))),t[za("0x13")][za("0x1d")]("formatBlock",za("0x26"),za("0x15"),(()=>!1))}if(this.editor[za("0x18")][za("0x29")](za("0x7"))){for(const e of this.tableCellProperties)t[za("0x32")](e,((t,n)=>{const o=this.editor[za("0x18")][za("0x1")]("TableUtils")[za("0x2d")](this[za("0x1a")].model[za("0x0")][za("0x34")]);this._handlePropertyChange(e,o,this[za("0x2")],za("0x2"),t,n)}));t[za("0x13")][za("0x1d")](za("0x1e"),za("0x2"),za("0x28"),t[za("0x13")][za("0x36")](za("0x1e"),null,za("0x12"))),t[za("0x13")].registerCustomCallback("formatBlock",za("0x2"),za("0x12"),((t,e)=>this[za("0x16")](this[za("0x2")],t,e))),t[za("0x13")][za("0x1d")](za("0x1e"),za("0x2"),"join",(()=>!1))}t[za("0x35")][za("0x11")]((t=>this.handleSuggestionDescription(t)))}[za("0x10")](t,e,n,o,i,r){const s=this.editor[za("0x18")][za("0x1")](za("0x2a"));this.editor[za("0xf")][za("0x3a")](r.batch,(()=>{for(const t of e)if(this._getSuggestion(t,o))i(r);else{const e={};for(const o of n){const n=t[za("0x30")](o);void 0!==n&&(e[o]=n)}i(r),s[za("0x38")](t,{commandParams:[e]},[],o)}}))}handleDiscardAction(t,e,n){const o=e[0][za("0x2c")].nodeAfter,i=n[za("0xb")][0];this[za("0x1a")][za("0xf")][za("0x2e")]((e=>{for(const n of t)void 0!==i[n]?e[za("0x1f")](n,i[n],o):e[za("0x3")](n,o)}))}handleSuggestionDescription(t){if(t[za("0x9")])switch(t[za("0x27")]){case za("0x26"):return{type:"format",content:Qo(this[za("0x1a")][za("0x14")],"*Format:* change table properties")};case za("0x2"):return{type:za("0x20"),content:Qo(this[za("0x1a")][za("0x14")],za("0xe"))}}}[za("0x17")](t,e){const n=this[za("0x1a")][za("0x18")][za("0x1")]("TrackChangesEditing");for(const o of n[za("0xc")]({skipNotAttached:!0})){const n=o[za("0x39")]();if(o.subType===e&&n===t)return o}return null}}var Ka=Function.prototype,qa=Object.prototype,Xa=Ka.toString,$a=qa.hasOwnProperty,Za=Xa.call(Object);const Ya=function(t){if(!xe(t)||"[object Object]"!=gt(t))return!1;var e=xn(t);if(null===e)return!0;var n=$a.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Xa.call(n)==Za};const Ja=function(t){return Ya(t)?void 0:t};var Qa=it?it.isConcatSpreadable:void 0;const tc=function(t){return ge(t)||de(t)||!!(Qa&&t&&t[Qa])};const ec=function t(e,n,o,i,r){var s=-1,x=e.length;for(o||(o=tc),r||(r=[]);++s<x;){var a=e[s];n>0&&o(a)?n>1?t(a,n-1,o,i,r):sn(r,a):i||(r[r.length]=a)}return r};const nc=function(t){return(null==t?0:t.length)?ec(t,1):[]};const oc=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)};var ic=Math.max;const rc=function(t,e,n){return e=ic(void 0===e?t.length-1:e,0),function(){for(var o=arguments,i=-1,r=ic(o.length-e,0),s=Array(r);++i<r;)s[i]=o[e+i];i=-1;for(var x=Array(e+1);++i<e;)x[i]=o[i];return x[e]=n(s),oc(t,this,x)}};const sc=function(t){return function(){return t}};const xc=ee?function(t,e){return ee(t,"toString",{configurable:!0,enumerable:!1,value:sc(e),writable:!0})}:function(t){return t};var ac=Date.now;const cc=function(t){var e=0,n=0;return function(){var o=ac(),i=16-(o-n);if(n=o,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(xc);const lc=function(t){return cc(rc(t,void 0,nc),t+"")}((function(t,e){var n={};if(null==t)return n;var o=!1;e=uo(e,(function(e){return e=po(e,t),o||(o=e.length>1),e})),re(t,dn(t),n),o&&(n=to(n,7,Ja));for(var i=e.length;i--;)Ko(n,e[i]);return n})),uc=["_trackFormatChanges","newRange","requires","change","key","options","@external","Users","getChanges","isOwn","_addThreadToSuggestion","ck-suggestion-marker","find","_saved","acceptAllSuggestions","unbindElementFromMarkerName","isArray","data-suggestion","markInlineFormat","createRangeOn","discardAllSuggestions","getIntersection","resolve","accept","marker-count","ck-suggestion-marker--active","rename","notReady","removeAttribute","suggestion-type","update:suggestion","suggestion","markDeletion","suggestionChanged","editingDowncast","_registerDefaultCallbacks","getRange","forward","removeMarkers","default","$marker","createRangeIn","getMultiRangeId","markAttributeChange","change:data","isDocumentOperation","warn","getAllAdjacentSuggestions","_isDataLoaded","containerElement","trackChanges","registerPostFixer","_suggestions","moveTargetPosition","execute","data","hasSuggestion","setTo","_checkSuggestionCorrectness","getNearestSelectionRange","writer","showSuggestionHighlights","getFirstRange","init","markerToHighlight","commentThread","substring","push","discardSuggestion","item","createPositionBefore","getUser","open","activeMarkers","track-changes-suggestion-data-mismatch","consume","addSuggestion","low","substr","_customCallbacks","addMarker:suggestion","_addSuggestionMarker","isEqual","_suggestionFactory","element","previous","schema","_processAttributeSuggestions","markerNameToElements","selection","getAttribute","catch","external:","howMany","isLocal","tablePasteChainId","toUpperCase","batch","mapper","_adapter","_registerBlockAttribute","_getAuthorFromId","forEach","addClass","elementEnd","containsPosition","never","differ","locale","comments","isTouching","getChangedMarkers","insertion:accept","$elementName","markMultiRangeBlockFormat","every","commands","markMultiRangeInsertion","isObject","fire","editor","removeMarker","pop","_recordAttributeChanges","getSuggestionCallback","formatGroupId","type","dataDowncast","deletion:accept","_enableDefaultAttributesIntegration","track-changes-adapter-already-set","isExternal","Creating a suggestion for attribute with too long attribute key. This may lead to errors. Change the attribute key to a value shorter than 37 characters.","formatInline:chain","getAncestors","insertion:chain","markInsertion","_refreshAttributeSuggestionsChain","end","filter","suggestion:attribute:","createSelection","_isForcedDefaultExecutionBlock","_handleNewSuggestionMarker","startsWith","track-changes-suggestion-not-found","join","addHighlight","_isBlockAttribute","createElement","position","always","registerCustomCallback","next","addRange","oldValue","CommentsRepository","_initAriaMarkerChangeAnnouncements","removeMarker:suggestion:attribute","isSelectable","_reduceExistingSuggestions","isLimit","createRange","head","chain","stopListening","setAttribute","sort","insertion:","backward","applyOperation","removeClass","trackChangesCommand","oldRange","after","_refreshSuggestionsChain","_joinSuggestions","track-changes-user-not-found","discardSelectedSuggestions","toJSON","from","getContainedElement","subType","markBlockFormat","formatBlock:","has","updateMarker","fromRange","isAtEnd","deletion","getDifference","deleteContent","markers","define","_processAttributeChanges","_rangeIsInLocalUserInsertion","getRanges","isCollapsed","PENDING_ACTION_SUGGESTION","containsRangeInObject","commandName","trackChanges.trackFormatChanges","removed","getLastMatchingPosition","PendingActions","format","newValue","_defaultCallbacks","high","normal","formatBlock","skipNestingCheck","fromCharCode","isInContent","root","attributeOldValue","formatBlock:chain","isUndo","_descriptionFactory","stop","keys","acceptSelectedSuggestions","error-saving-suggestion-data-suggestion-discarded","isNextTo","trackChanges.mergeNestedSuggestions","$text","creator","addSuggestionData","rethrowUnexpectedError","unbind","widget","removeMarker:suggestion:formatBlock","set","multi","remove","author","isBefore","formatInline:accept","_mergeNestedSuggestions","move","forceDefaultExecution","setSelection","_blockAttributeKeys","_model","isInsideObject","splitPosition","_reduceSuggestionAttributeRange","assign","plugins","_updateSuggestionData","enqueueChange","parent","_joinWithAdjacentSuggestions","FORMATTING","consumable","range","ready","accepted","suggestionLoaded","getItems","createdAt","before","_getMarkerAnnouncementText","group","oldName","length","_findSuggestions","rootName","meta","suggestion:","refresh","attribute","createPositionAt","collaboration.channelId","deletion:chain","addMarkerName","nodeAfter","originalSuggestionId","name","listenTo","start","deletion:discard","some","_setSuggestionRange","delete","elementStart","history","multipleBlocks","insertion:join","enableCommand","formatInline","add","formatBlock:discard","lowest","highest","_editor","markerToData","getSuggestion","hasComments","authoredAt","getFirstMarker","hasCommentThread","newName","acceptSuggestion","_setSuggestionData","ENTER","ck-suggestion-marker-","version","nodeBefore","markerName","_suggestionState","_enabledCommands","discard","groupId","markerReady","splice","ariaLiveAnnouncer","insertContent","isMultiRange","deletion:","addMarker:suggestion:formatBlock","_breakSuggestionMarker","_commentsRepository","reconvertMarker","_inlineAttributeKeys","_onDiscard","split","_getExternalAuthor","attributes","suggestionUnloaded","updateSuggestion","map","formatBlock:accept","insertion","getCustomProperty","_registerInlineAttribute","conversion","for","isAfter","track-changes-enable-command-twice","_cutOutSuggestionMarker","isIntersecting","document","adapter","_createSuggestion","includes","size","track-changes-adapter-missing-getsuggestion","containsRange","$graveyard","getShiftedBy","config","upcast","elementToElement","_splitMarkerName","isIntersectingWithRange","clone","addMarker:suggestion:attribute","formatInline:join","attribute:","ck-suggestion-marker-formatBlock","enableReadOnlyMode","attribute:join","model","$textProxy","isRemovable","getSuggestions","attribute:discard","then","value","_removeSuggestion","values","buildSuggestion","get","_getSuggestionData","_recordAttributeSuggestionsFromVersion","insert","targetPosition"];var dc,gc;dc=uc,gc=175,function(t){for(;--t;)dc.push(dc.shift())}(++gc);const fc=function(t,e){return uc[t-=0]},mc=fc("0x13c");class hc extends t.Plugin{static get[fc("0xcd")](){return[fc("0x167"),r.Users,t.PendingActions,ci,fi,_i,ki,Li,Fi,Vi,tr,rr,lr,hr,Tr,Sr,Mr,Pr,Hr,Xr,Qr,is,fs,cs,Es,As,vs,Os,Us,Ks,Ys,nx,xx,dx,bx,Cx,Rx,Ox,Ux,zx,Zx,ea,ja,aa,ma,ka,Wa,_a,Na,Da]}static get pluginName(){return"TrackChangesEditing"}constructor(t){function e(t){return t[fc("0x9c")]((t=>String[fc("0x25")](t))).join("")}super(t),this._recordAttributeSuggestionsFromVersion=null,this[fc("0x39")]("activeMarkers",[]),this.on("change:activeMarkers",((e,n,o,i)=>{this[fc("0x44")][fc("0xce")]((()=>{for(const e of[...i,...o])this[fc("0x44")][fc("0x11")][fc("0xa")](e)&&t.editing[fc("0x94")](e)}))})),this[fc("0x2b")]=new ii(this[fc("0x143")].model[fc("0x121")],this[fc("0x143")][fc("0x137")]),this[fc("0x12e")]=null,this[fc("0x11e")]=new pc(this[fc("0x143")]),this[fc("0xff")]=new Map,this[fc("0x93")]=t[fc("0x49")][fc("0xc6")](fc("0x167")),this._enabledCommands=new Set,this[fc("0x44")]=this[fc("0x143")][fc("0xbc")],this[fc("0x87")]=new WeakMap,this[fc("0x159")]=!1,this._blockAttributeKeys=new Set([fc("0x13c")]),this._inlineAttributeKeys=new Set,t[fc("0xb0")][fc("0x12")](fc("0x1a"),fc("0xf2")),this[fc("0xcb")]=t[fc("0xb0")][fc("0xc6")](fc("0x1a")),t.config[fc("0x12")](fc("0x31"),!0),this[fc("0x3f")]=t.config.get(fc("0x31")),this.trackChangesCommand=new d(t,this[fc("0x88")]),this[fc("0x168")](),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,50,52,53,50])}[fc("0x10a")](){const t=this[fc("0x143")],n=(t,e)=>{if("attribute"!=t)return fc("0x83")+t;const n=e.split("|")[0];return this[fc("0x15f")](n)?fc("0xb9"):"ck-suggestion-marker-formatInline"};t[fc("0xa1")][fc("0xa2")](fc("0xed")).markerToHighlight({model:fc("0xea"),view:t=>{const{id:e,type:o,subType:i}=this[fc("0xb3")](t[fc("0x86")]),r=[fc("0xd6"),n(o,i)];let s=3e3;return this[fc("0x114")][fc("0xaa")](t[fc("0x86")])&&(r[fc("0x10e")](fc("0xe4")),s=3010),fc("0xe")==o&&(s+=5),{classes:r,attributes:{"data-suggestion":e},priority:s}}}),t.conversion[fc("0xa2")]("dataDowncast")[fc("0x74")]((e=>{e.on(fc("0x11b"),((e,n,o)=>{if(!o[fc("0xd0")][fc("0x108")])return;const i=n[fc("0x110")];if(!i)return;const r=o.mapper.toViewElement(i);t[fc("0xbc")][fc("0x121")][fc("0x141")](i)&&r&&!r[fc("0x9f")](fc("0x37"))&&r.is(fc("0xfc"))&&(0,x.toWidget)(r,o[fc("0x107")])}),{priority:"high"})})),t[fc("0xa1")].for(fc("0x14a"))[fc("0x10b")]({model:fc("0xea"),view:(t,e)=>{if(!e[fc("0xd0")].showSuggestionHighlights)return null;const{type:o,subType:i}=this[fc("0xb3")](t[fc("0x86")]);return{classes:[fc("0xd6"),n(o,i)],priority:3e3}}});const o=({showActiveMarkers:e=!0,isAttributeSuggestion:n=!1}={})=>(o,i,r)=>{if(!i[fc("0x110")])return;const{id:s}=this[fc("0xb3")](i[fc("0x86")]);if(n){const t=Rc(this[fc("0xff")][fc("0xc6")](s));if(!this._isBlockAttribute(t))return}if(i.item.is(fc("0x124")))return void r.consumable[fc("0x116")](i[fc("0x110")],o.name);const x=r[fc("0x12d")].toViewElement(i.item);if(i.item.is(fc("0x11f"))&&t[fc("0xbc")].schema.isBlock(i.item)&&!x[fc("0x9f")](fc("0x15e"))){r[fc("0x107")][fc("0x132")]([fc("0xd6"),fc("0xb9")],x),r[fc("0x107")][fc("0x171")](fc("0xdc"),s,x),r.mapper.bindElementToMarker(x,i[fc("0x86")]),e&&(this[fc("0x114")][fc("0xaa")](i[fc("0x86")])?r[fc("0x107")].addClass(fc("0xe4"),x):r[fc("0x107")].removeClass(fc("0xe4"),x));for(const e of t[fc("0xbc")][fc("0xf4")](i[fc("0x110")])[fc("0x54")]())r.consumable.consume(e,o[fc("0x67")]);r[fc("0x4f")][fc("0x116")](i[fc("0x110")],o[fc("0x67")])}};t[fc("0xa1")][fc("0xa2")](fc("0x14a"))[fc("0x74")]((t=>{t.on(fc("0x91"),((t,e,n)=>{n[fc("0xd0")][fc("0x108")]&&o({showActiveMarkers:!1})(t,e,n)}),{priority:fc("0x77")})})),t[fc("0xa1")].for("dataDowncast")[fc("0x74")]((t=>{t.on(fc("0xb6"),((t,e,n)=>{n[fc("0xd0")][fc("0x108")]&&o({showActiveMarkers:!1,isAttributeSuggestion:!0})(t,e,n)}),{priority:fc("0x77")})})),t[fc("0xa1")][fc("0xa2")]("dataDowncast")[fc("0x79")]({model:fc("0xea"),view:(t,e)=>e[fc("0xd0")][fc("0x108")]?null:{group:fc("0xea"),name:t[fc("0x119")](11)}}),t.conversion[fc("0xa2")]("upcast")[fc("0xb2")]({view:{name:fc("0xea"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=fc("0x5e")+t[fc("0x125")](fc("0xe8"))+":"+t[fc("0x125")]("id");return t[fc("0x125")](fc("0xe3"))&&(n+=":"+t[fc("0x125")]("marker-count")),e[fc("0x160")](fc("0xf3"),{"data-name":n})}}),t.conversion.for(fc("0xb1")).dataToMarker({view:fc("0xea")}),t[fc("0xa1")].for("editingDowncast")[fc("0x74")]((t=>{t.on(fc("0x91"),o(),{priority:fc("0x21")})})),t.conversion[fc("0xa2")](fc("0xed"))[fc("0x74")]((t=>{t.on("addMarker:suggestion:attribute",o({isAttributeSuggestion:!0}),{priority:fc("0x21")})})),t[fc("0xa1")][fc("0xa2")](fc("0xed"))[fc("0x74")]((t=>{t.on(fc("0x38"),((t,e,n)=>{const o=n[fc("0x12d")][fc("0x123")](e[fc("0x86")]);if(o)for(const t of o)t.getCustomProperty("addHighlight")||(n[fc("0x107")].removeClass([fc("0xd6"),fc("0xb9"),fc("0xe4")],t),n.writer[fc("0xe7")]("data-suggestion",t),n[fc("0x12d")][fc("0xda")](t,e[fc("0x86")]))}),{priority:fc("0x21")})})),t[fc("0xa1")][fc("0xa2")](fc("0xed"))[fc("0x74")]((t=>{t.on(fc("0x169"),((t,e,n)=>{const o=n[fc("0x12d")].markerNameToElements(e[fc("0x86")]);if(!o)return;const{id:i}=this._splitMarkerName(e[fc("0x86")]),r=Rc(this._suggestions[fc("0xc6")](i));if(this[fc("0x15f")](r))for(const t of o)t.getCustomProperty("addHighlight")||(n.writer[fc("0x176")]([fc("0xd6"),fc("0xb9"),"ck-suggestion-marker--active"],t),n[fc("0x107")][fc("0xe7")](fc("0xdc"),t),n[fc("0x12d")].unbindElementFromMarkerName(t,e[fc("0x86")]))}),{priority:fc("0x21")})})),t[fc("0xbc")].document[fc("0xfe")]((e=>{let n=!1;const o=Array[fc("0x5")](t[fc("0xbc")][fc("0xa7")][fc("0x136")][fc("0x13a")]()),i=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,subType:l,id:u}=this[fc("0xb3")](x);if("suggestion"!==o)continue;const d=this[fc("0xff")][fc("0xc6")](u);if(null!=a[fc("0xcc")]){"formatInline"==c&&(n=n||_c(a.newRange,x,e,t[fc("0xbc")][fc("0x121")]));const o=fc("0x60")==c&&this._isBlockAttribute(l[fc("0x97")]("|")[0]);if(a[fc("0xcc")][fc("0x16")]||fc("0xae")==a.newRange.root[fc("0x5c")]||"formatBlock"==c&&!yc(a[fc("0xcc")])||o&&!yc(a[fc("0xcc")])||"deletion"==c&&(Ec(s=a[fc("0xcc")])||(r=s)[fc("0x69")][fc("0x4c")]==r[fc("0x155")][fc("0x85")]&&r.start[fc("0xd")]))e.removeMarker(x),n=!0;else{if(!d||!d.isInContent)continue;i[fc("0x74")](d)}}}var r,s;return i.size>0&&(n=!!this[fc("0x4d")](i)||n),n})),t.model[fc("0xa7")][fc("0xfe")]((e=>{let n=!1;for(const o of t[fc("0xbc")][fc("0xa7")][fc("0x136")][fc("0xd3")]())if("insert"==o.type)for(const o of this[fc("0xff")][fc("0xc4")]()){if(o[fc("0x8f")]||!o[fc("0x26")])continue;const i=fc("0x23")==o.type,r=Rc(o),s=r&&this._isBlockAttribute(r);if(!i&&!s)continue;const x=o[fc("0x109")]();if(x.start[fc("0x4c")]!=x.end[fc("0x4c")]&&!x[fc("0x155")][fc("0xd")]){const i=t.model[fc("0x61")](x.start[fc("0x65")],fc("0x155")),r=t[fc("0xbc")][fc("0x16d")](x[fc("0x69")],i);e[fc("0xb")](o.getFirstMarker(),{range:r}),n=!0}}return n})),t[fc("0xbc")][fc("0xa7")][fc("0xfe")]((t=>this[fc("0x13")](t))),t.model[fc("0xa7")][fc("0xfe")]((t=>!t[fc("0x12c")].isLocal&&this[fc("0x122")](t))),t.model[fc("0x11")].on(fc("0xe9"),((t,e,n)=>{if(null==n){const{id:t}=this[fc("0xb3")](e[fc("0x67")]),n=this[fc("0xff")][fc("0xc6")](t);n&&n.addMarkerName(e[fc("0x67")])}})),t.model[fc("0xa7")].on(fc("0xf7"),(()=>{const e=Array.from(t[fc("0xbc")][fc("0xa7")].differ[fc("0x13a")]())[fc("0x156")]((t=>fc("0xea")===this._splitMarkerName(t[fc("0x67")])[fc("0x58")]));if(0===e[fc("0x5a")])return;e[fc("0x172")](((t,e)=>{const n=t.data[fc("0x178")],o=e[fc("0x102")][fc("0x178")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[fc("0x69")][fc("0x3d")](o[fc("0x69")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:i}of e){const{id:e}=this[fc("0xb3")](t);if(null===i[fc("0x178")]){const e=this[fc("0x15a")](t);o.add(e)}else{const t=this[fc("0xff")][fc("0xc6")](e);null!==i.newRange||t[fc("0x26")]?(n.add(t[fc("0x16e")]),o.add(t)):this[fc("0xc3")](t)}}o.size>0&&this[fc("0x0")](o);for(const t of n)this[fc("0x142")](fc("0xec"),t)})),t[fc("0xbc")].on(fc("0x175"),((e,n)=>{const o=n[0];if(!this[fc("0xff")].size)return;if(!o[fc("0xf8")])return;if(o[fc("0x12c")][fc("0x2a")]||!o[fc("0x12c")][fc("0x129")])return;let i,r;switch(o[fc("0x149")]){case fc("0xc9"):i=t[fc("0xbc")][fc("0x61")](o.position),r=i[fc("0xaf")](o[fc("0x128")]);break;case"split":i=t[fc("0xbc")].createPositionAt(o[fc("0x46")]),r=t.model[fc("0x61")](o[fc("0x100")]);break;case fc("0x40"):i=t[fc("0xbc")].createPositionAt(o[fc("0xca")]),r=i.getShiftedBy(o[fc("0x128")]);break;default:return}const s=t[fc("0xbc")][fc("0x16d")](i,r);t[fc("0xbc")].change((()=>{for(const{suggestion:t,meta:e}of this._findSuggestions(s)){if(t.isMultiRange)continue;if(fc("0x73")==t[fc("0x149")])continue;const n=Rc(t);if(n&&this._isBlockAttribute(n)&&"split"!=o[fc("0x149")])continue;const x=t[fc("0x102")]&&t.data[fc("0x70")];(fc("0x23")!=t[fc("0x149")]||fc("0x97")==o.type&&!x)&&(e[fc("0x18")]||fc("0x9e")==t.type&&e[fc("0xd4")]||t[fc("0x109")]()[fc("0xad")](s)&&this[fc("0x92")](t,i,r))}}))}),{priority:fc("0x76")}),t.model.on(fc("0x10"),((e,n)=>{const o=n[0],i=n[1];if(i&&i[fc("0x41")])return;if(this[fc("0x159")])return;if(!this[fc("0x177")][fc("0xc2")])return;if(o[fc("0x16")])return;const r=t[fc("0xbc")][fc("0x121")],{start:s,end:x}=o[fc("0x109")](),a=s[fc("0x65")]&&r.isLimit(s.nodeAfter)?null:r.getNearestSelectionRange(s,fc("0xf0")),c=x[fc("0x85")]&&r[fc("0x16c")](x[fc("0x85")])?null:r[fc("0x106")](x,fc("0x174")),l=t.model[fc("0x16d")](a?a.start:s,c?c[fc("0x155")]:x);t[fc("0xbc")][fc("0xce")]((e=>{this[fc("0xeb")](l);const n=t[fc("0xbc")][fc("0x121")].getNearestSelectionRange(l[fc("0x69")]);o.is("documentSelection")?e[fc("0x42")](n):o[fc("0x104")](n)})),e.stop()}),{priority:e.priorities[fc("0x22")]+10}),t[fc("0xbc")].on(fc("0x8e"),((e,n)=>{const o=n[n[fc("0x5a")]-1];o&&o.forceDefaultExecution||this[fc("0x159")]||this[fc("0x177")][fc("0xc2")]&&(t[fc("0xbc")][fc("0xce")]((()=>{let o=t.model[fc("0x8e")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e.return=o[fc("0xb5")]();const i=o[fc("0x155")][fc("0x85")],r=t[fc("0xbc")][fc("0x121")];i&&r.isBlock(i)&&!r.isObject(i)&&(o=t[fc("0xbc")][fc("0x16d")](o.start,t.model[fc("0x61")](i,"end"))),this[fc("0x153")](o)})),e[fc("0x2c")]())}),{priority:fc("0x21")}),this.editor[fc("0x13f")][fc("0x74")](fc("0xfd"),this[fc("0x177")]),this[fc("0x72")](fc("0xfd"));const i=new p(t,this._suggestions);t[fc("0x13f")].add(fc("0x80"),i),this[fc("0x72")](fc("0x80"));const r=new y(t,this._suggestions);t[fc("0x13f")][fc("0x74")](fc("0x10f"),r),this.enableCommand(fc("0x10f")),t[fc("0x13f")].add(fc("0xd9"),new D(t,i,this[fc("0xff")])),this.enableCommand(fc("0xd9")),t[fc("0x13f")][fc("0x74")](fc("0xdf"),new D(t,r,this[fc("0xff")])),this.enableCommand(fc("0xdf")),t.commands.add("acceptSelectedSuggestions",new j(t,i,this[fc("0xff")])),this[fc("0x72")](fc("0x2e")),t[fc("0x13f")].add(fc("0x3"),new j(t,r,this[fc("0xff")])),this[fc("0x72")](fc("0x3"));const s=t[fc("0x49")][fc("0xc6")](fc("0x167"));this[fc("0x68")](s,"addComment",((t,{threadId:e})=>{const n=this[fc("0xff")][fc("0xc6")](e);n&&n[fc("0x10c")]&&1===n.commentThread[fc("0x5a")]&&this[fc("0x4a")](e,{hasComments:!0})}),{priority:fc("0x118")}),this[fc("0x68")](s,"removeComment",((t,{threadId:e})=>{const n=this[fc("0xff")].get(e);n&&n.commentThread&&!n[fc("0x10c")][fc("0x5a")]&&this[fc("0x4a")](e,{hasComments:!1})}),{priority:fc("0x118")})}set[fc("0xa8")](t){if(this[fc("0x12e")])throw new e.CKEditorError(fc("0x14d"),this);this[fc("0x12e")]=t}get[fc("0xa8")](){return this[fc("0x12e")]}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[fc("0xff")][fc("0xc4")]())t&&!e[fc("0x26")]||n[fc("0x10e")](e);return e?n[fc("0x9c")]((t=>t[fc("0x4")]())):n}[fc("0x7a")](t){const n=this[fc("0xff")][fc("0xc6")](t);if(!n)throw new e.CKEditorError(fc("0x15c"),this);return n}[fc("0x103")](t){return this._suggestions.has(t)}[fc("0x34")](t){const{authorId:e,id:n,attributes:o}=t,[i,r]=t[fc("0x149")][fc("0x97")](":"),s=this[fc("0xff")].get(n)||this._createSuggestion(i,r,n,e,o);if(this[fc("0xd5")](s),this[fc("0x105")](s,i,r||null,e),s[fc("0x55")]=t[fc("0x55")],s[fc("0xfb")]=!0,o&&o[fc("0xd1")]){const t=o[fc("0xd1")],e=this[fc("0x98")](t.authorName);s[fc("0x7c")]=t[fc("0x55")],s.author=e,s[fc("0x14e")]=!0}else s.authoredAt=t.createdAt;switch(t[fc("0x102")]&&(s[fc("0x102")]=t[fc("0x102")]),t[fc("0x99")]&&(s.attributes=t.attributes),this[fc("0x12e")]&&this._adapter[fc("0x117")]||(s[fc("0xd8")]=!0),this[fc("0x87")][fc("0xc6")](s)){case fc("0xe6"):this[fc("0x87")][fc("0x39")](s,"dataReady");break;case"markerReady":s[fc("0x26")]?(this[fc("0x0")](new Set([s])),this[fc("0x4d")](new Set([s])),this[fc("0x87")][fc("0x39")](s,fc("0x51")),this[fc("0x142")](fc("0x53"),s)):this[fc("0x87")].set(s,fc("0x1b"))}return s}acceptSuggestion(t){this[fc("0x41")]((()=>{this[fc("0x143")][fc("0xbc")].change((()=>{for(const e of t[fc("0xfa")]())e.accept()}))}))}[fc("0x10f")](t){this[fc("0x41")]((()=>{this[fc("0x143")][fc("0xbc")][fc("0xce")]((()=>{for(const e of t.getAllAdjacentSuggestions())e.discard()}))}))}enableCommand(t,n){const o=this[fc("0x143")][fc("0x13f")][fc("0xc6")](t);if(!o)throw new e.CKEditorError("track-changes-command-not-found",this,{commandName:t});if(this[fc("0x88")].has(o))throw new e.CKEditorError(fc("0xa4"),this,{commandName:t});this._enabledCommands.add(o),n&&o.on(fc("0x101"),((t,e)=>{this[fc("0x177")][fc("0xc2")]&&(this[fc("0x159")]||(e.length>0&&e[e[fc("0x5a")]-1]&&e[e[fc("0x5a")]-1][fc("0x41")]?e[fc("0x145")]():(t.return=n(((...t)=>o[fc("0x101")](...t,{forceDefaultExecution:!0})),...e),t[fc("0x2c")]())))}),{priority:fc("0x21")})}[fc("0x41")](t){let n,o;const i=this[fc("0x159")];this[fc("0x159")]=!0;try{n=t()}catch(t){o=t}return i||(this[fc("0x159")]=!1),o&&e.CKEditorError[fc("0x35")](o,this),n}[fc("0x153")](t,n=null,o={}){if(t[fc("0x16")])return null;const i=this[fc("0x143")][fc("0x49")].get("Users").me;for(const{suggestion:e,meta:i}of this._findSuggestions(t,fc("0x9e")))if(i.isOwn){if(!i[fc("0x30")]){if(i[fc("0x18")]){if(!this[fc("0x3f")]||!Ic(e,o))continue;return e}if(Ic(e,o))return e;this[fc("0x92")](e,t[fc("0x69")],t[fc("0x155")]);break}if(n==e[fc("0x7")]&&Ic(e,o)){const n=e[fc("0x109")]();return n[fc("0x69")].isEqual(t[fc("0x155")])?this._setSuggestionRange(e,this._model[fc("0x16d")](t[fc("0x69")],n[fc("0x155")])):this[fc("0x6c")](e,this[fc("0x44")][fc("0x16d")](n.start,t[fc("0x155")])),e}}const r=(0,e.uid)(),s=i.id,x=n?fc("0x173")+n:fc("0x9e"),a=this[fc("0x81")]({id:r,type:x,createdAt:new Date,authorId:s,attributes:o});return this[fc("0x11c")](x,r,s,t),a}[fc("0x140")](t,n=fc("0x3a"),o={}){const i=this.editor[fc("0x49")][fc("0xc6")](fc("0xd2")).me,r=this[fc("0x11e")][fc("0x147")]("insertion",n,fc("0x15d"));for(const e of this[fc("0xbf")]())if(e[fc("0x3c")].id==i.id&&fc("0x9e")==e.type&&e.subType==n&&Ic(e,o)&&(r(e[fc("0x15")](),t)||r(t,e[fc("0x15")]()))){for(const n of t)e[fc("0x165")](n);return e}for(const{suggestion:e,meta:n}of this._findSuggestions(t,fc("0x9e"))){if(!n[fc("0xd4")])continue;if(!this._mergeNestedSuggestions&&n[fc("0x18")])continue;if(!Ic(e,o))continue;let i=!0;for(const n of e.getRanges())for(const e of t)if(!n[fc("0xad")](e)){i=!1;break}if(i)return e}const s=(0,e.uid)(),x=i.id,a=fc("0x173")+n,c=this[fc("0x81")]({id:s,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[fc("0x11c")](a,s,x,e,Jo[fc("0xf5")]());return c}[fc("0xdd")](t,n,o=null,i={}){if(o=o||Tc(n),t[fc("0x16")])return null;if(fc("0x135")===this[fc("0xcb")]){const e=this[fc("0x11e")][fc("0x147")]("formatInline",o,fc("0xe2"));return this.forceDefaultExecution((()=>e([t],n,i))),null}const r=this[fc("0x143")][fc("0x49")][fc("0xc6")](fc("0xd2")).me,s=[];if(fc("0x162")!==this[fc("0xcb")])for(const{suggestion:e,meta:n}of this[fc("0x5b")](t,"insertion"))n[fc("0xd4")]&&!n[fc("0x45")]&&s[fc("0x10e")](...e.getRanges());const x=function(t,e){const n=[];for(const o of e){const e=t[fc("0xe0")](o);e&&n[fc("0x10e")](e)}return n}(t,s),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[fc("0x5a")];){const o=n[e][fc("0xf")](t);n.splice(e,1,...o),e+=o[fc("0x5a")]}}return n}(t,s);x[fc("0x5a")]&&this[fc("0x44")][fc("0xce")]((()=>{for(const t of x){const e=this._suggestionFactory[fc("0x147")]("formatInline",o,fc("0xe2"));this.forceDefaultExecution((()=>e([t],n,i)))}}));for(const t of a){let s=null,x=t[fc("0x69")],a=t[fc("0x155")];for(const{suggestion:e,meta:n}of this[fc("0x5b")](t,fc("0x73"))){if(!n.isOwn)continue;if(e[fc("0x7")]!=o)continue;if(!Ic(e,i))continue;const r=e[fc("0x109")]();if(r[fc("0xad")](t,!0))return null;x=x[fc("0x3d")](r[fc("0x69")])?x:r[fc("0x69")],a=a[fc("0xa3")](r[fc("0x155")])?a:r[fc("0x155")],s?r[fc("0x69")][fc("0x3d")](s.getFirstRange()[fc("0x69")])?(s[fc("0xf1")](),s=e):e[fc("0xf1")]():s=e}const c=this[fc("0x44")].createRange(x,a);if(s)this[fc("0x6c")](s,c);else{const t=(0,e.uid)(),s=r.id;this[fc("0x81")]({id:t,type:"formatInline:"+o,data:n,createdAt:new Date,authorId:s,attributes:i}),this[fc("0x11c")]("formatInline:"+o,t,s,c)}}return null}[fc("0x8")](t,n,o=[],i=null,r={}){n[fc("0x148")]||(n[fc("0x148")]=n[fc("0x19")]),n.multipleBlocks=t.is(fc("0x50")),i=i||Tc(n);const s=o[fc("0x9c")]((t=>Cc(t,this[fc("0x44")]))),x=t.is(fc("0x50"))?t:Cc(t,this[fc("0x44")]);if("never"===this[fc("0xcb")]){const t=this[fc("0x11e")].getSuggestionCallback(fc("0x23"),i,fc("0xe2"));return this.forceDefaultExecution((()=>t([x],n,r))),null}s.push(x);let a=!0;for(const t of s)if(!this[fc("0x14")](t)){a=!1;break}if(a&&fc("0x162")!==this[fc("0xcb")]){const t=this[fc("0x11e")].getSuggestionCallback(fc("0x23"),i,fc("0xe2"));return this[fc("0x41")]((()=>t([x],n,r))),null}let c=null,l=x[fc("0x69")],u=x.end;for(const{suggestion:t,meta:e}of this[fc("0x5b")](x,"formatBlock")){if(!e[fc("0xd4")])continue;if(e[fc("0x30")]||e[fc("0x18")]||e[fc("0x45")])continue;if(t[fc("0x102")][fc("0x148")]!=n[fc("0x148")])continue;if(!Ic(t,r))continue;const o=t.getFirstRange();if(t[fc("0x7")]==i){if(o.containsRange(x,!0))return null;l=l[fc("0x3d")](o[fc("0x69")])?l:o.start,u=u[fc("0xa3")](o[fc("0x155")])?u:o[fc("0x155")],c?o[fc("0x69")][fc("0x3d")](c[fc("0x109")]().start)?(c.removeMarkers(),c=t):t.removeMarkers():c=t}else{const e=x.getIntersection(o);this[fc("0xa5")](t,e)}}const d=this[fc("0x143")][fc("0x49")][fc("0xc6")]("Users").me,g=(0,e.uid)(),f=d.id;if(c)return this._setSuggestionRange(c,this[fc("0x44")][fc("0x16d")](l,u)),c;{const t=this[fc("0x81")]({id:g,type:"formatBlock:"+i,data:n,createdAt:new Date,authorId:f,attributes:r});return this[fc("0x11c")](fc("0x9")+i,g,f,this[fc("0x44")].createRange(l,u)),t}}[fc("0x13d")](t,n,o=[],i=null,r={}){n[fc("0x148")]||(n[fc("0x148")]=n[fc("0x19")]);const s=t[0];n[fc("0x70")]=s.is(fc("0x50")),i=i||Tc(n);const x=o.map((t=>Cc(t,this._model))),a=s.is(fc("0x50"))?t:t.map((t=>Cc(t,this[fc("0x44")])));if("never"===this[fc("0xcb")]){const t=this._suggestionFactory[fc("0x147")]("formatBlock",i,fc("0xe2"));return this[fc("0x41")]((()=>t(a,n,r))),null}x.push(...a);let c=!0;for(const t of x)if(!this._rangeIsInLocalUserInsertion(t)){c=!1;break}if(c&&fc("0x162")!==this[fc("0xcb")]){const t=this[fc("0x11e")][fc("0x147")](fc("0x23"),i,fc("0xe2"));return this[fc("0x41")]((()=>t(a,n,r))),null}const l=this[fc("0x143")].plugins[fc("0xc6")](fc("0xd2")).me;for(const t of this.getSuggestions()){if(t[fc("0x3c")].id!=l.id)continue;if(fc("0x23")!=t[fc("0x149")]||t[fc("0x102")][fc("0x148")]!=n.formatGroupId)continue;if(!Ic(t,r))continue;const e=t[fc("0x7")]==i;for(let n=0;n<a.length;n++){const o=a[n];for(const i of t.getMarkers()){const r=i[fc("0xef")]();if(o.isEqual(r)){e?(a[fc("0x8c")](n,1),n--):t[fc("0x144")](i.name);break}}}}if(0==a[fc("0x5a")])return null;const u=this[fc("0x11e")][fc("0x147")]("formatBlock",i,"join");for(const t of this[fc("0xbf")]())if(t.author.id==l.id&&"formatBlock"==t[fc("0x149")]&&t[fc("0x102")].formatGroupId==n[fc("0x148")]&&t.subType==i&&Ic(t,r)&&(u(t[fc("0x15")](),a)||u(a,t.getRanges()))){for(const e of a)t.addRange(e);return t}const d=(0,e.uid)(),g=l.id,f="formatBlock:"+i,m=this[fc("0x81")]({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[fc("0x11c")](f,d,g,t,Jo[fc("0xf5")]());return m}[fc("0xeb")](t,n=null,o={}){if(t[fc("0x16")])return null;const i=this[fc("0x143")].plugins[fc("0xc6")](fc("0xd2")).me,r=new s.LiveRange(t[fc("0x69")],t[fc("0x155")]);for(const{suggestion:t,meta:e}of this[fc("0x5b")](r,"insertion"))if(e[fc("0xd4")]&&!e.isNextTo)if(t[fc("0x8f")]){const e=t.getRanges()[fc("0x156")]((t=>fc("0xae")!=t[fc("0x27")][fc("0x5c")]));if(e[fc("0x13e")]((t=>r[fc("0xad")](t,!0)))&&t.discard(),e.some((t=>t[fc("0xad")](r,!0)))){const t=this._suggestionFactory[fc("0x147")](fc("0xe"),n,fc("0xe2"));return this[fc("0x41")]((()=>t([r],null,o))),null}}else{const e=r[fc("0xe0")](t[fc("0x109")]());null!==e&&t[fc("0x96")]([e],null,o)}if(r.detach(),r[fc("0x16")]||fc("0xae")==r[fc("0x27")][fc("0x5c")])return null;let x=null,a=r[fc("0x69")],c=r.end;const l=this[fc("0x5b")](r,"deletion");for(const{suggestion:t,meta:e}of l){const n=this[fc("0x44")][fc("0x16d")](a,c);if(e[fc("0xd4")]&&(this._mergeNestedSuggestions||!e[fc("0x18")]&&!e[fc("0x45")]))if(t[fc("0x8f")]){if(!Ic(t,o))continue;let e=!0;for(const o of t[fc("0x15")]()){if(o.containsRange(n,!0))return t;n[fc("0xad")](o)||(e=!1)}e&&t[fc("0x89")]()}else{const e=t[fc("0x109")]();if(e.containsRange(n,!0))return t;if(!Ic(t,o)){n[fc("0xad")](e)?t[fc("0xf1")]():e[fc("0x134")](a)?a=e.end:e[fc("0x134")](c)&&(c=e[fc("0x69")]);continue}a=a[fc("0x3d")](e[fc("0x69")])?a:e[fc("0x69")],c=c[fc("0xa3")](e[fc("0x155")])?c:e.end,o=Object[fc("0x48")]({},t[fc("0x99")]),x?e[fc("0x69")][fc("0x3d")](x.getFirstRange()[fc("0x69")])?(x.removeMarkers(),x=t):t[fc("0xf1")]():x=t}}if(x)return this[fc("0x6c")](x,this._model[fc("0x16d")](a,c)),x;{const t=(0,e.uid)(),r=this[fc("0x44")][fc("0x16d")](a,c),s=i.id,x=n?"deletion:"+n:fc("0xe"),l=this[fc("0x81")]({id:t,type:x,createdAt:new Date,authorId:s,attributes:o});return this[fc("0x11c")](x,t,s,r),l}}markMultiRangeDeletion(t,n=fc("0x3a"),o={}){const i=this[fc("0x143")][fc("0x49")][fc("0xc6")](fc("0xd2")).me,r=t.map((t=>new s.LiveRange(t.start,t[fc("0x155")]))),x=new Set;for(const{suggestion:t,meta:e}of this[fc("0x5b")](r,fc("0x9e")))e[fc("0xd4")]&&!e[fc("0x30")]&&x[fc("0x74")](t);for(const e of x)if(e[fc("0x8f")]){const i=e[fc("0x15")]();if((!e.attributes||!e[fc("0x99")][fc("0x24")])&&i[fc("0x13e")]((t=>r[fc("0x6b")]((e=>e[fc("0xad")](t,!0)))))&&e[fc("0x89")](),r[fc("0x13e")]((t=>i[fc("0x6b")]((e=>e.containsRange(t,!0)))))){const e=this[fc("0x11e")][fc("0x147")]("deletion",n,fc("0xe2"));return this[fc("0x41")]((()=>e(t,null,o))),null}}else{const t=e[fc("0x109")]();if(r.some((e=>e.containsRange(t,!0)))&&e.discard(),r[fc("0x13e")]((e=>t[fc("0xad")](e,!0)))){const t=this[fc("0x11e")][fc("0x147")](fc("0xe"),n,fc("0xe2"));return this.forceDefaultExecution((()=>t(r,null,o))),null}}const a=this._suggestionFactory[fc("0x147")](fc("0xe"),n,fc("0x15d"));let c=null;for(const t of this[fc("0xbf")]())if(t.author.id==i.id&&t[fc("0x26")]&&fc("0xe")==t[fc("0x149")]&&t[fc("0x7")]==n&&Ic(t,o)&&(a(t[fc("0x15")](),r)||a(r,t[fc("0x15")]())))if(c){if(t[fc("0x10c")]&&t[fc("0x10c")].length)continue;for(const e of t[fc("0x15")]())c.isIntersectingWithRange(e)||c[fc("0x165")](e);t[fc("0xf1")]()}else{c=t;for(const e of r)t[fc("0xb4")](e)||t[fc("0x165")](e)}if(c)return c;x.clear();for(const{suggestion:t,meta:e}of this[fc("0x5b")](r,fc("0xe")))e.isOwn&&(this[fc("0x3f")]||!e[fc("0x18")]&&!e[fc("0x45")])&&Ic(t,o)&&x[fc("0x74")](t);for(const t of x){const e=t[fc("0x15")]();if((!o||!o[fc("0x24")])&&r.every((t=>e.some((e=>e[fc("0xad")](t,!0))))))return t;(!t[fc("0x99")]||!t[fc("0x99")][fc("0x24")])&&e[fc("0x13e")]((t=>r.some((e=>e[fc("0xad")](t,!0)))))&&t.discard()}const l=(0,e.uid)(),u=i.id,d=fc("0x90")+n,g=this[fc("0x81")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of r)t.detach(),t.isCollapsed||fc("0xae")==t[fc("0x27")][fc("0x5c")]||this._addSuggestionMarker(d,l,u,t,Jo[fc("0xf5")]());return g}markAttributeChange(t,n,o,i,r){if(t[fc("0x16")])return[];if(fc("0x135")===this._trackFormatChanges)return[];const s=this.editor[fc("0x49")][fc("0xc6")](fc("0xd2")).me.id,x=Array[fc("0x5")](this[fc("0xff")][fc("0xc4")]())[fc("0x156")]((e=>fc("0x60")==e.type&&e[fc("0x102")][fc("0xcf")]==n&&e[fc("0xb4")](t)));if("default"===this[fc("0xcb")]){const e=this[fc("0x5b")](t,fc("0x9e")).filter((({meta:t})=>t[fc("0xd4")]&&!t[fc("0x45")]&&!t[fc("0x30")])).map((({suggestion:t})=>t));x.unshift(...e)}const a=new Map([[t,o]]);for(const t of x){const e=fc("0x60")==t.type?t[fc("0x102")][fc("0x166")]:void 0,r=t[fc("0x109")](),s=Array.from(a[fc("0x2d")]()).find((t=>t.isIntersecting(r)));if(!s)continue;const x=s[fc("0xf")](r);this[fc("0x15f")](n)&&"insertion"==t[fc("0x149")]&&0!=x.length||(a[fc("0x6d")](s),x[fc("0x131")]((t=>{a[fc("0x39")](t,o)})),fc("0x9e")!=t[fc("0x149")]&&e!=i&&a[fc("0x39")](s[fc("0xe0")](r),e))}const c=[];for(const[t,o]of a){const x=(0,e.uid)(),a={key:n,oldValue:o,newValue:i};n[fc("0x5a")]>37&&console[fc("0xf9")](fc("0x14f"),{key:n});const l=(fc("0xb8")+(n+"|")+Tc({newValue:i}))[fc("0x10d")](0,60),u=this._setSuggestionData({id:x,type:l,data:a,createdAt:new Date,authorId:s,attributes:r});c[fc("0x10e")](u),this[fc("0x11c")](l,x,s,t)}return c}[fc("0x12f")](t){this[fc("0x43")][fc("0x74")](t)}[fc("0xa0")](t){this._inlineAttributeKeys[fc("0x74")](t)}[fc("0x14c")](t,e=[],n=[]){this[fc("0x72")](t,((t,...e)=>{this[fc("0x146")]((()=>{t(...e)}))}));for(const t of e)this[fc("0xa0")](t);for(const t of n)this[fc("0x12f")](t)}[fc("0x6c")](t,e){const n=t[fc("0x7d")]();this[fc("0x44")][fc("0xce")]((t=>{t.updateMarker(n,{range:e})}))}_addThreadToSuggestion(t){const e=t.id,n=this[fc("0x143")][fc("0xb0")].get(fc("0x62"));this[fc("0x93")][fc("0x7e")](e)||this._commentsRepository.addCommentThread({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[fc("0x93")].getCommentThread(e);o[fc("0x36")]("isRemovable"),o[fc("0xbe")]=!1,t[fc("0x10c")]=o}[fc("0x105")](t,n,o,i){if(t.type!=n||t.subType!=o||t[fc("0x33")].id!=i)throw this[fc("0x143")][fc("0xba")](fc("0x115")),new e.CKEditorError("track-changes-suggestion-data-mismatch",this)}[fc("0xa5")](t,n){const o=t.getFirstRange();if(n[fc("0x11d")](o))t[fc("0xf1")]();else if(o[fc("0xad")](n)){const i=this._model[fc("0x61")](n[fc("0x69")][fc("0x85")],fc("0x155"));this._setSuggestionRange(t,this[fc("0x44")][fc("0x16d")](o[fc("0x69")],i));const r=(0,e.uid)(),s=t.creator.id,x=t[fc("0x149")]+":"+t[fc("0x7")];this[fc("0x81")]({id:r,type:x,createdAt:new Date,authorId:s,data:t[fc("0x102")],attributes:t[fc("0x99")]});const a=this[fc("0x44")].createPositionAt(n[fc("0x155")][fc("0x4c")],fc("0x179")),c=this._model[fc("0x16d")](a,o[fc("0x155")]);this[fc("0x11c")](x,r,s,c)}else if(o.containsPosition(n[fc("0x69")])){const e=this._model[fc("0x61")](n[fc("0x69")][fc("0x85")],fc("0x155"));this[fc("0x6c")](t,this[fc("0x44")].createRange(o.start,e))}else{const e=this[fc("0x44")][fc("0x61")](n.end[fc("0x4c")],fc("0x179"));this[fc("0x6c")](t,this[fc("0x44")][fc("0x16d")](e,o[fc("0x155")]))}}[fc("0x14")](t){for(const{suggestion:e,meta:n}of this[fc("0x5b")](t,fc("0x9e"))){if(!n[fc("0xd4")])continue;const o=e[fc("0x15")]();for(const e of o)if(!t.getDifference(e).length)return!0}return!1}_getAuthorFromId(t){const n=this.editor[fc("0x49")][fc("0xc6")](fc("0xd2"))[fc("0x112")](t);if(!n)throw new e.CKEditorError(fc("0x2"),this);return n}[fc("0x98")](t){const e=this[fc("0x143")][fc("0x49")][fc("0xc6")](fc("0xd2")),n=(0,r.hashObject)(fc("0x127")+t);return e[fc("0x112")](n)||e.addUser({id:n,name:t})}[fc("0xa9")](t,e,n,o,i){const r=this[fc("0x130")](o),s=this[fc("0x11e")][fc("0xc5")](t,e,n,r,i,(t=>this[fc("0x4a")](n,{attributes:t})));return this[fc("0x68")](s,fc("0xe2"),(()=>{this[fc("0x4a")](n,{state:fc("0x52")})}),{priority:fc("0x21")}),this.listenTo(s,fc("0x89"),(()=>{this[fc("0x4a")](n,{state:"rejected"})}),{priority:fc("0x21")}),this._suggestions[fc("0x39")](n,s),this[fc("0x87")].set(s,"notReady"),s}[fc("0xb3")](t){const e=t.split(":");return{group:e[0],type:e[1],subType:e[fc("0x5a")]>=5?e[2]:null,id:e[fc("0x5a")]<5?e[2]:e[3],authorId:e[fc("0x5a")]<5?e[3]:e[4],markerCount:6==e[fc("0x5a")]?e[5]:null}}[fc("0x92")](t,n,o){const i=t.getFirstRange(),r=i[fc("0x69")],s=i[fc("0x155")];this._setSuggestionRange(t,this[fc("0x44")][fc("0x16d")](r,n));const x=(0,e.uid)(),a=t[fc("0x33")].id,c=t.type+(t[fc("0x7")]?":"+t[fc("0x7")]:"");this[fc("0x81")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[fc("0x99")],data:t[fc("0x102")]});const l=Rc(t);(fc("0x23")==t.type||l&&this._isBlockAttribute(l))&&(o=this[fc("0x44")][fc("0x111")](o[fc("0x4c")])),this[fc("0x11c")](c,x,a,this._model[fc("0x16d")](o,s))}[fc("0x5b")](t,e=null){const n=[],o=this[fc("0x143")].plugins.get("Users").me;Array[fc("0xdb")](t)||(t=[t]);for(const i of this.getSuggestions()){if(!i[fc("0x26")])continue;if(e&&i.type!=e)continue;let r=!1;for(const e of i[fc("0x15")]()){for(const s of t){const t=s[fc("0x69")][fc("0x11d")](e.end)||s[fc("0x155")][fc("0x11d")](e.start);if(t||s[fc("0xe0")](e)){const x=s[fc("0xad")](e)&&bc(this[fc("0x44")][fc("0x121")],e.start,s),a=e[fc("0xad")](s)&&bc(this[fc("0x44")][fc("0x121")],s[fc("0x69")],e);n[fc("0x10e")]({suggestion:i,meta:{isOwn:o==i[fc("0x3c")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),r=!0;break}}if(r)break}}return n}[fc("0x11c")](t,e,n,o,i){this[fc("0x44")].change((r=>{let s=fc("0x5e")+t+":"+e+":"+n;i&&(s=s+":"+i),r.addMarker(s,{range:o,usingOperation:!0,affectsData:!0})}))}_removeSuggestion(t){const e=t[fc("0x120")],n=t[fc("0x164")];t[fc("0x120")]=null,t[fc("0x164")]=null,null!=e&&(e[fc("0x164")]=n),null!=n&&(n[fc("0x120")]=e),"ready"==this[fc("0x87")][fc("0xc6")](t)&&(this[fc("0x87")][fc("0x39")](t,fc("0x1b")),this[fc("0x142")](fc("0x9a"),t,e,n))}[fc("0x81")](t){const n=t.id,o=this.addSuggestionData(t);if(this[fc("0x12e")]&&this[fc("0x12e")].addSuggestion){const i=this[fc("0x143")][fc("0x49")][fc("0xc6")](fc("0x1d")),r=o.hasComments,s=o.subType?o[fc("0x149")]+":"+o[fc("0x7")]:o[fc("0x149")],x=this[fc("0x143")][fc("0x137")],a=i[fc("0x74")](Qo(x,fc("0x17"))),c={id:n,type:s,hasComments:r,data:t[fc("0x102")]||null,originalSuggestionId:t[fc("0x66")]||null,attributes:o[fc("0x99")]};this[fc("0x12e")][fc("0x117")](c)[fc("0xc1")]((t=>{o[fc("0xd8")]=!0,i[fc("0x3b")](a),t&&t[fc("0x55")]&&(this[fc("0xff")][fc("0xc6")](n).createdAt=t.createdAt)}))[fc("0x126")]((t=>{throw(0,e.logWarning)(fc("0x2f")),this[fc("0x143")].model[fc("0x4b")]({isUndoable:!1},(()=>{o[fc("0x89")]()})),o[fc("0x170")](),this[fc("0xff")].delete(o.id),this._suggestionState[fc("0x6d")](o),t}))}return o}_isBlockAttribute(t){return this[fc("0x43")][fc("0xa")](t)}[fc("0x4a")](t,e){const n=this[fc("0x143")][fc("0x49")].get(fc("0x1d")),o=this[fc("0x7a")](t);if(this[fc("0x12e")]&&this[fc("0x12e")][fc("0x9b")])if(o[fc("0xd8")]){const o=n[fc("0x74")](Qo(this[fc("0x143")][fc("0x137")],"PENDING_ACTION_SUGGESTION"));this._adapter[fc("0x9b")](t,e)[fc("0xc1")]((()=>{n[fc("0x3b")](o)}))}else o.on("change:_saved",(()=>{this._updateSuggestionData(t,e)}))}_getSuggestionData(t){if(!this._adapter||!this[fc("0x12e")][fc("0x7a")])throw new e.CKEditorError(fc("0xac"),this);return this[fc("0x12e")][fc("0x7a")](t)}_handleNewSuggestionMarker(t){const{id:e,type:n,subType:o,authorId:i}=this[fc("0xb3")](t),r=this[fc("0xff")].get(e)||this[fc("0xa9")](n,o,e,i,{});switch(this[fc("0x105")](r,n,o,i),this[fc("0x87")][fc("0xc6")](r)){case fc("0xe6"):this[fc("0xc7")](e)[fc("0xc1")]((t=>{let n=Promise[fc("0xe1")]();t[fc("0x7b")]&&(n=this[fc("0x93")].fetchCommentThread({channelId:this[fc("0x143")][fc("0xb0")].get(fc("0x62")),threadId:e})),n[fc("0xc1")]((()=>{this[fc("0x34")](t)[fc("0xd8")]=!0}))})),this[fc("0x87")][fc("0x39")](r,fc("0x8b"));break;case fc("0x1b"):this[fc("0x4a")](e,{state:fc("0x113")});case"dataReady":this[fc("0x87")][fc("0x39")](r,fc("0x51")),this.fire(fc("0x53"),r);break;case fc("0x51"):this[fc("0x142")]("suggestionChanged",r)}return r[fc("0x64")](t),r}[fc("0x0")](t){const e=Array[fc("0x5")](t),n=e[fc("0x156")]((t=>fc("0x60")==t[fc("0x149")]));this[fc("0x154")](n);const o=e[fc("0x156")]((t=>!t[fc("0x8f")]&&fc("0x60")!=t[fc("0x149")])),i=this[fc("0xbf")]({skipNotAttached:!0}).filter((t=>!t[fc("0x8f")]&&"attribute"!=t[fc("0x149")])),r=i[fc("0x156")]((e=>!t[fc("0xa")](e))),s=new Map(i[fc("0x9c")]((t=>[t,this._suggestionFactory[fc("0x147")](t[fc("0x149")],t.subType,fc("0x16f"))]))),x=new Map(i[fc("0x9c")]((t=>[t,t[fc("0x109")]()]))),a=new Set,c=new Set;for(let t=0;t<o.length;t++)u(o[t],o,t+1);for(let t=0;t<o.length;t++)u(o[t],r,0);const l=new Set;for(let t=0;t<o[fc("0x5a")];t++){const e=o[t];!c.has(e)&&e[fc("0x120")]&&(l[fc("0x74")](e[fc("0x120")]),e.previous[fc("0x164")]===e&&(e[fc("0x120")][fc("0x164")]=null),e[fc("0x120")]=null),!a[fc("0xa")](e)&&e[fc("0x164")]&&(l.add(e[fc("0x164")]),e[fc("0x164")].previous===e&&(e[fc("0x164")][fc("0x120")]=null),e[fc("0x164")]=null)}function u(t,e,n){for(let o=n;o<e[fc("0x5a")];o++){const n=d(t,e[o]);n&&(n[0].next=n[1],n[1][fc("0x120")]=n[0],a[fc("0x74")](n[0]),c[fc("0x74")](n[1]))}}function d(t,e){if(t[fc("0x3c")].id!==e[fc("0x3c")].id)return null;const n=s[fc("0xc6")](t)(t,e,x[fc("0xc6")](t),x[fc("0xc6")](e));return n&&s.get(e)(t,e,x[fc("0xc6")](t),x.get(e))?n[1].commentThread&&n[1][fc("0x10c")][fc("0x5a")]?null:n:null}l[fc("0xab")]&&this[fc("0x0")](l)}[fc("0x154")](t){if(0==t[fc("0x5a")])return;const e=this.getSuggestions({skipNotAttached:!0}).filter((t=>fc("0x60")==t.type&&t[fc("0xfb")])),n=[],o=new Map;for(const t of e){const e=(0,r.hashObject)(t[fc("0x99")]);o[fc("0xa")](e)||(o.set(e,n[fc("0x5a")]),n[fc("0x10e")]([]));const i=o[fc("0xc6")](e);n[i][fc("0x10e")](t)}!function(){n[fc("0x172")](((t,e)=>{const n=t[0][fc("0x55")],o=e[0][fc("0x55")];return n==o?t[0].attributes[fc("0x8a")]<e[0].attributes.groupId?-1:1:n<o?-1:1}));for(const t of n)t[fc("0x172")](((t,e)=>t.id<e.id?-1:1))}();for(let t=0;t<n[fc("0x5a")];t++){if(0==n[t][fc("0x5a")])continue;const e=[];for(let o=t+1;o<n[fc("0x5a")];o++)0!=n[o][fc("0x5a")]&&i(n[t],n[o])&&e.push(o);for(const o of e)n[t]=n[t].concat(n[o]),n[o]=[]}for(const t of n)for(let e=0;e<t[fc("0x5a")];e++)t[e].next=t[e+1]||null;for(const t of n)for(let e=0;e<t[fc("0x5a")];e++)t[e][fc("0x120")]=t[e-1]||null;function i(t,e){if(t[0][fc("0x3c")]!==e[0][fc("0x3c")])return!1;if(n=t[0],o=e[0],(n[fc("0x7b")]||o[fc("0x7b")])&&(n[fc("0x7b")]&&o[fc("0x7b")]||!(n[fc("0x7b")]&&o[fc("0x55")]<n[fc("0x10c")][fc("0x138")][fc("0xc6")](0).createdAt||o[fc("0x7b")]&&n[fc("0x55")]<o[fc("0x10c")][fc("0x138")][fc("0xc6")](0)[fc("0x55")])))return!1;var n,o;const i=lc(t[0][fc("0x99")],fc("0x8a")),r=lc(e[0].attributes,fc("0x8a"));return!!Go(i,r)&&(!!t[fc("0x13e")]((t=>e[fc("0x6b")]((e=>t[fc("0x109")]().isEqual(e[fc("0x109")]())))))&&e[fc("0x13e")]((e=>t[fc("0x6b")]((t=>e[fc("0x109")]()[fc("0x11d")](t[fc("0x109")]()))))))}}[fc("0x4d")](t){const e=Array.from(t),n=this.getSuggestions({skipNotAttached:!0}),o=n[fc("0x156")]((e=>!t[fc("0xa")](e))),i=new Map(e.map((t=>[t,this[fc("0x11e")].getSuggestionCallback(t.type,t[fc("0x7")],fc("0x15d"))]))),r=new Map(n[fc("0x9c")]((t=>[t,t.getRanges()])));for(let t=0;t<e[fc("0x5a")];t++)if(s(this,e[t],e,t+1))return!0;for(let t=0;t<e.length;t++)if(s(this,e[t],o,0))return!0;return!1;function s(t,e,n,o){for(let s=o;s<n[fc("0x5a")];s++){const o=n[s];if(o[fc("0x149")]!==e[fc("0x149")]||o[fc("0x3c")].id!==e[fc("0x3c")].id||o[fc("0x7")]!==e.subType)continue;if(!kc(e,o))continue;if("attribute"==e.type&&e.data[fc("0x166")]!=o[fc("0x102")][fc("0x166")])continue;if(fc("0x60")==e[fc("0x149")]&&t._isBlockAttribute(e[fc("0x102")][fc("0xcf")]))continue;if(fc("0x23")==e[fc("0x149")]){const n=t.editor[fc("0xbc")],o=e[fc("0x6")]();if(o&&(n[fc("0x121")].isObject(o)||n[fc("0x121")][fc("0x16c")](o)))continue}const x=i.get(e),a=r[fc("0xc6")](e),c=r[fc("0xc6")](o),l=e.commentThread&&e.commentThread.length,u=o.commentThread&&o[fc("0x10c")][fc("0x5a")];if(!l&&x(c,a))return t[fc("0x1")](o,e),r[fc("0x6d")](e),!0;if(!u&&x(a,c))return t[fc("0x1")](e,o),r.delete(o),!0}return!1}}[fc("0x1")](t,e){if(t.isMultiRange)for(const n of e[fc("0x15")]())t[fc("0x165")](n);else{const n=e[fc("0x109")]().end;this._setSuggestionRange(t,this[fc("0x44")].createRange(t[fc("0x109")]()[fc("0x69")],n))}e[fc("0xf1")]()}[fc("0x57")](t,e){const n=t[fc("0x15b")](fc("0x1e"))||t[fc("0x15b")](fc("0x60"))?fc("0x4e"):t[fc("0x12b")]();return Qo(this.editor[fc("0x137")],e+"_"+n+"_SUGGESTION_ANNOUNCEMENT")}[fc("0x168")](){const t=this[fc("0x143")];(0,r.surroundingMarkersDetector)(this._model,(({left:e,entered:n})=>{const o=[];for(const t of e){const{group:e,type:n}=this[fc("0xb3")](t[fc("0x67")]);if(fc("0xea")===e){o[fc("0x10e")](this[fc("0x57")](n,"LEAVE"));break}}for(const t of n){const{group:e,type:n}=this[fc("0xb3")](t[fc("0x67")]);if(fc("0xea")===e){o[fc("0x10e")](this[fc("0x57")](n,fc("0x82")));break}}o[fc("0x5a")]&&t.ui[fc("0x8d")].announce(fc("0xfd"),o[fc("0x15d")](" "))}))}[fc("0x13")](t){if(null!==this[fc("0xc8")])return!1;const e=this[fc("0x143")],n=e[fc("0xbc")].document[fc("0x136")][fc("0xd3")]();if(0==n[fc("0x5a")])return!1;const o=[],i=n.filter((t=>fc("0x60")==t[fc("0x149")])),r=n[fc("0x156")]((t=>fc("0xc9")==t.type&&fc("0x32")!=t.name)),s=n[fc("0x156")]((t=>fc("0x3b")==t.type&&fc("0x32")!=t.name));for(const t of i)o[fc("0x10e")]({key:t.attributeKey,newValue:t.attributeNewValue,oldValue:t[fc("0x28")],range:(x=t[fc("0x50")],null==x.end[fc("0x85")]&&x[fc("0x155")][fc("0x4c")]==x[fc("0x69")].nodeAfter?Cc(x[fc("0x69")].nodeAfter,e[fc("0xbc")]):x)});var x;for(const t of r){const n=s[fc("0xd7")]((e=>e[fc("0x161")][fc("0x11d")](t[fc("0x161")])));n&&o.push({key:"$elementName",newValue:t[fc("0x67")],oldValue:n[fc("0x67")],range:e[fc("0xbc")][fc("0xde")](t[fc("0x161")].nodeAfter)})}return 0!=o.length&&this[fc("0x16b")](t,o)}_processAttributeSuggestions(t){let e=!1;const n=this[fc("0x143")][fc("0xbc")][fc("0xa7")].differ[fc("0x13a")]()[fc("0x156")]((t=>t[fc("0x102")][fc("0xcc")]&&t[fc("0x67")].startsWith(fc("0x157"))));for(const o of n){const{subType:n,id:i}=this[fc("0xb3")](o.name),r=n[fc("0x97")]("|")[0];for(const n of this.getSuggestions({skipNotAttached:!0}))n.id!=i&&fc("0x60")==n[fc("0x149")]&&n.data&&n[fc("0x102")][fc("0xcf")]==r&&n[fc("0x109")]()[fc("0xa6")](o.data[fc("0xcc")])&&(this[fc("0x47")](n,o[fc("0x102")][fc("0xcc")],t),e=!0)}return e}[fc("0x146")](t){if(null!==this[fc("0xc8")])return void t();const n=this[fc("0x143")];this[fc("0xc8")]=n[fc("0xbc")][fc("0xa7")][fc("0x84")],t();const o=new Map;for(const t of n[fc("0xbc")].document[fc("0x6f")].getOperations(this._recordAttributeSuggestionsFromVersion))if([fc("0xe5"),"addAttribute",fc("0xe7"),"changeAttribute"][fc("0xaa")](t[fc("0x149")])){const e=t[fc("0x12c")],n=o[fc("0xc6")](e)||[];n[fc("0x10e")](t),o.set(e,n)}this[fc("0xc8")]=null;for(const[t,i]of o){const o=(0,e.uid)();n[fc("0xbc")][fc("0x4b")](t,(t=>{const e=[];for(const t of i){let i,r,s,x;if(fc("0xe5")==t[fc("0x149")]){const e=t;i=Cc(e[fc("0x161")].nodeAfter,n[fc("0xbc")]),r=fc("0x13c"),s=e[fc("0x7f")],x=e[fc("0x59")]}else{const e=t,o=this[fc("0x15f")](e[fc("0xcf")]),a=this[fc("0x95")][fc("0xa")](e[fc("0xcf")]);if(!o&&!a)continue;i=o?Cc(e.range[fc("0x69")].nodeAfter,n[fc("0xbc")]):e[fc("0x50")],r=e[fc("0xcf")],s="removeAttribute"==t[fc("0x149")]?void 0:e[fc("0x1f")],x=e.oldValue}this[fc("0xf6")](i,r,x,s,{groupId:o}),e[fc("0x10e")]({range:i,key:r,newValue:s,oldValue:x})}this[fc("0x16b")](t,e)}))}}[fc("0x16b")](t,e){if(0==e[fc("0x5a")])return!1;let n=!1;for(const o of e){const e=this[fc("0x5b")](o.range,fc("0x60")).filter((t=>!t[fc("0x5d")][fc("0x30")]))[fc("0x9c")]((t=>t[fc("0xea")])),i=(0,r.hashObject)({newValue:o[fc("0x1f")]});e[fc("0x156")]((t=>{const[e,n]=t[fc("0x7")][fc("0x97")]("|");return e==o[fc("0xcf")]&&n!=i}))[fc("0x131")]((e=>{this[fc("0x47")](e,o.range,t),n=!0}))}return n}_reduceSuggestionAttributeRange(t,e,n){const o=t[fc("0x109")]()[fc("0xf")](e);0!==o.length?1!==o[fc("0x5a")]?this[fc("0x92")](t,e[fc("0x69")],e[fc("0x155")]):this[fc("0x6c")](t,o[0]):n[fc("0x144")](t.getFirstMarker())}}class pc{constructor(t){this._editor=t,this[fc("0x44")]=t.model,this[fc("0x11a")]=new Map,this[fc("0x20")]=new Map,this[fc("0xee")]()}[fc("0xc5")](t,e,n,o,i,r){return new Jo(this[fc("0x44")],{type:t,subType:e,id:n,author:o,creator:o,attributes:i,onAttributesChange:r,onAccept:(...n)=>this[fc("0x147")](t,e,fc("0xe2"))(...n),onDiscard:(...n)=>this.getSuggestionCallback(t,e,"discard")(...n)})}[fc("0x163")](t,e,n,o){const i=t+":"+e+":"+n;this[fc("0x11a")][fc("0x39")](i,o)}[fc("0x147")](t,e,n){const o=t+":"+e+":"+n;return this[fc("0x11a")][fc("0xc6")](o)||this[fc("0x20")].get(t+":"+n)}_registerDefaultCallbacks(){const t=()=>!1,e=t=>{t[fc("0x172")](((t,e)=>t[fc("0x69")][fc("0x3d")](e.start)?1:-1)),this[fc("0x44")][fc("0xce")]((e=>{for(const n of t){let t;t=n[fc("0x155")][fc("0xd")]&&n.end[fc("0x4c")]==n[fc("0x69")].nodeAfter?e[fc("0x158")](n.start[fc("0x65")],"on"):e[fc("0x158")](n),this._model.deleteContent(t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{e&&this[fc("0x44")].change((n=>{const{commandName:o,commandParams:i=[]}=e,r=t[fc("0x9c")]((t=>(Ec(t)&&(t=this[fc("0x44")][fc("0x16d")](t[fc("0x155")])),t)))[fc("0x156")]((t=>fc("0xae")!==t[fc("0x27")].rootName));if(r[fc("0x5a")]<1)return;const x=Array[fc("0x5")](this._model[fc("0xa7")][fc("0x124")][fc("0x15")]())[fc("0x9c")]((t=>s.LiveRange[fc("0xc")](t)));n[fc("0x42")](r);for(const t of this[fc("0x78")][fc("0x13f")][fc("0x13f")]())t[fc("0x5f")]();i[fc("0x10e")]({forceDefaultExecution:!0}),this[fc("0x78")][fc("0x101")](o,...i);const a=x[fc("0x156")]((t=>"$graveyard"!=t[fc("0x27")].rootName));a[fc("0x5a")]>0&&n[fc("0x42")](a);for(const t of x)t.detach()}))},o=(t,e)=>1==t[fc("0x5a")]&&1==e.length&&t[0][fc("0x155")][fc("0x11d")](e[0][fc("0x69")]),i=(t,e,n,o)=>Ac(t,e,n,o,this[fc("0x44")])?[t,e]:Ac(e,t,o,n,this[fc("0x44")])?[e,t]:null;this[fc("0x20")].set(fc("0x13b"),t),this[fc("0x20")][fc("0x39")]("insertion:discard",e),this._defaultCallbacks[fc("0x39")](fc("0x71"),o),this[fc("0x20")][fc("0x39")](fc("0x152"),i),this[fc("0x20")][fc("0x39")](fc("0x14b"),e),this._defaultCallbacks[fc("0x39")](fc("0x6a"),t),this[fc("0x20")].set("deletion:join",o),this._defaultCallbacks[fc("0x39")](fc("0x63"),i),this[fc("0x20")][fc("0x39")](fc("0x3e"),n),this[fc("0x20")][fc("0x39")]("formatInline:discard",t),this[fc("0x20")][fc("0x39")](fc("0xb7"),o),this[fc("0x20")][fc("0x39")](fc("0x150"),t),this._defaultCallbacks[fc("0x39")](fc("0x9d"),n),this[fc("0x20")].set(fc("0x75"),t),this[fc("0x20")][fc("0x39")]("formatBlock:join",o),this[fc("0x20")][fc("0x39")](fc("0x29"),t),this._defaultCallbacks[fc("0x39")]("attribute:accept",t),this._defaultCallbacks[fc("0x39")](fc("0xc0"),((t,e)=>{if(!e)return;const n=this[fc("0x78")][fc("0x49")][fc("0xc6")](hc);this[fc("0x44")].change((o=>{if(fc("0x13c")==e[fc("0xcf")])for(const n of t){const t=n[fc("0x69")].nodeAfter,i=e[fc("0x166")];o[fc("0xe5")](t,i)}else if(n[fc("0x15f")](e[fc("0xcf")]))for(const n of t)void 0!==e[fc("0x166")]?o[fc("0x171")](e.key,e[fc("0x166")],n[fc("0x69")].nodeAfter):o[fc("0xe7")](e[fc("0xcf")],n[fc("0x69")][fc("0x65")]);else for(const n of t)e[fc("0x166")]?o.setAttribute(e.key,e[fc("0x166")],n):o[fc("0xe7")](e.key,n)}))})),this[fc("0x20")].set(fc("0xbb"),o)}}function bc(t,e,n){for(const o of e[fc("0x4c")][fc("0x151")]({includeSelf:!0,parentFirst:!0})){if(o[fc("0x27")]==o)return!1;if(!n.containsItem(o))return!1;if(t[fc("0x141")](o)||t[fc("0x16c")](o))return!0}return!1}function Ec(t){return t.end[fc("0x4c")]==t[fc("0x69")][fc("0x65")]&&t.end.isAtStart}function _c(t,e,n,o){const i=t=>!t[fc("0x110")].is(fc("0xbd"))&&!o[fc("0x141")](t.item),r=t[fc("0x69")][fc("0x1c")](i),s=t.end[fc("0x1c")](i,{direction:"backward"});return!(t[fc("0x69")].isEqual(r)&&t[fc("0x155")][fc("0x11d")](s)||(r[fc("0x3d")](s)?n[fc("0xb")](e,{range:n[fc("0x16d")](r,s)}):n[fc("0x144")](e),0))}function Tc(t){return(0,r.hashObject)(t)}function yc(t){const e=t[fc("0x69")].nodeAfter;return e&&e.is(fc("0x11f"))}function Cc(t,e){const n=e[fc("0x121")].isObject(t)||e.schema[fc("0x16a")](t);return e.createRange(e[fc("0x61")](t,fc("0x56")),n?e.createPositionAfter(t):e.createPositionAt(t,fc("0x155")))}function Ac(t,e,n,o,i){if(!kc(t,e))return!1;if(n.end[fc("0x11d")](o[fc("0x69")]))return!0;if(t.type!=e[fc("0x149")])return!1;if(!n[fc("0x155")][fc("0x139")](o[fc("0x69")]))return!1;const r=i.createRange(n[fc("0x155")],o[fc("0x69")]).getWalker();for(const t of r)if([fc("0x6e"),fc("0x133")][fc("0xaa")](t[fc("0x149")])&&i[fc("0x121")][fc("0x16c")](t[fc("0x110")]))return!1;return!0}function kc(t,e){return!(!t[fc("0xfb")]||!e[fc("0xfb")])&&Go(t[fc("0x99")],e[fc("0x99")])}function Ic(t,e){const n=Sc(t[fc("0x99")]),o=Sc(e);if(!t._isDataLoaded)return!1;for(const t of Object[fc("0x2d")](o))if(!Go(n[t],o[t]))return!1;return!0}function Sc(t){const e=Object[fc("0x48")]({},t);return delete e[fc("0x24")],delete e[fc("0x12a")],e}function Rc(t){return fc("0x60")==t[fc("0x149")]?t.subType[fc("0x97")]("|")[0]:null}const vc=["_editor","getRanges","remove","_setPendingAction","execute","add","destroy","PENDING_ACTION_SUGGESTION","get","discardSuggestion","bind","change:isDirty","commands","_discardCommand","stopListening","canAccept","_pendingAction","_acceptCommand","isDirty","canDiscard","model","unbind","canEditAt","_removePendingAction","isEnabled","commentThreadController","acceptSuggestion","PendingActions","view","listenTo"];var Nc,Lc;Nc=vc,Lc=182,function(t){for(;--t;)Nc.push(Nc.shift())}(++Lc);const Mc=function(t,e){return vc[t-=0]};class wc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[Mc("0x12")]=e,this[Mc("0x1a")]=n,this[Mc("0x17")]=o,this._editor=t,this[Mc("0xf")]=t[Mc("0xa")][Mc("0x6")](Mc("0x18")),this[Mc("0xb")]=t[Mc("0xa")][Mc("0x6")](Mc("0x7")),this[Mc("0x1a")][Mc("0x8")](Mc("0x16")).to(this[Mc("0xf")],this[Mc("0xb")],((t,e)=>t||e)),this[Mc("0x1a")][Mc("0x8")](Mc("0xd")).to(this[Mc("0xf")],"isEnabled",(t=>t&&this[Mc("0x1c")].model.canEditAt(e.getRanges()))),this[Mc("0x1a")].bind(Mc("0x11")).to(this._discardCommand,"isEnabled",(t=>t&&this._editor[Mc("0x12")][Mc("0x14")](e[Mc("0x1d")]()))),this[Mc("0xe")]=null,n[Mc("0x10")]&&this[Mc("0x1")](),this[Mc("0x1b")](n,Mc("0x18"),(()=>this.acceptSuggestion())),this[Mc("0x1b")](n,"discardSuggestion",(()=>this[Mc("0x7")]())),this[Mc("0x1b")](n,Mc("0x9"),(()=>{n.isDirty?this._setPendingAction():this[Mc("0x15")]()}))}[Mc("0x18")](){this[Mc("0xf")][Mc("0x2")](this.model.id)}[Mc("0x7")](){this[Mc("0xb")][Mc("0x2")](this[Mc("0x12")].id)}destroy(){this[Mc("0x1a")].unbind("isEnabled"),this[Mc("0x1a")][Mc("0x13")]("canAccept"),this[Mc("0x1a")][Mc("0x13")]("canDiscard"),this[Mc("0xc")](),this[Mc("0x17")][Mc("0x4")](),this[Mc("0xe")]&&this[Mc("0x15")]()}_setPendingAction(){const t=Qo(this[Mc("0x1c")].locale,Mc("0x5"));this[Mc("0xe")]=this[Mc("0x1c")].plugins[Mc("0x6")](Mc("0x19"))[Mc("0x3")](t)}_removePendingAction(){null!==this[Mc("0xe")]&&this[Mc("0x1c")].plugins[Mc("0x6")](Mc("0x19"))[Mc("0x0")](this[Mc("0xe")]),this[Mc("0xe")]=null}}const Oc=["focus","removeComment","isReadOnly","isActive","editor","element","_model","authoredAt","length","commentsListView","destroy","showInput","updateComment","_config","_createCommentViews","fire","editorConfig","isEnabled","hasDirtyComment","commentInputView","delegate","descriptionParts","addComment","cancel","_localUser","bind","submit","commentThreadInputView","disabledSubmit","locale","isDirty","commentThread","value","_createCommentThreadInputView","canAccept","assign","disableComments","set"];var Dc,Fc;Dc=Oc,Fc=155,function(t){for(;--t;)Dc.push(Dc.shift())}(++Fc);const Bc=function(t,e){return Oc[t-=0]};class Pc extends i.View{constructor(t,e,n,o){super(t),this.commentsListView=null,this.commentThreadInputView=null,this[Bc("0x22")](Bc("0x0"),!1),this.set(Bc("0x4"),e[Bc("0x4")]),this[Bc("0x16")]("authoredAt").to(e),this.set(Bc("0x12"),[]),this[Bc("0x22")](Bc("0x1b"),!1),this.set(Bc("0xe"),!1),this.set(Bc("0x1f"),!1),this.set("canDiscard",!1),this[Bc("0x3")]=e,this[Bc("0x15")]=n,this[Bc("0xa")]=o,o[Bc("0x21")]?this.set(Bc("0x5"),1):this[Bc("0xb")]()}focus(){this[Bc("0x2")][Bc("0x23")]()}[Bc("0x7")](){this[Bc("0x6")]&&this[Bc("0x6")][Bc("0x7")](),this[Bc("0x18")]&&this[Bc("0x18")][Bc("0x7")](),super[Bc("0x7")]()}[Bc("0xb")](){const{CommentsListView:t}=this._config;this[Bc("0x6")]=new t(this[Bc("0x1a")],this._model[Bc("0x1c")],Object[Bc("0x20")]({CommentView:this[Bc("0xa")].CommentView},this[Bc("0xa")])),this[Bc("0x6")][Bc("0x11")]("removeComment").to(this),this.commentsListView[Bc("0x11")](Bc("0x9")).to(this),this[Bc("0x6")][Bc("0x16")](Bc("0x0")).to(this),this.set(Bc("0x5"),this[Bc("0x6")].length+1),this[Bc("0x16")](Bc("0x5")).to(this[Bc("0x6")],"length",(t=>t+1)),this.commentThreadInputView=this[Bc("0x1e")](),this.on(Bc("0x24"),(()=>this.focus())),this.bind(Bc("0x1b")).to(this.commentsListView,Bc("0xf"),this[Bc("0x18")].commentInputView,Bc("0x1d"),((t,e)=>t||!!e))}_createCommentThreadInputView(){const{CommentThreadInputView:t}=this[Bc("0xa")],e=new t(this[Bc("0x1a")],this[Bc("0x15")],this[Bc("0xa")][Bc("0xd")]),n=e[Bc("0x10")];return e[Bc("0x16")](Bc("0x8")).to(this,Bc("0x0"),this._model[Bc("0x1c")],Bc("0x25"),n,Bc("0x1d"),((t,e,n)=>!!n||t&&!e)),n.on(Bc("0x17"),((t,e)=>{this[Bc("0xc")](Bc("0x13"),e),n[Bc("0x1")].setData("")})),n.on(Bc("0x14"),(()=>this.focus())),n[Bc("0x16")](Bc("0x19")).to(this[Bc("0x3")][Bc("0x1c")],Bc("0x25")),e}}const Uc=["createElement","canDiscard","commentThreadInputView","EXTERNAL_SUGGESTION","creator","acceptSuggestion","getTemplate","canAccept","time","children","ck-suggestion--accept","div","disableComments","ck-annotation__main","isEnabled","push","@external","EXTERNAL_IMPORT_WORD_SUGGESTION","content","element","ck-suggestion","ck-suggestion-","author","setTemplate","isActive","split","ck-annotation__info-time","_config","<p>","type",'" title="',"change:description","userView","fire","ck-suggestion-wrapper--active","querySelector","map","getUserViewNotificationText","locale","description","EXTERNAL_IMPORT_WORD_AVATAR","innerHTML","extendTemplate","getExternalSuggestionNote","title","render","color","ck-suggestion--disabled-comments","ck-annotation__actions","acceptButton","ck-suggestion-wrapper","importWord","_createButton","span","value","discardButton","editorDestroyed","join","bind","Accept suggestion","EXTERNAL_AVATAR","isExternal","delegate","cancel","set","name","formatDateTime","attributes","commentsListView","ck-annotation__content-wrapper","ck-suggestion__main","editorReady","commentThread","_descriptionElement","</p>",'<span class="ck-suggestion-color" style="background-color: ',"ck-comment__info-time","ck-annotation__info-name","ck-annotation__info","_model","source","authoredAt","ck-suggestion__info"];var jc,Gc;jc=Uc,Gc=413,function(t){for(;--t;)jc.push(jc.shift())}(++Gc);const Vc=function(t,e){return Uc[t-=0]};class Hc extends Pc{constructor(e,n,o,i){super(e,n,o,i),this[Vc("0x42")](Vc("0x1f"),""),this[Vc("0x3c")](Vc("0x1f")).to(this,"descriptionParts",(t=>t&&t[0]?t[0].type:"")),this[Vc("0x3c")](Vc("0x29")).to(this,"descriptionParts",this,Vc("0x1a"),((t,e)=>{let n="";for(const e of t)n+=Vc("0x1e")+zc(e[Vc("0x14")],e[Vc("0x30")])+Vc("0x4c");return e?n:(0,r.trimHtml)(n,{limit:140})})),this[Vc("0x4b")]=null,this[Vc("0x33")]=this._createButton(Qo(e,Vc("0x3d")),t.icons.check,Vc("0xc"),Vc("0x7"),"sw"),this[Vc("0x33")].bind(Vc("0x10")).to(this,Vc("0x9")),this.discardButton=this[Vc("0x36")](Qo(e,"Discard suggestion"),t.icons[Vc("0x41")],"ck-suggestion--discard","discardSuggestion","sw"),this.discardButton[Vc("0x3c")](Vc("0x10")).to(this,Vc("0x3")),this[Vc("0x22")]=new r.UserView(e,this[Vc("0x51")][Vc("0x18")],this[Vc("0x27")]()),this[Vc("0x22")].extendTemplate({attributes:{class:["ck-suggestion__user","ck-annotation__user"]}}),this[Vc("0x19")](this[Vc("0x8")]())}getTemplate(){const t=this.bindTemplate,e=[{tag:Vc("0xd"),attributes:{class:[Vc("0x1"),Vc("0x50")]},children:[{tag:Vc("0x37"),children:[{text:this[Vc("0x22")][Vc("0x43")]}],attributes:{class:["ck-suggestion__info-name",Vc("0x4f")]}},{tag:Vc("0xa"),attributes:{datetime:t.to(Vc("0x0")),class:[Vc("0x4e"),Vc("0x1c")]},children:[{text:t.to("authoredAt",(t=>this[Vc("0x1d")][Vc("0x44")](t)))}]}]},{tag:Vc("0xd"),attributes:{class:["ck-suggestion__actions",Vc("0x32")]},children:[this[Vc("0x33")],this[Vc("0x39")]]},{tag:Vc("0xd"),attributes:{class:[Vc("0x47")]}}];this[Vc("0x51")][Vc("0x3f")]&&e[Vc("0x11")]({tag:Vc("0xd"),attributes:{class:["ck-comment__external"]},children:[{text:this[Vc("0x2d")]()}]});const n={tag:"div",attributes:{class:[Vc("0x34"),t.if(Vc("0x1a"),Vc("0x24")),t.to(Vc("0x1f"),(t=>Vc("0x17")+t)),this._config[Vc("0xe")]&&Vc("0x31")],"data-suggestion-id":this[Vc("0x51")].id,"data-thread-id":this[Vc("0x51")][Vc("0x4a")].id,"data-author-id":this[Vc("0x51")][Vc("0x18")].id,tabindex:-1},children:[{tag:Vc("0xd"),attributes:{class:[Vc("0x16"),"ck-annotation"]},children:[this.userView,{tag:Vc("0xd"),attributes:{class:[Vc("0x48"),Vc("0xf")]},children:e}]}]};return this[Vc("0x46")]&&this[Vc("0x4")]&&(n[Vc("0xb")][Vc("0x11")](this.commentsListView,this[Vc("0x4")]),this[Vc("0x46")][Vc("0x40")](Vc("0x49")).to(this),this[Vc("0x46")][Vc("0x40")](Vc("0x3a")).to(this),this[Vc("0x4")][Vc("0x40")]("editorReady").to(this),this[Vc("0x4")][Vc("0x40")](Vc("0x3a")).to(this)),n}[Vc("0x2f")](){super.render(),this._descriptionElement=this[Vc("0x15")][Vc("0x25")](".ck-annotation__content-wrapper"),this[Vc("0x4b")][Vc("0x2b")]=this.description,this.on(Vc("0x21"),((t,e,n)=>{this[Vc("0x4b")][Vc("0x2b")]=n}))}[Vc("0x36")](t,e,n,o,r){const s=new i.ButtonView(this[Vc("0x28")]);return s[Vc("0x42")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),s[Vc("0x2c")]({attributes:{class:n}}),s.on("execute",(()=>{this[Vc("0x23")](o,this[Vc("0x51")].id)})),s}[Vc("0x2d")](){return"importWord"===this[Vc("0x51")].attributes[Vc("0x12")][Vc("0x52")]?Qo(this[Vc("0x28")],Vc("0x13")):Qo(this[Vc("0x28")],Vc("0x5"))}[Vc("0x27")](){return this[Vc("0x51")][Vc("0x3f")]?Vc("0x35")===this[Vc("0x51")][Vc("0x45")][Vc("0x12")][Vc("0x52")]?Qo(this[Vc("0x28")],Vc("0x2a"),this[Vc("0x51")][Vc("0x6")].name):Qo(this[Vc("0x28")],Vc("0x3e"),this[Vc("0x51")][Vc("0x6")][Vc("0x43")]):null}}function zc(t,e){let n="";return n+=t[Vc("0x1b")]("*")[Vc("0x26")](((t,e)=>e%2!=0?'<span class="ck-suggestion-type">'+Wc(t)+"</span>":Wc(t)))[Vc("0x3b")](""),e&&(n+=Vc("0x4d")+e[Vc("0x38")]+Vc("0x20")+e[Vc("0x2e")]+'"></span>'),n}function Wc(t){const e=document[Vc("0x2")](Vc("0x37"));return e.innerText=t,e[Vc("0x2b")]}const Kc=["getDescriptions","buttonView","descriptionParts","trackChanges.disableComments","push","registerAnnotation","get","addComment","value","commands","discardSelectedSuggestions","_handleControllerBuffer","size","separator","editing","_suggestionToController","_viewToController","getSuggestion","config","comments.maxCommentCharsWhenCollapsed","map","innerView","locale","getAllAdjacentSuggestions","createAnnotationView","switchbutton","acceptAllSuggestions","componentFactory","_unbindEditors","isMultiRange","isInContent","has","actionView","head","some","_descriptionFactory","init","suggestion-","comments.editorConfig","add","Annotations","filter","SuggestionThreadView","suggestionChanged","execute","getMarkers","EditorAnnotations","values","mainView","editor","suggestionLoaded","destroy","define","reduce","_createUIButton","from","_disableComments","_destroyController","lowest","isEnabled","activeAnnotations","listenTo","arrowView","discardButton","comments.maxCommentsWhenCollapsed","CommentsUI","_updateController","Discard all suggestions","hasSuggestion","pluginName","_handleSuggestionControllerDelayed","getFirstRange","getRanges","focus","delete","_bindAnnotationToEditors","unbind","commandName","bind","CommentsRepository","set","length","toMany","change:previous","isOn","getMarkerNames","_refreshActiveMarkers","trackChanges","isDirty","_annotationViews","TrackChangesEditing","_initializeController","type","model","suggestionUnloaded","previous","refreshSelectedViews","getJoined","createCommentThreadController","clear","stopListening","plugins","button","view","comments"];var qc,Xc;qc=Kc,Xc=241,function(t){for(;--t;)qc.push(qc.shift())}(++Xc);const $c=function(t,e){return Kc[t-=0]};class Zc extends t.Plugin{static get requires(){return[hc,r.Users,$c("0x30"),$c("0x9"),$c("0xf")]}static get[$c("0x26")](){return"TrackChangesUI"}constructor(t){super(t),this[$c("0x59")]=new Map,this._viewToController=new Map,this._annotationViews=new Map,this[$c("0x55")]=new Map;const e=this[$c("0x12")][$c("0x5c")];e[$c("0x15")]("trackChanges.SuggestionThreadView",Hc),e.define($c("0x4d"),!1),this._disableComments=e.get($c("0x4d"))}_handleSuggestionControllerDelayed(t,e){0===this._handleControllerBuffer[$c("0x56")]&&setTimeout((()=>{for(const[t,e]of this._handleControllerBuffer){const n=this[$c("0x59")][$c("0x0")](t);n||e?n&&e&&this[$c("0x1a")](t):this[$c("0x3c")](t)}this.editor[$c("0x46")][$c("0x50")]($c("0xf"))[$c("0x41")](),this[$c("0x37")](),this[$c("0x55")][$c("0x44")]()}),10),this[$c("0x55")].set(t,e)}[$c("0x5")](){const t=this[$c("0x12")],e=t[$c("0x46")].get("TrackChangesEditing"),n=t.plugins[$c("0x50")]($c("0x9")),o=t[$c("0x46")][$c("0x50")]($c("0xf")),i=t.plugins[$c("0x50")]($c("0x30"));t.ui[$c("0x65")][$c("0x8")]($c("0x38"),(t=>this[$c("0x17")](t))),o.addSourceCollector((()=>{const t=[];for(const[e,n]of Array[$c("0x18")](this[$c("0x59")])){const o=e[$c("0x61")](),i=[];for(const t of o){if(!t[$c("0x68")])continue;if(t[$c("0x67")]){i.push(...t[$c("0x29")]());continue}const e=t[$c("0x28")]();if(i[$c("0x32")]>0){const t=i[0][$c("0x42")](e);if(t){i[0]=t;continue}}i[$c("0x4e")](e)}t[$c("0x4e")]([n.view,i])}return t})),this[$c("0x1e")](e,$c("0x13"),((t,e)=>{this[$c("0x1e")](e,$c("0x34"),((t,n,o,i)=>{e[$c("0x68")]&&(null==o?(this[$c("0x23")](i.head),this._handleSuggestionControllerDelayed(e,!1)):(this[$c("0x23")](o[$c("0x2")]),null==i&&this._handleSuggestionControllerDelayed(e,!0)))})),null!==e[$c("0x40")]?this[$c("0x23")](e[$c("0x2")]):this[$c("0x27")](e,!1)})),this[$c("0x1e")](e,$c("0x3f"),((t,e,n)=>{this[$c("0x45")](e,$c("0x34")),this[$c("0x55")].delete(e),this[$c("0x59")][$c("0x0")](e)&&this[$c("0x1a")](e),n&&this[$c("0x23")](n[$c("0x2")])})),this[$c("0x1e")](e,$c("0xc"),((t,e)=>{this[$c("0x23")](e)})),this[$c("0x1e")](n,"change:activeAnnotations",(()=>{this[$c("0x37")]()})),this[$c("0x1e")](i,$c("0x51"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[$c("0x25")](n))return;const i=e[$c("0x5b")](n);this[$c("0x59")].get(i).view[$c("0x2a")]()}),{priority:$c("0x1b")})}[$c("0x37")](){const t=this[$c("0x12")][$c("0x46")][$c("0x50")]("Annotations"),e=this.editor.plugins.get($c("0x3b")),n=Array[$c("0x18")](t[$c("0x1d")],(t=>t[$c("0x5f")]))[$c("0xa")]((t=>this[$c("0x5a")][$c("0x0")](t))),o=[];for(const t of n){const e=this._viewToController.get(t)[$c("0x3e")][$c("0x61")]();o[$c("0x4e")](...e[$c("0x16")](((t,e)=>[...t,...e[$c("0x36")]()]),[]))}e.activeMarkers=o}[$c("0x17")](t){const n=(0,i.createDropdown)(t,i.SplitButtonView),o=this[$c("0x12")][$c("0x53")][$c("0x50")]("trackChanges"),r=Qo(t,"Track changes");n[$c("0x4b")][$c("0x31")]({tooltip:r,label:r,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[$c("0x4b")][$c("0x2f")]("isOn").to(o,$c("0x52")),n.buttonView.on($c("0xd"),(()=>{o[$c("0xd")](),this.editor[$c("0x58")][$c("0x48")].focus()}));const s=new e.Collection,x=[{type:$c("0x63"),model:{withText:!0,label:r,commandName:$c("0x38")}},{type:$c("0x57")},{type:$c("0x47"),model:{withText:!0,label:Qo(t,"Accept all suggestions"),commandName:$c("0x64")}},{type:"button",model:{withText:!0,label:Qo(t,"Accept all selected suggestions"),commandName:"acceptSelectedSuggestions"}},{type:$c("0x47"),model:{withText:!0,label:Qo(t,$c("0x24")),commandName:"discardAllSuggestions"}},{type:"button",model:{withText:!0,label:Qo(t,"Discard all selected suggestions"),commandName:$c("0x54")}}];for(const t of x){let e={type:$c("0x57")};if(t[$c("0x3e")]){const n=new i.Model(t.model),o=this[$c("0x12")][$c("0x53")][$c("0x50")](n[$c("0x2e")]);n.bind($c("0x35"),$c("0x1c")).to(o,$c("0x52"),$c("0x1c")),e={type:t.type,model:n}}s[$c("0x8")](e)}(0,i.addListToDropdown)(n,s);const a=x[$c("0xa")]((t=>null!=t.model))[$c("0x5e")]((t=>this.editor[$c("0x53")].get(t[$c("0x3e")].commandName))),c=n[$c("0x4b")];return c[$c("0x1")][$c("0x2d")]($c("0x1c")),c[$c("0x1f")].unbind("isEnabled"),c[$c("0x1")][$c("0x2f")]($c("0x1c")).to(o,"isEnabled"),c[$c("0x1f")][$c("0x2f")]($c("0x1c"))[$c("0x33")](a,$c("0x1c"),((...t)=>t[$c("0x3")]((t=>t)))),n.on($c("0xd"),(t=>{this.editor[$c("0xd")](t.source[$c("0x2e")]),this.editor[$c("0x58")].view[$c("0x2a")]()})),n}_initializeController(t){const e=this.editor,n=e[$c("0x5c")],o=e[$c("0x46")][$c("0x50")]("Annotations"),i=e[$c("0x46")][$c("0x50")]($c("0x30")),s=e[$c("0x46")].get("EditorAnnotations"),x=e[$c("0x46")][$c("0x50")](r.Users).me,a=n[$c("0x50")]($c("0x38"))[$c("0xb")],{CommentsListView:c,CommentThreadInputView:l}=e[$c("0x46")][$c("0x50")]($c("0x22"));let u,d;this[$c("0x3a")][$c("0x0")](t.id)?(d=this._annotationViews[$c("0x50")](t.id),u=d[$c("0x11")]):(u=new a(e[$c("0x60")],t,x,{disableComments:this[$c("0x19")],editorConfig:n.get($c("0x7")),maxCommentsWhenCollapsed:n[$c("0x50")]($c("0x21")),maxThreadTotalWeight:n.get("comments.maxThreadTotalWeight"),maxCommentCharsWhenCollapsed:n[$c("0x50")]($c("0x5d")),formatDateTime:(0,r.getDateTimeFormatter)(n.get($c("0x60"))),CommentView:n.get($c("0x49")).CommentView,CommentsListView:c,CommentThreadInputView:l}),u.acceptButton.on($c("0xd"),(()=>{e.editing.view[$c("0x2a")]()})),u[$c("0x20")].on($c("0xd"),(()=>{e[$c("0x58")][$c("0x48")][$c("0x2a")]()})),d=o[$c("0x62")](this.editor[$c("0x60")],u),d.bind($c("0x39")).to(u,"isDirty"),d[$c("0x2f")]($c("0x32")).to(u),d.bind("type").to(u,"type",(t=>$c("0x6")+t)),this._annotationViews.set(t.id,d));const g=i[$c("0x43")](t.commentThread,u),f=new wc(e,t,u,g),m=t[$c("0x61")]()[$c("0xa")]((t=>t.isInContent));u[$c("0x4c")]=e[$c("0x46")].get($c("0x3b"))[$c("0x4")][$c("0x4a")](m),this[$c("0x59")][$c("0x31")](t,f),this[$c("0x5a")][$c("0x31")](u,f);const h=o.createAnnotation({view:d,target:()=>{const n=[],o=t[$c("0x61")]()[$c("0xa")]((t=>t[$c("0x68")]));for(const t of o)n.push(...t[$c("0xe")]());return(0,r.getAllMarkersDomElementsSorted)(e.editing,n)},type:()=>$c("0x6")+f[$c("0x48")][$c("0x3d")]});i[$c("0x2c")](u,h),o[$c("0x8")](h),s[$c("0x4f")](h)}[$c("0x1a")](t){const e=this[$c("0x12")][$c("0x46")][$c("0x50")]($c("0x30")),n=this[$c("0x12")][$c("0x46")][$c("0x50")]($c("0x9")),o=this._suggestionToController[$c("0x50")](t),i=o[$c("0x48")],r=n.getByInnerView(i);e[$c("0x66")](i),r&&n.remove(r),this[$c("0x59")][$c("0x2b")](t),this[$c("0x5a")].delete(i),o[$c("0x14")]()}_updateController(t){if(!t[$c("0x68")]||!this[$c("0x59")][$c("0x0")](t))return;const e=this[$c("0x12")][$c("0x46")][$c("0x50")]("TrackChangesEditing"),n=this[$c("0x59")][$c("0x50")](t),o=t[$c("0x61")]();n.view[$c("0x4c")]=e._descriptionFactory[$c("0x4a")](o)}[$c("0x14")](){for(const t of this[$c("0x59")].keys())this[$c("0x1a")](t);for(const t of this[$c("0x3a")][$c("0x10")]())t[$c("0x11")][$c("0x14")]();super[$c("0x14")]()}}var Yc,Jc,Qc=["getSuggestions","addSuggestion","TrackChanges","get","requires","plugins","Comments","getSuggestion","editor","pluginName","adapter"];Yc=Qc,Jc=294,function(t){for(;--t;)Yc.push(Yc.shift())}(++Jc);var tl=function(t,e){return Qc[t-=0]};class el extends t.Plugin{static get[tl("0x7")](){return[hc,Zc,tl("0x9")]}static get[tl("0x1")](){return tl("0x5")}set[tl("0x2")](t){this[tl("0x0")][tl("0x8")][tl("0x6")](hc)[tl("0x2")]=t}get[tl("0x2")](){return this[tl("0x0")][tl("0x8")].get(hc)[tl("0x2")]}[tl("0x4")](t){return this.editor[tl("0x8")][tl("0x6")](hc).addSuggestionData(t)}[tl("0x3")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[tl("0x0")].plugins[tl("0x6")](hc)[tl("0x3")]({skipNotAttached:t,toJSON:e})}getSuggestion(t){return this[tl("0x0")][tl("0x8")][tl("0x6")](hc)[tl("0xa")](t)}}const nl=["rootsAttributes","addSuggestionData","result","name","create","data","createDocumentFragment","editor","requires","pluginName","createElement","editorCreator","TrackChangesEditing","trackChangesData.editorCreator","getSuggestions","getRootNames","init","_adapter","useAnonymousUser","getDataWithDiscardedSuggestions","addUser","track-changes-data-invalid-editor-creator","end","Pagination","acceptAllSuggestions","document","getRootsAttributes","push","config","getUser","get","trackChangesData","plugins","function","Users","execute","constructor","appendChild","model","destroy","define"];var ol,il;ol=nl,il=120,function(t){for(;--t;)ol.push(ol.shift())}(++il);const rl=function(t,e){return nl[t-=0]},sl=[rl("0x1a")];class xl extends t.Plugin{static get[rl("0xb")](){return[hc]}static get pluginName(){return"TrackChangesData"}[rl("0x13")](){const t=this.editor;if(t.config[rl("0x2")](rl("0x10"),(e=>{const n=t[rl("0x0")].document[rl("0x12")]().reduce(((t,e)=>(t[e]="",t)),{});return t[rl("0x27")][rl("0x7")](n,e)})),rl("0x24")!=typeof t[rl("0x1f")][rl("0x21")](rl("0x22")).editorCreator)throw new e.CKEditorError(rl("0x18"))}getDataWithAcceptedSuggestions(t){return ll(this.editor,!0,t)}[rl("0x16")](t){return ll(this.editor,!1,t)}}class al extends t.Plugin{static get[rl("0xc")](){return"TrackChangesDataGetter"}constructor(t){super(t),this[rl("0x5")]=rl("0x19")}[rl("0x13")](){this[rl("0xa")][rl("0x23")].get("CommentsRepository")._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[rl("0xa")].plugins[rl("0x21")](rl("0xf"))[rl("0x14")]=null}}function cl(t){return void 0!==t[rl("0x1d")]}async function ll(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,sl);o[rl("0x23")][rl("0x1e")](hc,al),o[rl("0x3")]=cl(t)?t[rl("0x1d")]():void 0;const i=document[rl("0x9")](),s=t[rl("0x1f")][rl("0x21")]("trackChangesData")[rl("0xe")],x=await s(o,(()=>function(t){const e=document[rl("0xd")]("div");return t[rl("0x28")](e),e}(i)));!function(t,e){const n=t[rl("0x0")][rl("0x1c")].getRootNames().reduce(((e,n)=>(e[n]=t[rl("0x8")][rl("0x21")]({rootName:n}),e)),{}),o=t[rl("0x23")].get(rl("0x25")).users.map((t=>({id:t.id,name:t[rl("0x6")]}))),i=t[rl("0x23")][rl("0x21")](rl("0xf"))[rl("0x11")]({skipNotAttached:!0,toJSON:!0}),r=e[rl("0x23")][rl("0x21")]("Users"),s=e[rl("0x23")][rl("0x21")](rl("0xf"));for(const t of o)r[rl("0x20")](t.id)||r[rl("0x17")](t);r.me||r[rl("0x15")]();for(const t of i)s[rl("0x4")](t);e.data.set(n)}(t,x),x[rl("0x26")](e?rl("0x1b"):"discardAllSuggestions");const a=cl(x)?x.getFullData(n):x[rl("0x8")][rl("0x21")](n);return await x[rl("0x1")](),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 r=e[o];if(void 0!==r)return r.exports;var i=e[o]={exports:{}};return t[o](i,i.exports,n),i.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>Pc,TrackChanges:()=>el,TrackChangesData:()=>xl,TrackChangesEditing:()=>hc});var t=n(704),e=n(209),r=n(273),i=n(417),s=n(492),x=n(995);const a=["has","affectsData","clearForceDisabled","_enableCommands","_enabledCommands","execute","_isEnabledBasedOnSelection","TrackChangesCommand","refresh","editor","commands","value"];var c,l;c=a,l=335,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return a[t-=0]};class d extends t.Command{constructor(t,e){super(t),this[u("0x5")]=e,this[u("0x0")]=!1,this[u("0x9")](),this[u("0x7")]=!1}[u("0x9")](){this.isEnabled=!0}[u("0x6")](){this[u("0x0")]=!this[u("0x0")],this[u("0x0")]?this._disableUnsupportedCommands():this._enableCommands()}_disableUnsupportedCommands(){for(const t of this.editor.commands[u("0xb")]())t[u("0x2")]&&!this[u("0x5")].has(t)&&t.forceDisabled(u("0x8"))}[u("0x4")](){for(const t of this[u("0xa")][u("0xb")].commands())t[u("0x2")]&&!this._enabledCommands[u("0x1")](t)&&t[u("0x3")](u("0x8"))}}const g=["_isEnabledBasedOnSelection","model","get","refresh","track-changes-accept-suggestion-not-found","_suggestions","editor"];var f,m;f=g,m=404,function(t){for(;--t;)f.push(f.shift())}(++m);const h=function(t,e){return g[t-=0]};class b extends t.Command{constructor(t,e){super(t),this[h("0x0")]=e,this[h("0x5")](),this[h("0x2")]=!1}refresh(){this.isEnabled=!0}execute(t){const n=this[h("0x0")][h("0x4")](t);if(!n)throw new e.CKEditorError(h("0x6"),this);const o=n.getRanges();this[h("0x1")][h("0x3")].canEditAt(o)&&this[h("0x1")].plugins[h("0x4")]("TrackChangesEditing").acceptSuggestion(n)}}const p=["_isEnabledBasedOnSelection","refresh","TrackChangesEditing","discardSuggestion","track-changes-discard-suggestion-not-found","get","getRanges","isEnabled","editor","_suggestions","plugins","model"];var E,_;E=p,_=421,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return p[t-=0]};class y extends t.Command{constructor(t,e){super(t),this[T("0x8")]=e,this[T("0x0")](),this[T("0xb")]=!1}refresh(){this[T("0x6")]=!0}execute(t){const n=this._suggestions.get(t);if(!n)throw new e.CKEditorError(T("0x3"),this);const o=n[T("0x5")]();this[T("0x7")][T("0xa")].canEditAt(o)&&this[T("0x7")][T("0x9")][T("0x4")](T("0x1"))[T("0x2")](n)}}const C=["createPositionAfter","deletion","sort","length","createPositionAt","push","content"," [color ","change","next","add","end","isInContent","color","start","isObject","isCollapsed","join","isTouching","execute","from","value","createRange","map","createPositionBefore","type","splice"];var A,k;A=C,k=231,function(t){for(;--t;)A.push(A.shift())}(++k);const I=function(t,e){return C[t-=0]};function R(t){return t[I("0xe")](((t,e)=>"deletion"==t[I("0xa")]&&I("0xd")!=e[I("0xa")]?-1:I("0xd")!=t[I("0xa")]&&I("0xd")==e.type?1:0))}function S(t,e){let n,o=0;const r=[],i=e.schema;for(;o<t.length;){const s=t[o],x=t[o+1];n||(n=e[I("0x9")](s)),v(e,s,x)||(r[I("0x11")](e[I("0x7")](n,i[I("0x0")](s)?e[I("0xc")](s):e[I("0x10")](s,I("0x17")))),n=null),o++}return r}function v(t,e,n){if(!n)return!1;const o=t[I("0xc")](e),r=t.createPositionBefore(n);return o.isTouching(r)}function N(t,e,n){for(;n[I("0xf")];){const o=n[I("0xb")](0,100);t[I("0x14")]((()=>{for(const t of o)t[I("0x18")]&&e[I("0x4")](t.id)}))}}const L=["isEnabled","editor","_command","getRanges","canEditAt","_isEnabledBasedOnSelection","values","isInContent","refresh","model","_suggestions","execute"];var M,w;M=L,w=365,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return L[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this._command=e,this[O("0x5")]=n,this[O("0x3")](),this[O("0x0")]=!1}[O("0x3")](){const t=Array.from(this[O("0x5")][O("0x1")]()).some((t=>t[O("0x2")]));this[O("0x7")]=this[O("0x9")][O("0x7")]&&t}[O("0x6")](){const t=R(Array.from(this[O("0x5")][O("0x1")]()));for(const e of t){const t=e[O("0xa")]();if(!this.editor.model[O("0xb")](t))return}N(this[O("0x8")][O("0x4")],this._command,t)}}const D=["canEditAt","from","editor","model","_command","_suggestions","refresh","_selectedSuggestions","isEnabled","execute","_isEnabledBasedOnSelection"];var B,P;B=D,P=497,function(t){for(;--t;)B.push(B.shift())}(++P);const U=function(t,e){return D[t-=0]};class j extends t.Command{constructor(t,e,n){super(t),this[U("0x2")]=e,this[U("0x3")]=n,this[U("0x5")]=new Set,this.refresh(),this[U("0x8")]=!1}[U("0x4")](){const t=this.editor[U("0x1")].document.selection,e=Array.from(this[U("0x3")].values());this[U("0x5")]=function(t,e){const n=Array[I("0x5")](t.getRanges()),o=new Set;for(const r of e)if(r[I("0x18")])for(const e of n)for(const n of r.getRanges())(e.isIntersecting(n)||t[I("0x1")]&&!r.isMultiRange&&r[I("0x15")]&&n.end[I("0x3")](e[I("0x1a")]))&&o[I("0x16")](r);return o}(t,e),this[U("0x6")]=this[U("0x2")].isEnabled&&!!this[U("0x5")].size}[U("0x7")](){const t=R(Array[U("0xa")](this[U("0x5")]));for(const e of t){const t=e.getRanges();if(!this.editor[U("0x1")][U("0x9")](t))return}N(this[U("0x0")][U("0x1")],this._command,t)}}const G=function(){this.__data__=[],this.size=0};const V=function(t,e){return t===e||t!=t&&e!=e};const H=function(t,e){for(var n=t.length;n--;)if(V(t[n][0],e))return n;return-1};var z=Array.prototype.splice;const W=function(t){var e=this.__data__,n=H(e,t);return!(n<0)&&(n==e.length-1?e.pop():z.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=H(e,t);return n<0?void 0:e[n][1]};const q=function(t){return H(this.__data__,t)>-1};const $=function(t,e){var n=this.__data__,o=H(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function X(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}X.prototype.clear=G,X.prototype.delete=W,X.prototype.get=K,X.prototype.has=q,X.prototype.set=$;const Z=X;const Y=function(){this.__data__=new Z,this.size=0};const J=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Q=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 rt=ot.Symbol;var it=Object.prototype,st=it.hasOwnProperty,xt=it.toString,at=rt?rt.toStringTag:void 0;const ct=function(t){var e=st.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var r=xt.call(t);return o&&(e?t[at]=n:delete t[at]),r};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=rt?rt.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 ft=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const mt=function(t){if(!ft(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 bt,pt=(bt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+bt:"";const Et=function(t){return!!pt&&pt 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 yt=/^\[object .+?Constructor\]$/,Ct=Function.prototype,At=Object.prototype,kt=Ct.toString,It=At.hasOwnProperty,Rt=RegExp("^"+kt.call(It).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!ft(t)||Et(t))&&(mt(t)?Rt:yt).test(Tt(t))};const vt=function(t,e){return null==t?void 0:t[e]};const Nt=function(t,e){var n=vt(t,e);return St(n)?n:void 0};const Lt=Nt(ot,"Map");const Mt=Nt(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 Dt=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 Bt=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Bt.call(e,t)};const Ut=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 jt(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])}}jt.prototype.clear=wt,jt.prototype.delete=Ot,jt.prototype.get=Dt,jt.prototype.has=Pt,jt.prototype.set=Ut;const Gt=jt;const Vt=function(){this.size=0,this.__data__={hash:new Gt,map:new(Lt||Z),string:new Gt}};const Ht=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const zt=function(t,e){var n=t.__data__;return Ht(e)?n["string"==typeof e?"string":"hash"]:n.map};const Wt=function(t){var e=zt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return zt(this,t).get(t)};const qt=function(t){return zt(this,t).has(t)};const $t=function(t,e){var n=zt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function Xt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Xt.prototype.clear=Vt,Xt.prototype.delete=Wt,Xt.prototype.get=Kt,Xt.prototype.has=qt,Xt.prototype.set=$t;const Zt=Xt;const Yt=function(t,e){var n=this.__data__;if(n instanceof Z){var o=n.__data__;if(!Lt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Zt(o)}return n.set(t,e),this.size=n.size,this};function Jt(t){var e=this.__data__=new Z(t);this.size=e.size}Jt.prototype.clear=Y,Jt.prototype.delete=J,Jt.prototype.get=Q,Jt.prototype.has=tt,Jt.prototype.set=Yt;const Qt=Jt;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=Nt(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 re=function(t,e,n){var o=t[e];oe.call(t,e)&&V(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const ie=function(t,e,n,o){var r=!n;n||(n={});for(var i=-1,s=e.length;++i<s;){var x=e[i],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),r?ne(n,x,a):re(n,x,a)}return n};const se=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 fe=function(){return!1};var me="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=me&&"object"==typeof module&&module&&!module.nodeType&&module,be=he&&he.exports===me?ot.Buffer:void 0;const pe=(be?be.isBuffer:void 0)||fe;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 ye={};ye["[object Float32Array]"]=ye["[object Float64Array]"]=ye["[object Int8Array]"]=ye["[object Int16Array]"]=ye["[object Int32Array]"]=ye["[object Uint8Array]"]=ye["[object Uint8ClampedArray]"]=ye["[object Uint16Array]"]=ye["[object Uint32Array]"]=!0,ye["[object Arguments]"]=ye["[object Array]"]=ye["[object ArrayBuffer]"]=ye["[object Boolean]"]=ye["[object DataView]"]=ye["[object Date]"]=ye["[object Error]"]=ye["[object Function]"]=ye["[object Map]"]=ye["[object Number]"]=ye["[object Object]"]=ye["[object RegExp]"]=ye["[object Set]"]=ye["[object String]"]=ye["[object WeakMap]"]=!1;const Ce=function(t){return xe(t)&&Te(t.length)&&!!ye[gt(t)]};const Ae=function(t){return function(e){return t(e)}};var ke="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ie=ke&&"object"==typeof module&&module&&!module.nodeType&&module,Re=Ie&&Ie.exports===ke&&et.process;const Se=function(){try{var t=Ie&&Ie.require&&Ie.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var ve=Se&&Se.isTypedArray;const Ne=ve?Ae(ve):Ce;var Le=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&de(t),r=!n&&!o&&pe(t),i=!n&&!o&&!r&&Ne(t),s=n||o||r||i,x=s?se(t.length,String):[],a=x.length;for(var c in t)!e&&!Le.call(t,c)||s&&("length"==c||r&&("offset"==c||"parent"==c)||i&&("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 De=Fe(Object.keys,Object);var Be=Object.prototype.hasOwnProperty;const Pe=function(t){if(!Oe(t))return De(t);var e=[];for(var n in Object(t))Be.call(t,n)&&"constructor"!=n&&e.push(n);return e};const Ue=function(t){return null!=t&&Te(t.length)&&!mt(t)};const je=function(t){return Ue(t)?Me(t):Pe(t)};const Ge=function(t,e){return t&&ie(e,je(e),t)};const Ve=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var He=Object.prototype.hasOwnProperty;const ze=function(t){if(!ft(t))return Ve(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&He.call(t,o))&&n.push(o);return n};const We=function(t){return Ue(t)?Me(t,!0):ze(t)};const Ke=function(t,e){return t&&ie(e,We(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,$e=qe&&"object"==typeof module&&module&&!module.nodeType&&module,Xe=$e&&$e.exports===qe?ot.Buffer:void 0,Ze=Xe?Xe.allocUnsafe:void 0;const Ye=function(t,e){if(e)return t.slice();var n=t.length,o=Ze?Ze(n):new t.constructor(n);return t.copy(o),o};const Je=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Qe=function(t,e){for(var n=-1,o=null==t?0:t.length,r=0,i=[];++n<o;){var s=t[n];e(s,n,t)&&(i[r++]=s)}return i};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Qe(nn(t),(function(e){return en.call(t,e)})))}:tn;const rn=function(t,e){return ie(t,on(t),e)};const sn=function(t,e){for(var n=-1,o=e.length,r=t.length;++n<o;)t[r+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)sn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return ie(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:sn(o,n(t))};const un=function(t){return ln(t,je,on)};const dn=function(t){return ln(t,We,an)};const gn=Nt(ot,"DataView");const fn=Nt(ot,"Promise");const mn=Nt(ot,"Set");const hn=Nt(ot,"WeakMap");var bn="[object Map]",pn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",yn=Tt(gn),Cn=Tt(Lt),An=Tt(fn),kn=Tt(mn),In=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Lt&&Rn(new Lt)!=bn||fn&&Rn(fn.resolve())!=pn||mn&&Rn(new mn)!=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 yn:return Tn;case Cn:return bn;case An:return pn;case kn:return En;case In:return _n}return e});const Sn=Rn;var vn=Object.prototype.hasOwnProperty;const Nn=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&vn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Ln=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Ln(e).set(new Ln(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 Dn=rt?rt.prototype:void 0,Bn=Dn?Dn.valueOf:void 0;const Pn=function(t){return Bn?Object(Bn.call(t)):{}};const Un=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const jn=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 Un(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 Pn(t)}};var Gn=Object.create;const Vn=function(){function t(){}return function(e){if(!ft(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Hn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Vn(xn(t))};const zn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Wn=Se&&Se.isMap;const Kn=Wn?Ae(Wn):zn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var $n=Se&&Se.isSet;const Xn=$n?Ae($n):qn;var Zn="[object Arguments]",Yn="[object Function]",Jn="[object Object]",Qn={};Qn[Zn]=Qn["[object Array]"]=Qn["[object ArrayBuffer]"]=Qn["[object DataView]"]=Qn["[object Boolean]"]=Qn["[object Date]"]=Qn["[object Float32Array]"]=Qn["[object Float64Array]"]=Qn["[object Int8Array]"]=Qn["[object Int16Array]"]=Qn["[object Int32Array]"]=Qn["[object Map]"]=Qn["[object Number]"]=Qn[Jn]=Qn["[object RegExp]"]=Qn["[object Set]"]=Qn["[object String]"]=Qn["[object Symbol]"]=Qn["[object Uint8Array]"]=Qn["[object Uint8ClampedArray]"]=Qn["[object Uint16Array]"]=Qn["[object Uint32Array]"]=!0,Qn["[object Error]"]=Qn[Yn]=Qn["[object WeakMap]"]=!1;const to=function t(e,n,o,r,i,s){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=i?o(e,r,i,s):o(e)),void 0!==x)return x;if(!ft(e))return e;var u=ge(e);if(u){if(x=Nn(e),!a)return Je(e,x)}else{var d=Sn(e),g=d==Yn||"[object GeneratorFunction]"==d;if(pe(e))return Ye(e,a);if(d==Jn||d==Zn||g&&!i){if(x=c||g?{}:Hn(e),!a)return c?cn(e,Ke(x,e)):rn(e,Ge(x,e))}else{if(!Qn[d])return i?e:{};x=jn(e,d,a)}}s||(s=new Qt);var f=s.get(e);if(f)return f;s.set(e,x),Xn(e)?e.forEach((function(r){x.add(t(r,n,o,r,e,s))})):Kn(e)&&e.forEach((function(r,i){x.set(i,t(r,n,o,i,e,s))}));var m=u?void 0:(l?c?dn:un:c?We:je)(e);return te(m||e,(function(r,i){m&&(r=e[i=r]),re(x,i,t(r,n,o,i,e,s))})),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)\]/,ro=/^\w*$/;const io=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(ro.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function so(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,r=e?e.apply(this,o):o[0],i=n.cache;if(i.has(r))return i.get(r);var s=t.apply(this,o);return n.cache=i.set(r,s)||i,s};return n.cache=new(so.Cache||Zt),n}so.Cache=Zt;const xo=so;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,r){e.push(o?r.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,r=Array(o);++n<o;)r[n]=e(t[n],n,t);return r};var go=rt?rt.prototype:void 0,fo=go?go.toString:void 0;const mo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return fo?fo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":mo(t)};const bo=function(t,e){return ge(t)?t:io(t,e)?[t]:lo(ho(t))};const po=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(!ft(t))return t;for(var r=-1,i=(e=bo(e,t)).length,s=i-1,x=t;null!=x&&++r<i;){var a=po(e[r]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(r!=s){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=ft(l)?l:_e(e[r+1])?[]:{})}re(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 yo=function(t){return this.__data__.has(t)};function Co(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Zt;++e<n;)this.add(t[e])}Co.prototype.add=Co.prototype.push=To,Co.prototype.has=yo;const Ao=Co;const ko=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 Io=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,r,i){var s=1&n,x=t.length,a=e.length;if(x!=a&&!(s&&a>x))return!1;var c=i.get(t),l=i.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new Ao:void 0;for(i.set(t,e),i.set(e,t);++u<x;){var f=t[u],m=e[u];if(o)var h=s?o(m,f,u,e,t,i):o(f,m,u,t,e,i);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!ko(e,(function(t,e){if(!Io(g,e)&&(f===t||r(f,t,n,o,i)))return g.push(e)}))){d=!1;break}}else if(f!==m&&!r(f,m,n,o,i)){d=!1;break}}return i.delete(t),i.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 vo=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var No=rt?rt.prototype:void 0,Lo=No?No.valueOf:void 0;const Mo=function(t,e,n,o,r,i,s){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!i(new Ln(t),new Ln(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return V(+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=vo),t.size!=e.size&&!a)return!1;var c=s.get(t);if(c)return c==e;o|=2,s.set(t,e);var l=Ro(x(t),x(e),o,r,i,s);return s.delete(t),l;case"[object Symbol]":if(Lo)return Lo.call(t)==Lo.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,r,i){var s=1&n,x=un(t),a=x.length;if(a!=un(e).length&&!s)return!1;for(var c=a;c--;){var l=x[c];if(!(s?l in e:wo.call(e,l)))return!1}var u=i.get(t),d=i.get(e);if(u&&d)return u==e&&d==t;var g=!0;i.set(t,e),i.set(e,t);for(var f=s;++c<a;){var m=t[l=x[c]],h=e[l];if(o)var b=s?o(h,m,l,e,t,i):o(m,h,l,t,e,i);if(!(void 0===b?m===h||r(m,h,n,o,i):b)){g=!1;break}f||(f="constructor"==l)}if(g&&!f){var p=t.constructor,E=e.constructor;p==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof p&&p instanceof p&&"function"==typeof E&&E instanceof E||(g=!1)}return i.delete(t),i.delete(e),g};var Fo="[object Arguments]",Do="[object Array]",Bo="[object Object]",Po=Object.prototype.hasOwnProperty;const Uo=function(t,e,n,o,r,i){var s=ge(t),x=ge(e),a=s?Do:Sn(t),c=x?Do:Sn(e),l=(a=a==Fo?Bo:a)==Bo,u=(c=c==Fo?Bo:c)==Bo,d=a==c;if(d&&pe(t)){if(!pe(e))return!1;s=!0,l=!1}if(d&&!l)return i||(i=new Qt),s||Ne(t)?Ro(t,e,n,o,r,i):Mo(t,e,a,n,o,r,i);if(!(1&n)){var g=l&&Po.call(t,"__wrapped__"),f=u&&Po.call(e,"__wrapped__");if(g||f){var m=g?t.value():t,h=f?e.value():e;return i||(i=new Qt),r(m,h,n,o,i)}}return!!d&&(i||(i=new Qt),Oo(t,e,n,o,r,i))};const jo=function t(e,n,o,r,i){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:Uo(e,n,o,r,t,i))};const Go=function(t,e){return jo(t,e)};const Vo=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Ho=function(t,e){for(var n=0,o=(e=bo(e,t)).length;null!=t&&n<o;)t=t[po(e[n++])];return n&&n==o?t:void 0};const zo=function(t,e,n){var o=-1,r=t.length;e<0&&(e=-e>r?0:r+e),(n=n>r?r:n)<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var i=Array(r);++o<r;)i[o]=t[o+e];return i};const Wo=function(t,e){return e.length<2?t:Ho(t,zo(e,0,-1))};const Ko=function(t,e){return e=bo(e,t),null==(t=Wo(t,e))||delete t[po(Vo(e))]};const qo=function(t,e){return null==t||Ko(t,e)},$o=["nodeAfter","delete","getFirstRange","getRanges","add","getMarkerNames","onDiscard","previous","isIntersecting","_isDataLoaded","toJSON","type","onAttributesChange","@external","length","end","nodeBefore","addMarker","getMarkers","getRange","reduce","_model","commentThread","_saved","isInContent","filter","_onAttributesChange","set","getMultiRangeId","removeMarker","addRange","substr","suggestion:","_onAccept","data","getContainedElement","start","setAttribute","head","getFirstMarker","size","createdAt","_onDiscard","decorate","getItems","removeAttribute","attributes","authoredAt","split","markers","change","from","addMarkerName","isExternal","next","isMultiRange","hasComments","creator","author","_markerNames","accept","subType","removeMarkers","discard"];var Xo,Zo;Xo=$o,Zo=352,function(t){for(;--t;)Xo.push(Xo.shift())}(++Zo);const Yo=function(t,e){return $o[t-=0]};class Jo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this[Yo("0x29")]=!1,this.id=e.id,this[Yo("0x2b")]=e[Yo("0x2b")],this.subType=e[Yo("0x1d")]||null,this[Yo("0x1a")]=e[Yo("0x1a")],this[Yo("0x19")]=e[Yo("0x19")]||e.author,this[Yo("0x15")]=Boolean(e[Yo("0xe")]&&e[Yo("0xe")][Yo("0x2d")]),this[Yo("0x2")]=null,this._model=t,this[Yo("0x1")]=e.onAccept,this[Yo("0xa")]=e[Yo("0x26")],this[Yo("0x3a")]=e[Yo("0x2c")],this._markerNames=new Set,this[Yo("0x9")]=null,this[Yo("0x3b")](Yo("0xf"),null),this[Yo("0x3b")](Yo("0xe"),e[Yo("0xe")]||{}),this.set(Yo("0x27"),null),this[Yo("0x3b")]("next",null),this[Yo("0x3b")](Yo("0x36"),null),this[Yo("0x3b")](Yo("0x37"),!1),this.decorate(Yo("0x1c")),this[Yo("0xb")]("discard")}get[Yo("0x6")](){let t=this;for(;t[Yo("0x27")];)t=t[Yo("0x27")];return t}get hasComments(){return!!this[Yo("0x36")]&&this.commentThread.length>0}get[Yo("0x17")](){return 0!=this[Yo("0x1b")][Yo("0x8")]&&6==Array[Yo("0x13")](this[Yo("0x1b")])[0][Yo("0x10")](":")[Yo("0x2e")]}get[Yo("0x38")](){return null!==this[Yo("0x7")]()}[Yo("0x14")](t){this[Yo("0x1b")][Yo("0x24")](t)}getMarkerNames(){return Array[Yo("0x13")](this[Yo("0x1b")])}getMarkers(){return this[Yo("0x25")]().map((t=>this._model[Yo("0x11")].get(t)))[Yo("0x39")]((t=>t))}[Yo("0x7")](){return this[Yo("0x32")]()[0]||null}[Yo("0x1e")](){this[Yo("0x35")][Yo("0x12")]((t=>{for(const e of this.getMarkers())t[Yo("0x3d")](e)})),this._markerNames.clear()}removeMarker(t){this[Yo("0x35")].change((e=>{e[Yo("0x3d")](t)})),this._markerNames[Yo("0x21")](t)}[Yo("0x3e")](t){const e=Yo("0x0")+this[Yo("0x2b")]+":"+this[Yo("0x1d")]+":"+this.id+":"+this[Yo("0x19")].id+":"+Jo[Yo("0x3c")]();this.addMarkerName(e),this[Yo("0x35")][Yo("0x12")]((n=>{n[Yo("0x31")](e,{range:t,usingOperation:!0,affectsData:!0})}))}isIntersectingWithRange(t){for(const e of this[Yo("0x23")]())if(e[Yo("0x28")](t))return!0;return!1}[Yo("0x23")](){return this[Yo("0x32")]().map((t=>t[Yo("0x33")]()))}[Yo("0xc")](){return this.getRanges()[Yo("0x34")](((t,e)=>[...t,...e.getItems()]),[])}[Yo("0x22")](){var t;return(null===(t=this[Yo("0x7")]())||void 0===t?void 0:t[Yo("0x33")]())||null}[Yo("0x3")](){const t=this.getRanges();if(1!=t[Yo("0x2e")])return null;const e=t[0],n=e[Yo("0x4")][Yo("0x20")],o=e[Yo("0x2f")][Yo("0x30")];return n instanceof s.Element?n!=o?null:n:null}[Yo("0x1c")](){this._onAccept(this[Yo("0x23")](),this[Yo("0x2")],this.attributes),this[Yo("0x1e")]()}[Yo("0x1f")](){this[Yo("0xa")](this[Yo("0x23")](),this[Yo("0x2")],this[Yo("0xe")]),this[Yo("0x1e")]()}getAllAdjacentSuggestions(){const t=[];let e=this.head;for(;e;)t.push(e),e=e[Yo("0x16")];return t}[Yo("0x5")](t,e){const n=eo(this[Yo("0xe")]);_o(n,t,e),Go(n,this[Yo("0xe")])||(this[Yo("0xe")]=n,this[Yo("0x3a")](n))}[Yo("0xd")](t){const e=eo(this[Yo("0xe")]);qo(e,t),Go(e,this[Yo("0xe")])||(this.attributes=e,this[Yo("0x3a")](this[Yo("0xe")]))}[Yo("0x2a")](){return{id:this.id,type:this[Yo("0x1d")]?this[Yo("0x2b")]+":"+this[Yo("0x1d")]:this.type,authorId:this.creator.id,createdAt:this[Yo("0x9")],hasComments:this[Yo("0x18")],data:this[Yo("0x2")],attributes:this.attributes}}static[Yo("0x3c")](){return(0,e.uid)()[Yo("0x3f")](1,5)}}function Qo(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"*Replace image URL*":return o("*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 format:* %0":return o("*Set format:* %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_DEFAULT":return o({string:"bulleted list (default)",id:"ELEMENT_BULLETED_LIST_DEFAULT"});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_DEFAULT":return o({string:"numbered list (default)",id:"ELEMENT_NUMBERED_LIST_DEFAULT"});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_ALIGNMENT":return o({string:"alignment",id:"FORMAT_ALIGNMENT"});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"FORMAT_INDENT":return o({string:"indent",id:"FORMAT_INDENT"});case"FORMAT_LIST_REVERSED":return o({string:"list reversed",id:"FORMAT_LIST_REVERSED"});case"FORMAT_LIST_START":return o({string:"list start",id:"FORMAT_LIST_START"});case"FORMAT_FONT_SIZE":return o({string:"font size",id:"FORMAT_FONT_SIZE"});case"FORMAT_FONT_FAMILY":return o({string:"font family",id:"FORMAT_FONT_FAMILY"});case"FORMAT_FONT_COLOR":return o({string:"font color",id:"FORMAT_FONT_COLOR"});case"FORMAT_FONT_BACKGROUND":return o({string:"font background color",id:"FORMAT_FONT_BACKGROUND"});case"FORMAT_IMAGE_SIZE":return o({string:"image size",id:"FORMAT_IMAGE_SIZE"});case"FORMAT_STYLE":return o({string:"style",id:"FORMAT_STYLE"});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);case"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering insertion suggestion.",id:"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving insertion suggestion.",id:"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering deletion suggestion.",id:"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving deletion suggestion.",id:"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering formatting suggestion.",id:"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving formatting suggestion.",id:"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT"});default:return e}}const tr=["addContainer","*Remove:* %0","attribute","_handleCustomCallbackDescription","*Split:* %0","_itemLabelsCallbacks","_schema","item","$1 $2","end","getFirstRange","isEmpty","isObject","_locale","registerAttributeLabel","*Set format:* %0","deletion","softBreak","start","has","text","data","elementEnd","*Insert:* %0","insertion","removeFormat","*Merge:* %0","Container","$text","isEqual","push","checkChild","_itemLabels","$textProxy","name","_customCallbacks","set","registerDescriptionCallback","map","*Change to:* %0","_resolveDescriptionItems","length","removeEmptyContainer","REPLACE_TEXT","format","add","previousSibling","match","addObject","Object","replace","join","_handleRenameSuggestionDescription","EmptyContainer","getItemLabel","skip","pop","quantity","function","elementStart","ELEMENT_SPACE","remove","subType","matchingCallback","*Remove format:* %0","indexOf","get","type","_attributeLabels","_handleAttributeSuggestionDescription","key","element","addFormat","nextSibling"];var er,nr;er=tr,nr=117,function(t){for(;--t;)er.push(er.shift())}(++nr);const or=function(t,e){return tr[t-=0]};class rr{constructor(t,e){this._customCallbacks=[],this[or("0x3f")]=new Map,this[or("0x24")]=[],this._attributeLabels=new Map,this._schema=t,this._locale=e}getDescriptions(t){const e=[],n=new Set,o=new Set;for(let r=0;r<t[or("0x48")];r++){const i=t[r];if(!i.isInContent)continue;const s=this[or("0x22")](i);if(s){if(null!=i.subType){if(n[or("0x32")](i[or("0x13")]))continue;n[or("0x2")](i.subType)}e[or("0x3d")](s)}else if(or("0x21")!=i[or("0x18")])or("0x37")!=i[or("0x18")]&&or("0x2f")!=i[or("0x18")]||this._handleInsertRemoveSuggestionDescription(e,i,t[r+1]);else{const t=i[or("0x34")][or("0x1b")];if(o.has(t))continue;o[or("0x2")](i[or("0x34")][or("0x1b")]),t==mc?this[or("0x9")](e,i):this[or("0x1a")](e,i)}}return this[or("0x47")](e)}[or("0x44")](t){this[or("0x42")][or("0x3d")](t)}registerElementLabel(t,n,o=e.priorities.normal){or("0xf")==typeof t?(0,e.insertToPriorityArray)(this[or("0x24")],{matchingCallback:t,label:n,priority:o}):this[or("0x3f")].set(t,n)}[or("0x2d")](t,e){this[or("0x19")][or("0x43")](t,e)}getItemLabel(t,e=1){let n;for(const e of this._itemLabelsCallbacks)if(e[or("0x14")](t)){n=e.label;break}return n||(n=this[or("0x3f")][or("0x17")](t[or("0x41")])),n?n(e):1!==e?e+" "+t.name+"s":""+t.name}_addDescriptionItems(t,e){const n=e[or("0x29")]().getWalker(),o="insertion"==e[or("0x18")]?or("0x2"):or("0x12");for(const e of n){const r=e[or("0x26")],i=t[t[or("0x48")]-1];if(r.is(or("0x40")))i&&i[or("0x18")].indexOf("Container")>-1&&t[or("0xd")](),i&&"text"==i[or("0x18")]?i[o]+=r.data:t[or("0x3d")]({type:or("0x33"),add:or("0x2")==o?r[or("0x34")]:"",remove:or("0x12")==o?r[or("0x34")]:""});else if(this._schema[or("0x2b")](r)){const s=r;if(i&&i[or("0x18")].indexOf("Container")>-1&&t[or("0xd")](),or("0x35")==e[or("0x18")])continue;i&&i[or("0x18")]==o+"Object"&&i[or("0x1c")].name==s[or("0x41")]?i[or("0xe")]++:t[or("0x3d")]({type:o+or("0x6"),element:s,quantity:1}),n[or("0xc")]((t=>!(or("0x35")==t.type&&t[or("0x26")]==r)))}else if(this._schema[or("0x3e")](r,or("0x3b"))||r.is("element",or("0x30"))){const n=r;if(or("0x2")==o&&or("0x10")==e.type||or("0x12")==o&&or("0x35")==e[or("0x18")])continue;if(i&&-1==i[or("0x18")][or("0x16")]("Container")){"text"==i[or("0x18")]&&(i[o]+="\n");continue}let s;if(s="add"==o?n[or("0x1e")]&&!this[or("0x25")].isObject(n[or("0x1e")])?n[or("0x1e")]:null:n[or("0x3")]&&!this[or("0x25")][or("0x2b")](n[or("0x3")])?n[or("0x3")]:null,n.isEmpty||s&&s[or("0x2a")]){const e=s&&s[or("0x2a")]?s:n;i&&i[or("0x18")]==o+or("0xa")&&i[or("0x1c")][or("0x41")]==e.name?i[or("0xe")]++:t[or("0x3d")]({type:o+or("0xa"),element:e,quantity:1})}else t[or("0x3d")]({type:o+or("0x3a"),element:n})}}}[or("0x47")](t){const e=this[or("0x2c")],n=[],o=[],r=[];for(const i of t)switch(i.type){case or("0x33"):if(i[or("0x2")]=i[or("0x2")][or("0x7")](/(\S)\u000A+(\S)/g,"$1 $2")[or("0x7")](/\u000A/g,""),i.remove=i.remove[or("0x7")](/(\S)\u000A+(\S)/g,or("0x27")).replace(/\u000A/g,""),""!=i[or("0x2")]&&""!=i[or("0x12")]){n[or("0x3d")]({type:or("0x7"),content:Qo(e,or("0x0"),['"'+i[or("0x12")]+'"','"'+i[or("0x2")]+'"'])});continue}if(null!=i.add[or("0x4")](/^ +$/)){n[or("0x3d")]({type:or("0x37"),content:Qo(e,or("0x36"),Qo(e,or("0x11"),i[or("0x2")].length))});continue}if(null!=i[or("0x12")].match(/^ +$/)){n[or("0x3d")]({type:or("0x2f"),content:Qo(e,"*Remove:* %0",Qo(e,or("0x11"),i[or("0x12")][or("0x48")]))});continue}if(""!=i.add){n[or("0x3d")]({type:or("0x37"),content:Qo(e,"*Insert:* %0",'"'+i[or("0x2")]+'"')});continue}n[or("0x3d")]({type:"deletion",content:Qo(e,or("0x20"),'"'+i[or("0x12")]+'"')});continue;case"addEmptyContainer":case or("0x5"):n[or("0x3d")]({type:or("0x37"),content:Qo(e,"*Insert:* %0",this[or("0xb")](i.element,i.quantity))});continue;case or("0x49"):case"removeObject":n.push({type:or("0x2f"),content:Qo(e,or("0x20"),this[or("0xb")](i[or("0x1c")],i[or("0xe")]))});continue;case or("0x1f"):n[or("0x3d")]({type:or("0x37"),content:Qo(e,or("0x23"),this[or("0xb")](i[or("0x1c")],i[or("0xe")]))});continue;case"removeContainer":n[or("0x3d")]({type:or("0x2f"),content:Qo(e,or("0x39"),this[or("0xb")](i[or("0x1c")],i[or("0xe")]))});continue;case or("0x1d"):o[or("0x3d")](i[or("0x1b")]);continue;case or("0x38"):r[or("0x3d")](i[or("0x1b")]);continue;default:n[or("0x3d")](i)}if(o[or("0x48")]){const t=o[or("0x45")]((t=>this[or("0x19")][or("0x32")](t)?this._attributeLabels[or("0x17")](t):t))[or("0x8")](", ");n[or("0x3d")]({type:or("0x1"),content:Qo(this[or("0x2c")],or("0x2e"),t)})}if(r[or("0x48")]){const t=r[or("0x45")]((t=>this[or("0x19")].has(t)?this[or("0x19")][or("0x17")](t):t)).join(", ");n.push({type:or("0x1"),content:Qo(this[or("0x2c")],or("0x15"),t)})}return n}_handleCustomCallbackDescription(t){for(const e of this[or("0x42")]){const n=e(t);if(n&&"type"in n)return n}}[or("0x1a")](t,e){const n=e.data,o=void 0===n.newValue?"removeFormat":or("0x1d");t[or("0x3d")]({type:o,key:n[or("0x1b")]})}[or("0x9")](t,e){t[or("0x3d")]({type:or("0x1"),content:Qo(this._locale,or("0x46"),this[or("0xb")](e[or("0x29")]().start.nodeAfter,1))})}_handleInsertRemoveSuggestionDescription(t,e,n){if(this._addDescriptionItems(t,e),n&&n.getFirstRange()&&!e.getFirstRange()[or("0x28")][or("0x3c")](n.getFirstRange()[or("0x31")])){const n=t[t.length-1],o="insertion"==e.type?or("0x2"):or("0x12");n&&or("0x33")==n[or("0x18")]&&(n[o]+="\n")}}}const ir=["commands","enableCommand","TrackChangesEditing","showAIAssistant","afterInit","plugins","get","editor"];var sr,xr;sr=ir,xr=200,function(t){for(;--t;)sr.push(sr.shift())}(++xr);const ar=function(t,e){return ir[t-=0]};class cr extends t.Plugin{[ar("0x4")](){const t=this[ar("0x7")],e=t[ar("0x5")][ar("0x6")](ar("0x2"));t[ar("0x0")].get(ar("0x3"))&&e[ar("0x1")](ar("0x3"))}}const lr=["plugins","right","locale","commandName","_registerLegacyDescription","center","left","type","value","FORMAT_ALIGN_TO_RIGHT","format","commandParams","alignment","AlignmentEditing","_enableDefaultAttributesIntegration","editor","registerAttributeLabel","get","registerDescriptionCallback","FORMAT_ALIGN_TO_CENTER"];var ur,dr;ur=lr,dr=479,function(t){for(;--t;)ur.push(ur.shift())}(++dr);const gr=function(t,e){return lr[t-=0]};class fr extends t.Plugin{afterInit(){const t=this[gr("0x10")],e=t.locale;if(!t[gr("0x1")].has(gr("0xe")))return;const n=t[gr("0x1")].get("TrackChangesEditing");n[gr("0xf")](gr("0xd"),[],[gr("0xd")]),n._descriptionFactory[gr("0x11")](gr("0xd"),Qo(e,"FORMAT_ALIGNMENT")),this[gr("0x5")]()}[gr("0x5")](){const t=this[gr("0x10")],e=t[gr("0x3")];t.plugins[gr("0x12")]("TrackChangesEditing")._descriptionFactory[gr("0x13")]((t=>{if("formatBlock"!=t[gr("0x8")])return;const{data:n}=t;if(n&&gr("0xd")==n[gr("0x4")]){const t=n[gr("0xc")][0][gr("0x9")];return{type:gr("0xb"),content:Qo(e,"*Format:* %0",function(t){switch(t){case gr("0x7"):return Qo(e,"FORMAT_ALIGN_TO_LEFT");case gr("0x2"):return Qo(e,gr("0xa"));case gr("0x6"):return Qo(e,gr("0x0"));case"justify":return Qo(e,"FORMAT_JUSTIFY_TEXT")}}(t))}}}))}}const mr=["plugins","StrikethroughEditing","FORMAT_","toLowerCase","underline","FORMAT_SUPERSCRIPT","italic","format","*Remove format:* %0","forceValue","FORMAT_UNDERLINE","ItalicEditing","UnderlineEditing","locale","get","FORMAT_ITALIC","BoldEditing","_enableDefaultAttributesIntegration","CodeEditing","FORMAT_STRIKETHROUGH","superscript","has","registerDescriptionCallback","registerAttributeLabel","FORMAT_BOLD","*Format:* %0","TrackChangesEditing","_descriptionFactory","commandParams","formatInline","_registerLegacyDescription","bold","FORMAT_CODE","type","editor","slice"];var hr,br;hr=mr,br=499,function(t){for(;--t;)hr.push(hr.shift())}(++br);const pr=function(t,e){return mr[t-=0]},Er=[pr("0x15"),pr("0x10"),pr("0x11"),pr("0x17"),pr("0x6"),"SubscriptEditing","SuperscriptEditing"];class _r extends t.Plugin{afterInit(){const t=this[pr("0x3")],e=t[pr("0x5")][pr("0x13")](pr("0x1f")),n=t[pr("0x12")];for(const o of Er){if(!t[pr("0x5")][pr("0x1a")](o))continue;const r=o[pr("0x4")](0,-7)[pr("0x8")](),i=pr("0x7")+r.toUpperCase();e[pr("0x16")](r,[r]),e[pr("0x20")][pr("0x1c")](r,Qo(n,i))}this[pr("0x23")]()}[pr("0x23")](){const t=this[pr("0x3")],e=t[pr("0x12")],n=t[pr("0x5")][pr("0x13")](pr("0x1f"));function o(t,o){n[pr("0x20")][pr("0x1b")]((n=>{if(pr("0x22")!=n[pr("0x2")])return;const{data:r}=n;return r&&r.commandName===t?r[pr("0x21")][0][pr("0xe")]?{type:"format",content:Qo(e,pr("0x1e"),o)}:{type:pr("0xc"),content:Qo(e,pr("0xd"),o)}:void 0}))}o(pr("0x0"),Qo(e,pr("0x1d"))),o(pr("0xb"),Qo(e,pr("0x14"))),o(pr("0x9"),Qo(e,pr("0xf"))),o("code",Qo(e,pr("0x1"))),o("strikethrough",Qo(e,pr("0x18"))),o("subscript",Qo(e,"FORMAT_SUBSCRIPT")),o(pr("0x19"),Qo(e,pr("0xa")))}}const Tr=["commandName","TrackChangesEditing","schema","commandParams","filter","parent","locale","editor","forceValue","commands","getSelectedBlocks","document","markBlockFormat","name","$root","checkChild","blockQuote","registerDescriptionCallback","_descriptionFactory","ELEMENT_BLOCK_QUOTE","from","has","get","*Set format:* %0","plugins","model","selection"];var yr,Cr;yr=Tr,Cr=263,function(t){for(;--t;)yr.push(yr.shift())}(++Cr);const Ar=function(t,e){return Tr[t-=0]};class kr extends t.Plugin{afterInit(){const t=this[Ar("0xe")],e=t[Ar("0xd")];if(!t[Ar("0x4")][Ar("0x1")]("BlockQuoteEditing"))return;const n=t[Ar("0x4")].get(Ar("0x8")),o=this.editor[Ar("0x10")][Ar("0x2")](Ar("0x17"));n.enableCommand(Ar("0x17"),((e,r={})=>{const i=this[Ar("0xe")][Ar("0x5")][Ar("0x12")][Ar("0x6")],s=r&&void 0!==r[Ar("0xf")]?r[Ar("0xf")]:!o.value;let x=[];if(s){const e=Array.from(i.getSelectedBlocks())[Ar("0xb")]((t=>Ir(t)||function(t,e){const n=e.checkChild(t[Ar("0xc")],"blockQuote"),o=e[Ar("0x16")]([Ar("0x15"),"blockQuote"],t);return n&&o}(t,this[Ar("0xe")].model[Ar("0x9")])));x=S(e,t.model)}else{const e=Array[Ar("0x0")](i[Ar("0x11")]())[Ar("0xb")]((t=>Ir(t)));x=S(e,t[Ar("0x5")])}t[Ar("0x5")].change((()=>{for(const t of x)n[Ar("0x13")](t,{commandName:Ar("0x17"),commandParams:[{forceValue:s}]})}))})),n[Ar("0x19")][Ar("0x18")]((t=>{const{data:n}=t;if(n&&Ar("0x17")==n[Ar("0x7")]){const t=Qo(e,Ar("0x1a"));return n[Ar("0xa")][0][Ar("0xf")]?{type:"format",content:Qo(e,Ar("0x3"),t)}:{type:"format",content:Qo(e,"*Remove format:* %0",t)}}}))}}function Ir(t){return Ar("0x17")==t[Ar("0xc")][Ar("0x14")]}const Rr=["ckbox","enableCommand","commands","afterInit","TrackChangesEditing","editor","plugins"];var Sr,vr;Sr=Rr,vr=196,function(t){for(;--t;)Sr.push(Sr.shift())}(++vr);const Nr=function(t,e){return Rr[t-=0]};class Lr extends t.Plugin{[Nr("0x3")](){const t=this[Nr("0x5")];t[Nr("0x2")].get(Nr("0x0"))&&t[Nr("0x6")].get(Nr("0x4"))[Nr("0x1")](Nr("0x0"))}}const Mr=["find","enableCommand","has","TrackChangesEditing","selection","plugins","outdentCodeBlock","filter","change","config","commandName","locale","formatBlock","codeBlock","value","ELEMENT_CODE_BLOCK","get","toLowerCase","parent","from","isLimit","forceValue","CodeBlock","*Set format:* %0","commandParams","markBlockFormat","language","blockName","registerDescriptionCallback","afterInit","rootElement","_descriptionFactory","checkChild","type","document","commands","editor","indentCodeBlock","schema","getSelectedBlocks","format"];var wr,Or;wr=Mr,Or=463,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Fr=function(t,e){return Mr[t-=0]};class Dr extends t.Plugin{[Fr("0x11")](){const t=this[Fr("0x18")];if(!t[Fr("0x22")][Fr("0x1f")](Fr("0xa")))return;const e=t.plugins[Fr("0x4")](Fr("0x20")),n=t[Fr("0x28")],o=t[Fr("0x26")][Fr("0x4")](Fr("0x1")).languages,r=t[Fr("0x17")][Fr("0x4")]("codeBlock");e[Fr("0x1e")](Fr("0x19")),e.enableCommand(Fr("0x23")),e[Fr("0x1e")]("codeBlock",((n,i={})=>{const s=t.model,x=t.model[Fr("0x16")][Fr("0x21")],a=i&&void 0!==i[Fr("0x9")]?i.forceValue:!r[Fr("0x2")];let c;i[Fr("0xe")]||(i[Fr("0xe")]=o[0][Fr("0xe")]),c=a?Array.from(x.getSelectedBlocks()).filter((t=>{return Br(t)||(e=t,n=s[Fr("0x1a")],!e.is(Fr("0x12"))&&!n[Fr("0x8")](e)&&n[Fr("0x14")](e[Fr("0x6")],Fr("0x1")));var e,n})):Array[Fr("0x7")](x[Fr("0x1b")]())[Fr("0x24")]((t=>Br(t)));const l=S(c,s);s[Fr("0x25")]((()=>{for(const t of l)e[Fr("0xd")](t,{commandName:"codeBlock",commandParams:[{...i,forceValue:a}],formatGroupId:Fr("0xf")})}))})),e[Fr("0x13")].registerElementLabel(Fr("0x1"),(t=>Qo(n,Fr("0x3"),t))),e._descriptionFactory[Fr("0x10")]((t=>{if(Fr("0x0")!=t[Fr("0x15")])return;const e=n.t,{data:r}=t;if(!r||"codeBlock"!=r[Fr("0x27")])return;const i=r.commandParams[0][Fr("0xe")],s=e(o[Fr("0x1d")]((t=>t.language===i)).label)[Fr("0x5")]();return r[Fr("0xc")][0][Fr("0x9")]?{type:Fr("0x1c"),content:Qo(n,Fr("0xb"),Qo(n,Fr("0x3"),1)+" ("+s+")")}:{type:"format",content:Qo(n,"*Remove format:* %0",Qo(n,Fr("0x3"),1))}}))}}function Br(t){return"codeBlock"==t.name}const Pr=["has","get","enableCommand","afterInit","editor","TrackChangesEditing"];var Ur,jr;Ur=Pr,jr=270,function(t){for(;--t;)Ur.push(Ur.shift())}(++jr);const Gr=function(t,e){return Pr[t-=0]};class Vr extends t.Plugin{[Gr("0x3")](){const t=this[Gr("0x4")];t.plugins[Gr("0x0")]("CommentsEditing")&&t.plugins[Gr("0x1")](Gr("0x5"))[Gr("0x2")]("addCommentThread")}}var Hr=n(181);const zr=["addHighlight","previousPosition","elementEnd","toViewPosition","mapper","writer","isBlock","activeMarkers","markerRange","push","name","parent","getAttribute","bindElementToMarker","isLimit","getCustomProperty","markerName","model","span","includes","type","test","ck-suggestion-marker-","listItem","ck-suggestion-marker--active","insert","start","isAtEnd","getWalker","item","toViewElement","consumable","getItems","element","listIndent","get"];var Wr,Kr;Wr=zr,Kr=253,function(t){for(;--t;)Wr.push(Wr.shift())}(++Kr);const qr=function(t,e){return zr[t-=0]};function $r(t,e,n){const o=[];for(const r of e[qr("0x1f")]())r.hasAttribute(t)&&o[qr("0x8")](n.createRangeOn(r));return o}function Xr(t,e,{showActiveMarker:n=!0}={}){const o=t.plugins[qr("0x22")]("TrackChangesEditing");return(r,i,s)=>{if(!s[qr("0x1e")][qr("0x14")](i[qr("0x7")],r[qr("0x9")]))return;const x=i[qr("0x7")][qr("0x1b")](),a=i[qr("0x7")][qr("0x19")],c=t[qr("0x10")].schema;let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[qr("0x1c")];d=d||c.isContent(e);const n=s[qr("0x3")][qr("0x1d")](e);if(n&&n[qr("0xe")](qr("0x23")))return;qr("0x1")==t[qr("0x13")]&&c[qr("0x5")](e)&&!c[qr("0xd")](e)&&(e.nextSibling||a[qr("0x1a")]?l&&l[qr("0xa")]==e||(l=e,f(t[qr("0x0")]),g=!0):u=u||t[qr("0x0")])}function f(t){const r=s[qr("0x4")].createUIElement(qr("0x11"),{class:qr("0x15")+e}),x=s[qr("0x3")][qr("0x2")](t);n&&o[qr("0x6")][qr("0x12")](i[qr("0xf")])&&s[qr("0x4")].addClass(qr("0x17"),r),s[qr("0x4")][qr("0x18")](x,r),s[qr("0x3")][qr("0xc")](r,i.markerName)}d||g||!u||f(u)}}const Zr=["createRange","showSuggestionHighlights","markerName","plugins","requires","fromRange","$graveyard","editing","commands","root","merge","data","forward","editor","addMarker:suggestion:deletion","model","batch","createSelection","selection","buffer","getFirstRange","options","downcastDispatcher","deleteForward","modifySelection","remove","enableCommand","detach","unlock","unbindElementFromMarkerName","mapper","isCollapsed","enqueueChange","init","high","markerNameToElements","start","end","removeMarker:suggestion:deletion","setSelection","get"];var Yr,Jr;Yr=Zr,Jr=313,function(t){for(;--t;)Yr.push(Yr.shift())}(++Jr);const Qr=function(t,e){return Zr[t-=0]};class ti extends t.Plugin{static get[Qr("0x13")](){return[Hr.Delete]}[Qr("0x7")](){const t=this[Qr("0x1c")],e=t[Qr("0x12")][Qr("0xe")]("TrackChangesEditing");e.enableCommand("delete");const n=t[Qr("0x17")][Qr("0xe")](Qr("0x26"));e[Qr("0x0")](Qr("0x26"),((e,o={})=>{const r=t[Qr("0x1e")][Qr("0x20")](t[Qr("0x1e")].document[Qr("0x21")]);r[Qr("0x5")]&&t[Qr("0x1e")][Qr("0x27")](r,{direction:Qr("0x1b"),unit:o.unit});const i=r[Qr("0x23")](),x=s.LiveRange[Qr("0x14")](i);let a;e(o),a=Qr("0x15")==x[Qr("0x18")].rootName?t[Qr("0x1e")][Qr("0xf")](i.start):t[Qr("0x1e")][Qr("0xf")](x[Qr("0xa")],x[Qr("0xb")]),x[Qr("0x1")](),t[Qr("0x1e")][Qr("0x6")](n[Qr("0x22")][Qr("0x1f")],(t=>{n.buffer.lock(),t[Qr("0xd")](t[Qr("0xf")](a[Qr("0xb")])),n[Qr("0x22")][Qr("0x2")]()}))})),t[Qr("0x16")].downcastDispatcher.on(Qr("0x1d"),Xr(t,Qr("0x19")),{priority:Qr("0x8")}),t[Qr("0x1a")][Qr("0x25")].on(Qr("0x1d"),((e,n,o)=>{o[Qr("0x24")][Qr("0x10")]&&Xr(t,"merge",{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:"high"}),t[Qr("0x16")][Qr("0x25")].on(Qr("0xc"),((t,e,n)=>{const o=n.mapper[Qr("0x9")](e[Qr("0x11")]);if(o)for(const t of o)t.is("uiElement")&&(n[Qr("0x4")][Qr("0x3")](t,e[Qr("0x11")]),n.writer[Qr("0x28")](t))}),{priority:Qr("0x8")})}}const ei=["deletion","isFirstBlockOfListItem","getSelectedBlocks","ELEMENT_NUMBERED_LIST","plugins","nodeAfter","_descriptionFactory","selection","DocumentListEditing","isObject","formatBlock","refresh","ELEMENT_LIST_ITEM","end","before","*Format:* remove from %0","format","schema","forceValue","add","formatInline","commands","markBlockFormat","get","accept","editor","value","parent","execute","*Change to:* %0","hasAttribute","setSelection","commandParams","outdentList","model","detach","_suggestionFactory","length","commandName","listIndent","push","markMultiRangeBlockFormat","registerDescriptionCallback","mergeListItemForward","*Outdent:* %0","bulletedList","list.multiBlock","from","*Indent:* %0","_LIST","next","findIndex","splitListItemAfter","start","multipleBlocks","change","slice","nextSibling","enableCommand","document","createRange","documentList","paragraph","getFirstRange","numberedList","getAttribute","registerCustomCallback","has","createPositionAt","config","listType","fromRange","listItemId","indentList","DocumentListUtils","ELEMENT_BULLETED_LIST","splitListItemBefore","map","mergeListItemBackward","after"];var ni,oi;ni=ei,oi=399,function(t){for(;--t;)ni.push(ni.shift())}(++oi);const ri=function(t,e){return ei[t-=0]};class ii extends t.Plugin{afterInit(){const t=this[ri("0x1a")];if(!t[ri("0x5")][ri("0x44")](ri("0x9")))return;const e=t.locale,n=t[ri("0x5")][ri("0x18")]("TrackChangesEditing"),o=t[ri("0x5")][ri("0x18")](ri("0x4b"));function r(e){return()=>{const r=t[ri("0x16")][ri("0x18")](e);if(r[ri("0x1b")]&&!t[ri("0x46")].get(ri("0x2f")))return void t.execute(ri("0x3f"),{});let i=Array[ri("0x30")](t[ri("0x23")].document[ri("0x8")].getSelectedBlocks());if(a(e)){i=o.expandListBlocksToCompleteList(i);const t=[];for(const e of i)o[ri("0x2")](e)&&t[ri("0x29")](e);i=t}t[ri("0x23")][ri("0x38")]((()=>{n[ri("0x2a")](i,{commandName:e,commandParams:[{forceValue:!r[ri("0x1b")]}],formatGroupId:ri("0x47")},[],"documentList")}))}}function i(e){return()=>{const o=function(t){let e=Array[ri("0x30")](t);const n=e[ri("0x34")]((t=>!t[ri("0x1f")]("listItemId")));return n>-1&&(e=e[ri("0x39")](0,n)),e}(t[ri("0x23")][ri("0x3c")][ri("0x8")][ri("0x3")]()),r=o[o[ri("0x26")]-1],i=t[ri("0x23")][ri("0x12")][ri("0xa")](r)?ri("0x0"):ri("0xe"),s=t.model[ri("0x3d")](t.model.createPositionAt(o[0],ri("0xf")),t[ri("0x23")].createPositionAt(r,i));t[ri("0x23")][ri("0x38")]((()=>{n[ri("0x17")](s,{commandName:e,commandParams:[],formatGroupId:ri("0x47")},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t[ri("0x42")](ri("0x28"))>n[ri("0x42")](ri("0x28"));)e[ri("0x14")](t),t=t[ri("0x3a")]}return Array[ri("0x30")](e)}(o))}))}}function x(e){return()=>{const o=t[ri("0x23")][ri("0x3c")][ri("0x8")][ri("0x3")]()[ri("0x33")]()[ri("0x1b")],r=t[ri("0x23")][ri("0x45")](o,ri("0xf")),i=t.model[ri("0x45")](o,0),s=t[ri("0x23")][ri("0x3d")](r,i);t.model[ri("0x38")]((()=>{n.markBlockFormat(s,{commandName:e,commandParams:[],formatGroupId:ri("0x47")})}))}}function a(e){const n=t[ri("0x16")].get("bulletedList")[ri("0x1b")],o=t[ri("0x16")].get(ri("0x41"))[ri("0x1b")];return ri("0x41")===e?n:o}n.enableCommand(ri("0x41"),r("numberedList")),n[ri("0x3b")](ri("0x2e"),r("bulletedList")),n.enableCommand(ri("0x4a"),i(ri("0x4a"))),n[ri("0x3b")]("outdentList",i(ri("0x22"))),n.enableCommand(ri("0x35"),x("splitListItemAfter")),n[ri("0x3b")](ri("0x4d"),x(ri("0x4d"))),n[ri("0x7")].registerElementLabel((function(e){const n=!t[ri("0x23")][ri("0x12")][ri("0xa")](e),o=e.previousSibling,r=e[ri("0x3a")],i=e[ri("0x42")](ri("0x49")),s=!o||o[ri("0x42")](ri("0x49"))!==i,x=!r||r[ri("0x42")]("listItemId")!==i;return n&&Boolean(i)&&s&&x}),(t=>Qo(e,ri("0xd"),t))),n._descriptionFactory[ri("0x2b")]((function(n){if(ri("0xb")!=n.type&&ri("0x15")!=n.type)return;const{data:o}=n;if(!o)return;let r,i,s,x;switch(o.commandName){case ri("0x2e"):s=o.commandParams[0][ri("0x13")],x=a(o[ri("0x27")]),r=s?"*Format:* insert into %0":ri("0x10"),!x&&t.config.get(ri("0x2f"))||(r=ri("0x1e")),i={type:ri("0x11"),content:Qo(e,r,Qo(e,ri("0x4c")))};break;case ri("0x41"):s=o[ri("0x21")][0][ri("0x13")],x=a(o.commandName),r=s?"*Format:* insert into %0":"*Format:* remove from %0",!x&&t[ri("0x46")][ri("0x18")]("list.multiBlock")||(r="*Change to:* %0"),i={type:ri("0x11"),content:Qo(e,r,Qo(e,ri("0x4")))};break;case ri("0x4a"):r=ri("0x31"),i={type:ri("0x11"),content:Qo(e,r,Qo(e,ri("0xd")))};break;case ri("0x22"):r=function(t){const e=t.getFirstRange();let n=e[ri("0x36")].nodeAfter;for(;n&&e.containsItem(n);){if(n[ri("0x42")](ri("0x28"))>0)return!1;n=n[ri("0x3a")]}return!0}(n)?Qo(e,"*Format:* remove from %0",Qo(e,"ELEMENT_"+n[ri("0x40")]()[ri("0x36")][ri("0x6")][ri("0x42")](ri("0x47")).toUpperCase()+ri("0x32"))):Qo(e,ri("0x2d"),Qo(e,ri("0xd"))),i={type:ri("0x11"),content:r};break;case ri("0x4f"):case ri("0x2c"):!1===o[ri("0x37")]&&(r="*Merge:* %0",i={type:ri("0x1"),content:Qo(e,r,Qo(e,"ELEMENT_LIST_ITEM"))})}return i})),n[ri("0x25")][ri("0x43")]("formatBlock",ri("0x3e"),ri("0x19"),(function(e,n){const o=[];for(let n of e)n[ri("0x36")][ri("0x6")]===n[ri("0xe")][ri("0x1c")]&&(n=t[ri("0x23")][ri("0x3d")](t.model[ri("0x45")](n[ri("0x36")][ri("0x6")],0))),o[ri("0x29")](n);t.model[ri("0x38")]((e=>{const r=t.model[ri("0x3c")][ri("0x8")],i=Array.from(r.getRanges())[ri("0x4e")]((t=>s.LiveRange[ri("0x48")](t)));e[ri("0x20")](o),t[ri("0x16")][ri("0x18")](n[ri("0x27")])[ri("0xc")](),n[ri("0x21")][ri("0x29")]({forceDefaultExecution:!0}),t[ri("0x1d")](n.commandName,...n[ri("0x21")]),e[ri("0x20")](i);for(const t of i)t[ri("0x24")]()}))}))}}const si=["DocumentListPropertiesEditing","replace","*Change to:* %0","toUpperCase","listStart","config","isListItemBlock","isFirstBlockOfListItem","handleListStartCommand","reversed","listType","editor","markMultiRangeBlockFormat","handleListReversedCommand","*Format:* set order to reversed","bind","DocumentListPropertiesUtils","registerDescriptionCallback","TrackChangesEditing","_getTranslationKeyForListStyle","_getSuggestionBlocks","locale","listStyle","enableCommand","plugins","listReversed","expandListBlocksToCompleteList","_LIST_","list.properties","length","_getSuggestionBlocksForListStyle","commandName","handleListStyleCommand","DocumentListUtils","getSelectedBlocks","numbered","selection","push","type","getListTypeFromListStyleType","commandParams","formatInline","document","change","*Format:* set start index to %0","styles","format","get","startIndex","model","getAttribute"];var xi,ai;xi=si,ai=223,function(t){for(;--t;)xi.push(xi.shift())}(++ai);const ci=function(t,e){return si[t-=0]};class li extends t.Plugin{afterInit(){if(!this[ci("0x2b")][ci("0x5")].has(ci("0x20")))return;const t=this[ci("0x2b")][ci("0x25")][ci("0x1c")](ci("0x9")),e=this[ci("0x2b")][ci("0x5")].get("TrackChangesEditing");t[ci("0x1a")]&&e.enableCommand(ci("0x3"),this[ci("0xd")][ci("0x2f")](this)),t[ci("0x29")]&&e[ci("0x4")](ci("0x6"),this[ci("0x2d")].bind(this)),t.startIndex&&e[ci("0x4")](ci("0x24"),this[ci("0x28")][ci("0x2f")](this)),e._descriptionFactory[ci("0x31")](this.handleDescriptions[ci("0x2f")](this))}[ci("0xd")](t,e={}){const n=this[ci("0x2b")][ci("0x5")][ci("0x1c")](ci("0x32")),o=this[ci("0xb")]();this[ci("0x2b")][ci("0x1e")][ci("0x18")]((()=>{n.markMultiRangeBlockFormat(o,{commandName:"listStyle",commandParams:[{type:e[ci("0x13")]}],formatGroupId:ci("0x3")})}))}[ci("0x2d")](t,e={}){const n=this[ci("0x2b")][ci("0x5")][ci("0x1c")](ci("0x32")),o=this[ci("0x2b")].plugins[ci("0x1c")]("DocumentListUtils"),r=this[ci("0x1")]((t=>o[ci("0x26")](t)&&ci("0x10")===t[ci("0x1f")](ci("0x2a"))));null!==r&&this.editor.model[ci("0x18")]((()=>{n.markMultiRangeBlockFormat(r,{commandName:"listReversed",commandParams:[{reversed:e[ci("0x29")]}],formatGroupId:ci("0x6")})}))}[ci("0x28")](t,e={}){const n=this[ci("0x2b")].plugins[ci("0x1c")](ci("0x32")),o=this[ci("0x2b")][ci("0x5")][ci("0x1c")](ci("0xe")),r=this[ci("0x1")]((t=>o[ci("0x26")](t)&&ci("0x10")===t.getAttribute(ci("0x2a"))));null!==r&&this[ci("0x2b")].model[ci("0x18")]((()=>{n[ci("0x2c")](r,{commandName:ci("0x24"),commandParams:[{startIndex:e[ci("0x1d")]}],formatGroupId:ci("0x24")})}))}handleDescriptions(t){if("formatBlock"!=t[ci("0x13")]&&ci("0x16")!=t.type)return;const e=this[ci("0x2b")][ci("0x2")],{data:n}=t;if(!n)return;let o,r;switch(n[ci("0xc")]){case"listStyle":o=ci("0x22"),r={type:ci("0x1b"),content:Qo(e,o,Qo(e,this[ci("0x0")](n[ci("0x15")][0][ci("0x13")])))};break;case ci("0x6"):o=n[ci("0x15")][0][ci("0x29")]?ci("0x2e"):"*Format:* set order to regular",r={type:"format",content:Qo(e,o)};break;case ci("0x24"):o=ci("0x19"),r={type:ci("0x1b"),content:Qo(e,o,n.commandParams[0][ci("0x1d")])}}return r}_getSuggestionBlocksForListStyle(){const t=this[ci("0x2b")][ci("0x5")][ci("0x1c")](ci("0xe"));let e=Array.from(this[ci("0x2b")][ci("0x1e")][ci("0x17")][ci("0x11")][ci("0xf")]());return e[ci("0x12")](...t[ci("0x7")](e)),e=[...new Set(e)],e}[ci("0x1")](t){const e=this[ci("0x2b")][ci("0x5")][ci("0x1c")](ci("0xe"));let n=Array.from(this[ci("0x2b")][ci("0x1e")].document[ci("0x11")][ci("0xf")]()).filter(t);if(!n[ci("0xa")])return null;n=e[ci("0x7")](n);const o=[];for(const t of n)e[ci("0x27")](t)&&o.push(t);return o}[ci("0x0")](t){return"ELEMENT_"+this[ci("0x2b")][ci("0x5")][ci("0x1c")](ci("0x30"))[ci("0x14")](t)[ci("0x23")]()+ci("0x8")+t.toUpperCase()[ci("0x21")](/-/g,"_")}}var ui=n(331);const di=["end","fromRange","markInsertion","parent","document","downcastDispatcher","enableCommand","editing","remove","model","high","enterBlock","enter","createRange","getFirstRange","selection","editor","createPositionAt","options","plugins","TrackChangesEditing","removeMarker:suggestion:insertion","split","addMarker:suggestion:insertion","init","unbindElementFromMarkerName","change","detach","requires","setSelection","markerNameToElements","mapper","get"];var gi,fi;gi=di,fi=351,function(t){for(;--t;)gi.push(gi.shift())}(++fi);const mi=function(t,e){return di[t-=0]};class hi extends t.Plugin{static get[mi("0x7")](){return[ui.Enter]}[mi("0x3")](){const t=this[mi("0x1c")],e=t[mi("0x1f")][mi("0xb")](mi("0x20")),n=t.commands[mi("0xb")](mi("0x18"));e[mi("0x12")](mi("0x18"),(()=>{t[mi("0x15")][mi("0x5")]((o=>{const r=t[mi("0x15")][mi("0x10")][mi("0x1b")],i=r.getFirstPosition(),x=s.LiveRange[mi("0xd")](r[mi("0x1a")]());if(n[mi("0x17")](o)){const n=t[mi("0x15")][mi("0x1d")](i[mi("0xf")].nextSibling,0),r=o.createRange(i,n);e[mi("0xe")](r)}else o[mi("0x8")](o[mi("0x19")](x[mi("0xc")]));x[mi("0x6")](),n.fire("afterExecute",{writer:o})}))})),t[mi("0x13")][mi("0x11")].on(mi("0x2"),Xr(t,mi("0x1")),{priority:"high"}),t[mi("0x13")][mi("0x11")].on(mi("0x0"),((t,e,n)=>{const o=n[mi("0xa")][mi("0x9")](e.markerName);if(o)for(const t of o)t.hasClass("ck-suggestion-marker-split")&&(n[mi("0xa")][mi("0x4")](t,e.markerName),n.writer[mi("0x14")](t))}),{priority:mi("0x16")}),t.data[mi("0x11")].on("addMarker:suggestion:insertion",((e,n,o)=>{o[mi("0x1e")].showSuggestionHighlights&&Xr(t,mi("0x1"),{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:mi("0x16")})}}const bi=["bind","item","getIntersection","replace","afterInit","end","getMarkersGroup","find","findPrevious","markers","replaceAll","enableCommand","has","start","findByTextCallback","get","FindAndReplaceEditing","editor","model","findNext","getRange","FindAndReplaceUtils","createRange","filter","handleFindCommand","suggestion:deletion","createPositionAt"];var pi,Ei;pi=bi,Ei=338,function(t){for(;--t;)pi.push(pi.shift())}(++Ei);const _i=function(t,e){return bi[t-=0]};class Ti extends t.Plugin{[_i("0x11")](){if(!this[_i("0x3")].plugins[_i("0x19")](_i("0x2")))return;const t=this[_i("0x3")].plugins[_i("0x1")]("TrackChangesEditing");t[_i("0x18")](_i("0x14"),this[_i("0xa")][_i("0xd")](this)),t[_i("0x18")](_i("0x5")),t[_i("0x18")](_i("0x15")),t.enableCommand(_i("0x10")),t[_i("0x18")](_i("0x17"))}[_i("0xa")](t,e,n={}){const o=this.editor.plugins[_i("0x1")](_i("0x7"));return t((t=>("string"==typeof e?o[_i("0x0")](e,n):e)(t)[_i("0x9")]((e=>!1===this._isInDeletionRange(e,t[_i("0xe")])))),n)}_isInDeletionRange(t,e){const n=this[_i("0x3")][_i("0x4")][_i("0x8")](this[_i("0x3")].model[_i("0xc")](e,t[_i("0x1a")]),this[_i("0x3")][_i("0x4")][_i("0xc")](e,t[_i("0x12")]));for(const t of this[_i("0x3")][_i("0x4")][_i("0x16")][_i("0x13")](_i("0xb")))if(null!==n[_i("0xf")](t[_i("0x6")]()))return!0;return!1}}const yi=["FORMAT_FONT_FAMILY","FontFamilyEditing","*Reset font color*","locale","format","registerAttributeLabel","_enableDefaultAttributesIntegration","value","FontColorEditing","*Reset font background color*","toLowerCase","_registerLegacyDescription","FORMAT_FONT_SIZE","FontSizeEditing","config","TrackChangesEditing","editor","fontColor","commandName","commandParams","FORMAT_FONT_COLOR","afterInit","find","label","registerDescriptionCallback","FORMAT_FONT_BACKGROUND","_descriptionFactory","fontSize","fontFamily","plugins","title","FontBackgroundColorEditing","*Set font background color:* %0","fontBackgroundColor","trim","*Reset font size*","get","fontBackgroundColor.colors","model","*Reset font family*","type"];var Ci,Ai;Ci=yi,Ai=396,function(t){for(;--t;)Ci.push(Ci.shift())}(++Ai);const ki=function(t,e){return yi[t-=0]},Ii=[{pluginName:ki("0x1b"),commandName:ki("0x0")},{pluginName:ki("0xf"),commandName:"fontFamily"},{pluginName:ki("0x16"),commandName:ki("0x1f")},{pluginName:ki("0x4"),commandName:ki("0x6")}];class Ri extends t.Plugin{[ki("0x23")](){const t=this[ki("0x1e")][ki("0x11")],e=this[ki("0x1e")][ki("0x2")][ki("0x9")](ki("0x1d"));for(const{pluginName:t,commandName:n}of Ii)this[ki("0x1e")][ki("0x2")].has(t)&&e[ki("0x14")](n,[n]);t.t,e[ki("0x28")].registerAttributeLabel(ki("0x0"),Qo(t,ki("0x1a"))),e._descriptionFactory.registerAttributeLabel("fontFamily",Qo(t,ki("0xe"))),e[ki("0x28")][ki("0x13")](ki("0x1f"),Qo(t,ki("0x22"))),e[ki("0x28")][ki("0x13")](ki("0x6"),Qo(t,ki("0x27"))),this[ki("0x19")]()}[ki("0x19")](){const t=this.editor,e=t[ki("0x11")];t.plugins[ki("0x9")](ki("0x1d"))[ki("0x28")][ki("0x26")]((t=>{const n=e.t;if("formatInline"!=t[ki("0xd")])return;const{data:o}=t;if(null!=o){if(ki("0x0")==o.commandName){const t=o[ki("0x21")][0][ki("0x15")];if(t){const o=n(this[ki("0x1e")][ki("0x2")].get("FontSize").normalizeSizeOptions(this.editor[ki("0x1c")].get("fontSize.options"))[ki("0x24")]((e=>e.model==t))[ki("0x3")])[ki("0x18")]();return{type:ki("0x12"),content:Qo(e,"*Set font size:* %0",o)}}return{type:ki("0x12"),content:Qo(e,ki("0x8"))}}if(ki("0x1")==o[ki("0x20")]){const t=o.commandParams[0][ki("0x15")];return t?{type:ki("0x12"),content:Qo(e,"*Set font family:* %0",t)}:{type:"format",content:Qo(e,ki("0xc"))}}if(ki("0x1f")==o[ki("0x20")]){const t=o[ki("0x21")][0].value;if(t){const o=(0,r.normalizeColorOptions)(this[ki("0x1e")][ki("0x1c")][ki("0x9")]("fontColor.colors"))[ki("0x24")]((e=>e[ki("0xb")]==t));let i=t,s="";return o&&(i=o[ki("0x25")],s=n(i)[ki("0x18")]()),{type:"format",content:Qo(e,"*Set font color:* %0",s)[ki("0x7")](),color:{value:t,title:s||i}}}return{type:ki("0x12"),content:Qo(e,ki("0x10"))}}if(ki("0x6")==o[ki("0x20")]){const t=o[ki("0x21")][0][ki("0x15")];if(t){const o=(0,r.normalizeColorOptions)(this[ki("0x1e")][ki("0x1c")][ki("0x9")](ki("0xa")))[ki("0x24")]((e=>e[ki("0xb")]==t));let i=t,s="";return o&&(i=o[ki("0x25")],s=n(i)[ki("0x18")]()),{type:ki("0x12"),content:Qo(e,ki("0x5"),s)[ki("0x7")](),color:{value:t,title:s||i}}}return{type:ki("0x12"),content:Qo(e,ki("0x17"))}}}}))}}const Si=["formatInline","_descriptionFactory","format","commandName","model","TrackChangesEditing","normalizeSizeOptions","label","toUpperCase","slice","fontBackgroundColor","join","afterInit","fontSize","*Set format to:* %0","find","type","plugins","toLowerCase","editor","length","get","push","copyFormat","fontColor","fontSize.options","pasteFormat","config","formatBlock","commands","title","registerDescriptionCallback","entries","locale","enableCommand","_registerLegacyDescription","split"];var vi,Ni;vi=Si,Ni=427,function(t){for(;--t;)vi.push(vi.shift())}(++Ni);const Li=function(t,e){return Si[t-=0]};class Mi extends t.Plugin{[Li("0x1d")](){const t=this.editor,e=t.plugins[Li("0x1")](Li("0x16")),n=t.commands[Li("0x1")](Li("0x3")),o=t[Li("0x9")][Li("0x1")]("pasteFormat");n&&o&&(e._enableDefaultAttributesIntegration(Li("0x6")),e[Li("0xe")]("copyFormat"),this[Li("0xf")]())}[Li("0xf")](){const t=this[Li("0x24")],e=t[Li("0xd")];t[Li("0x22")][Li("0x1")](Li("0x16"))[Li("0x12")][Li("0xb")]((n=>{if(Li("0x8")!=n.type&&Li("0x11")!=n[Li("0x21")])return;const{data:o}=n;if(o&&Li("0x6")===o[Li("0x14")]){const n=[],r=o.commandParams[0];for(const[e,o]of Object[Li("0xc")](r))n[Li("0x2")](wi(t,e,o));return n[Li("0x0")]?{type:Li("0x13"),content:Qo(e,Li("0x1f"),n[Li("0x1c")](", "))}:{type:"format",content:Qo(e,"*Remove all formatting*")}}}))}}function wi(t,e,n){const o=t[Li("0xd")].t,i=e[Li("0x10")](/(?=[A-Z])/)[Li("0x1c")](" "),s=o(i.charAt(0)[Li("0x19")]()+i[Li("0x1a")](1)).toLowerCase();if("boolean"==typeof n)return s;if(Li("0x4")===e||Li("0x1b")===e){const e=(0,r.normalizeColorOptions)(t[Li("0x7")][Li("0x1")]("fontColor.colors"))[Li("0x20")]((t=>t[Li("0x15")]==n));return s+" ("+(e?o(e[Li("0x18")])[Li("0x23")]():n)+")"}if(Li("0x1e")===e&&isNaN(parseFloat(n))){const e=t[Li("0x22")][Li("0x1")]("FontSize")[Li("0x17")](t[Li("0x7")][Li("0x1")](Li("0x5")))[Li("0x20")]((t=>t.model==n));return s+" ("+(e?o(e[Li("0xa")])[Li("0x23")]():n)+")"}return s+" ("+n+")"}const Oi=["editor","format","config","title","heading","heading.options","ELEMENT_HEADING_CUSTOM","_descriptionFactory","commandName","plugins","paragraph","TrackChangesEditing","match","has","ELEMENT_HEADING","registerElementLabel","_registerLegacyDescription","*Change to:* %0","name","find","locale","_getHeadingLevel","_enableDefaultAttributesIntegration","value","type","get","view","_headingOptions","afterInit","formatBlock","HeadingEditing","commandParams","model"];var Fi,Di;Fi=Oi,Di=395,function(t){for(;--t;)Fi.push(Fi.shift())}(++Di);const Bi=function(t,e){return Oi[t-=0]};class Pi extends t.Plugin{[Bi("0x1d")](){const t=this[Bi("0x1")];if(!t[Bi("0xa")][Bi("0xe")](Bi("0x1f")))return;this._headingOptions=t[Bi("0x3")][Bi("0x1a")](Bi("0x6"));const e=t[Bi("0x15")],n=t[Bi("0xa")][Bi("0x1a")](Bi("0xc"));n[Bi("0x17")](Bi("0x5"));for(const t of this[Bi("0x1c")])Bi("0xb")!=t[Bi("0x0")]&&n[Bi("0x8")][Bi("0x10")](t[Bi("0x0")],(n=>{const o=this[Bi("0x16")](t[Bi("0x0")]);return null!==o?(s=n,x=o,Qo(e,Bi("0xf"),[s,x])):(r=n,i=t[Bi("0x4")],Qo(e,Bi("0x7"),[r,i]));var r,i,s,x}));this[Bi("0x11")]()}[Bi("0x11")](){const t=this[Bi("0x1")],e=t[Bi("0x15")];t.plugins.get(Bi("0xc"))[Bi("0x8")].registerDescriptionCallback((t=>{if(Bi("0x1e")!=t[Bi("0x19")])return;const{data:n}=t;if(n&&"heading"==n[Bi("0x9")]){const t=n[Bi("0x20")][0][Bi("0x18")],s=this[Bi("0x16")](t);if(null!==s)return{type:Bi("0x2"),content:Qo(e,Bi("0x12"),(1,i=s,Qo(e,Bi("0xf"),[1,i])))};const x=this._headingOptions[Bi("0x14")]((e=>e[Bi("0x0")]===t))[Bi("0x4")];return{type:Bi("0x2"),content:Qo(e,Bi("0x12"),(o=1,r=x,Qo(e,Bi("0x7"),[o,r])))}}var o,r,i}))}[Bi("0x16")](t){var e,n;const o=t[Bi("0xd")](/^heading(\d+)/);if(o)return o[1];const r=null===(e=this[Bi("0x1c")])||void 0===e?void 0:e[Bi("0x14")]((e=>e[Bi("0x0")]==t));if(r&&r[Bi("0x1b")]){const t=r[Bi("0x1b")],e=(null!==(n=t[Bi("0x13")])&&void 0!==n?n:t).match(/^h(\d+)/);if(e)return e[1]}return null}}const Ui=["_enableDefaultAttributesIntegration","formatInline","FORMAT_HIGHLIGHT","_descriptionFactory","model","afterInit","has","highlight","color","config","format","commandName","title","plugins","highlight.options","HighlightEditing","find","*Remove highlight*","TrackChangesEditing","registerAttributeLabel","_registerLegacyDescription","get","editor","*Set highlight:* %0"];var ji,Gi;ji=Ui,Gi=132,function(t){for(;--t;)ji.push(ji.shift())}(++Gi);const Vi=function(t,e){return Ui[t-=0]};class Hi extends t.Plugin{[Vi("0x11")](){const t=this[Vi("0xa")];if(!t[Vi("0x1")][Vi("0x12")](Vi("0x3")))return;const e=t[Vi("0x1")][Vi("0x9")](Vi("0x6")),n=t.locale;e[Vi("0xc")](Vi("0x13"),[Vi("0x13")]),e[Vi("0xf")][Vi("0x7")]("highlight",Qo(n,Vi("0xe"))),this[Vi("0x8")]()}[Vi("0x8")](){const t=this[Vi("0xa")],e=t.locale;t.plugins[Vi("0x9")](Vi("0x6"))[Vi("0xf")].registerDescriptionCallback((n=>{if(Vi("0xd")!=n.type)return;const{data:o}=n;if(o&&Vi("0x13")==o[Vi("0x17")]){const n=e.t,r=o.commandParams[0].value;if(r){const o=t[Vi("0x15")][Vi("0x9")](Vi("0x2"))[Vi("0x4")]((t=>t[Vi("0x10")]==r)),i=n(o[Vi("0x0")]).toLowerCase();return{type:Vi("0x16"),content:Qo(e,Vi("0xb"),i),color:{value:o[Vi("0x14")],title:o[Vi("0x0")]}}}return{type:Vi("0x16"),content:Qo(e,Vi("0x5"),Qo(e,Vi("0xe")))}}}))}}const zi=["horizontalLine","conversion","ck-horizontal-line","ELEMENT_HORIZONTAL_LINE","insert","dataDowncast","showSuggestionHighlights","createEmptyElement","div","enableCommand","locale","get","high","HorizontalLineEditing","afterInit","_descriptionFactory","plugins","createPositionAt","has"];var Wi,Ki;Wi=zi,Ki=158,function(t){for(;--t;)Wi.push(Wi.shift())}(++Ki);const qi=function(t,e){return zi[t-=0]};class $i extends t.Plugin{[qi("0x8")](){const t=this.editor;if(!t[qi("0xa")][qi("0xc")](qi("0x7")))return;t.plugins[qi("0x5")]("TrackChangesEditing")[qi("0x3")](qi("0xd"));const e=t.plugins.get("TrackChangesEditing"),n=t[qi("0x4")];e[qi("0x9")].registerElementLabel(qi("0xd"),(t=>Qo(n,qi("0x10"),t))),t[qi("0xe")].for(qi("0x12")).elementToStructure({model:qi("0xd"),view:(t,{writer:e,options:n})=>{if(!n[qi("0x0")])return null;const o=e.createContainerElement(qi("0x2")),r=e[qi("0x1")]("hr");return e.addClass(qi("0xf"),o),e[qi("0x11")](e[qi("0xb")](o,0),r),o},converterPriority:qi("0x6")})}}const Xi=["attribute","commandName","locale","rawHtml","plugins","HtmlEmbed","start","_descriptionFactory","TrackChangesEditing","getFirstRange","format","get","type","*Change %0 content*","nodeAfter","htmlEmbed","value","ELEMENT_HTML_EMBED","formatBlock","editor","registerDescriptionCallback","_enableDefaultAttributesIntegration","has"];var Zi,Yi;Zi=Xi,Yi=258,function(t){for(;--t;)Zi.push(Zi.shift())}(++Yi);const Ji=function(t,e){return Xi[t-=0]};class Qi extends t.Plugin{afterInit(){const t=this[Ji("0xe")];if(!t[Ji("0x16")][Ji("0x11")](Ji("0x0")))return;const e=t.plugins[Ji("0x6")](Ji("0x3")),n=t[Ji("0x14")];e[Ji("0x2")].registerElementLabel(Ji("0x15"),(t=>Qo(n,Ji("0xc"),t))),e[Ji("0x10")](Ji("0xa"),[],["value"]),e._descriptionFactory[Ji("0xf")]((t=>{if(Ji("0x12")!=t[Ji("0x7")])return;const{data:e}=t;if(e&&Ji("0xb")==e.key&&t[Ji("0x4")]()[Ji("0x1")][Ji("0x9")].is("element",Ji("0x15"))){const t=Qo(n,Ji("0xc"));return{type:Ji("0x5"),content:Qo(n,"*Change %0 content*",t)}}})),this._registerLegacyDescription()}_registerLegacyDescription(){const t=this[Ji("0xe")],e=t[Ji("0x14")];t[Ji("0x16")][Ji("0x6")](Ji("0x3"))[Ji("0x2")][Ji("0xf")]((t=>{if(Ji("0xd")!=t[Ji("0x7")])return;const{data:n}=t;if(n&&"htmlEmbed"==n[Ji("0x13")]){const t=Qo(e,Ji("0xc"));return{type:Ji("0x5"),content:Qo(e,Ji("0x8"),t)}}}))}}const ts=["attribute","fromPosition","_registerLegacyDescription","isOwn","isIntersecting","toPrevious","get","ELEMENT_INLINE_IMAGE","createRange","_findSuggestions","getClosestSelectedImageElement","removeObject","isCollapsed","markBlockFormat","nodeAfter","_descriptionFactory","selection","FORMAT_IMAGE_SIZE","locale","toNext","schema","toggleImageCaption","afterInit","newValue","formatBlock","*Set image width:* %0","change","getFirstRange","_suggestionFactory","chain","end","forceDefaultExecution","imageCaption","key","*Set image text alternative:* %0","detach","imageStylePreApply","ImageTextAlternativeEditing","findIndex","ImageBlockEditing","enableCommand","registerDescriptionCallback","formatInline","has","ImageCaptionUtils","width","convertInlineImageToBlock","imageBlock","isBlockImage","type","markDeletion","find","element","imageTextAlternative","ImageResize","Block image to inline image","insertion","document","*Remove image text alternative*","model","discard","ImageEditing","caption","ELEMENT_CAPTION","deletion","imageTypeInline","commandParams","convertBlockImageToInline","addObject","markInsertion","TrackChangesEditing","format","isBefore","alt","registerCustomCallback","ImageUploadEditing","registerElementLabel","getContainedElement","getSuggestionCallback","resizeImage","commandName","createRangeOn","join","start","_enableDefaultAttributesIntegration","getNearestSelectionRange","previous","plugins","registerAttributeLabel","editor","subType","filter","accept","isEqual","ImageCaptionEditing","Inline image to block image","length","getCaptionFromImageModelElement","resizedWidth","ImageInlineEditing"];var es,ns;es=ts,ns=306,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class rs extends t.Plugin{[os("0x10")](){const t=this[os("0x53")];if(!t[os("0x51")][os("0x25")](os("0x37")))return;const e=t[os("0x51")].get("TrackChangesEditing"),n=t.plugins[os("0x0")]("ImageUtils"),o=t.locale;e.enableCommand("insertImage"),e[os("0x9")][os("0x46")](os("0x29"),(t=>Qo(o,"ELEMENT_IMAGE",t))),e._descriptionFactory[os("0x46")]("imageInline",(t=>Qo(o,os("0x1"),t))),e[os("0x9")][os("0x46")](os("0x38"),(()=>Qo(o,os("0x39")))),t.plugins[os("0x25")](os("0x45"))&&e.enableCommand("uploadImage"),t[os("0x51")][os("0x25")](os("0x21"))&&t[os("0x51")][os("0x25")](os("0x5d"))&&(e[os("0x22")](os("0x3b"),((o,r)=>{const i=n[os("0x4")](t.model[os("0x33")].selection);t[os("0x35")][os("0x14")]((()=>{e[os("0x7")](i,{commandName:"imageTypeInline",commandParams:[r]},[],"convertBlockImageToInline")}))})),e.enableCommand("imageTypeBlock",((o,r)=>{t[os("0x35")].change((i=>{let x=n[os("0x4")](t[os("0x35")][os("0x33")][os("0xa")]),a=i.createRangeOn(x);const c=s.LivePosition[os("0x5f")](a[os("0x4d")],os("0x63")),l=s.LivePosition[os("0x5f")](a[os("0x18")],os("0xd"));e[os("0x19")]((()=>o(r))),x=n[os("0x4")](t[os("0x35")].document[os("0xa")]),a=i[os("0x4b")](x);const u=i[os("0x2")](c,l);c[os("0x1d")](),l[os("0x1d")](),e[os("0x7")](x,{commandName:os("0x3b"),commandParams:[r]},[],os("0x28")),u.start.isBefore(a[os("0x4d")])&&e.markInsertion(i[os("0x2")](u[os("0x4d")],a[os("0x4d")]),os("0x28")),a[os("0x18")][os("0x42")](u[os("0x18")])&&e[os("0x3f")](i[os("0x2")](a[os("0x18")],u[os("0x18")]),"convertInlineImageToBlock")}))})),e[os("0x16")].registerCustomCallback(os("0x12"),os("0x28"),os("0x4c"),(()=>!1)),e[os("0x16")][os("0x44")](os("0x12"),os("0x28"),os("0x56"),(()=>!1)),e[os("0x16")][os("0x44")](os("0x12"),os("0x28"),os("0x36"),e[os("0x16")].getSuggestionCallback(os("0x12"),"",os("0x56"))),e[os("0x16")][os("0x44")](os("0x32"),os("0x28"),os("0x4c"),(()=>!1)),e[os("0x16")].registerCustomCallback(os("0x32"),os("0x28"),"discard",(([n])=>{const o=e[os("0x16")][os("0x48")]("insertion","",os("0x36"));let r=n[os("0x4d")],i=n[os("0x18")];const s=t[os("0x35")][os("0xe")][os("0x4f")](r,"backward"),x=t.model[os("0xe")][os("0x4f")](i,"forward");s.isCollapsed&&(r=s[os("0x4d")]),x[os("0x6")]&&(i=x[os("0x18")]),o([t[os("0x35")][os("0x2")](r,i)])})),e._suggestionFactory[os("0x44")](os("0x12"),os("0x28"),os("0x17"),x),e[os("0x16")][os("0x44")]("insertion",os("0x28"),os("0x17"),x)),t[os("0x51")][os("0x25")](os("0x58"))&&(e[os("0x22")](os("0xf"),((o,r)=>{const i=t[os("0x51")][os("0x0")](os("0x26"));let s=n[os("0x4")](t.model[os("0x33")][os("0xa")]),x=i.getCaptionFromImageModelElement(s);t[os("0x35")][os("0x14")]((()=>{if(x)return void e[os("0x2c")](t.model[os("0x4b")](x));const a=n[os("0x2a")](s);o(r),s=n[os("0x4")](t[os("0x35")][os("0x33")].selection),x=i[os("0x5b")](s),e[os("0x3f")](t.model[os("0x4b")](x),a?null:os("0x1a"))}))})),e[os("0x16")][os("0x44")]("insertion",os("0x1a"),os("0x17"),x));const r=[{type:os("0x12"),subType:os("0x1e")},{type:os("0x32"),subType:"imageCaption"},{type:os("0x12"),subType:os("0x28")},{type:os("0x32"),subType:"convertInlineImageToBlock"}];function i(t,o){const i=r[os("0x20")]((({type:e,subType:n})=>t.type==e&&t[os("0x54")]==n)),s=r[os("0x20")]((({type:t,subType:e})=>o.type==t&&o[os("0x54")]==e));if(i<0||s<0)return!1;const x=t[os("0x15")](),a=o[os("0x15")]();if((0==i||1==i)&&2==s&&x[os("0x62")](a))return!0;if(2==i&&3==s){const t=e[os("0x3")](x,os("0x32"))[os("0x55")]((({suggestion:t,meta:e})=>e[os("0x61")]&&"convertInlineImageToBlock"==t[os("0x54")]));if(t[os("0x5a")]>1&&a[os("0x18")][os("0x57")](x.start))return!0;if(1==t.length&&(x[os("0x4d")].isEqual(a[os("0x18")])||x.end[os("0x57")](a[os("0x4d")])))return!0}if(3==i&&3==s&&x[os("0x4d")][os("0x42")](a.start)){const t=x[os("0x18")][os("0x8")],e=a[os("0x4d")].nodeBefore;return n[os("0x2a")](t)&&t===e}return!1}function x(t,e){return i(t,e)?[t,e]:i(e,t)?[e,t]:null}t[os("0x51")][os("0x25")](os("0x30"))&&(e[os("0x4e")](os("0x49"),[],[os("0x5c")]),e[os("0x9")][os("0x52")](os("0x5c"),Qo(o,os("0xb")))),t[os("0x51")][os("0x25")](os("0x1f"))&&e[os("0x4e")](os("0x2f"),[],["alt"]),e[os("0x9")][os("0x23")]((t=>{if(r[os("0x2d")]((({type:e,subType:n})=>t[os("0x2b")]==e&&t[os("0x54")]==n)))return t[os("0x50")]?{}:void 0})),e._descriptionFactory[os("0x23")]((t=>{if(os("0x32")==t[os("0x2b")]||os("0x3a")==t[os("0x2b")]){const e=t[os("0x47")]();if(e&&e.is(os("0x2e"),os("0x38")))return{type:os("0x32")==t.type?os("0x3e"):os("0x5"),element:e,quantity:1}}})),e[os("0x9")][os("0x23")]((t=>os("0x12")==t[os("0x2b")]&&os("0x28")==t[os("0x54")]?{type:"format",content:os("0x59")}:os("0x12")==t[os("0x2b")]&&os("0x3d")==t[os("0x54")]?{type:"format",content:os("0x31")}:void 0)),e[os("0x9")].registerDescriptionCallback((t=>{if(os("0x5e")!=t[os("0x2b")])return;const{data:e}=t;if(!e||os("0x43")!=e[os("0x1b")])return;const n=e[os("0x11")];return n?{type:os("0x41"),content:Qo(o,os("0x1c"),'"'+n+'"')}:{type:os("0x41"),content:Qo(o,"*Remove image text alternative*")}})),this[os("0x60")]()}_registerLegacyDescription(){const t=this[os("0x53")],e=t[os("0xc")];t[os("0x51")][os("0x0")](os("0x40"))[os("0x9")][os("0x23")]((t=>{if(os("0x12")!=t.type&&os("0x24")!=t.type)return;const{data:n}=t;if(n){if(os("0x2f")==n[os("0x4a")]){const t=n[os("0x3c")][0][os("0x11")];return t?{type:os("0x41"),content:Qo(e,"*Set image text alternative:* %0",'"'+t+'"')}:{type:os("0x41"),content:Qo(e,os("0x34"))}}if("resizeImage"==n[os("0x4a")]){const t=n[os("0x3c")][0][os("0x27")];return t?{type:os("0x41"),content:Qo(e,os("0x13"),t)}:{type:"format",content:Qo(e,"*Reset image width*")}}}}))}}const is=["_descriptionFactory","getSuggestionCallback","afterInit","format","discard","TrackChangesEditing","get","locale","_registerLegacyDescription","_enableDefaultAttributesIntegration","attribute","key","editor","formatBlock","_suggestionFactory","formatInline","*Format:* replace image URL","newValue","_handleLegacySuggestions","registerDescriptionCallback","oldValue","has","src","accept","replaceImageSource","plugins","registerCustomCallback","type","commandName"];var ss,xs;ss=is,xs=117,function(t){for(;--t;)ss.push(ss.shift())}(++xs);const as=function(t,e){return is[t-=0]};class cs extends t.Plugin{[as("0x1")](){if(!this[as("0xb")].plugins[as("0x14")]("ImageEditing"))return;const t=this[as("0xb")][as("0x6")],e=this[as("0xb")][as("0x18")][as("0x5")]("TrackChangesEditing");e[as("0x8")](as("0x17"),[],[as("0x15")]),e[as("0x1c")][as("0x12")]((e=>{if(as("0x9")!=e[as("0x1a")])return;const{data:n}=e;return n&&as("0x15")==n[as("0xa")]?n[as("0x10")]&&n[as("0x13")]?{type:as("0x2"),content:Qo(t,"*Replace image URL*")}:{type:"format",content:""}:void 0})),this[as("0x11")]()}_handleLegacySuggestions(){const t=this[as("0xb")][as("0x18")][as("0x5")]("TrackChangesEditing");t[as("0xd")][as("0x19")](as("0xc"),as("0x17"),"accept",t[as("0xd")][as("0x0")]("formatBlock",null,"discard")),t[as("0xd")].registerCustomCallback(as("0xc"),as("0x17"),as("0x3"),t._suggestionFactory.getSuggestionCallback(as("0xc"),null,as("0x16"))),this[as("0x7")]()}[as("0x7")](){const t=this[as("0xb")],e=t.locale;t[as("0x18")][as("0x5")](as("0x4"))._descriptionFactory[as("0x12")]((t=>{if("formatBlock"!=t[as("0x1a")]&&as("0xe")!=t[as("0x1a")])return;const{data:n}=t;return n&&as("0x17")==n[as("0x1b")]?{type:"format",content:Qo(e,as("0xf"))}:void 0}))}}const ls=["normalizedStyles","document","markBlockFormat","isBlockImage","getChangedMarkers","registerDescriptionCallback","toLowerCase","imageTypeInline","length","_registerLegacyDescription","enableCommand","isEqual","accept","getClosestSelectedImageElement","join","discardSuggestion","plugins","markInlineFormat","editor","discard","imageTypeBlock","hasSuggestion","subType","commandName","FORMAT_SIDE_IMAGE","type","start","registerPostFixer","newRange","filter","value","head","imageCaption","imageStyle","end","convertInlineImageToBlock","formatInline","shouldConvertImageType","nodeAfter","isInlineImage","commands","findIndex","get","refresh","registerCustomCallback","ImageStyleEditing","imageStylePostApply","model","getFirstRange","ImageUtils","insertion","_findSuggestions","createRangeOn","chain","_descriptionFactory","getSuggestion","TrackChangesEditing","locale","change","name","differ","nodeBefore","isBefore","title","formatBlock","selection","imageStylePreApply","next","from","getSuggestionCallback","_suggestionFactory","getContainedElement"];var us,ds;us=ls,ds=282,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};class fs extends t.Plugin{afterInit(){const t=this[gs("0x18")];if(!t[gs("0x16")].has(gs("0x33")))return;const n=t[gs("0x16")][gs("0x30")](gs("0x3e")),o=t[gs("0x16")].get(gs("0x37")),r={};n[gs("0x10")](gs("0x27"),((r,i)=>{const s=t.plugins.get("Users").me,x=t[gs("0x2e")][gs("0x30")](gs("0x27"));let a=o[gs("0x13")](t[gs("0x35")][gs("0x7")][gs("0x47")]),c=t[gs("0x35")][gs("0x3a")](a),l=x[gs("0x24")];if(l==i[gs("0x24")])return;const u={commandName:gs("0x27"),commandParams:[i],formatGroupId:(0,e.uid)()};t[gs("0x35")][gs("0x40")]((()=>{if(n.getSuggestions()[gs("0x23")]((t=>t.isInContent&&s==t.author&&(gs("0x46")==t[gs("0x1f")]||"formatInline"==t.type)&&("imageStylePreApply"==t.subType||gs("0x34")==t[gs("0x1c")])&&t[gs("0x36")]()[gs("0x11")](c))).forEach((t=>n.discardSuggestion(t[gs("0x25")]))),a=o[gs("0x13")](t[gs("0x35")][gs("0x7")][gs("0x47")]),c=t[gs("0x35")][gs("0x3a")](a),x[gs("0x31")](),t[gs("0x2e")].get(gs("0xd")).refresh(),t.commands[gs("0x30")](gs("0x1a")).refresh(),l=x.value,l!=i[gs("0x24")])return o[gs("0x2d")](a)&&x[gs("0x2b")](i[gs("0x24")],a)?(r({...i,setImageSizes:!1}),a=o[gs("0x13")](t[gs("0x35")].document[gs("0x47")]),void n[gs("0x8")](a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],"imageStylePreApply")):void(o[gs("0x9")](a)?n[gs("0x8")](a,u,[],gs("0x34")):n[gs("0x17")](c,u,gs("0x34")))}))}));for(const e of t[gs("0x16")][gs("0x30")](gs("0x33"))[gs("0x6")])r[e[gs("0x41")]]=e[gs("0x45")][gs("0xc")]();n[gs("0x4")][gs("0x32")]("formatBlock",gs("0x0"),"join",(()=>!1)),n._suggestionFactory.registerCustomCallback(gs("0x46"),"imageStylePostApply",gs("0x14"),(()=>!1)),n._suggestionFactory[gs("0x32")](gs("0x2a"),"imageStylePostApply",gs("0x14"),(()=>!1)),n[gs("0x4")][gs("0x32")](gs("0x46"),gs("0x0"),gs("0x12"),(([t])=>{o.setImageNaturalSizeAttributes(t[gs("0x5")]())})),n._suggestionFactory[gs("0x32")](gs("0x46"),gs("0x0"),gs("0x19"),((t,e)=>{n._suggestionFactory[gs("0x3")](gs("0x46"),"",gs("0x12"))(t,{commandName:e[gs("0x1d")],commandParams:e.commandReversedParams})})),n._suggestionFactory[gs("0x32")](gs("0x46"),gs("0x0"),gs("0x3b"),(function(t,e){return s(t,e)?[t,e]:s(e,t)?[e,t]:null}));const i=[{type:"formatBlock",subType:gs("0x0")},{type:gs("0x38"),subType:"imageCaption"},{type:gs("0x46"),subType:gs("0x29")},{type:gs("0x38"),subType:"convertInlineImageToBlock"}];function s(t,e){const r=i[gs("0x2f")]((({type:e,subType:n})=>t[gs("0x1f")]==e&&t.subType==n)),s=i[gs("0x2f")]((({type:t,subType:n})=>e[gs("0x1f")]==t&&e[gs("0x1c")]==n));if(r<0||s<0)return!1;const x=t[gs("0x36")](),a=e[gs("0x36")]();if((0==r||1==r)&&2==s&&x.isIntersecting(a))return!0;if(2==r&&3==s){const t=n[gs("0x39")](x,gs("0x38"))[gs("0x23")]((({suggestion:t,meta:e})=>e.isOwn&&"convertInlineImageToBlock"==t[gs("0x1c")]));if(t[gs("0xe")]>1&&a[gs("0x28")][gs("0x11")](x[gs("0x20")]))return!0;if(1==t[gs("0xe")]&&(x[gs("0x20")][gs("0x11")](a.end)||x.end[gs("0x11")](a[gs("0x20")])))return!0}if(3==r&&3==s&&x[gs("0x20")][gs("0x44")](a[gs("0x20")])){const t=x[gs("0x28")][gs("0x2c")],e=a[gs("0x20")][gs("0x43")];return o.isBlockImage(t)&&t===e}return!1}t[gs("0x35")].document[gs("0x21")]((()=>{let e=!1;const r=Array[gs("0x2")](t[gs("0x35")].document[gs("0x42")][gs("0xa")]());for(const{name:t,data:i}of r){const{group:r,type:s,subType:x,id:a}=n._splitMarkerName(t);if("suggestion"==r&&n[gs("0x1b")](a)){if(gs("0x46")==s&&(gs("0x0")==x||gs("0x34")==x)){const t=n[gs("0x3d")](a);if(i[gs("0x22")]){const r=t[gs("0x36")]()[gs("0x5")]();if(o[gs("0x9")](r))continue;n.discardSuggestion(t),e=!0}}if(gs("0x38")==s&&gs("0x26")==x&&!i[gs("0x22")]){const t=n.getSuggestion(a);t.next&&t[gs("0x1")].isInContent&&(n[gs("0x15")](t[gs("0x1")]),e=!0)}}}return e})),this[gs("0xf")](r)}[gs("0xf")](t){const e=this[gs("0x18")],n=e[gs("0x3f")];e[gs("0x16")][gs("0x30")]("TrackChangesEditing")[gs("0x3c")][gs("0xb")]((e=>{if(gs("0x46")!=e[gs("0x1f")]&&gs("0x2a")!=e[gs("0x1f")])return;const{data:o}=e;if(!o||gs("0x27")!=o[gs("0x1d")])return;const r=o.commandParams[0].value;return i="side"===r?Qo(n,gs("0x1e")):t[r]||r,{type:"format",content:Qo(n,"*Format:* %0",i)};var i}))}}const ms=["collaboration_features","Users","enableCommand","execute","dataInsert","commands","listenTo","plugins","editor","track_changes","_trackChangesValueDuringImport","high","get","_trackChangesExecuted","_handleImportedData","TrackChangesEditing","_setSuggestionData","importWord","forEach","trackChanges","lowest","value"];var hs,bs;hs=ms,bs=240,function(t){for(;--t;)hs.push(hs.shift())}(++bs);const ps=function(t,e){return ms[t-=0]};class Es extends t.Plugin{constructor(t){super(t),this[ps("0xc")]=!1,this._trackChangesExecuted=!1}afterInit(){const t=this[ps("0xa")],e=t[ps("0x7")][ps("0xe")](ps("0x13")),n=t[ps("0x7")][ps("0xe")](ps("0x15"));e&&(e.on(ps("0x5"),((t,[,e])=>{this[ps("0xc")]=n[ps("0x1")],e[ps("0x2")][ps("0xb")]=!this[ps("0xc")]}),{priority:ps("0xd")}),this.listenTo(e,"dataInsert",this[ps("0x10")].bind(this)),this[ps("0x8")](e,ps("0x6"),(()=>{this[ps("0xf")]&&(n[ps("0x5")](),this._trackChangesExecuted=!1)}),{priority:ps("0x0")}),t[ps("0x9")][ps("0xe")](ps("0x11"))[ps("0x4")](ps("0x13")))}[ps("0x10")](t,e){const{suggestions:n}=e,o=this[ps("0xa")].commands[ps("0xe")](ps("0x15")),r=o[ps("0x1")];this[ps("0xc")]!==r&&(o[ps("0x5")](),this[ps("0xf")]=!0),n&&n[ps("0x14")]((({id:t,type:e,author:n,created_at:o})=>{const r={id:t,type:e,authorId:this.editor.plugins.get(ps("0x3")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ps("0x13")}}};this.editor.plugins.get(ps("0x11"))[ps("0x12")](r)}))}}const _s=["has","getItems","locale","enableCommand","registerAttributeLabel","indentBlock","indent","*Outdent:* %0","registerDescriptionCallback","*Indent:* %0","editor","_registerLegacyDescription","_descriptionFactory","blockIndent","TrackChangesEditing","outdentBlock","format","IndentBlock","outdent","afterInit","IndentEditing","FORMAT_INDENT","commandName","plugins"];var Ts,ys;Ts=_s,ys=308,function(t){for(;--t;)Ts.push(Ts.shift())}(++ys);const Cs=function(t,e){return _s[t-=0]};class As extends t.Plugin{[Cs("0x17")](){const t=this[Cs("0xe")],e=t[Cs("0x3")].get("TrackChangesEditing");if(t[Cs("0x3")].has(Cs("0x0"))&&(e[Cs("0x7")](Cs("0xa")),e[Cs("0x7")](Cs("0x16"))),t.plugins[Cs("0x4")](Cs("0x15")))for(const t of["indentBlock",Cs("0x13")])e._enableDefaultAttributesIntegration(t);const n=t[Cs("0x6")];e._registerBlockAttribute(Cs("0x11")),e[Cs("0x10")][Cs("0x8")](Cs("0x11"),Qo(n,Cs("0x1"))),this._registerLegacyDescription()}[Cs("0xf")](){const t=this[Cs("0xe")],e=t[Cs("0x6")],n=t[Cs("0x3")].get(Cs("0x12"));n[Cs("0x10")][Cs("0xc")]((t=>{if("formatBlock"!=t.type)return;const{data:o}=t;if(!o)return;if(Cs("0x9")!=o[Cs("0x2")]&&Cs("0x13")!=o[Cs("0x2")])return;const r=t[Cs("0x5")]()[0],i=n[Cs("0x10")].getItemLabel(r);return Cs("0x9")==o[Cs("0x2")]?{type:Cs("0x14"),content:Qo(e,Cs("0xd"),i)}:"outdentBlock"==o.commandName?{type:Cs("0x14"),content:Qo(e,Cs("0xb"),i)}:void 0}))}}var ks,Is,Rs=["plugins","enableCommand","input","requires","TrackChangesEditing","init"];ks=Rs,Is=479,function(t){for(;--t;)ks.push(ks.shift())}(++Is);var Ss=function(t,e){return Rs[t-=0]};class vs extends t.Plugin{static get[Ss("0x4")](){return[Hr.Input]}[Ss("0x0")](){this.editor[Ss("0x1")].get(Ss("0x5"))[Ss("0x2")](Ss("0x3"))}}const Ns=["linkHref","TrackChangesEditing","locale","*Set link:* %0","formatInline","format","commands","registerDescriptionCallback","commandParams","label","editor","_enableDefaultAttributesIntegration","_registerLegacyDescription","get","attribute","LinkEditing","type","afterInit","manualDecorators","plugins","commandName","*Remove link*","link","registerAttributeLabel","unlink","_descriptionFactory"];var Ls,Ms;Ls=Ns,Ms=341,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ms);const ws=function(t,e){return Ns[t-=0]};class Os extends t.Plugin{[ws("0xe")](){const t=this[ws("0x7")];if(!t.plugins.has(ws("0xc")))return;const e=t[ws("0x10")].get(ws("0x18")),n=t[ws("0x3")][ws("0xa")](ws("0x13"));e[ws("0x8")]("link",[ws("0x17"),...n[ws("0xf")].map((t=>t.id))]),e[ws("0x8")](ws("0x15"));for(const t of n[ws("0xf")])e[ws("0x16")][ws("0x14")](t.id,"link ("+t[ws("0x6")].toLowerCase()+")");e[ws("0x16")].registerDescriptionCallback((e=>{if(ws("0xb")!=e[ws("0xd")])return;const{data:n}=e;if(!n||ws("0x17")!=n.key)return;const o=n.newValue,r=t[ws("0x19")];return{type:ws("0x2"),content:null==o?Qo(r,ws("0x12")):Qo(r,ws("0x0"),'"'+o+'"')}})),this[ws("0x9")]()}[ws("0x9")](){const t=this[ws("0x7")],e=t[ws("0x19")];t.plugins[ws("0xa")](ws("0x18"))[ws("0x16")][ws("0x4")]((t=>{if(ws("0x1")!=t[ws("0xd")])return;const{data:n}=t;if(n){if(ws("0x13")==n[ws("0x11")]){const t=n[ws("0x5")][0];return{type:ws("0x2"),content:Qo(e,ws("0x0"),'"'+t+'"')}}return ws("0x15")==n[ws("0x11")]?{type:ws("0x2"),content:Qo(e,ws("0x12"))}:void 0}}))}}const Fs=["schema","registerElementLabel","numberedList","numbered","slice","parent","todoListChecked","commandParams","model","findIndex","format","getSelectedBlocks","change","nextSibling","outdentList","previousSibling","selection","checkTodoList","filter","document","*Indent:* %0","*Uncheck item*","*Change to:* %0","length","type","_descriptionFactory","_selectedElements","listItem","editor","has","todo","todoList","getAttribute","get","commands","locale","plugins","createRange","createPositionAt","add","List","bulleted","indentList","listIndent","from","commandName","TodoListEditing","listType","formatInline","name","formatBlock","push","enableCommand","*Check item*","bulletedList","end","ELEMENT_TODO_LIST","paragraph","element","ELEMENT_BULLETED_LIST","forceValue","registerDescriptionCallback","blockName","ELEMENT_LIST_ITEM","ListEditing","before","TrackChangesEditing","value","*Outdent:* %0","isObject"];var Ds,Bs;Ds=Fs,Bs=365,function(t){for(;--t;)Ds.push(Ds.shift())}(++Bs);const Ps=function(t,e){return Fs[t-=0]};class Us extends t.Plugin{afterInit(){const t=this[Ps("0xd")],e=t[Ps("0x14")];if(!t[Ps("0x15")][Ps("0xe")](Ps("0x31")))return;const n=t[Ps("0x15")].get(Ps("0x33")),o=t[Ps("0x15")][Ps("0xe")](Ps("0x1f"));function r(e){return()=>{const o=t.model[Ps("0x4")][Ps("0x1")],r=t[Ps("0x13")][Ps("0x12")](e);if(r[Ps("0x34")])return void t.execute(Ps("0x2a"),{});const i=e[Ps("0x3b")](0,-4),s=function(t,e,n){let o=Array[Ps("0x1d")](t)[Ps("0x3")]((t=>{return e=t,(o=n).checkChild(e[Ps("0x3c")],Ps("0xc"))&&!o[Ps("0x36")](e);var e,o}));o=o[Ps("0x3")]((t=>!t.is(Ps("0x2b"),Ps("0xc"))||t[Ps("0x11")](Ps("0x20"))!=e));const r=new Set;for(const t of o)t.is(Ps("0x2b"),Ps("0xc"))?r[Ps("0x18")](js(t)):r[Ps("0x18")](t);return Array[Ps("0x1d")](r)}(o[Ps("0x42")](),i,t[Ps("0x3f")][Ps("0x37")]);t[Ps("0x3f")][Ps("0x43")]((()=>{for(const t of s)n.markBlockFormat(t,{commandName:e,commandParams:[{forceValue:!r[Ps("0x34")]}],formatGroupId:Ps("0x2f")},Gs(t))}))}}function i(e){return()=>{const o=function(t){let e=Array.from(t);const n=e[Ps("0x40")]((t=>Ps("0xc")!=t.name));return n>-1&&(e=e[Ps("0x3b")](0,n)),e}(t[Ps("0x3f")][Ps("0x4")][Ps("0x1")][Ps("0x42")]()),r=t[Ps("0x3f")][Ps("0x16")](t[Ps("0x3f")][Ps("0x17")](o[0],Ps("0x32")),t[Ps("0x3f")][Ps("0x17")](o[o[Ps("0x8")]-1],Ps("0x28")));t[Ps("0x3f")].change((()=>{n.markBlockFormat(r,{commandName:e,commandParams:[],formatGroupId:"listIndent"},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t[Ps("0x11")](Ps("0x1c"))>n.getAttribute(Ps("0x1c"));)e[Ps("0x18")](t),t=t[Ps("0x44")]}return Array[Ps("0x1d")](e)}(o))}))}}n[Ps("0x25")]("numberedList",r(Ps("0x39"))),n[Ps("0x25")]("bulletedList",r(Ps("0x27"))),o&&n[Ps("0x25")]("todoList",r("todoList")),n[Ps("0x25")]("indentList",i(Ps("0x1b"))),n.enableCommand(Ps("0x45"),i(Ps("0x45"))),o&&n[Ps("0x25")](Ps("0x2"),(()=>{const e=t.commands[Ps("0x12")](Ps("0x2")),o=Array[Ps("0x1d")](e[Ps("0xb")]);o[Ps("0x3")]((t=>t[Ps("0x11")](Ps("0x3d"))!=e.value)),t[Ps("0x3f")][Ps("0x43")]((()=>{for(const t of o)n.markBlockFormat(t,{commandName:"checkTodoList",commandParams:[{forceValue:!e[Ps("0x34")]}]})}))})),n[Ps("0xa")][Ps("0x38")]("listItem",(t=>Qo(e,"ELEMENT_LIST_ITEM",t))),n[Ps("0xa")][Ps("0x2e")]((t=>{if(Ps("0x23")!=t[Ps("0x9")]&&Ps("0x21")!=t[Ps("0x9")])return;const{data:n}=t;if(n){if(Ps("0x39")==n[Ps("0x1e")]||Ps("0x27")==n.commandName||Ps("0x10")==n[Ps("0x1e")])switch(n[Ps("0x1e")].replace(Ps("0x19"),"")){case Ps("0x1a"):return o(Qo(e,Ps("0x2c")));case Ps("0x3a"):return o(Qo(e,"ELEMENT_NUMBERED_LIST"));case Ps("0xf"):return o(Qo(e,Ps("0x29")))}if(Ps("0x1b")==n[Ps("0x1e")])return{type:Ps("0x41"),content:Qo(e,Ps("0x5"),Qo(e,Ps("0x30")))};if(Ps("0x45")==n.commandName)return{type:Ps("0x41"),content:Qo(e,Ps("0x35"),Qo(e,Ps("0x30")))};if(Ps("0x2")==n[Ps("0x1e")])return n[Ps("0x3e")][0][Ps("0x2d")]?{type:Ps("0x41"),content:Qo(e,Ps("0x26"))}:{type:"format",content:Qo(e,Ps("0x6"))}}function o(t){return{type:"format",content:Qo(e,Ps("0x7"),t)}}}))}}function js(t){const e=t[Ps("0x11")](Ps("0x1c"));if(0==e)return t;let n=t;for(;t.previousSibling&&t.previousSibling.is(Ps("0x2b"),Ps("0xc"));){const o=t[Ps("0x0")][Ps("0x11")](Ps("0x1c"));if(o==e)n=t[Ps("0x0")];else if(o<e)break;t=t.previousSibling}return n}function Gs(t){const e=[];if(t.is(Ps("0x2b"),Ps("0xc"))&&t[Ps("0x11")](Ps("0x1c"))>0){let n=t.nextSibling;for(;n&&"listItem"==n[Ps("0x22")]&&n[Ps("0x11")]("listIndent")==t[Ps("0x11")](Ps("0x1c"));)e[Ps("0x24")](n),n=n[Ps("0x44")]}return e}const Vs=["listStyle","TrackChangesEditing","enableCommand","ListPropertiesEditing","getAttribute","commandParams","*Format:* set order to regular","unshift","*Change to:* %0","get","plugins","getListTypeFromListStyleType","backward","handleDescriptions","locale","formatInline","model","createRange","startIndex","listItem","toUpperCase","reversed","listReversed","replace","from","formatBlock","_LIST_","getSiblingNodes","filter","editor","format","getFirstPosition","ELEMENT_","handleListReversedCommand","type","change","element","list.properties","markMultiRangeBlockFormat","getSelectedBlocks","commandName","listStart","document","_getTranslationKeyForListStyle","_getSuggestionBlocksForListStyle","forward","selection","createPositionAt","length","listType","afterInit","before","parent","styles","numbered","getLastPosition","flat","has","_getSuggestionBlocks","handleListStartCommand","bind","ListUtils"];var Hs,zs;Hs=Vs,zs=115,function(t){for(;--t;)Hs.push(Hs.shift())}(++zs);const Ws=function(t,e){return Vs[t-=0]};class Ks extends t.Plugin{[Ws("0x3b")](){if(!this[Ws("0x26")].plugins[Ws("0x4")](Ws("0xc")))return;const t=this[Ws("0x26")].config.get(Ws("0x2e")),e=this[Ws("0x26")][Ws("0x13")][Ws("0x12")](Ws("0xa"));t[Ws("0x0")]&&e.enableCommand(Ws("0x9"),this.handleListStyleCommand.bind(this)),t[Ws("0x1e")]&&e[Ws("0xb")]("listReversed",this[Ws("0x2a")].bind(this)),t[Ws("0x1b")]&&e[Ws("0xb")](Ws("0x32"),this[Ws("0x6")].bind(this)),e._descriptionFactory.registerDescriptionCallback(this[Ws("0x16")][Ws("0x7")](this))}handleListStyleCommand(t,e={}){const n=this[Ws("0x26")][Ws("0x13")][Ws("0x12")](Ws("0xa")),o=this._getSuggestionBlocksForListStyle();this.editor[Ws("0x19")][Ws("0x2c")]((()=>{n.markMultiRangeBlockFormat(o,{commandName:Ws("0x9"),commandParams:[{type:e.type}],formatGroupId:Ws("0x9")})}))}[Ws("0x2a")](t,e={}){const n=this[Ws("0x26")][Ws("0x13")][Ws("0x12")](Ws("0xa")),o=this._getSuggestionBlocks((t=>t.is(Ws("0x2d"),Ws("0x1c"))&&"numbered"===t[Ws("0xd")]("listType")));if(o[Ws("0x39")]<1)return;const r=o.map((t=>this.editor[Ws("0x19")][Ws("0x1a")](this.editor[Ws("0x19")].createPositionAt(t,Ws("0x3c")),this[Ws("0x26")][Ws("0x19")].createPositionAt(t,0))));this[Ws("0x26")].model[Ws("0x2c")]((()=>{n.markMultiRangeBlockFormat(r,{commandName:Ws("0x1f"),commandParams:[{reversed:e[Ws("0x1e")]}],formatGroupId:Ws("0x1f")})}))}[Ws("0x6")](t,e={}){const n=this.editor[Ws("0x13")][Ws("0x12")](Ws("0xa")),o=this[Ws("0x5")]((t=>t.is(Ws("0x2d"),Ws("0x1c"))&&Ws("0x1")===t[Ws("0xd")](Ws("0x3a"))));if(o[Ws("0x39")]<1)return;const r=o.map((t=>this.editor[Ws("0x19")][Ws("0x1a")](this[Ws("0x26")][Ws("0x19")].createPositionAt(t,Ws("0x3c")),this[Ws("0x26")][Ws("0x19")].createPositionAt(t,0))));this[Ws("0x26")][Ws("0x19")][Ws("0x2c")]((()=>{n[Ws("0x2f")](r,{commandName:Ws("0x32"),commandParams:[{startIndex:e[Ws("0x1b")]}],formatGroupId:"listStart"})}))}[Ws("0x16")](t){if(Ws("0x22")!=t.type&&Ws("0x18")!=t[Ws("0x2b")])return;const e=this[Ws("0x26")][Ws("0x17")],{data:n}=t;if(!n)return;let o,r;switch(n[Ws("0x31")]){case Ws("0x9"):o=Ws("0x11"),r={type:"format",content:Qo(e,o,Qo(e,this[Ws("0x34")](n[Ws("0xe")][0][Ws("0x2b")])))};break;case Ws("0x1f"):o=n[Ws("0xe")][0][Ws("0x1e")]?"*Format:* set order to reversed":Ws("0xf"),r={type:Ws("0x27"),content:Qo(e,o)};break;case"listStart":o="*Format:* set start index to %0",r={type:"format",content:Qo(e,o,n[Ws("0xe")][0][Ws("0x1b")])}}return r}[Ws("0x35")](){var t,e,n,o;const r=this.editor[Ws("0x13")].get(Ws("0x8"));let i=Array[Ws("0x21")](this.editor[Ws("0x19")][Ws("0x33")][Ws("0x37")][Ws("0x30")]());return(null===(t=i[0])||void 0===t?void 0:t.is(Ws("0x2d"),Ws("0x1c")))&&i[Ws("0x10")](...r.getSiblingNodes(this.editor.model.document[Ws("0x37")][Ws("0x28")](),Ws("0x15"))),(null===(e=i[i[Ws("0x39")]-1])||void 0===e?void 0:e.is(Ws("0x2d"),Ws("0x1c")))&&i.push(...r.getSiblingNodes(this[Ws("0x26")][Ws("0x19")].document[Ws("0x37")][Ws("0x2")](),Ws("0x36"))),i=[...new Set(i)],(null===(o=null===(n=this[Ws("0x26")][Ws("0x19")][Ws("0x33")][Ws("0x37")][Ws("0x28")]())||void 0===n?void 0:n[Ws("0x3d")])||void 0===o?void 0:o.is(Ws("0x2d"),Ws("0x1c")))&&(i=i[Ws("0x25")]((t=>t.is(Ws("0x2d"),Ws("0x1c"))))),i}[Ws("0x5")](t){const e=this[Ws("0x26")][Ws("0x13")].get(Ws("0x8"));let n=Array.from(this.editor[Ws("0x19")][Ws("0x33")][Ws("0x37")][Ws("0x30")]())[Ws("0x25")](t).map((t=>{const n=this[Ws("0x26")][Ws("0x19")][Ws("0x38")](t,0);return[...e[Ws("0x24")](n,Ws("0x15")),...e.getSiblingNodes(n,Ws("0x36"))]}))[Ws("0x3")]();return n=[...new Set(n)],n}_getTranslationKeyForListStyle(t){return Ws("0x29")+this.editor[Ws("0x13")][Ws("0x12")]("ListUtils")[Ws("0x14")](t)[Ws("0x1d")]()+Ws("0x23")+t[Ws("0x1d")]()[Ws("0x20")](/-/g,"_")}}const qs=["_descriptionFactory","ELEMENT_MEDIA","mediaEmbed","dataDowncast","conversion","locale","stop","TrackChangesEditing","high","createEmptyElement","plugins","for","enableCommand","attribute:url:media","afterInit","div","elementToElement","media","get","registerElementLabel","options","showSuggestionHighlights","editor"];var $s,Xs;$s=qs,Xs=202,function(t){for(;--t;)$s.push($s.shift())}(++Xs);const Zs=function(t,e){return qs[t-=0]};class Ys extends t.Plugin{[Zs("0x13")](){const t=this[Zs("0x4")];if(!t[Zs("0xf")].has("MediaEmbedEditing"))return;const e=t[Zs("0xf")][Zs("0x0")](Zs("0xc")),n=t[Zs("0xa")];e[Zs("0x11")](Zs("0x7")),e[Zs("0x5")][Zs("0x1")](Zs("0x16"),(t=>Qo(n,Zs("0x6"),t))),t[Zs("0x9")][Zs("0x10")](Zs("0x8"))[Zs("0x15")]({model:Zs("0x16"),view:(t,{writer:e,options:n})=>{if(n[Zs("0x3")])return e[Zs("0xe")](Zs("0x14"))},converterPriority:Zs("0xd")}),t.data.downcastDispatcher.on(Zs("0x12"),((t,e,n)=>{n[Zs("0x2")][Zs("0x3")]&&t[Zs("0xb")]()}),{priority:Zs("0xd")})}}const Js=["get","enableCommand","TrackChangesEditing","mention","has","plugins"];var Qs,tx;Qs=Js,tx=122,function(t){for(;--t;)Qs.push(Qs.shift())}(++tx);const ex=function(t,e){return Js[t-=0]};class nx extends t.Plugin{afterInit(){const t=this.editor;t[ex("0x3")][ex("0x2")]("MentionEditing")&&t[ex("0x3")][ex("0x4")](ex("0x0"))[ex("0x5")](ex("0x1"))}}const ox=["enableCommand","afterInit","has","ELEMENT_PAGE_BREAK","registerElementLabel","plugins","TrackChangesEditing","editor","locale","get","PageBreakEditing","pageBreak"];var rx,ix;rx=ox,ix=383,function(t){for(;--t;)rx.push(rx.shift())}(++ix);const sx=function(t,e){return ox[t-=0]};class xx extends t.Plugin{[sx("0x2")](){const t=this[sx("0x8")];if(!t[sx("0x6")][sx("0x3")](sx("0xb")))return;t[sx("0x6")][sx("0xa")](sx("0x7"))[sx("0x1")](sx("0x0"));const e=t.plugins.get(sx("0x7")),n=t[sx("0x9")];e._descriptionFactory[sx("0x5")](sx("0x0"),(t=>Qo(n,sx("0x4"),t)))}}const ax=["registerDescriptionCallback","Paragraph","insertion","data","ck-suggestion-marker-split","ck-suggestion-marker--active","editor","bindElementToMarker","checkChild","addClass","getItemLabel","insertParagraph","showSuggestionHighlights","insert","getFirstRange","isBlock","isTouching","name","enableCommand","$text","model","toViewPosition","editing","downcastDispatcher","writer","mapper","afterInit","ELEMENT_PARAGRAPH","options","highest","*Change to:* %0","addMarker:suggestion:insertion","end","includes","markerRange","plugins","schema","activeMarkers","nodeAfter","formatBlock","get","registerElementLabel","locale","TrackChangesEditing","paragraph","has","createUIElement","type","*Insert:* %0","span","_descriptionFactory","_registerLegacyDescription"];var cx,lx;cx=ax,lx=352,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{[ux("0x26")](){const t=this.editor;if(!t[ux("0x2f")][ux("0x5")](ux("0xd")))return;const e=t[ux("0x2")],n=t.plugins[ux("0x0")](ux("0x3"));n[ux("0xa")][ux("0x1")]("paragraph",(t=>Qo(e,"ELEMENT_PARAGRAPH",t))),n._enableDefaultAttributesIntegration(ux("0x4")),n[ux("0x1e")](ux("0x17")),t[ux("0x22")][ux("0x23")].on(ux("0x2b"),gx(t),{priority:"highest"}),t[ux("0xf")][ux("0x23")].on(ux("0x2b"),((e,n,o)=>{o[ux("0x28")][ux("0x18")]&&gx(t,{showActiveMarker:!1})(e,n,o)}),{priority:ux("0x29")});const o=n[ux("0xa")];o[ux("0xc")]((n=>{if(ux("0xe")!==n[ux("0x7")])return;const{start:r,end:i}=n[ux("0x1a")]();if(!r[ux("0x1c")](i)||!r.nodeAfter)return;const s=t[ux("0x20")][ux("0x30")],x=r[ux("0x32")];return s[ux("0x1b")](x)&&!s.isLimit(x)&&s[ux("0x14")](x,ux("0x1f"))?{type:"insertion",content:Qo(e,ux("0x8"),o[ux("0x16")](x,1))}:void 0})),this[ux("0xb")]()}[ux("0xb")](){const t=this[ux("0x12")],e=t.locale;t[ux("0x2f")][ux("0x0")](ux("0x3"))._descriptionFactory[ux("0xc")]((t=>{if(ux("0x33")!=t[ux("0x7")])return;const{data:n}=t;return n&&ux("0x4")==n.commandName?{type:"format",content:Qo(e,ux("0x2a"),Qo(e,ux("0x27")))}:void 0}))}}function gx(t,{showActiveMarker:e=!0}={}){return(n,o,r)=>{const i=t[ux("0x2f")][ux("0x0")]("TrackChangesEditing"),s=o.markerRange.start,x=o[ux("0x2e")][ux("0x2c")],a=t.model[ux("0x30")];if(!s[ux("0x1c")](x)||!s.nodeAfter)return;const c=s[ux("0x32")];if(a[ux("0x1b")](c)&&!a.isLimit(c)&&a[ux("0x14")](c,ux("0x1f"))){if(!r.consumable.consume(o[ux("0x2e")],n[ux("0x1d")]))return;const t=r[ux("0x24")][ux("0x6")](ux("0x9"),{class:ux("0x10")}),s=r[ux("0x25")][ux("0x21")](x);e&&i[ux("0x31")][ux("0x2d")](o.markerName)&&r[ux("0x24")][ux("0x15")](ux("0x11"),t),r.writer[ux("0x19")](s,t),r[ux("0x25")][ux("0x13")](t,o.markerName)}}}const fx=["_registerLegacyDescription","*Remove all formatting*","RemoveFormatEditing","type","get","has","formatBlock","TrackChangesEditing","afterInit","format","_descriptionFactory","registerDescriptionCallback","removeFormat","plugins","locale","editor","formatInline","_enableDefaultAttributesIntegration"];var mx,hx;mx=fx,hx=325,function(t){for(;--t;)mx.push(mx.shift())}(++hx);const bx=function(t,e){return fx[t-=0]};class px extends t.Plugin{[bx("0x7")](){const t=this[bx("0xe")];t.plugins[bx("0x4")](bx("0x1"))&&(t[bx("0xc")][bx("0x3")]("TrackChangesEditing")[bx("0x10")](bx("0xb")),this._registerLegacyDescription())}[bx("0x11")](){const t=this[bx("0xe")];t[bx("0xc")].get(bx("0x6"))[bx("0x9")][bx("0xa")]((e=>{if(bx("0x5")!=e[bx("0x2")]&&bx("0xf")!=e[bx("0x2")])return;const{data:n}=e;return n&&bx("0xb")==n.commandName?{type:bx("0x8"),content:Qo(t[bx("0xd")],bx("0x0"))}:void 0}))}}const Ex=["RestrictedEditingModeEditing","has","goToNextRestrictedEditingException","acceptAllSuggestions","afterInit","discardSuggestion","enableCommand","acceptSelectedSuggestions","plugins","discardAllSuggestions","editor","goToPreviousRestrictedEditingException","trackChanges","get","discardSelectedSuggestions","TrackChangesEditing"];var _x,Tx;_x=Ex,Tx=488,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const yx=function(t,e){return Ex[t-=0]};class Cx extends t.Plugin{[yx("0xc")](){const t=this[yx("0x2")];if(!t[yx("0x0")][yx("0x9")](yx("0x8")))return;const e=t[yx("0x0")][yx("0x5")](yx("0x7"));e[yx("0xe")](yx("0x3")),e.enableCommand(yx("0xa"));const n=t[yx("0x0")][yx("0x5")](yx("0x8"));n[yx("0xe")](yx("0x4")),n.enableCommand("acceptSuggestion"),n.enableCommand(yx("0xd")),n[yx("0xe")](yx("0xb")),n[yx("0xe")](yx("0x1")),n.enableCommand(yx("0xf")),n[yx("0xe")](yx("0x6"))}}const Ax=["options","shiftEnter","createUIElement","includes","softBreak","plugins","toViewPosition","locale","writer","split","deletion","model","mapper","markerName","editor","high","_descriptionFactory","init","TrackChangesEditing","addClass","markerRange","addMarker:suggestion","span","activeMarkers","element","addMarker:suggestion:deletion","editing","downcastDispatcher","ELEMENT_LINE_BREAK","name","test","addMarker:suggestion:insertion","enableCommand","requires"];var kx,Ix;kx=Ax,Ix=150,function(t){for(;--t;)kx.push(kx.shift())}(++Ix);const Rx=function(t,e){return Ax[t-=0]};class Sx extends t.Plugin{static get[Rx("0x13")](){return[ui.ShiftEnter]}[Rx("0x3")](){const t=this[Rx("0x0")],e=t[Rx("0x19")].get(Rx("0x4"));e[Rx("0x12")](Rx("0x15")),t[Rx("0xc")].downcastDispatcher.on(Rx("0x11"),vx(t),{priority:Rx("0x1")}),t[Rx("0xc")][Rx("0xd")].on(Rx("0xb"),vx(t),{priority:Rx("0x1")}),t.data.downcastDispatcher.on(Rx("0x7"),((e,n,o)=>{o[Rx("0x14")].showSuggestionHighlights&&vx(t,{showActiveMarker:!1})(e,n,o)})),e[Rx("0x2")].registerElementLabel(Rx("0x18"),(e=>Qo(t[Rx("0x1b")],Rx("0xe"),e)))}}function vx(t,{showActiveMarker:e=!0}={}){return(n,o,r)=>{const i=t.plugins.get(Rx("0x4"));if(!r.consumable[Rx("0x10")](o.markerRange,n[Rx("0xf")]))return;const s=t[Rx("0x1f")];for(const t of o[Rx("0x6")].getItems()){if(!t.is(Rx("0xa"),Rx("0x18")))continue;const n=Rx("0x1e")==o[Rx("0x21")][Rx("0x1d")](":")[1]?"merge":Rx("0x1d"),x=r.writer[Rx("0x16")](Rx("0x8"),{class:"ck-suggestion-marker-"+n}),a=r[Rx("0x20")][Rx("0x1a")](s.createPositionBefore(t));e&&i[Rx("0x9")][Rx("0x17")](o.markerName)&&r[Rx("0x1c")][Rx("0x5")]("ck-suggestion-marker--active",x),r[Rx("0x1c")].insert(a,x),r[Rx("0x20")].bindElementToMarker(x,o[Rx("0x21")])}}}const Nx=["plugins","forceValue","isCollapsed","locale","registerDescriptionCallback","type","has","enableCommand","FORMAT_RESTRICTED_ENABLED","formatBlock","document","model","format","FORMAT_RESTRICTED_DISABLED","markInlineFormat","from","commands","editor","formatInline","_descriptionFactory","commandParams","value","commandName","getRanges","get"];var Lx,Mx;Lx=Nx,Mx=197,function(t){for(;--t;)Lx.push(Lx.shift())}(++Mx);const wx=function(t,e){return Nx[t-=0]};class Ox extends t.Plugin{afterInit(){const t=this[wx("0x14")],e=t[wx("0xe")],n=t[wx("0x6")];if(!t[wx("0x3")][wx("0x9")]("StandardEditingModeEditing"))return;const o=t[wx("0x3")].get("TrackChangesEditing"),r="restrictedEditingException",i=t[wx("0x13")][wx("0x2")](r);o[wx("0xa")](r,((t,n={})=>{const s=e[wx("0xd")].selection;if(s[wx("0x5")])return void t(n);const x=void 0!==n[wx("0x4")]?n[wx("0x4")]:!i[wx("0x18")];e.change((()=>{const t=Array[wx("0x12")](s[wx("0x1")]());for(const n of t){const t=x?[n]:$r(r,n,e);for(const e of t)o[wx("0x11")](e,{commandName:r,commandParams:[{forceValue:x}]})}}))})),o[wx("0x16")][wx("0x7")]((t=>{if(wx("0xc")!=t[wx("0x8")]&&wx("0x15")!=t[wx("0x8")])return;const{data:e}=t;return e&&e[wx("0x0")]==r?e[wx("0x17")][0].forceValue?{type:wx("0xf"),content:Qo(n,wx("0xb"))}:{type:wx("0xf"),content:Qo(n,wx("0x10"))}:void 0}))}}const Fx=["TrackChangesEditing","definitions","_registerInlineAttribute","element","_descriptionFactory","type","commandParams","registerDescriptionCallback","*Set format:* %0","plugins","locale","normalizeConfig","toLowerCase","inline","style","config","get","commandName","add","formatInline","DataSchema","styleName","_registerBlockAttribute","block","editor","StyleUtils","has","formatBlock","forceValue","getGhsAttributeNameForElement","format","Style","_enableDefaultAttributesIntegration","ghsAttributes","registerAttributeLabel","GeneralHtmlSupport","afterInit","_registerLegacyDescription"];var Dx,Bx;Dx=Fx,Bx=320,function(t){for(;--t;)Dx.push(Dx.shift())}(++Bx);const Px=function(t,e){return Fx[t-=0]};class Ux extends t.Plugin{[Px("0x14")](){const t=this[Px("0x8")];if(!t[Px("0x1f")][Px("0xa")](Px("0xf"))||!t.plugins[Px("0xa")](Px("0x4")))return;const e=t.plugins.get(Px("0x16")),n=t[Px("0x20")],o=t[Px("0x25")].get(Px("0x24")),r=t.plugins[Px("0x0")](Px("0x13")),i=t[Px("0x1f")][Px("0x0")](Px("0x9"))[Px("0x21")](t[Px("0x1f")][Px("0x0")](Px("0x4")),o[Px("0x17")]);e[Px("0x10")]("style");const s=new Set;for(const t of i[Px("0x7")]){const e=r.getGhsAttributeNameForElement(t[Px("0x19")]);s[Px("0x2")](e)}const x=new Set;for(const t of i[Px("0x23")]){const e=r[Px("0xd")](t[Px("0x19")]);x[Px("0x2")](e);for(const e of t[Px("0x11")])x.add(e)}for(const t of s)e[Px("0x6")](t),e[Px("0x1a")].registerAttributeLabel(t,Qo(n,"FORMAT_STYLE"));for(const t of x)e[Px("0x18")](t),e[Px("0x1a")][Px("0x12")](t,Qo(n,"FORMAT_STYLE"));this._registerLegacyDescription()}[Px("0x15")](){const t=this[Px("0x8")],e=t.locale;t[Px("0x1f")].get(Px("0x16"))._descriptionFactory[Px("0x1d")]((t=>{if(Px("0xb")!=t[Px("0x1b")]&&Px("0x3")!=t[Px("0x1b")])return;const{data:n}=t;return n&&Px("0x24")===n[Px("0x1")]?n[Px("0x1c")][0][Px("0xc")]?{type:Px("0xe"),content:Qo(e,Px("0x1e"),n[Px("0x1c")][0].styleName[Px("0x22")]())}:{type:Px("0xe"),content:Qo(e,"*Remove format:* %0",n[Px("0x1c")][0][Px("0x5")][Px("0x22")]())}:void 0}))}}const jx=["setSelection","createPositionAt","ELEMENT_TABLE_ROW","getRowIndexes","execute","TrackChangesEditing","order","$textProxy","MAX_SAFE_INTEGER","differ","insertTableColumnLeft","$graveyard","tableCell","startsWith","end","minRow","insertTableRowAbove","isArray","from","element","addMarker:suggestion","max","tableColumn","values","add","getSuggestion","isIntersectingWithRange","registerCustomCallback","_suggestionFactory","findAncestor","getAttribute","editor","refresh","showSuggestionHighlights","highest","rootName","getChildren","length","addRange","removeTableColumn","ELEMENT_TABLE_COLUMN_WITH_TEXT","data","*Remove:* %0","nodeAfter","name","*Insert:* %0","addClass","fromRange","maxColumn","getSelectionAffectedTableCells","removeTableRow","first","map","includes","mapper","above","colspan","change","substr","ELEMENT_TABLE","getRanges","push","markMultiRangeInsertion","enqueueChange","createRangeIn","insert","item","document","accept","getColumnIndexes","get","table","nodeBefore","getCellLocation","getChanges","join","span","hasAttribute","ELEMENT_TABLE_COLUMN","getItems","filter","suggestion","TableEditing","_tablePostFixingSubtypes","registerPostFixer","toLowerCase","_acceptFormatSuggestionCallbackFactory","insertTableColumnRight","maxRow","options","type","downcastDispatcher","_tableSuggestions","isInContent","_splitMarkerName","change:data","model","enableCommand","tableRow","min","selectTableColumn","_getCoordsForCells","batch","markMultiRangeDeletion","deletion","afterInit","start","subType","selectTableRow","TableUtils","low","minColumn","classes","commands","createRangeOn","tablePaste","root","position","insertTable","plugins","ELEMENT_TABLE_ROW_WITH_TEXT","_getSuggestionCoords","detach","createTableWalker","ELEMENT_TABLE_WITH_TEXT","_descriptionFactory","removeClass","last","MIN_SAFE_INTEGER","selection","getFirstRange","isEqual","registerDescriptionCallback","insertion","discard","registerElementLabel","has"];var Gx,Vx;Gx=jx,Vx=352,function(t){for(;--t;)Gx.push(Gx.shift())}(++Vx);const Hx=function(t,e){return jx[t-=0]};class zx extends t.Plugin{constructor(t){super(t),this[Hx("0x5")]=[Hx("0x14"),Hx("0x51")],this[Hx("0xe")]=new Set}[Hx("0x1b")](){const t=this[Hx("0x5a")],e=t[Hx("0x12")][Hx("0x7e")][Hx("0x33")];if(!t[Hx("0x29")][Hx("0x3a")](Hx("0x4")))return;const n=t.locale,o=t[Hx("0x29")].get(Hx("0x40")),r=t[Hx("0x29")].get(Hx("0x1f"));o[Hx("0x2f")][Hx("0x39")]("table",(t=>Qo(n,Hx("0x76"),t))),this._setupColumnsRowsFixing(),o.enableCommand(Hx("0x28")),o[Hx("0x13")](Hx("0x1e")),o.enableCommand(Hx("0x16"));for(const n of[Hx("0x4b"),"insertTableRowBelow"]){const i=t[Hx("0x23")].get(n);o[Hx("0x13")](n,(n=>{t.model[Hx("0x74")]((t=>{n();const s=Hx("0x72")===i[Hx("0x41")],x=r.getSelectionAffectedTableCells(e),a=r[Hx("0x3e")](x),c=s?a[Hx("0x6e")]-1:a[Hx("0x31")]+1,l=x[0][Hx("0x58")](Hx("0x82")),u=r[Hx("0x2d")](l,{startRow:c,endRow:c}),d=Array[Hx("0x4d")](u)[Hx("0x6f")]((e=>t[Hx("0x24")](e.cell)));o[Hx("0x79")](d,Hx("0x14"))}))}))}for(const n of[Hx("0x45"),Hx("0x9")]){const i=t.commands[Hx("0x81")](n);o[Hx("0x13")](n,(n=>{t[Hx("0x12")][Hx("0x74")]((t=>{n();const s="left"===i[Hx("0x41")],x=r[Hx("0x6c")](e),a=r[Hx("0x80")](x),c=s?a[Hx("0x6e")]-1:a[Hx("0x31")]+1,l=x[0][Hx("0x58")](Hx("0x82")),u=r.createTableWalker(l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Hx("0x4d")](u)[Hx("0x6f")]((e=>t[Hx("0x24")](e.cell)));o[Hx("0x79")](d,Hx("0x51"))}))}))}for(const n of[Hx("0x6d"),Hx("0x62")]){const i=n[Hx("0x75")](11),s=i.toLowerCase(),x=s.substr(0,3)+Hx("0x87"),a="table"+i,c=Hx("0x15")+i,l=Hx("0x50")+i;o[Hx("0x13")](n,(()=>{t.model.change((t=>{const i=r[Hx("0x6c")](e),u=i[0][Hx("0x58")]("table");let d;if(Hx("0x6d")==n){const t=r[Hx("0x3e")](i);d={startRow:t[Hx("0x6e")],endRow:t[Hx("0x31")],includeAllSlots:!0}}else{const t=r[Hx("0x80")](i);d={startColumn:t[Hx("0x6e")],endColumn:t[Hx("0x31")],includeAllSlots:!0}}const g=r[Hx("0x2d")](u,d),f=Array[Hx("0x4d")](g).map((({cell:t})=>t)),m=Wx(f.filter((t=>t[Hx("0x88")](x)))),h=Wx(f.filter((t=>!t.hasAttribute(x))))[Hx("0x6f")]((e=>t[Hx("0x24")](e))),b=o[Hx("0x19")](h,a);if(b&&(Hx("0x14")==b.subType||Hx("0x51")==b[Hx("0x1d")])){const e=this._getSuggestionCoords(b);for(const n of m){const o=t[Hx("0x24")](n),i=r.getCellLocation(n),a=n[Hx("0x59")](x)-1,u=e[c],d=e[l];u<=i[s]&&i[s]+a<=d&&b.addRange(o)}}}))}))}function i(n){const o=Array[Hx("0x4d")](e[Hx("0x77")]())[Hx("0x6f")]((t=>s.LiveRange.fromRange(t)));t[Hx("0x12")][Hx("0x74")]((e=>{const r=e[Hx("0x18")];n=n[Hx("0x2")]((t=>Hx("0x46")!=t[Hx("0x26")][Hx("0x5e")])),e[Hx("0x3b")](n),t[Hx("0x23")][Hx("0x81")]("removeTableRow")[Hx("0x5b")](),t.execute("removeTableRow",{forceDefaultExecution:!0}),t.model[Hx("0x7a")]((()=>{t[Hx("0x12")].enqueueChange(r,(t=>{const e=o.filter((t=>Hx("0x46")!=t[Hx("0x26")][Hx("0x5e")]));e.length>0&&t[Hx("0x3b")](e);for(const t of o)t[Hx("0x2c")]()}))}))}))}function a(n){t[Hx("0x12")].change((o=>{const r=Array[Hx("0x4d")](e.getRanges()).map((t=>s.LiveRange[Hx("0x6a")](t))),i=[];for(const t of n)for(const e of t[Hx("0x1")]({shallow:!0}))i[Hx("0x78")](e);for(const e of i)Hx("0x46")!=e.root[Hx("0x5e")]&&(o[Hx("0x3b")](o[Hx("0x3c")](e,0)),t[Hx("0x23")][Hx("0x81")]("removeTableColumn")[Hx("0x5b")](),t[Hx("0x3f")](Hx("0x62"),{forceDefaultExecution:!0}));const x=r[Hx("0x2")]((t=>"$graveyard"!=t[Hx("0x26")].rootName));x[Hx("0x60")]>0&&o[Hx("0x3b")](x);for(const t of r)t[Hx("0x2c")]()}))}function c(t,e){return e.every((e=>t.some((t=>t[Hx("0x49")][Hx("0x35")](e[Hx("0x1c")])||e[Hx("0x49")][Hx("0x35")](t[Hx("0x1c")])))))}function l(t,e){return t.some((t=>e.some((e=>t[Hx("0x49")].isTouching(e[Hx("0x1c")])))))}t[Hx("0x64")][Hx("0xd")].on(Hx("0x4f"),((t,e,n)=>{if(!n[Hx("0xb")][Hx("0x5c")])return;const o=e[Hx("0x7d")];if(!o)return;const r=n[Hx("0x71")].toViewElement(o);function i(t){return Array[Hx("0x4c")](t)?t:[t]}r&&Hx("0x47")===o[Hx("0x67")]&&(0,x.setHighlightHandling)(r,n.writer,((t,e,n)=>n[Hx("0x69")](i(e[Hx("0x22")]),t)),((t,e,n)=>n[Hx("0x30")](i(e[Hx("0x22")]),t)))}),{priority:Hx("0x5d")}),o[Hx("0x2f")][Hx("0x36")]((t=>{if("insertion"!=t[Hx("0xc")]&&Hx("0x1a")!=t[Hx("0xc")])return;const e=t.getContainedElement();if(null!=e&&e.is(Hx("0x4e"),Hx("0x82"))){if(Hx("0x37")==t[Hx("0xc")]){const e=t[Hx("0x1")]()[Hx("0x2")]((t=>t.is("$textProxy")))[Hx("0x6f")]((t=>t[Hx("0x64")]));if(e[Hx("0x60")])return{type:Hx("0x37"),content:Qo(n,Hx("0x68"),Qo(n,Hx("0x2e"),'"'+e[Hx("0x86")](" ")+'"'))}}if(Hx("0x1a")==t[Hx("0xc")]){const e=t[Hx("0x1")]().filter((t=>t.is("$textProxy")))[Hx("0x6f")]((t=>t[Hx("0x64")]));if(e[Hx("0x60")])return{type:Hx("0x1a"),content:Qo(n,Hx("0x65"),Qo(n,Hx("0x2e"),'"'+e[Hx("0x86")](" ")+'"'))}}}})),o._descriptionFactory[Hx("0x36")]((t=>{if(Hx("0x14")==t.subType){const e=t.getItems()[Hx("0x2")]((t=>t.is(Hx("0x42"))))[Hx("0x6f")]((t=>t[Hx("0x64")])),o=this[Hx("0x2b")](t),r=o[Hx("0xa")]-o[Hx("0x4a")]+1;if(Hx("0x37")==t[Hx("0xc")])return e.length?{type:Hx("0x37"),content:Qo(n,Hx("0x68"),Qo(n,Hx("0x2a"),[r,'"'+e[Hx("0x86")](" ")+'"']))}:{type:Hx("0x37"),content:Qo(n,Hx("0x68"),Qo(n,"ELEMENT_TABLE_ROW",r))};if(Hx("0x1a")==t.type)return e[Hx("0x60")]?{type:Hx("0x1a"),content:Qo(n,Hx("0x65"),Qo(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[r,'"'+e[Hx("0x86")](" ")+'"']))}:{type:"deletion",content:Qo(n,Hx("0x65"),Qo(n,Hx("0x3d"),r))}}if("tableColumn"==t[Hx("0x1d")]){const e=t[Hx("0x1")]()[Hx("0x2")]((t=>t.is("$textProxy")))[Hx("0x6f")]((t=>t.data)),o=this._getSuggestionCoords(t),r=o[Hx("0x6b")]-o[Hx("0x21")]+1;if(Hx("0x37")==t[Hx("0xc")])return e[Hx("0x60")]?{type:Hx("0x37"),content:Qo(n,"*Insert:* %0",Qo(n,Hx("0x63"),[r,'"'+e.join(" ")+'"']))}:{type:Hx("0x37"),content:Qo(n,Hx("0x68"),Qo(n,Hx("0x0"),r))};if(Hx("0x1a")==t.type)return e.length?{type:"deletion",content:Qo(n,Hx("0x65"),Qo(n,Hx("0x63"),[r,'"'+e[Hx("0x86")](" ")+'"']))}:{type:Hx("0x1a"),content:Qo(n,Hx("0x65"),Qo(n,Hx("0x0"),r))}}})),o[Hx("0x57")][Hx("0x56")]("insertion","tableRow",Hx("0x38"),i),o[Hx("0x57")][Hx("0x56")](Hx("0x1a"),Hx("0x14"),Hx("0x7f"),i),o[Hx("0x57")].registerCustomCallback("insertion",Hx("0x51"),Hx("0x38"),a),o[Hx("0x57")][Hx("0x56")]("deletion",Hx("0x51"),"accept",a),o[Hx("0x57")][Hx("0x56")]("insertion",Hx("0x51"),Hx("0x86"),c),o[Hx("0x57")][Hx("0x56")](Hx("0x1a"),Hx("0x51"),Hx("0x86"),c),o._suggestionFactory.registerCustomCallback("insertion",Hx("0x14"),Hx("0x86"),l),o[Hx("0x57")][Hx("0x56")](Hx("0x1a"),Hx("0x14"),Hx("0x86"),l)}[Hx("0x8")](){const t=this.editor,e=t[Hx("0x12")][Hx("0x7e")][Hx("0x33")];return(n,o)=>{t[Hx("0x12")][Hx("0x74")]((r=>{const{commandName:i,commandParams:x}=o;let a=n[0][Hx("0x49")][Hx("0x83")];x&&x[0]&&!1===x[0].forceValue&&(a=n[0][Hx("0x1c")].nodeAfter);const c=r[Hx("0x7b")](a);if(Hx("0x46")==c[Hx("0x26")].rootName)return;const l=Array[Hx("0x4d")](e[Hx("0x77")]())[Hx("0x6f")]((t=>s.LiveRange[Hx("0x6a")](t)));r[Hx("0x3b")](c),t.commands.get(i)[Hx("0x5b")](),x[Hx("0x78")]({forceDefaultExecution:!0}),t[Hx("0x3f")](i,...x);const u=l.filter((t=>"$graveyard"!=t.root.rootName));u[Hx("0x60")]>0&&r[Hx("0x3b")](u);for(const t of l)t[Hx("0x2c")]()}))}}[Hx("0x17")](t){const e=this[Hx("0x5a")][Hx("0x29")].get(Hx("0x1f"));let n=Number[Hx("0x43")],o=Number[Hx("0x32")],r=Number[Hx("0x43")],i=Number.MIN_SAFE_INTEGER;for(const s of t){if(Hx("0x46")==s.root[Hx("0x5e")])continue;const{row:t,column:x}=e.getCellLocation(s),a=s[Hx("0x88")]("rowspan")?s[Hx("0x59")]("rowspan")-1:0,c=s[Hx("0x88")](Hx("0x73"))?s[Hx("0x59")](Hx("0x73"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,r=x<r?x:r,i=x+c>i?x+c:i}return{minRow:n,maxRow:o,minColumn:r,maxColumn:i}}_setupColumnsRowsFixing(){const t=this[Hx("0x5a")],e=t[Hx("0x29")][Hx("0x81")](Hx("0x40")),n=t[Hx("0x29")][Hx("0x81")](Hx("0x1f"));t[Hx("0x12")].document.on(Hx("0x11"),(()=>{const n=Array[Hx("0x4d")](t[Hx("0x12")].document[Hx("0x44")].getChangedMarkers());for(const{name:t,data:o}of n){const{group:n,id:r,subType:i}=e[Hx("0x10")](t);if(Hx("0x3")!=n)continue;if(null!=o.oldRange)continue;const s=e[Hx("0x54")](r);this._tablePostFixingSubtypes[Hx("0x70")](i)&&this[Hx("0xe")][Hx("0x53")](s)}}),{priority:Hx("0x20")});const o=(t,e)=>{let o=!1;const r=e[Hx("0x24")](t),i=t[Hx("0x58")](Hx("0x82")),s=n[Hx("0x84")](t);for(const e of this[Hx("0xe")]){const n=e[Hx("0x1d")],x=n[Hx("0x48")](Hx("0x25")),a=n[Hx("0x75")](x?10:5),c=a[Hx("0x7")](),l=c[Hx("0x75")](0,3)+Hx("0x87"),u=Hx("0x15")+a,d="max"+a;if(!e[Hx("0xf")])continue;if(i!=e[Hx("0x34")]()[Hx("0x1c")][Hx("0x58")](Hx("0x82")))continue;if(e[Hx("0x55")](r))continue;const g=t[Hx("0x88")](l)?t[Hx("0x59")](l)-1:0,f=this[Hx("0x2b")](e),m=f[u],h=f[d];m<=s[c]&&s[c]+g<=h&&(e[Hx("0x61")](r),o=!0)}return o};t[Hx("0x12")].document[Hx("0x6")]((e=>{let n=!1;for(const r of t[Hx("0x12")][Hx("0x7e")].differ[Hx("0x85")]())if(Hx("0x7c")==r[Hx("0xc")])if(Hx("0x14")==r[Hx("0x67")])for(const t of r[Hx("0x27")][Hx("0x66")][Hx("0x5f")]())n=n||o(t,e);else Hx("0x47")==r[Hx("0x67")]&&(n=n||o(r[Hx("0x27")].nodeAfter,e));return n}))}[Hx("0x2b")](t){return this._getCoordsForCells(t[Hx("0x77")]().map((t=>t[Hx("0x1c")].nodeAfter)))}}function Wx(t){return Array.from(new Set(t)[Hx("0x52")]())}const Kx=["isEnabled","*Split cell:* vertically","plugins","getCellLocation","TableEditing","mergeTableCellLeft","formatInline","containsRange","trackChanges","TableUtils","direction","model","return","highest","accept","table","_isForcedDefaultExecutionBlock","detach","_suggestionFactory","createTableWalker","change","mergeTableCellRight","mergeTableCells","getRanges","has","low","*Split cell:* horizontally","enableCommand","find","TrackChangesEditing","selection","editor","locale","getAncestors","forceDefaultExecution","stop","rootName","afterInit","document","from","_areSelectedCellsMergable","tableCell","fromRange","registerCustomCallback","getSelectionAffectedTableCells","refresh","splitTableCellVertically","deletion","horizontally","subType","execute","root","type","add","commandName","cell","length","_areMergableCells","_descriptionFactory","element","_tablePostFixingSubtypes","value","getSuggestions","_acceptFormatSuggestionCallbackFactory","registerDescriptionCallback","setSelection","commands","get","author","splitTableCellHorizontally","mergeTableCellUp","requires","map","markMultiRangeBlockFormat","createRangeOn","size","set:isEnabled","mergeTableCellDown","formatBlock","format","getFirstPosition"];var qx,$x;qx=Kx,$x=151,function(t){for(;--t;)qx.push(qx.shift())}(++$x);const Xx=function(t,e){return Kx[t-=0]};class Zx extends t.Plugin{static get[Xx("0x1")](){return[zx]}[Xx("0x30")](){const t=this[Xx("0x2a")],e=t[Xx("0x16")][Xx("0x31")][Xx("0x29")],n=t[Xx("0x2b")];if(!t[Xx("0xd")][Xx("0x23")](Xx("0xf")))return;const o=t.plugins.get(Xx("0x28")),r=t[Xx("0xd")][Xx("0x4e")](Xx("0x14")),i=t[Xx("0xd")][Xx("0x4e")](zx);i[Xx("0x47")].push("mergeTableCells"),o.enableCommand("mergeTableCells",(()=>{const e=r.getSelectionAffectedTableCells(t[Xx("0x16")][Xx("0x31")][Xx("0x29")]);t[Xx("0x16")].change((()=>{o[Xx("0x3")](e,{commandName:Xx("0x21"),commandParams:[]},[],Xx("0x21"))}))})),t.commands[Xx("0x4e")](Xx("0x21")).on("execute",((e,n)=>{t[Xx("0x4d")][Xx("0x4e")](Xx("0x13")).value&&(n.length>0&&n[n.length-1]&&n[n[Xx("0x43")]-1][Xx("0x2d")]||o[Xx("0x1b")]||this[Xx("0x33")]()||e[Xx("0x2e")]())}),{priority:Xx("0x18")});for(const e of[Xx("0x0"),Xx("0x20"),Xx("0x7"),"mergeTableCellLeft"]){const n=t.commands[Xx("0x4e")](e);o[Xx("0x26")](e,(()=>{const e=t[Xx("0x16")][Xx("0x31")][Xx("0x29")][Xx("0xa")]()[Xx("0x2c")]()[Xx("0x27")]((t=>t.is(Xx("0x46"),"tableCell"))),r=n[Xx("0x48")];t[Xx("0x16")][Xx("0x1f")]((()=>{o[Xx("0x3")]([e,r],{commandName:Xx("0x21"),commandParams:[]},[],Xx("0x21"))}))}))}for(const e of[Xx("0x39"),Xx("0x50")]){const n=t.commands.get(e);o[Xx("0x26")](e,(()=>{const i=r.getSelectionAffectedTableCells(t[Xx("0x16")][Xx("0x31")].selection)[0],s=i.findAncestor(Xx("0x1a")),{column:x,row:a}=r[Xx("0xe")](i);let c=[];if(Xx("0x3b")==n[Xx("0x15")]){const t=r[Xx("0x1e")](s,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Xx("0x32")](t)[Xx("0x2")]((t=>t[Xx("0x42")]))}else{const t=r[Xx("0x1e")](s,{column:x,includeAllSlots:!0});c=Array[Xx("0x32")](t)[Xx("0x2")]((t=>t.cell))}t.model[Xx("0x1f")]((t=>{o.markBlockFormat(t[Xx("0x4")](i),{commandName:e,commandParams:[]},c,e)}))}))}o[Xx("0x45")][Xx("0x4b")]((t=>{if(Xx("0x8")!=t[Xx("0x3f")]&&Xx("0x11")!=t[Xx("0x3f")])return;const{data:e}=t;return e&&Xx("0x21")==e.commandName?{type:Xx("0x9"),content:Qo(n,"*Merge cells*")}:void 0})),o[Xx("0x45")][Xx("0x4b")]((t=>{if(Xx("0x8")!=t.type&&"formatInline"!=t[Xx("0x3f")])return;const{data:e}=t;return e?Xx("0x39")==e[Xx("0x41")]?{type:Xx("0x9"),content:Qo(n,Xx("0xc"))}:Xx("0x50")==e[Xx("0x41")]?{type:"format",content:Qo(n,Xx("0x25"))}:void 0:void 0}));const x=i[Xx("0x4a")]();for(const t of[Xx("0x0"),Xx("0x20"),Xx("0x7"),Xx("0x10")])o[Xx("0x1d")].registerCustomCallback(Xx("0x8"),t,Xx("0x19"),x);for(const t of[Xx("0x39"),Xx("0x50")])o[Xx("0x1d")][Xx("0x36")](Xx("0x8"),t,"accept",x);o[Xx("0x1d")][Xx("0x36")](Xx("0x8"),Xx("0x21"),Xx("0x19"),(n=>{t.model[Xx("0x1f")]((o=>{const r=Array[Xx("0x32")](e.getRanges()).map((t=>s.LiveRange[Xx("0x35")](t)));o[Xx("0x4c")](n),t[Xx("0x4d")].get(Xx("0x21"))[Xx("0x38")](),t[Xx("0x3d")](Xx("0x21"),{forceDefaultExecution:!0});const i=r.filter((t=>"$graveyard"!=t[Xx("0x3e")][Xx("0x2f")]));i.length>0&&o[Xx("0x4c")](i);for(const t of r)t[Xx("0x1c")]()}))}));for(const e of["mergeTableCellUp",Xx("0x7"),"mergeTableCellLeft",Xx("0x20")]){const n=t[Xx("0x4d")][Xx("0x4e")](e);n.on(Xx("0x6"),((e,o,r)=>{if(r){const o=t[Xx("0x16")][Xx("0x31")][Xx("0x29")][Xx("0xa")]()[Xx("0x2c")]()[Xx("0x27")]((t=>t.is(Xx("0x46"),Xx("0x34"))));this[Xx("0x44")](n[Xx("0x48")],o)||(e[Xx("0x17")]=!1,e[Xx("0x2e")]())}}),{priority:Xx("0x24")})}}[Xx("0x33")](){const t=this.editor.commands.get("mergeTableCells"),e=this[Xx("0x2a")][Xx("0xd")][Xx("0x4e")](Xx("0x14"));if(!t[Xx("0xb")])return!1;const n=e[Xx("0x37")](this[Xx("0x2a")].model[Xx("0x31")].selection);for(const t of n)for(const e of n)if(t!=e&&!this[Xx("0x44")](t,e))return!1;return!0}[Xx("0x44")](t,e){const n=this.editor[Xx("0xd")][Xx("0x4e")]("TrackChangesEditing"),o=this.editor[Xx("0x16")][Xx("0x4")](t),r=this[Xx("0x2a")][Xx("0x16")][Xx("0x4")](e),i=new Set,s=new Set;for(const t of n[Xx("0x49")]())if(("insertion"==t[Xx("0x3f")]||Xx("0x3a")==t[Xx("0x3f")]||Xx("0x21")==t[Xx("0x3c")])&&t.isInContent)for(const e of t[Xx("0x22")]())e.containsRange(o,!0)&&i.add(t[Xx("0x3f")]+":"+t[Xx("0x4f")].id),e[Xx("0x12")](r,!0)&&s[Xx("0x40")](t.type+":"+t[Xx("0x4f")].id);if(i[Xx("0x5")]!=s[Xx("0x5")])return!1;for(const t of i)if(!s.has(t))return!1;return!0}}const Yx=["markerRange","setTableColumnHeader","registerDescriptionCallback","name","options","has","plugins","parent","_suggestionFactory","FORMAT_HEADER_COLUMN","commandParams","FORMAT_REGULAR_COLUMN","TrackChangesEditing","registerAttributeLabel","getSuggestion","activeMarkers","setAttribute","mapper","ck-suggestion-marker-","FORMAT_REGULAR_ROW","accept","createTableWalker","headingRows","setTableRowHeader","removeAttribute","_splitMarkerName","format","TableUtils","*Format:* %0","item","end","data","markerNameToElements","downcastDispatcher","removeClass","addMarker:suggestion","toViewElement","_handleLegacySuggestions","registerCustomCallback","stop","forceValue","commandName","addClass","ck-suggestion-marker--active","requires","highest","markerName","removeMarker:suggestion","_enableDefaultAttributesIntegration","get","_descriptionFactory","nodeBefore","TableEditing","editor","writer","afterInit","type","headingColumns","consumable","FORMAT_HEADER_ROW","locale","data-suggestion","formatBlock","unbindElementFromMarkerName","getCellLocation"];var Jx,Qx;Jx=Yx,Qx=421,function(t){for(;--t;)Jx.push(Jx.shift())}(++Qx);const ta=function(t,e){return Yx[t-=0]};class ea extends t.Plugin{static get[ta("0xd")](){return[zx]}[ta("0x18")](){const t=this.editor;if(!t[ta("0x28")][ta("0x27")](ta("0x15")))return;const e=t[ta("0x1d")],n=t.plugins[ta("0x12")](ta("0x2e"));n[ta("0x11")](ta("0x39"),[],["headingRows"]),n[ta("0x11")](ta("0x23"),[],[ta("0x1a")]),n[ta("0x13")][ta("0x2f")](ta("0x38"),Qo(e,ta("0x1c"))),n[ta("0x13")][ta("0x2f")](ta("0x1a"),Qo(e,ta("0x2b"))),this[ta("0x6")]()}[ta("0x6")](){const t=this[ta("0x16")][ta("0x28")].get(ta("0x2e")),e=this[ta("0x16")].plugins[ta("0x12")](ta("0x3d")),n=this[ta("0x16")][ta("0x28")][ta("0x12")](zx)._acceptFormatSuggestionCallbackFactory();function o({showActiveMarker:n=!0,setDataAttribute:o=!0}={}){return(r,i,s)=>{const{type:x,id:a}=t[ta("0x3b")](i[ta("0xf")]),c=t[ta("0x30")](a),l=c[ta("0x0")];if("formatBlock"!=c[ta("0x19")]||!l||ta("0x23")!=l[ta("0xa")])return;if(i[ta("0x3f")])return void r[ta("0x8")]();if(!s[ta("0x1b")].consume(i[ta("0x22")],r[ta("0x25")]))return;const u=i[ta("0x22")].start.nodeAfter,d=i[ta("0x22")][ta("0x40")][ta("0x14")],g=u.parent[ta("0x29")],{column:f}=e[ta("0x21")](u),{column:m}=e[ta("0x21")](d);for(let r=f;r<=m;r++){const c=e[ta("0x37")](g,{column:r,includeAllSlots:!1});for(const e of c){const r=e.cell,c=s[ta("0x33")][ta("0x5")](r);s.writer[ta("0xb")](ta("0x34")+x,c),o&&s[ta("0x17")][ta("0x32")](ta("0x1e"),a,c),s.mapper.bindElementToMarker(c,i[ta("0xf")]),n&&(t[ta("0x31")].includes(i[ta("0xf")])?s[ta("0x17")][ta("0xb")](ta("0xc"),c):s[ta("0x17")][ta("0x3")](ta("0xc"),c))}}}}t[ta("0x2a")][ta("0x7")]("formatBlock","setTableRowHeader","accept",n),t._suggestionFactory[ta("0x7")](ta("0x1f"),ta("0x23"),ta("0x36"),n),this[ta("0x16")].editing[ta("0x2")].on("addMarker:suggestion",o(),{priority:ta("0xe")}),this.editor[ta("0x0")][ta("0x2")].on(ta("0x4"),((t,e,n)=>{n[ta("0x26")].showSuggestionHighlights&&o({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:ta("0xe")}),this[ta("0x16")].editing[ta("0x2")].on(ta("0x10"),((e,n,o)=>{const{type:r,id:i}=t[ta("0x3b")](n[ta("0xf")]),s=t[ta("0x30")](i),x=s[ta("0x0")];if(ta("0x1f")!=s[ta("0x19")]||!x||ta("0x23")!=x[ta("0xa")])return;const a=o[ta("0x33")][ta("0x1")](n.markerName);if(a)for(const t of a)o[ta("0x17")][ta("0x3")](ta("0x34")+r,t),o[ta("0x17")][ta("0x3")](ta("0xc"),t),o.writer[ta("0x3a")](ta("0x1e"),t),o[ta("0x33")][ta("0x20")](t,n[ta("0xf")])}),{priority:ta("0xe")}),this._registerLegacyDescription()}_registerLegacyDescription(){const t=this[ta("0x16")],e=t[ta("0x1d")];function n(t){return{type:ta("0x3c"),content:Qo(e,ta("0x3e"),t)}}t[ta("0x28")][ta("0x12")](ta("0x2e"))._descriptionFactory[ta("0x24")]((t=>{if(ta("0x1f")!=t[ta("0x19")])return;const{data:o}=t;if(o){if(ta("0x39")==o[ta("0xa")]){const t=o.commandParams[0][ta("0x9")];return n(Qo(e,ta(t?"0x1c":"0x35")))}if("setTableColumnHeader"==o[ta("0xa")]){const t=o[ta("0x2c")][0][ta("0x9")];return n(Qo(e,t?"FORMAT_HEADER_COLUMN":ta("0x2d")))}}}))}}const na=["containsRange","removeColumns","documentSelection","for","return","startsWith","getSelectionAffectedTableCells","suggestion:formatBlock:tablePasteCell","Users","length","view","showSuggestionHighlights","isEmpty","includes","unwrap","newRange","oldRange","suggestion","formatBlock","markMultiRangeInsertion","remove","*Replace table cells*","getAllAdjacentSuggestions","createRangeIn","row","columnInsertionIndexes","getSuggestion","registerPostFixer","requires","register","getMarkers","rootName","markerName","entries","getChildren","_splitMarkerName","accept","discard","locale","afterInit","_tablePostFixingSubtypes","rowInsertionIndexes","updateMarker","end","column","TableUtils","nodeAfter","removeMarker","$graveyard","add","tableCell","editor","fill","has","tableCellPadding","find","markerAttributes","deletion","suggestionLoaded","get","activeMarkers","tableCellSuggestion","from","getSuggestionCallback","cell","insertion","redo","getColumns","attributes","listenTo","subType","table","_createdBatches","stop","tableCellBackgroundColor","forceDefaultExecution","getSuggestions","markers","document","ck-suggestion-marker-insertion","suggestion-td","_descriptionFactory","getChild","trackChanges","value","isInContent","name","start","content","tablePasteChainId","set","createElement","clipboardOutput","dataDowncast","position","fromEntries","paragraph","author","map","findAncestor","getChangedMarkers","isEqual","insert","createTableWalker","insertRows","low","insertionRanges","differ","previous","getContainedElement","endRow","cells","getColumnIndexes","commands","_getCoordsForCells","elementToElement","insertContent","getAttributes","ck-suggestion-marker--active","setAttribute","type","getRowIndexes","ck-suggestion-marker","getChanges","endColumn","getShiftedBy","createRangeOn","tablePaste","filter","TableClipboard","conversion","tableCellHorizontalAlignment","high","join","options","every","_replaceTableSlotCell","last","getRange","editingDowncast","change","removeMarkers","tablePasteRow","model","element","push","root","_suggestionFactory","tableCellVerticalAlignment","first","tableCellBorderWidth","registerCustomCallback","editing","schema","some","tablePasteCell","plugins","markerToHighlight","tablePasteColumn"];var oa,ra;oa=na,ra=116,function(t){for(;--t;)oa.push(oa.shift())}(++ra);const ia=function(t,e){return na[t-=0]},sa=[ia("0x22"),"tableCellBorderColor","tableCellBorderStyle",ia("0xf"),ia("0x20"),ia("0x75"),ia("0x61")],xa=Object[ia("0x8a")](sa[ia("0x8d")]((t=>[t,null])));class aa extends t.Plugin{static get[ia("0x47")](){return[zx]}[ia("0x52")](){const t=this[ia("0x5e")];if(!t[ia("0x28")][ia("0x60")]("TableClipboard"))return;const n=t.plugins.get("TrackChangesEditing"),o=t[ia("0x28")][ia("0x66")](ia("0x58")),r=t[ia("0x28")][ia("0x66")](zx),i=t.plugins[ia("0x66")](ia("0xd"));r[ia("0x53")][ia("0x1d")]("tablePasteRow","tablePasteColumn"),t.model[ia("0x25")][ia("0x48")](ia("0x68"),{allowIn:ia("0x5d"),allowContentOf:ia("0x5d"),isLimit:!0}),t.conversion[ia("0x9e")]({model:ia("0x68"),view:ia("0x7b")});let s=null;t[ia("0x1b")].on("insertContent",((r,x)=>{const[a,c]=x,l=x[x.length-1];l&&l[ia("0x76")]||n._isForcedDefaultExecutionBlock||this[ia("0x5e")][ia("0x9c")][ia("0x66")](ia("0x7e"))[ia("0x7f")]&&function(t,e,n,o,r){if(e&&!e.is(ia("0x2d")))return!1;const i=r.getTableIfOnlyTableInContent(t,n);if(!i||!la(i,void 0,o))return!1;const s=o[ia("0x31")](n[ia("0x79")].selection);if(!s[ia("0x34")])return!1;const x=s[0].findAncestor("table"),a=o[ia("0x5")](s),c=o[ia("0x9b")](s),l={startRow:a.first,endRow:a[ia("0x15")],startColumn:c[ia("0x21")],endColumn:c[ia("0x15")]};return 1==s[ia("0x34")]&&(l[ia("0x99")]+=o.getRows(i)-1,l[ia("0x8")]+=o[ia("0x6e")](i)-1),la(x,l,o)}(a,c,t[ia("0x1b")],o,i)&&(r[ia("0x74")](),s={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t.model[ia("0x18")]((()=>{t[ia("0x1b")][ia("0x0")](x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:r,columnInsertionRanges:i,insertionRanges:a,deletionRanges:c,cells:l}=s;r[ia("0x34")]&&n.markMultiRangeInsertion(r,ia("0x1a"),{tablePasteChainId:o}),i[ia("0x34")]&&n[ia("0x3e")](i,ia("0x2a"),{tablePasteChainId:o}),a.length&&n[ia("0x3e")](a,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0}),c[ia("0x34")]&&n.markMultiRangeDeletion(c,ia("0xb"),{tablePasteChainId:o,skipNestingCheck:!0});const u=n.markMultiRangeBlockFormat(l.map((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],ia("0x27"),{tablePasteChainId:o});if(u){const e=u.getMarkers(),n=[];for(const{element:o,attributes:r}of l){if(!r)continue;const i=t[ia("0x1b")][ia("0xa")](o),s=e[ia("0x62")]((t=>t[ia("0x16")]()[ia("0x90")](i)));s&&n[ia("0x1d")]([s[ia("0x81")],r])}n[ia("0x34")]&&u[ia("0x3")](ia("0x63"),Object[ia("0x8a")](n))}s=null})))}),{priority:e.priorities[ia("0x10")]+10}),t[ia("0x28")][ia("0x66")](ia("0xd")).on(ia("0x14"),((t,e)=>{const[n,o,,r]=e;if(!s)return;t[ia("0x74")]();const i=n[ia("0x6b")],x=o,a=ca(i),c=ca(x);t[ia("0x2f")]=i;let l=null,u=null;if(c||a)if(a&&!c){r[ia("0x3f")](i[ia("0x7d")](0));for(const t of Array[ia("0x69")](x[ia("0x4d")]()))r[ia("0x91")](t,i,ia("0x56"));const t=s.rowInsertionIndexes[ia("0x38")](n[ia("0x43")]),e=s[ia("0x44")][ia("0x38")](n[ia("0x57")]);t||e||(l=r.createRangeIn(i))}else c&&!a&&(u=r[ia("0x42")](i));else{const t=r.createElement(ia("0x68")),e=r[ia("0x86")](ia("0x68"));r.wrap(r[ia("0x42")](i),e),r[ia("0x91")](t,i,0);for(const e of Array.from(x.getChildren()))r[ia("0x91")](e,t,ia("0x56"));l=r.createRangeOn(t),u=r[ia("0xa")](e)}const d=Array[ia("0x69")](x[ia("0x1")]()).filter((([t])=>sa[ia("0x38")](t)));s[ia("0x9a")][ia("0x1d")]({element:i,attributes:d[ia("0x34")]?Object[ia("0x8a")](d):null}),l&&s[ia("0x95")][ia("0x1d")](l),u&&s.deletionRanges[ia("0x1d")](u)}),{priority:ia("0x10")}),o.on("insertColumns",((e,n)=>{const[r,i={}]=n;if(!s)return;const x=i.at||0,a=i.columns||1;s[ia("0x44")]=new Array(a).fill(x)[ia("0x8d")](((t,e)=>t+e));for(const{cell:e}of o[ia("0x92")](r,{startColumn:x,endColumn:x+a-1}))s.columnInsertionRanges.push(t[ia("0x1b")][ia("0xa")](e))}),{priority:ia("0x94")}),o.on(ia("0x93"),((e,n)=>{const[r,i={}]=n;if(!s)return;const x=i.at||0,a=i.rows||1;s[ia("0x54")]=new Array(a)[ia("0x5f")](x).map(((t,e)=>t+e));for(const{cell:e}of o[ia("0x92")](r,{startRow:x,endRow:x+a-1}))s.rowInsertionRanges.push(t[ia("0x1b")].createRangeOn(e))}),{priority:"low"}),n[ia("0x7c")].registerDescriptionCallback((e=>{if(e[ia("0x71")]&&e[ia("0x71")][ia("0x30")](ia("0xb")))return e.previous?{}:{type:ia("0x6c"),content:Qo(t[ia("0x51")],ia("0x40"))}}));const x=()=>!1;for(const t of[ia("0xb"),ia("0x2a"),ia("0x1a"),"tablePasteCell"])n[ia("0x1f")][ia("0x23")]("insertion",t,ia("0x11"),x),n[ia("0x1f")][ia("0x23")](ia("0x64"),t,ia("0x11"),x),n[ia("0x1f")][ia("0x23")]("formatBlock",t,ia("0x11"),x);n[ia("0x1f")][ia("0x23")](ia("0x3d"),ia("0x27"),ia("0x50"),x),n[ia("0x1f")][ia("0x23")](ia("0x3d"),ia("0x27"),ia("0x4f"),((e,n,o)=>{const r=e.map((t=>t[ia("0x98")]())).filter((t=>t)),i=new Map(r[ia("0x8d")]((t=>[t,null])));if(s)for(const{element:t,attributes:e}of s[ia("0x9a")])e&&i.set(t,e);else if(o&&o.markerAttributes)for(const[e,n]of Object[ia("0x4c")](o.markerAttributes)){const o=t[ia("0x1b")][ia("0x78")][ia("0x66")](e),r=o?o[ia("0x16")]()[ia("0x98")]():null;r&&i[ia("0x85")](r,n)}t[ia("0x1b")][ia("0x18")]((t=>{for(const[e,n]of i)t.setAttributes({...xa,...n},e)}))}));const a=(e,o)=>{n[ia("0x1f")][ia("0x23")](e,ia("0xb"),o,((r,i,s)=>{t.model[ia("0x18")]((t=>{const x=[];for(const t of r){const e=t[ia("0x82")][ia("0x59")];e.is(ia("0x1c"),ia("0x68"))&&x[ia("0x1d")](e)}n[ia("0x1f")][ia("0x6a")](e,null,o)(r,i,s);for(const e of x)ia("0x5b")!=e[ia("0x1e")][ia("0x4a")]&&t[ia("0x39")](e)}))}))};a("insertion","accept"),a(ia("0x6c"),ia("0x50")),a(ia("0x64"),ia("0x4f")),a(ia("0x64"),ia("0x50")),n[ia("0x1f")].registerCustomCallback("insertion","tablePasteRow",ia("0x50"),(t=>{const e=t[ia("0x8d")]((t=>t[ia("0x98")]())),n=e[0][ia("0x8e")](ia("0x72")),{minRow:i,maxRow:s}=r[ia("0x9d")](e);o.removeRows(n,{at:i,rows:s-i+1})})),n[ia("0x1f")].registerCustomCallback("insertion",ia("0x2a"),"discard",(t=>{const e=t[ia("0x8d")]((t=>t[ia("0x98")]())),n=e[0][ia("0x8e")](ia("0x72")),{minColumn:i,maxColumn:s}=r._getCoordsForCells(e);o[ia("0x2c")](n,{at:i,columns:s-i+1})}));const c=(t,e)=>{if(!e[ia("0x71")]||!e[ia("0x71")].startsWith(ia("0xb")))return;const o=e[ia("0x6f")].tablePasteChainId,r=n[ia("0x77")]()[ia("0xc")]((t=>t[ia("0x80")]&&t[ia("0x6f")]&&t[ia("0x6f")][ia("0x84")]==o));r[ia("0x34")]&&e[ia("0x41")]()[ia("0x34")]!=r[ia("0x34")]&&r.reduce(((t,e)=>(t.next=e,e[ia("0x97")]=t,e)))};function l(t,e=!0){const{id:o}=n._splitMarkerName(t.markerName),r=[ia("0x6"),ia("0x7a")],i=n[ia("0x67")][ia("0x38")](t[ia("0x4b")]);return i&&r[ia("0x1d")](ia("0x2")),{classes:r,attributes:{"data-suggestion":o},priority:i&&e?3010:3e3}}n.on(ia("0x65"),c,{priority:"high"}),n.on("suggestionUnloaded",c,{priority:ia("0x10")}),t[ia("0x1b")][ia("0x79")].registerPostFixer((()=>{let e=!1;const o=Array[ia("0x69")](t.model[ia("0x79")][ia("0x96")][ia("0x8f")]());for(const{name:r,data:i}of o){const{group:o,type:s,id:x}=n[ia("0x4e")](r);if(ia("0x3c")!=o||ia("0x64")!=s||i[ia("0x3b")])continue;if(!n.hasSuggestion(x))continue;const a=n[ia("0x45")](x).getRanges(),c=t[ia("0x28")][ia("0x66")](ia("0x33")).me;for(const t of n.getSuggestions())if(t[ia("0x80")]&&t[ia("0x8c")]==c&&ia("0x3d")==t[ia("0x4")]&&"tablePasteCell"==t.subType&&t.getRanges()[ia("0x13")]((t=>a[ia("0x26")]((e=>e[ia("0x2b")](t,!0))))))for(const n of t[ia("0x41")]())n[ia("0x80")]&&(n[ia("0x50")](),e=!0)}return e})),t[ia("0x1b")].document[ia("0x46")]((e=>{const o=t[ia("0x9c")][ia("0x66")](ia("0x6d"));if(!o||!o[ia("0x73")].has(e.batch))return!1;let r=!1;const i=t[ia("0x28")][ia("0x66")](ia("0x33")).me,s=t[ia("0x1b")].document[ia("0x96")][ia("0x7")](),x=Array[ia("0x69")](t[ia("0x1b")][ia("0x79")].differ.getChangedMarkers())[ia("0xc")]((({name:t,data:e})=>{const{group:o,subType:r,authorId:s}=n[ia("0x4e")](t);return ia("0x3c")==o&&ia("0xb")==r&&s==i.id&&!e[ia("0x3b")]}));for(const t of s){if(ia("0x91")!=t.type||"tableCellSuggestion"!=t[ia("0x81")]||1!=t.length)continue;const n=e.createRange(t[ia("0x89")],t.position[ia("0x9")](1));if(!x[ia("0x62")]((({data:t})=>t[ia("0x3a")][ia("0x90")](n))))for(const{name:t,data:o}of x)if(n[ia("0x2b")](o[ia("0x3a")])){e[ia("0x55")](t,{range:n}),r=!0;break}}return r})),t[ia("0x1b")][ia("0x79")][ia("0x46")]((e=>{let o=!1;const r=t[ia("0x28")].get(ia("0x33")).me,i=n[ia("0x77")]()[ia("0xc")]((t=>t[ia("0x80")]&&t[ia("0x8c")]==r)),s=new Set,x=new Set;for(const t of i)if(ia("0xb")==t.subType)for(const e of t[ia("0x49")]()){const n=e[ia("0x16")]()[ia("0x98")]();if(n)if(n.is(ia("0x1c"),"tableCellSuggestion")&&ca(n)){t[ia("0x5a")](e[ia("0x81")]),s.add(n),o=!0;const r=n.nextSibling,i=n.previousSibling,a=r&&r.is(ia("0x1c"),ia("0x68")),c=i&&i.is(ia("0x1c"),ia("0x68"));a&&!s.has(r)&&x[ia("0x5c")](r),c&&!s[ia("0x60")](i)&&x[ia("0x5c")](i)}else n.is(ia("0x1c"),ia("0x8b"))&&n[ia("0x37")]&&(t[ia("0x5a")](e[ia("0x81")]),o=!0)}else if(ia("0x27")==t[ia("0x71")]){if(!t[ia("0x6f")]||!t.attributes[ia("0x84")])continue;const e=t[ia("0x6f")][ia("0x63")];if(e&&Object.keys(e)[ia("0x34")])continue;const n=t.attributes[ia("0x84")];let r=!0,s=!0;for(const e of i)if(e[ia("0x71")]&&e[ia("0x71")][ia("0x30")](ia("0xb"))){if(!e[ia("0x6f")].tablePasteChainId){s=!1;break}if(e.id!=t.id&&e.attributes[ia("0x84")]==n){r=!1;break}}s&&r&&(t[ia("0x19")](),o=!0)}for(const t of s)e[ia("0x3f")](t);for(const t of x)e[ia("0x39")](t);return o})),t.conversion.for(ia("0x17")).markerToHighlight({model:ia("0x32"),view:(t,e)=>l(t),converterPriority:ia("0x10")}),t[ia("0xe")][ia("0x2e")](ia("0x88"))[ia("0x29")]({model:ia("0x32"),view:(t,e)=>e[ia("0x12")][ia("0x36")]?l(t,!1):null,converterPriority:ia("0x10")});const u=t[ia("0x24")][ia("0x35")];this[ia("0x70")](u[ia("0x79")],ia("0x87"),((t,e)=>{const n=[];for(const t of u[ia("0x42")](e[ia("0x83")]).getItems())t.is(ia("0x1c"),"suggestion-td")&&n[ia("0x1d")](t);u.change((t=>{for(const e of n)t.move(t.createRangeIn(e),t.createPositionBefore(e)),t[ia("0x3f")](e)}))}))}}function ca(t){if(t[ia("0x37")])return!0;const e=t[ia("0x7d")](0);return e.is(ia("0x1c"),ia("0x8b"))&&e[ia("0x37")]}function la(t,e={},n){for(const{isAnchor:o,cellHeight:r,cellWidth:i}of n[ia("0x92")](t,{includeAllSlots:!0,...e}))if(!o||1!=r||1!=i)return!1;return!0}const ua=["getSelectedElement","document","getAttribute","format","getColumnGroupElement","Users","_suggestionFactory","plugins","get","resizeTable","columnWidths","table","model","getSuggestionCallback","afterInit","registerCustomCallback","formatGroupId","resizeTableWidth","TrackChangesEditing","registerDescriptionCallback","discard","change","handleResizeTableWidthCommand","tableWidth","getSuggestions","markBlockFormat","getTableColumnsWidths","TableColumnResizeEditing","data","formatBlock","type","subType","accept","editor","author","bind","_descriptionFactory","has"];var da,ga;da=ua,ga=324,function(t){for(;--t;)da.push(da.shift())}(++ga);const fa=function(t,e){return ua[t-=0]};class ma extends t.Plugin{[fa("0x20")](){if(!this[fa("0xd")][fa("0x19")][fa("0x11")](fa("0x7")))return;const t=this.editor.plugins[fa("0x1a")](fa("0x24"));t.enableCommand(fa("0x23"),this[fa("0x2")][fa("0xf")](this)),t[fa("0x18")].registerCustomCallback(fa("0x9"),"resizeTable",fa("0xc"),t[fa("0x18")][fa("0x1f")](fa("0x9"),null,fa("0x0"))),t[fa("0x18")][fa("0x21")](fa("0x9"),fa("0x1b"),fa("0x0"),t[fa("0x18")][fa("0x1f")]("formatBlock",null,"accept")),t[fa("0x10")][fa("0x25")](this.handleSuggestionDescription[fa("0xf")](this))}[fa("0x2")](t,e){const n=this.editor[fa("0x19")].get("TrackChangesEditing"),o=this[fa("0xd")][fa("0x19")][fa("0x1a")](fa("0x7")),r=e[fa("0x1d")]||this[fa("0xd")][fa("0x1e")][fa("0x13")].selection[fa("0x12")]();this[fa("0xd")][fa("0x1e")][fa("0x1")]((()=>{const i=o[fa("0x16")](r);let s=i?o[fa("0x6")](i):null,x=r[fa("0x14")]("tableWidth")||null;const a=e[fa("0x3")]||x,c=e[fa("0x1c")]||s,l=this[fa("0xd")][fa("0x19")][fa("0x1a")](fa("0x17")).me;for(const t of n[fa("0x4")]()){const e=t.getContainedElement();if(fa("0x1b")===t[fa("0xb")]&&e===r){t[fa("0xe")]!==l&&t.discard();const e=t[fa("0x8")].commandParams;x=e[0].tableWidth,s=e[0][fa("0x1c")];break}}t({table:r,tableWidth:a,columnWidths:c}),n[fa("0x5")](r,{commandName:fa("0x23"),commandParams:[{tableWidth:x,columnWidths:s}],formatGroupId:fa("0x1b")},[],fa("0x1b"))}))}handleSuggestionDescription(t){if(fa("0x9")!=t[fa("0xa")]&&"formatInline"!=t[fa("0xa")])return;const{data:e}=t;if(e&&"resizeTable"===e[fa("0x22")]){const t="*Format:* resize table";return{type:fa("0x15"),content:Qo(this[fa("0xd")].locale,t)}}}}const ha=["enableCommand","TrackChangesEditing","Template","get","afterInit","has","plugins","insertTemplate","editor"];var ba,pa;ba=ha,pa=452,function(t){for(;--t;)ba.push(ba.shift())}(++pa);const Ea=function(t,e){return ha[t-=0]};class _a extends t.Plugin{[Ea("0x2")](){const t=this[Ea("0x6")];t.plugins[Ea("0x3")](Ea("0x0"))&&t[Ea("0x4")][Ea("0x1")](Ea("0x8"))[Ea("0x7")](Ea("0x5"))}}const Ta=["editor","commands","_descriptionFactory","afterInit","plugins","tableOfContents","insertTableOfContents","TrackChangesEditing","get"];var ya,Ca;ya=Ta,Ca=249,function(t){for(;--t;)ya.push(ya.shift())}(++Ca);const Aa=function(t,e){return Ta[t-=0]};class ka extends t.Plugin{[Aa("0x6")](){const t=this[Aa("0x3")];if(!t[Aa("0x4")].get(Aa("0x0")))return;t[Aa("0x7")].get("TrackChangesEditing").enableCommand(Aa("0x0"));const e=t[Aa("0x7")][Aa("0x2")](Aa("0x1")),n=t.locale;e[Aa("0x5")].registerElementLabel(Aa("0x8"),(t=>Qo(n,"ELEMENT_TABLE_OF_CONTENTS",t)))}}const Ia=["plugins","start","newRange","_splitMarkerName","getChangedMarkers","editor","_descriptionFactory","end","getNearestSelectionRange","get","isEqual","updateMarker","removeMarker","model","has","createRange","suggestion","isTouching","registerElementLabel","Title","document","locale","ELEMENT_TITLE","differ","schema"];var Ra,Sa;Ra=Ia,Sa=468,function(t){for(;--t;)Ra.push(Ra.shift())}(++Sa);const va=function(t,e){return Ia[t-=0]};class Na extends t.Plugin{afterInit(){const t=this[va("0xc")];if(!t[va("0x7")][va("0x15")](va("0x1")))return;const e=t[va("0x7")][va("0x10")]("TrackChangesEditing");e[va("0xd")][va("0x0")]("title-content",(()=>Qo(t[va("0x3")],va("0x4")))),t[va("0x14")][va("0x2")].registerPostFixer((n=>{let o=!1;const r=Array.from(t[va("0x14")].document[va("0x5")][va("0xb")]());for(const{name:i,data:s}of r){const{group:r}=e[va("0xa")](i);if(va("0x17")!==r||!s[va("0x9")])continue;const x=s.newRange,a=x.end.nodeBefore;if(!a||!a.is("element","title-content"))continue;if(!x[va("0x8")][va("0x18")](x[va("0xe")]))continue;const c=t.model[va("0x6")][va("0xf")](x[va("0xe")],"forward");if(c&&c.isCollapsed){const t=n[va("0x16")](x.start,c.start);t[va("0x11")](x)||(n[va("0x12")](i,{range:t}),o=!0)}o||(n[va("0x13")](i),o=!0)}return o}))}}const La=["UndoEditing","redo","plugins","get","TrackChangesEditing","enableCommand","has"];var Ma,wa;Ma=La,wa=311,function(t){for(;--t;)Ma.push(Ma.shift())}(++wa);const Oa=function(t,e){return La[t-=0]};class Fa extends t.Plugin{afterInit(){const t=this.editor,e=t[Oa("0x6")][Oa("0x0")](Oa("0x1"));t[Oa("0x6")][Oa("0x3")](Oa("0x4"))&&(e[Oa("0x2")]("undo"),e[Oa("0x2")](Oa("0x5")))}}const Da=["requires","TableCaptionEditing","afterInit","toggleTableCaption","get","TrackChangesEditing","editor","has","plugins"];var Ba,Pa;Ba=Da,Pa=169,function(t){for(;--t;)Ba.push(Ba.shift())}(++Pa);const Ua=function(t,e){return Da[t-=0]};class ja extends t.Plugin{static get[Ua("0x2")](){return[zx]}[Ua("0x4")](){const t=this[Ua("0x8")];t[Ua("0x1")][Ua("0x0")](Ua("0x3"))&&t[Ua("0x1")][Ua("0x6")](Ua("0x7")).enableCommand(Ua("0x5"))}}const Ga=["tableCellBorderWidth","markBlockFormat","handleDiscardAction","tableProperties","has","model","selection","plugins","tableBorderColor","table","discard","start","tableCellBackgroundColor","nodeAfter","getContainedElement","removeAttribute","TableUtils","tableBorderWidth","data","setAttribute","getFirstPosition","tableBorderStyle","get","getAttribute","afterInit","registerDescriptionCallback","enableCommand","tableCellHorizontalAlignment","editor","tableCellProperties","tableCellHeight","locale","*Format:* change table properties","batch","document","_suggestionFactory","commandParams","*Format:* change table cell properties","findAncestor","_getSuggestion","handleSuggestionDescription","enqueueChange","format","join","tableCellWidth","_handlePropertyChange","accept","_descriptionFactory","getSuggestionCallback","tableHeight","formatBlock","TablePropertiesEditing","subType","tableCellBorderStyle","tableAlignment","TrackChangesEditing","registerCustomCallback","tableCellVerticalAlignment","TrackChangesTableProperties"];var Va,Ha;Va=Ga,Ha=244,function(t){for(;--t;)Va.push(Va.shift())}(++Ha);const za=function(t,e){return Ga[t-=0]};class Wa extends t.Plugin{constructor(t){super(t),this.tableProperties=[za("0x0"),za("0xd"),za("0x9"),za("0x2e"),"tableWidth",za("0x29"),"tableBackgroundColor"],this[za("0x15")]=["tableCellBorderColor",za("0x2d"),za("0x33"),"tableCellPadding",za("0x24"),za("0x16"),za("0x4"),za("0x13"),za("0x31")]}static get pluginName(){return za("0x32")}[za("0x10")](){const t=this.editor[za("0x3a")][za("0xe")](za("0x2f"));if(this[za("0x14")].plugins[za("0x37")](za("0x2b"))){for(const e of this[za("0x36")])t[za("0x12")](e,((t,n)=>{const o=this.editor[za("0x38")][za("0x1a")][za("0x39")][za("0xc")]()[za("0x1e")](za("0x1"));this[za("0x25")](e,[o],this[za("0x36")],za("0x36"),t,n)}));t[za("0x1b")][za("0x30")](za("0x2a"),za("0x36"),za("0x26"),t[za("0x1b")][za("0x28")]("formatBlock",null,za("0x2"))),t._suggestionFactory.registerCustomCallback("formatBlock",za("0x36"),za("0x2"),((t,e)=>this.handleDiscardAction(this.tableProperties,t,e))),t._suggestionFactory[za("0x30")](za("0x2a"),"tableProperties","join",(()=>!1))}if(this.editor[za("0x3a")][za("0x37")]("TableCellPropertiesEditing")){for(const e of this[za("0x15")])t[za("0x12")](e,((t,n)=>{const o=this[za("0x14")][za("0x3a")][za("0xe")](za("0x8")).getSelectionAffectedTableCells(this.editor[za("0x38")][za("0x1a")].selection);this._handlePropertyChange(e,o,this[za("0x15")],za("0x15"),t,n)}));t[za("0x1b")][za("0x30")](za("0x2a"),za("0x15"),za("0x26"),t[za("0x1b")][za("0x28")](za("0x2a"),null,za("0x2"))),t[za("0x1b")].registerCustomCallback("formatBlock",za("0x15"),"discard",((t,e)=>this.handleDiscardAction(this[za("0x15")],t,e))),t[za("0x1b")][za("0x30")](za("0x2a"),za("0x15"),za("0x23"),(()=>!1))}t[za("0x27")][za("0x11")]((t=>this[za("0x20")](t)))}[za("0x25")](t,e,n,o,r,i){const s=this[za("0x14")].plugins[za("0xe")](za("0x2f"));this.editor[za("0x38")][za("0x21")](i[za("0x19")],(()=>{for(const t of e)if(this[za("0x1f")](t,o))r(i);else{const e={};for(const o of n){const n=t[za("0xf")](o);void 0!==n&&(e[o]=n)}r(i),s[za("0x34")](t,{commandParams:[e]},[],o)}}))}[za("0x35")](t,e,n){const o=e[0][za("0x3")][za("0x5")],r=n[za("0x1c")][0];this.editor[za("0x38")].change((e=>{for(const n of t)void 0!==r[n]?e[za("0xb")](n,r[n],o):e[za("0x7")](n,o)}))}[za("0x20")](t){if(t[za("0xa")])switch(t[za("0x2c")]){case"tableProperties":return{type:"format",content:Qo(this.editor[za("0x17")],za("0x18"))};case za("0x15"):return{type:za("0x22"),content:Qo(this[za("0x14")].locale,za("0x1d"))}}}_getSuggestion(t,e){const n=this[za("0x14")][za("0x3a")][za("0xe")](za("0x2f"));for(const o of n.getSuggestions({skipNotAttached:!0})){const n=o[za("0x6")]();if(o[za("0x2c")]===e&&n===t)return o}return null}}var Ka=Function.prototype,qa=Object.prototype,$a=Ka.toString,Xa=qa.hasOwnProperty,Za=$a.call(Object);const Ya=function(t){if(!xe(t)||"[object Object]"!=gt(t))return!1;var e=xn(t);if(null===e)return!0;var n=Xa.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&$a.call(n)==Za};const Ja=function(t){return Ya(t)?void 0:t};var Qa=rt?rt.isConcatSpreadable:void 0;const tc=function(t){return ge(t)||de(t)||!!(Qa&&t&&t[Qa])};const ec=function t(e,n,o,r,i){var s=-1,x=e.length;for(o||(o=tc),i||(i=[]);++s<x;){var a=e[s];n>0&&o(a)?n>1?t(a,n-1,o,r,i):sn(i,a):r||(i[i.length]=a)}return i};const nc=function(t){return(null==t?0:t.length)?ec(t,1):[]};const oc=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)};var rc=Math.max;const ic=function(t,e,n){return e=rc(void 0===e?t.length-1:e,0),function(){for(var o=arguments,r=-1,i=rc(o.length-e,0),s=Array(i);++r<i;)s[r]=o[e+r];r=-1;for(var x=Array(e+1);++r<e;)x[r]=o[r];return x[e]=n(s),oc(t,this,x)}};const sc=function(t){return function(){return t}};const xc=ee?function(t,e){return ee(t,"toString",{configurable:!0,enumerable:!1,value:sc(e),writable:!0})}:function(t){return t};var ac=Date.now;const cc=function(t){var e=0,n=0;return function(){var o=ac(),r=16-(o-n);if(n=o,r>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(xc);const lc=function(t){return cc(ic(t,void 0,nc),t+"")}((function(t,e){var n={};if(null==t)return n;var o=!1;e=uo(e,(function(e){return e=bo(e,t),o||(o=e.length>1),e})),ie(t,dn(t),n),o&&(n=to(n,7,Ja));for(var r=e.length;r--;)Ko(n,e[r]);return n})),uc=["normal","attributeOldValue","_suggestionFactory","createElement","after","formatBlock:discard","formatInline:join","updateSuggestion","clone","forward","getIntersection","start","removed","_inlineAttributeKeys","isBefore","lowest","fire","batch","containsPosition","return","oldValue","elementEnd","formatInline","ENTER","_saved","startsWith","rejected","_editor","getChangedMarkers","never","getSuggestion","locale","attributes","define","isBlock","_suggestions","every","addSuggestion","suggestionUnloaded","isInsideObject","root","substring","insertion:accept","update:suggestion","keys","PENDING_ACTION_SUGGESTION","setTo","notReady","mapper","isMultiRange","suggestionChanged","applyOperation","_processAttributeSuggestions","includes","for","markerToHighlight","get","warn","commandName","splitPosition","_adapter","item","addUser","_enabledCommands","markDeletion","acceptSelectedSuggestions","editing","_suggestionState","oldName","suggestion","formatInline:accept","addMarker:suggestion:attribute","elementToElement","accept","getSuggestions","deletion:discard","_removeSuggestion","markInsertion","formatGroupId","groupId","attribute:accept","dataReady","isLocal","getSuggestionCallback","containsRangeInObject","getRanges","sort","createPositionBefore","unbind","name","ready","getChanges","resolve","rename","insert","schema","change:data","getLastMatchingPosition","split","getDifference","some","_joinSuggestions","filter","createSelection","discardSuggestion","_registerDefaultCallbacks","_rangeIsInLocalUserInsertion","formatInline:discard","formatBlock","isOwn","deleteContent","markAttributeChange","_trackFormatChanges","addMarker:suggestion","add","discard","getItems","_splitMarkerName","previous","markerName","insertion:discard","marker-count","howMany","type","creator","getMarkers","addClass","createRange","getShiftedBy","isNextTo","registerCustomCallback","markMultiRangeDeletion","editingDowncast","newValue","getAncestors","commentThread","_mergeNestedSuggestions","dataDowncast","_registerBlockAttribute","moveTargetPosition","change:activeMarkers","_setSuggestionRange","addRange","isRemovable","consume","_isDataLoaded","_refreshAttributeSuggestionsChain","size","end","map","getFirstMarker","clear","length","isDocumentOperation","updateMarker","_registerInlineAttribute","getAllAdjacentSuggestions","track-changes-command-not-found","_refreshSuggestionsChain","createdAt","listenTo","getContainedElement","addHighlight","ck-suggestion-marker-formatInline","unbindElementFromMarkerName","value","_defaultCallbacks","stopListening","Creating a suggestion for attribute with too long attribute key. This may lead to errors. Change the attribute key to a value shorter than 37 characters.","high","from","getRange","ck-suggestion-marker","rethrowUnexpectedError","_model","FORMATTING","_findSuggestions","set","requires","formatBlock:","config","has","collaboration.channelId","deletion","attributeNewValue","getOperations","multi","track-changes-adapter-already-set","getWalker","newName","markerNameToElements","consumable","_addSuggestionMarker","markMultiRangeInsertion","options","_updateSuggestionData","formatInline:","position","createRangeIn","model","_reduceSuggestionAttributeRange","discardAllSuggestions","isLimit","fromRange","_createSuggestion","isUndo","deletion:","execute","_onDiscard","hasSuggestion","isInContent","$elementName","widget","subType","pop","addMarkerName","addComment","acceptSuggestion","_customCallbacks","isIntersecting","multipleBlocks","ariaLiveAnnouncer","data","_getAuthorFromId","conversion","newRange","CommentsRepository","_handleNewSuggestionMarker","nodeBefore","showSuggestionHighlights","isCollapsed","history","differ","pluginName","Users","selection","_descriptionFactory","_getExternalAuthor","acceptAllSuggestions","originalSuggestionId","isObject","attributeKey","meta","deletion:accept","plugins","attribute:","then","getNearestSelectionRange","isExternal","rootName","delete","PendingActions","isAtStart","_breakSuggestionMarker","unshift","@external","addMarker","getAttribute","_reduceExistingSuggestions","setSelection","targetPosition","attribute","editor","isIntersectingWithRange","remove","isSelectable","activeMarkers","head","author","commands","find","nodeAfter","suggestion:","assign","$marker","isAfter","_getMarkerAnnouncementText","range","_getSuggestionData","attribute:join","oldRange","buildSuggestion","detach","getFirstRange","parent","key","_isBlockAttribute","formatBlock:chain","default","removeClass","trackChanges.trackFormatChanges","skipNestingCheck","_checkSuggestionCorrectness","track-changes-suggestion-not-found","change","ck-suggestion-marker-formatBlock","fromCharCode","setAttribute","external:","_blockAttributeKeys","fetchCommentThread","_processAttributeChanges","isAtEnd","document","enqueueChange","substr","getUser","authoredAt","registerPostFixer","toViewElement","_addThreadToSuggestion","hasComments","trackChangesCommand","insertContent","ck-suggestion-marker--active","track-changes-enable-command-twice","$text","markers","forEach","removeMarker","documentSelection","createPositionAfter","writer","containsRange","hasCommentThread","trackChanges","before","_SUGGESTION_ANNOUNCEMENT","removeComment","enableCommand","upcast","isTouching","addAttribute","suggestion-type","$graveyard","getMultiRangeId","_joinWithAdjacentSuggestions","join","group","_isForcedDefaultExecutionBlock","removeMarkers","enableReadOnlyMode","_recordAttributeSuggestionsFromVersion","removeAttribute","addSuggestionData","element","_setSuggestionData","values","removeMarker:suggestion:attribute","adapter","markInlineFormat","_cutOutSuggestionMarker","formatBlock:join","catch","track-changes-user-not-found","insertion:","always","removeMarker:suggestion:formatBlock","deletion:chain","trackChanges.mergeNestedSuggestions","open","insertion","push","forceDefaultExecution","announce","getCustomProperty","createPositionAt","change:_saved","markerReady","TrackChangesEditing","isArray","track-changes-adapter-missing-getsuggestion","_commentsRepository","next","stop","isEqual","comments","chain","data-suggestion","splice"];var dc,gc;dc=uc,gc=179,function(t){for(;--t;)dc.push(dc.shift())}(++gc);const fc=function(t,e){return uc[t-=0]},mc=fc("0x20");class hc extends t.Plugin{static get[fc("0x17b")](){return["CommentsRepository",i.Users,t.PendingActions,cr,fr,_r,kr,Lr,Dr,Vr,ti,ii,li,hi,Ti,Ri,Mi,Pi,Hi,$i,Qi,rs,fs,cs,Es,As,vs,Os,Us,Ks,Ys,nx,xx,dx,px,Cx,Sx,Ox,Ux,zx,Zx,ea,ja,aa,ma,ka,Wa,_a,Na,Fa]}static get[fc("0x36")](){return fc("0xbe")}constructor(t){function e(t){return t[fc("0x15e")]((t=>String[fc("0x75")](t)))[fc("0x9e")]("")}super(t),this[fc("0xa3")]=null,this[fc("0x17a")](fc("0x57"),[]),this.on(fc("0x155"),((e,n,o,r)=>{this[fc("0x177")][fc("0x73")]((()=>{for(const e of[...r,...o])this._model[fc("0x8a")].has(e)&&t[fc("0x10b")].reconvertMarker(e)}))})),this[fc("0x39")]=new rr(this[fc("0x53")][fc("0x14")][fc("0x128")],this.editor[fc("0xe8")]),this._adapter=null,this[fc("0xcb")]=new bc(this[fc("0x53")]),this[fc("0xec")]=new Map,this[fc("0xc1")]=t.plugins[fc("0x101")]("CommentsRepository"),this[fc("0x108")]=new Set,this[fc("0x177")]=this[fc("0x53")][fc("0x14")],this[fc("0x10c")]=new WeakMap,this[fc("0xa0")]=!1,this[fc("0x78")]=new Set([fc("0x20")]),this[fc("0xd6")]=new Set,t.config[fc("0xea")]("trackChanges.trackFormatChanges","default"),this[fc("0x139")]=t[fc("0x1")][fc("0x101")](fc("0x6f")),t[fc("0x1")][fc("0xea")]("trackChanges.mergeNestedSuggestions",!0),this[fc("0x151")]=t[fc("0x1")][fc("0x101")](fc("0xb4")),this[fc("0x85")]=new d(t,this[fc("0x108")]),this._initAriaMarkerChangeAnnouncements(),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,50,52,53,54])}init(){const t=this[fc("0x53")],n=(t,e)=>{if(fc("0x52")!=t)return"ck-suggestion-marker-"+t;const n=e[fc("0x12b")]("|")[0];return this[fc("0x6b")](n)?"ck-suggestion-marker-formatBlock":fc("0x16c")};t[fc("0x2d")].for(fc("0x14d"))[fc("0x100")]({model:fc("0x10e"),view:t=>{const{id:e,type:o,subType:r}=this[fc("0x13e")](t[fc("0x140")]),i=[fc("0x175"),n(o,r)];let s=3e3;return this.activeMarkers[fc("0xfe")](t[fc("0x140")])&&(i[fc("0xb7")](fc("0x87")),s=3010),fc("0x4")==o&&(s+=5),{classes:i,attributes:{"data-suggestion":e},priority:s}}}),t[fc("0x2d")][fc("0xff")]("dataDowncast")[fc("0x13b")]((e=>{e.on(fc("0x13a"),((e,n,o)=>{if(!o[fc("0xf")][fc("0x32")])return;const r=n.item;if(!r)return;const i=o[fc("0xf9")].toViewElement(r);t.model.schema[fc("0x3d")](r)&&i&&!i[fc("0xba")](fc("0x21"))&&i.is("containerElement")&&(0,x.toWidget)(i,o[fc("0x8f")])}),{priority:fc("0x172")})})),t[fc("0x2d")].for(fc("0x152"))[fc("0x100")]({model:"suggestion",view:(t,e)=>{if(!e[fc("0xf")][fc("0x32")])return null;const{type:o,subType:r}=this[fc("0x13e")](t.markerName);return{classes:[fc("0x175"),n(o,r)],priority:3e3}}});const o=({showActiveMarkers:e=!0,isAttributeSuggestion:n=!1}={})=>(o,r,i)=>{if(!r.item)return;const{id:s}=this[fc("0x13e")](r.markerName);if(n){const t=Sc(this._suggestions[fc("0x101")](s));if(!this[fc("0x6b")](t))return}if(r[fc("0x106")].is(fc("0x38")))return void i[fc("0xc")][fc("0x159")](r.item,o[fc("0x122")]);const x=i[fc("0xf9")][fc("0x82")](r.item);if(r[fc("0x106")].is(fc("0xa6"))&&t[fc("0x14")][fc("0x128")][fc("0xeb")](r.item)&&!x[fc("0xba")](fc("0x16b"))){i.writer[fc("0x147")]([fc("0x175"),fc("0x74")],x),i[fc("0x8f")].setAttribute("data-suggestion",s,x),i.mapper.bindElementToMarker(x,r.markerName),e&&(this.activeMarkers.includes(r[fc("0x140")])?i[fc("0x8f")][fc("0x147")](fc("0x87"),x):i[fc("0x8f")][fc("0x6e")]("ck-suggestion-marker--active",x));for(const e of t.model[fc("0x13")](r[fc("0x106")])[fc("0x13d")]())i[fc("0xc")][fc("0x159")](e,o.name);i[fc("0xc")].consume(r[fc("0x106")],o[fc("0x122")])}};t.conversion[fc("0xff")](fc("0x152"))[fc("0x13b")]((t=>{t.on("addMarker:suggestion:formatBlock",((t,e,n)=>{n.options.showSuggestionHighlights&&o({showActiveMarkers:!1})(t,e,n)}),{priority:"highest"})})),t[fc("0x2d")].for(fc("0x152"))[fc("0x13b")]((t=>{t.on("addMarker:suggestion:attribute",((t,e,n)=>{n[fc("0xf")].showSuggestionHighlights&&o({showActiveMarkers:!1,isAttributeSuggestion:!0})(t,e,n)}),{priority:"highest"})})),t[fc("0x2d")][fc("0xff")]("dataDowncast").markerToData({model:fc("0x10e"),view:(t,e)=>e[fc("0xf")][fc("0x32")]?null:{group:"suggestion",name:t[fc("0x7e")](11)}}),t[fc("0x2d")][fc("0xff")](fc("0x97"))[fc("0x111")]({view:{name:fc("0x10e"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=fc("0x5d")+t[fc("0x4e")](fc("0x9a"))+":"+t[fc("0x4e")]("id");return t.getAttribute("marker-count")&&(n+=":"+t[fc("0x4e")](fc("0x142"))),e[fc("0xcc")](fc("0x5f"),{"data-name":n})}}),t[fc("0x2d")][fc("0xff")](fc("0x97")).dataToMarker({view:"suggestion"}),t[fc("0x2d")][fc("0xff")]("editingDowncast")[fc("0x13b")]((t=>{t.on("addMarker:suggestion:formatBlock",o(),{priority:fc("0x172")})})),t[fc("0x2d")].for("editingDowncast").add((t=>{t.on(fc("0x110"),o({isAttributeSuggestion:!0}),{priority:"high"})})),t.conversion.for(fc("0x14d"))[fc("0x13b")]((t=>{t.on(fc("0xb2"),((t,e,n)=>{const o=n[fc("0xf9")][fc("0xb")](e.markerName);if(o)for(const t of o)t[fc("0xba")](fc("0x16b"))||(n.writer[fc("0x6e")]([fc("0x175"),fc("0x74"),fc("0x87")],t),n[fc("0x8f")][fc("0xa4")](fc("0xc7"),t),n[fc("0xf9")][fc("0x16d")](t,e[fc("0x140")]))}),{priority:fc("0x172")})})),t[fc("0x2d")][fc("0xff")]("editingDowncast")[fc("0x13b")]((t=>{t.on(fc("0xa9"),((t,e,n)=>{const o=n[fc("0xf9")][fc("0xb")](e[fc("0x140")]);if(!o)return;const{id:r}=this[fc("0x13e")](e[fc("0x140")]),i=Sc(this._suggestions[fc("0x101")](r));if(this[fc("0x6b")](i))for(const t of o)t[fc("0xba")]("addHighlight")||(n[fc("0x8f")][fc("0x6e")]([fc("0x175"),fc("0x74"),"ck-suggestion-marker--active"],t),n.writer.removeAttribute(fc("0xc7"),t),n[fc("0xf9")][fc("0x16d")](t,e[fc("0x140")]))}),{priority:"high"})})),t.model.document[fc("0x81")]((e=>{let n=!1;const o=Array[fc("0x173")](t[fc("0x14")][fc("0x7c")].differ[fc("0xe5")]()),r=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,subType:l,id:u}=this._splitMarkerName(x);if(fc("0x10e")!==o)continue;const d=this[fc("0xec")].get(u);if(null!=a[fc("0x2e")]){"formatInline"==c&&(n=n||_c(a.newRange,x,e,t[fc("0x14")][fc("0x128")]));const o=fc("0x52")==c&&this._isBlockAttribute(l[fc("0x12b")]("|")[0]);if(a[fc("0x2e")][fc("0x33")]||fc("0x9b")==a[fc("0x2e")][fc("0xf1")][fc("0x46")]||"formatBlock"==c&&!yc(a.newRange)||o&&!yc(a[fc("0x2e")])||"deletion"==c&&(Ec(s=a[fc("0x2e")])||(i=s)[fc("0xd4")][fc("0x69")]==i.end[fc("0x31")]&&i[fc("0xd4")][fc("0x7b")]))e.removeMarker(x),n=!0;else{if(!d||!d[fc("0x1f")])continue;r[fc("0x13b")](d)}}}var i,s;return r[fc("0x15c")]>0&&(n=!!this[fc("0x9d")](r)||n),n})),t[fc("0x14")].document.registerPostFixer((e=>{let n=!1;for(const o of t[fc("0x14")][fc("0x7c")][fc("0x35")][fc("0x124")]())if(fc("0x127")==o[fc("0x144")])for(const o of this._suggestions[fc("0xa8")]()){if(o[fc("0xfa")]||!o[fc("0x1f")])continue;const r=fc("0x135")==o[fc("0x144")],i=Sc(o),s=i&&this._isBlockAttribute(i);if(!r&&!s)continue;const x=o[fc("0x68")]();if(x[fc("0xd4")][fc("0x69")]!=x[fc("0x15d")][fc("0x69")]&&!x[fc("0x15d")][fc("0x7b")]){const r=t[fc("0x14")][fc("0xbb")](x[fc("0xd4")][fc("0x5c")],fc("0x15d")),i=t.model[fc("0x148")](x[fc("0xd4")],r);e[fc("0x163")](o[fc("0x15f")](),{range:i}),n=!0}}return n})),t[fc("0x14")].document.registerPostFixer((t=>this[fc("0x7a")](t))),t[fc("0x14")][fc("0x7c")].registerPostFixer((t=>!t[fc("0xda")].isLocal&&this[fc("0xfd")](t))),t[fc("0x14")][fc("0x8a")].on(fc("0xf4"),((t,e,n)=>{if(null==n){const{id:t}=this[fc("0x13e")](e[fc("0x122")]),n=this[fc("0xec")][fc("0x101")](t);n&&n.addMarkerName(e[fc("0x122")])}})),t.model[fc("0x7c")].on(fc("0x129"),(()=>{const e=Array[fc("0x173")](t[fc("0x14")][fc("0x7c")].differ[fc("0xe5")]())[fc("0x12f")]((t=>fc("0x10e")===this._splitMarkerName(t[fc("0x122")])[fc("0x9f")]));if(0===e.length)return;e[fc("0x11f")](((t,e)=>{const n=t[fc("0x2b")].oldRange,o=e.data[fc("0x65")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[fc("0xd4")][fc("0xd7")](o[fc("0xd4")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:r}of e){const{id:e}=this[fc("0x13e")](t);if(null===r[fc("0x65")]){const e=this[fc("0x30")](t);o[fc("0x13b")](e)}else{const t=this[fc("0xec")][fc("0x101")](e);null!==r[fc("0x2e")]||t.isInContent?(n.add(t[fc("0x58")]),o[fc("0x13b")](t)):this._removeSuggestion(t)}}o[fc("0x15c")]>0&&this[fc("0x167")](o);for(const t of n)this[fc("0xd9")](fc("0xfb"),t)})),t[fc("0x14")].on(fc("0xfc"),((e,n)=>{const o=n[0];if(!this._suggestions[fc("0x15c")])return;if(!o[fc("0x162")])return;if(o.batch[fc("0x1a")]||!o.batch[fc("0x11b")])return;let r,i;switch(o[fc("0x144")]){case fc("0x127"):r=t[fc("0x14")][fc("0xbb")](o[fc("0x12")]),i=r[fc("0x149")](o.howMany);break;case fc("0x12b"):r=t.model[fc("0xbb")](o[fc("0x104")]),i=t.model[fc("0xbb")](o[fc("0x154")]);break;case"move":r=t[fc("0x14")].createPositionAt(o[fc("0x51")]),i=r.getShiftedBy(o[fc("0x143")]);break;default:return}const s=t[fc("0x14")].createRange(r,i);t.model[fc("0x73")]((()=>{for(const{suggestion:t,meta:e}of this[fc("0x179")](s)){if(t[fc("0xfa")])continue;if(fc("0xdf")==t[fc("0x144")])continue;const n=Sc(t);if(n&&this[fc("0x6b")](n)&&fc("0x12b")!=o[fc("0x144")])continue;const x=t[fc("0x2b")]&&t[fc("0x2b")].multipleBlocks;(fc("0x135")!=t[fc("0x144")]||fc("0x12b")==o.type&&!x)&&(e[fc("0x11d")]||fc("0xb6")==t.type&&e[fc("0x136")]||t[fc("0x68")]().containsRange(s)&&this._breakSuggestionMarker(t,r,i))}}))}),{priority:fc("0xd8")}),t[fc("0x14")].on(fc("0x137"),((e,n)=>{const o=n[0],r=n[1];if(r&&r.forceDefaultExecution)return;if(this[fc("0xa0")])return;if(!this.trackChangesCommand[fc("0x16e")])return;if(o[fc("0x33")])return;const i=t.model[fc("0x128")],{start:s,end:x}=o[fc("0x68")](),a=s.nodeAfter&&i[fc("0x17")](s.nodeAfter)?null:i[fc("0x44")](s,fc("0xd2")),c=x.nodeBefore&&i[fc("0x17")](x.nodeBefore)?null:i[fc("0x44")](x,"backward"),l=t[fc("0x14")][fc("0x148")](a?a[fc("0xd4")]:s,c?c[fc("0x15d")]:x);t[fc("0x14")][fc("0x73")]((e=>{this[fc("0x109")](l);const n=t[fc("0x14")][fc("0x128")][fc("0x44")](l[fc("0xd4")]);o.is(fc("0x8d"))?e[fc("0x50")](n):o[fc("0xf7")](n)})),e.stop()}),{priority:e.priorities[fc("0xc9")]+10}),t[fc("0x14")].on("insertContent",((e,n)=>{const o=n[n[fc("0x161")]-1];o&&o[fc("0xb8")]||this[fc("0xa0")]||this[fc("0x85")][fc("0x16e")]&&(t[fc("0x14")][fc("0x73")]((()=>{let o=t.model[fc("0x86")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[fc("0xdc")]=o[fc("0xd1")]();const r=o[fc("0x15d")][fc("0x31")],i=t[fc("0x14")].schema;r&&i.isBlock(r)&&!i.isObject(r)&&(o=t.model[fc("0x148")](o[fc("0xd4")],t.model[fc("0xbb")](r,"end"))),this[fc("0x116")](o)})),e[fc("0xc3")]())}),{priority:fc("0x172")}),this[fc("0x53")][fc("0x5a")][fc("0x13b")](fc("0x92"),this[fc("0x85")]),this[fc("0x96")](fc("0x92"));const r=new b(t,this[fc("0xec")]);t[fc("0x5a")][fc("0x13b")](fc("0x26"),r),this.enableCommand(fc("0x26"));const i=new y(t,this._suggestions);t[fc("0x5a")][fc("0x13b")]("discardSuggestion",i),this[fc("0x96")]("discardSuggestion"),t.commands.add(fc("0x3b"),new F(t,r,this[fc("0xec")])),this[fc("0x96")](fc("0x3b")),t.commands.add("discardAllSuggestions",new F(t,i,this[fc("0xec")])),this[fc("0x96")](fc("0x16")),t.commands[fc("0x13b")]("acceptSelectedSuggestions",new j(t,r,this[fc("0xec")])),this[fc("0x96")](fc("0x10a")),t[fc("0x5a")][fc("0x13b")]("discardSelectedSuggestions",new j(t,i,this[fc("0xec")])),this.enableCommand("discardSelectedSuggestions");const s=t[fc("0x41")][fc("0x101")](fc("0x2f"));this.listenTo(s,fc("0x25"),((t,{threadId:e})=>{const n=this[fc("0xec")][fc("0x101")](e);n&&n[fc("0x150")]&&1===n[fc("0x150")][fc("0x161")]&&this[fc("0x10")](e,{hasComments:!0})}),{priority:"low"}),this[fc("0x169")](s,fc("0x95"),((t,{threadId:e})=>{const n=this[fc("0xec")][fc("0x101")](e);n&&n[fc("0x150")]&&!n[fc("0x150")].length&&this[fc("0x10")](e,{hasComments:!1})}),{priority:"low"})}set[fc("0xaa")](t){if(this[fc("0x105")])throw new e.CKEditorError(fc("0x8"),this);this._adapter=t}get[fc("0xaa")](){return this[fc("0x105")]}[fc("0x113")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[fc("0xec")][fc("0xa8")]())t&&!e[fc("0x1f")]||n[fc("0xb7")](e);return e?n[fc("0x15e")]((t=>t.toJSON())):n}[fc("0xe7")](t){const n=this[fc("0xec")][fc("0x101")](t);if(!n)throw new e.CKEditorError(fc("0x72"),this);return n}[fc("0x1e")](t){return this[fc("0xec")].has(t)}addSuggestionData(t){const{authorId:e,id:n,attributes:o}=t,[r,i]=t[fc("0x144")][fc("0x12b")](":"),s=this[fc("0xec")].get(n)||this[fc("0x19")](r,i,n,e,o);if(this[fc("0x83")](s),this[fc("0x71")](s,r,i||null,e),s[fc("0x168")]=t[fc("0x168")],s[fc("0x15a")]=!0,o&&o[fc("0x4c")]){const t=o["@external"],e=this._getExternalAuthor(t.authorName);s[fc("0x80")]=t.createdAt,s[fc("0x59")]=e,s[fc("0x45")]=!0}else s[fc("0x80")]=t[fc("0x168")];switch(t[fc("0x2b")]&&(s[fc("0x2b")]=t[fc("0x2b")]),t[fc("0xe9")]&&(s[fc("0xe9")]=t[fc("0xe9")]),this[fc("0x105")]&&this[fc("0x105")][fc("0xee")]||(s[fc("0xe1")]=!0),this[fc("0x10c")][fc("0x101")](s)){case fc("0xf8"):this._suggestionState[fc("0x17a")](s,"dataReady");break;case fc("0xbd"):s.isInContent?(this._refreshSuggestionsChain(new Set([s])),this._joinWithAdjacentSuggestions(new Set([s])),this._suggestionState[fc("0x17a")](s,fc("0x123")),this[fc("0xd9")]("suggestionLoaded",s)):this._suggestionState[fc("0x17a")](s,fc("0xd5"))}return s}[fc("0x26")](t){this.forceDefaultExecution((()=>{this[fc("0x53")][fc("0x14")][fc("0x73")]((()=>{for(const e of t[fc("0x165")]())e[fc("0x112")]()}))}))}[fc("0x131")](t){this.forceDefaultExecution((()=>{this[fc("0x53")].model[fc("0x73")]((()=>{for(const e of t[fc("0x165")]())e[fc("0x13c")]()}))}))}enableCommand(t,n){const o=this.editor[fc("0x5a")][fc("0x101")](t);if(!o)throw new e.CKEditorError(fc("0x166"),this,{commandName:t});if(this[fc("0x108")][fc("0x2")](o))throw new e.CKEditorError(fc("0x88"),this,{commandName:t});this[fc("0x108")].add(o),n&&o.on(fc("0x1c"),((t,e)=>{this[fc("0x85")][fc("0x16e")]&&(this[fc("0xa0")]||(e[fc("0x161")]>0&&e[e[fc("0x161")]-1]&&e[e[fc("0x161")]-1][fc("0xb8")]?e[fc("0x23")]():(t[fc("0xdc")]=n(((...t)=>o[fc("0x1c")](...t,{forceDefaultExecution:!0})),...e),t.stop())))}),{priority:fc("0x172")})}[fc("0xb8")](t){let n,o;const r=this[fc("0xa0")];this[fc("0xa0")]=!0;try{n=t()}catch(t){o=t}return r||(this[fc("0xa0")]=!1),o&&e.CKEditorError[fc("0x176")](o,this),n}[fc("0x116")](t,n=null,o={}){if(t.isCollapsed)return null;const r=this.editor.plugins[fc("0x101")](fc("0x37")).me;for(const{suggestion:e,meta:r}of this._findSuggestions(t,fc("0xb6")))if(r.isOwn){if(!r[fc("0x14a")]){if(r.containsRangeInObject){if(!this[fc("0x151")]||!Ic(e,o))continue;return e}if(Ic(e,o))return e;this._breakSuggestionMarker(e,t[fc("0xd4")],t[fc("0x15d")]);break}if(n==e.subType&&Ic(e,o)){const n=e[fc("0x68")]();return n[fc("0xd4")].isEqual(t.end)?this[fc("0x156")](e,this[fc("0x177")][fc("0x148")](t.start,n[fc("0x15d")])):this[fc("0x156")](e,this[fc("0x177")][fc("0x148")](n[fc("0xd4")],t[fc("0x15d")])),e}}const i=(0,e.uid)(),s=r.id,x=n?fc("0xb0")+n:fc("0xb6"),a=this[fc("0xa7")]({id:i,type:x,createdAt:new Date,authorId:s,attributes:o});return this[fc("0xd")](x,i,s,t),a}[fc("0xe")](t,n=fc("0x7"),o={}){const r=this[fc("0x53")][fc("0x41")].get(fc("0x37")).me,i=this[fc("0xcb")][fc("0x11c")]("insertion",n,fc("0x9e"));for(const e of this[fc("0x113")]())if(e.author.id==r.id&&"insertion"==e[fc("0x144")]&&e[fc("0x22")]==n&&Ic(e,o)&&(i(e[fc("0x11e")](),t)||i(t,e[fc("0x11e")]()))){for(const n of t)e[fc("0x157")](n);return e}for(const{suggestion:e,meta:n}of this[fc("0x179")](t,fc("0xb6"))){if(!n.isOwn)continue;if(!this[fc("0x151")]&&n[fc("0x11d")])continue;if(!Ic(e,o))continue;let r=!0;for(const n of e.getRanges())for(const e of t)if(!n.containsRange(e)){r=!1;break}if(r)return e}const s=(0,e.uid)(),x=r.id,a=fc("0xb0")+n,c=this[fc("0xa7")]({id:s,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[fc("0xd")](a,s,x,e,Jo[fc("0x9c")]());return c}[fc("0xab")](t,n,o=null,r={}){if(o=o||Tc(n),t.isCollapsed)return null;if(fc("0xe6")===this[fc("0x139")]){const e=this[fc("0xcb")][fc("0x11c")](fc("0xdf"),o,fc("0x112"));return this[fc("0xb8")]((()=>e([t],n,r))),null}const i=this[fc("0x53")][fc("0x41")].get(fc("0x37")).me,s=[];if(fc("0xb1")!==this._trackFormatChanges)for(const{suggestion:e,meta:n}of this[fc("0x179")](t,fc("0xb6")))n[fc("0x136")]&&!n[fc("0xf0")]&&s.push(...e.getRanges());const x=function(t,e){const n=[];for(const o of e){const e=t.getIntersection(o);e&&n[fc("0xb7")](e)}return n}(t,s),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[fc("0x161")];){const o=n[e][fc("0x12c")](t);n[fc("0xc8")](e,1,...o),e+=o[fc("0x161")]}}return n}(t,s);x[fc("0x161")]&&this[fc("0x177")].change((()=>{for(const t of x){const e=this[fc("0xcb")][fc("0x11c")](fc("0xdf"),o,fc("0x112"));this[fc("0xb8")]((()=>e([t],n,r)))}}));for(const t of a){let s=null,x=t.start,a=t.end;for(const{suggestion:e,meta:n}of this[fc("0x179")](t,fc("0xdf"))){if(!n.isOwn)continue;if(e[fc("0x22")]!=o)continue;if(!Ic(e,r))continue;const i=e[fc("0x68")]();if(i[fc("0x90")](t,!0))return null;x=x[fc("0xd7")](i[fc("0xd4")])?x:i[fc("0xd4")],a=a[fc("0x60")](i[fc("0x15d")])?a:i.end,s?i[fc("0xd4")][fc("0xd7")](s.getFirstRange().start)?(s[fc("0xa1")](),s=e):e[fc("0xa1")]():s=e}const c=this[fc("0x177")][fc("0x148")](x,a);if(s)this[fc("0x156")](s,c);else{const t=(0,e.uid)(),s=i.id;this[fc("0xa7")]({id:t,type:fc("0x11")+o,data:n,createdAt:new Date,authorId:s,attributes:r}),this[fc("0xd")](fc("0x11")+o,t,s,c)}}return null}markBlockFormat(t,n,o=[],r=null,i={}){n[fc("0x117")]||(n.formatGroupId=n[fc("0x103")]),n[fc("0x29")]=t.is(fc("0x62")),r=r||Tc(n);const s=o[fc("0x15e")]((t=>Cc(t,this._model))),x=t.is(fc("0x62"))?t:Cc(t,this._model);if(fc("0xe6")===this[fc("0x139")]){const t=this[fc("0xcb")].getSuggestionCallback(fc("0x135"),r,fc("0x112"));return this.forceDefaultExecution((()=>t([x],n,i))),null}s[fc("0xb7")](x);let a=!0;for(const t of s)if(!this._rangeIsInLocalUserInsertion(t)){a=!1;break}if(a&&fc("0xb1")!==this[fc("0x139")]){const t=this[fc("0xcb")][fc("0x11c")](fc("0x135"),r,fc("0x112"));return this[fc("0xb8")]((()=>t([x],n,i))),null}let c=null,l=x[fc("0xd4")],u=x[fc("0x15d")];for(const{suggestion:t,meta:e}of this._findSuggestions(x,"formatBlock")){if(!e[fc("0x136")])continue;if(e[fc("0x14a")]||e[fc("0x11d")]||e[fc("0xf0")])continue;if(t[fc("0x2b")][fc("0x117")]!=n.formatGroupId)continue;if(!Ic(t,i))continue;const o=t.getFirstRange();if(t[fc("0x22")]==r){if(o.containsRange(x,!0))return null;l=l.isBefore(o[fc("0xd4")])?l:o[fc("0xd4")],u=u[fc("0x60")](o.end)?u:o.end,c?o[fc("0xd4")][fc("0xd7")](c[fc("0x68")]()[fc("0xd4")])?(c[fc("0xa1")](),c=t):t[fc("0xa1")]():c=t}else{const e=x[fc("0xd3")](o);this[fc("0xac")](t,e)}}const d=this[fc("0x53")][fc("0x41")].get(fc("0x37")).me,g=(0,e.uid)(),f=d.id;if(c)return this[fc("0x156")](c,this[fc("0x177")][fc("0x148")](l,u)),c;{const t=this._setSuggestionData({id:g,type:fc("0x0")+r,data:n,createdAt:new Date,authorId:f,attributes:i});return this[fc("0xd")](fc("0x0")+r,g,f,this[fc("0x177")][fc("0x148")](l,u)),t}}markMultiRangeBlockFormat(t,n,o=[],r=null,i={}){n[fc("0x117")]||(n.formatGroupId=n[fc("0x103")]);const s=t[0];n[fc("0x29")]=s.is(fc("0x62")),r=r||Tc(n);const x=o[fc("0x15e")]((t=>Cc(t,this[fc("0x177")]))),a=s.is(fc("0x62"))?t:t[fc("0x15e")]((t=>Cc(t,this[fc("0x177")])));if(fc("0xe6")===this._trackFormatChanges){const t=this[fc("0xcb")][fc("0x11c")]("formatBlock",r,fc("0x112"));return this[fc("0xb8")]((()=>t(a,n,i))),null}x.push(...a);let c=!0;for(const t of x)if(!this[fc("0x133")](t)){c=!1;break}if(c&&"always"!==this[fc("0x139")]){const t=this[fc("0xcb")][fc("0x11c")]("formatBlock",r,fc("0x112"));return this[fc("0xb8")]((()=>t(a,n,i))),null}const l=this[fc("0x53")][fc("0x41")][fc("0x101")](fc("0x37")).me;for(const t of this[fc("0x113")]()){if(t[fc("0x59")].id!=l.id)continue;if(fc("0x135")!=t[fc("0x144")]||t[fc("0x2b")][fc("0x117")]!=n[fc("0x117")])continue;if(!Ic(t,i))continue;const e=t.subType==r;for(let n=0;n<a.length;n++){const o=a[n];for(const r of t[fc("0x146")]()){const i=r[fc("0x174")]();if(o[fc("0xc4")](i)){e?(a[fc("0xc8")](n,1),n--):t[fc("0x8c")](r[fc("0x122")]);break}}}}if(0==a[fc("0x161")])return null;const u=this[fc("0xcb")][fc("0x11c")]("formatBlock",r,fc("0x9e"));for(const t of this[fc("0x113")]())if(t.author.id==l.id&&fc("0x135")==t.type&&t[fc("0x2b")][fc("0x117")]==n.formatGroupId&&t[fc("0x22")]==r&&Ic(t,i)&&(u(t.getRanges(),a)||u(a,t[fc("0x11e")]()))){for(const e of a)t[fc("0x157")](e);return t}const d=(0,e.uid)(),g=l.id,f=fc("0x0")+r,m=this._setSuggestionData({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:i});for(const t of a)this._addSuggestionMarker(f,d,g,t,Jo.getMultiRangeId());return m}markDeletion(t,n=null,o={}){if(t[fc("0x33")])return null;const r=this.editor[fc("0x41")][fc("0x101")]("Users").me,i=new s.LiveRange(t[fc("0xd4")],t.end);for(const{suggestion:t,meta:e}of this._findSuggestions(i,fc("0xb6")))if(e[fc("0x136")]&&!e[fc("0x14a")])if(t.isMultiRange){const e=t[fc("0x11e")]()[fc("0x12f")]((t=>"$graveyard"!=t[fc("0xf1")].rootName));if(e[fc("0xed")]((t=>i.containsRange(t,!0)))&&t[fc("0x13c")](),e[fc("0x12d")]((t=>t.containsRange(i,!0)))){const t=this[fc("0xcb")][fc("0x11c")](fc("0x4"),n,fc("0x112"));return this.forceDefaultExecution((()=>t([i],null,o))),null}}else{const e=i[fc("0xd3")](t[fc("0x68")]());null!==e&&t[fc("0x1d")]([e],null,o)}if(i.detach(),i[fc("0x33")]||fc("0x9b")==i.root[fc("0x46")])return null;let x=null,a=i[fc("0xd4")],c=i[fc("0x15d")];const l=this[fc("0x179")](i,fc("0x4"));for(const{suggestion:t,meta:e}of l){const n=this._model[fc("0x148")](a,c);if(e[fc("0x136")]&&(this[fc("0x151")]||!e.containsRangeInObject&&!e[fc("0xf0")]))if(t[fc("0xfa")]){if(!Ic(t,o))continue;let e=!0;for(const o of t.getRanges()){if(o[fc("0x90")](n,!0))return t;n[fc("0x90")](o)||(e=!1)}e&&t[fc("0x13c")]()}else{const e=t.getFirstRange();if(e[fc("0x90")](n,!0))return t;if(!Ic(t,o)){n[fc("0x90")](e)?t[fc("0xa1")]():e[fc("0xdb")](a)?a=e[fc("0x15d")]:e[fc("0xdb")](c)&&(c=e[fc("0xd4")]);continue}a=a.isBefore(e[fc("0xd4")])?a:e[fc("0xd4")],c=c[fc("0x60")](e[fc("0x15d")])?c:e.end,o=Object[fc("0x5e")]({},t[fc("0xe9")]),x?e[fc("0xd4")][fc("0xd7")](x.getFirstRange().start)?(x.removeMarkers(),x=t):t[fc("0xa1")]():x=t}}if(x)return this[fc("0x156")](x,this[fc("0x177")][fc("0x148")](a,c)),x;{const t=(0,e.uid)(),i=this[fc("0x177")][fc("0x148")](a,c),s=r.id,x=n?fc("0x1b")+n:"deletion",l=this[fc("0xa7")]({id:t,type:x,createdAt:new Date,authorId:s,attributes:o});return this._addSuggestionMarker(x,t,s,i),l}}[fc("0x14c")](t,n=fc("0x7"),o={}){const r=this[fc("0x53")].plugins.get("Users").me,i=t[fc("0x15e")]((t=>new s.LiveRange(t[fc("0xd4")],t[fc("0x15d")]))),x=new Set;for(const{suggestion:t,meta:e}of this[fc("0x179")](i,"insertion"))e[fc("0x136")]&&!e[fc("0x14a")]&&x[fc("0x13b")](t);for(const e of x)if(e[fc("0xfa")]){const r=e[fc("0x11e")]();if((!e[fc("0xe9")]||!e[fc("0xe9")][fc("0x70")])&&r[fc("0xed")]((t=>i.some((e=>e.containsRange(t,!0)))))&&e[fc("0x13c")](),i[fc("0xed")]((t=>r[fc("0x12d")]((e=>e[fc("0x90")](t,!0)))))){const e=this[fc("0xcb")][fc("0x11c")]("deletion",n,fc("0x112"));return this[fc("0xb8")]((()=>e(t,null,o))),null}}else{const t=e[fc("0x68")]();if(i[fc("0x12d")]((e=>e[fc("0x90")](t,!0)))&&e[fc("0x13c")](),i[fc("0xed")]((e=>t[fc("0x90")](e,!0)))){const t=this[fc("0xcb")].getSuggestionCallback(fc("0x4"),n,fc("0x112"));return this[fc("0xb8")]((()=>t(i,null,o))),null}}const a=this[fc("0xcb")][fc("0x11c")]("deletion",n,fc("0x9e"));let c=null;for(const t of this[fc("0x113")]())if(t[fc("0x59")].id==r.id&&t.isInContent&&fc("0x4")==t[fc("0x144")]&&t.subType==n&&Ic(t,o)&&(a(t.getRanges(),i)||a(i,t[fc("0x11e")]())))if(c){if(t[fc("0x150")]&&t[fc("0x150")].length)continue;for(const e of t[fc("0x11e")]())c[fc("0x54")](e)||c.addRange(e);t[fc("0xa1")]()}else{c=t;for(const e of i)t[fc("0x54")](e)||t[fc("0x157")](e)}if(c)return c;x[fc("0x160")]();for(const{suggestion:t,meta:e}of this[fc("0x179")](i,fc("0x4")))e.isOwn&&(this._mergeNestedSuggestions||!e[fc("0x11d")]&&!e[fc("0xf0")])&&Ic(t,o)&&x[fc("0x13b")](t);for(const t of x){const e=t.getRanges();if((!o||!o[fc("0x70")])&&i[fc("0xed")]((t=>e[fc("0x12d")]((e=>e[fc("0x90")](t,!0))))))return t;(!t[fc("0xe9")]||!t[fc("0xe9")][fc("0x70")])&&e[fc("0xed")]((t=>i[fc("0x12d")]((e=>e[fc("0x90")](t,!0)))))&&t[fc("0x13c")]()}const l=(0,e.uid)(),u=r.id,d=fc("0x1b")+n,g=this[fc("0xa7")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of i)t.detach(),t[fc("0x33")]||"$graveyard"==t[fc("0xf1")][fc("0x46")]||this[fc("0xd")](d,l,u,t,Jo[fc("0x9c")]());return g}[fc("0x138")](t,n,o,r,i){if(t[fc("0x33")])return[];if(fc("0xe6")===this[fc("0x139")])return[];const s=this[fc("0x53")][fc("0x41")][fc("0x101")](fc("0x37")).me.id,x=Array[fc("0x173")](this[fc("0xec")][fc("0xa8")]())[fc("0x12f")]((e=>fc("0x52")==e[fc("0x144")]&&e.data[fc("0x6a")]==n&&e.isIntersectingWithRange(t)));if(fc("0x6d")===this[fc("0x139")]){const e=this[fc("0x179")](t,fc("0xb6")).filter((({meta:t})=>t[fc("0x136")]&&!t[fc("0xf0")]&&!t[fc("0x14a")]))[fc("0x15e")]((({suggestion:t})=>t));x[fc("0x4b")](...e)}const a=new Map([[t,o]]);for(const t of x){const e=fc("0x52")==t.type?t.data[fc("0xdd")]:void 0,i=t[fc("0x68")](),s=Array.from(a[fc("0xf5")]())[fc("0x5b")]((t=>t.isIntersecting(i)));if(!s)continue;const x=s.getDifference(i);this[fc("0x6b")](n)&&fc("0xb6")==t[fc("0x144")]&&0!=x.length||(a[fc("0x47")](s),x.forEach((t=>{a[fc("0x17a")](t,o)})),fc("0xb6")!=t[fc("0x144")]&&e!=r&&a[fc("0x17a")](s[fc("0xd3")](i),e))}const c=[];for(const[t,o]of a){const x=(0,e.uid)(),a={key:n,oldValue:o,newValue:r};n[fc("0x161")]>37&&console[fc("0x102")](fc("0x171"),{key:n});const l=(fc("0x42")+(n+"|")+Tc({newValue:r}))[fc("0xf2")](0,60),u=this[fc("0xa7")]({id:x,type:l,data:a,createdAt:new Date,authorId:s,attributes:i});c[fc("0xb7")](u),this[fc("0xd")](l,x,s,t)}return c}[fc("0x153")](t){this._blockAttributeKeys[fc("0x13b")](t)}[fc("0x164")](t){this[fc("0xd6")].add(t)}_enableDefaultAttributesIntegration(t,e=[],n=[]){this[fc("0x96")](t,((t,...e)=>{this._recordAttributeChanges((()=>{t(...e)}))}));for(const t of e)this[fc("0x164")](t);for(const t of n)this[fc("0x153")](t)}[fc("0x156")](t,e){const n=t.getFirstMarker();this[fc("0x177")][fc("0x73")]((t=>{t.updateMarker(n,{range:e})}))}[fc("0x83")](t){const e=t.id,n=this.editor[fc("0x1")][fc("0x101")]("collaboration.channelId");this[fc("0xc1")][fc("0x91")](e)||this[fc("0xc1")].addCommentThread({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[fc("0xc1")].getCommentThread(e);o[fc("0x121")]("isRemovable"),o[fc("0x158")]=!1,t[fc("0x150")]=o}[fc("0x71")](t,n,o,r){if(t.type!=n||t[fc("0x22")]!=o||t[fc("0x145")].id!=r)throw this[fc("0x53")][fc("0xa2")]("track-changes-suggestion-data-mismatch"),new e.CKEditorError("track-changes-suggestion-data-mismatch",this)}[fc("0xac")](t,n){const o=t[fc("0x68")]();if(n[fc("0xc4")](o))t[fc("0xa1")]();else if(o[fc("0x90")](n)){const r=this[fc("0x177")][fc("0xbb")](n[fc("0xd4")][fc("0x31")],"end");this[fc("0x156")](t,this._model.createRange(o[fc("0xd4")],r));const i=(0,e.uid)(),s=t[fc("0x145")].id,x=t[fc("0x144")]+":"+t[fc("0x22")];this[fc("0xa7")]({id:i,type:x,createdAt:new Date,authorId:s,data:t[fc("0x2b")],attributes:t.attributes});const a=this._model[fc("0xbb")](n[fc("0x15d")].parent,fc("0xcd")),c=this[fc("0x177")][fc("0x148")](a,o[fc("0x15d")]);this._addSuggestionMarker(x,i,s,c)}else if(o[fc("0xdb")](n[fc("0xd4")])){const e=this[fc("0x177")][fc("0xbb")](n[fc("0xd4")][fc("0x31")],fc("0x15d"));this[fc("0x156")](t,this[fc("0x177")][fc("0x148")](o.start,e))}else{const e=this[fc("0x177")].createPositionAt(n[fc("0x15d")][fc("0x69")],"after");this[fc("0x156")](t,this[fc("0x177")][fc("0x148")](e,o[fc("0x15d")]))}}[fc("0x133")](t){for(const{suggestion:e,meta:n}of this._findSuggestions(t,fc("0xb6"))){if(!n[fc("0x136")])continue;const o=e[fc("0x11e")]();for(const e of o)if(!t[fc("0x12c")](e)[fc("0x161")])return!0}return!1}_getAuthorFromId(t){const n=this[fc("0x53")][fc("0x41")].get("Users")[fc("0x7f")](t);if(!n)throw new e.CKEditorError(fc("0xaf"),this);return n}[fc("0x3a")](t){const e=this[fc("0x53")][fc("0x41")][fc("0x101")]("Users"),n=(0,i.hashObject)(fc("0x77")+t);return e[fc("0x7f")](n)||e[fc("0x107")]({id:n,name:t})}[fc("0x19")](t,e,n,o,r){const i=this[fc("0x2c")](o),s=this[fc("0xcb")][fc("0x66")](t,e,n,i,r,(t=>this[fc("0x10")](n,{attributes:t})));return this[fc("0x169")](s,fc("0x112"),(()=>{this[fc("0x10")](n,{state:"accepted"})}),{priority:fc("0x172")}),this[fc("0x169")](s,"discard",(()=>{this[fc("0x10")](n,{state:fc("0xe3")})}),{priority:fc("0x172")}),this._suggestions[fc("0x17a")](n,s),this[fc("0x10c")][fc("0x17a")](s,fc("0xf8")),s}[fc("0x13e")](t){const e=t[fc("0x12b")](":");return{group:e[0],type:e[1],subType:e.length>=5?e[2]:null,id:e.length<5?e[2]:e[3],authorId:e[fc("0x161")]<5?e[3]:e[4],markerCount:6==e[fc("0x161")]?e[5]:null}}[fc("0x4a")](t,n,o){const r=t[fc("0x68")](),i=r[fc("0xd4")],s=r[fc("0x15d")];this[fc("0x156")](t,this[fc("0x177")][fc("0x148")](i,n));const x=(0,e.uid)(),a=t.creator.id,c=t[fc("0x144")]+(t[fc("0x22")]?":"+t.subType:"");this[fc("0xa7")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[fc("0xe9")],data:t[fc("0x2b")]});const l=Sc(t);("formatBlock"==t[fc("0x144")]||l&&this._isBlockAttribute(l))&&(o=this._model[fc("0x120")](o[fc("0x69")])),this[fc("0xd")](c,x,a,this[fc("0x177")][fc("0x148")](o,s))}_findSuggestions(t,e=null){const n=[],o=this[fc("0x53")][fc("0x41")][fc("0x101")](fc("0x37")).me;Array[fc("0xbf")](t)||(t=[t]);for(const r of this.getSuggestions()){if(!r[fc("0x1f")])continue;if(e&&r[fc("0x144")]!=e)continue;let i=!1;for(const e of r[fc("0x11e")]()){for(const s of t){const t=s[fc("0xd4")][fc("0xc4")](e.end)||s.end[fc("0xc4")](e[fc("0xd4")]);if(t||s[fc("0xd3")](e)){const x=s[fc("0x90")](e)&&pc(this._model[fc("0x128")],e[fc("0xd4")],s),a=e[fc("0x90")](s)&&pc(this[fc("0x177")][fc("0x128")],s.start,e);n.push({suggestion:r,meta:{isOwn:o==r.author,isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),i=!0;break}}if(i)break}}return n}[fc("0xd")](t,e,n,o,r){this[fc("0x177")].change((i=>{let s="suggestion:"+t+":"+e+":"+n;r&&(s=s+":"+r),i[fc("0x4d")](s,{range:o,usingOperation:!0,affectsData:!0})}))}[fc("0x115")](t){const e=t[fc("0x13f")],n=t[fc("0xc2")];t[fc("0x13f")]=null,t[fc("0xc2")]=null,null!=e&&(e[fc("0xc2")]=n),null!=n&&(n[fc("0x13f")]=e),fc("0x123")==this[fc("0x10c")].get(t)&&(this[fc("0x10c")][fc("0x17a")](t,fc("0xd5")),this[fc("0xd9")](fc("0xef"),t,e,n))}[fc("0xa7")](t){const n=t.id,o=this[fc("0xa5")](t);if(this[fc("0x105")]&&this[fc("0x105")][fc("0xee")]){const r=this[fc("0x53")][fc("0x41")][fc("0x101")](fc("0x48")),i=o[fc("0x84")],s=o[fc("0x22")]?o.type+":"+o.subType:o.type,x=this[fc("0x53")][fc("0xe8")],a=r.add(Qo(x,fc("0xf6"))),c={id:n,type:s,hasComments:i,data:t[fc("0x2b")]||null,originalSuggestionId:t[fc("0x3c")]||null,attributes:o[fc("0xe9")]};this[fc("0x105")].addSuggestion(c)[fc("0x43")]((t=>{o[fc("0xe1")]=!0,r.remove(a),t&&t[fc("0x168")]&&(this[fc("0xec")][fc("0x101")](n).createdAt=t[fc("0x168")])}))[fc("0xae")]((t=>{throw(0,e.logWarning)("error-saving-suggestion-data-suggestion-discarded"),this[fc("0x53")][fc("0x14")][fc("0x7d")]({isUndoable:!1},(()=>{o.discard()})),o[fc("0x170")](),this._suggestions[fc("0x47")](o.id),this[fc("0x10c")].delete(o),t}))}return o}_isBlockAttribute(t){return this[fc("0x78")][fc("0x2")](t)}[fc("0x10")](t,e){const n=this[fc("0x53")][fc("0x41")][fc("0x101")](fc("0x48")),o=this[fc("0xe7")](t);if(this[fc("0x105")]&&this[fc("0x105")][fc("0xd0")])if(o[fc("0xe1")]){const o=n[fc("0x13b")](Qo(this[fc("0x53")][fc("0xe8")],fc("0xf6")));this[fc("0x105")][fc("0xd0")](t,e)[fc("0x43")]((()=>{n[fc("0x55")](o)}))}else o.on(fc("0xbc"),(()=>{this[fc("0x10")](t,e)}))}_getSuggestionData(t){if(!this[fc("0x105")]||!this[fc("0x105")].getSuggestion)throw new e.CKEditorError(fc("0xc0"),this);return this[fc("0x105")][fc("0xe7")](t)}[fc("0x30")](t){const{id:e,type:n,subType:o,authorId:r}=this._splitMarkerName(t),i=this[fc("0xec")][fc("0x101")](e)||this[fc("0x19")](n,o,e,r,{});switch(this[fc("0x71")](i,n,o,r),this._suggestionState.get(i)){case"notReady":this[fc("0x63")](e)[fc("0x43")]((t=>{let n=Promise[fc("0x125")]();t[fc("0x84")]&&(n=this[fc("0xc1")][fc("0x79")]({channelId:this[fc("0x53")].config[fc("0x101")](fc("0x3")),threadId:e})),n.then((()=>{this[fc("0xa5")](t)[fc("0xe1")]=!0}))})),this[fc("0x10c")].set(i,"markerReady");break;case"removed":this[fc("0x10")](e,{state:fc("0xb5")});case fc("0x11a"):this[fc("0x10c")].set(i,fc("0x123")),this[fc("0xd9")]("suggestionLoaded",i);break;case fc("0x123"):this.fire(fc("0xfb"),i)}return i[fc("0x24")](t),i}_refreshSuggestionsChain(t){const e=Array.from(t),n=e[fc("0x12f")]((t=>"attribute"==t[fc("0x144")]));this[fc("0x15b")](n);const o=e[fc("0x12f")]((t=>!t.isMultiRange&&fc("0x52")!=t.type)),r=this[fc("0x113")]({skipNotAttached:!0}).filter((t=>!t[fc("0xfa")]&&fc("0x52")!=t[fc("0x144")])),i=r[fc("0x12f")]((e=>!t.has(e))),s=new Map(r[fc("0x15e")]((t=>[t,this[fc("0xcb")][fc("0x11c")](t[fc("0x144")],t[fc("0x22")],fc("0xc6"))]))),x=new Map(r[fc("0x15e")]((t=>[t,t.getFirstRange()]))),a=new Set,c=new Set;for(let t=0;t<o[fc("0x161")];t++)u(o[t],o,t+1);for(let t=0;t<o.length;t++)u(o[t],i,0);const l=new Set;for(let t=0;t<o[fc("0x161")];t++){const e=o[t];!c[fc("0x2")](e)&&e[fc("0x13f")]&&(l[fc("0x13b")](e[fc("0x13f")]),e[fc("0x13f")][fc("0xc2")]===e&&(e[fc("0x13f")][fc("0xc2")]=null),e[fc("0x13f")]=null),!a.has(e)&&e[fc("0xc2")]&&(l[fc("0x13b")](e[fc("0xc2")]),e[fc("0xc2")][fc("0x13f")]===e&&(e[fc("0xc2")][fc("0x13f")]=null),e[fc("0xc2")]=null)}function u(t,e,n){for(let o=n;o<e[fc("0x161")];o++){const n=d(t,e[o]);n&&(n[0].next=n[1],n[1][fc("0x13f")]=n[0],a[fc("0x13b")](n[0]),c.add(n[1]))}}function d(t,e){if(t[fc("0x59")].id!==e.author.id)return null;const n=s[fc("0x101")](t)(t,e,x[fc("0x101")](t),x[fc("0x101")](e));return n&&s[fc("0x101")](e)(t,e,x[fc("0x101")](t),x[fc("0x101")](e))?n[1][fc("0x150")]&&n[1][fc("0x150")][fc("0x161")]?null:n:null}l.size&&this._refreshSuggestionsChain(l)}[fc("0x15b")](t){if(0==t[fc("0x161")])return;const e=this[fc("0x113")]({skipNotAttached:!0})[fc("0x12f")]((t=>"attribute"==t[fc("0x144")]&&t[fc("0x15a")])),n=[],o=new Map;for(const t of e){const e=(0,i.hashObject)(t[fc("0xe9")]);o[fc("0x2")](e)||(o[fc("0x17a")](e,n[fc("0x161")]),n[fc("0xb7")]([]));const r=o[fc("0x101")](e);n[r].push(t)}!function(){n[fc("0x11f")](((t,e)=>{const n=t[0][fc("0x168")],o=e[0][fc("0x168")];return n==o?t[0][fc("0xe9")][fc("0x118")]<e[0][fc("0xe9")][fc("0x118")]?-1:1:n<o?-1:1}));for(const t of n)t.sort(((t,e)=>t.id<e.id?-1:1))}();for(let t=0;t<n[fc("0x161")];t++){if(0==n[t][fc("0x161")])continue;const e=[];for(let o=t+1;o<n[fc("0x161")];o++)0!=n[o][fc("0x161")]&&r(n[t],n[o])&&e[fc("0xb7")](o);for(const o of e)n[t]=n[t].concat(n[o]),n[o]=[]}for(const t of n)for(let e=0;e<t[fc("0x161")];e++)t[e][fc("0xc2")]=t[e+1]||null;for(const t of n)for(let e=0;e<t[fc("0x161")];e++)t[e].previous=t[e-1]||null;function r(t,e){if(t[0][fc("0x59")]!==e[0][fc("0x59")])return!1;if(n=t[0],o=e[0],(n[fc("0x84")]||o.hasComments)&&(n.hasComments&&o.hasComments||!(n.hasComments&&o.createdAt<n[fc("0x150")][fc("0xc5")].get(0).createdAt||o[fc("0x84")]&&n[fc("0x168")]<o[fc("0x150")][fc("0xc5")][fc("0x101")](0)[fc("0x168")])))return!1;var n,o;const r=lc(t[0].attributes,fc("0x118")),i=lc(e[0][fc("0xe9")],fc("0x118"));return!!Go(r,i)&&(!!t[fc("0xed")]((t=>e[fc("0x12d")]((e=>t.getFirstRange()[fc("0xc4")](e[fc("0x68")]())))))&&e[fc("0xed")]((e=>t.some((t=>e[fc("0x68")]()[fc("0xc4")](t.getFirstRange()))))))}}[fc("0x9d")](t){const e=Array[fc("0x173")](t),n=this.getSuggestions({skipNotAttached:!0}),o=n[fc("0x12f")]((e=>!t[fc("0x2")](e))),r=new Map(e[fc("0x15e")]((t=>[t,this[fc("0xcb")][fc("0x11c")](t[fc("0x144")],t[fc("0x22")],fc("0x9e"))]))),i=new Map(n[fc("0x15e")]((t=>[t,t[fc("0x11e")]()])));for(let t=0;t<e[fc("0x161")];t++)if(s(this,e[t],e,t+1))return!0;for(let t=0;t<e.length;t++)if(s(this,e[t],o,0))return!0;return!1;function s(t,e,n,o){for(let s=o;s<n[fc("0x161")];s++){const o=n[s];if(o.type!==e[fc("0x144")]||o[fc("0x59")].id!==e.author.id||o.subType!==e[fc("0x22")])continue;if(!kc(e,o))continue;if(fc("0x52")==e[fc("0x144")]&&e[fc("0x2b")][fc("0xdd")]!=o.data[fc("0xdd")])continue;if("attribute"==e[fc("0x144")]&&t[fc("0x6b")](e[fc("0x2b")][fc("0x6a")]))continue;if(fc("0x135")==e[fc("0x144")]){const n=t[fc("0x53")][fc("0x14")],o=e[fc("0x16a")]();if(o&&(n[fc("0x128")][fc("0x3d")](o)||n[fc("0x128")][fc("0x17")](o)))continue}const x=r[fc("0x101")](e),a=i.get(e),c=i[fc("0x101")](o),l=e[fc("0x150")]&&e.commentThread[fc("0x161")],u=o[fc("0x150")]&&o[fc("0x150")][fc("0x161")];if(!l&&x(c,a))return t._joinSuggestions(o,e),i[fc("0x47")](e),!0;if(!u&&x(a,c))return t[fc("0x12e")](e,o),i[fc("0x47")](o),!0}return!1}}[fc("0x12e")](t,e){if(t[fc("0xfa")])for(const n of e[fc("0x11e")]())t[fc("0x157")](n);else{const n=e[fc("0x68")]()[fc("0x15d")];this[fc("0x156")](t,this._model[fc("0x148")](t.getFirstRange()[fc("0xd4")],n))}e[fc("0xa1")]()}_getMarkerAnnouncementText(t,e){const n=t[fc("0xe2")]("format")||t[fc("0xe2")](fc("0x52"))?fc("0x178"):t.toUpperCase();return Qo(this.editor[fc("0xe8")],e+"_"+n+fc("0x94"))}_initAriaMarkerChangeAnnouncements(){const t=this[fc("0x53")];(0,i.surroundingMarkersDetector)(this[fc("0x177")],(({left:e,entered:n})=>{const o=[];for(const t of e){const{group:e,type:n}=this[fc("0x13e")](t[fc("0x122")]);if(fc("0x10e")===e){o[fc("0xb7")](this[fc("0x61")](n,"LEAVE"));break}}for(const t of n){const{group:e,type:n}=this[fc("0x13e")](t.name);if("suggestion"===e){o[fc("0xb7")](this[fc("0x61")](n,fc("0xe0")));break}}o[fc("0x161")]&&t.ui[fc("0x2a")][fc("0xb9")](fc("0x92"),o[fc("0x9e")](" "))}))}_processAttributeChanges(t){if(null!==this[fc("0xa3")])return!1;const e=this[fc("0x53")],n=e[fc("0x14")][fc("0x7c")][fc("0x35")][fc("0x124")]();if(0==n[fc("0x161")])return!1;const o=[],r=n[fc("0x12f")]((t=>fc("0x52")==t[fc("0x144")])),i=n.filter((t=>fc("0x127")==t.type&&fc("0x89")!=t.name)),s=n[fc("0x12f")]((t=>fc("0x55")==t[fc("0x144")]&&fc("0x89")!=t.name));for(const t of r)o[fc("0xb7")]({key:t[fc("0x3e")],newValue:t[fc("0x5")],oldValue:t[fc("0xca")],range:(x=t[fc("0x62")],null==x.end.nodeBefore&&x.end[fc("0x69")]==x[fc("0xd4")][fc("0x5c")]?Cc(x.start[fc("0x5c")],e.model):x)});var x;for(const t of i){const n=s[fc("0x5b")]((e=>e[fc("0x12")][fc("0xc4")](t.position)));n&&o.push({key:fc("0x20"),newValue:t.name,oldValue:n.name,range:e[fc("0x14")].createRangeOn(t.position[fc("0x5c")])})}return 0!=o[fc("0x161")]&&this[fc("0x4f")](t,o)}_processAttributeSuggestions(t){let e=!1;const n=this.editor.model[fc("0x7c")][fc("0x35")][fc("0xe5")]()[fc("0x12f")]((t=>t[fc("0x2b")][fc("0x2e")]&&t[fc("0x122")][fc("0xe2")]("suggestion:attribute:")));for(const o of n){const{subType:n,id:r}=this[fc("0x13e")](o[fc("0x122")]),i=n.split("|")[0];for(const n of this.getSuggestions({skipNotAttached:!0}))n.id!=r&&fc("0x52")==n[fc("0x144")]&&n[fc("0x2b")]&&n[fc("0x2b")][fc("0x6a")]==i&&n.getFirstRange()[fc("0x28")](o.data[fc("0x2e")])&&(this[fc("0x15")](n,o[fc("0x2b")][fc("0x2e")],t),e=!0)}return e}_recordAttributeChanges(t){if(null!==this[fc("0xa3")])return void t();const n=this[fc("0x53")];this[fc("0xa3")]=n[fc("0x14")][fc("0x7c")].version,t();const o=new Map;for(const t of n[fc("0x14")][fc("0x7c")][fc("0x34")][fc("0x6")](this[fc("0xa3")]))if([fc("0x126"),fc("0x99"),fc("0xa4"),"changeAttribute"][fc("0xfe")](t[fc("0x144")])){const e=t[fc("0xda")],n=o[fc("0x101")](e)||[];n[fc("0xb7")](t),o[fc("0x17a")](e,n)}this[fc("0xa3")]=null;for(const[t,r]of o){const o=(0,e.uid)();n[fc("0x14")][fc("0x7d")](t,(t=>{const e=[];for(const t of r){let r,i,s,x;if(fc("0x126")==t[fc("0x144")]){const e=t;r=Cc(e[fc("0x12")].nodeAfter,n.model),i="$elementName",s=e[fc("0xa")],x=e[fc("0x10d")]}else{const e=t,o=this[fc("0x6b")](e[fc("0x6a")]),a=this[fc("0xd6")][fc("0x2")](e[fc("0x6a")]);if(!o&&!a)continue;r=o?Cc(e[fc("0x62")].start[fc("0x5c")],n[fc("0x14")]):e[fc("0x62")],i=e[fc("0x6a")],s=fc("0xa4")==t[fc("0x144")]?void 0:e[fc("0x14e")],x=e[fc("0xdd")]}this[fc("0x138")](r,i,x,s,{groupId:o}),e[fc("0xb7")]({range:r,key:i,newValue:s,oldValue:x})}this[fc("0x4f")](t,e)}))}}[fc("0x4f")](t,e){if(0==e[fc("0x161")])return!1;let n=!1;for(const o of e){const e=this[fc("0x179")](o[fc("0x62")],"attribute").filter((t=>!t[fc("0x3f")][fc("0x14a")]))[fc("0x15e")]((t=>t[fc("0x10e")])),r=(0,i.hashObject)({newValue:o.newValue});e.filter((t=>{const[e,n]=t[fc("0x22")][fc("0x12b")]("|");return e==o.key&&n!=r}))[fc("0x8b")]((e=>{this._reduceSuggestionAttributeRange(e,o[fc("0x62")],t),n=!0}))}return n}[fc("0x15")](t,e,n){const o=t[fc("0x68")]().getDifference(e);0!==o.length?1!==o[fc("0x161")]?this[fc("0x4a")](t,e[fc("0xd4")],e[fc("0x15d")]):this[fc("0x156")](t,o[0]):n.removeMarker(t.getFirstMarker())}}class bc{constructor(t){this[fc("0xe4")]=t,this._model=t[fc("0x14")],this._customCallbacks=new Map,this[fc("0x16f")]=new Map,this[fc("0x132")]()}[fc("0x66")](t,e,n,o,r,i){return new Jo(this[fc("0x177")],{type:t,subType:e,id:n,author:o,creator:o,attributes:r,onAttributesChange:i,onAccept:(...n)=>this[fc("0x11c")](t,e,fc("0x112"))(...n),onDiscard:(...n)=>this[fc("0x11c")](t,e,fc("0x13c"))(...n)})}[fc("0x14b")](t,e,n,o){const r=t+":"+e+":"+n;this._customCallbacks[fc("0x17a")](r,o)}[fc("0x11c")](t,e,n){const o=t+":"+e+":"+n;return this[fc("0x27")][fc("0x101")](o)||this[fc("0x16f")].get(t+":"+n)}_registerDefaultCallbacks(){const t=()=>!1,e=t=>{t[fc("0x11f")](((t,e)=>t[fc("0xd4")].isBefore(e[fc("0xd4")])?1:-1)),this[fc("0x177")][fc("0x73")]((e=>{for(const n of t){let t;t=n[fc("0x15d")][fc("0x7b")]&&n[fc("0x15d")][fc("0x69")]==n.start.nodeAfter?e[fc("0x130")](n[fc("0xd4")][fc("0x5c")],"on"):e[fc("0x130")](n),this[fc("0x177")].deleteContent(t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{e&&this._model[fc("0x73")]((n=>{const{commandName:o,commandParams:r=[]}=e,i=t.map((t=>(Ec(t)&&(t=this[fc("0x177")][fc("0x148")](t[fc("0x15d")])),t)))[fc("0x12f")]((t=>fc("0x9b")!==t.root[fc("0x46")]));if(i[fc("0x161")]<1)return;const x=Array[fc("0x173")](this[fc("0x177")][fc("0x7c")][fc("0x38")][fc("0x11e")]()).map((t=>s.LiveRange[fc("0x18")](t)));n[fc("0x50")](i);for(const t of this[fc("0xe4")].commands.commands())t.refresh();r[fc("0xb7")]({forceDefaultExecution:!0}),this[fc("0xe4")][fc("0x1c")](o,...r);const a=x.filter((t=>fc("0x9b")!=t[fc("0xf1")][fc("0x46")]));a[fc("0x161")]>0&&n[fc("0x50")](a);for(const t of x)t[fc("0x67")]()}))},o=(t,e)=>1==t.length&&1==e[fc("0x161")]&&t[0][fc("0x15d")][fc("0xc4")](e[0][fc("0xd4")]),r=(t,e,n,o)=>Ac(t,e,n,o,this[fc("0x177")])?[t,e]:Ac(e,t,o,n,this._model)?[e,t]:null;this[fc("0x16f")][fc("0x17a")](fc("0xf3"),t),this._defaultCallbacks[fc("0x17a")](fc("0x141"),e),this[fc("0x16f")][fc("0x17a")]("insertion:join",o),this[fc("0x16f")][fc("0x17a")]("insertion:chain",r),this[fc("0x16f")][fc("0x17a")](fc("0x40"),e),this[fc("0x16f")][fc("0x17a")](fc("0x114"),t),this[fc("0x16f")][fc("0x17a")]("deletion:join",o),this[fc("0x16f")][fc("0x17a")](fc("0xb3"),r),this._defaultCallbacks[fc("0x17a")](fc("0x10f"),n),this[fc("0x16f")][fc("0x17a")](fc("0x134"),t),this[fc("0x16f")][fc("0x17a")](fc("0xcf"),o),this[fc("0x16f")][fc("0x17a")]("formatInline:chain",t),this[fc("0x16f")][fc("0x17a")]("formatBlock:accept",n),this[fc("0x16f")][fc("0x17a")](fc("0xce"),t),this[fc("0x16f")].set(fc("0xad"),o),this._defaultCallbacks[fc("0x17a")](fc("0x6c"),t),this[fc("0x16f")][fc("0x17a")](fc("0x119"),t),this[fc("0x16f")].set("attribute:discard",((t,e)=>{if(!e)return;const n=this[fc("0xe4")][fc("0x41")][fc("0x101")](hc);this._model[fc("0x73")]((o=>{if(fc("0x20")==e[fc("0x6a")])for(const n of t){const t=n.start[fc("0x5c")],r=e[fc("0xdd")];o.rename(t,r)}else if(n._isBlockAttribute(e[fc("0x6a")]))for(const n of t)void 0!==e[fc("0xdd")]?o.setAttribute(e[fc("0x6a")],e.oldValue,n.start[fc("0x5c")]):o[fc("0xa4")](e[fc("0x6a")],n[fc("0xd4")][fc("0x5c")]);else for(const n of t)e[fc("0xdd")]?o[fc("0x76")](e[fc("0x6a")],e[fc("0xdd")],n):o[fc("0xa4")](e.key,n)}))})),this[fc("0x16f")][fc("0x17a")](fc("0x64"),o)}}function pc(t,e,n){for(const o of e[fc("0x69")][fc("0x14f")]({includeSelf:!0,parentFirst:!0})){if(o[fc("0xf1")]==o)return!1;if(!n.containsItem(o))return!1;if(t[fc("0x3d")](o)||t[fc("0x17")](o))return!0}return!1}function Ec(t){return t[fc("0x15d")].parent==t[fc("0xd4")][fc("0x5c")]&&t[fc("0x15d")][fc("0x49")]}function _c(t,e,n,o){const r=t=>!t[fc("0x106")].is("$textProxy")&&!o[fc("0x3d")](t.item),i=t[fc("0xd4")][fc("0x12a")](r),s=t[fc("0x15d")].getLastMatchingPosition(r,{direction:"backward"});return!(t[fc("0xd4")][fc("0xc4")](i)&&t.end.isEqual(s)||(i[fc("0xd7")](s)?n.updateMarker(e,{range:n[fc("0x148")](i,s)}):n[fc("0x8c")](e),0))}function Tc(t){return(0,i.hashObject)(t)}function yc(t){const e=t.start[fc("0x5c")];return e&&e.is(fc("0xa6"))}function Cc(t,e){const n=e[fc("0x128")].isObject(t)||e[fc("0x128")][fc("0x56")](t);return e.createRange(e[fc("0xbb")](t,fc("0x93")),n?e[fc("0x8e")](t):e.createPositionAt(t,fc("0x15d")))}function Ac(t,e,n,o,r){if(!kc(t,e))return!1;if(n[fc("0x15d")].isEqual(o[fc("0xd4")]))return!0;if(t.type!=e.type)return!1;if(!n[fc("0x15d")][fc("0x98")](o[fc("0xd4")]))return!1;const i=r[fc("0x148")](n.end,o[fc("0xd4")])[fc("0x9")]();for(const t of i)if(["elementStart",fc("0xde")][fc("0xfe")](t[fc("0x144")])&&r[fc("0x128")][fc("0x17")](t.item))return!1;return!0}function kc(t,e){return!(!t._isDataLoaded||!e._isDataLoaded)&&Go(t[fc("0xe9")],e[fc("0xe9")])}function Ic(t,e){const n=Rc(t.attributes),o=Rc(e);if(!t[fc("0x15a")])return!1;for(const t of Object.keys(o))if(!Go(n[t],o[t]))return!1;return!0}function Rc(t){const e=Object[fc("0x5e")]({},t);return delete e.skipNestingCheck,delete e.tablePasteChainId,e}function Sc(t){return fc("0x52")==t[fc("0x144")]?t[fc("0x22")][fc("0x12b")]("|")[0]:null}const vc=["_editor","add","discardSuggestion","model","get","_removePendingAction","commands","acceptSuggestion","getRanges","view","unbind","PENDING_ACTION_SUGGESTION","destroy","PendingActions","bind","canEditAt","_setPendingAction","execute","_acceptCommand","isEnabled","commentThreadController","isDirty","canDiscard","locale","listenTo","_pendingAction","plugins","stopListening","remove","_discardCommand"];var Nc,Lc;Nc=vc,Lc=378,function(t){for(;--t;)Nc.push(Nc.shift())}(++Lc);const Mc=function(t,e){return vc[t-=0]};class wc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[Mc("0xf")]=e,this[Mc("0x15")]=n,this.commentThreadController=o,this._editor=t,this[Mc("0x0")]=t[Mc("0x12")][Mc("0x10")]("acceptSuggestion"),this[Mc("0xb")]=t[Mc("0x12")].get(Mc("0xe")),this[Mc("0x15")].bind("isEnabled").to(this._acceptCommand,this[Mc("0xb")],((t,e)=>t||e)),this[Mc("0x15")][Mc("0x1a")]("canAccept").to(this[Mc("0x0")],Mc("0x1"),(t=>t&&this._editor.model[Mc("0x1b")](e[Mc("0x14")]()))),this[Mc("0x15")][Mc("0x1a")](Mc("0x4")).to(this[Mc("0xb")],"isEnabled",(t=>t&&this[Mc("0xc")][Mc("0xf")][Mc("0x1b")](e[Mc("0x14")]()))),this._pendingAction=null,n.isDirty&&this[Mc("0x1c")](),this[Mc("0x6")](n,"acceptSuggestion",(()=>this[Mc("0x13")]())),this[Mc("0x6")](n,Mc("0xe"),(()=>this.discardSuggestion())),this[Mc("0x6")](n,"change:isDirty",(()=>{n[Mc("0x3")]?this._setPendingAction():this[Mc("0x11")]()}))}acceptSuggestion(){this[Mc("0x0")][Mc("0x1d")](this[Mc("0xf")].id)}discardSuggestion(){this[Mc("0xb")][Mc("0x1d")](this[Mc("0xf")].id)}destroy(){this.view[Mc("0x16")]("isEnabled"),this.view[Mc("0x16")]("canAccept"),this[Mc("0x15")][Mc("0x16")](Mc("0x4")),this[Mc("0x9")](),this[Mc("0x2")][Mc("0x18")](),this[Mc("0x7")]&&this[Mc("0x11")]()}[Mc("0x1c")](){const t=Qo(this[Mc("0xc")][Mc("0x5")],Mc("0x17"));this[Mc("0x7")]=this[Mc("0xc")].plugins[Mc("0x10")](Mc("0x19"))[Mc("0xd")](t)}[Mc("0x11")](){null!==this[Mc("0x7")]&&this[Mc("0xc")][Mc("0x8")][Mc("0x10")](Mc("0x19"))[Mc("0xa")](this._pendingAction),this._pendingAction=null}}const Oc=["focus","fire","submit","cancel","authoredAt","isReadOnly","commentThreadInputView","commentThread","bind","editor","commentInputView","set","delegate","_config","canDiscard","disabledSubmit","value","isEnabled","canAccept","destroy","updateComment","_localUser","CommentView","_createCommentThreadInputView","setData","removeComment","_createCommentViews","disableComments","_model","commentsListView","hasDirtyComment","isActive","element","isDirty","length","assign"];var Fc,Dc;Fc=Oc,Dc=198,function(t){for(;--t;)Fc.push(Fc.shift())}(++Dc);const Bc=function(t,e){return Oc[t-=0]};class Pc extends r.View{constructor(t,e,n,o){super(t),this[Bc("0xb")]=null,this[Bc("0x18")]=null,this[Bc("0x1d")](Bc("0xd"),!1),this.set(Bc("0x16"),e[Bc("0x16")]),this.bind(Bc("0x16")).to(e),this[Bc("0x1d")]("descriptionParts",[]),this.set(Bc("0xf"),!1),this[Bc("0x1d")](Bc("0x23"),!1),this[Bc("0x1d")](Bc("0x0"),!1),this[Bc("0x1d")](Bc("0x20"),!1),this[Bc("0xa")]=e,this[Bc("0x3")]=n,this._config=o,o[Bc("0x9")]?this[Bc("0x1d")](Bc("0x10"),1):this[Bc("0x8")]()}[Bc("0x12")](){this[Bc("0xe")][Bc("0x12")]()}[Bc("0x1")](){this.commentsListView&&this[Bc("0xb")][Bc("0x1")](),this[Bc("0x18")]&&this[Bc("0x18")][Bc("0x1")](),super[Bc("0x1")]()}[Bc("0x8")](){const{CommentsListView:t}=this[Bc("0x1f")];this.commentsListView=new t(this.locale,this[Bc("0xa")][Bc("0x19")],Object[Bc("0x11")]({CommentView:this[Bc("0x1f")][Bc("0x4")]},this[Bc("0x1f")])),this[Bc("0xb")].delegate("removeComment").to(this),this.commentsListView[Bc("0x1e")](Bc("0x2")).to(this),this[Bc("0xb")][Bc("0x1a")]("isActive").to(this),this[Bc("0x1d")]("length",this.commentsListView[Bc("0x10")]+1),this.bind(Bc("0x10")).to(this[Bc("0xb")],"length",(t=>t+1)),this[Bc("0x18")]=this[Bc("0x5")](),this.on(Bc("0x7"),(()=>this[Bc("0x12")]())),this[Bc("0x1a")](Bc("0xf")).to(this[Bc("0xb")],Bc("0xc"),this[Bc("0x18")][Bc("0x1c")],"value",((t,e)=>t||!!e))}[Bc("0x5")](){const{CommentThreadInputView:t}=this._config,e=new t(this.locale,this[Bc("0x3")],this[Bc("0x1f")].editorConfig),n=e[Bc("0x1c")];return e[Bc("0x1a")]("showInput").to(this,"isActive",this._model.commentThread,"isReadOnly",n,Bc("0x22"),((t,e,n)=>!!n||t&&!e)),n.on(Bc("0x14"),((t,e)=>{this[Bc("0x13")]("addComment",e),n[Bc("0x1b")][Bc("0x6")]("")})),n.on(Bc("0x15"),(()=>this[Bc("0x12")]())),n[Bc("0x1a")](Bc("0x21")).to(this._model.commentThread,Bc("0x17")),e}}const Uc=["discardButton","_descriptionElement",'<span class="ck-suggestion-color" style="background-color: ',"querySelector","EXTERNAL_IMPORT_WORD_SUGGESTION","setTemplate","extendTemplate","execute","_model","split","formatDateTime","ck-annotation__info-time","render","editorReady","innerHTML","getUserViewNotificationText","getExternalSuggestionNote","div","bind","commentThread","ck-suggestion","editorDestroyed","type","set","map","commentThreadInputView","check","value","acceptSuggestion","content","userView","delegate","isEnabled","descriptionParts","creator","ck-suggestion__info-name","ck-comment__info-time","getTemplate","ck-suggestion-wrapper","isActive","createElement","name","push","ck-suggestion__actions","element",'<span class="ck-suggestion-type">',"@external","ck-annotation__info-name","ck-suggestion-wrapper--active","ck-annotation__user","children","Discard suggestion","isExternal","acceptButton","commentsListView",'"></span>',"span","</p>","locale","ck-annotation__info","attributes","canAccept","innerText","join","author","time",".ck-annotation__content-wrapper","<p>","authoredAt","ck-suggestion--accept","ck-suggestion--disabled-comments","color","discardSuggestion","ck-comment__external","canDiscard","Accept suggestion","ck-suggestion__main","EXTERNAL_SUGGESTION","_config","source","ck-annotation","title","cancel","_createButton","</span>"];var jc,Gc;jc=Uc,Gc=474,function(t){for(;--t;)jc.push(jc.shift())}(++Gc);const Vc=function(t,e){return Uc[t-=0]};class Hc extends Pc{constructor(e,n,o,r){super(e,n,o,r),this[Vc("0x3b")](Vc("0x3a"),""),this[Vc("0x36")](Vc("0x3a")).to(this,Vc("0x45"),(t=>t&&t[0]?t[0][Vc("0x3a")]:"")),this.bind("description").to(this,Vc("0x45"),this,Vc("0x4b"),((t,e)=>{let n="";for(const e of t)n+=Vc("0x12")+zc(e[Vc("0x41")],e[Vc("0x16")])+Vc("0x8");return e?n:(0,i.trimHtml)(n,{limit:140})})),this._descriptionElement=null,this[Vc("0x4")]=this[Vc("0x22")](Qo(e,Vc("0x1a")),t.icons[Vc("0x3e")],Vc("0x14"),Vc("0x40"),"sw"),this.acceptButton[Vc("0x36")](Vc("0x44")).to(this,Vc("0xc")),this.discardButton=this[Vc("0x22")](Qo(e,Vc("0x2")),t.icons[Vc("0x21")],"ck-suggestion--discard",Vc("0x17"),"sw"),this[Vc("0x24")][Vc("0x36")](Vc("0x44")).to(this,Vc("0x19")),this.userView=new i.UserView(e,this[Vc("0x2c")][Vc("0xf")],this[Vc("0x33")]()),this[Vc("0x42")][Vc("0x2a")]({attributes:{class:["ck-suggestion__user",Vc("0x0")]}}),this[Vc("0x29")](this[Vc("0x49")]())}[Vc("0x49")](){const t=this.bindTemplate,e=[{tag:Vc("0x35"),attributes:{class:["ck-suggestion__info",Vc("0xa")]},children:[{tag:Vc("0x7"),children:[{text:this.userView[Vc("0x4d")]}],attributes:{class:[Vc("0x47"),Vc("0x53")]}},{tag:Vc("0x10"),attributes:{datetime:t.to(Vc("0x13")),class:[Vc("0x48"),Vc("0x2f")]},children:[{text:t.to("authoredAt",(t=>this._config[Vc("0x2e")](t)))}]}]},{tag:Vc("0x35"),attributes:{class:[Vc("0x4f"),"ck-annotation__actions"]},children:[this[Vc("0x4")],this[Vc("0x24")]]},{tag:"div",attributes:{class:["ck-annotation__content-wrapper"]}}];this._model.isExternal&&e[Vc("0x4e")]({tag:Vc("0x35"),attributes:{class:[Vc("0x18")]},children:[{text:this.getExternalSuggestionNote()}]});const n={tag:Vc("0x35"),attributes:{class:[Vc("0x4a"),t.if(Vc("0x4b"),Vc("0x54")),t.to(Vc("0x3a"),(t=>"ck-suggestion-"+t)),this[Vc("0x1d")].disableComments&&Vc("0x15")],"data-suggestion-id":this[Vc("0x2c")].id,"data-thread-id":this[Vc("0x2c")][Vc("0x37")].id,"data-author-id":this[Vc("0x2c")][Vc("0xf")].id,tabindex:-1},children:[{tag:Vc("0x35"),attributes:{class:[Vc("0x38"),Vc("0x1f")]},children:[this[Vc("0x42")],{tag:"div",attributes:{class:[Vc("0x1b"),"ck-annotation__main"]},children:e}]}]};return this[Vc("0x5")]&&this.commentThreadInputView&&(n[Vc("0x1")][Vc("0x4e")](this[Vc("0x5")],this[Vc("0x3d")]),this[Vc("0x5")][Vc("0x43")](Vc("0x31")).to(this),this[Vc("0x5")][Vc("0x43")]("editorDestroyed").to(this),this.commentThreadInputView[Vc("0x43")](Vc("0x31")).to(this),this[Vc("0x3d")][Vc("0x43")](Vc("0x39")).to(this)),n}[Vc("0x30")](){super[Vc("0x30")](),this._descriptionElement=this[Vc("0x50")][Vc("0x27")](Vc("0x11")),this[Vc("0x25")][Vc("0x32")]=this.description,this.on("change:description",((t,e,n)=>{this[Vc("0x25")][Vc("0x32")]=n}))}_createButton(t,e,n,o,i){const s=new r.ButtonView(this[Vc("0x9")]);return s[Vc("0x3b")]({label:t,icon:e,tooltip:!0,tooltipPosition:i}),s[Vc("0x2a")]({attributes:{class:n}}),s.on(Vc("0x2b"),(()=>{this.fire(o,this._model.id)})),s}[Vc("0x34")](){return"importWord"===this[Vc("0x2c")][Vc("0xb")]["@external"][Vc("0x1e")]?Qo(this[Vc("0x9")],Vc("0x28")):Qo(this[Vc("0x9")],Vc("0x1c"))}[Vc("0x33")](){return this[Vc("0x2c")][Vc("0x3")]?"importWord"===this[Vc("0x2c")].attributes[Vc("0x52")][Vc("0x1e")]?Qo(this[Vc("0x9")],"EXTERNAL_IMPORT_WORD_AVATAR",this[Vc("0x2c")][Vc("0x46")][Vc("0x4d")]):Qo(this[Vc("0x9")],"EXTERNAL_AVATAR",this._model[Vc("0x46")].name):null}}function zc(t,e){let n="";return n+=t[Vc("0x2d")]("*")[Vc("0x3c")](((t,e)=>e%2!=0?Vc("0x51")+Wc(t)+Vc("0x23"):Wc(t)))[Vc("0xe")](""),e&&(n+=Vc("0x26")+e[Vc("0x3f")]+'" title="'+e[Vc("0x20")]+Vc("0x6")),n}function Wc(t){const e=document[Vc("0x4c")](Vc("0x7"));return e[Vc("0xd")]=t,e[Vc("0x32")]}const Kc=["trackChanges.disableComments","commandName","keys","_createUIButton","config","refreshSelectedViews","CommentsRepository","createCommentThreadController","destroy","isEnabled","change:activeAnnotations","requires","_updateController","getAllAdjacentSuggestions","type","isOn","_handleControllerBuffer","createAnnotation","reduce","Accept all suggestions","getRanges","filter","_initializeController","locale","commands","_destroyController","pluginName","descriptionParts","acceptAllSuggestions","unbind","Discard all suggestions","view","Annotations","isInContent","clear","_descriptionFactory","createAnnotationView","_disableComments","get","getJoined","suggestionLoaded","arrowView","addComment","hasSuggestion","editor","_refreshActiveMarkers","componentFactory","set","TrackChangesUI","Discard all selected suggestions","source","model","TrackChangesEditing","size","acceptButton","mainView","plugins","delete","focus","Accept all selected suggestions","execute","bind","CommentsUI","SuggestionThreadView","getMarkers","trackChanges","buttonView","getDescriptions","editing","activeMarkers","previous","comments.maxThreadTotalWeight","remove","lowest","isDirty","length","suggestionChanged","discardAllSuggestions","some","EditorAnnotations","has","change:previous","head","suggestion-","comments.maxCommentCharsWhenCollapsed","separator","init","push","_viewToController","switchbutton","from","_handleSuggestionControllerDelayed","_annotationViews","map","listenTo","button","discardSelectedSuggestions","_suggestionToController"];var qc,$c;qc=Kc,$c=307,function(t){for(;--t;)qc.push(qc.shift())}(++$c);const Xc=function(t,e){return Kc[t-=0]};class Zc extends t.Plugin{static get[Xc("0x60")](){return[hc,i.Users,Xc("0x5b"),"Annotations","EditorAnnotations"]}static get[Xc("0xd")](){return Xc("0x23")}constructor(t){super(t),this[Xc("0x54")]=new Map,this[Xc("0x4b")]=new Map,this[Xc("0x4f")]=new Map,this._handleControllerBuffer=new Map;const e=this.editor[Xc("0x59")];e.define("trackChanges.SuggestionThreadView",Hc),e.define("trackChanges.disableComments",!1),this[Xc("0x18")]=e[Xc("0x19")](Xc("0x55"))}[Xc("0x4e")](t,e){0===this._handleControllerBuffer[Xc("0x28")]&&setTimeout((()=>{for(const[t,e]of this[Xc("0x3")]){const n=this[Xc("0x54")][Xc("0x43")](t);n||e?n&&e&&this._destroyController(t):this[Xc("0x9")](t)}this[Xc("0x1f")][Xc("0x2b")].get("EditorAnnotations")[Xc("0x5a")](),this._refreshActiveMarkers(),this[Xc("0x3")][Xc("0x15")]()}),10),this[Xc("0x3")][Xc("0x22")](t,e)}[Xc("0x49")](){const t=this[Xc("0x1f")],e=t[Xc("0x2b")][Xc("0x19")](Xc("0x27")),n=t[Xc("0x2b")][Xc("0x19")](Xc("0x13")),o=t.plugins[Xc("0x19")](Xc("0x42")),r=t[Xc("0x2b")][Xc("0x19")](Xc("0x5b"));t.ui[Xc("0x21")].add("trackChanges",(t=>this[Xc("0x58")](t))),o.addSourceCollector((()=>{const t=[];for(const[e,n]of Array[Xc("0x4d")](this[Xc("0x54")])){const o=e[Xc("0x0")](),r=[];for(const t of o){if(!t.isInContent)continue;if(t.isMultiRange){r.push(...t[Xc("0x7")]());continue}const e=t.getFirstRange();if(r.length>0){const t=r[0][Xc("0x1a")](e);if(t){r[0]=t;continue}}r.push(e)}t[Xc("0x4a")]([n[Xc("0x12")],r])}return t})),this[Xc("0x51")](e,Xc("0x1b"),((t,e)=>{this[Xc("0x51")](e,Xc("0x44"),((t,n,o,r)=>{e[Xc("0x14")]&&(null==o?(this[Xc("0x61")](r.head),this[Xc("0x4e")](e,!1)):(this[Xc("0x61")](o[Xc("0x45")]),null==r&&this[Xc("0x4e")](e,!0)))})),null!==e[Xc("0x39")]?this[Xc("0x61")](e[Xc("0x45")]):this[Xc("0x4e")](e,!1)})),this[Xc("0x51")](e,"suggestionUnloaded",((t,e,n)=>{this.stopListening(e,Xc("0x44")),this[Xc("0x3")][Xc("0x2c")](e),this[Xc("0x54")].has(e)&&this[Xc("0xc")](e),n&&this[Xc("0x61")](n[Xc("0x45")])})),this[Xc("0x51")](e,Xc("0x3f"),((t,e)=>{this._updateController(e)})),this.listenTo(n,Xc("0x5f"),(()=>{this[Xc("0x20")]()})),this[Xc("0x51")](r,Xc("0x1d"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Xc("0x1e")](n))return;const r=e.getSuggestion(n);this[Xc("0x54")][Xc("0x19")](r)[Xc("0x12")][Xc("0x2d")]()}),{priority:Xc("0x3c")})}[Xc("0x20")](){const t=this.editor[Xc("0x2b")][Xc("0x19")](Xc("0x13")),e=this[Xc("0x1f")][Xc("0x2b")][Xc("0x19")]("TrackChangesEditing"),n=Array[Xc("0x4d")](t.activeAnnotations,(t=>t.innerView)).filter((t=>this[Xc("0x4b")][Xc("0x43")](t))),o=[];for(const t of n){const e=this[Xc("0x4b")][Xc("0x19")](t)[Xc("0x26")][Xc("0x0")]();o[Xc("0x4a")](...e[Xc("0x5")](((t,e)=>[...t,...e.getMarkerNames()]),[]))}e[Xc("0x38")]=o}_createUIButton(t){const n=(0,r.createDropdown)(t,r.SplitButtonView),o=this[Xc("0x1f")][Xc("0xb")].get("trackChanges"),i=Qo(t,"Track changes");n[Xc("0x35")][Xc("0x22")]({tooltip:i,label:i,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[Xc("0x35")][Xc("0x30")](Xc("0x2")).to(o,"value"),n[Xc("0x35")].on(Xc("0x2f"),(()=>{o[Xc("0x2f")](),this[Xc("0x1f")][Xc("0x37")].view[Xc("0x2d")]()}));const s=new e.Collection,x=[{type:Xc("0x4c"),model:{withText:!0,label:i,commandName:Xc("0x34")}},{type:"separator"},{type:"button",model:{withText:!0,label:Qo(t,Xc("0x6")),commandName:Xc("0xf")}},{type:"button",model:{withText:!0,label:Qo(t,Xc("0x2e")),commandName:"acceptSelectedSuggestions"}},{type:Xc("0x52"),model:{withText:!0,label:Qo(t,Xc("0x11")),commandName:Xc("0x40")}},{type:Xc("0x52"),model:{withText:!0,label:Qo(t,Xc("0x24")),commandName:Xc("0x53")}}];for(const t of x){let e={type:Xc("0x48")};if(t[Xc("0x26")]){const n=new r.Model(t[Xc("0x26")]),o=this[Xc("0x1f")][Xc("0xb")][Xc("0x19")](n.commandName);n[Xc("0x30")]("isOn",Xc("0x5e")).to(o,"value","isEnabled"),e={type:t.type,model:n}}s.add(e)}(0,r.addListToDropdown)(n,s);const a=x[Xc("0x8")]((t=>null!=t[Xc("0x26")]))[Xc("0x50")]((t=>this[Xc("0x1f")].commands.get(t[Xc("0x26")][Xc("0x56")]))),c=n[Xc("0x35")];return c.actionView.unbind(Xc("0x5e")),c[Xc("0x1c")][Xc("0x10")]("isEnabled"),c.actionView[Xc("0x30")]("isEnabled").to(o,Xc("0x5e")),c.arrowView[Xc("0x30")](Xc("0x5e")).toMany(a,"isEnabled",((...t)=>t[Xc("0x41")]((t=>t)))),n.on(Xc("0x2f"),(t=>{this.editor[Xc("0x2f")](t[Xc("0x25")][Xc("0x56")]),this[Xc("0x1f")].editing[Xc("0x12")][Xc("0x2d")]()})),n}[Xc("0x9")](t){const e=this.editor,n=e.config,o=e.plugins[Xc("0x19")](Xc("0x13")),r=e[Xc("0x2b")][Xc("0x19")](Xc("0x5b")),s=e.plugins[Xc("0x19")](Xc("0x42")),x=e[Xc("0x2b")][Xc("0x19")](i.Users).me,a=n.get("trackChanges")[Xc("0x32")],{CommentsListView:c,CommentThreadInputView:l}=e[Xc("0x2b")][Xc("0x19")](Xc("0x31"));let u,d;this._annotationViews.has(t.id)?(d=this._annotationViews.get(t.id),u=d[Xc("0x2a")]):(u=new a(e[Xc("0xa")],t,x,{disableComments:this[Xc("0x18")],editorConfig:n[Xc("0x19")]("comments.editorConfig"),maxCommentsWhenCollapsed:n[Xc("0x19")]("comments.maxCommentsWhenCollapsed"),maxThreadTotalWeight:n.get(Xc("0x3a")),maxCommentCharsWhenCollapsed:n.get(Xc("0x47")),formatDateTime:(0,i.getDateTimeFormatter)(n[Xc("0x19")]("locale")),CommentView:n.get("comments").CommentView,CommentsListView:c,CommentThreadInputView:l}),u[Xc("0x29")].on("execute",(()=>{e[Xc("0x37")][Xc("0x12")].focus()})),u.discardButton.on(Xc("0x2f"),(()=>{e[Xc("0x37")][Xc("0x12")][Xc("0x2d")]()})),d=o[Xc("0x17")](this[Xc("0x1f")][Xc("0xa")],u),d.bind(Xc("0x3d")).to(u,Xc("0x3d")),d.bind(Xc("0x3e")).to(u),d[Xc("0x30")](Xc("0x1")).to(u,"type",(t=>Xc("0x46")+t)),this[Xc("0x4f")][Xc("0x22")](t.id,d));const g=r[Xc("0x5c")](t.commentThread,u),f=new wc(e,t,u,g),m=t.getAllAdjacentSuggestions()[Xc("0x8")]((t=>t[Xc("0x14")]));u[Xc("0xe")]=e[Xc("0x2b")][Xc("0x19")](Xc("0x27"))[Xc("0x16")][Xc("0x36")](m),this[Xc("0x54")].set(t,f),this[Xc("0x4b")][Xc("0x22")](u,f);const h=o[Xc("0x4")]({view:d,target:()=>{const n=[],o=t[Xc("0x0")]()[Xc("0x8")]((t=>t[Xc("0x14")]));for(const t of o)n.push(...t[Xc("0x33")]());return(0,i.getAllMarkersDomElementsSorted)(e[Xc("0x37")],n)},type:()=>Xc("0x46")+f[Xc("0x12")].type});r._bindAnnotationToEditors(u,h),o.add(h),s.registerAnnotation(h)}[Xc("0xc")](t){const e=this.editor.plugins[Xc("0x19")](Xc("0x5b")),n=this[Xc("0x1f")][Xc("0x2b")][Xc("0x19")](Xc("0x13")),o=this._suggestionToController.get(t),r=o[Xc("0x12")],i=n.getByInnerView(r);e._unbindEditors(r),i&&n[Xc("0x3b")](i),this[Xc("0x54")][Xc("0x2c")](t),this[Xc("0x4b")].delete(r),o.destroy()}[Xc("0x61")](t){if(!t[Xc("0x14")]||!this[Xc("0x54")][Xc("0x43")](t))return;const e=this[Xc("0x1f")][Xc("0x2b")][Xc("0x19")](Xc("0x27")),n=this[Xc("0x54")][Xc("0x19")](t),o=t[Xc("0x0")]();n[Xc("0x12")][Xc("0xe")]=e[Xc("0x16")][Xc("0x36")](o)}[Xc("0x5d")](){for(const t of this[Xc("0x54")][Xc("0x57")]())this._destroyController(t);for(const t of this[Xc("0x4f")].values())t[Xc("0x2a")][Xc("0x5d")]();super[Xc("0x5d")]()}}var Yc,Jc,Qc=["editor","plugins","Comments","addSuggestionData","TrackChanges","adapter","getSuggestions","get","pluginName"];Yc=Qc,Jc=295,function(t){for(;--t;)Yc.push(Yc.shift())}(++Jc);var tl=function(t,e){return Qc[t-=0]};class el extends t.Plugin{static get requires(){return[hc,Zc,tl("0x4")]}static get[tl("0x1")](){return tl("0x6")}set adapter(t){this.editor[tl("0x3")][tl("0x0")](hc)[tl("0x7")]=t}get[tl("0x7")](){return this.editor.plugins[tl("0x0")](hc)[tl("0x7")]}addSuggestion(t){return this[tl("0x2")][tl("0x3")][tl("0x0")](hc)[tl("0x5")](t)}[tl("0x8")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[tl("0x2")][tl("0x3")][tl("0x0")](hc)[tl("0x8")]({skipNotAttached:t,toJSON:e})}getSuggestion(t){return this.editor[tl("0x3")][tl("0x0")](hc).getSuggestion(t)}}const nl=["editor","get","getFullData","getDataWithAcceptedSuggestions","Pagination","div","pluginName","getUser","getRootNames","track-changes-data-invalid-editor-creator","CommentsRepository","appendChild","set","acceptAllSuggestions","TrackChangesDataGetter","editorCreator","init","discardAllSuggestions","map","config","trackChangesData","function","reduce","model","constructor","Users","TrackChangesEditing","name","end","destroy","rootsAttributes","result","plugins","users","createDocumentFragment","requires","create","getDataWithDiscardedSuggestions","addUser","createElement","define","useAnonymousUser","_adapter"];var ol,rl;ol=nl,rl=164,function(t){for(;--t;)ol.push(ol.shift())}(++rl);const il=function(t,e){return nl[t-=0]},sl=[il("0xc")];class xl extends t.Plugin{static get[il("0x0")](){return[hc]}static get[il("0xe")](){return"TrackChangesData"}[il("0x18")](){const t=this[il("0x8")];if(t[il("0x1b")][il("0x5")]("trackChangesData.editorCreator",(e=>{const n=t[il("0x1f")].document[il("0x10")]()[il("0x1e")](((t,e)=>(t[e]="",t)),{});return t[il("0x20")][il("0x1")](n,e)})),il("0x1d")!=typeof t[il("0x1b")][il("0x9")]("trackChangesData")[il("0x17")])throw new e.CKEditorError(il("0x11"))}[il("0xb")](t){return ll(this[il("0x8")],!0,t)}[il("0x2")](t){return ll(this.editor,!1,t)}}class al extends t.Plugin{static get[il("0xe")](){return il("0x16")}constructor(t){super(t),this[il("0x27")]=il("0x24")}init(){this.editor.plugins[il("0x9")](il("0x12"))[il("0x7")]={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this.editor.plugins[il("0x9")](il("0x22"))[il("0x7")]=null}}function cl(t){return void 0!==t.getRootsAttributes}async function ll(t,e,n){const o=(0,i.sanitizeEditorConfig)(t,sl);o[il("0x28")].push(hc,al),o[il("0x26")]=cl(t)?t.getRootsAttributes():void 0;const r=document[il("0x2a")](),s=t[il("0x1b")][il("0x9")](il("0x1c"))[il("0x17")],x=await s(o,(()=>function(t){const e=document[il("0x4")](il("0xd"));return t[il("0x13")](e),e}(r)));!function(t,e){const n=t[il("0x1f")].document.getRootNames()[il("0x1e")](((e,n)=>(e[n]=t.data[il("0x9")]({rootName:n}),e)),{}),o=t.plugins[il("0x9")](il("0x21"))[il("0x29")][il("0x1a")]((t=>({id:t.id,name:t[il("0x23")]}))),r=t[il("0x28")][il("0x9")](il("0x22")).getSuggestions({skipNotAttached:!0,toJSON:!0}),i=e.plugins[il("0x9")](il("0x21")),s=e.plugins[il("0x9")]("TrackChangesEditing");for(const t of o)i[il("0xf")](t.id)||i[il("0x3")](t);i.me||i[il("0x6")]();for(const t of r)s.addSuggestionData(t);e.data[il("0x14")](n)}(t,x),x.execute(il(e?"0x15":"0x19"));const a=cl(x)?x[il("0xa")](n):x.data.get(n);return await x[il("0x25")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|