@ckeditor/ckeditor5-comments 34.2.0 → 35.0.1

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 (65) hide show
  1. package/build/comments.js +1 -1
  2. package/build/translations/ar.js +1 -0
  3. package/build/translations/bg.js +1 -0
  4. package/build/translations/bn.js +1 -0
  5. package/build/translations/ca.js +1 -0
  6. package/build/translations/fi.js +1 -0
  7. package/build/translations/he.js +1 -0
  8. package/build/translations/ja.js +1 -1
  9. package/build/translations/lt.js +1 -0
  10. package/build/translations/ms.js +1 -0
  11. package/build/translations/pt.js +1 -0
  12. package/build/translations/sr.js +1 -1
  13. package/build/translations/sv.js +1 -0
  14. package/build/translations/th.js +1 -0
  15. package/build/translations/vi.js +1 -0
  16. package/lang/translations/ar.po +71 -0
  17. package/lang/translations/bg.po +67 -0
  18. package/lang/translations/bn.po +67 -0
  19. package/lang/translations/ca.po +67 -0
  20. package/lang/translations/fi.po +67 -0
  21. package/lang/translations/he.po +69 -0
  22. package/lang/translations/ja.po +3 -3
  23. package/lang/translations/lt.po +69 -0
  24. package/lang/translations/ms.po +66 -0
  25. package/lang/translations/pt.po +68 -0
  26. package/lang/translations/sr.po +3 -3
  27. package/lang/translations/sv.po +67 -0
  28. package/lang/translations/th.po +66 -0
  29. package/lang/translations/vi.po +66 -0
  30. package/package.json +3 -3
  31. package/src/annotations/annotation.js +1 -1
  32. package/src/annotations/annotationcollection.js +1 -1
  33. package/src/annotations/annotations.js +1 -1
  34. package/src/annotations/annotationsuis.js +1 -1
  35. package/src/annotations/editorannotations.js +1 -1
  36. package/src/annotations/inlineannotations.js +1 -1
  37. package/src/annotations/narrowsidebar.js +1 -1
  38. package/src/annotations/sidebar.js +1 -1
  39. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  40. package/src/annotations/view/annotationview.js +1 -1
  41. package/src/annotations/view/sidebaritemview.js +1 -1
  42. package/src/annotations/view/sidebarview.js +1 -1
  43. package/src/annotations/widesidebar.js +1 -1
  44. package/src/comments/addcommentthreadcommand.js +1 -1
  45. package/src/comments/commentsediting.js +1 -1
  46. package/src/comments/commentsrepository.js +1 -1
  47. package/src/comments/commentsui.js +1 -1
  48. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  49. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  50. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  51. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  52. package/src/comments/ui/commentthreadcontroller.js +1 -1
  53. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  54. package/src/comments/ui/view/basecommentview.js +1 -1
  55. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  56. package/src/comments/ui/view/commentcontentview.js +1 -1
  57. package/src/comments/ui/view/commentinputview.js +1 -1
  58. package/src/comments/ui/view/commentslistview.js +1 -1
  59. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  60. package/src/comments/ui/view/commentthreadview.js +1 -1
  61. package/src/comments/ui/view/commentview.js +1 -1
  62. package/src/comments.js +1 -1
  63. package/src/commentsonly.js +1 -1
  64. package/src/utils/common-translations.js +1 -1
  65. package/src/utils/createmutationobserver.js +1 -1
@@ -0,0 +1,68 @@
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ #
3
+ # !!! IMPORTANT !!!
4
+ #
5
+ # Before you edit this file, please keep in mind that contributing to the project
6
+ # translations is possible ONLY via the Transifex online service.
7
+ #
8
+ # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
+ #
10
+ # To learn more, check out the official contributor's guide:
11
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
+ #
13
+ msgid ""
14
+ msgstr ""
15
+ "Language-Team: Portuguese (https://www.transifex.com/ckeditor/teams/11143/pt/)\n"
16
+ "Language: pt\n"
17
+ "Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
18
+
19
+ msgctxt "The label for the comment editor."
20
+ msgid "Comment editor"
21
+ msgstr "Editor de comentários"
22
+
23
+ msgctxt "The label for the number of comments."
24
+ msgid "NUMBER_OF_COMMENTS"
25
+ msgid_plural "%0 Comments"
26
+ msgstr[0] "%0 Comentário"
27
+ msgstr[1] "%0 Comentário"
28
+ msgstr[2] "%0 Comentário"
29
+
30
+ msgctxt "The alert displayed for a comment that is too long."
31
+ msgid "TOO_LONG_COMMENT_ALERT"
32
+ msgstr "O conteúdo do comentário é demasiado longo. O seu comentário tem %0 caracteres, mas o limite é %1 caracteres."
33
+
34
+ msgctxt "The placeholder for the reply field."
35
+ msgid "Reply..."
36
+ msgstr "Responder..."
37
+
38
+ msgctxt "The placeholder for the new commend field."
39
+ msgid "Write a comment..."
40
+ msgstr "Escrever um comentário..."
41
+
42
+ msgctxt "The label for the button that enables editing a comment."
43
+ msgid "Edit"
44
+ msgstr "Editar"
45
+
46
+ msgctxt "The label for the button that deletes a comment."
47
+ msgid "Remove"
48
+ msgstr "Remover"
49
+
50
+ msgctxt "The label for for the button that submits a comment."
51
+ msgid "Submit"
52
+ msgstr "Submeter"
53
+
54
+ msgctxt "The confirmation message shown after pressing the delete comment button."
55
+ msgid "Delete comment?"
56
+ msgstr "Eliminar comentário?"
57
+
58
+ msgctxt "The confirmation message shown after pressing the delete comment thread button."
59
+ msgid "Delete comment thread?"
60
+ msgstr "Eliminar linha de comentários?"
61
+
62
+ msgctxt "The tooltip for the comment toolbar button."
63
+ msgid "Comment"
64
+ msgstr "Comentário"
65
+
66
+ msgctxt "The label for an alert shown when closing the editor with an unsaved comment change."
67
+ msgid "PENDING_ACTION_COMMENT_THREAD"
68
+ msgstr "Alteração não guardada na linha de comentários."
@@ -23,9 +23,9 @@ msgstr "Уређивач напомене "
23
23
  msgctxt "The label for the number of comments."
24
24
  msgid "NUMBER_OF_COMMENTS"
25
25
  msgid_plural "%0 Comments"
26
- msgstr[0] ""
27
- msgstr[1] ""
28
- msgstr[2] ""
26
+ msgstr[0] "%0 komentar"
27
+ msgstr[1] "%0 komentara"
28
+ msgstr[2] "%0 komentara"
29
29
 
30
30
  msgctxt "The alert displayed for a comment that is too long."
31
31
  msgid "TOO_LONG_COMMENT_ALERT"
@@ -0,0 +1,67 @@
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ #
3
+ # !!! IMPORTANT !!!
4
+ #
5
+ # Before you edit this file, please keep in mind that contributing to the project
6
+ # translations is possible ONLY via the Transifex online service.
7
+ #
8
+ # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
+ #
10
+ # To learn more, check out the official contributor's guide:
11
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
+ #
13
+ msgid ""
14
+ msgstr ""
15
+ "Language-Team: Swedish (https://www.transifex.com/ckeditor/teams/11143/sv/)\n"
16
+ "Language: sv\n"
17
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
+
19
+ msgctxt "The label for the comment editor."
20
+ msgid "Comment editor"
21
+ msgstr "Kommentarsredigerare"
22
+
23
+ msgctxt "The label for the number of comments."
24
+ msgid "NUMBER_OF_COMMENTS"
25
+ msgid_plural "%0 Comments"
26
+ msgstr[0] "%0 kommentar"
27
+ msgstr[1] "%0 kommentarer"
28
+
29
+ msgctxt "The alert displayed for a comment that is too long."
30
+ msgid "TOO_LONG_COMMENT_ALERT"
31
+ msgstr "Kommentarsinnehållet är för långt. Din kommentar har %0 tecken men gränsen är %1 tecken."
32
+
33
+ msgctxt "The placeholder for the reply field."
34
+ msgid "Reply..."
35
+ msgstr "Svara ..."
36
+
37
+ msgctxt "The placeholder for the new commend field."
38
+ msgid "Write a comment..."
39
+ msgstr "Skriv en kommentar ..."
40
+
41
+ msgctxt "The label for the button that enables editing a comment."
42
+ msgid "Edit"
43
+ msgstr "Ändra"
44
+
45
+ msgctxt "The label for the button that deletes a comment."
46
+ msgid "Remove"
47
+ msgstr "Ta bort"
48
+
49
+ msgctxt "The label for for the button that submits a comment."
50
+ msgid "Submit"
51
+ msgstr "Lämna in"
52
+
53
+ msgctxt "The confirmation message shown after pressing the delete comment button."
54
+ msgid "Delete comment?"
55
+ msgstr "Radera kommentar?"
56
+
57
+ msgctxt "The confirmation message shown after pressing the delete comment thread button."
58
+ msgid "Delete comment thread?"
59
+ msgstr "Radera kommentarstråd?"
60
+
61
+ msgctxt "The tooltip for the comment toolbar button."
62
+ msgid "Comment"
63
+ msgstr "Kommentar"
64
+
65
+ msgctxt "The label for an alert shown when closing the editor with an unsaved comment change."
66
+ msgid "PENDING_ACTION_COMMENT_THREAD"
67
+ msgstr "Osparad ändring i kommentarstråden."
@@ -0,0 +1,66 @@
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ #
3
+ # !!! IMPORTANT !!!
4
+ #
5
+ # Before you edit this file, please keep in mind that contributing to the project
6
+ # translations is possible ONLY via the Transifex online service.
7
+ #
8
+ # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
+ #
10
+ # To learn more, check out the official contributor's guide:
11
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
+ #
13
+ msgid ""
14
+ msgstr ""
15
+ "Language-Team: Thai (https://www.transifex.com/ckeditor/teams/11143/th/)\n"
16
+ "Language: th\n"
17
+ "Plural-Forms: nplurals=1; plural=0;\n"
18
+
19
+ msgctxt "The label for the comment editor."
20
+ msgid "Comment editor"
21
+ msgstr "เครื่องมือแก้ไขข้อคิดเห็น"
22
+
23
+ msgctxt "The label for the number of comments."
24
+ msgid "NUMBER_OF_COMMENTS"
25
+ msgid_plural "%0 Comments"
26
+ msgstr[0] "%0 ข้อคิดเห็น"
27
+
28
+ msgctxt "The alert displayed for a comment that is too long."
29
+ msgid "TOO_LONG_COMMENT_ALERT"
30
+ msgstr "เนื้อหาข้อคิดเห็นยาวเกินไป ข้อคิดเห็นของคุณมี %0 แต่เรามีขีดจำกัดอยู่ที่ %1 อักขระ"
31
+
32
+ msgctxt "The placeholder for the reply field."
33
+ msgid "Reply..."
34
+ msgstr "ตอบ..."
35
+
36
+ msgctxt "The placeholder for the new commend field."
37
+ msgid "Write a comment..."
38
+ msgstr "เขียนข้อคิดเห็น..."
39
+
40
+ msgctxt "The label for the button that enables editing a comment."
41
+ msgid "Edit"
42
+ msgstr "แก้ไข"
43
+
44
+ msgctxt "The label for the button that deletes a comment."
45
+ msgid "Remove"
46
+ msgstr "ลบ"
47
+
48
+ msgctxt "The label for for the button that submits a comment."
49
+ msgid "Submit"
50
+ msgstr "ส่ง"
51
+
52
+ msgctxt "The confirmation message shown after pressing the delete comment button."
53
+ msgid "Delete comment?"
54
+ msgstr "ลบข้อคิดเห็นหรือไม่"
55
+
56
+ msgctxt "The confirmation message shown after pressing the delete comment thread button."
57
+ msgid "Delete comment thread?"
58
+ msgstr "ลบชุดข้อคิดเห็นหรือไม่"
59
+
60
+ msgctxt "The tooltip for the comment toolbar button."
61
+ msgid "Comment"
62
+ msgstr "ข้อคิดเห็น"
63
+
64
+ msgctxt "The label for an alert shown when closing the editor with an unsaved comment change."
65
+ msgid "PENDING_ACTION_COMMENT_THREAD"
66
+ msgstr "การเปลี่ยนแปลงที่ยังไม่ได้บันทึกในชุดข้อคิดเห็น"
@@ -0,0 +1,66 @@
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ #
3
+ # !!! IMPORTANT !!!
4
+ #
5
+ # Before you edit this file, please keep in mind that contributing to the project
6
+ # translations is possible ONLY via the Transifex online service.
7
+ #
8
+ # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
+ #
10
+ # To learn more, check out the official contributor's guide:
11
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
+ #
13
+ msgid ""
14
+ msgstr ""
15
+ "Language-Team: Vietnamese (https://www.transifex.com/ckeditor/teams/11143/vi/)\n"
16
+ "Language: vi\n"
17
+ "Plural-Forms: nplurals=1; plural=0;\n"
18
+
19
+ msgctxt "The label for the comment editor."
20
+ msgid "Comment editor"
21
+ msgstr "Trình chỉnh sửa bình luận"
22
+
23
+ msgctxt "The label for the number of comments."
24
+ msgid "NUMBER_OF_COMMENTS"
25
+ msgid_plural "%0 Comments"
26
+ msgstr[0] "%0 Bình luận"
27
+
28
+ msgctxt "The alert displayed for a comment that is too long."
29
+ msgid "TOO_LONG_COMMENT_ALERT"
30
+ msgstr "Nội dung bình luận quá dài. Bình luận của bạn có %0 ký tự, tuy nhiên giới hạn ký tự là %1."
31
+
32
+ msgctxt "The placeholder for the reply field."
33
+ msgid "Reply..."
34
+ msgstr "Trả lời..."
35
+
36
+ msgctxt "The placeholder for the new commend field."
37
+ msgid "Write a comment..."
38
+ msgstr "Viết bình luận..."
39
+
40
+ msgctxt "The label for the button that enables editing a comment."
41
+ msgid "Edit"
42
+ msgstr "Chỉnh sửa"
43
+
44
+ msgctxt "The label for the button that deletes a comment."
45
+ msgid "Remove"
46
+ msgstr "Xóa"
47
+
48
+ msgctxt "The label for for the button that submits a comment."
49
+ msgid "Submit"
50
+ msgstr "Gửi"
51
+
52
+ msgctxt "The confirmation message shown after pressing the delete comment button."
53
+ msgid "Delete comment?"
54
+ msgstr "Xóa bình luận?"
55
+
56
+ msgctxt "The confirmation message shown after pressing the delete comment thread button."
57
+ msgid "Delete comment thread?"
58
+ msgstr "Xóa chuỗi bình luận?"
59
+
60
+ msgctxt "The tooltip for the comment toolbar button."
61
+ msgid "Comment"
62
+ msgstr "Bình luận"
63
+
64
+ msgctxt "The label for an alert shown when closing the editor with an unsaved comment change."
65
+ msgid "PENDING_ACTION_COMMENT_THREAD"
66
+ msgstr "Nội dung thay đổi chưa lưu trong chuỗi bình luận."
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-comments",
3
- "version": "34.2.0",
3
+ "version": "35.0.1",
4
4
  "description": "Collaborative comments feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -31,8 +31,8 @@
