@ckeditor/ckeditor5-comments 38.2.0-alpha.0 → 39.0.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 (163) hide show
  1. package/README.md +0 -1
  2. package/build/comments.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/ca.js +1 -1
  7. package/build/translations/cs.js +1 -1
  8. package/build/translations/da.js +1 -1
  9. package/build/translations/de.js +1 -1
  10. package/build/translations/el.js +1 -1
  11. package/build/translations/es.js +1 -1
  12. package/build/translations/et.js +1 -1
  13. package/build/translations/fi.js +1 -1
  14. package/build/translations/fr.js +1 -1
  15. package/build/translations/gl.js +1 -1
  16. package/build/translations/he.js +1 -1
  17. package/build/translations/hi.js +1 -1
  18. package/build/translations/hr.js +1 -1
  19. package/build/translations/hu.js +1 -1
  20. package/build/translations/id.js +1 -1
  21. package/build/translations/ja.js +1 -1
  22. package/build/translations/ko.js +1 -1
  23. package/build/translations/lt.js +1 -1
  24. package/build/translations/ms.js +1 -1
  25. package/build/translations/nl.js +1 -1
  26. package/build/translations/no.js +1 -1
  27. package/build/translations/pl.js +1 -1
  28. package/build/translations/pt.js +1 -1
  29. package/build/translations/ro.js +1 -1
  30. package/build/translations/ru.js +1 -1
  31. package/build/translations/sq.js +1 -1
  32. package/build/translations/sr.js +1 -1
  33. package/build/translations/sv.js +1 -1
  34. package/build/translations/th.js +1 -1
  35. package/build/translations/tr.js +1 -1
  36. package/build/translations/uk.js +1 -1
  37. package/build/translations/vi.js +1 -1
  38. package/build/translations/zh-cn.js +1 -1
  39. package/build/translations/zh.js +1 -1
  40. package/lang/translations/ar.po +1 -1
  41. package/lang/translations/bg.po +1 -1
  42. package/lang/translations/bn.po +1 -1
  43. package/lang/translations/ca.po +1 -1
  44. package/lang/translations/cs.po +1 -1
  45. package/lang/translations/da.po +1 -1
  46. package/lang/translations/de.po +1 -1
  47. package/lang/translations/el.po +1 -1
  48. package/lang/translations/es.po +1 -1
  49. package/lang/translations/et.po +1 -1
  50. package/lang/translations/fi.po +1 -1
  51. package/lang/translations/fr.po +1 -1
  52. package/lang/translations/gl.po +12 -12
  53. package/lang/translations/he.po +1 -1
  54. package/lang/translations/hi.po +1 -1
  55. package/lang/translations/hr.po +1 -1
  56. package/lang/translations/hu.po +1 -1
  57. package/lang/translations/id.po +1 -1
  58. package/lang/translations/ja.po +1 -1
  59. package/lang/translations/ko.po +1 -1
  60. package/lang/translations/lt.po +1 -1
  61. package/lang/translations/ms.po +1 -1
  62. package/lang/translations/nl.po +1 -1
  63. package/lang/translations/no.po +1 -1
  64. package/lang/translations/pl.po +1 -1
  65. package/lang/translations/pt.po +1 -1
  66. package/lang/translations/ro.po +1 -1
  67. package/lang/translations/ru.po +1 -1
  68. package/lang/translations/sq.po +2 -2
  69. package/lang/translations/sr.po +1 -1
  70. package/lang/translations/sv.po +1 -1
  71. package/lang/translations/th.po +1 -1
  72. package/lang/translations/tr.po +1 -1
  73. package/lang/translations/uk.po +1 -1
  74. package/lang/translations/vi.po +1 -1
  75. package/lang/translations/zh-cn.po +1 -1
  76. package/lang/translations/zh.po +1 -1
  77. package/package.json +4 -5
  78. package/src/annotations/annotation.d.ts +4 -0
  79. package/src/annotations/annotation.js +2 -2
  80. package/src/annotations/annotationcollection.d.ts +4 -0
  81. package/src/annotations/annotationcollection.js +2 -2
  82. package/src/annotations/annotations.d.ts +4 -0
  83. package/src/annotations/annotations.js +2 -2
  84. package/src/annotations/annotationsuis.d.ts +4 -0
  85. package/src/annotations/annotationsuis.js +2 -2
  86. package/src/annotations/editorannotations.d.ts +4 -0
  87. package/src/annotations/editorannotations.js +2 -2
  88. package/src/annotations/inlineannotations.d.ts +4 -0
  89. package/src/annotations/inlineannotations.js +2 -2
  90. package/src/annotations/narrowsidebar.d.ts +4 -0
  91. package/src/annotations/narrowsidebar.js +2 -2
  92. package/src/annotations/sidebar.d.ts +4 -0
  93. package/src/annotations/sidebar.js +2 -2
  94. package/src/annotations/view/annotationcounterbuttonview.d.ts +4 -0
  95. package/src/annotations/view/annotationcounterbuttonview.js +2 -2
  96. package/src/annotations/view/annotationview.d.ts +4 -0
  97. package/src/annotations/view/annotationview.js +2 -2
  98. package/src/annotations/view/sidebaritemview.d.ts +4 -0
  99. package/src/annotations/view/sidebaritemview.js +2 -2
  100. package/src/annotations/view/sidebarview.d.ts +4 -0
  101. package/src/annotations/view/sidebarview.js +2 -2
  102. package/src/annotations/widesidebar.d.ts +4 -0
  103. package/src/annotations/widesidebar.js +2 -2
  104. package/src/augmentation.d.ts +4 -0
  105. package/src/augmentation.js +1 -1
  106. package/src/comments/addcommentthreadcommand.d.ts +4 -0
  107. package/src/comments/addcommentthreadcommand.js +2 -2
  108. package/src/comments/commentsarchive.d.ts +4 -0
  109. package/src/comments/commentsarchive.js +2 -2
  110. package/src/comments/commentsarchiveui.d.ts +4 -0
  111. package/src/comments/commentsarchiveui.js +2 -2
  112. package/src/comments/commentsediting.d.ts +4 -0
  113. package/src/comments/commentsediting.js +2 -2
  114. package/src/comments/commentsrepository.d.ts +20 -3
  115. package/src/comments/commentsrepository.js +2 -2
  116. package/src/comments/commentsui.d.ts +4 -0
  117. package/src/comments/commentsui.js +2 -2
  118. package/src/comments/integrations/commentsrestrictededitingmode.d.ts +4 -0
  119. package/src/comments/integrations/commentsrestrictededitingmode.js +2 -2
  120. package/src/comments/integrations/importword.d.ts +4 -0
  121. package/src/comments/integrations/importword.js +2 -2
  122. package/src/comments/ui/commenteditor/commenteditor.d.ts +6 -2
  123. package/src/comments/ui/commenteditor/commenteditor.js +2 -2
  124. package/src/comments/ui/commenteditor/commenteditorui.d.ts +4 -0
  125. package/src/comments/ui/commenteditor/commenteditorui.js +2 -2
  126. package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +4 -0
  127. package/src/comments/ui/commenteditor/commenteditoruiview.js +2 -2
  128. package/src/comments/ui/commentthreadcontroller.d.ts +2 -2
  129. package/src/comments/ui/commentthreadcontroller.js +2 -2
  130. package/src/comments/ui/view/basecommentthreadview.d.ts +4 -0
  131. package/src/comments/ui/view/basecommentthreadview.js +2 -2
  132. package/src/comments/ui/view/basecommentview.d.ts +4 -0
  133. package/src/comments/ui/view/basecommentview.js +2 -2
  134. package/src/comments/ui/view/collapsedcommentsview.d.ts +4 -0
  135. package/src/comments/ui/view/collapsedcommentsview.js +2 -2
  136. package/src/comments/ui/view/commentcontentview.d.ts +4 -0
  137. package/src/comments/ui/view/commentcontentview.js +2 -2
  138. package/src/comments/ui/view/commentinputview.d.ts +4 -0
  139. package/src/comments/ui/view/commentinputview.js +2 -2
  140. package/src/comments/ui/view/commentsarchiveview.d.ts +4 -0
  141. package/src/comments/ui/view/commentsarchiveview.js +2 -2
  142. package/src/comments/ui/view/commentslistview.d.ts +4 -0
  143. package/src/comments/ui/view/commentslistview.js +2 -2
  144. package/src/comments/ui/view/commentthreadheaderview.d.ts +4 -0
  145. package/src/comments/ui/view/commentthreadheaderview.js +2 -2
  146. package/src/comments/ui/view/commentthreadinputview.d.ts +4 -0
  147. package/src/comments/ui/view/commentthreadinputview.js +2 -2
  148. package/src/comments/ui/view/commentthreadview.d.ts +4 -0
  149. package/src/comments/ui/view/commentthreadview.js +2 -2
  150. package/src/comments/ui/view/commentview.d.ts +4 -0
  151. package/src/comments/ui/view/commentview.js +2 -2
  152. package/src/comments.d.ts +4 -0
  153. package/src/comments.js +2 -2
  154. package/src/commentsonly.d.ts +4 -0
  155. package/src/commentsonly.js +2 -2
  156. package/src/config.d.ts +4 -0
  157. package/src/config.js +1 -1
  158. package/src/index.d.ts +5 -2
  159. package/src/index.js +1 -1
  160. package/src/utils/common-translations.d.ts +4 -0
  161. package/src/utils/common-translations.js +2 -2
  162. package/src/utils/createmutationobserver.d.ts +2 -1
  163. package/src/utils/createmutationobserver.js +2 -2
