UNPKG

@ckeditor/ckeditor5-track-changes

Version:

CKEditor 5 track changes plugin.

23 lines • 22.8 kB
/* * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved. * * * * * +---------------------------------------------------------------------------------+ * | | * | Hello stranger! | * | | * | | * | What you're currently looking at is the source code of a legally protected, | * | proprietary software. Any attempts to deobfuscate / disassemble this code | * | are forbidden and will result in legal consequences. | * | | * | | * +---------------------------------------------------------------------------------+ * * * * */ const _0x2ce6d5=_0x21de;(function(_0x17970e,_0x37aaec){const _0x178bd8=_0x21de,_0x2959d9=_0x17970e();while(!![]){try{const _0x16b296=parseInt(_0x178bd8(0x160))/0x1*(parseInt(_0x178bd8(0x1ab))/0x2)+-parseInt(_0x178bd8(0x19e))/0x3+-parseInt(_0x178bd8(0x1a7))/0x4*(-parseInt(_0x178bd8(0x17b))/0x5)+-parseInt(_0x178bd8(0x1a6))/0x6+parseInt(_0x178bd8(0x14f))/0x7+parseInt(_0x178bd8(0x14e))/0x8+parseInt(_0x178bd8(0x196))/0x9*(-parseInt(_0x178bd8(0x144))/0xa);if(_0x16b296===_0x37aaec)break;else _0x2959d9['push'](_0x2959d9['shift']());}catch(_0x592685){_0x2959d9['push'](_0x2959d9['shift']());}}}(_0x5813,0x9dea4));import{Plugin as _0x1dc0d7}from'ckeditor5/src/core.js';import{Collection as _0x2bac89}from'ckeditor5/src/utils.js';import{IconTrackChanges as _0x51fb27}from'ckeditor5/src/icons.js';import{addListToDropdown as _0x2e2540,createDropdown as _0x35a1a8,ListSeparatorView as _0x19e677,MenuBarMenuView as _0x510aa0,MenuBarMenuListView as _0x118644,MenuBarMenuListItemView as _0x52132f,MenuBarMenuListItemButtonView as _0x43d64c,SplitButtonView as _0x55c137,UIModel as _0x4fe9c8}from'ckeditor5/src/ui.js';import{Users as _0x4f9e84,getDateTimeFormatter as _0x4feb2c,getAllMarkersDomElementsSorted as _0x59b042}from'ckeditor5-collaboration/src/collaboration-core.js';import{TrackChangesEditing as _0x3caa85}from'./trackchangesediting.js';import{SuggestionController as _0x4de2eb}from'./ui/suggestioncontroller.js';import{SuggestionThreadView as _0x39c5b7}from'./ui/view/suggestionthreadview.js';import{SuggestionView as _0x5766ef}from'./ui/view/suggestionview.js';import{getTranslation as _0x1ba2fe}from'./utils/common-translations.js';function _0x21de(_0x2549db,_0x3da104){const _0x581304=_0x5813();return _0x21de=function(_0x21de0d,_0x2d181b){_0x21de0d=_0x21de0d-0x12e;let _0x9380cf=_0x581304[_0x21de0d];return _0x9380cf;},_0x21de(_0x2549db,_0x3da104);}export class TrackChangesUI extends _0x1dc0d7{[_0x2ce6d5(0x161)];[_0x2ce6d5(0x18d)];[_0x2ce6d5(0x157)];[_0x2ce6d5(0x191)];[_0x2ce6d5(0x1aa)];[_0x2ce6d5(0x176)];[_0x2ce6d5(0x168)];static get[_0x2ce6d5(0x1ae)](){const _0x24d9fb=_0x2ce6d5;return[_0x3caa85,_0x4f9e84,_0x24d9fb(0x198),_0x24d9fb(0x199),_0x24d9fb(0x1b6)];}static get[_0x2ce6d5(0x165)](){const _0x3c9660=_0x2ce6d5;return _0x3c9660(0x133);}static get[_0x2ce6d5(0x188)](){return!0x0;}static get[_0x2ce6d5(0x1b2)](){return!0x0;}constructor(_0x53fed9){const _0x12e82a=_0x2ce6d5;super(_0x53fed9),this[_0x12e82a(0x157)]=new Map(),this[_0x12e82a(0x191)]=new Map(),this[_0x12e82a(0x1aa)]=new Map(),this[_0x12e82a(0x176)]=new Map();const _0x239ccc=this[_0x12e82a(0x167)][_0x12e82a(0x1af)];_0x239ccc[_0x12e82a(0x1b0)](_0x12e82a(0x193),_0x39c5b7),_0x239ccc[_0x12e82a(0x1b0)](_0x12e82a(0x153),_0x5766ef),_0x239ccc[_0x12e82a(0x1b0)](_0x12e82a(0x15b),!0x1),this[_0x12e82a(0x168)]=_0x239ccc[_0x12e82a(0x185)](_0x12e82a(0x15b));}[_0x2ce6d5(0x1dd)](_0x3d0155,_0x295371){const _0x109b69=_0x2ce6d5;0x0===this[_0x109b69(0x176)][_0x109b69(0x1cc)]&&setTimeout(()=>{const _0x20fa2a=_0x109b69;for(const [_0x3ee378,_0x24b57b]of this[_0x20fa2a(0x176)]){const _0x22433e=this[_0x20fa2a(0x157)][_0x20fa2a(0x1a1)](_0x3ee378);_0x22433e||_0x24b57b?_0x22433e&&_0x24b57b&&this[_0x20fa2a(0x156)](_0x3ee378):this[_0x20fa2a(0x164)](_0x3ee378);}this[_0x20fa2a(0x176)][_0x20fa2a(0x19f)](),this[_0x20fa2a(0x167)][_0x20fa2a(0x1b4)][_0x20fa2a(0x185)](_0x20fa2a(0x1b6))[_0x20fa2a(0x14c)](),this[_0x20fa2a(0x18e)]();},0xa),this[_0x109b69(0x176)][_0x109b69(0x154)](_0x3d0155,_0x295371);}[_0x2ce6d5(0x1cf)](){const _0x4a92ae=_0x2ce6d5,_0x5a3b86=this[_0x4a92ae(0x167)],_0x11773d=_0x5a3b86[_0x4a92ae(0x1b4)][_0x4a92ae(0x185)](_0x4a92ae(0x1c6)),_0x1f1e1e=_0x5a3b86[_0x4a92ae(0x1b4)][_0x4a92ae(0x185)](_0x4a92ae(0x199)),_0x11e708=_0x5a3b86[_0x4a92ae(0x1b4)][_0x4a92ae(0x185)](_0x4a92ae(0x1b6)),_0x101573=_0x5a3b86[_0x4a92ae(0x1b4)][_0x4a92ae(0x185)](_0x4a92ae(0x198));this[_0x4a92ae(0x143)](),_0x11e708[_0x4a92ae(0x16e)](()=>{const _0x1ba172=_0x4a92ae,_0x5a422a=[];for(const [_0x53f1cd,_0x956a98]of Array[_0x1ba172(0x1cb)](this[_0x1ba172(0x157)])){const _0x5f490c=_0x53f1cd[_0x1ba172(0x13b)](),_0x4badee=[];for(const _0x4aae45 of _0x5f490c){if(!_0x4aae45[_0x1ba172(0x1c8)])continue;if(_0x4aae45[_0x1ba172(0x179)]){_0x4badee[_0x1ba172(0x142)](..._0x4aae45[_0x1ba172(0x183)]());continue;}const _0x4c4355=_0x4aae45[_0x1ba172(0x19d)]();if(_0x4badee[_0x1ba172(0x1ca)]>0x0){const _0x434b53=_0x4badee[0x0][_0x1ba172(0x155)](_0x4c4355);if(_0x434b53){_0x4badee[0x0]=_0x434b53;continue;}}_0x4badee[_0x1ba172(0x142)](_0x4c4355);}_0x5a422a[_0x1ba172(0x142)]([_0x956a98[_0x1ba172(0x1db)],_0x4badee]);}return _0x5a422a;}),this[_0x4a92ae(0x135)](_0x11773d,_0x4a92ae(0x1d6),(_0xfdd03e,_0x32b37d)=>{const _0x1e21c2=_0x4a92ae;this[_0x1e21c2(0x135)](_0x32b37d,_0x1e21c2(0x1d9),(_0x26d6af,_0x14b463,_0x1570a9,_0x380268)=>{const _0x7899ae=_0x1e21c2;_0x32b37d[_0x7899ae(0x1c8)]&&(null==_0x1570a9?(this[_0x7899ae(0x1c2)](_0x380268[_0x7899ae(0x1df)]),this[_0x7899ae(0x1dd)](_0x32b37d,!0x1)):(this[_0x7899ae(0x1c2)](_0x1570a9[_0x7899ae(0x1df)]),null==_0x380268&&this[_0x7899ae(0x1dd)](_0x32b37d,!0x0)));}),null!==_0x32b37d[_0x1e21c2(0x1de)]?this[_0x1e21c2(0x1c2)](_0x32b37d[_0x1e21c2(0x1df)]):this[_0x1e21c2(0x1dd)](_0x32b37d,!0x1);}),this[_0x4a92ae(0x135)](_0x11773d,_0x4a92ae(0x16d),(_0x52e75c,_0x1f457d,_0x157856)=>{const _0x383074=_0x4a92ae;this[_0x383074(0x1a9)](_0x1f457d,_0x383074(0x1d9)),this[_0x383074(0x176)][_0x383074(0x13c)](_0x1f457d),this[_0x383074(0x157)][_0x383074(0x1a1)](_0x1f457d)&&this[_0x383074(0x156)](_0x1f457d),_0x157856&&this[_0x383074(0x1c2)](_0x157856[_0x383074(0x1df)]);}),this[_0x4a92ae(0x135)](_0x11773d,_0x4a92ae(0x1ba),(_0xb60f15,_0x23de26)=>{const _0x7e05de=_0x4a92ae;this[_0x7e05de(0x1c2)](_0x23de26);}),this[_0x4a92ae(0x135)](_0x1f1e1e,_0x4a92ae(0x137),()=>{const _0x40858e=_0x4a92ae;this[_0x40858e(0x18e)]();}),this[_0x4a92ae(0x135)](_0x101573,_0x4a92ae(0x190),(_0x1152b7,{threadId:_0x302e7a,isFromAdapter:_0x20f702})=>{const _0x47e4f9=_0x4a92ae;if(_0x20f702||!_0x11773d[_0x47e4f9(0x14b)](_0x302e7a))return;const _0x3994b3=_0x11773d[_0x47e4f9(0x1d1)](_0x302e7a);this[_0x47e4f9(0x157)][_0x47e4f9(0x185)](_0x3994b3)[_0x47e4f9(0x1db)][_0x47e4f9(0x15d)][_0x47e4f9(0x15c)](-0x1);},{'priority':_0x4a92ae(0x1bd)}),this[_0x4a92ae(0x161)]=this[_0x4a92ae(0x167)][_0x4a92ae(0x1af)][_0x4a92ae(0x185)](_0x4a92ae(0x161));const _0x264e98=this[_0x4a92ae(0x167)];this[_0x4a92ae(0x18d)]=setInterval(()=>{const _0x3166be=_0x4a92ae;let _0x2bbfe5;for(const _0x450308 in _0x264e98){const _0x4b958f=_0x450308,_0x12c39c=_0x264e98[_0x4b958f];if(_0x3166be(0x148)==_0x12c39c||_0x3166be(0x1d8)==_0x12c39c||_0x3166be(0x1b3)==_0x12c39c||_0x3166be(0x150)==_0x12c39c||_0x3166be(0x1c4)==_0x12c39c||_0x3166be(0x189)==_0x12c39c||_0x3166be(0x1d3)==_0x12c39c||_0x3166be(0x186)==_0x12c39c){delete _0x264e98[_0x4b958f],_0x2bbfe5=_0x12c39c,clearInterval(this[_0x3166be(0x18d)]),this[_0x3166be(0x18d)]=void 0x0;break;}}_0x3166be(0x1d8)==_0x2bbfe5&&_0x264e98[_0x3166be(0x15e)](_0x3166be(0x1c1)),_0x3166be(0x1b3)==_0x2bbfe5&&_0x264e98[_0x3166be(0x15e)](_0x3166be(0x1c5)),_0x3166be(0x150)==_0x2bbfe5&&_0x264e98[_0x3166be(0x15e)](_0x3166be(0x16b)),_0x3166be(0x1c4)==_0x2bbfe5&&_0x264e98[_0x3166be(0x15e)](_0x3166be(0x12f),_0x3166be(0x1d2)),_0x3166be(0x189)==_0x2bbfe5&&_0x264e98[_0x3166be(0x15e)](_0x3166be(0x146)),_0x3166be(0x1d3)==_0x2bbfe5&&_0x264e98[_0x3166be(0x15e)](_0x3166be(0x170)),_0x3166be(0x186)==_0x2bbfe5&&_0x264e98[_0x3166be(0x15e)](_0x3166be(0x169));},0x3e8);}[_0x2ce6d5(0x1bb)](_0x4ced2d){const _0x43de63=_0x2ce6d5,_0x141f80=this[_0x43de63(0x157)][_0x43de63(0x185)](_0x4ced2d);if(!_0x141f80)return null;return this[_0x43de63(0x167)][_0x43de63(0x1b4)][_0x43de63(0x185)](_0x43de63(0x199))[_0x43de63(0x13a)](_0x141f80[_0x43de63(0x1db)])||null;}[_0x2ce6d5(0x173)](_0x2c8d8d){const _0x1dedb4=_0x2ce6d5,_0x118c3f=this[_0x1dedb4(0x191)][_0x1dedb4(0x185)](_0x2c8d8d[_0x1dedb4(0x163)]);return _0x118c3f?_0x118c3f[_0x1dedb4(0x17e)]:null;}[_0x2ce6d5(0x18e)](){const _0xf99975=_0x2ce6d5,_0x1a2905=this[_0xf99975(0x167)][_0xf99975(0x1b4)][_0xf99975(0x185)](_0xf99975(0x199)),_0x475f0c=this[_0xf99975(0x167)][_0xf99975(0x1b4)][_0xf99975(0x185)](_0xf99975(0x1c6)),_0xb2c232=Array[_0xf99975(0x1cb)](_0x1a2905[_0xf99975(0x130)],_0x2b3800=>_0x2b3800[_0xf99975(0x163)])[_0xf99975(0x17c)](_0x55150a=>this[_0xf99975(0x191)][_0xf99975(0x1a1)](_0x55150a)),_0x54bd5a=[];for(const _0x247fd7 of _0xb2c232){const _0x179a46=this[_0xf99975(0x191)][_0xf99975(0x185)](_0x247fd7)[_0xf99975(0x17e)][_0xf99975(0x13b)]();_0x54bd5a[_0xf99975(0x142)](..._0x179a46[_0xf99975(0x172)]((_0x4214ae,_0x457677)=>[..._0x4214ae,..._0x457677[_0xf99975(0x159)]()],[]));}_0x475f0c[_0xf99975(0x181)]=_0x54bd5a;}[_0x2ce6d5(0x143)](){const _0x38af0d=_0x2ce6d5,_0x5c3686=this[_0x38af0d(0x167)],_0x43e717=_0x5c3686[_0x38af0d(0x1cd)],_0x14d3df=_0x1ba2fe(_0x43e717,_0x38af0d(0x1d4)),_0x1460eb=new _0x2bac89([{'type':_0x38af0d(0x1c3),'model':new _0x4fe9c8({'withText':!0x0,'isToggleable':!0x0,'label':_0x14d3df,'commandName':_0x38af0d(0x171),'role':_0x38af0d(0x1d0)})},{'type':_0x38af0d(0x16f)},{'type':_0x38af0d(0x14a),'model':new _0x4fe9c8({'withText':!0x0,'label':_0x1ba2fe(_0x43e717,_0x38af0d(0x182)),'commandName':_0x38af0d(0x1d5),'role':_0x38af0d(0x140)})},{'type':_0x38af0d(0x14a),'model':new _0x4fe9c8({'withText':!0x0,'label':_0x1ba2fe(_0x43e717,_0x38af0d(0x141)),'commandName':_0x38af0d(0x19a),'role':_0x38af0d(0x140)})},{'type':_0x38af0d(0x14a),'model':new _0x4fe9c8({'withText':!0x0,'label':_0x1ba2fe(_0x43e717,_0x38af0d(0x192)),'commandName':_0x38af0d(0x1a8),'role':_0x38af0d(0x140)})},{'type':_0x38af0d(0x14a),'model':new _0x4fe9c8({'withText':!0x0,'label':_0x1ba2fe(_0x43e717,_0x38af0d(0x147)),'commandName':_0x38af0d(0x1b8),'role':_0x38af0d(0x140)})}]);_0x5c3686[_0x38af0d(0x1b4)][_0x38af0d(0x1a1)](_0x38af0d(0x1b9))&&_0x1460eb[_0x38af0d(0x151)]([{'type':_0x38af0d(0x16f)},{'type':_0x38af0d(0x14a),'model':new _0x4fe9c8({'withText':!0x0,'label':_0x1ba2fe(_0x43e717,_0x38af0d(0x184)),'commandName':_0x38af0d(0x18f),'role':_0x38af0d(0x140)})}]);for(const _0x1b2506 of _0x1460eb)if(Ee(_0x1b2506)){const _0x187837=_0x5c3686[_0x38af0d(0x18a)][_0x38af0d(0x185)](_0x1b2506[_0x38af0d(0x17e)][_0x38af0d(0x17f)]);_0x1b2506[_0x38af0d(0x17e)][_0x38af0d(0x195)](_0x38af0d(0x17a),_0x38af0d(0x149))['to'](_0x187837,_0x38af0d(0x1bf),_0x38af0d(0x149));}_0x5c3686['ui'][_0x38af0d(0x13f)][_0x38af0d(0x12e)](_0x38af0d(0x171),_0x30d6a9=>this[_0x38af0d(0x197)](_0x30d6a9,_0x1460eb,_0x14d3df)),_0x5c3686['ui'][_0x38af0d(0x13f)][_0x38af0d(0x12e)](_0x38af0d(0x16a),_0x2c0085=>this[_0x38af0d(0x158)](_0x2c0085,_0x1460eb,_0x14d3df));}[_0x2ce6d5(0x197)](_0x1d4662,_0x2e489d,_0x16580f){const _0x3c74ea=_0x2ce6d5,_0x581b7b=_0x35a1a8(_0x1d4662,_0x55c137),_0x5dfa7d=this[_0x3c74ea(0x167)][_0x3c74ea(0x18a)][_0x3c74ea(0x185)](_0x3c74ea(0x171));_0x581b7b[_0x3c74ea(0x134)][_0x3c74ea(0x154)]({'tooltip':_0x16580f,'label':_0x16580f,'icon':_0x51fb27}),_0x581b7b[_0x3c74ea(0x134)][_0x3c74ea(0x195)](_0x3c74ea(0x17a))['to'](_0x5dfa7d,_0x3c74ea(0x1bf)),_0x581b7b[_0x3c74ea(0x134)]['on'](_0x3c74ea(0x18b),()=>{const _0x5aba35=_0x3c74ea;_0x5dfa7d[_0x5aba35(0x18b)](),this[_0x5aba35(0x167)][_0x5aba35(0x194)][_0x5aba35(0x1db)][_0x5aba35(0x15c)]();}),_0x2e2540(_0x581b7b,_0x2e489d,{'role':_0x3c74ea(0x174)});const _0x40b769=[];for(const _0x32b0d8 of _0x2e489d)Ee(_0x32b0d8)&&_0x40b769[_0x3c74ea(0x142)](this[_0x3c74ea(0x167)][_0x3c74ea(0x18a)][_0x3c74ea(0x185)](_0x32b0d8[_0x3c74ea(0x17e)][_0x3c74ea(0x17f)]));const _0x23ea81=_0x581b7b[_0x3c74ea(0x134)];return _0x23ea81[_0x3c74ea(0x1c0)][_0x3c74ea(0x138)](_0x3c74ea(0x149)),_0x23ea81[_0x3c74ea(0x178)][_0x3c74ea(0x138)](_0x3c74ea(0x149)),_0x23ea81[_0x3c74ea(0x1c0)][_0x3c74ea(0x195)](_0x3c74ea(0x149))['to'](_0x5dfa7d,_0x3c74ea(0x149)),_0x23ea81[_0x3c74ea(0x178)][_0x3c74ea(0x195)](_0x3c74ea(0x149))[_0x3c74ea(0x18c)](_0x40b769,_0x3c74ea(0x149),(..._0x5de242)=>_0x5de242[_0x3c74ea(0x139)](_0xd8f8fe=>_0xd8f8fe)),_0x581b7b['on'](_0x3c74ea(0x18b),_0x1e3c43=>{const _0x500819=_0x3c74ea;this[_0x500819(0x167)][_0x500819(0x18b)](_0x1e3c43[_0x500819(0x16c)][_0x500819(0x17f)]),this[_0x500819(0x167)][_0x500819(0x194)][_0x500819(0x1db)][_0x500819(0x15c)]();}),_0x581b7b;}[_0x2ce6d5(0x158)](_0x36780b,_0x10f037,_0x1836a5){const _0x18bb26=_0x2ce6d5,_0x207bae=new _0x510aa0(_0x36780b),_0x46e5a9=this[_0x18bb26(0x167)][_0x18bb26(0x18a)][_0x18bb26(0x185)](_0x18bb26(0x171));_0x207bae[_0x18bb26(0x134)][_0x18bb26(0x154)]({'label':_0x1836a5,'icon':_0x51fb27});const _0x538042=new _0x118644(_0x36780b);for(const _0x49a7ee of _0x10f037){if(_0x18bb26(0x16f)==_0x49a7ee[_0x18bb26(0x1b7)]){_0x538042[_0x18bb26(0x177)][_0x18bb26(0x12e)](new _0x19e677(_0x36780b));continue;}const _0x2e7b2f=new _0x52132f(_0x36780b,_0x207bae),_0x145adc=new _0x43d64c(_0x36780b),_0x3138ee=_0x49a7ee[_0x18bb26(0x17e)];_0x145adc[_0x18bb26(0x195)](...Object[_0x18bb26(0x14d)](_0x3138ee))['to'](_0x3138ee),_0x145adc[_0x18bb26(0x19b)](_0x18bb26(0x18b))['to'](_0x207bae),_0x145adc['on'](_0x18bb26(0x18b),()=>{const _0x38e677=_0x18bb26;this[_0x38e677(0x167)][_0x38e677(0x18b)](_0x3138ee[_0x38e677(0x17f)]),this[_0x38e677(0x167)][_0x38e677(0x194)][_0x38e677(0x1db)][_0x38e677(0x15c)]();}),_0x2e7b2f[_0x18bb26(0x187)][_0x18bb26(0x12e)](_0x145adc),_0x538042[_0x18bb26(0x177)][_0x18bb26(0x12e)](_0x2e7b2f);}return _0x207bae[_0x18bb26(0x195)](_0x18bb26(0x149))['to'](_0x46e5a9,_0x18bb26(0x149)),_0x207bae[_0x18bb26(0x145)][_0x18bb26(0x187)][_0x18bb26(0x12e)](_0x538042),_0x207bae;}[_0x2ce6d5(0x164)](_0x69cf5c){const _0x1dadcf=_0x2ce6d5,_0x440bb1=this[_0x1dadcf(0x167)],_0x45b81f=_0x440bb1[_0x1dadcf(0x1af)],_0xff9602=_0x440bb1[_0x1dadcf(0x1b4)][_0x1dadcf(0x185)](_0x1dadcf(0x199)),_0x1f3361=_0x440bb1[_0x1dadcf(0x1b4)][_0x1dadcf(0x185)](_0x1dadcf(0x198)),_0x3781e6=_0x440bb1[_0x1dadcf(0x1b4)][_0x1dadcf(0x185)](_0x1dadcf(0x1b6)),_0x2cbaeb=_0x440bb1[_0x1dadcf(0x1b4)][_0x1dadcf(0x185)](_0x4f9e84)['me'],_0x27e0cf=_0x45b81f[_0x1dadcf(0x185)](_0x1dadcf(0x171))[_0x1dadcf(0x1be)],_0x475d2f=_0x45b81f[_0x1dadcf(0x185)](_0x1dadcf(0x171))[_0x1dadcf(0x1ad)],{CommentsListView:_0x156870,CommentThreadInputView:_0x565e82}=_0x440bb1[_0x1dadcf(0x1b4)][_0x1dadcf(0x185)](_0x1dadcf(0x1ac));let _0x5b14b6,_0x3554e9,_0x2f79c5;this[_0x1dadcf(0x1aa)][_0x1dadcf(0x1a1)](_0x69cf5c['id'])?(_0x3554e9=this[_0x1dadcf(0x1aa)][_0x1dadcf(0x185)](_0x69cf5c['id']),_0x5b14b6=_0x3554e9[_0x1dadcf(0x1d7)]):(_0x5b14b6=new _0x27e0cf(_0x440bb1[_0x1dadcf(0x1cd)],_0x69cf5c,_0x2cbaeb,{'disableComments':this[_0x1dadcf(0x168)],'editorConfig':{..._0x45b81f[_0x1dadcf(0x185)](_0x1dadcf(0x19c)),'licenseKey':_0x45b81f[_0x1dadcf(0x185)](_0x1dadcf(0x161))},'maxCommentsWhenCollapsed':_0x45b81f[_0x1dadcf(0x185)](_0x1dadcf(0x17d)),'maxThreadTotalWeight':_0x45b81f[_0x1dadcf(0x185)](_0x1dadcf(0x1b5)),'maxCommentCharsWhenCollapsed':_0x45b81f[_0x1dadcf(0x185)](_0x1dadcf(0x1a0)),'formatDateTime':_0x4feb2c(_0x45b81f[_0x1dadcf(0x185)](_0x1dadcf(0x1cd)),_0x440bb1[_0x1dadcf(0x1cd)]),'CommentView':_0x45b81f[_0x1dadcf(0x185)](_0x1dadcf(0x1a5))[_0x1dadcf(0x1da)],'CommentsListView':_0x156870,'CommentThreadInputView':_0x565e82,'SuggestionView':_0x475d2f}),_0x5b14b6[_0x1dadcf(0x131)][_0x1dadcf(0x13e)]['on'](_0x1dadcf(0x18b),()=>{const _0xf8e6a6=_0x1dadcf;_0x440bb1[_0xf8e6a6(0x194)][_0xf8e6a6(0x1db)][_0xf8e6a6(0x15c)]();}),_0x5b14b6[_0x1dadcf(0x131)][_0x1dadcf(0x1c9)]['on'](_0x1dadcf(0x18b),()=>{const _0x114162=_0x1dadcf;_0x440bb1[_0x114162(0x194)][_0x114162(0x1db)][_0x114162(0x15c)]();}),_0x3554e9=_0xff9602[_0x1dadcf(0x1b1)](this[_0x1dadcf(0x167)][_0x1dadcf(0x1cd)],_0x5b14b6),_0x3554e9[_0x1dadcf(0x195)](_0x1dadcf(0x175))['to'](_0x5b14b6,_0x1dadcf(0x175)),_0x3554e9[_0x1dadcf(0x195)](_0x1dadcf(0x1ca))['to'](_0x5b14b6),_0x3554e9[_0x1dadcf(0x195)](_0x1dadcf(0x1b7))['to'](_0x5b14b6,_0x1dadcf(0x1b7),_0x3a4352=>_0x1dadcf(0x15f)+_0x3a4352),_0x5b14b6['on'](_0x1dadcf(0x162),()=>{const _0x3be3ed=_0x1dadcf;_0x2f79c5[_0x3be3ed(0x1a3)](_0x3be3ed(0x162));}),this[_0x1dadcf(0x1aa)][_0x1dadcf(0x154)](_0x69cf5c['id'],_0x3554e9));const _0x514809=_0x1f3361[_0x1dadcf(0x1bc)](_0x69cf5c[_0x1dadcf(0x1ce)],_0x5b14b6),_0x42a784=new _0x4de2eb(_0x440bb1,_0x69cf5c,_0x5b14b6,_0x514809),_0x1de5dd=_0x69cf5c[_0x1dadcf(0x13b)]()[_0x1dadcf(0x17c)](_0xbf0c4d=>_0xbf0c4d[_0x1dadcf(0x1c8)]);_0x5b14b6[_0x1dadcf(0x1a2)]=_0x440bb1[_0x1dadcf(0x1b4)][_0x1dadcf(0x185)](_0x1dadcf(0x1c6))[_0x1dadcf(0x166)][_0x1dadcf(0x13d)](_0x1de5dd),this[_0x1dadcf(0x157)][_0x1dadcf(0x154)](_0x69cf5c,_0x42a784),this[_0x1dadcf(0x191)][_0x1dadcf(0x154)](_0x5b14b6,_0x42a784);const _0x5cd4e2=()=>{const _0x53751a=_0x1dadcf,_0x3833da=[],_0x559d21=_0x69cf5c[_0x53751a(0x13b)]()[_0x53751a(0x17c)](_0x367c73=>_0x367c73[_0x53751a(0x1c8)]);for(const _0x12c512 of _0x559d21)_0x3833da[_0x53751a(0x142)](..._0x12c512[_0x53751a(0x1dc)]());return _0x59b042(_0x440bb1[_0x53751a(0x194)],_0x3833da);};_0x2f79c5=_0xff9602[_0x1dadcf(0x132)]({'view':_0x3554e9,'target':_0x5cd4e2,'type':()=>_0x1dadcf(0x15f)+_0x42a784[_0x1dadcf(0x1db)][_0x1dadcf(0x1b7)],'isVisible':!!_0x5cd4e2()}),_0x1f3361[_0x1dadcf(0x136)](_0x5b14b6,_0x2f79c5),_0xff9602[_0x1dadcf(0x12e)](_0x2f79c5),_0x3781e6[_0x1dadcf(0x180)](_0x2f79c5);}[_0x2ce6d5(0x156)](_0x391c03){const _0x2b807c=_0x2ce6d5,_0x38be9b=this[_0x2b807c(0x167)][_0x2b807c(0x1b4)][_0x2b807c(0x185)](_0x2b807c(0x198)),_0x3d7c4c=this[_0x2b807c(0x167)][_0x2b807c(0x1b4)][_0x2b807c(0x185)](_0x2b807c(0x199)),_0x31e749=this[_0x2b807c(0x157)][_0x2b807c(0x185)](_0x391c03),_0x172bfc=_0x31e749[_0x2b807c(0x1db)],_0x9372d7=_0x3d7c4c[_0x2b807c(0x13a)](_0x172bfc);_0x38be9b[_0x2b807c(0x15a)](_0x172bfc),_0x9372d7&&_0x3d7c4c[_0x2b807c(0x152)](_0x9372d7),this[_0x2b807c(0x157)][_0x2b807c(0x13c)](_0x391c03),this[_0x2b807c(0x191)][_0x2b807c(0x13c)](_0x172bfc),_0x31e749[_0x2b807c(0x1a4)]();}[_0x2ce6d5(0x1c2)](_0x1cebac){const _0x3b5867=_0x2ce6d5;if(!_0x1cebac[_0x3b5867(0x1c8)]||!this[_0x3b5867(0x157)][_0x3b5867(0x1a1)](_0x1cebac))return;const _0x587bee=this[_0x3b5867(0x167)][_0x3b5867(0x1b4)][_0x3b5867(0x185)](_0x3b5867(0x1c6)),_0x369d7a=this[_0x3b5867(0x157)][_0x3b5867(0x185)](_0x1cebac),_0x1a40d6=_0x1cebac[_0x3b5867(0x13b)]();_0x369d7a[_0x3b5867(0x1db)][_0x3b5867(0x1a2)]=_0x587bee[_0x3b5867(0x166)][_0x3b5867(0x13d)](_0x1a40d6);}[_0x2ce6d5(0x1a4)](){const _0x52168b=_0x2ce6d5;for(const _0x9e265 of this[_0x52168b(0x157)][_0x52168b(0x14d)]())this[_0x52168b(0x156)](_0x9e265);for(const _0x35b7e0 of this[_0x52168b(0x1aa)][_0x52168b(0x1c7)]())_0x35b7e0[_0x52168b(0x1d7)][_0x52168b(0x1a4)]();super[_0x52168b(0x1a4)](),this[_0x52168b(0x18d)]&&clearInterval(this[_0x52168b(0x18d)]);}}function _0x5813(){const _0xabd2bb=['menu','isDirty','_handleControllerBuffer','items','arrowView','isMultiRange','isOn','19645ReMnHG','filter','comments.maxCommentsWhenCollapsed','model','commandName','registerAnnotation','activeMarkers','Accept\x20all\x20suggestions','getRanges','Preview\x20final\x20content','get','trackChangesLicenseKeyUsageLimit','children','isOfficialPlugin','trackChangesLicenseKeyEvaluationLimit','commands','execute','toMany','_licenseKeyCheckInterval','_refreshActiveMarkers','previewFinalContent','addComment','_viewToController','Discard\x20all\x20suggestions','trackChanges.SuggestionThreadView','editing','bind','18KFSmzP','_createToolbarButton','CommentsRepository','Annotations','acceptSelectedSuggestions','delegate','comments.editorConfig','getFirstRange','292374keyOBF','clear','comments.maxCommentCharsWhenCollapsed','has','descriptionParts','fire','destroy','comments','2590026LlUIbV','396JCZJqp','discardAllSuggestions','stopListening','_annotationViews','1147810IRBIst','CommentsUI','SuggestionView','requires','config','define','createAnnotationView','isPremiumPlugin','trackChangesLicenseKeyExpired','plugins','comments.maxThreadTotalWeight','EditorAnnotations','type','discardSelectedSuggestions','TrackChangesPreview','suggestionChanged','getAnnotationForSuggestion','createCommentThreadController','lowest','SuggestionThreadView','value','actionView','invalid','_updateController','switchbutton','trackChangesLicenseKeyNotAllowed','expired','TrackChangesEditing','values','isInContent','discardButton','length','from','size','locale','commentThread','init','menuitemcheckbox','getSuggestion','TrackChanges','trackChangesLicenseKeyTrialLimit','Track\x20changes','acceptAllSuggestions','suggestionLoaded','mainView','trackChangesLicenseKeyInvalid','change:previous','CommentView','view','getMarkers','_handleSuggestionControllerDelayed','previous','head','add','featureNotAllowed','activeAnnotations','suggestionView','createAnnotation','TrackChangesUI','buttonView','listenTo','_bindAnnotationToEditors','change:activeAnnotations','unbind','some','getByInnerView','getAllAdjacentSuggestions','delete','getDescriptions','acceptButton','componentFactory','menuitem','Accept\x20all\x20selected\x20suggestions','push','_addUIComponentsToFactory','12294530XLAObS','panelView','evaluationLimit','Discard\x20all\x20selected\x20suggestions','trackChangesLicenseKeyValid','isEnabled','button','hasSuggestion','refreshSelectedViews','keys','7912976HhmWiQ','7762664RXJhdh','trackChangesLicenseKeyDomainLimit','addMany','remove','trackChanges.SuggestionView','set','getJoined','_destroyController','_suggestionToController','_createMenuBarMenu','getMarkerNames','_unbindEditors','trackChanges.disableComments','focus','commentsListView','_showLicenseError','suggestion-','2DHKNst','licenseKey','escape','innerView','_initializeController','pluginName','descriptionFactory','editor','_disableComments','usageLimit','menuBar:trackChanges','domainLimit','source','suggestionUnloaded','addSourceCollector','separator','trialLimit','trackChanges','reduce','getSuggestionForAnnotation'];_0x5813=function(){return _0xabd2bb;};return _0x5813();}function Ee(_0x3b7c12){const _0x8e0322=_0x2ce6d5;return _0x8e0322(0x17e)in _0x3b7c12;}