31
31
  ],
32
32
  "main": "src/index.js",
33
33
  "dependencies": {
34
- "ckeditor5": "^34.2.0",
35
- "ckeditor5-collaboration": "^34.2.0",
34
+ "ckeditor5": "^35.0.1",
35
+ "ckeditor5-collaboration": "^35.0.1",
36
36
  "lodash-es": "^4.17.11"
37
37
  }
38
38
  }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x402b=['focusableElements','mainView','isActive','_isTargetElementVisible','item','destroy','element','type','_target','function','set','_assertCorrectTarget','isVisible','remove','_type','refreshVisibility','render','targetRect','getClientRects','focusTracker','clear','target','annotation-invalid-target','add','view','stopListening'];(function(_0x281e52,_0x402b2f){const _0xeac67d=function(_0x12006e){while(--_0x12006e){_0x281e52['push'](_0x281e52['shift']());}};_0xeac67d(++_0x402b2f);}(_0x402b,0x10c));const _0xeac6=function(_0x281e52,_0x402b2f){_0x281e52=_0x281e52-0x0;let _0xeac67d=_0x402b[_0x281e52];return _0xeac67d;};import{CKEditorError as _0x109831,Rect as _0x66e9ca,Collection as _0x3c0d47,mix as _0x3d40d3,ObservableMixin as _0x2278aa}from'ckeditor5/src/utils';import{isElement as _0x29ba9f}from'lodash-es';export default class p{constructor({view:_0x6f6ed8,target:_0x5d0891,type:_0x31aefa,isVisible:_0x5f46c5=!0x0}){this[_0xeac6('0x10')]=_0x6f6ed8,this[_0xeac6('0x10')]['element']||this['view'][_0xeac6('0x8')](),this[_0xeac6('0x6')]=_0x31aefa,this[_0xeac6('0x0')]=_0x5d0891,this[_0xeac6('0x3')](),this[_0xeac6('0x12')]=new _0x3c0d47([this[_0xeac6('0x10')][_0xeac6('0x18')]],{'idProperty':'_id'}),this[_0xeac6('0x12')]['on'](_0xeac6('0xf'),(_0x29dc09,_0x384c89)=>{this[_0xeac6('0x10')][_0xeac6('0xb')][_0xeac6('0xf')](_0x384c89);}),this['focusableElements']['on'](_0xeac6('0x5'),(_0x462584,_0x236f04)=>{this[_0xeac6('0x10')]['focusTracker']['remove'](_0x236f04);}),this[_0xeac6('0x2')](_0xeac6('0x4'),_0x5f46c5);}get[_0xeac6('0x19')](){return _0xeac6('0x1')==typeof this[_0xeac6('0x6')]?this[_0xeac6('0x6')]():this[_0xeac6('0x6')];}get['innerView'](){return this[_0xeac6('0x10')][_0xeac6('0x13')];}get[_0xeac6('0xd')](){return'function'==typeof this[_0xeac6('0x0')]?this[_0xeac6('0x0')]():this[_0xeac6('0x0')];}get[_0xeac6('0x9')](){const _0x47daba=this[_0xeac6('0xd')];return this[_0xeac6('0x3')](),null!==_0x47daba&&this[_0xeac6('0x15')]()?new _0x66e9ca(_0x47daba):null;}get[_0xeac6('0x14')](){return this['view'][_0xeac6('0x14')];}set['isActive'](_0x406eac){this[_0xeac6('0x10')]['isActive']=_0x406eac,this[_0xeac6('0x10')][_0xeac6('0x13')][_0xeac6('0x14')]=_0x406eac;}['updateTargetRect'](){this[_0xeac6('0x10')][_0xeac6('0x9')]=this[_0xeac6('0x9')];}[_0xeac6('0x17')](){this[_0xeac6('0x12')][_0xeac6('0x11')](),this[_0xeac6('0x12')][_0xeac6('0xc')](),this[_0xeac6('0x11')]();}[_0xeac6('0x7')](){this[_0xeac6('0x4')]=this[_0xeac6('0x15')]();}['_isTargetElementVisible'](){const _0x5242d6=this['target'];if(_0x29ba9f(_0x5242d6)){const _0x3cf7c8=_0x5242d6[_0xeac6('0xa')]()[_0xeac6('0x16')](0x0),_0x1b6cc8=_0x5242d6['offsetParent'];if(!_0x3cf7c8||!_0x1b6cc8)return!0x1;}return!0x0;}[_0xeac6('0x3')](){const _0x19f18a=this[_0xeac6('0xd')];if(!(null===_0x19f18a||_0x19f18a instanceof _0x66e9ca||_0x29ba9f(_0x19f18a)))throw new _0x109831(_0xeac6('0xe'),null,{'target':_0x19f18a});}}_0x3d40d3(p,_0x2278aa);