@@ -36,7 +36,7 @@ msgstr "Responder…"
36
36
 
37
37
  msgctxt "The placeholder for the reply field when the comment thread is resolved."
38
38
  msgid "Reply to reopen discussion..."
39
- msgstr ""
39
+ msgstr "Responder para volver abrir a discusión..."
40
40
 
41
41
  msgctxt "The placeholder for the new commend field."
42
42
  msgid "Write a comment..."
@@ -44,7 +44,7 @@ msgstr "Escribir un comentario…"
44
44
 
45
45
  msgctxt "The information that comment was made on element and has no context"
46
46
  msgid "Comment was made on an element"
47
- msgstr ""
47
+ msgstr "Comentouse un elemento"
48
48
 
49
49
  msgctxt "The label for the button that enables editing a comment."
50
50
  msgid "Edit"
@@ -52,11 +52,11 @@ msgstr "Editar"
52
52
 
53
53
  msgctxt "The label for the button that resolves a comment thread."
54
54
  msgid "Resolve"
55
- msgstr ""
55
+ msgstr "Solucionar"
56
56
 
57
57
  msgctxt "The label for the button that reopens a resolved comment thread."
58
58
  msgid "Reopen"
59
- msgstr ""
59
+ msgstr "Volver abrir"
60
60
 
61
61
  msgctxt "The label for the button that deletes a comment."
62
62
  msgid "Remove"
@@ -64,7 +64,7 @@ msgstr "Retirar"
64
64
 
65
65
  msgctxt "The label for for the button that adds a reply to a comment thread."
66
66
  msgid "Reply"
67
- msgstr ""
67
+ msgstr "Responder"
68
68
 
69
69
  msgctxt "The confirmation message shown after pressing the delete comment button."
70
70
  msgid "Delete comment?"
@@ -76,7 +76,7 @@ msgstr "Eliminar o fío de comentarios?"
76
76
 
77
77
  msgctxt "A message informing that the comment has been resolved"
78
78
  msgid "Marked as resolved"
79
- msgstr ""
79
+ msgstr "Marcado como solucionado"
80
80
 
81
81
  msgctxt "The tooltip for the comment toolbar button and the button that submits a comment thread."
82
82
  msgid "Comment"
@@ -88,24 +88,24 @@ msgstr "Cambio sen gardar no fío de comentarios."
88
88
 
89
89
  msgctxt "The additional information that comments comes from external source."
90
90
  msgid "EXTERNAL_COMMENT"
91
- msgstr ""
91
+ msgstr "Este comentario procede dunha fonte externa."
92
92
 
93
93
  msgctxt "The additional information that comments comes from imported Word file."
94
94
  msgid "EXTERNAL_IMPORT_WORD_COMMENT"
95
- msgstr ""
95
+ msgstr "Este comentario procede dun ficheiro de Word importado."
96
96
 
97
97
  msgctxt "The additional information that displayed author name comes from an external source."
98
98
  msgid "EXTERNAL_AVATAR"
99
- msgstr ""
99
+ msgstr "O nome do autor amosado procede dunha fonte externa (engadido por %0)"
100
100
 
101
101
  msgctxt "The additional information that displayed author name comes from imported Word file."
102
102
  msgid "EXTERNAL_IMPORT_WORD_AVATAR"
103
- msgstr ""
103
+ msgstr "O nome do autor amosado procede dun documento de Word importado por %0"
104
104
 
105
105
  msgctxt "The label for the comments archive dropdown UI."
106
106
  msgid "COMMENTS_ARCHIVE"
107
- msgstr ""
107
+ msgstr "Arquivo de comentarios"
108
108
 
109
109
  msgctxt "The information that comments archive is empty."
110
110
  msgid "EMPTY_COMMENTS_ARCHIVE"
111
- msgstr ""
111
+ msgstr "Non hai fíos de comentarios arquivados."
@@ -66,7 +66,7 @@ msgstr "הסר"
66
66
 
67
67
  msgctxt "The label for for the button that adds a reply to a comment thread."
68
68
  msgid "Reply"
69
- msgstr ""
69
+ msgstr "תשובה"
70
70
 
71
71
  msgctxt "The confirmation message shown after pressing the delete comment button."
72
72
  msgid "Delete comment?"
@@ -64,7 +64,7 @@ msgstr "Remove"
64
64
 
65
65
  msgctxt "The label for for the button that adds a reply to a comment thread."
66
66
  msgid "Reply"
67
- msgstr ""
67
+ msgstr "जवाब दें"
68
68
 
69
69
  msgctxt "The confirmation message shown after pressing the delete comment button."
70
70
  msgid "Delete comment?"
@@ -65,7 +65,7 @@ msgstr "Ukloni"
65
65
 
66
66
  msgctxt "The label for for the button that adds a reply to a comment thread."
67
67
  msgid "Reply"
68
- msgstr ""
68
+ msgstr "Odgovori..."
69
69
 
70
70
  msgctxt "The confirmation message shown after pressing the delete comment button."
71
71
  msgid "Delete comment?"
@@ -64,7 +64,7 @@ msgstr "Eltávolítás"
64
64
 
65
65
  msgctxt "The label for for the button that adds a reply to a comment thread."
66
66
  msgid "Reply"
67
- msgstr ""
67
+ msgstr "Válaszol"
68
68
 
69
69
  msgctxt "The confirmation message shown after pressing the delete comment button."
70
70
  msgid "Delete comment?"
@@ -63,7 +63,7 @@ msgstr "Hapus"
63
63
 
64
64
  msgctxt "The label for for the button that adds a reply to a comment thread."
65
65
  msgid "Reply"
66
- msgstr ""
66
+ msgstr "Balas"
67
67
 
68
68
  msgctxt "The confirmation message shown after pressing the delete comment button."
69
69
  msgid "Delete comment?"
@@ -63,7 +63,7 @@ msgstr "削除"
63
63
 
64
64
  msgctxt "The label for for the button that adds a reply to a comment thread."
65
65
  msgid "Reply"
66
- msgstr ""
66
+ msgstr "返信します"
67
67
 
68
68
  msgctxt "The confirmation message shown after pressing the delete comment button."
69
69
  msgid "Delete comment?"
@@ -63,7 +63,7 @@ msgstr "삭제"
63
63
 
64
64
  msgctxt "The label for for the button that adds a reply to a comment thread."
65
65
  msgid "Reply"
66
- msgstr ""
66
+ msgstr "회신"
67
67
 
68
68
  msgctxt "The confirmation message shown after pressing the delete comment button."
69
69
  msgid "Delete comment?"
@@ -66,7 +66,7 @@ msgstr "Pašalinti"
66
66
 
67
67
  msgctxt "The label for for the button that adds a reply to a comment thread."
68
68
  msgid "Reply"
69
- msgstr ""
69
+ msgstr "Atsakyti"
70
70
 
71
71
  msgctxt "The confirmation message shown after pressing the delete comment button."
72
72
  msgid "Delete comment?"
@@ -63,7 +63,7 @@ msgstr "Buang"
63
63
 
64
64
  msgctxt "The label for for the button that adds a reply to a comment thread."
65
65
  msgid "Reply"
66
- msgstr ""
66
+ msgstr "Balas"
67
67
 
68
68
  msgctxt "The confirmation message shown after pressing the delete comment button."
69
69
  msgid "Delete comment?"
@@ -64,7 +64,7 @@ msgstr "Verwijderen"
64
64
 
65
65
  msgctxt "The label for for the button that adds a reply to a comment thread."
66
66
  msgid "Reply"
67
- msgstr ""
67
+ msgstr "Reageren"
68
68
 
69
69
  msgctxt "The confirmation message shown after pressing the delete comment button."
70
70
  msgid "Delete comment?"
@@ -64,7 +64,7 @@ msgstr "Fjern"
64
64
 
65
65
  msgctxt "The label for for the button that adds a reply to a comment thread."
66
66
  msgid "Reply"
67
- msgstr ""
67
+ msgstr "Svar"
68
68
 
69
69
  msgctxt "The confirmation message shown after pressing the delete comment button."
70
70
  msgid "Delete comment?"
@@ -66,7 +66,7 @@ msgstr "Usuń"
66
66
 
67
67
  msgctxt "The label for for the button that adds a reply to a comment thread."
68
68
  msgid "Reply"
69
- msgstr ""
69
+ msgstr "Odpowiedz"
70
70
 
71
71
  msgctxt "The confirmation message shown after pressing the delete comment button."
72
72
  msgid "Delete comment?"
@@ -65,7 +65,7 @@ msgstr "Remover"
65
65
 
66
66
  msgctxt "The label for for the button that adds a reply to a comment thread."
67
67
  msgid "Reply"
68
- msgstr ""
68
+ msgstr "Responder"
69
69
 
70
70
  msgctxt "The confirmation message shown after pressing the delete comment button."
71
71
  msgid "Delete comment?"
@@ -65,7 +65,7 @@ msgstr "Șterge"
65
65
 
66
66
  msgctxt "The label for for the button that adds a reply to a comment thread."
67
67
  msgid "Reply"
68
- msgstr ""
68
+ msgstr "Răspunde"
69
69
 
70
70
  msgctxt "The confirmation message shown after pressing the delete comment button."
71
71
  msgid "Delete comment?"
@@ -66,7 +66,7 @@ msgstr "Удалить"
66
66
 
67
67
  msgctxt "The label for for the button that adds a reply to a comment thread."
68
68
  msgid "Reply"
