@ckeditor/ckeditor5-comments 0.0.0-nightly-20231213.0 → 0.0.0-nightly-20231215.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/build/comments.js +1 -1
  2. package/package.json +3 -3
  3. package/src/annotations/annotation.js +1 -1
  4. package/src/annotations/annotationcollection.js +1 -1
  5. package/src/annotations/annotations.js +1 -1
  6. package/src/annotations/annotationsuis.js +1 -1
  7. package/src/annotations/editorannotations.js +1 -1
  8. package/src/annotations/inlineannotations.js +1 -1
  9. package/src/annotations/narrowsidebar.js +1 -1
  10. package/src/annotations/sidebar.js +1 -1
  11. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  12. package/src/annotations/view/annotationview.js +1 -1
  13. package/src/annotations/view/sidebaritemview.js +1 -1
  14. package/src/annotations/view/sidebarview.js +1 -1
  15. package/src/annotations/widesidebar.js +1 -1
  16. package/src/comments/addcommentthreadcommand.js +1 -1
  17. package/src/comments/commentsarchive.js +1 -1
  18. package/src/comments/commentsarchiveui.js +1 -1
  19. package/src/comments/commentsediting.js +1 -1
  20. package/src/comments/commentsrepository.js +1 -1
  21. package/src/comments/commentsui.js +1 -1
  22. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  23. package/src/comments/integrations/importword.js +1 -1
  24. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  25. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  26. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  27. package/src/comments/ui/commentthreadcontroller.js +1 -1
  28. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  29. package/src/comments/ui/view/basecommentview.js +1 -1
  30. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  31. package/src/comments/ui/view/commentcontentview.js +1 -1
  32. package/src/comments/ui/view/commentinputview.js +1 -1
  33. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  34. package/src/comments/ui/view/commentslistview.js +1 -1
  35. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  36. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  37. package/src/comments/ui/view/commentthreadview.js +1 -1
  38. package/src/comments/ui/view/commentview.js +1 -1
  39. package/src/comments.js +1 -1
  40. package/src/commentsonly.js +1 -1
  41. package/src/utils/common-translations.js +1 -1
  42. package/src/utils/createmutationobserver.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-comments",
3
- "version": "0.0.0-nightly-20231213.0",
3
+ "version": "0.0.0-nightly-20231215.0",
4
4
  "description": "Collaborative comments feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -43,8 +43,8 @@
43
43
  "CHANGELOG.md"
44
44
  ],
45
45
  "dependencies": {
46
- "ckeditor5": "0.0.0-nightly-20231213.0",
47
- "ckeditor5-collaboration": "0.0.0-nightly-20231213.0",
46
+ "ckeditor5": "0.0.0-nightly-20231215.0",
47
+ "ckeditor5-collaboration": "0.0.0-nightly-20231215.0",
48
48
  "lodash-es": "4.17.21"
49
49
  },
50
50
  "types": "src/index.d.ts",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4b93=['stopListening','add','function','render','object','isVisible','_assertCorrectTarget','refreshVisibility','remove','every','filter','annotation-invalid-target','clear','mainView','targetRect','view','isActive','focusTracker','updateTargetRect','set','_type','getClientRects','nodeType','destroy','_getNormalizedTarget','target','type','_id','item','focusableElements','isArray','length','innerView','_target'];(function(_0x5c3df2,_0x4b93e3){const _0x5e7f0e=function(_0x5a8a68){while(--_0x5a8a68){_0x5c3df2['push'](_0x5c3df2['shift']());}};_0x5e7f0e(++_0x4b93e3);}(_0x4b93,0x1e7));const _0x5e7f=function(_0x5c3df2,_0x4b93e3){_0x5c3df2=_0x5c3df2-0x0;let _0x5e7f0e=_0x4b93[_0x5c3df2];return _0x5e7f0e;};import{CKEditorError as _0x45ef57,Rect as _0x58f1d2,Collection as _0x534e51,ObservableMixin as _0x1ace8d}from'ckeditor5/src/utils';export default class d extends _0x1ace8d(){constructor({view:_0x43aa40,target:_0x3e0a57,type:_0x4f7e28,isVisible:_0x458e9e=!0x0}){super(),this['view']=_0x43aa40,this['view']['element']||this[_0x5e7f('0x4')][_0x5e7f('0x1a')](),this['_type']=_0x4f7e28,this[_0x5e7f('0x16')]=_0x3e0a57,d[_0x5e7f('0x1d')](this['_getNormalizedTarget']()),this[_0x5e7f('0x12')]=new _0x534e51([this[_0x5e7f('0x4')]['element']],{'idProperty':_0x5e7f('0x10')}),this[_0x5e7f('0x12')]['on'](_0x5e7f('0x18'),(_0xc2d255,_0x2bfd9a)=>{this['view'][_0x5e7f('0x6')][_0x5e7f('0x18')](_0x2bfd9a);}),this[_0x5e7f('0x12')]['on'](_0x5e7f('0x1f'),(_0x123b1f,_0x507a28)=>{this['view']['focusTracker'][_0x5e7f('0x1f')](_0x507a28);}),this[_0x5e7f('0x8')](_0x5e7f('0x1c'),_0x458e9e);}get[_0x5e7f('0xf')](){return _0x5e7f('0x19')==typeof this[_0x5e7f('0x9')]?this[_0x5e7f('0x9')]():this[_0x5e7f('0x9')];}get[_0x5e7f('0x15')](){return this['view'][_0x5e7f('0x2')];}get[_0x5e7f('0xe')](){const _0x1a1bf5=this['_getNormalizedTarget']();return d[_0x5e7f('0x1d')](_0x1a1bf5),_0x1a1bf5;}get[_0x5e7f('0x3')](){const _0x3f6df2=this[_0x5e7f('0xe')];if(null===_0x3f6df2)return null;if(_0x3f6df2 instanceof _0x58f1d2)return _0x3f6df2;const _0x1b9899=_0x3f6df2[_0x5e7f('0x21')](_0x3d3050=>function(_0x43b57e){const _0x31c167=_0x43b57e['offsetParent'];if(_0x31c167)return!0x0;const _0x2143c5=_0x43b57e['getClientRects']()[_0x5e7f('0x11')](0x0);return!!_0x2143c5;}(_0x3d3050));return 0x0===_0x1b9899[_0x5e7f('0x14')]?null:new _0x58f1d2(_0x1b9899[0x0][_0x5e7f('0xa')]()[_0x5e7f('0x11')](0x0));}get[_0x5e7f('0x5')](){return this[_0x5e7f('0x4')]['isActive'];}set['isActive'](_0x505539){this['view'][_0x5e7f('0x5')]=_0x505539,this[_0x5e7f('0x4')]['mainView']['isActive']=_0x505539;}[_0x5e7f('0x7')](){this['view']['targetRect']=this['targetRect'];}[_0x5e7f('0xc')](){this[_0x5e7f('0x12')]['stopListening'](),this[_0x5e7f('0x12')][_0x5e7f('0x1')](),this[_0x5e7f('0x17')]();}[_0x5e7f('0x1e')](){this[_0x5e7f('0x1c')]=!!this['targetRect'];}static[_0x5e7f('0x1d')](_0x541227){if(!(null===_0x541227||_0x541227 instanceof _0x58f1d2||Array[_0x5e7f('0x13')](_0x541227)&&_0x541227[_0x5e7f('0x20')](_0x156638=>y(_0x156638))))throw new _0x45ef57(_0x5e7f('0x0'),null,{'target':_0x541227});}[_0x5e7f('0xd')](){const _0x346f48=_0x5e7f('0x19')==typeof this[_0x5e7f('0x16')]?this[_0x5e7f('0x16')]():this[_0x5e7f('0x16')];return y(_0x346f48)?[_0x346f48]:_0x346f48;}}function y(_0x2b1612){return null!==_0x2b1612&&_0x5e7f('0x1b')==typeof _0x2b1612&&_0x5e7f('0xb')in _0x2b1612&&0x1===_0x2b1612[_0x5e7f('0xb')];}