23
+ const _0x5ad1=['item','_assertCorrectTarget','view','target','updateTargetRect','_isTargetElementVisible','isActive','remove','destroy','clear','_type','focusTracker','_target','annotation-invalid-target','render','add','element','targetRect','stopListening','function','refreshVisibility','focusableElements','mainView'];(function(_0x23e04c,_0x5ad176){const _0x4a6fe1=function(_0x2dbd6b){while(--_0x2dbd6b){_0x23e04c['push'](_0x23e04c['shift']());}};_0x4a6fe1(++_0x5ad176);}(_0x5ad1,0xfa));const _0x4a6f=function(_0x23e04c,_0x5ad176){_0x23e04c=_0x23e04c-0x0;let _0x4a6fe1=_0x5ad1[_0x23e04c];return _0x4a6fe1;};import{CKEditorError as _0x467a6e,Rect as _0xf7be1e,Collection as _0x47b18c,mix as _0x484f42,ObservableMixin as _0x150456}from'ckeditor5/src/utils';import{isElement as _0x45bbce}from'lodash-es';export default class p{constructor({view:_0x443b98,target:_0x5beee3,type:_0x5b06fa,isVisible:_0xcdba8c=!0x0}){this[_0x4a6f('0x5')]=_0x443b98,this[_0x4a6f('0x5')][_0x4a6f('0x13')]||this[_0x4a6f('0x5')][_0x4a6f('0x11')](),this['_type']=_0x5b06fa,this[_0x4a6f('0xf')]=_0x5beee3,this['_assertCorrectTarget'](),this['focusableElements']=new _0x47b18c([this[_0x4a6f('0x5')]['element']],{'idProperty':'_id'}),this[_0x4a6f('0x1')]['on'](_0x4a6f('0x12'),(_0x5a9c18,_0x42b57c)=>{this[_0x4a6f('0x5')][_0x4a6f('0xe')]['add'](_0x42b57c);}),this[_0x4a6f('0x1')]['on'](_0x4a6f('0xa'),(_0x4be530,_0xb07a98)=>{this[_0x4a6f('0x5')]['focusTracker'][_0x4a6f('0xa')](_0xb07a98);}),this['set']('isVisible',_0xcdba8c);}get['type'](){return'function'==typeof this['_type']?this[_0x4a6f('0xd')]():this['_type'];}get['innerView'](){return this[_0x4a6f('0x5')][_0x4a6f('0x2')];}get[_0x4a6f('0x6')](){return _0x4a6f('0x16')==typeof this[_0x4a6f('0xf')]?this[_0x4a6f('0xf')]():this[_0x4a6f('0xf')];}get['targetRect'](){const _0x4cbe84=this['target'];return this[_0x4a6f('0x4')](),null!==_0x4cbe84&&this[_0x4a6f('0x8')]()?new _0xf7be1e(_0x4cbe84):null;}get[_0x4a6f('0x9')](){return this[_0x4a6f('0x5')][_0x4a6f('0x9')];}set[_0x4a6f('0x9')](_0x19b713){this['view'][_0x4a6f('0x9')]=_0x19b713,this[_0x4a6f('0x5')]['mainView'][_0x4a6f('0x9')]=_0x19b713;}[_0x4a6f('0x7')](){this['view'][_0x4a6f('0x14')]=this[_0x4a6f('0x14')];}[_0x4a6f('0xb')](){this['focusableElements'][_0x4a6f('0x15')](),this[_0x4a6f('0x1')][_0x4a6f('0xc')](),this[_0x4a6f('0x15')]();}[_0x4a6f('0x0')](){this['isVisible']=this[_0x4a6f('0x8')]();}[_0x4a6f('0x8')](){const _0x1e3b9e=this[_0x4a6f('0x6')];if(_0x45bbce(_0x1e3b9e)){const _0x1f5672=_0x1e3b9e['getClientRects']()[_0x4a6f('0x3')](0x0),_0xe2a915=_0x1e3b9e['offsetParent'];if(!_0x1f5672||!_0xe2a915)return!0x1;}return!0x0;}[_0x4a6f('0x4')](){const _0x517bbe=this[_0x4a6f('0x6')];if(!(null===_0x517bbe||_0x517bbe instanceof _0xf7be1e||_0x45bbce(_0x517bbe)))throw new _0x467a6e(_0x4a6f('0x10'),null,{'target':_0x517bbe});}}_0x484f42(p,_0x150456);
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5dbf=['destroy','innerView','_innerViewToAnnotation','clear','_items','annotationcollection-not-existing-item','remove','focusTracker','_getOrderInContent','focusableElements','stopListening','listenTo','_sort','updateTargetRect','_viewToAnnotation','view','delete','_focusTracker','targetRect','annotationcollection-duplicated-item','sort','refreshPositioning','get','has','left','change:isFocused','from','blur','getByView','add','top','length','isFocused','getByInnerView','fire'];(function(_0x474a36,_0x5dbf0f){const _0x137208=function(_0x3ff9a7){while(--_0x3ff9a7){_0x474a36['push'](_0x474a36['shift']());}};_0x137208(++_0x5dbf0f);}(_0x5dbf,0x18f));const _0x1372=function(_0x474a36,_0x5dbf0f){_0x474a36=_0x474a36-0x0;let _0x137208=_0x5dbf[_0x474a36];return _0x137208;};import{CKEditorError as _0x31aeae,Collection as _0x2bc692,FocusTracker as _0x4b4b0b}from'ckeditor5/src/utils';export default class x extends _0x2bc692{constructor(_0x470e79=[]){super(),this[_0x1372('0x17')]=new Map(),this[_0x1372('0x0')]=new Map(),this[_0x1372('0x3')]=new _0x4b4b0b(),this[_0x1372('0x3')]['on'](_0x1372('0xb'),(_0x2a4d5e,_0x22fc6d,_0x2be1ee)=>{_0x2be1ee||this['fire'](_0x1372('0xd'));});for(const _0x31455a of _0x470e79)this[_0x1372('0xf')](_0x31455a);}get[_0x1372('0x12')](){return this['_focusTracker'][_0x1372('0x12')];}[_0x1372('0xf')](_0x1768cc){if(this[_0x1372('0x9')](_0x1768cc))throw new _0x31aeae(_0x1372('0x5'),null);this[_0x1372('0x17')]['set'](_0x1768cc[_0x1372('0x16')],_0x1768cc),this[_0x1372('0x0')]['set'](_0x1768cc[_0x1372('0x1')],_0x1768cc);for(const _0x48dbf2 of _0x1768cc[_0x1372('0x1e')])this[_0x1372('0x3')][_0x1372('0xf')](_0x48dbf2);this[_0x1372('0x20')](_0x1768cc['focusableElements'],_0x1372('0xf'),(_0x19b7e7,_0x233947)=>{this[_0x1372('0x3')][_0x1372('0xf')](_0x233947);}),this[_0x1372('0x20')](_0x1768cc['focusableElements'],'remove',(_0x394e26,_0x10b426)=>{this[_0x1372('0x3')][_0x1372('0x1b')](_0x10b426);}),this[_0x1372('0x20')](_0x1768cc[_0x1372('0x1')][_0x1372('0x1c')],'change:isFocused',(_0x21788a,_0x56abf0,_0x37fa7a)=>{_0x37fa7a&&this[_0x1372('0x14')]('focus',_0x1768cc);});const _0x408ed3=this[_0x1372('0x1d')](_0x1768cc);super[_0x1372('0xf')](_0x1768cc,_0x408ed3),_0x1768cc[_0x1372('0x22')]();}['remove'](_0x48b006){if(!this[_0x1372('0x9')](_0x48b006))throw new _0x31aeae(_0x1372('0x1a'),null);this[_0x1372('0x1f')](_0x48b006[_0x1372('0x1')]['focusTracker']),this['stopListening'](_0x48b006[_0x1372('0x1e')]);for(const _0x1e0312 of _0x48b006[_0x1372('0x1e')])this[_0x1372('0x3')][_0x1372('0x1b')](_0x1e0312);this[_0x1372('0x0')][_0x1372('0x2')](_0x48b006[_0x1372('0x1')]),this[_0x1372('0x17')]['delete'](_0x48b006['innerView']),super['remove'](_0x48b006);}[_0x1372('0x13')](_0x34ac0c){return this[_0x1372('0x17')][_0x1372('0x8')](_0x34ac0c);}[_0x1372('0xe')](_0x68cf57){return this[_0x1372('0x0')][_0x1372('0x8')](_0x68cf57);}[_0x1372('0x15')](){super[_0x1372('0x18')](),this[_0x1372('0x1f')](),this[_0x1372('0x17')][_0x1372('0x18')](),this[_0x1372('0x0')][_0x1372('0x18')](),this['_focusTracker'][_0x1372('0x15')]();}[_0x1372('0x7')](){for(const _0x3393aa of this)_0x3393aa[_0x1372('0x22')]();this[_0x1372('0x21')]();}[_0x1372('0x21')](){const _0x5dd13f=Array[_0x1372('0xc')](this)[_0x1372('0x6')]((_0x15f81f,_0x381a0b)=>y(_0x15f81f[_0x1372('0x4')],_0x381a0b['targetRect']));for(let _0x228408=_0x5dd13f[_0x1372('0x11')]-0x1;_0x228408>0x0;_0x228408--){const _0x5a2a2b=_0x5dd13f[_0x228408];_0x228408!==this['getIndex'](_0x5a2a2b)&&(this[_0x1372('0x1b')](_0x5a2a2b),this['add'](_0x5a2a2b,_0x228408));}}['_getOrderInContent'](_0x26abc4){let _0x680b23=0x0;const _0x3fc37d=_0x26abc4[_0x1372('0x4')];if(!_0x3fc37d)return this[_0x1372('0x19')]['length'];for(const _0x2fad9d of this){const _0x425ba3=_0x2fad9d['targetRect'];if(_0x425ba3){if(y(_0x3fc37d,_0x425ba3)<0x0)return _0x680b23;_0x680b23++;}}return _0x680b23;}}export function bindAnnotationCollections({source:_0x3b6433,target:_0x37eca2,filter:_0x98f4a9}){for(const _0xf5d1e2 of _0x3b6433)_0x98f4a9(_0xf5d1e2)&&_0x37eca2['add'](_0xf5d1e2);_0x37eca2['listenTo'](_0x3b6433,_0x1372('0xf'),(_0x25d7b9,_0x3bd665)=>{_0x98f4a9(_0x3bd665)&&_0x37eca2[_0x1372('0xf')](_0x3bd665);}),_0x37eca2[_0x1372('0x20')](_0x3b6433,_0x1372('0x1b'),(_0x5deee5,_0x31d1d4)=>{_0x37eca2['has'](_0x31d1d4)&&_0x37eca2[_0x1372('0x1b')](_0x31d1d4);});}function y(_0x2fa2c0,_0x419ad6){if(null===_0x2fa2c0&&null===_0x419ad6)return 0x0;if(null===_0x2fa2c0)return-0x1;if(null===_0x419ad6)return 0x1;const _0x12b3f4=_0x2fa2c0[_0x1372('0x10')]-_0x419ad6[_0x1372('0x10')];return 0x0==_0x12b3f4?_0x2fa2c0[_0x1372('0xa')]-_0x419ad6[_0x1372('0xa')]:_0x12b3f4;}
23
+ const _0xafb7=['annotationcollection-not-existing-item','isFocused','delete','innerView','fire','blur','targetRect','_sort','view','add','updateTargetRect','focus','_focusTracker','listenTo','stopListening','clear','sort','getByInnerView','remove','from','has','_getOrderInContent','focusTracker','refreshPositioning','change:isFocused','left','annotationcollection-duplicated-item','destroy','top','_items','focusableElements','_innerViewToAnnotation','length','_viewToAnnotation'];(function(_0x951682,_0xafb7c7){const _0x90dfe=function(_0x1585aa){while(--_0x1585aa){_0x951682['push'](_0x951682['shift']());}};_0x90dfe(++_0xafb7c7);}(_0xafb7,0x8b));const _0x90df=function(_0x951682,_0xafb7c7){_0x951682=_0x951682-0x0;let _0x90dfe=_0xafb7[_0x951682];return _0x90dfe;};import{CKEditorError as _0x20b3b7,Collection as _0x2a00e4,FocusTracker as _0x381050}from'ckeditor5/src/utils';export default class x extends _0x2a00e4{constructor(_0x4ee508=[]){super(),this['_innerViewToAnnotation']=new Map(),this[_0x90df('0x1e')]=new Map(),this[_0x90df('0x9')]=new _0x381050(),this['_focusTracker']['on']('change:isFocused',(_0x57fb42,_0x13c642,_0x9437d5)=>{_0x9437d5||this[_0x90df('0x1')](_0x90df('0x2'));});for(const _0x524527 of _0x4ee508)this[_0x90df('0x6')](_0x524527);}get[_0x90df('0x20')](){return this[_0x90df('0x9')][_0x90df('0x20')];}[_0x90df('0x6')](_0x50c9bb){if(this[_0x90df('0x11')](_0x50c9bb))throw new _0x20b3b7(_0x90df('0x17'),null);this[_0x90df('0x1c')]['set'](_0x50c9bb[_0x90df('0x0')],_0x50c9bb),this[_0x90df('0x1e')]['set'](_0x50c9bb[_0x90df('0x5')],_0x50c9bb);for(const _0x11a4b7 of _0x50c9bb[_0x90df('0x1b')])this[_0x90df('0x9')][_0x90df('0x6')](_0x11a4b7);this[_0x90df('0xa')](_0x50c9bb['focusableElements'],_0x90df('0x6'),(_0x59bbaa,_0x5b1f73)=>{this['_focusTracker']['add'](_0x5b1f73);}),this[_0x90df('0xa')](_0x50c9bb['focusableElements'],_0x90df('0xf'),(_0x5c8335,_0x29b1e9)=>{this[_0x90df('0x9')][_0x90df('0xf')](_0x29b1e9);}),this[_0x90df('0xa')](_0x50c9bb[_0x90df('0x5')]['focusTracker'],_0x90df('0x15'),(_0x1ec774,_0x36b52b,_0x51af0e)=>{_0x51af0e&&this['fire'](_0x90df('0x8'),_0x50c9bb);});const _0x19e7b0=this[_0x90df('0x12')](_0x50c9bb);super['add'](_0x50c9bb,_0x19e7b0),_0x50c9bb[_0x90df('0x7')]();}[_0x90df('0xf')](_0x1293d2){if(!this['has'](_0x1293d2))throw new _0x20b3b7(_0x90df('0x1f'),null);this[_0x90df('0xb')](_0x1293d2[_0x90df('0x5')][_0x90df('0x13')]),this[_0x90df('0xb')](_0x1293d2['focusableElements']);for(const _0x15ddd8 of _0x1293d2[_0x90df('0x1b')])this[_0x90df('0x9')]['remove'](_0x15ddd8);this[_0x90df('0x1e')][_0x90df('0x21')](_0x1293d2[_0x90df('0x5')]),this[_0x90df('0x1c')][_0x90df('0x21')](_0x1293d2[_0x90df('0x0')]),super[_0x90df('0xf')](_0x1293d2);}[_0x90df('0xe')](_0x497751){return this[_0x90df('0x1c')]['get'](_0x497751);}['getByView'](_0x378cbb){return this[_0x90df('0x1e')]['get'](_0x378cbb);}[_0x90df('0x18')](){super[_0x90df('0xc')](),this[_0x90df('0xb')](),this[_0x90df('0x1c')][_0x90df('0xc')](),this[_0x90df('0x1e')]['clear'](),this[_0x90df('0x9')][_0x90df('0x18')]();}[_0x90df('0x14')](){for(const _0x3870e6 of this)_0x3870e6[_0x90df('0x7')]();this[_0x90df('0x4')]();}[_0x90df('0x4')](){const _0x36854f=Array[_0x90df('0x10')](this)[_0x90df('0xd')]((_0x176b9f,_0x57c17d)=>y(_0x176b9f[_0x90df('0x3')],_0x57c17d[_0x90df('0x3')]));for(let _0x2578e7=_0x36854f[_0x90df('0x1d')]-0x1;_0x2578e7>0x0;_0x2578e7--){const _0xaa43fe=_0x36854f[_0x2578e7];_0x2578e7!==this['getIndex'](_0xaa43fe)&&(this[_0x90df('0xf')](_0xaa43fe),this[_0x90df('0x6')](_0xaa43fe,_0x2578e7));}}[_0x90df('0x12')](_0x3a1ba5){let _0x3a9c80=0x0;const _0x5070e0=_0x3a1ba5['targetRect'];if(!_0x5070e0)return this[_0x90df('0x1a')][_0x90df('0x1d')];for(const _0x12e6e4 of this){const _0x4b30b9=_0x12e6e4['targetRect'];if(_0x4b30b9){if(y(_0x5070e0,_0x4b30b9)<0x0)return _0x3a9c80;_0x3a9c80++;}}return _0x3a9c80;}}export function bindAnnotationCollections({source:_0x42d77c,target:_0x23989d,filter:_0x80e597}){for(const _0x52769e of _0x42d77c)_0x80e597(_0x52769e)&&_0x23989d[_0x90df('0x6')](_0x52769e);_0x23989d[_0x90df('0xa')](_0x42d77c,'add',(_0x23f430,_0x23f79a)=>{_0x80e597(_0x23f79a)&&_0x23989d[_0x90df('0x6')](_0x23f79a);}),_0x23989d['listenTo'](_0x42d77c,_0x90df('0xf'),(_0x1431c6,_0x5271b2)=>{_0x23989d[_0x90df('0x11')](_0x5271b2)&&_0x23989d[_0x90df('0xf')](_0x5271b2);});}function y(_0x2203af,_0x3abf14){if(null===_0x2203af&&null===_0x3abf14)return 0x0;if(null===_0x2203af)return-0x1;if(null===_0x3abf14)return 0x1;const _0x14825c=_0x2203af[_0x90df('0x19')]-_0x3abf14[_0x90df('0x19')];return 0x0==_0x14825c?_0x2203af[_0x90df('0x16')]-_0x3abf14[_0x90df('0x16')]:_0x14825c;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x45a5=['_visibleAnnotations','isVisible','listenTo','destroy','activeAnnotations','fire','add','has','_addActiveAnnotation','pluginName','change:isVisible','delete','_removeActiveAnnotation','stopListening','_activateAnnotation','collection','remove','getByInnerView','_bindAnnotationsToVisibleAnnotations','_deactivateAllAnnotations','activate'];(function(_0x5a6567,_0x45a5f9){const _0x1be08b=function(_0x5a20c5){while(--_0x5a20c5){_0x5a6567['push'](_0x5a6567['shift']());}};_0x1be08b(++_0x45a5f9);}(_0x45a5,0x1e0));const _0x1be0=function(_0x5a6567,_0x45a5f9){_0x5a6567=_0x5a6567-0x0;let _0x1be08b=_0x45a5[_0x5a6567];return _0x1be08b;};import{ContextPlugin as _0x1d1fe7}from'ckeditor5/src/core';import _0x32746a from'./annotation';import _0xbfdb26 from'./annotationcollection';import _0xa11573 from'./view/annotationview';export default class V extends _0x1d1fe7{static get[_0x1be0('0xc')](){return'Annotations';}constructor(_0x2f6f60){super(_0x2f6f60),this['collection']=new _0xbfdb26(),this[_0x1be0('0x3')]=new _0xbfdb26(),this['set'](_0x1be0('0x7'),new Set()),this[_0x1be0('0x0')]();}['add'](_0x3718f4){this[_0x1be0('0x12')]['add'](_0x3718f4);}[_0x1be0('0x13')](_0x237a81){this[_0x1be0('0x12')]['remove'](_0x237a81),_0x237a81[_0x1be0('0x6')]();}['refreshVisibility'](){for(const _0x354338 of this[_0x1be0('0x12')])_0x354338['refreshVisibility']();}['refreshPositioning'](){this[_0x1be0('0x3')]['refreshPositioning']();}['getByInnerView'](_0x1cd9fe){return this[_0x1be0('0x12')][_0x1be0('0x14')](_0x1cd9fe);}['deactivateAll'](){this['fire'](_0x1be0('0x1'));}['destroy'](){for(const _0x5be55a of this[_0x1be0('0x12')])_0x5be55a[_0x1be0('0x6')]();this[_0x1be0('0x3')]['destroy'](),this['collection'][_0x1be0('0x6')](),super[_0x1be0('0x6')]();}[_0x1be0('0x2')](_0x2fea11){this[_0x1be0('0x8')](_0x1be0('0x11'),_0x2fea11);}['createAnnotation'](_0x2b6f04){return new _0x32746a(_0x2b6f04);}['createAnnotationView'](_0x1385da,_0xb07c7d){return new _0xa11573(_0x1385da,_0xb07c7d);}[_0x1be0('0xb')](_0x353995){const _0xf8e3a6=new Set(this[_0x1be0('0x7')]);_0xf8e3a6[_0x1be0('0x9')](_0x353995),this[_0x1be0('0x7')]=_0xf8e3a6;}[_0x1be0('0xf')](_0x3a1753){const _0x4a83e4=new Set(this[_0x1be0('0x7')]);_0x4a83e4[_0x1be0('0xe')](_0x3a1753),this[_0x1be0('0x7')]=_0x4a83e4;}[_0x1be0('0x0')](){const _0x1ca9a6=this[_0x1be0('0x12')],_0x15eab0=this[_0x1be0('0x3')];function _0x37078d(_0x127730){const _0x338d91=_0x127730['source'];_0x338d91[_0x1be0('0x4')]&&!_0x15eab0[_0x1be0('0xa')](_0x338d91)?_0x15eab0['add'](_0x338d91):!_0x338d91[_0x1be0('0x4')]&&_0x15eab0[_0x1be0('0xa')](_0x338d91)&&_0x15eab0['remove'](_0x338d91);}this[_0x1be0('0x5')](_0x1ca9a6,_0x1be0('0x9'),(_0x5bb336,_0x5ed6fe)=>{_0x5ed6fe[_0x1be0('0x4')]&&_0x15eab0[_0x1be0('0x9')](_0x5ed6fe),this[_0x1be0('0x5')](_0x5ed6fe,_0x1be0('0xd'),_0x37078d);}),this[_0x1be0('0x5')](_0x1ca9a6,_0x1be0('0x13'),(_0x1a7d30,_0x2474a2)=>{_0x15eab0[_0x1be0('0xa')](_0x2474a2)&&_0x15eab0['remove'](_0x2474a2),this[_0x1be0('0x10')](_0x2474a2,_0x1be0('0xd'),_0x37078d);});}}
23
+ const _0x5498=['remove','isVisible','createAnnotationView','stopListening','source','add','refreshPositioning','activeAnnotations','change:isVisible','has','Annotations','_deactivateAllAnnotations','fire','collection','_removeActiveAnnotation','set','_activateAnnotation','createAnnotation','_visibleAnnotations','deactivateAll','_bindAnnotationsToVisibleAnnotations','destroy','activate','listenTo','pluginName','getByInnerView'];(function(_0x52c4df,_0x5498ba){const _0x1fde21=function(_0x4e7cf9){while(--_0x4e7cf9){_0x52c4df['push'](_0x52c4df['shift']());}};_0x1fde21(++_0x5498ba);}(_0x5498,0x1c0));const _0x1fde=function(_0x52c4df,_0x5498ba){_0x52c4df=_0x52c4df-0x0;let _0x1fde21=_0x5498[_0x52c4df];return _0x1fde21;};import{ContextPlugin as _0x45d1af}from'ckeditor5/src/core';import _0x50a31c from'./annotation';import _0x40052b from'./annotationcollection';import _0x2f517d from'./view/annotationview';export default class V extends _0x45d1af{static get[_0x1fde('0x12')](){return _0x1fde('0x4');}constructor(_0x5ddeb2){super(_0x5ddeb2),this[_0x1fde('0x7')]=new _0x40052b(),this[_0x1fde('0xc')]=new _0x40052b(),this[_0x1fde('0x9')](_0x1fde('0x1'),new Set()),this['_bindAnnotationsToVisibleAnnotations']();}[_0x1fde('0x19')](_0x26147c){this[_0x1fde('0x7')][_0x1fde('0x19')](_0x26147c);}['remove'](_0x2f7090){this[_0x1fde('0x7')][_0x1fde('0x14')](_0x2f7090),_0x2f7090[_0x1fde('0xf')]();}['refreshVisibility'](){for(const _0x233632 of this[_0x1fde('0x7')])_0x233632['refreshVisibility']();}[_0x1fde('0x0')](){this['_visibleAnnotations']['refreshPositioning']();}[_0x1fde('0x13')](_0x2e9c23){return this[_0x1fde('0x7')][_0x1fde('0x13')](_0x2e9c23);}[_0x1fde('0xd')](){this[_0x1fde('0x6')](_0x1fde('0x5'));}[_0x1fde('0xf')](){for(const _0x15fb79 of this[_0x1fde('0x7')])_0x15fb79['destroy']();this[_0x1fde('0xc')][_0x1fde('0xf')](),this[_0x1fde('0x7')][_0x1fde('0xf')](),super['destroy']();}[_0x1fde('0x10')](_0x266dff){this[_0x1fde('0x6')](_0x1fde('0xa'),_0x266dff);}[_0x1fde('0xb')](_0x4b681f){return new _0x50a31c(_0x4b681f);}[_0x1fde('0x16')](_0x175b03,_0x2e2226){return new _0x2f517d(_0x175b03,_0x2e2226);}['_addActiveAnnotation'](_0x40fbff){const _0x16ee51=new Set(this[_0x1fde('0x1')]);_0x16ee51['add'](_0x40fbff),this[_0x1fde('0x1')]=_0x16ee51;}[_0x1fde('0x8')](_0x534c33){const _0x3fd3e6=new Set(this[_0x1fde('0x1')]);_0x3fd3e6['delete'](_0x534c33),this[_0x1fde('0x1')]=_0x3fd3e6;}[_0x1fde('0xe')](){const _0x4af0f6=this[_0x1fde('0x7')],_0x3a3d2c=this[_0x1fde('0xc')];function _0xf10c7(_0x5e26af){const _0x2034bb=_0x5e26af[_0x1fde('0x18')];_0x2034bb['isVisible']&&!_0x3a3d2c[_0x1fde('0x3')](_0x2034bb)?_0x3a3d2c['add'](_0x2034bb):!_0x2034bb[_0x1fde('0x15')]&&_0x3a3d2c[_0x1fde('0x3')](_0x2034bb)&&_0x3a3d2c[_0x1fde('0x14')](_0x2034bb);}this[_0x1fde('0x11')](_0x4af0f6,_0x1fde('0x19'),(_0x4787f3,_0x1c1af5)=>{_0x1c1af5[_0x1fde('0x15')]&&_0x3a3d2c[_0x1fde('0x19')](_0x1c1af5),this[_0x1fde('0x11')](_0x1c1af5,'change:isVisible',_0xf10c7);}),this['listenTo'](_0x4af0f6,'remove',(_0x238e95,_0x3850b6)=>{_0x3a3d2c['has'](_0x3850b6)&&_0x3a3d2c[_0x1fde('0x14')](_0x3850b6),this[_0x1fde('0x17')](_0x3850b6,_0x1fde('0x2'),_0xf10c7);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x22d0=['filter','annotationsuis-activate-missing-ui','push','attach','requires','has','from','annotationsuis-register-already-registered','init','pluginName','_uisData','get','_uis','set','detach','setActiveAnnotation','add','_deactivateAllAnnotations','_setSelectedAnnotations','isActive','activate','destroy','_visibleAnnotations','change:activeAnnotation','_activateAnnotation','deactivate','stopListening','refilterAnnotations','_addActiveAnnotation','length','AnnotationsUIs','switchTo','size','_assertAnnotationDoesNotBelongToMultipleUIs','deactivateAll','activeUIs','collection','function','listenTo','plugins','delete','context'];(function(_0x1aab56,_0x22d012){const _0x2c5d94=function(_0x483b12){while(--_0x483b12){_0x1aab56['push'](_0x1aab56['shift']());}};_0x2c5d94(++_0x22d012);}(_0x22d0,0xd4));const _0x2c5d=function(_0x1aab56,_0x22d012){_0x1aab56=_0x1aab56-0x0;let _0x2c5d94=_0x22d0[_0x1aab56];return _0x2c5d94;};import{ContextPlugin as _0x5c6968}from'ckeditor5/src/core';import{CKEditorError as _0x20c69d}from'ckeditor5/src/utils';import _0x41e3e4,{bindAnnotationCollections as _0x505d13}from'./annotationcollection';import _0x15e37b from'./annotations';export default class I extends _0x5c6968{static get[_0x2c5d('0x2')](){return[_0x15e37b];}static get[_0x2c5d('0x7')](){return _0x2c5d('0x1c');}constructor(_0x1bb737){super(_0x1bb737),this[_0x2c5d('0x21')]=new Set(),this['_uis']=new Map(),this[_0x2c5d('0x8')]=new Map();}[_0x2c5d('0x6')](){const _0x38fd93=this[_0x2c5d('0x27')][_0x2c5d('0x25')]['get'](_0x15e37b);this[_0x2c5d('0x24')](_0x38fd93,_0x2c5d('0x16'),(_0x182303,_0x370bb3)=>{for(const _0x21355f of this[_0x2c5d('0x21')]){const _0x529e42=this[_0x2c5d('0xa')][_0x2c5d('0x9')](_0x21355f);(0x0,this[_0x2c5d('0x8')][_0x2c5d('0x9')](_0x21355f)[_0x2c5d('0x28')])(_0x370bb3)&&_0x529e42[_0x2c5d('0xd')](_0x370bb3);}}),this[_0x2c5d('0x24')](_0x38fd93,_0x2c5d('0xf'),()=>{for(const _0x4f2783 of this['activeUIs']){this[_0x2c5d('0xa')]['get'](_0x4f2783)[_0x2c5d('0xd')](null);}}),this[_0x2c5d('0x24')](_0x38fd93[_0x2c5d('0x14')],_0x2c5d('0xe'),(_0x3cfaa5,_0x2e3da9)=>{this[_0x2c5d('0x1f')](_0x2e3da9);});}['hasActive'](){return this[_0x2c5d('0x21')][_0x2c5d('0x1e')]>0x0;}['isActive'](_0x4d3b8e){return this[_0x2c5d('0x21')][_0x2c5d('0x3')](_0x4d3b8e);}['activate'](_0x4ce587,_0x6f673e=()=>!0x0){const _0x2480fe=this[_0x2c5d('0x27')]['plugins'][_0x2c5d('0x9')](_0x15e37b);if(!this[_0x2c5d('0xa')]['has'](_0x4ce587))throw new _0x20c69d(_0x2c5d('0x29'),this,{'uiName':_0x4ce587});this[_0x2c5d('0x11')](_0x4ce587)&&this[_0x2c5d('0x17')](_0x4ce587),this[_0x2c5d('0x21')][_0x2c5d('0xe')](_0x4ce587);const _0x58f459=new _0x41e3e4(),_0x36e579=_0x2480fe[_0x2c5d('0x14')];_0x505d13({'source':_0x36e579,'target':_0x58f459,'filter':_0x6f673e}),this[_0x2c5d('0x8')][_0x2c5d('0xb')](_0x4ce587,{'collection':_0x58f459,'filter':_0x6f673e});const _0x4b29cb=this[_0x2c5d('0xa')][_0x2c5d('0x9')](_0x4ce587);_0x4b29cb['attach'](_0x58f459),this[_0x2c5d('0x24')](_0x4b29cb,_0x2c5d('0x15'),(_0x5dd907,_0x31b865,_0x42b026,_0x435b58)=>{_0x435b58&&_0x2480fe['_removeActiveAnnotation'](_0x435b58),_0x42b026&&_0x2480fe[_0x2c5d('0x1a')](_0x42b026);});}[_0x2c5d('0x17')](_0xd7bab2){this[_0x2c5d('0x21')][_0x2c5d('0x26')](_0xd7bab2);const _0x198417=this[_0x2c5d('0xa')][_0x2c5d('0x9')](_0xd7bab2);_0x198417[_0x2c5d('0xc')](),this[_0x2c5d('0x18')](_0x198417),this[_0x2c5d('0x8')]['get'](_0xd7bab2)[_0x2c5d('0x22')][_0x2c5d('0x13')](),this[_0x2c5d('0x8')][_0x2c5d('0x26')](_0xd7bab2);}[_0x2c5d('0x1d')](_0x25dd41){const _0x106900=this['context'][_0x2c5d('0x25')][_0x2c5d('0x9')](_0x15e37b),_0x584d8a=Array[_0x2c5d('0x4')](_0x106900['activeAnnotations'])[0x0]||null;this[_0x2c5d('0x20')](),this[_0x2c5d('0x12')](_0x25dd41);const _0x15af2c=this['_uis']['get'](_0x25dd41);_0x15af2c['setActiveAnnotation'](_0x584d8a),_0x15af2c[_0x2c5d('0x10')]&&_0x584d8a&&_0x15af2c[_0x2c5d('0x10')]([_0x584d8a]);}[_0x2c5d('0x20')](){for(const _0x3557f7 of this[_0x2c5d('0x21')])this[_0x2c5d('0x17')](_0x3557f7);}['register'](_0x5d4e74,_0x26a303){if(this['_uis'][_0x2c5d('0x3')](_0x5d4e74))throw new _0x20c69d(_0x2c5d('0x5'));if(_0x2c5d('0x23')!=typeof _0x26a303[_0x2c5d('0x1')]||_0x2c5d('0x23')!=typeof _0x26a303[_0x2c5d('0xc')]||_0x2c5d('0x23')!=typeof _0x26a303[_0x2c5d('0xd')])throw new _0x20c69d('annotationsuis-register-invalid-interface',null);this[_0x2c5d('0xa')][_0x2c5d('0xb')](_0x5d4e74,_0x26a303);}[_0x2c5d('0x19')](){const _0x5f1991=this['context']['plugins'][_0x2c5d('0x9')](_0x15e37b)[_0x2c5d('0x22')],_0x381280=new Map(),_0x3bd8d7=Array[_0x2c5d('0x4')](this['activeUIs']);for(const _0x148516 of this['activeUIs']){const _0x35e586=this[_0x2c5d('0x8')][_0x2c5d('0x9')](_0x148516)[_0x2c5d('0x22')];for(const _0x2944b3 of _0x35e586)_0x381280[_0x2c5d('0xb')](_0x2944b3,_0x148516);}for(const _0x34276d of _0x5f1991){const _0x3c90f5=_0x381280[_0x2c5d('0x9')](_0x34276d);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x34276d);const _0x3dc1ca=_0x3bd8d7['find'](_0x798d0f=>this['_uisData'][_0x2c5d('0x9')](_0x798d0f)[_0x2c5d('0x28')](_0x34276d));_0x3c90f5!==_0x3dc1ca&&(_0x3c90f5&&this[_0x2c5d('0x8')]['get'](_0x3c90f5)[_0x2c5d('0x22')]['remove'](_0x34276d),_0x3dc1ca&&this[_0x2c5d('0x8')][_0x2c5d('0x9')](_0x3dc1ca)[_0x2c5d('0x22')][_0x2c5d('0xe')](_0x34276d));}}['destroy'](){this['deactivateAll'](),super[_0x2c5d('0x13')]();}[_0x2c5d('0x1f')](_0x5809a2){const _0x232588=[];for(const _0xfd2e36 of this[_0x2c5d('0x21')]){(0x0,this[_0x2c5d('0x8')][_0x2c5d('0x9')](_0xfd2e36)['filter'])(_0x5809a2)&&_0x232588[_0x2c5d('0x0')](_0xfd2e36);}if(_0x232588[_0x2c5d('0x1b')]>0x1)throw new _0x20c69d('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x232588,'annotationType':_0x5809a2['type']});}}
23
+ const _0x1e14=['plugins','context','function','get','listenTo','pluginName','isActive','push','annotationsuis-annotation-mismatch','find','change:activeAnnotation','annotationsuis-register-already-registered','from','set','setActiveAnnotation','activate','delete','_removeActiveAnnotation','deactivateAll','detach','add','filter','_visibleAnnotations','deactivate','type','stopListening','annotationsuis-activate-missing-ui','collection','destroy','switchTo','_uisData','has','_uis','_deactivateAllAnnotations','_activateAnnotation','activeUIs','AnnotationsUIs','size','annotationsuis-register-invalid-interface','_assertAnnotationDoesNotBelongToMultipleUIs','_setSelectedAnnotations','init'];(function(_0x1656f8,_0x1e144d){const _0x4305ac=function(_0x374eff){while(--_0x374eff){_0x1656f8['push'](_0x1656f8['shift']());}};_0x4305ac(++_0x1e144d);}(_0x1e14,0xc1));const _0x4305=function(_0x1656f8,_0x1e144d){_0x1656f8=_0x1656f8-0x0;let _0x4305ac=_0x1e14[_0x1656f8];return _0x4305ac;};import{ContextPlugin as _0x2000cf}from'ckeditor5/src/core';import{CKEditorError as _0x4921e7}from'ckeditor5/src/utils';import _0x59794a,{bindAnnotationCollections as _0x3e10e2}from'./annotationcollection';import _0x3c6d73 from'./annotations';export default class I extends _0x2000cf{static get['requires'](){return[_0x3c6d73];}static get[_0x4305('0x16')](){return _0x4305('0xb');}constructor(_0x1b5973){super(_0x1b5973),this[_0x4305('0xa')]=new Set(),this[_0x4305('0x7')]=new Map(),this[_0x4305('0x5')]=new Map();}[_0x4305('0x10')](){const _0x365537=this['context'][_0x4305('0x11')][_0x4305('0x14')](_0x3c6d73);this[_0x4305('0x15')](_0x365537,_0x4305('0x9'),(_0x25dd40,_0x5bd58b)=>{for(const _0x3f0995 of this['activeUIs']){const _0x26edbf=this[_0x4305('0x7')][_0x4305('0x14')](_0x3f0995);(0x0,this[_0x4305('0x5')][_0x4305('0x14')](_0x3f0995)[_0x4305('0x26')])(_0x5bd58b)&&_0x26edbf[_0x4305('0x1f')](_0x5bd58b);}}),this[_0x4305('0x15')](_0x365537,_0x4305('0x8'),()=>{for(const _0x1fd5f3 of this[_0x4305('0xa')]){this[_0x4305('0x7')][_0x4305('0x14')](_0x1fd5f3)[_0x4305('0x1f')](null);}}),this[_0x4305('0x15')](_0x365537['_visibleAnnotations'],'add',(_0x44680a,_0x1e594d)=>{this[_0x4305('0xe')](_0x1e594d);});}['hasActive'](){return this[_0x4305('0xa')][_0x4305('0xc')]>0x0;}['isActive'](_0x342e83){return this[_0x4305('0xa')][_0x4305('0x6')](_0x342e83);}[_0x4305('0x20')](_0x5d6cac,_0x5d8d32=()=>!0x0){const _0x4ab1dd=this[_0x4305('0x12')][_0x4305('0x11')]['get'](_0x3c6d73);if(!this[_0x4305('0x7')][_0x4305('0x6')](_0x5d6cac))throw new _0x4921e7(_0x4305('0x1'),this,{'uiName':_0x5d6cac});this[_0x4305('0x17')](_0x5d6cac)&&this['deactivate'](_0x5d6cac),this[_0x4305('0xa')][_0x4305('0x25')](_0x5d6cac);const _0x4c7d36=new _0x59794a(),_0x267e0c=_0x4ab1dd[_0x4305('0x27')];_0x3e10e2({'source':_0x267e0c,'target':_0x4c7d36,'filter':_0x5d8d32}),this[_0x4305('0x5')][_0x4305('0x1e')](_0x5d6cac,{'collection':_0x4c7d36,'filter':_0x5d8d32});const _0x23dd7f=this[_0x4305('0x7')]['get'](_0x5d6cac);_0x23dd7f['attach'](_0x4c7d36),this[_0x4305('0x15')](_0x23dd7f,_0x4305('0x1b'),(_0x593b14,_0x363410,_0x5758f7,_0x57f490)=>{_0x57f490&&_0x4ab1dd[_0x4305('0x22')](_0x57f490),_0x5758f7&&_0x4ab1dd['_addActiveAnnotation'](_0x5758f7);});}[_0x4305('0x28')](_0x3f02f2){this[_0x4305('0xa')][_0x4305('0x21')](_0x3f02f2);const _0x44d424=this[_0x4305('0x7')][_0x4305('0x14')](_0x3f02f2);_0x44d424[_0x4305('0x24')](),this[_0x4305('0x0')](_0x44d424),this[_0x4305('0x5')][_0x4305('0x14')](_0x3f02f2)[_0x4305('0x2')][_0x4305('0x3')](),this['_uisData']['delete'](_0x3f02f2);}[_0x4305('0x4')](_0x4278fc){const _0x1264c2=this[_0x4305('0x12')][_0x4305('0x11')][_0x4305('0x14')](_0x3c6d73),_0x566c85=Array[_0x4305('0x1d')](_0x1264c2['activeAnnotations'])[0x0]||null;this[_0x4305('0x23')](),this['activate'](_0x4278fc);const _0x58d637=this[_0x4305('0x7')][_0x4305('0x14')](_0x4278fc);_0x58d637['setActiveAnnotation'](_0x566c85),_0x58d637[_0x4305('0xf')]&&_0x566c85&&_0x58d637[_0x4305('0xf')]([_0x566c85]);}[_0x4305('0x23')](){for(const _0x2e4ab9 of this['activeUIs'])this['deactivate'](_0x2e4ab9);}['register'](_0x1cc07d,_0x1b7a67){if(this['_uis'][_0x4305('0x6')](_0x1cc07d))throw new _0x4921e7(_0x4305('0x1c'));if(_0x4305('0x13')!=typeof _0x1b7a67['attach']||_0x4305('0x13')!=typeof _0x1b7a67[_0x4305('0x24')]||'function'!=typeof _0x1b7a67[_0x4305('0x1f')])throw new _0x4921e7(_0x4305('0xd'),null);this[_0x4305('0x7')][_0x4305('0x1e')](_0x1cc07d,_0x1b7a67);}['refilterAnnotations'](){const _0x25d903=this[_0x4305('0x12')][_0x4305('0x11')][_0x4305('0x14')](_0x3c6d73)[_0x4305('0x2')],_0x57f492=new Map(),_0x4814de=Array[_0x4305('0x1d')](this['activeUIs']);for(const _0x1425fa of this[_0x4305('0xa')]){const _0x5c1ede=this['_uisData'][_0x4305('0x14')](_0x1425fa)['collection'];for(const _0x8f5122 of _0x5c1ede)_0x57f492[_0x4305('0x1e')](_0x8f5122,_0x1425fa);}for(const _0x2afee5 of _0x25d903){const _0x51c0ec=_0x57f492[_0x4305('0x14')](_0x2afee5);this[_0x4305('0xe')](_0x2afee5);const _0x180929=_0x4814de[_0x4305('0x1a')](_0x34f02d=>this[_0x4305('0x5')][_0x4305('0x14')](_0x34f02d)[_0x4305('0x26')](_0x2afee5));_0x51c0ec!==_0x180929&&(_0x51c0ec&&this[_0x4305('0x5')][_0x4305('0x14')](_0x51c0ec)[_0x4305('0x2')]['remove'](_0x2afee5),_0x180929&&this[_0x4305('0x5')][_0x4305('0x14')](_0x180929)['collection'][_0x4305('0x25')](_0x2afee5));}}[_0x4305('0x3')](){this[_0x4305('0x23')](),super['destroy']();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x52119d){const _0x59463d=[];for(const _0x46bfd4 of this[_0x4305('0xa')]){(0x0,this[_0x4305('0x5')][_0x4305('0x14')](_0x46bfd4)['filter'])(_0x52119d)&&_0x59463d[_0x4305('0x18')](_0x46bfd4);}if(_0x59463d['length']>0x1)throw new _0x4921e7(_0x4305('0x19'),null,{'matchedUIs':_0x59463d,'annotationType':_0x52119d[_0x4305('0x29')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2042=['init','containsRange','get','_editorAnnotationsData','refreshSelectedViews','editor','has','uiUpdate','from','view','editing','selection','keys','addSourceCollector','sort','remove','delete','map','document','focusTracker','innerView','getRanges','blur','isCollapsed','collection','fire','editorannotations-invalid-source-callback','isEqual','directChange','listenTo','isReadOnly','refresh','change:isFocused','getOrderedSelectedAnnotations','update','function','annotation','range','add','pluginName','requires','set','model','element','change:range','EditorAnnotations','getByInnerView','_dataCollectors','push','hasDomSelection'];(function(_0x287f2,_0x204281){const _0x5740b8=function(_0x45d309){while(--_0x45d309){_0x287f2['push'](_0x287f2['shift']());}};_0x5740b8(++_0x204281);}(_0x2042,0x64));const _0x5740=function(_0x287f2,_0x204281){_0x287f2=_0x287f2-0x0;let _0x5740b8=_0x2042[_0x287f2];return _0x5740b8;};import{Plugin as _0x4a5851}from'ckeditor5/src/core';import{CKEditorError as _0x2863d4}from'ckeditor5/src/utils';import{debounce as _0x160f76}from'lodash-es';import _0x29de9b from'./annotations';export default class k extends _0x4a5851{static get[_0x5740('0x28')](){return[_0x29de9b];}static get[_0x5740('0x27')](){return _0x5740('0x2d');}constructor(_0x3a9e75){super(_0x3a9e75),this[_0x5740('0x2f')]=new Set();}[_0x5740('0x0')](){const _0x547a4b=this['editor'],_0x2e1561=_0x547a4b['plugins'][_0x5740('0x2')](_0x29de9b),_0x267e38=_0x547a4b['model'][_0x5740('0x12')][_0x5740('0xb')],_0x5c7edb=_0x160f76(()=>this[_0x5740('0x4')](),0xa);_0x267e38['on'](_0x5740('0x2c'),(_0x279284,_0x237b31)=>{_0x237b31[_0x5740('0x1c')]&&(_0x5c7edb['cancel'](),this[_0x5740('0x4')]());}),this['listenTo'](_0x547a4b['editing']['view']['document'],'change:isFocused',(_0x555f91,_0x58dab3,_0x4bc2d7)=>{_0x4bc2d7&&_0x5c7edb();}),this[_0x5740('0x1d')](_0x547a4b['ui'][_0x5740('0x13')],_0x5740('0x20'),(_0x23aa2a,_0x5227b6,_0x27616e)=>{_0x27616e||_0x547a4b[_0x5740('0x1e')]||this[_0x5740('0x19')](_0x5740('0x16'),{'isAnnotationTracked':_0x40a5e2=>this['_editorAnnotationsData'][_0x5740('0x6')](_0x40a5e2['innerView'])});}),this['listenTo'](this[_0x5740('0x5')]['ui'],_0x5740('0x22'),()=>this[_0x5740('0x19')](_0x5740('0x7')));const _0x1d6c37=new Set();this[_0x5740('0x1d')](_0x2e1561[_0x5740('0x18')],'add',(_0x12723d,_0x123d47)=>{for(const _0x430305 of this[_0x5740('0x3')][_0x5740('0xc')]())if(_0x430305===_0x123d47[_0x5740('0x14')]){_0x547a4b['ui'][_0x5740('0x13')][_0x5740('0x26')](_0x123d47[_0x5740('0x9')]['element']),_0x1d6c37[_0x5740('0x26')](_0x123d47[_0x5740('0x9')]);break;}}),this[_0x5740('0x1d')](_0x2e1561[_0x5740('0x18')],_0x5740('0xf'),(_0x4de0e5,_0x37ae72)=>{_0x1d6c37['has'](_0x37ae72[_0x5740('0x9')])&&(_0x547a4b['ui'][_0x5740('0x13')][_0x5740('0xf')](_0x37ae72[_0x5740('0x9')][_0x5740('0x2b')]),_0x1d6c37[_0x5740('0x10')](_0x37ae72['view']));});}[_0x5740('0x31')](){return this[_0x5740('0x5')][_0x5740('0xa')]['view'][_0x5740('0x31')];}[_0x5740('0xd')](_0x5e8846){if(_0x5740('0x23')!=typeof _0x5e8846)throw new _0x2863d4(_0x5740('0x1a'));this[_0x5740('0x2f')][_0x5740('0x26')](_0x5e8846);}[_0x5740('0x4')](){this[_0x5740('0x19')](_0x5740('0x1f'));}[_0x5740('0x21')]({activeAnnotation:_0x149018,annotations:_0x5b48c5}){const _0x99bad2=[],_0x3783ba=this[_0x5740('0x5')][_0x5740('0x2a')]['document']['selection'],_0x4d3c33=Array[_0x5740('0x8')](_0x3783ba[_0x5740('0x15')]());for(const [_0x59583a,_0x4ce31b]of this[_0x5740('0x3')]){const _0x1917ef=_0x55412f(_0x4ce31b),_0x68162e=_0x5b48c5[_0x5740('0x2e')](_0x59583a);_0x1917ef&&_0x68162e&&_0x99bad2[_0x5740('0x30')]({'annotation':_0x68162e,'range':_0x1917ef});}function _0x55412f(_0x64b001){for(const _0x5c4332 of _0x64b001)for(const _0x25391e of _0x4d3c33)if(_0x5c4332[_0x5740('0x1')](_0x25391e,!_0x3783ba[_0x5740('0x17')]))return _0x5c4332;return null;}return _0x99bad2[_0x5740('0xe')]((_0x509091,_0x3d4f16)=>{const _0x1e96f1=_0x509091[_0x5740('0x25')],_0x470545=_0x3d4f16['range'];if(!_0x1e96f1[_0x5740('0x1b')](_0x470545)){if(_0x1e96f1['containsRange'](_0x470545,!0x0))return 0x1;if(_0x470545[_0x5740('0x1')](_0x1e96f1,!0x0))return-0x1;}return _0x509091[_0x5740('0x24')]==_0x149018?-0x1:_0x3d4f16[_0x5740('0x24')]==_0x149018?0x1:0x0;})[_0x5740('0x11')](_0x55f440=>_0x55f440[_0x5740('0x24')]);}get[_0x5740('0x3')](){const _0x3a4fa4=new Map();for(const _0x3fc842 of Array[_0x5740('0x8')](this[_0x5740('0x2f')]))for(const [_0x11f990,_0x454741]of _0x3fc842())_0x3a4fa4[_0x5740('0x29')](_0x11f990,_0x454741);return _0x3a4fa4;}}
23
+ const _0xc155=['plugins','addSourceCollector','has','keys','from','focusTracker','getByInnerView','element','innerView','model','collection','directChange','update','getOrderedSelectedAnnotations','editorannotations-invalid-source-callback','editing','sort','hasDomSelection','get','containsRange','uiUpdate','_dataCollectors','getRanges','set','pluginName','listenTo','change:range','document','isReadOnly','fire','push','view','range','isCollapsed','annotation','cancel','change:isFocused','selection','_editorAnnotationsData','remove','map','add','EditorAnnotations','refreshSelectedViews','editor','blur','init','refresh'];(function(_0x18c90d,_0xc15590){const _0x1ec429=function(_0x408b96){while(--_0x408b96){_0x18c90d['push'](_0x18c90d['shift']());}};_0x1ec429(++_0xc15590);}(_0xc155,0xcc));const _0x1ec4=function(_0x18c90d,_0xc15590){_0x18c90d=_0x18c90d-0x0;let _0x1ec429=_0xc155[_0x18c90d];return _0x1ec429;};import{Plugin as _0x595d09}from'ckeditor5/src/core';import{CKEditorError as _0x233116}from'ckeditor5/src/utils';import{debounce as _0x40ff51}from'lodash-es';import _0x2954c9 from'./annotations';export default class k extends _0x595d09{static get['requires'](){return[_0x2954c9];}static get[_0x1ec4('0xc')](){return _0x1ec4('0x1e');}constructor(_0xb14f8f){super(_0xb14f8f),this[_0x1ec4('0x9')]=new Set();}[_0x1ec4('0x22')](){const _0xc18a97=this[_0x1ec4('0x20')],_0x36e361=_0xc18a97[_0x1ec4('0x24')][_0x1ec4('0x6')](_0x2954c9),_0x4d20db=_0xc18a97[_0x1ec4('0x2d')][_0x1ec4('0xf')][_0x1ec4('0x19')],_0x24d684=_0x40ff51(()=>this[_0x1ec4('0x1f')](),0xa);_0x4d20db['on'](_0x1ec4('0xe'),(_0x19bd92,_0x3ca9df)=>{_0x3ca9df[_0x1ec4('0x2f')]&&(_0x24d684[_0x1ec4('0x17')](),this[_0x1ec4('0x1f')]());}),this[_0x1ec4('0xd')](_0xc18a97['editing'][_0x1ec4('0x13')][_0x1ec4('0xf')],_0x1ec4('0x18'),(_0x1bbd8b,_0x34f00a,_0x32276e)=>{_0x32276e&&_0x24d684();}),this[_0x1ec4('0xd')](_0xc18a97['ui'][_0x1ec4('0x29')],_0x1ec4('0x18'),(_0x4ac596,_0x5d0794,_0x1abbd2)=>{_0x1abbd2||_0xc18a97[_0x1ec4('0x10')]||this[_0x1ec4('0x11')](_0x1ec4('0x21'),{'isAnnotationTracked':_0x574511=>this['_editorAnnotationsData'][_0x1ec4('0x26')](_0x574511[_0x1ec4('0x2c')])});}),this[_0x1ec4('0xd')](this[_0x1ec4('0x20')]['ui'],_0x1ec4('0x0'),()=>this[_0x1ec4('0x11')](_0x1ec4('0x8')));const _0x29d22b=new Set();this['listenTo'](_0x36e361[_0x1ec4('0x2e')],_0x1ec4('0x1d'),(_0x19c11c,_0x2d5701)=>{for(const _0x3ead9f of this[_0x1ec4('0x1a')][_0x1ec4('0x27')]())if(_0x3ead9f===_0x2d5701[_0x1ec4('0x2c')]){_0xc18a97['ui']['focusTracker'][_0x1ec4('0x1d')](_0x2d5701[_0x1ec4('0x13')][_0x1ec4('0x2b')]),_0x29d22b['add'](_0x2d5701[_0x1ec4('0x13')]);break;}}),this['listenTo'](_0x36e361[_0x1ec4('0x2e')],_0x1ec4('0x1b'),(_0x3805c2,_0xee105b)=>{_0x29d22b[_0x1ec4('0x26')](_0xee105b[_0x1ec4('0x13')])&&(_0xc18a97['ui']['focusTracker'][_0x1ec4('0x1b')](_0xee105b[_0x1ec4('0x13')][_0x1ec4('0x2b')]),_0x29d22b['delete'](_0xee105b[_0x1ec4('0x13')]));});}[_0x1ec4('0x5')](){return this[_0x1ec4('0x20')][_0x1ec4('0x3')][_0x1ec4('0x13')][_0x1ec4('0x5')];}[_0x1ec4('0x25')](_0x2f2a30){if('function'!=typeof _0x2f2a30)throw new _0x233116(_0x1ec4('0x2'));this[_0x1ec4('0x9')][_0x1ec4('0x1d')](_0x2f2a30);}[_0x1ec4('0x1f')](){this['fire'](_0x1ec4('0x23'));}[_0x1ec4('0x1')]({activeAnnotation:_0x28fefa,annotations:_0x564371}){const _0x50a85d=[],_0x93cfc=this[_0x1ec4('0x20')][_0x1ec4('0x2d')][_0x1ec4('0xf')][_0x1ec4('0x19')],_0x1ded9b=Array[_0x1ec4('0x28')](_0x93cfc[_0x1ec4('0xa')]());for(const [_0x469179,_0x4ad0a2]of this[_0x1ec4('0x1a')]){const _0x510681=_0x236b14(_0x4ad0a2),_0xb973d0=_0x564371[_0x1ec4('0x2a')](_0x469179);_0x510681&&_0xb973d0&&_0x50a85d[_0x1ec4('0x12')]({'annotation':_0xb973d0,'range':_0x510681});}function _0x236b14(_0x9bc714){for(const _0x105437 of _0x9bc714)for(const _0x35631f of _0x1ded9b)if(_0x105437[_0x1ec4('0x7')](_0x35631f,!_0x93cfc[_0x1ec4('0x15')]))return _0x105437;return null;}return _0x50a85d[_0x1ec4('0x4')]((_0x251f4b,_0x325377)=>{const _0xc82b9e=_0x251f4b[_0x1ec4('0x14')],_0x23ce45=_0x325377[_0x1ec4('0x14')];if(!_0xc82b9e['isEqual'](_0x23ce45)){if(_0xc82b9e[_0x1ec4('0x7')](_0x23ce45,!0x0))return 0x1;if(_0x23ce45[_0x1ec4('0x7')](_0xc82b9e,!0x0))return-0x1;}return _0x251f4b[_0x1ec4('0x16')]==_0x28fefa?-0x1:_0x325377[_0x1ec4('0x16')]==_0x28fefa?0x1:0x0;})[_0x1ec4('0x1c')](_0x466d96=>_0x466d96[_0x1ec4('0x16')]);}get[_0x1ec4('0x1a')](){const _0x140a72=new Map();for(const _0x1d7ee5 of Array[_0x1ec4('0x28')](this[_0x1ec4('0x9')]))for(const [_0x38441e,_0x150fe4]of _0x1d7ee5())_0x140a72[_0x1ec4('0xb')](_0x38441e,_0x150fe4);return _0x140a72;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2e82=['refresh','targetRect','delete','view','Esc','editableElement','stopListening','inlineannotations-not-allowed-with-context','InlineAnnotations','inlineannotations-attach-already-attached','_removeAnnotationFromBalloon','_addAnnotationToBalloon','change:isFocused','_selectedAnnotations','includes','register','addObserver','inlineannotations-detach-not-attached','set','get','getByView','hasActive','update','switchTo','isFocused','has','isAttached','showStack','change:visibleView','annotations','blur','_manuallyClosed','listenTo','context','attach','hasView','_balloon','clear','_setSelectedAnnotations','document','focus','getSelection','focusTracker','editor','init','visibleView','change:height','EditorAnnotations','add','editing','remove','target','setActiveAnnotation','inline','isActive','destroy','plugins','keystrokes','detach','_addedAnnotations','selection','bind','activeAnnotation','requires','updatePosition'];(function(_0x37ef3a,_0x2e82f8){const _0x579209=function(_0xd8fc4c){while(--_0xd8fc4c){_0x37ef3a['push'](_0x37ef3a['shift']());}};_0x579209(++_0x2e82f8);}(_0x2e82,0x14f));const _0x5792=function(_0x37ef3a,_0x2e82f8){_0x37ef3a=_0x37ef3a-0x0;let _0x579209=_0x2e82[_0x37ef3a];return _0x579209;};import{Plugin as _0x4f39d3}from'ckeditor5/src/core';import _0x43122b from'./annotationsuis';import _0x50c7c9 from'./editorannotations';import{ContextualBalloon as _0x1d4ae7}from'ckeditor5/src/ui';import{MouseObserver as _0x15145a}from'ckeditor5/src/engine';import{CKEditorError as _0x457991}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class a extends _0x4f39d3{static get[_0x5792('0x35')](){return[_0x50c7c9,_0x1d4ae7,_0x43122b];}static get['pluginName'](){return _0x5792('0x3f');}constructor(_0x48c18d){super(_0x48c18d),_0x48c18d[_0x5792('0x27')][_0x5792('0x3a')][_0x5792('0x6')](_0x15145a),this[_0x5792('0x10')]=!0x1,this['set'](_0x5792('0x34'),null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x48c18d['plugins'][_0x5792('0x9')](_0x1d4ae7),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[];}[_0x5792('0x22')](){const _0x49b470=this['editor'][_0x5792('0x2e')][_0x5792('0x9')](_0x43122b);_0x49b470[_0x5792('0x17')]===this[_0x5792('0x21')]&&(_0x49b470[_0x5792('0x5')](_0x5792('0x2b'),this),this[_0x5792('0x21')][_0x5792('0x2f')][_0x5792('0x8')]('Esc',(_0x147dc7,_0x320682)=>{const _0x418249=this[_0x5792('0x1a')];if(this[_0x5792('0x10')]&&_0x418249['visibleView']){const _0x364cff=this['annotations']['getByView'](_0x418249[_0x5792('0x23')]);this[_0x5792('0x15')]['add'](_0x364cff),this[_0x5792('0x0')](_0x364cff),_0x320682();}}));}['afterInit'](){const _0x2c2a09=this['editor'][_0x5792('0x2e')]['get'](_0x43122b);_0x2c2a09[_0x5792('0x17')]===this[_0x5792('0x21')]&&(_0x2c2a09[_0x5792('0xb')]()||_0x2c2a09[_0x5792('0xd')]('inline'));}[_0x5792('0x2a')](_0x3ad36a){_0x3ad36a!==this[_0x5792('0x34')]&&(this[_0x5792('0x34')]&&(this[_0x5792('0x34')]['isActive']=!0x1),_0x3ad36a&&this[_0x5792('0x21')]['ui'][_0x5792('0x20')][_0x5792('0xe')]&&(this[_0x5792('0x1')](_0x3ad36a,!0x0),_0x3ad36a[_0x5792('0x2c')]=!0x0),_0x3ad36a||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x3ad36a);}[_0x5792('0x18')](_0x2f034a){this[_0x5792('0x13')]=_0x2f034a;const _0x29c71d=this['editor'][_0x5792('0x2e')][_0x5792('0x9')](_0x43122b),_0x45cb42=this['_balloon'];if(this[_0x5792('0x10')])throw new _0x457991(_0x5792('0x40'),this);if(_0x29c71d[_0x5792('0x17')]!==this[_0x5792('0x21')])throw new _0x457991(_0x5792('0x3e'),this);const _0x1f66df=this[_0x5792('0x21')][_0x5792('0x2e')]['get'](_0x5792('0x25'));this[_0x5792('0x16')](_0x1f66df,_0x5792('0x37'),function(){const _0x55aae8=_0x1f66df['getOrderedSelectedAnnotations']({'activeAnnotation':this['activeAnnotation'],'annotations':this[_0x5792('0x13')]});this[_0x5792('0x1c')](_0x55aae8),this[_0x5792('0x2a')](_0x55aae8[0x0]||null);}[_0x5792('0x33')](this)),this[_0x5792('0x16')](_0x1f66df,_0x5792('0x14'),(_0x1146ed,{isAnnotationTracked:_0x5d1940})=>{this[_0x5792('0x34')]&&_0x5d1940(this[_0x5792('0x34')])&&(this[_0x5792('0x1c')]([]),this['setActiveAnnotation'](null));}),this[_0x5792('0x16')](this[_0x5792('0x21')]['ui'][_0x5792('0x20')],_0x5792('0x2'),(_0x594fc7,_0x4fae53,_0x36f1a9)=>{_0x36f1a9||this[_0x5792('0x2a')](null);}),this['listenTo'](_0x2f034a,_0x5792('0x28'),(_0x352298,_0x86ee90)=>{this[_0x5792('0x0')](_0x86ee90),_0x86ee90===this[_0x5792('0x34')]&&this[_0x5792('0x2a')](null);}),this[_0x5792('0x16')](_0x45cb42,_0x5792('0x12'),(_0x5134fc,_0x32e76e,_0x6a230b,_0x8463d5)=>{if(_0x8463d5&&this[_0x5792('0x3d')](_0x8463d5),!_0x6a230b||!_0x2f034a[_0x5792('0xa')](_0x6a230b))return;const _0x4e1401=_0x2f034a[_0x5792('0xa')](_0x6a230b);this['listenTo'](_0x6a230b,_0x5792('0x24'),()=>{_0x45cb42['updatePosition']();}),this['listenTo'](_0x6a230b,_0x5792('0x3b'),()=>{this[_0x5792('0x15')]['add'](_0x4e1401),this[_0x5792('0x0')](_0x4e1401),this[_0x5792('0x21')][_0x5792('0x27')][_0x5792('0x3a')][_0x5792('0x1e')]();}),this[_0x5792('0x34')]!==_0x4e1401&&this[_0x5792('0x2a')](_0x4e1401);}),this[_0x5792('0x16')](this[_0x5792('0x21')]['ui'],_0x5792('0xc'),()=>{_0x45cb42[_0x5792('0x23')]&&(_0x2f034a[_0x5792('0xa')](_0x45cb42[_0x5792('0x23')])&&_0x45cb42[_0x5792('0x36')]());}),this[_0x5792('0x16')](this[_0x5792('0x21')][_0x5792('0x27')]['view']['document'],'mousedown',()=>{this[_0x5792('0x15')][_0x5792('0x1b')]();}),this[_0x5792('0x21')][_0x5792('0x27')][_0x5792('0x3a')][_0x5792('0x1d')][_0x5792('0x32')][_0x5792('0x3c')]&&this[_0x5792('0x21')][_0x5792('0x27')][_0x5792('0x3a')][_0x5792('0x1e')](),this['isAttached']=!0x0;}[_0x5792('0x30')](){if(!this[_0x5792('0x10')])throw new _0x457991(_0x5792('0x7'),this);this[_0x5792('0x2a')](null);for(const _0x4c2e8f of this[_0x5792('0x31')])this[_0x5792('0x0')](_0x4c2e8f);this[_0x5792('0x3d')](),this[_0x5792('0x10')]=!0x1,this['annotations']=null;}[_0x5792('0x2d')](){this[_0x5792('0x10')]&&this[_0x5792('0x30')]();}[_0x5792('0x1c')](_0x1fe0f1){const _0x11d9eb=this[_0x5792('0x3')];for(const _0x3a7c72 of _0x11d9eb)_0x1fe0f1[_0x5792('0x4')](_0x3a7c72)||this[_0x5792('0x15')][_0x5792('0x39')](_0x3a7c72);for(const _0x519686 of this[_0x5792('0x13')])_0x1fe0f1[_0x5792('0x4')](_0x519686)||this['_removeAnnotationFromBalloon'](_0x519686);if(this[_0x5792('0x21')]['ui']['focusTracker'][_0x5792('0xe')])for(const _0x3d85df of _0x1fe0f1)this[_0x5792('0x1')](_0x3d85df);this[_0x5792('0x3')]=_0x1fe0f1;}['_addAnnotationToBalloon'](_0x1cbda2,_0x41c569){this[_0x5792('0x15')][_0x5792('0xf')](_0x1cbda2)||(this['_addedAnnotations']['has'](_0x1cbda2)||this[_0x5792('0x1a')][_0x5792('0x19')](_0x1cbda2[_0x5792('0x3a')])||(this[_0x5792('0x31')][_0x5792('0x26')](_0x1cbda2),this[_0x5792('0x1a')]['add']({'stackId':_0x1cbda2['view']['id'],'view':_0x1cbda2['view'],'position':{'target':()=>_0x1cbda2[_0x5792('0x29')]||_0x1cbda2[_0x5792('0x38')]||document[_0x5792('0x1f')]()['getRangeAt'](0x0)}})),_0x41c569&&this[_0x5792('0x1a')][_0x5792('0x11')](_0x1cbda2[_0x5792('0x3a')]['id']));}[_0x5792('0x0')](_0x6b5add){this['_addedAnnotations'][_0x5792('0xf')](_0x6b5add)&&this[_0x5792('0x1a')][_0x5792('0x19')](_0x6b5add[_0x5792('0x3a')])&&(this['_addedAnnotations'][_0x5792('0x39')](_0x6b5add),this[_0x5792('0x1a')][_0x5792('0x28')](_0x6b5add[_0x5792('0x3a')]));}}
23
+ const _0x3310=['has','isAttached','switchTo','clear','change:height','hasActive','set','getByView','targetRect','_addAnnotationToBalloon','getSelection','inlineannotations-not-allowed-with-context','annotations','updatePosition','isActive','focus','_setSelectedAnnotations','attach','delete','activeAnnotation','isFocused','_removeAnnotationFromBalloon','listenTo','focusTracker','mousedown','inline','stopListening','add','inlineannotations-attach-already-attached','_manuallyClosed','afterInit','bind','init','detach','hasView','selection','context','_balloon','includes','target','_selectedAnnotations','getRangeAt','Esc','blur','plugins','register','update','_addedAnnotations','visibleView','document','editing','remove','showStack','editableElement','setActiveAnnotation','get','change:isFocused','inlineannotations-detach-not-attached','view','editor','keystrokes'];(function(_0x562da1,_0x331039){const _0x596b1b=function(_0x46ee05){while(--_0x46ee05){_0x562da1['push'](_0x562da1['shift']());}};_0x596b1b(++_0x331039);}(_0x3310,0x1ce));const _0x596b=function(_0x562da1,_0x331039){_0x562da1=_0x562da1-0x0;let _0x596b1b=_0x3310[_0x562da1];return _0x596b1b;};import{Plugin as _0x1fe802}from'ckeditor5/src/core';import _0x7584d1 from'./annotationsuis';import _0x53ad47 from'./editorannotations';import{ContextualBalloon as _0x5a0334}from'ckeditor5/src/ui';import{MouseObserver as _0x3ec191}from'ckeditor5/src/engine';import{CKEditorError as _0x358015}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class a extends _0x1fe802{static get['requires'](){return[_0x53ad47,_0x5a0334,_0x7584d1];}static get['pluginName'](){return'InlineAnnotations';}constructor(_0x93aa10){super(_0x93aa10),_0x93aa10[_0x596b('0xf')][_0x596b('0x17')]['addObserver'](_0x3ec191),this[_0x596b('0x1b')]=!0x1,this[_0x596b('0x20')](_0x596b('0x2d'),null),this['annotations']=null,this[_0x596b('0x37')]=new Set(),this[_0x596b('0x2')]=_0x93aa10[_0x596b('0x9')][_0x596b('0x14')](_0x5a0334),this['_addedAnnotations']=new Set(),this[_0x596b('0x5')]=[];}[_0x596b('0x3a')](){const _0x3f38ac=this['editor'][_0x596b('0x9')][_0x596b('0x14')](_0x7584d1);_0x3f38ac[_0x596b('0x1')]===this[_0x596b('0x18')]&&(_0x3f38ac[_0x596b('0xa')](_0x596b('0x33'),this),this['editor'][_0x596b('0x19')][_0x596b('0x20')](_0x596b('0x7'),(_0x391a9e,_0x2c8c09)=>{const _0x22b2d7=this[_0x596b('0x2')];if(this[_0x596b('0x1b')]&&_0x22b2d7[_0x596b('0xd')]){const _0xace132=this[_0x596b('0x26')][_0x596b('0x21')](_0x22b2d7['visibleView']);this[_0x596b('0x37')]['add'](_0xace132),this['_removeAnnotationFromBalloon'](_0xace132),_0x2c8c09();}}));}[_0x596b('0x38')](){const _0x322f10=this[_0x596b('0x18')][_0x596b('0x9')][_0x596b('0x14')](_0x7584d1);_0x322f10[_0x596b('0x1')]===this[_0x596b('0x18')]&&(_0x322f10[_0x596b('0x1f')]()||_0x322f10[_0x596b('0x1c')](_0x596b('0x33')));}['setActiveAnnotation'](_0x3b96ca){_0x3b96ca!==this[_0x596b('0x2d')]&&(this['activeAnnotation']&&(this[_0x596b('0x2d')]['isActive']=!0x1),_0x3b96ca&&this[_0x596b('0x18')]['ui'][_0x596b('0x31')]['isFocused']&&(this[_0x596b('0x23')](_0x3b96ca,!0x0),_0x3b96ca[_0x596b('0x28')]=!0x0),_0x3b96ca||this[_0x596b('0x2a')]([]),this['activeAnnotation']=_0x3b96ca);}[_0x596b('0x2b')](_0x566d47){this[_0x596b('0x26')]=_0x566d47;const _0xdc5b69=this[_0x596b('0x18')][_0x596b('0x9')]['get'](_0x7584d1),_0x2ee02a=this['_balloon'];if(this[_0x596b('0x1b')])throw new _0x358015(_0x596b('0x36'),this);if(_0xdc5b69[_0x596b('0x1')]!==this[_0x596b('0x18')])throw new _0x358015(_0x596b('0x25'),this);const _0x360554=this[_0x596b('0x18')]['plugins'][_0x596b('0x14')]('EditorAnnotations');this['listenTo'](_0x360554,'refresh',function(){const _0x274ea2=_0x360554['getOrderedSelectedAnnotations']({'activeAnnotation':this['activeAnnotation'],'annotations':this['annotations']});this['_setSelectedAnnotations'](_0x274ea2),this[_0x596b('0x13')](_0x274ea2[0x0]||null);}[_0x596b('0x39')](this)),this['listenTo'](_0x360554,_0x596b('0x8'),(_0x6ea4f5,{isAnnotationTracked:_0x4ffb10})=>{this[_0x596b('0x2d')]&&_0x4ffb10(this[_0x596b('0x2d')])&&(this[_0x596b('0x2a')]([]),this[_0x596b('0x13')](null));}),this['listenTo'](this[_0x596b('0x18')]['ui'][_0x596b('0x31')],_0x596b('0x15'),(_0x25f5b4,_0x538393,_0x15b1bf)=>{_0x15b1bf||this['setActiveAnnotation'](null);}),this['listenTo'](_0x566d47,'remove',(_0x1c0a5e,_0x1d0f93)=>{this[_0x596b('0x2f')](_0x1d0f93),_0x1d0f93===this[_0x596b('0x2d')]&&this[_0x596b('0x13')](null);}),this['listenTo'](_0x2ee02a,'change:visibleView',(_0x3fc138,_0x191a75,_0x25bf5f,_0x5c7951)=>{if(_0x5c7951&&this[_0x596b('0x34')](_0x5c7951),!_0x25bf5f||!_0x566d47[_0x596b('0x21')](_0x25bf5f))return;const _0x4ccaa8=_0x566d47[_0x596b('0x21')](_0x25bf5f);this[_0x596b('0x30')](_0x25bf5f,_0x596b('0x1e'),()=>{_0x2ee02a[_0x596b('0x27')]();}),this['listenTo'](_0x25bf5f,'Esc',()=>{this['_manuallyClosed']['add'](_0x4ccaa8),this['_removeAnnotationFromBalloon'](_0x4ccaa8),this['editor'][_0x596b('0xf')][_0x596b('0x17')][_0x596b('0x29')]();}),this[_0x596b('0x2d')]!==_0x4ccaa8&&this[_0x596b('0x13')](_0x4ccaa8);}),this['listenTo'](this[_0x596b('0x18')]['ui'],_0x596b('0xb'),()=>{_0x2ee02a['visibleView']&&(_0x566d47['getByView'](_0x2ee02a[_0x596b('0xd')])&&_0x2ee02a[_0x596b('0x27')]());}),this[_0x596b('0x30')](this[_0x596b('0x18')][_0x596b('0xf')][_0x596b('0x17')][_0x596b('0xe')],_0x596b('0x32'),()=>{this['_manuallyClosed'][_0x596b('0x1d')]();}),this[_0x596b('0x18')][_0x596b('0xf')][_0x596b('0x17')][_0x596b('0xe')][_0x596b('0x0')][_0x596b('0x12')]&&this[_0x596b('0x18')][_0x596b('0xf')][_0x596b('0x17')][_0x596b('0x29')](),this[_0x596b('0x1b')]=!0x0;}[_0x596b('0x3b')](){if(!this['isAttached'])throw new _0x358015(_0x596b('0x16'),this);this[_0x596b('0x13')](null);for(const _0x27a03b of this[_0x596b('0xc')])this['_removeAnnotationFromBalloon'](_0x27a03b);this[_0x596b('0x34')](),this['isAttached']=!0x1,this[_0x596b('0x26')]=null;}['destroy'](){this[_0x596b('0x1b')]&&this['detach']();}[_0x596b('0x2a')](_0x297975){const _0x2c6ca2=this[_0x596b('0x5')];for(const _0x3c1e91 of _0x2c6ca2)_0x297975[_0x596b('0x3')](_0x3c1e91)||this[_0x596b('0x37')][_0x596b('0x2c')](_0x3c1e91);for(const _0x7d37eb of this[_0x596b('0x26')])_0x297975['includes'](_0x7d37eb)||this['_removeAnnotationFromBalloon'](_0x7d37eb);if(this[_0x596b('0x18')]['ui'][_0x596b('0x31')][_0x596b('0x2e')])for(const _0x5f2bec of _0x297975)this[_0x596b('0x23')](_0x5f2bec);this[_0x596b('0x5')]=_0x297975;}[_0x596b('0x23')](_0x1edfdb,_0x1345b3){this[_0x596b('0x37')][_0x596b('0x1a')](_0x1edfdb)||(this['_addedAnnotations']['has'](_0x1edfdb)||this[_0x596b('0x2')][_0x596b('0x3c')](_0x1edfdb[_0x596b('0x17')])||(this[_0x596b('0xc')][_0x596b('0x35')](_0x1edfdb),this['_balloon'][_0x596b('0x35')]({'stackId':_0x1edfdb[_0x596b('0x17')]['id'],'view':_0x1edfdb['view'],'position':{'target':()=>_0x1edfdb[_0x596b('0x4')]||_0x1edfdb[_0x596b('0x22')]||document[_0x596b('0x24')]()[_0x596b('0x6')](0x0)}})),_0x1345b3&&this[_0x596b('0x2')][_0x596b('0x11')](_0x1edfdb[_0x596b('0x17')]['id']));}[_0x596b('0x2f')](_0x4d3212){this[_0x596b('0xc')][_0x596b('0x1a')](_0x4d3212)&&this['_balloon'][_0x596b('0x3c')](_0x4d3212[_0x596b('0x17')])&&(this[_0x596b('0xc')][_0x596b('0x2c')](_0x4d3212),this['_balloon'][_0x596b('0x10')](_0x4d3212['view']));}}