@ckeditor/ckeditor5-track-changes 39.0.1 → 39.0.2

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.
Files changed (116) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/LICENSE.md +5 -5
  3. package/README.md +13 -13
  4. package/build/track-changes.js +1 -1
  5. package/lang/translations/ar.po +1 -0
  6. package/lang/translations/az.po +1 -0
  7. package/lang/translations/bg.po +1 -0
  8. package/lang/translations/bn.po +1 -0
  9. package/lang/translations/ca.po +1 -0
  10. package/lang/translations/cs.po +1 -0
  11. package/lang/translations/da.po +1 -0
  12. package/lang/translations/de.po +1 -0
  13. package/lang/translations/el.po +1 -0
  14. package/lang/translations/en-au.po +1 -0
  15. package/lang/translations/en.po +1 -0
  16. package/lang/translations/es.po +1 -0
  17. package/lang/translations/et.po +1 -0
  18. package/lang/translations/fi.po +1 -0
  19. package/lang/translations/fr.po +1 -0
  20. package/lang/translations/gl.po +1 -0
  21. package/lang/translations/he.po +1 -0
  22. package/lang/translations/hi.po +1 -0
  23. package/lang/translations/hr.po +1 -0
  24. package/lang/translations/hu.po +1 -0
  25. package/lang/translations/id.po +1 -0
  26. package/lang/translations/it.po +1 -0
  27. package/lang/translations/ja.po +1 -0
  28. package/lang/translations/ko.po +1 -0
  29. package/lang/translations/lt.po +1 -0
  30. package/lang/translations/lv.po +1 -0
  31. package/lang/translations/ms.po +1 -0
  32. package/lang/translations/nl.po +1 -0
  33. package/lang/translations/no.po +1 -0
  34. package/lang/translations/pl.po +1 -0
  35. package/lang/translations/pt-br.po +1 -0
  36. package/lang/translations/pt.po +1 -0
  37. package/lang/translations/ro.po +1 -0
  38. package/lang/translations/ru.po +1 -0
  39. package/lang/translations/sk.po +1 -0
  40. package/lang/translations/sq.po +1 -0
  41. package/lang/translations/sr-latn.po +1 -0
  42. package/lang/translations/sr.po +1 -0
  43. package/lang/translations/sv.po +1 -0
  44. package/lang/translations/th.po +1 -0
  45. package/lang/translations/tk.po +1 -0
  46. package/lang/translations/tr.po +1 -0
  47. package/lang/translations/tt.po +1 -0
  48. package/lang/translations/uk.po +1 -0
  49. package/lang/translations/ur.po +1 -0
  50. package/lang/translations/vi.po +1 -0
  51. package/lang/translations/zh-cn.po +1 -0
  52. package/lang/translations/zh.po +1 -0
  53. package/package.json +3 -7
  54. package/src/commands/acceptsuggestioncommand.js +1 -1
  55. package/src/commands/discardsuggestioncommand.js +1 -1
  56. package/src/commands/executeonallsuggestionscommand.js +1 -1
  57. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  58. package/src/commands/trackchangescommand.js +1 -1
  59. package/src/integrations/alignment.js +1 -1
  60. package/src/integrations/basicstyles.js +1 -1
  61. package/src/integrations/blockquote.js +1 -1
  62. package/src/integrations/ckbox.js +1 -1
  63. package/src/integrations/codeblock.js +1 -1
  64. package/src/integrations/comments.js +1 -1
  65. package/src/integrations/deletecommand.js +1 -1
  66. package/src/integrations/documentlist.js +1 -1
  67. package/src/integrations/documentlistproperties.js +1 -1
  68. package/src/integrations/entercommand.js +1 -1
  69. package/src/integrations/findandreplace.js +1 -1
  70. package/src/integrations/font.js +1 -1
  71. package/src/integrations/formatpainter.js +1 -1
  72. package/src/integrations/heading.js +1 -1
  73. package/src/integrations/highlight.js +1 -1
  74. package/src/integrations/horizontalline.js +1 -1
  75. package/src/integrations/htmlembed.js +1 -1
  76. package/src/integrations/image.js +1 -1
  77. package/src/integrations/imagereplace.js +1 -1
  78. package/src/integrations/importword.js +1 -1
  79. package/src/integrations/indent.js +1 -1
  80. package/src/integrations/inputcommand.js +1 -1
  81. package/src/integrations/link.js +1 -1
  82. package/src/integrations/list.js +1 -1
  83. package/src/integrations/listproperties.js +1 -1
  84. package/src/integrations/mediaembed.js +1 -1
  85. package/src/integrations/mention.js +1 -1
  86. package/src/integrations/pagebreak.js +1 -1
  87. package/src/integrations/paragraph.js +1 -1
  88. package/src/integrations/removeformat.js +1 -1
  89. package/src/integrations/restrictededitingmode.js +1 -1
  90. package/src/integrations/shiftentercommand.js +1 -1
  91. package/src/integrations/standardeditingmode.js +1 -1
  92. package/src/integrations/style.js +1 -1
  93. package/src/integrations/table.js +1 -1
  94. package/src/integrations/tablecaption.js +1 -1
  95. package/src/integrations/tableclipboard.js +1 -1
  96. package/src/integrations/tablecolumnresize.js +1 -1
  97. package/src/integrations/tableheadings.js +1 -1
  98. package/src/integrations/tablemergesplit.js +1 -1
  99. package/src/integrations/tableofcontents.js +1 -1
  100. package/src/integrations/tableproperties.js +1 -1
  101. package/src/integrations/template.js +1 -1
  102. package/src/integrations/title.js +1 -1
  103. package/src/integrations/undo.js +1 -1
  104. package/src/integrations/utils.js +1 -1
  105. package/src/suggestion.js +1 -1
  106. package/src/suggestiondescriptionfactory.js +1 -1
  107. package/src/trackchanges.js +1 -1
  108. package/src/trackchangesdata.js +1 -1
  109. package/src/trackchangesediting.d.ts +29 -1
  110. package/src/trackchangesediting.js +1 -1
  111. package/src/trackchangesui.js +1 -1
  112. package/src/ui/suggestioncontroller.js +1 -1
  113. package/src/ui/view/basesuggestionthreadview.js +1 -1
  114. package/src/ui/view/suggestionthreadview.js +1 -1
  115. package/src/utils/common-translations.js +1 -1
  116. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2fff=['discardAllSuggestions','init','config','getRootNames','function','appendChild','addSuggestionData','model','getDataWithAcceptedSuggestions','users','Users','TrackChangesData','end','execute','track-changes-data-invalid-editor-creator','div','editorCreator','getSuggestions','editor','CommentsRepository','_adapter','getRootsAttributes','result','pluginName','name','define','data','createElement','map','trackChangesData.editorCreator','acceptAllSuggestions','get','TrackChangesEditing','reduce','createDocumentFragment','rootsAttributes','plugins','document','trackChangesData','getDataWithDiscardedSuggestions','Pagination','addUser','constructor','useAnonymousUser','create'];(function(_0x947522,_0x2fff63){const _0x5f0e7a=function(_0x1353dd){while(--_0x1353dd){_0x947522['push'](_0x947522['shift']());}};_0x5f0e7a(++_0x2fff63);}(_0x2fff,0x8a));const _0x5f0e=function(_0x947522,_0x2fff63){_0x947522=_0x947522-0x0;let _0x5f0e7a=_0x2fff[_0x947522];return _0x5f0e7a;};import{Plugin as _0x8c753b}from'ckeditor5/src/core';import{CKEditorError as _0x31772c}from'ckeditor5/src/utils';import _0x195396 from'./trackchangesediting';import{sanitizeEditorConfig as _0x4601b6}from'ckeditor5-collaboration/src/collaboration-core';const w=[_0x5f0e('0x25')];export default class T extends _0x8c753b{static get['requires'](){return[_0x195396];}static get[_0x5f0e('0x14')](){return _0x5f0e('0x8');}[_0x5f0e('0x2b')](){const _0x1ed47b=this[_0x5f0e('0xf')];if(_0x1ed47b[_0x5f0e('0x2c')][_0x5f0e('0x16')](_0x5f0e('0x1a'),_0x88ea4c=>{const _0x112004=_0x1ed47b[_0x5f0e('0x4')]['document']['getRootNames']()[_0x5f0e('0x1e')]((_0x237103,_0x50e9fa)=>(_0x237103[_0x50e9fa]='',_0x237103),{});return _0x1ed47b[_0x5f0e('0x27')][_0x5f0e('0x29')](_0x112004,_0x88ea4c);}),_0x5f0e('0x1')!=typeof _0x1ed47b[_0x5f0e('0x2c')][_0x5f0e('0x1c')]('trackChangesData')[_0x5f0e('0xd')])throw new _0x31772c(_0x5f0e('0xb'));}[_0x5f0e('0x5')](_0x5cc0e3){return v(this[_0x5f0e('0xf')],!0x0,_0x5cc0e3);}[_0x5f0e('0x24')](_0x5146a1){return v(this['editor'],!0x1,_0x5146a1);}}class P extends _0x8c753b{static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x4bef33){super(_0x4bef33),this[_0x5f0e('0x13')]=_0x5f0e('0x9');}[_0x5f0e('0x2b')](){this[_0x5f0e('0xf')]['plugins'][_0x5f0e('0x1c')](_0x5f0e('0x10'))[_0x5f0e('0x11')]={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this[_0x5f0e('0xf')]['plugins'][_0x5f0e('0x1c')](_0x5f0e('0x1d'))[_0x5f0e('0x11')]=null;}}function D(_0xc7eb02){return void 0x0!==_0xc7eb02[_0x5f0e('0x12')];}async function v(_0x1e2659,_0x212da0,_0x367038){const _0x359d8a=_0x4601b6(_0x1e2659,w);_0x359d8a['plugins']['push'](_0x195396,P),_0x359d8a[_0x5f0e('0x20')]=D(_0x1e2659)?_0x1e2659[_0x5f0e('0x12')]():void 0x0;const _0x21cfa9=document[_0x5f0e('0x1f')](),_0x103820=_0x1e2659[_0x5f0e('0x2c')][_0x5f0e('0x1c')](_0x5f0e('0x23'))['editorCreator'],_0x1fe448=await _0x103820(_0x359d8a,()=>function(_0x20d495){const _0x10a9e2=document[_0x5f0e('0x18')](_0x5f0e('0xc'));return _0x20d495[_0x5f0e('0x2')](_0x10a9e2),_0x10a9e2;}(_0x21cfa9));!function(_0x4d2f2a,_0x54382a){const _0x553bc3=_0x4d2f2a['model'][_0x5f0e('0x22')][_0x5f0e('0x0')]()[_0x5f0e('0x1e')]((_0x3b0bc2,_0x349b70)=>(_0x3b0bc2[_0x349b70]=_0x4d2f2a[_0x5f0e('0x17')][_0x5f0e('0x1c')]({'rootName':_0x349b70}),_0x3b0bc2),{}),_0x106f79=_0x4d2f2a[_0x5f0e('0x21')][_0x5f0e('0x1c')](_0x5f0e('0x7'))[_0x5f0e('0x6')][_0x5f0e('0x19')](_0x2f50bd=>({'id':_0x2f50bd['id'],'name':_0x2f50bd[_0x5f0e('0x15')]})),_0x359907=_0x4d2f2a['plugins'][_0x5f0e('0x1c')]('TrackChangesEditing')[_0x5f0e('0xe')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x45126c=_0x54382a[_0x5f0e('0x21')][_0x5f0e('0x1c')](_0x5f0e('0x7')),_0x1c428e=_0x54382a['plugins']['get'](_0x5f0e('0x1d'));for(const _0x51f7bd of _0x106f79)_0x45126c['getUser'](_0x51f7bd['id'])||_0x45126c[_0x5f0e('0x26')](_0x51f7bd);_0x45126c['me']||_0x45126c[_0x5f0e('0x28')]();for(const _0x47d6d4 of _0x359907)_0x1c428e[_0x5f0e('0x3')](_0x47d6d4);_0x54382a[_0x5f0e('0x17')]['set'](_0x553bc3);}(_0x1e2659,_0x1fe448),_0x1fe448[_0x5f0e('0xa')](_0x212da0?_0x5f0e('0x1b'):_0x5f0e('0x2a'));const _0x5b6e93=D(_0x1fe448)?_0x1fe448['getFullData'](_0x367038):_0x1fe448[_0x5f0e('0x17')][_0x5f0e('0x1c')](_0x367038);return await _0x1fe448['destroy'](),_0x5b6e93;}
23
+ const _0x406e=['editor','data','_adapter','getSuggestions','createElement','editorCreator','getRootsAttributes','get','name','getFullData','CommentsRepository','getRootNames','createDocumentFragment','map','TrackChangesEditing','plugins','create','getDataWithAcceptedSuggestions','document','requires','TrackChangesDataGetter','init','track-changes-data-invalid-editor-creator','div','reduce','trackChangesData','result','trackChangesData.editorCreator','useAnonymousUser','define','acceptAllSuggestions','execute','model','addUser','discardAllSuggestions','rootsAttributes','destroy','config','TrackChangesData','pluginName'];(function(_0x48028e,_0x406e1e){const _0x4b3f4a=function(_0x554715){while(--_0x554715){_0x48028e['push'](_0x48028e['shift']());}};_0x4b3f4a(++_0x406e1e);}(_0x406e,0x192));const _0x4b3f=function(_0x48028e,_0x406e1e){_0x48028e=_0x48028e-0x0;let _0x4b3f4a=_0x406e[_0x48028e];return _0x4b3f4a;};import{Plugin as _0x2e5818}from'ckeditor5/src/core';import{CKEditorError as _0x54e24d}from'ckeditor5/src/utils';import _0x5aad5a from'./trackchangesediting';import{sanitizeEditorConfig as _0x5e602c}from'ckeditor5-collaboration/src/collaboration-core';const w=['Pagination'];export default class T extends _0x2e5818{static get[_0x4b3f('0x11')](){return[_0x5aad5a];}static get[_0x4b3f('0x25')](){return _0x4b3f('0x24');}[_0x4b3f('0x13')](){const _0x1e5b38=this[_0x4b3f('0x26')];if(_0x1e5b38[_0x4b3f('0x23')][_0x4b3f('0x1b')](_0x4b3f('0x19'),_0x3916e5=>{const _0x2ef5ad=_0x1e5b38['model']['document'][_0x4b3f('0x9')]()['reduce']((_0x1d29c7,_0x2115b5)=>(_0x1d29c7[_0x2115b5]='',_0x1d29c7),{});return _0x1e5b38['constructor'][_0x4b3f('0xe')](_0x2ef5ad,_0x3916e5);}),'function'!=typeof _0x1e5b38[_0x4b3f('0x23')][_0x4b3f('0x5')](_0x4b3f('0x17'))[_0x4b3f('0x3')])throw new _0x54e24d(_0x4b3f('0x14'));}[_0x4b3f('0xf')](_0x2d48ca){return v(this[_0x4b3f('0x26')],!0x0,_0x2d48ca);}['getDataWithDiscardedSuggestions'](_0x5da539){return v(this[_0x4b3f('0x26')],!0x1,_0x5da539);}}class P extends _0x2e5818{static get[_0x4b3f('0x25')](){return _0x4b3f('0x12');}constructor(_0xb35bac){super(_0xb35bac),this[_0x4b3f('0x18')]='end';}['init'](){this[_0x4b3f('0x26')][_0x4b3f('0xd')][_0x4b3f('0x5')](_0x4b3f('0x8'))[_0x4b3f('0x0')]={'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[_0x4b3f('0x26')][_0x4b3f('0xd')][_0x4b3f('0x5')](_0x4b3f('0xc'))[_0x4b3f('0x0')]=null;}}function D(_0x187761){return void 0x0!==_0x187761[_0x4b3f('0x4')];}async function v(_0x47c599,_0x3ce4df,_0x546bbb){const _0x58a938=_0x5e602c(_0x47c599,w);_0x58a938['plugins']['push'](_0x5aad5a,P),_0x58a938[_0x4b3f('0x21')]=D(_0x47c599)?_0x47c599[_0x4b3f('0x4')]():void 0x0;const _0x2cdbdd=document[_0x4b3f('0xa')](),_0x206284=_0x47c599['config'][_0x4b3f('0x5')](_0x4b3f('0x17'))[_0x4b3f('0x3')],_0x4f3c00=await _0x206284(_0x58a938,()=>function(_0x538a91){const _0x4c6d27=document[_0x4b3f('0x2')](_0x4b3f('0x15'));return _0x538a91['appendChild'](_0x4c6d27),_0x4c6d27;}(_0x2cdbdd));!function(_0xd822ef,_0x1d5574){const _0x1f36c8=_0xd822ef[_0x4b3f('0x1e')][_0x4b3f('0x10')]['getRootNames']()[_0x4b3f('0x16')]((_0x5078aa,_0x197842)=>(_0x5078aa[_0x197842]=_0xd822ef[_0x4b3f('0x27')][_0x4b3f('0x5')]({'rootName':_0x197842}),_0x5078aa),{}),_0xa0d04d=_0xd822ef[_0x4b3f('0xd')][_0x4b3f('0x5')]('Users')['users'][_0x4b3f('0xb')](_0xa25cd8=>({'id':_0xa25cd8['id'],'name':_0xa25cd8[_0x4b3f('0x6')]})),_0x3220a6=_0xd822ef[_0x4b3f('0xd')]['get'](_0x4b3f('0xc'))[_0x4b3f('0x1')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1f5145=_0x1d5574[_0x4b3f('0xd')]['get']('Users'),_0x2c82b1=_0x1d5574['plugins']['get'](_0x4b3f('0xc'));for(const _0xa69c5c of _0xa0d04d)_0x1f5145['getUser'](_0xa69c5c['id'])||_0x1f5145[_0x4b3f('0x1f')](_0xa69c5c);_0x1f5145['me']||_0x1f5145[_0x4b3f('0x1a')]();for(const _0x3d7f96 of _0x3220a6)_0x2c82b1['addSuggestionData'](_0x3d7f96);_0x1d5574[_0x4b3f('0x27')]['set'](_0x1f36c8);}(_0x47c599,_0x4f3c00),_0x4f3c00[_0x4b3f('0x1d')](_0x3ce4df?_0x4b3f('0x1c'):_0x4b3f('0x20'));const _0xfc3072=D(_0x4f3c00)?_0x4f3c00[_0x4b3f('0x7')](_0x546bbb):_0x4f3c00[_0x4b3f('0x27')]['get'](_0x546bbb);return await _0x4f3c00[_0x4b3f('0x22')](),_0xfc3072;}
@@ -159,6 +159,10 @@ export default class TrackChangesEditing extends Plugin {
159
159
  * Always call this method inside `model.change()` or `model.enqueueChange()` block to ensure that all operations performed by
160
160
  * this method are bound with one undo step.
161
161
  *
162
+ * If possible, the new suggestion will be joined with an existing suggestion (of the same type). This happens only if
163
+ * the suggestions are created by the same user and have similar attributes (i.e. passed `attributes` do not conflict with
164
+ * the existing suggestion).
165
+ *
162
166
  * See {@glink features/collaboration/track-changes/track-changes-custom-features Integrating track changes with custom
163
167
  * features guide} to learn more about enabling your feature in the suggestion mode.
164
168
  *
@@ -189,12 +193,16 @@ export default class TrackChangesEditing extends Plugin {
189
193
  * Always call this method inside `model.change()` or `model.enqueueChange()` block to ensure that all operations performed by
190
194
  * this method are bound with one undo step.
191
195
  *
196
+ * If possible, the new suggestion will be joined with an existing suggestion (of the same type). This happens only if
197
+ * the suggestions are created by the same user and have similar attributes (i.e. passed `attributes` do not conflict with
198
+ * the existing suggestion).
199
+ *
192
200
  * See the {@glink features/collaboration/track-changes/track-changes-custom-features Integrating track changes with custom
193
201
  * features} guide to learn more about enabling your feature in the suggestion mode.
194
202
  *
195
203
  * @param ranges Ranges which got inserted.
196
204
  * @param subType Suggestion {@link module:track-changes/suggestion~Suggestion#subType} to set. Only suggestions
197
- * with the same sub type will be joined.
205
+ * with the same subtype will be joined.
198
206
  * @param attributes Custom suggestion attributes.
199
207
  * @returns {module:track-changes/suggestion~Suggestion} Suggestion created or expanded as a result of execution of this method.
200
208
  */
@@ -228,6 +236,10 @@ export default class TrackChangesEditing extends Plugin {
228
236
  * If an inline format suggestion is marked inside the local user's insertion suggestion, the change is applied directly
229
237
  * and no suggestion is created. This supports partial intersections with insertion suggestions.
230
238
  *
239
+ * If possible, the new suggestion will be joined with an existing suggestion (of the same type). This happens only if
240
+ * the suggestions are created by the same user and have similar attributes (i.e. passed `attributes` do not conflict with
241
+ * the existing suggestion).
242
+ *
231
243
  * See the {@glink features/collaboration/track-changes/track-changes-custom-features Integrating track changes with custom
232
244
  * features} guide to learn more about enabling your feature in the suggestion mode.
233
245
  *
@@ -301,6 +313,10 @@ export default class TrackChangesEditing extends Plugin {
301
313
  * and no suggestion is created. Note that this does not support partial intersections with insertion suggestions
302
314
  * (as opposed to inline format suggestions).
303
315
  *
316
+ * If possible, the new suggestion will be joined with an existing suggestion (of the same type). This happens only if
317
+ * the suggestions are created by the same user and have similar attributes (i.e. passed `attributes` do not conflict with
318
+ * the existing suggestion).
319
+ *
304
320
  * See the {@glink features/collaboration/track-changes/track-changes-custom-features Integrating track changes with custom
305
321
  * features} guide to learn more about enabling your feature in the suggestion mode.
306
322
  *
@@ -336,6 +352,10 @@ export default class TrackChangesEditing extends Plugin {
336
352
  * and no suggestion is created. Note that this does not support partial intersections with insertion suggestions
337
353
  * (as opposed to inline format suggestions).
338
354
  *
355
+ * If possible, the new suggestion will be joined with an existing suggestion (of the same type). This happens only if
356
+ * the suggestions are created by the same user and have similar attributes (i.e. passed `attributes` do not conflict with
357
+ * the existing suggestion).
358
+ *
339
359
  * See the {@glink features/collaboration/track-changes/track-changes-custom-features Integrating track changes with custom
340
360
  * features} guide to learn more about enabling your feature in the suggestion mode.
341
361
  *
@@ -369,6 +389,10 @@ export default class TrackChangesEditing extends Plugin {
369
389
  * Always call this method inside `model.change()` or `model.enqueueChange()` block to ensure that all operations performed by
370
390
  * this method are bound with one undo step.
371
391
  *
392
+ * If possible, the new suggestion will be joined with an existing suggestion (of the same type). This happens only if
393
+ * the suggestions are created by the same user and have similar attributes (i.e. passed `attributes` do not conflict with
394
+ * the existing suggestion).
395
+ *
372
396
  * See {@glink features/collaboration/track-changes/track-changes-custom-features Integrating track changes with custom
373
397
  * features guide} to learn more about enabling your feature in the suggestion mode.
374
398
  *
@@ -400,6 +424,10 @@ export default class TrackChangesEditing extends Plugin {
400
424
  * Always call this method inside `model.change()` or `model.enqueueChange()` block to ensure that all operations performed by
401
425
  * this method are bound with one undo step.
402
426
  *
427
+ * If possible, the new suggestion will be joined with an existing suggestion (of the same type). This happens only if
428
+ * the suggestions are created by the same user and have similar attributes (i.e. passed `attributes` do not conflict with
429
+ * the existing suggestion).
430
+ *
403
431
  * See the {@glink features/collaboration/track-changes/track-changes-custom-features Integrating track changes with custom
404
432
  * features} guide to learn more about enabling your feature in the suggestion mode.
405
433
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x6c41=['hasCommentThread','getSuggestionCallback','showSuggestionHighlights','_setSuggestionData','elementStart','updateSuggestion','forceDefaultExecution','isSelectable','widget','_getAuthorFromId','hasSuggestion','isLocal','markers','collaboration.channelId','editing','creator','type','_findSuggestions','accepted','formatBlock','for','toJSON','oldRange','removeComment','mapper','discard','@external','add','marker-count','insertion','authorName','_handleNewSuggestionMarker','targetPosition','backward','getNearestSelectionRange','getMultiRangeId','includes','createPositionAt','ck-suggestion-marker--active','root','createRangeIn','isNextTo','selection','trackChanges.mergeNestedSuggestions','markerToHighlight','_trackFormatChanges','discardSuggestion','setAttribute','start','push','formatBlock:discard','clear','formatInline:join','multipleBlocks','commentThread','deletion:','_saved','insertion:accept','_registerDefaultCallbacks','suggestion-type','_adapter','removed','data-suggestion','suggestion:','fetchCommentThread','acceptSelectedSuggestions','containsRangeInObject','forward','_onDiscard','schema','insertion:discard','$marker','_mergeNestedSuggestions','isAtStart','getMarkers','deleteContent','getItems','formatBlock:','deletion:accept','always','deletion:discard','default','_joinWithAdjacentSuggestions','map','buildSuggestion','addMarkerName','_rangeIsInLocalUserInsertion','_splitMarkerName','track-changes-adapter-missing-getsuggestion','formatGroupId','isAfter','change','addMarker:suggestion','_refreshSuggestionsChain','addMarker:suggestion:formatBlock','hasComments','howMany','removeMarker:suggestion:formatBlock','dataToMarker','_getExternalAuthor','return','detach','editingDowncast','formatInline:discard','reconvertMarker','isOwn','suggestionUnloaded','trackChangesCommand','ready','_removeSuggestion','discardSelectedSuggestions','registerPostFixer','discardAllSuggestions','markInsertion','addMarker','acceptAllSuggestions','attributes','trackChanges.trackFormatChanges','getRanges','getUser','external:','markDeletion','consume','get','batch','addUser','never','options','newRange','model','addSuggestion','createElement','split','PENDING_ACTION_SUGGESTION','fire','multi','skipNestingCheck','document','getCommentThread','removeMarkers','_isForcedDefaultExecutionBlock','formatInline','_suggestionFactory','author','group','_commentsRepository','differ','nodeBefore','_customCallbacks','isLimit','nodeAfter','previous','_joinSuggestions','editor','deletion:join','some','delete','insertion:','_createSuggestion','next','track-changes-adapter-already-set','updateMarker','isTouching','formatInline:accept','name','moveTargetPosition','getFirstRange','after','authoredAt','addHighlight','track-changes-suggestion-data-mismatch','stop','isEqual','low','set','markerReady','markerName','from','rethrowUnexpectedError','markerToData','_suggestions','isUndo','normal','getShiftedBy','define','_breakSuggestionMarker','fromRange','execute','init','stopListening','unbind','clone','toViewElement','containsRange','consumable','unbindElementFromMarkerName','item','pluginName','high','sort','has','_cutOutSuggestionMarker','addComment','getRange','isCollapsed','conversion','suggestion','config','removeMarker','getSuggestion','containerElement','formatInline:chain','ck-suggestion-marker-formatBlock','end','insert','upcast','isBefore','_checkSuggestionCorrectness','range','bindElementToMarker','registerCustomCallback','documentSelection','markBlockFormat','getIntersection','PendingActions','_defaultCallbacks','deletion','addSuggestionData','enableCommand','_descriptionFactory','Users','size','suggestionLoaded','element','setSelection','createRange','_model','_editor','insertion:join','getSuggestions','getAncestors','trackChanges','isAtEnd','_getSuggestionData','lowest','getChanges','formatBlock:chain','deletion:chain','containsItem','then','_addSuggestionMarker','activeMarkers','plugins','suggestionChanged','markMultiRangeDeletion','$graveyard','requires','ck-suggestion-marker','listenTo','getLastMatchingPosition','accept','commands','formatBlock:accept','acceptSuggestion','isBlock','isInContent','originalSuggestionId','adapter','position','isObject','formatInline:','writer','rootName','join','isMultiRange','_enabledCommands','refresh','highest','CommentsRepository','locale','getFirstMarker','_addThreadToSuggestion','insertContent','_suggestionState','TrackChangesEditing','markMultiRangeInsertion','length','isExternal','elementEnd','parent','_setSuggestionRange','notReady','addClass','isRemovable','splice','subType','track-changes-command-not-found','track-changes-suggestion-not-found','elementToElement','open','filter','setTo','createdAt','getCustomProperty','getAttribute','every','createPositionAfter','commandName','formatBlock:join','_updateSuggestionData','dataDowncast','isIntersectingWithRange','value','addRange','getDifference','getChangedMarkers','data'];(function(_0x5c6a60,_0x6c4125){const _0x7b1d8f=function(_0x22991a){while(--_0x22991a){_0x5c6a60['push'](_0x5c6a60['shift']());}};_0x7b1d8f(++_0x6c4125);}(_0x6c41,0x1e8));const _0x7b1d=function(_0x5c6a60,_0x6c4125){_0x5c6a60=_0x5c6a60-0x0;let _0x7b1d8f=_0x6c41[_0x5c6a60];return _0x7b1d8f;};import{Plugin as _0x418a15,PendingActions as _0x365adc}from'ckeditor5/src/core';import{LiveRange as _0x4e3075}from'ckeditor5/src/engine';import{CKEditorError as _0x39da4f,uid as _0x26317d,priorities as _0x51e1ab,logWarning as _0x4736cc}from'ckeditor5/src/utils';import{toWidget as _0x5a8685}from'ckeditor5/src/widget';import{Users as _0x544e31,hashObject as _0x1c57e1}from'ckeditor5-collaboration/src/collaboration-core';import _0x87cf19 from'./commands/trackchangescommand';import _0x5f093d from'./commands/acceptsuggestioncommand';import _0x40e317 from'./commands/discardsuggestioncommand';import _0x4ce6d9 from'./commands/executeonallsuggestionscommand';import _0x1015b7 from'./commands/executeonselectedsuggestionscommand';import _0x5731e0 from'./suggestion';import _0x7d5b19 from'./suggestiondescriptionfactory';import _0x48e375 from'./integrations/alignment';import _0x43437d from'./integrations/basicstyles';import _0xea45ec from'./integrations/blockquote';import _0x441526 from'./integrations/ckbox';import _0x3d0f8d from'./integrations/codeblock';import _0x55f928 from'./integrations/comments';import _0x59a7f8 from'./integrations/deletecommand';import _0x5a4166 from'./integrations/documentlist';import _0x307c46 from'./integrations/entercommand';import _0x500e64 from'./integrations/findandreplace';import _0x56cef8 from'./integrations/font';import _0x508ffc from'./integrations/formatpainter';import _0x317bbe from'./integrations/heading';import _0x24f2ba from'./integrations/highlight';import _0x503e9c from'./integrations/horizontalline';import _0x3e62bf from'./integrations/htmlembed';import _0x16e96f from'./integrations/image';import _0xbadbba from'./integrations/imagereplace';import _0x4eb073 from'./integrations/importword';import _0x4df470 from'./integrations/indent';import _0xc52b0d from'./integrations/inputcommand';import _0x2a79d7 from'./integrations/link';import _0x13c39a from'./integrations/list';import _0x363ef6 from'./integrations/listproperties';import _0x59df26 from'./integrations/mediaembed';import _0x3bb08d from'./integrations/mention';import _0x333bf3 from'./integrations/pagebreak';import _0x47ac9e from'./integrations/paragraph';import _0x1fb170 from'./integrations/removeformat';import _0x547022 from'./integrations/restrictededitingmode';import _0x42a415 from'./integrations/shiftentercommand';import _0x43da7c from'./integrations/standardeditingmode';import _0x122fa5 from'./integrations/style';import _0x37aa8a from'./integrations/table';import _0x55d5e8 from'./integrations/tablemergesplit';import _0x979762 from'./integrations/tableheadings';import _0x2b86a0 from'./integrations/tableclipboard';import _0x443133 from'./integrations/tablecolumnresize';import _0x19ff20 from'./integrations/template';import _0x1f2643 from'./integrations/tableofcontents';import _0xb35901 from'./integrations/title';import _0xe736d4 from'./integrations/undo';import{getTranslation as _0x327a39}from'./utils/common-translations';import _0x59123f from'./integrations/tablecaption';import _0x1abc54 from'./integrations/documentlistproperties';import _0x4288be from'./integrations/tableproperties';export default class p extends _0x418a15{static get[_0x7b1d('0x55')](){return['CommentsRepository',_0x544e31,_0x365adc,_0x48e375,_0x43437d,_0xea45ec,_0x441526,_0x3d0f8d,_0x55f928,_0x59a7f8,_0x5a4166,_0x1abc54,_0x307c46,_0x500e64,_0x56cef8,_0x508ffc,_0x317bbe,_0x24f2ba,_0x503e9c,_0x3e62bf,_0x16e96f,_0xbadbba,_0x4eb073,_0x4df470,_0xc52b0d,_0x2a79d7,_0x13c39a,_0x363ef6,_0x59df26,_0x3bb08d,_0x333bf3,_0x47ac9e,_0x1fb170,_0x547022,_0x42a415,_0x43da7c,_0x122fa5,_0x37aa8a,_0x55d5e8,_0x979762,_0x59123f,_0x2b86a0,_0x443133,_0x1f2643,_0x4288be,_0x19ff20,_0xb35901,_0xe736d4];}static get[_0x7b1d('0x1a')](){return _0x7b1d('0x71');}constructor(_0x233215){function _0x4cd3dd(_0x3f8378){return _0x3f8378[_0x7b1d('0xe5')](_0x58b455=>String['fromCharCode'](_0x58b455))[_0x7b1d('0x66')]('');}super(_0x233215),this[_0x7b1d('0x3')](_0x7b1d('0x50'),[]),this['on']('change:activeMarkers',(_0x505ad0,_0x4ea929,_0x250335,_0x1d17bc)=>{this[_0x7b1d('0x41')][_0x7b1d('0xed')](()=>{for(const _0x8a1a5b of[..._0x1d17bc,..._0x250335])this['_model']['markers'][_0x7b1d('0x1d')](_0x8a1a5b)&&_0x233215[_0x7b1d('0xa0')][_0x7b1d('0xfa')](_0x8a1a5b);});}),this[_0x7b1d('0x3a')]=new _0x7d5b19(this[_0x7b1d('0x12b')][_0x7b1d('0x113')][_0x7b1d('0xd7')],this['editor'][_0x7b1d('0x6c')]),this[_0x7b1d('0xce')]=null,this[_0x7b1d('0x120')]=new Dt(this['editor']),this['_suggestions']=new Map(),this[_0x7b1d('0x123')]=_0x233215['plugins'][_0x7b1d('0x10d')](_0x7b1d('0x6b')),this[_0x7b1d('0x68')]=new Set(),this[_0x7b1d('0x41')]=this[_0x7b1d('0x12b')][_0x7b1d('0x113')],this[_0x7b1d('0x70')]=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x233215['config'][_0x7b1d('0xd')]('trackChanges.trackFormatChanges',_0x7b1d('0xe3')),this[_0x7b1d('0xbf')]=_0x233215[_0x7b1d('0x24')]['get'](_0x7b1d('0x107')),_0x233215[_0x7b1d('0x24')]['define'](_0x7b1d('0xbd'),!0x0),this[_0x7b1d('0xda')]=_0x233215[_0x7b1d('0x24')][_0x7b1d('0x10d')](_0x7b1d('0xbd')),this['trackChangesCommand']=new _0x87cf19(_0x233215,this[_0x7b1d('0x68')]),this[_0x4cd3dd([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x4cd3dd([0x34,0x30,0x34,0x36,0x31,0x36,0x32,0x30]);}[_0x7b1d('0x11')](){const _0x5d0b71=this[_0x7b1d('0x12b')];_0x5d0b71[_0x7b1d('0x22')][_0x7b1d('0xa6')](_0x7b1d('0xf8'))[_0x7b1d('0xbe')]({'model':_0x7b1d('0x23'),'view':_0x517757=>{const {id:_0x4d0b91,type:_0x29009f}=this[_0x7b1d('0xe9')](_0x517757[_0x7b1d('0x5')]),_0x408f28=[_0x7b1d('0x56'),'ck-suggestion-marker-'+_0x29009f];let _0x438f8f=0xbb8;return this[_0x7b1d('0x50')][_0x7b1d('0xb6')](_0x517757[_0x7b1d('0x5')])&&(_0x408f28[_0x7b1d('0xc3')](_0x7b1d('0xb8')),_0x438f8f=0xbc2),_0x7b1d('0x37')==_0x29009f&&(_0x438f8f+=0x5),{'classes':_0x408f28,'attributes':{'data-suggestion':_0x4d0b91},'priority':_0x438f8f};}}),_0x5d0b71[_0x7b1d('0x22')][_0x7b1d('0xa6')](_0x7b1d('0x8b'))[_0x7b1d('0xad')](_0x5c5da0=>{_0x5c5da0['on'](_0x7b1d('0xee'),(_0x5566c5,_0xbf9fae,_0x75d9ed)=>{if(!_0x75d9ed[_0x7b1d('0x111')][_0x7b1d('0x94')])return;const _0x4e9778=_0xbf9fae[_0x7b1d('0x19')];if(!_0x4e9778)return;const _0x35cbdf=_0x75d9ed[_0x7b1d('0xaa')][_0x7b1d('0x15')](_0x4e9778);_0x5d0b71['model'][_0x7b1d('0xd7')][_0x7b1d('0x62')](_0x4e9778)&&_0x35cbdf&&!_0x35cbdf[_0x7b1d('0x84')](_0x7b1d('0x9a'))&&_0x35cbdf['is'](_0x7b1d('0x27'))&&_0x5a8685(_0x35cbdf,_0x75d9ed[_0x7b1d('0x64')]);},{'priority':'high'});}),_0x5d0b71[_0x7b1d('0x22')][_0x7b1d('0xa6')]('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x104220,_0x137e85)=>{if(!_0x137e85['options'][_0x7b1d('0x94')])return null;const {type:_0x30a5c6}=this['_splitMarkerName'](_0x104220['markerName']);return{'classes':['ck-suggestion-marker','ck-suggestion-marker-'+_0x30a5c6],'priority':0xbb8};}});const _0x5a6701=({showActiveMarkers:_0x74fb90=!0x0}={})=>(_0x20d009,_0x336479,_0xdca6ea)=>{if(!_0x336479[_0x7b1d('0x19')])return;if(_0x336479[_0x7b1d('0x19')]['is'](_0x7b1d('0xbc')))return void _0xdca6ea[_0x7b1d('0x17')][_0x7b1d('0x10c')](_0x336479['item'],_0x20d009[_0x7b1d('0x136')]);const _0x53a118=_0xdca6ea[_0x7b1d('0xaa')][_0x7b1d('0x15')](_0x336479[_0x7b1d('0x19')]);if(!(_0x336479[_0x7b1d('0x19')]['is'](_0x7b1d('0x3e'))&&_0x5d0b71[_0x7b1d('0x113')][_0x7b1d('0xd7')][_0x7b1d('0x5d')](_0x336479[_0x7b1d('0x19')])&&!_0x53a118[_0x7b1d('0x84')](_0x7b1d('0x13b'))))return;const {id:_0x2321da}=this[_0x7b1d('0xe9')](_0x336479[_0x7b1d('0x5')]);_0xdca6ea[_0x7b1d('0x64')][_0x7b1d('0x79')]([_0x7b1d('0x56'),_0x7b1d('0x29')],_0x53a118),_0xdca6ea[_0x7b1d('0x64')][_0x7b1d('0xc1')](_0x7b1d('0xd0'),_0x2321da,_0x53a118),_0xdca6ea[_0x7b1d('0xaa')][_0x7b1d('0x30')](_0x53a118,_0x336479[_0x7b1d('0x5')]),_0x74fb90&&(this[_0x7b1d('0x50')][_0x7b1d('0xb6')](_0x336479[_0x7b1d('0x5')])?_0xdca6ea['writer']['addClass'](_0x7b1d('0xb8'),_0x53a118):_0xdca6ea[_0x7b1d('0x64')]['removeClass'](_0x7b1d('0xb8'),_0x53a118));for(const _0x4c105b of _0x5d0b71[_0x7b1d('0x113')][_0x7b1d('0xba')](_0x336479[_0x7b1d('0x19')])[_0x7b1d('0xde')]())_0xdca6ea[_0x7b1d('0x17')][_0x7b1d('0x10c')](_0x4c105b,_0x20d009['name']);_0xdca6ea[_0x7b1d('0x17')][_0x7b1d('0x10c')](_0x336479['item'],_0x20d009[_0x7b1d('0x136')]);};_0x5d0b71[_0x7b1d('0x22')]['for'](_0x7b1d('0x8b'))[_0x7b1d('0xad')](_0xe2a418=>{_0xe2a418['on'](_0x7b1d('0xf0'),(_0x19679b,_0x11a0be,_0x4ce4a1)=>{_0x4ce4a1[_0x7b1d('0x111')]['showSuggestionHighlights']&&_0x5a6701({'showActiveMarkers':!0x1})(_0x19679b,_0x11a0be,_0x4ce4a1);},{'priority':_0x7b1d('0x6a')});}),_0x5d0b71[_0x7b1d('0x22')][_0x7b1d('0xa6')]('dataDowncast')[_0x7b1d('0x8')]({'model':'suggestion','view':(_0x26eee1,_0x36fac6)=>_0x36fac6[_0x7b1d('0x111')][_0x7b1d('0x94')]?null:{'group':_0x7b1d('0x23'),'name':_0x26eee1['substr'](0xb)}}),_0x5d0b71[_0x7b1d('0x22')][_0x7b1d('0xa6')](_0x7b1d('0x2c'))[_0x7b1d('0x7f')]({'view':{'name':_0x7b1d('0x23'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x386ab9,{writer:_0x4b440b})=>{let _0x687160=_0x7b1d('0xd1')+_0x386ab9[_0x7b1d('0x85')](_0x7b1d('0xcd'))+':'+_0x386ab9[_0x7b1d('0x85')]('id');return _0x386ab9[_0x7b1d('0x85')]('marker-count')&&(_0x687160+=':'+_0x386ab9[_0x7b1d('0x85')](_0x7b1d('0xae'))),_0x4b440b[_0x7b1d('0x115')](_0x7b1d('0xd9'),{'data-name':_0x687160});}}),_0x5d0b71[_0x7b1d('0x22')]['for'](_0x7b1d('0x2c'))[_0x7b1d('0xf4')]({'view':_0x7b1d('0x23')}),_0x5d0b71[_0x7b1d('0x22')][_0x7b1d('0xa6')](_0x7b1d('0xf8'))['add'](_0x3a08ff=>{_0x3a08ff['on'](_0x7b1d('0xf0'),_0x5a6701(),{'priority':_0x7b1d('0x1b')});}),_0x5d0b71[_0x7b1d('0x22')]['for'](_0x7b1d('0xf8'))[_0x7b1d('0xad')](_0x20c3ad=>{_0x20c3ad['on'](_0x7b1d('0xf3'),(_0x4a20e6,_0x33e111,_0x17e08f)=>{const _0x265483=_0x17e08f[_0x7b1d('0xaa')]['markerNameToElements'](_0x33e111['markerName']);if(_0x265483)for(const _0x3b5706 of _0x265483)_0x3b5706[_0x7b1d('0x84')](_0x7b1d('0x13b'))||(_0x17e08f[_0x7b1d('0x64')]['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3b5706),_0x17e08f[_0x7b1d('0x64')]['removeAttribute'](_0x7b1d('0xd0'),_0x3b5706),_0x17e08f['mapper'][_0x7b1d('0x18')](_0x3b5706,_0x33e111[_0x7b1d('0x5')]));},{'priority':_0x7b1d('0x1b')});}),_0x5d0b71['model'][_0x7b1d('0x11b')][_0x7b1d('0x101')](_0x3cbedf=>{let _0x475370=!0x1;const _0x271c3b=Array['from'](_0x5d0b71['model']['document'][_0x7b1d('0x124')][_0x7b1d('0x90')]()),_0x245728=new Set();for(const {name:_0x3a2ecf,data:_0x1b09bf}of _0x271c3b){const {group:_0x4eed2a,type:_0x42adbe,id:_0x118613}=this[_0x7b1d('0xe9')](_0x3a2ecf);if(_0x7b1d('0x23')!==_0x4eed2a)continue;const _0x4f9fcc=this['_suggestions']['get'](_0x118613);if(null!=_0x1b09bf[_0x7b1d('0x112')]){_0x7b1d('0x11f')==_0x42adbe&&(_0x475370=_0x475370||Mt(_0x1b09bf[_0x7b1d('0x112')],_0x3a2ecf,_0x3cbedf,_0x5d0b71[_0x7b1d('0x113')][_0x7b1d('0xd7')]));if(_0x1b09bf[_0x7b1d('0x112')][_0x7b1d('0x21')]||_0x7b1d('0x54')==_0x1b09bf[_0x7b1d('0x112')][_0x7b1d('0xb9')][_0x7b1d('0x65')]||_0x7b1d('0xa5')==_0x42adbe&&!Nt(_0x1b09bf[_0x7b1d('0x112')])||'deletion'==_0x42adbe&&!(!_t(_0x563838=_0x1b09bf[_0x7b1d('0x112')])&&!function(_0x53d591){return _0x53d591[_0x7b1d('0xc2')][_0x7b1d('0x76')]==_0x53d591['end'][_0x7b1d('0x125')]&&_0x53d591[_0x7b1d('0xc2')][_0x7b1d('0x47')];}(_0x563838)))_0x3cbedf['removeMarker'](_0x3a2ecf),_0x475370=!0x0;else{if(!_0x4f9fcc||!_0x4f9fcc[_0x7b1d('0x5e')])continue;_0x245728[_0x7b1d('0xad')](_0x4f9fcc);}}}var _0x563838;return _0x245728[_0x7b1d('0x3c')]>0x0&&(_0x475370=!!this[_0x7b1d('0xe4')](_0x245728)||_0x475370),_0x475370;}),_0x5d0b71[_0x7b1d('0x113')][_0x7b1d('0x11b')][_0x7b1d('0x101')](_0x1bd238=>{let _0x17b545=!0x1;for(const _0xef8bdd of _0x5d0b71[_0x7b1d('0x113')]['document'][_0x7b1d('0x124')][_0x7b1d('0x4a')]()){if(_0x7b1d('0x2b')!=_0xef8bdd[_0x7b1d('0xa2')])continue;const _0x3620a2=_0xef8bdd[_0x7b1d('0x61')][_0x7b1d('0xc')](_0xef8bdd[_0x7b1d('0x73')]);if(_0x3620a2[_0x7b1d('0x47')])for(const _0x24c4e7 of this[_0x7b1d('0x9')]['values']()){if(_0x24c4e7[_0x7b1d('0x67')]||!_0x24c4e7[_0x7b1d('0x5e')])continue;if(_0x7b1d('0xa5')!=_0x24c4e7['type'])continue;const _0x1cb854=_0x24c4e7[_0x7b1d('0x138')]();if(_0x1cb854[_0x7b1d('0xc2')][_0x7b1d('0x76')]!=_0x1cb854[_0x7b1d('0x2a')][_0x7b1d('0x76')]&&_0x1cb854['end'][_0x7b1d('0x1')](_0xef8bdd[_0x7b1d('0x61')])){const _0x55b4d8=_0x5d0b71[_0x7b1d('0x113')][_0x7b1d('0x40')](_0x1cb854['start'],_0x3620a2);_0x1bd238[_0x7b1d('0x133')](_0x24c4e7['getFirstMarker'](),{'range':_0x55b4d8}),_0x17b545=!0x0;}}}return _0x17b545;}),_0x5d0b71[_0x7b1d('0x113')][_0x7b1d('0x9e')]['on']('update:suggestion',(_0x2a4b1f,_0x530e79,_0x55bc8e)=>{if(null==_0x55bc8e){const {id:_0x592524}=this['_splitMarkerName'](_0x530e79[_0x7b1d('0x136')]),_0x3dc0e6=this[_0x7b1d('0x9')][_0x7b1d('0x10d')](_0x592524);_0x3dc0e6&&_0x3dc0e6[_0x7b1d('0xe7')](_0x530e79[_0x7b1d('0x136')]);}}),_0x5d0b71['model'][_0x7b1d('0x11b')]['on']('change:data',()=>{const _0x4546f8=Array['from'](_0x5d0b71[_0x7b1d('0x113')][_0x7b1d('0x11b')]['differ'][_0x7b1d('0x90')]())[_0x7b1d('0x81')](_0x388740=>_0x7b1d('0x23')===this[_0x7b1d('0xe9')](_0x388740[_0x7b1d('0x136')])[_0x7b1d('0x122')]);if(0x0===_0x4546f8['length'])return;_0x4546f8[_0x7b1d('0x1c')]((_0x463a75,_0x3ce219)=>{const _0x22f020=_0x463a75['data'][_0x7b1d('0xa8')],_0x382163=_0x3ce219['data'][_0x7b1d('0xa8')];return null===_0x22f020&&null===_0x382163?0x0:null===_0x22f020&&null!==_0x382163?-0x1:null!==_0x22f020&&null===_0x382163?0x1:_0x22f020[_0x7b1d('0xc2')][_0x7b1d('0x2d')](_0x382163[_0x7b1d('0xc2')])?-0x1:0x1;});const _0x56a4f9=new Set(),_0x52170d=new Set();for(const {name:_0x17ba1c,data:_0x215c66}of _0x4546f8){const {id:_0xc8d99f}=this['_splitMarkerName'](_0x17ba1c);if(null===_0x215c66['oldRange']){const _0x5c075d=this[_0x7b1d('0xb1')](_0x17ba1c);_0x52170d['add'](_0x5c075d);}else{const _0xeda5b5=this[_0x7b1d('0x9')][_0x7b1d('0x10d')](_0xc8d99f);null!==_0x215c66['newRange']||_0xeda5b5[_0x7b1d('0x5e')]?(_0x56a4f9['add'](_0xeda5b5['head']),_0x52170d['add'](_0xeda5b5)):this[_0x7b1d('0xff')](_0xeda5b5);}}_0x52170d[_0x7b1d('0x3c')]>0x0&&this[_0x7b1d('0xef')](_0x52170d);for(const _0x89e09e of _0x56a4f9)this[_0x7b1d('0x118')](_0x7b1d('0x52'),_0x89e09e);}),_0x5d0b71[_0x7b1d('0x113')]['on']('applyOperation',(_0x1117ef,_0xc2782e)=>{const _0x4f7fb3=_0xc2782e[0x0];if(!this['_suggestions'][_0x7b1d('0x3c')])return;if(!_0x4f7fb3['isDocumentOperation'])return;if(_0x4f7fb3['batch'][_0x7b1d('0xa')]||!_0x4f7fb3[_0x7b1d('0x10e')][_0x7b1d('0x9d')])return;let _0xcebf87,_0x548108;switch(_0x4f7fb3[_0x7b1d('0xa2')]){case _0x7b1d('0x2b'):_0xcebf87=_0x5d0b71[_0x7b1d('0x113')][_0x7b1d('0xb7')](_0x4f7fb3['position']),_0x548108=_0xcebf87[_0x7b1d('0xc')](_0x4f7fb3[_0x7b1d('0xf2')]);break;case _0x7b1d('0x116'):_0xcebf87=_0x5d0b71['model'][_0x7b1d('0xb7')](_0x4f7fb3['splitPosition']),_0x548108=_0x5d0b71['model'][_0x7b1d('0xb7')](_0x4f7fb3[_0x7b1d('0x137')]);break;case'move':_0xcebf87=_0x5d0b71[_0x7b1d('0x113')][_0x7b1d('0xb7')](_0x4f7fb3[_0x7b1d('0xb2')]),_0x548108=_0xcebf87[_0x7b1d('0xc')](_0x4f7fb3[_0x7b1d('0xf2')]);break;default:return;}const _0x2f283c=_0x5d0b71[_0x7b1d('0x113')]['createRange'](_0xcebf87,_0x548108);_0x5d0b71['model'][_0x7b1d('0xed')](()=>{for(const {suggestion:_0x619d85,meta:_0x267913}of this[_0x7b1d('0xa3')](_0x2f283c)){if(_0x619d85['isMultiRange'])continue;if(_0x7b1d('0x11f')==_0x619d85[_0x7b1d('0xa2')])continue;const _0x4c8d0e=_0x619d85[_0x7b1d('0x91')]&&_0x619d85[_0x7b1d('0x91')][_0x7b1d('0xc7')];('formatBlock'!=_0x619d85[_0x7b1d('0xa2')]||'split'==_0x4f7fb3[_0x7b1d('0xa2')]&&!_0x4c8d0e)&&(_0x267913['containsRangeInObject']||'insertion'==_0x619d85[_0x7b1d('0xa2')]&&_0x267913['isOwn']||_0x619d85['getFirstRange']()[_0x7b1d('0x16')](_0x2f283c)&&this[_0x7b1d('0xe')](_0x619d85,_0xcebf87,_0x548108));}});},{'priority':_0x7b1d('0x49')}),_0x5d0b71[_0x7b1d('0x113')]['on'](_0x7b1d('0xdd'),(_0x3173b2,_0x2ac952)=>{const _0x43e8db=_0x2ac952[0x0],_0x324818=_0x2ac952[0x1];if(_0x324818&&_0x324818[_0x7b1d('0x98')])return;if(this[_0x7b1d('0x11e')])return;if(!this[_0x7b1d('0xfd')][_0x7b1d('0x8d')])return;if(_0x43e8db[_0x7b1d('0x21')])return;const _0x13cd92=_0x5d0b71[_0x7b1d('0x113')][_0x7b1d('0xd7')],{start:_0x57708d,end:_0x5bb989}=_0x43e8db[_0x7b1d('0x138')](),_0x17027e=_0x57708d[_0x7b1d('0x128')]&&_0x13cd92[_0x7b1d('0x127')](_0x57708d[_0x7b1d('0x128')])?null:_0x13cd92[_0x7b1d('0xb4')](_0x57708d,_0x7b1d('0xd5')),_0x4b862d=_0x5bb989[_0x7b1d('0x125')]&&_0x13cd92['isLimit'](_0x5bb989[_0x7b1d('0x125')])?null:_0x13cd92[_0x7b1d('0xb4')](_0x5bb989,'backward'),_0x197654=_0x5d0b71[_0x7b1d('0x113')]['createRange'](_0x17027e?_0x17027e[_0x7b1d('0xc2')]:_0x57708d,_0x4b862d?_0x4b862d[_0x7b1d('0x2a')]:_0x5bb989);_0x5d0b71['model'][_0x7b1d('0xed')](_0x335d27=>{this[_0x7b1d('0x10b')](_0x197654);const _0x2c9ac8=_0x5d0b71[_0x7b1d('0x113')][_0x7b1d('0xd7')][_0x7b1d('0xb4')](_0x197654[_0x7b1d('0xc2')]);_0x43e8db['is'](_0x7b1d('0x32'))?_0x335d27['setSelection'](_0x2c9ac8):_0x43e8db[_0x7b1d('0x82')](_0x2c9ac8);}),_0x3173b2[_0x7b1d('0x0')]();},{'priority':_0x51e1ab[_0x7b1d('0xb')]+0xa}),_0x5d0b71[_0x7b1d('0x113')]['on'](_0x7b1d('0x6f'),(_0x448b8a,_0x3aaea2)=>{const _0x4f1266=_0x3aaea2[_0x3aaea2[_0x7b1d('0x73')]-0x1];_0x4f1266&&_0x4f1266[_0x7b1d('0x98')]||this[_0x7b1d('0x11e')]||this[_0x7b1d('0xfd')]['value']&&(_0x5d0b71[_0x7b1d('0x113')][_0x7b1d('0xed')](()=>{let _0x4dcc16=_0x5d0b71[_0x7b1d('0x113')][_0x7b1d('0x6f')](_0x3aaea2[0x0],_0x3aaea2[0x1],_0x3aaea2[0x2],{'forceDefaultExecution':!0x0});if(!_0x4dcc16)return;_0x448b8a[_0x7b1d('0xf6')]=_0x4dcc16[_0x7b1d('0x14')]();const _0x2b8ac2=_0x4dcc16[_0x7b1d('0x2a')]['nodeBefore'],_0x567af3=_0x5d0b71['model'][_0x7b1d('0xd7')];_0x2b8ac2&&_0x567af3['isBlock'](_0x2b8ac2)&&!_0x567af3[_0x7b1d('0x62')](_0x2b8ac2)&&(_0x4dcc16=_0x5d0b71['model'][_0x7b1d('0x40')](_0x4dcc16['start'],_0x5d0b71[_0x7b1d('0x113')][_0x7b1d('0xb7')](_0x2b8ac2,'end'))),this[_0x7b1d('0x103')](_0x4dcc16);}),_0x448b8a['stop']());},{'priority':'high'}),this['editor'][_0x7b1d('0x5a')][_0x7b1d('0xad')](_0x7b1d('0x46'),this[_0x7b1d('0xfd')]),this[_0x7b1d('0x39')](_0x7b1d('0x46'));const _0x54f003=new _0x5f093d(_0x5d0b71,this[_0x7b1d('0x9')]);_0x5d0b71[_0x7b1d('0x5a')][_0x7b1d('0xad')]('acceptSuggestion',_0x54f003),this[_0x7b1d('0x39')](_0x7b1d('0x5c'));const _0x527924=new _0x40e317(_0x5d0b71,this[_0x7b1d('0x9')]);_0x5d0b71[_0x7b1d('0x5a')]['add'](_0x7b1d('0xc0'),_0x527924),this[_0x7b1d('0x39')](_0x7b1d('0xc0')),_0x5d0b71['commands'][_0x7b1d('0xad')]('acceptAllSuggestions',new _0x4ce6d9(_0x5d0b71,_0x54f003,this[_0x7b1d('0x9')])),this[_0x7b1d('0x39')](_0x7b1d('0x105')),_0x5d0b71[_0x7b1d('0x5a')]['add'](_0x7b1d('0x102'),new _0x4ce6d9(_0x5d0b71,_0x527924,this[_0x7b1d('0x9')])),this[_0x7b1d('0x39')](_0x7b1d('0x102')),_0x5d0b71[_0x7b1d('0x5a')][_0x7b1d('0xad')]('acceptSelectedSuggestions',new _0x1015b7(_0x5d0b71,_0x54f003,this[_0x7b1d('0x9')])),this['enableCommand'](_0x7b1d('0xd3')),_0x5d0b71[_0x7b1d('0x5a')][_0x7b1d('0xad')](_0x7b1d('0x100'),new _0x1015b7(_0x5d0b71,_0x527924,this[_0x7b1d('0x9')])),this['enableCommand'](_0x7b1d('0x100'));const _0x16dbe8=_0x5d0b71[_0x7b1d('0x51')][_0x7b1d('0x10d')](_0x7b1d('0x6b'));this[_0x7b1d('0x57')](_0x16dbe8,_0x7b1d('0x1f'),(_0x1675c7,{threadId:_0x2437e0})=>{const _0x76f16=this['_suggestions'][_0x7b1d('0x10d')](_0x2437e0);_0x76f16&&_0x76f16[_0x7b1d('0xc8')]&&0x1===_0x76f16[_0x7b1d('0xc8')][_0x7b1d('0x73')]&&this['_updateSuggestionData'](_0x2437e0,{'hasComments':!0x0});},{'priority':_0x7b1d('0x2')}),this[_0x7b1d('0x57')](_0x16dbe8,_0x7b1d('0xa9'),(_0x5b8f9e,{threadId:_0x5a9903})=>{const _0x33788b=this[_0x7b1d('0x9')][_0x7b1d('0x10d')](_0x5a9903);_0x33788b&&_0x33788b[_0x7b1d('0xc8')]&&!_0x33788b[_0x7b1d('0xc8')][_0x7b1d('0x73')]&&this[_0x7b1d('0x8a')](_0x5a9903,{'hasComments':!0x1});},{'priority':_0x7b1d('0x2')});}set['adapter'](_0x2f79f2){if(this[_0x7b1d('0xce')])throw new _0x39da4f(_0x7b1d('0x132'),this);this[_0x7b1d('0xce')]=_0x2f79f2;}get[_0x7b1d('0x60')](){return this[_0x7b1d('0xce')];}['getSuggestions']({skipNotAttached:_0x5b86e7=!0x1,toJSON:_0x3b7a2d=!0x1}={}){const _0x398952=[];for(const _0x47b72a of this[_0x7b1d('0x9')]['values']())_0x5b86e7&&!_0x47b72a[_0x7b1d('0x5e')]||_0x398952[_0x7b1d('0xc3')](_0x47b72a);return _0x3b7a2d?_0x398952['map'](_0x40089c=>_0x40089c[_0x7b1d('0xa7')]()):_0x398952;}[_0x7b1d('0x26')](_0xb8deda){const _0x32d47a=this[_0x7b1d('0x9')]['get'](_0xb8deda);if(!_0x32d47a)throw new _0x39da4f(_0x7b1d('0x7e'),this);return _0x32d47a;}[_0x7b1d('0x9c')](_0x942c6e){return this[_0x7b1d('0x9')]['has'](_0x942c6e);}[_0x7b1d('0x38')](_0x44de29){const {authorId:_0x40c2ac,id:_0x7530a7,attributes:_0x26e6c8}=_0x44de29,[_0x368c9c,_0x3aa6f1]=_0x44de29['type'][_0x7b1d('0x116')](':'),_0x3a8abe=this[_0x7b1d('0x9')][_0x7b1d('0x10d')](_0x7530a7)||this['_createSuggestion'](_0x368c9c,_0x3aa6f1,_0x7530a7,_0x40c2ac,_0x26e6c8);if(this[_0x7b1d('0x6e')](_0x3a8abe),this[_0x7b1d('0x2e')](_0x3a8abe,_0x368c9c,_0x3aa6f1||null,_0x40c2ac),_0x3a8abe[_0x7b1d('0x83')]=_0x44de29[_0x7b1d('0x83')],_0x26e6c8&&_0x26e6c8[_0x7b1d('0xac')]){const _0x555f86=_0x26e6c8[_0x7b1d('0xac')],_0x27e7f0=this[_0x7b1d('0xf5')](_0x555f86[_0x7b1d('0xb0')]);_0x3a8abe['authoredAt']=_0x555f86[_0x7b1d('0x83')],_0x3a8abe[_0x7b1d('0x121')]=_0x27e7f0,_0x3a8abe[_0x7b1d('0x74')]=!0x0;}else _0x3a8abe[_0x7b1d('0x13a')]=_0x44de29[_0x7b1d('0x83')];switch(_0x44de29['data']&&(_0x3a8abe[_0x7b1d('0x91')]=_0x44de29['data']),_0x44de29[_0x7b1d('0x106')]&&(_0x3a8abe[_0x7b1d('0x106')]=_0x44de29[_0x7b1d('0x106')]),this[_0x7b1d('0xce')]&&this['_adapter']['addSuggestion']||(_0x3a8abe[_0x7b1d('0xca')]=!0x0),this[_0x7b1d('0x70')]['get'](_0x3a8abe)){case _0x7b1d('0x78'):this[_0x7b1d('0x70')][_0x7b1d('0x3')](_0x3a8abe,'dataReady');break;case _0x7b1d('0x4'):_0x3a8abe[_0x7b1d('0x5e')]?(this[_0x7b1d('0x70')][_0x7b1d('0x3')](_0x3a8abe,_0x7b1d('0xfe')),this[_0x7b1d('0x118')](_0x7b1d('0x3d'),_0x3a8abe)):this['_suggestionState'][_0x7b1d('0x3')](_0x3a8abe,'removed');}return _0x3a8abe;}['acceptSuggestion'](_0x4125e8){this['forceDefaultExecution'](()=>{this[_0x7b1d('0x12b')][_0x7b1d('0x113')][_0x7b1d('0xed')](()=>{for(const _0x10ec9c of _0x4125e8['getAllAdjacentSuggestions']())_0x10ec9c[_0x7b1d('0x59')]();});});}[_0x7b1d('0xc0')](_0x4e299d){this[_0x7b1d('0x98')](()=>{this[_0x7b1d('0x12b')][_0x7b1d('0x113')][_0x7b1d('0xed')](()=>{for(const _0x108bdf of _0x4e299d['getAllAdjacentSuggestions']())_0x108bdf[_0x7b1d('0xab')]();});});}[_0x7b1d('0x39')](_0x3a2f10,_0x3dc764){const _0x55f9d0=this[_0x7b1d('0x12b')][_0x7b1d('0x5a')][_0x7b1d('0x10d')](_0x3a2f10);if(!_0x55f9d0)throw new _0x39da4f(_0x7b1d('0x7d'),this,{'commandName':_0x3a2f10});this[_0x7b1d('0x68')][_0x7b1d('0xad')](_0x55f9d0),_0x3dc764&&_0x55f9d0['on'](_0x7b1d('0x10'),(_0x59d762,_0x6fe91c)=>{this[_0x7b1d('0xfd')][_0x7b1d('0x8d')]&&(this[_0x7b1d('0x11e')]||_0x6fe91c[_0x7b1d('0x73')]>0x0&&_0x6fe91c[_0x6fe91c[_0x7b1d('0x73')]-0x1]&&_0x6fe91c[_0x6fe91c['length']-0x1][_0x7b1d('0x98')]||(_0x3dc764((..._0x1b518d)=>_0x55f9d0[_0x7b1d('0x10')](..._0x1b518d,{'forceDefaultExecution':!0x0}),..._0x6fe91c),_0x59d762['stop']()));},{'priority':'high'});}[_0x7b1d('0x98')](_0x4860f9){let _0x492b40,_0x69a2a3;const _0x5ccbcf=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x492b40=_0x4860f9();}catch(_0x712823){_0x69a2a3=_0x712823;}return _0x5ccbcf||(this[_0x7b1d('0x11e')]=!0x1),_0x69a2a3&&_0x39da4f[_0x7b1d('0x7')](_0x69a2a3,this),_0x492b40;}[_0x7b1d('0x103')](_0x16d7f2,_0x3592dd=null,_0x2f31b1={}){if(_0x16d7f2[_0x7b1d('0x21')])return null;const _0x1ae020=this[_0x7b1d('0x12b')]['plugins']['get'](_0x7b1d('0x3b'))['me'];for(const {suggestion:_0x7c2e54,meta:_0x42de34}of this[_0x7b1d('0xa3')](_0x16d7f2,_0x7b1d('0xaf')))if(_0x42de34[_0x7b1d('0xfb')]){if(!_0x42de34[_0x7b1d('0xbb')]){if(!this[_0x7b1d('0xda')]&&_0x42de34[_0x7b1d('0xd4')])continue;return _0x7c2e54;}if(_0x3592dd==_0x7c2e54[_0x7b1d('0x7c')]){const _0xa12a63=_0x7c2e54[_0x7b1d('0x138')]();return _0xa12a63[_0x7b1d('0xc2')]['isEqual'](_0x16d7f2[_0x7b1d('0x2a')])?this[_0x7b1d('0x77')](_0x7c2e54,this['_model'][_0x7b1d('0x40')](_0x16d7f2[_0x7b1d('0xc2')],_0xa12a63[_0x7b1d('0x2a')])):this[_0x7b1d('0x77')](_0x7c2e54,this[_0x7b1d('0x41')][_0x7b1d('0x40')](_0xa12a63[_0x7b1d('0xc2')],_0x16d7f2[_0x7b1d('0x2a')])),_0x7c2e54;}}const _0x2aab88=_0x26317d(),_0x30821a=_0x1ae020['id'],_0x336664=_0x3592dd?_0x7b1d('0x12f')+_0x3592dd:_0x7b1d('0xaf'),_0x150876=this[_0x7b1d('0x95')]({'id':_0x2aab88,'type':_0x336664,'createdAt':new Date(),'authorId':_0x30821a,'attributes':_0x2f31b1});return this['_addSuggestionMarker'](_0x336664,_0x2aab88,_0x30821a,_0x16d7f2),_0x150876;}[_0x7b1d('0x72')](_0x48f3e0,_0x2ee870=_0x7b1d('0x119'),_0xb2c76a={}){const _0x52dccb=this[_0x7b1d('0x12b')]['plugins'][_0x7b1d('0x10d')](_0x7b1d('0x3b'))['me'],_0x126327=this[_0x7b1d('0x120')][_0x7b1d('0x93')](_0x7b1d('0xaf'),_0x2ee870,_0x7b1d('0x66'));for(const _0x55037c of this[_0x7b1d('0x44')]())if(_0x55037c[_0x7b1d('0x121')]['id']==_0x52dccb['id']&&'insertion'==_0x55037c[_0x7b1d('0xa2')]&&_0x55037c[_0x7b1d('0x7c')]==_0x2ee870&&(_0x126327(_0x55037c[_0x7b1d('0x108')](),_0x48f3e0)||_0x126327(_0x48f3e0,_0x55037c['getRanges']()))){for(const _0x5ca992 of _0x48f3e0)_0x55037c[_0x7b1d('0x8e')](_0x5ca992);return _0x55037c;}if(this[_0x7b1d('0xda')])for(const _0x6916ed of _0x48f3e0)for(const {suggestion:_0x24668c,meta:_0x1ccfe2}of this[_0x7b1d('0xa3')](_0x6916ed,_0x7b1d('0xaf'))){if(!_0x1ccfe2['isOwn'])continue;let _0x3b4916=!0x0;for(const _0x4b7c75 of _0x24668c[_0x7b1d('0x108')]())for(const _0x7cee0b of _0x48f3e0)if(!_0x4b7c75[_0x7b1d('0x16')](_0x7cee0b)){_0x3b4916=!0x1;break;}if(_0x3b4916)return _0x24668c;}const _0x1ab8fe=_0x26317d(),_0x148547=_0x52dccb['id'],_0x1114bc=_0x7b1d('0x12f')+_0x2ee870,_0x566435=this['_setSuggestionData']({'id':_0x1ab8fe,'type':_0x1114bc,'createdAt':new Date(),'authorId':_0x148547,'attributes':_0xb2c76a});for(const _0x16ef94 of _0x48f3e0)this[_0x7b1d('0x4f')](_0x1114bc,_0x1ab8fe,_0x148547,_0x16ef94,_0x5731e0[_0x7b1d('0xb5')]());return _0x566435;}['markInlineFormat'](_0x2b6bf9,_0x5cfb44,_0x1899f3=null,_0x1a4de1={}){if(_0x1899f3=_0x1899f3||$t(_0x5cfb44),_0x2b6bf9[_0x7b1d('0x21')])return null;if(_0x7b1d('0x110')===this[_0x7b1d('0xbf')]){const _0x30fa65=this[_0x7b1d('0x120')][_0x7b1d('0x93')]('formatInline',_0x1899f3,_0x7b1d('0x59'));return this['forceDefaultExecution'](()=>_0x30fa65([_0x2b6bf9],_0x5cfb44,_0x1a4de1)),null;}const _0xf52e69=this['editor']['plugins']['get'](_0x7b1d('0x3b'))['me'],_0x5eaa85=[];if(_0x7b1d('0xe1')!==this[_0x7b1d('0xbf')])for(const {suggestion:_0x5ee9f4,meta:_0x10c34a}of this[_0x7b1d('0xa3')](_0x2b6bf9,_0x7b1d('0xaf')))_0x10c34a[_0x7b1d('0xfb')]&&!_0x10c34a['isInsideObject']&&_0x5eaa85[_0x7b1d('0xc3')](..._0x5ee9f4[_0x7b1d('0x108')]());const _0x566fb6=function(_0x2bf47d,_0x1bee68){const _0x38a545=[];for(const _0x57e4bb of _0x1bee68){const _0x3973e5=_0x2bf47d['getIntersection'](_0x57e4bb);_0x3973e5&&_0x38a545[_0x7b1d('0xc3')](_0x3973e5);}return _0x38a545;}(_0x2b6bf9,_0x5eaa85),_0x4a32e9=function(_0x31f9a6,_0x333fc2){const _0x507d4e=[_0x31f9a6];for(const _0x212aec of _0x333fc2){let _0x5185eb=0x0;for(;_0x5185eb<_0x507d4e[_0x7b1d('0x73')];){const _0x4bd4ab=_0x507d4e[_0x5185eb]['getDifference'](_0x212aec);_0x507d4e['splice'](_0x5185eb,0x1,..._0x4bd4ab),_0x5185eb+=_0x4bd4ab[_0x7b1d('0x73')];}}return _0x507d4e;}(_0x2b6bf9,_0x5eaa85);_0x566fb6[_0x7b1d('0x73')]&&this[_0x7b1d('0x41')][_0x7b1d('0xed')](()=>{for(const _0x251ca6 of _0x566fb6){const _0x531128=this[_0x7b1d('0x120')][_0x7b1d('0x93')](_0x7b1d('0x11f'),_0x1899f3,_0x7b1d('0x59'));this[_0x7b1d('0x98')](()=>_0x531128([_0x251ca6],_0x5cfb44,_0x1a4de1));}});for(const _0x39d02a of _0x4a32e9){let _0x9fd8d2=null,_0x4b948d=_0x39d02a[_0x7b1d('0xc2')],_0x382575=_0x39d02a['end'];for(const {suggestion:_0x3a2e8b,meta:_0x2902b9}of this[_0x7b1d('0xa3')](_0x39d02a,_0x7b1d('0x11f'))){if(!_0x2902b9[_0x7b1d('0xfb')])continue;if(_0x3a2e8b[_0x7b1d('0x7c')]!=_0x1899f3)continue;const _0x46fe38=_0x3a2e8b[_0x7b1d('0x138')]();if(_0x46fe38[_0x7b1d('0x16')](_0x39d02a,!0x0))return null;_0x4b948d=_0x4b948d[_0x7b1d('0x2d')](_0x46fe38[_0x7b1d('0xc2')])?_0x4b948d:_0x46fe38[_0x7b1d('0xc2')],_0x382575=_0x382575['isAfter'](_0x46fe38[_0x7b1d('0x2a')])?_0x382575:_0x46fe38[_0x7b1d('0x2a')],_0x9fd8d2?_0x46fe38[_0x7b1d('0xc2')][_0x7b1d('0x2d')](_0x9fd8d2[_0x7b1d('0x138')]()['start'])?(_0x9fd8d2['removeMarkers'](),_0x9fd8d2=_0x3a2e8b):_0x3a2e8b[_0x7b1d('0x11d')]():_0x9fd8d2=_0x3a2e8b;}const _0x215d9f=this[_0x7b1d('0x41')][_0x7b1d('0x40')](_0x4b948d,_0x382575);if(_0x9fd8d2)this[_0x7b1d('0x77')](_0x9fd8d2,_0x215d9f);else{const _0x433694=_0x26317d(),_0x8d37da=_0xf52e69['id'];this[_0x7b1d('0x95')]({'id':_0x433694,'type':_0x7b1d('0x63')+_0x1899f3,'data':_0x5cfb44,'createdAt':new Date(),'authorId':_0x8d37da,'attributes':_0x1a4de1}),this[_0x7b1d('0x4f')]('formatInline:'+_0x1899f3,_0x433694,_0x8d37da,_0x215d9f);}}return null;}[_0x7b1d('0x33')](_0x686f32,_0x187e3e,_0x35c17a=[],_0x13a8ee=null,_0x3cf6cb={}){_0x187e3e[_0x7b1d('0xeb')]||(_0x187e3e['formatGroupId']=_0x187e3e[_0x7b1d('0x88')]),_0x187e3e[_0x7b1d('0xc7')]=_0x686f32['is'](_0x7b1d('0x2f')),_0x13a8ee=_0x13a8ee||$t(_0x187e3e);const _0x36179a=_0x35c17a['map'](_0x475232=>Rt(_0x475232,this[_0x7b1d('0x41')])),_0x3f519b=_0x686f32['is'](_0x7b1d('0x2f'))?_0x686f32:Rt(_0x686f32,this[_0x7b1d('0x41')]);if(_0x7b1d('0x110')===this[_0x7b1d('0xbf')]){const _0x1b8e6b=this[_0x7b1d('0x120')][_0x7b1d('0x93')](_0x7b1d('0xa5'),_0x13a8ee,_0x7b1d('0x59'));return this[_0x7b1d('0x98')](()=>_0x1b8e6b([_0x3f519b],_0x187e3e,_0x3cf6cb)),null;}_0x36179a[_0x7b1d('0xc3')](_0x3f519b);let _0x2f1675=!0x0;for(const _0x450647 of _0x36179a)if(!this[_0x7b1d('0xe8')](_0x450647)){_0x2f1675=!0x1;break;}if(_0x2f1675&&_0x7b1d('0xe1')!==this[_0x7b1d('0xbf')]){const _0x17bfab=this[_0x7b1d('0x120')][_0x7b1d('0x93')](_0x7b1d('0xa5'),_0x13a8ee,_0x7b1d('0x59'));return this['forceDefaultExecution'](()=>_0x17bfab([_0x3f519b],_0x187e3e,_0x3cf6cb)),null;}let _0x31d05a=null,_0xcff07e=_0x3f519b[_0x7b1d('0xc2')],_0x21694f=_0x3f519b[_0x7b1d('0x2a')];for(const {suggestion:_0x1bf28d,meta:_0x459f24}of this['_findSuggestions'](_0x3f519b,'formatBlock')){if(!_0x459f24[_0x7b1d('0xfb')]||_0x459f24['isNextTo']||_0x459f24[_0x7b1d('0xd4')]||_0x459f24['isInsideObject'])continue;if(_0x1bf28d[_0x7b1d('0x91')]['formatGroupId']!=_0x187e3e['formatGroupId'])continue;const _0x5b62a9=_0x1bf28d['getFirstRange']();if(_0x1bf28d[_0x7b1d('0x7c')]==_0x13a8ee){if(_0x5b62a9[_0x7b1d('0x16')](_0x3f519b,!0x0))return null;_0xcff07e=_0xcff07e['isBefore'](_0x5b62a9['start'])?_0xcff07e:_0x5b62a9['start'],_0x21694f=_0x21694f[_0x7b1d('0xec')](_0x5b62a9[_0x7b1d('0x2a')])?_0x21694f:_0x5b62a9[_0x7b1d('0x2a')],_0x31d05a?_0x5b62a9[_0x7b1d('0xc2')]['isBefore'](_0x31d05a['getFirstRange']()['start'])?(_0x31d05a[_0x7b1d('0x11d')](),_0x31d05a=_0x1bf28d):_0x1bf28d[_0x7b1d('0x11d')]():_0x31d05a=_0x1bf28d;}else{const _0x3a79b3=_0x3f519b[_0x7b1d('0x34')](_0x5b62a9);this[_0x7b1d('0x1e')](_0x1bf28d,_0x3a79b3);}}const _0x503402=this['editor']['plugins'][_0x7b1d('0x10d')](_0x7b1d('0x3b'))['me'],_0xf3d4dd=_0x26317d(),_0x27d719=_0x503402['id'];if(_0x31d05a)return this[_0x7b1d('0x77')](_0x31d05a,this[_0x7b1d('0x41')]['createRange'](_0xcff07e,_0x21694f)),_0x31d05a;{const _0x398748=this[_0x7b1d('0x95')]({'id':_0xf3d4dd,'type':_0x7b1d('0xdf')+_0x13a8ee,'data':_0x187e3e,'createdAt':new Date(),'authorId':_0x27d719,'attributes':_0x3cf6cb});return this['_addSuggestionMarker']('formatBlock:'+_0x13a8ee,_0xf3d4dd,_0x27d719,this['_model'][_0x7b1d('0x40')](_0xcff07e,_0x21694f)),_0x398748;}}['markMultiRangeBlockFormat'](_0x359108,_0x56fa7a,_0x17f68d=[],_0x2421d5=null,_0x51d067={}){_0x56fa7a['formatGroupId']||(_0x56fa7a[_0x7b1d('0xeb')]=_0x56fa7a[_0x7b1d('0x88')]);const _0x5cf8c8=_0x359108[0x0];_0x56fa7a[_0x7b1d('0xc7')]=_0x5cf8c8['is'](_0x7b1d('0x2f')),_0x2421d5=_0x2421d5||$t(_0x56fa7a);const _0x2978c0=_0x17f68d[_0x7b1d('0xe5')](_0x18b9d0=>Rt(_0x18b9d0,this[_0x7b1d('0x41')])),_0x305b47=_0x5cf8c8['is']('range')?_0x359108:_0x359108['map'](_0x45f1da=>Rt(_0x45f1da,this[_0x7b1d('0x41')]));if('never'===this[_0x7b1d('0xbf')]){const _0x424be8=this[_0x7b1d('0x120')][_0x7b1d('0x93')](_0x7b1d('0xa5'),_0x2421d5,_0x7b1d('0x59'));return this[_0x7b1d('0x98')](()=>_0x424be8(_0x305b47,_0x56fa7a,_0x51d067)),null;}_0x2978c0['push'](..._0x305b47);let _0x3261c6=!0x0;for(const _0xc34413 of _0x2978c0)if(!this[_0x7b1d('0xe8')](_0xc34413)){_0x3261c6=!0x1;break;}if(_0x3261c6&&_0x7b1d('0xe1')!==this[_0x7b1d('0xbf')]){const _0x14b9c6=this['_suggestionFactory'][_0x7b1d('0x93')]('formatBlock',_0x2421d5,_0x7b1d('0x59'));return this[_0x7b1d('0x98')](()=>_0x14b9c6(_0x305b47,_0x56fa7a,_0x51d067)),null;}const _0x147149=this[_0x7b1d('0x12b')][_0x7b1d('0x51')][_0x7b1d('0x10d')]('Users')['me'];for(const _0x28622a of this[_0x7b1d('0x44')]()){if(_0x28622a['author']['id']!=_0x147149['id'])continue;if(_0x7b1d('0xa5')!=_0x28622a['type']||_0x28622a[_0x7b1d('0x91')][_0x7b1d('0xeb')]!=_0x56fa7a[_0x7b1d('0xeb')])continue;const _0x507de8=_0x28622a[_0x7b1d('0x7c')]==_0x2421d5;for(let _0x4bf4f0=0x0;_0x4bf4f0<_0x305b47['length'];_0x4bf4f0++){const _0x4e4703=_0x305b47[_0x4bf4f0];for(const _0x113666 of _0x28622a[_0x7b1d('0xdc')]()){const _0x128cd6=_0x113666[_0x7b1d('0x20')]();if(_0x4e4703[_0x7b1d('0x1')](_0x128cd6)){_0x507de8?(_0x305b47[_0x7b1d('0x7b')](_0x4bf4f0,0x1),_0x4bf4f0--):_0x28622a['removeMarker'](_0x113666[_0x7b1d('0x136')]);break;}}}}if(0x0==_0x305b47[_0x7b1d('0x73')])return null;const _0x4ab579=this[_0x7b1d('0x120')][_0x7b1d('0x93')](_0x7b1d('0xa5'),_0x2421d5,_0x7b1d('0x66'));for(const _0x16b8ea of this[_0x7b1d('0x44')]())if(_0x16b8ea[_0x7b1d('0x121')]['id']==_0x147149['id']&&_0x7b1d('0xa5')==_0x16b8ea['type']&&_0x16b8ea['data'][_0x7b1d('0xeb')]==_0x56fa7a[_0x7b1d('0xeb')]&&_0x16b8ea[_0x7b1d('0x7c')]==_0x2421d5&&(_0x4ab579(_0x16b8ea[_0x7b1d('0x108')](),_0x305b47)||_0x4ab579(_0x305b47,_0x16b8ea[_0x7b1d('0x108')]()))){for(const _0x571c14 of _0x305b47)_0x16b8ea['addRange'](_0x571c14);return _0x16b8ea;}const _0x3f236a=_0x26317d(),_0x472eff=_0x147149['id'],_0xe0788f=_0x7b1d('0xdf')+_0x2421d5,_0x1d7d2e=this[_0x7b1d('0x95')]({'id':_0x3f236a,'type':_0xe0788f,'data':_0x56fa7a,'createdAt':new Date(),'authorId':_0x472eff,'attributes':_0x51d067});for(const _0x53b8b3 of _0x305b47)this[_0x7b1d('0x4f')](_0xe0788f,_0x3f236a,_0x472eff,_0x53b8b3,_0x5731e0[_0x7b1d('0xb5')]());return _0x1d7d2e;}['markDeletion'](_0x4a9a07,_0x1a3ed4=null,_0x52b858={}){if(_0x4a9a07[_0x7b1d('0x21')])return null;const _0x2e917f=this[_0x7b1d('0x12b')][_0x7b1d('0x51')]['get'](_0x7b1d('0x3b'))['me'],_0x2af0d8=new _0x4e3075(_0x4a9a07[_0x7b1d('0xc2')],_0x4a9a07[_0x7b1d('0x2a')]);for(const {suggestion:_0x4abc00,meta:_0xadabf8}of this[_0x7b1d('0xa3')](_0x2af0d8,_0x7b1d('0xaf')))if(_0xadabf8[_0x7b1d('0xfb')]&&!_0xadabf8['isNextTo']){if(_0x4abc00[_0x7b1d('0x67')]){const _0x12cf01=_0x4abc00[_0x7b1d('0x108')]()['filter'](_0x3108e7=>_0x7b1d('0x54')!=_0x3108e7[_0x7b1d('0xb9')][_0x7b1d('0x65')]);_0x12cf01[_0x7b1d('0x86')](_0xf98761=>_0x2af0d8[_0x7b1d('0x16')](_0xf98761,!0x0))&&_0x4abc00['discard']();if(_0x12cf01[_0x7b1d('0x12d')](_0x3fa1ba=>_0x3fa1ba[_0x7b1d('0x16')](_0x2af0d8,!0x0))){const _0x542bef=this[_0x7b1d('0x120')][_0x7b1d('0x93')]('deletion',_0x1a3ed4,_0x7b1d('0x59'));return this[_0x7b1d('0x98')](()=>_0x542bef([_0x2af0d8],null,_0x52b858)),null;}}else{const _0x2753d0=_0x2af0d8['getIntersection'](_0x4abc00[_0x7b1d('0x138')]());null!==_0x2753d0&&_0x4abc00[_0x7b1d('0xd6')]([_0x2753d0],null,_0x52b858);}}if(_0x2af0d8[_0x7b1d('0xf7')](),_0x2af0d8[_0x7b1d('0x21')]||_0x7b1d('0x54')==_0x2af0d8[_0x7b1d('0xb9')]['rootName'])return null;let _0x94cd69=null,_0xf6f2cf=_0x2af0d8[_0x7b1d('0xc2')],_0x8c22d4=_0x2af0d8[_0x7b1d('0x2a')];for(const {suggestion:_0x5a99f1,meta:_0x3010f1}of this[_0x7b1d('0xa3')](_0x2af0d8,_0x7b1d('0x37')))if(_0x3010f1['isOwn']){if(_0x5a99f1[_0x7b1d('0x67')]&&this[_0x7b1d('0xda')]){let _0xb8c35c=!0x0;for(const _0x357ee9 of _0x5a99f1[_0x7b1d('0x108')]()){if(_0x357ee9['containsRange'](_0x2af0d8,!0x0))return _0x5a99f1;_0x2af0d8[_0x7b1d('0x16')](_0x357ee9)||(_0xb8c35c=!0x1);}_0xb8c35c&&_0x5a99f1[_0x7b1d('0xab')]();}else{const _0x163c20=_0x5a99f1[_0x7b1d('0x138')]();if(_0x163c20[_0x7b1d('0x16')](_0x2af0d8,!0x0)){if(!this[_0x7b1d('0xda')]&&_0x3010f1[_0x7b1d('0xd4')])continue;return _0x5a99f1;}_0xf6f2cf=_0xf6f2cf[_0x7b1d('0x2d')](_0x163c20['start'])?_0xf6f2cf:_0x163c20[_0x7b1d('0xc2')],_0x8c22d4=_0x8c22d4['isAfter'](_0x163c20[_0x7b1d('0x2a')])?_0x8c22d4:_0x163c20[_0x7b1d('0x2a')],_0x94cd69?_0x163c20[_0x7b1d('0xc2')][_0x7b1d('0x2d')](_0x94cd69[_0x7b1d('0x138')]()[_0x7b1d('0xc2')])?(_0x94cd69[_0x7b1d('0x11d')](),_0x94cd69=_0x5a99f1):_0x5a99f1['removeMarkers']():_0x94cd69=_0x5a99f1;}}if(_0x94cd69)return this['_setSuggestionRange'](_0x94cd69,this[_0x7b1d('0x41')][_0x7b1d('0x40')](_0xf6f2cf,_0x8c22d4)),_0x94cd69;{const _0x1fe3b9=_0x26317d(),_0x5ada44=this[_0x7b1d('0x41')][_0x7b1d('0x40')](_0xf6f2cf,_0x8c22d4),_0x28d276=_0x2e917f['id'],_0x1688ee=_0x1a3ed4?_0x7b1d('0xc9')+_0x1a3ed4:_0x7b1d('0x37'),_0x4d4092=this['_setSuggestionData']({'id':_0x1fe3b9,'type':_0x1688ee,'createdAt':new Date(),'authorId':_0x28d276,'attributes':_0x52b858});return this[_0x7b1d('0x4f')](_0x1688ee,_0x1fe3b9,_0x28d276,_0x5ada44),_0x4d4092;}}[_0x7b1d('0x53')](_0x573a53,_0x14484a=_0x7b1d('0x119'),_0x5f20e8={}){const _0x5e7b9a=this[_0x7b1d('0x12b')][_0x7b1d('0x51')][_0x7b1d('0x10d')]('Users')['me'],_0x3ac735=_0x573a53['map'](_0x1c7424=>new _0x4e3075(_0x1c7424['start'],_0x1c7424[_0x7b1d('0x2a')])),_0x819bbc=new Set();for(const _0x2192d9 of _0x3ac735)for(const {suggestion:_0x6679c9,meta:_0x39d49c}of this[_0x7b1d('0xa3')](_0x2192d9,'insertion'))_0x39d49c['isOwn']&&!_0x39d49c['isNextTo']&&_0x819bbc[_0x7b1d('0xad')](_0x6679c9);for(const _0x323396 of _0x819bbc)if(_0x323396[_0x7b1d('0x67')]){const _0xdc2e07=_0x323396['getRanges']();(!_0x323396[_0x7b1d('0x106')]||!_0x323396[_0x7b1d('0x106')]['skipNestingCheck'])&&(_0xdc2e07['every'](_0x560a1f=>_0x3ac735['some'](_0x9e835a=>_0x9e835a['containsRange'](_0x560a1f,!0x0)))&&_0x323396[_0x7b1d('0xab')]());if(_0x3ac735[_0x7b1d('0x86')](_0x4f329c=>_0xdc2e07[_0x7b1d('0x12d')](_0x5eba39=>_0x5eba39[_0x7b1d('0x16')](_0x4f329c,!0x0)))){const _0x2a888c=this['_suggestionFactory'][_0x7b1d('0x93')](_0x7b1d('0x37'),_0x14484a,_0x7b1d('0x59'));return this[_0x7b1d('0x98')](()=>_0x2a888c(_0x573a53,null,_0x5f20e8)),null;}}else{const _0x16cd7c=_0x323396[_0x7b1d('0x138')]();_0x3ac735[_0x7b1d('0x12d')](_0x50973d=>_0x50973d[_0x7b1d('0x16')](_0x16cd7c,!0x0))&&_0x323396['discard']();if(_0x3ac735['every'](_0xabf51=>_0x16cd7c['containsRange'](_0xabf51,!0x0))){const _0x5ceab1=this['_suggestionFactory']['getSuggestionCallback'](_0x7b1d('0x37'),_0x14484a,_0x7b1d('0x59'));return this[_0x7b1d('0x98')](()=>_0x5ceab1(_0x3ac735,null,_0x5f20e8)),null;}}const _0x5660bd=this[_0x7b1d('0x120')]['getSuggestionCallback'](_0x7b1d('0x37'),_0x14484a,_0x7b1d('0x66'));let _0x5b935b=null;for(const _0x5c770f of this['getSuggestions']())if(_0x5c770f[_0x7b1d('0x121')]['id']==_0x5e7b9a['id']&&_0x5c770f[_0x7b1d('0x5e')]&&_0x7b1d('0x37')==_0x5c770f[_0x7b1d('0xa2')]&&_0x5c770f[_0x7b1d('0x7c')]==_0x14484a&&(_0x5660bd(_0x5c770f['getRanges'](),_0x3ac735)||_0x5660bd(_0x3ac735,_0x5c770f[_0x7b1d('0x108')]()))){if(_0x5b935b){if(_0x5c770f[_0x7b1d('0xc8')]&&_0x5c770f[_0x7b1d('0xc8')]['length'])continue;for(const _0x5bb6f6 of _0x5c770f[_0x7b1d('0x108')]())_0x5b935b['isIntersectingWithRange'](_0x5bb6f6)||_0x5b935b[_0x7b1d('0x8e')](_0x5bb6f6);_0x5c770f[_0x7b1d('0x11d')]();}else{_0x5b935b=_0x5c770f;for(const _0x4e5ceb of _0x3ac735)_0x5c770f[_0x7b1d('0x8c')](_0x4e5ceb)||_0x5c770f[_0x7b1d('0x8e')](_0x4e5ceb);}}if(_0x5b935b)return _0x5b935b;_0x819bbc[_0x7b1d('0xc5')]();for(const _0x394702 of _0x3ac735)for(const {suggestion:_0x14903c,meta:_0x5b6552}of this[_0x7b1d('0xa3')](_0x394702,_0x7b1d('0x37')))_0x5b6552[_0x7b1d('0xfb')]&&_0x819bbc[_0x7b1d('0xad')](_0x14903c);for(const _0x432895 of _0x819bbc){const _0x4f4990=_0x432895[_0x7b1d('0x108')]();if(!_0x5f20e8||!_0x5f20e8[_0x7b1d('0x11a')]){if(_0x3ac735[_0x7b1d('0x86')](_0x3ebea2=>_0x4f4990['some'](_0x244911=>_0x244911[_0x7b1d('0x16')](_0x3ebea2,!0x0))))return _0x432895;}(!_0x432895[_0x7b1d('0x106')]||!_0x432895[_0x7b1d('0x106')][_0x7b1d('0x11a')])&&(_0x4f4990['every'](_0x3566fb=>_0x3ac735[_0x7b1d('0x12d')](_0x3b7710=>_0x3b7710[_0x7b1d('0x16')](_0x3566fb,!0x0)))&&_0x432895[_0x7b1d('0xab')]());}const _0x18b57a=_0x26317d(),_0x23fc39=_0x5e7b9a['id'],_0x28b50b=_0x7b1d('0xc9')+_0x14484a,_0x3842ee=this[_0x7b1d('0x95')]({'id':_0x18b57a,'type':_0x28b50b,'createdAt':new Date(),'authorId':_0x23fc39,'attributes':_0x5f20e8});for(const _0x489e9e of _0x3ac735)_0x489e9e[_0x7b1d('0xf7')](),_0x489e9e[_0x7b1d('0x21')]||_0x7b1d('0x54')==_0x489e9e['root'][_0x7b1d('0x65')]||this['_addSuggestionMarker'](_0x28b50b,_0x18b57a,_0x23fc39,_0x489e9e,_0x5731e0[_0x7b1d('0xb5')]());return _0x3842ee;}[_0x7b1d('0x77')](_0x5b4663,_0x2b9b77){const _0x20e2ff=_0x5b4663[_0x7b1d('0x6d')]();this[_0x7b1d('0x41')]['change'](_0x4817b8=>{_0x4817b8[_0x7b1d('0x133')](_0x20e2ff,{'range':_0x2b9b77});});}[_0x7b1d('0x6e')](_0x16f9b3){const _0x3ba3de=_0x16f9b3['id'],_0x384678=this['editor'][_0x7b1d('0x24')]['get'](_0x7b1d('0x9f'));this[_0x7b1d('0x123')][_0x7b1d('0x92')](_0x3ba3de)||this[_0x7b1d('0x123')]['addCommentThread']({'channelId':_0x384678,'threadId':_0x3ba3de,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5059f2=this[_0x7b1d('0x123')][_0x7b1d('0x11c')](_0x3ba3de);_0x5059f2[_0x7b1d('0x13')]('isRemovable'),_0x5059f2[_0x7b1d('0x7a')]=!0x1,_0x16f9b3['commentThread']=_0x5059f2;}[_0x7b1d('0x2e')](_0xc849e6,_0x20b01d,_0x474be8,_0x3da3aa){if(_0xc849e6[_0x7b1d('0xa2')]!=_0x20b01d||_0xc849e6[_0x7b1d('0x7c')]!=_0x474be8||_0xc849e6['creator']['id']!=_0x3da3aa)throw this[_0x7b1d('0x12b')]['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x39da4f(_0x7b1d('0x13c'),this);}[_0x7b1d('0x1e')](_0x420f08,_0x2ab442){const _0x3cc895=_0x420f08[_0x7b1d('0x138')]();if(_0x2ab442[_0x7b1d('0x1')](_0x3cc895))_0x420f08[_0x7b1d('0x11d')]();else{if(_0x3cc895['containsRange'](_0x2ab442)){const _0x47e32f=this['_model'][_0x7b1d('0xb7')](_0x2ab442['start'][_0x7b1d('0x125')],_0x7b1d('0x2a'));this['_setSuggestionRange'](_0x420f08,this[_0x7b1d('0x41')][_0x7b1d('0x40')](_0x3cc895['start'],_0x47e32f));const _0x36263b=_0x26317d(),_0x419176=_0x420f08[_0x7b1d('0xa1')]['id'],_0x2365ef=_0x420f08[_0x7b1d('0xa2')]+':'+_0x420f08[_0x7b1d('0x7c')];this[_0x7b1d('0x95')]({'id':_0x36263b,'type':_0x2365ef,'createdAt':new Date(),'authorId':_0x419176,'data':_0x420f08['data'],'attributes':_0x420f08['attributes']});const _0x369af5=this['_model']['createPositionAt'](_0x2ab442[_0x7b1d('0x2a')][_0x7b1d('0x76')],'after'),_0x203f31=this[_0x7b1d('0x41')][_0x7b1d('0x40')](_0x369af5,_0x3cc895['end']);this['_addSuggestionMarker'](_0x2365ef,_0x36263b,_0x419176,_0x203f31);}else{if(_0x3cc895['containsPosition'](_0x2ab442[_0x7b1d('0xc2')])){const _0x2bab5b=this[_0x7b1d('0x41')][_0x7b1d('0xb7')](_0x2ab442[_0x7b1d('0xc2')][_0x7b1d('0x125')],_0x7b1d('0x2a'));this['_setSuggestionRange'](_0x420f08,this[_0x7b1d('0x41')][_0x7b1d('0x40')](_0x3cc895['start'],_0x2bab5b));}else{const _0x334b15=this[_0x7b1d('0x41')]['createPositionAt'](_0x2ab442[_0x7b1d('0x2a')][_0x7b1d('0x76')],_0x7b1d('0x139'));this['_setSuggestionRange'](_0x420f08,this[_0x7b1d('0x41')]['createRange'](_0x334b15,_0x3cc895['end']));}}}}[_0x7b1d('0xe8')](_0x5bd3e3){for(const {suggestion:_0x75e31e,meta:_0x22ffd8}of this[_0x7b1d('0xa3')](_0x5bd3e3,_0x7b1d('0xaf'))){if(!_0x22ffd8[_0x7b1d('0xfb')])continue;const _0xb9116c=_0x75e31e[_0x7b1d('0x108')]();for(const _0x4f7066 of _0xb9116c)if(!_0x5bd3e3[_0x7b1d('0x8f')](_0x4f7066)[_0x7b1d('0x73')])return!0x0;}return!0x1;}[_0x7b1d('0x9b')](_0xbf6f5f){const _0x21653b=this[_0x7b1d('0x12b')][_0x7b1d('0x51')]['get']('Users')[_0x7b1d('0x109')](_0xbf6f5f);if(!_0x21653b)throw new _0x39da4f('track-changes-user-not-found',this);return _0x21653b;}[_0x7b1d('0xf5')](_0xb76820){const _0x399ff0=this[_0x7b1d('0x12b')]['plugins']['get']('Users'),_0xbbac54=_0x1c57e1(_0x7b1d('0x10a')+_0xb76820),_0x536e8e=_0x399ff0['getUser'](_0xbbac54);return _0x536e8e||_0x399ff0[_0x7b1d('0x10f')]({'id':_0xbbac54,'name':_0xb76820});}['_createSuggestion'](_0x97bde9,_0x4bd434,_0x143793,_0xa3c5f7,_0x26db28){const _0x3270f6=this[_0x7b1d('0x9b')](_0xa3c5f7),_0x1c6155=this[_0x7b1d('0x120')][_0x7b1d('0xe6')](_0x97bde9,_0x4bd434,_0x143793,_0x3270f6,_0x26db28,_0x4ba5c5=>this['_updateSuggestionData'](_0x143793,{'attributes':_0x4ba5c5}));return this[_0x7b1d('0x57')](_0x1c6155,_0x7b1d('0x59'),()=>{this[_0x7b1d('0x8a')](_0x143793,{'state':_0x7b1d('0xa4')});},{'priority':_0x7b1d('0x1b')}),this[_0x7b1d('0x57')](_0x1c6155,'discard',()=>{this[_0x7b1d('0x8a')](_0x143793,{'state':'rejected'});},{'priority':_0x7b1d('0x1b')}),this[_0x7b1d('0x9')][_0x7b1d('0x3')](_0x143793,_0x1c6155),this[_0x7b1d('0x70')][_0x7b1d('0x3')](_0x1c6155,_0x7b1d('0x78')),_0x1c6155;}[_0x7b1d('0xe9')](_0x2407d2){const _0x1a3da7=_0x2407d2[_0x7b1d('0x116')](':');return{'group':_0x1a3da7[0x0],'type':_0x1a3da7[0x1],'subType':_0x1a3da7[_0x7b1d('0x73')]>=0x5?_0x1a3da7[0x2]:null,'id':_0x1a3da7[_0x7b1d('0x73')]<0x5?_0x1a3da7[0x2]:_0x1a3da7[0x3],'authorId':_0x1a3da7[_0x7b1d('0x73')]<0x5?_0x1a3da7[0x3]:_0x1a3da7[0x4],'markerCount':0x6==_0x1a3da7['length']?_0x1a3da7[0x5]:null};}[_0x7b1d('0xe')](_0x287f20,_0x93bbce,_0x191e1f){const _0x437510=_0x287f20[_0x7b1d('0x138')](),_0x2a7ae4=_0x437510[_0x7b1d('0xc2')],_0x4121c5=_0x437510[_0x7b1d('0x2a')];this[_0x7b1d('0x77')](_0x287f20,this[_0x7b1d('0x41')][_0x7b1d('0x40')](_0x2a7ae4,_0x93bbce));const _0x48ef12=_0x26317d(),_0x321046=_0x287f20[_0x7b1d('0xa1')]['id'],_0x494dd4=_0x287f20[_0x7b1d('0xa2')]+(_0x287f20['subType']?':'+_0x287f20[_0x7b1d('0x7c')]:'');this[_0x7b1d('0x95')]({'id':_0x48ef12,'type':_0x494dd4,'createdAt':new Date(),'authorId':_0x321046,'originalSuggestionId':_0x287f20['id'],'attributes':_0x287f20[_0x7b1d('0x106')],'data':_0x287f20[_0x7b1d('0x91')]}),'formatBlock'==_0x287f20[_0x7b1d('0xa2')]&&(_0x191e1f=this['_model']['createPositionBefore'](_0x191e1f['parent'])),this[_0x7b1d('0x4f')](_0x494dd4,_0x48ef12,_0x321046,this['_model'][_0x7b1d('0x40')](_0x191e1f,_0x4121c5));}[_0x7b1d('0xa3')](_0x466ced,_0x3b2ac9=null){const _0x58fe04=[],_0x378eef=this[_0x7b1d('0x41')][_0x7b1d('0xd7')],_0x46935e=this['editor']['plugins'][_0x7b1d('0x10d')]('Users')['me'];for(const _0x5a5221 of this[_0x7b1d('0x44')]())if(_0x5a5221[_0x7b1d('0x5e')]&&(!_0x3b2ac9||_0x5a5221[_0x7b1d('0xa2')]==_0x3b2ac9))for(const _0x7709c3 of _0x5a5221['getRanges']()){const _0x25119a=_0x466ced[_0x7b1d('0xc2')][_0x7b1d('0x1')](_0x7709c3[_0x7b1d('0x2a')])||_0x466ced[_0x7b1d('0x2a')][_0x7b1d('0x1')](_0x7709c3[_0x7b1d('0xc2')]);if(_0x25119a||_0x466ced['getIntersection'](_0x7709c3)){const _0x1565aa=_0x466ced[_0x7b1d('0x16')](_0x7709c3)&&Bt(_0x378eef,_0x7709c3[_0x7b1d('0xc2')],_0x466ced),_0xd8948e=_0x7709c3[_0x7b1d('0x16')](_0x466ced)&&Bt(_0x378eef,_0x466ced[_0x7b1d('0xc2')],_0x7709c3);_0x58fe04['push']({'suggestion':_0x5a5221,'meta':{'isOwn':_0x46935e==_0x5a5221[_0x7b1d('0x121')],'isNextTo':_0x25119a,'isInsideObject':_0x1565aa,'containsRangeInObject':_0xd8948e}});break;}}return _0x58fe04;}[_0x7b1d('0x4f')](_0x482250,_0x6291a,_0x1ddcfa,_0x347467,_0x2ea174){this[_0x7b1d('0x41')]['change'](_0x506ec6=>{let _0x12ddca='suggestion:'+_0x482250+':'+_0x6291a+':'+_0x1ddcfa;_0x2ea174&&(_0x12ddca=_0x12ddca+':'+_0x2ea174),_0x506ec6[_0x7b1d('0x104')](_0x12ddca,{'range':_0x347467,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x364c9e){const _0x6f105e=_0x364c9e['previous'],_0x4a8f73=_0x364c9e['next'];_0x364c9e[_0x7b1d('0x129')]=null,null!=_0x6f105e&&(_0x6f105e['next']=null),_0x364c9e[_0x7b1d('0x131')]=null,null!=_0x4a8f73&&(_0x4a8f73['previous']=null),_0x7b1d('0xfe')==this[_0x7b1d('0x70')][_0x7b1d('0x10d')](_0x364c9e)&&(this['_suggestionState'][_0x7b1d('0x3')](_0x364c9e,_0x7b1d('0xcf')),this[_0x7b1d('0x118')](_0x7b1d('0xfc'),_0x364c9e,_0x6f105e,_0x4a8f73));}[_0x7b1d('0x95')](_0x5767b3){const _0x253db0=_0x5767b3['id'],_0x312ef6=this['addSuggestionData'](_0x5767b3);if(this[_0x7b1d('0xce')]&&this[_0x7b1d('0xce')][_0x7b1d('0x114')]){const _0x4af59f=this[_0x7b1d('0x12b')][_0x7b1d('0x51')]['get']('PendingActions'),_0x225e2c=_0x312ef6[_0x7b1d('0xf1')],_0x391ea9=_0x312ef6[_0x7b1d('0x7c')]?_0x312ef6['type']+':'+_0x312ef6[_0x7b1d('0x7c')]:_0x312ef6[_0x7b1d('0xa2')],_0xee9b09=this['editor'][_0x7b1d('0x6c')],_0x65fed1=_0x4af59f[_0x7b1d('0xad')](_0x327a39(_0xee9b09,_0x7b1d('0x117'))),_0x373d59={'id':_0x253db0,'type':_0x391ea9,'hasComments':_0x225e2c,'data':_0x5767b3[_0x7b1d('0x91')]||null,'originalSuggestionId':_0x5767b3[_0x7b1d('0x5f')]||null,'attributes':_0x312ef6[_0x7b1d('0x106')]};this[_0x7b1d('0xce')][_0x7b1d('0x114')](_0x373d59)['then'](_0x1d46a8=>{_0x312ef6[_0x7b1d('0xca')]=!0x0,_0x4af59f['remove'](_0x65fed1),_0x1d46a8&&_0x1d46a8['createdAt']&&(this[_0x7b1d('0x9')][_0x7b1d('0x10d')](_0x253db0)[_0x7b1d('0x83')]=_0x1d46a8[_0x7b1d('0x83')]);})['catch'](_0x2f9dc4=>{throw _0x4736cc('error-saving-suggestion-data-suggestion-discarded'),this[_0x7b1d('0x12b')][_0x7b1d('0x113')]['enqueueChange']({'isUndoable':!0x1},()=>{_0x312ef6['discard']();}),_0x312ef6[_0x7b1d('0x12')](),this['_suggestions']['delete'](_0x312ef6['id']),this[_0x7b1d('0x70')][_0x7b1d('0x12e')](_0x312ef6),_0x2f9dc4;});}return _0x312ef6;}[_0x7b1d('0x8a')](_0x4d49c5,_0x24a1f3){const _0x135fd5=this['editor'][_0x7b1d('0x51')][_0x7b1d('0x10d')](_0x7b1d('0x35')),_0x58909e=this['getSuggestion'](_0x4d49c5);if(this[_0x7b1d('0xce')]&&this[_0x7b1d('0xce')]['updateSuggestion']){if(_0x58909e['_saved']){const _0x5cf052=_0x135fd5[_0x7b1d('0xad')](_0x327a39(this[_0x7b1d('0x12b')][_0x7b1d('0x6c')],_0x7b1d('0x117')));this[_0x7b1d('0xce')][_0x7b1d('0x97')](_0x4d49c5,_0x24a1f3)[_0x7b1d('0x4e')](()=>{_0x135fd5['remove'](_0x5cf052);});}else _0x58909e['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4d49c5,_0x24a1f3);});}}[_0x7b1d('0x48')](_0x5e2759){if(!this[_0x7b1d('0xce')]||!this['_adapter'][_0x7b1d('0x26')])throw new _0x39da4f(_0x7b1d('0xea'),this);return this[_0x7b1d('0xce')]['getSuggestion'](_0x5e2759);}[_0x7b1d('0xb1')](_0x569418){const {id:_0x4aaeaa,type:_0x383b1,subType:_0xa1afe1,authorId:_0x4b392e}=this[_0x7b1d('0xe9')](_0x569418),_0x59b58d=this[_0x7b1d('0x9')][_0x7b1d('0x10d')](_0x4aaeaa)||this[_0x7b1d('0x130')](_0x383b1,_0xa1afe1,_0x4aaeaa,_0x4b392e,{});switch(this[_0x7b1d('0x2e')](_0x59b58d,_0x383b1,_0xa1afe1,_0x4b392e),this[_0x7b1d('0x70')][_0x7b1d('0x10d')](_0x59b58d)){case _0x7b1d('0x78'):this[_0x7b1d('0x48')](_0x4aaeaa)[_0x7b1d('0x4e')](_0x4d7840=>{let _0x270b9e=Promise['resolve']();_0x4d7840[_0x7b1d('0xf1')]&&(_0x270b9e=this[_0x7b1d('0x123')][_0x7b1d('0xd2')]({'channelId':this[_0x7b1d('0x12b')]['config'][_0x7b1d('0x10d')](_0x7b1d('0x9f')),'threadId':_0x4aaeaa})),_0x270b9e[_0x7b1d('0x4e')](()=>{this['addSuggestionData'](_0x4d7840)[_0x7b1d('0xca')]=!0x0;});}),this[_0x7b1d('0x70')][_0x7b1d('0x3')](_0x59b58d,_0x7b1d('0x4'));break;case _0x7b1d('0xcf'):this[_0x7b1d('0x8a')](_0x4aaeaa,{'state':_0x7b1d('0x80')});case'dataReady':this[_0x7b1d('0x70')][_0x7b1d('0x3')](_0x59b58d,_0x7b1d('0xfe')),this[_0x7b1d('0x118')]('suggestionLoaded',_0x59b58d);break;case _0x7b1d('0xfe'):this['fire'](_0x7b1d('0x52'),_0x59b58d);}return _0x59b58d[_0x7b1d('0xe7')](_0x569418),_0x59b58d;}[_0x7b1d('0xef')](_0x5dc9bf){const _0x35d51d=Array[_0x7b1d('0x6')](_0x5dc9bf)[_0x7b1d('0x81')](_0x22e74a=>!_0x22e74a[_0x7b1d('0x67')]),_0x5a6de3=this[_0x7b1d('0x44')]({'skipNotAttached':!0x0})[_0x7b1d('0x81')](_0x5f2b92=>!_0x5f2b92[_0x7b1d('0x67')]),_0x36c94c=_0x5a6de3[_0x7b1d('0x81')](_0x4c24d8=>!_0x5dc9bf[_0x7b1d('0x1d')](_0x4c24d8)),_0x42e4ad=new Map(_0x5a6de3['map'](_0xa102c8=>[_0xa102c8,this['_suggestionFactory'][_0x7b1d('0x93')](_0xa102c8[_0x7b1d('0xa2')],_0xa102c8[_0x7b1d('0x7c')],'chain')])),_0x26ea89=new Map(_0x5a6de3[_0x7b1d('0xe5')](_0x131bc2=>[_0x131bc2,_0x131bc2['getFirstRange']()])),_0x452c0=new Set(),_0x850022=new Set();for(let _0x2036d2=0x0;_0x2036d2<_0x35d51d['length'];_0x2036d2++)_0x387330(_0x35d51d[_0x2036d2],_0x35d51d,_0x2036d2+0x1);for(let _0x2d51ef=0x0;_0x2d51ef<_0x35d51d[_0x7b1d('0x73')];_0x2d51ef++)_0x387330(_0x35d51d[_0x2d51ef],_0x36c94c,0x0);for(let _0x19bcd6=0x0;_0x19bcd6<_0x35d51d[_0x7b1d('0x73')];_0x19bcd6++){const _0x22f050=_0x35d51d[_0x19bcd6];!_0x850022[_0x7b1d('0x1d')](_0x22f050)&&_0x22f050['previous']&&(_0x22f050['previous'][_0x7b1d('0x131')]===_0x22f050&&(_0x22f050[_0x7b1d('0x129')][_0x7b1d('0x131')]=null),_0x22f050['previous']=null),!_0x452c0[_0x7b1d('0x1d')](_0x22f050)&&_0x22f050[_0x7b1d('0x131')]&&(_0x22f050['next'][_0x7b1d('0x129')]===_0x22f050&&(_0x22f050['next'][_0x7b1d('0x129')]=null),_0x22f050['next']=null);}function _0x387330(_0x4c12ef,_0x2300fc,_0x24634c){for(let _0x480e3d=_0x24634c;_0x480e3d<_0x2300fc[_0x7b1d('0x73')];_0x480e3d++){const _0x3452f1=_0x22e9c9(_0x4c12ef,_0x2300fc[_0x480e3d]);_0x3452f1&&(_0x3452f1[0x0][_0x7b1d('0x131')]=_0x3452f1[0x1],_0x3452f1[0x1][_0x7b1d('0x129')]=_0x3452f1[0x0],_0x452c0['add'](_0x3452f1[0x0]),_0x850022[_0x7b1d('0xad')](_0x3452f1[0x1]));}}function _0x22e9c9(_0x2299a5,_0x246672){if(_0x2299a5['author']['id']!==_0x246672[_0x7b1d('0x121')]['id'])return null;const _0xc9de34=_0x42e4ad[_0x7b1d('0x10d')](_0x2299a5)(_0x2299a5,_0x246672,_0x26ea89[_0x7b1d('0x10d')](_0x2299a5),_0x26ea89[_0x7b1d('0x10d')](_0x246672));if(!_0xc9de34)return null;return _0x42e4ad[_0x7b1d('0x10d')](_0x246672)(_0x2299a5,_0x246672,_0x26ea89[_0x7b1d('0x10d')](_0x2299a5),_0x26ea89['get'](_0x246672))?_0xc9de34[0x1]['commentThread']&&_0xc9de34[0x1][_0x7b1d('0xc8')][_0x7b1d('0x73')]?null:_0xc9de34:null;}}[_0x7b1d('0xe4')](_0xed93ab){const _0x349c24=Array[_0x7b1d('0x6')](_0xed93ab),_0x47bd60=this[_0x7b1d('0x44')]({'skipNotAttached':!0x0}),_0x1cb30c=_0x47bd60['filter'](_0x27aa9d=>!_0xed93ab[_0x7b1d('0x1d')](_0x27aa9d)),_0x3e41b9=new Map(_0x349c24[_0x7b1d('0xe5')](_0xd0a61d=>[_0xd0a61d,this[_0x7b1d('0x120')][_0x7b1d('0x93')](_0xd0a61d[_0x7b1d('0xa2')],_0xd0a61d[_0x7b1d('0x7c')],_0x7b1d('0x66'))])),_0x27a0d6=new Map(_0x47bd60[_0x7b1d('0xe5')](_0x4bc1b7=>[_0x4bc1b7,_0x4bc1b7[_0x7b1d('0x108')]()]));for(let _0x35d58e=0x0;_0x35d58e<_0x349c24[_0x7b1d('0x73')];_0x35d58e++){if(_0x28ce7d(this,_0x349c24[_0x35d58e],_0x349c24,_0x35d58e+0x1))return!0x0;}for(let _0x1b2a48=0x0;_0x1b2a48<_0x349c24[_0x7b1d('0x73')];_0x1b2a48++){if(_0x28ce7d(this,_0x349c24[_0x1b2a48],_0x1cb30c,0x0))return!0x0;}return!0x1;function _0x28ce7d(_0xd8fe29,_0x23f650,_0x4aeb79,_0xbe5da8){for(let _0x2d21ac=_0xbe5da8;_0x2d21ac<_0x4aeb79[_0x7b1d('0x73')];_0x2d21ac++){const _0x3d7d2d=_0x4aeb79[_0x2d21ac];if(_0x3d7d2d[_0x7b1d('0xa2')]!==_0x23f650['type']||_0x3d7d2d[_0x7b1d('0x121')]['id']!==_0x23f650[_0x7b1d('0x121')]['id']||_0x3d7d2d[_0x7b1d('0x7c')]!==_0x23f650[_0x7b1d('0x7c')])continue;const _0x48603b=_0x3e41b9[_0x7b1d('0x10d')](_0x23f650),_0x39e7c8=_0x27a0d6[_0x7b1d('0x10d')](_0x23f650),_0x3e1a11=_0x27a0d6[_0x7b1d('0x10d')](_0x3d7d2d),_0x5a67a3=_0x23f650['commentThread']&&_0x23f650[_0x7b1d('0xc8')]['length'],_0x111e38=_0x3d7d2d['commentThread']&&_0x3d7d2d['commentThread'][_0x7b1d('0x73')];if(!_0x5a67a3&&_0x48603b(_0x3e1a11,_0x39e7c8))return _0xd8fe29[_0x7b1d('0x12a')](_0x3d7d2d,_0x23f650),_0x27a0d6[_0x7b1d('0x12e')](_0x23f650),!0x0;if(!_0x111e38&&_0x48603b(_0x39e7c8,_0x3e1a11))return _0xd8fe29[_0x7b1d('0x12a')](_0x23f650,_0x3d7d2d),_0x27a0d6[_0x7b1d('0x12e')](_0x3d7d2d),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2cab1d,_0x3eb0c8){if(_0x2cab1d['isMultiRange'])for(const _0x3fb9af of _0x3eb0c8[_0x7b1d('0x108')]())_0x2cab1d[_0x7b1d('0x8e')](_0x3fb9af);else{const _0x5e02e9=_0x3eb0c8[_0x7b1d('0x138')]()['end'];this[_0x7b1d('0x77')](_0x2cab1d,this[_0x7b1d('0x41')][_0x7b1d('0x40')](_0x2cab1d[_0x7b1d('0x138')]()[_0x7b1d('0xc2')],_0x5e02e9));}_0x3eb0c8[_0x7b1d('0x11d')]();}}class Dt{constructor(_0x15860b){this[_0x7b1d('0x42')]=_0x15860b,this['_model']=_0x15860b['model'],this[_0x7b1d('0x126')]=new Map(),this[_0x7b1d('0x36')]=new Map(),this[_0x7b1d('0xcc')]();}[_0x7b1d('0xe6')](_0x2c0ac7,_0x3e88c9,_0xaf7393,_0x58e931,_0x40446f,_0x1e6c09){return new _0x5731e0(this[_0x7b1d('0x41')],{'type':_0x2c0ac7,'subType':_0x3e88c9,'id':_0xaf7393,'author':_0x58e931,'creator':_0x58e931,'attributes':_0x40446f,'onAttributesChange':_0x1e6c09,'onAccept':(..._0xb45da3)=>this[_0x7b1d('0x93')](_0x2c0ac7,_0x3e88c9,_0x7b1d('0x59'))(..._0xb45da3),'onDiscard':(..._0xb67044)=>this[_0x7b1d('0x93')](_0x2c0ac7,_0x3e88c9,_0x7b1d('0xab'))(..._0xb67044)});}[_0x7b1d('0x31')](_0x59608d,_0x7bbe42,_0x29225f,_0x438171){const _0x3fa89e=_0x59608d+':'+_0x7bbe42+':'+_0x29225f;this[_0x7b1d('0x126')][_0x7b1d('0x3')](_0x3fa89e,_0x438171);}[_0x7b1d('0x93')](_0x3208b8,_0x49b534,_0x3a3178){const _0x531032=_0x3208b8+':'+_0x49b534+':'+_0x3a3178;return this[_0x7b1d('0x126')]['get'](_0x531032)||this['_defaultCallbacks'][_0x7b1d('0x10d')](_0x3208b8+':'+_0x3a3178);}['_registerDefaultCallbacks'](){const _0x235e67=()=>{},_0x4975c1=_0xfb64a8=>{_0xfb64a8[_0x7b1d('0x1c')]((_0x1cb678,_0x51aba9)=>_0x1cb678[_0x7b1d('0xc2')][_0x7b1d('0x2d')](_0x51aba9[_0x7b1d('0xc2')])?0x1:-0x1),this[_0x7b1d('0x41')][_0x7b1d('0xed')](_0x21b75b=>{for(const _0x24734e of _0xfb64a8){let _0x41e75c;_0x41e75c=_0x24734e[_0x7b1d('0x2a')][_0x7b1d('0x47')]&&_0x24734e[_0x7b1d('0x2a')][_0x7b1d('0x76')]==_0x24734e[_0x7b1d('0xc2')][_0x7b1d('0x128')]?_0x21b75b['createSelection'](_0x24734e[_0x7b1d('0xc2')]['nodeAfter'],'on'):_0x21b75b['createSelection'](_0x24734e),this[_0x7b1d('0x41')][_0x7b1d('0xdd')](_0x41e75c,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x521021=(_0xa22aa5,_0x16f0d0)=>{this[_0x7b1d('0x41')][_0x7b1d('0xed')](_0x13b763=>{const {commandName:_0x304cd5,commandParams:_0x18c5e4=[]}=_0x16f0d0,_0x29cda3=_0xa22aa5[_0x7b1d('0xe5')](_0x136467=>(_t(_0x136467)&&(_0x136467=this[_0x7b1d('0x41')][_0x7b1d('0x40')](_0x136467[_0x7b1d('0x2a')])),_0x136467))[_0x7b1d('0x81')](_0x5e2c49=>_0x7b1d('0x54')!==_0x5e2c49[_0x7b1d('0xb9')][_0x7b1d('0x65')]);if(_0x29cda3['length']<0x1)return;const _0x4de3c6=Array[_0x7b1d('0x6')](this[_0x7b1d('0x41')][_0x7b1d('0x11b')][_0x7b1d('0xbc')][_0x7b1d('0x108')]())[_0x7b1d('0xe5')](_0x2b023b=>_0x4e3075[_0x7b1d('0xf')](_0x2b023b));_0x13b763[_0x7b1d('0x3f')](_0x29cda3);for(const _0x52a964 of this[_0x7b1d('0x42')][_0x7b1d('0x5a')][_0x7b1d('0x5a')]())_0x52a964[_0x7b1d('0x69')]();_0x18c5e4['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x304cd5,..._0x18c5e4);const _0x158f70=_0x4de3c6[_0x7b1d('0x81')](_0x1274cd=>_0x7b1d('0x54')!=_0x1274cd[_0x7b1d('0xb9')][_0x7b1d('0x65')]);_0x158f70[_0x7b1d('0x73')]>0x0&&_0x13b763[_0x7b1d('0x3f')](_0x158f70);for(const _0x575b93 of _0x4de3c6)_0x575b93[_0x7b1d('0xf7')]();});},_0x6839c2=(_0x442de8,_0x5083a9)=>0x1==_0x442de8[_0x7b1d('0x73')]&&0x1==_0x5083a9[_0x7b1d('0x73')]&&_0x442de8[0x0][_0x7b1d('0x2a')][_0x7b1d('0x1')](_0x5083a9[0x0][_0x7b1d('0xc2')]),_0x3e63ff=(_0x24e3cd,_0x3208b5,_0xe7bc5,_0x5ba2ac)=>xt(_0x24e3cd,_0x3208b5,_0xe7bc5,_0x5ba2ac,this[_0x7b1d('0x41')])?[_0x24e3cd,_0x3208b5]:xt(_0x3208b5,_0x24e3cd,_0x5ba2ac,_0xe7bc5,this[_0x7b1d('0x41')])?[_0x3208b5,_0x24e3cd]:null;this[_0x7b1d('0x36')]['set'](_0x7b1d('0xcb'),_0x235e67),this[_0x7b1d('0x36')][_0x7b1d('0x3')](_0x7b1d('0xd8'),_0x4975c1),this[_0x7b1d('0x36')][_0x7b1d('0x3')](_0x7b1d('0x43'),_0x6839c2),this[_0x7b1d('0x36')]['set']('insertion:chain',_0x3e63ff),this[_0x7b1d('0x36')]['set'](_0x7b1d('0xe0'),_0x4975c1),this[_0x7b1d('0x36')][_0x7b1d('0x3')](_0x7b1d('0xe2'),_0x235e67),this[_0x7b1d('0x36')]['set'](_0x7b1d('0x12c'),_0x6839c2),this[_0x7b1d('0x36')][_0x7b1d('0x3')](_0x7b1d('0x4c'),_0x3e63ff),this[_0x7b1d('0x36')][_0x7b1d('0x3')](_0x7b1d('0x135'),_0x521021),this[_0x7b1d('0x36')][_0x7b1d('0x3')](_0x7b1d('0xf9'),_0x235e67),this['_defaultCallbacks'][_0x7b1d('0x3')](_0x7b1d('0xc6'),_0x6839c2),this[_0x7b1d('0x36')][_0x7b1d('0x3')](_0x7b1d('0x28'),_0x235e67),this[_0x7b1d('0x36')]['set'](_0x7b1d('0x5b'),_0x521021),this[_0x7b1d('0x36')][_0x7b1d('0x3')](_0x7b1d('0xc4'),_0x235e67),this['_defaultCallbacks'][_0x7b1d('0x3')](_0x7b1d('0x89'),_0x6839c2),this[_0x7b1d('0x36')][_0x7b1d('0x3')](_0x7b1d('0x4b'),_0x235e67);}}function Bt(_0x478b86,_0xd71a2e,_0x15a82e){for(const _0x5e9dab of _0xd71a2e[_0x7b1d('0x76')][_0x7b1d('0x45')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5e9dab[_0x7b1d('0xb9')]==_0x5e9dab)return!0x1;if(!_0x15a82e[_0x7b1d('0x4d')](_0x5e9dab))return!0x1;if(_0x478b86[_0x7b1d('0x62')](_0x5e9dab)||_0x478b86['isLimit'](_0x5e9dab))return!0x0;}return!0x1;}function _t(_0x43f288){return _0x43f288['end'][_0x7b1d('0x76')]==_0x43f288[_0x7b1d('0xc2')][_0x7b1d('0x128')]&&_0x43f288['end'][_0x7b1d('0xdb')];}function Mt(_0x29bec1,_0x45fd6b,_0x1a8d55,_0x5289eb){const _0x286f13=_0x1198d6=>!_0x1198d6[_0x7b1d('0x19')]['is']('$textProxy')&&!_0x5289eb[_0x7b1d('0x62')](_0x1198d6[_0x7b1d('0x19')]),_0x478636=_0x29bec1['start'][_0x7b1d('0x58')](_0x286f13),_0xac7398=_0x29bec1[_0x7b1d('0x2a')][_0x7b1d('0x58')](_0x286f13,{'direction':_0x7b1d('0xb3')});return(!_0x29bec1[_0x7b1d('0xc2')][_0x7b1d('0x1')](_0x478636)||!_0x29bec1['end'][_0x7b1d('0x1')](_0xac7398))&&(_0x478636[_0x7b1d('0x2d')](_0xac7398)?_0x1a8d55[_0x7b1d('0x133')](_0x45fd6b,{'range':_0x1a8d55[_0x7b1d('0x40')](_0x478636,_0xac7398)}):_0x1a8d55[_0x7b1d('0x25')](_0x45fd6b),!0x0);}function $t(_0x40774e){return _0x1c57e1(_0x40774e);}function Nt(_0x20eaf1){const _0x25356e=_0x20eaf1[_0x7b1d('0xc2')][_0x7b1d('0x128')];return _0x25356e&&_0x25356e['is']('element');}function Rt(_0x599fb7,_0x5a0125){const _0x42a3cb=_0x5a0125[_0x7b1d('0xd7')][_0x7b1d('0x62')](_0x599fb7)||_0x5a0125[_0x7b1d('0xd7')][_0x7b1d('0x99')](_0x599fb7);return _0x5a0125['createRange'](_0x5a0125['createPositionAt'](_0x599fb7,'before'),_0x42a3cb?_0x5a0125[_0x7b1d('0x87')](_0x599fb7):_0x5a0125[_0x7b1d('0xb7')](_0x599fb7,'end'));}function xt(_0x2e0f61,_0x4f65c4,_0x5beb4c,_0x1466f5,_0x53e565){if(_0x5beb4c[_0x7b1d('0x2a')][_0x7b1d('0x1')](_0x1466f5[_0x7b1d('0xc2')]))return!0x0;if(_0x2e0f61[_0x7b1d('0xa2')]!=_0x4f65c4['type'])return!0x1;if(!_0x5beb4c['end'][_0x7b1d('0x134')](_0x1466f5[_0x7b1d('0xc2')]))return!0x1;const _0x188f66=_0x53e565[_0x7b1d('0x40')](_0x5beb4c[_0x7b1d('0x2a')],_0x1466f5[_0x7b1d('0xc2')])['getWalker']();for(const _0x526546 of _0x188f66)if([_0x7b1d('0x96'),_0x7b1d('0x75')]['includes'](_0x526546[_0x7b1d('0xa2')])&&_0x53e565[_0x7b1d('0xd7')]['isLimit'](_0x526546[_0x7b1d('0x19')]))return!0x1;return!0x0;}
23
+ const _0x1333=['config','createSelection','previous','removeMarker','change:_saved','addMarker','update:suggestion','getMultiRangeId','Users','addCommentThread','reconvertMarker','isRemovable','getCustomProperty','registerPostFixer','root','commentThread','stop','_defaultCallbacks','differ','commandName','activeMarkers','length','options','ready','multi','setSelection','suggestion:','howMany','error-saving-suggestion-data-suggestion-discarded','_breakSuggestionMarker','item','_splitMarkerName','containsItem','getSuggestion','_joinSuggestions','markerName','containsRange','formatInline','getMarkers','before','requires','_setSuggestionRange','getRange','markInsertion','createdAt','_getSuggestionData','CommentsRepository','removeClass','removed','isAtEnd','updateMarker','pluginName','element','start','_rangeIsInLocalUserInsertion','buildSuggestion','_cutOutSuggestionMarker','fetchCommentThread','sort','end','getIntersection','track-changes-user-not-found','listenTo','discardAllSuggestions','getLastMatchingPosition','getAttribute','isBlock','change','getFirstMarker','suggestion','formatInline:chain','targetPosition','values','createRangeIn','createElement','_getExternalAuthor','marker-count','getDifference','getShiftedBy','split','mapper','dataReady','createPositionAt','getAncestors','_suggestions','author','_addSuggestionMarker','change:data','external:','tablePasteChainId','insertion:accept','createRange','isDocumentOperation','_addThreadToSuggestion','_joinWithAdjacentSuggestions','acceptSuggestion','trackChangesCommand','moveTargetPosition','detach','acceptAllSuggestions','suggestion-type','keys','addComment','newRange','getSuggestions','value','track-changes-suggestion-not-found','consume','insert','removeComment','getWalker','always','formatBlock:accept','schema','size','authoredAt','deletion:discard','getFirstRange','formatInline:accept','splice','_adapter','_registerDefaultCallbacks','ck-suggestion-marker','markerNameToElements','deletion:chain','catch','remove','trackChanges','rootName','_handleNewSuggestionMarker','_model','addMarkerName','for','getRanges','isObject','containsPosition','name','markBlockFormat','authorName','_enabledCommands','_createSuggestion','TrackChangesEditing','bindElementToMarker','lowest','isIntersectingWithRange','join','markMultiRangeBlockFormat','formatBlock:join','addMarker:suggestion','widget','define','markerToData','enableReadOnlyMode','add','addHighlight','isLocal','$graveyard','getItems','_isForcedDefaultExecutionBlock','_removeSuggestion','track-changes-adapter-already-set','rejected','deletion','updateSuggestion','@external','has','return','formatBlock:','removeMarkers','selection','isTouching','unbindElementFromMarkerName','insertion:','get','data-suggestion','unbind','markInlineFormat','setAttribute','document','insertContent','isSelectable','high','isLimit','createPositionBefore','range','_mergeNestedSuggestions','isEqual','init','getAllAdjacentSuggestions','insertion:join','highest','adapter','editing','formatInline:discard','push','discardSelectedSuggestions','multipleBlocks','dataToMarker','_isDataLoaded','discardSuggestion','conversion','execute','consumable','isAfter','model','_findSuggestions','_setSuggestionData','discard','from','PendingActions','suggestionUnloaded','move','writer','insertion:discard','ck-suggestion-marker--active','clear','applyOperation','group','fromRange','_suggestionState','isBefore','nodeBefore','suggestionLoaded','isMultiRange','toJSON','delete','commands','isArray','addUser','enableCommand','track-changes-adapter-missing-getsuggestion','markers','fromCharCode','skipNestingCheck','_refreshSuggestionsChain','upcast','formatGroupId','ck-suggestion-marker-formatBlock','trackChanges.trackFormatChanges','parent','isOwn','containerElement','nodeAfter','_updateSuggestionData','position','addRange','never','_getAuthorFromId','_editor','oldRange','_trackFormatChanges','_saved','_customCallbacks','addSuggestion','after','deletion:join','then','originalSuggestionId','set','insertion:chain','getNearestSelectionRange','editingDowncast','assign','ck-suggestion-marker-','some','markerReady','_checkSuggestionCorrectness','markMultiRangeDeletion','isInContent','forward','deletion:','insertion','suggestionChanged','showSuggestionHighlights','formatInline:','data','getSuggestionCallback','formatBlock:chain','getChangedMarkers','isExternal','trackChanges.mergeNestedSuggestions','locale','_suggestionFactory','next','isUndo','every','hasSuggestion','forceDefaultExecution','track-changes-suggestion-data-mismatch','hasCommentThread','$textProxy','containsRangeInObject','isNextTo','subType','_commentsRepository','enqueueChange','editor','head','addMarker:suggestion:formatBlock','dataDowncast','low','plugins','filter','batch','markDeletion','clone','toViewElement','creator','getUser','isCollapsed','accept','formatBlock','markMultiRangeInsertion','deleteContent','notReady','fire','backward','isInsideObject','getCommentThread','collaboration.channelId','attributes','change:activeMarkers','type','map','acceptSelectedSuggestions'];(function(_0x2f421e,_0x1333db){const _0x3a7f6e=function(_0xb39919){while(--_0xb39919){_0x2f421e['push'](_0x2f421e['shift']());}};_0x3a7f6e(++_0x1333db);}(_0x1333,0x12a));const _0x3a7f=function(_0x2f421e,_0x1333db){_0x2f421e=_0x2f421e-0x0;let _0x3a7f6e=_0x1333[_0x2f421e];return _0x3a7f6e;};import{Plugin as _0xfde1a2,PendingActions as _0x1aa3d4}from'ckeditor5/src/core';import{LiveRange as _0x55d7ae}from'ckeditor5/src/engine';import{CKEditorError as _0x4c734e,uid as _0x5147c7,priorities as _0x59479e,logWarning as _0x272082}from'ckeditor5/src/utils';import{toWidget as _0x1d8390}from'ckeditor5/src/widget';import{Users as _0x10aa56,hashObject as _0xf1b0e5}from'ckeditor5-collaboration/src/collaboration-core';import _0x4b4497 from'./commands/trackchangescommand';import _0x5b84cd from'./commands/acceptsuggestioncommand';import _0x51fa7a from'./commands/discardsuggestioncommand';import _0x1a0ece from'./commands/executeonallsuggestionscommand';import _0x2face2 from'./commands/executeonselectedsuggestionscommand';import _0x28c196 from'./suggestion';import _0x320eb6 from'./suggestiondescriptionfactory';import _0x42d9b4 from'./integrations/alignment';import _0x4d7172 from'./integrations/basicstyles';import _0x178dd2 from'./integrations/blockquote';import _0x46a047 from'./integrations/ckbox';import _0x4df194 from'./integrations/codeblock';import _0x25fef0 from'./integrations/comments';import _0x848063 from'./integrations/deletecommand';import _0x355aaa from'./integrations/documentlist';import _0x5dce16 from'./integrations/entercommand';import _0x4a1f33 from'./integrations/findandreplace';import _0x3bc82c from'./integrations/font';import _0x7883f9 from'./integrations/formatpainter';import _0x53c9ec from'./integrations/heading';import _0x30d6ab from'./integrations/highlight';import _0x43a405 from'./integrations/horizontalline';import _0x55cc4b from'./integrations/htmlembed';import _0x131c21 from'./integrations/image';import _0x3aeed9 from'./integrations/imagereplace';import _0x2a24cf from'./integrations/importword';import _0x500703 from'./integrations/indent';import _0x721833 from'./integrations/inputcommand';import _0x5b5d65 from'./integrations/link';import _0x364142 from'./integrations/list';import _0x3a0a3f from'./integrations/listproperties';import _0x3cee98 from'./integrations/mediaembed';import _0x59614e from'./integrations/mention';import _0x59c80d from'./integrations/pagebreak';import _0x407e02 from'./integrations/paragraph';import _0x504087 from'./integrations/removeformat';import _0x41fdab from'./integrations/restrictededitingmode';import _0x2f963d from'./integrations/shiftentercommand';import _0x2018e7 from'./integrations/standardeditingmode';import _0xa91553 from'./integrations/style';import _0x1a63f8 from'./integrations/table';import _0x3321d2 from'./integrations/tablemergesplit';import _0x2293f6 from'./integrations/tableheadings';import _0x12a3ae from'./integrations/tableclipboard';import _0x630b90 from'./integrations/tablecolumnresize';import _0x4941dc from'./integrations/template';import _0x4e64be from'./integrations/tableofcontents';import _0x1fa256 from'./integrations/title';import _0x3d9781 from'./integrations/undo';import{getTranslation as _0xdce868}from'./utils/common-translations';import _0x599b2c from'./integrations/tablecaption';import _0x2192dc from'./integrations/documentlistproperties';import _0x59b524 from'./integrations/tableproperties';import{isEqual as _0x36a598}from'lodash-es';export default class p extends _0xfde1a2{static get[_0x3a7f('0x43')](){return[_0x3a7f('0x49'),_0x10aa56,_0x1aa3d4,_0x42d9b4,_0x4d7172,_0x178dd2,_0x46a047,_0x4df194,_0x25fef0,_0x848063,_0x355aaa,_0x2192dc,_0x5dce16,_0x4a1f33,_0x3bc82c,_0x7883f9,_0x53c9ec,_0x30d6ab,_0x43a405,_0x55cc4b,_0x131c21,_0x3aeed9,_0x2a24cf,_0x500703,_0x721833,_0x5b5d65,_0x364142,_0x3a0a3f,_0x3cee98,_0x59614e,_0x59c80d,_0x407e02,_0x504087,_0x41fdab,_0x2f963d,_0x2018e7,_0xa91553,_0x1a63f8,_0x3321d2,_0x2293f6,_0x599b2c,_0x12a3ae,_0x630b90,_0x4e64be,_0x59b524,_0x4941dc,_0x1fa256,_0x3d9781];}static get[_0x3a7f('0x4e')](){return _0x3a7f('0xa8');}constructor(_0xf596a2){function _0x55345d(_0x531c3b){return _0x531c3b[_0x3a7f('0x19')](_0x3be567=>String[_0x3a7f('0x103')](_0x3be567))[_0x3a7f('0xac')]('');}super(_0xf596a2),this[_0x3a7f('0x11d')](_0x3a7f('0x2f'),[]),this['on'](_0x3a7f('0x17'),(_0x56ff5e,_0xe651a8,_0x50d675,_0x147a77)=>{this[_0x3a7f('0x9d')][_0x3a7f('0x5e')](()=>{for(const _0x2241d7 of[..._0x147a77,..._0x50d675])this[_0x3a7f('0x9d')][_0x3a7f('0x102')][_0x3a7f('0xc0')](_0x2241d7)&&_0xf596a2[_0x3a7f('0xdb')][_0x3a7f('0x25')](_0x2241d7);});}),this['_descriptionFactory']=new _0x320eb6(this[_0x3a7f('0x143')][_0x3a7f('0xe7')][_0x3a7f('0x8c')],this[_0x3a7f('0x143')][_0x3a7f('0x134')]),this[_0x3a7f('0x93')]=null,this[_0x3a7f('0x135')]=new Dt(this[_0x3a7f('0x143')]),this[_0x3a7f('0x6f')]=new Map(),this[_0x3a7f('0x141')]=_0xf596a2['plugins']['get'](_0x3a7f('0x49')),this[_0x3a7f('0xa6')]=new Set(),this['_model']=this[_0x3a7f('0x143')][_0x3a7f('0xe7')],this[_0x3a7f('0xf6')]=new WeakMap(),this[_0x3a7f('0xb9')]=!0x1,_0xf596a2[_0x3a7f('0x1b')][_0x3a7f('0xb1')]('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0xf596a2[_0x3a7f('0x1b')][_0x3a7f('0xc8')](_0x3a7f('0x109')),_0xf596a2[_0x3a7f('0x1b')][_0x3a7f('0xb1')](_0x3a7f('0x133'),!0x0),this['_mergeNestedSuggestions']=_0xf596a2[_0x3a7f('0x1b')]['get'](_0x3a7f('0x133')),this['trackChangesCommand']=new _0x4b4497(_0xf596a2,this[_0x3a7f('0xa6')]),this[_0x55345d([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x55345d([0x34,0x30,0x34,0x36,0x31,0x38,0x31,0x32]);}[_0x3a7f('0xd6')](){const _0xc13a8a=this['editor'];_0xc13a8a[_0x3a7f('0xe3')][_0x3a7f('0x9f')](_0x3a7f('0x120'))['markerToHighlight']({'model':_0x3a7f('0x60'),'view':_0x42d765=>{const {id:_0x55e234,type:_0x446560}=this[_0x3a7f('0x3a')](_0x42d765[_0x3a7f('0x3e')]),_0x1871fe=[_0x3a7f('0x95'),'ck-suggestion-marker-'+_0x446560];let _0x15459c=0xbb8;return this[_0x3a7f('0x2f')]['includes'](_0x42d765[_0x3a7f('0x3e')])&&(_0x1871fe[_0x3a7f('0xdd')](_0x3a7f('0xf1')),_0x15459c=0xbc2),_0x3a7f('0xbd')==_0x446560&&(_0x15459c+=0x5),{'classes':_0x1871fe,'attributes':{'data-suggestion':_0x55e234},'priority':_0x15459c};}}),_0xc13a8a[_0x3a7f('0xe3')][_0x3a7f('0x9f')]('dataDowncast')['add'](_0x513a0f=>{_0x513a0f['on'](_0x3a7f('0xaf'),(_0x3eeb9d,_0xbaffbc,_0x8632c5)=>{if(!_0x8632c5[_0x3a7f('0x31')][_0x3a7f('0x12c')])return;const _0x511fe9=_0xbaffbc[_0x3a7f('0x39')];if(!_0x511fe9)return;const _0x2e742f=_0x8632c5['mapper'][_0x3a7f('0x8')](_0x511fe9);_0xc13a8a[_0x3a7f('0xe7')]['schema'][_0x3a7f('0xa1')](_0x511fe9)&&_0x2e742f&&!_0x2e742f[_0x3a7f('0x27')](_0x3a7f('0xb0'))&&_0x2e742f['is'](_0x3a7f('0x10c'))&&_0x1d8390(_0x2e742f,_0x8632c5[_0x3a7f('0xef')]);},{'priority':_0x3a7f('0xd0')});}),_0xc13a8a[_0x3a7f('0xe3')][_0x3a7f('0x9f')](_0x3a7f('0x1'))['markerToHighlight']({'model':'suggestion','view':(_0x23e111,_0x2bb5e0)=>{if(!_0x2bb5e0['options'][_0x3a7f('0x12c')])return null;const {type:_0x2bbe68}=this[_0x3a7f('0x3a')](_0x23e111['markerName']);return{'classes':[_0x3a7f('0x95'),_0x3a7f('0x122')+_0x2bbe68],'priority':0xbb8};}});const _0x573c8b=({showActiveMarkers:_0x4c42e2=!0x0}={})=>(_0x4fb6ad,_0x5d4f1c,_0xcacfd4)=>{if(!_0x5d4f1c[_0x3a7f('0x39')])return;if(_0x5d4f1c[_0x3a7f('0x39')]['is'](_0x3a7f('0xc4')))return void _0xcacfd4[_0x3a7f('0xe5')][_0x3a7f('0x86')](_0x5d4f1c[_0x3a7f('0x39')],_0x4fb6ad[_0x3a7f('0xa3')]);const _0x41bc61=_0xcacfd4[_0x3a7f('0x6b')][_0x3a7f('0x8')](_0x5d4f1c['item']);if(!(_0x5d4f1c['item']['is']('element')&&_0xc13a8a[_0x3a7f('0xe7')][_0x3a7f('0x8c')][_0x3a7f('0x5d')](_0x5d4f1c[_0x3a7f('0x39')])&&!_0x41bc61[_0x3a7f('0x27')](_0x3a7f('0xb5'))))return;const {id:_0x49be0a}=this[_0x3a7f('0x3a')](_0x5d4f1c[_0x3a7f('0x3e')]);_0xcacfd4[_0x3a7f('0xef')]['addClass']([_0x3a7f('0x95'),_0x3a7f('0x108')],_0x41bc61),_0xcacfd4[_0x3a7f('0xef')][_0x3a7f('0xcc')](_0x3a7f('0xc9'),_0x49be0a,_0x41bc61),_0xcacfd4[_0x3a7f('0x6b')][_0x3a7f('0xa9')](_0x41bc61,_0x5d4f1c[_0x3a7f('0x3e')]),_0x4c42e2&&(this[_0x3a7f('0x2f')]['includes'](_0x5d4f1c['markerName'])?_0xcacfd4[_0x3a7f('0xef')]['addClass'](_0x3a7f('0xf1'),_0x41bc61):_0xcacfd4[_0x3a7f('0xef')]['removeClass'](_0x3a7f('0xf1'),_0x41bc61));for(const _0x166357 of _0xc13a8a['model'][_0x3a7f('0x64')](_0x5d4f1c[_0x3a7f('0x39')])[_0x3a7f('0xb8')]())_0xcacfd4[_0x3a7f('0xe5')][_0x3a7f('0x86')](_0x166357,_0x4fb6ad[_0x3a7f('0xa3')]);_0xcacfd4[_0x3a7f('0xe5')][_0x3a7f('0x86')](_0x5d4f1c['item'],_0x4fb6ad[_0x3a7f('0xa3')]);};_0xc13a8a[_0x3a7f('0xe3')][_0x3a7f('0x9f')]('dataDowncast')[_0x3a7f('0xb4')](_0x420085=>{_0x420085['on'](_0x3a7f('0x0'),(_0x3a21a3,_0x52fb3b,_0x345ac8)=>{_0x345ac8[_0x3a7f('0x31')]['showSuggestionHighlights']&&_0x573c8b({'showActiveMarkers':!0x1})(_0x3a21a3,_0x52fb3b,_0x345ac8);},{'priority':_0x3a7f('0xd9')});}),_0xc13a8a[_0x3a7f('0xe3')][_0x3a7f('0x9f')](_0x3a7f('0x1'))[_0x3a7f('0xb2')]({'model':_0x3a7f('0x60'),'view':(_0x3b710b,_0x317cd0)=>_0x317cd0[_0x3a7f('0x31')][_0x3a7f('0x12c')]?null:{'group':_0x3a7f('0x60'),'name':_0x3b710b['substr'](0xb)}}),_0xc13a8a[_0x3a7f('0xe3')][_0x3a7f('0x9f')](_0x3a7f('0x106'))['elementToElement']({'view':{'name':_0x3a7f('0x60'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5ec603,{writer:_0x356355})=>{let _0x120228='suggestion:'+_0x5ec603['getAttribute'](_0x3a7f('0x7f'))+':'+_0x5ec603[_0x3a7f('0x5c')]('id');return _0x5ec603[_0x3a7f('0x5c')](_0x3a7f('0x67'))&&(_0x120228+=':'+_0x5ec603[_0x3a7f('0x5c')](_0x3a7f('0x67'))),_0x356355[_0x3a7f('0x65')]('$marker',{'data-name':_0x120228});}}),_0xc13a8a[_0x3a7f('0xe3')][_0x3a7f('0x9f')](_0x3a7f('0x106'))[_0x3a7f('0xe0')]({'view':_0x3a7f('0x60')}),_0xc13a8a[_0x3a7f('0xe3')]['for']('editingDowncast')['add'](_0x430458=>{_0x430458['on'](_0x3a7f('0x0'),_0x573c8b(),{'priority':'high'});}),_0xc13a8a[_0x3a7f('0xe3')][_0x3a7f('0x9f')]('editingDowncast')[_0x3a7f('0xb4')](_0x5b15b6=>{_0x5b15b6['on']('removeMarker:suggestion:formatBlock',(_0x266d5c,_0x240351,_0x4fa405)=>{const _0x305d6f=_0x4fa405[_0x3a7f('0x6b')][_0x3a7f('0x96')](_0x240351[_0x3a7f('0x3e')]);if(_0x305d6f)for(const _0x4374d1 of _0x305d6f)_0x4374d1[_0x3a7f('0x27')](_0x3a7f('0xb5'))||(_0x4fa405[_0x3a7f('0xef')][_0x3a7f('0x4a')](['ck-suggestion-marker',_0x3a7f('0x108'),_0x3a7f('0xf1')],_0x4374d1),_0x4fa405[_0x3a7f('0xef')]['removeAttribute'](_0x3a7f('0xc9'),_0x4374d1),_0x4fa405[_0x3a7f('0x6b')][_0x3a7f('0xc6')](_0x4374d1,_0x240351[_0x3a7f('0x3e')]));},{'priority':_0x3a7f('0xd0')});}),_0xc13a8a[_0x3a7f('0xe7')][_0x3a7f('0xcd')][_0x3a7f('0x28')](_0x3b9afd=>{let _0x3ea55a=!0x1;const _0x2cbde9=Array[_0x3a7f('0xeb')](_0xc13a8a[_0x3a7f('0xe7')][_0x3a7f('0xcd')][_0x3a7f('0x2d')][_0x3a7f('0x131')]()),_0x2dc679=new Set();for(const {name:_0x2d3feb,data:_0x48d12d}of _0x2cbde9){const {group:_0x5d2200,type:_0x26c0ed,id:_0x5b2264}=this[_0x3a7f('0x3a')](_0x2d3feb);if('suggestion'!==_0x5d2200)continue;const _0x6004b4=this[_0x3a7f('0x6f')][_0x3a7f('0xc8')](_0x5b2264);if(null!=_0x48d12d[_0x3a7f('0x82')]){'formatInline'==_0x26c0ed&&(_0x3ea55a=_0x3ea55a||Mt(_0x48d12d[_0x3a7f('0x82')],_0x2d3feb,_0x3b9afd,_0xc13a8a['model'][_0x3a7f('0x8c')]));if(_0x48d12d[_0x3a7f('0x82')]['isCollapsed']||_0x3a7f('0xb7')==_0x48d12d['newRange']['root'][_0x3a7f('0x9b')]||_0x3a7f('0xd')==_0x26c0ed&&!Nt(_0x48d12d[_0x3a7f('0x82')])||_0x3a7f('0xbd')==_0x26c0ed&&!(!_t(_0x24ae18=_0x48d12d['newRange'])&&!function(_0x36e71b){return _0x36e71b[_0x3a7f('0x50')][_0x3a7f('0x10a')]==_0x36e71b[_0x3a7f('0x56')][_0x3a7f('0xf8')]&&_0x36e71b[_0x3a7f('0x50')][_0x3a7f('0x4c')];}(_0x24ae18)))_0x3b9afd[_0x3a7f('0x1e')](_0x2d3feb),_0x3ea55a=!0x0;else{if(!_0x6004b4||!_0x6004b4['isInContent'])continue;_0x2dc679[_0x3a7f('0xb4')](_0x6004b4);}}}var _0x24ae18;return _0x2dc679[_0x3a7f('0x8d')]>0x0&&(_0x3ea55a=!!this[_0x3a7f('0x79')](_0x2dc679)||_0x3ea55a),_0x3ea55a;}),_0xc13a8a[_0x3a7f('0xe7')][_0x3a7f('0xcd')][_0x3a7f('0x28')](_0x350337=>{let _0x519374=!0x1;for(const _0x208e9e of _0xc13a8a[_0x3a7f('0xe7')][_0x3a7f('0xcd')]['differ']['getChanges']()){if(_0x3a7f('0x87')!=_0x208e9e[_0x3a7f('0x18')])continue;const _0x459c52=_0x208e9e[_0x3a7f('0x10f')][_0x3a7f('0x69')](_0x208e9e[_0x3a7f('0x30')]);if(_0x459c52[_0x3a7f('0x4c')])for(const _0x179e24 of this[_0x3a7f('0x6f')][_0x3a7f('0x63')]()){if(_0x179e24[_0x3a7f('0xfa')]||!_0x179e24[_0x3a7f('0x127')])continue;if(_0x3a7f('0xd')!=_0x179e24['type'])continue;const _0x1ee6d6=_0x179e24['getFirstRange']();if(_0x1ee6d6['start'][_0x3a7f('0x10a')]!=_0x1ee6d6[_0x3a7f('0x56')][_0x3a7f('0x10a')]&&_0x1ee6d6[_0x3a7f('0x56')][_0x3a7f('0xd5')](_0x208e9e[_0x3a7f('0x10f')])){const _0x15fffe=_0xc13a8a['model']['createRange'](_0x1ee6d6[_0x3a7f('0x50')],_0x459c52);_0x350337[_0x3a7f('0x4d')](_0x179e24[_0x3a7f('0x5f')](),{'range':_0x15fffe}),_0x519374=!0x0;}}}return _0x519374;}),_0xc13a8a[_0x3a7f('0xe7')][_0x3a7f('0x102')]['on'](_0x3a7f('0x21'),(_0xc25e43,_0x365c3e,_0x2f440f)=>{if(null==_0x2f440f){const {id:_0x13082a}=this['_splitMarkerName'](_0x365c3e[_0x3a7f('0xa3')]),_0x5d7560=this[_0x3a7f('0x6f')][_0x3a7f('0xc8')](_0x13082a);_0x5d7560&&_0x5d7560[_0x3a7f('0x9e')](_0x365c3e[_0x3a7f('0xa3')]);}}),_0xc13a8a[_0x3a7f('0xe7')]['document']['on'](_0x3a7f('0x72'),()=>{const _0x32fa9d=Array['from'](_0xc13a8a[_0x3a7f('0xe7')][_0x3a7f('0xcd')][_0x3a7f('0x2d')][_0x3a7f('0x131')]())[_0x3a7f('0x4')](_0x2a7e20=>'suggestion'===this[_0x3a7f('0x3a')](_0x2a7e20['name'])[_0x3a7f('0xf4')]);if(0x0===_0x32fa9d[_0x3a7f('0x30')])return;_0x32fa9d['sort']((_0x45be58,_0x3b5a1d)=>{const _0x56f2aa=_0x45be58[_0x3a7f('0x12e')][_0x3a7f('0x114')],_0x38b91e=_0x3b5a1d[_0x3a7f('0x12e')][_0x3a7f('0x114')];return null===_0x56f2aa&&null===_0x38b91e?0x0:null===_0x56f2aa&&null!==_0x38b91e?-0x1:null!==_0x56f2aa&&null===_0x38b91e?0x1:_0x56f2aa[_0x3a7f('0x50')][_0x3a7f('0xf7')](_0x38b91e[_0x3a7f('0x50')])?-0x1:0x1;});const _0x5ea026=new Set(),_0x37598e=new Set();for(const {name:_0x8a4cf,data:_0x4169df}of _0x32fa9d){const {id:_0x24e4d4}=this[_0x3a7f('0x3a')](_0x8a4cf);if(null===_0x4169df[_0x3a7f('0x114')]){const _0x2c079a=this[_0x3a7f('0x9c')](_0x8a4cf);_0x37598e[_0x3a7f('0xb4')](_0x2c079a);}else{const _0x1d034b=this['_suggestions'][_0x3a7f('0xc8')](_0x24e4d4);null!==_0x4169df[_0x3a7f('0x82')]||_0x1d034b[_0x3a7f('0x127')]?(_0x5ea026[_0x3a7f('0xb4')](_0x1d034b[_0x3a7f('0x144')]),_0x37598e[_0x3a7f('0xb4')](_0x1d034b)):this[_0x3a7f('0xba')](_0x1d034b);}}_0x37598e['size']>0x0&&this['_refreshSuggestionsChain'](_0x37598e);for(const _0x4a140f of _0x5ea026)this[_0x3a7f('0x11')](_0x3a7f('0x12b'),_0x4a140f);}),_0xc13a8a[_0x3a7f('0xe7')]['on'](_0x3a7f('0xf3'),(_0x18a0c2,_0x13196c)=>{const _0x4c8a7c=_0x13196c[0x0];if(!this[_0x3a7f('0x6f')][_0x3a7f('0x8d')])return;if(!_0x4c8a7c[_0x3a7f('0x77')])return;if(_0x4c8a7c[_0x3a7f('0x5')][_0x3a7f('0x137')]||!_0x4c8a7c[_0x3a7f('0x5')][_0x3a7f('0xb6')])return;let _0x269bfc,_0x559c34;switch(_0x4c8a7c['type']){case _0x3a7f('0x87'):_0x269bfc=_0xc13a8a[_0x3a7f('0xe7')][_0x3a7f('0x6d')](_0x4c8a7c['position']),_0x559c34=_0x269bfc[_0x3a7f('0x69')](_0x4c8a7c[_0x3a7f('0x36')]);break;case'split':_0x269bfc=_0xc13a8a[_0x3a7f('0xe7')][_0x3a7f('0x6d')](_0x4c8a7c['splitPosition']),_0x559c34=_0xc13a8a[_0x3a7f('0xe7')]['createPositionAt'](_0x4c8a7c[_0x3a7f('0x7c')]);break;case _0x3a7f('0xee'):_0x269bfc=_0xc13a8a[_0x3a7f('0xe7')]['createPositionAt'](_0x4c8a7c[_0x3a7f('0x62')]),_0x559c34=_0x269bfc[_0x3a7f('0x69')](_0x4c8a7c[_0x3a7f('0x36')]);break;default:return;}const _0x1a391d=_0xc13a8a[_0x3a7f('0xe7')][_0x3a7f('0x76')](_0x269bfc,_0x559c34);_0xc13a8a[_0x3a7f('0xe7')]['change'](()=>{for(const {suggestion:_0x3bfe36,meta:_0x263aaf}of this['_findSuggestions'](_0x1a391d)){if(_0x3bfe36[_0x3a7f('0xfa')])continue;if('formatInline'==_0x3bfe36['type'])continue;const _0x43128b=_0x3bfe36[_0x3a7f('0x12e')]&&_0x3bfe36[_0x3a7f('0x12e')][_0x3a7f('0xdf')];(_0x3a7f('0xd')!=_0x3bfe36['type']||_0x3a7f('0x6a')==_0x4c8a7c[_0x3a7f('0x18')]&&!_0x43128b)&&(_0x263aaf[_0x3a7f('0x13e')]||_0x3a7f('0x12a')==_0x3bfe36[_0x3a7f('0x18')]&&_0x263aaf[_0x3a7f('0x10b')]||_0x3bfe36[_0x3a7f('0x90')]()[_0x3a7f('0x3f')](_0x1a391d)&&this[_0x3a7f('0x38')](_0x3bfe36,_0x269bfc,_0x559c34));}});},{'priority':_0x3a7f('0xaa')}),_0xc13a8a[_0x3a7f('0xe7')]['on']('deleteContent',(_0x3c4629,_0x4cdfac)=>{const _0x582ec8=_0x4cdfac[0x0],_0x535f96=_0x4cdfac[0x1];if(_0x535f96&&_0x535f96[_0x3a7f('0x13a')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand'][_0x3a7f('0x84')])return;if(_0x582ec8['isCollapsed'])return;const _0x5dd219=_0xc13a8a[_0x3a7f('0xe7')][_0x3a7f('0x8c')],{start:_0x3083d9,end:_0x247c88}=_0x582ec8[_0x3a7f('0x90')](),_0x333fb2=_0x3083d9['nodeAfter']&&_0x5dd219[_0x3a7f('0xd1')](_0x3083d9[_0x3a7f('0x10d')])?null:_0x5dd219[_0x3a7f('0x11f')](_0x3083d9,_0x3a7f('0x128')),_0x25a84d=_0x247c88[_0x3a7f('0xf8')]&&_0x5dd219[_0x3a7f('0xd1')](_0x247c88[_0x3a7f('0xf8')])?null:_0x5dd219[_0x3a7f('0x11f')](_0x247c88,'backward'),_0x3c55b7=_0xc13a8a['model'][_0x3a7f('0x76')](_0x333fb2?_0x333fb2['start']:_0x3083d9,_0x25a84d?_0x25a84d[_0x3a7f('0x56')]:_0x247c88);_0xc13a8a[_0x3a7f('0xe7')][_0x3a7f('0x5e')](_0x1abfd5=>{this[_0x3a7f('0x6')](_0x3c55b7);const _0xf0c4c9=_0xc13a8a['model']['schema'][_0x3a7f('0x11f')](_0x3c55b7[_0x3a7f('0x50')]);_0x582ec8['is']('documentSelection')?_0x1abfd5[_0x3a7f('0x34')](_0xf0c4c9):_0x582ec8['setTo'](_0xf0c4c9);}),_0x3c4629['stop']();},{'priority':_0x59479e['normal']+0xa}),_0xc13a8a[_0x3a7f('0xe7')]['on'](_0x3a7f('0xce'),(_0x57cc4e,_0x5bf2d8)=>{const _0x1e4476=_0x5bf2d8[_0x5bf2d8[_0x3a7f('0x30')]-0x1];_0x1e4476&&_0x1e4476['forceDefaultExecution']||this[_0x3a7f('0xb9')]||this['trackChangesCommand'][_0x3a7f('0x84')]&&(_0xc13a8a[_0x3a7f('0xe7')][_0x3a7f('0x5e')](()=>{let _0x5b9ee1=_0xc13a8a[_0x3a7f('0xe7')][_0x3a7f('0xce')](_0x5bf2d8[0x0],_0x5bf2d8[0x1],_0x5bf2d8[0x2],{'forceDefaultExecution':!0x0});if(!_0x5b9ee1)return;_0x57cc4e[_0x3a7f('0xc1')]=_0x5b9ee1[_0x3a7f('0x7')]();const _0xe8d2d3=_0x5b9ee1[_0x3a7f('0x56')][_0x3a7f('0xf8')],_0x17bc7b=_0xc13a8a[_0x3a7f('0xe7')][_0x3a7f('0x8c')];_0xe8d2d3&&_0x17bc7b[_0x3a7f('0x5d')](_0xe8d2d3)&&!_0x17bc7b['isObject'](_0xe8d2d3)&&(_0x5b9ee1=_0xc13a8a[_0x3a7f('0xe7')][_0x3a7f('0x76')](_0x5b9ee1[_0x3a7f('0x50')],_0xc13a8a[_0x3a7f('0xe7')][_0x3a7f('0x6d')](_0xe8d2d3,_0x3a7f('0x56')))),this[_0x3a7f('0x46')](_0x5b9ee1);}),_0x57cc4e[_0x3a7f('0x2b')]());},{'priority':_0x3a7f('0xd0')}),this[_0x3a7f('0x143')][_0x3a7f('0xfd')][_0x3a7f('0xb4')](_0x3a7f('0x9a'),this[_0x3a7f('0x7b')]),this[_0x3a7f('0x100')](_0x3a7f('0x9a'));const _0x2da903=new _0x5b84cd(_0xc13a8a,this['_suggestions']);_0xc13a8a[_0x3a7f('0xfd')][_0x3a7f('0xb4')](_0x3a7f('0x7a'),_0x2da903),this[_0x3a7f('0x100')](_0x3a7f('0x7a'));const _0xec36c3=new _0x51fa7a(_0xc13a8a,this[_0x3a7f('0x6f')]);_0xc13a8a['commands'][_0x3a7f('0xb4')](_0x3a7f('0xe2'),_0xec36c3),this[_0x3a7f('0x100')](_0x3a7f('0xe2')),_0xc13a8a[_0x3a7f('0xfd')][_0x3a7f('0xb4')]('acceptAllSuggestions',new _0x1a0ece(_0xc13a8a,_0x2da903,this[_0x3a7f('0x6f')])),this[_0x3a7f('0x100')](_0x3a7f('0x7e')),_0xc13a8a[_0x3a7f('0xfd')][_0x3a7f('0xb4')](_0x3a7f('0x5a'),new _0x1a0ece(_0xc13a8a,_0xec36c3,this[_0x3a7f('0x6f')])),this[_0x3a7f('0x100')](_0x3a7f('0x5a')),_0xc13a8a[_0x3a7f('0xfd')]['add'](_0x3a7f('0x1a'),new _0x2face2(_0xc13a8a,_0x2da903,this[_0x3a7f('0x6f')])),this['enableCommand'](_0x3a7f('0x1a')),_0xc13a8a[_0x3a7f('0xfd')][_0x3a7f('0xb4')]('discardSelectedSuggestions',new _0x2face2(_0xc13a8a,_0xec36c3,this['_suggestions'])),this['enableCommand'](_0x3a7f('0xde'));const _0x138315=_0xc13a8a[_0x3a7f('0x3')][_0x3a7f('0xc8')](_0x3a7f('0x49'));this[_0x3a7f('0x59')](_0x138315,_0x3a7f('0x81'),(_0x5f22fd,{threadId:_0x292c02})=>{const _0x2de148=this[_0x3a7f('0x6f')][_0x3a7f('0xc8')](_0x292c02);_0x2de148&&_0x2de148[_0x3a7f('0x2a')]&&0x1===_0x2de148['commentThread'][_0x3a7f('0x30')]&&this[_0x3a7f('0x10e')](_0x292c02,{'hasComments':!0x0});},{'priority':_0x3a7f('0x2')}),this['listenTo'](_0x138315,_0x3a7f('0x88'),(_0x242138,{threadId:_0x16ddb3})=>{const _0x3bf4c3=this[_0x3a7f('0x6f')][_0x3a7f('0xc8')](_0x16ddb3);_0x3bf4c3&&_0x3bf4c3[_0x3a7f('0x2a')]&&!_0x3bf4c3[_0x3a7f('0x2a')]['length']&&this[_0x3a7f('0x10e')](_0x16ddb3,{'hasComments':!0x1});},{'priority':_0x3a7f('0x2')});}set[_0x3a7f('0xda')](_0x5a5d3e){if(this[_0x3a7f('0x93')])throw new _0x4c734e(_0x3a7f('0xbb'),this);this[_0x3a7f('0x93')]=_0x5a5d3e;}get[_0x3a7f('0xda')](){return this[_0x3a7f('0x93')];}[_0x3a7f('0x83')]({skipNotAttached:_0x561bf9=!0x1,toJSON:_0x3e08db=!0x1}={}){const _0x2f6dc7=[];for(const _0x775eed of this[_0x3a7f('0x6f')][_0x3a7f('0x63')]())_0x561bf9&&!_0x775eed['isInContent']||_0x2f6dc7['push'](_0x775eed);return _0x3e08db?_0x2f6dc7['map'](_0x52942f=>_0x52942f[_0x3a7f('0xfb')]()):_0x2f6dc7;}[_0x3a7f('0x3c')](_0xe8b9b4){const _0x25a9ae=this['_suggestions'][_0x3a7f('0xc8')](_0xe8b9b4);if(!_0x25a9ae)throw new _0x4c734e(_0x3a7f('0x85'),this);return _0x25a9ae;}[_0x3a7f('0x139')](_0x53c75b){return this['_suggestions'][_0x3a7f('0xc0')](_0x53c75b);}['addSuggestionData'](_0x33d4c0){const {authorId:_0x27d764,id:_0x2c213c,attributes:_0x47332d}=_0x33d4c0,[_0x5f5440,_0x1bd7d6]=_0x33d4c0[_0x3a7f('0x18')][_0x3a7f('0x6a')](':'),_0x58176a=this['_suggestions'][_0x3a7f('0xc8')](_0x2c213c)||this[_0x3a7f('0xa7')](_0x5f5440,_0x1bd7d6,_0x2c213c,_0x27d764,_0x47332d);if(this[_0x3a7f('0x78')](_0x58176a),this['_checkSuggestionCorrectness'](_0x58176a,_0x5f5440,_0x1bd7d6||null,_0x27d764),_0x58176a[_0x3a7f('0x47')]=_0x33d4c0[_0x3a7f('0x47')],_0x58176a[_0x3a7f('0xe1')]=!0x0,_0x47332d&&_0x47332d[_0x3a7f('0xbf')]){const _0x5e4b04=_0x47332d['@external'],_0x53e41b=this[_0x3a7f('0x66')](_0x5e4b04[_0x3a7f('0xa5')]);_0x58176a[_0x3a7f('0x8e')]=_0x5e4b04['createdAt'],_0x58176a[_0x3a7f('0x70')]=_0x53e41b,_0x58176a[_0x3a7f('0x132')]=!0x0;}else _0x58176a[_0x3a7f('0x8e')]=_0x33d4c0[_0x3a7f('0x47')];switch(_0x33d4c0['data']&&(_0x58176a['data']=_0x33d4c0[_0x3a7f('0x12e')]),_0x33d4c0['attributes']&&(_0x58176a[_0x3a7f('0x16')]=_0x33d4c0['attributes']),this[_0x3a7f('0x93')]&&this['_adapter']['addSuggestion']||(_0x58176a[_0x3a7f('0x116')]=!0x0),this['_suggestionState'][_0x3a7f('0xc8')](_0x58176a)){case _0x3a7f('0x10'):this[_0x3a7f('0xf6')][_0x3a7f('0x11d')](_0x58176a,_0x3a7f('0x6c'));break;case _0x3a7f('0x124'):_0x58176a[_0x3a7f('0x127')]?(this[_0x3a7f('0x105')](new Set([_0x58176a])),this[_0x3a7f('0x79')](new Set([_0x58176a])),this[_0x3a7f('0xf6')]['set'](_0x58176a,_0x3a7f('0x32')),this[_0x3a7f('0x11')](_0x3a7f('0xf9'),_0x58176a)):this['_suggestionState']['set'](_0x58176a,_0x3a7f('0x4b'));}return _0x58176a;}[_0x3a7f('0x7a')](_0x3e8b3d){this[_0x3a7f('0x13a')](()=>{this[_0x3a7f('0x143')][_0x3a7f('0xe7')][_0x3a7f('0x5e')](()=>{for(const _0x203417 of _0x3e8b3d['getAllAdjacentSuggestions']())_0x203417[_0x3a7f('0xc')]();});});}['discardSuggestion'](_0xf91ca6){this[_0x3a7f('0x13a')](()=>{this[_0x3a7f('0x143')][_0x3a7f('0xe7')][_0x3a7f('0x5e')](()=>{for(const _0x3f1b99 of _0xf91ca6[_0x3a7f('0xd7')]())_0x3f1b99['discard']();});});}['enableCommand'](_0x1264fe,_0x5610bd){const _0xffd3b7=this[_0x3a7f('0x143')][_0x3a7f('0xfd')]['get'](_0x1264fe);if(!_0xffd3b7)throw new _0x4c734e('track-changes-command-not-found',this,{'commandName':_0x1264fe});this[_0x3a7f('0xa6')][_0x3a7f('0xb4')](_0xffd3b7),_0x5610bd&&_0xffd3b7['on'](_0x3a7f('0xe4'),(_0xbd1680,_0x446368)=>{this['trackChangesCommand'][_0x3a7f('0x84')]&&(this[_0x3a7f('0xb9')]||_0x446368[_0x3a7f('0x30')]>0x0&&_0x446368[_0x446368[_0x3a7f('0x30')]-0x1]&&_0x446368[_0x446368['length']-0x1][_0x3a7f('0x13a')]||(_0x5610bd((..._0x4a247e)=>_0xffd3b7[_0x3a7f('0xe4')](..._0x4a247e,{'forceDefaultExecution':!0x0}),..._0x446368),_0xbd1680[_0x3a7f('0x2b')]()));},{'priority':_0x3a7f('0xd0')});}['forceDefaultExecution'](_0x427bae){let _0x4e7933,_0x2d804c;const _0x1efef9=this[_0x3a7f('0xb9')];this[_0x3a7f('0xb9')]=!0x0;try{_0x4e7933=_0x427bae();}catch(_0x42fc12){_0x2d804c=_0x42fc12;}return _0x1efef9||(this[_0x3a7f('0xb9')]=!0x1),_0x2d804c&&_0x4c734e['rethrowUnexpectedError'](_0x2d804c,this),_0x4e7933;}[_0x3a7f('0x46')](_0x3b4463,_0x4a4c79=null,_0xdf3144={}){if(_0x3b4463[_0x3a7f('0xb')])return null;const _0x19365=this[_0x3a7f('0x143')][_0x3a7f('0x3')]['get'](_0x3a7f('0x23'))['me'];for(const {suggestion:_0x1a6856,meta:_0x25eada}of this[_0x3a7f('0xe8')](_0x3b4463,_0x3a7f('0x12a')))if(_0x25eada[_0x3a7f('0x10b')]){if(!_0x25eada[_0x3a7f('0x13f')]){if(_0x25eada['containsRangeInObject']){if(!this[_0x3a7f('0xd4')]||!Ut(_0x1a6856,_0xdf3144))continue;return _0x1a6856;}if(Ut(_0x1a6856,_0xdf3144))return _0x1a6856;this[_0x3a7f('0x38')](_0x1a6856,_0x3b4463[_0x3a7f('0x50')],_0x3b4463[_0x3a7f('0x56')]);break;}if(_0x4a4c79==_0x1a6856[_0x3a7f('0x140')]&&Ut(_0x1a6856,_0xdf3144)){const _0x534e05=_0x1a6856[_0x3a7f('0x90')]();return _0x534e05[_0x3a7f('0x50')][_0x3a7f('0xd5')](_0x3b4463[_0x3a7f('0x56')])?this[_0x3a7f('0x44')](_0x1a6856,this[_0x3a7f('0x9d')][_0x3a7f('0x76')](_0x3b4463[_0x3a7f('0x50')],_0x534e05[_0x3a7f('0x56')])):this[_0x3a7f('0x44')](_0x1a6856,this[_0x3a7f('0x9d')][_0x3a7f('0x76')](_0x534e05[_0x3a7f('0x50')],_0x3b4463[_0x3a7f('0x56')])),_0x1a6856;}}const _0x1ebb7e=_0x5147c7(),_0x39e0c5=_0x19365['id'],_0x4a071f=_0x4a4c79?_0x3a7f('0xc7')+_0x4a4c79:_0x3a7f('0x12a'),_0x3b0372=this[_0x3a7f('0xe9')]({'id':_0x1ebb7e,'type':_0x4a071f,'createdAt':new Date(),'authorId':_0x39e0c5,'attributes':_0xdf3144});return this[_0x3a7f('0x71')](_0x4a071f,_0x1ebb7e,_0x39e0c5,_0x3b4463),_0x3b0372;}[_0x3a7f('0xe')](_0x1f2695,_0x2a6acb=_0x3a7f('0x33'),_0x569e41={}){const _0x1f54cd=this[_0x3a7f('0x143')]['plugins'][_0x3a7f('0xc8')]('Users')['me'],_0x21479e=this[_0x3a7f('0x135')][_0x3a7f('0x12f')](_0x3a7f('0x12a'),_0x2a6acb,_0x3a7f('0xac'));for(const _0x110ac1 of this[_0x3a7f('0x83')]())if(_0x110ac1['author']['id']==_0x1f54cd['id']&&_0x3a7f('0x12a')==_0x110ac1[_0x3a7f('0x18')]&&_0x110ac1[_0x3a7f('0x140')]==_0x2a6acb&&Ut(_0x110ac1,_0x569e41)&&(_0x21479e(_0x110ac1['getRanges'](),_0x1f2695)||_0x21479e(_0x1f2695,_0x110ac1['getRanges']()))){for(const _0x535287 of _0x1f2695)_0x110ac1[_0x3a7f('0x110')](_0x535287);return _0x110ac1;}for(const {suggestion:_0x86e517,meta:_0x405f6f}of this[_0x3a7f('0xe8')](_0x1f2695,_0x3a7f('0x12a'))){if(!_0x405f6f[_0x3a7f('0x10b')])continue;if(!this[_0x3a7f('0xd4')]&&_0x405f6f[_0x3a7f('0x13e')])continue;if(!Ut(_0x86e517,_0x569e41))continue;let _0x2ff66a=!0x0;for(const _0x2b5efe of _0x86e517[_0x3a7f('0xa0')]())for(const _0x11601f of _0x1f2695)if(!_0x2b5efe[_0x3a7f('0x3f')](_0x11601f)){_0x2ff66a=!0x1;break;}if(_0x2ff66a)return _0x86e517;}const _0x64ac2e=_0x5147c7(),_0x578b13=_0x1f54cd['id'],_0x5ccf1e=_0x3a7f('0xc7')+_0x2a6acb,_0x328a99=this['_setSuggestionData']({'id':_0x64ac2e,'type':_0x5ccf1e,'createdAt':new Date(),'authorId':_0x578b13,'attributes':_0x569e41});for(const _0xb39dd2 of _0x1f2695)this[_0x3a7f('0x71')](_0x5ccf1e,_0x64ac2e,_0x578b13,_0xb39dd2,_0x28c196[_0x3a7f('0x22')]());return _0x328a99;}[_0x3a7f('0xcb')](_0x63e4eb,_0x39baaa,_0x54f5ae=null,_0x5272c0={}){if(_0x54f5ae=_0x54f5ae||$t(_0x39baaa),_0x63e4eb[_0x3a7f('0xb')])return null;if(_0x3a7f('0x111')===this['_trackFormatChanges']){const _0x57b347=this[_0x3a7f('0x135')][_0x3a7f('0x12f')](_0x3a7f('0x40'),_0x54f5ae,_0x3a7f('0xc'));return this[_0x3a7f('0x13a')](()=>_0x57b347([_0x63e4eb],_0x39baaa,_0x5272c0)),null;}const _0x1f4c10=this['editor'][_0x3a7f('0x3')]['get']('Users')['me'],_0xc48e4a=[];if('always'!==this[_0x3a7f('0x115')])for(const {suggestion:_0x24c502,meta:_0x260543}of this['_findSuggestions'](_0x63e4eb,_0x3a7f('0x12a')))_0x260543[_0x3a7f('0x10b')]&&!_0x260543['isInsideObject']&&_0xc48e4a[_0x3a7f('0xdd')](..._0x24c502[_0x3a7f('0xa0')]());const _0x4be88c=function(_0xae60b9,_0x431721){const _0x3e9184=[];for(const _0x4fc25d of _0x431721){const _0x2ce881=_0xae60b9[_0x3a7f('0x57')](_0x4fc25d);_0x2ce881&&_0x3e9184[_0x3a7f('0xdd')](_0x2ce881);}return _0x3e9184;}(_0x63e4eb,_0xc48e4a),_0x39ba23=function(_0x38e8da,_0xc3faef){const _0xf8e97b=[_0x38e8da];for(const _0x11182e of _0xc3faef){let _0xe0b8cf=0x0;for(;_0xe0b8cf<_0xf8e97b['length'];){const _0x282cc6=_0xf8e97b[_0xe0b8cf]['getDifference'](_0x11182e);_0xf8e97b[_0x3a7f('0x92')](_0xe0b8cf,0x1,..._0x282cc6),_0xe0b8cf+=_0x282cc6[_0x3a7f('0x30')];}}return _0xf8e97b;}(_0x63e4eb,_0xc48e4a);_0x4be88c['length']&&this[_0x3a7f('0x9d')][_0x3a7f('0x5e')](()=>{for(const _0xf73497 of _0x4be88c){const _0x5f1568=this[_0x3a7f('0x135')][_0x3a7f('0x12f')]('formatInline',_0x54f5ae,_0x3a7f('0xc'));this[_0x3a7f('0x13a')](()=>_0x5f1568([_0xf73497],_0x39baaa,_0x5272c0));}});for(const _0x52cf60 of _0x39ba23){let _0x263ee5=null,_0x5e306b=_0x52cf60[_0x3a7f('0x50')],_0x483bc8=_0x52cf60['end'];for(const {suggestion:_0x187e51,meta:_0x10a591}of this[_0x3a7f('0xe8')](_0x52cf60,_0x3a7f('0x40'))){if(!_0x10a591[_0x3a7f('0x10b')])continue;if(_0x187e51[_0x3a7f('0x140')]!=_0x54f5ae)continue;if(!Ut(_0x187e51,_0x5272c0))continue;const _0x25db4c=_0x187e51[_0x3a7f('0x90')]();if(_0x25db4c['containsRange'](_0x52cf60,!0x0))return null;_0x5e306b=_0x5e306b['isBefore'](_0x25db4c[_0x3a7f('0x50')])?_0x5e306b:_0x25db4c['start'],_0x483bc8=_0x483bc8['isAfter'](_0x25db4c[_0x3a7f('0x56')])?_0x483bc8:_0x25db4c[_0x3a7f('0x56')],_0x263ee5?_0x25db4c[_0x3a7f('0x50')][_0x3a7f('0xf7')](_0x263ee5[_0x3a7f('0x90')]()['start'])?(_0x263ee5['removeMarkers'](),_0x263ee5=_0x187e51):_0x187e51[_0x3a7f('0xc3')]():_0x263ee5=_0x187e51;}const _0x5f1b0b=this[_0x3a7f('0x9d')][_0x3a7f('0x76')](_0x5e306b,_0x483bc8);if(_0x263ee5)this[_0x3a7f('0x44')](_0x263ee5,_0x5f1b0b);else{const _0x191801=_0x5147c7(),_0x252332=_0x1f4c10['id'];this[_0x3a7f('0xe9')]({'id':_0x191801,'type':_0x3a7f('0x12d')+_0x54f5ae,'data':_0x39baaa,'createdAt':new Date(),'authorId':_0x252332,'attributes':_0x5272c0}),this[_0x3a7f('0x71')](_0x3a7f('0x12d')+_0x54f5ae,_0x191801,_0x252332,_0x5f1b0b);}}return null;}[_0x3a7f('0xa4')](_0x443829,_0x13d2e2,_0x4c5de2=[],_0x197e1c=null,_0xcb3ade={}){_0x13d2e2[_0x3a7f('0x107')]||(_0x13d2e2['formatGroupId']=_0x13d2e2[_0x3a7f('0x2e')]),_0x13d2e2[_0x3a7f('0xdf')]=_0x443829['is'](_0x3a7f('0xd3')),_0x197e1c=_0x197e1c||$t(_0x13d2e2);const _0x4b1711=_0x4c5de2[_0x3a7f('0x19')](_0x30bf5a=>Rt(_0x30bf5a,this[_0x3a7f('0x9d')])),_0x1c3ce9=_0x443829['is'](_0x3a7f('0xd3'))?_0x443829:Rt(_0x443829,this[_0x3a7f('0x9d')]);if(_0x3a7f('0x111')===this[_0x3a7f('0x115')]){const _0x4b1d9e=this[_0x3a7f('0x135')][_0x3a7f('0x12f')](_0x3a7f('0xd'),_0x197e1c,_0x3a7f('0xc'));return this[_0x3a7f('0x13a')](()=>_0x4b1d9e([_0x1c3ce9],_0x13d2e2,_0xcb3ade)),null;}_0x4b1711[_0x3a7f('0xdd')](_0x1c3ce9);let _0x57b987=!0x0;for(const _0x1404ae of _0x4b1711)if(!this[_0x3a7f('0x51')](_0x1404ae)){_0x57b987=!0x1;break;}if(_0x57b987&&_0x3a7f('0x8a')!==this['_trackFormatChanges']){const _0x229fdc=this['_suggestionFactory'][_0x3a7f('0x12f')](_0x3a7f('0xd'),_0x197e1c,_0x3a7f('0xc'));return this['forceDefaultExecution'](()=>_0x229fdc([_0x1c3ce9],_0x13d2e2,_0xcb3ade)),null;}let _0x4211fa=null,_0x28b230=_0x1c3ce9[_0x3a7f('0x50')],_0x5e5710=_0x1c3ce9['end'];for(const {suggestion:_0x49b426,meta:_0x27183e}of this['_findSuggestions'](_0x1c3ce9,_0x3a7f('0xd'))){if(!_0x27183e['isOwn'])continue;if(_0x27183e[_0x3a7f('0x13f')]||_0x27183e[_0x3a7f('0x13e')]||_0x27183e[_0x3a7f('0x13')])continue;if(_0x49b426[_0x3a7f('0x12e')]['formatGroupId']!=_0x13d2e2['formatGroupId'])continue;if(!Ut(_0x49b426,_0xcb3ade))continue;const _0x270b81=_0x49b426['getFirstRange']();if(_0x49b426['subType']==_0x197e1c){if(_0x270b81[_0x3a7f('0x3f')](_0x1c3ce9,!0x0))return null;_0x28b230=_0x28b230[_0x3a7f('0xf7')](_0x270b81[_0x3a7f('0x50')])?_0x28b230:_0x270b81['start'],_0x5e5710=_0x5e5710[_0x3a7f('0xe6')](_0x270b81[_0x3a7f('0x56')])?_0x5e5710:_0x270b81[_0x3a7f('0x56')],_0x4211fa?_0x270b81['start'][_0x3a7f('0xf7')](_0x4211fa[_0x3a7f('0x90')]()[_0x3a7f('0x50')])?(_0x4211fa['removeMarkers'](),_0x4211fa=_0x49b426):_0x49b426[_0x3a7f('0xc3')]():_0x4211fa=_0x49b426;}else{const _0x1c9fdf=_0x1c3ce9[_0x3a7f('0x57')](_0x270b81);this[_0x3a7f('0x53')](_0x49b426,_0x1c9fdf);}}const _0x37cfe5=this[_0x3a7f('0x143')][_0x3a7f('0x3')]['get'](_0x3a7f('0x23'))['me'],_0x16ac0e=_0x5147c7(),_0x3e1fcb=_0x37cfe5['id'];if(_0x4211fa)return this['_setSuggestionRange'](_0x4211fa,this[_0x3a7f('0x9d')][_0x3a7f('0x76')](_0x28b230,_0x5e5710)),_0x4211fa;{const _0x9d6e78=this[_0x3a7f('0xe9')]({'id':_0x16ac0e,'type':'formatBlock:'+_0x197e1c,'data':_0x13d2e2,'createdAt':new Date(),'authorId':_0x3e1fcb,'attributes':_0xcb3ade});return this[_0x3a7f('0x71')]('formatBlock:'+_0x197e1c,_0x16ac0e,_0x3e1fcb,this[_0x3a7f('0x9d')][_0x3a7f('0x76')](_0x28b230,_0x5e5710)),_0x9d6e78;}}[_0x3a7f('0xad')](_0x465f92,_0x58dd7e,_0x16c9ad=[],_0x138610=null,_0xd8985b={}){_0x58dd7e[_0x3a7f('0x107')]||(_0x58dd7e[_0x3a7f('0x107')]=_0x58dd7e[_0x3a7f('0x2e')]);const _0x51b9ad=_0x465f92[0x0];_0x58dd7e[_0x3a7f('0xdf')]=_0x51b9ad['is'](_0x3a7f('0xd3')),_0x138610=_0x138610||$t(_0x58dd7e);const _0x1341b9=_0x16c9ad[_0x3a7f('0x19')](_0x4d8518=>Rt(_0x4d8518,this[_0x3a7f('0x9d')])),_0x5bab58=_0x51b9ad['is'](_0x3a7f('0xd3'))?_0x465f92:_0x465f92[_0x3a7f('0x19')](_0x58c3f8=>Rt(_0x58c3f8,this[_0x3a7f('0x9d')]));if(_0x3a7f('0x111')===this[_0x3a7f('0x115')]){const _0x43252a=this[_0x3a7f('0x135')][_0x3a7f('0x12f')]('formatBlock',_0x138610,_0x3a7f('0xc'));return this[_0x3a7f('0x13a')](()=>_0x43252a(_0x5bab58,_0x58dd7e,_0xd8985b)),null;}_0x1341b9['push'](..._0x5bab58);let _0x49ab5a=!0x0;for(const _0x4b4d46 of _0x1341b9)if(!this['_rangeIsInLocalUserInsertion'](_0x4b4d46)){_0x49ab5a=!0x1;break;}if(_0x49ab5a&&_0x3a7f('0x8a')!==this[_0x3a7f('0x115')]){const _0x2e2cfd=this['_suggestionFactory'][_0x3a7f('0x12f')](_0x3a7f('0xd'),_0x138610,_0x3a7f('0xc'));return this['forceDefaultExecution'](()=>_0x2e2cfd(_0x5bab58,_0x58dd7e,_0xd8985b)),null;}const _0x4d5428=this[_0x3a7f('0x143')]['plugins']['get'](_0x3a7f('0x23'))['me'];for(const _0x19dd92 of this[_0x3a7f('0x83')]()){if(_0x19dd92['author']['id']!=_0x4d5428['id'])continue;if(_0x3a7f('0xd')!=_0x19dd92[_0x3a7f('0x18')]||_0x19dd92['data'][_0x3a7f('0x107')]!=_0x58dd7e[_0x3a7f('0x107')])continue;if(!Ut(_0x19dd92,_0xd8985b))continue;const _0x3169ba=_0x19dd92[_0x3a7f('0x140')]==_0x138610;for(let _0x5bab00=0x0;_0x5bab00<_0x5bab58['length'];_0x5bab00++){const _0x3a840a=_0x5bab58[_0x5bab00];for(const _0x1bde27 of _0x19dd92[_0x3a7f('0x41')]()){const _0x2a5ab3=_0x1bde27[_0x3a7f('0x45')]();if(_0x3a840a[_0x3a7f('0xd5')](_0x2a5ab3)){_0x3169ba?(_0x5bab58[_0x3a7f('0x92')](_0x5bab00,0x1),_0x5bab00--):_0x19dd92[_0x3a7f('0x1e')](_0x1bde27[_0x3a7f('0xa3')]);break;}}}}if(0x0==_0x5bab58['length'])return null;const _0x224926=this[_0x3a7f('0x135')][_0x3a7f('0x12f')]('formatBlock',_0x138610,_0x3a7f('0xac'));for(const _0x352fdb of this[_0x3a7f('0x83')]())if(_0x352fdb['author']['id']==_0x4d5428['id']&&_0x3a7f('0xd')==_0x352fdb[_0x3a7f('0x18')]&&_0x352fdb[_0x3a7f('0x12e')][_0x3a7f('0x107')]==_0x58dd7e['formatGroupId']&&_0x352fdb['subType']==_0x138610&&Ut(_0x352fdb,_0xd8985b)&&(_0x224926(_0x352fdb[_0x3a7f('0xa0')](),_0x5bab58)||_0x224926(_0x5bab58,_0x352fdb[_0x3a7f('0xa0')]()))){for(const _0x44758e of _0x5bab58)_0x352fdb[_0x3a7f('0x110')](_0x44758e);return _0x352fdb;}const _0x227b74=_0x5147c7(),_0xb89b53=_0x4d5428['id'],_0x1db54a=_0x3a7f('0xc2')+_0x138610,_0x215bd2=this[_0x3a7f('0xe9')]({'id':_0x227b74,'type':_0x1db54a,'data':_0x58dd7e,'createdAt':new Date(),'authorId':_0xb89b53,'attributes':_0xd8985b});for(const _0x35a2de of _0x5bab58)this[_0x3a7f('0x71')](_0x1db54a,_0x227b74,_0xb89b53,_0x35a2de,_0x28c196[_0x3a7f('0x22')]());return _0x215bd2;}[_0x3a7f('0x6')](_0x500ea6,_0x19213d=null,_0x4e71a9={}){if(_0x500ea6['isCollapsed'])return null;const _0xa6d572=this['editor']['plugins'][_0x3a7f('0xc8')](_0x3a7f('0x23'))['me'],_0x2295b4=new _0x55d7ae(_0x500ea6[_0x3a7f('0x50')],_0x500ea6[_0x3a7f('0x56')]);for(const {suggestion:_0x21c6e4,meta:_0x2e51f0}of this['_findSuggestions'](_0x2295b4,_0x3a7f('0x12a')))if(_0x2e51f0[_0x3a7f('0x10b')]&&!_0x2e51f0[_0x3a7f('0x13f')]){if(_0x21c6e4[_0x3a7f('0xfa')]){const _0x5ad611=_0x21c6e4['getRanges']()[_0x3a7f('0x4')](_0x8ba84a=>'$graveyard'!=_0x8ba84a[_0x3a7f('0x29')][_0x3a7f('0x9b')]);_0x5ad611[_0x3a7f('0x138')](_0x66db34=>_0x2295b4[_0x3a7f('0x3f')](_0x66db34,!0x0))&&_0x21c6e4[_0x3a7f('0xea')]();if(_0x5ad611[_0x3a7f('0x123')](_0x3f9044=>_0x3f9044[_0x3a7f('0x3f')](_0x2295b4,!0x0))){const _0x5ba60e=this[_0x3a7f('0x135')][_0x3a7f('0x12f')](_0x3a7f('0xbd'),_0x19213d,_0x3a7f('0xc'));return this['forceDefaultExecution'](()=>_0x5ba60e([_0x2295b4],null,_0x4e71a9)),null;}}else{const _0x1eae3d=_0x2295b4[_0x3a7f('0x57')](_0x21c6e4['getFirstRange']());null!==_0x1eae3d&&_0x21c6e4['_onDiscard']([_0x1eae3d],null,_0x4e71a9);}}if(_0x2295b4[_0x3a7f('0x7d')](),_0x2295b4[_0x3a7f('0xb')]||_0x3a7f('0xb7')==_0x2295b4[_0x3a7f('0x29')][_0x3a7f('0x9b')])return null;let _0x5b27dd=null,_0x4b41dd=_0x2295b4[_0x3a7f('0x50')],_0x2b0107=_0x2295b4[_0x3a7f('0x56')];const _0xcf15e0=this[_0x3a7f('0xe8')](_0x2295b4,_0x3a7f('0xbd'));for(const {suggestion:_0x92c52d,meta:_0x293a15}of _0xcf15e0){const _0x5ebf61=this[_0x3a7f('0x9d')][_0x3a7f('0x76')](_0x4b41dd,_0x2b0107);if(_0x293a15['isOwn']&&(this['_mergeNestedSuggestions']||!_0x293a15['containsRangeInObject']&&!_0x293a15[_0x3a7f('0x13')])){if(_0x92c52d[_0x3a7f('0xfa')]){if(!Ut(_0x92c52d,_0x4e71a9))continue;let _0x55e2d3=!0x0;for(const _0x75f2bd of _0x92c52d[_0x3a7f('0xa0')]()){if(_0x75f2bd[_0x3a7f('0x3f')](_0x5ebf61,!0x0))return _0x92c52d;_0x5ebf61['containsRange'](_0x75f2bd)||(_0x55e2d3=!0x1);}_0x55e2d3&&_0x92c52d['discard']();}else{const _0x4f4f9c=_0x92c52d[_0x3a7f('0x90')]();if(_0x4f4f9c[_0x3a7f('0x3f')](_0x5ebf61,!0x0))return _0x92c52d;if(!Ut(_0x92c52d,_0x4e71a9)){_0x5ebf61[_0x3a7f('0x3f')](_0x4f4f9c)?_0x92c52d['removeMarkers']():_0x4f4f9c['containsPosition'](_0x4b41dd)?_0x4b41dd=_0x4f4f9c['end']:_0x4f4f9c[_0x3a7f('0xa2')](_0x2b0107)&&(_0x2b0107=_0x4f4f9c[_0x3a7f('0x50')]);continue;}_0x4b41dd=_0x4b41dd['isBefore'](_0x4f4f9c['start'])?_0x4b41dd:_0x4f4f9c['start'],_0x2b0107=_0x2b0107[_0x3a7f('0xe6')](_0x4f4f9c[_0x3a7f('0x56')])?_0x2b0107:_0x4f4f9c[_0x3a7f('0x56')],_0x4e71a9=Object[_0x3a7f('0x121')]({},_0x92c52d['attributes']),_0x5b27dd?_0x4f4f9c['start'][_0x3a7f('0xf7')](_0x5b27dd[_0x3a7f('0x90')]()[_0x3a7f('0x50')])?(_0x5b27dd['removeMarkers'](),_0x5b27dd=_0x92c52d):_0x92c52d['removeMarkers']():_0x5b27dd=_0x92c52d;}}}if(_0x5b27dd)return this[_0x3a7f('0x44')](_0x5b27dd,this['_model']['createRange'](_0x4b41dd,_0x2b0107)),_0x5b27dd;{const _0x5ed151=_0x5147c7(),_0x24325d=this[_0x3a7f('0x9d')][_0x3a7f('0x76')](_0x4b41dd,_0x2b0107),_0x285deb=_0xa6d572['id'],_0x4b14e0=_0x19213d?'deletion:'+_0x19213d:'deletion',_0x1f3ac2=this[_0x3a7f('0xe9')]({'id':_0x5ed151,'type':_0x4b14e0,'createdAt':new Date(),'authorId':_0x285deb,'attributes':_0x4e71a9});return this[_0x3a7f('0x71')](_0x4b14e0,_0x5ed151,_0x285deb,_0x24325d),_0x1f3ac2;}}[_0x3a7f('0x126')](_0x3b0f33,_0x41dbd6=_0x3a7f('0x33'),_0x4c8f0f={}){const _0xd1664=this['editor'][_0x3a7f('0x3')][_0x3a7f('0xc8')](_0x3a7f('0x23'))['me'],_0x39ce19=_0x3b0f33['map'](_0x44fb47=>new _0x55d7ae(_0x44fb47[_0x3a7f('0x50')],_0x44fb47[_0x3a7f('0x56')])),_0x797442=new Set();for(const {suggestion:_0x20aac6,meta:_0x2e0a32}of this['_findSuggestions'](_0x39ce19,_0x3a7f('0x12a')))_0x2e0a32[_0x3a7f('0x10b')]&&!_0x2e0a32[_0x3a7f('0x13f')]&&_0x797442[_0x3a7f('0xb4')](_0x20aac6);for(const _0x287752 of _0x797442)if(_0x287752[_0x3a7f('0xfa')]){const _0x3e0d5f=_0x287752['getRanges']();(!_0x287752[_0x3a7f('0x16')]||!_0x287752[_0x3a7f('0x16')][_0x3a7f('0x104')])&&(_0x3e0d5f[_0x3a7f('0x138')](_0x5c6c3a=>_0x39ce19[_0x3a7f('0x123')](_0x34e796=>_0x34e796[_0x3a7f('0x3f')](_0x5c6c3a,!0x0)))&&_0x287752[_0x3a7f('0xea')]());if(_0x39ce19['every'](_0x4bfb44=>_0x3e0d5f[_0x3a7f('0x123')](_0xec12f3=>_0xec12f3[_0x3a7f('0x3f')](_0x4bfb44,!0x0)))){const _0x350f83=this[_0x3a7f('0x135')][_0x3a7f('0x12f')](_0x3a7f('0xbd'),_0x41dbd6,_0x3a7f('0xc'));return this[_0x3a7f('0x13a')](()=>_0x350f83(_0x3b0f33,null,_0x4c8f0f)),null;}}else{const _0x41a24f=_0x287752[_0x3a7f('0x90')]();_0x39ce19[_0x3a7f('0x123')](_0x52563e=>_0x52563e['containsRange'](_0x41a24f,!0x0))&&_0x287752['discard']();if(_0x39ce19[_0x3a7f('0x138')](_0x27243a=>_0x41a24f['containsRange'](_0x27243a,!0x0))){const _0x2215f1=this[_0x3a7f('0x135')]['getSuggestionCallback'](_0x3a7f('0xbd'),_0x41dbd6,'accept');return this[_0x3a7f('0x13a')](()=>_0x2215f1(_0x39ce19,null,_0x4c8f0f)),null;}}const _0x3eb8fa=this[_0x3a7f('0x135')]['getSuggestionCallback'](_0x3a7f('0xbd'),_0x41dbd6,_0x3a7f('0xac'));let _0x10a1c4=null;for(const _0x5d7c1e of this[_0x3a7f('0x83')]())if(_0x5d7c1e[_0x3a7f('0x70')]['id']==_0xd1664['id']&&_0x5d7c1e[_0x3a7f('0x127')]&&_0x3a7f('0xbd')==_0x5d7c1e[_0x3a7f('0x18')]&&_0x5d7c1e[_0x3a7f('0x140')]==_0x41dbd6&&Ut(_0x5d7c1e,_0x4c8f0f)&&(_0x3eb8fa(_0x5d7c1e[_0x3a7f('0xa0')](),_0x39ce19)||_0x3eb8fa(_0x39ce19,_0x5d7c1e['getRanges']()))){if(_0x10a1c4){if(_0x5d7c1e[_0x3a7f('0x2a')]&&_0x5d7c1e[_0x3a7f('0x2a')][_0x3a7f('0x30')])continue;for(const _0x98c0d of _0x5d7c1e[_0x3a7f('0xa0')]())_0x10a1c4[_0x3a7f('0xab')](_0x98c0d)||_0x10a1c4[_0x3a7f('0x110')](_0x98c0d);_0x5d7c1e['removeMarkers']();}else{_0x10a1c4=_0x5d7c1e;for(const _0x115935 of _0x39ce19)_0x5d7c1e[_0x3a7f('0xab')](_0x115935)||_0x5d7c1e[_0x3a7f('0x110')](_0x115935);}}if(_0x10a1c4)return _0x10a1c4;_0x797442[_0x3a7f('0xf2')]();for(const {suggestion:_0x1b4388,meta:_0x58f668}of this[_0x3a7f('0xe8')](_0x39ce19,'deletion'))_0x58f668[_0x3a7f('0x10b')]&&(this['_mergeNestedSuggestions']||!_0x58f668['containsRangeInObject']&&!_0x58f668[_0x3a7f('0x13')])&&Ut(_0x1b4388,_0x4c8f0f)&&_0x797442['add'](_0x1b4388);for(const _0x42599a of _0x797442){const _0x4d278e=_0x42599a['getRanges']();if(!_0x4c8f0f||!_0x4c8f0f[_0x3a7f('0x104')]){if(_0x39ce19[_0x3a7f('0x138')](_0x197eaf=>_0x4d278e[_0x3a7f('0x123')](_0x440c8f=>_0x440c8f[_0x3a7f('0x3f')](_0x197eaf,!0x0))))return _0x42599a;}(!_0x42599a['attributes']||!_0x42599a[_0x3a7f('0x16')][_0x3a7f('0x104')])&&(_0x4d278e[_0x3a7f('0x138')](_0xecd2e6=>_0x39ce19[_0x3a7f('0x123')](_0x2c2503=>_0x2c2503['containsRange'](_0xecd2e6,!0x0)))&&_0x42599a[_0x3a7f('0xea')]());}const _0x2d6adc=_0x5147c7(),_0x1db6ee=_0xd1664['id'],_0x3a5cdf=_0x3a7f('0x129')+_0x41dbd6,_0x1de80b=this[_0x3a7f('0xe9')]({'id':_0x2d6adc,'type':_0x3a5cdf,'createdAt':new Date(),'authorId':_0x1db6ee,'attributes':_0x4c8f0f});for(const _0x4a82a5 of _0x39ce19)_0x4a82a5[_0x3a7f('0x7d')](),_0x4a82a5[_0x3a7f('0xb')]||_0x3a7f('0xb7')==_0x4a82a5[_0x3a7f('0x29')][_0x3a7f('0x9b')]||this['_addSuggestionMarker'](_0x3a5cdf,_0x2d6adc,_0x1db6ee,_0x4a82a5,_0x28c196['getMultiRangeId']());return _0x1de80b;}[_0x3a7f('0x44')](_0x11225f,_0x473d1f){const _0x3635d3=_0x11225f[_0x3a7f('0x5f')]();this[_0x3a7f('0x9d')][_0x3a7f('0x5e')](_0x38cc08=>{_0x38cc08[_0x3a7f('0x4d')](_0x3635d3,{'range':_0x473d1f});});}[_0x3a7f('0x78')](_0x31e657){const _0x2158ba=_0x31e657['id'],_0x1139fa=this[_0x3a7f('0x143')]['config'][_0x3a7f('0xc8')](_0x3a7f('0x15'));this['_commentsRepository'][_0x3a7f('0x13c')](_0x2158ba)||this[_0x3a7f('0x141')][_0x3a7f('0x24')]({'channelId':_0x1139fa,'threadId':_0x2158ba,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x20abd6=this['_commentsRepository'][_0x3a7f('0x14')](_0x2158ba);_0x20abd6[_0x3a7f('0xca')]('isRemovable'),_0x20abd6[_0x3a7f('0x26')]=!0x1,_0x31e657[_0x3a7f('0x2a')]=_0x20abd6;}['_checkSuggestionCorrectness'](_0x3b2c8d,_0x18e190,_0x2d924e,_0x4ff1c3){if(_0x3b2c8d[_0x3a7f('0x18')]!=_0x18e190||_0x3b2c8d[_0x3a7f('0x140')]!=_0x2d924e||_0x3b2c8d[_0x3a7f('0x9')]['id']!=_0x4ff1c3)throw this['editor'][_0x3a7f('0xb3')](_0x3a7f('0x13b')),new _0x4c734e(_0x3a7f('0x13b'),this);}['_cutOutSuggestionMarker'](_0x34df23,_0x33fe0d){const _0x3d887c=_0x34df23['getFirstRange']();if(_0x33fe0d[_0x3a7f('0xd5')](_0x3d887c))_0x34df23[_0x3a7f('0xc3')]();else{if(_0x3d887c[_0x3a7f('0x3f')](_0x33fe0d)){const _0x358d80=this[_0x3a7f('0x9d')]['createPositionAt'](_0x33fe0d['start'][_0x3a7f('0xf8')],'end');this[_0x3a7f('0x44')](_0x34df23,this[_0x3a7f('0x9d')]['createRange'](_0x3d887c[_0x3a7f('0x50')],_0x358d80));const _0x160f4f=_0x5147c7(),_0x1bc05f=_0x34df23['creator']['id'],_0x21c429=_0x34df23['type']+':'+_0x34df23['subType'];this['_setSuggestionData']({'id':_0x160f4f,'type':_0x21c429,'createdAt':new Date(),'authorId':_0x1bc05f,'data':_0x34df23[_0x3a7f('0x12e')],'attributes':_0x34df23[_0x3a7f('0x16')]});const _0x17cdff=this[_0x3a7f('0x9d')][_0x3a7f('0x6d')](_0x33fe0d['end'][_0x3a7f('0x10a')],_0x3a7f('0x119')),_0x15d492=this['_model']['createRange'](_0x17cdff,_0x3d887c[_0x3a7f('0x56')]);this[_0x3a7f('0x71')](_0x21c429,_0x160f4f,_0x1bc05f,_0x15d492);}else{if(_0x3d887c[_0x3a7f('0xa2')](_0x33fe0d[_0x3a7f('0x50')])){const _0x259dd6=this['_model']['createPositionAt'](_0x33fe0d[_0x3a7f('0x50')][_0x3a7f('0xf8')],_0x3a7f('0x56'));this[_0x3a7f('0x44')](_0x34df23,this[_0x3a7f('0x9d')]['createRange'](_0x3d887c[_0x3a7f('0x50')],_0x259dd6));}else{const _0x112340=this['_model'][_0x3a7f('0x6d')](_0x33fe0d['end'][_0x3a7f('0x10a')],_0x3a7f('0x119'));this['_setSuggestionRange'](_0x34df23,this[_0x3a7f('0x9d')][_0x3a7f('0x76')](_0x112340,_0x3d887c[_0x3a7f('0x56')]));}}}}[_0x3a7f('0x51')](_0x238507){for(const {suggestion:_0x5320b6,meta:_0x513543}of this['_findSuggestions'](_0x238507,_0x3a7f('0x12a'))){if(!_0x513543[_0x3a7f('0x10b')])continue;const _0x3595f6=_0x5320b6['getRanges']();for(const _0x2650b0 of _0x3595f6)if(!_0x238507[_0x3a7f('0x68')](_0x2650b0)[_0x3a7f('0x30')])return!0x0;}return!0x1;}[_0x3a7f('0x112')](_0x4e27e9){const _0x22dbdf=this[_0x3a7f('0x143')][_0x3a7f('0x3')]['get'](_0x3a7f('0x23'))[_0x3a7f('0xa')](_0x4e27e9);if(!_0x22dbdf)throw new _0x4c734e(_0x3a7f('0x58'),this);return _0x22dbdf;}[_0x3a7f('0x66')](_0x59dbaf){const _0x20d040=this['editor'][_0x3a7f('0x3')]['get'](_0x3a7f('0x23')),_0x17648d=_0xf1b0e5(_0x3a7f('0x73')+_0x59dbaf),_0x53bef9=_0x20d040[_0x3a7f('0xa')](_0x17648d);return _0x53bef9||_0x20d040[_0x3a7f('0xff')]({'id':_0x17648d,'name':_0x59dbaf});}[_0x3a7f('0xa7')](_0x35dd96,_0x5b9f84,_0xb3369f,_0x19d4de,_0x33785a){const _0x28a9f9=this[_0x3a7f('0x112')](_0x19d4de),_0x197c2b=this['_suggestionFactory'][_0x3a7f('0x52')](_0x35dd96,_0x5b9f84,_0xb3369f,_0x28a9f9,_0x33785a,_0x4fc1bc=>this[_0x3a7f('0x10e')](_0xb3369f,{'attributes':_0x4fc1bc}));return this[_0x3a7f('0x59')](_0x197c2b,_0x3a7f('0xc'),()=>{this[_0x3a7f('0x10e')](_0xb3369f,{'state':'accepted'});},{'priority':_0x3a7f('0xd0')}),this[_0x3a7f('0x59')](_0x197c2b,_0x3a7f('0xea'),()=>{this[_0x3a7f('0x10e')](_0xb3369f,{'state':_0x3a7f('0xbc')});},{'priority':_0x3a7f('0xd0')}),this[_0x3a7f('0x6f')][_0x3a7f('0x11d')](_0xb3369f,_0x197c2b),this[_0x3a7f('0xf6')][_0x3a7f('0x11d')](_0x197c2b,_0x3a7f('0x10')),_0x197c2b;}[_0x3a7f('0x3a')](_0x43b24d){const _0x49402e=_0x43b24d[_0x3a7f('0x6a')](':');return{'group':_0x49402e[0x0],'type':_0x49402e[0x1],'subType':_0x49402e[_0x3a7f('0x30')]>=0x5?_0x49402e[0x2]:null,'id':_0x49402e[_0x3a7f('0x30')]<0x5?_0x49402e[0x2]:_0x49402e[0x3],'authorId':_0x49402e[_0x3a7f('0x30')]<0x5?_0x49402e[0x3]:_0x49402e[0x4],'markerCount':0x6==_0x49402e['length']?_0x49402e[0x5]:null};}[_0x3a7f('0x38')](_0x1d45cb,_0x42fb59,_0x13e328){const _0x13d7e9=_0x1d45cb[_0x3a7f('0x90')](),_0x1fda96=_0x13d7e9[_0x3a7f('0x50')],_0x5f14cc=_0x13d7e9[_0x3a7f('0x56')];this[_0x3a7f('0x44')](_0x1d45cb,this[_0x3a7f('0x9d')][_0x3a7f('0x76')](_0x1fda96,_0x42fb59));const _0x39058f=_0x5147c7(),_0x5553fd=_0x1d45cb[_0x3a7f('0x9')]['id'],_0x4d6f08=_0x1d45cb[_0x3a7f('0x18')]+(_0x1d45cb['subType']?':'+_0x1d45cb[_0x3a7f('0x140')]:'');this[_0x3a7f('0xe9')]({'id':_0x39058f,'type':_0x4d6f08,'createdAt':new Date(),'authorId':_0x5553fd,'originalSuggestionId':_0x1d45cb['id'],'attributes':_0x1d45cb[_0x3a7f('0x16')],'data':_0x1d45cb[_0x3a7f('0x12e')]}),_0x3a7f('0xd')==_0x1d45cb[_0x3a7f('0x18')]&&(_0x13e328=this[_0x3a7f('0x9d')][_0x3a7f('0xd2')](_0x13e328[_0x3a7f('0x10a')])),this['_addSuggestionMarker'](_0x4d6f08,_0x39058f,_0x5553fd,this[_0x3a7f('0x9d')][_0x3a7f('0x76')](_0x13e328,_0x5f14cc));}[_0x3a7f('0xe8')](_0x20a168,_0x1f81a2=null){const _0x6383f3=[],_0x443ee8=this[_0x3a7f('0x143')][_0x3a7f('0x3')][_0x3a7f('0xc8')](_0x3a7f('0x23'))['me'];Array[_0x3a7f('0xfe')](_0x20a168)||(_0x20a168=[_0x20a168]);for(const _0x524901 of this[_0x3a7f('0x83')]()){if(!_0x524901['isInContent'])continue;if(_0x1f81a2&&_0x524901[_0x3a7f('0x18')]!=_0x1f81a2)continue;let _0x3a0d61=!0x1;for(const _0x33430c of _0x524901[_0x3a7f('0xa0')]()){for(const _0x38d7df of _0x20a168){const _0x99ae99=_0x38d7df[_0x3a7f('0x50')]['isEqual'](_0x33430c[_0x3a7f('0x56')])||_0x38d7df['end'][_0x3a7f('0xd5')](_0x33430c[_0x3a7f('0x50')]);if(_0x99ae99||_0x38d7df[_0x3a7f('0x57')](_0x33430c)){const _0x4affd2=_0x38d7df[_0x3a7f('0x3f')](_0x33430c)&&Bt(this['_model'][_0x3a7f('0x8c')],_0x33430c['start'],_0x38d7df),_0x349721=_0x33430c[_0x3a7f('0x3f')](_0x38d7df)&&Bt(this['_model']['schema'],_0x38d7df['start'],_0x33430c);_0x6383f3[_0x3a7f('0xdd')]({'suggestion':_0x524901,'meta':{'isOwn':_0x443ee8==_0x524901[_0x3a7f('0x70')],'isNextTo':_0x99ae99,'isInsideObject':_0x4affd2,'containsRangeInObject':_0x349721}}),_0x3a0d61=!0x0;break;}}if(_0x3a0d61)break;}}return _0x6383f3;}[_0x3a7f('0x71')](_0x56f27d,_0xf7cae4,_0x14d113,_0x312d0a,_0x28cffe){this[_0x3a7f('0x9d')][_0x3a7f('0x5e')](_0x3beef5=>{let _0x8b0113=_0x3a7f('0x35')+_0x56f27d+':'+_0xf7cae4+':'+_0x14d113;_0x28cffe&&(_0x8b0113=_0x8b0113+':'+_0x28cffe),_0x3beef5[_0x3a7f('0x20')](_0x8b0113,{'range':_0x312d0a,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x3a7f('0xba')](_0x480f56){const _0x11764c=_0x480f56[_0x3a7f('0x1d')],_0x586bc5=_0x480f56[_0x3a7f('0x136')];_0x480f56[_0x3a7f('0x1d')]=null,null!=_0x11764c&&(_0x11764c[_0x3a7f('0x136')]=null),_0x480f56[_0x3a7f('0x136')]=null,null!=_0x586bc5&&(_0x586bc5[_0x3a7f('0x1d')]=null),'ready'==this[_0x3a7f('0xf6')][_0x3a7f('0xc8')](_0x480f56)&&(this[_0x3a7f('0xf6')][_0x3a7f('0x11d')](_0x480f56,_0x3a7f('0x4b')),this[_0x3a7f('0x11')](_0x3a7f('0xed'),_0x480f56,_0x11764c,_0x586bc5));}['_setSuggestionData'](_0x45a1e4){const _0x2ebb3d=_0x45a1e4['id'],_0x4ea73c=this['addSuggestionData'](_0x45a1e4);if(this[_0x3a7f('0x93')]&&this[_0x3a7f('0x93')][_0x3a7f('0x118')]){const _0x10106a=this[_0x3a7f('0x143')][_0x3a7f('0x3')][_0x3a7f('0xc8')](_0x3a7f('0xec')),_0x3b5ae1=_0x4ea73c['hasComments'],_0x19c27e=_0x4ea73c[_0x3a7f('0x140')]?_0x4ea73c[_0x3a7f('0x18')]+':'+_0x4ea73c['subType']:_0x4ea73c[_0x3a7f('0x18')],_0x28019b=this[_0x3a7f('0x143')][_0x3a7f('0x134')],_0x3def2e=_0x10106a[_0x3a7f('0xb4')](_0xdce868(_0x28019b,'PENDING_ACTION_SUGGESTION')),_0x488f35={'id':_0x2ebb3d,'type':_0x19c27e,'hasComments':_0x3b5ae1,'data':_0x45a1e4[_0x3a7f('0x12e')]||null,'originalSuggestionId':_0x45a1e4[_0x3a7f('0x11c')]||null,'attributes':_0x4ea73c[_0x3a7f('0x16')]};this[_0x3a7f('0x93')][_0x3a7f('0x118')](_0x488f35)[_0x3a7f('0x11b')](_0x57503b=>{_0x4ea73c[_0x3a7f('0x116')]=!0x0,_0x10106a[_0x3a7f('0x99')](_0x3def2e),_0x57503b&&_0x57503b['createdAt']&&(this['_suggestions'][_0x3a7f('0xc8')](_0x2ebb3d)[_0x3a7f('0x47')]=_0x57503b[_0x3a7f('0x47')]);})[_0x3a7f('0x98')](_0xee5d1a=>{throw _0x272082(_0x3a7f('0x37')),this[_0x3a7f('0x143')][_0x3a7f('0xe7')][_0x3a7f('0x142')]({'isUndoable':!0x1},()=>{_0x4ea73c['discard']();}),_0x4ea73c['stopListening'](),this[_0x3a7f('0x6f')][_0x3a7f('0xfc')](_0x4ea73c['id']),this[_0x3a7f('0xf6')][_0x3a7f('0xfc')](_0x4ea73c),_0xee5d1a;});}return _0x4ea73c;}[_0x3a7f('0x10e')](_0x5e428f,_0x46f8d7){const _0xeca181=this[_0x3a7f('0x143')][_0x3a7f('0x3')][_0x3a7f('0xc8')](_0x3a7f('0xec')),_0x5a3d1a=this[_0x3a7f('0x3c')](_0x5e428f);if(this[_0x3a7f('0x93')]&&this[_0x3a7f('0x93')][_0x3a7f('0xbe')]){if(_0x5a3d1a['_saved']){const _0x4ce78d=_0xeca181[_0x3a7f('0xb4')](_0xdce868(this[_0x3a7f('0x143')][_0x3a7f('0x134')],'PENDING_ACTION_SUGGESTION'));this[_0x3a7f('0x93')][_0x3a7f('0xbe')](_0x5e428f,_0x46f8d7)[_0x3a7f('0x11b')](()=>{_0xeca181['remove'](_0x4ce78d);});}else _0x5a3d1a['on'](_0x3a7f('0x1f'),()=>{this[_0x3a7f('0x10e')](_0x5e428f,_0x46f8d7);});}}[_0x3a7f('0x48')](_0x351ec8){if(!this[_0x3a7f('0x93')]||!this[_0x3a7f('0x93')][_0x3a7f('0x3c')])throw new _0x4c734e(_0x3a7f('0x101'),this);return this[_0x3a7f('0x93')][_0x3a7f('0x3c')](_0x351ec8);}[_0x3a7f('0x9c')](_0x44b453){const {id:_0x2f40f9,type:_0x12f3d6,subType:_0x26d087,authorId:_0x199448}=this['_splitMarkerName'](_0x44b453),_0x512ef7=this[_0x3a7f('0x6f')][_0x3a7f('0xc8')](_0x2f40f9)||this['_createSuggestion'](_0x12f3d6,_0x26d087,_0x2f40f9,_0x199448,{});switch(this[_0x3a7f('0x125')](_0x512ef7,_0x12f3d6,_0x26d087,_0x199448),this['_suggestionState'][_0x3a7f('0xc8')](_0x512ef7)){case _0x3a7f('0x10'):this[_0x3a7f('0x48')](_0x2f40f9)[_0x3a7f('0x11b')](_0x2322c7=>{let _0x326ddc=Promise['resolve']();_0x2322c7['hasComments']&&(_0x326ddc=this[_0x3a7f('0x141')][_0x3a7f('0x54')]({'channelId':this[_0x3a7f('0x143')][_0x3a7f('0x1b')]['get']('collaboration.channelId'),'threadId':_0x2f40f9})),_0x326ddc[_0x3a7f('0x11b')](()=>{this['addSuggestionData'](_0x2322c7)['_saved']=!0x0;});}),this[_0x3a7f('0xf6')][_0x3a7f('0x11d')](_0x512ef7,_0x3a7f('0x124'));break;case _0x3a7f('0x4b'):this[_0x3a7f('0x10e')](_0x2f40f9,{'state':'open'});case _0x3a7f('0x6c'):this[_0x3a7f('0xf6')][_0x3a7f('0x11d')](_0x512ef7,_0x3a7f('0x32')),this[_0x3a7f('0x11')](_0x3a7f('0xf9'),_0x512ef7);break;case _0x3a7f('0x32'):this[_0x3a7f('0x11')](_0x3a7f('0x12b'),_0x512ef7);}return _0x512ef7[_0x3a7f('0x9e')](_0x44b453),_0x512ef7;}['_refreshSuggestionsChain'](_0x57ecaf){const _0x42f4e5=Array[_0x3a7f('0xeb')](_0x57ecaf)[_0x3a7f('0x4')](_0x5db7ae=>!_0x5db7ae[_0x3a7f('0xfa')]),_0x182e44=this[_0x3a7f('0x83')]({'skipNotAttached':!0x0})[_0x3a7f('0x4')](_0x4407d8=>!_0x4407d8['isMultiRange']),_0x3708fd=_0x182e44[_0x3a7f('0x4')](_0x50f978=>!_0x57ecaf['has'](_0x50f978)),_0x49f6d8=new Map(_0x182e44[_0x3a7f('0x19')](_0x20941c=>[_0x20941c,this['_suggestionFactory'][_0x3a7f('0x12f')](_0x20941c[_0x3a7f('0x18')],_0x20941c['subType'],'chain')])),_0x4fcd36=new Map(_0x182e44[_0x3a7f('0x19')](_0x4da365=>[_0x4da365,_0x4da365[_0x3a7f('0x90')]()])),_0x4153b1=new Set(),_0x1a051a=new Set();for(let _0x3965f1=0x0;_0x3965f1<_0x42f4e5[_0x3a7f('0x30')];_0x3965f1++)_0x51e9ca(_0x42f4e5[_0x3965f1],_0x42f4e5,_0x3965f1+0x1);for(let _0x27b759=0x0;_0x27b759<_0x42f4e5[_0x3a7f('0x30')];_0x27b759++)_0x51e9ca(_0x42f4e5[_0x27b759],_0x3708fd,0x0);for(let _0x11d41a=0x0;_0x11d41a<_0x42f4e5[_0x3a7f('0x30')];_0x11d41a++){const _0x4dfbdc=_0x42f4e5[_0x11d41a];!_0x1a051a['has'](_0x4dfbdc)&&_0x4dfbdc[_0x3a7f('0x1d')]&&(_0x4dfbdc[_0x3a7f('0x1d')][_0x3a7f('0x136')]===_0x4dfbdc&&(_0x4dfbdc[_0x3a7f('0x1d')][_0x3a7f('0x136')]=null),_0x4dfbdc[_0x3a7f('0x1d')]=null),!_0x4153b1[_0x3a7f('0xc0')](_0x4dfbdc)&&_0x4dfbdc[_0x3a7f('0x136')]&&(_0x4dfbdc[_0x3a7f('0x136')][_0x3a7f('0x1d')]===_0x4dfbdc&&(_0x4dfbdc[_0x3a7f('0x136')][_0x3a7f('0x1d')]=null),_0x4dfbdc[_0x3a7f('0x136')]=null);}function _0x51e9ca(_0x2fa61e,_0x19ab4a,_0x207a33){for(let _0x4f30b7=_0x207a33;_0x4f30b7<_0x19ab4a[_0x3a7f('0x30')];_0x4f30b7++){const _0x23a6b7=_0x535df5(_0x2fa61e,_0x19ab4a[_0x4f30b7]);_0x23a6b7&&(_0x23a6b7[0x0][_0x3a7f('0x136')]=_0x23a6b7[0x1],_0x23a6b7[0x1][_0x3a7f('0x1d')]=_0x23a6b7[0x0],_0x4153b1[_0x3a7f('0xb4')](_0x23a6b7[0x0]),_0x1a051a['add'](_0x23a6b7[0x1]));}}function _0x535df5(_0x49a714,_0x59b719){if(_0x49a714[_0x3a7f('0x70')]['id']!==_0x59b719[_0x3a7f('0x70')]['id'])return null;const _0x511f0d=_0x49f6d8[_0x3a7f('0xc8')](_0x49a714)(_0x49a714,_0x59b719,_0x4fcd36[_0x3a7f('0xc8')](_0x49a714),_0x4fcd36[_0x3a7f('0xc8')](_0x59b719));if(!_0x511f0d)return null;return _0x49f6d8['get'](_0x59b719)(_0x49a714,_0x59b719,_0x4fcd36[_0x3a7f('0xc8')](_0x49a714),_0x4fcd36[_0x3a7f('0xc8')](_0x59b719))?_0x511f0d[0x1][_0x3a7f('0x2a')]&&_0x511f0d[0x1][_0x3a7f('0x2a')][_0x3a7f('0x30')]?null:_0x511f0d:null;}}[_0x3a7f('0x79')](_0x3fbc87){const _0x5e21bb=Array[_0x3a7f('0xeb')](_0x3fbc87),_0x12d642=this[_0x3a7f('0x83')]({'skipNotAttached':!0x0}),_0x2d2d04=_0x12d642[_0x3a7f('0x4')](_0x3f4157=>!_0x3fbc87[_0x3a7f('0xc0')](_0x3f4157)),_0xa6a014=new Map(_0x5e21bb['map'](_0xf31de2=>[_0xf31de2,this[_0x3a7f('0x135')][_0x3a7f('0x12f')](_0xf31de2[_0x3a7f('0x18')],_0xf31de2['subType'],_0x3a7f('0xac'))])),_0x591cee=new Map(_0x12d642[_0x3a7f('0x19')](_0x51ceb4=>[_0x51ceb4,_0x51ceb4[_0x3a7f('0xa0')]()]));for(let _0x3bc538=0x0;_0x3bc538<_0x5e21bb[_0x3a7f('0x30')];_0x3bc538++){if(_0x1e09d1(this,_0x5e21bb[_0x3bc538],_0x5e21bb,_0x3bc538+0x1))return!0x0;}for(let _0x48a00f=0x0;_0x48a00f<_0x5e21bb[_0x3a7f('0x30')];_0x48a00f++){if(_0x1e09d1(this,_0x5e21bb[_0x48a00f],_0x2d2d04,0x0))return!0x0;}return!0x1;function _0x1e09d1(_0x484699,_0x1c79f3,_0x4695ee,_0x51cfd1){for(let _0x5c45e7=_0x51cfd1;_0x5c45e7<_0x4695ee['length'];_0x5c45e7++){const _0x101b34=_0x4695ee[_0x5c45e7];if(_0x101b34['type']!==_0x1c79f3[_0x3a7f('0x18')]||_0x101b34['author']['id']!==_0x1c79f3[_0x3a7f('0x70')]['id']||_0x101b34[_0x3a7f('0x140')]!==_0x1c79f3[_0x3a7f('0x140')])continue;if(!xt(_0x1c79f3,_0x101b34))continue;const _0xa0b8a3=_0xa6a014[_0x3a7f('0xc8')](_0x1c79f3),_0xf0e575=_0x591cee[_0x3a7f('0xc8')](_0x1c79f3),_0x51e610=_0x591cee[_0x3a7f('0xc8')](_0x101b34),_0x23737a=_0x1c79f3[_0x3a7f('0x2a')]&&_0x1c79f3['commentThread']['length'],_0x38dd3a=_0x101b34[_0x3a7f('0x2a')]&&_0x101b34[_0x3a7f('0x2a')]['length'];if(!_0x23737a&&_0xa0b8a3(_0x51e610,_0xf0e575))return _0x484699[_0x3a7f('0x3d')](_0x101b34,_0x1c79f3),_0x591cee[_0x3a7f('0xfc')](_0x1c79f3),!0x0;if(!_0x38dd3a&&_0xa0b8a3(_0xf0e575,_0x51e610))return _0x484699[_0x3a7f('0x3d')](_0x1c79f3,_0x101b34),_0x591cee[_0x3a7f('0xfc')](_0x101b34),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4f3706,_0x52a3a2){if(_0x4f3706['isMultiRange'])for(const _0x52795c of _0x52a3a2[_0x3a7f('0xa0')]())_0x4f3706[_0x3a7f('0x110')](_0x52795c);else{const _0x14badb=_0x52a3a2[_0x3a7f('0x90')]()[_0x3a7f('0x56')];this[_0x3a7f('0x44')](_0x4f3706,this['_model'][_0x3a7f('0x76')](_0x4f3706[_0x3a7f('0x90')]()[_0x3a7f('0x50')],_0x14badb));}_0x52a3a2[_0x3a7f('0xc3')]();}}class Dt{constructor(_0x479831){this['_editor']=_0x479831,this[_0x3a7f('0x9d')]=_0x479831['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this[_0x3a7f('0x94')]();}[_0x3a7f('0x52')](_0x36a770,_0x5c3e73,_0x2a06dc,_0x392193,_0x4954a4,_0x2d2b71){return new _0x28c196(this[_0x3a7f('0x9d')],{'type':_0x36a770,'subType':_0x5c3e73,'id':_0x2a06dc,'author':_0x392193,'creator':_0x392193,'attributes':_0x4954a4,'onAttributesChange':_0x2d2b71,'onAccept':(..._0x5a0069)=>this[_0x3a7f('0x12f')](_0x36a770,_0x5c3e73,'accept')(..._0x5a0069),'onDiscard':(..._0x5a640d)=>this['getSuggestionCallback'](_0x36a770,_0x5c3e73,'discard')(..._0x5a640d)});}['registerCustomCallback'](_0x4026dd,_0x1a8d32,_0x44e465,_0x41039c){const _0x3becf2=_0x4026dd+':'+_0x1a8d32+':'+_0x44e465;this[_0x3a7f('0x117')][_0x3a7f('0x11d')](_0x3becf2,_0x41039c);}[_0x3a7f('0x12f')](_0x10ab19,_0x102b59,_0x2a6883){const _0x417d42=_0x10ab19+':'+_0x102b59+':'+_0x2a6883;return this[_0x3a7f('0x117')]['get'](_0x417d42)||this[_0x3a7f('0x2c')]['get'](_0x10ab19+':'+_0x2a6883);}[_0x3a7f('0x94')](){const _0x2580ae=()=>!0x1,_0x2d14bc=_0x284c69=>{_0x284c69[_0x3a7f('0x55')]((_0x3ca27d,_0x318592)=>_0x3ca27d['start']['isBefore'](_0x318592[_0x3a7f('0x50')])?0x1:-0x1),this['_model']['change'](_0x1e1f7f=>{for(const _0x44dcc8 of _0x284c69){let _0xe7ba11;_0xe7ba11=_0x44dcc8[_0x3a7f('0x56')][_0x3a7f('0x4c')]&&_0x44dcc8[_0x3a7f('0x56')][_0x3a7f('0x10a')]==_0x44dcc8[_0x3a7f('0x50')][_0x3a7f('0x10d')]?_0x1e1f7f[_0x3a7f('0x1c')](_0x44dcc8[_0x3a7f('0x50')][_0x3a7f('0x10d')],'on'):_0x1e1f7f['createSelection'](_0x44dcc8),this[_0x3a7f('0x9d')][_0x3a7f('0xf')](_0xe7ba11,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2562c2=(_0x10fe28,_0x59dd69)=>{this[_0x3a7f('0x9d')][_0x3a7f('0x5e')](_0x23b2f4=>{const {commandName:_0x52f368,commandParams:_0x3e2ba0=[]}=_0x59dd69,_0x4364cb=_0x10fe28[_0x3a7f('0x19')](_0x319cb1=>(_t(_0x319cb1)&&(_0x319cb1=this[_0x3a7f('0x9d')]['createRange'](_0x319cb1[_0x3a7f('0x56')])),_0x319cb1))[_0x3a7f('0x4')](_0x283e21=>_0x3a7f('0xb7')!==_0x283e21[_0x3a7f('0x29')][_0x3a7f('0x9b')]);if(_0x4364cb[_0x3a7f('0x30')]<0x1)return;const _0x20cd9b=Array[_0x3a7f('0xeb')](this[_0x3a7f('0x9d')][_0x3a7f('0xcd')]['selection']['getRanges']())['map'](_0x11f069=>_0x55d7ae[_0x3a7f('0xf5')](_0x11f069));_0x23b2f4[_0x3a7f('0x34')](_0x4364cb);for(const _0x387d4b of this[_0x3a7f('0x113')][_0x3a7f('0xfd')]['commands']())_0x387d4b['refresh']();_0x3e2ba0['push']({'forceDefaultExecution':!0x0}),this[_0x3a7f('0x113')][_0x3a7f('0xe4')](_0x52f368,..._0x3e2ba0);const _0x27cf09=_0x20cd9b[_0x3a7f('0x4')](_0x5c06cd=>_0x3a7f('0xb7')!=_0x5c06cd[_0x3a7f('0x29')]['rootName']);_0x27cf09[_0x3a7f('0x30')]>0x0&&_0x23b2f4[_0x3a7f('0x34')](_0x27cf09);for(const _0xd98b0 of _0x20cd9b)_0xd98b0[_0x3a7f('0x7d')]();});},_0xc2b325=(_0x56733e,_0xd6b78f)=>0x1==_0x56733e[_0x3a7f('0x30')]&&0x1==_0xd6b78f['length']&&_0x56733e[0x0]['end']['isEqual'](_0xd6b78f[0x0][_0x3a7f('0x50')]),_0x461e13=(_0x5de5c4,_0xc54a54,_0x498096,_0x2aefb5)=>jt(_0x5de5c4,_0xc54a54,_0x498096,_0x2aefb5,this[_0x3a7f('0x9d')])?[_0x5de5c4,_0xc54a54]:jt(_0xc54a54,_0x5de5c4,_0x2aefb5,_0x498096,this[_0x3a7f('0x9d')])?[_0xc54a54,_0x5de5c4]:null;this[_0x3a7f('0x2c')][_0x3a7f('0x11d')](_0x3a7f('0x75'),_0x2580ae),this[_0x3a7f('0x2c')]['set'](_0x3a7f('0xf0'),_0x2d14bc),this[_0x3a7f('0x2c')]['set'](_0x3a7f('0xd8'),_0xc2b325),this['_defaultCallbacks'][_0x3a7f('0x11d')](_0x3a7f('0x11e'),_0x461e13),this[_0x3a7f('0x2c')][_0x3a7f('0x11d')]('deletion:accept',_0x2d14bc),this[_0x3a7f('0x2c')][_0x3a7f('0x11d')](_0x3a7f('0x8f'),_0x2580ae),this[_0x3a7f('0x2c')][_0x3a7f('0x11d')](_0x3a7f('0x11a'),_0xc2b325),this[_0x3a7f('0x2c')][_0x3a7f('0x11d')](_0x3a7f('0x97'),_0x461e13),this[_0x3a7f('0x2c')][_0x3a7f('0x11d')](_0x3a7f('0x91'),_0x2562c2),this[_0x3a7f('0x2c')][_0x3a7f('0x11d')](_0x3a7f('0xdc'),_0x2580ae),this[_0x3a7f('0x2c')][_0x3a7f('0x11d')]('formatInline:join',_0xc2b325),this['_defaultCallbacks'][_0x3a7f('0x11d')](_0x3a7f('0x61'),_0x2580ae),this[_0x3a7f('0x2c')][_0x3a7f('0x11d')](_0x3a7f('0x8b'),_0x2562c2),this[_0x3a7f('0x2c')][_0x3a7f('0x11d')]('formatBlock:discard',_0x2580ae),this[_0x3a7f('0x2c')][_0x3a7f('0x11d')](_0x3a7f('0xae'),_0xc2b325),this['_defaultCallbacks'][_0x3a7f('0x11d')](_0x3a7f('0x130'),_0x2580ae);}}function Bt(_0x2f6fb0,_0x5cd76f,_0x206552){for(const _0x216aa8 of _0x5cd76f[_0x3a7f('0x10a')][_0x3a7f('0x6e')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x216aa8[_0x3a7f('0x29')]==_0x216aa8)return!0x1;if(!_0x206552[_0x3a7f('0x3b')](_0x216aa8))return!0x1;if(_0x2f6fb0[_0x3a7f('0xa1')](_0x216aa8)||_0x2f6fb0[_0x3a7f('0xd1')](_0x216aa8))return!0x0;}return!0x1;}function _t(_0x123e73){return _0x123e73[_0x3a7f('0x56')][_0x3a7f('0x10a')]==_0x123e73[_0x3a7f('0x50')][_0x3a7f('0x10d')]&&_0x123e73[_0x3a7f('0x56')]['isAtStart'];}function Mt(_0xeb7ce3,_0x350e1d,_0x4cd676,_0x440ca7){const _0x4503a3=_0x4ad7ea=>!_0x4ad7ea[_0x3a7f('0x39')]['is'](_0x3a7f('0x13d'))&&!_0x440ca7['isObject'](_0x4ad7ea[_0x3a7f('0x39')]),_0x526e18=_0xeb7ce3['start']['getLastMatchingPosition'](_0x4503a3),_0x33f9c8=_0xeb7ce3[_0x3a7f('0x56')][_0x3a7f('0x5b')](_0x4503a3,{'direction':_0x3a7f('0x12')});return(!_0xeb7ce3['start'][_0x3a7f('0xd5')](_0x526e18)||!_0xeb7ce3[_0x3a7f('0x56')][_0x3a7f('0xd5')](_0x33f9c8))&&(_0x526e18[_0x3a7f('0xf7')](_0x33f9c8)?_0x4cd676[_0x3a7f('0x4d')](_0x350e1d,{'range':_0x4cd676['createRange'](_0x526e18,_0x33f9c8)}):_0x4cd676[_0x3a7f('0x1e')](_0x350e1d),!0x0);}function $t(_0xa893cf){return _0xf1b0e5(_0xa893cf);}function Nt(_0x31b920){const _0x518915=_0x31b920[_0x3a7f('0x50')][_0x3a7f('0x10d')];return _0x518915&&_0x518915['is'](_0x3a7f('0x4f'));}function Rt(_0x3509ca,_0x2b697b){const _0x37f633=_0x2b697b[_0x3a7f('0x8c')][_0x3a7f('0xa1')](_0x3509ca)||_0x2b697b[_0x3a7f('0x8c')][_0x3a7f('0xcf')](_0x3509ca);return _0x2b697b[_0x3a7f('0x76')](_0x2b697b['createPositionAt'](_0x3509ca,_0x3a7f('0x42')),_0x37f633?_0x2b697b['createPositionAfter'](_0x3509ca):_0x2b697b['createPositionAt'](_0x3509ca,_0x3a7f('0x56')));}function jt(_0x2798f7,_0x30a42d,_0x4e553f,_0x49b2b0,_0xb62de8){if(!xt(_0x2798f7,_0x30a42d))return!0x1;if(_0x4e553f[_0x3a7f('0x56')][_0x3a7f('0xd5')](_0x49b2b0[_0x3a7f('0x50')]))return!0x0;if(_0x2798f7[_0x3a7f('0x18')]!=_0x30a42d['type'])return!0x1;if(!_0x4e553f['end'][_0x3a7f('0xc5')](_0x49b2b0[_0x3a7f('0x50')]))return!0x1;const _0xf98f07=_0xb62de8[_0x3a7f('0x76')](_0x4e553f[_0x3a7f('0x56')],_0x49b2b0[_0x3a7f('0x50')])[_0x3a7f('0x89')]();for(const _0x3cb3bf of _0xf98f07)if(['elementStart','elementEnd']['includes'](_0x3cb3bf['type'])&&_0xb62de8['schema'][_0x3a7f('0xd1')](_0x3cb3bf[_0x3a7f('0x39')]))return!0x1;return!0x0;}function xt(_0x16e4f6,_0x204805){return!(!_0x16e4f6[_0x3a7f('0xe1')]||!_0x204805[_0x3a7f('0xe1')])&&_0x36a598(_0x16e4f6[_0x3a7f('0x16')],_0x204805['attributes']);}function Ut(_0x2018aa,_0x45e1b1){const _0x3c5db4=Ot(_0x2018aa[_0x3a7f('0x16')]),_0x35c76a=Ot(_0x45e1b1);if(!_0x2018aa[_0x3a7f('0xe1')])return!0x1;for(const _0x296ba0 of Object[_0x3a7f('0x80')](_0x35c76a))if(!_0x36a598(_0x3c5db4[_0x296ba0],_0x35c76a[_0x296ba0]))return!0x1;return!0x0;}function Ot(_0x3de5d1){const _0x5e1c3a=Object[_0x3a7f('0x121')]({},_0x3de5d1);return delete _0x5e1c3a[_0x3a7f('0x104')],delete _0x5e1c3a[_0x3a7f('0x74')],_0x5e1c3a;}