@ckeditor/ckeditor5-comments 0.0.0-nightly-20230912.0 → 0.0.0-nightly-20230913.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-20230912.0",
3
+ "version": "0.0.0-nightly-20230913.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-20230912.0",
47
- "ckeditor5-collaboration": "0.0.0-nightly-20230912.0",
46
+ "ckeditor5": "0.0.0-nightly-20230913.0",
47
+ "ckeditor5-collaboration": "0.0.0-nightly-20230913.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 _0x2503=['element','destroy','function','isArray','targetRect','_type','nodeType','mainView','remove','render','focusTracker','_getNormalizedTarget','item','isVisible','set','filter','annotation-invalid-target','stopListening','_assertCorrectTarget','innerView','type','length','_id','focusableElements','updateTargetRect','target','object','getClientRects','isActive','_target','every','view','add'];(function(_0x4ef0bd,_0x250302){const _0xb4173a=function(_0x521abb){while(--_0x521abb){_0x4ef0bd['push'](_0x4ef0bd['shift']());}};_0xb4173a(++_0x250302);}(_0x2503,0x1af));const _0xb417=function(_0x4ef0bd,_0x250302){_0x4ef0bd=_0x4ef0bd-0x0;let _0xb4173a=_0x2503[_0x4ef0bd];return _0xb4173a;};import{CKEditorError as _0x3e962e,Rect as _0x5f1056,Collection as _0x551ac0,ObservableMixin as _0x541d1a}from'ckeditor5/src/utils';export default class d extends _0x541d1a(){constructor({view:_0xcc8153,target:_0x4e01d0,type:_0x36dfd4,isVisible:_0x386540=!0x0}){super(),this[_0xb417('0x1d')]=_0xcc8153,this[_0xb417('0x1d')][_0xb417('0x1f')]||this[_0xb417('0x1d')][_0xb417('0x7')](),this['_type']=_0x36dfd4,this[_0xb417('0x1b')]=_0x4e01d0,d[_0xb417('0x10')](this[_0xb417('0x9')]()),this[_0xb417('0x15')]=new _0x551ac0([this[_0xb417('0x1d')][_0xb417('0x1f')]],{'idProperty':_0xb417('0x14')}),this[_0xb417('0x15')]['on'](_0xb417('0x1e'),(_0x22db5b,_0x6a74c1)=>{this['view']['focusTracker'][_0xb417('0x1e')](_0x6a74c1);}),this[_0xb417('0x15')]['on'](_0xb417('0x6'),(_0x451a1a,_0x3c139d)=>{this[_0xb417('0x1d')][_0xb417('0x8')][_0xb417('0x6')](_0x3c139d);}),this[_0xb417('0xc')](_0xb417('0xb'),_0x386540);}get[_0xb417('0x12')](){return'function'==typeof this[_0xb417('0x3')]?this[_0xb417('0x3')]():this[_0xb417('0x3')];}get[_0xb417('0x11')](){return this[_0xb417('0x1d')][_0xb417('0x5')];}get[_0xb417('0x17')](){const _0x49a333=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x49a333),_0x49a333;}get[_0xb417('0x2')](){const _0xf6aca9=this[_0xb417('0x17')];if(null===_0xf6aca9)return null;if(_0xf6aca9 instanceof _0x5f1056)return _0xf6aca9;const _0x53027f=_0xf6aca9[_0xb417('0xd')](_0x4d41fe=>function(_0x4879cc){const _0x5273c9=_0x4879cc['offsetParent'];if(_0x5273c9)return!0x0;const _0x277b57=_0x4879cc[_0xb417('0x19')]()[_0xb417('0xa')](0x0);return!!_0x277b57;}(_0x4d41fe));return 0x0===_0x53027f[_0xb417('0x13')]?null:new _0x5f1056(_0x53027f[0x0]['getClientRects']()[_0xb417('0xa')](0x0));}get[_0xb417('0x1a')](){return this[_0xb417('0x1d')][_0xb417('0x1a')];}set['isActive'](_0x357b8d){this['view']['isActive']=_0x357b8d,this[_0xb417('0x1d')][_0xb417('0x5')]['isActive']=_0x357b8d;}[_0xb417('0x16')](){this[_0xb417('0x1d')]['targetRect']=this[_0xb417('0x2')];}[_0xb417('0x20')](){this[_0xb417('0x15')][_0xb417('0xf')](),this['focusableElements']['clear'](),this[_0xb417('0xf')]();}['refreshVisibility'](){this[_0xb417('0xb')]=!!this['targetRect'];}static[_0xb417('0x10')](_0x953a8f){if(!(null===_0x953a8f||_0x953a8f instanceof _0x5f1056||Array[_0xb417('0x1')](_0x953a8f)&&_0x953a8f[_0xb417('0x1c')](_0x65c812=>y(_0x65c812))))throw new _0x3e962e(_0xb417('0xe'),null,{'target':_0x953a8f});}['_getNormalizedTarget'](){const _0x397947=_0xb417('0x0')==typeof this['_target']?this[_0xb417('0x1b')]():this[_0xb417('0x1b')];return y(_0x397947)?[_0x397947]:_0x397947;}}function y(_0x277468){return null!==_0x277468&&_0xb417('0x18')==typeof _0x277468&&_0xb417('0x4')in _0x277468&&0x1===_0x277468[_0xb417('0x4')];}
23
+ const _0x21ac=['destroy','offsetParent','_assertCorrectTarget','annotation-invalid-target','_target','_getNormalizedTarget','mainView','innerView','focusableElements','_id','clear','length','render','view','function','_type','nodeType','target','item','element','every','isActive','refreshVisibility','focusTracker','add','remove','stopListening','getClientRects','updateTargetRect','object','filter','targetRect','isVisible'];(function(_0x22ec2a,_0x21ac1e){const _0x182ce4=function(_0xbf128f){while(--_0xbf128f){_0x22ec2a['push'](_0x22ec2a['shift']());}};_0x182ce4(++_0x21ac1e);}(_0x21ac,0x6d));const _0x182c=function(_0x22ec2a,_0x21ac1e){_0x22ec2a=_0x22ec2a-0x0;let _0x182ce4=_0x21ac[_0x22ec2a];return _0x182ce4;};import{CKEditorError as _0x49154f,Rect as _0x2a64da,Collection as _0x4bd585,ObservableMixin as _0x17b965}from'ckeditor5/src/utils';export default class d extends _0x17b965(){constructor({view:_0x458652,target:_0xf23ccb,type:_0x324ea2,isVisible:_0x17b89f=!0x0}){super(),this[_0x182c('0x3')]=_0x458652,this[_0x182c('0x3')][_0x182c('0x9')]||this[_0x182c('0x3')][_0x182c('0x2')](),this['_type']=_0x324ea2,this[_0x182c('0x1b')]=_0xf23ccb,d[_0x182c('0x19')](this[_0x182c('0x1c')]()),this[_0x182c('0x1f')]=new _0x4bd585([this[_0x182c('0x3')][_0x182c('0x9')]],{'idProperty':_0x182c('0x20')}),this[_0x182c('0x1f')]['on'](_0x182c('0xe'),(_0x299b19,_0x89d6a8)=>{this[_0x182c('0x3')][_0x182c('0xd')][_0x182c('0xe')](_0x89d6a8);}),this['focusableElements']['on'](_0x182c('0xf'),(_0x3b03cc,_0x4eacd5)=>{this[_0x182c('0x3')][_0x182c('0xd')][_0x182c('0xf')](_0x4eacd5);}),this['set'](_0x182c('0x16'),_0x17b89f);}get['type'](){return _0x182c('0x4')==typeof this[_0x182c('0x5')]?this[_0x182c('0x5')]():this[_0x182c('0x5')];}get[_0x182c('0x1e')](){return this[_0x182c('0x3')]['mainView'];}get[_0x182c('0x7')](){const _0x3e0eb5=this['_getNormalizedTarget']();return d[_0x182c('0x19')](_0x3e0eb5),_0x3e0eb5;}get['targetRect'](){const _0x11cb35=this[_0x182c('0x7')];if(null===_0x11cb35)return null;if(_0x11cb35 instanceof _0x2a64da)return _0x11cb35;const _0x1d34e9=_0x11cb35[_0x182c('0x14')](_0x38c125=>function(_0xd98c13){const _0x2616d9=_0xd98c13[_0x182c('0x18')];if(_0x2616d9)return!0x0;const _0x2b3410=_0xd98c13[_0x182c('0x11')]()[_0x182c('0x8')](0x0);return!!_0x2b3410;}(_0x38c125));return 0x0===_0x1d34e9[_0x182c('0x1')]?null:new _0x2a64da(_0x1d34e9[0x0][_0x182c('0x11')]()['item'](0x0));}get['isActive'](){return this[_0x182c('0x3')]['isActive'];}set[_0x182c('0xb')](_0x4cc26b){this[_0x182c('0x3')]['isActive']=_0x4cc26b,this[_0x182c('0x3')][_0x182c('0x1d')][_0x182c('0xb')]=_0x4cc26b;}[_0x182c('0x12')](){this[_0x182c('0x3')][_0x182c('0x15')]=this[_0x182c('0x15')];}[_0x182c('0x17')](){this['focusableElements'][_0x182c('0x10')](),this[_0x182c('0x1f')][_0x182c('0x0')](),this[_0x182c('0x10')]();}[_0x182c('0xc')](){this[_0x182c('0x16')]=!!this[_0x182c('0x15')];}static['_assertCorrectTarget'](_0x1f7080){if(!(null===_0x1f7080||_0x1f7080 instanceof _0x2a64da||Array['isArray'](_0x1f7080)&&_0x1f7080[_0x182c('0xa')](_0x12873d=>y(_0x12873d))))throw new _0x49154f(_0x182c('0x1a'),null,{'target':_0x1f7080});}[_0x182c('0x1c')](){const _0x41daf9='function'==typeof this[_0x182c('0x1b')]?this[_0x182c('0x1b')]():this['_target'];return y(_0x41daf9)?[_0x41daf9]:_0x41daf9;}}function y(_0x386846){return null!==_0x386846&&_0x182c('0x13')==typeof _0x386846&&_0x182c('0x6')in _0x386846&&0x1===_0x386846[_0x182c('0x6')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x54d7=['focusTracker','change:isFocused','get','focus','remove','_innerViewToAnnotation','_focusTracker','set','annotationcollection-duplicated-item','focusableElements','blur','add','refreshPositioning','from','targetRect','destroy','annotationcollection-not-existing-item','updateTargetRect','isFocused','stopListening','_sort','_viewToAnnotation','left','has','clear','getByView','top','fire','getIndex','listenTo','view','length','getByInnerView','_getOrderInContent'];(function(_0x24d019,_0x54d73b){const _0x40943c=function(_0x22aeb5){while(--_0x22aeb5){_0x24d019['push'](_0x24d019['shift']());}};_0x40943c(++_0x54d73b);}(_0x54d7,0xfe));const _0x4094=function(_0x24d019,_0x54d73b){_0x24d019=_0x24d019-0x0;let _0x40943c=_0x54d7[_0x24d019];return _0x40943c;};import{CKEditorError as _0x2a855a,Collection as _0x1c0e98,FocusTracker as _0x54c085}from'ckeditor5/src/utils';export default class x extends _0x1c0e98{constructor(_0x4656b0=[]){super(),this[_0x4094('0x17')]=new Map(),this[_0x4094('0x5')]=new Map(),this[_0x4094('0x18')]=new _0x54c085(),this[_0x4094('0x18')]['on'](_0x4094('0x13'),(_0x3b853c,_0x48e77c,_0x12bdbd)=>{_0x12bdbd||this[_0x4094('0xb')](_0x4094('0x1c'));});for(const _0x3072f3 of _0x4656b0)this['add'](_0x3072f3);}get[_0x4094('0x2')](){return this['_focusTracker'][_0x4094('0x2')];}['add'](_0x2b90c0){if(this[_0x4094('0x7')](_0x2b90c0))throw new _0x2a855a(_0x4094('0x1a'),null);this['_innerViewToAnnotation'][_0x4094('0x19')](_0x2b90c0['innerView'],_0x2b90c0),this['_viewToAnnotation']['set'](_0x2b90c0[_0x4094('0xe')],_0x2b90c0);for(const _0x550b0f of _0x2b90c0[_0x4094('0x1b')])this['_focusTracker']['add'](_0x550b0f);this[_0x4094('0xd')](_0x2b90c0[_0x4094('0x1b')],_0x4094('0x1d'),(_0x9acf5f,_0x54dee9)=>{this['_focusTracker'][_0x4094('0x1d')](_0x54dee9);}),this['listenTo'](_0x2b90c0[_0x4094('0x1b')],_0x4094('0x16'),(_0x2d6b2f,_0x3ecd43)=>{this['_focusTracker'][_0x4094('0x16')](_0x3ecd43);}),this['listenTo'](_0x2b90c0[_0x4094('0xe')][_0x4094('0x12')],_0x4094('0x13'),(_0x5e74d3,_0xfda0c2,_0x92389c)=>{_0x92389c&&this['fire'](_0x4094('0x15'),_0x2b90c0);}),_0x2b90c0[_0x4094('0x1')]();const _0x20d051=this[_0x4094('0x11')](_0x2b90c0[_0x4094('0xe')]['targetRect']);return super[_0x4094('0x1d')](_0x2b90c0,_0x20d051);}['remove'](_0x129d0b){if(!this[_0x4094('0x7')](_0x129d0b))throw new _0x2a855a(_0x4094('0x0'),null);this['stopListening'](_0x129d0b[_0x4094('0xe')][_0x4094('0x12')]),this['stopListening'](_0x129d0b[_0x4094('0x1b')]);for(const _0x534964 of _0x129d0b['focusableElements'])this[_0x4094('0x18')][_0x4094('0x16')](_0x534964);return this[_0x4094('0x5')]['delete'](_0x129d0b[_0x4094('0xe')]),this[_0x4094('0x17')]['delete'](_0x129d0b['innerView']),super[_0x4094('0x16')](_0x129d0b);}[_0x4094('0x10')](_0x212c2d){return this['_innerViewToAnnotation']['get'](_0x212c2d);}[_0x4094('0x9')](_0x2479cc){return this[_0x4094('0x5')][_0x4094('0x14')](_0x2479cc);}[_0x4094('0x21')](){super[_0x4094('0x8')](),this[_0x4094('0x3')](),this[_0x4094('0x17')][_0x4094('0x8')](),this[_0x4094('0x5')][_0x4094('0x8')](),this['_focusTracker'][_0x4094('0x21')]();}[_0x4094('0x1e')](){for(const _0x86d2bc of this)_0x86d2bc[_0x4094('0x1')]();this[_0x4094('0x4')]();}[_0x4094('0x4')](){const _0x37e565=Array[_0x4094('0x1f')](this)['sort']((_0x1a6170,_0x3cbba2)=>v(_0x1a6170[_0x4094('0xe')][_0x4094('0x20')],_0x3cbba2[_0x4094('0xe')][_0x4094('0x20')]));for(let _0x16ce3f=_0x37e565[_0x4094('0xf')]-0x1;_0x16ce3f>0x0;_0x16ce3f--){const _0x3c63dc=_0x37e565[_0x16ce3f];_0x16ce3f!==this[_0x4094('0xc')](_0x3c63dc)&&(this[_0x4094('0x16')](_0x3c63dc),this[_0x4094('0x1d')](_0x3c63dc));}}[_0x4094('0x11')](_0x10c11c){let _0x1b2582=0x0;if(!_0x10c11c)return this[_0x4094('0xf')];for(const _0x521fff of this){const _0x331832=_0x521fff[_0x4094('0xe')]['targetRect'];if(_0x331832){if(v(_0x10c11c,_0x331832)<0x0)return _0x1b2582;_0x1b2582++;}}return _0x1b2582;}}export function bindAnnotationCollections({source:_0x788169,target:_0x3cde60,filter:_0x4b3650}){for(const _0x509919 of _0x788169)_0x4b3650(_0x509919)&&_0x3cde60[_0x4094('0x1d')](_0x509919);_0x3cde60[_0x4094('0xd')](_0x788169,_0x4094('0x1d'),(_0x51713e,_0x168a7b)=>{_0x4b3650(_0x168a7b)&&_0x3cde60[_0x4094('0x1d')](_0x168a7b);}),_0x3cde60['listenTo'](_0x788169,_0x4094('0x16'),(_0x45c3ea,_0x2361fc)=>{_0x3cde60[_0x4094('0x7')](_0x2361fc)&&_0x3cde60[_0x4094('0x16')](_0x2361fc);});}function v(_0x1c7f28,_0x179d4e){if(null===_0x1c7f28&&null===_0x179d4e)return 0x0;if(null===_0x1c7f28)return-0x1;if(null===_0x179d4e)return 0x1;const _0x28b5cd=_0x1c7f28[_0x4094('0xa')]-_0x179d4e[_0x4094('0xa')];return 0x0==_0x28b5cd?_0x1c7f28[_0x4094('0x6')]-_0x179d4e[_0x4094('0x6')]:_0x28b5cd;}
23
+ const _0x100c=['clear','targetRect','length','view','get','has','innerView','top','change:isFocused','focusableElements','isFocused','blur','_sort','left','focusTracker','_focusTracker','_innerViewToAnnotation','from','getByView','_getOrderInContent','set','refreshPositioning','annotationcollection-duplicated-item','delete','annotationcollection-not-existing-item','fire','stopListening','destroy','getByInnerView','_viewToAnnotation','updateTargetRect','remove','add','listenTo'];(function(_0x30afbe,_0x100c1e){const _0x334c3e=function(_0x423597){while(--_0x423597){_0x30afbe['push'](_0x30afbe['shift']());}};_0x334c3e(++_0x100c1e);}(_0x100c,0x130));const _0x334c=function(_0x30afbe,_0x100c1e){_0x30afbe=_0x30afbe-0x0;let _0x334c3e=_0x100c[_0x30afbe];return _0x334c3e;};import{CKEditorError as _0xfa9830,Collection as _0x3a3d87,FocusTracker as _0x42a161}from'ckeditor5/src/utils';export default class x extends _0x3a3d87{constructor(_0x514bb3=[]){super(),this[_0x334c('0x12')]=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x42a161(),this['_focusTracker']['on']('change:isFocused',(_0x16f219,_0x4170b7,_0xc8eab0)=>{_0xc8eab0||this[_0x334c('0x1b')](_0x334c('0xd'));});for(const _0x375a94 of _0x514bb3)this[_0x334c('0x0')](_0x375a94);}get[_0x334c('0xc')](){return this[_0x334c('0x11')]['isFocused'];}['add'](_0x1fd4f7){if(this['has'](_0x1fd4f7))throw new _0xfa9830(_0x334c('0x18'),null);this['_innerViewToAnnotation'][_0x334c('0x16')](_0x1fd4f7[_0x334c('0x8')],_0x1fd4f7),this[_0x334c('0x1f')][_0x334c('0x16')](_0x1fd4f7[_0x334c('0x5')],_0x1fd4f7);for(const _0x56616a of _0x1fd4f7[_0x334c('0xb')])this[_0x334c('0x11')][_0x334c('0x0')](_0x56616a);this[_0x334c('0x1')](_0x1fd4f7[_0x334c('0xb')],_0x334c('0x0'),(_0x2eadcd,_0x3737df)=>{this[_0x334c('0x11')][_0x334c('0x0')](_0x3737df);}),this['listenTo'](_0x1fd4f7[_0x334c('0xb')],'remove',(_0x3aec68,_0x2e8035)=>{this[_0x334c('0x11')][_0x334c('0x21')](_0x2e8035);}),this[_0x334c('0x1')](_0x1fd4f7[_0x334c('0x5')][_0x334c('0x10')],_0x334c('0xa'),(_0x4de351,_0x42f8b5,_0x3909ac)=>{_0x3909ac&&this[_0x334c('0x1b')]('focus',_0x1fd4f7);}),_0x1fd4f7[_0x334c('0x20')]();const _0x10a026=this[_0x334c('0x15')](_0x1fd4f7[_0x334c('0x5')][_0x334c('0x3')]);return super['add'](_0x1fd4f7,_0x10a026);}[_0x334c('0x21')](_0x5b270f){if(!this[_0x334c('0x7')](_0x5b270f))throw new _0xfa9830(_0x334c('0x1a'),null);this[_0x334c('0x1c')](_0x5b270f[_0x334c('0x5')][_0x334c('0x10')]),this[_0x334c('0x1c')](_0x5b270f[_0x334c('0xb')]);for(const _0x24fd67 of _0x5b270f[_0x334c('0xb')])this[_0x334c('0x11')][_0x334c('0x21')](_0x24fd67);return this[_0x334c('0x1f')][_0x334c('0x19')](_0x5b270f['view']),this[_0x334c('0x12')][_0x334c('0x19')](_0x5b270f[_0x334c('0x8')]),super['remove'](_0x5b270f);}[_0x334c('0x1e')](_0x22129e){return this[_0x334c('0x12')][_0x334c('0x6')](_0x22129e);}[_0x334c('0x14')](_0x108a64){return this[_0x334c('0x1f')]['get'](_0x108a64);}[_0x334c('0x1d')](){super[_0x334c('0x2')](),this[_0x334c('0x1c')](),this[_0x334c('0x12')][_0x334c('0x2')](),this['_viewToAnnotation']['clear'](),this[_0x334c('0x11')][_0x334c('0x1d')]();}[_0x334c('0x17')](){for(const _0x49c353 of this)_0x49c353[_0x334c('0x20')]();this[_0x334c('0xe')]();}[_0x334c('0xe')](){const _0x50b71e=Array[_0x334c('0x13')](this)['sort']((_0x4c2e6e,_0x1137df)=>v(_0x4c2e6e['view']['targetRect'],_0x1137df[_0x334c('0x5')]['targetRect']));for(let _0x4c6e17=_0x50b71e[_0x334c('0x4')]-0x1;_0x4c6e17>0x0;_0x4c6e17--){const _0x42f5f6=_0x50b71e[_0x4c6e17];_0x4c6e17!==this['getIndex'](_0x42f5f6)&&(this[_0x334c('0x21')](_0x42f5f6),this[_0x334c('0x0')](_0x42f5f6));}}['_getOrderInContent'](_0x30ea12){let _0x45bf8b=0x0;if(!_0x30ea12)return this[_0x334c('0x4')];for(const _0x563529 of this){const _0x3d0b33=_0x563529[_0x334c('0x5')]['targetRect'];if(_0x3d0b33){if(v(_0x30ea12,_0x3d0b33)<0x0)return _0x45bf8b;_0x45bf8b++;}}return _0x45bf8b;}}export function bindAnnotationCollections({source:_0xa448cb,target:_0x54296e,filter:_0x294834}){for(const _0x251e54 of _0xa448cb)_0x294834(_0x251e54)&&_0x54296e[_0x334c('0x0')](_0x251e54);_0x54296e[_0x334c('0x1')](_0xa448cb,_0x334c('0x0'),(_0x38de04,_0x28c267)=>{_0x294834(_0x28c267)&&_0x54296e[_0x334c('0x0')](_0x28c267);}),_0x54296e[_0x334c('0x1')](_0xa448cb,_0x334c('0x21'),(_0x29735c,_0x3990b3)=>{_0x54296e[_0x334c('0x7')](_0x3990b3)&&_0x54296e[_0x334c('0x21')](_0x3990b3);});}function v(_0x2b4997,_0x24a828){if(null===_0x2b4997&&null===_0x24a828)return 0x0;if(null===_0x2b4997)return-0x1;if(null===_0x24a828)return 0x1;const _0x11bfd2=_0x2b4997[_0x334c('0x9')]-_0x24a828[_0x334c('0x9')];return 0x0==_0x11bfd2?_0x2b4997['left']-_0x24a828[_0x334c('0xf')]:_0x11bfd2;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4a9a=['_addActiveAnnotation','element','refreshPositioning','focusTracker','add','deactivateAll','activeAnnotations','_removeActiveAnnotation','stopListening','_deactivateAllAnnotations','has','_visibleAnnotations','isVisible','_activateAnnotation','_bindAnnotationsToVisibleAnnotations','pluginName','collection','fire','refreshVisibility','Annotations','listenTo','getByInnerView','remove','destroy','delete','view','createAnnotationView'];(function(_0x39c730,_0x4a9a34){const _0xce1282=function(_0x4a2146){while(--_0x4a2146){_0x39c730['push'](_0x39c730['shift']());}};_0xce1282(++_0x4a9a34);}(_0x4a9a,0x156));const _0xce12=function(_0x39c730,_0x4a9a34){_0x39c730=_0x39c730-0x0;let _0xce1282=_0x4a9a[_0x39c730];return _0xce1282;};import{ContextPlugin as _0x4bed0a}from'ckeditor5/src/core';import _0x48eaf7 from'./annotation';import _0x10522c from'./annotationcollection';import _0x2d5053 from'./view/annotationview';export default class b extends _0x4bed0a{static get[_0xce12('0x18')](){return _0xce12('0x1');}constructor(_0x586633){super(_0x586633),this['collection']=new _0x10522c(),this[_0xce12('0x14')]=new _0x10522c(),this['set'](_0xce12('0xf'),new Set()),this[_0xce12('0x17')]();}[_0xce12('0xd')](_0xde00a8){this[_0xce12('0x19')][_0xce12('0xd')](_0xde00a8);}[_0xce12('0x4')](_0x1e4885){this[_0xce12('0x19')][_0xce12('0x4')](_0x1e4885),_0x1e4885[_0xce12('0x5')]();}[_0xce12('0x0')](){for(const _0x5df2ef of this[_0xce12('0x19')])_0x5df2ef[_0xce12('0x0')]();}[_0xce12('0xb')](){this[_0xce12('0x14')][_0xce12('0xb')]();}['getByInnerView'](_0x1d8554){return this[_0xce12('0x19')][_0xce12('0x3')](_0x1d8554);}[_0xce12('0xe')](){this[_0xce12('0x1a')](_0xce12('0x12'));}[_0xce12('0x5')](){for(const _0x561f13 of this[_0xce12('0x19')])_0x561f13[_0xce12('0x5')]();this[_0xce12('0x14')][_0xce12('0x5')](),this['collection'][_0xce12('0x5')](),super['destroy']();}['activate'](_0x5def20){this[_0xce12('0x1a')](_0xce12('0x16'),_0x5def20);}['createAnnotation'](_0xf0ef94){return new _0x48eaf7(_0xf0ef94);}[_0xce12('0x8')](_0x328c0b,_0x338ddd){return new _0x2d5053(_0x328c0b,_0x338ddd);}[_0xce12('0x9')](_0x268065){const _0x2fbc97=new Set(this['activeAnnotations']);_0x2fbc97[_0xce12('0xd')](_0x268065),this[_0xce12('0xf')]=_0x2fbc97;}[_0xce12('0x10')](_0x34fa5e){const _0x1644b7=new Set(this[_0xce12('0xf')]);_0x1644b7[_0xce12('0x6')](_0x34fa5e),this['activeAnnotations']=_0x1644b7;}[_0xce12('0x17')](){const _0x1e3a3c=this['collection'],_0x37c2d5=this[_0xce12('0x14')];function _0x2f8051(_0x2d2e41){const _0x6ebd9f=_0x2d2e41['source'];_0x6ebd9f[_0xce12('0x15')]&&!_0x37c2d5[_0xce12('0x13')](_0x6ebd9f)?_0x37c2d5[_0xce12('0xd')](_0x6ebd9f):!_0x6ebd9f[_0xce12('0x15')]&&_0x37c2d5[_0xce12('0x13')](_0x6ebd9f)&&_0x37c2d5['remove'](_0x6ebd9f),_0x6ebd9f[_0xce12('0x7')][_0xce12('0xc')][_0xce12('0x4')](_0x6ebd9f[_0xce12('0x7')]['element']),_0x6ebd9f[_0xce12('0x7')][_0xce12('0xc')][_0xce12('0xd')](_0x6ebd9f[_0xce12('0x7')][_0xce12('0xa')]);}this[_0xce12('0x2')](_0x1e3a3c,'add',(_0x21c56d,_0x323515)=>{_0x323515[_0xce12('0x15')]&&_0x37c2d5[_0xce12('0xd')](_0x323515),this[_0xce12('0x2')](_0x323515,'change:isVisible',_0x2f8051);}),this[_0xce12('0x2')](_0x1e3a3c,_0xce12('0x4'),(_0x2a64ff,_0x10f41a)=>{_0x37c2d5[_0xce12('0x13')](_0x10f41a)&&_0x37c2d5[_0xce12('0x4')](_0x10f41a),this[_0xce12('0x11')](_0x10f41a,'change:isVisible',_0x2f8051);});}}
23
+ const _0x141c=['activeAnnotations','fire','element','getByInnerView','set','Annotations','view','_removeActiveAnnotation','createAnnotationView','listenTo','isVisible','_activateAnnotation','source','focusTracker','_deactivateAllAnnotations','change:isVisible','pluginName','collection','destroy','_visibleAnnotations','refreshVisibility','delete','createAnnotation','refreshPositioning','add','deactivateAll','remove','_bindAnnotationsToVisibleAnnotations','stopListening','has'];(function(_0x404871,_0x141c56){const _0x5d6e4b=function(_0x3fc547){while(--_0x3fc547){_0x404871['push'](_0x404871['shift']());}};_0x5d6e4b(++_0x141c56);}(_0x141c,0x172));const _0x5d6e=function(_0x404871,_0x141c56){_0x404871=_0x404871-0x0;let _0x5d6e4b=_0x141c[_0x404871];return _0x5d6e4b;};import{ContextPlugin as _0x24a870}from'ckeditor5/src/core';import _0x1ab0ed from'./annotation';import _0x4b74bf from'./annotationcollection';import _0x2dfc6e from'./view/annotationview';export default class b extends _0x24a870{static get[_0x5d6e('0x6')](){return _0x5d6e('0x19');}constructor(_0x2c425f){super(_0x2c425f),this[_0x5d6e('0x7')]=new _0x4b74bf(),this[_0x5d6e('0x9')]=new _0x4b74bf(),this[_0x5d6e('0x18')](_0x5d6e('0x14'),new Set()),this['_bindAnnotationsToVisibleAnnotations']();}[_0x5d6e('0xe')](_0x14aa53){this['collection'][_0x5d6e('0xe')](_0x14aa53);}[_0x5d6e('0x10')](_0x245a2b){this[_0x5d6e('0x7')]['remove'](_0x245a2b),_0x245a2b[_0x5d6e('0x8')]();}[_0x5d6e('0xa')](){for(const _0xaa0d0a of this[_0x5d6e('0x7')])_0xaa0d0a['refreshVisibility']();}[_0x5d6e('0xd')](){this[_0x5d6e('0x9')][_0x5d6e('0xd')]();}[_0x5d6e('0x17')](_0x594c94){return this['collection']['getByInnerView'](_0x594c94);}[_0x5d6e('0xf')](){this[_0x5d6e('0x15')](_0x5d6e('0x4'));}['destroy'](){for(const _0x3be715 of this[_0x5d6e('0x7')])_0x3be715['destroy']();this[_0x5d6e('0x9')][_0x5d6e('0x8')](),this['collection'][_0x5d6e('0x8')](),super['destroy']();}['activate'](_0x5b7c69){this[_0x5d6e('0x15')](_0x5d6e('0x1'),_0x5b7c69);}[_0x5d6e('0xc')](_0x525894){return new _0x1ab0ed(_0x525894);}[_0x5d6e('0x1c')](_0x1d34c5,_0xe66999){return new _0x2dfc6e(_0x1d34c5,_0xe66999);}['_addActiveAnnotation'](_0x57305f){const _0xe40f38=new Set(this[_0x5d6e('0x14')]);_0xe40f38[_0x5d6e('0xe')](_0x57305f),this[_0x5d6e('0x14')]=_0xe40f38;}[_0x5d6e('0x1b')](_0x5b3b0e){const _0x2f4bba=new Set(this[_0x5d6e('0x14')]);_0x2f4bba[_0x5d6e('0xb')](_0x5b3b0e),this[_0x5d6e('0x14')]=_0x2f4bba;}[_0x5d6e('0x11')](){const _0x1eb22e=this[_0x5d6e('0x7')],_0x540af9=this[_0x5d6e('0x9')];function _0x10eae3(_0x6b222f){const _0x4450ed=_0x6b222f[_0x5d6e('0x2')];_0x4450ed[_0x5d6e('0x0')]&&!_0x540af9['has'](_0x4450ed)?_0x540af9[_0x5d6e('0xe')](_0x4450ed):!_0x4450ed['isVisible']&&_0x540af9[_0x5d6e('0x13')](_0x4450ed)&&_0x540af9[_0x5d6e('0x10')](_0x4450ed),_0x4450ed[_0x5d6e('0x1a')][_0x5d6e('0x3')][_0x5d6e('0x10')](_0x4450ed['view'][_0x5d6e('0x16')]),_0x4450ed[_0x5d6e('0x1a')][_0x5d6e('0x3')][_0x5d6e('0xe')](_0x4450ed[_0x5d6e('0x1a')][_0x5d6e('0x16')]);}this[_0x5d6e('0x1d')](_0x1eb22e,_0x5d6e('0xe'),(_0x1a3e99,_0x26121c)=>{_0x26121c[_0x5d6e('0x0')]&&_0x540af9[_0x5d6e('0xe')](_0x26121c),this[_0x5d6e('0x1d')](_0x26121c,_0x5d6e('0x5'),_0x10eae3);}),this[_0x5d6e('0x1d')](_0x1eb22e,_0x5d6e('0x10'),(_0x329e6b,_0x3771db)=>{_0x540af9['has'](_0x3771db)&&_0x540af9[_0x5d6e('0x10')](_0x3771db),this[_0x5d6e('0x12')](_0x3771db,_0x5d6e('0x5'),_0x10eae3);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x276c=['activeAnnotations','_setSelectedAnnotations','annotationsuis-annotation-mismatch','pluginName','annotationsuis-missing-ui','activeUIs','init','register','AnnotationsUIs','activate','length','_deactivateAllAnnotations','_assertAnnotationDoesNotBelongToMultipleUIs','requires','type','attach','from','setActiveAnnotation','filter','change:activeAnnotation','destroy','_uis','plugins','function','size','push','set','detach','isActive','_activateAnnotation','remove','_uisData','_removeActiveAnnotation','deactivateAll','context','listenTo','get','deactivate','collection','has','add'];(function(_0x3ed422,_0x276cce){const _0x2e538d=function(_0x3bd1a9){while(--_0x3bd1a9){_0x3ed422['push'](_0x3ed422['shift']());}};_0x2e538d(++_0x276cce);}(_0x276c,0x16c));const _0x2e53=function(_0x3ed422,_0x276cce){_0x3ed422=_0x3ed422-0x0;let _0x2e538d=_0x276c[_0x3ed422];return _0x2e538d;};import{ContextPlugin as _0xd0f2ad}from'ckeditor5/src/core';import{CKEditorError as _0x605783}from'ckeditor5/src/utils';import _0x105222,{bindAnnotationCollections as _0x425eb7}from'./annotationcollection';import _0x42a224 from'./annotations';export default class M extends _0xd0f2ad{static get[_0x2e53('0x12')](){return[_0x42a224];}static get[_0x2e53('0x8')](){return _0x2e53('0xd');}constructor(_0x5a02f0){super(_0x5a02f0),this['activeUIs']=new Set(),this[_0x2e53('0x1a')]=new Map(),this[_0x2e53('0x24')]=new Map();}[_0x2e53('0xb')](){const _0x2cdb1a=this['context']['plugins'][_0x2e53('0x0')](_0x42a224);this[_0x2e53('0x28')](_0x2cdb1a,_0x2e53('0x22'),(_0xf665b2,_0x97ec75)=>{for(const _0x85de7a of this[_0x2e53('0xa')]){const _0x187ed8=this[_0x2e53('0x1a')][_0x2e53('0x0')](_0x85de7a);(0x0,this[_0x2e53('0x24')][_0x2e53('0x0')](_0x85de7a)[_0x2e53('0x17')])(_0x97ec75)&&_0x187ed8[_0x2e53('0x16')](_0x97ec75);}}),this[_0x2e53('0x28')](_0x2cdb1a,_0x2e53('0x10'),()=>{for(const _0x28b5ce of this['activeUIs']){this[_0x2e53('0x1a')][_0x2e53('0x0')](_0x28b5ce)[_0x2e53('0x16')](null);}}),this['listenTo'](_0x2cdb1a['_visibleAnnotations'],'add',(_0x17c106,_0x1ec257)=>{this[_0x2e53('0x11')](_0x1ec257);});}['hasActive'](){return this['activeUIs'][_0x2e53('0x1d')]>0x0;}['isActive'](_0x26ee73){return this[_0x2e53('0xa')][_0x2e53('0x3')](_0x26ee73);}[_0x2e53('0xe')](_0x4a88e6,_0x575fff=()=>!0x0){const _0x2ee4dc=this[_0x2e53('0x27')][_0x2e53('0x1b')][_0x2e53('0x0')](_0x42a224);if(!this[_0x2e53('0x1a')][_0x2e53('0x3')](_0x4a88e6))throw new _0x605783(_0x2e53('0x9'),this,{'uiName':_0x4a88e6});this[_0x2e53('0x21')](_0x4a88e6)&&this[_0x2e53('0x1')](_0x4a88e6),this[_0x2e53('0xa')][_0x2e53('0x4')](_0x4a88e6);const _0x585d26=new _0x105222(),_0x164dcb=_0x2ee4dc['_visibleAnnotations'];_0x425eb7({'source':_0x164dcb,'target':_0x585d26,'filter':_0x575fff}),this[_0x2e53('0x24')]['set'](_0x4a88e6,{'collection':_0x585d26,'filter':_0x575fff});const _0xa8d852=this[_0x2e53('0x1a')][_0x2e53('0x0')](_0x4a88e6);_0xa8d852[_0x2e53('0x14')](_0x585d26),this[_0x2e53('0x28')](_0xa8d852,_0x2e53('0x18'),(_0x3c3d1b,_0x141e38,_0x1d5e75,_0xe325f2)=>{_0xe325f2&&_0x2ee4dc[_0x2e53('0x25')](_0xe325f2),_0x1d5e75&&_0x2ee4dc['_addActiveAnnotation'](_0x1d5e75);});}['deactivate'](_0x552857){if(this['activeUIs']['delete'](_0x552857),!this['_uis'][_0x2e53('0x3')](_0x552857))throw new _0x605783(_0x2e53('0x9'),this,{'uiName':_0x552857});const _0x39ac62=this[_0x2e53('0x1a')][_0x2e53('0x0')](_0x552857);_0x39ac62[_0x2e53('0x20')](),this['stopListening'](_0x39ac62),this[_0x2e53('0x24')][_0x2e53('0x0')](_0x552857)[_0x2e53('0x2')][_0x2e53('0x19')](),this[_0x2e53('0x24')]['delete'](_0x552857);}['switchTo'](_0x223222){if(!this[_0x2e53('0x1a')][_0x2e53('0x3')](_0x223222))throw new _0x605783(_0x2e53('0x9'),this,{'uiName':_0x223222});const _0x5ccb45=this[_0x2e53('0x27')][_0x2e53('0x1b')][_0x2e53('0x0')](_0x42a224),_0x580045=Array[_0x2e53('0x15')](_0x5ccb45[_0x2e53('0x5')])[0x0]||null;this['deactivateAll'](),this[_0x2e53('0xe')](_0x223222);const _0x18fd4b=this[_0x2e53('0x1a')][_0x2e53('0x0')](_0x223222);_0x18fd4b[_0x2e53('0x16')](_0x580045),_0x18fd4b[_0x2e53('0x6')]&&_0x580045&&_0x18fd4b[_0x2e53('0x6')]([_0x580045]);}['deactivateAll'](){for(const _0x190c52 of this[_0x2e53('0xa')])this['deactivate'](_0x190c52);}[_0x2e53('0xc')](_0x2b8b01,_0x32042f){if(this[_0x2e53('0x1a')]['has'](_0x2b8b01))throw new _0x605783('annotationsuis-register-already-registered');if(_0x2e53('0x1c')!=typeof _0x32042f[_0x2e53('0x14')]||_0x2e53('0x1c')!=typeof _0x32042f[_0x2e53('0x20')]||_0x2e53('0x1c')!=typeof _0x32042f[_0x2e53('0x16')])throw new _0x605783('annotationsuis-register-invalid-interface',null);this[_0x2e53('0x1a')][_0x2e53('0x1f')](_0x2b8b01,_0x32042f);}['refilterAnnotations'](){const _0x2cfe37=this[_0x2e53('0x27')][_0x2e53('0x1b')][_0x2e53('0x0')](_0x42a224)[_0x2e53('0x2')],_0x44875c=new Map(),_0x1764d2=Array['from'](this['activeUIs']);for(const _0x221607 of this[_0x2e53('0xa')]){const _0x50462d=this[_0x2e53('0x24')]['get'](_0x221607)[_0x2e53('0x2')];for(const _0x57672e of _0x50462d)_0x44875c[_0x2e53('0x1f')](_0x57672e,_0x221607);}for(const _0xb045b7 of _0x2cfe37){const _0x15f441=_0x44875c[_0x2e53('0x0')](_0xb045b7);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0xb045b7);const _0x38f6e7=_0x1764d2['find'](_0x5cf4ad=>this[_0x2e53('0x24')][_0x2e53('0x0')](_0x5cf4ad)[_0x2e53('0x17')](_0xb045b7));_0x15f441!==_0x38f6e7&&(_0x15f441&&this[_0x2e53('0x24')]['get'](_0x15f441)['collection'][_0x2e53('0x23')](_0xb045b7),_0x38f6e7&&this['_uisData'][_0x2e53('0x0')](_0x38f6e7)[_0x2e53('0x2')][_0x2e53('0x4')](_0xb045b7));}}[_0x2e53('0x19')](){this[_0x2e53('0x26')](),super[_0x2e53('0x19')]();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x4f0f9c){const _0x2785fe=[];for(const _0x3055d1 of this[_0x2e53('0xa')]){(0x0,this['_uisData'][_0x2e53('0x0')](_0x3055d1)[_0x2e53('0x17')])(_0x4f0f9c)&&_0x2785fe[_0x2e53('0x1e')](_0x3055d1);}if(_0x2785fe[_0x2e53('0xf')]>0x1)throw new _0x605783(_0x2e53('0x7'),null,{'matchedUIs':_0x2785fe,'annotationType':_0x4f0f9c[_0x2e53('0x13')]});}}
23
+ const _0x18ce=['_uis','_activateAnnotation','annotationsuis-annotation-mismatch','refilterAnnotations','plugins','register','function','detach','push','set','activate','annotationsuis-register-already-registered','AnnotationsUIs','has','_visibleAnnotations','type','remove','stopListening','change:activeAnnotation','from','context','_assertAnnotationDoesNotBelongToMultipleUIs','deactivateAll','destroy','add','delete','filter','_removeActiveAnnotation','pluginName','annotationsuis-register-invalid-interface','switchTo','_uisData','listenTo','find','collection','size','activeUIs','deactivate','setActiveAnnotation','get','attach','hasActive','annotationsuis-missing-ui','isActive'];(function(_0x3ceec7,_0x18ceff){const _0x4fc3df=function(_0x1b179e){while(--_0x1b179e){_0x3ceec7['push'](_0x3ceec7['shift']());}};_0x4fc3df(++_0x18ceff);}(_0x18ce,0x164));const _0x4fc3=function(_0x3ceec7,_0x18ceff){_0x3ceec7=_0x3ceec7-0x0;let _0x4fc3df=_0x18ce[_0x3ceec7];return _0x4fc3df;};import{ContextPlugin as _0x3dd35d}from'ckeditor5/src/core';import{CKEditorError as _0xef07ad}from'ckeditor5/src/utils';import _0x55e160,{bindAnnotationCollections as _0x539ac7}from'./annotationcollection';import _0x332424 from'./annotations';export default class M extends _0x3dd35d{static get['requires'](){return[_0x332424];}static get[_0x4fc3('0x18')](){return _0x4fc3('0x8');}constructor(_0x2abbe3){super(_0x2abbe3),this['activeUIs']=new Set(),this[_0x4fc3('0x28')]=new Map(),this[_0x4fc3('0x1b')]=new Map();}['init'](){const _0x2a7f77=this[_0x4fc3('0x10')][_0x4fc3('0x0')]['get'](_0x332424);this[_0x4fc3('0x1c')](_0x2a7f77,_0x4fc3('0x29'),(_0x34d851,_0x17fe9a)=>{for(const _0x260cfd of this[_0x4fc3('0x20')]){const _0x58896b=this[_0x4fc3('0x28')][_0x4fc3('0x23')](_0x260cfd);(0x0,this['_uisData']['get'](_0x260cfd)[_0x4fc3('0x16')])(_0x17fe9a)&&_0x58896b['setActiveAnnotation'](_0x17fe9a);}}),this['listenTo'](_0x2a7f77,'_deactivateAllAnnotations',()=>{for(const _0x324b12 of this[_0x4fc3('0x20')]){this[_0x4fc3('0x28')][_0x4fc3('0x23')](_0x324b12)[_0x4fc3('0x22')](null);}}),this[_0x4fc3('0x1c')](_0x2a7f77[_0x4fc3('0xa')],'add',(_0x1d661b,_0xf2f212)=>{this[_0x4fc3('0x11')](_0xf2f212);});}[_0x4fc3('0x25')](){return this['activeUIs'][_0x4fc3('0x1f')]>0x0;}[_0x4fc3('0x27')](_0x896f77){return this['activeUIs']['has'](_0x896f77);}['activate'](_0x18a437,_0x4fb17f=()=>!0x0){const _0x39aa6b=this[_0x4fc3('0x10')]['plugins']['get'](_0x332424);if(!this['_uis'][_0x4fc3('0x9')](_0x18a437))throw new _0xef07ad(_0x4fc3('0x26'),this,{'uiName':_0x18a437});this[_0x4fc3('0x27')](_0x18a437)&&this[_0x4fc3('0x21')](_0x18a437),this['activeUIs'][_0x4fc3('0x14')](_0x18a437);const _0x5cb932=new _0x55e160(),_0x399b41=_0x39aa6b['_visibleAnnotations'];_0x539ac7({'source':_0x399b41,'target':_0x5cb932,'filter':_0x4fb17f}),this[_0x4fc3('0x1b')][_0x4fc3('0x5')](_0x18a437,{'collection':_0x5cb932,'filter':_0x4fb17f});const _0x44c05c=this[_0x4fc3('0x28')][_0x4fc3('0x23')](_0x18a437);_0x44c05c[_0x4fc3('0x24')](_0x5cb932),this[_0x4fc3('0x1c')](_0x44c05c,_0x4fc3('0xe'),(_0x457512,_0x21d469,_0x41d37e,_0x3da762)=>{_0x3da762&&_0x39aa6b[_0x4fc3('0x17')](_0x3da762),_0x41d37e&&_0x39aa6b['_addActiveAnnotation'](_0x41d37e);});}['deactivate'](_0xd71982){if(this[_0x4fc3('0x20')][_0x4fc3('0x15')](_0xd71982),!this['_uis'][_0x4fc3('0x9')](_0xd71982))throw new _0xef07ad('annotationsuis-missing-ui',this,{'uiName':_0xd71982});const _0x1d268f=this[_0x4fc3('0x28')][_0x4fc3('0x23')](_0xd71982);_0x1d268f['detach'](),this[_0x4fc3('0xd')](_0x1d268f),this[_0x4fc3('0x1b')][_0x4fc3('0x23')](_0xd71982)[_0x4fc3('0x1e')]['destroy'](),this[_0x4fc3('0x1b')][_0x4fc3('0x15')](_0xd71982);}[_0x4fc3('0x1a')](_0x13ce6e){if(!this[_0x4fc3('0x28')][_0x4fc3('0x9')](_0x13ce6e))throw new _0xef07ad('annotationsuis-missing-ui',this,{'uiName':_0x13ce6e});const _0x503028=this['context'][_0x4fc3('0x0')][_0x4fc3('0x23')](_0x332424),_0x24fed1=Array[_0x4fc3('0xf')](_0x503028['activeAnnotations'])[0x0]||null;this[_0x4fc3('0x12')](),this[_0x4fc3('0x6')](_0x13ce6e);const _0x28db9b=this[_0x4fc3('0x28')][_0x4fc3('0x23')](_0x13ce6e);_0x28db9b[_0x4fc3('0x22')](_0x24fed1),_0x28db9b['_setSelectedAnnotations']&&_0x24fed1&&_0x28db9b['_setSelectedAnnotations']([_0x24fed1]);}['deactivateAll'](){for(const _0x4bec22 of this[_0x4fc3('0x20')])this[_0x4fc3('0x21')](_0x4bec22);}[_0x4fc3('0x1')](_0x468ab6,_0x5509f5){if(this[_0x4fc3('0x28')]['has'](_0x468ab6))throw new _0xef07ad(_0x4fc3('0x7'));if(_0x4fc3('0x2')!=typeof _0x5509f5['attach']||'function'!=typeof _0x5509f5[_0x4fc3('0x3')]||_0x4fc3('0x2')!=typeof _0x5509f5[_0x4fc3('0x22')])throw new _0xef07ad(_0x4fc3('0x19'),null);this[_0x4fc3('0x28')]['set'](_0x468ab6,_0x5509f5);}[_0x4fc3('0x2b')](){const _0x20cba2=this['context'][_0x4fc3('0x0')]['get'](_0x332424)[_0x4fc3('0x1e')],_0x1fd0d0=new Map(),_0x47e7b7=Array[_0x4fc3('0xf')](this[_0x4fc3('0x20')]);for(const _0x16efdf of this[_0x4fc3('0x20')]){const _0x411977=this['_uisData']['get'](_0x16efdf)['collection'];for(const _0x33058c of _0x411977)_0x1fd0d0['set'](_0x33058c,_0x16efdf);}for(const _0x1ccb1a of _0x20cba2){const _0x5c1b14=_0x1fd0d0[_0x4fc3('0x23')](_0x1ccb1a);this[_0x4fc3('0x11')](_0x1ccb1a);const _0x2143af=_0x47e7b7[_0x4fc3('0x1d')](_0x489f64=>this[_0x4fc3('0x1b')][_0x4fc3('0x23')](_0x489f64)[_0x4fc3('0x16')](_0x1ccb1a));_0x5c1b14!==_0x2143af&&(_0x5c1b14&&this[_0x4fc3('0x1b')][_0x4fc3('0x23')](_0x5c1b14)[_0x4fc3('0x1e')][_0x4fc3('0xc')](_0x1ccb1a),_0x2143af&&this['_uisData'][_0x4fc3('0x23')](_0x2143af)[_0x4fc3('0x1e')][_0x4fc3('0x14')](_0x1ccb1a));}}[_0x4fc3('0x13')](){this[_0x4fc3('0x12')](),super[_0x4fc3('0x13')]();}[_0x4fc3('0x11')](_0x497177){const _0x2fc6c7=[];for(const _0x5d9fec of this[_0x4fc3('0x20')]){(0x0,this[_0x4fc3('0x1b')][_0x4fc3('0x23')](_0x5d9fec)[_0x4fc3('0x16')])(_0x497177)&&_0x2fc6c7[_0x4fc3('0x4')](_0x5d9fec);}if(_0x2fc6c7['length']>0x1)throw new _0xef07ad(_0x4fc3('0x2a'),null,{'matchedUIs':_0x2fc6c7,'annotationType':_0x497177[_0x4fc3('0xb')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1f4e=['containsRange','directChange','addSourceCollector','_editorAnnotationsData','view','_editorAnnotations','cancel','element','innerView','editor','plugins','init','editorannotations-invalid-source-callback','add','range','document','_dataCollectors','listenTo','uiUpdate','change:range','selection','fire','remove','set','refresh','sort','annotation','focusTracker','registerAnnotation','pluginName','delete','get','has','getRanges','change:isFocused','model','update','collection','refreshSelectedViews','hasDomSelection','getOrderedSelectedAnnotations','push'];(function(_0x3ff90e,_0x1f4ede){const _0x3170a9=function(_0x3d225a){while(--_0x3d225a){_0x3ff90e['push'](_0x3ff90e['shift']());}};_0x3170a9(++_0x1f4ede);}(_0x1f4e,0x170));const _0x3170=function(_0x3ff90e,_0x1f4ede){_0x3ff90e=_0x3ff90e-0x0;let _0x3170a9=_0x1f4e[_0x3ff90e];return _0x3170a9;};import{Plugin as _0x2d3ff5}from'ckeditor5/src/core';import{CKEditorError as _0x3e0620}from'ckeditor5/src/utils';import{debounce as _0x282d49}from'lodash-es';import _0x31221d from'./annotations';export default class k extends _0x2d3ff5{static get['requires'](){return[_0x31221d];}static get[_0x3170('0x27')](){return'EditorAnnotations';}constructor(_0x338a4c){super(_0x338a4c),this[_0x3170('0x1a')]=new Set(),this[_0x3170('0xf')]=new Set();}[_0x3170('0x15')](){const _0x5a7615=this[_0x3170('0x13')],_0x84f0e2=_0x5a7615[_0x3170('0x3')][_0x3170('0x19')][_0x3170('0x1e')],_0x594d71=_0x282d49(()=>this[_0x3170('0x6')](),0xa);_0x84f0e2['on'](_0x3170('0x1d'),(_0x512da2,_0x474afa)=>{_0x474afa[_0x3170('0xb')]&&(_0x594d71[_0x3170('0x10')](),this[_0x3170('0x6')]());}),this[_0x3170('0x1b')](_0x5a7615['editing'][_0x3170('0xe')][_0x3170('0x19')],_0x3170('0x2'),(_0x114b8b,_0x20bdc9,_0x1969ba)=>{_0x1969ba&&_0x594d71();}),this['listenTo'](_0x5a7615['ui'][_0x3170('0x25')],_0x3170('0x2'),(_0xa2b38c,_0x2d7b7b,_0x1aaac1)=>{_0x1aaac1||_0x5a7615['isReadOnly']||this[_0x3170('0x1f')]('blur',{'isAnnotationTracked':_0x3da138=>this[_0x3170('0xd')][_0x3170('0x0')](_0x3da138[_0x3170('0x12')])});}),this['listenTo'](this[_0x3170('0x13')]['ui'],_0x3170('0x4'),()=>this[_0x3170('0x1f')](_0x3170('0x1c')));}[_0x3170('0x26')](_0x3bdf32){if(this[_0x3170('0xf')][_0x3170('0x0')](_0x3bdf32[_0x3170('0xe')]))return;this[_0x3170('0xf')][_0x3170('0x17')](_0x3bdf32['view']),this['editor']['ui']['focusTracker'][_0x3170('0x17')](_0x3bdf32[_0x3170('0xe')]['element']);const _0x33c181=this['editor'][_0x3170('0x14')][_0x3170('0x29')](_0x31221d);this[_0x3170('0x1b')](_0x33c181[_0x3170('0x5')],'remove',(_0x465a12,_0x20fa9e)=>{this[_0x3170('0x13')]['ui'][_0x3170('0x25')][_0x3170('0x20')](_0x20fa9e['view'][_0x3170('0x11')]),this['_editorAnnotations'][_0x3170('0x28')](_0x20fa9e[_0x3170('0xe')]);});}[_0x3170('0x7')](){return this[_0x3170('0x13')]['editing']['view'][_0x3170('0x7')];}[_0x3170('0xc')](_0x5c741e){if('function'!=typeof _0x5c741e)throw new _0x3e0620(_0x3170('0x16'));this[_0x3170('0x1a')]['add'](_0x5c741e);}['refreshSelectedViews'](){this[_0x3170('0x1f')](_0x3170('0x22'));}[_0x3170('0x8')]({activeAnnotation:_0x5ddcec,annotations:_0x5529a8}){const _0x23a0f5=[],_0x515802=this[_0x3170('0x13')][_0x3170('0x3')]['document'][_0x3170('0x1e')],_0x40771e=Array['from'](_0x515802[_0x3170('0x1')]());for(const [_0x2598b2,_0x190250]of this[_0x3170('0xd')]){const _0x1279e7=_0x2786fc(_0x190250),_0x1e1157=_0x5529a8['getByInnerView'](_0x2598b2);_0x1279e7&&_0x1e1157&&_0x23a0f5[_0x3170('0x9')]({'annotation':_0x1e1157,'range':_0x1279e7});}function _0x2786fc(_0x853f5){for(const _0xc0db83 of _0x853f5)for(const _0x396e3b of _0x40771e)if(_0xc0db83['containsRange'](_0x396e3b,!_0x515802['isCollapsed']))return _0xc0db83;return null;}return _0x23a0f5[_0x3170('0x23')]((_0xa2b4b3,_0x12769d)=>{const _0x346122=_0xa2b4b3[_0x3170('0x18')],_0x2e473a=_0x12769d[_0x3170('0x18')];if(!_0x346122['isEqual'](_0x2e473a)){if(_0x346122[_0x3170('0xa')](_0x2e473a,!0x0))return 0x1;if(_0x2e473a[_0x3170('0xa')](_0x346122,!0x0))return-0x1;}return _0xa2b4b3[_0x3170('0x24')]==_0x5ddcec?-0x1:_0x12769d[_0x3170('0x24')]==_0x5ddcec?0x1:0x0;})['map'](_0x5f543a=>_0x5f543a['annotation']);}get['_editorAnnotationsData'](){const _0x48d0df=new Map();for(const _0x491184 of Array['from'](this[_0x3170('0x1a')]))for(const [_0x1dfb0c,_0x343f52]of _0x491184())_0x48d0df[_0x3170('0x21')](_0x1dfb0c,_0x343f52);return _0x48d0df;}}
23
+ const _0x30f1=['containsRange','hasDomSelection','requires','collection','fire','init','remove','selection','add','_editorAnnotationsData','editor','cancel','listenTo','editing','document','from','focusTracker','isEqual','registerAnnotation','_editorAnnotations','sort','uiUpdate','map','change:range','get','getOrderedSelectedAnnotations','EditorAnnotations','element','change:isFocused','pluginName','isCollapsed','isReadOnly','range','model','addSourceCollector','annotation','set','plugins','editorannotations-invalid-source-callback','_dataCollectors','view','refreshSelectedViews','delete'];(function(_0x2f2b2b,_0x30f1eb){const _0x545583=function(_0x4bf4ad){while(--_0x4bf4ad){_0x2f2b2b['push'](_0x2f2b2b['shift']());}};_0x545583(++_0x30f1eb);}(_0x30f1,0x12a));const _0x5455=function(_0x2f2b2b,_0x30f1eb){_0x2f2b2b=_0x2f2b2b-0x0;let _0x545583=_0x30f1[_0x2f2b2b];return _0x545583;};import{Plugin as _0x5cc5b1}from'ckeditor5/src/core';import{CKEditorError as _0x247fb2}from'ckeditor5/src/utils';import{debounce as _0x589c59}from'lodash-es';import _0x50d1f1 from'./annotations';export default class k extends _0x5cc5b1{static get[_0x5455('0x5')](){return[_0x50d1f1];}static get[_0x5455('0x20')](){return _0x5455('0x1d');}constructor(_0x43e25d){super(_0x43e25d),this['_dataCollectors']=new Set(),this[_0x5455('0x16')]=new Set();}[_0x5455('0x8')](){const _0x318be1=this[_0x5455('0xd')],_0x48bacb=_0x318be1[_0x5455('0x24')][_0x5455('0x11')]['selection'],_0xdd8ba8=_0x589c59(()=>this[_0x5455('0x1')](),0xa);_0x48bacb['on'](_0x5455('0x1a'),(_0x1b2626,_0x3ab411)=>{_0x3ab411['directChange']&&(_0xdd8ba8[_0x5455('0xe')](),this['refreshSelectedViews']());}),this[_0x5455('0xf')](_0x318be1[_0x5455('0x10')][_0x5455('0x0')][_0x5455('0x11')],'change:isFocused',(_0x17ea72,_0x58d5b9,_0x2c7c48)=>{_0x2c7c48&&_0xdd8ba8();}),this[_0x5455('0xf')](_0x318be1['ui']['focusTracker'],_0x5455('0x1f'),(_0x53de9b,_0x2a9563,_0x160e88)=>{_0x160e88||_0x318be1[_0x5455('0x22')]||this['fire']('blur',{'isAnnotationTracked':_0x56657c=>this['_editorAnnotationsData']['has'](_0x56657c['innerView'])});}),this[_0x5455('0xf')](this[_0x5455('0xd')]['ui'],'update',()=>this[_0x5455('0x7')](_0x5455('0x18')));}[_0x5455('0x15')](_0x4794a7){if(this[_0x5455('0x16')]['has'](_0x4794a7[_0x5455('0x0')]))return;this['_editorAnnotations'][_0x5455('0xb')](_0x4794a7['view']),this[_0x5455('0xd')]['ui'][_0x5455('0x13')]['add'](_0x4794a7[_0x5455('0x0')][_0x5455('0x1e')]);const _0x3bbc72=this[_0x5455('0xd')][_0x5455('0x28')][_0x5455('0x1b')](_0x50d1f1);this[_0x5455('0xf')](_0x3bbc72[_0x5455('0x6')],_0x5455('0x9'),(_0xab2e57,_0x3ac012)=>{this[_0x5455('0xd')]['ui'][_0x5455('0x13')][_0x5455('0x9')](_0x3ac012[_0x5455('0x0')][_0x5455('0x1e')]),this[_0x5455('0x16')][_0x5455('0x2')](_0x3ac012[_0x5455('0x0')]);});}[_0x5455('0x4')](){return this[_0x5455('0xd')][_0x5455('0x10')][_0x5455('0x0')]['hasDomSelection'];}[_0x5455('0x25')](_0x743ef5){if('function'!=typeof _0x743ef5)throw new _0x247fb2(_0x5455('0x29'));this[_0x5455('0x2a')]['add'](_0x743ef5);}[_0x5455('0x1')](){this[_0x5455('0x7')]('refresh');}[_0x5455('0x1c')]({activeAnnotation:_0x2a79a6,annotations:_0x2bdbbf}){const _0x4c4741=[],_0x1b08dc=this[_0x5455('0xd')][_0x5455('0x24')]['document'][_0x5455('0xa')],_0x84900a=Array[_0x5455('0x12')](_0x1b08dc['getRanges']());for(const [_0x1cc20b,_0x565da2]of this['_editorAnnotationsData']){const _0x23f471=_0xa043a6(_0x565da2),_0x2d2d08=_0x2bdbbf['getByInnerView'](_0x1cc20b);_0x23f471&&_0x2d2d08&&_0x4c4741['push']({'annotation':_0x2d2d08,'range':_0x23f471});}function _0xa043a6(_0x4a00a5){for(const _0x23bedf of _0x4a00a5)for(const _0x10942d of _0x84900a)if(_0x23bedf['containsRange'](_0x10942d,!_0x1b08dc[_0x5455('0x21')]))return _0x23bedf;return null;}return _0x4c4741[_0x5455('0x17')]((_0x39ef57,_0x30bfde)=>{const _0x1f3e51=_0x39ef57[_0x5455('0x23')],_0x5ea2bf=_0x30bfde['range'];if(!_0x1f3e51[_0x5455('0x14')](_0x5ea2bf)){if(_0x1f3e51[_0x5455('0x3')](_0x5ea2bf,!0x0))return 0x1;if(_0x5ea2bf[_0x5455('0x3')](_0x1f3e51,!0x0))return-0x1;}return _0x39ef57['annotation']==_0x2a79a6?-0x1:_0x30bfde[_0x5455('0x26')]==_0x2a79a6?0x1:0x0;})[_0x5455('0x19')](_0x55d5c7=>_0x55d5c7[_0x5455('0x26')]);}get[_0x5455('0xc')](){const _0x2099de=new Map();for(const _0x5a9671 of Array[_0x5455('0x12')](this['_dataCollectors']))for(const [_0x449ad7,_0x25d2cc]of _0x5a9671())_0x2099de[_0x5455('0x27')](_0x449ad7,_0x25d2cc);return _0x2099de;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xa944=['top','visibleView','pluginName','context','bottom','fromRect','isAttached','_manuallyClosed','hasActive','isFocused','refresh','remove','blur','editing','inlineannotations-attach-already-attached','find','document','change:visibleView','_addedAnnotations','set','focus','from','right','target','push','domConverter','view','delete','hasView','targetRect','selection','map','detach','Esc','switchTo','getBoundingClientRect','showStack','change:height','_removeAnnotationFromBalloon','_getBalloonTargetForAnnotation','stopListening','_addAnnotationToBalloon','listenTo','updatePosition','length','focusTracker','annotations','attach','plugins','get','isActive','add','keystrokes','addObserver','getFirstRange','_selectedAnnotations','getByView','_closeAnnotation','activeAnnotation','mousedown','_setSelectedAnnotations','collapse','viewRangeToDom','inlineannotations-not-allowed-with-context','destroy','_forceRefresh','setActiveAnnotation','includes','has','clear','InlineAnnotations','inline','left','_balloon','editor'];(function(_0x9b12f6,_0xa944c){const _0x3255ae=function(_0x4447bf){while(--_0x4447bf){_0x9b12f6['push'](_0x9b12f6['shift']());}};_0x3255ae(++_0xa944c);}(_0xa944,0x8c));const _0x3255=function(_0x9b12f6,_0xa944c){_0x9b12f6=_0x9b12f6-0x0;let _0x3255ae=_0xa944[_0x9b12f6];return _0x3255ae;};import{Plugin as _0x533c0a}from'ckeditor5/src/core';import _0x5e3285 from'./annotationsuis';import _0x430833 from'./editorannotations';import{ContextualBalloon as _0xaca26c}from'ckeditor5/src/ui';import{MouseObserver as _0x40ee87}from'ckeditor5/src/engine';import{CKEditorError as _0x1fab7c,Rect as _0x127c5b}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x533c0a{static get['requires'](){return[_0x430833,_0xaca26c,_0x5e3285];}static get[_0x3255('0xc')](){return _0x3255('0x5');}constructor(_0x7c3830){super(_0x7c3830),_0x7c3830['editing'][_0x3255('0x24')][_0x3255('0x3f')](_0x40ee87),this[_0x3255('0x10')]=!0x1,this[_0x3255('0x1d')]('activeAnnotation',null),this[_0x3255('0x38')]=null,this[_0x3255('0x11')]=new Set(),this['_balloon']=_0x7c3830[_0x3255('0x3a')][_0x3255('0x3b')](_0xaca26c),this[_0x3255('0x1c')]=new Set(),this[_0x3255('0x41')]=[],this[_0x3255('0x0')]=!0x1;}['init'](){const _0x20be0c=this[_0x3255('0x9')][_0x3255('0x3a')][_0x3255('0x3b')](_0x5e3285);_0x20be0c[_0x3255('0xd')]===this[_0x3255('0x9')]&&(_0x20be0c['register']('inline',this),this[_0x3255('0x9')][_0x3255('0x3e')][_0x3255('0x1d')](_0x3255('0x2b'),(_0x58c6cf,_0x316678)=>{const _0x369060=this[_0x3255('0x8')];if(this[_0x3255('0x10')]&&_0x369060[_0x3255('0xb')]){const _0x219022=this[_0x3255('0x38')][_0x3255('0x42')](_0x369060[_0x3255('0xb')]);_0x219022&&this[_0x3255('0x43')](_0x219022),_0x316678();}}));}['afterInit'](){const _0x142cdc=this[_0x3255('0x9')][_0x3255('0x3a')][_0x3255('0x3b')](_0x5e3285);_0x142cdc[_0x3255('0xd')]===this['editor']&&(_0x142cdc[_0x3255('0x12')]()||_0x142cdc[_0x3255('0x2c')](_0x3255('0x6')));}[_0x3255('0x1')](_0x28e0a7){_0x28e0a7!==this[_0x3255('0x44')]&&(this['activeAnnotation']&&(this[_0x3255('0x44')][_0x3255('0x3c')]=!0x1),_0x28e0a7&&this[_0x3255('0x9')]['ui']['focusTracker'][_0x3255('0x13')]&&(this[_0x3255('0x38')]['has'](_0x28e0a7)&&this[_0x3255('0x33')](_0x28e0a7,!0x0),_0x28e0a7['isActive']=!0x0),_0x28e0a7||this[_0x3255('0x46')]([]),this[_0x3255('0x44')]=_0x28e0a7);}[_0x3255('0x39')](_0xc328ad){this[_0x3255('0x38')]=_0xc328ad;const _0x15aeec=this[_0x3255('0x9')][_0x3255('0x3a')][_0x3255('0x3b')](_0x5e3285),_0x2168c2=this['_balloon'];if(this[_0x3255('0x10')])throw new _0x1fab7c(_0x3255('0x18'),this);if(_0x15aeec[_0x3255('0xd')]!==this[_0x3255('0x9')])throw new _0x1fab7c(_0x3255('0x49'),this);const _0x2d08e7=this[_0x3255('0x9')]['plugins'][_0x3255('0x3b')](_0x430833);this['listenTo'](_0x2d08e7,_0x3255('0x14'),()=>{const _0x5527c7=_0x2d08e7['getOrderedSelectedAnnotations']({'annotations':this[_0x3255('0x38')],'activeAnnotation':this['activeAnnotation']});var _0x19779f,_0x2e5c39;!this[_0x3255('0x0')]&&(_0x19779f=_0x5527c7,_0x2e5c39=this[_0x3255('0x41')],_0x19779f['length']===_0x2e5c39[_0x3255('0x36')]&&_0x19779f['every'](_0x25ae91=>_0x2e5c39[_0x3255('0x2')](_0x25ae91)))||(this[_0x3255('0x0')]=!0x1,this[_0x3255('0x46')](_0x5527c7),this[_0x3255('0x1')](_0x5527c7[0x0]||null));}),this[_0x3255('0x34')](_0x2d08e7,_0x3255('0x16'),(_0x33dd8c,{isAnnotationTracked:_0xac0f12})=>{this[_0x3255('0x44')]&&_0xac0f12(this[_0x3255('0x44')])&&(this['_setSelectedAnnotations']([]),this[_0x3255('0x1')](null));}),this['listenTo'](this['editor']['ui'][_0x3255('0x37')],'change:isFocused',(_0x5540aa,_0x41ff8e,_0x52382c)=>{_0x52382c||this[_0x3255('0x1')](null);}),this[_0x3255('0x34')](_0xc328ad,_0x3255('0x15'),(_0x5bc4b5,_0x91b7f5)=>{this[_0x3255('0x30')](_0x91b7f5),_0x91b7f5===this['activeAnnotation']&&this[_0x3255('0x1')](null);}),this[_0x3255('0x34')](_0x2168c2,_0x3255('0x1b'),(_0x100a86,_0x4daf89,_0x3303a0,_0x2030fc)=>{_0x2030fc&&this[_0x3255('0x32')](_0x2030fc);const _0x3296f7=_0xc328ad[_0x3255('0x42')](_0x3303a0);_0x3303a0&&_0x3296f7&&(this[_0x3255('0x34')](_0x3303a0,_0x3255('0x2f'),()=>{_0x2168c2[_0x3255('0x35')]();}),this[_0x3255('0x34')](_0x3303a0,_0x3255('0x2b'),()=>{this[_0x3255('0x43')](_0x3296f7),this[_0x3255('0x9')][_0x3255('0x17')]['view']['focus']();}),this[_0x3255('0x44')]!==_0x3296f7&&this[_0x3255('0x1')](_0x3296f7));}),this[_0x3255('0x34')](this[_0x3255('0x9')]['ui'],'update',()=>{_0x2168c2[_0x3255('0xb')]&&(_0xc328ad[_0x3255('0x42')](_0x2168c2[_0x3255('0xb')])&&_0x2168c2['updatePosition']());}),this[_0x3255('0x34')](this[_0x3255('0x9')]['editing'][_0x3255('0x24')]['document'],_0x3255('0x45'),()=>{this[_0x3255('0x0')]=!0x0,this['_manuallyClosed'][_0x3255('0x4')]();}),this['editor']['editing']['view'][_0x3255('0x1a')][_0x3255('0x28')]['editableElement']&&this[_0x3255('0x9')]['editing'][_0x3255('0x24')][_0x3255('0x1e')](),this[_0x3255('0x10')]=!0x0;}[_0x3255('0x2a')](){if(!this['isAttached'])throw new _0x1fab7c('inlineannotations-detach-not-attached',this);this[_0x3255('0x1')](null);for(const _0x1e22fd of this[_0x3255('0x1c')])this[_0x3255('0x30')](_0x1e22fd);this[_0x3255('0x32')](),this['isAttached']=!0x1,this[_0x3255('0x38')]=null;}[_0x3255('0x4a')](){this[_0x3255('0x10')]&&this[_0x3255('0x2a')]();}[_0x3255('0x46')](_0x1efbbd){for(const _0x11d8ed of this[_0x3255('0x41')])_0x1efbbd['includes'](_0x11d8ed)||this[_0x3255('0x11')][_0x3255('0x25')](_0x11d8ed);for(const _0x23bf54 of this['annotations'])_0x1efbbd[_0x3255('0x2')](_0x23bf54)||this[_0x3255('0x30')](_0x23bf54);if(this[_0x3255('0x9')]['ui'][_0x3255('0x37')]['isFocused'])for(const _0x52f3c5 of _0x1efbbd)this[_0x3255('0x33')](_0x52f3c5);this[_0x3255('0x41')]=_0x1efbbd;}['_addAnnotationToBalloon'](_0x2b7a03,_0x30d166=!0x1){this['_manuallyClosed'][_0x3255('0x3')](_0x2b7a03)||(this[_0x3255('0x1c')][_0x3255('0x3')](_0x2b7a03)||this['_balloon']['hasView'](_0x2b7a03[_0x3255('0x24')])||(this['_addedAnnotations'][_0x3255('0x3d')](_0x2b7a03),this[_0x3255('0x8')][_0x3255('0x3d')]({'stackId':_0x2b7a03[_0x3255('0x24')]['id'],'view':_0x2b7a03['view'],'position':{'target':()=>this[_0x3255('0x31')](_0x2b7a03)}})),_0x30d166&&this[_0x3255('0x8')][_0x3255('0x2e')](_0x2b7a03['view']['id']));}[_0x3255('0x31')](_0x1dc16f){const _0x2782e3=_0x1dc16f[_0x3255('0x21')],_0x4d268c=this[_0x3255('0x9')][_0x3255('0x17')][_0x3255('0x24')],_0x3de505=_0x4d268c[_0x3255('0x1a')][_0x3255('0x28')][_0x3255('0x40')](),_0x5ee4bb=_0x4d268c[_0x3255('0x23')][_0x3255('0x48')](_0x3de505);if(_0x5ee4bb[_0x3255('0x47')](!0x0),_0x2782e3){if(_0x2782e3 instanceof _0x127c5b)return _0x2782e3;let _0x5457f3=[];for(const _0x4fa2bb of _0x2782e3)_0x5457f3[_0x3255('0x22')](...(_0x475afd=_0x4fa2bb['getClientRects'](),Array[_0x3255('0x1f')](_0x475afd)[_0x3255('0x29')](DOMRect[_0x3255('0xf')])));_0x5457f3=function(_0x484027){const _0x33e7a8=[];let _0x4a552c=_0x484027[0x0];for(let _0x4adcf5=0x1;_0x4adcf5<_0x484027[_0x3255('0x36')];_0x4adcf5++)F(_0x4a552c,_0x484027[_0x4adcf5])?_0x4a552c['width']+=_0x484027[_0x4adcf5]['width']:(_0x33e7a8['push'](_0x4a552c),_0x4a552c=_0x484027[_0x4adcf5]);return _0x33e7a8[_0x3255('0x22')](_0x4a552c),_0x33e7a8;}(_0x5457f3);const _0x59e92f=_0x5ee4bb[_0x3255('0x2d')]();return _0x5457f3[_0x3255('0x19')](_0xff8c02=>_0xff8c02[_0x3255('0xa')]<=_0x59e92f[_0x3255('0xa')]&&_0xff8c02[_0x3255('0xe')]>=_0x59e92f[_0x3255('0xe')]&&_0xff8c02[_0x3255('0x7')]<=_0x59e92f[_0x3255('0x7')]&&_0xff8c02[_0x3255('0x20')]>=_0x59e92f[_0x3255('0x20')])||_0x5457f3[0x0];}var _0x475afd;return _0x1dc16f[_0x3255('0x27')]||_0x5ee4bb;}[_0x3255('0x30')](_0x1c1375){this['_addedAnnotations'][_0x3255('0x3')](_0x1c1375)&&this[_0x3255('0x8')][_0x3255('0x26')](_0x1c1375[_0x3255('0x24')])&&(this[_0x3255('0x1c')][_0x3255('0x25')](_0x1c1375),this[_0x3255('0x8')][_0x3255('0x15')](_0x1c1375[_0x3255('0x24')]));}[_0x3255('0x43')](_0x410a1d){this[_0x3255('0x11')][_0x3255('0x3d')](_0x410a1d),this[_0x3255('0x30')](_0x410a1d);}}function F(_0x32da40,_0x4a03c2){return _0x32da40[_0x3255('0xa')]===_0x4a03c2[_0x3255('0xa')]&&_0x32da40[_0x3255('0xe')]===_0x4a03c2[_0x3255('0xe')]&&_0x32da40[_0x3255('0x20')]===_0x4a03c2['left'];}
23
+ const _0x4fb1=['visibleView','getBoundingClientRect','_balloon','isAttached','view','_addedAnnotations','focusTracker','afterInit','InlineAnnotations','target','every','change:isFocused','showStack','editing','find','hasActive','collapse','isActive','setActiveAnnotation','Esc','_manuallyClosed','length','isFocused','_closeAnnotation','from','attach','requires','addObserver','focus','add','stopListening','detach','width','_forceRefresh','_addAnnotationToBalloon','plugins','get','document','blur','context','_setSelectedAnnotations','right','getOrderedSelectedAnnotations','set','bottom','editableElement','editor','clear','remove','fromRect','_getBalloonTargetForAnnotation','hasView','getByView','top','annotations','push','mousedown','_removeAnnotationFromBalloon','includes','map','targetRect','inlineannotations-detach-not-attached','pluginName','listenTo','inlineannotations-attach-already-attached','_selectedAnnotations','has','left','selection','delete','domConverter','switchTo','register','inlineannotations-not-allowed-with-context','activeAnnotation','inline','change:visibleView'];(function(_0x1fa433,_0x4fb157){const _0x658d23=function(_0x5f0898){while(--_0x5f0898){_0x1fa433['push'](_0x1fa433['shift']());}};_0x658d23(++_0x4fb157);}(_0x4fb1,0xe9));const _0x658d=function(_0x1fa433,_0x4fb157){_0x1fa433=_0x1fa433-0x0;let _0x658d23=_0x4fb1[_0x1fa433];return _0x658d23;};import{Plugin as _0x2c54c1}from'ckeditor5/src/core';import _0x526fea from'./annotationsuis';import _0x30f34f from'./editorannotations';import{ContextualBalloon as _0x3d5c71}from'ckeditor5/src/ui';import{MouseObserver as _0x181f4e}from'ckeditor5/src/engine';import{CKEditorError as _0x3bdfd1,Rect as _0x177d11}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x2c54c1{static get[_0x658d('0x18')](){return[_0x30f34f,_0x3d5c71,_0x526fea];}static get[_0x658d('0x3c')](){return _0x658d('0x6');}constructor(_0x585ec9){super(_0x585ec9),_0x585ec9['editing'][_0x658d('0x2')][_0x658d('0x19')](_0x181f4e),this[_0x658d('0x1')]=!0x1,this[_0x658d('0x29')]('activeAnnotation',null),this[_0x658d('0x34')]=null,this[_0x658d('0x12')]=new Set(),this[_0x658d('0x0')]=_0x585ec9[_0x658d('0x21')][_0x658d('0x22')](_0x3d5c71),this[_0x658d('0x3')]=new Set(),this['_selectedAnnotations']=[],this[_0x658d('0x1f')]=!0x1;}['init'](){const _0x3e07e7=this[_0x658d('0x2c')][_0x658d('0x21')]['get'](_0x526fea);_0x3e07e7[_0x658d('0x25')]===this[_0x658d('0x2c')]&&(_0x3e07e7[_0x658d('0x46')](_0x658d('0x49'),this),this[_0x658d('0x2c')]['keystrokes'][_0x658d('0x29')]('Esc',(_0x44ff26,_0x22663c)=>{const _0x145dcb=this[_0x658d('0x0')];if(this[_0x658d('0x1')]&&_0x145dcb[_0x658d('0x4b')]){const _0x3f5737=this[_0x658d('0x34')][_0x658d('0x32')](_0x145dcb[_0x658d('0x4b')]);_0x3f5737&&this[_0x658d('0x15')](_0x3f5737),_0x22663c();}}));}[_0x658d('0x5')](){const _0x40ee9b=this[_0x658d('0x2c')][_0x658d('0x21')][_0x658d('0x22')](_0x526fea);_0x40ee9b[_0x658d('0x25')]===this[_0x658d('0x2c')]&&(_0x40ee9b[_0x658d('0xd')]()||_0x40ee9b[_0x658d('0x45')](_0x658d('0x49')));}[_0x658d('0x10')](_0x85ec4f){_0x85ec4f!==this[_0x658d('0x48')]&&(this[_0x658d('0x48')]&&(this[_0x658d('0x48')][_0x658d('0xf')]=!0x1),_0x85ec4f&&this[_0x658d('0x2c')]['ui'][_0x658d('0x4')][_0x658d('0x14')]&&(this[_0x658d('0x34')][_0x658d('0x40')](_0x85ec4f)&&this[_0x658d('0x20')](_0x85ec4f,!0x0),_0x85ec4f[_0x658d('0xf')]=!0x0),_0x85ec4f||this[_0x658d('0x26')]([]),this[_0x658d('0x48')]=_0x85ec4f);}[_0x658d('0x17')](_0x3d9339){this['annotations']=_0x3d9339;const _0x524946=this['editor'][_0x658d('0x21')][_0x658d('0x22')](_0x526fea),_0x2621bf=this[_0x658d('0x0')];if(this[_0x658d('0x1')])throw new _0x3bdfd1(_0x658d('0x3e'),this);if(_0x524946['context']!==this[_0x658d('0x2c')])throw new _0x3bdfd1(_0x658d('0x47'),this);const _0x13125a=this['editor'][_0x658d('0x21')][_0x658d('0x22')](_0x30f34f);this['listenTo'](_0x13125a,'refresh',()=>{const _0xff9b2f=_0x13125a[_0x658d('0x28')]({'annotations':this['annotations'],'activeAnnotation':this[_0x658d('0x48')]});var _0x37d600,_0x5c5ced;!this[_0x658d('0x1f')]&&(_0x37d600=_0xff9b2f,_0x5c5ced=this[_0x658d('0x3f')],_0x37d600[_0x658d('0x13')]===_0x5c5ced[_0x658d('0x13')]&&_0x37d600[_0x658d('0x8')](_0x21a967=>_0x5c5ced[_0x658d('0x38')](_0x21a967)))||(this[_0x658d('0x1f')]=!0x1,this['_setSelectedAnnotations'](_0xff9b2f),this[_0x658d('0x10')](_0xff9b2f[0x0]||null));}),this[_0x658d('0x3d')](_0x13125a,_0x658d('0x24'),(_0x367fdd,{isAnnotationTracked:_0x2e67c7})=>{this['activeAnnotation']&&_0x2e67c7(this[_0x658d('0x48')])&&(this[_0x658d('0x26')]([]),this[_0x658d('0x10')](null));}),this[_0x658d('0x3d')](this[_0x658d('0x2c')]['ui'][_0x658d('0x4')],_0x658d('0x9'),(_0x3b55e7,_0x2c6358,_0x104d9b)=>{_0x104d9b||this['setActiveAnnotation'](null);}),this[_0x658d('0x3d')](_0x3d9339,_0x658d('0x2e'),(_0x95f7d0,_0x333821)=>{this[_0x658d('0x37')](_0x333821),_0x333821===this[_0x658d('0x48')]&&this[_0x658d('0x10')](null);}),this[_0x658d('0x3d')](_0x2621bf,_0x658d('0x4a'),(_0x2d3d46,_0x33298d,_0x1cf42e,_0x3fba58)=>{_0x3fba58&&this[_0x658d('0x1c')](_0x3fba58);const _0x5b8062=_0x3d9339[_0x658d('0x32')](_0x1cf42e);_0x1cf42e&&_0x5b8062&&(this['listenTo'](_0x1cf42e,'change:height',()=>{_0x2621bf['updatePosition']();}),this['listenTo'](_0x1cf42e,_0x658d('0x11'),()=>{this['_closeAnnotation'](_0x5b8062),this['editor'][_0x658d('0xb')]['view'][_0x658d('0x1a')]();}),this[_0x658d('0x48')]!==_0x5b8062&&this[_0x658d('0x10')](_0x5b8062));}),this[_0x658d('0x3d')](this['editor']['ui'],'update',()=>{_0x2621bf[_0x658d('0x4b')]&&(_0x3d9339['getByView'](_0x2621bf['visibleView'])&&_0x2621bf['updatePosition']());}),this[_0x658d('0x3d')](this['editor']['editing'][_0x658d('0x2')]['document'],_0x658d('0x36'),()=>{this[_0x658d('0x1f')]=!0x0,this[_0x658d('0x12')][_0x658d('0x2d')]();}),this[_0x658d('0x2c')][_0x658d('0xb')][_0x658d('0x2')][_0x658d('0x23')][_0x658d('0x42')][_0x658d('0x2b')]&&this[_0x658d('0x2c')][_0x658d('0xb')][_0x658d('0x2')]['focus'](),this[_0x658d('0x1')]=!0x0;}['detach'](){if(!this[_0x658d('0x1')])throw new _0x3bdfd1(_0x658d('0x3b'),this);this[_0x658d('0x10')](null);for(const _0x362385 of this[_0x658d('0x3')])this[_0x658d('0x37')](_0x362385);this[_0x658d('0x1c')](),this[_0x658d('0x1')]=!0x1,this['annotations']=null;}['destroy'](){this[_0x658d('0x1')]&&this[_0x658d('0x1d')]();}[_0x658d('0x26')](_0xccb8b1){for(const _0x2fff41 of this['_selectedAnnotations'])_0xccb8b1['includes'](_0x2fff41)||this[_0x658d('0x12')][_0x658d('0x43')](_0x2fff41);for(const _0x25d4aa of this[_0x658d('0x34')])_0xccb8b1[_0x658d('0x38')](_0x25d4aa)||this[_0x658d('0x37')](_0x25d4aa);if(this[_0x658d('0x2c')]['ui'][_0x658d('0x4')]['isFocused'])for(const _0x5e21c9 of _0xccb8b1)this[_0x658d('0x20')](_0x5e21c9);this[_0x658d('0x3f')]=_0xccb8b1;}[_0x658d('0x20')](_0xa91ed3,_0x584d3b=!0x1){this[_0x658d('0x12')][_0x658d('0x40')](_0xa91ed3)||(this[_0x658d('0x3')][_0x658d('0x40')](_0xa91ed3)||this[_0x658d('0x0')]['hasView'](_0xa91ed3[_0x658d('0x2')])||(this[_0x658d('0x3')]['add'](_0xa91ed3),this['_balloon'][_0x658d('0x1b')]({'stackId':_0xa91ed3[_0x658d('0x2')]['id'],'view':_0xa91ed3['view'],'position':{'target':()=>this[_0x658d('0x30')](_0xa91ed3)}})),_0x584d3b&&this[_0x658d('0x0')][_0x658d('0xa')](_0xa91ed3[_0x658d('0x2')]['id']));}['_getBalloonTargetForAnnotation'](_0x1a6b87){const _0x5605c0=_0x1a6b87[_0x658d('0x7')],_0x5f0786=this['editor']['editing'][_0x658d('0x2')],_0x4a4dc5=_0x5f0786[_0x658d('0x23')][_0x658d('0x42')]['getFirstRange'](),_0x3a7df0=_0x5f0786[_0x658d('0x44')]['viewRangeToDom'](_0x4a4dc5);if(_0x3a7df0[_0x658d('0xe')](!0x0),_0x5605c0){if(_0x5605c0 instanceof _0x177d11)return _0x5605c0;let _0xcc96e5=[];for(const _0x2f13dc of _0x5605c0)_0xcc96e5[_0x658d('0x35')](...(_0x3e8a8c=_0x2f13dc['getClientRects'](),Array[_0x658d('0x16')](_0x3e8a8c)[_0x658d('0x39')](DOMRect[_0x658d('0x2f')])));_0xcc96e5=function(_0x3f03a2){const _0x32b9a3=[];let _0x54fd50=_0x3f03a2[0x0];for(let _0x34b004=0x1;_0x34b004<_0x3f03a2[_0x658d('0x13')];_0x34b004++)F(_0x54fd50,_0x3f03a2[_0x34b004])?_0x54fd50[_0x658d('0x1e')]+=_0x3f03a2[_0x34b004]['width']:(_0x32b9a3[_0x658d('0x35')](_0x54fd50),_0x54fd50=_0x3f03a2[_0x34b004]);return _0x32b9a3[_0x658d('0x35')](_0x54fd50),_0x32b9a3;}(_0xcc96e5);const _0x1728c9=_0x3a7df0[_0x658d('0x4c')]();return _0xcc96e5[_0x658d('0xc')](_0x1e39f1=>_0x1e39f1[_0x658d('0x33')]<=_0x1728c9[_0x658d('0x33')]&&_0x1e39f1[_0x658d('0x2a')]>=_0x1728c9[_0x658d('0x2a')]&&_0x1e39f1[_0x658d('0x41')]<=_0x1728c9[_0x658d('0x41')]&&_0x1e39f1[_0x658d('0x27')]>=_0x1728c9['right'])||_0xcc96e5[0x0];}var _0x3e8a8c;return _0x1a6b87[_0x658d('0x3a')]||_0x3a7df0;}[_0x658d('0x37')](_0x363fde){this[_0x658d('0x3')][_0x658d('0x40')](_0x363fde)&&this[_0x658d('0x0')][_0x658d('0x31')](_0x363fde[_0x658d('0x2')])&&(this['_addedAnnotations'][_0x658d('0x43')](_0x363fde),this[_0x658d('0x0')][_0x658d('0x2e')](_0x363fde['view']));}['_closeAnnotation'](_0x199e36){this['_manuallyClosed'][_0x658d('0x1b')](_0x199e36),this[_0x658d('0x37')](_0x199e36);}}function F(_0x9ed634,_0x2d6f0e){return _0x9ed634[_0x658d('0x33')]===_0x2d6f0e[_0x658d('0x33')]&&_0x9ed634[_0x658d('0x2a')]===_0x2d6f0e[_0x658d('0x2a')]&&_0x9ed634['right']===_0x2d6f0e['left'];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x56c0=['element','focus','northArrowSouth','annotations','contains','values','remove','_selectedAnnotations','clear','_showBalloon','attach','_editorAnnotations','detachFromDom','requires','addAnnotation','Esc','cancel','add','keyCode','pluginName','pin','delete','_detachListeners','activeAnnotation','destroy','_refreshPositioning','focusableElements','southArrowNorth','change:height','_destroyEditorAnnotationsIntegration','_detachFromContainer','find','_domEmitter','southArrowNorthWest','ready','resize','number','detach','getOrderedSelectedAnnotations','getByView','setActiveAnnotation','bind','change:container','has','narrowsidebar-detach-not-attached','isDirty','hasDomSelection','get','high','EditorAnnotations','_annotations','context','low','locale','listenTo','init','bodyCollection','_annotationToNarrowView','uiUpdate','isVisible','stop','getSidebarItemView','editors','addEventListener','annotationType','esc','length','view','first','attachToDom','create','_attachToContainer','_attachListeners','_hideBalloon','unpin','keydown','_refreshPositioningDebounced','balloonPanelView','target','refresh','_integrateWithEditorAnnotations','ck-sidebar--narrow','mousedown','_setSelectedAnnotations','NarrowSidebar','narrowsidebar-attach-already-attached','content','preventClosingBalloon','northArrowSouthEast','set:container','northArrowSouthWest','stopPropagation','off','plugins','isAttached','blur','_updateBalloonPosition','_manuallyClosedAnnotationViews','set','stopListening','from'];(function(_0x137639,_0x56c0b0){const _0x2ad70f=function(_0x1165b7){while(--_0x1165b7){_0x137639['push'](_0x137639['shift']());}};_0x2ad70f(++_0x56c0b0);}(_0x56c0,0xb5));const _0x2ad7=function(_0x137639,_0x56c0b0){_0x137639=_0x137639-0x0;let _0x2ad70f=_0x56c0[_0x137639];return _0x2ad70f;};import{ContextPlugin as _0x1098a1,Context as _0x3823ba}from'ckeditor5/src/core';import _0x3ef3d7 from'./annotationsuis';import _0x47ef6d from'./sidebar';import _0x1a21a7 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x26b9b4,BodyCollection as _0x5218f1}from'ckeditor5/src/ui';import{CKEditorError as _0x3f9cda,DomEmitterMixin as _0x5197f0,keyCodes as _0xcaa242,Collection as _0x3546c4}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x235778}from'lodash-es';import _0x5ac2b9 from'./editorannotations';export default class s extends _0x1098a1{static get[_0x2ad7('0x22')](){return[_0x47ef6d,_0x3ef3d7];}static get[_0x2ad7('0x28')](){return _0x2ad7('0x4');}constructor(_0x1905bf){super(_0x1905bf),this[_0x2ad7('0xe')]=!0x1,this[_0x2ad7('0x11')]=new Set(),this['_domEmitter']=Object[_0x2ad7('0x5b')](_0x5197f0),this[_0x2ad7('0x4e')]=new Map(),this[_0x2ad7('0x12')](_0x2ad7('0x2c'),null),this['annotations']=null,this[_0x2ad7('0x1c')]=[],this['_editorAnnotations']=new _0x3546c4(),this['_refreshPositioningDebounced']=_0x235778(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}[_0x2ad7('0x4c')](){this[_0x2ad7('0x48')][_0x2ad7('0xd')]['get'](_0x3ef3d7)['register']('narrowSidebar',this),this[_0x2ad7('0x4d')]=new _0x5218f1(this['context']['locale']),this[_0x2ad7('0x62')]=new _0x26b9b4(this['context'][_0x2ad7('0x4a')]),this[_0x2ad7('0x4d')][_0x2ad7('0x5a')](),this[_0x2ad7('0x4d')]['add'](this[_0x2ad7('0x62')]);}[_0x2ad7('0x1f')](_0x38b311){this[_0x2ad7('0x18')]=_0x38b311;const _0x5b1719=this[_0x2ad7('0x48')][_0x2ad7('0xd')][_0x2ad7('0x44')](_0x47ef6d),_0x3f1818=this[_0x2ad7('0x62')];if(_0x5b1719[_0x2ad7('0x47')]=_0x38b311,this[_0x2ad7('0xe')])throw new _0x3f9cda(_0x2ad7('0x5'),this);this[_0x2ad7('0xe')]=!0x0,this[_0x2ad7('0x4b')](_0x5b1719,_0x2ad7('0x9'),()=>{this[_0x2ad7('0x3a')](),this[_0x2ad7('0x4b')](_0x5b1719,_0x2ad7('0x3f'),_0x4195db=>{_0x4195db[_0x2ad7('0xc')](),this[_0x2ad7('0x1f')](_0x38b311);});}),_0x5b1719[_0x2ad7('0x5c')]({'viewClass':_0x2ad7('0x1'),'spaceBetweenItems':0x5});const _0x512c7e=_0x5a32a9=>{const _0x3b0765=new _0x1a21a7(this['context'][_0x2ad7('0x4a')]);_0x5b1719[_0x2ad7('0x23')](_0x5a32a9,_0x3b0765),this[_0x2ad7('0x4e')]['set'](_0x5a32a9,_0x3b0765),_0x3b0765[_0x2ad7('0x3e')](_0x2ad7('0x42'),_0x2ad7('0x55'),_0x2ad7('0x39'))['to'](_0x5a32a9[_0x2ad7('0x58')],_0x2ad7('0x42'),'type',_0x2ad7('0x57')),_0x3b0765['on']('execute',()=>{this['_manuallyClosedAnnotationViews'][_0x2ad7('0x1d')](),_0x3f1818[_0x2ad7('0x6')]['first']!==_0x5a32a9[_0x2ad7('0x58')]?(this[_0x2ad7('0x1e')](_0x5a32a9),_0x5a32a9['view']['element']['focus'](),this['setActiveAnnotation'](_0x5a32a9)):this[_0x2ad7('0x3d')](null);});};for(const _0x4426fd of _0x38b311)_0x512c7e(_0x4426fd);this['listenTo'](_0x38b311,_0x2ad7('0x26'),(_0x44688f,_0x1161b4)=>{_0x512c7e(_0x1161b4);}),this[_0x2ad7('0x4b')](_0x38b311,_0x2ad7('0x1b'),(_0x59b0d5,_0x35f8dd,_0x3c619e)=>{this['_annotationToNarrowView'][_0x2ad7('0x44')](_0x35f8dd)['destroy'](),this['_annotationToNarrowView'][_0x2ad7('0x2a')](_0x35f8dd),_0x5b1719['rearrange']({'removedAnnotation':_0x35f8dd,'previousAnnotation':_0x38b311[_0x2ad7('0x44')](_0x3c619e-0x1),'nextAnnotation':_0x38b311[_0x2ad7('0x44')](_0x3c619e+0x1)}),_0x35f8dd===this[_0x2ad7('0x2c')]&&this['setActiveAnnotation'](null);},{'priority':_0x2ad7('0x49')}),this['listenTo'](_0x38b311,_0x2ad7('0x16'),(_0x4390f7,_0x3cdaa6)=>{this[_0x2ad7('0x3d')](_0x3cdaa6);}),this[_0x2ad7('0x4b')](_0x38b311,'blur',()=>{this[_0x2ad7('0x3d')](null);}),this[_0x2ad7('0x35')][_0x2ad7('0x4b')](document,_0x2ad7('0x60'),(_0x4d9bb8,_0x24a7bb)=>{_0x24a7bb[_0x2ad7('0x27')]===_0xcaa242[_0x2ad7('0x56')]&&_0x3f1818[_0x2ad7('0x50')]&&(this[_0x2ad7('0x11')][_0x2ad7('0x26')](_0x3f1818[_0x2ad7('0x6')][_0x2ad7('0x59')]),this[_0x2ad7('0x5e')](),_0x24a7bb[_0x2ad7('0xb')](),_0x24a7bb['preventDefault']());}),this[_0x2ad7('0x35')][_0x2ad7('0x4b')](document,_0x2ad7('0x2'),(_0x1b9d02,_0x1c1e4f)=>{const _0x3463d9=_0x1c1e4f[_0x2ad7('0x63')];_0x3f1818[_0x2ad7('0x50')]&&_0x3f1818[_0x2ad7('0x15')][_0x2ad7('0x19')](_0x3463d9)||_0x5b1719[_0x2ad7('0x58')][_0x2ad7('0x15')]['contains'](_0x3463d9)||_0x1b9d02[_0x2ad7('0x7')]||this[_0x2ad7('0x2c')]&&this[_0x2ad7('0x2c')][_0x2ad7('0x2f')][_0x2ad7('0x34')](_0x510a86=>_0x510a86[_0x2ad7('0x19')](_0x3463d9))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this[_0x2ad7('0x3d')](null));});const _0x13e524=this[_0x2ad7('0x48')]instanceof _0x3823ba?this[_0x2ad7('0x48')][_0x2ad7('0x53')]:new _0x3546c4([this[_0x2ad7('0x48')]]);for(const _0x20607b of _0x13e524)this[_0x2ad7('0x0')](_0x20607b);this['listenTo'](_0x13e524,_0x2ad7('0x26'),(_0x5f4abd,_0x5ef773)=>{this[_0x2ad7('0x4b')](_0x5ef773,_0x2ad7('0x37'),()=>{this[_0x2ad7('0x0')](_0x5ef773);});}),this['listenTo'](_0x13e524,_0x2ad7('0x1b'),(_0x510072,_0x23d797)=>{_0x23d797['plugins'][_0x2ad7('0x40')](_0x2ad7('0x46'))&&this[_0x2ad7('0x32')](_0x23d797[_0x2ad7('0xd')]['get']('EditorAnnotations'));}),window[_0x2ad7('0x54')](_0x2ad7('0x38'),this[_0x2ad7('0x61')]),this[_0x2ad7('0x2e')]();}[_0x2ad7('0x3d')](_0xa4c2be){if(_0xa4c2be===this[_0x2ad7('0x2c')])return;const _0x2d8348=this[_0x2ad7('0x48')][_0x2ad7('0xd')][_0x2ad7('0x44')](_0x47ef6d);if(_0x2d8348[_0x2ad7('0x64')]({'blurredAnnotation':this[_0x2ad7('0x2c')],'activatedAnnotation':_0xa4c2be,'disableAnimationOnActivatedAnnotation':!0x0}),_0xa4c2be)_0x2d8348[_0x2ad7('0x52')](_0xa4c2be)?this['_showBalloon'](_0xa4c2be):this[_0x2ad7('0x5e')]();else this['_hideBalloon']();this[_0x2ad7('0x2c')]=_0xa4c2be;}['detach'](){if(!this[_0x2ad7('0xe')])throw new _0x3f9cda(_0x2ad7('0x41'),this);this[_0x2ad7('0x3d')](null);const _0x1b460d=this[_0x2ad7('0x48')]['plugins'][_0x2ad7('0x44')](_0x47ef6d);this[_0x2ad7('0x5e')](),Array[_0x2ad7('0x14')](this[_0x2ad7('0x4e')][_0x2ad7('0x1a')](),_0x37677e=>_0x37677e[_0x2ad7('0x2d')]()),this['_annotationToNarrowView'][_0x2ad7('0x1d')](),_0x1b460d[_0x2ad7('0x33')](this[_0x2ad7('0x18')]),this[_0x2ad7('0x13')](),this[_0x2ad7('0x35')][_0x2ad7('0x13')](),this[_0x2ad7('0x48')]instanceof _0x3823ba&&this[_0x2ad7('0x13')](this['context'][_0x2ad7('0x53')]);for(const _0x166f9a of Array['from'](this[_0x2ad7('0x20')]))this[_0x2ad7('0x32')](_0x166f9a);window['removeEventListener'](_0x2ad7('0x38'),this[_0x2ad7('0x61')]),this['_refreshPositioningDebounced'][_0x2ad7('0x25')](),this[_0x2ad7('0x1c')]=[],this['isAttached']=!0x1,this[_0x2ad7('0x18')]=null;}[_0x2ad7('0x2d')](){this['isAttached']&&this[_0x2ad7('0x3a')](),this[_0x2ad7('0x4d')][_0x2ad7('0x21')]();}[_0x2ad7('0x0')](_0x212f15){const _0x19eab2=_0x212f15['plugins']['get'](_0x5ac2b9),_0x2ff087=this[_0x2ad7('0x48')][_0x2ad7('0xd')][_0x2ad7('0x44')](_0x47ef6d),_0xe99aca=this[_0x2ad7('0x18')],_0x6ff1e2=this[_0x2ad7('0x62')],_0x28cd08=()=>{const _0x1fbaa3=_0x19eab2[_0x2ad7('0x3b')]({'annotations':this[_0x2ad7('0x18')],'activeAnnotation':this[_0x2ad7('0x2c')]});this[_0x2ad7('0x3')](_0x1fbaa3),this[_0x2ad7('0x3d')](_0x1fbaa3[0x0]||null);};this[_0x2ad7('0x4b')](_0x19eab2,_0x2ad7('0x64'),_0x28cd08),this[_0x2ad7('0x4b')](_0x19eab2,_0x2ad7('0xf'),(_0x122571,{isAnnotationTracked:_0x3e63d0})=>{this[_0x2ad7('0x2c')]&&_0x3e63d0(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this[_0x2ad7('0x3d')](null));}),this[_0x2ad7('0x4b')](_0x19eab2,_0x2ad7('0x4f'),()=>{this[_0x2ad7('0x61')]();}),this['listenTo'](_0xe99aca,'blur',_0x137838=>{_0x19eab2[_0x2ad7('0x43')]()&&_0x137838[_0x2ad7('0x51')]();},{'priority':_0x2ad7('0x45')}),this[_0x2ad7('0x4b')](this[_0x2ad7('0x35')],_0x2ad7('0x2'),(_0x26813,_0x35f6c8)=>{const _0x4964e2=_0x35f6c8[_0x2ad7('0x63')];_0x6ff1e2[_0x2ad7('0x50')]&&_0x6ff1e2[_0x2ad7('0x15')][_0x2ad7('0x19')](_0x4964e2)||_0x2ff087[_0x2ad7('0x58')][_0x2ad7('0x15')][_0x2ad7('0x19')](_0x4964e2)||this[_0x2ad7('0x2c')]&&_0x19eab2[_0x2ad7('0x43')]()&&(_0x28cd08(),_0x26813[_0x2ad7('0x7')]=!0x0);},{'priority':_0x2ad7('0x45')}),this[_0x2ad7('0x20')][_0x2ad7('0x26')](_0x19eab2);}[_0x2ad7('0x32')](_0xd08b18){_0xd08b18&&(this['stopListening'](_0xd08b18),this['_editorAnnotations'][_0x2ad7('0x1b')](_0xd08b18));}[_0x2ad7('0x3')](_0x32ecf8){for(const _0x4c644b of this[_0x2ad7('0x1c')])_0x32ecf8['includes'](_0x4c644b)||this['_manuallyClosedAnnotationViews'][_0x2ad7('0x2a')](_0x4c644b['view']);this[_0x2ad7('0x1c')]=_0x32ecf8;}[_0x2ad7('0x2e')](){const _0x33829b=this[_0x2ad7('0x62')];this[_0x2ad7('0x18')]['refreshPositioning'](),_0x33829b[_0x2ad7('0x50')]&&this[_0x2ad7('0x10')]();}[_0x2ad7('0x1e')](_0x304cb5){if(this['_manuallyClosedAnnotationViews'][_0x2ad7('0x40')](_0x304cb5[_0x2ad7('0x58')]))return;const _0xa0053b=this[_0x2ad7('0x62')][_0x2ad7('0x6')][_0x2ad7('0x59')];_0xa0053b!==_0x304cb5[_0x2ad7('0x58')]?(_0xa0053b&&this[_0x2ad7('0x2b')](_0xa0053b),this[_0x2ad7('0x5d')](_0x304cb5[_0x2ad7('0x58')]),this[_0x2ad7('0x62')][_0x2ad7('0x6')]['clear'](),this[_0x2ad7('0x62')][_0x2ad7('0x6')][_0x2ad7('0x26')](_0x304cb5[_0x2ad7('0x58')]),this[_0x2ad7('0x10')]()):this[_0x2ad7('0x10')]();}[_0x2ad7('0x10')](){const _0x4c367d=this[_0x2ad7('0x62')]['content'][_0x2ad7('0x59')],_0x1ceafa=_0x4c367d&&this[_0x2ad7('0x18')][_0x2ad7('0x3c')](_0x4c367d);if(!_0x1ceafa||!this[_0x2ad7('0x4e')]['has'](_0x1ceafa))return;const _0x1abedb=this[_0x2ad7('0x4e')][_0x2ad7('0x44')](_0x1ceafa)[_0x2ad7('0x15')],_0x1be7f1=function(){const _0x54284a=_0x26b9b4['defaultPositions'];return[_0x54284a['southArrowNorthEast'],_0x54284a[_0x2ad7('0x8')],_0x54284a[_0x2ad7('0x30')],_0x54284a[_0x2ad7('0x17')],_0x54284a[_0x2ad7('0x36')],_0x54284a[_0x2ad7('0xa')]];}();this[_0x2ad7('0x62')][_0x2ad7('0x29')]({'target':_0x1abedb,'positions':_0x1be7f1});}[_0x2ad7('0x5e')](){const _0x2bb6c3=this['balloonPanelView'],_0x44b81f=_0x2bb6c3[_0x2ad7('0x6')][_0x2ad7('0x59')];_0x44b81f&&(this[_0x2ad7('0x2b')](_0x44b81f),_0x2bb6c3[_0x2ad7('0x5f')](),_0x2bb6c3[_0x2ad7('0x6')][_0x2ad7('0x1d')]());}['_attachListeners'](_0x93d7cc){this[_0x2ad7('0x4b')](_0x93d7cc,_0x2ad7('0x31'),()=>this['_updateBalloonPosition']()),this[_0x2ad7('0x4b')](_0x93d7cc,_0x2ad7('0x24'),(_0x106a79,_0x4aa865)=>{this['_manuallyClosedAnnotationViews'][_0x2ad7('0x26')](_0x93d7cc),this[_0x2ad7('0x5e')](),_0x4aa865();});}[_0x2ad7('0x2b')](_0x13f182){this[_0x2ad7('0x13')](_0x13f182);}}
23
+ const _0x4305=['_domEmitter','element','refreshPositioning','_detachFromContainer','find','plugins','off','length','remove','blur','balloonPanelView','_manuallyClosedAnnotationViews','Esc','refresh','addEventListener','editors','set','getByView','setActiveAnnotation','type','preventDefault','clear','stop','northArrowSouthEast','_editorAnnotations','getOrderedSelectedAnnotations','resize','change:container','high','preventClosingBalloon','_annotations','keydown','_selectedAnnotations','_destroyEditorAnnotationsIntegration','keyCode','activeAnnotation','_refreshPositioningDebounced','southArrowNorth','_setSelectedAnnotations','includes','view','context','hasDomSelection','get','stopPropagation','narrowsidebar-attach-already-attached','ready','change:height','destroy','isAttached','content','_integrateWithEditorAnnotations','attach','from','annotations','_detachListeners','execute','narrowsidebar-detach-not-attached','target','register','cancel','locale','pluginName','pin','rearrange','annotationType','_hideBalloon','detach','southArrowNorthWest','EditorAnnotations','_refreshPositioning','_showBalloon','low','requires','has','listenTo','northArrowSouthWest','_updateBalloonPosition','isVisible','values','delete','add','init','focus','bodyCollection','attachToDom','contains','_annotationToNarrowView','northArrowSouth','uiUpdate','removeEventListener','ck-sidebar--narrow','stopListening','first','number','_attachListeners','southArrowNorthEast'];(function(_0x33cd5e,_0x4305c0){const _0x26f935=function(_0x576bf3){while(--_0x576bf3){_0x33cd5e['push'](_0x33cd5e['shift']());}};_0x26f935(++_0x4305c0);}(_0x4305,0x13d));const _0x26f9=function(_0x33cd5e,_0x4305c0){_0x33cd5e=_0x33cd5e-0x0;let _0x26f935=_0x4305[_0x33cd5e];return _0x26f935;};import{ContextPlugin as _0x4e4ef7,Context as _0x55dd71}from'ckeditor5/src/core';import _0xfdb399 from'./annotationsuis';import _0x4b321f from'./sidebar';import _0x20dcf6 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x197e2a,BodyCollection as _0x47a0cf}from'ckeditor5/src/ui';import{CKEditorError as _0x5dd69d,DomEmitterMixin as _0x32336c,keyCodes as _0xdf8c02,Collection as _0x21c513}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x504534}from'lodash-es';import _0x2fffe9 from'./editorannotations';export default class s extends _0x4e4ef7{static get[_0x26f9('0x2f')](){return[_0x4b321f,_0xfdb399];}static get[_0x26f9('0x24')](){return'NarrowSidebar';}constructor(_0x83ab70){super(_0x83ab70),this[_0x26f9('0x17')]=!0x1,this[_0x26f9('0x52')]=new Set(),this[_0x26f9('0x47')]=Object['create'](_0x32336c),this[_0x26f9('0x3d')]=new Map(),this[_0x26f9('0x57')](_0x26f9('0x9'),null),this[_0x26f9('0x1c')]=null,this[_0x26f9('0x6')]=[],this[_0x26f9('0x5f')]=new _0x21c513(),this[_0x26f9('0xa')]=_0x504534(()=>{this[_0x26f9('0x2c')]();},0xfa,{'leading':!0x1});}[_0x26f9('0x38')](){this[_0x26f9('0xf')]['plugins'][_0x26f9('0x11')](_0xfdb399)[_0x26f9('0x21')]('narrowSidebar',this),this['bodyCollection']=new _0x47a0cf(this[_0x26f9('0xf')][_0x26f9('0x23')]),this[_0x26f9('0x51')]=new _0x197e2a(this[_0x26f9('0xf')][_0x26f9('0x23')]),this[_0x26f9('0x3a')][_0x26f9('0x3b')](),this['bodyCollection']['add'](this['balloonPanelView']);}[_0x26f9('0x1a')](_0x2c130d){this[_0x26f9('0x1c')]=_0x2c130d;const _0x2ad7bd=this[_0x26f9('0xf')][_0x26f9('0x4c')][_0x26f9('0x11')](_0x4b321f),_0x487d91=this[_0x26f9('0x51')];if(_0x2ad7bd[_0x26f9('0x4')]=_0x2c130d,this[_0x26f9('0x17')])throw new _0x5dd69d(_0x26f9('0x13'),this);this[_0x26f9('0x17')]=!0x0,this[_0x26f9('0x31')](_0x2ad7bd,'set:container',()=>{this['detach'](),this[_0x26f9('0x31')](_0x2ad7bd,_0x26f9('0x1'),_0x28f7d3=>{_0x28f7d3[_0x26f9('0x4d')](),this[_0x26f9('0x1a')](_0x2c130d);});}),_0x2ad7bd['_attachToContainer']({'viewClass':_0x26f9('0x41'),'spaceBetweenItems':0x5});const _0x1d8f03=_0x173e77=>{const _0x2c6ee7=new _0x20dcf6(this[_0x26f9('0xf')][_0x26f9('0x23')]);_0x2ad7bd['addAnnotation'](_0x173e77,_0x2c6ee7),this['_annotationToNarrowView'][_0x26f9('0x57')](_0x173e77,_0x2c6ee7),_0x2c6ee7['bind']('isDirty',_0x26f9('0x27'),_0x26f9('0x44'))['to'](_0x173e77[_0x26f9('0xe')],'isDirty',_0x26f9('0x5a'),_0x26f9('0x4e')),_0x2c6ee7['on'](_0x26f9('0x1e'),()=>{this[_0x26f9('0x52')]['clear'](),_0x487d91[_0x26f9('0x18')][_0x26f9('0x43')]!==_0x173e77[_0x26f9('0xe')]?(this[_0x26f9('0x2d')](_0x173e77),_0x173e77[_0x26f9('0xe')]['element'][_0x26f9('0x39')](),this[_0x26f9('0x59')](_0x173e77)):this['setActiveAnnotation'](null);});};for(const _0xac49d4 of _0x2c130d)_0x1d8f03(_0xac49d4);this[_0x26f9('0x31')](_0x2c130d,_0x26f9('0x37'),(_0x51e463,_0x439bae)=>{_0x1d8f03(_0x439bae);}),this[_0x26f9('0x31')](_0x2c130d,'remove',(_0x4de4f0,_0x142a3d,_0x2eb61d)=>{this['_annotationToNarrowView'][_0x26f9('0x11')](_0x142a3d)[_0x26f9('0x16')](),this[_0x26f9('0x3d')][_0x26f9('0x36')](_0x142a3d),_0x2ad7bd[_0x26f9('0x26')]({'removedAnnotation':_0x142a3d,'previousAnnotation':_0x2c130d[_0x26f9('0x11')](_0x2eb61d-0x1),'nextAnnotation':_0x2c130d[_0x26f9('0x11')](_0x2eb61d+0x1)}),_0x142a3d===this[_0x26f9('0x9')]&&this['setActiveAnnotation'](null);},{'priority':_0x26f9('0x2e')}),this[_0x26f9('0x31')](_0x2c130d,_0x26f9('0x39'),(_0x859511,_0x26c176)=>{this[_0x26f9('0x59')](_0x26c176);}),this[_0x26f9('0x31')](_0x2c130d,_0x26f9('0x50'),()=>{this['setActiveAnnotation'](null);}),this[_0x26f9('0x47')][_0x26f9('0x31')](document,_0x26f9('0x5'),(_0x4a8af1,_0x368930)=>{_0x368930[_0x26f9('0x8')]===_0xdf8c02['esc']&&_0x487d91[_0x26f9('0x34')]&&(this[_0x26f9('0x52')][_0x26f9('0x37')](_0x487d91[_0x26f9('0x18')][_0x26f9('0x43')]),this[_0x26f9('0x28')](),_0x368930[_0x26f9('0x12')](),_0x368930[_0x26f9('0x5b')]());}),this[_0x26f9('0x47')]['listenTo'](document,'mousedown',(_0x5e2257,_0x57e94b)=>{const _0x388123=_0x57e94b[_0x26f9('0x20')];_0x487d91['isVisible']&&_0x487d91['element'][_0x26f9('0x3c')](_0x388123)||_0x2ad7bd[_0x26f9('0xe')][_0x26f9('0x48')]['contains'](_0x388123)||_0x5e2257['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements'][_0x26f9('0x4b')](_0x2176bf=>_0x2176bf[_0x26f9('0x3c')](_0x388123))||(this['_manuallyClosedAnnotationViews'][_0x26f9('0x5c')](),this[_0x26f9('0x28')](),this[_0x26f9('0x59')](null));});const _0x5dadbf=this[_0x26f9('0xf')]instanceof _0x55dd71?this[_0x26f9('0xf')][_0x26f9('0x56')]:new _0x21c513([this[_0x26f9('0xf')]]);for(const _0xaccb4f of _0x5dadbf)this[_0x26f9('0x19')](_0xaccb4f);this[_0x26f9('0x31')](_0x5dadbf,_0x26f9('0x37'),(_0x58804a,_0x2195df)=>{this[_0x26f9('0x31')](_0x2195df,_0x26f9('0x14'),()=>{this['_integrateWithEditorAnnotations'](_0x2195df);});}),this[_0x26f9('0x31')](_0x5dadbf,_0x26f9('0x4f'),(_0x500aa0,_0x28388c)=>{_0x28388c['plugins'][_0x26f9('0x30')](_0x26f9('0x2b'))&&this[_0x26f9('0x7')](_0x28388c[_0x26f9('0x4c')]['get']('EditorAnnotations'));}),window[_0x26f9('0x55')](_0x26f9('0x0'),this[_0x26f9('0xa')]),this[_0x26f9('0x2c')]();}['setActiveAnnotation'](_0x2992d6){if(_0x2992d6===this[_0x26f9('0x9')])return;const _0x2554a7=this[_0x26f9('0xf')][_0x26f9('0x4c')][_0x26f9('0x11')](_0x4b321f);if(_0x2554a7[_0x26f9('0x54')]({'blurredAnnotation':this[_0x26f9('0x9')],'activatedAnnotation':_0x2992d6,'disableAnimationOnActivatedAnnotation':!0x0}),_0x2992d6)_0x2554a7['getSidebarItemView'](_0x2992d6)?this[_0x26f9('0x2d')](_0x2992d6):this[_0x26f9('0x28')]();else this[_0x26f9('0x28')]();this[_0x26f9('0x9')]=_0x2992d6;}[_0x26f9('0x29')](){if(!this['isAttached'])throw new _0x5dd69d(_0x26f9('0x1f'),this);this[_0x26f9('0x59')](null);const _0x299bb5=this[_0x26f9('0xf')][_0x26f9('0x4c')][_0x26f9('0x11')](_0x4b321f);this[_0x26f9('0x28')](),Array[_0x26f9('0x1b')](this[_0x26f9('0x3d')][_0x26f9('0x35')](),_0x2b7f40=>_0x2b7f40[_0x26f9('0x16')]()),this[_0x26f9('0x3d')][_0x26f9('0x5c')](),_0x299bb5[_0x26f9('0x4a')](this[_0x26f9('0x1c')]),this['stopListening'](),this[_0x26f9('0x47')]['stopListening'](),this[_0x26f9('0xf')]instanceof _0x55dd71&&this[_0x26f9('0x42')](this[_0x26f9('0xf')]['editors']);for(const _0x366be2 of Array[_0x26f9('0x1b')](this[_0x26f9('0x5f')]))this['_destroyEditorAnnotationsIntegration'](_0x366be2);window[_0x26f9('0x40')](_0x26f9('0x0'),this[_0x26f9('0xa')]),this[_0x26f9('0xa')][_0x26f9('0x22')](),this[_0x26f9('0x6')]=[],this[_0x26f9('0x17')]=!0x1,this[_0x26f9('0x1c')]=null;}[_0x26f9('0x16')](){this[_0x26f9('0x17')]&&this[_0x26f9('0x29')](),this[_0x26f9('0x3a')]['detachFromDom']();}['_integrateWithEditorAnnotations'](_0x34fa65){const _0x4243ee=_0x34fa65[_0x26f9('0x4c')][_0x26f9('0x11')](_0x2fffe9),_0x52b70b=this[_0x26f9('0xf')][_0x26f9('0x4c')]['get'](_0x4b321f),_0x520724=this[_0x26f9('0x1c')],_0x1eea17=this[_0x26f9('0x51')],_0xd5539f=()=>{const _0x3b3e8a=_0x4243ee[_0x26f9('0x60')]({'annotations':this[_0x26f9('0x1c')],'activeAnnotation':this[_0x26f9('0x9')]});this['_setSelectedAnnotations'](_0x3b3e8a),this[_0x26f9('0x59')](_0x3b3e8a[0x0]||null);};this['listenTo'](_0x4243ee,_0x26f9('0x54'),_0xd5539f),this['listenTo'](_0x4243ee,_0x26f9('0x50'),(_0x4350d9,{isAnnotationTracked:_0x46c275})=>{this[_0x26f9('0x9')]&&_0x46c275(this[_0x26f9('0x9')])&&(this[_0x26f9('0xc')]([]),this[_0x26f9('0x59')](null));}),this[_0x26f9('0x31')](_0x4243ee,_0x26f9('0x3f'),()=>{this[_0x26f9('0xa')]();}),this['listenTo'](_0x520724,'blur',_0x3039aa=>{_0x4243ee[_0x26f9('0x10')]()&&_0x3039aa[_0x26f9('0x5d')]();},{'priority':_0x26f9('0x2')}),this['listenTo'](this[_0x26f9('0x47')],'mousedown',(_0x391e59,_0x339a9e)=>{const _0x3d7475=_0x339a9e[_0x26f9('0x20')];_0x1eea17[_0x26f9('0x34')]&&_0x1eea17[_0x26f9('0x48')]['contains'](_0x3d7475)||_0x52b70b[_0x26f9('0xe')][_0x26f9('0x48')][_0x26f9('0x3c')](_0x3d7475)||this[_0x26f9('0x9')]&&_0x4243ee[_0x26f9('0x10')]()&&(_0xd5539f(),_0x391e59[_0x26f9('0x3')]=!0x0);},{'priority':_0x26f9('0x2')}),this[_0x26f9('0x5f')][_0x26f9('0x37')](_0x4243ee);}[_0x26f9('0x7')](_0x457b0b){_0x457b0b&&(this[_0x26f9('0x42')](_0x457b0b),this[_0x26f9('0x5f')][_0x26f9('0x4f')](_0x457b0b));}[_0x26f9('0xc')](_0xeec31b){for(const _0x301f1c of this[_0x26f9('0x6')])_0xeec31b[_0x26f9('0xd')](_0x301f1c)||this[_0x26f9('0x52')][_0x26f9('0x36')](_0x301f1c[_0x26f9('0xe')]);this['_selectedAnnotations']=_0xeec31b;}[_0x26f9('0x2c')](){const _0x3f95e2=this['balloonPanelView'];this[_0x26f9('0x1c')][_0x26f9('0x49')](),_0x3f95e2[_0x26f9('0x34')]&&this[_0x26f9('0x33')]();}[_0x26f9('0x2d')](_0x3839f4){if(this[_0x26f9('0x52')]['has'](_0x3839f4[_0x26f9('0xe')]))return;const _0x652ead=this['balloonPanelView'][_0x26f9('0x18')][_0x26f9('0x43')];_0x652ead!==_0x3839f4[_0x26f9('0xe')]?(_0x652ead&&this[_0x26f9('0x1d')](_0x652ead),this[_0x26f9('0x45')](_0x3839f4['view']),this[_0x26f9('0x51')]['content'][_0x26f9('0x5c')](),this['balloonPanelView']['content'][_0x26f9('0x37')](_0x3839f4[_0x26f9('0xe')]),this[_0x26f9('0x33')]()):this['_updateBalloonPosition']();}[_0x26f9('0x33')](){const _0x50612a=this[_0x26f9('0x51')][_0x26f9('0x18')][_0x26f9('0x43')],_0x39270b=_0x50612a&&this[_0x26f9('0x1c')][_0x26f9('0x58')](_0x50612a);if(!_0x39270b||!this[_0x26f9('0x3d')][_0x26f9('0x30')](_0x39270b))return;const _0x2ad00b=this[_0x26f9('0x3d')][_0x26f9('0x11')](_0x39270b)[_0x26f9('0x48')],_0x3d2a54=function(){const _0x3b0717=_0x197e2a['defaultPositions'];return[_0x3b0717[_0x26f9('0x46')],_0x3b0717[_0x26f9('0x5e')],_0x3b0717[_0x26f9('0xb')],_0x3b0717[_0x26f9('0x3e')],_0x3b0717[_0x26f9('0x2a')],_0x3b0717[_0x26f9('0x32')]];}();this[_0x26f9('0x51')][_0x26f9('0x25')]({'target':_0x2ad00b,'positions':_0x3d2a54});}[_0x26f9('0x28')](){const _0x6b33c7=this[_0x26f9('0x51')],_0x32731a=_0x6b33c7['content'][_0x26f9('0x43')];_0x32731a&&(this[_0x26f9('0x1d')](_0x32731a),_0x6b33c7['unpin'](),_0x6b33c7[_0x26f9('0x18')]['clear']());}[_0x26f9('0x45')](_0xe757f5){this[_0x26f9('0x31')](_0xe757f5,_0x26f9('0x15'),()=>this[_0x26f9('0x33')]()),this['listenTo'](_0xe757f5,_0x26f9('0x53'),(_0x37b8b4,_0x3285a7)=>{this[_0x26f9('0x52')][_0x26f9('0x37')](_0xe757f5),this['_hideBalloon'](),_0x3285a7();});}[_0x26f9('0x1d')](_0x12aff0){this[_0x26f9('0x42')](_0x12aff0);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x45f5=['getIndex','top','bind','nodeType','container','_alignToTargetRect','change:targetRect','_sidebarItemViewToAnnotation','set','targetRect','last','_alignForTopChange','length','_destroySidebarItemView','rearrange','_lastItem','change:_lastItem','_alignBeforeItem','clear','change:bottom','render','push','list','class','isAnimationDisabled','appendChild','define','_recalculate','_getMaxAvailableTop','updateHeight','_alignForBottomChange','target','_targetTop','destroy','change:top','_setItemTop','setContainer','getSidebarItemView','sidebar-setcontainer-invalid-element','minHeight','_recalculateBuffer','context','object','_attachToContainer','bottom','sidebar.container','remove','content','_annotationToSidebarItemView','element','config','unbind','Sidebar','init','_getItemBefore','view','refresh','_activeAnnotation','_spaceBetweenItems','listenTo','_updateLastItem','isActive','max','_annotations','_getItemAfter','sidebar.preventScrollOutOfView','sidebar-attachtocontainer-missing-container','add','stopListening','_createSidebarView','_alignAfterItem','locale','get','_getTargetTop'];(function(_0x4d9c0c,_0x45f51f){const _0x218960=function(_0x4f751b){while(--_0x4f751b){_0x4d9c0c['push'](_0x4d9c0c['shift']());}};_0x218960(++_0x45f51f);}(_0x45f5,0x1aa));const _0x2189=function(_0x4d9c0c,_0x45f51f){_0x4d9c0c=_0x4d9c0c-0x0;let _0x218960=_0x45f5[_0x4d9c0c];return _0x218960;};import{ContextPlugin as _0x20d53e}from'ckeditor5/src/core';import{Rect as _0x15ef73,CKEditorError as _0x512316}from'ckeditor5/src/utils';import _0x5ca520 from'./view/sidebarview';import _0x5e49cc from'./view/sidebaritemview';export default class z extends _0x20d53e{static get['pluginName'](){return _0x2189('0x46');}constructor(_0x459967){super(_0x459967),this['set'](_0x2189('0x21'),void 0x0),this[_0x2189('0x49')]=this[_0x2189('0xd')](),this[_0x2189('0x1a')](_0x2189('0x16'),null),this[_0x2189('0x2')]=0x19,this[_0x2189('0x19')]=new Map(),this[_0x2189('0x42')]=new Map(),this[_0x2189('0x3b')]['config'][_0x2189('0x2c')](_0x2189('0x9'),!0x1),this['_annotations']=null,this[_0x2189('0x1')]=null,this[_0x2189('0x3a')]=[];}[_0x2189('0x47')](){const _0x5c7188=this['context'][_0x2189('0x44')][_0x2189('0x10')](_0x2189('0x3f'));_0x5c7188&&this[_0x2189('0x36')](_0x5c7188);}[_0x2189('0x36')](_0x5317f7){if(!y(_0x5317f7))throw new _0x512316(_0x2189('0x38'));this[_0x2189('0x16')]=_0x5317f7;}[_0x2189('0x3d')]({viewClass:_0x56811a='',spaceBetweenItems:_0x407659=0x19}={}){if(!y(this[_0x2189('0x16')]))throw new _0x512316(_0x2189('0xa'),this);this[_0x2189('0x16')][_0x2189('0x2b')](this[_0x2189('0x49')][_0x2189('0x43')]),this[_0x2189('0x49')][_0x2189('0x29')]=_0x56811a,this[_0x2189('0x2')]=_0x407659;}[_0x2189('0x20')]({removedAnnotation:_0x43e740,previousAnnotation:_0x1b97fa,nextAnnotation:_0x368da7}){const _0xc9341a=this[_0x2189('0x37')](_0x43e740);this[_0x2189('0x49')][_0x2189('0x28')]['remove'](_0xc9341a),this[_0x2189('0x1f')](_0x43e740),_0x1b97fa&&this[_0x2189('0x17')](this[_0x2189('0x37')](_0x1b97fa)),_0x368da7&&this[_0x2189('0x17')](this[_0x2189('0x37')](_0x368da7)),this[_0x2189('0x4')]();}[_0x2189('0x0')]({blurredAnnotation:_0x364ced,activatedAnnotation:_0x4a103b,disableAnimationOnActivatedAnnotation:_0x4d0dcf}){if(this[_0x2189('0x1')]=_0x4a103b,_0x364ced){_0x364ced[_0x2189('0x5')]=!0x1;const _0x23527b=this[_0x2189('0x37')](_0x364ced);_0x23527b&&_0x4d0dcf&&(_0x23527b[_0x2189('0x2a')]=!0x1);}if(_0x4a103b){const _0x457b2d=this[_0x2189('0x37')](_0x4a103b);_0x457b2d&&(_0x4a103b[_0x2189('0x5')]=!0x0,_0x4d0dcf&&(_0x457b2d[_0x2189('0x2a')]=!0x0,_0x457b2d['top']+=0x1),this[_0x2189('0x17')](_0x457b2d));}}['_detachFromContainer'](_0x58e6f3){if(this[_0x2189('0x49')][_0x2189('0x43')][_0x2189('0x40')](),_0x58e6f3)for(const _0x1c537c of _0x58e6f3)this[_0x2189('0x1f')](_0x1c537c);this[_0x2189('0x49')][_0x2189('0x28')][_0x2189('0x24')](),this[_0x2189('0x49')][_0x2189('0x29')]='',this[_0x2189('0x21')]=null;}['addAnnotation'](_0x5dd825,_0xf6c805){_0xf6c805||(_0xf6c805=_0x5dd825[_0x2189('0x49')]);const _0x2bc799=new _0x5e49cc(this[_0x2189('0x3b')][_0x2189('0xf')]);this[_0x2189('0x19')][_0x2189('0x1a')](_0x2bc799,_0x5dd825),this[_0x2189('0x42')]['set'](_0x5dd825,_0x2bc799),_0x2bc799[_0x2189('0x41')]['add'](_0xf6c805),this['listenTo'](_0x5dd825[_0x2189('0x49')],_0x2189('0x18'),(_0x4c49d2,_0x438feb,_0x3fa413)=>{const _0x3b1af5=this[_0x2189('0x11')](_0x5dd825,_0x3fa413);_0x2bc799[_0x2189('0x32')]!=_0x3b1af5&&(_0x2bc799[_0x2189('0x32')]=_0x3b1af5,this[_0x2189('0x35')](_0x2bc799,_0x3b1af5));}),this[_0x2189('0x3')](_0x2bc799,_0x2189('0x34'),()=>{this['_recalculate'](_0x2bc799,_0x2189('0x13'));}),this[_0x2189('0x3')](_0x2bc799,_0x2189('0x25'),()=>{this[_0x2189('0x2d')](_0x2bc799,_0x2189('0x3e'));}),this['_alignToTargetRect'](_0x2bc799);const _0x93b1a=this[_0x2189('0x48')](_0x2bc799);if(_0x93b1a)this[_0x2189('0xe')](_0x93b1a,_0x2bc799)||this[_0x2189('0x17')](_0x2bc799);else this[_0x2189('0x17')](_0x2bc799);return this[_0x2189('0x4')](),this['view'][_0x2189('0x28')][_0x2189('0xb')](_0x2bc799),_0x2bc799;}[_0x2189('0x1d')](_0x1a36f3){if(!_0x1a36f3['content'][_0x2189('0x1e')])return;const _0x3f1ce9=this[_0x2189('0x48')](_0x1a36f3);if(!_0x3f1ce9)return;const _0xbf8f86=this[_0x2189('0x19')][_0x2189('0x10')](_0x3f1ce9),_0x52b316=this[_0x2189('0x1')];_0x52b316&&_0x52b316===_0xbf8f86?this[_0x2189('0xe')](_0x3f1ce9,_0x1a36f3):this['_alignBeforeItem'](_0x1a36f3,_0x3f1ce9);}[_0x2189('0x30')](_0x2dc711){if(!_0x2dc711[_0x2189('0x41')]['length'])return;const _0x220177=this[_0x2189('0x8')](_0x2dc711);if(!_0x220177)return;const _0x22ebe0=this[_0x2189('0x19')][_0x2189('0x10')](_0x220177),_0x546980=this['context'][_0x2189('0x44')][_0x2189('0x10')](_0x2189('0x9')),_0x7ddc78=this[_0x2189('0x1')];_0x7ddc78&&_0x7ddc78===_0x22ebe0&&_0x546980?(this[_0x2189('0x23')](_0x220177,_0x2dc711),this[_0x2189('0xe')](_0x2dc711,_0x220177)):_0x7ddc78&&_0x7ddc78===_0x22ebe0?this[_0x2189('0x23')](_0x220177,_0x2dc711):this[_0x2189('0xe')](_0x2dc711,_0x220177);}[_0x2189('0x2d')](_0x441927,_0x26be37){0x0===this[_0x2189('0x3a')][_0x2189('0x1e')]&&setTimeout(()=>{for(const {sidebarItemView:_0x553d22,changedProp:_0x48963f}of this[_0x2189('0x3a')])'top'===_0x48963f?this[_0x2189('0x1d')](_0x553d22):this['_alignForBottomChange'](_0x553d22);this[_0x2189('0x3a')]=[];},0xa),this['_recalculateBuffer'][_0x2189('0x27')]({'sidebarItemView':_0x441927,'changedProp':_0x26be37});}['getSidebarItemView'](_0x59d6cc){return this[_0x2189('0x42')][_0x2189('0x10')](_0x59d6cc);}['destroy'](){this[_0x2189('0xc')](),this[_0x2189('0x49')]['destroy']();}[_0x2189('0x1f')](_0x3ae66f){const _0xd09454=this[_0x2189('0x37')](_0x3ae66f);this[_0x2189('0xc')](_0xd09454),this['stopListening'](_0x3ae66f[_0x2189('0x49')]),_0xd09454[_0x2189('0x33')](),this['_annotationToSidebarItemView']['delete'](_0x3ae66f),this['_sidebarItemViewToAnnotation']['delete'](_0xd09454);}['_createSidebarView'](){const _0x746121=new _0x5ca520(this[_0x2189('0x3b')][_0x2189('0xf')]);return _0x746121[_0x2189('0x26')](),this['on'](_0x2189('0x22'),(_0x921320,_0xb8f49a,_0x2f707b,_0x455b53)=>{_0x455b53&&_0x746121[_0x2189('0x45')](_0x2189('0x39')),_0x2f707b?_0x746121[_0x2189('0x14')]('minHeight')['to'](_0x2f707b,'bottom'):_0x746121[_0x2189('0x39')]=null;}),_0x746121;}['_updateLastItem'](){var _0x36b40c;this[_0x2189('0x21')]=(null===(_0x36b40c=this['_annotations'])||void 0x0===_0x36b40c?void 0x0:_0x36b40c[_0x2189('0x1c')])?this[_0x2189('0x37')](this['_annotations']['last']):null;}[_0x2189('0x48')](_0x554801){var _0x3c1135;const _0x11b28d=this[_0x2189('0x19')][_0x2189('0x10')](_0x554801),_0x987980=_0x11b28d&&(null===(_0x3c1135=this[_0x2189('0x7')])||void 0x0===_0x3c1135?void 0x0:_0x3c1135[_0x2189('0x10')](this[_0x2189('0x7')][_0x2189('0x12')](_0x11b28d)-0x1));return _0x987980&&this['getSidebarItemView'](_0x987980)||null;}[_0x2189('0x8')](_0x540fb4){var _0xedfd7d;const _0x30c0a0=this[_0x2189('0x19')]['get'](_0x540fb4),_0x2a0c05=_0x30c0a0&&(null===(_0xedfd7d=this[_0x2189('0x7')])||void 0x0===_0xedfd7d?void 0x0:_0xedfd7d[_0x2189('0x10')](this[_0x2189('0x7')][_0x2189('0x12')](_0x30c0a0)+0x1));return _0x2a0c05&&this[_0x2189('0x37')](_0x2a0c05)||null;}[_0x2189('0x23')](_0x525264,_0x504bcf){_0x525264['updateHeight']();const _0x4703e4=H(_0x504bcf['bottom']+this[_0x2189('0x2')],_0x525264[_0x2189('0x13')]);return!!_0x4703e4&&(this[_0x2189('0x35')](_0x504bcf,_0x504bcf[_0x2189('0x13')]-_0x4703e4),!0x0);}['_alignAfterItem'](_0x2f35b0,_0x4a6c3b){_0x2f35b0['updateHeight']();const _0x54509c=H(_0x2f35b0[_0x2189('0x3e')]+this[_0x2189('0x2')],_0x4a6c3b[_0x2189('0x13')]);return!!_0x54509c&&(this['_setItemTop'](_0x4a6c3b,_0x4a6c3b['top']+_0x54509c,!0x1),!0x0);}[_0x2189('0x17')](_0x3d83be){const _0x32fbe5=this[_0x2189('0x19')][_0x2189('0x10')](_0x3d83be);if(!_0x32fbe5||!_0x32fbe5[_0x2189('0x31')]||!_0x32fbe5[_0x2189('0x1b')])return;const _0x214926=this[_0x2189('0x11')](_0x32fbe5,_0x32fbe5[_0x2189('0x1b')]);this['_setItemTop'](_0x3d83be,_0x214926);}[_0x2189('0x11')](_0x31ea01,_0x196385){if(null===_0x196385)return 0x0;if(_0x31ea01[_0x2189('0x31')]instanceof _0x15ef73)return _0x196385[_0x2189('0x13')];{const _0x3742b9=new _0x15ef73(this[_0x2189('0x49')]['element'])[_0x2189('0x13')];return _0x196385[_0x2189('0x13')]-_0x3742b9;}}['_setItemTop'](_0x12218c,_0x3cfabf,_0x3a814d=this[_0x2189('0x3b')]['config']['get'](_0x2189('0x9'))){_0x3a814d&&(_0x3cfabf=Math[_0x2189('0x6')](_0x3cfabf,this['_getMaxAvailableTop'](_0x12218c))),_0x12218c['top']=_0x3cfabf;}[_0x2189('0x2e')](_0x2b63a7){let _0x5ccf71=this[_0x2189('0x48')](_0x2b63a7),_0x4fe958=0x0;for(;_0x5ccf71;)_0x5ccf71[_0x2189('0x2f')](),_0x4fe958+=this['_spaceBetweenItems']+_0x5ccf71['height'],_0x5ccf71=this[_0x2189('0x48')](_0x5ccf71);return _0x4fe958;}}function H(_0x5cca78,_0x487cb2){return Math[_0x2189('0x6')](_0x5cca78-_0x487cb2,0x0);}function y(_0x43b9a5){return null!==_0x43b9a5&&_0x2189('0x3c')==typeof _0x43b9a5&&0x1===_0x43b9a5[_0x2189('0x15')];}
23
+ const _0x57bc=['unbind','content','context','_activeAnnotation','sidebar-attachtocontainer-missing-container','minHeight','bind','Sidebar','sidebar-setcontainer-invalid-element','class','_recalculate','add','_createSidebarView','_annotations','change:bottom','getIndex','_destroySidebarItemView','view','listenTo','bottom','last','delete','target','_targetTop','_annotationToSidebarItemView','isAnimationDisabled','render','max','define','_getTargetTop','list','_attachToContainer','_setItemTop','object','_spaceBetweenItems','change:_lastItem','_recalculateBuffer','stopListening','clear','length','change:top','_sidebarItemViewToAnnotation','_alignBeforeItem','locale','init','push','get','config','_getItemBefore','_lastItem','sidebar.preventScrollOutOfView','updateHeight','_alignForTopChange','_updateLastItem','getSidebarItemView','top','remove','_getItemAfter','_alignForBottomChange','destroy','set','setContainer','element','rearrange','addAnnotation','_alignAfterItem','isActive','container'];(function(_0x7e4833,_0x57bc89){const _0x310f28=function(_0x16610f){while(--_0x16610f){_0x7e4833['push'](_0x7e4833['shift']());}};_0x310f28(++_0x57bc89);}(_0x57bc,0x85));const _0x310f=function(_0x7e4833,_0x57bc89){_0x7e4833=_0x7e4833-0x0;let _0x310f28=_0x57bc[_0x7e4833];return _0x310f28;};import{ContextPlugin as _0x189ad6}from'ckeditor5/src/core';import{Rect as _0x5e43c7,CKEditorError as _0x2c725b}from'ckeditor5/src/utils';import _0x28fafc from'./view/sidebarview';import _0x103a9b from'./view/sidebaritemview';export default class z extends _0x189ad6{static get['pluginName'](){return _0x310f('0xa');}constructor(_0x359a52){super(_0x359a52),this[_0x310f('0x3f')]('_lastItem',void 0x0),this[_0x310f('0x14')]=this[_0x310f('0xf')](),this[_0x310f('0x3f')]('container',null),this[_0x310f('0x25')]=0x19,this[_0x310f('0x2c')]=new Map(),this['_annotationToSidebarItemView']=new Map(),this['context'][_0x310f('0x32')][_0x310f('0x1f')](_0x310f('0x35'),!0x1),this[_0x310f('0x10')]=null,this[_0x310f('0x6')]=null,this[_0x310f('0x27')]=[];}[_0x310f('0x2f')](){const _0x3e24a9=this[_0x310f('0x5')][_0x310f('0x32')][_0x310f('0x31')]('sidebar.container');_0x3e24a9&&this[_0x310f('0x40')](_0x3e24a9);}[_0x310f('0x40')](_0x5ac23a){if(!y(_0x5ac23a))throw new _0x2c725b(_0x310f('0xb'));this[_0x310f('0x2')]=_0x5ac23a;}[_0x310f('0x22')]({viewClass:_0x3d2ac7='',spaceBetweenItems:_0xabbc1c=0x19}={}){if(!y(this[_0x310f('0x2')]))throw new _0x2c725b(_0x310f('0x7'),this);this[_0x310f('0x2')]['appendChild'](this['view']['element']),this['view'][_0x310f('0xc')]=_0x3d2ac7,this[_0x310f('0x25')]=_0xabbc1c;}[_0x310f('0x42')]({removedAnnotation:_0x18e5f5,previousAnnotation:_0x11720a,nextAnnotation:_0x1f77a8}){const _0x45973c=this['getSidebarItemView'](_0x18e5f5);this[_0x310f('0x14')][_0x310f('0x21')][_0x310f('0x3b')](_0x45973c),this[_0x310f('0x13')](_0x18e5f5),_0x11720a&&this['_alignToTargetRect'](this[_0x310f('0x39')](_0x11720a)),_0x1f77a8&&this['_alignToTargetRect'](this[_0x310f('0x39')](_0x1f77a8)),this[_0x310f('0x38')]();}['refresh']({blurredAnnotation:_0x21746c,activatedAnnotation:_0x2cab24,disableAnimationOnActivatedAnnotation:_0x4911cb}){if(this[_0x310f('0x6')]=_0x2cab24,_0x21746c){_0x21746c[_0x310f('0x1')]=!0x1;const _0x34895a=this['getSidebarItemView'](_0x21746c);_0x34895a&&_0x4911cb&&(_0x34895a[_0x310f('0x1c')]=!0x1);}if(_0x2cab24){const _0x3005cb=this['getSidebarItemView'](_0x2cab24);_0x3005cb&&(_0x2cab24[_0x310f('0x1')]=!0x0,_0x4911cb&&(_0x3005cb['isAnimationDisabled']=!0x0,_0x3005cb['top']+=0x1),this['_alignToTargetRect'](_0x3005cb));}}['_detachFromContainer'](_0x5f2b5d){if(this[_0x310f('0x14')][_0x310f('0x41')][_0x310f('0x3b')](),_0x5f2b5d)for(const _0x54679f of _0x5f2b5d)this[_0x310f('0x13')](_0x54679f);this[_0x310f('0x14')][_0x310f('0x21')][_0x310f('0x29')](),this[_0x310f('0x14')][_0x310f('0xc')]='',this[_0x310f('0x34')]=null;}[_0x310f('0x43')](_0x46f998,_0x248bea){_0x248bea||(_0x248bea=_0x46f998[_0x310f('0x14')]);const _0x458816=new _0x103a9b(this['context'][_0x310f('0x2e')]);this[_0x310f('0x2c')][_0x310f('0x3f')](_0x458816,_0x46f998),this[_0x310f('0x1b')]['set'](_0x46f998,_0x458816),_0x458816[_0x310f('0x4')][_0x310f('0xe')](_0x248bea),this[_0x310f('0x15')](_0x46f998[_0x310f('0x14')],'change:targetRect',(_0x380158,_0x5c9422,_0x3f9a91)=>{const _0x23ccad=this[_0x310f('0x20')](_0x46f998,_0x3f9a91);_0x458816[_0x310f('0x1a')]!=_0x23ccad&&(_0x458816[_0x310f('0x1a')]=_0x23ccad,this[_0x310f('0x23')](_0x458816,_0x23ccad));}),this[_0x310f('0x15')](_0x458816,_0x310f('0x2b'),()=>{this['_recalculate'](_0x458816,_0x310f('0x3a'));}),this[_0x310f('0x15')](_0x458816,_0x310f('0x11'),()=>{this[_0x310f('0xd')](_0x458816,_0x310f('0x16'));}),this['_alignToTargetRect'](_0x458816);const _0x1b2dc4=this[_0x310f('0x33')](_0x458816);if(_0x1b2dc4)this[_0x310f('0x0')](_0x1b2dc4,_0x458816)||this['_alignToTargetRect'](_0x458816);else this['_alignToTargetRect'](_0x458816);return this[_0x310f('0x38')](),this[_0x310f('0x14')][_0x310f('0x21')][_0x310f('0xe')](_0x458816),_0x458816;}['_alignForTopChange'](_0x4d3823){if(!_0x4d3823[_0x310f('0x4')]['length'])return;const _0x511dde=this[_0x310f('0x33')](_0x4d3823);if(!_0x511dde)return;const _0x11facc=this[_0x310f('0x2c')]['get'](_0x511dde),_0x4ea4ee=this['_activeAnnotation'];_0x4ea4ee&&_0x4ea4ee===_0x11facc?this[_0x310f('0x0')](_0x511dde,_0x4d3823):this[_0x310f('0x2d')](_0x4d3823,_0x511dde);}[_0x310f('0x3d')](_0x53559c){if(!_0x53559c[_0x310f('0x4')][_0x310f('0x2a')])return;const _0x2115e8=this[_0x310f('0x3c')](_0x53559c);if(!_0x2115e8)return;const _0x21ef2f=this[_0x310f('0x2c')][_0x310f('0x31')](_0x2115e8),_0x1cf946=this[_0x310f('0x5')][_0x310f('0x32')]['get'](_0x310f('0x35')),_0x1eaa2a=this[_0x310f('0x6')];_0x1eaa2a&&_0x1eaa2a===_0x21ef2f&&_0x1cf946?(this[_0x310f('0x2d')](_0x2115e8,_0x53559c),this['_alignAfterItem'](_0x53559c,_0x2115e8)):_0x1eaa2a&&_0x1eaa2a===_0x21ef2f?this[_0x310f('0x2d')](_0x2115e8,_0x53559c):this['_alignAfterItem'](_0x53559c,_0x2115e8);}[_0x310f('0xd')](_0x3b8101,_0x59f7bd){0x0===this[_0x310f('0x27')]['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x3c1ad8,changedProp:_0x291d61}of this[_0x310f('0x27')])_0x310f('0x3a')===_0x291d61?this[_0x310f('0x37')](_0x3c1ad8):this['_alignForBottomChange'](_0x3c1ad8);this[_0x310f('0x27')]=[];},0xa),this[_0x310f('0x27')][_0x310f('0x30')]({'sidebarItemView':_0x3b8101,'changedProp':_0x59f7bd});}[_0x310f('0x39')](_0x5a0043){return this[_0x310f('0x1b')][_0x310f('0x31')](_0x5a0043);}[_0x310f('0x3e')](){this[_0x310f('0x28')](),this[_0x310f('0x14')][_0x310f('0x3e')]();}[_0x310f('0x13')](_0x2cf80e){const _0x176a87=this[_0x310f('0x39')](_0x2cf80e);this[_0x310f('0x28')](_0x176a87),this[_0x310f('0x28')](_0x2cf80e['view']),_0x176a87[_0x310f('0x3e')](),this[_0x310f('0x1b')][_0x310f('0x18')](_0x2cf80e),this['_sidebarItemViewToAnnotation'][_0x310f('0x18')](_0x176a87);}[_0x310f('0xf')](){const _0x30bdc5=new _0x28fafc(this[_0x310f('0x5')][_0x310f('0x2e')]);return _0x30bdc5[_0x310f('0x1d')](),this['on'](_0x310f('0x26'),(_0x24c0d8,_0x14e315,_0x254f8c,_0x2cd8e6)=>{_0x2cd8e6&&_0x30bdc5[_0x310f('0x3')](_0x310f('0x8')),_0x254f8c?_0x30bdc5[_0x310f('0x9')](_0x310f('0x8'))['to'](_0x254f8c,_0x310f('0x16')):_0x30bdc5[_0x310f('0x8')]=null;}),_0x30bdc5;}['_updateLastItem'](){var _0x355388;this[_0x310f('0x34')]=(null===(_0x355388=this[_0x310f('0x10')])||void 0x0===_0x355388?void 0x0:_0x355388[_0x310f('0x17')])?this[_0x310f('0x39')](this[_0x310f('0x10')][_0x310f('0x17')]):null;}[_0x310f('0x33')](_0x48fe79){var _0x51a2cf;const _0x175c19=this['_sidebarItemViewToAnnotation'][_0x310f('0x31')](_0x48fe79),_0x4c9b6e=_0x175c19&&(null===(_0x51a2cf=this[_0x310f('0x10')])||void 0x0===_0x51a2cf?void 0x0:_0x51a2cf[_0x310f('0x31')](this[_0x310f('0x10')]['getIndex'](_0x175c19)-0x1));return _0x4c9b6e&&this['getSidebarItemView'](_0x4c9b6e)||null;}['_getItemAfter'](_0x2d04c8){var _0x292a0e;const _0x42bb9a=this['_sidebarItemViewToAnnotation'][_0x310f('0x31')](_0x2d04c8),_0x3c820e=_0x42bb9a&&(null===(_0x292a0e=this['_annotations'])||void 0x0===_0x292a0e?void 0x0:_0x292a0e[_0x310f('0x31')](this[_0x310f('0x10')][_0x310f('0x12')](_0x42bb9a)+0x1));return _0x3c820e&&this[_0x310f('0x39')](_0x3c820e)||null;}[_0x310f('0x2d')](_0x14a015,_0x5d0c60){_0x14a015[_0x310f('0x36')]();const _0x560136=H(_0x5d0c60[_0x310f('0x16')]+this['_spaceBetweenItems'],_0x14a015[_0x310f('0x3a')]);return!!_0x560136&&(this[_0x310f('0x23')](_0x5d0c60,_0x5d0c60[_0x310f('0x3a')]-_0x560136),!0x0);}[_0x310f('0x0')](_0x57a370,_0x22c474){_0x57a370[_0x310f('0x36')]();const _0x29c962=H(_0x57a370[_0x310f('0x16')]+this[_0x310f('0x25')],_0x22c474['top']);return!!_0x29c962&&(this[_0x310f('0x23')](_0x22c474,_0x22c474['top']+_0x29c962,!0x1),!0x0);}['_alignToTargetRect'](_0x46e059){const _0x581b65=this[_0x310f('0x2c')][_0x310f('0x31')](_0x46e059);if(!_0x581b65||!_0x581b65[_0x310f('0x19')]||!_0x581b65['targetRect'])return;const _0x54419b=this['_getTargetTop'](_0x581b65,_0x581b65['targetRect']);this[_0x310f('0x23')](_0x46e059,_0x54419b);}[_0x310f('0x20')](_0x8dbaab,_0x1f42a8){if(null===_0x1f42a8)return 0x0;if(_0x8dbaab['target']instanceof _0x5e43c7)return _0x1f42a8[_0x310f('0x3a')];{const _0x46f211=new _0x5e43c7(this[_0x310f('0x14')]['element'])[_0x310f('0x3a')];return _0x1f42a8[_0x310f('0x3a')]-_0x46f211;}}['_setItemTop'](_0x1c18fc,_0x34b873,_0x17200a=this['context'][_0x310f('0x32')][_0x310f('0x31')](_0x310f('0x35'))){_0x17200a&&(_0x34b873=Math[_0x310f('0x1e')](_0x34b873,this['_getMaxAvailableTop'](_0x1c18fc))),_0x1c18fc[_0x310f('0x3a')]=_0x34b873;}['_getMaxAvailableTop'](_0x46a687){let _0x487c7c=this[_0x310f('0x33')](_0x46a687),_0xec23ec=0x0;for(;_0x487c7c;)_0x487c7c[_0x310f('0x36')](),_0xec23ec+=this[_0x310f('0x25')]+_0x487c7c['height'],_0x487c7c=this[_0x310f('0x33')](_0x487c7c);return _0xec23ec;}}function H(_0x2c1224,_0xed06eb){return Math['max'](_0x2c1224-_0xed06eb,0x0);}function y(_0x3c2355){return null!==_0x3c2355&&_0x310f('0x24')==typeof _0x3c2355&&0x1===_0x3c2355['nodeType'];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4480=['children','setTemplate','_badge','number','counterView','bindTemplate','ck-annotation-counter__badge','extendTemplate','ck-annotation-counter__badge--edit-mode','ck-annotation-counter','ck-annotation-counter__badge--','add','isDirty','annotationType','span','bind','toString','set','icon'];(function(_0x25d0cf,_0x448028){const _0xdbf0cf=function(_0x56ff5e){while(--_0x56ff5e){_0x25d0cf['push'](_0x25d0cf['shift']());}};_0xdbf0cf(++_0x448028);}(_0x4480,0x102));const _0xdbf0=function(_0x25d0cf,_0x448028){_0x25d0cf=_0x25d0cf-0x0;let _0xdbf0cf=_0x4480[_0x25d0cf];return _0xdbf0cf;};import{ButtonView as _0x58c265,View as _0x3afdf7}from'ckeditor5/src/ui';import _0x1621e6 from'../../../theme/icons/add-comment.svg';export default class D extends _0x58c265{constructor(_0x5a71c4){super(_0x5a71c4);const _0x84ce9f=this[_0xdbf0('0xd')];this[_0xdbf0('0x6')](_0xdbf0('0x1'),!0x1),this[_0xdbf0('0x6')](_0xdbf0('0xb'),0x0),this[_0xdbf0('0x4')](_0xdbf0('0xa'))['to'](this,_0xdbf0('0x1'),this,_0xdbf0('0xb'),(_0x393d51,_0xb6c117)=>_0x393d51?'...':_0xb6c117[_0xdbf0('0x5')]()),this[_0xdbf0('0x6')]('annotationType',''),this[_0xdbf0('0x7')]=_0x1621e6,this[_0xdbf0('0xf')]({'attributes':{'class':[_0xdbf0('0x11')]}}),this[_0xdbf0('0xc')]=new _0x3afdf7(),this[_0xdbf0('0xc')][_0xdbf0('0x9')]({'tag':_0xdbf0('0x3'),'attributes':{'class':[_0xdbf0('0xe'),_0x84ce9f['to'](_0xdbf0('0x2'),_0x5bb0ef=>_0xdbf0('0x12')+_0x5bb0ef),_0x84ce9f['if'](_0xdbf0('0x1'),_0xdbf0('0x10'))]},'children':[{'text':_0x84ce9f['to'](_0xdbf0('0xa'))}]}),this[_0xdbf0('0x8')][_0xdbf0('0x0')](this['counterView']);}}
23
+ const _0x5467=['add','bind','extendTemplate','counterView','isDirty','set','number','ck-annotation-counter__badge--','annotationType','toString','ck-annotation-counter__badge--edit-mode','_badge','setTemplate','span','...'];(function(_0x55cf27,_0x5467a3){const _0x44bb3a=function(_0x9ad1a0){while(--_0x9ad1a0){_0x55cf27['push'](_0x55cf27['shift']());}};_0x44bb3a(++_0x5467a3);}(_0x5467,0x1cc));const _0x44bb=function(_0x55cf27,_0x5467a3){_0x55cf27=_0x55cf27-0x0;let _0x44bb3a=_0x5467[_0x55cf27];return _0x44bb3a;};import{ButtonView as _0x5962ac,View as _0x50a255}from'ckeditor5/src/ui';import _0x11b598 from'../../../theme/icons/add-comment.svg';export default class D extends _0x5962ac{constructor(_0x184eb0){super(_0x184eb0);const _0x39de8c=this['bindTemplate'];this[_0x44bb('0xa')]('isDirty',!0x1),this[_0x44bb('0xa')]('number',0x0),this[_0x44bb('0x6')](_0x44bb('0x1'))['to'](this,_0x44bb('0x9'),this,_0x44bb('0xb'),(_0x501e08,_0x1b8a15)=>_0x501e08?_0x44bb('0x4'):_0x1b8a15[_0x44bb('0xe')]()),this['set']('annotationType',''),this['icon']=_0x11b598,this[_0x44bb('0x7')]({'attributes':{'class':['ck-annotation-counter']}}),this[_0x44bb('0x8')]=new _0x50a255(),this[_0x44bb('0x8')][_0x44bb('0x2')]({'tag':_0x44bb('0x3'),'attributes':{'class':['ck-annotation-counter__badge',_0x39de8c['to'](_0x44bb('0xd'),_0x3dd307=>_0x44bb('0xc')+_0x3dd307),_0x39de8c['if']('isDirty',_0x44bb('0x0'))]},'children':[{'text':_0x39de8c['to'](_0x44bb('0x1'))}]}),this['children'][_0x44bb('0x5')](this[_0x44bb('0x8')]);}}