@ckeditor/ckeditor5-comments 35.2.1 → 35.3.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 (147) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/README.md +1 -1
  3. package/build/comments.js +2 -2
  4. package/build/translations/af.js +1 -1
  5. package/build/translations/ar.js +1 -1
  6. package/build/translations/bg.js +1 -1
  7. package/build/translations/bn.js +1 -1
  8. package/build/translations/bs.js +1 -1
  9. package/build/translations/ca.js +1 -1
  10. package/build/translations/cs.js +1 -1
  11. package/build/translations/da.js +1 -1
  12. package/build/translations/de-ch.js +1 -1
  13. package/build/translations/de.js +1 -1
  14. package/build/translations/el.js +1 -1
  15. package/build/translations/en-au.js +1 -1
  16. package/build/translations/es-co.js +1 -1
  17. package/build/translations/es.js +1 -1
  18. package/build/translations/et.js +1 -1
  19. package/build/translations/fa.js +1 -1
  20. package/build/translations/fi.js +1 -1
  21. package/build/translations/fr.js +1 -1
  22. package/build/translations/gl.js +1 -1
  23. package/build/translations/he.js +1 -1
  24. package/build/translations/hi.js +1 -1
  25. package/build/translations/hr.js +1 -1
  26. package/build/translations/hu.js +1 -1
  27. package/build/translations/id.js +1 -1
  28. package/build/translations/it.js +1 -1
  29. package/build/translations/ja.js +1 -1
  30. package/build/translations/jv.js +1 -1
  31. package/build/translations/ko.js +1 -1
  32. package/build/translations/lt.js +1 -1
  33. package/build/translations/lv.js +1 -1
  34. package/build/translations/ms.js +1 -1
  35. package/build/translations/nl.js +1 -1
  36. package/build/translations/no.js +1 -1
  37. package/build/translations/pl.js +1 -1
  38. package/build/translations/pt-br.js +1 -1
  39. package/build/translations/pt.js +1 -1
  40. package/build/translations/ro.js +1 -1
  41. package/build/translations/ru.js +1 -1
  42. package/build/translations/sk.js +1 -1
  43. package/build/translations/sr-latn.js +1 -1
  44. package/build/translations/sr.js +1 -1
  45. package/build/translations/sv.js +1 -1
  46. package/build/translations/th.js +1 -1
  47. package/build/translations/tk.js +1 -1
  48. package/build/translations/tr.js +1 -1
  49. package/build/translations/tt.js +1 -1
  50. package/build/translations/ug.js +1 -1
  51. package/build/translations/uk.js +1 -1
  52. package/build/translations/ur.js +1 -1
  53. package/build/translations/vi.js +1 -1
  54. package/build/translations/zh-cn.js +1 -1
  55. package/build/translations/zh.js +1 -1
  56. package/lang/contexts.json +4 -1
  57. package/lang/translations/af.po +12 -0
  58. package/lang/translations/ar.po +12 -0
  59. package/lang/translations/bg.po +12 -0
  60. package/lang/translations/bn.po +12 -0
  61. package/lang/translations/bs.po +12 -0
  62. package/lang/translations/ca.po +12 -0
  63. package/lang/translations/cs.po +12 -0
  64. package/lang/translations/da.po +12 -0
  65. package/lang/translations/de-ch.po +12 -0
  66. package/lang/translations/de.po +12 -0
  67. package/lang/translations/el.po +12 -0
  68. package/lang/translations/en-au.po +12 -0
  69. package/lang/translations/en.po +12 -0
  70. package/lang/translations/es-co.po +12 -0
  71. package/lang/translations/es.po +12 -0
  72. package/lang/translations/et.po +12 -0
  73. package/lang/translations/fa.po +12 -0
  74. package/lang/translations/fi.po +12 -0
  75. package/lang/translations/fr.po +12 -0
  76. package/lang/translations/gl.po +12 -0
  77. package/lang/translations/he.po +12 -0
  78. package/lang/translations/hi.po +12 -0
  79. package/lang/translations/hr.po +12 -0
  80. package/lang/translations/hu.po +12 -0
  81. package/lang/translations/id.po +12 -0
  82. package/lang/translations/it.po +12 -0
  83. package/lang/translations/ja.po +12 -0
  84. package/lang/translations/jv.po +12 -0
  85. package/lang/translations/ko.po +12 -0
  86. package/lang/translations/lt.po +12 -0
  87. package/lang/translations/lv.po +12 -0
  88. package/lang/translations/ms.po +12 -0
  89. package/lang/translations/nl.po +12 -0
  90. package/lang/translations/no.po +12 -0
  91. package/lang/translations/pl.po +12 -0
  92. package/lang/translations/pt-br.po +12 -0
  93. package/lang/translations/pt.po +12 -0
  94. package/lang/translations/ro.po +12 -0
  95. package/lang/translations/ru.po +12 -0
  96. package/lang/translations/sk.po +12 -0
  97. package/lang/translations/sr-latn.po +12 -0
  98. package/lang/translations/sr.po +12 -0
  99. package/lang/translations/sv.po +12 -0
  100. package/lang/translations/th.po +12 -0
  101. package/lang/translations/tk.po +12 -0
  102. package/lang/translations/tr.po +12 -0
  103. package/lang/translations/tt.po +12 -0
  104. package/lang/translations/ug.po +12 -0
  105. package/lang/translations/uk.po +12 -0
  106. package/lang/translations/ur.po +12 -0
  107. package/lang/translations/vi.po +12 -0
  108. package/lang/translations/zh-cn.po +12 -0
  109. package/lang/translations/zh.po +12 -0
  110. package/package.json +3 -3
  111. package/src/annotations/annotation.js +1 -1
  112. package/src/annotations/annotationcollection.js +1 -1
  113. package/src/annotations/annotations.js +1 -1
  114. package/src/annotations/annotationsuis.js +1 -1
  115. package/src/annotations/editorannotations.js +1 -1
  116. package/src/annotations/inlineannotations.js +1 -1
  117. package/src/annotations/narrowsidebar.js +1 -1
  118. package/src/annotations/sidebar.js +1 -1
  119. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  120. package/src/annotations/view/annotationview.js +1 -1
  121. package/src/annotations/view/sidebaritemview.js +1 -1
  122. package/src/annotations/view/sidebarview.js +1 -1
  123. package/src/annotations/widesidebar.js +1 -1
  124. package/src/comments/addcommentthreadcommand.js +1 -1
  125. package/src/comments/commentsediting.js +1 -1
  126. package/src/comments/commentsrepository.js +1 -1
  127. package/src/comments/commentsui.js +1 -1
  128. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  129. package/src/comments/integrations/importword.js +1 -1
  130. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  131. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  132. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  133. package/src/comments/ui/commentthreadcontroller.js +1 -1
  134. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  135. package/src/comments/ui/view/basecommentview.js +1 -1
  136. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  137. package/src/comments/ui/view/commentcontentview.js +1 -1
  138. package/src/comments/ui/view/commentinputview.js +1 -1
  139. package/src/comments/ui/view/commentslistview.js +1 -1
  140. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  141. package/src/comments/ui/view/commentthreadview.js +1 -1
  142. package/src/comments/ui/view/commentview.js +1 -1
  143. package/src/comments.js +1 -1
  144. package/src/commentsonly.js +1 -1
  145. package/src/utils/common-translations.js +1 -1
  146. package/src/utils/createmutationobserver.js +1 -1
  147. package/theme/comment.css +1 -1
@@ -69,3 +69,15 @@ msgstr "Yorum dizisinde kaydedilmemiş değişiklikler var."
69
69
  msgctxt "The additional information that comments comes from external source."
70
70
  msgid "EXTERNAL_COMMENT"
71
71
  msgstr "Bu yorum harici bir kaynaktan geliyor."
72
+
73
+ msgctxt "The additional information that comments comes from imported Word file."
74
+ msgid "EXTERNAL_IMPORT_WORD_COMMENT"
75
+ msgstr ""
76
+
77
+ msgctxt "The additional information that displayed author name comes from an external source."
78
+ msgid "EXTERNAL_AVATAR"
79
+ msgstr ""
80
+
81
+ msgctxt "The additional information that displayed author name comes from imported Word file."
82
+ msgid "EXTERNAL_IMPORT_WORD_AVATAR"
83
+ msgstr ""
@@ -68,3 +68,15 @@ msgstr ""
68
68
  msgctxt "The additional information that comments comes from external source."
69
69
  msgid "EXTERNAL_COMMENT"
70
70
  msgstr ""
71
+
72
+ msgctxt "The additional information that comments comes from imported Word file."
73
+ msgid "EXTERNAL_IMPORT_WORD_COMMENT"
74
+ msgstr ""
75
+
76
+ msgctxt "The additional information that displayed author name comes from an external source."
77
+ msgid "EXTERNAL_AVATAR"
78
+ msgstr ""
79
+
80
+ msgctxt "The additional information that displayed author name comes from imported Word file."
81
+ msgid "EXTERNAL_IMPORT_WORD_AVATAR"
82
+ msgstr ""
@@ -69,3 +69,15 @@ msgstr ""
69
69
  msgctxt "The additional information that comments comes from external source."
70
70
  msgid "EXTERNAL_COMMENT"
71
71
  msgstr ""
72
+
73
+ msgctxt "The additional information that comments comes from imported Word file."
74
+ msgid "EXTERNAL_IMPORT_WORD_COMMENT"
75
+ msgstr ""
76
+
77
+ msgctxt "The additional information that displayed author name comes from an external source."
78
+ msgid "EXTERNAL_AVATAR"
79
+ msgstr ""
80
+
81
+ msgctxt "The additional information that displayed author name comes from imported Word file."
82
+ msgid "EXTERNAL_IMPORT_WORD_AVATAR"
83
+ msgstr ""
@@ -71,3 +71,15 @@ msgstr "Незбережена зміна ланцюжка коментарів.
71
71
  msgctxt "The additional information that comments comes from external source."
72
72
  msgid "EXTERNAL_COMMENT"
73
73
  msgstr "Цей коментар походить від зовнішнього джерела."
74
+
75
+ msgctxt "The additional information that comments comes from imported Word file."
76
+ msgid "EXTERNAL_IMPORT_WORD_COMMENT"
77
+ msgstr ""
78
+
79
+ msgctxt "The additional information that displayed author name comes from an external source."
80
+ msgid "EXTERNAL_AVATAR"
81
+ msgstr ""
82
+
83
+ msgctxt "The additional information that displayed author name comes from imported Word file."
84
+ msgid "EXTERNAL_IMPORT_WORD_AVATAR"
85
+ msgstr ""
@@ -69,3 +69,15 @@ msgstr "تبصرے دھاگے میں غیر محفوظ تبدیلیاں ہیں۔
69
69
  msgctxt "The additional information that comments comes from external source."
70
70
  msgid "EXTERNAL_COMMENT"
71
71
  msgstr ""
72
+
73
+ msgctxt "The additional information that comments comes from imported Word file."
74
+ msgid "EXTERNAL_IMPORT_WORD_COMMENT"
75
+ msgstr ""
76
+
77
+ msgctxt "The additional information that displayed author name comes from an external source."
78
+ msgid "EXTERNAL_AVATAR"
79
+ msgstr ""
80
+
81
+ msgctxt "The additional information that displayed author name comes from imported Word file."
82
+ msgid "EXTERNAL_IMPORT_WORD_AVATAR"
83
+ msgstr ""
@@ -68,3 +68,15 @@ msgstr "Nội dung thay đổi chưa lưu trong chuỗi bình luận."
68
68
  msgctxt "The additional information that comments comes from external source."
69
69
  msgid "EXTERNAL_COMMENT"
70
70
  msgstr "Nhận xét này đến từ một nguồn bên ngoài."
71
+
72
+ msgctxt "The additional information that comments comes from imported Word file."
73
+ msgid "EXTERNAL_IMPORT_WORD_COMMENT"
74
+ msgstr ""
75
+
76
+ msgctxt "The additional information that displayed author name comes from an external source."
77
+ msgid "EXTERNAL_AVATAR"
78
+ msgstr ""
79
+
80
+ msgctxt "The additional information that displayed author name comes from imported Word file."
81
+ msgid "EXTERNAL_IMPORT_WORD_AVATAR"
82
+ msgstr ""
@@ -68,3 +68,15 @@ msgstr "评论区有未保存内容"
68
68
  msgctxt "The additional information that comments comes from external source."
69
69
  msgid "EXTERNAL_COMMENT"
70
70
  msgstr "此评论来自外部来源。"
71
+
72
+ msgctxt "The additional information that comments comes from imported Word file."
73
+ msgid "EXTERNAL_IMPORT_WORD_COMMENT"
74
+ msgstr ""
75
+
76
+ msgctxt "The additional information that displayed author name comes from an external source."
77
+ msgid "EXTERNAL_AVATAR"
78
+ msgstr ""
79
+
80
+ msgctxt "The additional information that displayed author name comes from imported Word file."
81
+ msgid "EXTERNAL_IMPORT_WORD_AVATAR"
82
+ msgstr ""
@@ -68,3 +68,15 @@ msgstr "討論串尚未儲存。"
68
68
  msgctxt "The additional information that comments comes from external source."
69
69
  msgid "EXTERNAL_COMMENT"
70
70
  msgstr "此留言來自外部來源。"
71
+
72
+ msgctxt "The additional information that comments comes from imported Word file."
73
+ msgid "EXTERNAL_IMPORT_WORD_COMMENT"
74
+ msgstr ""
75
+
76
+ msgctxt "The additional information that displayed author name comes from an external source."
77
+ msgid "EXTERNAL_AVATAR"
78
+ msgstr ""
79
+
80
+ msgctxt "The additional information that displayed author name comes from imported Word file."
81
+ msgid "EXTERNAL_IMPORT_WORD_AVATAR"
82
+ msgstr ""
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-comments",
3
- "version": "35.2.1",
3
+ "version": "35.3.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": "^35.2.1",
35
- "ckeditor5-collaboration": "^35.2.1",
34
+ "ckeditor5": "^35.3.1",
35
+ "ckeditor5-collaboration": "^35.3.1",
36
36
  "lodash-es": "^4.17.11"
37
37
  }
38
38
  }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1231=['_id','stopListening','clear','innerView','object','_target','render','_isTargetElementVisible','mainView','updateTargetRect','focusableElements','function','view','type','isActive','element','isVisible','refreshVisibility','target','annotation-invalid-target','_assertCorrectTarget','add','offsetParent','getClientRects','nodeType','destroy','targetRect','_type'];(function(_0x297040,_0x1231d5){const _0x1a9f8d=function(_0x3fed14){while(--_0x3fed14){_0x297040['push'](_0x297040['shift']());}};_0x1a9f8d(++_0x1231d5);}(_0x1231,0x112));const _0x1a9f=function(_0x297040,_0x1231d5){_0x297040=_0x297040-0x0;let _0x1a9f8d=_0x1231[_0x297040];return _0x1a9f8d;};import{CKEditorError as _0x6036e9,Rect as _0x2cec33,Collection as _0x54aab2,mix as _0xf8fc15,ObservableMixin as _0x1405fb}from'ckeditor5/src/utils';export default class d{constructor({view:_0x7a8ec9,target:_0x5a0044,type:_0x31f496,isVisible:_0x5a8f2b=!0x0}){this[_0x1a9f('0x12')]=_0x7a8ec9,this[_0x1a9f('0x12')]['element']||this['view'][_0x1a9f('0xc')](),this['_type']=_0x31f496,this[_0x1a9f('0xb')]=_0x5a0044,this[_0x1a9f('0x1a')](),this[_0x1a9f('0x10')]=new _0x54aab2([this['view'][_0x1a9f('0x15')]],{'idProperty':_0x1a9f('0x6')}),this['focusableElements']['on'](_0x1a9f('0x1b'),(_0x3d125e,_0x5920ae)=>{this[_0x1a9f('0x12')]['focusTracker']['add'](_0x5920ae);}),this[_0x1a9f('0x10')]['on']('remove',(_0x88b34f,_0x5619cb)=>{this['view']['focusTracker']['remove'](_0x5619cb);}),this['set'](_0x1a9f('0x16'),_0x5a8f2b);}get[_0x1a9f('0x13')](){return'function'==typeof this[_0x1a9f('0x5')]?this['_type']():this[_0x1a9f('0x5')];}get[_0x1a9f('0x9')](){return this['view'][_0x1a9f('0xe')];}get[_0x1a9f('0x18')](){return _0x1a9f('0x11')==typeof this['_target']?this['_target']():this[_0x1a9f('0xb')];}get[_0x1a9f('0x4')](){const _0x5335a6=this[_0x1a9f('0x18')];return this[_0x1a9f('0x1a')](),null!==_0x5335a6&&this['_isTargetElementVisible']()?new _0x2cec33(_0x5335a6):null;}get['isActive'](){return this[_0x1a9f('0x12')][_0x1a9f('0x14')];}set[_0x1a9f('0x14')](_0x54e12d){this['view'][_0x1a9f('0x14')]=_0x54e12d,this[_0x1a9f('0x12')]['mainView'][_0x1a9f('0x14')]=_0x54e12d;}[_0x1a9f('0xf')](){this['view'][_0x1a9f('0x4')]=this[_0x1a9f('0x4')];}[_0x1a9f('0x3')](){this[_0x1a9f('0x10')][_0x1a9f('0x7')](),this[_0x1a9f('0x10')][_0x1a9f('0x8')](),this[_0x1a9f('0x7')]();}[_0x1a9f('0x17')](){this[_0x1a9f('0x16')]=this[_0x1a9f('0xd')]();}[_0x1a9f('0xd')](){const _0x3f6cd8=this[_0x1a9f('0x18')];if(!p(_0x3f6cd8))return!0x0;if(_0x3f6cd8[_0x1a9f('0x0')])return!0x0;return!!_0x3f6cd8[_0x1a9f('0x1')]()['item'](0x0);}[_0x1a9f('0x1a')](){const _0x206281=this['target'];if(!(null===_0x206281||_0x206281 instanceof _0x2cec33||p(_0x206281)))throw new _0x6036e9(_0x1a9f('0x19'),null,{'target':_0x206281});}}function p(_0x58dded){return null!==_0x58dded&&_0x1a9f('0xa')==typeof _0x58dded&&0x1===_0x58dded[_0x1a9f('0x2')];}_0xf8fc15(d,_0x1405fb);
