@ckeditor/ckeditor5-comments 36.0.0 → 37.0.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (202) hide show
  1. package/build/comments.js +2 -2
  2. package/build/translations/af.js +1 -1
  3. package/build/translations/ar.js +1 -1
  4. package/build/translations/bg.js +1 -1
  5. package/build/translations/bn.js +1 -1
  6. package/build/translations/bs.js +1 -1
  7. package/build/translations/ca.js +1 -1
  8. package/build/translations/cs.js +1 -1
  9. package/build/translations/da.js +1 -1
  10. package/build/translations/de-ch.js +1 -1
  11. package/build/translations/de.js +1 -1
  12. package/build/translations/el.js +1 -1
  13. package/build/translations/en-au.js +1 -1
  14. package/build/translations/es-co.js +1 -1
  15. package/build/translations/es.js +1 -1
  16. package/build/translations/et.js +1 -1
  17. package/build/translations/fa.js +1 -1
  18. package/build/translations/fi.js +1 -1
  19. package/build/translations/fr.js +1 -1
  20. package/build/translations/gl.js +1 -1
  21. package/build/translations/he.js +1 -1
  22. package/build/translations/hi.js +1 -1
  23. package/build/translations/hr.js +1 -1
  24. package/build/translations/hu.js +1 -1
  25. package/build/translations/id.js +1 -1
  26. package/build/translations/it.js +1 -1
  27. package/build/translations/ja.js +1 -1
  28. package/build/translations/jv.js +1 -1
  29. package/build/translations/ko.js +1 -1
  30. package/build/translations/lt.js +1 -1
  31. package/build/translations/lv.js +1 -1
  32. package/build/translations/ms.js +1 -1
  33. package/build/translations/nl.js +1 -1
  34. package/build/translations/no.js +1 -1
  35. package/build/translations/pl.js +1 -1
  36. package/build/translations/pt-br.js +1 -1
  37. package/build/translations/pt.js +1 -1
  38. package/build/translations/ro.js +1 -1
  39. package/build/translations/ru.js +1 -1
  40. package/build/translations/sk.js +1 -1
  41. package/build/translations/sr-latn.js +1 -1
  42. package/build/translations/sr.js +1 -1
  43. package/build/translations/sv.js +1 -1
  44. package/build/translations/th.js +1 -1
  45. package/build/translations/tk.js +1 -1
  46. package/build/translations/tr.js +1 -1
  47. package/build/translations/tt.js +1 -1
  48. package/build/translations/ug.js +1 -1
  49. package/build/translations/uk.js +1 -1
  50. package/build/translations/ur.js +1 -1
  51. package/build/translations/vi.js +1 -1
  52. package/build/translations/zh-cn.js +1 -1
  53. package/build/translations/zh.js +1 -1
  54. package/lang/contexts.json +8 -1
  55. package/lang/translations/af.po +28 -0
  56. package/lang/translations/ar.po +28 -0
  57. package/lang/translations/bg.po +28 -0
  58. package/lang/translations/bn.po +28 -0
  59. package/lang/translations/bs.po +28 -0
  60. package/lang/translations/ca.po +28 -0
  61. package/lang/translations/cs.po +28 -0
  62. package/lang/translations/da.po +28 -0
  63. package/lang/translations/de-ch.po +28 -0
  64. package/lang/translations/de.po +28 -0
  65. package/lang/translations/el.po +28 -0
  66. package/lang/translations/en-au.po +28 -0
  67. package/lang/translations/en.po +28 -0
  68. package/lang/translations/es-co.po +28 -0
  69. package/lang/translations/es.po +28 -0
  70. package/lang/translations/et.po +28 -0
  71. package/lang/translations/fa.po +28 -0
  72. package/lang/translations/fi.po +28 -0
  73. package/lang/translations/fr.po +28 -0
  74. package/lang/translations/gl.po +28 -0
  75. package/lang/translations/he.po +28 -0
  76. package/lang/translations/hi.po +28 -0
  77. package/lang/translations/hr.po +28 -0
  78. package/lang/translations/hu.po +28 -0
  79. package/lang/translations/id.po +28 -0
  80. package/lang/translations/it.po +28 -0
  81. package/lang/translations/ja.po +28 -0
  82. package/lang/translations/jv.po +28 -0
  83. package/lang/translations/ko.po +28 -0
  84. package/lang/translations/lt.po +28 -0
  85. package/lang/translations/lv.po +28 -0
  86. package/lang/translations/ms.po +28 -0
  87. package/lang/translations/nl.po +28 -0
  88. package/lang/translations/no.po +28 -0
  89. package/lang/translations/pl.po +28 -0
  90. package/lang/translations/pt-br.po +28 -0
  91. package/lang/translations/pt.po +28 -0
  92. package/lang/translations/ro.po +28 -0
  93. package/lang/translations/ru.po +28 -0
  94. package/lang/translations/sk.po +28 -0
  95. package/lang/translations/sr-latn.po +28 -0
  96. package/lang/translations/sr.po +29 -1
  97. package/lang/translations/sv.po +28 -0
  98. package/lang/translations/th.po +28 -0
  99. package/lang/translations/tk.po +28 -0
  100. package/lang/translations/tr.po +28 -0
  101. package/lang/translations/tt.po +28 -0
  102. package/lang/translations/ug.po +28 -0
  103. package/lang/translations/uk.po +28 -0
  104. package/lang/translations/ur.po +28 -0
  105. package/lang/translations/vi.po +28 -0
  106. package/lang/translations/zh-cn.po +28 -0
  107. package/lang/translations/zh.po +28 -0
  108. package/package.json +20 -4
  109. package/src/annotations/annotation.d.ts +86 -0
  110. package/src/annotations/annotation.js +1 -1
  111. package/src/annotations/annotationcollection.d.ts +94 -0
  112. package/src/annotations/annotationcollection.js +1 -1
  113. package/src/annotations/annotations.d.ts +150 -0
  114. package/src/annotations/annotations.js +1 -1
  115. package/src/annotations/annotationsuis.d.ts +227 -0
  116. package/src/annotations/annotationsuis.js +1 -1
  117. package/src/annotations/editorannotations.d.ts +62 -0
  118. package/src/annotations/editorannotations.js +1 -1
  119. package/src/annotations/inlineannotations.d.ts +84 -0
  120. package/src/annotations/inlineannotations.js +1 -1
  121. package/src/annotations/narrowsidebar.d.ts +80 -0
  122. package/src/annotations/narrowsidebar.js +1 -1
  123. package/src/annotations/sidebar.d.ts +96 -0
  124. package/src/annotations/sidebar.js +1 -1
  125. package/src/annotations/view/annotationcounterbuttonview.d.ts +25 -0
  126. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  127. package/src/annotations/view/annotationview.d.ts +86 -0
  128. package/src/annotations/view/annotationview.js +1 -1
  129. package/src/annotations/view/sidebaritemview.d.ts +51 -0
  130. package/src/annotations/view/sidebaritemview.js +1 -1
  131. package/src/annotations/view/sidebarview.d.ts +28 -0
  132. package/src/annotations/view/sidebarview.js +1 -1
  133. package/src/annotations/widesidebar.d.ts +72 -0
  134. package/src/annotations/widesidebar.js +1 -1
  135. package/src/augmentation.d.ts +54 -0
  136. package/src/augmentation.js +23 -0
  137. package/src/comments/addcommentthreadcommand.d.ts +31 -0
  138. package/src/comments/addcommentthreadcommand.js +1 -1
  139. package/src/comments/commentsarchive.d.ts +25 -0
  140. package/src/comments/commentsarchive.js +23 -0
  141. package/src/comments/commentsarchiveui.d.ts +32 -0
  142. package/src/comments/commentsarchiveui.js +23 -0
  143. package/src/comments/commentsediting.d.ts +71 -0
  144. package/src/comments/commentsediting.js +1 -1
  145. package/src/comments/commentsrepository.d.ts +1009 -0
  146. package/src/comments/commentsrepository.js +1 -1
  147. package/src/comments/commentsui.d.ts +25 -0
  148. package/src/comments/commentsui.js +1 -1
  149. package/src/comments/integrations/commentsrestrictededitingmode.d.ts +13 -0
  150. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  151. package/src/comments/integrations/importword.d.ts +17 -0
  152. package/src/comments/integrations/importword.js +1 -1
  153. package/src/comments/ui/commenteditor/commenteditor.d.ts +32 -0
  154. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  155. package/src/comments/ui/commenteditor/commenteditorui.d.ts +27 -0
  156. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  157. package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +32 -0
  158. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  159. package/src/comments/ui/commentthreadcontroller.d.ts +64 -0
  160. package/src/comments/ui/commentthreadcontroller.js +1 -1
  161. package/src/comments/ui/view/basecommentthreadview.d.ts +108 -0
  162. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  163. package/src/comments/ui/view/basecommentview.d.ts +108 -0
  164. package/src/comments/ui/view/basecommentview.js +1 -1
  165. package/src/comments/ui/view/collapsedcommentsview.d.ts +9 -0
  166. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  167. package/src/comments/ui/view/commentcontentview.d.ts +10 -0
  168. package/src/comments/ui/view/commentcontentview.js +1 -1
  169. package/src/comments/ui/view/commentinputview.d.ts +76 -0
  170. package/src/comments/ui/view/commentinputview.js +1 -1
  171. package/src/comments/ui/view/commentsarchiveview.d.ts +34 -0
  172. package/src/comments/ui/view/commentsarchiveview.js +23 -0
  173. package/src/comments/ui/view/commentslistview.d.ts +96 -0
  174. package/src/comments/ui/view/commentslistview.js +1 -1
  175. package/src/comments/ui/view/commentthreadheaderview.d.ts +46 -0
  176. package/src/comments/ui/view/commentthreadheaderview.js +23 -0
  177. package/src/comments/ui/view/commentthreadinputview.d.ts +37 -0
  178. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  179. package/src/comments/ui/view/commentthreadview.d.ts +108 -0
  180. package/src/comments/ui/view/commentthreadview.js +1 -1
  181. package/src/comments/ui/view/commentview.d.ts +231 -0
  182. package/src/comments/ui/view/commentview.js +1 -1
  183. package/src/comments.d.ts +22 -0
  184. package/src/comments.js +1 -1
  185. package/src/commentsonly.d.ts +28 -0
  186. package/src/commentsonly.js +1 -1
  187. package/src/config.d.ts +172 -0
  188. package/src/config.js +23 -0
  189. package/src/index.d.ts +19 -0
  190. package/src/index.js +1 -1
  191. package/src/utils/common-translations.d.ts +5 -0
  192. package/src/utils/common-translations.js +1 -1
  193. package/src/utils/createmutationobserver.d.ts +13 -0
  194. package/src/utils/createmutationobserver.js +1 -1
  195. package/theme/annotation.css +1 -0
  196. package/theme/comment.css +31 -0
  197. package/theme/commentsarchive.css +40 -0
  198. package/theme/commentthread.css +68 -1
  199. package/theme/icons/add-comment.svg +1 -1
  200. package/theme/icons/comments-archive.svg +11 -0
  201. package/theme/icons/undo.svg +1 -0
  202. package/theme/sidebar.css +4 -0