69
- msgstr ""
69
+ msgstr "Ответить"
70
70
 
71
71
  msgctxt "The confirmation message shown after pressing the delete comment button."
72
72
  msgid "Delete comment?"
@@ -64,7 +64,7 @@ msgstr "Largo"
64
64
 
65
65
  msgctxt "The label for for the button that adds a reply to a comment thread."
66
66
  msgid "Reply"
67
- msgstr ""
67
+ msgstr "Përgjigju"
68
68
 
69
69
  msgctxt "The confirmation message shown after pressing the delete comment button."
70
70
  msgid "Delete comment?"
@@ -80,7 +80,7 @@ msgstr ""
80
80
 
81
81
  msgctxt "The tooltip for the comment toolbar button and the button that submits a comment thread."
82
82
  msgid "Comment"
83
- msgstr ""
83
+ msgstr "Komento"
84
84
 
85
85
  msgctxt "The label for an alert shown when closing the editor with an unsaved comment change."
86
86
  msgid "PENDING_ACTION_COMMENT_THREAD"
@@ -65,7 +65,7 @@ msgstr "Одстрани"
65
65
 
66
66
  msgctxt "The label for for the button that adds a reply to a comment thread."
67
67
  msgid "Reply"
68
- msgstr ""
68
+ msgstr "Odgovori"
69
69
 
70
70
  msgctxt "The confirmation message shown after pressing the delete comment button."
71
71
  msgid "Delete comment?"
@@ -64,7 +64,7 @@ msgstr "Ta bort"
64
64
 
65
65
  msgctxt "The label for for the button that adds a reply to a comment thread."
66
66
  msgid "Reply"
67
- msgstr ""
67
+ msgstr "Svara"
68
68
 
69
69
  msgctxt "The confirmation message shown after pressing the delete comment button."
70
70
  msgid "Delete comment?"
@@ -63,7 +63,7 @@ msgstr "ลบ"
63
63
 
64
64
  msgctxt "The label for for the button that adds a reply to a comment thread."
65
65
  msgid "Reply"
66
- msgstr ""
66
+ msgstr "ตอบ"
67
67
 
68
68
  msgctxt "The confirmation message shown after pressing the delete comment button."
69
69
  msgid "Delete comment?"
@@ -64,7 +64,7 @@ msgstr "Sil"
64
64
 
65
65
  msgctxt "The label for for the button that adds a reply to a comment thread."
66
66
  msgid "Reply"
67
- msgstr ""
67
+ msgstr "Yanıtla"
68
68
 
69
69
  msgctxt "The confirmation message shown after pressing the delete comment button."
70
70
  msgid "Delete comment?"
@@ -66,7 +66,7 @@ msgstr "Видалити"
66
66
 
67
67
  msgctxt "The label for for the button that adds a reply to a comment thread."
68
68
  msgid "Reply"
69
- msgstr ""
69
+ msgstr "Відповісти"
70
70
 
71
71
  msgctxt "The confirmation message shown after pressing the delete comment button."
72
72
  msgid "Delete comment?"
@@ -63,7 +63,7 @@ msgstr "Xóa"
63
63
 
64
64
  msgctxt "The label for for the button that adds a reply to a comment thread."
65
65
  msgid "Reply"
66
- msgstr ""
66
+ msgstr "Trả lời"
67
67
 
68
68
  msgctxt "The confirmation message shown after pressing the delete comment button."
69
69
  msgid "Delete comment?"
@@ -63,7 +63,7 @@ msgstr "删除"
63
63
 
64
64
  msgctxt "The label for for the button that adds a reply to a comment thread."
65
65
  msgid "Reply"
66
- msgstr ""
66
+ msgstr "回复"
67
67
 
68
68
  msgctxt "The confirmation message shown after pressing the delete comment button."
69
69
  msgid "Delete comment?"
@@ -63,7 +63,7 @@ msgstr "刪除"
63
63
 
64
64
  msgctxt "The label for for the button that adds a reply to a comment thread."
65
65
  msgid "Reply"
66
- msgstr ""
66
+ msgstr "回覆"
67
67
 
68
68
  msgctxt "The confirmation message shown after pressing the delete comment button."
69
69
  msgid "Delete comment?"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-comments",
3
- "version": "38.2.0-alpha.0",
3
+ "version": "39.0.0",
4
4
  "description": "Collaborative comments feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -33,7 +33,6 @@
33
33
  "discussions"
34
34
  ],
35
35
  "main": "src/index.js",
36
- "type": "module",
37
36
  "files": [
38
37
  "build",
39
38
  "lang",
@@ -44,9 +43,9 @@
44
43
  "CHANGELOG.md"
45
44
  ],
46
45
  "dependencies": {
47
- "ckeditor5": "38.2.0-alpha.0",
48
- "ckeditor5-collaboration": "38.2.0-alpha.0",
49
- "lodash-es": "^4.17.11"
46
+ "ckeditor5": "39.0.0",
47
+ "ckeditor5-collaboration": "39.0.0",
48
+ "lodash-es": "4.17.21"
50
49
  },