23
+ const _0x2f10=['stopListening','filter','isActive','render','targetRect','element','view','object','_target','refreshVisibility','annotation-invalid-target','set','type','nodeType','_getNormalizedTarget','_id','destroy','focusTracker','offsetParent','length','remove','item','function','isVisible','_assertCorrectTarget','getClientRects','every','focusableElements','add','isArray','mainView','_type','updateTargetRect','target'];(function(_0x296263,_0x2f104a){const _0x1b8dce=function(_0x135a07){while(--_0x135a07){_0x296263['push'](_0x296263['shift']());}};_0x1b8dce(++_0x2f104a);}(_0x2f10,0x111));const _0x1b8d=function(_0x296263,_0x2f104a){_0x296263=_0x296263-0x0;let _0x1b8dce=_0x2f10[_0x296263];return _0x1b8dce;};import{CKEditorError as _0x5236af,Rect as _0x26923b,Collection as _0x5dbf71,ObservableMixin as _0x114c9a}from'ckeditor5/src/utils';export default class d extends _0x114c9a(){constructor({view:_0x3144a1,target:_0x55585c,type:_0x116c96,isVisible:_0x395615=!0x0}){super(),this[_0x1b8d('0x5')]=_0x3144a1,this[_0x1b8d('0x5')][_0x1b8d('0x4')]||this[_0x1b8d('0x5')][_0x1b8d('0x2')](),this[_0x1b8d('0x1e')]=_0x116c96,this['_target']=_0x55585c,d[_0x1b8d('0x17')](this['_getNormalizedTarget']()),this[_0x1b8d('0x1a')]=new _0x5dbf71([this[_0x1b8d('0x5')]['element']],{'idProperty':_0x1b8d('0xe')}),this['focusableElements']['on'](_0x1b8d('0x1b'),(_0x23e399,_0x41da0c)=>{this[_0x1b8d('0x5')][_0x1b8d('0x10')][_0x1b8d('0x1b')](_0x41da0c);}),this[_0x1b8d('0x1a')]['on']('remove',(_0x5a9f8c,_0x21d53d)=>{this['view'][_0x1b8d('0x10')][_0x1b8d('0x13')](_0x21d53d);}),this[_0x1b8d('0xa')](_0x1b8d('0x16'),_0x395615);}get[_0x1b8d('0xb')](){return _0x1b8d('0x15')==typeof this[_0x1b8d('0x1e')]?this[_0x1b8d('0x1e')]():this[_0x1b8d('0x1e')];}get['innerView'](){return this[_0x1b8d('0x5')][_0x1b8d('0x1d')];}get[_0x1b8d('0x20')](){const _0x7a2bea=this[_0x1b8d('0xd')]();return d[_0x1b8d('0x17')](_0x7a2bea),_0x7a2bea;}get[_0x1b8d('0x3')](){const _0x1f66ec=this[_0x1b8d('0x20')];if(null===_0x1f66ec)return null;if(_0x1f66ec instanceof _0x26923b)return _0x1f66ec;const _0x50631=_0x1f66ec[_0x1b8d('0x0')](_0x228808=>function(_0x34f364){const _0x347fd6=_0x34f364[_0x1b8d('0x11')];if(_0x347fd6)return!0x0;const _0x436d7a=_0x34f364[_0x1b8d('0x18')]()['item'](0x0);return!!_0x436d7a;}(_0x228808));return 0x0===_0x50631[_0x1b8d('0x12')]?null:new _0x26923b(_0x50631[0x0][_0x1b8d('0x18')]()[_0x1b8d('0x14')](0x0));}get[_0x1b8d('0x1')](){return this[_0x1b8d('0x5')]['isActive'];}set['isActive'](_0x5c03b9){this[_0x1b8d('0x5')]['isActive']=_0x5c03b9,this['view'][_0x1b8d('0x1d')][_0x1b8d('0x1')]=_0x5c03b9;}[_0x1b8d('0x1f')](){this['view']['targetRect']=this['targetRect'];}[_0x1b8d('0xf')](){this['focusableElements'][_0x1b8d('0x21')](),this[_0x1b8d('0x1a')]['clear'](),this['stopListening']();}[_0x1b8d('0x8')](){this['isVisible']=!!this[_0x1b8d('0x3')];}static[_0x1b8d('0x17')](_0x3d8f5c){if(!(null===_0x3d8f5c||_0x3d8f5c instanceof _0x26923b||Array[_0x1b8d('0x1c')](_0x3d8f5c)&&_0x3d8f5c[_0x1b8d('0x19')](_0x33fb2f=>y(_0x33fb2f))))throw new _0x5236af(_0x1b8d('0x9'),null,{'target':_0x3d8f5c});}[_0x1b8d('0xd')](){const _0x52479f=_0x1b8d('0x15')==typeof this[_0x1b8d('0x7')]?this['_target']():this[_0x1b8d('0x7')];return y(_0x52479f)?[_0x52479f]:_0x52479f;}}function y(_0x4b0113){return null!==_0x4b0113&&_0x1b8d('0x6')==typeof _0x4b0113&&_0x1b8d('0xc')in _0x4b0113&&0x1===_0x4b0113[_0x1b8d('0xc')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2250=['add','getByView','listenTo','_focusTracker','left','get','stopListening','refreshPositioning','annotationcollection-duplicated-item','focus','isFocused','_viewToAnnotation','focusableElements','focusTracker','getByInnerView','delete','change:isFocused','_getOrderInContent','annotationcollection-not-existing-item','_innerViewToAnnotation','_sort','fire','has','set','targetRect','from','innerView','top','blur','destroy','view','clear','remove','updateTargetRect','getIndex'];(function(_0x390638,_0x225098){const _0x14c695=function(_0x5d7c57){while(--_0x5d7c57){_0x390638['push'](_0x390638['shift']());}};_0x14c695(++_0x225098);}(_0x2250,0x153));const _0x14c6=function(_0x390638,_0x225098){_0x390638=_0x390638-0x0;let _0x14c695=_0x2250[_0x390638];return _0x14c695;};import{CKEditorError as _0x41e0ae,Collection as _0x5dc1e3,FocusTracker as _0x39afd8}from'ckeditor5/src/utils';export default class x extends _0x5dc1e3{constructor(_0x84c1cf=[]){super(),this['_innerViewToAnnotation']=new Map(),this[_0x14c6('0x16')]=new Map(),this['_focusTracker']=new _0x39afd8(),this['_focusTracker']['on'](_0x14c6('0x1b'),(_0x4898ee,_0x171269,_0x661a7f)=>{_0x661a7f||this[_0x14c6('0x20')](_0x14c6('0x4'));});for(const _0x50ac68 of _0x84c1cf)this[_0x14c6('0xb')](_0x50ac68);}get[_0x14c6('0x15')](){return this[_0x14c6('0xe')]['isFocused'];}['add'](_0x4d6c9b){if(this[_0x14c6('0x21')](_0x4d6c9b))throw new _0x41e0ae(_0x14c6('0x13'),null);this[_0x14c6('0x1e')][_0x14c6('0x22')](_0x4d6c9b[_0x14c6('0x2')],_0x4d6c9b),this[_0x14c6('0x16')][_0x14c6('0x22')](_0x4d6c9b[_0x14c6('0x6')],_0x4d6c9b);for(const _0x4a0123 of _0x4d6c9b[_0x14c6('0x17')])this[_0x14c6('0xe')][_0x14c6('0xb')](_0x4a0123);this[_0x14c6('0xd')](_0x4d6c9b['focusableElements'],_0x14c6('0xb'),(_0x11fb6b,_0x4abd07)=>{this[_0x14c6('0xe')][_0x14c6('0xb')](_0x4abd07);}),this[_0x14c6('0xd')](_0x4d6c9b[_0x14c6('0x17')],_0x14c6('0x8'),(_0x23e82d,_0x1abf45)=>{this['_focusTracker']['remove'](_0x1abf45);}),this[_0x14c6('0xd')](_0x4d6c9b[_0x14c6('0x6')]['focusTracker'],'change:isFocused',(_0x25e010,_0x22c39d,_0x3a8fde)=>{_0x3a8fde&&this[_0x14c6('0x20')](_0x14c6('0x14'),_0x4d6c9b);}),_0x4d6c9b[_0x14c6('0x9')]();const _0x128377=this['_getOrderInContent'](_0x4d6c9b[_0x14c6('0x6')]['targetRect']);return super[_0x14c6('0xb')](_0x4d6c9b,_0x128377);}[_0x14c6('0x8')](_0x12ec73){if(!this[_0x14c6('0x21')](_0x12ec73))throw new _0x41e0ae(_0x14c6('0x1d'),null);this[_0x14c6('0x11')](_0x12ec73['view'][_0x14c6('0x18')]),this[_0x14c6('0x11')](_0x12ec73[_0x14c6('0x17')]);for(const _0x32e095 of _0x12ec73[_0x14c6('0x17')])this[_0x14c6('0xe')][_0x14c6('0x8')](_0x32e095);return this['_viewToAnnotation'][_0x14c6('0x1a')](_0x12ec73[_0x14c6('0x6')]),this['_innerViewToAnnotation'][_0x14c6('0x1a')](_0x12ec73[_0x14c6('0x2')]),super[_0x14c6('0x8')](_0x12ec73);}[_0x14c6('0x19')](_0x30335f){return this['_innerViewToAnnotation'][_0x14c6('0x10')](_0x30335f);}[_0x14c6('0xc')](_0x6dabda){return this[_0x14c6('0x16')][_0x14c6('0x10')](_0x6dabda);}['destroy'](){super[_0x14c6('0x7')](),this[_0x14c6('0x11')](),this[_0x14c6('0x1e')][_0x14c6('0x7')](),this[_0x14c6('0x16')][_0x14c6('0x7')](),this[_0x14c6('0xe')][_0x14c6('0x5')]();}[_0x14c6('0x12')](){for(const _0xd86cfd of this)_0xd86cfd[_0x14c6('0x9')]();this[_0x14c6('0x1f')]();}[_0x14c6('0x1f')](){const _0x282bdd=Array[_0x14c6('0x1')](this)['sort']((_0x41f766,_0x2a77af)=>v(_0x41f766[_0x14c6('0x6')][_0x14c6('0x0')],_0x2a77af[_0x14c6('0x6')][_0x14c6('0x0')]));for(let _0x4ae855=_0x282bdd['length']-0x1;_0x4ae855>0x0;_0x4ae855--){const _0xc07657=_0x282bdd[_0x4ae855];_0x4ae855!==this[_0x14c6('0xa')](_0xc07657)&&(this[_0x14c6('0x8')](_0xc07657),this[_0x14c6('0xb')](_0xc07657));}}[_0x14c6('0x1c')](_0x200d65){let _0x4638a5=0x0;if(!_0x200d65)return this['length'];for(const _0x4b01c1 of this){const _0xc84a14=_0x4b01c1[_0x14c6('0x6')][_0x14c6('0x0')];if(_0xc84a14){if(v(_0x200d65,_0xc84a14)<0x0)return _0x4638a5;_0x4638a5++;}}return _0x4638a5;}}export function bindAnnotationCollections({source:_0xb98493,target:_0x105b5d,filter:_0x40d8cd}){for(const _0x44f024 of _0xb98493)_0x40d8cd(_0x44f024)&&_0x105b5d[_0x14c6('0xb')](_0x44f024);_0x105b5d[_0x14c6('0xd')](_0xb98493,_0x14c6('0xb'),(_0x4a8aef,_0x9c92bf)=>{_0x40d8cd(_0x9c92bf)&&_0x105b5d[_0x14c6('0xb')](_0x9c92bf);}),_0x105b5d['listenTo'](_0xb98493,'remove',(_0x3b043f,_0x21c861)=>{_0x105b5d[_0x14c6('0x21')](_0x21c861)&&_0x105b5d['remove'](_0x21c861);});}function v(_0x5cd3d9,_0x3f7a94){if(null===_0x5cd3d9&&null===_0x3f7a94)return 0x0;if(null===_0x5cd3d9)return-0x1;if(null===_0x3f7a94)return 0x1;const _0x5d2bc5=_0x5cd3d9[_0x14c6('0x3')]-_0x3f7a94[_0x14c6('0x3')];return 0x0==_0x5d2bc5?_0x5cd3d9['left']-_0x3f7a94[_0x14c6('0xf')]:_0x5d2bc5;}
23
+ const _0x26ee=['updateTargetRect','view','listenTo','getByView','from','_sort','remove','clear','add','stopListening','focusTracker','_getOrderInContent','has','annotationcollection-duplicated-item','left','blur','_innerViewToAnnotation','sort','innerView','set','destroy','top','isFocused','targetRect','change:isFocused','_focusTracker','fire','getIndex','annotationcollection-not-existing-item','_viewToAnnotation','focusableElements','delete'];(function(_0x46e57b,_0x26ee8b){const _0x187841=function(_0x48f712){while(--_0x48f712){_0x46e57b['push'](_0x46e57b['shift']());}};_0x187841(++_0x26ee8b);}(_0x26ee,0x18e));const _0x1878=function(_0x46e57b,_0x26ee8b){_0x46e57b=_0x46e57b-0x0;let _0x187841=_0x26ee[_0x46e57b];return _0x187841;};import{CKEditorError as _0x67d496,Collection as _0x394d54,FocusTracker as _0x9837b4}from'ckeditor5/src/utils';export default class x extends _0x394d54{constructor(_0x2e62a8=[]){super(),this['_innerViewToAnnotation']=new Map(),this[_0x1878('0xf')]=new Map(),this[_0x1878('0xb')]=new _0x9837b4(),this[_0x1878('0xb')]['on'](_0x1878('0xa'),(_0x367fbe,_0x5b8869,_0x423b68)=>{_0x423b68||this['fire'](_0x1878('0x1'));});for(const _0x3ade72 of _0x2e62a8)this[_0x1878('0x1a')](_0x3ade72);}get[_0x1878('0x8')](){return this[_0x1878('0xb')][_0x1878('0x8')];}[_0x1878('0x1a')](_0x44ee24){if(this[_0x1878('0x1e')](_0x44ee24))throw new _0x67d496(_0x1878('0x1f'),null);this[_0x1878('0x2')][_0x1878('0x5')](_0x44ee24[_0x1878('0x4')],_0x44ee24),this['_viewToAnnotation'][_0x1878('0x5')](_0x44ee24['view'],_0x44ee24);for(const _0x3f0d78 of _0x44ee24['focusableElements'])this['_focusTracker'][_0x1878('0x1a')](_0x3f0d78);this[_0x1878('0x14')](_0x44ee24[_0x1878('0x10')],_0x1878('0x1a'),(_0x3e7512,_0x28a41f)=>{this[_0x1878('0xb')][_0x1878('0x1a')](_0x28a41f);}),this[_0x1878('0x14')](_0x44ee24['focusableElements'],_0x1878('0x18'),(_0x260f9c,_0x143464)=>{this['_focusTracker'][_0x1878('0x18')](_0x143464);}),this['listenTo'](_0x44ee24[_0x1878('0x13')][_0x1878('0x1c')],'change:isFocused',(_0x35d730,_0x2df39b,_0x108523)=>{_0x108523&&this[_0x1878('0xc')]('focus',_0x44ee24);}),_0x44ee24[_0x1878('0x12')]();const _0x8eb2d9=this[_0x1878('0x1d')](_0x44ee24[_0x1878('0x13')][_0x1878('0x9')]);return super[_0x1878('0x1a')](_0x44ee24,_0x8eb2d9);}['remove'](_0x2b9433){if(!this[_0x1878('0x1e')](_0x2b9433))throw new _0x67d496(_0x1878('0xe'),null);this[_0x1878('0x1b')](_0x2b9433[_0x1878('0x13')][_0x1878('0x1c')]),this[_0x1878('0x1b')](_0x2b9433[_0x1878('0x10')]);for(const _0x19b260 of _0x2b9433[_0x1878('0x10')])this[_0x1878('0xb')][_0x1878('0x18')](_0x19b260);return this[_0x1878('0xf')][_0x1878('0x11')](_0x2b9433[_0x1878('0x13')]),this[_0x1878('0x2')][_0x1878('0x11')](_0x2b9433[_0x1878('0x4')]),super[_0x1878('0x18')](_0x2b9433);}['getByInnerView'](_0x1a2b84){return this[_0x1878('0x2')]['get'](_0x1a2b84);}[_0x1878('0x15')](_0x410089){return this[_0x1878('0xf')]['get'](_0x410089);}[_0x1878('0x6')](){super['clear'](),this['stopListening'](),this[_0x1878('0x2')][_0x1878('0x19')](),this[_0x1878('0xf')][_0x1878('0x19')](),this[_0x1878('0xb')]['destroy']();}['refreshPositioning'](){for(const _0xea8aff of this)_0xea8aff['updateTargetRect']();this[_0x1878('0x17')]();}[_0x1878('0x17')](){const _0x4d9f3b=Array[_0x1878('0x16')](this)[_0x1878('0x3')]((_0x38c0a0,_0x37065d)=>v(_0x38c0a0[_0x1878('0x13')][_0x1878('0x9')],_0x37065d['view'][_0x1878('0x9')]));for(let _0x30dfea=_0x4d9f3b['length']-0x1;_0x30dfea>0x0;_0x30dfea--){const _0x8bd0a2=_0x4d9f3b[_0x30dfea];_0x30dfea!==this[_0x1878('0xd')](_0x8bd0a2)&&(this[_0x1878('0x18')](_0x8bd0a2),this['add'](_0x8bd0a2));}}[_0x1878('0x1d')](_0x5981ca){let _0x4c78f4=0x0;if(!_0x5981ca)return this['length'];for(const _0x3d0579 of this){const _0x44d9bb=_0x3d0579[_0x1878('0x13')][_0x1878('0x9')];if(_0x44d9bb){if(v(_0x5981ca,_0x44d9bb)<0x0)return _0x4c78f4;_0x4c78f4++;}}return _0x4c78f4;}}export function bindAnnotationCollections({source:_0x19916d,target:_0x4c3ff6,filter:_0x2d9afa}){for(const _0x1c7483 of _0x19916d)_0x2d9afa(_0x1c7483)&&_0x4c3ff6[_0x1878('0x1a')](_0x1c7483);_0x4c3ff6['listenTo'](_0x19916d,'add',(_0x58b0de,_0x594100)=>{_0x2d9afa(_0x594100)&&_0x4c3ff6[_0x1878('0x1a')](_0x594100);}),_0x4c3ff6[_0x1878('0x14')](_0x19916d,'remove',(_0xf89d6f,_0x1a8d2f)=>{_0x4c3ff6['has'](_0x1a8d2f)&&_0x4c3ff6[_0x1878('0x18')](_0x1a8d2f);});}function v(_0x1af811,_0x5e1f99){if(null===_0x1af811&&null===_0x5e1f99)return 0x0;if(null===_0x1af811)return-0x1;if(null===_0x5e1f99)return 0x1;const _0x2f96f1=_0x1af811['top']-_0x5e1f99[_0x1878('0x7')];return 0x0==_0x2f96f1?_0x1af811[_0x1878('0x0')]-_0x5e1f99[_0x1878('0x0')]:_0x2f96f1;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4e54=['collection','createAnnotation','change:isVisible','getByInnerView','createAnnotationView','stopListening','view','has','activeAnnotations','focusTracker','element','_activateAnnotation','_removeActiveAnnotation','activate','add','refreshPositioning','listenTo','isVisible','remove','refreshVisibility','_bindAnnotationsToVisibleAnnotations','_deactivateAllAnnotations','_visibleAnnotations','Annotations','deactivateAll','set','source','fire','destroy'];(function(_0x5a0a05,_0x4e5489){const _0x3e4819=function(_0x3767fd){while(--_0x3767fd){_0x5a0a05['push'](_0x5a0a05['shift']());}};_0x3e4819(++_0x4e5489);}(_0x4e54,0x1de));const _0x3e48=function(_0x5a0a05,_0x4e5489){_0x5a0a05=_0x5a0a05-0x0;let _0x3e4819=_0x4e54[_0x5a0a05];return _0x3e4819;};import{ContextPlugin as _0xe2aa41}from'ckeditor5/src/core';import _0x3fbc20 from'./annotation';import _0x207fd7 from'./annotationcollection';import _0x23549e from'./view/annotationview';export default class b extends _0xe2aa41{static get['pluginName'](){return _0x3e48('0x9');}constructor(_0x1b401c){super(_0x1b401c),this[_0x3e48('0xf')]=new _0x207fd7(),this[_0x3e48('0x8')]=new _0x207fd7(),this[_0x3e48('0xb')](_0x3e48('0x17'),new Set()),this[_0x3e48('0x6')]();}[_0x3e48('0x0')](_0x37437c){this['collection'][_0x3e48('0x0')](_0x37437c);}[_0x3e48('0x4')](_0x548564){this[_0x3e48('0xf')][_0x3e48('0x4')](_0x548564),_0x548564[_0x3e48('0xe')]();}[_0x3e48('0x5')](){for(const _0x53143e of this[_0x3e48('0xf')])_0x53143e[_0x3e48('0x5')]();}[_0x3e48('0x1')](){this['_visibleAnnotations'][_0x3e48('0x1')]();}[_0x3e48('0x12')](_0x395c03){return this['collection'][_0x3e48('0x12')](_0x395c03);}[_0x3e48('0xa')](){this[_0x3e48('0xd')](_0x3e48('0x7'));}[_0x3e48('0xe')](){for(const _0x5f2e04 of this[_0x3e48('0xf')])_0x5f2e04[_0x3e48('0xe')]();this['_visibleAnnotations']['destroy'](),this[_0x3e48('0xf')][_0x3e48('0xe')](),super[_0x3e48('0xe')]();}[_0x3e48('0x1c')](_0x5f2db4){this[_0x3e48('0xd')](_0x3e48('0x1a'),_0x5f2db4);}[_0x3e48('0x10')](_0x3d33bc){return new _0x3fbc20(_0x3d33bc);}[_0x3e48('0x13')](_0x28c464,_0x1f28df){return new _0x23549e(_0x28c464,_0x1f28df);}['_addActiveAnnotation'](_0x42e575){const _0x575db5=new Set(this[_0x3e48('0x17')]);_0x575db5['add'](_0x42e575),this[_0x3e48('0x17')]=_0x575db5;}[_0x3e48('0x1b')](_0x1d7fde){const _0x5bcc18=new Set(this[_0x3e48('0x17')]);_0x5bcc18['delete'](_0x1d7fde),this[_0x3e48('0x17')]=_0x5bcc18;}[_0x3e48('0x6')](){const _0x51995a=this[_0x3e48('0xf')],_0x340bfa=this['_visibleAnnotations'];function _0x540f9e(_0x503e11){const _0x3102a5=_0x503e11[_0x3e48('0xc')];_0x3102a5[_0x3e48('0x3')]&&!_0x340bfa[_0x3e48('0x16')](_0x3102a5)?_0x340bfa[_0x3e48('0x0')](_0x3102a5):!_0x3102a5[_0x3e48('0x3')]&&_0x340bfa['has'](_0x3102a5)&&_0x340bfa[_0x3e48('0x4')](_0x3102a5),_0x3102a5[_0x3e48('0x15')][_0x3e48('0x18')][_0x3e48('0x4')](_0x3102a5[_0x3e48('0x15')][_0x3e48('0x19')]),_0x3102a5[_0x3e48('0x15')][_0x3e48('0x18')]['add'](_0x3102a5[_0x3e48('0x15')][_0x3e48('0x19')]);}this[_0x3e48('0x2')](_0x51995a,_0x3e48('0x0'),(_0x289845,_0x1648c9)=>{_0x1648c9[_0x3e48('0x3')]&&_0x340bfa[_0x3e48('0x0')](_0x1648c9),this[_0x3e48('0x2')](_0x1648c9,_0x3e48('0x11'),_0x540f9e);}),this[_0x3e48('0x2')](_0x51995a,_0x3e48('0x4'),(_0x5f5499,_0x11516f)=>{_0x340bfa['has'](_0x11516f)&&_0x340bfa[_0x3e48('0x4')](_0x11516f),this[_0x3e48('0x14')](_0x11516f,'change:isVisible',_0x540f9e);});}}
23
+ const _0x5058=['destroy','_removeActiveAnnotation','isVisible','activate','deactivateAll','_addActiveAnnotation','_bindAnnotationsToVisibleAnnotations','pluginName','activeAnnotations','has','_visibleAnnotations','collection','focusTracker','add','delete','fire','createAnnotation','remove','source','_deactivateAllAnnotations','refreshVisibility','view','refreshPositioning','element','change:isVisible','listenTo','createAnnotationView','getByInnerView','_activateAnnotation'];(function(_0x53bd87,_0x505877){const _0x536545=function(_0x51c138){while(--_0x51c138){_0x53bd87['push'](_0x53bd87['shift']());}};_0x536545(++_0x505877);}(_0x5058,0x79));const _0x5365=function(_0x53bd87,_0x505877){_0x53bd87=_0x53bd87-0x0;let _0x536545=_0x5058[_0x53bd87];return _0x536545;};import{ContextPlugin as _0x5617a8}from'ckeditor5/src/core';import _0x4a5906 from'./annotation';import _0x1bc976 from'./annotationcollection';import _0x448f85 from'./view/annotationview';export default class b extends _0x5617a8{static get[_0x5365('0x2')](){return'Annotations';}constructor(_0x51e1c9){super(_0x51e1c9),this[_0x5365('0x6')]=new _0x1bc976(),this[_0x5365('0x5')]=new _0x1bc976(),this['set']('activeAnnotations',new Set()),this[_0x5365('0x1')]();}[_0x5365('0x8')](_0x3b24a3){this['collection']['add'](_0x3b24a3);}['remove'](_0x485e10){this[_0x5365('0x6')][_0x5365('0xc')](_0x485e10),_0x485e10[_0x5365('0x18')]();}[_0x5365('0xf')](){for(const _0x55dea6 of this['collection'])_0x55dea6[_0x5365('0xf')]();}[_0x5365('0x11')](){this[_0x5365('0x5')]['refreshPositioning']();}[_0x5365('0x16')](_0x5179b0){return this['collection']['getByInnerView'](_0x5179b0);}[_0x5365('0x1c')](){this['fire'](_0x5365('0xe'));}[_0x5365('0x18')](){for(const _0x513a03 of this[_0x5365('0x6')])_0x513a03[_0x5365('0x18')]();this[_0x5365('0x5')]['destroy'](),this[_0x5365('0x6')][_0x5365('0x18')](),super[_0x5365('0x18')]();}[_0x5365('0x1b')](_0x54bd2e){this[_0x5365('0xa')](_0x5365('0x17'),_0x54bd2e);}[_0x5365('0xb')](_0x16d76c){return new _0x4a5906(_0x16d76c);}[_0x5365('0x15')](_0x57336a,_0x27a474){return new _0x448f85(_0x57336a,_0x27a474);}[_0x5365('0x0')](_0x473c3c){const _0x5b2d22=new Set(this['activeAnnotations']);_0x5b2d22['add'](_0x473c3c),this[_0x5365('0x3')]=_0x5b2d22;}[_0x5365('0x19')](_0x25531e){const _0x4db174=new Set(this[_0x5365('0x3')]);_0x4db174[_0x5365('0x9')](_0x25531e),this['activeAnnotations']=_0x4db174;}[_0x5365('0x1')](){const _0x20fec2=this[_0x5365('0x6')],_0x42e37d=this['_visibleAnnotations'];function _0x45886d(_0x538488){const _0x3fa2f6=_0x538488[_0x5365('0xd')];_0x3fa2f6[_0x5365('0x1a')]&&!_0x42e37d['has'](_0x3fa2f6)?_0x42e37d['add'](_0x3fa2f6):!_0x3fa2f6[_0x5365('0x1a')]&&_0x42e37d[_0x5365('0x4')](_0x3fa2f6)&&_0x42e37d['remove'](_0x3fa2f6),_0x3fa2f6[_0x5365('0x10')][_0x5365('0x7')][_0x5365('0xc')](_0x3fa2f6[_0x5365('0x10')][_0x5365('0x12')]),_0x3fa2f6[_0x5365('0x10')]['focusTracker'][_0x5365('0x8')](_0x3fa2f6[_0x5365('0x10')]['element']);}this['listenTo'](_0x20fec2,'add',(_0x5b4a,_0x2a55c1)=>{_0x2a55c1[_0x5365('0x1a')]&&_0x42e37d[_0x5365('0x8')](_0x2a55c1),this[_0x5365('0x14')](_0x2a55c1,_0x5365('0x13'),_0x45886d);}),this[_0x5365('0x14')](_0x20fec2,_0x5365('0xc'),(_0xb46d47,_0x37a13c)=>{_0x42e37d[_0x5365('0x4')](_0x37a13c)&&_0x42e37d['remove'](_0x37a13c),this['stopListening'](_0x37a13c,'change:isVisible',_0x45886d);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x15d6=['_uisData','type','_activateAnnotation','plugins','_assertAnnotationDoesNotBelongToMultipleUIs','filter','activeAnnotations','destroy','hasActive','_deactivateAllAnnotations','deactivateAll','AnnotationsUIs','detach','listenTo','activeUIs','context','annotationsuis-annotation-mismatch','register','set','stopListening','_setSelectedAnnotations','add','from','remove','isActive','delete','activate','_removeActiveAnnotation','length','collection','find','annotationsuis-missing-ui','deactivate','_visibleAnnotations','_uis','change:activeAnnotation','get','function','size','setActiveAnnotation','switchTo','has'];(function(_0x545e85,_0x15d627){const _0x517628=function(_0x31086c){while(--_0x31086c){_0x545e85['push'](_0x545e85['shift']());}};_0x517628(++_0x15d627);}(_0x15d6,0x7a));const _0x5176=function(_0x545e85,_0x15d627){_0x545e85=_0x545e85-0x0;let _0x517628=_0x15d6[_0x545e85];return _0x517628;};import{ContextPlugin as _0x2f5343}from'ckeditor5/src/core';import{CKEditorError as _0x477b42}from'ckeditor5/src/utils';import _0x481e59,{bindAnnotationCollections as _0x598e50}from'./annotationcollection';import _0xbe9ff7 from'./annotations';export default class M extends _0x2f5343{static get['requires'](){return[_0xbe9ff7];}static get['pluginName'](){return _0x5176('0xf');}constructor(_0x1a4136){super(_0x1a4136),this[_0x5176('0x12')]=new Set(),this[_0x5176('0x26')]=new Map(),this[_0x5176('0x4')]=new Map();}['init'](){const _0x2af772=this[_0x5176('0x13')][_0x5176('0x7')]['get'](_0xbe9ff7);this[_0x5176('0x11')](_0x2af772,_0x5176('0x6'),(_0x5e8538,_0x58146f)=>{for(const _0xfdc964 of this[_0x5176('0x12')]){const _0x162c32=this[_0x5176('0x26')][_0x5176('0x28')](_0xfdc964);(0x0,this[_0x5176('0x4')][_0x5176('0x28')](_0xfdc964)['filter'])(_0x58146f)&&_0x162c32['setActiveAnnotation'](_0x58146f);}}),this[_0x5176('0x11')](_0x2af772,_0x5176('0xd'),()=>{for(const _0x1c9dcf of this['activeUIs']){this[_0x5176('0x26')][_0x5176('0x28')](_0x1c9dcf)[_0x5176('0x1')](null);}}),this[_0x5176('0x11')](_0x2af772[_0x5176('0x25')],_0x5176('0x19'),(_0x38230d,_0x2ec488)=>{this[_0x5176('0x8')](_0x2ec488);});}[_0x5176('0xc')](){return this['activeUIs'][_0x5176('0x0')]>0x0;}[_0x5176('0x1c')](_0x56d56d){return this[_0x5176('0x12')]['has'](_0x56d56d);}[_0x5176('0x1e')](_0x54e1a1,_0x10cd3f=()=>!0x0){const _0x30c5b1=this[_0x5176('0x13')]['plugins'][_0x5176('0x28')](_0xbe9ff7);if(!this['_uis']['has'](_0x54e1a1))throw new _0x477b42(_0x5176('0x23'),this,{'uiName':_0x54e1a1});this[_0x5176('0x1c')](_0x54e1a1)&&this[_0x5176('0x24')](_0x54e1a1),this[_0x5176('0x12')][_0x5176('0x19')](_0x54e1a1);const _0x492866=new _0x481e59(),_0x502fed=_0x30c5b1[_0x5176('0x25')];_0x598e50({'source':_0x502fed,'target':_0x492866,'filter':_0x10cd3f}),this[_0x5176('0x4')][_0x5176('0x16')](_0x54e1a1,{'collection':_0x492866,'filter':_0x10cd3f});const _0x13c158=this['_uis']['get'](_0x54e1a1);_0x13c158['attach'](_0x492866),this[_0x5176('0x11')](_0x13c158,_0x5176('0x27'),(_0x22b252,_0x24760c,_0x4212da,_0x2ba448)=>{_0x2ba448&&_0x30c5b1[_0x5176('0x1f')](_0x2ba448),_0x4212da&&_0x30c5b1['_addActiveAnnotation'](_0x4212da);});}[_0x5176('0x24')](_0x47f347){if(this[_0x5176('0x12')]['delete'](_0x47f347),!this[_0x5176('0x26')][_0x5176('0x3')](_0x47f347))throw new _0x477b42(_0x5176('0x23'),this,{'uiName':_0x47f347});const _0x3ec217=this[_0x5176('0x26')][_0x5176('0x28')](_0x47f347);_0x3ec217[_0x5176('0x10')](),this[_0x5176('0x17')](_0x3ec217),this['_uisData']['get'](_0x47f347)['collection'][_0x5176('0xb')](),this[_0x5176('0x4')][_0x5176('0x1d')](_0x47f347);}[_0x5176('0x2')](_0x5c2bb3){if(!this[_0x5176('0x26')][_0x5176('0x3')](_0x5c2bb3))throw new _0x477b42(_0x5176('0x23'),this,{'uiName':_0x5c2bb3});const _0x31a10a=this[_0x5176('0x13')]['plugins'][_0x5176('0x28')](_0xbe9ff7),_0x4d93cc=Array[_0x5176('0x1a')](_0x31a10a[_0x5176('0xa')])[0x0]||null;this[_0x5176('0xe')](),this[_0x5176('0x1e')](_0x5c2bb3);const _0x16deea=this['_uis'][_0x5176('0x28')](_0x5c2bb3);_0x16deea['setActiveAnnotation'](_0x4d93cc),_0x16deea['_setSelectedAnnotations']&&_0x4d93cc&&_0x16deea[_0x5176('0x18')]([_0x4d93cc]);}[_0x5176('0xe')](){for(const _0x49c1e5 of this[_0x5176('0x12')])this[_0x5176('0x24')](_0x49c1e5);}[_0x5176('0x15')](_0x5af75b,_0x191d5e){if(this['_uis']['has'](_0x5af75b))throw new _0x477b42('annotationsuis-register-already-registered');if(_0x5176('0x29')!=typeof _0x191d5e['attach']||_0x5176('0x29')!=typeof _0x191d5e[_0x5176('0x10')]||_0x5176('0x29')!=typeof _0x191d5e['setActiveAnnotation'])throw new _0x477b42('annotationsuis-register-invalid-interface',null);this['_uis'][_0x5176('0x16')](_0x5af75b,_0x191d5e);}['refilterAnnotations'](){const _0x1f8f8b=this[_0x5176('0x13')][_0x5176('0x7')][_0x5176('0x28')](_0xbe9ff7)[_0x5176('0x21')],_0x148a13=new Map(),_0xde3048=Array[_0x5176('0x1a')](this[_0x5176('0x12')]);for(const _0x57921f of this['activeUIs']){const _0x1ff896=this['_uisData'][_0x5176('0x28')](_0x57921f)[_0x5176('0x21')];for(const _0x46f98f of _0x1ff896)_0x148a13[_0x5176('0x16')](_0x46f98f,_0x57921f);}for(const _0x4dcfe9 of _0x1f8f8b){const _0x1ccd2f=_0x148a13['get'](_0x4dcfe9);this[_0x5176('0x8')](_0x4dcfe9);const _0x164adb=_0xde3048[_0x5176('0x22')](_0xf599b=>this[_0x5176('0x4')][_0x5176('0x28')](_0xf599b)[_0x5176('0x9')](_0x4dcfe9));_0x1ccd2f!==_0x164adb&&(_0x1ccd2f&&this[_0x5176('0x4')][_0x5176('0x28')](_0x1ccd2f)[_0x5176('0x21')][_0x5176('0x1b')](_0x4dcfe9),_0x164adb&&this[_0x5176('0x4')][_0x5176('0x28')](_0x164adb)['collection'][_0x5176('0x19')](_0x4dcfe9));}}[_0x5176('0xb')](){this[_0x5176('0xe')](),super[_0x5176('0xb')]();}[_0x5176('0x8')](_0x29e8b7){const _0x54216b=[];for(const _0x3e2849 of this[_0x5176('0x12')]){(0x0,this[_0x5176('0x4')][_0x5176('0x28')](_0x3e2849)[_0x5176('0x9')])(_0x29e8b7)&&_0x54216b['push'](_0x3e2849);}if(_0x54216b[_0x5176('0x20')]>0x1)throw new _0x477b42(_0x5176('0x14'),null,{'matchedUIs':_0x54216b,'annotationType':_0x29e8b7[_0x5176('0x5')]});}}
23
+ const _0x2be5=['from','attach','_removeActiveAnnotation','destroy','_setSelectedAnnotations','requires','_uisData','deactivateAll','annotationsuis-register-already-registered','stopListening','refilterAnnotations','delete','switchTo','_assertAnnotationDoesNotBelongToMultipleUIs','has','remove','hasActive','activeAnnotations','push','isActive','find','init','context','_visibleAnnotations','size','get','change:activeAnnotation','detach','activeUIs','collection','pluginName','plugins','set','function','listenTo','activate','annotationsuis-missing-ui','add','type','filter','setActiveAnnotation','_uis','_activateAnnotation'];(function(_0x56fb69,_0x2be5e7){const _0x14ed94=function(_0x42c9b5){while(--_0x42c9b5){_0x56fb69['push'](_0x56fb69['shift']());}};_0x14ed94(++_0x2be5e7);}(_0x2be5,0x1d1));const _0x14ed=function(_0x56fb69,_0x2be5e7){_0x56fb69=_0x56fb69-0x0;let _0x14ed94=_0x2be5[_0x56fb69];return _0x14ed94;};import{ContextPlugin as _0x550b67}from'ckeditor5/src/core';import{CKEditorError as _0x4c06a2}from'ckeditor5/src/utils';import _0x2f1737,{bindAnnotationCollections as _0x2641af}from'./annotationcollection';import _0x511a1a from'./annotations';export default class M extends _0x550b67{static get[_0x14ed('0xd')](){return[_0x511a1a];}static get[_0x14ed('0x26')](){return'AnnotationsUIs';}constructor(_0x2820d5){super(_0x2820d5),this[_0x14ed('0x24')]=new Set(),this[_0x14ed('0x6')]=new Map(),this[_0x14ed('0xe')]=new Map();}[_0x14ed('0x1d')](){const _0xbf89fb=this[_0x14ed('0x1e')][_0x14ed('0x27')][_0x14ed('0x21')](_0x511a1a);this[_0x14ed('0x2a')](_0xbf89fb,_0x14ed('0x7'),(_0xec2e99,_0x43d2ee)=>{for(const _0x4407ec of this[_0x14ed('0x24')]){const _0x4b1fa7=this['_uis']['get'](_0x4407ec);(0x0,this['_uisData'][_0x14ed('0x21')](_0x4407ec)['filter'])(_0x43d2ee)&&_0x4b1fa7[_0x14ed('0x5')](_0x43d2ee);}}),this['listenTo'](_0xbf89fb,'_deactivateAllAnnotations',()=>{for(const _0xe8582c of this[_0x14ed('0x24')]){this[_0x14ed('0x6')][_0x14ed('0x21')](_0xe8582c)[_0x14ed('0x5')](null);}}),this[_0x14ed('0x2a')](_0xbf89fb[_0x14ed('0x1f')],_0x14ed('0x2'),(_0x4a3b07,_0x58d74a)=>{this[_0x14ed('0x15')](_0x58d74a);});}[_0x14ed('0x18')](){return this[_0x14ed('0x24')][_0x14ed('0x20')]>0x0;}[_0x14ed('0x1b')](_0x461003){return this[_0x14ed('0x24')]['has'](_0x461003);}[_0x14ed('0x0')](_0x977e65,_0x284991=()=>!0x0){const _0x36684c=this[_0x14ed('0x1e')][_0x14ed('0x27')][_0x14ed('0x21')](_0x511a1a);if(!this[_0x14ed('0x6')][_0x14ed('0x16')](_0x977e65))throw new _0x4c06a2(_0x14ed('0x1'),this,{'uiName':_0x977e65});this[_0x14ed('0x1b')](_0x977e65)&&this['deactivate'](_0x977e65),this[_0x14ed('0x24')][_0x14ed('0x2')](_0x977e65);const _0x28ea40=new _0x2f1737(),_0x2e73a5=_0x36684c[_0x14ed('0x1f')];_0x2641af({'source':_0x2e73a5,'target':_0x28ea40,'filter':_0x284991}),this['_uisData'][_0x14ed('0x28')](_0x977e65,{'collection':_0x28ea40,'filter':_0x284991});const _0x191e1b=this[_0x14ed('0x6')][_0x14ed('0x21')](_0x977e65);_0x191e1b['attach'](_0x28ea40),this[_0x14ed('0x2a')](_0x191e1b,_0x14ed('0x22'),(_0x591ae7,_0x5b9548,_0x33fb11,_0x51c734)=>{_0x51c734&&_0x36684c[_0x14ed('0xa')](_0x51c734),_0x33fb11&&_0x36684c['_addActiveAnnotation'](_0x33fb11);});}['deactivate'](_0x1bdf32){if(this[_0x14ed('0x24')][_0x14ed('0x13')](_0x1bdf32),!this[_0x14ed('0x6')][_0x14ed('0x16')](_0x1bdf32))throw new _0x4c06a2(_0x14ed('0x1'),this,{'uiName':_0x1bdf32});const _0x49b4ce=this[_0x14ed('0x6')][_0x14ed('0x21')](_0x1bdf32);_0x49b4ce[_0x14ed('0x23')](),this[_0x14ed('0x11')](_0x49b4ce),this[_0x14ed('0xe')][_0x14ed('0x21')](_0x1bdf32)[_0x14ed('0x25')]['destroy'](),this['_uisData']['delete'](_0x1bdf32);}[_0x14ed('0x14')](_0x5142dd){if(!this[_0x14ed('0x6')][_0x14ed('0x16')](_0x5142dd))throw new _0x4c06a2(_0x14ed('0x1'),this,{'uiName':_0x5142dd});const _0x364ea8=this[_0x14ed('0x1e')][_0x14ed('0x27')]['get'](_0x511a1a),_0x3db6c4=Array[_0x14ed('0x8')](_0x364ea8[_0x14ed('0x19')])[0x0]||null;this[_0x14ed('0xf')](),this[_0x14ed('0x0')](_0x5142dd);const _0x341868=this['_uis']['get'](_0x5142dd);_0x341868[_0x14ed('0x5')](_0x3db6c4),_0x341868['_setSelectedAnnotations']&&_0x3db6c4&&_0x341868[_0x14ed('0xc')]([_0x3db6c4]);}[_0x14ed('0xf')](){for(const _0x185548 of this[_0x14ed('0x24')])this['deactivate'](_0x185548);}['register'](_0x453b9d,_0x1db4e9){if(this[_0x14ed('0x6')][_0x14ed('0x16')](_0x453b9d))throw new _0x4c06a2(_0x14ed('0x10'));if(_0x14ed('0x29')!=typeof _0x1db4e9[_0x14ed('0x9')]||_0x14ed('0x29')!=typeof _0x1db4e9['detach']||_0x14ed('0x29')!=typeof _0x1db4e9[_0x14ed('0x5')])throw new _0x4c06a2('annotationsuis-register-invalid-interface',null);this[_0x14ed('0x6')][_0x14ed('0x28')](_0x453b9d,_0x1db4e9);}[_0x14ed('0x12')](){const _0xf00729=this[_0x14ed('0x1e')][_0x14ed('0x27')][_0x14ed('0x21')](_0x511a1a)['collection'],_0x545ac8=new Map(),_0x42ee34=Array[_0x14ed('0x8')](this[_0x14ed('0x24')]);for(const _0x399c20 of this[_0x14ed('0x24')]){const _0x2c42f8=this[_0x14ed('0xe')][_0x14ed('0x21')](_0x399c20)[_0x14ed('0x25')];for(const _0xc25bed of _0x2c42f8)_0x545ac8[_0x14ed('0x28')](_0xc25bed,_0x399c20);}for(const _0x4eb9c2 of _0xf00729){const _0x170a05=_0x545ac8[_0x14ed('0x21')](_0x4eb9c2);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x4eb9c2);const _0x1d7ef2=_0x42ee34[_0x14ed('0x1c')](_0x867f85=>this[_0x14ed('0xe')]['get'](_0x867f85)[_0x14ed('0x4')](_0x4eb9c2));_0x170a05!==_0x1d7ef2&&(_0x170a05&&this[_0x14ed('0xe')]['get'](_0x170a05)[_0x14ed('0x25')][_0x14ed('0x17')](_0x4eb9c2),_0x1d7ef2&&this[_0x14ed('0xe')][_0x14ed('0x21')](_0x1d7ef2)[_0x14ed('0x25')][_0x14ed('0x2')](_0x4eb9c2));}}[_0x14ed('0xb')](){this['deactivateAll'](),super[_0x14ed('0xb')]();}[_0x14ed('0x15')](_0x1f24e9){const _0x49eeb7=[];for(const _0x1434b4 of this[_0x14ed('0x24')]){(0x0,this[_0x14ed('0xe')][_0x14ed('0x21')](_0x1434b4)[_0x14ed('0x4')])(_0x1f24e9)&&_0x49eeb7[_0x14ed('0x1a')](_0x1434b4);}if(_0x49eeb7['length']>0x1)throw new _0x4c06a2('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x49eeb7,'annotationType':_0x1f24e9[_0x14ed('0x3')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1cbc=['requires','remove','from','focusTracker','EditorAnnotations','editor','_editorAnnotations','set','add','getByInnerView','registerAnnotation','isReadOnly','getRanges','has','sort','change:range','containsRange','isCollapsed','model','editing','delete','element','change:isFocused','isEqual','annotation','fire','listenTo','uiUpdate','function','get','hasDomSelection','push','_dataCollectors','range','update','document','collection','init','view','refresh','refreshSelectedViews','_editorAnnotationsData','selection','pluginName'];(function(_0x1e83b5,_0x1cbcff){const _0x4c75e6=function(_0x43a05c){while(--_0x43a05c){_0x1e83b5['push'](_0x1e83b5['shift']());}};_0x4c75e6(++_0x1cbcff);}(_0x1cbc,0xe4));const _0x4c75=function(_0x1e83b5,_0x1cbcff){_0x1e83b5=_0x1e83b5-0x0;let _0x4c75e6=_0x1cbc[_0x1e83b5];return _0x4c75e6;};import{Plugin as _0x171a16}from'ckeditor5/src/core';import{CKEditorError as _0x28af6d}from'ckeditor5/src/utils';import{debounce as _0x1b5f85}from'lodash-es';import _0x462429 from'./annotations';export default class k extends _0x171a16{static get[_0x4c75('0x24')](){return[_0x462429];}static get[_0x4c75('0x23')](){return _0x4c75('0x28');}constructor(_0x4fad87){super(_0x4fad87),this[_0x4c75('0x18')]=new Set(),this[_0x4c75('0x2a')]=new Set();}[_0x4c75('0x1d')](){const _0x200fa1=this[_0x4c75('0x29')],_0x4c06e6=_0x200fa1[_0x4c75('0xa')][_0x4c75('0x1b')][_0x4c75('0x22')],_0x500729=_0x1b5f85(()=>this[_0x4c75('0x20')](),0xa);_0x4c06e6['on'](_0x4c75('0x7'),(_0x1e2265,_0x464783)=>{_0x464783['directChange']&&(_0x500729['cancel'](),this['refreshSelectedViews']());}),this[_0x4c75('0x12')](_0x200fa1['editing']['view'][_0x4c75('0x1b')],_0x4c75('0xe'),(_0x2563d7,_0x4a6287,_0x31942e)=>{_0x31942e&&_0x500729();}),this[_0x4c75('0x12')](_0x200fa1['ui']['focusTracker'],_0x4c75('0xe'),(_0x305759,_0x5d6738,_0x1165f5)=>{_0x1165f5||_0x200fa1[_0x4c75('0x3')]||this[_0x4c75('0x11')]('blur',{'isAnnotationTracked':_0x27b4ca=>this['_editorAnnotationsData']['has'](_0x27b4ca['innerView'])});}),this[_0x4c75('0x12')](this[_0x4c75('0x29')]['ui'],_0x4c75('0x1a'),()=>this[_0x4c75('0x11')](_0x4c75('0x13')));}[_0x4c75('0x2')](_0x3da6e2){if(this[_0x4c75('0x2a')][_0x4c75('0x5')](_0x3da6e2[_0x4c75('0x1e')]))return;this[_0x4c75('0x2a')]['add'](_0x3da6e2[_0x4c75('0x1e')]),this[_0x4c75('0x29')]['ui']['focusTracker'][_0x4c75('0x0')](_0x3da6e2[_0x4c75('0x1e')][_0x4c75('0xd')]);const _0x3fcd7b=this['editor']['plugins'][_0x4c75('0x15')](_0x462429);this[_0x4c75('0x12')](_0x3fcd7b[_0x4c75('0x1c')],_0x4c75('0x25'),(_0x1bde13,_0x4a4d29)=>{this[_0x4c75('0x29')]['ui'][_0x4c75('0x27')][_0x4c75('0x25')](_0x4a4d29[_0x4c75('0x1e')]['element']),this[_0x4c75('0x2a')][_0x4c75('0xc')](_0x4a4d29[_0x4c75('0x1e')]);});}[_0x4c75('0x16')](){return this[_0x4c75('0x29')][_0x4c75('0xb')]['view']['hasDomSelection'];}['addSourceCollector'](_0x51d0d2){if(_0x4c75('0x14')!=typeof _0x51d0d2)throw new _0x28af6d('editorannotations-invalid-source-callback');this['_dataCollectors'][_0x4c75('0x0')](_0x51d0d2);}[_0x4c75('0x20')](){this[_0x4c75('0x11')](_0x4c75('0x1f'));}['getOrderedSelectedAnnotations']({activeAnnotation:_0xb3a16a,annotations:_0x29ed07}){const _0x175691=[],_0xffb8ae=this[_0x4c75('0x29')]['model'][_0x4c75('0x1b')][_0x4c75('0x22')],_0x310315=Array[_0x4c75('0x26')](_0xffb8ae[_0x4c75('0x4')]());for(const [_0x39ddc8,_0x2be03f]of this['_editorAnnotationsData']){const _0x1d2163=_0x5a838b(_0x2be03f),_0x79d136=_0x29ed07[_0x4c75('0x1')](_0x39ddc8);_0x1d2163&&_0x79d136&&_0x175691[_0x4c75('0x17')]({'annotation':_0x79d136,'range':_0x1d2163});}function _0x5a838b(_0x425092){for(const _0x112358 of _0x425092)for(const _0x4bf1d2 of _0x310315)if(_0x112358[_0x4c75('0x8')](_0x4bf1d2,!_0xffb8ae[_0x4c75('0x9')]))return _0x112358;return null;}return _0x175691[_0x4c75('0x6')]((_0x4fb76b,_0x4c0ceb)=>{const _0x1b6830=_0x4fb76b[_0x4c75('0x19')],_0x2943d1=_0x4c0ceb[_0x4c75('0x19')];if(!_0x1b6830[_0x4c75('0xf')](_0x2943d1)){if(_0x1b6830[_0x4c75('0x8')](_0x2943d1,!0x0))return 0x1;if(_0x2943d1[_0x4c75('0x8')](_0x1b6830,!0x0))return-0x1;}return _0x4fb76b[_0x4c75('0x10')]==_0xb3a16a?-0x1:_0x4c0ceb[_0x4c75('0x10')]==_0xb3a16a?0x1:0x0;})['map'](_0x155955=>_0x155955[_0x4c75('0x10')]);}get[_0x4c75('0x21')](){const _0x464f66=new Map();for(const _0x38937e of Array[_0x4c75('0x26')](this[_0x4c75('0x18')]))for(const [_0x2f6bf2,_0x257921]of _0x38937e())_0x464f66[_0x4c75('0x2b')](_0x2f6bf2,_0x257921);return _0x464f66;}}
23
+ const _0x4e45=['document','hasDomSelection','collection','isEqual','has','map','range','editor','element','function','change:range','listenTo','annotation','blur','from','uiUpdate','_editorAnnotations','_dataCollectors','update','isReadOnly','focusTracker','innerView','remove','directChange','fire','getByInnerView','containsRange','init','getOrderedSelectedAnnotations','view','editing','refreshSelectedViews','addSourceCollector','change:isFocused','getRanges','cancel','add','sort','isCollapsed','_editorAnnotationsData','selection'];(function(_0x53dfa1,_0x4e45ca){const _0xfc84e8=function(_0x37c17c){while(--_0x37c17c){_0x53dfa1['push'](_0x53dfa1['shift']());}};_0xfc84e8(++_0x4e45ca);}(_0x4e45,0x1c4));const _0xfc84=function(_0x53dfa1,_0x4e45ca){_0x53dfa1=_0x53dfa1-0x0;let _0xfc84e8=_0x4e45[_0x53dfa1];return _0xfc84e8;};import{Plugin as _0x1721f6}from'ckeditor5/src/core';import{CKEditorError as _0x39f217}from'ckeditor5/src/utils';import{debounce as _0x3b7e80}from'lodash-es';import _0x425cee from'./annotations';export default class k extends _0x1721f6{static get['requires'](){return[_0x425cee];}static get['pluginName'](){return'EditorAnnotations';}constructor(_0x1d2091){super(_0x1d2091),this['_dataCollectors']=new Set(),this[_0xfc84('0xf')]=new Set();}[_0xfc84('0x1a')](){const _0xc4a686=this[_0xfc84('0x6')],_0x416f77=_0xc4a686['model']['document']['selection'],_0x79b70c=_0x3b7e80(()=>this[_0xfc84('0x1e')](),0xa);_0x416f77['on'](_0xfc84('0x9'),(_0x2eb6aa,_0x3d4465)=>{_0x3d4465[_0xfc84('0x16')]&&(_0x79b70c[_0xfc84('0x22')](),this[_0xfc84('0x1e')]());}),this['listenTo'](_0xc4a686[_0xfc84('0x1d')]['view']['document'],_0xfc84('0x20'),(_0x42ac6a,_0x4f3b90,_0x252cb3)=>{_0x252cb3&&_0x79b70c();}),this['listenTo'](_0xc4a686['ui'][_0xfc84('0x13')],'change:isFocused',(_0x362fe4,_0x338d17,_0x31c98b)=>{_0x31c98b||_0xc4a686[_0xfc84('0x12')]||this['fire'](_0xfc84('0xc'),{'isAnnotationTracked':_0x3e7661=>this[_0xfc84('0x26')][_0xfc84('0x3')](_0x3e7661[_0xfc84('0x14')])});}),this[_0xfc84('0xa')](this[_0xfc84('0x6')]['ui'],_0xfc84('0x11'),()=>this[_0xfc84('0x17')](_0xfc84('0xe')));}['registerAnnotation'](_0x2b5e7c){if(this[_0xfc84('0xf')][_0xfc84('0x3')](_0x2b5e7c[_0xfc84('0x1c')]))return;this[_0xfc84('0xf')][_0xfc84('0x23')](_0x2b5e7c[_0xfc84('0x1c')]),this['editor']['ui'][_0xfc84('0x13')][_0xfc84('0x23')](_0x2b5e7c[_0xfc84('0x1c')][_0xfc84('0x7')]);const _0x3bed75=this['editor']['plugins']['get'](_0x425cee);this['listenTo'](_0x3bed75[_0xfc84('0x1')],_0xfc84('0x15'),(_0x488004,_0x363029)=>{this[_0xfc84('0x6')]['ui'][_0xfc84('0x13')][_0xfc84('0x15')](_0x363029[_0xfc84('0x1c')][_0xfc84('0x7')]),this['_editorAnnotations']['delete'](_0x363029[_0xfc84('0x1c')]);});}[_0xfc84('0x0')](){return this['editor'][_0xfc84('0x1d')]['view'][_0xfc84('0x0')];}[_0xfc84('0x1f')](_0x585e05){if(_0xfc84('0x8')!=typeof _0x585e05)throw new _0x39f217('editorannotations-invalid-source-callback');this[_0xfc84('0x10')][_0xfc84('0x23')](_0x585e05);}[_0xfc84('0x1e')](){this[_0xfc84('0x17')]('refresh');}[_0xfc84('0x1b')]({activeAnnotation:_0x50efc0,annotations:_0x529804}){const _0x139fd4=[],_0x33921c=this[_0xfc84('0x6')]['model'][_0xfc84('0x28')][_0xfc84('0x27')],_0x5d16f1=Array['from'](_0x33921c[_0xfc84('0x21')]());for(const [_0x34ec5f,_0x5a9832]of this[_0xfc84('0x26')]){const _0x23fdb7=_0x4e9690(_0x5a9832),_0x20dd23=_0x529804[_0xfc84('0x18')](_0x34ec5f);_0x23fdb7&&_0x20dd23&&_0x139fd4['push']({'annotation':_0x20dd23,'range':_0x23fdb7});}function _0x4e9690(_0x58da6a){for(const _0x34584a of _0x58da6a)for(const _0x4d3ad3 of _0x5d16f1)if(_0x34584a['containsRange'](_0x4d3ad3,!_0x33921c[_0xfc84('0x25')]))return _0x34584a;return null;}return _0x139fd4[_0xfc84('0x24')]((_0x4c3813,_0xfbb103)=>{const _0x74abba=_0x4c3813[_0xfc84('0x5')],_0x215391=_0xfbb103[_0xfc84('0x5')];if(!_0x74abba[_0xfc84('0x2')](_0x215391)){if(_0x74abba[_0xfc84('0x19')](_0x215391,!0x0))return 0x1;if(_0x215391['containsRange'](_0x74abba,!0x0))return-0x1;}return _0x4c3813[_0xfc84('0xb')]==_0x50efc0?-0x1:_0xfbb103[_0xfc84('0xb')]==_0x50efc0?0x1:0x0;})[_0xfc84('0x4')](_0x33466c=>_0x33466c[_0xfc84('0xb')]);}get[_0xfc84('0x26')](){const _0x12b45d=new Map();for(const _0x58944f of Array[_0xfc84('0xd')](this['_dataCollectors']))for(const [_0x51d8c3,_0x53c2ce]of _0x58944f())_0x12b45d['set'](_0x51d8c3,_0x53c2ce);return _0x12b45d;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4955=['right','targetRect','change:visibleView','editor','document','delete','editableElement','visibleView','hasView','isAttached','detach','fromRect','context','map','_setSelectedAnnotations','set','_manuallyClosed','editing','inline','_forceRefresh','focusTracker','_addedAnnotations','hasActive','register','get','update','selection','collapse','getByView','plugins','refresh','isActive','_selectedAnnotations','has','remove','target','annotations','view','_closeAnnotation','push','top','length','Esc','pluginName','_removeAnnotationFromBalloon','bottom','listenTo','keystrokes','change:height','from','setActiveAnnotation','left','inlineannotations-not-allowed-with-context','updatePosition','activeAnnotation','InlineAnnotations','getFirstRange','switchTo','viewRangeToDom','stopListening','_addAnnotationToBalloon','getBoundingClientRect','_balloon','requires','add','_getBalloonTargetForAnnotation','isFocused','includes','width','inlineannotations-attach-already-attached','init','mousedown'];(function(_0x2422d9,_0x495534){const _0x4625e6=function(_0x8d0453){while(--_0x8d0453){_0x2422d9['push'](_0x2422d9['shift']());}};_0x4625e6(++_0x495534);}(_0x4955,0xfb));const _0x4625=function(_0x2422d9,_0x495534){_0x2422d9=_0x2422d9-0x0;let _0x4625e6=_0x4955[_0x2422d9];return _0x4625e6;};import{Plugin as _0x542af2}from'ckeditor5/src/core';import _0x35b5bf from'./annotationsuis';import _0x3ddef from'./editorannotations';import{ContextualBalloon as _0x4fa1d5}from'ckeditor5/src/ui';import{MouseObserver as _0x55ba9b}from'ckeditor5/src/engine';import{CKEditorError as _0x9e7f2b,Rect as _0x578e28}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x542af2{static get[_0x4625('0x1c')](){return[_0x3ddef,_0x4fa1d5,_0x35b5bf];}static get[_0x4625('0x8')](){return _0x4625('0x14');}constructor(_0x24de72){super(_0x24de72),_0x24de72['editing']['view']['addObserver'](_0x55ba9b),this[_0x4625('0x2e')]=!0x1,this[_0x4625('0x34')]('activeAnnotation',null),this['annotations']=null,this[_0x4625('0x35')]=new Set(),this[_0x4625('0x1b')]=_0x24de72[_0x4625('0x42')][_0x4625('0x3d')](_0x4fa1d5),this[_0x4625('0x3a')]=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}[_0x4625('0x23')](){const _0x171ee2=this[_0x4625('0x28')][_0x4625('0x42')][_0x4625('0x3d')](_0x35b5bf);_0x171ee2[_0x4625('0x31')]===this[_0x4625('0x28')]&&(_0x171ee2[_0x4625('0x3c')]('inline',this),this[_0x4625('0x28')][_0x4625('0xc')][_0x4625('0x34')](_0x4625('0x7'),(_0x4e23a2,_0x5bee3b)=>{const _0x2a10cb=this['_balloon'];if(this['isAttached']&&_0x2a10cb[_0x4625('0x2c')]){const _0x44c473=this['annotations'][_0x4625('0x41')](_0x2a10cb['visibleView']);_0x44c473&&this[_0x4625('0x3')](_0x44c473),_0x5bee3b();}}));}['afterInit'](){const _0x202907=this[_0x4625('0x28')][_0x4625('0x42')][_0x4625('0x3d')](_0x35b5bf);_0x202907[_0x4625('0x31')]===this[_0x4625('0x28')]&&(_0x202907[_0x4625('0x3b')]()||_0x202907[_0x4625('0x16')](_0x4625('0x37')));}['setActiveAnnotation'](_0x5c1cdc){_0x5c1cdc!==this[_0x4625('0x13')]&&(this[_0x4625('0x13')]&&(this[_0x4625('0x13')][_0x4625('0x44')]=!0x1),_0x5c1cdc&&this[_0x4625('0x28')]['ui'][_0x4625('0x39')]['isFocused']&&(this[_0x4625('0x1')][_0x4625('0x46')](_0x5c1cdc)&&this[_0x4625('0x19')](_0x5c1cdc,!0x0),_0x5c1cdc[_0x4625('0x44')]=!0x0),_0x5c1cdc||this[_0x4625('0x33')]([]),this[_0x4625('0x13')]=_0x5c1cdc);}['attach'](_0x40e956){this[_0x4625('0x1')]=_0x40e956;const _0x37db16=this['editor'][_0x4625('0x42')][_0x4625('0x3d')](_0x35b5bf),_0x182d73=this['_balloon'];if(this[_0x4625('0x2e')])throw new _0x9e7f2b(_0x4625('0x22'),this);if(_0x37db16['context']!==this['editor'])throw new _0x9e7f2b(_0x4625('0x11'),this);const _0x1c8c83=this[_0x4625('0x28')][_0x4625('0x42')][_0x4625('0x3d')](_0x3ddef);this[_0x4625('0xb')](_0x1c8c83,_0x4625('0x43'),()=>{const _0xa504a2=_0x1c8c83['getOrderedSelectedAnnotations']({'annotations':this[_0x4625('0x1')],'activeAnnotation':this[_0x4625('0x13')]});var _0x407a3e,_0x1cf419;!this[_0x4625('0x38')]&&(_0x407a3e=_0xa504a2,_0x1cf419=this[_0x4625('0x45')],_0x407a3e['length']===_0x1cf419[_0x4625('0x6')]&&_0x407a3e['every'](_0x440855=>_0x1cf419[_0x4625('0x20')](_0x440855)))||(this[_0x4625('0x38')]=!0x1,this[_0x4625('0x33')](_0xa504a2),this[_0x4625('0xf')](_0xa504a2[0x0]||null));}),this[_0x4625('0xb')](_0x1c8c83,'blur',(_0x460773,{isAnnotationTracked:_0x440914})=>{this['activeAnnotation']&&_0x440914(this[_0x4625('0x13')])&&(this[_0x4625('0x33')]([]),this[_0x4625('0xf')](null));}),this['listenTo'](this[_0x4625('0x28')]['ui'][_0x4625('0x39')],'change:isFocused',(_0x53576d,_0x492338,_0x31fafb)=>{_0x31fafb||this[_0x4625('0xf')](null);}),this[_0x4625('0xb')](_0x40e956,'remove',(_0xada1fb,_0x1db98c)=>{this['_removeAnnotationFromBalloon'](_0x1db98c),_0x1db98c===this[_0x4625('0x13')]&&this[_0x4625('0xf')](null);}),this[_0x4625('0xb')](_0x182d73,_0x4625('0x27'),(_0x294153,_0x5be730,_0xcba2b9,_0x3bb9af)=>{_0x3bb9af&&this[_0x4625('0x18')](_0x3bb9af);const _0x473f1e=_0x40e956[_0x4625('0x41')](_0xcba2b9);_0xcba2b9&&_0x473f1e&&(this[_0x4625('0xb')](_0xcba2b9,_0x4625('0xd'),()=>{_0x182d73[_0x4625('0x12')]();}),this[_0x4625('0xb')](_0xcba2b9,_0x4625('0x7'),()=>{this[_0x4625('0x3')](_0x473f1e),this[_0x4625('0x28')]['editing'][_0x4625('0x2')]['focus']();}),this['activeAnnotation']!==_0x473f1e&&this[_0x4625('0xf')](_0x473f1e));}),this['listenTo'](this[_0x4625('0x28')]['ui'],_0x4625('0x3e'),()=>{_0x182d73[_0x4625('0x2c')]&&(_0x40e956[_0x4625('0x41')](_0x182d73[_0x4625('0x2c')])&&_0x182d73['updatePosition']());}),this[_0x4625('0xb')](this[_0x4625('0x28')][_0x4625('0x36')][_0x4625('0x2')][_0x4625('0x29')],_0x4625('0x24'),()=>{this['_forceRefresh']=!0x0,this[_0x4625('0x35')]['clear']();}),this['editor'][_0x4625('0x36')][_0x4625('0x2')]['document'][_0x4625('0x3f')][_0x4625('0x2b')]&&this['editor'][_0x4625('0x36')][_0x4625('0x2')]['focus'](),this[_0x4625('0x2e')]=!0x0;}[_0x4625('0x2f')](){if(!this[_0x4625('0x2e')])throw new _0x9e7f2b('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x55caae of this[_0x4625('0x3a')])this[_0x4625('0x9')](_0x55caae);this[_0x4625('0x18')](),this[_0x4625('0x2e')]=!0x1,this['annotations']=null;}['destroy'](){this[_0x4625('0x2e')]&&this['detach']();}[_0x4625('0x33')](_0xf4ec12){for(const _0x30795e of this[_0x4625('0x45')])_0xf4ec12['includes'](_0x30795e)||this[_0x4625('0x35')][_0x4625('0x2a')](_0x30795e);for(const _0x1183c2 of this[_0x4625('0x1')])_0xf4ec12['includes'](_0x1183c2)||this[_0x4625('0x9')](_0x1183c2);if(this['editor']['ui'][_0x4625('0x39')][_0x4625('0x1f')])for(const _0x438296 of _0xf4ec12)this[_0x4625('0x19')](_0x438296);this[_0x4625('0x45')]=_0xf4ec12;}[_0x4625('0x19')](_0x3eebb3,_0x83e3cf=!0x1){this[_0x4625('0x35')][_0x4625('0x46')](_0x3eebb3)||(this[_0x4625('0x3a')][_0x4625('0x46')](_0x3eebb3)||this[_0x4625('0x1b')][_0x4625('0x2d')](_0x3eebb3['view'])||(this[_0x4625('0x3a')]['add'](_0x3eebb3),this[_0x4625('0x1b')]['add']({'stackId':_0x3eebb3['view']['id'],'view':_0x3eebb3[_0x4625('0x2')],'position':{'target':()=>this[_0x4625('0x1e')](_0x3eebb3)}})),_0x83e3cf&&this['_balloon']['showStack'](_0x3eebb3['view']['id']));}['_getBalloonTargetForAnnotation'](_0x335886){const _0x3e8c22=_0x335886[_0x4625('0x0')],_0x29634e=this[_0x4625('0x28')][_0x4625('0x36')]['view'],_0x172c63=_0x29634e['document'][_0x4625('0x3f')][_0x4625('0x15')](),_0x37d6c0=_0x29634e['domConverter'][_0x4625('0x17')](_0x172c63);if(_0x37d6c0[_0x4625('0x40')](!0x0),_0x3e8c22){if(_0x3e8c22 instanceof _0x578e28)return _0x3e8c22;let _0x3d80da=[];for(const _0x1b46a2 of _0x3e8c22)_0x3d80da[_0x4625('0x4')](...(_0xd890a2=_0x1b46a2['getClientRects'](),Array[_0x4625('0xe')](_0xd890a2)[_0x4625('0x32')](DOMRect[_0x4625('0x30')])));_0x3d80da=function(_0x322a17){const _0xf3adc=[];let _0x18a87=_0x322a17[0x0];for(let _0x851065=0x1;_0x851065<_0x322a17[_0x4625('0x6')];_0x851065++)F(_0x18a87,_0x322a17[_0x851065])?_0x18a87['width']+=_0x322a17[_0x851065][_0x4625('0x21')]:(_0xf3adc[_0x4625('0x4')](_0x18a87),_0x18a87=_0x322a17[_0x851065]);return _0xf3adc[_0x4625('0x4')](_0x18a87),_0xf3adc;}(_0x3d80da);const _0x27a5a0=_0x37d6c0[_0x4625('0x1a')]();return _0x3d80da['find'](_0x284c60=>_0x284c60[_0x4625('0x5')]<=_0x27a5a0[_0x4625('0x5')]&&_0x284c60[_0x4625('0xa')]>=_0x27a5a0['bottom']&&_0x284c60[_0x4625('0x10')]<=_0x27a5a0[_0x4625('0x10')]&&_0x284c60[_0x4625('0x25')]>=_0x27a5a0[_0x4625('0x25')])||_0x3d80da[0x0];}var _0xd890a2;return _0x335886[_0x4625('0x26')]||_0x37d6c0;}[_0x4625('0x9')](_0x10a9b2){this[_0x4625('0x3a')][_0x4625('0x46')](_0x10a9b2)&&this['_balloon']['hasView'](_0x10a9b2[_0x4625('0x2')])&&(this['_addedAnnotations'][_0x4625('0x2a')](_0x10a9b2),this[_0x4625('0x1b')][_0x4625('0x47')](_0x10a9b2[_0x4625('0x2')]));}['_closeAnnotation'](_0x137d70){this[_0x4625('0x35')][_0x4625('0x1d')](_0x137d70),this['_removeAnnotationFromBalloon'](_0x137d70);}}function F(_0x142d2a,_0x3a8c1e){return _0x142d2a[_0x4625('0x5')]===_0x3a8c1e[_0x4625('0x5')]&&_0x142d2a[_0x4625('0xa')]===_0x3a8c1e[_0x4625('0xa')]&&_0x142d2a[_0x4625('0x25')]===_0x3a8c1e[_0x4625('0x10')];}
23
+ const _0x51f5=['document','pluginName','_getBalloonTargetForAnnotation','plugins','getFirstRange','change:visibleView','context','get','from','domConverter','focusTracker','_forceRefresh','activeAnnotation','viewRangeToDom','getClientRects','editing','switchTo','showStack','push','register','update','annotations','_balloon','Esc','_removeAnnotationFromBalloon','every','set','isAttached','_manuallyClosed','target','updatePosition','inline','init','left','bottom','_addAnnotationToBalloon','visibleView','_setSelectedAnnotations','_addedAnnotations','refresh','addObserver','clear','_selectedAnnotations','has','isFocused','length','requires','width','find','top','detach','focus','right','includes','delete','inlineannotations-not-allowed-with-context','editor','mousedown','collapse','listenTo','isActive','remove','hasActive','afterInit','add','keystrokes','stopListening','inlineannotations-detach-not-attached','_closeAnnotation','hasView','view','setActiveAnnotation','change:isFocused','getByView'];(function(_0xdae6c1,_0x51f5aa){const _0x544c96=function(_0x3c77b9){while(--_0x3c77b9){_0xdae6c1['push'](_0xdae6c1['shift']());}};_0x544c96(++_0x51f5aa);}(_0x51f5,0x9d));const _0x544c=function(_0xdae6c1,_0x51f5aa){_0xdae6c1=_0xdae6c1-0x0;let _0x544c96=_0x51f5[_0xdae6c1];return _0x544c96;};import{Plugin as _0x1c00fa}from'ckeditor5/src/core';import _0x53c841 from'./annotationsuis';import _0x542c29 from'./editorannotations';import{ContextualBalloon as _0xa83cc3}from'ckeditor5/src/ui';import{MouseObserver as _0x54e5d1}from'ckeditor5/src/engine';import{CKEditorError as _0xf91289,Rect as _0x25492f}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x1c00fa{static get[_0x544c('0x25')](){return[_0x542c29,_0xa83cc3,_0x53c841];}static get[_0x544c('0x42')](){return'InlineAnnotations';}constructor(_0x5ab3c9){super(_0x5ab3c9),_0x5ab3c9[_0x544c('0x6')][_0x544c('0x3d')][_0x544c('0x1f')](_0x54e5d1),this[_0x544c('0x12')]=!0x1,this[_0x544c('0x11')](_0x544c('0x3'),null),this[_0x544c('0xc')]=null,this['_manuallyClosed']=new Set(),this[_0x544c('0xd')]=_0x5ab3c9[_0x544c('0x44')]['get'](_0xa83cc3),this[_0x544c('0x1d')]=new Set(),this['_selectedAnnotations']=[],this[_0x544c('0x2')]=!0x1;}[_0x544c('0x17')](){const _0x59f387=this[_0x544c('0x2f')]['plugins']['get'](_0x53c841);_0x59f387[_0x544c('0x47')]===this[_0x544c('0x2f')]&&(_0x59f387[_0x544c('0xa')](_0x544c('0x16'),this),this[_0x544c('0x2f')][_0x544c('0x38')][_0x544c('0x11')](_0x544c('0xe'),(_0xc27089,_0x5b4e1e)=>{const _0x4cb1d3=this['_balloon'];if(this['isAttached']&&_0x4cb1d3['visibleView']){const _0x255cf2=this[_0x544c('0xc')][_0x544c('0x40')](_0x4cb1d3[_0x544c('0x1b')]);_0x255cf2&&this[_0x544c('0x3b')](_0x255cf2),_0x5b4e1e();}}));}[_0x544c('0x36')](){const _0xefad5a=this[_0x544c('0x2f')][_0x544c('0x44')][_0x544c('0x48')](_0x53c841);_0xefad5a[_0x544c('0x47')]===this[_0x544c('0x2f')]&&(_0xefad5a[_0x544c('0x35')]()||_0xefad5a[_0x544c('0x7')](_0x544c('0x16')));}[_0x544c('0x3e')](_0x265f8f){_0x265f8f!==this[_0x544c('0x3')]&&(this[_0x544c('0x3')]&&(this[_0x544c('0x3')]['isActive']=!0x1),_0x265f8f&&this[_0x544c('0x2f')]['ui'][_0x544c('0x1')]['isFocused']&&(this['annotations'][_0x544c('0x22')](_0x265f8f)&&this[_0x544c('0x1a')](_0x265f8f,!0x0),_0x265f8f[_0x544c('0x33')]=!0x0),_0x265f8f||this[_0x544c('0x1c')]([]),this[_0x544c('0x3')]=_0x265f8f);}['attach'](_0x4632b8){this['annotations']=_0x4632b8;const _0x5e0796=this['editor'][_0x544c('0x44')][_0x544c('0x48')](_0x53c841),_0x1df4a9=this[_0x544c('0xd')];if(this[_0x544c('0x12')])throw new _0xf91289('inlineannotations-attach-already-attached',this);if(_0x5e0796['context']!==this[_0x544c('0x2f')])throw new _0xf91289(_0x544c('0x2e'),this);const _0x57e527=this[_0x544c('0x2f')]['plugins']['get'](_0x542c29);this['listenTo'](_0x57e527,_0x544c('0x1e'),()=>{const _0x49448e=_0x57e527['getOrderedSelectedAnnotations']({'annotations':this[_0x544c('0xc')],'activeAnnotation':this[_0x544c('0x3')]});var _0x5743e0,_0x481b89;!this[_0x544c('0x2')]&&(_0x5743e0=_0x49448e,_0x481b89=this['_selectedAnnotations'],_0x5743e0[_0x544c('0x24')]===_0x481b89[_0x544c('0x24')]&&_0x5743e0[_0x544c('0x10')](_0xa0f46=>_0x481b89[_0x544c('0x2c')](_0xa0f46)))||(this[_0x544c('0x2')]=!0x1,this[_0x544c('0x1c')](_0x49448e),this[_0x544c('0x3e')](_0x49448e[0x0]||null));}),this[_0x544c('0x32')](_0x57e527,'blur',(_0x2c553c,{isAnnotationTracked:_0x277430})=>{this[_0x544c('0x3')]&&_0x277430(this[_0x544c('0x3')])&&(this['_setSelectedAnnotations']([]),this[_0x544c('0x3e')](null));}),this[_0x544c('0x32')](this[_0x544c('0x2f')]['ui'][_0x544c('0x1')],_0x544c('0x3f'),(_0x44748e,_0xc47683,_0x1ebd28)=>{_0x1ebd28||this[_0x544c('0x3e')](null);}),this[_0x544c('0x32')](_0x4632b8,_0x544c('0x34'),(_0x3e01b0,_0x3aceb3)=>{this[_0x544c('0xf')](_0x3aceb3),_0x3aceb3===this[_0x544c('0x3')]&&this[_0x544c('0x3e')](null);}),this[_0x544c('0x32')](_0x1df4a9,_0x544c('0x46'),(_0x1e5a28,_0x381160,_0x400673,_0x34cdfb)=>{_0x34cdfb&&this['stopListening'](_0x34cdfb);const _0x504f84=_0x4632b8['getByView'](_0x400673);_0x400673&&_0x504f84&&(this[_0x544c('0x32')](_0x400673,'change:height',()=>{_0x1df4a9[_0x544c('0x15')]();}),this[_0x544c('0x32')](_0x400673,_0x544c('0xe'),()=>{this[_0x544c('0x3b')](_0x504f84),this[_0x544c('0x2f')][_0x544c('0x6')][_0x544c('0x3d')][_0x544c('0x2a')]();}),this[_0x544c('0x3')]!==_0x504f84&&this[_0x544c('0x3e')](_0x504f84));}),this['listenTo'](this[_0x544c('0x2f')]['ui'],_0x544c('0xb'),()=>{_0x1df4a9[_0x544c('0x1b')]&&(_0x4632b8[_0x544c('0x40')](_0x1df4a9[_0x544c('0x1b')])&&_0x1df4a9[_0x544c('0x15')]());}),this['listenTo'](this['editor'][_0x544c('0x6')]['view'][_0x544c('0x41')],_0x544c('0x30'),()=>{this['_forceRefresh']=!0x0,this[_0x544c('0x13')][_0x544c('0x20')]();}),this[_0x544c('0x2f')]['editing']['view'][_0x544c('0x41')]['selection']['editableElement']&&this[_0x544c('0x2f')][_0x544c('0x6')][_0x544c('0x3d')]['focus'](),this[_0x544c('0x12')]=!0x0;}[_0x544c('0x29')](){if(!this[_0x544c('0x12')])throw new _0xf91289(_0x544c('0x3a'),this);this['setActiveAnnotation'](null);for(const _0x1eb086 of this['_addedAnnotations'])this[_0x544c('0xf')](_0x1eb086);this[_0x544c('0x39')](),this[_0x544c('0x12')]=!0x1,this['annotations']=null;}['destroy'](){this[_0x544c('0x12')]&&this['detach']();}[_0x544c('0x1c')](_0x5e1feb){for(const _0x2c01b2 of this[_0x544c('0x21')])_0x5e1feb[_0x544c('0x2c')](_0x2c01b2)||this['_manuallyClosed'][_0x544c('0x2d')](_0x2c01b2);for(const _0x22662c of this[_0x544c('0xc')])_0x5e1feb[_0x544c('0x2c')](_0x22662c)||this['_removeAnnotationFromBalloon'](_0x22662c);if(this[_0x544c('0x2f')]['ui'][_0x544c('0x1')][_0x544c('0x23')])for(const _0xfa58cf of _0x5e1feb)this[_0x544c('0x1a')](_0xfa58cf);this[_0x544c('0x21')]=_0x5e1feb;}['_addAnnotationToBalloon'](_0x52ccea,_0x5a4904=!0x1){this['_manuallyClosed']['has'](_0x52ccea)||(this['_addedAnnotations'][_0x544c('0x22')](_0x52ccea)||this['_balloon'][_0x544c('0x3c')](_0x52ccea[_0x544c('0x3d')])||(this[_0x544c('0x1d')]['add'](_0x52ccea),this[_0x544c('0xd')][_0x544c('0x37')]({'stackId':_0x52ccea[_0x544c('0x3d')]['id'],'view':_0x52ccea[_0x544c('0x3d')],'position':{'target':()=>this[_0x544c('0x43')](_0x52ccea)}})),_0x5a4904&&this['_balloon'][_0x544c('0x8')](_0x52ccea[_0x544c('0x3d')]['id']));}['_getBalloonTargetForAnnotation'](_0x57340c){const _0x40ae86=_0x57340c[_0x544c('0x14')],_0x3678e2=this[_0x544c('0x2f')]['editing']['view'],_0x372183=_0x3678e2['document']['selection'][_0x544c('0x45')](),_0x5712db=_0x3678e2[_0x544c('0x0')][_0x544c('0x4')](_0x372183);if(_0x5712db[_0x544c('0x31')](!0x0),_0x40ae86){if(_0x40ae86 instanceof _0x25492f)return _0x40ae86;let _0x375a70=[];for(const _0x37afc6 of _0x40ae86)_0x375a70['push'](...(_0x571ad9=_0x37afc6[_0x544c('0x5')](),Array[_0x544c('0x49')](_0x571ad9)['map'](DOMRect['fromRect'])));_0x375a70=function(_0x472442){const _0x865d64=[];let _0x1dfcf3=_0x472442[0x0];for(let _0x59a794=0x1;_0x59a794<_0x472442['length'];_0x59a794++)F(_0x1dfcf3,_0x472442[_0x59a794])?_0x1dfcf3[_0x544c('0x26')]+=_0x472442[_0x59a794][_0x544c('0x26')]:(_0x865d64['push'](_0x1dfcf3),_0x1dfcf3=_0x472442[_0x59a794]);return _0x865d64[_0x544c('0x9')](_0x1dfcf3),_0x865d64;}(_0x375a70);const _0xd9041=_0x5712db['getBoundingClientRect']();return _0x375a70[_0x544c('0x27')](_0x214f4d=>_0x214f4d['top']<=_0xd9041[_0x544c('0x28')]&&_0x214f4d[_0x544c('0x19')]>=_0xd9041['bottom']&&_0x214f4d[_0x544c('0x18')]<=_0xd9041[_0x544c('0x18')]&&_0x214f4d['right']>=_0xd9041[_0x544c('0x2b')])||_0x375a70[0x0];}var _0x571ad9;return _0x57340c['targetRect']||_0x5712db;}[_0x544c('0xf')](_0xfb1bed){this[_0x544c('0x1d')][_0x544c('0x22')](_0xfb1bed)&&this[_0x544c('0xd')]['hasView'](_0xfb1bed['view'])&&(this[_0x544c('0x1d')]['delete'](_0xfb1bed),this[_0x544c('0xd')][_0x544c('0x34')](_0xfb1bed[_0x544c('0x3d')]));}[_0x544c('0x3b')](_0x1c8293){this[_0x544c('0x13')][_0x544c('0x37')](_0x1c8293),this[_0x544c('0xf')](_0x1c8293);}}function F(_0x59cad9,_0x44e2be){return _0x59cad9[_0x544c('0x28')]===_0x44e2be['top']&&_0x59cad9[_0x544c('0x19')]===_0x44e2be['bottom']&&_0x59cad9[_0x544c('0x2b')]===_0x44e2be['left'];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3e6f=['southArrowNorthWest','_annotations','set:container','off','defaultPositions','northArrowSouthWest','getSidebarItemView','refresh','set','type','create','includes','has','change:container','register','requires','destroy','NarrowSidebar','attach','focus','removeEventListener','pin','activeAnnotation','_integrateWithEditorAnnotations','narrowsidebar-detach-not-attached','_selectedAnnotations','content','annotations','clear','mousedown','low','esc','isDirty','element','values','_detachListeners','_refreshPositioning','keyCode','detach','_editorAnnotations','_updateBalloonPosition','balloonPanelView','from','_showBalloon','cancel','plugins','contains','EditorAnnotations','getOrderedSelectedAnnotations','getByView','_hideBalloon','remove','ck-sidebar--narrow','_setSelectedAnnotations','focusableElements','view','setActiveAnnotation','uiUpdate','stopListening','southArrowNorth','_annotationToNarrowView','attachToDom','annotationType','rearrange','isAttached','bind','bodyCollection','get','_attachListeners','editors','hasDomSelection','narrowsidebar-attach-already-attached','delete','ready','_destroyEditorAnnotationsIntegration','first','_domEmitter','find','listenTo','northArrowSouth','isVisible','addEventListener','target','resize','preventClosingBalloon','narrowSidebar','context','add','blur','keydown','locale','_refreshPositioningDebounced','change:height','southArrowNorthEast','detachFromDom','high','_manuallyClosedAnnotationViews'];(function(_0x3e7f49,_0x3e6fc4){const _0x29c638=function(_0x4a08ed){while(--_0x4a08ed){_0x3e7f49['push'](_0x3e7f49['shift']());}};_0x29c638(++_0x3e6fc4);}(_0x3e6f,0x16a));const _0x29c6=function(_0x3e7f49,_0x3e6fc4){_0x3e7f49=_0x3e7f49-0x0;let _0x29c638=_0x3e6f[_0x3e7f49];return _0x29c638;};import{ContextPlugin as _0x365b2e,Context as _0x72ef77}from'ckeditor5/src/core';import _0x4f00bd from'./annotationsuis';import _0x548c7a from'./sidebar';import _0x3e6229 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x3c64ec,BodyCollection as _0x519f20}from'ckeditor5/src/ui';import{CKEditorError as _0x5adb75,DomEmitterMixin as _0x1b64da,keyCodes as _0x3682a6,Collection as _0x5ee14d}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0xf10f22}from'lodash-es';import _0x42789e from'./editorannotations';export default class s extends _0x365b2e{static get[_0x29c6('0x29')](){return[_0x548c7a,_0x4f00bd];}static get['pluginName'](){return _0x29c6('0x2b');}constructor(_0x4e6882){super(_0x4e6882),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this[_0x29c6('0x5')]=Object[_0x29c6('0x24')](_0x1b64da),this[_0x29c6('0x56')]=new Map(),this[_0x29c6('0x22')]('activeAnnotation',null),this[_0x29c6('0x35')]=null,this[_0x29c6('0x33')]=[],this[_0x29c6('0x41')]=new _0x5ee14d(),this[_0x29c6('0x14')]=_0xf10f22(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this[_0x29c6('0xf')][_0x29c6('0x47')][_0x29c6('0x5d')](_0x4f00bd)[_0x29c6('0x28')](_0x29c6('0xe'),this),this[_0x29c6('0x5c')]=new _0x519f20(this[_0x29c6('0xf')][_0x29c6('0x13')]),this[_0x29c6('0x43')]=new _0x3c64ec(this['context']['locale']),this['bodyCollection'][_0x29c6('0x57')](),this[_0x29c6('0x5c')][_0x29c6('0x10')](this[_0x29c6('0x43')]);}[_0x29c6('0x2c')](_0x38ca5d){this[_0x29c6('0x35')]=_0x38ca5d;const _0x2933fa=this[_0x29c6('0xf')][_0x29c6('0x47')][_0x29c6('0x5d')](_0x548c7a),_0x5cd0ed=this[_0x29c6('0x43')];if(_0x2933fa[_0x29c6('0x1b')]=_0x38ca5d,this[_0x29c6('0x5a')])throw new _0x5adb75(_0x29c6('0x0'),this);this[_0x29c6('0x5a')]=!0x0,this[_0x29c6('0x7')](_0x2933fa,_0x29c6('0x1c'),()=>{this[_0x29c6('0x40')](),this[_0x29c6('0x7')](_0x2933fa,_0x29c6('0x27'),_0x144569=>{_0x144569[_0x29c6('0x1d')](),this['attach'](_0x38ca5d);});}),_0x2933fa['_attachToContainer']({'viewClass':_0x29c6('0x4e'),'spaceBetweenItems':0x5});const _0x4e3139=_0x17aaa4=>{const _0x4267ab=new _0x3e6229(this['context'][_0x29c6('0x13')]);_0x2933fa['addAnnotation'](_0x17aaa4,_0x4267ab),this['_annotationToNarrowView'][_0x29c6('0x22')](_0x17aaa4,_0x4267ab),_0x4267ab[_0x29c6('0x5b')](_0x29c6('0x3a'),_0x29c6('0x58'),'number')['to'](_0x17aaa4[_0x29c6('0x51')],'isDirty',_0x29c6('0x23'),'length'),_0x4267ab['on']('execute',()=>{this['_manuallyClosedAnnotationViews'][_0x29c6('0x36')](),_0x5cd0ed[_0x29c6('0x34')][_0x29c6('0x4')]!==_0x17aaa4[_0x29c6('0x51')]?(this['_showBalloon'](_0x17aaa4),_0x17aaa4[_0x29c6('0x51')]['element']['focus'](),this[_0x29c6('0x52')](_0x17aaa4)):this[_0x29c6('0x52')](null);});};for(const _0x593019 of _0x38ca5d)_0x4e3139(_0x593019);this[_0x29c6('0x7')](_0x38ca5d,_0x29c6('0x10'),(_0x97dde,_0x2dde50)=>{_0x4e3139(_0x2dde50);}),this[_0x29c6('0x7')](_0x38ca5d,_0x29c6('0x4d'),(_0x398bbb,_0x309ecd,_0x3aa5ec)=>{this[_0x29c6('0x56')][_0x29c6('0x5d')](_0x309ecd)[_0x29c6('0x2a')](),this['_annotationToNarrowView'][_0x29c6('0x1')](_0x309ecd),_0x2933fa[_0x29c6('0x59')]({'removedAnnotation':_0x309ecd,'previousAnnotation':_0x38ca5d[_0x29c6('0x5d')](_0x3aa5ec-0x1),'nextAnnotation':_0x38ca5d[_0x29c6('0x5d')](_0x3aa5ec+0x1)}),_0x309ecd===this[_0x29c6('0x30')]&&this[_0x29c6('0x52')](null);},{'priority':_0x29c6('0x38')}),this[_0x29c6('0x7')](_0x38ca5d,_0x29c6('0x2d'),(_0x5b0b0c,_0x345e22)=>{this['setActiveAnnotation'](_0x345e22);}),this['listenTo'](_0x38ca5d,_0x29c6('0x11'),()=>{this[_0x29c6('0x52')](null);}),this['_domEmitter'][_0x29c6('0x7')](document,_0x29c6('0x12'),(_0x290905,_0x4abfaa)=>{_0x4abfaa[_0x29c6('0x3f')]===_0x3682a6[_0x29c6('0x39')]&&_0x5cd0ed['isVisible']&&(this[_0x29c6('0x19')][_0x29c6('0x10')](_0x5cd0ed['content'][_0x29c6('0x4')]),this[_0x29c6('0x4c')](),_0x4abfaa['stopPropagation'](),_0x4abfaa['preventDefault']());}),this[_0x29c6('0x5')][_0x29c6('0x7')](document,_0x29c6('0x37'),(_0x395e72,_0x2618d6)=>{const _0xa99400=_0x2618d6[_0x29c6('0xb')];_0x5cd0ed[_0x29c6('0x9')]&&_0x5cd0ed['element'][_0x29c6('0x48')](_0xa99400)||_0x2933fa['view'][_0x29c6('0x3b')]['contains'](_0xa99400)||_0x395e72[_0x29c6('0xd')]||this[_0x29c6('0x30')]&&this[_0x29c6('0x30')][_0x29c6('0x50')][_0x29c6('0x6')](_0x32cff0=>_0x32cff0[_0x29c6('0x48')](_0xa99400))||(this[_0x29c6('0x19')][_0x29c6('0x36')](),this[_0x29c6('0x4c')](),this[_0x29c6('0x52')](null));});const _0x5a1517=this[_0x29c6('0xf')]instanceof _0x72ef77?this[_0x29c6('0xf')]['editors']:new _0x5ee14d([this[_0x29c6('0xf')]]);for(const _0x166229 of _0x5a1517)this[_0x29c6('0x31')](_0x166229);this[_0x29c6('0x7')](_0x5a1517,_0x29c6('0x10'),(_0x461f28,_0x1f4a0e)=>{this[_0x29c6('0x7')](_0x1f4a0e,_0x29c6('0x2'),()=>{this['_integrateWithEditorAnnotations'](_0x1f4a0e);});}),this[_0x29c6('0x7')](_0x5a1517,_0x29c6('0x4d'),(_0x544964,_0x15a396)=>{_0x15a396['plugins'][_0x29c6('0x26')](_0x29c6('0x49'))&&this['_destroyEditorAnnotationsIntegration'](_0x15a396[_0x29c6('0x47')][_0x29c6('0x5d')](_0x29c6('0x49')));}),window[_0x29c6('0xa')]('resize',this['_refreshPositioningDebounced']),this[_0x29c6('0x3e')]();}[_0x29c6('0x52')](_0x4adc08){if(_0x4adc08===this[_0x29c6('0x30')])return;const _0x453d10=this[_0x29c6('0xf')][_0x29c6('0x47')]['get'](_0x548c7a);if(_0x453d10[_0x29c6('0x21')]({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x4adc08,'disableAnimationOnActivatedAnnotation':!0x0}),_0x4adc08)_0x453d10[_0x29c6('0x20')](_0x4adc08)?this['_showBalloon'](_0x4adc08):this[_0x29c6('0x4c')]();else this['_hideBalloon']();this[_0x29c6('0x30')]=_0x4adc08;}[_0x29c6('0x40')](){if(!this[_0x29c6('0x5a')])throw new _0x5adb75(_0x29c6('0x32'),this);this[_0x29c6('0x52')](null);const _0x2a5de2=this[_0x29c6('0xf')][_0x29c6('0x47')]['get'](_0x548c7a);this[_0x29c6('0x4c')](),Array[_0x29c6('0x44')](this['_annotationToNarrowView'][_0x29c6('0x3c')](),_0x26c511=>_0x26c511[_0x29c6('0x2a')]()),this['_annotationToNarrowView']['clear'](),_0x2a5de2['_detachFromContainer'](this[_0x29c6('0x35')]),this[_0x29c6('0x54')](),this['_domEmitter']['stopListening'](),this[_0x29c6('0xf')]instanceof _0x72ef77&&this[_0x29c6('0x54')](this['context'][_0x29c6('0x5f')]);for(const _0x2146ab of Array[_0x29c6('0x44')](this['_editorAnnotations']))this[_0x29c6('0x3')](_0x2146ab);window[_0x29c6('0x2e')](_0x29c6('0xc'),this[_0x29c6('0x14')]),this[_0x29c6('0x14')][_0x29c6('0x46')](),this[_0x29c6('0x33')]=[],this[_0x29c6('0x5a')]=!0x1,this['annotations']=null;}['destroy'](){this[_0x29c6('0x5a')]&&this[_0x29c6('0x40')](),this[_0x29c6('0x5c')][_0x29c6('0x17')]();}[_0x29c6('0x31')](_0x448e0c){const _0x1eb836=_0x448e0c[_0x29c6('0x47')][_0x29c6('0x5d')](_0x42789e),_0x294c6e=this[_0x29c6('0xf')]['plugins'][_0x29c6('0x5d')](_0x548c7a),_0x577fd5=this[_0x29c6('0x35')],_0x260adf=this['balloonPanelView'],_0x407970=()=>{const _0x4b6a8d=_0x1eb836[_0x29c6('0x4a')]({'annotations':this[_0x29c6('0x35')],'activeAnnotation':this[_0x29c6('0x30')]});this[_0x29c6('0x4f')](_0x4b6a8d),this['setActiveAnnotation'](_0x4b6a8d[0x0]||null);};this[_0x29c6('0x7')](_0x1eb836,_0x29c6('0x21'),_0x407970),this[_0x29c6('0x7')](_0x1eb836,_0x29c6('0x11'),(_0x400e27,{isAnnotationTracked:_0xd55619})=>{this[_0x29c6('0x30')]&&_0xd55619(this[_0x29c6('0x30')])&&(this['_setSelectedAnnotations']([]),this[_0x29c6('0x52')](null));}),this[_0x29c6('0x7')](_0x1eb836,_0x29c6('0x53'),()=>{this[_0x29c6('0x14')]();}),this[_0x29c6('0x7')](_0x577fd5,'blur',_0x4a4eb5=>{_0x1eb836[_0x29c6('0x60')]()&&_0x4a4eb5['stop']();},{'priority':_0x29c6('0x18')}),this[_0x29c6('0x7')](this[_0x29c6('0x5')],'mousedown',(_0x264b65,_0x40abd9)=>{const _0x382558=_0x40abd9[_0x29c6('0xb')];_0x260adf[_0x29c6('0x9')]&&_0x260adf[_0x29c6('0x3b')][_0x29c6('0x48')](_0x382558)||_0x294c6e['view'][_0x29c6('0x3b')][_0x29c6('0x48')](_0x382558)||this[_0x29c6('0x30')]&&_0x1eb836[_0x29c6('0x60')]()&&(_0x407970(),_0x264b65[_0x29c6('0xd')]=!0x0);},{'priority':_0x29c6('0x18')}),this[_0x29c6('0x41')][_0x29c6('0x10')](_0x1eb836);}[_0x29c6('0x3')](_0x286fbd){_0x286fbd&&(this['stopListening'](_0x286fbd),this['_editorAnnotations'][_0x29c6('0x4d')](_0x286fbd));}[_0x29c6('0x4f')](_0x42d15e){for(const _0x2e8c70 of this[_0x29c6('0x33')])_0x42d15e[_0x29c6('0x25')](_0x2e8c70)||this[_0x29c6('0x19')][_0x29c6('0x1')](_0x2e8c70[_0x29c6('0x51')]);this[_0x29c6('0x33')]=_0x42d15e;}[_0x29c6('0x3e')](){const _0x193151=this[_0x29c6('0x43')];this[_0x29c6('0x35')]['refreshPositioning'](),_0x193151['isVisible']&&this[_0x29c6('0x42')]();}[_0x29c6('0x45')](_0x472621){if(this[_0x29c6('0x19')][_0x29c6('0x26')](_0x472621['view']))return;const _0x3aafa5=this[_0x29c6('0x43')]['content']['first'];_0x3aafa5!==_0x472621['view']?(_0x3aafa5&&this['_detachListeners'](_0x3aafa5),this[_0x29c6('0x5e')](_0x472621[_0x29c6('0x51')]),this[_0x29c6('0x43')]['content']['clear'](),this[_0x29c6('0x43')]['content'][_0x29c6('0x10')](_0x472621[_0x29c6('0x51')]),this[_0x29c6('0x42')]()):this[_0x29c6('0x42')]();}[_0x29c6('0x42')](){const _0x16f421=this['balloonPanelView'][_0x29c6('0x34')][_0x29c6('0x4')],_0x5154e2=_0x16f421&&this[_0x29c6('0x35')][_0x29c6('0x4b')](_0x16f421);if(!_0x5154e2||!this['_annotationToNarrowView'][_0x29c6('0x26')](_0x5154e2))return;const _0x18b293=this[_0x29c6('0x56')][_0x29c6('0x5d')](_0x5154e2)[_0x29c6('0x3b')],_0x378b01=function(){const _0x406669=_0x3c64ec[_0x29c6('0x1e')];return[_0x406669[_0x29c6('0x16')],_0x406669['northArrowSouthEast'],_0x406669[_0x29c6('0x55')],_0x406669[_0x29c6('0x8')],_0x406669[_0x29c6('0x1a')],_0x406669[_0x29c6('0x1f')]];}();this['balloonPanelView'][_0x29c6('0x2f')]({'target':_0x18b293,'positions':_0x378b01});}[_0x29c6('0x4c')](){const _0x1efe41=this[_0x29c6('0x43')],_0x19ba47=_0x1efe41['content'][_0x29c6('0x4')];_0x19ba47&&(this[_0x29c6('0x3d')](_0x19ba47),_0x1efe41['unpin'](),_0x1efe41[_0x29c6('0x34')][_0x29c6('0x36')]());}[_0x29c6('0x5e')](_0x54f732){this[_0x29c6('0x7')](_0x54f732,_0x29c6('0x15'),()=>this[_0x29c6('0x42')]()),this[_0x29c6('0x7')](_0x54f732,'Esc',(_0x16f829,_0x415e6c)=>{this[_0x29c6('0x19')][_0x29c6('0x10')](_0x54f732),this[_0x29c6('0x4c')](),_0x415e6c();});}[_0x29c6('0x3d')](_0x46552e){this[_0x29c6('0x54')](_0x46552e);}}
23
+ const _0x12ee=['_attachListeners','bind','plugins','isDirty','pluginName','view','from','setActiveAnnotation','balloonPanelView','high','ck-sidebar--narrow','init','Esc','_annotations','set','refreshPositioning','_selectedAnnotations','_manuallyClosedAnnotationViews','northArrowSouthWest','focusableElements','narrowSidebar','rearrange','defaultPositions','_updateBalloonPosition','resize','unpin','remove','listenTo','addAnnotation','stop','_refreshPositioning','set:container','requires','focus','preventDefault','off','detachFromDom','southArrowNorth','_showBalloon','change:container','get','addEventListener','narrowsidebar-attach-already-attached','_attachToContainer','isVisible','content','attach','_setSelectedAnnotations','destroy','find','ready','context','editors','southArrowNorthWest','annotationType','_domEmitter','includes','execute','bodyCollection','preventClosingBalloon','blur','activeAnnotation','narrowsidebar-detach-not-attached','first','detach','getOrderedSelectedAnnotations','annotations','removeEventListener','values','EditorAnnotations','_editorAnnotations','clear','add','locale','target','_hideBalloon','length','refresh','esc','stopListening','delete','_annotationToNarrowView','mousedown','_detachListeners','contains','hasDomSelection','_refreshPositioningDebounced','register','element','_integrateWithEditorAnnotations','_destroyEditorAnnotationsIntegration','isAttached','has'];(function(_0xa5f85b,_0x12eef6){const _0x1fadaf=function(_0x48ec47){while(--_0x48ec47){_0xa5f85b['push'](_0xa5f85b['shift']());}};_0x1fadaf(++_0x12eef6);}(_0x12ee,0x8f));const _0x1fad=function(_0xa5f85b,_0x12eef6){_0xa5f85b=_0xa5f85b-0x0;let _0x1fadaf=_0x12ee[_0xa5f85b];return _0x1fadaf;};import{ContextPlugin as _0x2f033f,Context as _0x40e13f}from'ckeditor5/src/core';import _0x8022f5 from'./annotationsuis';import _0x55a731 from'./sidebar';import _0x14ac92 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x30da3b,BodyCollection as _0x44776f}from'ckeditor5/src/ui';import{CKEditorError as _0x4a97f0,DomEmitterMixin as _0x5c9f9d,keyCodes as _0x5083b3,Collection as _0x26347f}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x49fc02}from'lodash-es';import _0x346509 from'./editorannotations';export default class s extends _0x2f033f{static get[_0x1fad('0x4b')](){return[_0x55a731,_0x8022f5];}static get[_0x1fad('0x2f')](){return'NarrowSidebar';}constructor(_0x56dace){super(_0x56dace),this[_0x1fad('0x29')]=!0x1,this[_0x1fad('0x3c')]=new Set(),this[_0x1fad('0x5')]=Object['create'](_0x5c9f9d),this['_annotationToNarrowView']=new Map(),this[_0x1fad('0x39')](_0x1fad('0xb'),null),this[_0x1fad('0x10')]=null,this[_0x1fad('0x3b')]=[],this[_0x1fad('0x14')]=new _0x26347f(),this[_0x1fad('0x24')]=_0x49fc02(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}[_0x1fad('0x36')](){this[_0x1fad('0x1')]['plugins']['get'](_0x8022f5)[_0x1fad('0x25')](_0x1fad('0x3f'),this),this[_0x1fad('0x8')]=new _0x44776f(this['context']['locale']),this[_0x1fad('0x33')]=new _0x30da3b(this[_0x1fad('0x1')][_0x1fad('0x17')]),this[_0x1fad('0x8')]['attachToDom'](),this[_0x1fad('0x8')][_0x1fad('0x16')](this[_0x1fad('0x33')]);}[_0x1fad('0x59')](_0x463045){this[_0x1fad('0x10')]=_0x463045;const _0x2349a8=this[_0x1fad('0x1')][_0x1fad('0x2d')][_0x1fad('0x53')](_0x55a731),_0x240a60=this[_0x1fad('0x33')];if(_0x2349a8[_0x1fad('0x38')]=_0x463045,this[_0x1fad('0x29')])throw new _0x4a97f0(_0x1fad('0x55'),this);this[_0x1fad('0x29')]=!0x0,this['listenTo'](_0x2349a8,_0x1fad('0x4a'),()=>{this[_0x1fad('0xe')](),this['listenTo'](_0x2349a8,_0x1fad('0x52'),_0x5faf50=>{_0x5faf50[_0x1fad('0x4e')](),this[_0x1fad('0x59')](_0x463045);});}),_0x2349a8[_0x1fad('0x56')]({'viewClass':_0x1fad('0x35'),'spaceBetweenItems':0x5});const _0x3c1e52=_0x3ad91a=>{const _0x2ef013=new _0x14ac92(this[_0x1fad('0x1')][_0x1fad('0x17')]);_0x2349a8[_0x1fad('0x47')](_0x3ad91a,_0x2ef013),this[_0x1fad('0x1f')]['set'](_0x3ad91a,_0x2ef013),_0x2ef013[_0x1fad('0x2c')](_0x1fad('0x2e'),_0x1fad('0x4'),'number')['to'](_0x3ad91a['view'],'isDirty','type',_0x1fad('0x1a')),_0x2ef013['on'](_0x1fad('0x7'),()=>{this['_manuallyClosedAnnotationViews'][_0x1fad('0x15')](),_0x240a60[_0x1fad('0x58')]['first']!==_0x3ad91a[_0x1fad('0x30')]?(this[_0x1fad('0x51')](_0x3ad91a),_0x3ad91a[_0x1fad('0x30')][_0x1fad('0x26')][_0x1fad('0x4c')](),this[_0x1fad('0x32')](_0x3ad91a)):this[_0x1fad('0x32')](null);});};for(const _0x101ac4 of _0x463045)_0x3c1e52(_0x101ac4);this[_0x1fad('0x46')](_0x463045,'add',(_0x97f4db,_0x45838e)=>{_0x3c1e52(_0x45838e);}),this['listenTo'](_0x463045,_0x1fad('0x45'),(_0x2f4570,_0x576086,_0x310422)=>{this[_0x1fad('0x1f')]['get'](_0x576086)[_0x1fad('0x5b')](),this[_0x1fad('0x1f')][_0x1fad('0x1e')](_0x576086),_0x2349a8[_0x1fad('0x40')]({'removedAnnotation':_0x576086,'previousAnnotation':_0x463045['get'](_0x310422-0x1),'nextAnnotation':_0x463045[_0x1fad('0x53')](_0x310422+0x1)}),_0x576086===this[_0x1fad('0xb')]&&this[_0x1fad('0x32')](null);},{'priority':'low'}),this[_0x1fad('0x46')](_0x463045,'focus',(_0x4e38b0,_0x569858)=>{this[_0x1fad('0x32')](_0x569858);}),this[_0x1fad('0x46')](_0x463045,_0x1fad('0xa'),()=>{this[_0x1fad('0x32')](null);}),this[_0x1fad('0x5')][_0x1fad('0x46')](document,'keydown',(_0x3f8a84,_0x4523b7)=>{_0x4523b7['keyCode']===_0x5083b3[_0x1fad('0x1c')]&&_0x240a60[_0x1fad('0x57')]&&(this['_manuallyClosedAnnotationViews']['add'](_0x240a60[_0x1fad('0x58')]['first']),this[_0x1fad('0x19')](),_0x4523b7['stopPropagation'](),_0x4523b7[_0x1fad('0x4d')]());}),this['_domEmitter'][_0x1fad('0x46')](document,_0x1fad('0x20'),(_0x2ea10b,_0x3b65ee)=>{const _0x4cd137=_0x3b65ee['target'];_0x240a60[_0x1fad('0x57')]&&_0x240a60[_0x1fad('0x26')][_0x1fad('0x22')](_0x4cd137)||_0x2349a8['view'][_0x1fad('0x26')]['contains'](_0x4cd137)||_0x2ea10b['preventClosingBalloon']||this[_0x1fad('0xb')]&&this[_0x1fad('0xb')][_0x1fad('0x3e')][_0x1fad('0x5c')](_0x580fcd=>_0x580fcd[_0x1fad('0x22')](_0x4cd137))||(this['_manuallyClosedAnnotationViews'][_0x1fad('0x15')](),this[_0x1fad('0x19')](),this[_0x1fad('0x32')](null));});const _0x68fa31=this[_0x1fad('0x1')]instanceof _0x40e13f?this[_0x1fad('0x1')][_0x1fad('0x2')]:new _0x26347f([this[_0x1fad('0x1')]]);for(const _0x40a85e of _0x68fa31)this[_0x1fad('0x27')](_0x40a85e);this[_0x1fad('0x46')](_0x68fa31,_0x1fad('0x16'),(_0x14cbe3,_0x3fdf39)=>{this[_0x1fad('0x46')](_0x3fdf39,_0x1fad('0x0'),()=>{this[_0x1fad('0x27')](_0x3fdf39);});}),this['listenTo'](_0x68fa31,_0x1fad('0x45'),(_0x1a90d9,_0xbfd87b)=>{_0xbfd87b[_0x1fad('0x2d')][_0x1fad('0x2a')](_0x1fad('0x13'))&&this[_0x1fad('0x28')](_0xbfd87b[_0x1fad('0x2d')]['get'](_0x1fad('0x13')));}),window[_0x1fad('0x54')](_0x1fad('0x43'),this[_0x1fad('0x24')]),this['_refreshPositioning']();}[_0x1fad('0x32')](_0x2f5c63){if(_0x2f5c63===this[_0x1fad('0xb')])return;const _0x1909fb=this[_0x1fad('0x1')][_0x1fad('0x2d')][_0x1fad('0x53')](_0x55a731);if(_0x1909fb[_0x1fad('0x1b')]({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x2f5c63,'disableAnimationOnActivatedAnnotation':!0x0}),_0x2f5c63)_0x1909fb['getSidebarItemView'](_0x2f5c63)?this[_0x1fad('0x51')](_0x2f5c63):this['_hideBalloon']();else this[_0x1fad('0x19')]();this['activeAnnotation']=_0x2f5c63;}['detach'](){if(!this[_0x1fad('0x29')])throw new _0x4a97f0(_0x1fad('0xc'),this);this[_0x1fad('0x32')](null);const _0x57dda2=this[_0x1fad('0x1')][_0x1fad('0x2d')][_0x1fad('0x53')](_0x55a731);this['_hideBalloon'](),Array[_0x1fad('0x31')](this[_0x1fad('0x1f')][_0x1fad('0x12')](),_0x278c22=>_0x278c22['destroy']()),this[_0x1fad('0x1f')][_0x1fad('0x15')](),_0x57dda2['_detachFromContainer'](this[_0x1fad('0x10')]),this['stopListening'](),this[_0x1fad('0x5')]['stopListening'](),this[_0x1fad('0x1')]instanceof _0x40e13f&&this[_0x1fad('0x1d')](this[_0x1fad('0x1')]['editors']);for(const _0x115094 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x115094);window[_0x1fad('0x11')](_0x1fad('0x43'),this['_refreshPositioningDebounced']),this[_0x1fad('0x24')]['cancel'](),this[_0x1fad('0x3b')]=[],this[_0x1fad('0x29')]=!0x1,this[_0x1fad('0x10')]=null;}[_0x1fad('0x5b')](){this[_0x1fad('0x29')]&&this[_0x1fad('0xe')](),this['bodyCollection'][_0x1fad('0x4f')]();}[_0x1fad('0x27')](_0x575952){const _0x59559d=_0x575952[_0x1fad('0x2d')][_0x1fad('0x53')](_0x346509),_0x1ae7bf=this[_0x1fad('0x1')][_0x1fad('0x2d')][_0x1fad('0x53')](_0x55a731),_0x9c6b03=this[_0x1fad('0x10')],_0x5d4e73=this[_0x1fad('0x33')],_0x1306a0=()=>{const _0x47afb7=_0x59559d[_0x1fad('0xf')]({'annotations':this[_0x1fad('0x10')],'activeAnnotation':this[_0x1fad('0xb')]});this[_0x1fad('0x5a')](_0x47afb7),this[_0x1fad('0x32')](_0x47afb7[0x0]||null);};this[_0x1fad('0x46')](_0x59559d,_0x1fad('0x1b'),_0x1306a0),this[_0x1fad('0x46')](_0x59559d,'blur',(_0x487bc0,{isAnnotationTracked:_0x3162e2})=>{this['activeAnnotation']&&_0x3162e2(this[_0x1fad('0xb')])&&(this[_0x1fad('0x5a')]([]),this[_0x1fad('0x32')](null));}),this[_0x1fad('0x46')](_0x59559d,'uiUpdate',()=>{this[_0x1fad('0x24')]();}),this['listenTo'](_0x9c6b03,'blur',_0x4ed645=>{_0x59559d[_0x1fad('0x23')]()&&_0x4ed645[_0x1fad('0x48')]();},{'priority':_0x1fad('0x34')}),this['listenTo'](this[_0x1fad('0x5')],_0x1fad('0x20'),(_0x369854,_0x537ecd)=>{const _0x55ac79=_0x537ecd[_0x1fad('0x18')];_0x5d4e73[_0x1fad('0x57')]&&_0x5d4e73[_0x1fad('0x26')][_0x1fad('0x22')](_0x55ac79)||_0x1ae7bf['view'][_0x1fad('0x26')][_0x1fad('0x22')](_0x55ac79)||this[_0x1fad('0xb')]&&_0x59559d[_0x1fad('0x23')]()&&(_0x1306a0(),_0x369854[_0x1fad('0x9')]=!0x0);},{'priority':_0x1fad('0x34')}),this[_0x1fad('0x14')][_0x1fad('0x16')](_0x59559d);}[_0x1fad('0x28')](_0x4b07de){_0x4b07de&&(this[_0x1fad('0x1d')](_0x4b07de),this[_0x1fad('0x14')][_0x1fad('0x45')](_0x4b07de));}[_0x1fad('0x5a')](_0x2cce02){for(const _0x3aad06 of this['_selectedAnnotations'])_0x2cce02[_0x1fad('0x6')](_0x3aad06)||this[_0x1fad('0x3c')]['delete'](_0x3aad06[_0x1fad('0x30')]);this['_selectedAnnotations']=_0x2cce02;}[_0x1fad('0x49')](){const _0x66d05f=this[_0x1fad('0x33')];this[_0x1fad('0x10')][_0x1fad('0x3a')](),_0x66d05f[_0x1fad('0x57')]&&this[_0x1fad('0x42')]();}[_0x1fad('0x51')](_0x15a081){if(this[_0x1fad('0x3c')][_0x1fad('0x2a')](_0x15a081[_0x1fad('0x30')]))return;const _0x4326c2=this[_0x1fad('0x33')][_0x1fad('0x58')]['first'];_0x4326c2!==_0x15a081[_0x1fad('0x30')]?(_0x4326c2&&this['_detachListeners'](_0x4326c2),this[_0x1fad('0x2b')](_0x15a081[_0x1fad('0x30')]),this[_0x1fad('0x33')][_0x1fad('0x58')]['clear'](),this['balloonPanelView']['content']['add'](_0x15a081['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}[_0x1fad('0x42')](){const _0x598f3e=this[_0x1fad('0x33')][_0x1fad('0x58')][_0x1fad('0xd')],_0x3b1274=_0x598f3e&&this[_0x1fad('0x10')]['getByView'](_0x598f3e);if(!_0x3b1274||!this[_0x1fad('0x1f')]['has'](_0x3b1274))return;const _0x24eccb=this[_0x1fad('0x1f')][_0x1fad('0x53')](_0x3b1274)['element'],_0x81316a=function(){const _0x4266f2=_0x30da3b[_0x1fad('0x41')];return[_0x4266f2['southArrowNorthEast'],_0x4266f2['northArrowSouthEast'],_0x4266f2[_0x1fad('0x50')],_0x4266f2['northArrowSouth'],_0x4266f2[_0x1fad('0x3')],_0x4266f2[_0x1fad('0x3d')]];}();this[_0x1fad('0x33')]['pin']({'target':_0x24eccb,'positions':_0x81316a});}['_hideBalloon'](){const _0x489a1b=this[_0x1fad('0x33')],_0x4091f2=_0x489a1b[_0x1fad('0x58')][_0x1fad('0xd')];_0x4091f2&&(this[_0x1fad('0x21')](_0x4091f2),_0x489a1b[_0x1fad('0x44')](),_0x489a1b[_0x1fad('0x58')][_0x1fad('0x15')]());}[_0x1fad('0x2b')](_0x3da153){this[_0x1fad('0x46')](_0x3da153,'change:height',()=>this[_0x1fad('0x42')]()),this[_0x1fad('0x46')](_0x3da153,_0x1fad('0x37'),(_0x45428b,_0x273842)=>{this[_0x1fad('0x3c')]['add'](_0x3da153),this[_0x1fad('0x19')](),_0x273842();});}[_0x1fad('0x21')](_0x54f2b7){this[_0x1fad('0x1d')](_0x54f2b7);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x580b=['updateHeight','config','_annotations','container','_detachFromContainer','_destroySidebarItemView','define','minHeight','push','target','addAnnotation','last','_annotationToSidebarItemView','sidebar.preventScrollOutOfView','_spaceBetweenItems','get','getSidebarItemView','bottom','nodeType','class','setContainer','render','_lastItem','_updateLastItem','_targetTop','sidebar-setcontainer-invalid-element','change:bottom','top','stopListening','object','init','_getTargetTop','max','isAnimationDisabled','_activeAnnotation','bind','sidebar-attachtocontainer-missing-container','_recalculate','clear','listenTo','change:top','_recalculateBuffer','_sidebarItemViewToAnnotation','_alignForBottomChange','context','destroy','_alignBeforeItem','_alignToTargetRect','isActive','_getItemBefore','add','locale','_getItemAfter','length','_getMaxAvailableTop','list','height','rearrange','content','sidebar.container','_alignAfterItem','change:targetRect','delete','getIndex','_setItemTop','_attachToContainer','change:_lastItem','Sidebar','view','targetRect','element','_alignForTopChange','set'];(function(_0x9bfd49,_0x580b41){const _0x3a76f3=function(_0x5d8eae){while(--_0x5d8eae){_0x9bfd49['push'](_0x9bfd49['shift']());}};_0x3a76f3(++_0x580b41);}(_0x580b,0x8c));const _0x3a76=function(_0x9bfd49,_0x580b41){_0x9bfd49=_0x9bfd49-0x0;let _0x3a76f3=_0x580b[_0x9bfd49];return _0x3a76f3;};import{ContextPlugin as _0x41ea08}from'ckeditor5/src/core';import{Rect as _0x10be81,CKEditorError as _0x4b0e4c}from'ckeditor5/src/utils';import _0x295ab9 from'./view/sidebarview';import _0x598155 from'./view/sidebaritemview';export default class z extends _0x41ea08{static get['pluginName'](){return _0x3a76('0x0');}constructor(_0x27dfdf){super(_0x27dfdf),this[_0x3a76('0x5')](_0x3a76('0x1c'),void 0x0),this[_0x3a76('0x1')]=this['_createSidebarView'](),this[_0x3a76('0x5')]('container',null),this['_spaceBetweenItems']=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this[_0x3a76('0x12')]=new Map(),this[_0x3a76('0x32')][_0x3a76('0x7')][_0x3a76('0xc')](_0x3a76('0x13'),!0x1),this['_annotations']=null,this[_0x3a76('0x28')]=null,this[_0x3a76('0x2f')]=[];}[_0x3a76('0x24')](){const _0x4e1808=this[_0x3a76('0x32')][_0x3a76('0x7')][_0x3a76('0x15')](_0x3a76('0x41'));_0x4e1808&&this[_0x3a76('0x1a')](_0x4e1808);}[_0x3a76('0x1a')](_0x203998){if(!y(_0x203998))throw new _0x4b0e4c(_0x3a76('0x1f'));this[_0x3a76('0x9')]=_0x203998;}[_0x3a76('0x47')]({viewClass:_0x33b994='',spaceBetweenItems:_0x47de86=0x19}={}){if(!y(this[_0x3a76('0x9')]))throw new _0x4b0e4c(_0x3a76('0x2a'),this);this[_0x3a76('0x9')]['appendChild'](this[_0x3a76('0x1')][_0x3a76('0x3')]),this[_0x3a76('0x1')]['class']=_0x33b994,this['_spaceBetweenItems']=_0x47de86;}[_0x3a76('0x3f')]({removedAnnotation:_0x2c6094,previousAnnotation:_0x5cd4ca,nextAnnotation:_0x36c771}){const _0x580a78=this[_0x3a76('0x16')](_0x2c6094);this[_0x3a76('0x1')][_0x3a76('0x3d')]['remove'](_0x580a78),this[_0x3a76('0xb')](_0x2c6094),_0x5cd4ca&&this[_0x3a76('0x35')](this[_0x3a76('0x16')](_0x5cd4ca)),_0x36c771&&this[_0x3a76('0x35')](this['getSidebarItemView'](_0x36c771)),this[_0x3a76('0x1d')]();}['refresh']({blurredAnnotation:_0x4870dd,activatedAnnotation:_0x1e5b76,disableAnimationOnActivatedAnnotation:_0x4e76cd}){if(this[_0x3a76('0x28')]=_0x1e5b76,_0x4870dd){_0x4870dd[_0x3a76('0x36')]=!0x1;const _0x33d215=this['getSidebarItemView'](_0x4870dd);_0x33d215&&_0x4e76cd&&(_0x33d215[_0x3a76('0x27')]=!0x1);}if(_0x1e5b76){const _0x2b7b2c=this[_0x3a76('0x16')](_0x1e5b76);_0x2b7b2c&&(_0x1e5b76[_0x3a76('0x36')]=!0x0,_0x4e76cd&&(_0x2b7b2c[_0x3a76('0x27')]=!0x0,_0x2b7b2c[_0x3a76('0x21')]+=0x1),this[_0x3a76('0x35')](_0x2b7b2c));}}[_0x3a76('0xa')](_0xfbcff2){if(this['view'][_0x3a76('0x3')]['remove'](),_0xfbcff2)for(const _0xa5a203 of _0xfbcff2)this[_0x3a76('0xb')](_0xa5a203);this['view'][_0x3a76('0x3d')][_0x3a76('0x2c')](),this[_0x3a76('0x1')][_0x3a76('0x19')]='',this[_0x3a76('0x1c')]=null;}[_0x3a76('0x10')](_0x5477c6,_0x1c3c55){_0x1c3c55||(_0x1c3c55=_0x5477c6[_0x3a76('0x1')]);const _0x518c5e=new _0x598155(this[_0x3a76('0x32')][_0x3a76('0x39')]);this[_0x3a76('0x30')][_0x3a76('0x5')](_0x518c5e,_0x5477c6),this[_0x3a76('0x12')][_0x3a76('0x5')](_0x5477c6,_0x518c5e),_0x518c5e[_0x3a76('0x40')][_0x3a76('0x38')](_0x1c3c55),this[_0x3a76('0x2d')](_0x5477c6[_0x3a76('0x1')],_0x3a76('0x43'),(_0x15768a,_0x5c82d4,_0x2011de)=>{const _0x3e196c=this[_0x3a76('0x25')](_0x5477c6,_0x2011de);_0x518c5e[_0x3a76('0x1e')]!=_0x3e196c&&(_0x518c5e[_0x3a76('0x1e')]=_0x3e196c,this['_setItemTop'](_0x518c5e,_0x3e196c));}),this[_0x3a76('0x2d')](_0x518c5e,_0x3a76('0x2e'),()=>{this[_0x3a76('0x2b')](_0x518c5e,_0x3a76('0x21'));}),this['listenTo'](_0x518c5e,_0x3a76('0x20'),()=>{this[_0x3a76('0x2b')](_0x518c5e,_0x3a76('0x17'));}),this[_0x3a76('0x35')](_0x518c5e);const _0x307b1d=this['_getItemBefore'](_0x518c5e);if(_0x307b1d)this['_alignAfterItem'](_0x307b1d,_0x518c5e)||this[_0x3a76('0x35')](_0x518c5e);else this[_0x3a76('0x35')](_0x518c5e);return this[_0x3a76('0x1d')](),this[_0x3a76('0x1')][_0x3a76('0x3d')][_0x3a76('0x38')](_0x518c5e),_0x518c5e;}[_0x3a76('0x4')](_0x9808f7){if(!_0x9808f7[_0x3a76('0x40')]['length'])return;const _0x5831a7=this[_0x3a76('0x37')](_0x9808f7);if(!_0x5831a7)return;const _0x2ae02a=this[_0x3a76('0x30')][_0x3a76('0x15')](_0x5831a7),_0x211c45=this['_activeAnnotation'];_0x211c45&&_0x211c45===_0x2ae02a?this[_0x3a76('0x42')](_0x5831a7,_0x9808f7):this[_0x3a76('0x34')](_0x9808f7,_0x5831a7);}[_0x3a76('0x31')](_0xe3c7fd){if(!_0xe3c7fd[_0x3a76('0x40')][_0x3a76('0x3b')])return;const _0x33d652=this[_0x3a76('0x3a')](_0xe3c7fd);if(!_0x33d652)return;const _0x2179c5=this['_sidebarItemViewToAnnotation'][_0x3a76('0x15')](_0x33d652),_0x175ff2=this['context'][_0x3a76('0x7')][_0x3a76('0x15')](_0x3a76('0x13')),_0x34b55a=this[_0x3a76('0x28')];_0x34b55a&&_0x34b55a===_0x2179c5&&_0x175ff2?(this[_0x3a76('0x34')](_0x33d652,_0xe3c7fd),this[_0x3a76('0x42')](_0xe3c7fd,_0x33d652)):_0x34b55a&&_0x34b55a===_0x2179c5?this[_0x3a76('0x34')](_0x33d652,_0xe3c7fd):this['_alignAfterItem'](_0xe3c7fd,_0x33d652);}['_recalculate'](_0x35914e,_0x1d7ef7){0x0===this['_recalculateBuffer'][_0x3a76('0x3b')]&&setTimeout(()=>{for(const {sidebarItemView:_0x47938e,changedProp:_0x35ba2e}of this[_0x3a76('0x2f')])_0x3a76('0x21')===_0x35ba2e?this[_0x3a76('0x4')](_0x47938e):this[_0x3a76('0x31')](_0x47938e);this[_0x3a76('0x2f')]=[];},0xa),this[_0x3a76('0x2f')][_0x3a76('0xe')]({'sidebarItemView':_0x35914e,'changedProp':_0x1d7ef7});}[_0x3a76('0x16')](_0x31bbe3){return this[_0x3a76('0x12')]['get'](_0x31bbe3);}[_0x3a76('0x33')](){this['stopListening'](),this[_0x3a76('0x1')][_0x3a76('0x33')]();}[_0x3a76('0xb')](_0x3a6284){const _0xafab60=this['getSidebarItemView'](_0x3a6284);this[_0x3a76('0x22')](_0xafab60),this[_0x3a76('0x22')](_0x3a6284[_0x3a76('0x1')]),_0xafab60[_0x3a76('0x33')](),this[_0x3a76('0x12')][_0x3a76('0x44')](_0x3a6284),this[_0x3a76('0x30')][_0x3a76('0x44')](_0xafab60);}['_createSidebarView'](){const _0x5925cf=new _0x295ab9(this['context'][_0x3a76('0x39')]);return _0x5925cf[_0x3a76('0x1b')](),this['on'](_0x3a76('0x48'),(_0x1b8187,_0x2e5179,_0x267198,_0x9c142d)=>{_0x9c142d&&_0x5925cf['unbind']('minHeight'),_0x267198?_0x5925cf[_0x3a76('0x29')](_0x3a76('0xd'))['to'](_0x267198,'bottom'):_0x5925cf['minHeight']=null;}),_0x5925cf;}[_0x3a76('0x1d')](){var _0xa0c5c6;this['_lastItem']=(null===(_0xa0c5c6=this[_0x3a76('0x8')])||void 0x0===_0xa0c5c6?void 0x0:_0xa0c5c6[_0x3a76('0x11')])?this[_0x3a76('0x16')](this['_annotations'][_0x3a76('0x11')]):null;}[_0x3a76('0x37')](_0x329265){var _0x5c1c27;const _0x25af42=this[_0x3a76('0x30')][_0x3a76('0x15')](_0x329265),_0x48131a=_0x25af42&&(null===(_0x5c1c27=this['_annotations'])||void 0x0===_0x5c1c27?void 0x0:_0x5c1c27[_0x3a76('0x15')](this['_annotations'][_0x3a76('0x45')](_0x25af42)-0x1));return _0x48131a&&this[_0x3a76('0x16')](_0x48131a)||null;}[_0x3a76('0x3a')](_0x52957a){var _0x53c891;const _0x2beaa1=this[_0x3a76('0x30')][_0x3a76('0x15')](_0x52957a),_0x2238b6=_0x2beaa1&&(null===(_0x53c891=this['_annotations'])||void 0x0===_0x53c891?void 0x0:_0x53c891['get'](this[_0x3a76('0x8')][_0x3a76('0x45')](_0x2beaa1)+0x1));return _0x2238b6&&this[_0x3a76('0x16')](_0x2238b6)||null;}[_0x3a76('0x34')](_0x4274e6,_0x38e54c){_0x4274e6['updateHeight']();const _0xc0a709=H(_0x38e54c[_0x3a76('0x17')]+this[_0x3a76('0x14')],_0x4274e6['top']);return!!_0xc0a709&&(this['_setItemTop'](_0x38e54c,_0x38e54c[_0x3a76('0x21')]-_0xc0a709),!0x0);}[_0x3a76('0x42')](_0x5188e0,_0x2912d1){_0x5188e0[_0x3a76('0x6')]();const _0x5c2a1a=H(_0x5188e0[_0x3a76('0x17')]+this[_0x3a76('0x14')],_0x2912d1[_0x3a76('0x21')]);return!!_0x5c2a1a&&(this['_setItemTop'](_0x2912d1,_0x2912d1[_0x3a76('0x21')]+_0x5c2a1a,!0x1),!0x0);}[_0x3a76('0x35')](_0x5b30a3){const _0xbba0fe=this['_sidebarItemViewToAnnotation']['get'](_0x5b30a3);if(!_0xbba0fe||!_0xbba0fe[_0x3a76('0xf')]||!_0xbba0fe['targetRect'])return;const _0x292e97=this['_getTargetTop'](_0xbba0fe,_0xbba0fe[_0x3a76('0x2')]);this[_0x3a76('0x46')](_0x5b30a3,_0x292e97);}[_0x3a76('0x25')](_0x4a3bb4,_0x1da53c){if(null===_0x1da53c)return 0x0;if(_0x4a3bb4[_0x3a76('0xf')]instanceof _0x10be81)return _0x1da53c['top'];{const _0x5a2308=new _0x10be81(this['view'][_0x3a76('0x3')])[_0x3a76('0x21')];return _0x1da53c[_0x3a76('0x21')]-_0x5a2308;}}[_0x3a76('0x46')](_0xf0ba2f,_0x3be5c7,_0x4d14ee=this[_0x3a76('0x32')][_0x3a76('0x7')][_0x3a76('0x15')](_0x3a76('0x13'))){_0x4d14ee&&(_0x3be5c7=Math[_0x3a76('0x26')](_0x3be5c7,this['_getMaxAvailableTop'](_0xf0ba2f))),_0xf0ba2f[_0x3a76('0x21')]=_0x3be5c7;}[_0x3a76('0x3c')](_0x464c25){let _0x4b5203=this['_getItemBefore'](_0x464c25),_0x1bd4de=0x0;for(;_0x4b5203;)_0x4b5203[_0x3a76('0x6')](),_0x1bd4de+=this[_0x3a76('0x14')]+_0x4b5203[_0x3a76('0x3e')],_0x4b5203=this[_0x3a76('0x37')](_0x4b5203);return _0x1bd4de;}}function H(_0x593b4a,_0x2eab23){return Math['max'](_0x593b4a-_0x2eab23,0x0);}function y(_0x24dc99){return null!==_0x24dc99&&_0x3a76('0x23')==typeof _0x24dc99&&0x1===_0x24dc99[_0x3a76('0x18')];}
23
+ const _0x17db=['isAnimationDisabled','class','change:bottom','_alignBeforeItem','bind','stopListening','get','_alignAfterItem','_getMaxAvailableTop','_alignToTargetRect','_attachToContainer','locale','addAnnotation','change:targetRect','_activeAnnotation','_annotations','_sidebarItemViewToAnnotation','content','_detachFromContainer','clear','render','set','_alignForBottomChange','element','bottom','change:top','_recalculate','context','setContainer','length','object','appendChild','_updateLastItem','top','destroy','Sidebar','sidebar.preventScrollOutOfView','delete','_setItemTop','define','_targetTop','list','container','getSidebarItemView','add','remove','target','_recalculateBuffer','refresh','listenTo','_createSidebarView','_destroySidebarItemView','_lastItem','view','rearrange','getIndex','isActive','updateHeight','_getTargetTop','config','last','_annotationToSidebarItemView','minHeight','change:_lastItem','unbind','height','_getItemBefore','_spaceBetweenItems','_getItemAfter','sidebar.container','_alignForTopChange'];(function(_0x4c74fd,_0x17db18){const _0x31175=function(_0x1d563d){while(--_0x1d563d){_0x4c74fd['push'](_0x4c74fd['shift']());}};_0x31175(++_0x17db18);}(_0x17db,0x1a5));const _0x3117=function(_0x4c74fd,_0x17db18){_0x4c74fd=_0x4c74fd-0x0;let _0x31175=_0x17db[_0x4c74fd];return _0x31175;};import{ContextPlugin as _0x224ff5}from'ckeditor5/src/core';import{Rect as _0xbb97af,CKEditorError as _0x5e58f6}from'ckeditor5/src/utils';import _0x24ec11 from'./view/sidebarview';import _0x23b8b6 from'./view/sidebaritemview';export default class z extends _0x224ff5{static get['pluginName'](){return _0x3117('0x28');}constructor(_0xfb3a72){super(_0xfb3a72),this[_0x3117('0x1a')]('_lastItem',void 0x0),this[_0x3117('0x3a')]=this[_0x3117('0x37')](),this[_0x3117('0x1a')](_0x3117('0x2f'),null),this['_spaceBetweenItems']=0x19,this[_0x3117('0x15')]=new Map(),this[_0x3117('0x42')]=new Map(),this[_0x3117('0x20')]['config'][_0x3117('0x2c')]('sidebar.preventScrollOutOfView',!0x1),this['_annotations']=null,this[_0x3117('0x13')]=null,this[_0x3117('0x34')]=[];}['init'](){const _0x193d21=this[_0x3117('0x20')][_0x3117('0x40')][_0x3117('0xb')](_0x3117('0x3'));_0x193d21&&this['setContainer'](_0x193d21);}[_0x3117('0x21')](_0x50ce43){if(!y(_0x50ce43))throw new _0x5e58f6('sidebar-setcontainer-invalid-element');this[_0x3117('0x2f')]=_0x50ce43;}[_0x3117('0xf')]({viewClass:_0x37469f='',spaceBetweenItems:_0x2bc45b=0x19}={}){if(!y(this[_0x3117('0x2f')]))throw new _0x5e58f6('sidebar-attachtocontainer-missing-container',this);this['container'][_0x3117('0x24')](this['view'][_0x3117('0x1c')]),this[_0x3117('0x3a')][_0x3117('0x6')]=_0x37469f,this[_0x3117('0x1')]=_0x2bc45b;}[_0x3117('0x3b')]({removedAnnotation:_0x382d84,previousAnnotation:_0x381538,nextAnnotation:_0x17b702}){const _0x5909c7=this['getSidebarItemView'](_0x382d84);this[_0x3117('0x3a')][_0x3117('0x2e')][_0x3117('0x32')](_0x5909c7),this[_0x3117('0x38')](_0x382d84),_0x381538&&this[_0x3117('0xe')](this[_0x3117('0x30')](_0x381538)),_0x17b702&&this[_0x3117('0xe')](this[_0x3117('0x30')](_0x17b702)),this[_0x3117('0x25')]();}[_0x3117('0x35')]({blurredAnnotation:_0x38ce46,activatedAnnotation:_0xc00d82,disableAnimationOnActivatedAnnotation:_0x4d9c5c}){if(this['_activeAnnotation']=_0xc00d82,_0x38ce46){_0x38ce46[_0x3117('0x3d')]=!0x1;const _0xb19768=this[_0x3117('0x30')](_0x38ce46);_0xb19768&&_0x4d9c5c&&(_0xb19768[_0x3117('0x5')]=!0x1);}if(_0xc00d82){const _0x57b5cd=this['getSidebarItemView'](_0xc00d82);_0x57b5cd&&(_0xc00d82[_0x3117('0x3d')]=!0x0,_0x4d9c5c&&(_0x57b5cd[_0x3117('0x5')]=!0x0,_0x57b5cd['top']+=0x1),this[_0x3117('0xe')](_0x57b5cd));}}[_0x3117('0x17')](_0x1ea0ab){if(this[_0x3117('0x3a')][_0x3117('0x1c')][_0x3117('0x32')](),_0x1ea0ab)for(const _0x5751b8 of _0x1ea0ab)this[_0x3117('0x38')](_0x5751b8);this[_0x3117('0x3a')][_0x3117('0x2e')][_0x3117('0x18')](),this[_0x3117('0x3a')][_0x3117('0x6')]='',this[_0x3117('0x39')]=null;}[_0x3117('0x11')](_0x28786b,_0x1eab28){_0x1eab28||(_0x1eab28=_0x28786b[_0x3117('0x3a')]);const _0x1a64f3=new _0x23b8b6(this[_0x3117('0x20')][_0x3117('0x10')]);this['_sidebarItemViewToAnnotation'][_0x3117('0x1a')](_0x1a64f3,_0x28786b),this[_0x3117('0x42')][_0x3117('0x1a')](_0x28786b,_0x1a64f3),_0x1a64f3[_0x3117('0x16')][_0x3117('0x31')](_0x1eab28),this[_0x3117('0x36')](_0x28786b[_0x3117('0x3a')],_0x3117('0x12'),(_0x4afeb1,_0x1400db,_0x2f298e)=>{const _0x8a2304=this[_0x3117('0x3f')](_0x28786b,_0x2f298e);_0x1a64f3[_0x3117('0x2d')]!=_0x8a2304&&(_0x1a64f3[_0x3117('0x2d')]=_0x8a2304,this[_0x3117('0x2b')](_0x1a64f3,_0x8a2304));}),this[_0x3117('0x36')](_0x1a64f3,_0x3117('0x1e'),()=>{this[_0x3117('0x1f')](_0x1a64f3,_0x3117('0x26'));}),this[_0x3117('0x36')](_0x1a64f3,_0x3117('0x7'),()=>{this['_recalculate'](_0x1a64f3,_0x3117('0x1d'));}),this[_0x3117('0xe')](_0x1a64f3);const _0x519932=this['_getItemBefore'](_0x1a64f3);if(_0x519932)this['_alignAfterItem'](_0x519932,_0x1a64f3)||this['_alignToTargetRect'](_0x1a64f3);else this['_alignToTargetRect'](_0x1a64f3);return this[_0x3117('0x25')](),this[_0x3117('0x3a')]['list'][_0x3117('0x31')](_0x1a64f3),_0x1a64f3;}['_alignForTopChange'](_0x175478){if(!_0x175478[_0x3117('0x16')][_0x3117('0x22')])return;const _0x22a600=this[_0x3117('0x0')](_0x175478);if(!_0x22a600)return;const _0x554211=this[_0x3117('0x15')][_0x3117('0xb')](_0x22a600),_0xd7dcf0=this['_activeAnnotation'];_0xd7dcf0&&_0xd7dcf0===_0x554211?this[_0x3117('0xc')](_0x22a600,_0x175478):this[_0x3117('0x8')](_0x175478,_0x22a600);}[_0x3117('0x1b')](_0x494f63){if(!_0x494f63[_0x3117('0x16')][_0x3117('0x22')])return;const _0x550988=this['_getItemAfter'](_0x494f63);if(!_0x550988)return;const _0x2b0bc5=this[_0x3117('0x15')][_0x3117('0xb')](_0x550988),_0x178ac2=this[_0x3117('0x20')]['config'][_0x3117('0xb')](_0x3117('0x29')),_0xdbe035=this['_activeAnnotation'];_0xdbe035&&_0xdbe035===_0x2b0bc5&&_0x178ac2?(this[_0x3117('0x8')](_0x550988,_0x494f63),this[_0x3117('0xc')](_0x494f63,_0x550988)):_0xdbe035&&_0xdbe035===_0x2b0bc5?this[_0x3117('0x8')](_0x550988,_0x494f63):this[_0x3117('0xc')](_0x494f63,_0x550988);}[_0x3117('0x1f')](_0x50fa11,_0x41e495){0x0===this[_0x3117('0x34')][_0x3117('0x22')]&&setTimeout(()=>{for(const {sidebarItemView:_0x1d57eb,changedProp:_0x4bfe90}of this[_0x3117('0x34')])_0x3117('0x26')===_0x4bfe90?this[_0x3117('0x4')](_0x1d57eb):this['_alignForBottomChange'](_0x1d57eb);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x50fa11,'changedProp':_0x41e495});}[_0x3117('0x30')](_0x48f8a5){return this[_0x3117('0x42')][_0x3117('0xb')](_0x48f8a5);}['destroy'](){this['stopListening'](),this[_0x3117('0x3a')]['destroy']();}[_0x3117('0x38')](_0x950842){const _0x484054=this[_0x3117('0x30')](_0x950842);this[_0x3117('0xa')](_0x484054),this[_0x3117('0xa')](_0x950842[_0x3117('0x3a')]),_0x484054[_0x3117('0x27')](),this[_0x3117('0x42')][_0x3117('0x2a')](_0x950842),this['_sidebarItemViewToAnnotation'][_0x3117('0x2a')](_0x484054);}[_0x3117('0x37')](){const _0x38b716=new _0x24ec11(this[_0x3117('0x20')][_0x3117('0x10')]);return _0x38b716[_0x3117('0x19')](),this['on'](_0x3117('0x44'),(_0x45e123,_0x37d032,_0x4a6689,_0x101fbb)=>{_0x101fbb&&_0x38b716[_0x3117('0x45')](_0x3117('0x43')),_0x4a6689?_0x38b716[_0x3117('0x9')](_0x3117('0x43'))['to'](_0x4a6689,_0x3117('0x1d')):_0x38b716[_0x3117('0x43')]=null;}),_0x38b716;}[_0x3117('0x25')](){var _0x4c8c18;this[_0x3117('0x39')]=(null===(_0x4c8c18=this['_annotations'])||void 0x0===_0x4c8c18?void 0x0:_0x4c8c18['last'])?this[_0x3117('0x30')](this['_annotations'][_0x3117('0x41')]):null;}[_0x3117('0x0')](_0x54befa){var _0xb04cde;const _0x2c8b85=this[_0x3117('0x15')][_0x3117('0xb')](_0x54befa),_0x2a2dc3=_0x2c8b85&&(null===(_0xb04cde=this['_annotations'])||void 0x0===_0xb04cde?void 0x0:_0xb04cde[_0x3117('0xb')](this[_0x3117('0x14')][_0x3117('0x3c')](_0x2c8b85)-0x1));return _0x2a2dc3&&this['getSidebarItemView'](_0x2a2dc3)||null;}[_0x3117('0x2')](_0x24ad35){var _0x5b0b83;const _0x3fbdc5=this[_0x3117('0x15')][_0x3117('0xb')](_0x24ad35),_0x13016a=_0x3fbdc5&&(null===(_0x5b0b83=this[_0x3117('0x14')])||void 0x0===_0x5b0b83?void 0x0:_0x5b0b83['get'](this['_annotations'][_0x3117('0x3c')](_0x3fbdc5)+0x1));return _0x13016a&&this[_0x3117('0x30')](_0x13016a)||null;}['_alignBeforeItem'](_0x242245,_0x87fa1d){_0x242245[_0x3117('0x3e')]();const _0x3ca0db=H(_0x87fa1d[_0x3117('0x1d')]+this[_0x3117('0x1')],_0x242245['top']);return!!_0x3ca0db&&(this[_0x3117('0x2b')](_0x87fa1d,_0x87fa1d['top']-_0x3ca0db),!0x0);}[_0x3117('0xc')](_0x1ddb55,_0xd05afc){_0x1ddb55[_0x3117('0x3e')]();const _0x58cd4e=H(_0x1ddb55[_0x3117('0x1d')]+this[_0x3117('0x1')],_0xd05afc['top']);return!!_0x58cd4e&&(this[_0x3117('0x2b')](_0xd05afc,_0xd05afc['top']+_0x58cd4e,!0x1),!0x0);}[_0x3117('0xe')](_0x1ddc9a){const _0x415cd2=this['_sidebarItemViewToAnnotation'][_0x3117('0xb')](_0x1ddc9a);if(!_0x415cd2||!_0x415cd2[_0x3117('0x33')]||!_0x415cd2['targetRect'])return;const _0x263328=this[_0x3117('0x3f')](_0x415cd2,_0x415cd2['targetRect']);this[_0x3117('0x2b')](_0x1ddc9a,_0x263328);}[_0x3117('0x3f')](_0x2f48af,_0x30067d){if(null===_0x30067d)return 0x0;if(_0x2f48af[_0x3117('0x33')]instanceof _0xbb97af)return _0x30067d['top'];{const _0x11cd75=new _0xbb97af(this[_0x3117('0x3a')][_0x3117('0x1c')])[_0x3117('0x26')];return _0x30067d[_0x3117('0x26')]-_0x11cd75;}}[_0x3117('0x2b')](_0x56716f,_0x47d5e4,_0x51e4a3=this[_0x3117('0x20')][_0x3117('0x40')][_0x3117('0xb')](_0x3117('0x29'))){_0x51e4a3&&(_0x47d5e4=Math['max'](_0x47d5e4,this['_getMaxAvailableTop'](_0x56716f))),_0x56716f[_0x3117('0x26')]=_0x47d5e4;}[_0x3117('0xd')](_0x254f38){let _0x47458f=this[_0x3117('0x0')](_0x254f38),_0x444b30=0x0;for(;_0x47458f;)_0x47458f['updateHeight'](),_0x444b30+=this[_0x3117('0x1')]+_0x47458f[_0x3117('0x46')],_0x47458f=this[_0x3117('0x0')](_0x47458f);return _0x444b30;}}function H(_0x5821ec,_0x16ee14){return Math['max'](_0x5821ec-_0x16ee14,0x0);}function y(_0x39c6c9){return null!==_0x39c6c9&&_0x3117('0x23')==typeof _0x39c6c9&&0x1===_0x39c6c9['nodeType'];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x116a=['add','bind','isDirty','extendTemplate','ck-annotation-counter__badge--','children','ck-annotation-counter__badge','ck-annotation-counter','...','icon','annotationType','counterView','toString','_badge','ck-annotation-counter__badge--edit-mode','set','number'];(function(_0x4c291d,_0x116af8){const _0x20478d=function(_0x4b0e08){while(--_0x4b0e08){_0x4c291d['push'](_0x4c291d['shift']());}};_0x20478d(++_0x116af8);}(_0x116a,0x1a4));const _0x2047=function(_0x4c291d,_0x116af8){_0x4c291d=_0x4c291d-0x0;let _0x20478d=_0x116a[_0x4c291d];return _0x20478d;};import{ButtonView as _0x20e8aa,View as _0x5d6f48}from'ckeditor5/src/ui';import _0x573e77 from'../../../theme/icons/add-comment.svg';export default class D extends _0x20e8aa{constructor(_0x1baf16){super(_0x1baf16);const _0x4c9f10=this['bindTemplate'];this[_0x2047('0x3')](_0x2047('0x7'),!0x1),this[_0x2047('0x3')](_0x2047('0x4'),0x0),this[_0x2047('0x6')](_0x2047('0x1'))['to'](this,_0x2047('0x7'),this,_0x2047('0x4'),(_0x65cf97,_0x3aef80)=>_0x65cf97?_0x2047('0xd'):_0x3aef80[_0x2047('0x0')]()),this[_0x2047('0x3')](_0x2047('0xf'),''),this[_0x2047('0xe')]=_0x573e77,this[_0x2047('0x8')]({'attributes':{'class':[_0x2047('0xc')]}}),this[_0x2047('0x10')]=new _0x5d6f48(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':[_0x2047('0xb'),_0x4c9f10['to'](_0x2047('0xf'),_0x1859f1=>_0x2047('0x9')+_0x1859f1),_0x4c9f10['if'](_0x2047('0x7'),_0x2047('0x2'))]},'children':[{'text':_0x4c9f10['to']('_badge')}]}),this[_0x2047('0xa')][_0x2047('0x5')](this[_0x2047('0x10')]);}}
23
+ const _0x4bc5=['bindTemplate','set','toString','ck-annotation-counter__badge--edit-mode','counterView','setTemplate','isDirty','...','ck-annotation-counter__badge','ck-annotation-counter','_badge','bind','annotationType','icon','extendTemplate','span','number'];(function(_0x4d7ccb,_0x4bc5f9){const _0x2fb70a=function(_0x35f8db){while(--_0x35f8db){_0x4d7ccb['push'](_0x4d7ccb['shift']());}};_0x2fb70a(++_0x4bc5f9);}(_0x4bc5,0x1a9));const _0x2fb7=function(_0x4d7ccb,_0x4bc5f9){_0x4d7ccb=_0x4d7ccb-0x0;let _0x2fb70a=_0x4bc5[_0x4d7ccb];return _0x2fb70a;};import{ButtonView as _0x9684d5,View as _0x5830d4}from'ckeditor5/src/ui';import _0x2cf42a from'../../../theme/icons/add-comment.svg';export default class D extends _0x9684d5{constructor(_0x2f53cf){super(_0x2f53cf);const _0x1f4b06=this[_0x2fb7('0x0')];this[_0x2fb7('0x1')]('isDirty',!0x1),this[_0x2fb7('0x1')](_0x2fb7('0x10'),0x0),this[_0x2fb7('0xb')](_0x2fb7('0xa'))['to'](this,_0x2fb7('0x6'),this,_0x2fb7('0x10'),(_0x543810,_0x56b0bd)=>_0x543810?_0x2fb7('0x7'):_0x56b0bd[_0x2fb7('0x2')]()),this[_0x2fb7('0x1')](_0x2fb7('0xc'),''),this[_0x2fb7('0xd')]=_0x2cf42a,this[_0x2fb7('0xe')]({'attributes':{'class':[_0x2fb7('0x9')]}}),this[_0x2fb7('0x4')]=new _0x5830d4(),this[_0x2fb7('0x4')][_0x2fb7('0x5')]({'tag':_0x2fb7('0xf'),'attributes':{'class':[_0x2fb7('0x8'),_0x1f4b06['to']('annotationType',_0x2c5508=>'ck-annotation-counter__badge--'+_0x2c5508),_0x1f4b06['if'](_0x2fb7('0x6'),_0x2fb7('0x3'))]},'children':[{'text':_0x1f4b06['to'](_0x2fb7('0xa'))}]}),this['children']['add'](this[_0x2fb7('0x4')]);}}