@@ -0,0 +1,71 @@
1
+ /**
2
+ * @module comments/comments/commentsediting
3
+ */
4
+ import { Plugin, type PluginDependencies, type Editor } from 'ckeditor5/src/core';
5
+ import type { Marker } from 'ckeditor5/src/engine';
6
+ import '../../theme/commentmarker.css';
7
+ /**
8
+ * Plugin that keeps in sync comments in {@link module:comments/comments/commentsrepository~CommentsRepository} with
9
+ * {@link module:engine/model/markercollection~Marker comment markers}.
10
+ */
11
+ export default class CommentsEditing extends Plugin {
12
+ /**
13
+ * If set to `true`, the plugin won't load comment thread for the new marker immediately after the marker is added to the editor.
14
+ * Instead, the plugin will wait until the flag will be set to `false` and then load missing comments.
15
+ *
16
+ * It's useful to hold fetching comments from the server when comments are used with real-time collaboration.
17
+ * When a user connects to an existing document, the operations from the history need to be applied one by one.
18
+ * An operation which added a new comment marker might be followed by an operation which removes that marker, so it's not
19
+ * necessary to make an additional request then.
20
+ *
21
+ * @observable
22
+ */
23
+ isThreadsLoadingPaused: boolean;
24
+ /**
25
+ * Name of the active comment marker.
26
+ *
27
+ * Markers conversion checks if comment should be marked as active and adds/removes additional css class during the conversion.
28
+ *
29
+ * @observable
30
+ */
31
+ activeMarker: string | null;
32
+ /**
33
+ * @inheritDoc
34
+ */
35
+ static get requires(): PluginDependencies;
36
+ /**
37
+ * @inheritDoc
38
+ */
39
+ static get pluginName(): 'CommentsEditing';
40
+ /**
41
+ * @inheritDoc
42
+ */
43
+ constructor(editor: Editor);
44
+ /**
45
+ * @inheritDoc
46
+ */
47
+ init(): void;
48
+ /**
49
+ * @inheritDoc
50
+ */
51
+ destroy(): void;
52
+ /**
53
+ * Returns `true` if there is at least one marker in the content that is related to a comment thread with given `threadId`.
54
+ *
55
+ * @param threadId Comment thread id.
56
+ */
57
+ hasMarkerForId(threadId: string): boolean;
58
+ /**
59
+ * Returns all markers that are related to the comment thread with the given `threadId`.
60
+ *
61
+ * @param threadId Comment thread id.
62
+ * @returns Array with all markers related to given comment thread.
63
+ */
64
+ getAllMarkersForId(threadId: string): Array<Marker>;
65
+ /**
66
+ * Scrolls editing view to the first thread marker.
67
+ *
68
+ * @param threadId Comment thread id.
69
+ */
70
+ scrollToThreadMarker(threadId: string): void;
71
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2915=['change','once','markerToData','switchReadOnly','_attachedThreads','then','editor','activeMarker','get','CommentsEditing','reconvertMarker','dataDowncast','CommentsRepository','fetchCommentThread','registerAnnotation','has','addComment','_handleMarkerAddAndRemove','view','updateMarker','comment','split','config','_detachCommentThread','stop','affectsData','differ','editing','addCommentThread','getAllMarkersForId','isCollapsed','elementToElement','getCommentThread','change:activeMarker','editingDowncast','$marker','data','openNewCommentThread','change:isThreadsLoadingPaused','conversion','plugins','length','$graveyard','destroy','comment:','hasCommentThread','push','set','pluginName','start','upcast','document','destroyed','_attachMarkerToThread','_initializeMarkerConverters','update:comment','hasContent','getWalker','size','rootName','name','requires','delete','text','getByInnerView','listenTo','markerName','schema','for','init','hasMarkerForId','createRange','isEqual','state','_threadToController','model','collaboration.channelId','getCommentThreads','isThreadsLoadingPaused','add','commands','render','includes','managedUsingOperations','removeMarker','filter','getAttribute','Annotations','change:isReadOnly','markers','ready','createPositionBefore','high','newRange'];(function(_0x169fcb,_0x2915ef){const _0x25d5ce=function(_0x238743){while(--_0x238743){_0x169fcb['push'](_0x169fcb['shift']());}};_0x25d5ce(++_0x2915ef);}(_0x2915,0xc3));const _0x25d5=function(_0x169fcb,_0x2915ef){_0x169fcb=_0x169fcb-0x0;let _0x25d5ce=_0x2915[_0x169fcb];return _0x25d5ce;};import{Plugin as _0x2436e6}from'ckeditor5/src/core';import _0x9e9341 from'./commentsrepository';import _0x45ea66 from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x288d9c}from'ckeditor5-collaboration/src/collaboration-core';import _0x2b3ff8 from'../annotations/editorannotations';import _0x29df1b from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x2a4605 from'./integrations/importword';export default class r extends _0x2436e6{static get[_0x25d5('0x36')](){return[_0x9e9341,_0x2b3ff8,_0x29df1b,_0x2a4605];}static get[_0x25d5('0x29')](){return _0x25d5('0x2');}constructor(_0x3cd56a){super(_0x3cd56a),this['set']('isThreadsLoadingPaused',!0x0),_0x3cd56a[_0x25d5('0x1d')][_0x25d5('0x58')](_0x25d5('0x53'),()=>this[_0x25d5('0x47')]=!0x1),this[_0x25d5('0x28')](_0x25d5('0x0'),null),this['on'](_0x25d5('0x1a'),(_0x2ed05f,_0x1e8f4e,_0x1a9f44,_0x13fa27)=>{_0x3cd56a[_0x25d5('0x44')][_0x25d5('0x57')](()=>{if(_0x1a9f44){const {id:_0x3d1808}=J(_0x1a9f44),_0x641faf=this[_0x25d5('0x16')](_0x3d1808);for(const _0x2fcbbd of _0x641faf)_0x3cd56a['editing']['reconvertMarker'](_0x2fcbbd);}if(_0x13fa27){const {id:_0x478def}=J(_0x13fa27),_0x17d12d=this['getAllMarkersForId'](_0x478def);for(const _0x292ec7 of _0x17d12d)_0x3cd56a[_0x25d5('0x14')][_0x25d5('0x3')](_0x292ec7);}});}),this[_0x25d5('0x5b')]=new Map();}[_0x25d5('0x3e')](){const _0x242145=this[_0x25d5('0x5d')],_0x1e323b=_0x242145[_0x25d5('0x21')][_0x25d5('0x1')](_0x25d5('0x5')),_0x2fdd47=_0x242145['config']['get'](_0x25d5('0x45'));_0x242145[_0x25d5('0x49')][_0x25d5('0x48')](_0x25d5('0x15'),new _0x45ea66(_0x242145)),this[_0x25d5('0x3a')](_0x242145,_0x25d5('0x51'),(_0x45084b,_0x418f24,_0x1dcfd6)=>{_0x1e323b[_0x25d5('0x5a')](_0x1dcfd6,_0x242145[_0x25d5('0xf')][_0x25d5('0x1')]('collaboration.channelId'));}),this['listenTo'](_0x1e323b,H('removeCommentThread',_0x2fdd47),(_0x58847d,{threadId:_0x3ce473})=>{_0x242145[_0x25d5('0x44')]['change'](_0x2cac71=>{for(const _0x50ba21 of this[_0x25d5('0x16')](_0x3ce473))_0x2cac71[_0x25d5('0x4d')](_0x50ba21);});const _0x14ef87=_0x1e323b[_0x25d5('0x19')](_0x3ce473);_0x1e323b[_0x25d5('0x26')](_0x3ce473)&&!_0x14ef87['length']||_0x58847d[_0x25d5('0x11')]();},{'priority':_0x25d5('0x55')}),this['listenTo'](_0x1e323b,H(_0x25d5('0x9'),_0x2fdd47),(_0x4962ce,{threadId:_0x906d94,isFromAdapter:_0x38cea4})=>{const _0x115a34=this[_0x25d5('0x16')](_0x906d94);if(_0x38cea4||0x0==_0x115a34['length']||!_0x1e323b[_0x25d5('0x26')](_0x906d94))return;0x1===_0x1e323b[_0x25d5('0x19')](_0x906d94)[_0x25d5('0x22')]&&_0x242145[_0x25d5('0x44')][_0x25d5('0x57')](_0x439fc4=>{for(const _0x2fea8a of _0x115a34)_0x439fc4[_0x25d5('0xc')](_0x2fea8a,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this[_0x25d5('0x2f')](),this[_0x25d5('0xa')]();}[_0x25d5('0x24')](){const _0x1de04c=this['editor'][_0x25d5('0x21')][_0x25d5('0x1')](_0x25d5('0x5')),_0x4ff8fe=this['editor'][_0x25d5('0xf')][_0x25d5('0x1')]('collaboration.channelId');for(const _0x514cf5 of _0x1de04c[_0x25d5('0x46')]({'channelId':_0x4ff8fe}))_0x1de04c['_detachCommentThread'](_0x514cf5['id']),_0x1de04c['_threads'][_0x25d5('0x37')](_0x514cf5['id']);super[_0x25d5('0x24')]();}[_0x25d5('0x3f')](_0x5e3a40){return this[_0x25d5('0x16')](_0x5e3a40)[_0x25d5('0x22')]>0x0;}[_0x25d5('0x16')](_0x2af637){return(this[_0x25d5('0x5b')]['get'](_0x2af637)||[])['map'](_0x38b16e=>this[_0x25d5('0x5d')][_0x25d5('0x44')][_0x25d5('0x52')][_0x25d5('0x1')](_0x38b16e))[_0x25d5('0x4e')](_0x5a4631=>_0x5a4631);}[_0x25d5('0x2f')](){const _0x24ba1a=this[_0x25d5('0x5d')];_0x24ba1a[_0x25d5('0x20')][_0x25d5('0x3d')](_0x25d5('0x1b'))['markerToHighlight']({'model':_0x25d5('0xd'),'view':_0x4bf4c4=>{const {id:_0x534975}=J(_0x4bf4c4[_0x25d5('0x3b')]),_0x172eea=['ck-comment-marker'];return this[_0x25d5('0x0')]&&J(this[_0x25d5('0x0')])['id']===_0x534975&&_0x172eea[_0x25d5('0x27')]('ck-comment-marker--active'),{'classes':_0x172eea,'attributes':{'data-comment':_0x534975}};}}),_0x24ba1a[_0x25d5('0x20')]['for'](_0x25d5('0x4'))[_0x25d5('0x59')]({'model':_0x25d5('0xd'),'view':_0x4eeca6=>{const _0x118da0=_0x24ba1a[_0x25d5('0x44')]['markers'][_0x25d5('0x1')](_0x4eeca6),{id:_0x2e9290,part:_0x23ddd6}=J(_0x4eeca6);return _0x118da0&&!_0x118da0[_0x25d5('0x12')]?null:{'group':_0x25d5('0xd'),'name':_0x23ddd6?_0x2e9290+':'+_0x23ddd6:_0x2e9290};}}),_0x24ba1a[_0x25d5('0x20')][_0x25d5('0x3d')](_0x25d5('0x2b'))[_0x25d5('0x18')]({'view':{'name':_0x25d5('0xd'),'attribute':{'id':/^\w/}},'model':(_0x55589e,{writer:_0x37d870})=>_0x37d870['createElement'](_0x25d5('0x1c'),{'data-name':_0x25d5('0x25')+_0x55589e[_0x25d5('0x4f')]('id')})}),_0x24ba1a[_0x25d5('0x20')][_0x25d5('0x3d')](_0x25d5('0x2b'))['dataToMarker']({'view':_0x25d5('0xd')});}[_0x25d5('0xa')](){const _0x22882f=this['editor'],_0x53d07b=_0x22882f[_0x25d5('0x21')][_0x25d5('0x1')]('CommentsRepository'),_0x274c9e=new Set();_0x22882f[_0x25d5('0x44')]['document']['registerPostFixer'](_0xc721be=>{let _0x656a7a=!0x1;for(const {name:_0x5815c1,data:_0x487f73}of _0x22882f['model'][_0x25d5('0x2c')][_0x25d5('0x13')]['getChangedMarkers']()){const {group:_0x1bd755,id:_0x128a79}=J(_0x5815c1);let _0x18feb1=_0x487f73[_0x25d5('0x56')];if(_0x25d5('0xd')!==_0x1bd755||!_0x18feb1)continue;const _0x5af7cd=_0x25d5('0x23')===_0x18feb1['root'][_0x25d5('0x34')];_0x5af7cd||(_0x18feb1=K(_0x18feb1,_0x22882f[_0x25d5('0x44')]),!_0x18feb1||_0x18feb1[_0x25d5('0x41')](_0x487f73['newRange']))?!_0x18feb1||!_0x22882f[_0x25d5('0x44')][_0x25d5('0x31')](_0x18feb1)||this[_0x25d5('0x5b')][_0x25d5('0x8')](_0x128a79)&&_0x5af7cd?(_0xc721be['removeMarker'](_0x5815c1),_0x656a7a=!0x0):_0x5af7cd||(this[_0x25d5('0x47')]?_0x274c9e[_0x25d5('0x48')](_0x5815c1):this['_attachMarkerToThread'](_0x5815c1,_0x128a79)):(_0xc721be[_0x25d5('0xc')](_0x5815c1,{'range':_0x18feb1}),_0x656a7a=!0x0);}return _0x656a7a;}),this['on'](_0x25d5('0x1f'),(_0x15d009,_0x5b85fa,_0x10ba6a)=>{if(!_0x10ba6a&&_0x274c9e[_0x25d5('0x33')])for(const _0x5d1f89 of _0x274c9e){const {id:_0x388578}=J(_0x5d1f89);_0x274c9e[_0x25d5('0x37')](_0x388578),_0x22882f['model'][_0x25d5('0x52')][_0x25d5('0x1')](_0x5d1f89)&&this['_attachMarkerToThread'](_0x5d1f89,_0x388578);}}),this[_0x25d5('0x3a')](_0x22882f[_0x25d5('0x44')][_0x25d5('0x52')],_0x25d5('0x30'),(_0x5c879e,_0x7f2730,_0x2588b4,_0x3a4a49)=>{if(_0x3a4a49)return;const {id:_0x56518a}=J(_0x7f2730[_0x25d5('0x35')]),_0x242ae5=_0x22882f['plugins'][_0x25d5('0x1')](_0x25d5('0x5'))['getCommentThread'](_0x56518a);_0x274c9e['delete'](_0x56518a),_0x242ae5&&!this[_0x25d5('0x3f')](_0x56518a)&&(this[_0x25d5('0x5b')]['delete'](_0x56518a),_0x53d07b[_0x25d5('0x10')](_0x56518a));});}[_0x25d5('0x2e')](_0x3db709,_0x1c14f4){if(this[_0x25d5('0x5b')]['has'](_0x1c14f4)){const _0x4c7517=this[_0x25d5('0x5b')][_0x25d5('0x1')](_0x1c14f4);return void(_0x4c7517[_0x25d5('0x4b')](_0x3db709)||_0x4c7517[_0x25d5('0x27')](_0x3db709));}this[_0x25d5('0x5b')][_0x25d5('0x28')](_0x1c14f4,[_0x3db709]);const _0x53ec76=this[_0x25d5('0x5d')],_0x72a81f=_0x53ec76[_0x25d5('0x21')]['get'](_0x25d5('0x5')),_0x59bb6d=_0x53ec76[_0x25d5('0xf')][_0x25d5('0x1')](_0x25d5('0x45')),_0x2685ef=_0x53ec76[_0x25d5('0x21')][_0x25d5('0x1')]('EditorAnnotations'),_0x32f0e0=()=>{const _0x276256=this[_0x25d5('0x16')](_0x1c14f4);return _0x288d9c(_0x53ec76[_0x25d5('0x14')],_0x276256);};!this[_0x25d5('0x16')](_0x1c14f4)[0x0][_0x25d5('0x4c')]?_0x53ec76[_0x25d5('0x14')][_0x25d5('0xb')][_0x25d5('0x58')](_0x25d5('0x4a'),()=>{const _0x479ae4=_0x53ec76[_0x25d5('0x21')][_0x25d5('0x1')](_0x25d5('0x50')),_0x3a1a30=_0x72a81f[_0x25d5('0x1e')]({'channelId':_0x59bb6d,'threadId':_0x1c14f4,'target':_0x32f0e0}),_0x1e3b0b=_0x72a81f[_0x25d5('0x43')]['get'](_0x3a1a30)[_0x25d5('0xb')],_0x3747cd=_0x479ae4[_0x25d5('0x39')](_0x1e3b0b);_0x2685ef['registerAnnotation'](_0x3747cd);},{'priority':'low'}):_0x72a81f[_0x25d5('0x6')]({'channelId':_0x59bb6d,'threadId':_0x1c14f4})[_0x25d5('0x5c')](_0x18c88c=>{if(_0x25d5('0x2d')!==_0x53ec76[_0x25d5('0x42')]){if(_0x18c88c){const _0x36df52=_0x18c88c['attachTo'](_0x32f0e0);_0x2685ef[_0x25d5('0x7')](_0x36df52);}else{const _0x323062=this[_0x25d5('0x16')](_0x1c14f4);_0x53ec76[_0x25d5('0x44')][_0x25d5('0x57')](_0x43c07a=>{for(const _0x216be5 of _0x323062)_0x43c07a[_0x25d5('0x4d')](_0x216be5);});}}});}}function H(_0x348c46,_0x29b737){return _0x29b737?_0x348c46+':'+_0x29b737:_0x348c46;}function J(_0xba2a69){const _0x3ea576=_0xba2a69[_0x25d5('0xe')](':');return{'group':_0x3ea576[0x0],'id':_0x3ea576[0x1],'part':_0x3ea576[0x2]};}function K(_0x16ed99,_0xaa372a){const _0xdb320=_0xaa372a[_0x25d5('0x3c')],_0x652d77=_0xaa372a[_0x25d5('0x40')](_0x16ed99[_0x25d5('0x2a')]);for(const _0x13457d of _0x16ed99[_0x25d5('0x32')]()){const {type:_0x55dce7,item:_0x477f5b,nextPosition:_0x52b98f}=_0x13457d;if(_0x25d5('0x38')===_0x55dce7||_0xdb320['isObject'](_0x477f5b)){const _0x4cc552=_0xaa372a[_0x25d5('0x54')](_0x477f5b);_0x652d77[_0x25d5('0x17')]&&(_0x652d77[_0x25d5('0x2a')]=_0x4cc552),_0x652d77['end']=_0x52b98f;}}return _0x652d77[_0x25d5('0x17')]?null:_0x652d77;}
23
+ const _0x4783=['context','for','plugins','managedUsingOperations','createElement','markerToHighlight','_getTargetForId','conversion','ck-comment-marker','getWalker','listenTo','scrollToThreadMarker','createPositionBefore','getChangedMarkers','ready','isCollapsed','getItems','data','filter','render','markers','setContext','change','get','schema','_handleMarkerAddAndRemove','delete','isThreadsLoadingPaused','substring','markerToData','getRange','editor','_attachedThreads','size','focus','switchReadOnly','dataToMarker','document','_initializeMarkerConverters','reopenCommentThread','commands','consume','updateMarker','hasContent','add','newRange','collaboration.channelId','ignoreResolvedComments','item','text','enqueueChange','addCommentThread','_getTextContext','model','change:isReadOnly','$marker','length','comment','isLocal','resolveCommentThread','includes','high','isResolvable','once','openNewCommentThread','removeMarker:','getByInnerView','createRange','attachTo','push','_detachCommentThread','editing','isEqual','getCommentThreads','registerAnnotation','differ','_handleThreadMarker','editingDowncast','init','view','config','ck-comment-marker--active','pluginName','_attachMarkerToThread','dataDowncast','registerPostFixer','destroy','elementToElement','getCommentThread','_threads','map','reconvertMarker','hasCommentThread','getAllMarkersForId','set','activeMarker','CommentsEditing','isResolved','consumable','_threadToController','start','_reconvertMarkers','$graveyard','low','comment:','state','refreshVisibility','upcast','isObject','has','root','reopen','removeMarker','markerName','hasDomSelection'];(function(_0x392ad2,_0x478381){const _0x440f42=function(_0x5cfa73){while(--_0x5cfa73){_0x392ad2['push'](_0x392ad2['shift']());}};_0x440f42(++_0x478381);}(_0x4783,0x154));const _0x440f=function(_0x392ad2,_0x478381){_0x392ad2=_0x392ad2-0x0;let _0x440f42=_0x4783[_0x392ad2];return _0x440f42;};import{Plugin as _0x47823d}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x54a481}from'ckeditor5/src/utils';import _0x1e0f94 from'./commentsrepository';import _0x3785de from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0xd731d}from'ckeditor5-collaboration/src/collaboration-core';import _0x2efbd7 from'../annotations/editorannotations';import _0x117b5f from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x5426e6 from'./integrations/importword';import _0x49be6c from'../annotations/annotations';export default class r extends _0x47823d{static get['requires'](){return[_0x1e0f94,_0x2efbd7,_0x117b5f,_0x5426e6];}static get[_0x440f('0x57')](){return _0x440f('0x65');}constructor(_0xdbed88){super(_0xdbed88),this[_0x440f('0x63')](_0x440f('0x20'),!0x0),_0xdbed88[_0x440f('0x16')][_0x440f('0x44')](_0x440f('0x13'),()=>this[_0x440f('0x20')]=!0x1),this[_0x440f('0x63')](_0x440f('0x64'),null),this['on']('change:activeMarker',(_0x55d554,_0x59baf8,_0x197964,_0x47792b)=>{const _0x45f580=_0x197964?tt(_0x197964)['id']:null;if(_0xdbed88[_0x440f('0x3a')][_0x440f('0x1b')](()=>{if(_0x45f580){const _0x48994f=this[_0x440f('0x62')](_0x45f580);for(const _0x56a019 of _0x48994f)_0xdbed88[_0x440f('0x4c')]['reconvertMarker'](_0x56a019);}if(_0x47792b){const {id:_0x46d7ef}=tt(_0x47792b),_0x2c97f9=this[_0x440f('0x62')](_0x46d7ef);for(const _0x49006d of _0x2c97f9)_0xdbed88[_0x440f('0x4c')][_0x440f('0x60')](_0x49006d);}}),_0x45f580){const _0x40bf41=_0xdbed88['plugins'][_0x440f('0x1c')](_0x1e0f94)['getCommentThread'](_0x45f580);_0x40bf41&&_0x40bf41[_0x440f('0x66')]&&this[_0x440f('0x10')](_0x45f580);}}),this['_attachedThreads']=new Map();}[_0x440f('0x53')](){const _0x1c39fa=this['editor'],_0x1edeb6=_0x1c39fa['plugins']['get'](_0x1e0f94),_0x201d3a=_0x1c39fa[_0x440f('0x55')][_0x440f('0x1c')](_0x440f('0x33'));_0x1c39fa[_0x440f('0x2d')]['add']('addCommentThread',new _0x3785de(_0x1c39fa)),this['listenTo'](_0x1c39fa,_0x440f('0x3b'),(_0x592404,_0x325abd,_0x46989b)=>{_0x1edeb6[_0x440f('0x28')](_0x46989b,_0x1c39fa['config'][_0x440f('0x1c')]('collaboration.channelId'));}),this[_0x440f('0xf')](_0x1edeb6,Z(_0x440f('0x38'),_0x201d3a),(_0x27b380,{threadId:_0xa0339c})=>{const _0x3b531a=_0x1c39fa[_0x440f('0x7')]['get'](_0x2efbd7),_0x45f0c3=this[_0x440f('0x24')][_0x440f('0x7')][_0x440f('0x1c')](_0x1e0f94)['getCommentThread'](_0xa0339c);if(_0x45f0c3&&_0x45f0c3['isResolved']&&!this['_attachedThreads'][_0x440f('0x72')](_0xa0339c)){const _0x2e3865=_0x45f0c3['attachTo'](()=>this[_0x440f('0xb')](_0x45f0c3['id']));_0x3b531a[_0x440f('0x4f')](_0x2e3865),this['_attachedThreads']['set'](_0xa0339c,[]),0x0===this[_0x440f('0x62')](_0xa0339c)[_0x440f('0x3d')]&&(_0x45f0c3['isResolvable']=!0x1);}}),this[_0x440f('0xf')](_0x1edeb6,Z('removeCommentThread',_0x201d3a),(_0x2d60e1,{threadId:_0x2bf115})=>{_0x1c39fa[_0x440f('0x3a')]['enqueueChange']({'isUndoable':!0x1},_0x4b3aab=>{const _0x4b71d1=this[_0x440f('0x62')](_0x2bf115);this[_0x440f('0x25')][_0x440f('0x1f')](_0x2bf115);for(const _0x1031c5 of _0x4b71d1)_0x4b3aab[_0x440f('0x2')](_0x1031c5);});},{'priority':_0x440f('0x42')}),this[_0x440f('0xf')](_0x1edeb6,Z(_0x440f('0x40'),_0x201d3a),(_0x4a3552,{threadId:_0x4591a4})=>{this['_reconvertMarkers'](_0x4591a4),this[_0x440f('0x24')][_0x440f('0x4c')]['view'][_0x440f('0x4')]&&this['editor'][_0x440f('0x4c')][_0x440f('0x54')][_0x440f('0x27')]();},{'priority':'low'}),this[_0x440f('0xf')](_0x1edeb6,Z(_0x440f('0x2c'),_0x201d3a),(_0x220b51,{threadId:_0x47ce16})=>{this[_0x440f('0x6a')](_0x47ce16);},{'priority':_0x440f('0x6c')}),this[_0x440f('0xf')](_0x1edeb6,Z('addComment',_0x201d3a),(_0x201a32,{threadId:_0x1c7a86,isFromAdapter:_0x148835})=>{const _0x258b13=this['getAllMarkersForId'](_0x1c7a86);if(_0x148835||0x0==_0x258b13[_0x440f('0x3d')]||!_0x1edeb6[_0x440f('0x61')](_0x1c7a86))return;0x1===_0x1edeb6[_0x440f('0x5d')](_0x1c7a86)[_0x440f('0x3d')]&&_0x1c39fa[_0x440f('0x3a')][_0x440f('0x37')]({'isUndoable':!0x1},_0x3f6e59=>{for(const _0x2712bf of _0x258b13)_0x3f6e59[_0x440f('0x2f')](_0x2712bf,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x440f('0x6c')}),this[_0x440f('0x2b')](),this[_0x440f('0x1e')]();}[_0x440f('0x5b')](){const _0x1d47ef=this[_0x440f('0x24')][_0x440f('0x7')][_0x440f('0x1c')](_0x1e0f94),_0x2ea889=this[_0x440f('0x24')][_0x440f('0x55')][_0x440f('0x1c')](_0x440f('0x33'));for(const _0x4fc0cd of _0x1d47ef[_0x440f('0x4e')]({'channelId':_0x2ea889}))_0x1d47ef[_0x440f('0x4b')](_0x4fc0cd['id']),_0x1d47ef[_0x440f('0x5e')]['delete'](_0x4fc0cd['id']);super['destroy']();}['hasMarkerForId'](_0xe5338c){return this[_0x440f('0x62')](_0xe5338c)['length']>0x0;}[_0x440f('0x62')](_0x51727d){return(this[_0x440f('0x25')][_0x440f('0x1c')](_0x51727d)||[])[_0x440f('0x5f')](_0x4e0307=>this[_0x440f('0x24')][_0x440f('0x3a')][_0x440f('0x19')][_0x440f('0x1c')](_0x4e0307))[_0x440f('0x17')](_0xee62ea=>_0xee62ea);}['scrollToThreadMarker'](_0x5c7af2){const _0x145065=this['_getTargetForId'](_0x5c7af2);_0x145065&&setTimeout(()=>{this[_0x440f('0x64')]&&tt(this['activeMarker'])['id']===_0x5c7af2&&_0x54a481({'target':_0x145065[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x440f('0x6a')](_0x3f83c7){this[_0x440f('0x24')]['model'][_0x440f('0x1b')](()=>{for(const _0x449745 of this['getAllMarkersForId'](_0x3f83c7))this[_0x440f('0x24')][_0x440f('0x4c')]['reconvertMarker'](_0x449745);});}[_0x440f('0x2b')](){const _0x176421=this['editor'];_0x176421[_0x440f('0xc')][_0x440f('0x6')](_0x440f('0x52'))[_0x440f('0xa')]({'model':_0x440f('0x3e'),'view':(_0x1dd8e6,_0x4eb41a)=>{const {id:_0x4c5570}=tt(_0x1dd8e6[_0x440f('0x3')]),_0x460402=_0x176421[_0x440f('0x7')][_0x440f('0x1c')](_0x1e0f94)[_0x440f('0x5d')](_0x4c5570),_0x4658aa=this['activeMarker']&&tt(this['activeMarker'])['id']===_0x4c5570;if(_0x460402&&_0x460402[_0x440f('0x66')]&&!_0x4658aa&&_0x1dd8e6[_0x440f('0x35')])return _0x4eb41a[_0x440f('0x67')][_0x440f('0x2e')](_0x1dd8e6[_0x440f('0x35')],'addMarker:'+_0x1dd8e6['markerName']),_0x4eb41a[_0x440f('0x67')][_0x440f('0x2e')](_0x1dd8e6[_0x440f('0x35')],_0x440f('0x46')+_0x1dd8e6[_0x440f('0x3')]),{'classes':[]};const _0x59e28b=[_0x440f('0xd')];return _0x4658aa&&_0x59e28b['push'](_0x440f('0x56')),{'classes':_0x59e28b,'attributes':{'data-comment':_0x4c5570}};}}),_0x176421[_0x440f('0xc')][_0x440f('0x6')](_0x440f('0x59'))[_0x440f('0x22')]({'model':_0x440f('0x3e'),'view':(_0x8ce3e7,{options:_0x1466bf})=>{const _0x9ac874=_0x176421[_0x440f('0x7')]['get'](_0x1e0f94),_0x47d19d=_0x176421[_0x440f('0x3a')][_0x440f('0x19')]['get'](_0x8ce3e7),{id:_0x434a35,part:_0x44e124}=tt(_0x8ce3e7),_0x571d0a=_0x9ac874['getCommentThread'](_0x434a35);return _0x47d19d&&!_0x47d19d['affectsData']||_0x571d0a&&_0x571d0a[_0x440f('0x66')]&&_0x1466bf[_0x440f('0x34')]?null:{'group':_0x440f('0x3e'),'name':_0x44e124?_0x434a35+':'+_0x44e124:_0x434a35};}}),_0x176421[_0x440f('0xc')][_0x440f('0x6')](_0x440f('0x70'))[_0x440f('0x5c')]({'view':{'name':_0x440f('0x3e'),'attributes':{'id':/^\w/}},'model':(_0x2950e1,{writer:_0x25b17a})=>_0x25b17a[_0x440f('0x9')](_0x440f('0x3c'),{'data-name':_0x440f('0x6d')+_0x2950e1['getAttribute']('id')})}),_0x176421['conversion'][_0x440f('0x6')](_0x440f('0x70'))[_0x440f('0x29')]({'view':_0x440f('0x3e')});}[_0x440f('0x1e')](){const _0x5c9108=this['editor'],_0x4537e7=_0x5c9108[_0x440f('0x7')]['get'](_0x1e0f94),_0x1e8583=new Set();_0x5c9108[_0x440f('0x3a')][_0x440f('0x2a')][_0x440f('0x5a')](_0x50b956=>{let _0xedae8c=!0x1;for(const {name:_0x2ff4e3,data:_0x5d1adb}of _0x5c9108[_0x440f('0x3a')][_0x440f('0x2a')][_0x440f('0x50')][_0x440f('0x12')]()){const {group:_0xfbdebf,id:_0x1c3e0c}=tt(_0x2ff4e3);let _0x54c211=_0x5d1adb[_0x440f('0x32')];if(_0x440f('0x3e')!==_0xfbdebf||!_0x54c211)continue;const _0x325c04=_0x440f('0x6b')===_0x54c211[_0x440f('0x0')]['rootName'];_0x325c04||(_0x54c211=ot(_0x54c211,_0x5c9108['model']),!_0x54c211||!_0x5d1adb[_0x440f('0x32')]||_0x54c211[_0x440f('0x4d')](_0x5d1adb[_0x440f('0x32')]))?!_0x54c211||!_0x5c9108[_0x440f('0x3a')][_0x440f('0x30')](_0x54c211)||this[_0x440f('0x25')][_0x440f('0x72')](_0x1c3e0c)&&_0x325c04?(_0x50b956[_0x440f('0x2')](_0x2ff4e3),_0xedae8c=!0x0):_0x325c04||(this[_0x440f('0x20')]?_0x1e8583[_0x440f('0x31')](_0x2ff4e3):this[_0x440f('0x51')](_0x2ff4e3,_0x1c3e0c)):(_0x50b956[_0x440f('0x2f')](_0x2ff4e3,{'range':_0x54c211}),_0xedae8c=!0x0);}return _0xedae8c;}),this['on']('change:isThreadsLoadingPaused',(_0x36e312,_0x252d8f,_0x3635a9)=>{if(!_0x3635a9&&_0x1e8583[_0x440f('0x26')])for(const _0x317a53 of _0x1e8583){const {id:_0x4cc19b}=tt(_0x317a53);_0x1e8583[_0x440f('0x1f')](_0x4cc19b),_0x5c9108['model'][_0x440f('0x19')][_0x440f('0x1c')](_0x317a53)&&this['_handleThreadMarker'](_0x317a53,_0x4cc19b);}}),this[_0x440f('0xf')](_0x5c9108[_0x440f('0x3a')][_0x440f('0x2a')],_0x440f('0x1b'),(_0x771c2e,_0x40ec64)=>{for(const {name:_0x270942,data:{newRange:_0x1e9fe8}}of _0x5c9108[_0x440f('0x3a')][_0x440f('0x2a')][_0x440f('0x50')][_0x440f('0x12')]()){const {group:_0xaeecc4,id:_0x38c9ed}=tt(_0x270942);if(_0x440f('0x3e')!==_0xaeecc4)continue;const _0x298269=_0x4537e7[_0x440f('0x5d')](_0x38c9ed),_0x15edef=this['hasMarkerForId'](_0x38c9ed);_0x298269&&(_0x298269[_0x440f('0x43')]=_0x15edef||!!_0x1e9fe8),!_0x1e9fe8&&_0x40ec64[_0x440f('0x3f')]&&(_0x1e8583[_0x440f('0x1f')](_0x38c9ed),_0x298269&&!_0x298269['isResolved']&&!_0x15edef&&this['_attachedThreads'][_0x440f('0x72')](_0x38c9ed)&&(this[_0x440f('0x25')][_0x440f('0x1f')](_0x38c9ed),_0x298269['resolve']()));}});}['_getTargetForId'](_0x13f5d3){const _0x328664=this[_0x440f('0x24')],_0x1c6d2d=this[_0x440f('0x62')](_0x13f5d3);return _0xd731d(_0x328664[_0x440f('0x4c')],_0x1c6d2d);}['_getTextContext'](_0x99aef1){const _0x383aa4=this[_0x440f('0x62')](_0x99aef1);let _0x47cc97='',_0x5d468e=!0x1;for(const _0x27114d of _0x383aa4){const _0x9ec12f=_0x27114d[_0x440f('0x23')]();for(const _0x44d3e6 of Array['from'](_0x9ec12f[_0x440f('0x15')]()))_0x44d3e6['is']('$textProxy')?(_0x47cc97&&_0x5d468e&&(_0x47cc97+='\x20',_0x5d468e=!0x1),_0x47cc97+=_0x44d3e6[_0x440f('0x16')]):_0x5d468e=!0x0;_0x5d468e=!0x0;}return _0x47cc97[_0x440f('0x21')](0x0,0x96);}[_0x440f('0x58')](_0x289b07,_0x352264){const _0x549243=this['editor'],_0x198ffb=_0x549243[_0x440f('0x7')][_0x440f('0x1c')](_0x1e0f94);let _0x30c18d=_0x198ffb[_0x440f('0x5d')](_0x352264);if(this[_0x440f('0x25')][_0x440f('0x72')](_0x352264)){const _0x5e3575=this[_0x440f('0x25')][_0x440f('0x1c')](_0x352264);return _0x5e3575[_0x440f('0x41')](_0x289b07)||_0x5e3575[_0x440f('0x4a')](_0x289b07),_0x30c18d;}this[_0x440f('0x25')][_0x440f('0x63')](_0x352264,[_0x289b07]);const _0x212e32=_0x549243['config'][_0x440f('0x1c')](_0x440f('0x33')),_0x29cd44=_0x549243[_0x440f('0x7')]['get'](_0x2efbd7);if(_0x30c18d&&_0x30c18d[_0x440f('0x66')])return _0x30c18d[_0x440f('0x1')](),_0x549243['editing'][_0x440f('0x54')][_0x440f('0x44')](_0x440f('0x18'),()=>{const _0x580a43=_0x549243['plugins'][_0x440f('0x1c')](_0x49be6c),_0x569191=_0x198ffb[_0x440f('0x68')][_0x440f('0x1c')](_0x30c18d)[_0x440f('0x54')];_0x580a43['getByInnerView'](_0x569191)[_0x440f('0x6f')]();},{'priority':_0x440f('0x6c')}),_0x30c18d;return!this[_0x440f('0x62')](_0x352264)[0x0][_0x440f('0x8')]?_0x549243[_0x440f('0x4c')][_0x440f('0x54')][_0x440f('0x44')]('render',()=>{const _0x5d5048=_0x549243[_0x440f('0x7')][_0x440f('0x1c')](_0x49be6c);_0x30c18d=_0x198ffb[_0x440f('0x45')]({'channelId':_0x212e32,'threadId':_0x352264,'target':()=>this[_0x440f('0xb')](_0x352264),'context':{'type':_0x440f('0x36'),'value':this[_0x440f('0x39')](_0x352264)}});const _0x3c3a3c=_0x198ffb[_0x440f('0x68')]['get'](_0x30c18d)[_0x440f('0x54')],_0x2cb344=_0x5d5048[_0x440f('0x47')](_0x3c3a3c);_0x2cb344&&_0x29cd44[_0x440f('0x4f')](_0x2cb344);},{'priority':_0x440f('0x6c')}):_0x198ffb['fetchCommentThread']({'channelId':_0x212e32,'threadId':_0x352264})['then'](_0x1a563e=>{if('destroyed'!==_0x549243[_0x440f('0x6e')]){if(_0x30c18d=_0x1a563e,_0x30c18d){const _0x1a6680=_0x30c18d[_0x440f('0x49')](()=>this[_0x440f('0xb')](_0x352264));_0x29cd44[_0x440f('0x4f')](_0x1a6680);}else{const _0x314225=this['getAllMarkersForId'](_0x352264);_0x549243[_0x440f('0x3a')]['change'](_0x5e50c0=>{for(const _0x455a56 of _0x314225)_0x5e50c0[_0x440f('0x2')](_0x455a56);});}}}),_0x30c18d;}['_handleThreadMarker'](_0x49014e,_0x3485f8){const _0x1fc7ae=this[_0x440f('0x58')](_0x49014e,_0x3485f8);_0x1fc7ae&&!_0x1fc7ae[_0x440f('0x5')]&&_0x1fc7ae[_0x440f('0x1a')]({'type':_0x440f('0x36'),'value':this['_getTextContext'](_0x3485f8)});}}function Z(_0x13ed49,_0x52fdf4){return _0x52fdf4?_0x13ed49+':'+_0x52fdf4:_0x13ed49;}function tt(_0x46a707){const _0xa94e96=_0x46a707['split'](':');return{'group':_0xa94e96[0x0],'id':_0xa94e96[0x1],'part':_0xa94e96[0x2]};}function ot(_0x340093,_0x4d0556){const _0x435eb6=_0x4d0556[_0x440f('0x1d')],_0x494197=_0x4d0556[_0x440f('0x48')](_0x340093[_0x440f('0x69')]);for(const _0x58baa2 of _0x340093[_0x440f('0xe')]()){const {type:_0x2c6884,item:_0x533c21,nextPosition:_0x2a81cb}=_0x58baa2;if(_0x440f('0x36')===_0x2c6884||_0x435eb6[_0x440f('0x71')](_0x533c21)){const _0x4d2844=_0x4d0556[_0x440f('0x11')](_0x533c21);_0x494197[_0x440f('0x14')]&&(_0x494197[_0x440f('0x69')]=_0x4d2844),_0x494197['end']=_0x2a81cb;}}return _0x494197[_0x440f('0x14')]?null:_0x494197;}