51
50
  "engines": {
52
51
  "node": ">=16.0.0",
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module comments/annotations/annotation
3
7
  * @publicApi
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1310=['stopListening','annotation-invalid-target','getClientRects','nodeType','every','target','isArray','add','offsetParent','length','type','_getNormalizedTarget','destroy','function','item','element','targetRect','_id','remove','focusTracker','refreshVisibility','isActive','focusableElements','filter','updateTargetRect','innerView','object','view','_assertCorrectTarget','_target','set','render','_type'];(function(_0x4f3596,_0x131052){const _0x5a4fe9=function(_0x26b3e3){while(--_0x26b3e3){_0x4f3596['push'](_0x4f3596['shift']());}};_0x5a4fe9(++_0x131052);}(_0x1310,0x1b1));const _0x5a4f=function(_0x4f3596,_0x131052){_0x4f3596=_0x4f3596-0x0;let _0x5a4fe9=_0x1310[_0x4f3596];return _0x5a4fe9;};import{CKEditorError as _0x56b2aa,Rect as _0x49cd5c,Collection as _0x18bae5,ObservableMixin as _0x5b956c}from'ckeditor5/src/utils';export default class d extends _0x5b956c(){constructor({view:_0x24fecb,target:_0x209a52,type:_0x1e456f,isVisible:_0x357c6a=!0x0}){super(),this['view']=_0x24fecb,this['view'][_0x5a4f('0xb')]||this['view'][_0x5a4f('0x1b')](),this['_type']=_0x1e456f,this[_0x5a4f('0x19')]=_0x209a52,d[_0x5a4f('0x18')](this[_0x5a4f('0x7')]()),this[_0x5a4f('0x12')]=new _0x18bae5([this['view'][_0x5a4f('0xb')]],{'idProperty':_0x5a4f('0xd')}),this[_0x5a4f('0x12')]['on'](_0x5a4f('0x3'),(_0x17103a,_0x5ecfc6)=>{this[_0x5a4f('0x17')][_0x5a4f('0xf')][_0x5a4f('0x3')](_0x5ecfc6);}),this['focusableElements']['on'](_0x5a4f('0xe'),(_0x29dd2a,_0x3a744b)=>{this['view']['focusTracker'][_0x5a4f('0xe')](_0x3a744b);}),this[_0x5a4f('0x1a')]('isVisible',_0x357c6a);}get[_0x5a4f('0x6')](){return _0x5a4f('0x9')==typeof this[_0x5a4f('0x1c')]?this['_type']():this[_0x5a4f('0x1c')];}get[_0x5a4f('0x15')](){return this[_0x5a4f('0x17')]['mainView'];}get[_0x5a4f('0x1')](){const _0x147602=this['_getNormalizedTarget']();return d[_0x5a4f('0x18')](_0x147602),_0x147602;}get[_0x5a4f('0xc')](){const _0x3bf929=this[_0x5a4f('0x1')];if(null===_0x3bf929)return null;if(_0x3bf929 instanceof _0x49cd5c)return _0x3bf929;const _0x176ec1=_0x3bf929[_0x5a4f('0x13')](_0x44e322=>function(_0x7e5cee){const _0x3acf75=_0x7e5cee[_0x5a4f('0x4')];if(_0x3acf75)return!0x0;const _0x81920d=_0x7e5cee['getClientRects']()['item'](0x0);return!!_0x81920d;}(_0x44e322));return 0x0===_0x176ec1[_0x5a4f('0x5')]?null:new _0x49cd5c(_0x176ec1[0x0][_0x5a4f('0x1f')]()[_0x5a4f('0xa')](0x0));}get[_0x5a4f('0x11')](){return this[_0x5a4f('0x17')][_0x5a4f('0x11')];}set[_0x5a4f('0x11')](_0x2ac95d){this[_0x5a4f('0x17')]['isActive']=_0x2ac95d,this[_0x5a4f('0x17')]['mainView'][_0x5a4f('0x11')]=_0x2ac95d;}[_0x5a4f('0x14')](){this[_0x5a4f('0x17')][_0x5a4f('0xc')]=this['targetRect'];}[_0x5a4f('0x8')](){this[_0x5a4f('0x12')][_0x5a4f('0x1d')](),this[_0x5a4f('0x12')]['clear'](),this[_0x5a4f('0x1d')]();}[_0x5a4f('0x10')](){this['isVisible']=!!this[_0x5a4f('0xc')];}static[_0x5a4f('0x18')](_0x2b0902){if(!(null===_0x2b0902||_0x2b0902 instanceof _0x49cd5c||Array[_0x5a4f('0x2')](_0x2b0902)&&_0x2b0902[_0x5a4f('0x0')](_0x355714=>y(_0x355714))))throw new _0x56b2aa(_0x5a4f('0x1e'),null,{'target':_0x2b0902});}[_0x5a4f('0x7')](){const _0x4d708=_0x5a4f('0x9')==typeof this[_0x5a4f('0x19')]?this['_target']():this[_0x5a4f('0x19')];return y(_0x4d708)?[_0x4d708]:_0x4d708;}}function y(_0x2e04bf){return null!==_0x2e04bf&&_0x5a4f('0x16')==typeof _0x2e04bf&&_0x5a4f('0x20')in _0x2e04bf&&0x1===_0x2e04bf[_0x5a4f('0x20')];}
23
+ const _0x317b=['isVisible','every','mainView','element','_assertCorrectTarget','focusTracker','offsetParent','getClientRects','targetRect','focusableElements','view','remove','item','isArray','_type','length','render','innerView','_getNormalizedTarget','type','isActive','stopListening','_id','destroy','_target','annotation-invalid-target','clear','function','updateTargetRect','filter','refreshVisibility','target'];(function(_0x54fee5,_0x317bd7){const _0x518130=function(_0x51639c){while(--_0x51639c){_0x54fee5['push'](_0x54fee5['shift']());}};_0x518130(++_0x317bd7);}(_0x317b,0x1c9));const _0x5181=function(_0x54fee5,_0x317bd7){_0x54fee5=_0x54fee5-0x0;let _0x518130=_0x317b[_0x54fee5];return _0x518130;};import{CKEditorError as _0x5e5a3c,Rect as _0x3f9836,Collection as _0x41dd5c,ObservableMixin as _0x5958a7}from'ckeditor5/src/utils';export default class d extends _0x5958a7(){constructor({view:_0x3170ec,target:_0x119036,type:_0x34812b,isVisible:_0x2356ba=!0x0}){super(),this['view']=_0x3170ec,this[_0x5181('0x1')][_0x5181('0x1a')]||this[_0x5181('0x1')][_0x5181('0x7')](),this['_type']=_0x34812b,this[_0x5181('0xf')]=_0x119036,d[_0x5181('0x1b')](this[_0x5181('0x9')]()),this[_0x5181('0x0')]=new _0x41dd5c([this['view'][_0x5181('0x1a')]],{'idProperty':_0x5181('0xd')}),this[_0x5181('0x0')]['on']('add',(_0xf4383b,_0x329c2f)=>{this[_0x5181('0x1')][_0x5181('0x1c')]['add'](_0x329c2f);}),this[_0x5181('0x0')]['on'](_0x5181('0x2'),(_0x5a1799,_0x4539fc)=>{this['view'][_0x5181('0x1c')]['remove'](_0x4539fc);}),this['set']('isVisible',_0x2356ba);}get[_0x5181('0xa')](){return _0x5181('0x12')==typeof this[_0x5181('0x5')]?this[_0x5181('0x5')]():this[_0x5181('0x5')];}get[_0x5181('0x8')](){return this[_0x5181('0x1')][_0x5181('0x19')];}get[_0x5181('0x16')](){const _0x1b3a21=this[_0x5181('0x9')]();return d['_assertCorrectTarget'](_0x1b3a21),_0x1b3a21;}get[_0x5181('0x1f')](){const _0x59e800=this[_0x5181('0x16')];if(null===_0x59e800)return null;if(_0x59e800 instanceof _0x3f9836)return _0x59e800;const _0x27215a=_0x59e800[_0x5181('0x14')](_0x477085=>function(_0x1dbbbb){const _0x5997c1=_0x1dbbbb[_0x5181('0x1d')];if(_0x5997c1)return!0x0;const _0x1a7322=_0x1dbbbb[_0x5181('0x1e')]()[_0x5181('0x3')](0x0);return!!_0x1a7322;}(_0x477085));return 0x0===_0x27215a[_0x5181('0x6')]?null:new _0x3f9836(_0x27215a[0x0]['getClientRects']()[_0x5181('0x3')](0x0));}get[_0x5181('0xb')](){return this[_0x5181('0x1')]['isActive'];}set['isActive'](_0x5c07eb){this[_0x5181('0x1')]['isActive']=_0x5c07eb,this[_0x5181('0x1')][_0x5181('0x19')]['isActive']=_0x5c07eb;}[_0x5181('0x13')](){this[_0x5181('0x1')][_0x5181('0x1f')]=this[_0x5181('0x1f')];}[_0x5181('0xe')](){this[_0x5181('0x0')][_0x5181('0xc')](),this['focusableElements'][_0x5181('0x11')](),this[_0x5181('0xc')]();}[_0x5181('0x15')](){this[_0x5181('0x17')]=!!this[_0x5181('0x1f')];}static[_0x5181('0x1b')](_0x22d073){if(!(null===_0x22d073||_0x22d073 instanceof _0x3f9836||Array[_0x5181('0x4')](_0x22d073)&&_0x22d073[_0x5181('0x18')](_0xe413c4=>y(_0xe413c4))))throw new _0x5e5a3c(_0x5181('0x10'),null,{'target':_0x22d073});}['_getNormalizedTarget'](){const _0x1c5120=_0x5181('0x12')==typeof this[_0x5181('0xf')]?this[_0x5181('0xf')]():this[_0x5181('0xf')];return y(_0x1c5120)?[_0x1c5120]:_0x1c5120;}}function y(_0x322a87){return null!==_0x322a87&&'object'==typeof _0x322a87&&'nodeType'in _0x322a87&&0x1===_0x322a87['nodeType'];}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module comments/annotations/annotationcollection
3
7
  * @publicApi
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1469=['focus','getByView','_sort','focusTracker','delete','innerView','change:isFocused','set','_getOrderInContent','_focusTracker','view','_viewToAnnotation','annotationcollection-not-existing-item','sort','annotationcollection-duplicated-item','targetRect','getByInnerView','isFocused','add','remove','listenTo','blur','destroy','length','clear','get','focusableElements','top','updateTargetRect','from','stopListening','_innerViewToAnnotation','fire','refreshPositioning','has'];(function(_0x39a9d9,_0x14699f){const _0x50b333=function(_0x273be8){while(--_0x273be8){_0x39a9d9['push'](_0x39a9d9['shift']());}};_0x50b333(++_0x14699f);}(_0x1469,0x156));const _0x50b3=function(_0x39a9d9,_0x14699f){_0x39a9d9=_0x39a9d9-0x0;let _0x50b333=_0x1469[_0x39a9d9];return _0x50b333;};import{CKEditorError as _0x41abc5,Collection as _0x4405ac,FocusTracker as _0x130fd9}from'ckeditor5/src/utils';export default class x extends _0x4405ac{constructor(_0x5360b8=[]){super(),this[_0x50b3('0x4')]=new Map(),this['_viewToAnnotation']=new Map(),this[_0x50b3('0x11')]=new _0x130fd9(),this['_focusTracker']['on'](_0x50b3('0xe'),(_0x22a4a3,_0x287b93,_0x3aa8a0)=>{_0x3aa8a0||this[_0x50b3('0x5')](_0x50b3('0x1d'));});for(const _0x407479 of _0x5360b8)this['add'](_0x407479);}get[_0x50b3('0x19')](){return this[_0x50b3('0x11')][_0x50b3('0x19')];}[_0x50b3('0x1a')](_0x5a294b){if(this[_0x50b3('0x7')](_0x5a294b))throw new _0x41abc5(_0x50b3('0x16'),null);this[_0x50b3('0x4')][_0x50b3('0xf')](_0x5a294b['innerView'],_0x5a294b),this[_0x50b3('0x13')][_0x50b3('0xf')](_0x5a294b['view'],_0x5a294b);for(const _0x7fbf15 of _0x5a294b[_0x50b3('0x22')])this[_0x50b3('0x11')][_0x50b3('0x1a')](_0x7fbf15);this[_0x50b3('0x1c')](_0x5a294b[_0x50b3('0x22')],_0x50b3('0x1a'),(_0x15edda,_0x416e1e)=>{this[_0x50b3('0x11')]['add'](_0x416e1e);}),this[_0x50b3('0x1c')](_0x5a294b['focusableElements'],_0x50b3('0x1b'),(_0x7d2fba,_0x314e27)=>{this[_0x50b3('0x11')][_0x50b3('0x1b')](_0x314e27);}),this[_0x50b3('0x1c')](_0x5a294b[_0x50b3('0x12')][_0x50b3('0xb')],_0x50b3('0xe'),(_0x18493e,_0x45ff75,_0x36d407)=>{_0x36d407&&this[_0x50b3('0x5')](_0x50b3('0x8'),_0x5a294b);}),_0x5a294b[_0x50b3('0x1')]();const _0x20348d=this[_0x50b3('0x10')](_0x5a294b[_0x50b3('0x12')]['targetRect']);return super[_0x50b3('0x1a')](_0x5a294b,_0x20348d);}[_0x50b3('0x1b')](_0x5c0765){if(!this[_0x50b3('0x7')](_0x5c0765))throw new _0x41abc5(_0x50b3('0x14'),null);this[_0x50b3('0x3')](_0x5c0765[_0x50b3('0x12')][_0x50b3('0xb')]),this['stopListening'](_0x5c0765[_0x50b3('0x22')]);for(const _0x5cb36a of _0x5c0765[_0x50b3('0x22')])this['_focusTracker'][_0x50b3('0x1b')](_0x5cb36a);return this[_0x50b3('0x13')][_0x50b3('0xc')](_0x5c0765[_0x50b3('0x12')]),this[_0x50b3('0x4')]['delete'](_0x5c0765[_0x50b3('0xd')]),super[_0x50b3('0x1b')](_0x5c0765);}[_0x50b3('0x18')](_0x4617ac){return this[_0x50b3('0x4')][_0x50b3('0x21')](_0x4617ac);}[_0x50b3('0x9')](_0x318810){return this[_0x50b3('0x13')][_0x50b3('0x21')](_0x318810);}[_0x50b3('0x1e')](){super[_0x50b3('0x20')](),this[_0x50b3('0x3')](),this[_0x50b3('0x4')][_0x50b3('0x20')](),this[_0x50b3('0x13')][_0x50b3('0x20')](),this[_0x50b3('0x11')][_0x50b3('0x1e')]();}[_0x50b3('0x6')](){for(const _0x289121 of this)_0x289121[_0x50b3('0x1')]();this[_0x50b3('0xa')]();}[_0x50b3('0xa')](){const _0x3fd54f=Array[_0x50b3('0x2')](this)[_0x50b3('0x15')]((_0x478683,_0x5de0aa)=>v(_0x478683[_0x50b3('0x12')][_0x50b3('0x17')],_0x5de0aa[_0x50b3('0x12')][_0x50b3('0x17')]));for(let _0x140814=_0x3fd54f[_0x50b3('0x1f')]-0x1;_0x140814>0x0;_0x140814--){const _0x59022b=_0x3fd54f[_0x140814];_0x140814!==this['getIndex'](_0x59022b)&&(this[_0x50b3('0x1b')](_0x59022b),this[_0x50b3('0x1a')](_0x59022b));}}[_0x50b3('0x10')](_0x10cafe){let _0xc74ffe=0x0;if(!_0x10cafe)return this[_0x50b3('0x1f')];for(const _0x137d38 of this){const _0x8f6bee=_0x137d38[_0x50b3('0x12')][_0x50b3('0x17')];if(_0x8f6bee){if(v(_0x10cafe,_0x8f6bee)<0x0)return _0xc74ffe;_0xc74ffe++;}}return _0xc74ffe;}}export function bindAnnotationCollections({source:_0x3a724f,target:_0x28480d,filter:_0x32a33b}){for(const _0x3b25f2 of _0x3a724f)_0x32a33b(_0x3b25f2)&&_0x28480d[_0x50b3('0x1a')](_0x3b25f2);_0x28480d[_0x50b3('0x1c')](_0x3a724f,_0x50b3('0x1a'),(_0x23fdbe,_0x48cd92)=>{_0x32a33b(_0x48cd92)&&_0x28480d['add'](_0x48cd92);}),_0x28480d[_0x50b3('0x1c')](_0x3a724f,_0x50b3('0x1b'),(_0xfa7d8d,_0x4e2d8a)=>{_0x28480d[_0x50b3('0x7')](_0x4e2d8a)&&_0x28480d['remove'](_0x4e2d8a);});}function v(_0x56c7f9,_0x4a1fd2){if(null===_0x56c7f9&&null===_0x4a1fd2)return 0x0;if(null===_0x56c7f9)return-0x1;if(null===_0x4a1fd2)return 0x1;const _0x574ba6=_0x56c7f9[_0x50b3('0x0')]-_0x4a1fd2[_0x50b3('0x0')];return 0x0==_0x574ba6?_0x56c7f9['left']-_0x4a1fd2['left']:_0x574ba6;}
23
+ const _0x5b23=['set','remove','getByView','annotationcollection-duplicated-item','stopListening','from','view','fire','targetRect','focus','blur','_sort','_viewToAnnotation','updateTargetRect','_innerViewToAnnotation','add','get','isFocused','innerView','getByInnerView','focusTracker','destroy','left','sort','listenTo','focusableElements','refreshPositioning','change:isFocused','_focusTracker','clear','annotationcollection-not-existing-item','length','delete','has','top','_getOrderInContent'];(function(_0x3642a9,_0x5b23f){const _0x58a8c7=function(_0x43496e){while(--_0x43496e){_0x3642a9['push'](_0x3642a9['shift']());}};_0x58a8c7(++_0x5b23f);}(_0x5b23,0x148));const _0x58a8=function(_0x3642a9,_0x5b23f){_0x3642a9=_0x3642a9-0x0;let _0x58a8c7=_0x5b23[_0x3642a9];return _0x58a8c7;};import{CKEditorError as _0x10c59a,Collection as _0x46c175,FocusTracker as _0xbe9477}from'ckeditor5/src/utils';export default class x extends _0x46c175{constructor(_0x488207=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this[_0x58a8('0x18')]=new _0xbe9477(),this[_0x58a8('0x18')]['on']('change:isFocused',(_0x419948,_0x3e6836,_0xfdf3d0)=>{_0xfdf3d0||this[_0x58a8('0x3')](_0x58a8('0x6'));});for(const _0x110af2 of _0x488207)this[_0x58a8('0xb')](_0x110af2);}get['isFocused'](){return this[_0x58a8('0x18')][_0x58a8('0xd')];}['add'](_0x5e5f79){if(this[_0x58a8('0x1d')](_0x5e5f79))throw new _0x10c59a(_0x58a8('0x23'),null);this['_innerViewToAnnotation']['set'](_0x5e5f79[_0x58a8('0xe')],_0x5e5f79),this[_0x58a8('0x8')][_0x58a8('0x20')](_0x5e5f79[_0x58a8('0x2')],_0x5e5f79);for(const _0x2c4bae of _0x5e5f79['focusableElements'])this['_focusTracker'][_0x58a8('0xb')](_0x2c4bae);this[_0x58a8('0x14')](_0x5e5f79[_0x58a8('0x15')],_0x58a8('0xb'),(_0x578a43,_0x3e9d9d)=>{this[_0x58a8('0x18')][_0x58a8('0xb')](_0x3e9d9d);}),this[_0x58a8('0x14')](_0x5e5f79[_0x58a8('0x15')],_0x58a8('0x21'),(_0x5ea45e,_0x380f08)=>{this['_focusTracker'][_0x58a8('0x21')](_0x380f08);}),this[_0x58a8('0x14')](_0x5e5f79[_0x58a8('0x2')][_0x58a8('0x10')],_0x58a8('0x17'),(_0x2f0851,_0x4f6c24,_0x51fee5)=>{_0x51fee5&&this['fire'](_0x58a8('0x5'),_0x5e5f79);}),_0x5e5f79['updateTargetRect']();const _0xe1477a=this['_getOrderInContent'](_0x5e5f79[_0x58a8('0x2')][_0x58a8('0x4')]);return super['add'](_0x5e5f79,_0xe1477a);}['remove'](_0x18a4d6){if(!this['has'](_0x18a4d6))throw new _0x10c59a(_0x58a8('0x1a'),null);this[_0x58a8('0x0')](_0x18a4d6['view'][_0x58a8('0x10')]),this['stopListening'](_0x18a4d6[_0x58a8('0x15')]);for(const _0x15445b of _0x18a4d6[_0x58a8('0x15')])this['_focusTracker'][_0x58a8('0x21')](_0x15445b);return this['_viewToAnnotation'][_0x58a8('0x1c')](_0x18a4d6[_0x58a8('0x2')]),this[_0x58a8('0xa')][_0x58a8('0x1c')](_0x18a4d6[_0x58a8('0xe')]),super[_0x58a8('0x21')](_0x18a4d6);}[_0x58a8('0xf')](_0x1ca694){return this[_0x58a8('0xa')][_0x58a8('0xc')](_0x1ca694);}[_0x58a8('0x22')](_0x338039){return this[_0x58a8('0x8')]['get'](_0x338039);}[_0x58a8('0x11')](){super[_0x58a8('0x19')](),this[_0x58a8('0x0')](),this['_innerViewToAnnotation'][_0x58a8('0x19')](),this[_0x58a8('0x8')][_0x58a8('0x19')](),this['_focusTracker'][_0x58a8('0x11')]();}[_0x58a8('0x16')](){for(const _0x51151b of this)_0x51151b[_0x58a8('0x9')]();this[_0x58a8('0x7')]();}[_0x58a8('0x7')](){const _0x3e9438=Array[_0x58a8('0x1')](this)[_0x58a8('0x13')]((_0x30e1cd,_0x19b6b7)=>v(_0x30e1cd[_0x58a8('0x2')][_0x58a8('0x4')],_0x19b6b7['view']['targetRect']));for(let _0x5a8e8a=_0x3e9438[_0x58a8('0x1b')]-0x1;_0x5a8e8a>0x0;_0x5a8e8a--){const _0x551d69=_0x3e9438[_0x5a8e8a];_0x5a8e8a!==this['getIndex'](_0x551d69)&&(this['remove'](_0x551d69),this[_0x58a8('0xb')](_0x551d69));}}[_0x58a8('0x1f')](_0x5d8d5e){let _0x2e3b32=0x0;if(!_0x5d8d5e)return this['length'];for(const _0x38b9f2 of this){const _0x371e2f=_0x38b9f2['view'][_0x58a8('0x4')];if(_0x371e2f){if(v(_0x5d8d5e,_0x371e2f)<0x0)return _0x2e3b32;_0x2e3b32++;}}return _0x2e3b32;}}export function bindAnnotationCollections({source:_0x2643f1,target:_0x5964db,filter:_0x4c3091}){for(const _0x4314ca of _0x2643f1)_0x4c3091(_0x4314ca)&&_0x5964db[_0x58a8('0xb')](_0x4314ca);_0x5964db['listenTo'](_0x2643f1,_0x58a8('0xb'),(_0x110954,_0x2793ab)=>{_0x4c3091(_0x2793ab)&&_0x5964db[_0x58a8('0xb')](_0x2793ab);}),_0x5964db['listenTo'](_0x2643f1,_0x58a8('0x21'),(_0x358075,_0x44e3ce)=>{_0x5964db[_0x58a8('0x1d')](_0x44e3ce)&&_0x5964db['remove'](_0x44e3ce);});}function v(_0x5b10b8,_0x453262){if(null===_0x5b10b8&&null===_0x453262)return 0x0;if(null===_0x5b10b8)return-0x1;if(null===_0x453262)return 0x1;const _0xb22f82=_0x5b10b8['top']-_0x453262[_0x58a8('0x1e')];return 0x0==_0xb22f82?_0x5b10b8[_0x58a8('0x12')]-_0x453262[_0x58a8('0x12')]:_0xb22f82;}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module comments/annotations/annotations
3
7
  * @publicApi
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x54b3=['_activateAnnotation','_visibleAnnotations','listenTo','activate','source','isVisible','set','view','fire','_removeActiveAnnotation','change:isVisible','_bindAnnotationsToVisibleAnnotations','element','has','activeAnnotations','remove','_deactivateAllAnnotations','focusTracker','createAnnotationView','_addActiveAnnotation','createAnnotation','destroy','getByInnerView','collection','add','refreshPositioning','refreshVisibility','pluginName'];(function(_0x32f68c,_0x54b31e){const _0x9eed36=function(_0x4c6eb2){while(--_0x4c6eb2){_0x32f68c['push'](_0x32f68c['shift']());}};_0x9eed36(++_0x54b31e);}(_0x54b3,0x13a));const _0x9eed=function(_0x32f68c,_0x54b31e){_0x32f68c=_0x32f68c-0x0;let _0x9eed36=_0x54b3[_0x32f68c];return _0x9eed36;};import{ContextPlugin as _0x940f92}from'ckeditor5/src/core';import _0x444793 from'./annotation';import _0x206587 from'./annotationcollection';import _0x323588 from'./view/annotationview';export default class b extends _0x940f92{static get[_0x9eed('0x15')](){return'Annotations';}constructor(_0x5ee7ab){super(_0x5ee7ab),this[_0x9eed('0x11')]=new _0x206587(),this[_0x9eed('0x17')]=new _0x206587(),this[_0x9eed('0x0')](_0x9eed('0x8'),new Set()),this[_0x9eed('0x5')]();}['add'](_0x386c0d){this[_0x9eed('0x11')]['add'](_0x386c0d);}[_0x9eed('0x9')](_0xb7cff1){this['collection'][_0x9eed('0x9')](_0xb7cff1),_0xb7cff1[_0x9eed('0xf')]();}[_0x9eed('0x14')](){for(const _0x28671a of this[_0x9eed('0x11')])_0x28671a[_0x9eed('0x14')]();}['refreshPositioning'](){this[_0x9eed('0x17')][_0x9eed('0x13')]();}[_0x9eed('0x10')](_0x21b122){return this[_0x9eed('0x11')][_0x9eed('0x10')](_0x21b122);}['deactivateAll'](){this[_0x9eed('0x2')](_0x9eed('0xa'));}[_0x9eed('0xf')](){for(const _0x5360ec of this[_0x9eed('0x11')])_0x5360ec[_0x9eed('0xf')]();this[_0x9eed('0x17')][_0x9eed('0xf')](),this[_0x9eed('0x11')]['destroy'](),super[_0x9eed('0xf')]();}[_0x9eed('0x19')](_0x5cb1f7){this[_0x9eed('0x2')](_0x9eed('0x16'),_0x5cb1f7);}[_0x9eed('0xe')](_0x52b586){return new _0x444793(_0x52b586);}[_0x9eed('0xc')](_0x496a24,_0x50ea2d){return new _0x323588(_0x496a24,_0x50ea2d);}[_0x9eed('0xd')](_0x13735d){const _0x4cb698=new Set(this[_0x9eed('0x8')]);_0x4cb698['add'](_0x13735d),this[_0x9eed('0x8')]=_0x4cb698;}[_0x9eed('0x3')](_0x5cf153){const _0x21bd5a=new Set(this['activeAnnotations']);_0x21bd5a['delete'](_0x5cf153),this['activeAnnotations']=_0x21bd5a;}['_bindAnnotationsToVisibleAnnotations'](){const _0xe86117=this['collection'],_0x157236=this[_0x9eed('0x17')];function _0x220f31(_0x38823b){const _0x21ac48=_0x38823b[_0x9eed('0x1a')];_0x21ac48[_0x9eed('0x1b')]&&!_0x157236[_0x9eed('0x7')](_0x21ac48)?_0x157236[_0x9eed('0x12')](_0x21ac48):!_0x21ac48[_0x9eed('0x1b')]&&_0x157236[_0x9eed('0x7')](_0x21ac48)&&_0x157236['remove'](_0x21ac48),_0x21ac48[_0x9eed('0x1')][_0x9eed('0xb')][_0x9eed('0x9')](_0x21ac48[_0x9eed('0x1')][_0x9eed('0x6')]),_0x21ac48[_0x9eed('0x1')]['focusTracker']['add'](_0x21ac48[_0x9eed('0x1')]['element']);}this[_0x9eed('0x18')](_0xe86117,'add',(_0x3c77ea,_0x111a2e)=>{_0x111a2e[_0x9eed('0x1b')]&&_0x157236[_0x9eed('0x12')](_0x111a2e),this[_0x9eed('0x18')](_0x111a2e,_0x9eed('0x4'),_0x220f31);}),this[_0x9eed('0x18')](_0xe86117,_0x9eed('0x9'),(_0xcb1069,_0x1cd157)=>{_0x157236['has'](_0x1cd157)&&_0x157236[_0x9eed('0x9')](_0x1cd157),this['stopListening'](_0x1cd157,_0x9eed('0x4'),_0x220f31);});}}
23
+ const _0x1c8a=['remove','_deactivateAllAnnotations','pluginName','add','isVisible','fire','deactivateAll','listenTo','source','_bindAnnotationsToVisibleAnnotations','collection','destroy','change:isVisible','getByInnerView','view','_removeActiveAnnotation','element','_visibleAnnotations','refreshVisibility','_addActiveAnnotation','createAnnotationView','focusTracker','has','activeAnnotations','refreshPositioning','stopListening','Annotations'];(function(_0x301f86,_0x1c8aa0){const _0x4365b3=function(_0x53cb69){while(--_0x53cb69){_0x301f86['push'](_0x301f86['shift']());}};_0x4365b3(++_0x1c8aa0);}(_0x1c8a,0x12e));const _0x4365=function(_0x301f86,_0x1c8aa0){_0x301f86=_0x301f86-0x0;let _0x4365b3=_0x1c8a[_0x301f86];return _0x4365b3;};import{ContextPlugin as _0x44deee}from'ckeditor5/src/core';import _0x31dcba from'./annotation';import _0x3fff55 from'./annotationcollection';import _0x4ba6af from'./view/annotationview';export default class b extends _0x44deee{static get[_0x4365('0x18')](){return _0x4365('0x15');}constructor(_0x29dc26){super(_0x29dc26),this[_0x4365('0x5')]=new _0x3fff55(),this[_0x4365('0xc')]=new _0x3fff55(),this['set']('activeAnnotations',new Set()),this[_0x4365('0x4')]();}[_0x4365('0x19')](_0x5d6db0){this['collection'][_0x4365('0x19')](_0x5d6db0);}[_0x4365('0x16')](_0x335648){this[_0x4365('0x5')]['remove'](_0x335648),_0x335648['destroy']();}['refreshVisibility'](){for(const _0x20dfc1 of this['collection'])_0x20dfc1[_0x4365('0xd')]();}[_0x4365('0x13')](){this[_0x4365('0xc')][_0x4365('0x13')]();}[_0x4365('0x8')](_0x4eac8a){return this[_0x4365('0x5')]['getByInnerView'](_0x4eac8a);}[_0x4365('0x1')](){this['fire'](_0x4365('0x17'));}['destroy'](){for(const _0x298df4 of this[_0x4365('0x5')])_0x298df4[_0x4365('0x6')]();this[_0x4365('0xc')][_0x4365('0x6')](),this[_0x4365('0x5')]['destroy'](),super['destroy']();}['activate'](_0x295c30){this[_0x4365('0x0')]('_activateAnnotation',_0x295c30);}['createAnnotation'](_0x1b66ec){return new _0x31dcba(_0x1b66ec);}[_0x4365('0xf')](_0x412400,_0x2d3f1a){return new _0x4ba6af(_0x412400,_0x2d3f1a);}[_0x4365('0xe')](_0x496001){const _0x51f5a6=new Set(this[_0x4365('0x12')]);_0x51f5a6[_0x4365('0x19')](_0x496001),this[_0x4365('0x12')]=_0x51f5a6;}[_0x4365('0xa')](_0x48c1e7){const _0x4eeaf6=new Set(this['activeAnnotations']);_0x4eeaf6['delete'](_0x48c1e7),this[_0x4365('0x12')]=_0x4eeaf6;}[_0x4365('0x4')](){const _0x31e7f4=this['collection'],_0x27d796=this[_0x4365('0xc')];function _0x3dd518(_0xfb746d){const _0x4c7d08=_0xfb746d[_0x4365('0x3')];_0x4c7d08[_0x4365('0x1a')]&&!_0x27d796[_0x4365('0x11')](_0x4c7d08)?_0x27d796['add'](_0x4c7d08):!_0x4c7d08[_0x4365('0x1a')]&&_0x27d796[_0x4365('0x11')](_0x4c7d08)&&_0x27d796[_0x4365('0x16')](_0x4c7d08),_0x4c7d08[_0x4365('0x9')][_0x4365('0x10')]['remove'](_0x4c7d08[_0x4365('0x9')][_0x4365('0xb')]),_0x4c7d08[_0x4365('0x9')]['focusTracker'][_0x4365('0x19')](_0x4c7d08[_0x4365('0x9')]['element']);}this[_0x4365('0x2')](_0x31e7f4,_0x4365('0x19'),(_0x13a5e3,_0x52a530)=>{_0x52a530['isVisible']&&_0x27d796[_0x4365('0x19')](_0x52a530),this['listenTo'](_0x52a530,_0x4365('0x7'),_0x3dd518);}),this[_0x4365('0x2')](_0x31e7f4,_0x4365('0x16'),(_0xfccdc2,_0x386f9e)=>{_0x27d796[_0x4365('0x11')](_0x386f9e)&&_0x27d796['remove'](_0x386f9e),this[_0x4365('0x14')](_0x386f9e,_0x4365('0x7'),_0x3dd518);});}}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module comments/annotations/annotationsuis
3
7
  * @publicApi
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4199=['context','refilterAnnotations','pluginName','function','_activateAnnotation','destroy','annotationsuis-missing-ui','_uis','AnnotationsUIs','filter','register','annotationsuis-register-invalid-interface','deactivateAll','type','activate','setActiveAnnotation','plugins','_setSelectedAnnotations','annotationsuis-register-already-registered','activeUIs','get','deactivate','_addActiveAnnotation','switchTo','init','collection','_assertAnnotationDoesNotBelongToMultipleUIs','set','delete','_removeActiveAnnotation','_visibleAnnotations','has','attach','listenTo','remove','requires','find','from','push','isActive','size','_uisData'];(function(_0x43ab4c,_0x419990){const _0xa9614f=function(_0x1ca3ca){while(--_0x1ca3ca){_0x43ab4c['push'](_0x43ab4c['shift']());}};_0xa9614f(++_0x419990);}(_0x4199,0x180));const _0xa961=function(_0x43ab4c,_0x419990){_0x43ab4c=_0x43ab4c-0x0;let _0xa9614f=_0x4199[_0x43ab4c];return _0xa9614f;};import{ContextPlugin as _0x5a582e}from'ckeditor5/src/core';import{CKEditorError as _0x202ed0}from'ckeditor5/src/utils';import _0x1e51e4,{bindAnnotationCollections as _0xfc1eed}from'./annotationcollection';import _0x53a941 from'./annotations';export default class M extends _0x5a582e{static get[_0xa961('0x1d')](){return[_0x53a941];}static get[_0xa961('0x26')](){return _0xa961('0x2');}constructor(_0x159716){super(_0x159716),this[_0xa961('0xd')]=new Set(),this[_0xa961('0x1')]=new Map(),this['_uisData']=new Map();}[_0xa961('0x12')](){const _0x8d1504=this['context'][_0xa961('0xa')][_0xa961('0xe')](_0x53a941);this[_0xa961('0x1b')](_0x8d1504,_0xa961('0x28'),(_0x7128bb,_0x14c947)=>{for(const _0xc6088b of this[_0xa961('0xd')]){const _0x1f8fff=this[_0xa961('0x1')][_0xa961('0xe')](_0xc6088b);(0x0,this['_uisData'][_0xa961('0xe')](_0xc6088b)[_0xa961('0x3')])(_0x14c947)&&_0x1f8fff[_0xa961('0x9')](_0x14c947);}}),this[_0xa961('0x1b')](_0x8d1504,'_deactivateAllAnnotations',()=>{for(const _0x19749b of this[_0xa961('0xd')]){this[_0xa961('0x1')][_0xa961('0xe')](_0x19749b)[_0xa961('0x9')](null);}}),this[_0xa961('0x1b')](_0x8d1504[_0xa961('0x18')],'add',(_0x13f8ad,_0x111516)=>{this[_0xa961('0x14')](_0x111516);});}['hasActive'](){return this['activeUIs'][_0xa961('0x22')]>0x0;}[_0xa961('0x21')](_0x1d4713){return this[_0xa961('0xd')]['has'](_0x1d4713);}[_0xa961('0x8')](_0x11269b,_0x25e0b4=()=>!0x0){const _0x29d10a=this[_0xa961('0x24')]['plugins'][_0xa961('0xe')](_0x53a941);if(!this['_uis'][_0xa961('0x19')](_0x11269b))throw new _0x202ed0(_0xa961('0x0'),this,{'uiName':_0x11269b});this[_0xa961('0x21')](_0x11269b)&&this[_0xa961('0xf')](_0x11269b),this[_0xa961('0xd')]['add'](_0x11269b);const _0x297efe=new _0x1e51e4(),_0x45d887=_0x29d10a[_0xa961('0x18')];_0xfc1eed({'source':_0x45d887,'target':_0x297efe,'filter':_0x25e0b4}),this['_uisData']['set'](_0x11269b,{'collection':_0x297efe,'filter':_0x25e0b4});const _0x2690da=this[_0xa961('0x1')]['get'](_0x11269b);_0x2690da['attach'](_0x297efe),this[_0xa961('0x1b')](_0x2690da,'change:activeAnnotation',(_0x1061a2,_0x5a9158,_0x3779eb,_0x4080ae)=>{_0x4080ae&&_0x29d10a[_0xa961('0x17')](_0x4080ae),_0x3779eb&&_0x29d10a[_0xa961('0x10')](_0x3779eb);});}['deactivate'](_0x30bf13){if(this['activeUIs'][_0xa961('0x16')](_0x30bf13),!this['_uis']['has'](_0x30bf13))throw new _0x202ed0('annotationsuis-missing-ui',this,{'uiName':_0x30bf13});const _0x890175=this['_uis'][_0xa961('0xe')](_0x30bf13);_0x890175['detach'](),this['stopListening'](_0x890175),this[_0xa961('0x23')][_0xa961('0xe')](_0x30bf13)[_0xa961('0x13')][_0xa961('0x29')](),this['_uisData'][_0xa961('0x16')](_0x30bf13);}[_0xa961('0x11')](_0x229f24){if(!this['_uis'][_0xa961('0x19')](_0x229f24))throw new _0x202ed0(_0xa961('0x0'),this,{'uiName':_0x229f24});const _0x294113=this[_0xa961('0x24')]['plugins'][_0xa961('0xe')](_0x53a941),_0xef39a6=Array[_0xa961('0x1f')](_0x294113['activeAnnotations'])[0x0]||null;this[_0xa961('0x6')](),this[_0xa961('0x8')](_0x229f24);const _0x5dfd76=this[_0xa961('0x1')]['get'](_0x229f24);_0x5dfd76[_0xa961('0x9')](_0xef39a6),_0x5dfd76['_setSelectedAnnotations']&&_0xef39a6&&_0x5dfd76[_0xa961('0xb')]([_0xef39a6]);}['deactivateAll'](){for(const _0x2694d1 of this[_0xa961('0xd')])this[_0xa961('0xf')](_0x2694d1);}[_0xa961('0x4')](_0x8a0c0b,_0x3935bf){if(this[_0xa961('0x1')][_0xa961('0x19')](_0x8a0c0b))throw new _0x202ed0(_0xa961('0xc'));if(_0xa961('0x27')!=typeof _0x3935bf[_0xa961('0x1a')]||_0xa961('0x27')!=typeof _0x3935bf['detach']||'function'!=typeof _0x3935bf['setActiveAnnotation'])throw new _0x202ed0(_0xa961('0x5'),null);this[_0xa961('0x1')][_0xa961('0x15')](_0x8a0c0b,_0x3935bf);}[_0xa961('0x25')](){const _0x21aa71=this[_0xa961('0x24')]['plugins']['get'](_0x53a941)[_0xa961('0x13')],_0x164801=new Map(),_0x5b9876=Array['from'](this[_0xa961('0xd')]);for(const _0x4f9ce2 of this[_0xa961('0xd')]){const _0x45aed=this[_0xa961('0x23')][_0xa961('0xe')](_0x4f9ce2)[_0xa961('0x13')];for(const _0x260037 of _0x45aed)_0x164801[_0xa961('0x15')](_0x260037,_0x4f9ce2);}for(const _0x3abe41 of _0x21aa71){const _0x4ee59c=_0x164801[_0xa961('0xe')](_0x3abe41);this[_0xa961('0x14')](_0x3abe41);const _0x5b333e=_0x5b9876[_0xa961('0x1e')](_0x2af4ff=>this[_0xa961('0x23')][_0xa961('0xe')](_0x2af4ff)[_0xa961('0x3')](_0x3abe41));_0x4ee59c!==_0x5b333e&&(_0x4ee59c&&this[_0xa961('0x23')][_0xa961('0xe')](_0x4ee59c)[_0xa961('0x13')][_0xa961('0x1c')](_0x3abe41),_0x5b333e&&this[_0xa961('0x23')]['get'](_0x5b333e)['collection']['add'](_0x3abe41));}}[_0xa961('0x29')](){this['deactivateAll'](),super[_0xa961('0x29')]();}[_0xa961('0x14')](_0x47303e){const _0x343aa6=[];for(const _0x2c18f7 of this['activeUIs']){(0x0,this[_0xa961('0x23')][_0xa961('0xe')](_0x2c18f7)[_0xa961('0x3')])(_0x47303e)&&_0x343aa6[_0xa961('0x20')](_0x2c18f7);}if(_0x343aa6['length']>0x1)throw new _0x202ed0('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x343aa6,'annotationType':_0x47303e[_0xa961('0x7')]});}}
23
+ const _0x18ab=['type','length','attach','deactivate','_deactivateAllAnnotations','_visibleAnnotations','get','destroy','_assertAnnotationDoesNotBelongToMultipleUIs','init','requires','find','deactivateAll','push','_addActiveAnnotation','plugins','pluginName','refilterAnnotations','_uisData','annotationsuis-missing-ui','delete','context','_removeActiveAnnotation','function','_uis','isActive','collection','has','setActiveAnnotation','listenTo','change:activeAnnotation','register','_activateAnnotation','detach','add','annotationsuis-annotation-mismatch','activate','filter','activeUIs','set','_setSelectedAnnotations'];(function(_0x4f4d4c,_0x18abfe){const _0x5c48e2=function(_0x3b9fad){while(--_0x3b9fad){_0x4f4d4c['push'](_0x4f4d4c['shift']());}};_0x5c48e2(++_0x18abfe);}(_0x18ab,0x1b1));const _0x5c48=function(_0x4f4d4c,_0x18abfe){_0x4f4d4c=_0x4f4d4c-0x0;let _0x5c48e2=_0x18ab[_0x4f4d4c];return _0x5c48e2;};import{ContextPlugin as _0x91dac8}from'ckeditor5/src/core';import{CKEditorError as _0x571f15}from'ckeditor5/src/utils';import _0x58b22e,{bindAnnotationCollections as _0x1bfe5d}from'./annotationcollection';import _0x8f59d1 from'./annotations';export default class M extends _0x91dac8{static get[_0x5c48('0x1c')](){return[_0x8f59d1];}static get[_0x5c48('0x22')](){return'AnnotationsUIs';}constructor(_0x1b1a8f){super(_0x1b1a8f),this[_0x5c48('0xf')]=new Set(),this[_0x5c48('0x1')]=new Map(),this['_uisData']=new Map();}[_0x5c48('0x1b')](){const _0x5534fc=this[_0x5c48('0x27')]['plugins'][_0x5c48('0x18')](_0x8f59d1);this[_0x5c48('0x6')](_0x5534fc,_0x5c48('0x9'),(_0x304b39,_0x4dcea0)=>{for(const _0x523a0b of this[_0x5c48('0xf')]){const _0x9d59aa=this[_0x5c48('0x1')][_0x5c48('0x18')](_0x523a0b);(0x0,this[_0x5c48('0x24')]['get'](_0x523a0b)[_0x5c48('0xe')])(_0x4dcea0)&&_0x9d59aa[_0x5c48('0x5')](_0x4dcea0);}}),this['listenTo'](_0x5534fc,_0x5c48('0x16'),()=>{for(const _0x4b6f6d of this['activeUIs']){this[_0x5c48('0x1')][_0x5c48('0x18')](_0x4b6f6d)[_0x5c48('0x5')](null);}}),this['listenTo'](_0x5534fc[_0x5c48('0x17')],_0x5c48('0xb'),(_0x3df9ac,_0x1b9966)=>{this[_0x5c48('0x1a')](_0x1b9966);});}['hasActive'](){return this[_0x5c48('0xf')]['size']>0x0;}['isActive'](_0x18c70d){return this[_0x5c48('0xf')]['has'](_0x18c70d);}[_0x5c48('0xd')](_0x523b42,_0x4ef189=()=>!0x0){const _0x12c0c2=this[_0x5c48('0x27')][_0x5c48('0x21')][_0x5c48('0x18')](_0x8f59d1);if(!this[_0x5c48('0x1')]['has'](_0x523b42))throw new _0x571f15('annotationsuis-missing-ui',this,{'uiName':_0x523b42});this[_0x5c48('0x2')](_0x523b42)&&this['deactivate'](_0x523b42),this[_0x5c48('0xf')][_0x5c48('0xb')](_0x523b42);const _0x309c6a=new _0x58b22e(),_0x298324=_0x12c0c2['_visibleAnnotations'];_0x1bfe5d({'source':_0x298324,'target':_0x309c6a,'filter':_0x4ef189}),this[_0x5c48('0x24')][_0x5c48('0x10')](_0x523b42,{'collection':_0x309c6a,'filter':_0x4ef189});const _0xeb4b5=this[_0x5c48('0x1')][_0x5c48('0x18')](_0x523b42);_0xeb4b5['attach'](_0x309c6a),this['listenTo'](_0xeb4b5,_0x5c48('0x7'),(_0x4dd440,_0xb1128f,_0x5a026c,_0x49396b)=>{_0x49396b&&_0x12c0c2[_0x5c48('0x28')](_0x49396b),_0x5a026c&&_0x12c0c2[_0x5c48('0x20')](_0x5a026c);});}[_0x5c48('0x15')](_0x4a5d59){if(this['activeUIs'][_0x5c48('0x26')](_0x4a5d59),!this[_0x5c48('0x1')][_0x5c48('0x4')](_0x4a5d59))throw new _0x571f15(_0x5c48('0x25'),this,{'uiName':_0x4a5d59});const _0x5ddec5=this['_uis'][_0x5c48('0x18')](_0x4a5d59);_0x5ddec5['detach'](),this['stopListening'](_0x5ddec5),this[_0x5c48('0x24')]['get'](_0x4a5d59)['collection'][_0x5c48('0x19')](),this[_0x5c48('0x24')]['delete'](_0x4a5d59);}['switchTo'](_0x110f44){if(!this['_uis'][_0x5c48('0x4')](_0x110f44))throw new _0x571f15(_0x5c48('0x25'),this,{'uiName':_0x110f44});const _0xa29d59=this['context'][_0x5c48('0x21')][_0x5c48('0x18')](_0x8f59d1),_0x48dcc7=Array['from'](_0xa29d59['activeAnnotations'])[0x0]||null;this[_0x5c48('0x1e')](),this[_0x5c48('0xd')](_0x110f44);const _0x485d99=this['_uis'][_0x5c48('0x18')](_0x110f44);_0x485d99[_0x5c48('0x5')](_0x48dcc7),_0x485d99[_0x5c48('0x11')]&&_0x48dcc7&&_0x485d99[_0x5c48('0x11')]([_0x48dcc7]);}['deactivateAll'](){for(const _0x126bf5 of this[_0x5c48('0xf')])this['deactivate'](_0x126bf5);}[_0x5c48('0x8')](_0x520df3,_0x4b5e2d){if(this[_0x5c48('0x1')][_0x5c48('0x4')](_0x520df3))throw new _0x571f15('annotationsuis-register-already-registered');if(_0x5c48('0x0')!=typeof _0x4b5e2d[_0x5c48('0x14')]||_0x5c48('0x0')!=typeof _0x4b5e2d[_0x5c48('0xa')]||_0x5c48('0x0')!=typeof _0x4b5e2d[_0x5c48('0x5')])throw new _0x571f15('annotationsuis-register-invalid-interface',null);this[_0x5c48('0x1')]['set'](_0x520df3,_0x4b5e2d);}[_0x5c48('0x23')](){const _0x308926=this[_0x5c48('0x27')][_0x5c48('0x21')]['get'](_0x8f59d1)[_0x5c48('0x3')],_0x2cb2cc=new Map(),_0x41468a=Array['from'](this[_0x5c48('0xf')]);for(const _0x2115a2 of this[_0x5c48('0xf')]){const _0xc0d81e=this[_0x5c48('0x24')][_0x5c48('0x18')](_0x2115a2)[_0x5c48('0x3')];for(const _0x3e68de of _0xc0d81e)_0x2cb2cc[_0x5c48('0x10')](_0x3e68de,_0x2115a2);}for(const _0x5a7296 of _0x308926){const _0x2027eb=_0x2cb2cc[_0x5c48('0x18')](_0x5a7296);this[_0x5c48('0x1a')](_0x5a7296);const _0xf01e7f=_0x41468a[_0x5c48('0x1d')](_0x2490e6=>this[_0x5c48('0x24')]['get'](_0x2490e6)[_0x5c48('0xe')](_0x5a7296));_0x2027eb!==_0xf01e7f&&(_0x2027eb&&this[_0x5c48('0x24')][_0x5c48('0x18')](_0x2027eb)[_0x5c48('0x3')]['remove'](_0x5a7296),_0xf01e7f&&this[_0x5c48('0x24')][_0x5c48('0x18')](_0xf01e7f)['collection'][_0x5c48('0xb')](_0x5a7296));}}[_0x5c48('0x19')](){this[_0x5c48('0x1e')](),super[_0x5c48('0x19')]();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x491863){const _0x3c6697=[];for(const _0x12db7c of this['activeUIs']){(0x0,this['_uisData'][_0x5c48('0x18')](_0x12db7c)[_0x5c48('0xe')])(_0x491863)&&_0x3c6697[_0x5c48('0x1f')](_0x12db7c);}if(_0x3c6697[_0x5c48('0x13')]>0x1)throw new _0x571f15(_0x5c48('0xc'),null,{'matchedUIs':_0x3c6697,'annotationType':_0x491863[_0x5c48('0x12')]});}}