23
+ const _0x29f4=['mainView','_isTargetElementVisible','item','getClientRects','clear','target','type','function','nodeType','isActive','offsetParent','_assertCorrectTarget','view','add','remove','targetRect','_type','isVisible','updateTargetRect','element','destroy','render','_id','stopListening','innerView','focusTracker','_target','focusableElements'];(function(_0x4e43fd,_0x29f4d3){const _0xe22918=function(_0x348b54){while(--_0x348b54){_0x4e43fd['push'](_0x4e43fd['shift']());}};_0xe22918(++_0x29f4d3);}(_0x29f4,0x1ad));const _0xe229=function(_0x4e43fd,_0x29f4d3){_0x4e43fd=_0x4e43fd-0x0;let _0xe22918=_0x29f4[_0x4e43fd];return _0xe22918;};import{CKEditorError as _0x1bdaf6,Rect as _0x3fb291,Collection as _0x2928bc,mix as _0x5cc55a,ObservableMixin as _0x2c14f5}from'ckeditor5/src/utils';export default class G{constructor({view:_0x9cfd8b,target:_0x206108,type:_0x9064e0,isVisible:_0x2c6cbb=!0x0}){this['view']=_0x9cfd8b,this[_0xe229('0x3')]['element']||this[_0xe229('0x3')][_0xe229('0xc')](),this[_0xe229('0x7')]=_0x9064e0,this[_0xe229('0x11')]=_0x206108,this['_assertCorrectTarget'](),this[_0xe229('0x12')]=new _0x2928bc([this[_0xe229('0x3')][_0xe229('0xa')]],{'idProperty':_0xe229('0xd')}),this[_0xe229('0x12')]['on'](_0xe229('0x4'),(_0x3960af,_0x5af36c)=>{this['view'][_0xe229('0x10')][_0xe229('0x4')](_0x5af36c);}),this[_0xe229('0x12')]['on'](_0xe229('0x5'),(_0x200b56,_0x399947)=>{this[_0xe229('0x3')]['focusTracker'][_0xe229('0x5')](_0x399947);}),this['set']('isVisible',_0x2c6cbb);}get[_0xe229('0x19')](){return _0xe229('0x1a')==typeof this['_type']?this[_0xe229('0x7')]():this[_0xe229('0x7')];}get[_0xe229('0xf')](){return this[_0xe229('0x3')][_0xe229('0x13')];}get[_0xe229('0x18')](){return _0xe229('0x1a')==typeof this['_target']?this[_0xe229('0x11')]():this[_0xe229('0x11')];}get[_0xe229('0x6')](){const _0x3586d2=this[_0xe229('0x18')];return this['_assertCorrectTarget'](),null!==_0x3586d2&&this[_0xe229('0x14')]()?K(_0x3586d2)?new _0x3fb291(_0x3586d2[_0xe229('0x16')]()[_0xe229('0x15')](0x0)):new _0x3fb291(_0x3586d2):null;}get[_0xe229('0x0')](){return this['view']['isActive'];}set['isActive'](_0x4251b8){this[_0xe229('0x3')][_0xe229('0x0')]=_0x4251b8,this[_0xe229('0x3')][_0xe229('0x13')][_0xe229('0x0')]=_0x4251b8;}[_0xe229('0x9')](){this[_0xe229('0x3')][_0xe229('0x6')]=this[_0xe229('0x6')];}[_0xe229('0xb')](){this[_0xe229('0x12')][_0xe229('0xe')](),this[_0xe229('0x12')][_0xe229('0x17')](),this[_0xe229('0xe')]();}['refreshVisibility'](){this[_0xe229('0x8')]=this[_0xe229('0x14')]();}[_0xe229('0x14')](){const _0xd95eaf=this['target'];if(!K(_0xd95eaf))return!0x0;if(_0xd95eaf[_0xe229('0x1')])return!0x0;return!!_0xd95eaf[_0xe229('0x16')]()[_0xe229('0x15')](0x0);}[_0xe229('0x2')](){const _0x4ef9cc=this[_0xe229('0x18')];if(!(null===_0x4ef9cc||_0x4ef9cc instanceof _0x3fb291||K(_0x4ef9cc)))throw new _0x1bdaf6('annotation-invalid-target',null,{'target':_0x4ef9cc});}}function K(_0x4a1e5d){return null!==_0x4a1e5d&&'object'==typeof _0x4a1e5d&&0x1===_0x4a1e5d[_0xe229('0x1b')];}_0x5cc55a(G,_0x2c14f5);
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3e93=['left','updateTargetRect','delete','has','_viewToAnnotation','targetRect','add','refreshPositioning','length','fire','getByView','_getOrderInContent','change:isFocused','getByInnerView','_focusTracker','annotationcollection-not-existing-item','_sort','destroy','listenTo','top','set','blur','isFocused','view','_items','focusableElements','remove','innerView','_innerViewToAnnotation','annotationcollection-duplicated-item','clear','sort','focusTracker','stopListening'];(function(_0x479d88,_0x3e9369){const _0x379386=function(_0x58b5c6){while(--_0x58b5c6){_0x479d88['push'](_0x479d88['shift']());}};_0x379386(++_0x3e9369);}(_0x3e93,0x191));const _0x3793=function(_0x479d88,_0x3e9369){_0x479d88=_0x479d88-0x0;let _0x379386=_0x3e93[_0x479d88];return _0x379386;};import{CKEditorError as _0x554d4b,Collection as _0x166c2d,FocusTracker as _0x250cb3}from'ckeditor5/src/utils';export default class x extends _0x166c2d{constructor(_0x46f207=[]){super(),this['_innerViewToAnnotation']=new Map(),this[_0x3793('0xb')]=new Map(),this['_focusTracker']=new _0x250cb3(),this[_0x3793('0x15')]['on'](_0x3793('0x13'),(_0x9eb952,_0x22b00d,_0x232ec7)=>{_0x232ec7||this[_0x3793('0x10')](_0x3793('0x1c'));});for(const _0x398884 of _0x46f207)this['add'](_0x398884);}get[_0x3793('0x1d')](){return this[_0x3793('0x15')][_0x3793('0x1d')];}[_0x3793('0xd')](_0x1e2d20){if(this[_0x3793('0xa')](_0x1e2d20))throw new _0x554d4b(_0x3793('0x2'),null);this[_0x3793('0x1')][_0x3793('0x1b')](_0x1e2d20['innerView'],_0x1e2d20),this[_0x3793('0xb')][_0x3793('0x1b')](_0x1e2d20['view'],_0x1e2d20);for(const _0x482e24 of _0x1e2d20[_0x3793('0x20')])this[_0x3793('0x15')]['add'](_0x482e24);this[_0x3793('0x19')](_0x1e2d20[_0x3793('0x20')],_0x3793('0xd'),(_0x5a197a,_0x3ee133)=>{this[_0x3793('0x15')][_0x3793('0xd')](_0x3ee133);}),this['listenTo'](_0x1e2d20[_0x3793('0x20')],'remove',(_0x428cfe,_0x15350c)=>{this[_0x3793('0x15')][_0x3793('0x21')](_0x15350c);}),this[_0x3793('0x19')](_0x1e2d20[_0x3793('0x1e')][_0x3793('0x5')],_0x3793('0x13'),(_0x6c09c1,_0x1633ac,_0x12583d)=>{_0x12583d&&this[_0x3793('0x10')]('focus',_0x1e2d20);}),_0x1e2d20[_0x3793('0x8')]();const _0x22cd6e=this[_0x3793('0x12')](_0x1e2d20[_0x3793('0x1e')]['targetRect']);super['add'](_0x1e2d20,_0x22cd6e);}[_0x3793('0x21')](_0x3c0861){if(!this[_0x3793('0xa')](_0x3c0861))throw new _0x554d4b(_0x3793('0x16'),null);this[_0x3793('0x6')](_0x3c0861[_0x3793('0x1e')]['focusTracker']),this[_0x3793('0x6')](_0x3c0861[_0x3793('0x20')]);for(const _0x3f42d9 of _0x3c0861[_0x3793('0x20')])this[_0x3793('0x15')][_0x3793('0x21')](_0x3f42d9);this['_viewToAnnotation']['delete'](_0x3c0861[_0x3793('0x1e')]),this[_0x3793('0x1')][_0x3793('0x9')](_0x3c0861[_0x3793('0x0')]),super[_0x3793('0x21')](_0x3c0861);}[_0x3793('0x14')](_0x5d7050){return this['_innerViewToAnnotation']['get'](_0x5d7050);}[_0x3793('0x11')](_0x45186b){return this[_0x3793('0xb')]['get'](_0x45186b);}[_0x3793('0x18')](){super[_0x3793('0x3')](),this[_0x3793('0x6')](),this[_0x3793('0x1')]['clear'](),this[_0x3793('0xb')][_0x3793('0x3')](),this[_0x3793('0x15')]['destroy']();}[_0x3793('0xe')](){for(const _0x18c426 of this)_0x18c426['updateTargetRect']();this[_0x3793('0x17')]();}['_sort'](){const _0x73f9df=Array['from'](this)[_0x3793('0x4')]((_0x5842d2,_0x2ce562)=>y(_0x5842d2['view'][_0x3793('0xc')],_0x2ce562['view']['targetRect']));for(let _0x189602=_0x73f9df['length']-0x1;_0x189602>0x0;_0x189602--){const _0x5df77b=_0x73f9df[_0x189602];_0x189602!==this['getIndex'](_0x5df77b)&&(this['remove'](_0x5df77b),this[_0x3793('0xd')](_0x5df77b,_0x189602));}}[_0x3793('0x12')](_0x2d582e){let _0x8e68c6=0x0;if(!_0x2d582e)return this[_0x3793('0x1f')][_0x3793('0xf')];for(const _0x5a2f03 of this){const _0x4e949c=_0x5a2f03['view'][_0x3793('0xc')];if(_0x4e949c){if(y(_0x2d582e,_0x4e949c)<0x0)return _0x8e68c6;_0x8e68c6++;}}return _0x8e68c6;}}export function bindAnnotationCollections({source:_0x38cd7e,target:_0x42cc08,filter:_0x4b3206}){for(const _0x5b45cb of _0x38cd7e)_0x4b3206(_0x5b45cb)&&_0x42cc08[_0x3793('0xd')](_0x5b45cb);_0x42cc08['listenTo'](_0x38cd7e,_0x3793('0xd'),(_0x18078b,_0x53047f)=>{_0x4b3206(_0x53047f)&&_0x42cc08[_0x3793('0xd')](_0x53047f);}),_0x42cc08[_0x3793('0x19')](_0x38cd7e,_0x3793('0x21'),(_0x9f8b59,_0x309b7e)=>{_0x42cc08['has'](_0x309b7e)&&_0x42cc08[_0x3793('0x21')](_0x309b7e);});}function y(_0x4afbaa,_0x2b8a0b){if(null===_0x4afbaa&&null===_0x2b8a0b)return 0x0;if(null===_0x4afbaa)return-0x1;if(null===_0x2b8a0b)return 0x1;const _0x48906e=_0x4afbaa[_0x3793('0x1a')]-_0x2b8a0b[_0x3793('0x1a')];return 0x0==_0x48906e?_0x4afbaa[_0x3793('0x7')]-_0x2b8a0b[_0x3793('0x7')]:_0x48906e;}
23
+ const _0x59fa=['targetRect','stopListening','listenTo','view','add','_sort','_items','blur','_viewToAnnotation','getByInnerView','annotationcollection-duplicated-item','get','clear','remove','left','_getOrderInContent','change:isFocused','focusableElements','destroy','_focusTracker','focus','innerView','has','updateTargetRect','getIndex','annotationcollection-not-existing-item','delete','set','focusTracker','_innerViewToAnnotation','getByView','top','isFocused','length','from'];(function(_0x45793d,_0x59fa15){const _0x32532e=function(_0x2dc9cf){while(--_0x2dc9cf){_0x45793d['push'](_0x45793d['shift']());}};_0x32532e(++_0x59fa15);}(_0x59fa,0x188));const _0x3253=function(_0x45793d,_0x59fa15){_0x45793d=_0x45793d-0x0;let _0x32532e=_0x59fa[_0x45793d];return _0x32532e;};import{CKEditorError as _0x15cf80,Collection as _0x50777a,FocusTracker as _0xecd5e7}from'ckeditor5/src/utils';export default class X extends _0x50777a{constructor(_0x2a659e=[]){super(),this[_0x3253('0x16')]=new Map(),this[_0x3253('0x1')]=new Map(),this['_focusTracker']=new _0xecd5e7(),this[_0x3253('0xc')]['on']('change:isFocused',(_0x251722,_0x9e24f9,_0x31b6f0)=>{_0x31b6f0||this['fire'](_0x3253('0x0'));});for(const _0x2dd440 of _0x2a659e)this[_0x3253('0x20')](_0x2dd440);}get[_0x3253('0x19')](){return this[_0x3253('0xc')][_0x3253('0x19')];}[_0x3253('0x20')](_0x1c3a91){if(this[_0x3253('0xf')](_0x1c3a91))throw new _0x15cf80(_0x3253('0x3'),null);this[_0x3253('0x16')][_0x3253('0x14')](_0x1c3a91['innerView'],_0x1c3a91),this[_0x3253('0x1')][_0x3253('0x14')](_0x1c3a91['view'],_0x1c3a91);for(const _0x23779d of _0x1c3a91[_0x3253('0xa')])this[_0x3253('0xc')][_0x3253('0x20')](_0x23779d);this[_0x3253('0x1e')](_0x1c3a91[_0x3253('0xa')],_0x3253('0x20'),(_0x3f15bd,_0x24370c)=>{this[_0x3253('0xc')]['add'](_0x24370c);}),this['listenTo'](_0x1c3a91['focusableElements'],_0x3253('0x6'),(_0x65e4e0,_0x5dd7b0)=>{this['_focusTracker'][_0x3253('0x6')](_0x5dd7b0);}),this[_0x3253('0x1e')](_0x1c3a91[_0x3253('0x1f')]['focusTracker'],_0x3253('0x9'),(_0x528790,_0x41f4cc,_0x322f44)=>{_0x322f44&&this['fire'](_0x3253('0xd'),_0x1c3a91);}),_0x1c3a91[_0x3253('0x10')]();const _0x407cfe=this['_getOrderInContent'](_0x1c3a91[_0x3253('0x1f')]['targetRect']);super[_0x3253('0x20')](_0x1c3a91,_0x407cfe);}[_0x3253('0x6')](_0x4b9318){if(!this['has'](_0x4b9318))throw new _0x15cf80(_0x3253('0x12'),null);this[_0x3253('0x1d')](_0x4b9318[_0x3253('0x1f')][_0x3253('0x15')]),this['stopListening'](_0x4b9318[_0x3253('0xa')]);for(const _0x2d1eeb of _0x4b9318['focusableElements'])this[_0x3253('0xc')]['remove'](_0x2d1eeb);this[_0x3253('0x1')]['delete'](_0x4b9318[_0x3253('0x1f')]),this['_innerViewToAnnotation'][_0x3253('0x13')](_0x4b9318[_0x3253('0xe')]),super[_0x3253('0x6')](_0x4b9318);}[_0x3253('0x2')](_0xa1127c){return this['_innerViewToAnnotation'][_0x3253('0x4')](_0xa1127c);}[_0x3253('0x17')](_0x350bab){return this['_viewToAnnotation']['get'](_0x350bab);}[_0x3253('0xb')](){super[_0x3253('0x5')](),this[_0x3253('0x1d')](),this[_0x3253('0x16')][_0x3253('0x5')](),this['_viewToAnnotation'][_0x3253('0x5')](),this[_0x3253('0xc')][_0x3253('0xb')]();}['refreshPositioning'](){for(const _0x486259 of this)_0x486259[_0x3253('0x10')]();this[_0x3253('0x21')]();}[_0x3253('0x21')](){const _0x32eaa7=Array[_0x3253('0x1b')](this)['sort']((_0x14d593,_0x153325)=>Y(_0x14d593[_0x3253('0x1f')][_0x3253('0x1c')],_0x153325[_0x3253('0x1f')][_0x3253('0x1c')]));for(let _0x2f8ab5=_0x32eaa7[_0x3253('0x1a')]-0x1;_0x2f8ab5>0x0;_0x2f8ab5--){const _0xeaae80=_0x32eaa7[_0x2f8ab5];_0x2f8ab5!==this[_0x3253('0x11')](_0xeaae80)&&(this[_0x3253('0x6')](_0xeaae80),this[_0x3253('0x20')](_0xeaae80,_0x2f8ab5));}}[_0x3253('0x8')](_0x23473c){let _0x28f5b7=0x0;if(!_0x23473c)return this[_0x3253('0x22')][_0x3253('0x1a')];for(const _0x51329c of this){const _0x597143=_0x51329c[_0x3253('0x1f')]['targetRect'];if(_0x597143){if(Y(_0x23473c,_0x597143)<0x0)return _0x28f5b7;_0x28f5b7++;}}return _0x28f5b7;}}export function bindAnnotationCollections({source:_0x1999aa,target:_0x12b226,filter:_0x4a1b5b}){for(const _0x2adc6e of _0x1999aa)_0x4a1b5b(_0x2adc6e)&&_0x12b226[_0x3253('0x20')](_0x2adc6e);_0x12b226[_0x3253('0x1e')](_0x1999aa,_0x3253('0x20'),(_0x2e2556,_0x3cf626)=>{_0x4a1b5b(_0x3cf626)&&_0x12b226[_0x3253('0x20')](_0x3cf626);}),_0x12b226[_0x3253('0x1e')](_0x1999aa,_0x3253('0x6'),(_0x12c73c,_0x537bef)=>{_0x12b226['has'](_0x537bef)&&_0x12b226['remove'](_0x537bef);});}function Y(_0x3b3533,_0x4c8694){if(null===_0x3b3533&&null===_0x4c8694)return 0x0;if(null===_0x3b3533)return-0x1;if(null===_0x4c8694)return 0x1;const _0x1557b6=_0x3b3533[_0x3253('0x18')]-_0x4c8694['top'];return 0x0==_0x1557b6?_0x3b3533[_0x3253('0x7')]-_0x4c8694['left']:_0x1557b6;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5c9e=['pluginName','_activateAnnotation','collection','deactivateAll','_bindAnnotationsToVisibleAnnotations','_visibleAnnotations','has','remove','activeAnnotations','source','change:isVisible','delete','stopListening','isVisible','refreshVisibility','createAnnotation','fire','listenTo','set','refreshPositioning','destroy','_addActiveAnnotation','createAnnotationView','activate','add','getByInnerView','_deactivateAllAnnotations'];(function(_0x5ecb97,_0x5c9e6e){const _0x377dcd=function(_0x568413){while(--_0x568413){_0x5ecb97['push'](_0x5ecb97['shift']());}};_0x377dcd(++_0x5c9e6e);}(_0x5c9e,0x1f2));const _0x377d=function(_0x5ecb97,_0x5c9e6e){_0x5ecb97=_0x5ecb97-0x0;let _0x377dcd=_0x5c9e[_0x5ecb97];return _0x377dcd;};import{ContextPlugin as _0x26904a}from'ckeditor5/src/core';import _0x44c128 from'./annotation';import _0x63318d from'./annotationcollection';import _0x271de7 from'./view/annotationview';export default class V extends _0x26904a{static get[_0x377d('0xf')](){return'Annotations';}constructor(_0x1fd997){super(_0x1fd997),this[_0x377d('0x11')]=new _0x63318d(),this[_0x377d('0x14')]=new _0x63318d(),this[_0x377d('0x6')](_0x377d('0x17'),new Set()),this['_bindAnnotationsToVisibleAnnotations']();}[_0x377d('0xc')](_0x55bc75){this[_0x377d('0x11')][_0x377d('0xc')](_0x55bc75);}['remove'](_0x3a4eb5){this['collection'][_0x377d('0x16')](_0x3a4eb5),_0x3a4eb5['destroy']();}[_0x377d('0x2')](){for(const _0x334266 of this[_0x377d('0x11')])_0x334266[_0x377d('0x2')]();}[_0x377d('0x7')](){this[_0x377d('0x14')]['refreshPositioning']();}[_0x377d('0xd')](_0x3a258d){return this[_0x377d('0x11')][_0x377d('0xd')](_0x3a258d);}[_0x377d('0x12')](){this[_0x377d('0x4')](_0x377d('0xe'));}[_0x377d('0x8')](){for(const _0xeb0c3 of this[_0x377d('0x11')])_0xeb0c3[_0x377d('0x8')]();this[_0x377d('0x14')][_0x377d('0x8')](),this[_0x377d('0x11')][_0x377d('0x8')](),super[_0x377d('0x8')]();}[_0x377d('0xb')](_0x7b7c0e){this[_0x377d('0x4')](_0x377d('0x10'),_0x7b7c0e);}[_0x377d('0x3')](_0x2c355b){return new _0x44c128(_0x2c355b);}[_0x377d('0xa')](_0x5d11ca,_0xa5bf01){return new _0x271de7(_0x5d11ca,_0xa5bf01);}[_0x377d('0x9')](_0x2eeb7f){const _0x3d2849=new Set(this[_0x377d('0x17')]);_0x3d2849[_0x377d('0xc')](_0x2eeb7f),this[_0x377d('0x17')]=_0x3d2849;}['_removeActiveAnnotation'](_0x1cffd3){const _0xa5bfbe=new Set(this[_0x377d('0x17')]);_0xa5bfbe[_0x377d('0x1a')](_0x1cffd3),this[_0x377d('0x17')]=_0xa5bfbe;}[_0x377d('0x13')](){const _0x5a37dd=this[_0x377d('0x11')],_0x119030=this[_0x377d('0x14')];function _0x2563ed(_0x1c66ed){const _0x283f07=_0x1c66ed[_0x377d('0x18')];_0x283f07[_0x377d('0x1')]&&!_0x119030[_0x377d('0x15')](_0x283f07)?_0x119030[_0x377d('0xc')](_0x283f07):!_0x283f07[_0x377d('0x1')]&&_0x119030['has'](_0x283f07)&&_0x119030[_0x377d('0x16')](_0x283f07);}this['listenTo'](_0x5a37dd,_0x377d('0xc'),(_0x242dea,_0x112c3b)=>{_0x112c3b['isVisible']&&_0x119030[_0x377d('0xc')](_0x112c3b),this[_0x377d('0x5')](_0x112c3b,_0x377d('0x19'),_0x2563ed);}),this[_0x377d('0x5')](_0x5a37dd,_0x377d('0x16'),(_0x24b5d8,_0x20912c)=>{_0x119030[_0x377d('0x15')](_0x20912c)&&_0x119030['remove'](_0x20912c),this[_0x377d('0x0')](_0x20912c,_0x377d('0x19'),_0x2563ed);});}}
23
+ const _0x4698=['_activateAnnotation','createAnnotationView','isVisible','_addActiveAnnotation','destroy','source','collection','getByInnerView','add','pluginName','refreshVisibility','_deactivateAllAnnotations','change:isVisible','_visibleAnnotations','_bindAnnotationsToVisibleAnnotations','Annotations','set','remove','refreshPositioning','fire','has','_removeActiveAnnotation','deactivateAll','activeAnnotations','listenTo'];(function(_0x1d591c,_0x469816){const _0x3bf9c4=function(_0x1803ad){while(--_0x1803ad){_0x1d591c['push'](_0x1d591c['shift']());}};_0x3bf9c4(++_0x469816);}(_0x4698,0xdf));const _0x3bf9=function(_0x1d591c,_0x469816){_0x1d591c=_0x1d591c-0x0;let _0x3bf9c4=_0x4698[_0x1d591c];return _0x3bf9c4;};import{ContextPlugin as _0x2d2872}from'ckeditor5/src/core';import _0x4d8756 from'./annotation';import _0x5801dc from'./annotationcollection';import _0x2554cc from'./view/annotationview';export default class H extends _0x2d2872{static get[_0x3bf9('0xb')](){return _0x3bf9('0x11');}constructor(_0xb0c8e){super(_0xb0c8e),this[_0x3bf9('0x8')]=new _0x5801dc(),this[_0x3bf9('0xf')]=new _0x5801dc(),this[_0x3bf9('0x12')](_0x3bf9('0x0'),new Set()),this[_0x3bf9('0x10')]();}[_0x3bf9('0xa')](_0x37eebf){this[_0x3bf9('0x8')][_0x3bf9('0xa')](_0x37eebf);}['remove'](_0x4c51ff){this[_0x3bf9('0x8')][_0x3bf9('0x13')](_0x4c51ff),_0x4c51ff[_0x3bf9('0x6')]();}[_0x3bf9('0xc')](){for(const _0x30e40b of this['collection'])_0x30e40b[_0x3bf9('0xc')]();}[_0x3bf9('0x14')](){this[_0x3bf9('0xf')]['refreshPositioning']();}[_0x3bf9('0x9')](_0x260983){return this[_0x3bf9('0x8')][_0x3bf9('0x9')](_0x260983);}[_0x3bf9('0x18')](){this[_0x3bf9('0x15')](_0x3bf9('0xd'));}[_0x3bf9('0x6')](){for(const _0x249689 of this[_0x3bf9('0x8')])_0x249689['destroy']();this['_visibleAnnotations'][_0x3bf9('0x6')](),this['collection'][_0x3bf9('0x6')](),super['destroy']();}['activate'](_0x42e6ad){this[_0x3bf9('0x15')](_0x3bf9('0x2'),_0x42e6ad);}['createAnnotation'](_0x3498a0){return new _0x4d8756(_0x3498a0);}[_0x3bf9('0x3')](_0x5b3e1b,_0x5e25c9){return new _0x2554cc(_0x5b3e1b,_0x5e25c9);}[_0x3bf9('0x5')](_0xfc4714){const _0x1f507e=new Set(this[_0x3bf9('0x0')]);_0x1f507e[_0x3bf9('0xa')](_0xfc4714),this[_0x3bf9('0x0')]=_0x1f507e;}[_0x3bf9('0x17')](_0x25a3e3){const _0x19346f=new Set(this[_0x3bf9('0x0')]);_0x19346f['delete'](_0x25a3e3),this[_0x3bf9('0x0')]=_0x19346f;}[_0x3bf9('0x10')](){const _0x15aff3=this[_0x3bf9('0x8')],_0x51f27f=this[_0x3bf9('0xf')];function _0x1a2540(_0x10c91a){const _0x3f46d5=_0x10c91a[_0x3bf9('0x7')];_0x3f46d5['isVisible']&&!_0x51f27f['has'](_0x3f46d5)?_0x51f27f[_0x3bf9('0xa')](_0x3f46d5):!_0x3f46d5[_0x3bf9('0x4')]&&_0x51f27f[_0x3bf9('0x16')](_0x3f46d5)&&_0x51f27f[_0x3bf9('0x13')](_0x3f46d5);}this[_0x3bf9('0x1')](_0x15aff3,_0x3bf9('0xa'),(_0x11c548,_0x50f0a6)=>{_0x50f0a6[_0x3bf9('0x4')]&&_0x51f27f[_0x3bf9('0xa')](_0x50f0a6),this['listenTo'](_0x50f0a6,_0x3bf9('0xe'),_0x1a2540);}),this[_0x3bf9('0x1')](_0x15aff3,'remove',(_0x37fecf,_0x17165d)=>{_0x51f27f[_0x3bf9('0x16')](_0x17165d)&&_0x51f27f[_0x3bf9('0x13')](_0x17165d),this['stopListening'](_0x17165d,_0x3bf9('0xe'),_0x1a2540);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x25b9=['listenTo','plugins','change:activeAnnotation','isActive','collection','_deactivateAllAnnotations','_visibleAnnotations','init','deactivate','attach','activeUIs','_addActiveAnnotation','size','set','length','hasActive','annotationsuis-activate-missing-ui','setActiveAnnotation','deactivateAll','switchTo','stopListening','destroy','annotationsuis-annotation-mismatch','get','_assertAnnotationDoesNotBelongToMultipleUIs','annotationsuis-register-already-registered','detach','context','delete','function','_uis','type','_uisData','filter','_setSelectedAnnotations','annotationsuis-register-invalid-interface','requires','_removeActiveAnnotation','register','remove','_activateAnnotation','has','from','add'];(function(_0xaaaa05,_0x25b95f){const _0x29013d=function(_0x1d7f63){while(--_0x1d7f63){_0xaaaa05['push'](_0xaaaa05['shift']());}};_0x29013d(++_0x25b95f);}(_0x25b9,0x90));const _0x2901=function(_0xaaaa05,_0x25b95f){_0xaaaa05=_0xaaaa05-0x0;let _0x29013d=_0x25b9[_0xaaaa05];return _0x29013d;};import{ContextPlugin as _0x5168a4}from'ckeditor5/src/core';import{CKEditorError as _0x3847f8}from'ckeditor5/src/utils';import _0x251115,{bindAnnotationCollections as _0x2855a1}from'./annotationcollection';import _0xbd634 from'./annotations';export default class I extends _0x5168a4{static get[_0x2901('0x18')](){return[_0xbd634];}static get['pluginName'](){return'AnnotationsUIs';}constructor(_0x559d7b){super(_0x559d7b),this[_0x2901('0x2a')]=new Set(),this[_0x2901('0x12')]=new Map(),this['_uisData']=new Map();}[_0x2901('0x27')](){const _0x567208=this[_0x2901('0xf')]['plugins'][_0x2901('0xb')](_0xbd634);this[_0x2901('0x20')](_0x567208,_0x2901('0x1c'),(_0x5b0fa9,_0x1e332c)=>{for(const _0x517425 of this['activeUIs']){const _0x49ddb6=this[_0x2901('0x12')][_0x2901('0xb')](_0x517425);(0x0,this[_0x2901('0x14')][_0x2901('0xb')](_0x517425)[_0x2901('0x15')])(_0x1e332c)&&_0x49ddb6[_0x2901('0x5')](_0x1e332c);}}),this['listenTo'](_0x567208,_0x2901('0x25'),()=>{for(const _0x2762cb of this[_0x2901('0x2a')]){this[_0x2901('0x12')]['get'](_0x2762cb)[_0x2901('0x5')](null);}}),this[_0x2901('0x20')](_0x567208[_0x2901('0x26')],_0x2901('0x1f'),(_0x9450f2,_0x537e8a)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x537e8a);});}[_0x2901('0x3')](){return this[_0x2901('0x2a')][_0x2901('0x0')]>0x0;}['isActive'](_0x18b678){return this['activeUIs']['has'](_0x18b678);}['activate'](_0x1c8970,_0x423227=()=>!0x0){const _0x3b7a3b=this[_0x2901('0xf')][_0x2901('0x21')][_0x2901('0xb')](_0xbd634);if(!this[_0x2901('0x12')][_0x2901('0x1d')](_0x1c8970))throw new _0x3847f8(_0x2901('0x4'),this,{'uiName':_0x1c8970});this[_0x2901('0x23')](_0x1c8970)&&this[_0x2901('0x28')](_0x1c8970),this['activeUIs']['add'](_0x1c8970);const _0x4eb114=new _0x251115(),_0x425810=_0x3b7a3b['_visibleAnnotations'];_0x2855a1({'source':_0x425810,'target':_0x4eb114,'filter':_0x423227}),this[_0x2901('0x14')][_0x2901('0x1')](_0x1c8970,{'collection':_0x4eb114,'filter':_0x423227});const _0x11ebf5=this['_uis']['get'](_0x1c8970);_0x11ebf5[_0x2901('0x29')](_0x4eb114),this[_0x2901('0x20')](_0x11ebf5,_0x2901('0x22'),(_0x7dd2fe,_0x2a1706,_0x5d1452,_0x56cb42)=>{_0x56cb42&&_0x3b7a3b[_0x2901('0x19')](_0x56cb42),_0x5d1452&&_0x3b7a3b[_0x2901('0x2b')](_0x5d1452);});}[_0x2901('0x28')](_0x4c8c52){this[_0x2901('0x2a')]['delete'](_0x4c8c52);const _0x3b518b=this[_0x2901('0x12')][_0x2901('0xb')](_0x4c8c52);_0x3b518b[_0x2901('0xe')](),this[_0x2901('0x8')](_0x3b518b),this[_0x2901('0x14')]['get'](_0x4c8c52)[_0x2901('0x24')][_0x2901('0x9')](),this[_0x2901('0x14')][_0x2901('0x10')](_0x4c8c52);}[_0x2901('0x7')](_0x33c331){const _0x4ad442=this['context'][_0x2901('0x21')][_0x2901('0xb')](_0xbd634),_0x1ad60c=Array[_0x2901('0x1e')](_0x4ad442['activeAnnotations'])[0x0]||null;this[_0x2901('0x6')](),this['activate'](_0x33c331);const _0x2cfab6=this[_0x2901('0x12')][_0x2901('0xb')](_0x33c331);_0x2cfab6[_0x2901('0x5')](_0x1ad60c),_0x2cfab6['_setSelectedAnnotations']&&_0x1ad60c&&_0x2cfab6[_0x2901('0x16')]([_0x1ad60c]);}[_0x2901('0x6')](){for(const _0x3af345 of this['activeUIs'])this[_0x2901('0x28')](_0x3af345);}[_0x2901('0x1a')](_0x286ea7,_0x38a849){if(this['_uis'][_0x2901('0x1d')](_0x286ea7))throw new _0x3847f8(_0x2901('0xd'));if(_0x2901('0x11')!=typeof _0x38a849[_0x2901('0x29')]||_0x2901('0x11')!=typeof _0x38a849[_0x2901('0xe')]||_0x2901('0x11')!=typeof _0x38a849[_0x2901('0x5')])throw new _0x3847f8(_0x2901('0x17'),null);this[_0x2901('0x12')][_0x2901('0x1')](_0x286ea7,_0x38a849);}['refilterAnnotations'](){const _0xa25295=this[_0x2901('0xf')][_0x2901('0x21')][_0x2901('0xb')](_0xbd634)[_0x2901('0x24')],_0x56ae59=new Map(),_0x1eaac3=Array[_0x2901('0x1e')](this['activeUIs']);for(const _0x25ecf7 of this[_0x2901('0x2a')]){const _0x4f92ff=this[_0x2901('0x14')][_0x2901('0xb')](_0x25ecf7)['collection'];for(const _0x1ae517 of _0x4f92ff)_0x56ae59['set'](_0x1ae517,_0x25ecf7);}for(const _0x3bd342 of _0xa25295){const _0x1426e9=_0x56ae59[_0x2901('0xb')](_0x3bd342);this[_0x2901('0xc')](_0x3bd342);const _0x4d81c7=_0x1eaac3['find'](_0x406ee5=>this[_0x2901('0x14')][_0x2901('0xb')](_0x406ee5)[_0x2901('0x15')](_0x3bd342));_0x1426e9!==_0x4d81c7&&(_0x1426e9&&this[_0x2901('0x14')][_0x2901('0xb')](_0x1426e9)[_0x2901('0x24')][_0x2901('0x1b')](_0x3bd342),_0x4d81c7&&this[_0x2901('0x14')][_0x2901('0xb')](_0x4d81c7)[_0x2901('0x24')]['add'](_0x3bd342));}}[_0x2901('0x9')](){this[_0x2901('0x6')](),super['destroy']();}[_0x2901('0xc')](_0x46366b){const _0xb2ddb5=[];for(const _0x1b6978 of this[_0x2901('0x2a')]){(0x0,this['_uisData'][_0x2901('0xb')](_0x1b6978)['filter'])(_0x46366b)&&_0xb2ddb5['push'](_0x1b6978);}if(_0xb2ddb5[_0x2901('0x2')]>0x1)throw new _0x3847f8(_0x2901('0xa'),null,{'matchedUIs':_0xb2ddb5,'annotationType':_0x46366b[_0x2901('0x13')]});}}
23
+ const _0x4aa7=['deactivate','_uisData','remove','annotationsuis-register-invalid-interface','AnnotationsUIs','annotationsuis-activate-missing-ui','has','refilterAnnotations','isActive','destroy','size','from','stopListening','context','annotationsuis-annotation-mismatch','deactivateAll','annotationsuis-register-already-registered','listenTo','activeUIs','attach','activate','init','function','_deactivateAllAnnotations','get','find','setActiveAnnotation','_visibleAnnotations','_removeActiveAnnotation','push','_activateAnnotation','delete','set','add','_setSelectedAnnotations','collection','plugins','filter','detach','hasActive','activeAnnotations','_addActiveAnnotation','requires','_uis'];(function(_0x35aec0,_0x4aa758){const _0x3672e9=function(_0x6faa64){while(--_0x6faa64){_0x35aec0['push'](_0x35aec0['shift']());}};_0x3672e9(++_0x4aa758);}(_0x4aa7,0x145));const _0x3672=function(_0x35aec0,_0x4aa758){_0x35aec0=_0x35aec0-0x0;let _0x3672e9=_0x4aa7[_0x35aec0];return _0x3672e9;};import{ContextPlugin as _0x2d0850}from'ckeditor5/src/core';import{CKEditorError as _0x1fc76b}from'ckeditor5/src/utils';import _0x450c29,{bindAnnotationCollections as _0x558480}from'./annotationcollection';import _0xa2a645 from'./annotations';export default class $ extends _0x2d0850{static get[_0x3672('0x19')](){return[_0xa2a645];}static get['pluginName'](){return _0x3672('0x1f');}constructor(_0x328b78){super(_0x328b78),this[_0x3672('0x1')]=new Set(),this[_0x3672('0x1a')]=new Map(),this['_uisData']=new Map();}[_0x3672('0x4')](){const _0x51b382=this[_0x3672('0x28')][_0x3672('0x13')][_0x3672('0x7')](_0xa2a645);this[_0x3672('0x0')](_0x51b382,_0x3672('0xd'),(_0x1e1e2b,_0x1e2f33)=>{for(const _0x121173 of this[_0x3672('0x1')]){const _0x1977e2=this[_0x3672('0x1a')]['get'](_0x121173);(0x0,this[_0x3672('0x1c')][_0x3672('0x7')](_0x121173)[_0x3672('0x14')])(_0x1e2f33)&&_0x1977e2['setActiveAnnotation'](_0x1e2f33);}}),this[_0x3672('0x0')](_0x51b382,_0x3672('0x6'),()=>{for(const _0x1028ae of this[_0x3672('0x1')]){this[_0x3672('0x1a')]['get'](_0x1028ae)[_0x3672('0x9')](null);}}),this[_0x3672('0x0')](_0x51b382[_0x3672('0xa')],_0x3672('0x10'),(_0x5801da,_0x4e3951)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x4e3951);});}[_0x3672('0x16')](){return this[_0x3672('0x1')][_0x3672('0x25')]>0x0;}[_0x3672('0x23')](_0xf8e521){return this[_0x3672('0x1')][_0x3672('0x21')](_0xf8e521);}['activate'](_0x1d6de4,_0x271b3a=()=>!0x0){const _0x4a0ed7=this['context']['plugins'][_0x3672('0x7')](_0xa2a645);if(!this[_0x3672('0x1a')]['has'](_0x1d6de4))throw new _0x1fc76b(_0x3672('0x20'),this,{'uiName':_0x1d6de4});this['isActive'](_0x1d6de4)&&this[_0x3672('0x1b')](_0x1d6de4),this['activeUIs'][_0x3672('0x10')](_0x1d6de4);const _0x902253=new _0x450c29(),_0x161dc2=_0x4a0ed7['_visibleAnnotations'];_0x558480({'source':_0x161dc2,'target':_0x902253,'filter':_0x271b3a}),this[_0x3672('0x1c')][_0x3672('0xf')](_0x1d6de4,{'collection':_0x902253,'filter':_0x271b3a});const _0x3be62f=this[_0x3672('0x1a')][_0x3672('0x7')](_0x1d6de4);_0x3be62f['attach'](_0x902253),this[_0x3672('0x0')](_0x3be62f,'change:activeAnnotation',(_0x409990,_0x5f22a5,_0x58dfb6,_0x5f1607)=>{_0x5f1607&&_0x4a0ed7[_0x3672('0xb')](_0x5f1607),_0x58dfb6&&_0x4a0ed7[_0x3672('0x18')](_0x58dfb6);});}['deactivate'](_0xef95e3){this[_0x3672('0x1')][_0x3672('0xe')](_0xef95e3);const _0x86821a=this[_0x3672('0x1a')][_0x3672('0x7')](_0xef95e3);_0x86821a[_0x3672('0x15')](),this[_0x3672('0x27')](_0x86821a),this[_0x3672('0x1c')][_0x3672('0x7')](_0xef95e3)[_0x3672('0x12')][_0x3672('0x24')](),this[_0x3672('0x1c')][_0x3672('0xe')](_0xef95e3);}['switchTo'](_0x41e808){const _0x3b4994=this[_0x3672('0x28')][_0x3672('0x13')][_0x3672('0x7')](_0xa2a645),_0x451169=Array['from'](_0x3b4994[_0x3672('0x17')])[0x0]||null;this[_0x3672('0x2a')](),this[_0x3672('0x3')](_0x41e808);const _0x3b29ab=this[_0x3672('0x1a')]['get'](_0x41e808);_0x3b29ab[_0x3672('0x9')](_0x451169),_0x3b29ab['_setSelectedAnnotations']&&_0x451169&&_0x3b29ab[_0x3672('0x11')]([_0x451169]);}[_0x3672('0x2a')](){for(const _0x252e56 of this['activeUIs'])this[_0x3672('0x1b')](_0x252e56);}['register'](_0x1bf51d,_0x4c617){if(this['_uis'][_0x3672('0x21')](_0x1bf51d))throw new _0x1fc76b(_0x3672('0x2b'));if('function'!=typeof _0x4c617[_0x3672('0x2')]||'function'!=typeof _0x4c617[_0x3672('0x15')]||_0x3672('0x5')!=typeof _0x4c617[_0x3672('0x9')])throw new _0x1fc76b(_0x3672('0x1e'),null);this[_0x3672('0x1a')][_0x3672('0xf')](_0x1bf51d,_0x4c617);}[_0x3672('0x22')](){const _0x3e5d2f=this[_0x3672('0x28')][_0x3672('0x13')][_0x3672('0x7')](_0xa2a645)[_0x3672('0x12')],_0xdb4ba3=new Map(),_0x5d6638=Array[_0x3672('0x26')](this[_0x3672('0x1')]);for(const _0x4fdcf3 of this[_0x3672('0x1')]){const _0x1d6cb6=this[_0x3672('0x1c')][_0x3672('0x7')](_0x4fdcf3)[_0x3672('0x12')];for(const _0x1ee27a of _0x1d6cb6)_0xdb4ba3[_0x3672('0xf')](_0x1ee27a,_0x4fdcf3);}for(const _0xc25101 of _0x3e5d2f){const _0x21e301=_0xdb4ba3['get'](_0xc25101);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0xc25101);const _0x555d18=_0x5d6638[_0x3672('0x8')](_0x53497e=>this[_0x3672('0x1c')][_0x3672('0x7')](_0x53497e)[_0x3672('0x14')](_0xc25101));_0x21e301!==_0x555d18&&(_0x21e301&&this[_0x3672('0x1c')][_0x3672('0x7')](_0x21e301)[_0x3672('0x12')][_0x3672('0x1d')](_0xc25101),_0x555d18&&this['_uisData'][_0x3672('0x7')](_0x555d18)[_0x3672('0x12')][_0x3672('0x10')](_0xc25101));}}['destroy'](){this[_0x3672('0x2a')](),super['destroy']();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x3b7a49){const _0x1eea97=[];for(const _0x38d1d4 of this[_0x3672('0x1')]){(0x0,this[_0x3672('0x1c')]['get'](_0x38d1d4)[_0x3672('0x14')])(_0x3b7a49)&&_0x1eea97[_0x3672('0xc')](_0x38d1d4);}if(_0x1eea97['length']>0x1)throw new _0x1fc76b(_0x3672('0x29'),null,{'matchedUIs':_0x1eea97,'annotationType':_0x3b7a49['type']});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3fcb=['change:isFocused','update','hasDomSelection','isReadOnly','getRanges','registerAnnotation','delete','EditorAnnotations','set','from','directChange','element','model','_dataCollectors','range','uiUpdate','containsRange','change:range','innerView','editor','add','map','remove','refresh','has','getByInnerView','plugins','blur','getOrderedSelectedAnnotations','cancel','_editorAnnotationsData','editing','annotation','isEqual','fire','focusTracker','init','get','_editorAnnotations','requires','collection','view','refreshSelectedViews','listenTo','document'];(function(_0x40f508,_0x3fcb7){const _0x1977ea=function(_0x40d250){while(--_0x40d250){_0x40f508['push'](_0x40f508['shift']());}};_0x1977ea(++_0x3fcb7);}(_0x3fcb,0x175));const _0x1977=function(_0x40f508,_0x3fcb7){_0x40f508=_0x40f508-0x0;let _0x1977ea=_0x3fcb[_0x40f508];return _0x1977ea;};import{Plugin as _0x3e1e73}from'ckeditor5/src/core';import{CKEditorError as _0x5ee804}from'ckeditor5/src/utils';import{debounce as _0x14a90a}from'lodash-es';import _0xebd0a4 from'./annotations';export default class k extends _0x3e1e73{static get[_0x1977('0x1a')](){return[_0xebd0a4];}static get['pluginName'](){return _0x1977('0x27');}constructor(_0x153003){super(_0x153003),this[_0x1977('0x0')]=new Set(),this[_0x1977('0x19')]=new Set();}[_0x1977('0x17')](){const _0x29f6c3=this[_0x1977('0x6')],_0xf73fbe=_0x29f6c3[_0x1977('0x2c')][_0x1977('0x1f')]['selection'],_0x2a12cf=_0x14a90a(()=>this[_0x1977('0x1d')](),0xa);_0xf73fbe['on'](_0x1977('0x4'),(_0x427c6c,_0xf9914f)=>{_0xf9914f[_0x1977('0x2a')]&&(_0x2a12cf[_0x1977('0x10')](),this[_0x1977('0x1d')]());}),this[_0x1977('0x1e')](_0x29f6c3[_0x1977('0x12')]['view'][_0x1977('0x1f')],_0x1977('0x20'),(_0x15e946,_0x176a67,_0x52a95f)=>{_0x52a95f&&_0x2a12cf();}),this[_0x1977('0x1e')](_0x29f6c3['ui']['focusTracker'],_0x1977('0x20'),(_0x109f08,_0x591925,_0x4ee32d)=>{_0x4ee32d||_0x29f6c3[_0x1977('0x23')]||this[_0x1977('0x15')](_0x1977('0xe'),{'isAnnotationTracked':_0xc298c7=>this[_0x1977('0x11')][_0x1977('0xb')](_0xc298c7[_0x1977('0x5')])});}),this[_0x1977('0x1e')](this[_0x1977('0x6')]['ui'],_0x1977('0x21'),()=>this['fire'](_0x1977('0x2')));}[_0x1977('0x25')](_0x487f32){if(this[_0x1977('0x19')][_0x1977('0xb')](_0x487f32))return;this[_0x1977('0x19')]['add'](_0x487f32[_0x1977('0x1c')]),this['editor']['ui'][_0x1977('0x16')][_0x1977('0x7')](_0x487f32[_0x1977('0x1c')][_0x1977('0x2b')]);const _0x298484=this['editor'][_0x1977('0xd')][_0x1977('0x18')](_0xebd0a4);this['listenTo'](_0x298484[_0x1977('0x1b')],'remove',(_0xa9b7f2,_0x4009d8)=>{this['editor']['ui'][_0x1977('0x16')][_0x1977('0x9')](_0x4009d8['view']['element']),this[_0x1977('0x19')][_0x1977('0x26')](_0x4009d8[_0x1977('0x1c')]);});}[_0x1977('0x22')](){return this[_0x1977('0x6')][_0x1977('0x12')][_0x1977('0x1c')][_0x1977('0x22')];}['addSourceCollector'](_0x1fe996){if('function'!=typeof _0x1fe996)throw new _0x5ee804('editorannotations-invalid-source-callback');this[_0x1977('0x0')][_0x1977('0x7')](_0x1fe996);}[_0x1977('0x1d')](){this[_0x1977('0x15')](_0x1977('0xa'));}[_0x1977('0xf')]({activeAnnotation:_0x305d62,annotations:_0x474368}){const _0x4eb5f5=[],_0x4ea2aa=this[_0x1977('0x6')][_0x1977('0x2c')]['document']['selection'],_0x4fe78c=Array[_0x1977('0x29')](_0x4ea2aa[_0x1977('0x24')]());for(const [_0x35f1cd,_0x21085b]of this['_editorAnnotationsData']){const _0x2befcb=_0x11ca91(_0x21085b),_0x46e00c=_0x474368[_0x1977('0xc')](_0x35f1cd);_0x2befcb&&_0x46e00c&&_0x4eb5f5['push']({'annotation':_0x46e00c,'range':_0x2befcb});}function _0x11ca91(_0xa1db23){for(const _0x12b812 of _0xa1db23)for(const _0x8d01d3 of _0x4fe78c)if(_0x12b812[_0x1977('0x3')](_0x8d01d3,!_0x4ea2aa['isCollapsed']))return _0x12b812;return null;}return _0x4eb5f5['sort']((_0x69cfd0,_0x3b8e5e)=>{const _0x28a3f0=_0x69cfd0[_0x1977('0x1')],_0x29f6bf=_0x3b8e5e[_0x1977('0x1')];if(!_0x28a3f0[_0x1977('0x14')](_0x29f6bf)){if(_0x28a3f0['containsRange'](_0x29f6bf,!0x0))return 0x1;if(_0x29f6bf[_0x1977('0x3')](_0x28a3f0,!0x0))return-0x1;}return _0x69cfd0[_0x1977('0x13')]==_0x305d62?-0x1:_0x3b8e5e[_0x1977('0x13')]==_0x305d62?0x1:0x0;})[_0x1977('0x8')](_0x541a08=>_0x541a08[_0x1977('0x13')]);}get[_0x1977('0x11')](){const _0x891dab=new Map();for(const _0x5a5d9d of Array['from'](this[_0x1977('0x0')]))for(const [_0x3335a2,_0x35eef0]of _0x5a5d9d())_0x891dab[_0x1977('0x28')](_0x3335a2,_0x35eef0);return _0x891dab;}}
23
+ const _0x2177=['_editorAnnotationsData','uiUpdate','view','containsRange','set','function','has','change:range','EditorAnnotations','fire','requires','addSourceCollector','refreshSelectedViews','pluginName','listenTo','document','model','element','editorannotations-invalid-source-callback','change:isFocused','add','blur','range','isReadOnly','innerView','sort','_dataCollectors','selection','getRanges','map','plugins','editing','getOrderedSelectedAnnotations','hasDomSelection','isEqual','remove','refresh','focusTracker','_editorAnnotations','editor','get','update','cancel','annotation','getByInnerView','directChange','init'];(function(_0x3113e6,_0x21779c){const _0x4eb1a6=function(_0x226606){while(--_0x226606){_0x3113e6['push'](_0x3113e6['shift']());}};_0x4eb1a6(++_0x21779c);}(_0x2177,0x132));const _0x4eb1=function(_0x3113e6,_0x21779c){_0x3113e6=_0x3113e6-0x0;let _0x4eb1a6=_0x2177[_0x3113e6];return _0x4eb1a6;};import{Plugin as _0x1a2381}from'ckeditor5/src/core';import{CKEditorError as _0x372591}from'ckeditor5/src/utils';import{debounce as _0x4193e5}from'lodash-es';import _0x10bb07 from'./annotations';export default class p extends _0x1a2381{static get[_0x4eb1('0x21')](){return[_0x10bb07];}static get[_0x4eb1('0x24')](){return _0x4eb1('0x1f');}constructor(_0x5567b2){super(_0x5567b2),this[_0x4eb1('0x2')]=new Set(),this[_0x4eb1('0xe')]=new Set();}[_0x4eb1('0x16')](){const _0x4d1988=this[_0x4eb1('0xf')],_0x224c74=_0x4d1988[_0x4eb1('0x27')][_0x4eb1('0x26')][_0x4eb1('0x3')],_0x368370=_0x4193e5(()=>this[_0x4eb1('0x23')](),0xa);_0x224c74['on'](_0x4eb1('0x1e'),(_0x642121,_0xb48fc9)=>{_0xb48fc9[_0x4eb1('0x15')]&&(_0x368370[_0x4eb1('0x12')](),this['refreshSelectedViews']());}),this[_0x4eb1('0x25')](_0x4d1988[_0x4eb1('0x7')][_0x4eb1('0x19')][_0x4eb1('0x26')],_0x4eb1('0x2a'),(_0x4e1eaf,_0x4cfeb2,_0x24a469)=>{_0x24a469&&_0x368370();}),this[_0x4eb1('0x25')](_0x4d1988['ui'][_0x4eb1('0xd')],_0x4eb1('0x2a'),(_0x12dcc6,_0x393acd,_0x48cad2)=>{_0x48cad2||_0x4d1988[_0x4eb1('0x2e')]||this[_0x4eb1('0x20')](_0x4eb1('0x2c'),{'isAnnotationTracked':_0x28344e=>this[_0x4eb1('0x17')]['has'](_0x28344e[_0x4eb1('0x0')])});}),this['listenTo'](this[_0x4eb1('0xf')]['ui'],_0x4eb1('0x11'),()=>this[_0x4eb1('0x20')](_0x4eb1('0x18')));}['registerAnnotation'](_0x28772b){if(this[_0x4eb1('0xe')][_0x4eb1('0x1d')](_0x28772b))return;this[_0x4eb1('0xe')][_0x4eb1('0x2b')](_0x28772b['view']),this['editor']['ui'][_0x4eb1('0xd')][_0x4eb1('0x2b')](_0x28772b[_0x4eb1('0x19')][_0x4eb1('0x28')]);const _0x14b668=this[_0x4eb1('0xf')][_0x4eb1('0x6')][_0x4eb1('0x10')](_0x10bb07);this['listenTo'](_0x14b668['collection'],_0x4eb1('0xb'),(_0x41d7ab,_0x55bbce)=>{this[_0x4eb1('0xf')]['ui']['focusTracker'][_0x4eb1('0xb')](_0x55bbce[_0x4eb1('0x19')][_0x4eb1('0x28')]),this['_editorAnnotations']['delete'](_0x55bbce['view']);});}[_0x4eb1('0x9')](){return this[_0x4eb1('0xf')]['editing'][_0x4eb1('0x19')][_0x4eb1('0x9')];}[_0x4eb1('0x22')](_0x3cabdf){if(_0x4eb1('0x1c')!=typeof _0x3cabdf)throw new _0x372591(_0x4eb1('0x29'));this[_0x4eb1('0x2')][_0x4eb1('0x2b')](_0x3cabdf);}[_0x4eb1('0x23')](){this[_0x4eb1('0x20')](_0x4eb1('0xc'));}[_0x4eb1('0x8')]({activeAnnotation:_0x58d8cc,annotations:_0x26b082}){const _0x1e081c=[],_0x1bdcf3=this[_0x4eb1('0xf')]['model']['document'][_0x4eb1('0x3')],_0x148264=Array['from'](_0x1bdcf3[_0x4eb1('0x4')]());for(const [_0x3a689e,_0x18dbe6]of this[_0x4eb1('0x17')]){const _0x1833a6=_0x167c67(_0x18dbe6),_0x2f2692=_0x26b082[_0x4eb1('0x14')](_0x3a689e);_0x1833a6&&_0x2f2692&&_0x1e081c['push']({'annotation':_0x2f2692,'range':_0x1833a6});}function _0x167c67(_0xefe605){for(const _0xd5a7b8 of _0xefe605)for(const _0xf7bc98 of _0x148264)if(_0xd5a7b8[_0x4eb1('0x1a')](_0xf7bc98,!_0x1bdcf3['isCollapsed']))return _0xd5a7b8;return null;}return _0x1e081c[_0x4eb1('0x1')]((_0xe7801d,_0x5cb603)=>{const _0x4224d9=_0xe7801d[_0x4eb1('0x2d')],_0x457d50=_0x5cb603[_0x4eb1('0x2d')];if(!_0x4224d9[_0x4eb1('0xa')](_0x457d50)){if(_0x4224d9[_0x4eb1('0x1a')](_0x457d50,!0x0))return 0x1;if(_0x457d50[_0x4eb1('0x1a')](_0x4224d9,!0x0))return-0x1;}return _0xe7801d[_0x4eb1('0x13')]==_0x58d8cc?-0x1:_0x5cb603['annotation']==_0x58d8cc?0x1:0x0;})[_0x4eb1('0x5')](_0x569780=>_0x569780[_0x4eb1('0x13')]);}get['_editorAnnotationsData'](){const _0x1cb452=new Map();for(const _0x2a4782 of Array['from'](this[_0x4eb1('0x2')]))for(const [_0x3f6445,_0x55880d]of _0x2a4782())_0x1cb452[_0x4eb1('0x1b')](_0x3f6445,_0x55880d);return _0x1cb452;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x365a=['setActiveAnnotation','editableElement','activeAnnotation','inlineannotations-detach-not-attached','detach','_balloon','change:height','attach','hasView','editor','delete','getOrderedSelectedAnnotations','getByView','_closeAnnotation','_selectedAnnotations','change:visibleView','_manuallyClosed','update','_removeAnnotationFromBalloon','isActive','updatePosition','showStack','set','isAttached','refresh','focus','has','view','focusTracker','requires','context','inline','InlineAnnotations','Esc','add','plugins','annotations','listenTo','blur','stopListening','switchTo','get','isFocused','register','mousedown','bind','_addAnnotationToBalloon','_setSelectedAnnotations','selection','inlineannotations-attach-already-attached','editing','getSelection','getRangeAt','includes','_addedAnnotations','_forceRefresh','document','remove','visibleView','hasActive','destroy'];(function(_0x288347,_0x365aa2){const _0x2d6422=function(_0x5f23f7){while(--_0x5f23f7){_0x288347['push'](_0x288347['shift']());}};_0x2d6422(++_0x365aa2);}(_0x365a,0x10e));const _0x2d64=function(_0x288347,_0x365aa2){_0x288347=_0x288347-0x0;let _0x2d6422=_0x365a[_0x288347];return _0x2d6422;};import{Plugin as _0x2efa8c}from'ckeditor5/src/core';import _0x520f74 from'./annotationsuis';import _0x14b07b from'./editorannotations';import{ContextualBalloon as _0x106781}from'ckeditor5/src/ui';import{MouseObserver as _0x3223b0}from'ckeditor5/src/engine';import{CKEditorError as _0x58a3d5}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class a extends _0x2efa8c{static get[_0x2d64('0x3')](){return[_0x14b07b,_0x106781,_0x520f74];}static get['pluginName'](){return _0x2d64('0x6');}constructor(_0x3349ac){super(_0x3349ac),_0x3349ac['editing'][_0x2d64('0x1')]['addObserver'](_0x3223b0),this[_0x2d64('0x3a')]=!0x1,this[_0x2d64('0x39')](_0x2d64('0x25'),null),this['annotations']=null,this[_0x2d64('0x33')]=new Set(),this[_0x2d64('0x28')]=_0x3349ac[_0x2d64('0x9')][_0x2d64('0xf')](_0x106781),this['_addedAnnotations']=new Set(),this[_0x2d64('0x31')]=[],this[_0x2d64('0x1d')]=!0x1;}['init'](){const _0x135c72=this['editor'][_0x2d64('0x9')]['get'](_0x520f74);_0x135c72[_0x2d64('0x4')]===this[_0x2d64('0x2c')]&&(_0x135c72[_0x2d64('0x11')]('inline',this),this[_0x2d64('0x2c')]['keystrokes'][_0x2d64('0x39')]('Esc',(_0x18a96d,_0x253829)=>{const _0xc236fa=this[_0x2d64('0x28')];if(this[_0x2d64('0x3a')]&&_0xc236fa[_0x2d64('0x20')]){const _0x358362=this['annotations'][_0x2d64('0x2f')](_0xc236fa[_0x2d64('0x20')]);this[_0x2d64('0x30')](_0x358362),_0x253829();}}));}['afterInit'](){const _0x3974c3=this['editor'][_0x2d64('0x9')]['get'](_0x520f74);_0x3974c3[_0x2d64('0x4')]===this[_0x2d64('0x2c')]&&(_0x3974c3[_0x2d64('0x21')]()||_0x3974c3[_0x2d64('0xe')](_0x2d64('0x5')));}[_0x2d64('0x23')](_0x2696b9){_0x2696b9!==this[_0x2d64('0x25')]&&(this[_0x2d64('0x25')]&&(this[_0x2d64('0x25')]['isActive']=!0x1),_0x2696b9&&this[_0x2d64('0x2c')]['ui'][_0x2d64('0x2')][_0x2d64('0x10')]&&(this[_0x2d64('0x14')](_0x2696b9,!0x0),_0x2696b9[_0x2d64('0x36')]=!0x0),_0x2696b9||this[_0x2d64('0x15')]([]),this[_0x2d64('0x25')]=_0x2696b9);}[_0x2d64('0x2a')](_0x490c37){this[_0x2d64('0xa')]=_0x490c37;const _0x50ddde=this[_0x2d64('0x2c')][_0x2d64('0x9')][_0x2d64('0xf')](_0x520f74),_0x35dcab=this['_balloon'];if(this[_0x2d64('0x3a')])throw new _0x58a3d5(_0x2d64('0x17'),this);if(_0x50ddde[_0x2d64('0x4')]!==this['editor'])throw new _0x58a3d5('inlineannotations-not-allowed-with-context',this);const _0x43d624=this[_0x2d64('0x2c')][_0x2d64('0x9')][_0x2d64('0xf')]('EditorAnnotations');this[_0x2d64('0xb')](_0x43d624,_0x2d64('0x3b'),function(){const _0x44c485=_0x43d624[_0x2d64('0x2e')]({'activeAnnotation':this[_0x2d64('0x25')],'annotations':this['annotations']});if(!this[_0x2d64('0x1d')]&&(_0x1bd761=_0x44c485,_0x47f969=this[_0x2d64('0x31')],_0x1bd761['length']===_0x47f969['length']&&_0x1bd761['every'](_0xe84f72=>_0x47f969[_0x2d64('0x1b')](_0xe84f72))))return;var _0x1bd761,_0x47f969;this[_0x2d64('0x1d')]=!0x1,this[_0x2d64('0x15')](_0x44c485),this[_0x2d64('0x23')](_0x44c485[0x0]||null);}[_0x2d64('0x13')](this)),this['listenTo'](_0x43d624,_0x2d64('0xc'),(_0x1d333a,{isAnnotationTracked:_0x124356})=>{this['activeAnnotation']&&_0x124356(this[_0x2d64('0x25')])&&(this[_0x2d64('0x15')]([]),this[_0x2d64('0x23')](null));}),this['listenTo'](this[_0x2d64('0x2c')]['ui'][_0x2d64('0x2')],'change:isFocused',(_0x1a434b,_0x496b02,_0x532185)=>{_0x532185||this[_0x2d64('0x23')](null);}),this[_0x2d64('0xb')](_0x490c37,_0x2d64('0x1f'),(_0x280430,_0x4a1ee2)=>{this[_0x2d64('0x35')](_0x4a1ee2),_0x4a1ee2===this[_0x2d64('0x25')]&&this[_0x2d64('0x23')](null);}),this[_0x2d64('0xb')](_0x35dcab,_0x2d64('0x32'),(_0x434a42,_0x3492cb,_0x3ec2af,_0xd0209e)=>{if(_0xd0209e&&this['stopListening'](_0xd0209e),!_0x3ec2af||!_0x490c37['getByView'](_0x3ec2af))return;const _0x609c0b=_0x490c37[_0x2d64('0x2f')](_0x3ec2af);this[_0x2d64('0xb')](_0x3ec2af,_0x2d64('0x29'),()=>{_0x35dcab['updatePosition']();}),this['listenTo'](_0x3ec2af,_0x2d64('0x7'),()=>{this[_0x2d64('0x30')](_0x609c0b),this['editor'][_0x2d64('0x18')][_0x2d64('0x1')][_0x2d64('0x3c')]();}),this[_0x2d64('0x25')]!==_0x609c0b&&this['setActiveAnnotation'](_0x609c0b);}),this[_0x2d64('0xb')](this[_0x2d64('0x2c')]['ui'],_0x2d64('0x34'),()=>{_0x35dcab[_0x2d64('0x20')]&&(_0x490c37[_0x2d64('0x2f')](_0x35dcab[_0x2d64('0x20')])&&_0x35dcab[_0x2d64('0x37')]());}),this[_0x2d64('0xb')](this['editor']['editing']['view'][_0x2d64('0x1e')],_0x2d64('0x12'),()=>{this['_forceRefresh']=!0x0,this['_manuallyClosed']['clear']();}),this['editor']['editing'][_0x2d64('0x1')][_0x2d64('0x1e')][_0x2d64('0x16')][_0x2d64('0x24')]&&this[_0x2d64('0x2c')][_0x2d64('0x18')][_0x2d64('0x1')][_0x2d64('0x3c')](),this[_0x2d64('0x3a')]=!0x0;}[_0x2d64('0x27')](){if(!this[_0x2d64('0x3a')])throw new _0x58a3d5(_0x2d64('0x26'),this);this['setActiveAnnotation'](null);for(const _0x3e615f of this[_0x2d64('0x1c')])this[_0x2d64('0x35')](_0x3e615f);this[_0x2d64('0xd')](),this[_0x2d64('0x3a')]=!0x1,this[_0x2d64('0xa')]=null;}[_0x2d64('0x22')](){this[_0x2d64('0x3a')]&&this['detach']();}[_0x2d64('0x15')](_0x4a79cf){for(const _0x5675d6 of this[_0x2d64('0x31')])_0x4a79cf[_0x2d64('0x1b')](_0x5675d6)||this['_manuallyClosed'][_0x2d64('0x2d')](_0x5675d6);for(const _0x349b84 of this[_0x2d64('0xa')])_0x4a79cf[_0x2d64('0x1b')](_0x349b84)||this[_0x2d64('0x35')](_0x349b84);if(this[_0x2d64('0x2c')]['ui'][_0x2d64('0x2')][_0x2d64('0x10')])for(const _0x337144 of _0x4a79cf)this[_0x2d64('0x14')](_0x337144);this['_selectedAnnotations']=_0x4a79cf;}['_addAnnotationToBalloon'](_0x190b31,_0x156004){this[_0x2d64('0x33')][_0x2d64('0x0')](_0x190b31)||(this['_addedAnnotations'][_0x2d64('0x0')](_0x190b31)||this[_0x2d64('0x28')][_0x2d64('0x2b')](_0x190b31[_0x2d64('0x1')])||(this['_addedAnnotations'][_0x2d64('0x8')](_0x190b31),this[_0x2d64('0x28')]['add']({'stackId':_0x190b31['view']['id'],'view':_0x190b31[_0x2d64('0x1')],'position':{'target':()=>_0x190b31['target']||_0x190b31['targetRect']||document[_0x2d64('0x19')]()[_0x2d64('0x1a')](0x0)}})),_0x156004&&this['_balloon'][_0x2d64('0x38')](_0x190b31[_0x2d64('0x1')]['id']));}[_0x2d64('0x35')](_0x4ea714){this[_0x2d64('0x1c')][_0x2d64('0x0')](_0x4ea714)&&this[_0x2d64('0x28')][_0x2d64('0x2b')](_0x4ea714['view'])&&(this[_0x2d64('0x1c')][_0x2d64('0x2d')](_0x4ea714),this[_0x2d64('0x28')][_0x2d64('0x1f')](_0x4ea714['view']));}[_0x2d64('0x30')](_0xad5fea){this[_0x2d64('0x33')]['add'](_0xad5fea),this['_removeAnnotationFromBalloon'](_0xad5fea);}}
23
+ const _0x3be0=['register','isFocused','getSelection','annotations','activeAnnotation','getByView','context','updatePosition','_addAnnotationToBalloon','includes','focus','_removeAnnotationFromBalloon','remove','getRangeAt','focusTracker','mousedown','inlineannotations-attach-already-attached','length','every','get','hasActive','document','bind','InlineAnnotations','_addedAnnotations','listenTo','Esc','selection','add','refresh','isActive','_selectedAnnotations','set','init','_forceRefresh','editing','change:height','delete','_manuallyClosed','inline','view','clear','target','has','keystrokes','update','isAttached','visibleView','hasView','_setSelectedAnnotations','detach','targetRect','EditorAnnotations','change:isFocused','plugins','editor','stopListening','setActiveAnnotation','_balloon','inlineannotations-not-allowed-with-context','getOrderedSelectedAnnotations','_closeAnnotation'];(function(_0xa1a2c4,_0x3be07b){const _0x475c4b=function(_0x5a57ea){while(--_0x5a57ea){_0xa1a2c4['push'](_0xa1a2c4['shift']());}};_0x475c4b(++_0x3be07b);}(_0x3be0,0x8e));const _0x475c=function(_0xa1a2c4,_0x3be07b){_0xa1a2c4=_0xa1a2c4-0x0;let _0x475c4b=_0x3be0[_0xa1a2c4];return _0x475c4b;};import{Plugin as _0x3db419}from'ckeditor5/src/core';import _0x305bf3 from'./annotationsuis';import _0x3f82b7 from'./editorannotations';import{ContextualBalloon as _0x505abe}from'ckeditor5/src/ui';import{MouseObserver as _0x318e02}from'ckeditor5/src/engine';import{CKEditorError as _0x32a249}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class a extends _0x3db419{static get['requires'](){return[_0x3f82b7,_0x505abe,_0x305bf3];}static get['pluginName'](){return _0x475c('0x5');}constructor(_0x55b6fb){super(_0x55b6fb),_0x55b6fb[_0x475c('0x11')][_0x475c('0x16')]['addObserver'](_0x318e02),this[_0x475c('0x1c')]=!0x1,this['set'](_0x475c('0x30'),null),this[_0x475c('0x2f')]=null,this[_0x475c('0x14')]=new Set(),this[_0x475c('0x28')]=_0x55b6fb[_0x475c('0x24')][_0x475c('0x1')](_0x505abe),this[_0x475c('0x6')]=new Set(),this[_0x475c('0xd')]=[],this[_0x475c('0x10')]=!0x1;}[_0x475c('0xf')](){const _0x4fbdeb=this[_0x475c('0x25')]['plugins'][_0x475c('0x1')](_0x305bf3);_0x4fbdeb['context']===this['editor']&&(_0x4fbdeb[_0x475c('0x2c')](_0x475c('0x15'),this),this[_0x475c('0x25')][_0x475c('0x1a')][_0x475c('0xe')](_0x475c('0x8'),(_0x24b38f,_0x313c52)=>{const _0x48abcb=this[_0x475c('0x28')];if(this[_0x475c('0x1c')]&&_0x48abcb[_0x475c('0x1d')]){const _0x4077f9=this[_0x475c('0x2f')][_0x475c('0x31')](_0x48abcb[_0x475c('0x1d')]);this[_0x475c('0x2b')](_0x4077f9),_0x313c52();}}));}['afterInit'](){const _0x1e7052=this['editor']['plugins'][_0x475c('0x1')](_0x305bf3);_0x1e7052['context']===this[_0x475c('0x25')]&&(_0x1e7052[_0x475c('0x2')]()||_0x1e7052['switchTo'](_0x475c('0x15')));}[_0x475c('0x27')](_0x153abf){_0x153abf!==this[_0x475c('0x30')]&&(this[_0x475c('0x30')]&&(this[_0x475c('0x30')][_0x475c('0xc')]=!0x1),_0x153abf&&this[_0x475c('0x25')]['ui'][_0x475c('0x3a')][_0x475c('0x2d')]&&(this[_0x475c('0x34')](_0x153abf,!0x0),_0x153abf[_0x475c('0xc')]=!0x0),_0x153abf||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x153abf);}['attach'](_0x4bb175){this[_0x475c('0x2f')]=_0x4bb175;const _0x808980=this[_0x475c('0x25')][_0x475c('0x24')][_0x475c('0x1')](_0x305bf3),_0x2f5fbc=this[_0x475c('0x28')];if(this[_0x475c('0x1c')])throw new _0x32a249(_0x475c('0x3c'),this);if(_0x808980[_0x475c('0x32')]!==this[_0x475c('0x25')])throw new _0x32a249(_0x475c('0x29'),this);const _0x27975d=this[_0x475c('0x25')][_0x475c('0x24')][_0x475c('0x1')](_0x475c('0x22'));this[_0x475c('0x7')](_0x27975d,_0x475c('0xb'),function(){const _0x3db019=_0x27975d[_0x475c('0x2a')]({'activeAnnotation':this[_0x475c('0x30')],'annotations':this[_0x475c('0x2f')]});if(!this[_0x475c('0x10')]&&(_0x5b7aa7=_0x3db019,_0xaf125c=this[_0x475c('0xd')],_0x5b7aa7[_0x475c('0x3d')]===_0xaf125c[_0x475c('0x3d')]&&_0x5b7aa7[_0x475c('0x0')](_0x2064de=>_0xaf125c['includes'](_0x2064de))))return;var _0x5b7aa7,_0xaf125c;this[_0x475c('0x10')]=!0x1,this[_0x475c('0x1f')](_0x3db019),this[_0x475c('0x27')](_0x3db019[0x0]||null);}[_0x475c('0x4')](this)),this[_0x475c('0x7')](_0x27975d,'blur',(_0x1e6180,{isAnnotationTracked:_0x3242ee})=>{this['activeAnnotation']&&_0x3242ee(this[_0x475c('0x30')])&&(this[_0x475c('0x1f')]([]),this['setActiveAnnotation'](null));}),this[_0x475c('0x7')](this[_0x475c('0x25')]['ui'][_0x475c('0x3a')],_0x475c('0x23'),(_0x31eed9,_0x41f230,_0xf27e71)=>{_0xf27e71||this[_0x475c('0x27')](null);}),this[_0x475c('0x7')](_0x4bb175,_0x475c('0x38'),(_0x35fd6f,_0x1298e3)=>{this[_0x475c('0x37')](_0x1298e3),_0x1298e3===this[_0x475c('0x30')]&&this[_0x475c('0x27')](null);}),this[_0x475c('0x7')](_0x2f5fbc,'change:visibleView',(_0x67d6bb,_0x6af5a,_0x4bfae7,_0x36d488)=>{if(_0x36d488&&this['stopListening'](_0x36d488),!_0x4bfae7||!_0x4bb175['getByView'](_0x4bfae7))return;const _0x22d9aa=_0x4bb175[_0x475c('0x31')](_0x4bfae7);this['listenTo'](_0x4bfae7,_0x475c('0x12'),()=>{_0x2f5fbc[_0x475c('0x33')]();}),this[_0x475c('0x7')](_0x4bfae7,_0x475c('0x8'),()=>{this[_0x475c('0x2b')](_0x22d9aa),this[_0x475c('0x25')]['editing'][_0x475c('0x16')]['focus']();}),this[_0x475c('0x30')]!==_0x22d9aa&&this[_0x475c('0x27')](_0x22d9aa);}),this[_0x475c('0x7')](this[_0x475c('0x25')]['ui'],_0x475c('0x1b'),()=>{_0x2f5fbc['visibleView']&&(_0x4bb175['getByView'](_0x2f5fbc['visibleView'])&&_0x2f5fbc[_0x475c('0x33')]());}),this[_0x475c('0x7')](this[_0x475c('0x25')]['editing'][_0x475c('0x16')][_0x475c('0x3')],_0x475c('0x3b'),()=>{this['_forceRefresh']=!0x0,this[_0x475c('0x14')][_0x475c('0x17')]();}),this[_0x475c('0x25')][_0x475c('0x11')]['view'][_0x475c('0x3')][_0x475c('0x9')]['editableElement']&&this[_0x475c('0x25')]['editing'][_0x475c('0x16')][_0x475c('0x36')](),this[_0x475c('0x1c')]=!0x0;}[_0x475c('0x20')](){if(!this[_0x475c('0x1c')])throw new _0x32a249('inlineannotations-detach-not-attached',this);this[_0x475c('0x27')](null);for(const _0x25cadf of this[_0x475c('0x6')])this[_0x475c('0x37')](_0x25cadf);this[_0x475c('0x26')](),this[_0x475c('0x1c')]=!0x1,this[_0x475c('0x2f')]=null;}['destroy'](){this[_0x475c('0x1c')]&&this[_0x475c('0x20')]();}[_0x475c('0x1f')](_0x42f2bf){for(const _0x2204ba of this[_0x475c('0xd')])_0x42f2bf[_0x475c('0x35')](_0x2204ba)||this['_manuallyClosed']['delete'](_0x2204ba);for(const _0x366cd7 of this[_0x475c('0x2f')])_0x42f2bf[_0x475c('0x35')](_0x366cd7)||this[_0x475c('0x37')](_0x366cd7);if(this['editor']['ui'][_0x475c('0x3a')][_0x475c('0x2d')])for(const _0xbce0d of _0x42f2bf)this['_addAnnotationToBalloon'](_0xbce0d);this['_selectedAnnotations']=_0x42f2bf;}[_0x475c('0x34')](_0x316e57,_0x4246dc){this[_0x475c('0x14')][_0x475c('0x19')](_0x316e57)||(this[_0x475c('0x6')]['has'](_0x316e57)||this[_0x475c('0x28')]['hasView'](_0x316e57[_0x475c('0x16')])||(this[_0x475c('0x6')]['add'](_0x316e57),this['_balloon'][_0x475c('0xa')]({'stackId':_0x316e57[_0x475c('0x16')]['id'],'view':_0x316e57['view'],'position':{'target':()=>_0x316e57[_0x475c('0x18')]||_0x316e57[_0x475c('0x21')]||document[_0x475c('0x2e')]()[_0x475c('0x39')](0x0)}})),_0x4246dc&&this[_0x475c('0x28')]['showStack'](_0x316e57[_0x475c('0x16')]['id']));}[_0x475c('0x37')](_0x4bc6e0){this['_addedAnnotations']['has'](_0x4bc6e0)&&this[_0x475c('0x28')][_0x475c('0x1e')](_0x4bc6e0['view'])&&(this['_addedAnnotations'][_0x475c('0x13')](_0x4bc6e0),this[_0x475c('0x28')][_0x475c('0x38')](_0x4bc6e0[_0x475c('0x16')]));}[_0x475c('0x2b')](_0x2362be){this['_manuallyClosed'][_0x475c('0xa')](_0x2362be),this[_0x475c('0x37')](_0x2362be);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2bb9=['low','context','content','locale','annotations','mousedown','isDirty','_editorAnnotations','values','addAnnotation','narrowsidebar-attach-already-attached','northArrowSouthEast','keydown','ck-sidebar--narrow','contains','editors','southArrowNorth','_integrateWithEditorAnnotations','change:container','pluginName','_domEmitter','northArrowSouth','remove','_updateBalloonPosition','getSidebarItemView','add','isVisible','change:height','unpin','_showBalloon','has','activeAnnotation','blur','length','execute','set','_hideBalloon','Esc','delete','_attachToContainer','_manuallyClosedAnnotationViews','_detachListeners','balloonPanelView','removeEventListener','southArrowNorthWest','listenTo','resize','northArrowSouthWest','register','clear','hasDomSelection','preventDefault','southArrowNorthEast','number','_refreshPositioningDebounced','attach','high','_destroyEditorAnnotationsIntegration','focus','plugins','EditorAnnotations','_attachListeners','NarrowSidebar','_detachFromContainer','_selectedAnnotations','defaultPositions','view','_annotationToNarrowView','detach','_annotations','from','refresh','isAttached','set:container','addEventListener','element','cancel','off','get','narrowsidebar-detach-not-attached','_refreshPositioning','stopPropagation','first','keyCode','stop','narrowSidebar','destroy','bodyCollection','_setSelectedAnnotations','pin','setActiveAnnotation','stopListening','target','init','annotationType'];(function(_0x5afe90,_0x2bb980){const _0x36184d=function(_0xb72d64){while(--_0xb72d64){_0x5afe90['push'](_0x5afe90['shift']());}};_0x36184d(++_0x2bb980);}(_0x2bb9,0x7b));const _0x3618=function(_0x5afe90,_0x2bb980){_0x5afe90=_0x5afe90-0x0;let _0x36184d=_0x2bb9[_0x5afe90];return _0x36184d;};import{ContextPlugin as _0x423960}from'ckeditor5/src/core';import _0x2e66c9 from'./annotationsuis';import _0x402a53 from'./sidebar';import _0x315d6d from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x311c5d,BodyCollection as _0x5706cf}from'ckeditor5/src/ui';import{CKEditorError as _0x11d39a,DomEmitterMixin as _0x2c7250,keyCodes as _0x36289a,Collection as _0x549104}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x5cf363}from'lodash-es';export default class s extends _0x423960{static get['requires'](){return[_0x402a53,_0x2e66c9];}static get[_0x3618('0x56')](){return _0x3618('0x22');}constructor(_0x2c506b){super(_0x2c506b),this[_0x3618('0x2c')]=!0x1,this[_0x3618('0xc')]=new Set(),this[_0x3618('0x57')]=Object['create'](_0x2c7250),this[_0x3618('0x27')]=new Map(),this[_0x3618('0x7')](_0x3618('0x3'),null),this[_0x3618('0x47')]=null,this[_0x3618('0x24')]=[],this[_0x3618('0x4a')]=new _0x549104(),this[_0x3618('0x1a')]=_0x5cf363(()=>{this[_0x3618('0x34')]();},0xfa,{'leading':!0x1});}[_0x3618('0x41')](){this[_0x3618('0x44')][_0x3618('0x1f')]['get'](_0x2e66c9)[_0x3618('0x14')](_0x3618('0x39'),this),this[_0x3618('0x3b')]=new _0x5706cf(this[_0x3618('0x44')][_0x3618('0x46')]),this[_0x3618('0xe')]=new _0x311c5d(this[_0x3618('0x44')][_0x3618('0x46')]),this['bodyCollection']['attachToDom'](),this[_0x3618('0x3b')][_0x3618('0x5c')](this[_0x3618('0xe')]);}[_0x3618('0x1b')](_0xa95c94){this['annotations']=_0xa95c94;const _0x585469=this['context'][_0x3618('0x1f')][_0x3618('0x32')](_0x402a53),_0x8ed3cb=this[_0x3618('0xe')];if(_0x585469[_0x3618('0x29')]=_0xa95c94,this[_0x3618('0x2c')])throw new _0x11d39a(_0x3618('0x4d'),this);this[_0x3618('0x2c')]=!0x0,this['listenTo'](_0x585469,_0x3618('0x2d'),()=>{this[_0x3618('0x28')](),this[_0x3618('0x11')](_0x585469,_0x3618('0x55'),_0x1ede2b=>{_0x1ede2b[_0x3618('0x31')](),this[_0x3618('0x1b')](_0xa95c94);});}),_0x585469[_0x3618('0xb')]({'viewClass':_0x3618('0x50'),'spaceBetweenItems':0x5});const _0x13395b=_0x1c68b5=>{const _0x52eb1f=new _0x315d6d(this[_0x3618('0x44')][_0x3618('0x46')]);_0x585469[_0x3618('0x4c')](_0x1c68b5,_0x52eb1f),this['_annotationToNarrowView'][_0x3618('0x7')](_0x1c68b5,_0x52eb1f),_0x52eb1f['bind'](_0x3618('0x49'),_0x3618('0x42'),_0x3618('0x19'))['to'](_0x1c68b5[_0x3618('0x26')],'isDirty','type',_0x3618('0x5')),_0x52eb1f['on'](_0x3618('0x6'),()=>{this[_0x3618('0xc')][_0x3618('0x15')](),_0x8ed3cb['content']['first']!==_0x1c68b5[_0x3618('0x26')]?(this[_0x3618('0x1')](_0x1c68b5),_0x1c68b5[_0x3618('0x26')]['element'][_0x3618('0x1e')](),this[_0x3618('0x3e')](_0x1c68b5)):this[_0x3618('0x3e')](null);});};for(const _0x3cd62c of _0xa95c94)_0x13395b(_0x3cd62c);this['listenTo'](_0xa95c94,_0x3618('0x5c'),(_0x4a05a3,_0x47ed0d)=>{_0x13395b(_0x47ed0d);}),this[_0x3618('0x11')](_0xa95c94,_0x3618('0x59'),(_0x1d4e4e,_0x548175,_0x261322)=>{this[_0x3618('0x27')][_0x3618('0x32')](_0x548175)['destroy'](),this[_0x3618('0x27')][_0x3618('0xa')](_0x548175),_0x585469['rearrange']({'removedAnnotation':_0x548175,'previousAnnotation':_0xa95c94[_0x3618('0x32')](_0x261322-0x1),'nextAnnotation':_0xa95c94[_0x3618('0x32')](_0x261322+0x1)}),_0x548175===this[_0x3618('0x3')]&&this[_0x3618('0x3e')](null);},{'priority':_0x3618('0x43')}),this[_0x3618('0x11')](_0xa95c94,'focus',(_0x592482,_0x562e02)=>{this[_0x3618('0x3e')](_0x562e02);}),this[_0x3618('0x11')](_0xa95c94,_0x3618('0x4'),()=>{this[_0x3618('0x3e')](null);}),this[_0x3618('0x57')][_0x3618('0x11')](document,_0x3618('0x4f'),(_0x26d50c,_0x3cbb12)=>{_0x3cbb12[_0x3618('0x37')]===_0x36289a['esc']&&_0x8ed3cb[_0x3618('0x5d')]&&(this['_manuallyClosedAnnotationViews']['add'](_0x8ed3cb['content'][_0x3618('0x36')]),this[_0x3618('0x8')](),_0x3cbb12[_0x3618('0x35')](),_0x3cbb12[_0x3618('0x17')]());}),this[_0x3618('0x57')][_0x3618('0x11')](document,_0x3618('0x48'),(_0x59de49,_0x5111c7)=>{const _0x105b4b=_0x5111c7[_0x3618('0x40')];_0x8ed3cb['isVisible']&&_0x8ed3cb['element']['contains'](_0x105b4b)||_0x585469[_0x3618('0x26')][_0x3618('0x2f')]['contains'](_0x105b4b)||_0x59de49['preventClosingBalloon']||(this[_0x3618('0xc')]['clear'](),this['_hideBalloon'](),this[_0x3618('0x3e')](null));});const _0x48c437=this['context'][_0x3618('0x52')]?this[_0x3618('0x44')][_0x3618('0x52')]:new _0x549104([this[_0x3618('0x44')]]);for(const _0x46a848 of _0x48c437)this[_0x3618('0x54')](_0x46a848);this['listenTo'](_0x48c437,_0x3618('0x5c'),(_0x2f88af,_0x342802)=>{this[_0x3618('0x11')](_0x342802,'ready',()=>{this[_0x3618('0x54')](_0x342802);});}),this[_0x3618('0x11')](_0x48c437,_0x3618('0x59'),(_0x32b9ed,_0x532cbc)=>{_0x532cbc['plugins'][_0x3618('0x2')](_0x3618('0x20'))&&this['_destroyEditorAnnotationsIntegration'](_0x532cbc[_0x3618('0x1f')][_0x3618('0x32')](_0x3618('0x20')));}),window[_0x3618('0x2e')](_0x3618('0x12'),this[_0x3618('0x1a')]),this[_0x3618('0x34')]();}['setActiveAnnotation'](_0x530fe0){if(_0x530fe0===this[_0x3618('0x3')])return;const _0x2e4a20=this[_0x3618('0x44')][_0x3618('0x1f')][_0x3618('0x32')]('Sidebar');if(_0x2e4a20[_0x3618('0x2b')]({'blurredAnnotation':this[_0x3618('0x3')],'activatedAnnotation':_0x530fe0,'disableAnimationOnActivatedAnnotation':!0x0}),_0x530fe0)_0x2e4a20[_0x3618('0x5b')](_0x530fe0)?this[_0x3618('0x1')](_0x530fe0):this[_0x3618('0x8')]();else this[_0x3618('0x8')]();this[_0x3618('0x3')]=_0x530fe0;}[_0x3618('0x28')](){if(!this[_0x3618('0x2c')])throw new _0x11d39a(_0x3618('0x33'),this);this[_0x3618('0x3e')](null);const _0x39398a=this['context'][_0x3618('0x1f')]['get']('Sidebar');this[_0x3618('0x8')](),Array[_0x3618('0x2a')](this[_0x3618('0x27')][_0x3618('0x4b')](),_0x8194eb=>_0x8194eb['destroy']()),this['_annotationToNarrowView'][_0x3618('0x15')](),_0x39398a[_0x3618('0x23')](this[_0x3618('0x47')]),this['stopListening'](),this[_0x3618('0x57')][_0x3618('0x3f')](),this[_0x3618('0x3f')](this[_0x3618('0x44')][_0x3618('0x52')]);for(const _0x541b92 of Array['from'](this[_0x3618('0x4a')]))this[_0x3618('0x1d')](_0x541b92);window[_0x3618('0xf')]('resize',this[_0x3618('0x1a')]),this['_refreshPositioningDebounced'][_0x3618('0x30')](),this[_0x3618('0x24')]=[],this[_0x3618('0x2c')]=!0x1,this[_0x3618('0x47')]=null;}[_0x3618('0x3a')](){this[_0x3618('0x2c')]&&this[_0x3618('0x28')](),this[_0x3618('0x3b')]['detachFromDom']();}['_integrateWithEditorAnnotations'](_0x16f2ce){const _0x55a23a=_0x16f2ce[_0x3618('0x1f')][_0x3618('0x32')](_0x3618('0x20')),_0x169fab=this[_0x3618('0x44')]['plugins'][_0x3618('0x32')](_0x402a53),_0x421d4a=this['annotations'],_0x11a8c9=this[_0x3618('0xe')],_0x1aee28=()=>{const _0x5db6ac=_0x55a23a['getOrderedSelectedAnnotations']({'activeAnnotation':this[_0x3618('0x3')],'annotations':this[_0x3618('0x47')]});this[_0x3618('0x3c')](_0x5db6ac),this['setActiveAnnotation'](_0x5db6ac[0x0]||null);};this[_0x3618('0x11')](_0x55a23a,_0x3618('0x2b'),_0x1aee28),this[_0x3618('0x11')](_0x55a23a,_0x3618('0x4'),(_0x172d7c,{isAnnotationTracked:_0x3586b7})=>{this[_0x3618('0x3')]&&_0x3586b7(this[_0x3618('0x3')])&&(this[_0x3618('0x3c')]([]),this['setActiveAnnotation'](null));}),this[_0x3618('0x11')](_0x55a23a,'uiUpdate',()=>{this[_0x3618('0x1a')]();}),this[_0x3618('0x11')](_0x421d4a,'blur',_0x43bc4c=>{_0x55a23a[_0x3618('0x16')]()&&_0x43bc4c[_0x3618('0x38')]();},{'priority':'high'}),this[_0x3618('0x57')][_0x3618('0x11')](document,'mousedown',(_0x4ae3f9,_0x4be687)=>{const _0x5df2d7=_0x4be687[_0x3618('0x40')];_0x11a8c9['isVisible']&&_0x11a8c9[_0x3618('0x2f')]['contains'](_0x5df2d7)||_0x169fab['view'][_0x3618('0x2f')][_0x3618('0x51')](_0x5df2d7)||this[_0x3618('0x3')]&&_0x55a23a['hasDomSelection']()&&(_0x1aee28(),_0x4ae3f9['preventClosingBalloon']=!0x0);},{'priority':_0x3618('0x1c')}),this[_0x3618('0x4a')][_0x3618('0x5c')](_0x55a23a);}['_destroyEditorAnnotationsIntegration'](_0x516283){_0x516283&&(this[_0x3618('0x3f')](_0x516283),this[_0x3618('0x4a')][_0x3618('0x59')](_0x516283));}[_0x3618('0x3c')](_0x413ff9){for(const _0x768951 of this['_selectedAnnotations'])_0x413ff9['includes'](_0x768951)||this[_0x3618('0xc')]['delete'](_0x768951[_0x3618('0x26')]);this[_0x3618('0x24')]=_0x413ff9;}[_0x3618('0x34')](){const _0x2b8fc3=this[_0x3618('0xe')];this['annotations']['refreshPositioning'](),_0x2b8fc3[_0x3618('0x5d')]&&this['_updateBalloonPosition']();}[_0x3618('0x1')](_0x4cc55e){if(this[_0x3618('0xc')][_0x3618('0x2')](_0x4cc55e[_0x3618('0x26')]))return;const _0x1a6e3f=this[_0x3618('0xe')]['content'][_0x3618('0x36')];_0x1a6e3f!==_0x4cc55e[_0x3618('0x26')]?(_0x1a6e3f&&this[_0x3618('0xd')](_0x1a6e3f),this[_0x3618('0x21')](_0x4cc55e['view']),this[_0x3618('0xe')][_0x3618('0x45')]['clear'](),this[_0x3618('0xe')][_0x3618('0x45')][_0x3618('0x5c')](_0x4cc55e['view']),this[_0x3618('0x5a')]()):this['_updateBalloonPosition']();}[_0x3618('0x5a')](){const _0x4bbb86=this[_0x3618('0xe')]['content'][_0x3618('0x36')],_0x26b471=this[_0x3618('0x47')]['getByView'](_0x4bbb86);if(!this['_annotationToNarrowView'][_0x3618('0x2')](_0x26b471))return;const _0x490fbe=this['_annotationToNarrowView'][_0x3618('0x32')](_0x26b471)[_0x3618('0x2f')],_0x5e459e=function(){const _0x1cf947=_0x311c5d[_0x3618('0x25')];return[_0x1cf947[_0x3618('0x18')],_0x1cf947[_0x3618('0x4e')],_0x1cf947[_0x3618('0x53')],_0x1cf947[_0x3618('0x58')],_0x1cf947[_0x3618('0x10')],_0x1cf947[_0x3618('0x13')]];}();this[_0x3618('0xe')][_0x3618('0x3d')]({'target':_0x490fbe,'positions':_0x5e459e});}[_0x3618('0x8')](){const _0x573a44=this[_0x3618('0xe')],_0x1dceac=_0x573a44[_0x3618('0x45')][_0x3618('0x36')];_0x1dceac&&(this['_detachListeners'](_0x1dceac),_0x573a44[_0x3618('0x0')](),_0x573a44[_0x3618('0x45')]['clear']());}[_0x3618('0x21')](_0x17dc80){this['listenTo'](_0x17dc80,_0x3618('0x5e'),()=>this['_updateBalloonPosition']()),this[_0x3618('0x11')](_0x17dc80,_0x3618('0x9'),(_0x39d0dd,_0x3f0c6d)=>{this['_manuallyClosedAnnotationViews']['add'](_0x17dc80),this[_0x3618('0x8')](),_0x3f0c6d();});}[_0x3618('0xd')](_0x32dcc2){this['stopListening'](_0x32dcc2);}}
23
+ const _0x4910=['attach','_hideBalloon','_refreshPositioningDebounced','_showBalloon','_selectedAnnotations','isDirty','southArrowNorthWest','context','view','rearrange','plugins','cancel','element','southArrowNorthEast','clear','delete','_annotations','keydown','getByView','_integrateWithEditorAnnotations','_editorAnnotations','focus','contains','preventClosingBalloon','listenTo','_destroyEditorAnnotationsIntegration','execute','includes','off','isVisible','bind','isAttached','set','first','NarrowSidebar','unpin','ready','EditorAnnotations','refreshPositioning','hasDomSelection','locale','annotations','content','setActiveAnnotation','_attachToContainer','target','attachToDom','uiUpdate','northArrowSouth','resize','annotationType','refresh','stopListening','create','Sidebar','bodyCollection','remove','_setSelectedAnnotations','length','_manuallyClosedAnnotationViews','register','_detachListeners','destroy','blur','defaultPositions','init','_updateBalloonPosition','activeAnnotation','mousedown','stop','add','detach','_annotationToNarrowView','_refreshPositioning','balloonPanelView','narrowsidebar-detach-not-attached','esc','addEventListener','getSidebarItemView','type','from','ck-sidebar--narrow','change:container','high','editors','requires','get','_domEmitter','preventDefault'];(function(_0x425f7f,_0x491060){const _0x38bd04=function(_0x2c048a){while(--_0x2c048a){_0x425f7f['push'](_0x425f7f['shift']());}};_0x38bd04(++_0x491060);}(_0x4910,0x17b));const _0x38bd=function(_0x425f7f,_0x491060){_0x425f7f=_0x425f7f-0x0;let _0x38bd04=_0x4910[_0x425f7f];return _0x38bd04;};import{ContextPlugin as _0x18e68e}from'ckeditor5/src/core';import _0x155c57 from'./annotationsuis';import _0x443cbb from'./sidebar';import _0x38f6c7 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x3bd854,BodyCollection as _0x57ec29}from'ckeditor5/src/ui';import{CKEditorError as _0x503497,DomEmitterMixin as _0x28d884,keyCodes as _0xaa88fb,Collection as _0x378c4a}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x3b42c7}from'lodash-es';export default class s extends _0x18e68e{static get[_0x38bd('0x3e')](){return[_0x443cbb,_0x155c57];}static get['pluginName'](){return _0x38bd('0xb');}constructor(_0x2ef356){super(_0x2ef356),this['isAttached']=!0x1,this[_0x38bd('0x24')]=new Set(),this['_domEmitter']=Object[_0x38bd('0x1e')](_0x28d884),this[_0x38bd('0x31')]=new Map(),this[_0x38bd('0x9')](_0x38bd('0x2c'),null),this['annotations']=null,this[_0x38bd('0x46')]=[],this[_0x38bd('0x56')]=new _0x378c4a(),this[_0x38bd('0x44')]=_0x3b42c7(()=>{this[_0x38bd('0x32')]();},0xfa,{'leading':!0x1});}[_0x38bd('0x2a')](){this['context'][_0x38bd('0x4c')][_0x38bd('0x3f')](_0x155c57)[_0x38bd('0x25')]('narrowSidebar',this),this['bodyCollection']=new _0x57ec29(this[_0x38bd('0x49')][_0x38bd('0x11')]),this[_0x38bd('0x33')]=new _0x3bd854(this[_0x38bd('0x49')][_0x38bd('0x11')]),this['bodyCollection'][_0x38bd('0x17')](),this[_0x38bd('0x20')][_0x38bd('0x2f')](this[_0x38bd('0x33')]);}[_0x38bd('0x42')](_0x19974a){this[_0x38bd('0x12')]=_0x19974a;const _0x1494a4=this[_0x38bd('0x49')][_0x38bd('0x4c')][_0x38bd('0x3f')](_0x443cbb),_0x49f341=this[_0x38bd('0x33')];if(_0x1494a4[_0x38bd('0x52')]=_0x19974a,this['isAttached'])throw new _0x503497('narrowsidebar-attach-already-attached',this);this[_0x38bd('0x8')]=!0x0,this[_0x38bd('0x1')](_0x1494a4,'set:container',()=>{this[_0x38bd('0x30')](),this[_0x38bd('0x1')](_0x1494a4,_0x38bd('0x3b'),_0x1a26eb=>{_0x1a26eb[_0x38bd('0x5')](),this[_0x38bd('0x42')](_0x19974a);});}),_0x1494a4[_0x38bd('0x15')]({'viewClass':_0x38bd('0x3a'),'spaceBetweenItems':0x5});const _0x4782d2=_0x513144=>{const _0x34ae98=new _0x38f6c7(this[_0x38bd('0x49')][_0x38bd('0x11')]);_0x1494a4['addAnnotation'](_0x513144,_0x34ae98),this[_0x38bd('0x31')][_0x38bd('0x9')](_0x513144,_0x34ae98),_0x34ae98[_0x38bd('0x7')]('isDirty',_0x38bd('0x1b'),'number')['to'](_0x513144['view'],_0x38bd('0x47'),_0x38bd('0x38'),_0x38bd('0x23')),_0x34ae98['on'](_0x38bd('0x3'),()=>{this['_manuallyClosedAnnotationViews'][_0x38bd('0x50')](),_0x49f341[_0x38bd('0x13')][_0x38bd('0xa')]!==_0x513144['view']?(this[_0x38bd('0x45')](_0x513144),_0x513144[_0x38bd('0x4a')][_0x38bd('0x4e')][_0x38bd('0x57')](),this[_0x38bd('0x14')](_0x513144)):this[_0x38bd('0x14')](null);});};for(const _0x49fb9e of _0x19974a)_0x4782d2(_0x49fb9e);this[_0x38bd('0x1')](_0x19974a,_0x38bd('0x2f'),(_0x5b2f29,_0x4b8216)=>{_0x4782d2(_0x4b8216);}),this['listenTo'](_0x19974a,_0x38bd('0x21'),(_0x49e10a,_0x222c77,_0xdae87a)=>{this[_0x38bd('0x31')][_0x38bd('0x3f')](_0x222c77)['destroy'](),this['_annotationToNarrowView'][_0x38bd('0x51')](_0x222c77),_0x1494a4[_0x38bd('0x4b')]({'removedAnnotation':_0x222c77,'previousAnnotation':_0x19974a[_0x38bd('0x3f')](_0xdae87a-0x1),'nextAnnotation':_0x19974a[_0x38bd('0x3f')](_0xdae87a+0x1)}),_0x222c77===this[_0x38bd('0x2c')]&&this[_0x38bd('0x14')](null);},{'priority':'low'}),this['listenTo'](_0x19974a,'focus',(_0x4b3a66,_0x4a7d33)=>{this[_0x38bd('0x14')](_0x4a7d33);}),this['listenTo'](_0x19974a,_0x38bd('0x28'),()=>{this[_0x38bd('0x14')](null);}),this[_0x38bd('0x40')][_0x38bd('0x1')](document,_0x38bd('0x53'),(_0x2fa28c,_0x493254)=>{_0x493254['keyCode']===_0xaa88fb[_0x38bd('0x35')]&&_0x49f341[_0x38bd('0x6')]&&(this[_0x38bd('0x24')]['add'](_0x49f341[_0x38bd('0x13')][_0x38bd('0xa')]),this[_0x38bd('0x43')](),_0x493254['stopPropagation'](),_0x493254[_0x38bd('0x41')]());}),this[_0x38bd('0x40')]['listenTo'](document,'mousedown',(_0x401295,_0x1323e0)=>{const _0x19001c=_0x1323e0['target'];_0x49f341[_0x38bd('0x6')]&&_0x49f341[_0x38bd('0x4e')][_0x38bd('0x58')](_0x19001c)||_0x1494a4[_0x38bd('0x4a')][_0x38bd('0x4e')][_0x38bd('0x58')](_0x19001c)||_0x401295[_0x38bd('0x0')]||(this[_0x38bd('0x24')][_0x38bd('0x50')](),this[_0x38bd('0x43')](),this[_0x38bd('0x14')](null));});const _0x1590cd=this['context'][_0x38bd('0x3d')]?this[_0x38bd('0x49')][_0x38bd('0x3d')]:new _0x378c4a([this[_0x38bd('0x49')]]);for(const _0x515a6c of _0x1590cd)this[_0x38bd('0x55')](_0x515a6c);this['listenTo'](_0x1590cd,'add',(_0x245892,_0x58a4eb)=>{this['listenTo'](_0x58a4eb,_0x38bd('0xd'),()=>{this[_0x38bd('0x55')](_0x58a4eb);});}),this[_0x38bd('0x1')](_0x1590cd,_0x38bd('0x21'),(_0x431e03,_0x5550a7)=>{_0x5550a7[_0x38bd('0x4c')]['has'](_0x38bd('0xe'))&&this[_0x38bd('0x2')](_0x5550a7[_0x38bd('0x4c')]['get'](_0x38bd('0xe')));}),window[_0x38bd('0x36')](_0x38bd('0x1a'),this[_0x38bd('0x44')]),this[_0x38bd('0x32')]();}[_0x38bd('0x14')](_0x3343e4){if(_0x3343e4===this['activeAnnotation'])return;const _0x5c120c=this['context'][_0x38bd('0x4c')][_0x38bd('0x3f')](_0x38bd('0x1f'));if(_0x5c120c[_0x38bd('0x1c')]({'blurredAnnotation':this[_0x38bd('0x2c')],'activatedAnnotation':_0x3343e4,'disableAnimationOnActivatedAnnotation':!0x0}),_0x3343e4)_0x5c120c[_0x38bd('0x37')](_0x3343e4)?this['_showBalloon'](_0x3343e4):this[_0x38bd('0x43')]();else this[_0x38bd('0x43')]();this[_0x38bd('0x2c')]=_0x3343e4;}[_0x38bd('0x30')](){if(!this['isAttached'])throw new _0x503497(_0x38bd('0x34'),this);this['setActiveAnnotation'](null);const _0x4a61df=this[_0x38bd('0x49')]['plugins'][_0x38bd('0x3f')]('Sidebar');this['_hideBalloon'](),Array[_0x38bd('0x39')](this[_0x38bd('0x31')]['values'](),_0x917440=>_0x917440[_0x38bd('0x27')]()),this[_0x38bd('0x31')][_0x38bd('0x50')](),_0x4a61df['_detachFromContainer'](this[_0x38bd('0x12')]),this[_0x38bd('0x1d')](),this['_domEmitter'][_0x38bd('0x1d')](),this[_0x38bd('0x1d')](this[_0x38bd('0x49')][_0x38bd('0x3d')]);for(const _0x180dce of Array[_0x38bd('0x39')](this[_0x38bd('0x56')]))this['_destroyEditorAnnotationsIntegration'](_0x180dce);window['removeEventListener'](_0x38bd('0x1a'),this[_0x38bd('0x44')]),this[_0x38bd('0x44')][_0x38bd('0x4d')](),this[_0x38bd('0x46')]=[],this[_0x38bd('0x8')]=!0x1,this[_0x38bd('0x12')]=null;}['destroy'](){this[_0x38bd('0x8')]&&this['detach'](),this[_0x38bd('0x20')]['detachFromDom']();}[_0x38bd('0x55')](_0x1ad2ef){const _0x898b76=_0x1ad2ef[_0x38bd('0x4c')][_0x38bd('0x3f')](_0x38bd('0xe')),_0x632a04=this[_0x38bd('0x49')][_0x38bd('0x4c')][_0x38bd('0x3f')](_0x443cbb),_0x976898=this['annotations'],_0x13f2bc=this[_0x38bd('0x33')],_0x31e00a=()=>{const _0x26c009=_0x898b76['getOrderedSelectedAnnotations']({'activeAnnotation':this[_0x38bd('0x2c')],'annotations':this['annotations']});this[_0x38bd('0x22')](_0x26c009),this[_0x38bd('0x14')](_0x26c009[0x0]||null);};this[_0x38bd('0x1')](_0x898b76,_0x38bd('0x1c'),_0x31e00a),this['listenTo'](_0x898b76,_0x38bd('0x28'),(_0x17670d,{isAnnotationTracked:_0x3639b3})=>{this[_0x38bd('0x2c')]&&_0x3639b3(this[_0x38bd('0x2c')])&&(this[_0x38bd('0x22')]([]),this[_0x38bd('0x14')](null));}),this[_0x38bd('0x1')](_0x898b76,_0x38bd('0x18'),()=>{this[_0x38bd('0x44')]();}),this[_0x38bd('0x1')](_0x976898,_0x38bd('0x28'),_0x4230e1=>{_0x898b76[_0x38bd('0x10')]()&&_0x4230e1[_0x38bd('0x2e')]();},{'priority':'high'}),this[_0x38bd('0x40')][_0x38bd('0x1')](document,_0x38bd('0x2d'),(_0x428613,_0x1eec42)=>{const _0x20ec9b=_0x1eec42[_0x38bd('0x16')];_0x13f2bc[_0x38bd('0x6')]&&_0x13f2bc[_0x38bd('0x4e')][_0x38bd('0x58')](_0x20ec9b)||_0x632a04['view'][_0x38bd('0x4e')][_0x38bd('0x58')](_0x20ec9b)||this[_0x38bd('0x2c')]&&_0x898b76[_0x38bd('0x10')]()&&(_0x31e00a(),_0x428613[_0x38bd('0x0')]=!0x0);},{'priority':_0x38bd('0x3c')}),this['_editorAnnotations']['add'](_0x898b76);}[_0x38bd('0x2')](_0x5b08cb){_0x5b08cb&&(this[_0x38bd('0x1d')](_0x5b08cb),this[_0x38bd('0x56')][_0x38bd('0x21')](_0x5b08cb));}[_0x38bd('0x22')](_0x1acb22){for(const _0x46f781 of this[_0x38bd('0x46')])_0x1acb22[_0x38bd('0x4')](_0x46f781)||this['_manuallyClosedAnnotationViews'][_0x38bd('0x51')](_0x46f781[_0x38bd('0x4a')]);this[_0x38bd('0x46')]=_0x1acb22;}[_0x38bd('0x32')](){const _0x411c2d=this[_0x38bd('0x33')];this['annotations'][_0x38bd('0xf')](),_0x411c2d[_0x38bd('0x6')]&&this[_0x38bd('0x2b')]();}['_showBalloon'](_0x51c89b){if(this[_0x38bd('0x24')]['has'](_0x51c89b['view']))return;const _0x115505=this[_0x38bd('0x33')]['content'][_0x38bd('0xa')];_0x115505!==_0x51c89b[_0x38bd('0x4a')]?(_0x115505&&this[_0x38bd('0x26')](_0x115505),this['_attachListeners'](_0x51c89b['view']),this['balloonPanelView'][_0x38bd('0x13')][_0x38bd('0x50')](),this[_0x38bd('0x33')][_0x38bd('0x13')][_0x38bd('0x2f')](_0x51c89b[_0x38bd('0x4a')]),this[_0x38bd('0x2b')]()):this[_0x38bd('0x2b')]();}[_0x38bd('0x2b')](){const _0x1cc2aa=this['balloonPanelView'][_0x38bd('0x13')]['first'],_0x566e85=this[_0x38bd('0x12')][_0x38bd('0x54')](_0x1cc2aa);if(!this[_0x38bd('0x31')]['has'](_0x566e85))return;const _0x54c1e0=this['_annotationToNarrowView'][_0x38bd('0x3f')](_0x566e85)['element'],_0x1931d8=function(){const _0x7dcc44=_0x3bd854[_0x38bd('0x29')];return[_0x7dcc44[_0x38bd('0x4f')],_0x7dcc44['northArrowSouthEast'],_0x7dcc44['southArrowNorth'],_0x7dcc44[_0x38bd('0x19')],_0x7dcc44[_0x38bd('0x48')],_0x7dcc44['northArrowSouthWest']];}();this[_0x38bd('0x33')]['pin']({'target':_0x54c1e0,'positions':_0x1931d8});}['_hideBalloon'](){const _0x4794c3=this[_0x38bd('0x33')],_0x34e926=_0x4794c3['content']['first'];_0x34e926&&(this[_0x38bd('0x26')](_0x34e926),_0x4794c3[_0x38bd('0xc')](),_0x4794c3[_0x38bd('0x13')][_0x38bd('0x50')]());}['_attachListeners'](_0x3df0ec){this[_0x38bd('0x1')](_0x3df0ec,'change:height',()=>this[_0x38bd('0x2b')]()),this[_0x38bd('0x1')](_0x3df0ec,'Esc',(_0x9652d1,_0x1d0e1a)=>{this['_manuallyClosedAnnotationViews'][_0x38bd('0x2f')](_0x3df0ec),this[_0x38bd('0x43')](),_0x1d0e1a();});}['_detachListeners'](_0x131d85){this[_0x38bd('0x1d')](_0x131d85);}}