@ckeditor/ckeditor5-comments 0.0.0-nightly-20231219.0 → 0.0.0-nightly-20231220.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-20231219.0",
3
+ "version": "0.0.0-nightly-20231220.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/)",
@@ -44,8 +44,8 @@
44
44
  "CHANGELOG.md"
45
45
  ],
46
46
  "dependencies": {
47
- "ckeditor5": "0.0.0-nightly-20231219.0",
48
- "ckeditor5-collaboration": "0.0.0-nightly-20231219.0",
47
+ "ckeditor5": "0.0.0-nightly-20231220.0",
48
+ "ckeditor5-collaboration": "0.0.0-nightly-20231220.0",
49
49
  "lodash-es": "4.17.21"
50
50
  },
51
51
  "types": "src/index.d.ts",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1f8d=['item','length','isActive','every','stopListening','isVisible','view','element','object','focusTracker','focusableElements','isArray','function','_assertCorrectTarget','clear','target','mainView','_type','destroy','updateTargetRect','nodeType','_getNormalizedTarget','annotation-invalid-target','render','set','add','_id','refreshVisibility','innerView','remove','_target','targetRect'];(function(_0x43bf7e,_0x1f8df8){const _0x5f5c7d=function(_0x3e7855){while(--_0x3e7855){_0x43bf7e['push'](_0x43bf7e['shift']());}};_0x5f5c7d(++_0x1f8df8);}(_0x1f8d,0x75));const _0x5f5c=function(_0x43bf7e,_0x1f8df8){_0x43bf7e=_0x43bf7e-0x0;let _0x5f5c7d=_0x1f8d[_0x43bf7e];return _0x5f5c7d;};import{CKEditorError as _0x453d4a,Rect as _0x39f4c6,Collection as _0xffd559,ObservableMixin as _0x570e24}from'ckeditor5/src/utils.js';export default class d extends _0x570e24(){constructor({view:_0x2f28e3,target:_0x3447f8,type:_0x7c3dd6,isVisible:_0x5ac082=!0x0}){super(),this[_0x5f5c('0x11')]=_0x2f28e3,this['view']['element']||this['view'][_0x5f5c('0x2')](),this[_0x5f5c('0x1c')]=_0x7c3dd6,this[_0x5f5c('0x9')]=_0x3447f8,d[_0x5f5c('0x18')](this[_0x5f5c('0x0')]()),this[_0x5f5c('0x15')]=new _0xffd559([this[_0x5f5c('0x11')][_0x5f5c('0x12')]],{'idProperty':_0x5f5c('0x5')}),this[_0x5f5c('0x15')]['on'](_0x5f5c('0x4'),(_0x5a10e1,_0x11f3df)=>{this[_0x5f5c('0x11')]['focusTracker'][_0x5f5c('0x4')](_0x11f3df);}),this[_0x5f5c('0x15')]['on']('remove',(_0x15894e,_0xa8a7c0)=>{this[_0x5f5c('0x11')][_0x5f5c('0x14')][_0x5f5c('0x8')](_0xa8a7c0);}),this[_0x5f5c('0x3')](_0x5f5c('0x10'),_0x5ac082);}get['type'](){return _0x5f5c('0x17')==typeof this[_0x5f5c('0x1c')]?this[_0x5f5c('0x1c')]():this[_0x5f5c('0x1c')];}get[_0x5f5c('0x7')](){return this[_0x5f5c('0x11')][_0x5f5c('0x1b')];}get[_0x5f5c('0x1a')](){const _0x5a2d84=this[_0x5f5c('0x0')]();return d['_assertCorrectTarget'](_0x5a2d84),_0x5a2d84;}get[_0x5f5c('0xa')](){const _0x2ab2d8=this[_0x5f5c('0x1a')];if(null===_0x2ab2d8)return null;if(_0x2ab2d8 instanceof _0x39f4c6)return _0x2ab2d8;const _0x3ef8ca=_0x2ab2d8['filter'](_0x1c7d77=>function(_0x966fa8){const _0x4a15dd=_0x966fa8['offsetParent'];if(_0x4a15dd)return!0x0;const _0x59bdc4=_0x966fa8['getClientRects']()[_0x5f5c('0xb')](0x0);return!!_0x59bdc4;}(_0x1c7d77));return 0x0===_0x3ef8ca[_0x5f5c('0xc')]?null:new _0x39f4c6(_0x3ef8ca[0x0]['getClientRects']()[_0x5f5c('0xb')](0x0));}get[_0x5f5c('0xd')](){return this[_0x5f5c('0x11')][_0x5f5c('0xd')];}set[_0x5f5c('0xd')](_0x102ba8){this[_0x5f5c('0x11')]['isActive']=_0x102ba8,this['view'][_0x5f5c('0x1b')][_0x5f5c('0xd')]=_0x102ba8;}[_0x5f5c('0x1e')](){this[_0x5f5c('0x11')][_0x5f5c('0xa')]=this[_0x5f5c('0xa')];}[_0x5f5c('0x1d')](){this['focusableElements'][_0x5f5c('0xf')](),this[_0x5f5c('0x15')][_0x5f5c('0x19')](),this['stopListening']();}[_0x5f5c('0x6')](){this[_0x5f5c('0x10')]=!!this[_0x5f5c('0xa')];}static[_0x5f5c('0x18')](_0x1f4430){if(!(null===_0x1f4430||_0x1f4430 instanceof _0x39f4c6||Array[_0x5f5c('0x16')](_0x1f4430)&&_0x1f4430[_0x5f5c('0xe')](_0x5ba4d2=>y(_0x5ba4d2))))throw new _0x453d4a(_0x5f5c('0x1'),null,{'target':_0x1f4430});}[_0x5f5c('0x0')](){const _0x304fad='function'==typeof this[_0x5f5c('0x9')]?this[_0x5f5c('0x9')]():this[_0x5f5c('0x9')];return y(_0x304fad)?[_0x304fad]:_0x304fad;}}function y(_0x2c7af6){return null!==_0x2c7af6&&_0x5f5c('0x13')==typeof _0x2c7af6&&_0x5f5c('0x1f')in _0x2c7af6&&0x1===_0x2c7af6[_0x5f5c('0x1f')];}
23
+ const _0x4a63=['type','isVisible','annotation-invalid-target','clear','_id','_assertCorrectTarget','focusTracker','length','item','_type','mainView','focusableElements','nodeType','object','refreshVisibility','destroy','targetRect','_getNormalizedTarget','set','function','isActive','_target','element','view','filter','stopListening','offsetParent','every','getClientRects','target','innerView','updateTargetRect','add','remove'];(function(_0x2f4a25,_0x4a63e5){const _0x15cc8d=function(_0x728740){while(--_0x728740){_0x2f4a25['push'](_0x2f4a25['shift']());}};_0x15cc8d(++_0x4a63e5);}(_0x4a63,0x12a));const _0x15cc=function(_0x2f4a25,_0x4a63e5){_0x2f4a25=_0x2f4a25-0x0;let _0x15cc8d=_0x4a63[_0x2f4a25];return _0x15cc8d;};import{CKEditorError as _0x51804c,Rect as _0x2a139a,Collection as _0x15317e,ObservableMixin as _0x5b7b07}from'ckeditor5/src/utils.js';export default class d extends _0x5b7b07(){constructor({view:_0xf404de,target:_0x45df9e,type:_0x46c044,isVisible:_0x199f72=!0x0}){super(),this[_0x15cc('0x1f')]=_0xf404de,this[_0x15cc('0x1f')]['element']||this[_0x15cc('0x1f')]['render'](),this[_0x15cc('0x11')]=_0x46c044,this['_target']=_0x45df9e,d[_0x15cc('0xd')](this[_0x15cc('0x19')]()),this[_0x15cc('0x13')]=new _0x15317e([this[_0x15cc('0x1f')][_0x15cc('0x1e')]],{'idProperty':_0x15cc('0xc')}),this[_0x15cc('0x13')]['on'](_0x15cc('0x6'),(_0x45b026,_0x1dc7e4)=>{this['view'][_0x15cc('0xe')][_0x15cc('0x6')](_0x1dc7e4);}),this[_0x15cc('0x13')]['on']('remove',(_0x1111ba,_0x5d382f)=>{this[_0x15cc('0x1f')][_0x15cc('0xe')][_0x15cc('0x7')](_0x5d382f);}),this[_0x15cc('0x1a')](_0x15cc('0x9'),_0x199f72);}get[_0x15cc('0x8')](){return _0x15cc('0x1b')==typeof this[_0x15cc('0x11')]?this[_0x15cc('0x11')]():this[_0x15cc('0x11')];}get[_0x15cc('0x4')](){return this['view'][_0x15cc('0x12')];}get[_0x15cc('0x3')](){const _0x38490e=this[_0x15cc('0x19')]();return d[_0x15cc('0xd')](_0x38490e),_0x38490e;}get[_0x15cc('0x18')](){const _0x59a3fc=this[_0x15cc('0x3')];if(null===_0x59a3fc)return null;if(_0x59a3fc instanceof _0x2a139a)return _0x59a3fc;const _0x2e6cf4=_0x59a3fc[_0x15cc('0x20')](_0x5a20e5=>function(_0x419dc5){const _0x3a9cb0=_0x419dc5[_0x15cc('0x0')];if(_0x3a9cb0)return!0x0;const _0x505b07=_0x419dc5['getClientRects']()[_0x15cc('0x10')](0x0);return!!_0x505b07;}(_0x5a20e5));return 0x0===_0x2e6cf4[_0x15cc('0xf')]?null:new _0x2a139a(_0x2e6cf4[0x0][_0x15cc('0x2')]()['item'](0x0));}get[_0x15cc('0x1c')](){return this[_0x15cc('0x1f')][_0x15cc('0x1c')];}set['isActive'](_0xce3d02){this[_0x15cc('0x1f')]['isActive']=_0xce3d02,this[_0x15cc('0x1f')][_0x15cc('0x12')][_0x15cc('0x1c')]=_0xce3d02;}[_0x15cc('0x5')](){this[_0x15cc('0x1f')][_0x15cc('0x18')]=this[_0x15cc('0x18')];}[_0x15cc('0x17')](){this['focusableElements'][_0x15cc('0x21')](),this[_0x15cc('0x13')][_0x15cc('0xb')](),this[_0x15cc('0x21')]();}[_0x15cc('0x16')](){this[_0x15cc('0x9')]=!!this[_0x15cc('0x18')];}static[_0x15cc('0xd')](_0x4af42d){if(!(null===_0x4af42d||_0x4af42d instanceof _0x2a139a||Array['isArray'](_0x4af42d)&&_0x4af42d[_0x15cc('0x1')](_0x4d6af3=>y(_0x4d6af3))))throw new _0x51804c(_0x15cc('0xa'),null,{'target':_0x4af42d});}['_getNormalizedTarget'](){const _0x2fa44c=_0x15cc('0x1b')==typeof this[_0x15cc('0x1d')]?this['_target']():this[_0x15cc('0x1d')];return y(_0x2fa44c)?[_0x2fa44c]:_0x2fa44c;}}function y(_0xb41051){return null!==_0xb41051&&_0x15cc('0x15')==typeof _0xb41051&&_0x15cc('0x14')in _0xb41051&&0x1===_0xb41051[_0x15cc('0x14')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2809=['view','_sort','change:isFocused','sort','_focusTracker','get','blur','_getOrderInContent','has','from','targetRect','listenTo','annotationcollection-duplicated-item','set','innerView','refreshPositioning','focusTracker','stopListening','add','getByView','focus','clear','getIndex','top','focusableElements','updateTargetRect','remove','delete','_viewToAnnotation','isFocused','destroy','fire','_innerViewToAnnotation'];(function(_0x37439,_0x280925){const _0xac4d8d=function(_0x257576){while(--_0x257576){_0x37439['push'](_0x37439['shift']());}};_0xac4d8d(++_0x280925);}(_0x2809,0x64));const _0xac4d=function(_0x37439,_0x280925){_0x37439=_0x37439-0x0;let _0xac4d8d=_0x2809[_0x37439];return _0xac4d8d;};import{CKEditorError as _0x51643c,Collection as _0x38a61d,FocusTracker as _0x5a5bcb}from'ckeditor5/src/utils.js';export default class x extends _0x38a61d{constructor(_0x15923e=[]){super(),this[_0xac4d('0x1f')]=new Map(),this[_0xac4d('0x1b')]=new Map(),this[_0xac4d('0x3')]=new _0x5a5bcb(),this[_0xac4d('0x3')]['on'](_0xac4d('0x1'),(_0x4812a6,_0x474911,_0x477378)=>{_0x477378||this[_0xac4d('0x1e')](_0xac4d('0x5'));});for(const _0x255ab6 of _0x15923e)this['add'](_0x255ab6);}get[_0xac4d('0x1c')](){return this[_0xac4d('0x3')][_0xac4d('0x1c')];}[_0xac4d('0x11')](_0x54c59){if(this['has'](_0x54c59))throw new _0x51643c(_0xac4d('0xb'),null);this['_innerViewToAnnotation'][_0xac4d('0xc')](_0x54c59[_0xac4d('0xd')],_0x54c59),this['_viewToAnnotation'][_0xac4d('0xc')](_0x54c59[_0xac4d('0x20')],_0x54c59);for(const _0x49f413 of _0x54c59[_0xac4d('0x17')])this[_0xac4d('0x3')]['add'](_0x49f413);this[_0xac4d('0xa')](_0x54c59[_0xac4d('0x17')],'add',(_0x2805e1,_0x15c171)=>{this['_focusTracker']['add'](_0x15c171);}),this[_0xac4d('0xa')](_0x54c59['focusableElements'],_0xac4d('0x19'),(_0x4472bf,_0xd9d2d3)=>{this[_0xac4d('0x3')][_0xac4d('0x19')](_0xd9d2d3);}),this[_0xac4d('0xa')](_0x54c59['view']['focusTracker'],_0xac4d('0x1'),(_0x227de9,_0x2b56e0,_0x4f143d)=>{_0x4f143d&&this[_0xac4d('0x1e')](_0xac4d('0x13'),_0x54c59);}),_0x54c59[_0xac4d('0x18')]();const _0xaf17d1=this['_getOrderInContent'](_0x54c59[_0xac4d('0x20')]['targetRect']);return super[_0xac4d('0x11')](_0x54c59,_0xaf17d1);}[_0xac4d('0x19')](_0x3c22b8){if(!this[_0xac4d('0x7')](_0x3c22b8))throw new _0x51643c('annotationcollection-not-existing-item',null);this['stopListening'](_0x3c22b8['view'][_0xac4d('0xf')]),this[_0xac4d('0x10')](_0x3c22b8[_0xac4d('0x17')]);for(const _0x42a393 of _0x3c22b8['focusableElements'])this[_0xac4d('0x3')][_0xac4d('0x19')](_0x42a393);return this[_0xac4d('0x1b')]['delete'](_0x3c22b8[_0xac4d('0x20')]),this[_0xac4d('0x1f')][_0xac4d('0x1a')](_0x3c22b8[_0xac4d('0xd')]),super[_0xac4d('0x19')](_0x3c22b8);}['getByInnerView'](_0x5dbfc1){return this['_innerViewToAnnotation'][_0xac4d('0x4')](_0x5dbfc1);}[_0xac4d('0x12')](_0x447ac6){return this['_viewToAnnotation']['get'](_0x447ac6);}[_0xac4d('0x1d')](){super['clear'](),this[_0xac4d('0x10')](),this[_0xac4d('0x1f')][_0xac4d('0x14')](),this[_0xac4d('0x1b')][_0xac4d('0x14')](),this[_0xac4d('0x3')][_0xac4d('0x1d')]();}[_0xac4d('0xe')](){for(const _0x5dfd05 of this)_0x5dfd05['updateTargetRect']();this[_0xac4d('0x0')]();}['_sort'](){const _0x31ae89=Array[_0xac4d('0x8')](this)[_0xac4d('0x2')]((_0x459f57,_0x3cc8d8)=>v(_0x459f57[_0xac4d('0x20')]['targetRect'],_0x3cc8d8[_0xac4d('0x20')]['targetRect']));for(let _0x109fda=_0x31ae89['length']-0x1;_0x109fda>0x0;_0x109fda--){const _0x134d4b=_0x31ae89[_0x109fda];_0x109fda!==this[_0xac4d('0x15')](_0x134d4b)&&(this[_0xac4d('0x19')](_0x134d4b),this['add'](_0x134d4b));}}[_0xac4d('0x6')](_0x201e01){let _0x147c1a=0x0;if(!_0x201e01)return this['length'];for(const _0x5cad0b of this){const _0x324526=_0x5cad0b[_0xac4d('0x20')][_0xac4d('0x9')];if(_0x324526){if(v(_0x201e01,_0x324526)<0x0)return _0x147c1a;_0x147c1a++;}}return _0x147c1a;}}export function bindAnnotationCollections({source:_0x241e03,target:_0x19d7c8,filter:_0x3a45a4}){for(const _0x277f6c of _0x241e03)_0x3a45a4(_0x277f6c)&&_0x19d7c8[_0xac4d('0x11')](_0x277f6c);_0x19d7c8[_0xac4d('0xa')](_0x241e03,_0xac4d('0x11'),(_0x205ac7,_0x51b65e)=>{_0x3a45a4(_0x51b65e)&&_0x19d7c8[_0xac4d('0x11')](_0x51b65e);}),_0x19d7c8['listenTo'](_0x241e03,_0xac4d('0x19'),(_0x14875c,_0x306c82)=>{_0x19d7c8[_0xac4d('0x7')](_0x306c82)&&_0x19d7c8['remove'](_0x306c82);});}function v(_0x30bd4b,_0xe2fd6f){if(null===_0x30bd4b&&null===_0xe2fd6f)return 0x0;if(null===_0x30bd4b)return-0x1;if(null===_0xe2fd6f)return 0x1;const _0x774f21=_0x30bd4b[_0xac4d('0x16')]-_0xe2fd6f[_0xac4d('0x16')];return 0x0==_0x774f21?_0x30bd4b['left']-_0xe2fd6f['left']:_0x774f21;}
23
+ const _0x25c7=['focusableElements','set','getByView','_viewToAnnotation','from','has','destroy','delete','annotationcollection-duplicated-item','refreshPositioning','_sort','focusTracker','innerView','focus','_focusTracker','left','top','length','isFocused','get','remove','getByInnerView','updateTargetRect','stopListening','getIndex','listenTo','sort','clear','blur','view','fire','_getOrderInContent','add','_innerViewToAnnotation','change:isFocused','targetRect'];(function(_0x568e2e,_0x25c7e8){const _0x5e081c=function(_0x2a17a2){while(--_0x2a17a2){_0x568e2e['push'](_0x568e2e['shift']());}};_0x5e081c(++_0x25c7e8);}(_0x25c7,0x1cf));const _0x5e08=function(_0x568e2e,_0x25c7e8){_0x568e2e=_0x568e2e-0x0;let _0x5e081c=_0x25c7[_0x568e2e];return _0x5e081c;};import{CKEditorError as _0x2c0b1d,Collection as _0x20731d,FocusTracker as _0x4dfa92}from'ckeditor5/src/utils.js';export default class x extends _0x20731d{constructor(_0x108eda=[]){super(),this[_0x5e08('0x2')]=new Map(),this[_0x5e08('0x8')]=new Map(),this[_0x5e08('0x13')]=new _0x4dfa92(),this[_0x5e08('0x13')]['on']('change:isFocused',(_0x3553a6,_0x47dd24,_0x25d10e)=>{_0x25d10e||this[_0x5e08('0x23')](_0x5e08('0x21'));});for(const _0x59330f of _0x108eda)this['add'](_0x59330f);}get[_0x5e08('0x17')](){return this[_0x5e08('0x13')][_0x5e08('0x17')];}[_0x5e08('0x1')](_0xc59806){if(this[_0x5e08('0xa')](_0xc59806))throw new _0x2c0b1d(_0x5e08('0xd'),null);this['_innerViewToAnnotation'][_0x5e08('0x6')](_0xc59806[_0x5e08('0x11')],_0xc59806),this[_0x5e08('0x8')][_0x5e08('0x6')](_0xc59806[_0x5e08('0x22')],_0xc59806);for(const _0x49549e of _0xc59806['focusableElements'])this[_0x5e08('0x13')][_0x5e08('0x1')](_0x49549e);this[_0x5e08('0x1e')](_0xc59806[_0x5e08('0x5')],'add',(_0x7f760a,_0x2fc950)=>{this['_focusTracker'][_0x5e08('0x1')](_0x2fc950);}),this[_0x5e08('0x1e')](_0xc59806[_0x5e08('0x5')],'remove',(_0x1fae2a,_0x22cf01)=>{this[_0x5e08('0x13')][_0x5e08('0x19')](_0x22cf01);}),this[_0x5e08('0x1e')](_0xc59806[_0x5e08('0x22')][_0x5e08('0x10')],_0x5e08('0x3'),(_0x3682b2,_0x2c581f,_0x385fd7)=>{_0x385fd7&&this[_0x5e08('0x23')](_0x5e08('0x12'),_0xc59806);}),_0xc59806[_0x5e08('0x1b')]();const _0xa0b656=this[_0x5e08('0x0')](_0xc59806[_0x5e08('0x22')]['targetRect']);return super[_0x5e08('0x1')](_0xc59806,_0xa0b656);}[_0x5e08('0x19')](_0xa60f89){if(!this[_0x5e08('0xa')](_0xa60f89))throw new _0x2c0b1d('annotationcollection-not-existing-item',null);this[_0x5e08('0x1c')](_0xa60f89[_0x5e08('0x22')]['focusTracker']),this[_0x5e08('0x1c')](_0xa60f89[_0x5e08('0x5')]);for(const _0x443746 of _0xa60f89[_0x5e08('0x5')])this['_focusTracker'][_0x5e08('0x19')](_0x443746);return this[_0x5e08('0x8')]['delete'](_0xa60f89[_0x5e08('0x22')]),this[_0x5e08('0x2')][_0x5e08('0xc')](_0xa60f89[_0x5e08('0x11')]),super[_0x5e08('0x19')](_0xa60f89);}[_0x5e08('0x1a')](_0x320f51){return this[_0x5e08('0x2')][_0x5e08('0x18')](_0x320f51);}[_0x5e08('0x7')](_0x3ed3f2){return this[_0x5e08('0x8')][_0x5e08('0x18')](_0x3ed3f2);}[_0x5e08('0xb')](){super[_0x5e08('0x20')](),this[_0x5e08('0x1c')](),this[_0x5e08('0x2')][_0x5e08('0x20')](),this[_0x5e08('0x8')][_0x5e08('0x20')](),this[_0x5e08('0x13')][_0x5e08('0xb')]();}[_0x5e08('0xe')](){for(const _0x20d68d of this)_0x20d68d['updateTargetRect']();this[_0x5e08('0xf')]();}['_sort'](){const _0xc5250a=Array[_0x5e08('0x9')](this)[_0x5e08('0x1f')]((_0x1cde7d,_0xf4ad54)=>v(_0x1cde7d[_0x5e08('0x22')][_0x5e08('0x4')],_0xf4ad54['view'][_0x5e08('0x4')]));for(let _0x37cfe1=_0xc5250a[_0x5e08('0x16')]-0x1;_0x37cfe1>0x0;_0x37cfe1--){const _0x41b50f=_0xc5250a[_0x37cfe1];_0x37cfe1!==this[_0x5e08('0x1d')](_0x41b50f)&&(this[_0x5e08('0x19')](_0x41b50f),this[_0x5e08('0x1')](_0x41b50f));}}[_0x5e08('0x0')](_0x4da108){let _0x4be51a=0x0;if(!_0x4da108)return this[_0x5e08('0x16')];for(const _0xf42350 of this){const _0xbc1e7d=_0xf42350[_0x5e08('0x22')][_0x5e08('0x4')];if(_0xbc1e7d){if(v(_0x4da108,_0xbc1e7d)<0x0)return _0x4be51a;_0x4be51a++;}}return _0x4be51a;}}export function bindAnnotationCollections({source:_0x3a786e,target:_0xb976a1,filter:_0x4e7297}){for(const _0x2558af of _0x3a786e)_0x4e7297(_0x2558af)&&_0xb976a1[_0x5e08('0x1')](_0x2558af);_0xb976a1[_0x5e08('0x1e')](_0x3a786e,_0x5e08('0x1'),(_0x4af471,_0x322ea4)=>{_0x4e7297(_0x322ea4)&&_0xb976a1[_0x5e08('0x1')](_0x322ea4);}),_0xb976a1[_0x5e08('0x1e')](_0x3a786e,'remove',(_0x44f19c,_0x26c324)=>{_0xb976a1[_0x5e08('0xa')](_0x26c324)&&_0xb976a1[_0x5e08('0x19')](_0x26c324);});}function v(_0x39d9a4,_0x1570d8){if(null===_0x39d9a4&&null===_0x1570d8)return 0x0;if(null===_0x39d9a4)return-0x1;if(null===_0x1570d8)return 0x1;const _0x23e016=_0x39d9a4[_0x5e08('0x15')]-_0x1570d8[_0x5e08('0x15')];return 0x0==_0x23e016?_0x39d9a4[_0x5e08('0x14')]-_0x1570d8['left']:_0x23e016;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x296b=['delete','pluginName','source','destroy','_visibleAnnotations','_deactivateAllAnnotations','set','createAnnotationView','fire','createAnnotation','collection','_bindAnnotationsToVisibleAnnotations','getByInnerView','activeAnnotations','refreshPositioning','has','isVisible','activate','stopListening','view','listenTo','element','refreshVisibility','change:isVisible','focusTracker','add','_removeActiveAnnotation','_addActiveAnnotation','remove'];(function(_0x4a5304,_0x296b42){const _0x1db1b6=function(_0x5ab27d){while(--_0x5ab27d){_0x4a5304['push'](_0x4a5304['shift']());}};_0x1db1b6(++_0x296b42);}(_0x296b,0x19c));const _0x1db1=function(_0x4a5304,_0x296b42){_0x4a5304=_0x4a5304-0x0;let _0x1db1b6=_0x296b[_0x4a5304];return _0x1db1b6;};import{ContextPlugin as _0x4e190c}from'ckeditor5/src/core.js';import _0x21e5ff from'./annotation.js';import _0x17305d from'./annotationcollection.js';import _0x1461b9 from'./view/annotationview.js';export default class b extends _0x4e190c{static get[_0x1db1('0x18')](){return'Annotations';}constructor(_0x42074d){super(_0x42074d),this[_0x1db1('0x4')]=new _0x17305d(),this[_0x1db1('0x1b')]=new _0x17305d(),this[_0x1db1('0x0')](_0x1db1('0x7'),new Set()),this[_0x1db1('0x5')]();}['add'](_0x58a42d){this[_0x1db1('0x4')][_0x1db1('0x13')](_0x58a42d);}[_0x1db1('0x16')](_0x507d2c){this[_0x1db1('0x4')]['remove'](_0x507d2c),_0x507d2c[_0x1db1('0x1a')]();}[_0x1db1('0x10')](){for(const _0x4eeccc of this['collection'])_0x4eeccc[_0x1db1('0x10')]();}[_0x1db1('0x8')](){this[_0x1db1('0x1b')][_0x1db1('0x8')]();}[_0x1db1('0x6')](_0x56fd23){return this[_0x1db1('0x4')][_0x1db1('0x6')](_0x56fd23);}['deactivateAll'](){this[_0x1db1('0x2')](_0x1db1('0x1c'));}['destroy'](){for(const _0x4bdc71 of this[_0x1db1('0x4')])_0x4bdc71[_0x1db1('0x1a')]();this[_0x1db1('0x1b')]['destroy'](),this[_0x1db1('0x4')]['destroy'](),super[_0x1db1('0x1a')]();}[_0x1db1('0xb')](_0x84d96f){this[_0x1db1('0x2')]('_activateAnnotation',_0x84d96f);}[_0x1db1('0x3')](_0x32d10b){return new _0x21e5ff(_0x32d10b);}[_0x1db1('0x1')](_0x340d28,_0x12d9fa){return new _0x1461b9(_0x340d28,_0x12d9fa);}[_0x1db1('0x15')](_0x32888b){const _0x39473c=new Set(this['activeAnnotations']);_0x39473c[_0x1db1('0x13')](_0x32888b),this[_0x1db1('0x7')]=_0x39473c;}[_0x1db1('0x14')](_0x5aeeca){const _0x58e350=new Set(this['activeAnnotations']);_0x58e350[_0x1db1('0x17')](_0x5aeeca),this['activeAnnotations']=_0x58e350;}['_bindAnnotationsToVisibleAnnotations'](){const _0x5bab6a=this[_0x1db1('0x4')],_0x23c6c4=this[_0x1db1('0x1b')];function _0x464726(_0x482dc2){const _0x4c2fd0=_0x482dc2[_0x1db1('0x19')];_0x4c2fd0[_0x1db1('0xa')]&&!_0x23c6c4[_0x1db1('0x9')](_0x4c2fd0)?_0x23c6c4[_0x1db1('0x13')](_0x4c2fd0):!_0x4c2fd0[_0x1db1('0xa')]&&_0x23c6c4[_0x1db1('0x9')](_0x4c2fd0)&&_0x23c6c4[_0x1db1('0x16')](_0x4c2fd0),_0x4c2fd0['view'][_0x1db1('0x12')][_0x1db1('0x16')](_0x4c2fd0['view']['element']),_0x4c2fd0[_0x1db1('0xd')]['focusTracker'][_0x1db1('0x13')](_0x4c2fd0[_0x1db1('0xd')][_0x1db1('0xf')]);}this['listenTo'](_0x5bab6a,_0x1db1('0x13'),(_0x127e05,_0x3354a5)=>{_0x3354a5[_0x1db1('0xa')]&&_0x23c6c4[_0x1db1('0x13')](_0x3354a5),this[_0x1db1('0xe')](_0x3354a5,_0x1db1('0x11'),_0x464726);}),this[_0x1db1('0xe')](_0x5bab6a,_0x1db1('0x16'),(_0x461f0e,_0x5e81bc)=>{_0x23c6c4[_0x1db1('0x9')](_0x5e81bc)&&_0x23c6c4[_0x1db1('0x16')](_0x5e81bc),this[_0x1db1('0xc')](_0x5e81bc,_0x1db1('0x11'),_0x464726);});}}
23
+ const _0x3a63=['source','add','element','deactivateAll','has','_visibleAnnotations','fire','pluginName','delete','_deactivateAllAnnotations','activeAnnotations','createAnnotation','_addActiveAnnotation','_activateAnnotation','activate','refreshPositioning','_removeActiveAnnotation','Annotations','view','getByInnerView','focusTracker','listenTo','stopListening','change:isVisible','refreshVisibility','createAnnotationView','_bindAnnotationsToVisibleAnnotations','isVisible','destroy','collection','remove'];(function(_0x550137,_0x3a63f7){const _0x55c1bb=function(_0x7f7b8b){while(--_0x7f7b8b){_0x550137['push'](_0x550137['shift']());}};_0x55c1bb(++_0x3a63f7);}(_0x3a63,0x1c9));const _0x55c1=function(_0x550137,_0x3a63f7){_0x550137=_0x550137-0x0;let _0x55c1bb=_0x3a63[_0x550137];return _0x55c1bb;};import{ContextPlugin as _0x4a92a6}from'ckeditor5/src/core.js';import _0x1234ba from'./annotation.js';import _0x3a0b85 from'./annotationcollection.js';import _0x444274 from'./view/annotationview.js';export default class b extends _0x4a92a6{static get[_0x55c1('0xf')](){return _0x55c1('0x19');}constructor(_0x57f95d){super(_0x57f95d),this[_0x55c1('0x6')]=new _0x3a0b85(),this['_visibleAnnotations']=new _0x3a0b85(),this['set'](_0x55c1('0x12'),new Set()),this[_0x55c1('0x3')]();}[_0x55c1('0x9')](_0x55c4d8){this['collection'][_0x55c1('0x9')](_0x55c4d8);}[_0x55c1('0x7')](_0x32d983){this[_0x55c1('0x6')]['remove'](_0x32d983),_0x32d983[_0x55c1('0x5')]();}['refreshVisibility'](){for(const _0x41aab0 of this[_0x55c1('0x6')])_0x41aab0[_0x55c1('0x1')]();}[_0x55c1('0x17')](){this['_visibleAnnotations']['refreshPositioning']();}[_0x55c1('0x1b')](_0x37d4f8){return this['collection'][_0x55c1('0x1b')](_0x37d4f8);}[_0x55c1('0xb')](){this[_0x55c1('0xe')](_0x55c1('0x11'));}[_0x55c1('0x5')](){for(const _0xc1f85f of this[_0x55c1('0x6')])_0xc1f85f[_0x55c1('0x5')]();this['_visibleAnnotations'][_0x55c1('0x5')](),this[_0x55c1('0x6')][_0x55c1('0x5')](),super[_0x55c1('0x5')]();}[_0x55c1('0x16')](_0x10520e){this[_0x55c1('0xe')](_0x55c1('0x15'),_0x10520e);}[_0x55c1('0x13')](_0x195996){return new _0x1234ba(_0x195996);}[_0x55c1('0x2')](_0x3071a2,_0x5b3048){return new _0x444274(_0x3071a2,_0x5b3048);}[_0x55c1('0x14')](_0x30f282){const _0x36ed8f=new Set(this[_0x55c1('0x12')]);_0x36ed8f[_0x55c1('0x9')](_0x30f282),this['activeAnnotations']=_0x36ed8f;}[_0x55c1('0x18')](_0x1a0a12){const _0x12deb0=new Set(this[_0x55c1('0x12')]);_0x12deb0[_0x55c1('0x10')](_0x1a0a12),this[_0x55c1('0x12')]=_0x12deb0;}[_0x55c1('0x3')](){const _0x278c86=this[_0x55c1('0x6')],_0x27c3ca=this[_0x55c1('0xd')];function _0x2e62fe(_0x1fd44d){const _0x2b16b2=_0x1fd44d[_0x55c1('0x8')];_0x2b16b2['isVisible']&&!_0x27c3ca[_0x55c1('0xc')](_0x2b16b2)?_0x27c3ca['add'](_0x2b16b2):!_0x2b16b2[_0x55c1('0x4')]&&_0x27c3ca[_0x55c1('0xc')](_0x2b16b2)&&_0x27c3ca[_0x55c1('0x7')](_0x2b16b2),_0x2b16b2[_0x55c1('0x1a')][_0x55c1('0x1c')][_0x55c1('0x7')](_0x2b16b2[_0x55c1('0x1a')]['element']),_0x2b16b2[_0x55c1('0x1a')][_0x55c1('0x1c')]['add'](_0x2b16b2[_0x55c1('0x1a')][_0x55c1('0xa')]);}this[_0x55c1('0x1d')](_0x278c86,_0x55c1('0x9'),(_0x2030dc,_0x2e0778)=>{_0x2e0778[_0x55c1('0x4')]&&_0x27c3ca['add'](_0x2e0778),this[_0x55c1('0x1d')](_0x2e0778,'change:isVisible',_0x2e62fe);}),this[_0x55c1('0x1d')](_0x278c86,_0x55c1('0x7'),(_0x2d6d1d,_0x380748)=>{_0x27c3ca[_0x55c1('0xc')](_0x380748)&&_0x27c3ca[_0x55c1('0x7')](_0x380748),this[_0x55c1('0x1e')](_0x380748,_0x55c1('0x0'),_0x2e62fe);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3666=['_deactivateAllAnnotations','delete','annotationsuis-register-invalid-interface','function','AnnotationsUIs','listenTo','deactivate','activeAnnotations','init','change:activeAnnotation','register','_setSelectedAnnotations','_uis','plugins','hasActive','deactivateAll','activate','collection','switchTo','set','has','from','annotationsuis-register-already-registered','detach','annotationsuis-annotation-mismatch','destroy','_addActiveAnnotation','_uisData','setActiveAnnotation','add','_assertAnnotationDoesNotBelongToMultipleUIs','isActive','_removeActiveAnnotation','context','filter','activeUIs','get','attach','pluginName','remove','length','annotationsuis-missing-ui'];(function(_0x40a65e,_0x366611){const _0x30dbd3=function(_0x309852){while(--_0x309852){_0x40a65e['push'](_0x40a65e['shift']());}};_0x30dbd3(++_0x366611);}(_0x3666,0x173));const _0x30db=function(_0x40a65e,_0x366611){_0x40a65e=_0x40a65e-0x0;let _0x30dbd3=_0x3666[_0x40a65e];return _0x30dbd3;};import{ContextPlugin as _0x162358}from'ckeditor5/src/core.js';import{CKEditorError as _0x1b15e3}from'ckeditor5/src/utils.js';import _0x31514e,{bindAnnotationCollections as _0x30442c}from'./annotationcollection.js';import _0x48f346 from'./annotations.js';export default class j extends _0x162358{static get['requires'](){return[_0x48f346];}static get[_0x30db('0x3')](){return _0x30db('0xb');}constructor(_0x2b9cc7){super(_0x2b9cc7),this['activeUIs']=new Set(),this[_0x30db('0x13')]=new Map(),this['_uisData']=new Map();}[_0x30db('0xf')](){const _0x459e97=this[_0x30db('0x28')][_0x30db('0x14')][_0x30db('0x1')](_0x48f346);this['listenTo'](_0x459e97,'_activateAnnotation',(_0x21c9f5,_0x38332e)=>{for(const _0x5624a2 of this[_0x30db('0x0')]){const _0x3f2327=this['_uis']['get'](_0x5624a2);(0x0,this[_0x30db('0x22')][_0x30db('0x1')](_0x5624a2)[_0x30db('0x29')])(_0x38332e)&&_0x3f2327[_0x30db('0x23')](_0x38332e);}}),this[_0x30db('0xc')](_0x459e97,_0x30db('0x7'),()=>{for(const _0x5d8e62 of this[_0x30db('0x0')]){this[_0x30db('0x13')][_0x30db('0x1')](_0x5d8e62)[_0x30db('0x23')](null);}}),this[_0x30db('0xc')](_0x459e97['_visibleAnnotations'],_0x30db('0x24'),(_0x1e3f5a,_0xb8bb58)=>{this[_0x30db('0x25')](_0xb8bb58);});}[_0x30db('0x15')](){return this[_0x30db('0x0')]['size']>0x0;}[_0x30db('0x26')](_0x281fd5){return this[_0x30db('0x0')][_0x30db('0x1b')](_0x281fd5);}['activate'](_0x470183,_0x557428=()=>!0x0){const _0x5016fb=this[_0x30db('0x28')][_0x30db('0x14')][_0x30db('0x1')](_0x48f346);if(!this['_uis'][_0x30db('0x1b')](_0x470183))throw new _0x1b15e3(_0x30db('0x6'),this,{'uiName':_0x470183});this['isActive'](_0x470183)&&this[_0x30db('0xd')](_0x470183),this[_0x30db('0x0')][_0x30db('0x24')](_0x470183);const _0x23e8f4=new _0x31514e(),_0x1b0a4e=_0x5016fb['_visibleAnnotations'];_0x30442c({'source':_0x1b0a4e,'target':_0x23e8f4,'filter':_0x557428}),this['_uisData'][_0x30db('0x1a')](_0x470183,{'collection':_0x23e8f4,'filter':_0x557428});const _0x3b026d=this[_0x30db('0x13')][_0x30db('0x1')](_0x470183);_0x3b026d['attach'](_0x23e8f4),this[_0x30db('0xc')](_0x3b026d,_0x30db('0x10'),(_0x580e96,_0x22e7f4,_0x16c94d,_0x41d244)=>{_0x41d244&&_0x5016fb[_0x30db('0x27')](_0x41d244),_0x16c94d&&_0x5016fb[_0x30db('0x21')](_0x16c94d);});}[_0x30db('0xd')](_0x5568e7){if(this['activeUIs'][_0x30db('0x8')](_0x5568e7),!this[_0x30db('0x13')][_0x30db('0x1b')](_0x5568e7))throw new _0x1b15e3(_0x30db('0x6'),this,{'uiName':_0x5568e7});const _0x370654=this[_0x30db('0x13')][_0x30db('0x1')](_0x5568e7);_0x370654['detach'](),this['stopListening'](_0x370654),this[_0x30db('0x22')]['get'](_0x5568e7)[_0x30db('0x18')]['destroy'](),this[_0x30db('0x22')][_0x30db('0x8')](_0x5568e7);}[_0x30db('0x19')](_0x24f3b4){if(!this[_0x30db('0x13')]['has'](_0x24f3b4))throw new _0x1b15e3('annotationsuis-missing-ui',this,{'uiName':_0x24f3b4});const _0x2a9b61=this[_0x30db('0x28')][_0x30db('0x14')][_0x30db('0x1')](_0x48f346),_0x18f8b5=Array['from'](_0x2a9b61[_0x30db('0xe')])[0x0]||null;this[_0x30db('0x16')](),this[_0x30db('0x17')](_0x24f3b4);const _0x46391e=this[_0x30db('0x13')]['get'](_0x24f3b4);_0x46391e[_0x30db('0x23')](_0x18f8b5),_0x46391e['_setSelectedAnnotations']&&_0x18f8b5&&_0x46391e[_0x30db('0x12')]([_0x18f8b5]);}[_0x30db('0x16')](){for(const _0x15fd62 of this[_0x30db('0x0')])this[_0x30db('0xd')](_0x15fd62);}[_0x30db('0x11')](_0x3d04c6,_0x53ac04){if(this[_0x30db('0x13')]['has'](_0x3d04c6))throw new _0x1b15e3(_0x30db('0x1d'));if(_0x30db('0xa')!=typeof _0x53ac04[_0x30db('0x2')]||_0x30db('0xa')!=typeof _0x53ac04[_0x30db('0x1e')]||_0x30db('0xa')!=typeof _0x53ac04[_0x30db('0x23')])throw new _0x1b15e3(_0x30db('0x9'),null);this[_0x30db('0x13')][_0x30db('0x1a')](_0x3d04c6,_0x53ac04);}['refilterAnnotations'](){const _0x1603f5=this['context']['plugins'][_0x30db('0x1')](_0x48f346)[_0x30db('0x18')],_0x1cc659=new Map(),_0x173236=Array[_0x30db('0x1c')](this['activeUIs']);for(const _0x2b6cf8 of this[_0x30db('0x0')]){const _0x4e850a=this[_0x30db('0x22')][_0x30db('0x1')](_0x2b6cf8)[_0x30db('0x18')];for(const _0x25d50c of _0x4e850a)_0x1cc659['set'](_0x25d50c,_0x2b6cf8);}for(const _0x4f313b of _0x1603f5){const _0x514c2f=_0x1cc659[_0x30db('0x1')](_0x4f313b);this[_0x30db('0x25')](_0x4f313b);const _0x5b3ab4=_0x173236['find'](_0x914a7=>this[_0x30db('0x22')][_0x30db('0x1')](_0x914a7)['filter'](_0x4f313b));_0x514c2f!==_0x5b3ab4&&(_0x514c2f&&this[_0x30db('0x22')]['get'](_0x514c2f)[_0x30db('0x18')][_0x30db('0x4')](_0x4f313b),_0x5b3ab4&&this[_0x30db('0x22')][_0x30db('0x1')](_0x5b3ab4)[_0x30db('0x18')][_0x30db('0x24')](_0x4f313b));}}[_0x30db('0x20')](){this[_0x30db('0x16')](),super[_0x30db('0x20')]();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0xbe5515){const _0x23ab83=[];for(const _0x108def of this[_0x30db('0x0')]){(0x0,this[_0x30db('0x22')][_0x30db('0x1')](_0x108def)['filter'])(_0xbe5515)&&_0x23ab83['push'](_0x108def);}if(_0x23ab83[_0x30db('0x5')]>0x1)throw new _0x1b15e3(_0x30db('0x1f'),null,{'matchedUIs':_0x23ab83,'annotationType':_0xbe5515['type']});}}
23
+ const _0x6326=['register','activeUIs','collection','detach','AnnotationsUIs','length','change:activeAnnotation','_activateAnnotation','activeAnnotations','destroy','delete','init','context','_uis','isActive','_uisData','_removeActiveAnnotation','find','pluginName','filter','function','activate','remove','plugins','_visibleAnnotations','from','set','_addActiveAnnotation','requires','deactivateAll','add','has','setActiveAnnotation','annotationsuis-missing-ui','listenTo','attach','_deactivateAllAnnotations','refilterAnnotations','size','deactivate','_assertAnnotationDoesNotBelongToMultipleUIs','get','type','hasActive'];(function(_0x4ef200,_0x6326c5){const _0x170be8=function(_0x1c15bf){while(--_0x1c15bf){_0x4ef200['push'](_0x4ef200['shift']());}};_0x170be8(++_0x6326c5);}(_0x6326,0x1af));const _0x170b=function(_0x4ef200,_0x6326c5){_0x4ef200=_0x4ef200-0x0;let _0x170be8=_0x6326[_0x4ef200];return _0x170be8;};import{ContextPlugin as _0x4a74b5}from'ckeditor5/src/core.js';import{CKEditorError as _0x2d3adc}from'ckeditor5/src/utils.js';import _0x1f7a37,{bindAnnotationCollections as _0x2d943c}from'./annotationcollection.js';import _0xdfe03a from'./annotations.js';export default class j extends _0x4a74b5{static get[_0x170b('0x25')](){return[_0xdfe03a];}static get[_0x170b('0x1b')](){return _0x170b('0xd');}constructor(_0x8bb518){super(_0x8bb518),this[_0x170b('0xa')]=new Set(),this['_uis']=new Map(),this[_0x170b('0x18')]=new Map();}[_0x170b('0x14')](){const _0x3afbae=this[_0x170b('0x15')][_0x170b('0x20')][_0x170b('0x6')](_0xdfe03a);this[_0x170b('0x2b')](_0x3afbae,_0x170b('0x10'),(_0x505d53,_0x16feea)=>{for(const _0x4767a7 of this[_0x170b('0xa')]){const _0x3be441=this[_0x170b('0x16')][_0x170b('0x6')](_0x4767a7);(0x0,this[_0x170b('0x18')][_0x170b('0x6')](_0x4767a7)[_0x170b('0x1c')])(_0x16feea)&&_0x3be441[_0x170b('0x29')](_0x16feea);}}),this['listenTo'](_0x3afbae,_0x170b('0x1'),()=>{for(const _0x11e8f7 of this['activeUIs']){this['_uis'][_0x170b('0x6')](_0x11e8f7)['setActiveAnnotation'](null);}}),this['listenTo'](_0x3afbae[_0x170b('0x21')],_0x170b('0x27'),(_0xb95475,_0x1b1b63)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x1b1b63);});}[_0x170b('0x8')](){return this[_0x170b('0xa')][_0x170b('0x3')]>0x0;}[_0x170b('0x17')](_0x1b313a){return this[_0x170b('0xa')][_0x170b('0x28')](_0x1b313a);}[_0x170b('0x1e')](_0x59ae46,_0x3f1a5d=()=>!0x0){const _0x11b3cb=this[_0x170b('0x15')]['plugins'][_0x170b('0x6')](_0xdfe03a);if(!this['_uis'][_0x170b('0x28')](_0x59ae46))throw new _0x2d3adc(_0x170b('0x2a'),this,{'uiName':_0x59ae46});this[_0x170b('0x17')](_0x59ae46)&&this[_0x170b('0x4')](_0x59ae46),this[_0x170b('0xa')][_0x170b('0x27')](_0x59ae46);const _0x996200=new _0x1f7a37(),_0x868aa7=_0x11b3cb[_0x170b('0x21')];_0x2d943c({'source':_0x868aa7,'target':_0x996200,'filter':_0x3f1a5d}),this[_0x170b('0x18')][_0x170b('0x23')](_0x59ae46,{'collection':_0x996200,'filter':_0x3f1a5d});const _0x459e89=this[_0x170b('0x16')][_0x170b('0x6')](_0x59ae46);_0x459e89[_0x170b('0x0')](_0x996200),this['listenTo'](_0x459e89,_0x170b('0xf'),(_0x249003,_0x4b4a96,_0xa6b995,_0x1418cc)=>{_0x1418cc&&_0x11b3cb[_0x170b('0x19')](_0x1418cc),_0xa6b995&&_0x11b3cb[_0x170b('0x24')](_0xa6b995);});}[_0x170b('0x4')](_0x57b891){if(this['activeUIs'][_0x170b('0x13')](_0x57b891),!this[_0x170b('0x16')][_0x170b('0x28')](_0x57b891))throw new _0x2d3adc(_0x170b('0x2a'),this,{'uiName':_0x57b891});const _0x10badf=this[_0x170b('0x16')][_0x170b('0x6')](_0x57b891);_0x10badf[_0x170b('0xc')](),this['stopListening'](_0x10badf),this[_0x170b('0x18')]['get'](_0x57b891)[_0x170b('0xb')][_0x170b('0x12')](),this[_0x170b('0x18')][_0x170b('0x13')](_0x57b891);}['switchTo'](_0x57a68b){if(!this[_0x170b('0x16')]['has'](_0x57a68b))throw new _0x2d3adc(_0x170b('0x2a'),this,{'uiName':_0x57a68b});const _0x33dc8d=this[_0x170b('0x15')]['plugins'][_0x170b('0x6')](_0xdfe03a),_0x432423=Array[_0x170b('0x22')](_0x33dc8d[_0x170b('0x11')])[0x0]||null;this[_0x170b('0x26')](),this[_0x170b('0x1e')](_0x57a68b);const _0x1b1f72=this[_0x170b('0x16')]['get'](_0x57a68b);_0x1b1f72[_0x170b('0x29')](_0x432423),_0x1b1f72['_setSelectedAnnotations']&&_0x432423&&_0x1b1f72['_setSelectedAnnotations']([_0x432423]);}[_0x170b('0x26')](){for(const _0x290b79 of this[_0x170b('0xa')])this[_0x170b('0x4')](_0x290b79);}[_0x170b('0x9')](_0x5e8b00,_0x559baf){if(this[_0x170b('0x16')][_0x170b('0x28')](_0x5e8b00))throw new _0x2d3adc('annotationsuis-register-already-registered');if('function'!=typeof _0x559baf[_0x170b('0x0')]||'function'!=typeof _0x559baf[_0x170b('0xc')]||_0x170b('0x1d')!=typeof _0x559baf['setActiveAnnotation'])throw new _0x2d3adc('annotationsuis-register-invalid-interface',null);this[_0x170b('0x16')]['set'](_0x5e8b00,_0x559baf);}[_0x170b('0x2')](){const _0x59e235=this[_0x170b('0x15')][_0x170b('0x20')][_0x170b('0x6')](_0xdfe03a)[_0x170b('0xb')],_0x58beec=new Map(),_0x271cf4=Array[_0x170b('0x22')](this[_0x170b('0xa')]);for(const _0x543157 of this[_0x170b('0xa')]){const _0x289401=this[_0x170b('0x18')][_0x170b('0x6')](_0x543157)[_0x170b('0xb')];for(const _0x3191a5 of _0x289401)_0x58beec[_0x170b('0x23')](_0x3191a5,_0x543157);}for(const _0x2e004d of _0x59e235){const _0x453f21=_0x58beec[_0x170b('0x6')](_0x2e004d);this[_0x170b('0x5')](_0x2e004d);const _0x159212=_0x271cf4[_0x170b('0x1a')](_0x156372=>this[_0x170b('0x18')][_0x170b('0x6')](_0x156372)[_0x170b('0x1c')](_0x2e004d));_0x453f21!==_0x159212&&(_0x453f21&&this[_0x170b('0x18')][_0x170b('0x6')](_0x453f21)[_0x170b('0xb')][_0x170b('0x1f')](_0x2e004d),_0x159212&&this[_0x170b('0x18')][_0x170b('0x6')](_0x159212)[_0x170b('0xb')]['add'](_0x2e004d));}}[_0x170b('0x12')](){this[_0x170b('0x26')](),super[_0x170b('0x12')]();}[_0x170b('0x5')](_0x236ae7){const _0x3009ec=[];for(const _0x2c3315 of this[_0x170b('0xa')]){(0x0,this[_0x170b('0x18')][_0x170b('0x6')](_0x2c3315)['filter'])(_0x236ae7)&&_0x3009ec['push'](_0x2c3315);}if(_0x3009ec[_0x170b('0xe')]>0x1)throw new _0x2d3adc('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x3009ec,'annotationType':_0x236ae7[_0x170b('0x7')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4093=['directChange','push','editor','_dataCollectors','hasDomSelection','plugins','requires','isEqual','has','from','editorannotations-invalid-source-callback','refreshSelectedViews','set','range','fire','element','isReadOnly','document','get','getRanges','update','registerAnnotation','blur','change:isFocused','addSourceCollector','EditorAnnotations','annotation','isCollapsed','delete','_editorAnnotations','listenTo','innerView','containsRange','getOrderedSelectedAnnotations','editing','focusTracker','selection','add','refresh','view'];(function(_0x2b72a1,_0x409334){const _0x48adad=function(_0x48873c){while(--_0x48873c){_0x2b72a1['push'](_0x2b72a1['shift']());}};_0x48adad(++_0x409334);}(_0x4093,0x11a));const _0x48ad=function(_0x2b72a1,_0x409334){_0x2b72a1=_0x2b72a1-0x0;let _0x48adad=_0x4093[_0x2b72a1];return _0x48adad;};import{Plugin as _0x526651}from'ckeditor5/src/core.js';import{CKEditorError as _0x4425b0}from'ckeditor5/src/utils.js';import{debounce as _0x466e3f}from'lodash-es';import _0x4e5538 from'./annotations.js';export default class k extends _0x526651{static get[_0x48ad('0x4')](){return[_0x4e5538];}static get['pluginName'](){return _0x48ad('0x17');}constructor(_0x4b40bb){super(_0x4b40bb),this[_0x48ad('0x1')]=new Set(),this[_0x48ad('0x1b')]=new Set();}['init'](){const _0x2d0b97=this[_0x48ad('0x0')],_0x5f1985=_0x2d0b97['model'][_0x48ad('0xf')][_0x48ad('0x22')],_0x15c902=_0x466e3f(()=>this[_0x48ad('0x9')](),0xa);_0x5f1985['on']('change:range',(_0x4ccb9e,_0x251d62)=>{_0x251d62[_0x48ad('0x26')]&&(_0x15c902['cancel'](),this[_0x48ad('0x9')]());}),this[_0x48ad('0x1c')](_0x2d0b97[_0x48ad('0x20')][_0x48ad('0x25')][_0x48ad('0xf')],_0x48ad('0x15'),(_0x4abc89,_0x1bf1ed,_0x560eb2)=>{_0x560eb2&&_0x15c902();}),this['listenTo'](_0x2d0b97['ui']['focusTracker'],'change:isFocused',(_0x492608,_0x568d65,_0x221d26)=>{_0x221d26||_0x2d0b97[_0x48ad('0xe')]||this[_0x48ad('0xc')](_0x48ad('0x14'),{'isAnnotationTracked':_0x422440=>this['_editorAnnotationsData'][_0x48ad('0x6')](_0x422440[_0x48ad('0x1d')])});}),this[_0x48ad('0x1c')](this[_0x48ad('0x0')]['ui'],_0x48ad('0x12'),()=>this['fire']('uiUpdate'));}[_0x48ad('0x13')](_0x389c77){if(this[_0x48ad('0x1b')][_0x48ad('0x6')](_0x389c77['view']))return;this[_0x48ad('0x1b')][_0x48ad('0x23')](_0x389c77['view']),this[_0x48ad('0x0')]['ui']['focusTracker'][_0x48ad('0x23')](_0x389c77[_0x48ad('0x25')][_0x48ad('0xd')]);const _0x57eb5a=this['editor'][_0x48ad('0x3')][_0x48ad('0x10')](_0x4e5538);this['listenTo'](_0x57eb5a['collection'],'remove',(_0x21d460,_0x57b82e)=>{this['editor']['ui'][_0x48ad('0x21')]['remove'](_0x57b82e[_0x48ad('0x25')][_0x48ad('0xd')]),this[_0x48ad('0x1b')][_0x48ad('0x1a')](_0x57b82e['view']);});}[_0x48ad('0x2')](){return this['editor'][_0x48ad('0x20')][_0x48ad('0x25')][_0x48ad('0x2')];}[_0x48ad('0x16')](_0xae4177){if('function'!=typeof _0xae4177)throw new _0x4425b0(_0x48ad('0x8'));this['_dataCollectors'][_0x48ad('0x23')](_0xae4177);}[_0x48ad('0x9')](){this[_0x48ad('0xc')](_0x48ad('0x24'));}[_0x48ad('0x1f')]({activeAnnotation:_0x17eed0,annotations:_0x3a59e9}){const _0x5217e2=[],_0x4c6fe0=this['editor']['model'][_0x48ad('0xf')][_0x48ad('0x22')],_0x3cb96f=Array[_0x48ad('0x7')](_0x4c6fe0[_0x48ad('0x11')]());for(const [_0x13641a,_0x258a8c]of this['_editorAnnotationsData']){const _0x307aaf=_0x1300ac(_0x258a8c),_0x29772b=_0x3a59e9['getByInnerView'](_0x13641a);_0x307aaf&&_0x29772b&&_0x5217e2[_0x48ad('0x27')]({'annotation':_0x29772b,'range':_0x307aaf});}function _0x1300ac(_0x1cbd5c){for(const _0x4a5d66 of _0x1cbd5c)for(const _0x2ff974 of _0x3cb96f)if(_0x4a5d66[_0x48ad('0x1e')](_0x2ff974,!_0x4c6fe0[_0x48ad('0x19')]))return _0x4a5d66;return null;}return _0x5217e2['sort']((_0x1fef31,_0x539364)=>{const _0x34190c=_0x1fef31[_0x48ad('0xb')],_0xbe527b=_0x539364[_0x48ad('0xb')];if(!_0x34190c[_0x48ad('0x5')](_0xbe527b)){if(_0x34190c['containsRange'](_0xbe527b,!0x0))return 0x1;if(_0xbe527b[_0x48ad('0x1e')](_0x34190c,!0x0))return-0x1;}return _0x1fef31[_0x48ad('0x18')]==_0x17eed0?-0x1:_0x539364[_0x48ad('0x18')]==_0x17eed0?0x1:0x0;})['map'](_0x460947=>_0x460947['annotation']);}get['_editorAnnotationsData'](){const _0x51b8e5=new Map();for(const _0x158866 of Array[_0x48ad('0x7')](this['_dataCollectors']))for(const [_0x20b2d4,_0x5b72e6]of _0x158866())_0x51b8e5[_0x48ad('0xa')](_0x20b2d4,_0x5b72e6);return _0x51b8e5;}}
23
+ const _0x7805=['isEqual','change:isFocused','function','cancel','sort','has','annotation','model','map','fire','collection','add','isCollapsed','pluginName','init','containsRange','view','remove','set','_dataCollectors','isReadOnly','_editorAnnotationsData','editorannotations-invalid-source-callback','hasDomSelection','refreshSelectedViews','directChange','range','get','document','getRanges','editor','focusTracker','refresh','selection','push','listenTo','update','uiUpdate','element','editing','delete','getByInnerView','_editorAnnotations','blur','plugins','change:range','registerAnnotation','addSourceCollector'];(function(_0x22a454,_0x780578){const _0x5042b6=function(_0x18bdcb){while(--_0x18bdcb){_0x22a454['push'](_0x22a454['shift']());}};_0x5042b6(++_0x780578);}(_0x7805,0xf5));const _0x5042=function(_0x22a454,_0x780578){_0x22a454=_0x22a454-0x0;let _0x5042b6=_0x7805[_0x22a454];return _0x5042b6;};import{Plugin as _0x5d423d}from'ckeditor5/src/core.js';import{CKEditorError as _0x44d073}from'ckeditor5/src/utils.js';import{debounce as _0x6e436a}from'lodash-es';import _0x4ee91a from'./annotations.js';export default class k extends _0x5d423d{static get['requires'](){return[_0x4ee91a];}static get[_0x5042('0x8')](){return'EditorAnnotations';}constructor(_0x17722d){super(_0x17722d),this['_dataCollectors']=new Set(),this[_0x5042('0x25')]=new Set();}[_0x5042('0x9')](){const _0x2c58f2=this[_0x5042('0x19')],_0x29fc04=_0x2c58f2[_0x5042('0x2')]['document'][_0x5042('0x1c')],_0x39fc9c=_0x6e436a(()=>this[_0x5042('0x13')](),0xa);_0x29fc04['on'](_0x5042('0x28'),(_0x3f080b,_0x3a3091)=>{_0x3a3091[_0x5042('0x14')]&&(_0x39fc9c[_0x5042('0x2e')](),this[_0x5042('0x13')]());}),this[_0x5042('0x1e')](_0x2c58f2[_0x5042('0x22')]['view']['document'],_0x5042('0x2c'),(_0x411f0a,_0x45a900,_0x130c07)=>{_0x130c07&&_0x39fc9c();}),this[_0x5042('0x1e')](_0x2c58f2['ui']['focusTracker'],_0x5042('0x2c'),(_0x5ee385,_0x38564e,_0x1e403f)=>{_0x1e403f||_0x2c58f2[_0x5042('0xf')]||this[_0x5042('0x4')](_0x5042('0x26'),{'isAnnotationTracked':_0x1f93d2=>this[_0x5042('0x10')][_0x5042('0x0')](_0x1f93d2['innerView'])});}),this[_0x5042('0x1e')](this[_0x5042('0x19')]['ui'],_0x5042('0x1f'),()=>this[_0x5042('0x4')](_0x5042('0x20')));}[_0x5042('0x29')](_0x2cab8c){if(this['_editorAnnotations'][_0x5042('0x0')](_0x2cab8c['view']))return;this[_0x5042('0x25')]['add'](_0x2cab8c[_0x5042('0xb')]),this[_0x5042('0x19')]['ui']['focusTracker'][_0x5042('0x6')](_0x2cab8c[_0x5042('0xb')][_0x5042('0x21')]);const _0x4da79a=this[_0x5042('0x19')][_0x5042('0x27')][_0x5042('0x16')](_0x4ee91a);this[_0x5042('0x1e')](_0x4da79a[_0x5042('0x5')],_0x5042('0xc'),(_0x53fc6d,_0xcc21b7)=>{this['editor']['ui'][_0x5042('0x1a')][_0x5042('0xc')](_0xcc21b7['view'][_0x5042('0x21')]),this[_0x5042('0x25')][_0x5042('0x23')](_0xcc21b7['view']);});}[_0x5042('0x12')](){return this[_0x5042('0x19')][_0x5042('0x22')]['view']['hasDomSelection'];}[_0x5042('0x2a')](_0x2d1bf8){if(_0x5042('0x2d')!=typeof _0x2d1bf8)throw new _0x44d073(_0x5042('0x11'));this[_0x5042('0xe')][_0x5042('0x6')](_0x2d1bf8);}['refreshSelectedViews'](){this[_0x5042('0x4')](_0x5042('0x1b'));}['getOrderedSelectedAnnotations']({activeAnnotation:_0x271ed0,annotations:_0x3438c3}){const _0x45abb0=[],_0x348cdd=this[_0x5042('0x19')][_0x5042('0x2')][_0x5042('0x17')][_0x5042('0x1c')],_0x344f32=Array['from'](_0x348cdd[_0x5042('0x18')]());for(const [_0x4af73c,_0x3bd134]of this[_0x5042('0x10')]){const _0x4606b2=_0x44cb5e(_0x3bd134),_0x7f4968=_0x3438c3[_0x5042('0x24')](_0x4af73c);_0x4606b2&&_0x7f4968&&_0x45abb0[_0x5042('0x1d')]({'annotation':_0x7f4968,'range':_0x4606b2});}function _0x44cb5e(_0x4a1a4f){for(const _0x3f88e6 of _0x4a1a4f)for(const _0x4ff129 of _0x344f32)if(_0x3f88e6[_0x5042('0xa')](_0x4ff129,!_0x348cdd[_0x5042('0x7')]))return _0x3f88e6;return null;}return _0x45abb0[_0x5042('0x2f')]((_0x3d553d,_0x50fd98)=>{const _0x2359e2=_0x3d553d[_0x5042('0x15')],_0x4dcd30=_0x50fd98[_0x5042('0x15')];if(!_0x2359e2[_0x5042('0x2b')](_0x4dcd30)){if(_0x2359e2['containsRange'](_0x4dcd30,!0x0))return 0x1;if(_0x4dcd30[_0x5042('0xa')](_0x2359e2,!0x0))return-0x1;}return _0x3d553d['annotation']==_0x271ed0?-0x1:_0x50fd98['annotation']==_0x271ed0?0x1:0x0;})[_0x5042('0x3')](_0x46d1a9=>_0x46d1a9[_0x5042('0x1')]);}get[_0x5042('0x10')](){const _0x3c060a=new Map();for(const _0x5c94f2 of Array['from'](this[_0x5042('0xe')]))for(const [_0x5b48ac,_0x232519]of _0x5c94f2())_0x3c060a[_0x5042('0xd')](_0x5b48ac,_0x232519);return _0x3c060a;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5a81=['width','change:isFocused','focusTracker','hasActive','length','hasView','pluginName','listenTo','plugins','_closeAnnotation','_removeAnnotationFromBalloon','keystrokes','every','remove','document','get','editor','detach','getClientRects','editing','destroy','Esc','includes','blur','afterInit','targetRect','isAttached','selection','view','find','_selectedAnnotations','delete','activeAnnotation','viewRangeToDom','right','getFirstRange','set','_balloon','inline','attach','fromRect','update','left','setActiveAnnotation','change:height','has','getBoundingClientRect','_manuallyClosed','inlineannotations-detach-not-attached','InlineAnnotations','refresh','focus','clear','getByView','target','showStack','add','mousedown','collapse','_addAnnotationToBalloon','_addedAnnotations','visibleView','register','_getBalloonTargetForAnnotation','bottom','switchTo','domConverter','_setSelectedAnnotations','isActive','isFocused','_forceRefresh','requires','stopListening','annotations','updatePosition','top','init','push'];(function(_0x1696af,_0x5a814a){const _0x1e081a=function(_0x19398b){while(--_0x19398b){_0x1696af['push'](_0x1696af['shift']());}};_0x1e081a(++_0x5a814a);}(_0x5a81,0xc2));const _0x1e08=function(_0x1696af,_0x5a814a){_0x1696af=_0x1696af-0x0;let _0x1e081a=_0x5a81[_0x1696af];return _0x1e081a;};import{Plugin as _0x3a842a}from'ckeditor5/src/core.js';import _0x43df81 from'./annotationsuis.js';import _0x24d69d from'./editorannotations.js';import{ContextualBalloon as _0x8771c9}from'ckeditor5/src/ui.js';import{MouseObserver as _0x559f4b}from'ckeditor5/src/engine.js';import{CKEditorError as _0x3214f6,Rect as _0x28cf49}from'ckeditor5/src/utils.js';import'./../../theme/annotation-inline.css';export default class c extends _0x3a842a{static get[_0x1e08('0x21')](){return[_0x24d69d,_0x8771c9,_0x43df81];}static get[_0x1e08('0x2e')](){return _0x1e08('0xb');}constructor(_0x1570b){super(_0x1570b),_0x1570b['editing'][_0x1e08('0x44')]['addObserver'](_0x559f4b),this[_0x1e08('0x42')]=!0x1,this[_0x1e08('0x4c')](_0x1e08('0x48'),null),this[_0x1e08('0x23')]=null,this[_0x1e08('0x9')]=new Set(),this[_0x1e08('0x4d')]=_0x1570b['plugins']['get'](_0x8771c9),this[_0x1e08('0x16')]=new Set(),this[_0x1e08('0x46')]=[],this[_0x1e08('0x20')]=!0x1;}[_0x1e08('0x26')](){const _0x32093c=this['editor'][_0x1e08('0x30')][_0x1e08('0x37')](_0x43df81);_0x32093c['context']===this['editor']&&(_0x32093c[_0x1e08('0x18')](_0x1e08('0x0'),this),this[_0x1e08('0x38')][_0x1e08('0x33')][_0x1e08('0x4c')](_0x1e08('0x3d'),(_0x4d04c7,_0x4d66a8)=>{const _0x1467db=this[_0x1e08('0x4d')];if(this[_0x1e08('0x42')]&&_0x1467db['visibleView']){const _0x22b2fc=this[_0x1e08('0x23')][_0x1e08('0xf')](_0x1467db[_0x1e08('0x17')]);_0x22b2fc&&this[_0x1e08('0x31')](_0x22b2fc),_0x4d66a8();}}));}[_0x1e08('0x40')](){const _0x4da36b=this[_0x1e08('0x38')][_0x1e08('0x30')][_0x1e08('0x37')](_0x43df81);_0x4da36b['context']===this[_0x1e08('0x38')]&&(_0x4da36b[_0x1e08('0x2b')]()||_0x4da36b[_0x1e08('0x1b')](_0x1e08('0x0')));}[_0x1e08('0x5')](_0x37286e){_0x37286e!==this['activeAnnotation']&&(this['activeAnnotation']&&(this[_0x1e08('0x48')][_0x1e08('0x1e')]=!0x1),_0x37286e&&this['editor']['ui'][_0x1e08('0x2a')][_0x1e08('0x1f')]&&(this[_0x1e08('0x23')][_0x1e08('0x7')](_0x37286e)&&this[_0x1e08('0x15')](_0x37286e,!0x0),_0x37286e[_0x1e08('0x1e')]=!0x0),_0x37286e||this['_setSelectedAnnotations']([]),this[_0x1e08('0x48')]=_0x37286e);}[_0x1e08('0x1')](_0x52b1d1){this[_0x1e08('0x23')]=_0x52b1d1;const _0x47964a=this[_0x1e08('0x38')][_0x1e08('0x30')][_0x1e08('0x37')](_0x43df81),_0x1dd044=this[_0x1e08('0x4d')];if(this[_0x1e08('0x42')])throw new _0x3214f6('inlineannotations-attach-already-attached',this);if(_0x47964a['context']!==this['editor'])throw new _0x3214f6('inlineannotations-not-allowed-with-context',this);const _0x4fb140=this[_0x1e08('0x38')][_0x1e08('0x30')][_0x1e08('0x37')](_0x24d69d);this[_0x1e08('0x2f')](_0x4fb140,_0x1e08('0xc'),()=>{const _0x9efed3=_0x4fb140['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0xfb39e6,_0xdc1837;!this[_0x1e08('0x20')]&&(_0xfb39e6=_0x9efed3,_0xdc1837=this[_0x1e08('0x46')],_0xfb39e6[_0x1e08('0x2c')]===_0xdc1837[_0x1e08('0x2c')]&&_0xfb39e6[_0x1e08('0x34')](_0x586b13=>_0xdc1837['includes'](_0x586b13)))||(this[_0x1e08('0x20')]=!0x1,this[_0x1e08('0x1d')](_0x9efed3),this[_0x1e08('0x5')](_0x9efed3[0x0]||null));}),this[_0x1e08('0x2f')](_0x4fb140,_0x1e08('0x3f'),(_0x3cdda1,{isAnnotationTracked:_0x581cef})=>{this[_0x1e08('0x48')]&&_0x581cef(this['activeAnnotation'])&&(this[_0x1e08('0x1d')]([]),this[_0x1e08('0x5')](null));}),this[_0x1e08('0x2f')](this['editor']['ui'][_0x1e08('0x2a')],_0x1e08('0x29'),(_0x120dae,_0x389455,_0x2665d5)=>{_0x2665d5||this[_0x1e08('0x5')](null);}),this[_0x1e08('0x2f')](_0x52b1d1,_0x1e08('0x35'),(_0x54b4d2,_0x40f890)=>{this[_0x1e08('0x32')](_0x40f890),_0x40f890===this[_0x1e08('0x48')]&&this['setActiveAnnotation'](null);}),this[_0x1e08('0x2f')](_0x1dd044,'change:visibleView',(_0x5c2937,_0x44d266,_0x523239,_0x24971e)=>{_0x24971e&&this[_0x1e08('0x22')](_0x24971e);const _0x511ae4=_0x52b1d1[_0x1e08('0xf')](_0x523239);_0x523239&&_0x511ae4&&(this['listenTo'](_0x523239,_0x1e08('0x6'),()=>{_0x1dd044[_0x1e08('0x24')]();}),this[_0x1e08('0x2f')](_0x523239,_0x1e08('0x3d'),()=>{this[_0x1e08('0x31')](_0x511ae4),this[_0x1e08('0x38')][_0x1e08('0x3b')]['view'][_0x1e08('0xd')]();}),this[_0x1e08('0x48')]!==_0x511ae4&&this[_0x1e08('0x5')](_0x511ae4));}),this[_0x1e08('0x2f')](this[_0x1e08('0x38')]['ui'],_0x1e08('0x3'),()=>{_0x1dd044['visibleView']&&(_0x52b1d1['getByView'](_0x1dd044[_0x1e08('0x17')])&&_0x1dd044['updatePosition']());}),this['listenTo'](this[_0x1e08('0x38')][_0x1e08('0x3b')][_0x1e08('0x44')][_0x1e08('0x36')],_0x1e08('0x13'),()=>{this[_0x1e08('0x20')]=!0x0,this[_0x1e08('0x9')][_0x1e08('0xe')]();}),this[_0x1e08('0x38')][_0x1e08('0x3b')]['view']['document'][_0x1e08('0x43')]['editableElement']&&this[_0x1e08('0x38')]['editing'][_0x1e08('0x44')][_0x1e08('0xd')](),this['isAttached']=!0x0;}['detach'](){if(!this[_0x1e08('0x42')])throw new _0x3214f6(_0x1e08('0xa'),this);this[_0x1e08('0x5')](null);for(const _0x51ab96 of this[_0x1e08('0x16')])this[_0x1e08('0x32')](_0x51ab96);this[_0x1e08('0x22')](),this[_0x1e08('0x42')]=!0x1,this[_0x1e08('0x23')]=null;}[_0x1e08('0x3c')](){this[_0x1e08('0x42')]&&this[_0x1e08('0x39')]();}['_setSelectedAnnotations'](_0x1c29d9){for(const _0x51ed32 of this['_selectedAnnotations'])_0x1c29d9[_0x1e08('0x3e')](_0x51ed32)||this[_0x1e08('0x9')][_0x1e08('0x47')](_0x51ed32);for(const _0x506b8c of this[_0x1e08('0x23')])_0x1c29d9[_0x1e08('0x3e')](_0x506b8c)||this[_0x1e08('0x32')](_0x506b8c);if(this['editor']['ui']['focusTracker'][_0x1e08('0x1f')])for(const _0x18563d of _0x1c29d9)this[_0x1e08('0x15')](_0x18563d);this['_selectedAnnotations']=_0x1c29d9;}[_0x1e08('0x15')](_0x4e7019,_0x2e83be=!0x1){this[_0x1e08('0x9')][_0x1e08('0x7')](_0x4e7019)||(this[_0x1e08('0x16')][_0x1e08('0x7')](_0x4e7019)||this[_0x1e08('0x4d')][_0x1e08('0x2d')](_0x4e7019['view'])||(this[_0x1e08('0x16')][_0x1e08('0x12')](_0x4e7019),this['_balloon'][_0x1e08('0x12')]({'stackId':_0x4e7019[_0x1e08('0x44')]['id'],'view':_0x4e7019['view'],'position':{'target':()=>this[_0x1e08('0x19')](_0x4e7019)}})),_0x2e83be&&this[_0x1e08('0x4d')][_0x1e08('0x11')](_0x4e7019[_0x1e08('0x44')]['id']));}['_getBalloonTargetForAnnotation'](_0x2b611a){const _0x3a3fef=_0x2b611a[_0x1e08('0x10')],_0xb7525=this[_0x1e08('0x38')][_0x1e08('0x3b')][_0x1e08('0x44')],_0x561a8b=_0xb7525['document'][_0x1e08('0x43')][_0x1e08('0x4b')](),_0x546d0e=_0xb7525[_0x1e08('0x1c')][_0x1e08('0x49')](_0x561a8b);if(_0x546d0e[_0x1e08('0x14')](!0x0),_0x3a3fef){if(_0x3a3fef instanceof _0x28cf49)return _0x3a3fef;let _0x36e295=[];for(const _0x3d5d71 of _0x3a3fef)_0x36e295[_0x1e08('0x27')](...(_0x17e076=_0x3d5d71[_0x1e08('0x3a')](),Array['from'](_0x17e076)['map'](DOMRect[_0x1e08('0x2')])));_0x36e295=function(_0x1a77fc){const _0x50d6c6=[];let _0xf9cae2=_0x1a77fc[0x0];for(let _0x1122ab=0x1;_0x1122ab<_0x1a77fc[_0x1e08('0x2c')];_0x1122ab++)F(_0xf9cae2,_0x1a77fc[_0x1122ab])?_0xf9cae2[_0x1e08('0x28')]+=_0x1a77fc[_0x1122ab]['width']:(_0x50d6c6[_0x1e08('0x27')](_0xf9cae2),_0xf9cae2=_0x1a77fc[_0x1122ab]);return _0x50d6c6[_0x1e08('0x27')](_0xf9cae2),_0x50d6c6;}(_0x36e295);const _0x272f28=_0x546d0e[_0x1e08('0x8')]();return _0x36e295[_0x1e08('0x45')](_0x10d206=>_0x10d206[_0x1e08('0x25')]<=_0x272f28[_0x1e08('0x25')]&&_0x10d206['bottom']>=_0x272f28[_0x1e08('0x1a')]&&_0x10d206[_0x1e08('0x4')]<=_0x272f28[_0x1e08('0x4')]&&_0x10d206['right']>=_0x272f28['right'])||_0x36e295[0x0];}var _0x17e076;return _0x2b611a[_0x1e08('0x41')]||_0x546d0e;}['_removeAnnotationFromBalloon'](_0x25b217){this['_addedAnnotations']['has'](_0x25b217)&&this[_0x1e08('0x4d')][_0x1e08('0x2d')](_0x25b217[_0x1e08('0x44')])&&(this[_0x1e08('0x16')][_0x1e08('0x47')](_0x25b217),this[_0x1e08('0x4d')][_0x1e08('0x35')](_0x25b217[_0x1e08('0x44')]));}[_0x1e08('0x31')](_0xf98494){this['_manuallyClosed'][_0x1e08('0x12')](_0xf98494),this[_0x1e08('0x32')](_0xf98494);}}function F(_0x3f93c2,_0x5664db){return _0x3f93c2[_0x1e08('0x25')]===_0x5664db['top']&&_0x3f93c2[_0x1e08('0x1a')]===_0x5664db[_0x1e08('0x1a')]&&_0x3f93c2[_0x1e08('0x4a')]===_0x5664db['left'];}
23
+ const _0x152f=['_manuallyClosed','showStack','keystrokes','update','isFocused','_forceRefresh','change:isFocused','from','top','afterInit','annotations','inlineannotations-not-allowed-with-context','selection','find','editor','mousedown','getOrderedSelectedAnnotations','focus','target','targetRect','init','domConverter','_getBalloonTargetForAnnotation','_balloon','destroy','getFirstRange','getByView','remove','document','get','isActive','setActiveAnnotation','detach','length','updatePosition','push','hasView','isAttached','visibleView','_setSelectedAnnotations','getBoundingClientRect','blur','refresh','editableElement','right','activeAnnotation','stopListening','clear','plugins','delete','_addedAnnotations','bottom','includes','context','map','view','left','hasActive','add','listenTo','switchTo','change:visibleView','collapse','inline','_selectedAnnotations','fromRect','set','_addAnnotationToBalloon','width','pluginName','Esc','editing','_removeAnnotationFromBalloon','requires','_closeAnnotation','addObserver','InlineAnnotations','focusTracker','has'];(function(_0x2c509f,_0x152f2f){const _0xd4ba22=function(_0x14f78a){while(--_0x14f78a){_0x2c509f['push'](_0x2c509f['shift']());}};_0xd4ba22(++_0x152f2f);}(_0x152f,0x11e));const _0xd4ba=function(_0x2c509f,_0x152f2f){_0x2c509f=_0x2c509f-0x0;let _0xd4ba22=_0x152f[_0x2c509f];return _0xd4ba22;};import{Plugin as _0x1cb175}from'ckeditor5/src/core.js';import _0x52a0e9 from'./annotationsuis.js';import _0x46cd39 from'./editorannotations.js';import{ContextualBalloon as _0x3498c9}from'ckeditor5/src/ui.js';import{MouseObserver as _0x33a09e}from'ckeditor5/src/engine.js';import{CKEditorError as _0x99de69,Rect as _0x5ec1a4}from'ckeditor5/src/utils.js';import'./../../theme/annotation-inline.css';export default class c extends _0x1cb175{static get[_0xd4ba('0x18')](){return[_0x46cd39,_0x3498c9,_0x52a0e9];}static get[_0xd4ba('0x14')](){return _0xd4ba('0x1b');}constructor(_0xec29d0){super(_0xec29d0),_0xec29d0['editing'][_0xd4ba('0x6')][_0xd4ba('0x1a')](_0x33a09e),this[_0xd4ba('0x43')]=!0x1,this[_0xd4ba('0x11')](_0xd4ba('0x4b'),null),this['annotations']=null,this[_0xd4ba('0x1e')]=new Set(),this[_0xd4ba('0x35')]=_0xec29d0[_0xd4ba('0x4e')][_0xd4ba('0x3b')](_0x3498c9),this[_0xd4ba('0x1')]=new Set(),this[_0xd4ba('0xf')]=[],this[_0xd4ba('0x23')]=!0x1;}[_0xd4ba('0x32')](){const _0x5f1bae=this[_0xd4ba('0x2c')][_0xd4ba('0x4e')][_0xd4ba('0x3b')](_0x52a0e9);_0x5f1bae['context']===this[_0xd4ba('0x2c')]&&(_0x5f1bae['register'](_0xd4ba('0xe'),this),this['editor'][_0xd4ba('0x20')][_0xd4ba('0x11')](_0xd4ba('0x15'),(_0x33956f,_0x35f54f)=>{const _0x378121=this[_0xd4ba('0x35')];if(this['isAttached']&&_0x378121[_0xd4ba('0x44')]){const _0x233eb3=this[_0xd4ba('0x28')][_0xd4ba('0x38')](_0x378121[_0xd4ba('0x44')]);_0x233eb3&&this[_0xd4ba('0x19')](_0x233eb3),_0x35f54f();}}));}[_0xd4ba('0x27')](){const _0x421914=this['editor']['plugins'][_0xd4ba('0x3b')](_0x52a0e9);_0x421914[_0xd4ba('0x4')]===this[_0xd4ba('0x2c')]&&(_0x421914[_0xd4ba('0x8')]()||_0x421914[_0xd4ba('0xb')](_0xd4ba('0xe')));}[_0xd4ba('0x3d')](_0x7787a9){_0x7787a9!==this[_0xd4ba('0x4b')]&&(this[_0xd4ba('0x4b')]&&(this[_0xd4ba('0x4b')][_0xd4ba('0x3c')]=!0x1),_0x7787a9&&this[_0xd4ba('0x2c')]['ui'][_0xd4ba('0x1c')][_0xd4ba('0x22')]&&(this[_0xd4ba('0x28')][_0xd4ba('0x1d')](_0x7787a9)&&this[_0xd4ba('0x12')](_0x7787a9,!0x0),_0x7787a9[_0xd4ba('0x3c')]=!0x0),_0x7787a9||this[_0xd4ba('0x45')]([]),this['activeAnnotation']=_0x7787a9);}['attach'](_0x82ad62){this['annotations']=_0x82ad62;const _0x4b9227=this[_0xd4ba('0x2c')][_0xd4ba('0x4e')]['get'](_0x52a0e9),_0x3532a6=this[_0xd4ba('0x35')];if(this['isAttached'])throw new _0x99de69('inlineannotations-attach-already-attached',this);if(_0x4b9227[_0xd4ba('0x4')]!==this[_0xd4ba('0x2c')])throw new _0x99de69(_0xd4ba('0x29'),this);const _0x2d77db=this[_0xd4ba('0x2c')][_0xd4ba('0x4e')]['get'](_0x46cd39);this[_0xd4ba('0xa')](_0x2d77db,_0xd4ba('0x48'),()=>{const _0x2afbb5=_0x2d77db[_0xd4ba('0x2e')]({'annotations':this[_0xd4ba('0x28')],'activeAnnotation':this[_0xd4ba('0x4b')]});var _0x3acca1,_0x4bcb3b;!this[_0xd4ba('0x23')]&&(_0x3acca1=_0x2afbb5,_0x4bcb3b=this[_0xd4ba('0xf')],_0x3acca1['length']===_0x4bcb3b[_0xd4ba('0x3f')]&&_0x3acca1['every'](_0xb697a5=>_0x4bcb3b[_0xd4ba('0x3')](_0xb697a5)))||(this[_0xd4ba('0x23')]=!0x1,this['_setSelectedAnnotations'](_0x2afbb5),this[_0xd4ba('0x3d')](_0x2afbb5[0x0]||null));}),this[_0xd4ba('0xa')](_0x2d77db,_0xd4ba('0x47'),(_0x52f59d,{isAnnotationTracked:_0x3832c6})=>{this[_0xd4ba('0x4b')]&&_0x3832c6(this[_0xd4ba('0x4b')])&&(this['_setSelectedAnnotations']([]),this[_0xd4ba('0x3d')](null));}),this[_0xd4ba('0xa')](this[_0xd4ba('0x2c')]['ui'][_0xd4ba('0x1c')],_0xd4ba('0x24'),(_0x23276b,_0x1cdaae,_0x3eddda)=>{_0x3eddda||this[_0xd4ba('0x3d')](null);}),this[_0xd4ba('0xa')](_0x82ad62,'remove',(_0x214d74,_0x193d4f)=>{this[_0xd4ba('0x17')](_0x193d4f),_0x193d4f===this[_0xd4ba('0x4b')]&&this[_0xd4ba('0x3d')](null);}),this[_0xd4ba('0xa')](_0x3532a6,_0xd4ba('0xc'),(_0x7985a1,_0x2df720,_0x2b6455,_0x176065)=>{_0x176065&&this[_0xd4ba('0x4c')](_0x176065);const _0x4acc4d=_0x82ad62[_0xd4ba('0x38')](_0x2b6455);_0x2b6455&&_0x4acc4d&&(this['listenTo'](_0x2b6455,'change:height',()=>{_0x3532a6[_0xd4ba('0x40')]();}),this['listenTo'](_0x2b6455,_0xd4ba('0x15'),()=>{this[_0xd4ba('0x19')](_0x4acc4d),this[_0xd4ba('0x2c')][_0xd4ba('0x16')]['view'][_0xd4ba('0x2f')]();}),this[_0xd4ba('0x4b')]!==_0x4acc4d&&this[_0xd4ba('0x3d')](_0x4acc4d));}),this[_0xd4ba('0xa')](this[_0xd4ba('0x2c')]['ui'],_0xd4ba('0x21'),()=>{_0x3532a6[_0xd4ba('0x44')]&&(_0x82ad62[_0xd4ba('0x38')](_0x3532a6['visibleView'])&&_0x3532a6[_0xd4ba('0x40')]());}),this[_0xd4ba('0xa')](this[_0xd4ba('0x2c')][_0xd4ba('0x16')][_0xd4ba('0x6')][_0xd4ba('0x3a')],_0xd4ba('0x2d'),()=>{this[_0xd4ba('0x23')]=!0x0,this['_manuallyClosed'][_0xd4ba('0x4d')]();}),this[_0xd4ba('0x2c')]['editing'][_0xd4ba('0x6')][_0xd4ba('0x3a')][_0xd4ba('0x2a')][_0xd4ba('0x49')]&&this['editor'][_0xd4ba('0x16')][_0xd4ba('0x6')]['focus'](),this[_0xd4ba('0x43')]=!0x0;}[_0xd4ba('0x3e')](){if(!this['isAttached'])throw new _0x99de69('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x560041 of this[_0xd4ba('0x1')])this[_0xd4ba('0x17')](_0x560041);this[_0xd4ba('0x4c')](),this[_0xd4ba('0x43')]=!0x1,this[_0xd4ba('0x28')]=null;}[_0xd4ba('0x36')](){this[_0xd4ba('0x43')]&&this[_0xd4ba('0x3e')]();}[_0xd4ba('0x45')](_0x3e8dfc){for(const _0x37182a of this['_selectedAnnotations'])_0x3e8dfc[_0xd4ba('0x3')](_0x37182a)||this['_manuallyClosed']['delete'](_0x37182a);for(const _0x1b33ff of this[_0xd4ba('0x28')])_0x3e8dfc[_0xd4ba('0x3')](_0x1b33ff)||this[_0xd4ba('0x17')](_0x1b33ff);if(this[_0xd4ba('0x2c')]['ui'][_0xd4ba('0x1c')][_0xd4ba('0x22')])for(const _0x1887a0 of _0x3e8dfc)this[_0xd4ba('0x12')](_0x1887a0);this['_selectedAnnotations']=_0x3e8dfc;}[_0xd4ba('0x12')](_0xf41e9a,_0x1fad0b=!0x1){this[_0xd4ba('0x1e')][_0xd4ba('0x1d')](_0xf41e9a)||(this['_addedAnnotations'][_0xd4ba('0x1d')](_0xf41e9a)||this[_0xd4ba('0x35')]['hasView'](_0xf41e9a[_0xd4ba('0x6')])||(this[_0xd4ba('0x1')]['add'](_0xf41e9a),this[_0xd4ba('0x35')][_0xd4ba('0x9')]({'stackId':_0xf41e9a['view']['id'],'view':_0xf41e9a[_0xd4ba('0x6')],'position':{'target':()=>this[_0xd4ba('0x34')](_0xf41e9a)}})),_0x1fad0b&&this[_0xd4ba('0x35')][_0xd4ba('0x1f')](_0xf41e9a[_0xd4ba('0x6')]['id']));}['_getBalloonTargetForAnnotation'](_0x105f27){const _0x1a9fcf=_0x105f27[_0xd4ba('0x30')],_0x118f4a=this[_0xd4ba('0x2c')][_0xd4ba('0x16')][_0xd4ba('0x6')],_0x2d1067=_0x118f4a[_0xd4ba('0x3a')]['selection'][_0xd4ba('0x37')](),_0x28ed2d=_0x118f4a[_0xd4ba('0x33')]['viewRangeToDom'](_0x2d1067);if(_0x28ed2d[_0xd4ba('0xd')](!0x0),_0x1a9fcf){if(_0x1a9fcf instanceof _0x5ec1a4)return _0x1a9fcf;let _0xae82b6=[];for(const _0x49f03d of _0x1a9fcf)_0xae82b6[_0xd4ba('0x41')](...(_0x3522df=_0x49f03d['getClientRects'](),Array[_0xd4ba('0x25')](_0x3522df)[_0xd4ba('0x5')](DOMRect[_0xd4ba('0x10')])));_0xae82b6=function(_0xe55a1b){const _0x23f87b=[];let _0x3d59c8=_0xe55a1b[0x0];for(let _0x15bc47=0x1;_0x15bc47<_0xe55a1b[_0xd4ba('0x3f')];_0x15bc47++)F(_0x3d59c8,_0xe55a1b[_0x15bc47])?_0x3d59c8[_0xd4ba('0x13')]+=_0xe55a1b[_0x15bc47][_0xd4ba('0x13')]:(_0x23f87b[_0xd4ba('0x41')](_0x3d59c8),_0x3d59c8=_0xe55a1b[_0x15bc47]);return _0x23f87b['push'](_0x3d59c8),_0x23f87b;}(_0xae82b6);const _0x5cab46=_0x28ed2d[_0xd4ba('0x46')]();return _0xae82b6[_0xd4ba('0x2b')](_0x1c6de3=>_0x1c6de3[_0xd4ba('0x26')]<=_0x5cab46[_0xd4ba('0x26')]&&_0x1c6de3[_0xd4ba('0x2')]>=_0x5cab46[_0xd4ba('0x2')]&&_0x1c6de3[_0xd4ba('0x7')]<=_0x5cab46[_0xd4ba('0x7')]&&_0x1c6de3['right']>=_0x5cab46['right'])||_0xae82b6[0x0];}var _0x3522df;return _0x105f27[_0xd4ba('0x31')]||_0x28ed2d;}[_0xd4ba('0x17')](_0x3bc672){this['_addedAnnotations']['has'](_0x3bc672)&&this[_0xd4ba('0x35')][_0xd4ba('0x42')](_0x3bc672[_0xd4ba('0x6')])&&(this[_0xd4ba('0x1')][_0xd4ba('0x0')](_0x3bc672),this[_0xd4ba('0x35')][_0xd4ba('0x39')](_0x3bc672[_0xd4ba('0x6')]));}[_0xd4ba('0x19')](_0x3105bc){this[_0xd4ba('0x1e')][_0xd4ba('0x9')](_0x3105bc),this[_0xd4ba('0x17')](_0x3105bc);}}function F(_0x269b9b,_0x8ff5a7){return _0x269b9b[_0xd4ba('0x26')]===_0x8ff5a7[_0xd4ba('0x26')]&&_0x269b9b['bottom']===_0x8ff5a7['bottom']&&_0x269b9b[_0xd4ba('0x4a')]===_0x8ff5a7[_0xd4ba('0x7')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1e1a=['detach','focus','execute','refresh','cancel','addAnnotation','ck-sidebar--narrow','detachFromDom','_destroyEditorAnnotationsIntegration','length','first','context','_showBalloon','_refreshPositioningDebounced','_annotationToNarrowView','stopPropagation','stopListening','_hideBalloon','find','plugins','isDirty','bodyCollection','_detachListeners','has','get','set','southArrowNorthEast','_attachListeners','_editorAnnotations','focusableElements','northArrowSouthEast','keydown','keyCode','element','isAttached','content','init','_annotations','delete','balloonPanelView','requires','activeAnnotation','refreshPositioning','attach','narrowsidebar-attach-already-attached','_updateBalloonPosition','removeEventListener','bind','southArrowNorth','editors','ready','low','register','_domEmitter','hasDomSelection','clear','annotationType','_setSelectedAnnotations','listenTo','attachToDom','change:height','resize','remove','type','_refreshPositioning','off','narrowsidebar-detach-not-attached','rearrange','EditorAnnotations','northArrowSouthWest','add','esc','locale','setActiveAnnotation','getByView','includes','narrowSidebar','getOrderedSelectedAnnotations','getSidebarItemView','_integrateWithEditorAnnotations','southArrowNorthWest','Esc','number','_manuallyClosedAnnotationViews','from','change:container','northArrowSouth','NarrowSidebar','unpin','preventClosingBalloon','uiUpdate','annotations','_selectedAnnotations','blur','destroy','isVisible','target','view','stop','addEventListener','defaultPositions','high'];(function(_0x29a6a3,_0x1e1ac2){const _0x56066c=function(_0x178228){while(--_0x178228){_0x29a6a3['push'](_0x29a6a3['shift']());}};_0x56066c(++_0x1e1ac2);}(_0x1e1a,0x113));const _0x5606=function(_0x29a6a3,_0x1e1ac2){_0x29a6a3=_0x29a6a3-0x0;let _0x56066c=_0x1e1a[_0x29a6a3];return _0x56066c;};import{ContextPlugin as _0x56caee,Context as _0x1d5bce}from'ckeditor5/src/core.js';import _0x1230f7 from'./annotationsuis.js';import _0x49f883 from'./sidebar.js';import _0x1446e2 from'./view/annotationcounterbuttonview.js';import{BalloonPanelView as _0x53861b,BodyCollection as _0x5982f4}from'ckeditor5/src/ui.js';import{CKEditorError as _0x1d0713,DomEmitterMixin as _0x52f7ee,keyCodes as _0x76bd3e,Collection as _0x1530f2}from'ckeditor5/src/utils.js';import'../../theme/sidebar-narrow.css';import{debounce as _0x532b8d}from'lodash-es';import _0x180b5e from'./editorannotations.js';export default class i extends _0x56caee{static get[_0x5606('0x47')](){return[_0x49f883,_0x1230f7];}static get['pluginName'](){return _0x5606('0x10');}constructor(_0x426213){super(_0x426213),this['isAttached']=!0x1,this[_0x5606('0xc')]=new Set(),this['_domEmitter']=Object['create'](_0x52f7ee),this[_0x5606('0x2d')]=new Map(),this[_0x5606('0x38')](_0x5606('0x48'),null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x1530f2(),this[_0x5606('0x2c')]=_0x532b8d(()=>{this[_0x5606('0x5f')]();},0xfa,{'leading':!0x1});}[_0x5606('0x43')](){this[_0x5606('0x2a')][_0x5606('0x32')][_0x5606('0x37')](_0x1230f7)[_0x5606('0x53')](_0x5606('0x5'),this),this[_0x5606('0x34')]=new _0x5982f4(this['context'][_0x5606('0x1')]),this[_0x5606('0x46')]=new _0x53861b(this[_0x5606('0x2a')]['locale']),this['bodyCollection'][_0x5606('0x5a')](),this[_0x5606('0x34')]['add'](this[_0x5606('0x46')]);}[_0x5606('0x4a')](_0x5e4fd9){this['annotations']=_0x5e4fd9;const _0x5b8c1b=this[_0x5606('0x2a')]['plugins']['get'](_0x49f883),_0x196715=this[_0x5606('0x46')];if(_0x5b8c1b[_0x5606('0x44')]=_0x5e4fd9,this['isAttached'])throw new _0x1d0713(_0x5606('0x4b'),this);this[_0x5606('0x41')]=!0x0,this[_0x5606('0x59')](_0x5b8c1b,'set:container',()=>{this[_0x5606('0x1f')](),this[_0x5606('0x59')](_0x5b8c1b,_0x5606('0xe'),_0x2cc854=>{_0x2cc854[_0x5606('0x60')](),this[_0x5606('0x4a')](_0x5e4fd9);});}),_0x5b8c1b['_attachToContainer']({'viewClass':_0x5606('0x25'),'spaceBetweenItems':0x5});const _0x2ebb86=_0x4142ec=>{const _0x264be1=new _0x1446e2(this['context']['locale']);_0x5b8c1b[_0x5606('0x24')](_0x4142ec,_0x264be1),this[_0x5606('0x2d')]['set'](_0x4142ec,_0x264be1),_0x264be1[_0x5606('0x4e')](_0x5606('0x33'),_0x5606('0x57'),_0x5606('0xb'))['to'](_0x4142ec[_0x5606('0x1a')],_0x5606('0x33'),_0x5606('0x5e'),_0x5606('0x28')),_0x264be1['on'](_0x5606('0x21'),()=>{this[_0x5606('0xc')]['clear'](),_0x196715[_0x5606('0x42')][_0x5606('0x29')]!==_0x4142ec['view']?(this[_0x5606('0x2b')](_0x4142ec),_0x4142ec[_0x5606('0x1a')][_0x5606('0x40')]['focus'](),this[_0x5606('0x2')](_0x4142ec)):this[_0x5606('0x2')](null);});};for(const _0x1ccbf5 of _0x5e4fd9)_0x2ebb86(_0x1ccbf5);this[_0x5606('0x59')](_0x5e4fd9,_0x5606('0x65'),(_0x30d412,_0x25d738)=>{_0x2ebb86(_0x25d738);}),this[_0x5606('0x59')](_0x5e4fd9,_0x5606('0x5d'),(_0x450918,_0x185a79,_0x40bbd8)=>{this['_annotationToNarrowView'][_0x5606('0x37')](_0x185a79)[_0x5606('0x17')](),this[_0x5606('0x2d')][_0x5606('0x45')](_0x185a79),_0x5b8c1b[_0x5606('0x62')]({'removedAnnotation':_0x185a79,'previousAnnotation':_0x5e4fd9[_0x5606('0x37')](_0x40bbd8-0x1),'nextAnnotation':_0x5e4fd9[_0x5606('0x37')](_0x40bbd8+0x1)}),_0x185a79===this[_0x5606('0x48')]&&this[_0x5606('0x2')](null);},{'priority':_0x5606('0x52')}),this[_0x5606('0x59')](_0x5e4fd9,_0x5606('0x20'),(_0x1afcac,_0x2b4639)=>{this[_0x5606('0x2')](_0x2b4639);}),this['listenTo'](_0x5e4fd9,'blur',()=>{this[_0x5606('0x2')](null);}),this[_0x5606('0x54')][_0x5606('0x59')](document,_0x5606('0x3e'),(_0x168f93,_0x1a96a0)=>{_0x1a96a0[_0x5606('0x3f')]===_0x76bd3e[_0x5606('0x0')]&&_0x196715[_0x5606('0x18')]&&(this[_0x5606('0xc')]['add'](_0x196715[_0x5606('0x42')][_0x5606('0x29')]),this['_hideBalloon'](),_0x1a96a0[_0x5606('0x2e')](),_0x1a96a0['preventDefault']());}),this[_0x5606('0x54')]['listenTo'](document,'mousedown',(_0x4c9837,_0x9219d6)=>{const _0x2b74bf=_0x9219d6[_0x5606('0x19')];_0x196715[_0x5606('0x18')]&&_0x196715[_0x5606('0x40')]['contains'](_0x2b74bf)||_0x5b8c1b[_0x5606('0x1a')]['element']['contains'](_0x2b74bf)||_0x4c9837[_0x5606('0x12')]||this[_0x5606('0x48')]&&this[_0x5606('0x48')][_0x5606('0x3c')][_0x5606('0x31')](_0x12b811=>_0x12b811['contains'](_0x2b74bf))||(this[_0x5606('0xc')][_0x5606('0x56')](),this[_0x5606('0x30')](),this['setActiveAnnotation'](null));});const _0xc3f294=this[_0x5606('0x2a')]instanceof _0x1d5bce?this['context']['editors']:new _0x1530f2([this[_0x5606('0x2a')]]);for(const _0x4d62d4 of _0xc3f294)this['_integrateWithEditorAnnotations'](_0x4d62d4);this[_0x5606('0x59')](_0xc3f294,_0x5606('0x65'),(_0x1250cc,_0x51dc8d)=>{this[_0x5606('0x59')](_0x51dc8d,_0x5606('0x51'),()=>{this[_0x5606('0x8')](_0x51dc8d);});}),this['listenTo'](_0xc3f294,'remove',(_0x5cc32c,_0x5074c8)=>{_0x5074c8[_0x5606('0x32')][_0x5606('0x36')](_0x5606('0x63'))&&this[_0x5606('0x27')](_0x5074c8['plugins']['get'](_0x5606('0x63')));}),window[_0x5606('0x1c')]('resize',this[_0x5606('0x2c')]),this[_0x5606('0x5f')]();}[_0x5606('0x2')](_0x13d85c){if(_0x13d85c===this[_0x5606('0x48')])return;const _0x2a56aa=this[_0x5606('0x2a')][_0x5606('0x32')][_0x5606('0x37')](_0x49f883);if(_0x2a56aa['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x13d85c,'disableAnimationOnActivatedAnnotation':!0x0}),_0x13d85c)_0x2a56aa[_0x5606('0x7')](_0x13d85c)?this[_0x5606('0x2b')](_0x13d85c):this['_hideBalloon']();else this[_0x5606('0x30')]();this[_0x5606('0x48')]=_0x13d85c;}[_0x5606('0x1f')](){if(!this[_0x5606('0x41')])throw new _0x1d0713(_0x5606('0x61'),this);this['setActiveAnnotation'](null);const _0x5e26c0=this[_0x5606('0x2a')][_0x5606('0x32')][_0x5606('0x37')](_0x49f883);this[_0x5606('0x30')](),Array[_0x5606('0xd')](this[_0x5606('0x2d')]['values'](),_0x41f198=>_0x41f198[_0x5606('0x17')]()),this[_0x5606('0x2d')][_0x5606('0x56')](),_0x5e26c0['_detachFromContainer'](this[_0x5606('0x14')]),this[_0x5606('0x2f')](),this['_domEmitter'][_0x5606('0x2f')](),this[_0x5606('0x2a')]instanceof _0x1d5bce&&this[_0x5606('0x2f')](this[_0x5606('0x2a')][_0x5606('0x50')]);for(const _0x328dcd of Array[_0x5606('0xd')](this[_0x5606('0x3b')]))this[_0x5606('0x27')](_0x328dcd);window[_0x5606('0x4d')](_0x5606('0x5c'),this[_0x5606('0x2c')]),this[_0x5606('0x2c')][_0x5606('0x23')](),this['_selectedAnnotations']=[],this[_0x5606('0x41')]=!0x1,this[_0x5606('0x14')]=null;}['destroy'](){this[_0x5606('0x41')]&&this[_0x5606('0x1f')](),this[_0x5606('0x34')][_0x5606('0x26')]();}['_integrateWithEditorAnnotations'](_0x226ae7){const _0x2d62e2=_0x226ae7[_0x5606('0x32')][_0x5606('0x37')](_0x180b5e),_0x1aabbf=this[_0x5606('0x2a')][_0x5606('0x32')][_0x5606('0x37')](_0x49f883),_0x213a5e=this['annotations'],_0x1f4189=this[_0x5606('0x46')],_0x3b6601=()=>{const _0x150efe=_0x2d62e2[_0x5606('0x6')]({'annotations':this[_0x5606('0x14')],'activeAnnotation':this[_0x5606('0x48')]});this['_setSelectedAnnotations'](_0x150efe),this[_0x5606('0x2')](_0x150efe[0x0]||null);};this[_0x5606('0x59')](_0x2d62e2,_0x5606('0x22'),_0x3b6601),this[_0x5606('0x59')](_0x2d62e2,_0x5606('0x16'),(_0x18e9f1,{isAnnotationTracked:_0x426de2})=>{this[_0x5606('0x48')]&&_0x426de2(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this[_0x5606('0x2')](null));}),this[_0x5606('0x59')](_0x2d62e2,_0x5606('0x13'),()=>{this[_0x5606('0x2c')]();}),this[_0x5606('0x59')](_0x213a5e,_0x5606('0x16'),_0x49f105=>{_0x2d62e2[_0x5606('0x55')]()&&_0x49f105[_0x5606('0x1b')]();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x5cad6e,_0x5275d6)=>{const _0x13ad61=_0x5275d6[_0x5606('0x19')];_0x1f4189[_0x5606('0x18')]&&_0x1f4189['element']['contains'](_0x13ad61)||_0x1aabbf['view'][_0x5606('0x40')]['contains'](_0x13ad61)||this['activeAnnotation']&&_0x2d62e2[_0x5606('0x55')]()&&(_0x3b6601(),_0x5cad6e[_0x5606('0x12')]=!0x0);},{'priority':_0x5606('0x1e')}),this[_0x5606('0x3b')][_0x5606('0x65')](_0x2d62e2);}[_0x5606('0x27')](_0x2ed1da){_0x2ed1da&&(this[_0x5606('0x2f')](_0x2ed1da),this[_0x5606('0x3b')]['remove'](_0x2ed1da));}[_0x5606('0x58')](_0x5ba02d){for(const _0x32754d of this[_0x5606('0x15')])_0x5ba02d[_0x5606('0x4')](_0x32754d)||this[_0x5606('0xc')]['delete'](_0x32754d[_0x5606('0x1a')]);this[_0x5606('0x15')]=_0x5ba02d;}['_refreshPositioning'](){const _0x56d704=this[_0x5606('0x46')];this['annotations'][_0x5606('0x49')](),_0x56d704[_0x5606('0x18')]&&this[_0x5606('0x4c')]();}[_0x5606('0x2b')](_0x4c6beb){if(this[_0x5606('0xc')]['has'](_0x4c6beb[_0x5606('0x1a')]))return;const _0x48a1ef=this[_0x5606('0x46')][_0x5606('0x42')][_0x5606('0x29')];_0x48a1ef!==_0x4c6beb['view']?(_0x48a1ef&&this[_0x5606('0x35')](_0x48a1ef),this[_0x5606('0x3a')](_0x4c6beb[_0x5606('0x1a')]),this['balloonPanelView'][_0x5606('0x42')]['clear'](),this[_0x5606('0x46')][_0x5606('0x42')]['add'](_0x4c6beb[_0x5606('0x1a')]),this['_updateBalloonPosition']()):this[_0x5606('0x4c')]();}[_0x5606('0x4c')](){const _0x106e7c=this[_0x5606('0x46')][_0x5606('0x42')][_0x5606('0x29')],_0x126a42=_0x106e7c&&this[_0x5606('0x14')][_0x5606('0x3')](_0x106e7c);if(!_0x126a42||!this[_0x5606('0x2d')][_0x5606('0x36')](_0x126a42))return;const _0x487fe3=this[_0x5606('0x2d')][_0x5606('0x37')](_0x126a42)[_0x5606('0x40')],_0x158030=function(){const _0x5bc49f=_0x53861b[_0x5606('0x1d')];return[_0x5bc49f[_0x5606('0x39')],_0x5bc49f[_0x5606('0x3d')],_0x5bc49f[_0x5606('0x4f')],_0x5bc49f[_0x5606('0xf')],_0x5bc49f[_0x5606('0x9')],_0x5bc49f[_0x5606('0x64')]];}();this[_0x5606('0x46')]['pin']({'target':_0x487fe3,'positions':_0x158030});}['_hideBalloon'](){const _0x3b0827=this[_0x5606('0x46')],_0x335f6b=_0x3b0827[_0x5606('0x42')][_0x5606('0x29')];_0x335f6b&&(this[_0x5606('0x35')](_0x335f6b),_0x3b0827[_0x5606('0x11')](),_0x3b0827['content'][_0x5606('0x56')]());}[_0x5606('0x3a')](_0x5c8e04){this['listenTo'](_0x5c8e04,_0x5606('0x5b'),()=>this[_0x5606('0x4c')]()),this[_0x5606('0x59')](_0x5c8e04,_0x5606('0xa'),(_0x5876eb,_0x2ea8fd)=>{this[_0x5606('0xc')]['add'](_0x5c8e04),this[_0x5606('0x30')](),_0x2ea8fd();});}[_0x5606('0x35')](_0x561161){this['stopListening'](_0x561161);}}
23
+ const _0x1cf1=['has','_showBalloon','view','isDirty','keyCode','detach','northArrowSouth','hasDomSelection','_annotationToNarrowView','register','narrowsidebar-detach-not-attached','isVisible','delete','EditorAnnotations','narrowsidebar-attach-already-attached','_integrateWithEditorAnnotations','high','values','change:container','focusableElements','ready','focus','_domEmitter','blur','_refreshPositioning','content','Esc','annotationType','off','detachFromDom','locale','requires','contains','cancel','init','attach','addEventListener','getByView','resize','length','ck-sidebar--narrow','stopPropagation','_attachListeners','removeEventListener','bodyCollection','destroy','addAnnotation','target','_updateBalloonPosition','stopListening','activeAnnotation','preventClosingBalloon','esc','unpin','element','preventDefault','balloonPanelView','clear','northArrowSouthEast','_attachToContainer','change:height','remove','_detachFromContainer','refresh','southArrowNorth','setActiveAnnotation','listenTo','plugins','_editorAnnotations','isAttached','_destroyEditorAnnotationsIntegration','execute','_refreshPositioningDebounced','defaultPositions','first','_manuallyClosedAnnotationViews','annotations','context','refreshPositioning','add','get','mousedown','create','_detachListeners','number','rearrange','set','_setSelectedAnnotations','_selectedAnnotations','includes','_hideBalloon','editors','stop','narrowSidebar','northArrowSouthWest'];(function(_0x2f0518,_0x1cf1b6){const _0x13ef7e=function(_0x50ea2d){while(--_0x50ea2d){_0x2f0518['push'](_0x2f0518['shift']());}};_0x13ef7e(++_0x1cf1b6);}(_0x1cf1,0x129));const _0x13ef=function(_0x2f0518,_0x1cf1b6){_0x2f0518=_0x2f0518-0x0;let _0x13ef7e=_0x1cf1[_0x2f0518];return _0x13ef7e;};import{ContextPlugin as _0x7fb536,Context as _0x79d6fc}from'ckeditor5/src/core.js';import _0x79385c from'./annotationsuis.js';import _0x523122 from'./sidebar.js';import _0x5096d1 from'./view/annotationcounterbuttonview.js';import{BalloonPanelView as _0x3108e7,BodyCollection as _0xe7834c}from'ckeditor5/src/ui.js';import{CKEditorError as _0x269634,DomEmitterMixin as _0x587abd,keyCodes as _0x47b4d0,Collection as _0x2aa39c}from'ckeditor5/src/utils.js';import'../../theme/sidebar-narrow.css';import{debounce as _0x244327}from'lodash-es';import _0x11ca24 from'./editorannotations.js';export default class i extends _0x7fb536{static get[_0x13ef('0x13')](){return[_0x523122,_0x79385c];}static get['pluginName'](){return'NarrowSidebar';}constructor(_0x5122ee){super(_0x5122ee),this[_0x13ef('0x39')]=!0x1,this[_0x13ef('0x3f')]=new Set(),this[_0x13ef('0xa')]=Object[_0x13ef('0x46')](_0x587abd),this[_0x13ef('0x5b')]=new Map(),this[_0x13ef('0x4a')](_0x13ef('0x26'),null),this[_0x13ef('0x40')]=null,this[_0x13ef('0x4c')]=[],this[_0x13ef('0x38')]=new _0x2aa39c(),this[_0x13ef('0x3c')]=_0x244327(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}[_0x13ef('0x16')](){this[_0x13ef('0x41')][_0x13ef('0x37')][_0x13ef('0x44')](_0x79385c)[_0x13ef('0x5c')](_0x13ef('0x51'),this),this[_0x13ef('0x20')]=new _0xe7834c(this[_0x13ef('0x41')][_0x13ef('0x12')]),this['balloonPanelView']=new _0x3108e7(this[_0x13ef('0x41')]['locale']),this[_0x13ef('0x20')]['attachToDom'](),this[_0x13ef('0x20')]['add'](this['balloonPanelView']);}[_0x13ef('0x17')](_0x4d42c5){this[_0x13ef('0x40')]=_0x4d42c5;const _0x43c0ac=this[_0x13ef('0x41')][_0x13ef('0x37')][_0x13ef('0x44')](_0x523122),_0x45a6c0=this[_0x13ef('0x2c')];if(_0x43c0ac['_annotations']=_0x4d42c5,this['isAttached'])throw new _0x269634(_0x13ef('0x2'),this);this[_0x13ef('0x39')]=!0x0,this[_0x13ef('0x36')](_0x43c0ac,'set:container',()=>{this['detach'](),this['listenTo'](_0x43c0ac,_0x13ef('0x6'),_0x2f91cc=>{_0x2f91cc[_0x13ef('0x10')](),this['attach'](_0x4d42c5);});}),_0x43c0ac[_0x13ef('0x2f')]({'viewClass':_0x13ef('0x1c'),'spaceBetweenItems':0x5});const _0x493aab=_0x2bc09b=>{const _0x25c97b=new _0x5096d1(this[_0x13ef('0x41')]['locale']);_0x43c0ac[_0x13ef('0x22')](_0x2bc09b,_0x25c97b),this[_0x13ef('0x5b')][_0x13ef('0x4a')](_0x2bc09b,_0x25c97b),_0x25c97b['bind'](_0x13ef('0x56'),_0x13ef('0xf'),_0x13ef('0x48'))['to'](_0x2bc09b['view'],_0x13ef('0x56'),'type',_0x13ef('0x1b')),_0x25c97b['on'](_0x13ef('0x3b'),()=>{this[_0x13ef('0x3f')]['clear'](),_0x45a6c0[_0x13ef('0xd')]['first']!==_0x2bc09b[_0x13ef('0x55')]?(this[_0x13ef('0x54')](_0x2bc09b),_0x2bc09b[_0x13ef('0x55')]['element'][_0x13ef('0x9')](),this[_0x13ef('0x35')](_0x2bc09b)):this['setActiveAnnotation'](null);});};for(const _0x487366 of _0x4d42c5)_0x493aab(_0x487366);this[_0x13ef('0x36')](_0x4d42c5,_0x13ef('0x43'),(_0x4ecbcd,_0x4b46d3)=>{_0x493aab(_0x4b46d3);}),this[_0x13ef('0x36')](_0x4d42c5,_0x13ef('0x31'),(_0x59b084,_0x9a3071,_0x24b05f)=>{this['_annotationToNarrowView'][_0x13ef('0x44')](_0x9a3071)[_0x13ef('0x21')](),this[_0x13ef('0x5b')][_0x13ef('0x0')](_0x9a3071),_0x43c0ac[_0x13ef('0x49')]({'removedAnnotation':_0x9a3071,'previousAnnotation':_0x4d42c5[_0x13ef('0x44')](_0x24b05f-0x1),'nextAnnotation':_0x4d42c5[_0x13ef('0x44')](_0x24b05f+0x1)}),_0x9a3071===this[_0x13ef('0x26')]&&this[_0x13ef('0x35')](null);},{'priority':'low'}),this[_0x13ef('0x36')](_0x4d42c5,_0x13ef('0x9'),(_0x3eb56f,_0x1d8ffe)=>{this['setActiveAnnotation'](_0x1d8ffe);}),this[_0x13ef('0x36')](_0x4d42c5,_0x13ef('0xb'),()=>{this[_0x13ef('0x35')](null);}),this[_0x13ef('0xa')]['listenTo'](document,'keydown',(_0x1022e6,_0x156a96)=>{_0x156a96[_0x13ef('0x57')]===_0x47b4d0[_0x13ef('0x28')]&&_0x45a6c0[_0x13ef('0x5e')]&&(this[_0x13ef('0x3f')]['add'](_0x45a6c0[_0x13ef('0xd')][_0x13ef('0x3e')]),this[_0x13ef('0x4e')](),_0x156a96[_0x13ef('0x1d')](),_0x156a96[_0x13ef('0x2b')]());}),this[_0x13ef('0xa')][_0x13ef('0x36')](document,_0x13ef('0x45'),(_0x55af6c,_0x26f59f)=>{const _0x18e907=_0x26f59f['target'];_0x45a6c0[_0x13ef('0x5e')]&&_0x45a6c0[_0x13ef('0x2a')]['contains'](_0x18e907)||_0x43c0ac[_0x13ef('0x55')]['element'][_0x13ef('0x14')](_0x18e907)||_0x55af6c[_0x13ef('0x27')]||this[_0x13ef('0x26')]&&this['activeAnnotation'][_0x13ef('0x7')]['find'](_0x6e66bf=>_0x6e66bf[_0x13ef('0x14')](_0x18e907))||(this['_manuallyClosedAnnotationViews'][_0x13ef('0x2d')](),this[_0x13ef('0x4e')](),this[_0x13ef('0x35')](null));});const _0x2bef17=this[_0x13ef('0x41')]instanceof _0x79d6fc?this[_0x13ef('0x41')][_0x13ef('0x4f')]:new _0x2aa39c([this['context']]);for(const _0x291d31 of _0x2bef17)this[_0x13ef('0x3')](_0x291d31);this[_0x13ef('0x36')](_0x2bef17,_0x13ef('0x43'),(_0x4a6ac3,_0x45159)=>{this['listenTo'](_0x45159,_0x13ef('0x8'),()=>{this['_integrateWithEditorAnnotations'](_0x45159);});}),this['listenTo'](_0x2bef17,_0x13ef('0x31'),(_0x38d31a,_0x219308)=>{_0x219308[_0x13ef('0x37')][_0x13ef('0x53')](_0x13ef('0x1'))&&this[_0x13ef('0x3a')](_0x219308['plugins'][_0x13ef('0x44')](_0x13ef('0x1')));}),window[_0x13ef('0x18')](_0x13ef('0x1a'),this['_refreshPositioningDebounced']),this['_refreshPositioning']();}[_0x13ef('0x35')](_0x126854){if(_0x126854===this[_0x13ef('0x26')])return;const _0x361ba0=this['context'][_0x13ef('0x37')]['get'](_0x523122);if(_0x361ba0[_0x13ef('0x33')]({'blurredAnnotation':this[_0x13ef('0x26')],'activatedAnnotation':_0x126854,'disableAnimationOnActivatedAnnotation':!0x0}),_0x126854)_0x361ba0['getSidebarItemView'](_0x126854)?this[_0x13ef('0x54')](_0x126854):this[_0x13ef('0x4e')]();else this[_0x13ef('0x4e')]();this[_0x13ef('0x26')]=_0x126854;}[_0x13ef('0x58')](){if(!this['isAttached'])throw new _0x269634(_0x13ef('0x5d'),this);this[_0x13ef('0x35')](null);const _0x1450be=this[_0x13ef('0x41')][_0x13ef('0x37')]['get'](_0x523122);this[_0x13ef('0x4e')](),Array['from'](this[_0x13ef('0x5b')][_0x13ef('0x5')](),_0x124dff=>_0x124dff['destroy']()),this[_0x13ef('0x5b')][_0x13ef('0x2d')](),_0x1450be[_0x13ef('0x32')](this[_0x13ef('0x40')]),this['stopListening'](),this[_0x13ef('0xa')][_0x13ef('0x25')](),this['context']instanceof _0x79d6fc&&this['stopListening'](this['context']['editors']);for(const _0x528603 of Array['from'](this['_editorAnnotations']))this[_0x13ef('0x3a')](_0x528603);window[_0x13ef('0x1f')](_0x13ef('0x1a'),this[_0x13ef('0x3c')]),this[_0x13ef('0x3c')][_0x13ef('0x15')](),this[_0x13ef('0x4c')]=[],this['isAttached']=!0x1,this['annotations']=null;}[_0x13ef('0x21')](){this[_0x13ef('0x39')]&&this[_0x13ef('0x58')](),this[_0x13ef('0x20')][_0x13ef('0x11')]();}['_integrateWithEditorAnnotations'](_0x32df4f){const _0x457654=_0x32df4f['plugins'][_0x13ef('0x44')](_0x11ca24),_0xa4eba=this['context'][_0x13ef('0x37')][_0x13ef('0x44')](_0x523122),_0x102503=this[_0x13ef('0x40')],_0x33226c=this[_0x13ef('0x2c')],_0x1c671c=()=>{const _0xd1648=_0x457654['getOrderedSelectedAnnotations']({'annotations':this[_0x13ef('0x40')],'activeAnnotation':this[_0x13ef('0x26')]});this[_0x13ef('0x4b')](_0xd1648),this['setActiveAnnotation'](_0xd1648[0x0]||null);};this[_0x13ef('0x36')](_0x457654,_0x13ef('0x33'),_0x1c671c),this[_0x13ef('0x36')](_0x457654,'blur',(_0x4199ce,{isAnnotationTracked:_0x59045b})=>{this[_0x13ef('0x26')]&&_0x59045b(this[_0x13ef('0x26')])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this[_0x13ef('0x36')](_0x457654,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x102503,_0x13ef('0xb'),_0x2f9768=>{_0x457654['hasDomSelection']()&&_0x2f9768[_0x13ef('0x50')]();},{'priority':_0x13ef('0x4')}),this[_0x13ef('0x36')](this[_0x13ef('0xa')],_0x13ef('0x45'),(_0x5a87d7,_0x395ac3)=>{const _0x554208=_0x395ac3[_0x13ef('0x23')];_0x33226c[_0x13ef('0x5e')]&&_0x33226c[_0x13ef('0x2a')][_0x13ef('0x14')](_0x554208)||_0xa4eba[_0x13ef('0x55')][_0x13ef('0x2a')][_0x13ef('0x14')](_0x554208)||this[_0x13ef('0x26')]&&_0x457654[_0x13ef('0x5a')]()&&(_0x1c671c(),_0x5a87d7[_0x13ef('0x27')]=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x457654);}[_0x13ef('0x3a')](_0x1b04b7){_0x1b04b7&&(this[_0x13ef('0x25')](_0x1b04b7),this['_editorAnnotations'][_0x13ef('0x31')](_0x1b04b7));}['_setSelectedAnnotations'](_0x175053){for(const _0x579deb of this[_0x13ef('0x4c')])_0x175053[_0x13ef('0x4d')](_0x579deb)||this[_0x13ef('0x3f')][_0x13ef('0x0')](_0x579deb[_0x13ef('0x55')]);this[_0x13ef('0x4c')]=_0x175053;}[_0x13ef('0xc')](){const _0x3bf741=this['balloonPanelView'];this[_0x13ef('0x40')][_0x13ef('0x42')](),_0x3bf741[_0x13ef('0x5e')]&&this['_updateBalloonPosition']();}[_0x13ef('0x54')](_0x5c6e70){if(this[_0x13ef('0x3f')][_0x13ef('0x53')](_0x5c6e70['view']))return;const _0x1b2c78=this[_0x13ef('0x2c')][_0x13ef('0xd')][_0x13ef('0x3e')];_0x1b2c78!==_0x5c6e70[_0x13ef('0x55')]?(_0x1b2c78&&this['_detachListeners'](_0x1b2c78),this[_0x13ef('0x1e')](_0x5c6e70[_0x13ef('0x55')]),this[_0x13ef('0x2c')][_0x13ef('0xd')]['clear'](),this[_0x13ef('0x2c')][_0x13ef('0xd')][_0x13ef('0x43')](_0x5c6e70[_0x13ef('0x55')]),this[_0x13ef('0x24')]()):this[_0x13ef('0x24')]();}[_0x13ef('0x24')](){const _0x294a9c=this[_0x13ef('0x2c')][_0x13ef('0xd')][_0x13ef('0x3e')],_0x3dc722=_0x294a9c&&this[_0x13ef('0x40')][_0x13ef('0x19')](_0x294a9c);if(!_0x3dc722||!this[_0x13ef('0x5b')][_0x13ef('0x53')](_0x3dc722))return;const _0x3f1882=this[_0x13ef('0x5b')][_0x13ef('0x44')](_0x3dc722)[_0x13ef('0x2a')],_0x35853f=function(){const _0x1c22f7=_0x3108e7[_0x13ef('0x3d')];return[_0x1c22f7['southArrowNorthEast'],_0x1c22f7[_0x13ef('0x2e')],_0x1c22f7[_0x13ef('0x34')],_0x1c22f7[_0x13ef('0x59')],_0x1c22f7['southArrowNorthWest'],_0x1c22f7[_0x13ef('0x52')]];}();this[_0x13ef('0x2c')]['pin']({'target':_0x3f1882,'positions':_0x35853f});}[_0x13ef('0x4e')](){const _0x13c351=this[_0x13ef('0x2c')],_0x241c13=_0x13c351[_0x13ef('0xd')][_0x13ef('0x3e')];_0x241c13&&(this[_0x13ef('0x47')](_0x241c13),_0x13c351[_0x13ef('0x29')](),_0x13c351[_0x13ef('0xd')][_0x13ef('0x2d')]());}[_0x13ef('0x1e')](_0x1aafc6){this[_0x13ef('0x36')](_0x1aafc6,_0x13ef('0x30'),()=>this[_0x13ef('0x24')]()),this[_0x13ef('0x36')](_0x1aafc6,_0x13ef('0xe'),(_0x78f7a5,_0x5ddfcd)=>{this[_0x13ef('0x3f')][_0x13ef('0x43')](_0x1aafc6),this['_hideBalloon'](),_0x5ddfcd();});}['_detachListeners'](_0x75e736){this[_0x13ef('0x25')](_0x75e736);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x37df=['list','getSidebarItemView','refresh','Sidebar','bind','_getMaxAvailableTop','container','_createSidebarView','_recalculateBuffer','init','_annotationToSidebarItemView','context','isAnimationDisabled','pluginName','_spaceBetweenItems','_getItemAfter','view','change:_lastItem','_targetTop','define','_sidebarItemViewToAnnotation','top','_destroySidebarItemView','rearrange','_updateLastItem','_recalculate','render','_getTargetTop','clear','_detachFromContainer','target','set','_setItemTop','get','change:top','setContainer','_lastItem','_getItemBefore','_alignBeforeItem','listenTo','_alignToTargetRect','_activeAnnotation','targetRect','bottom','destroy','last','length','_alignAfterItem','_attachToContainer','unbind','content','_alignForBottomChange','minHeight','remove','sidebar-setcontainer-invalid-element','sidebar.preventScrollOutOfView','_alignForTopChange','element','addAnnotation','config','_annotations','locale','height','getIndex','stopListening','max','add','updateHeight'];(function(_0x464d37,_0x37dfa9){const _0x3e659c=function(_0x4586c5){while(--_0x4586c5){_0x464d37['push'](_0x464d37['shift']());}};_0x3e659c(++_0x37dfa9);}(_0x37df,0x18b));const _0x3e65=function(_0x464d37,_0x37dfa9){_0x464d37=_0x464d37-0x0;let _0x3e659c=_0x37df[_0x464d37];return _0x3e659c;};import{ContextPlugin as _0x1638af}from'ckeditor5/src/core.js';import{Rect as _0x13578f,CKEditorError as _0x11b4bf}from'ckeditor5/src/utils.js';import _0x212e6f from'./view/sidebarview.js';import _0x498100 from'./view/sidebaritemview.js';export default class z extends _0x1638af{static get[_0x3e65('0x1a')](){return _0x3e65('0x10');}constructor(_0x5b3a8f){super(_0x5b3a8f),this[_0x3e65('0x2c')]('_lastItem',void 0x0),this['view']=this[_0x3e65('0x14')](),this[_0x3e65('0x2c')]('container',null),this[_0x3e65('0x1b')]=0x19,this[_0x3e65('0x21')]=new Map(),this['_annotationToSidebarItemView']=new Map(),this[_0x3e65('0x18')][_0x3e65('0x4')][_0x3e65('0x20')](_0x3e65('0x0'),!0x1),this['_annotations']=null,this['_activeAnnotation']=null,this['_recalculateBuffer']=[];}[_0x3e65('0x16')](){const _0x549a1b=this[_0x3e65('0x18')][_0x3e65('0x4')]['get']('sidebar.container');_0x549a1b&&this[_0x3e65('0x30')](_0x549a1b);}[_0x3e65('0x30')](_0x5f27cf){if(!y(_0x5f27cf))throw new _0x11b4bf(_0x3e65('0x43'));this[_0x3e65('0x13')]=_0x5f27cf;}[_0x3e65('0x3d')]({viewClass:_0x47775f='',spaceBetweenItems:_0x393501=0x19}={}){if(!y(this[_0x3e65('0x13')]))throw new _0x11b4bf('sidebar-attachtocontainer-missing-container',this);this[_0x3e65('0x13')]['appendChild'](this['view'][_0x3e65('0x2')]),this[_0x3e65('0x1d')]['class']=_0x47775f,this['_spaceBetweenItems']=_0x393501;}[_0x3e65('0x24')]({removedAnnotation:_0x2a1c4f,previousAnnotation:_0x1999a3,nextAnnotation:_0x347f95}){const _0x187905=this[_0x3e65('0xe')](_0x2a1c4f);this[_0x3e65('0x1d')][_0x3e65('0xd')][_0x3e65('0x42')](_0x187905),this[_0x3e65('0x23')](_0x2a1c4f),_0x1999a3&&this['_alignToTargetRect'](this[_0x3e65('0xe')](_0x1999a3)),_0x347f95&&this[_0x3e65('0x35')](this['getSidebarItemView'](_0x347f95)),this['_updateLastItem']();}[_0x3e65('0xf')]({blurredAnnotation:_0x31819b,activatedAnnotation:_0x28cf40,disableAnimationOnActivatedAnnotation:_0x4882d1}){if(this['_activeAnnotation']=_0x28cf40,_0x31819b){_0x31819b['isActive']=!0x1;const _0x3ca498=this[_0x3e65('0xe')](_0x31819b);_0x3ca498&&_0x4882d1&&(_0x3ca498[_0x3e65('0x19')]=!0x1);}if(_0x28cf40){const _0x149923=this[_0x3e65('0xe')](_0x28cf40);_0x149923&&(_0x28cf40['isActive']=!0x0,_0x4882d1&&(_0x149923[_0x3e65('0x19')]=!0x0,_0x149923[_0x3e65('0x22')]+=0x1),this[_0x3e65('0x35')](_0x149923));}}[_0x3e65('0x2a')](_0xd0cd59){if(this[_0x3e65('0x1d')][_0x3e65('0x2')][_0x3e65('0x42')](),_0xd0cd59)for(const _0x2d3e6c of _0xd0cd59)this['_destroySidebarItemView'](_0x2d3e6c);this[_0x3e65('0x1d')][_0x3e65('0xd')][_0x3e65('0x29')](),this[_0x3e65('0x1d')]['class']='',this[_0x3e65('0x31')]=null;}[_0x3e65('0x3')](_0x140500,_0x42e533){_0x42e533||(_0x42e533=_0x140500['view']);const _0x2f55e6=new _0x498100(this[_0x3e65('0x18')][_0x3e65('0x6')]);this[_0x3e65('0x21')][_0x3e65('0x2c')](_0x2f55e6,_0x140500),this[_0x3e65('0x17')][_0x3e65('0x2c')](_0x140500,_0x2f55e6),_0x2f55e6['content'][_0x3e65('0xb')](_0x42e533),this[_0x3e65('0x34')](_0x140500[_0x3e65('0x1d')],'change:targetRect',(_0x2da963,_0xb9ce1a,_0x4147b0)=>{const _0x4322ee=this[_0x3e65('0x28')](_0x140500,_0x4147b0);_0x2f55e6[_0x3e65('0x1f')]!=_0x4322ee&&(_0x2f55e6[_0x3e65('0x1f')]=_0x4322ee,this['_setItemTop'](_0x2f55e6,_0x4322ee));}),this[_0x3e65('0x34')](_0x2f55e6,_0x3e65('0x2f'),()=>{this['_recalculate'](_0x2f55e6,_0x3e65('0x22'));}),this[_0x3e65('0x34')](_0x2f55e6,'change:bottom',()=>{this[_0x3e65('0x26')](_0x2f55e6,_0x3e65('0x38'));}),this[_0x3e65('0x35')](_0x2f55e6);const _0x27f047=this[_0x3e65('0x32')](_0x2f55e6);if(_0x27f047)this['_alignAfterItem'](_0x27f047,_0x2f55e6)||this[_0x3e65('0x35')](_0x2f55e6);else this[_0x3e65('0x35')](_0x2f55e6);return this[_0x3e65('0x25')](),this[_0x3e65('0x1d')]['list'][_0x3e65('0xb')](_0x2f55e6),_0x2f55e6;}[_0x3e65('0x1')](_0x2b1526){if(!_0x2b1526[_0x3e65('0x3f')][_0x3e65('0x3b')])return;const _0x19546c=this[_0x3e65('0x32')](_0x2b1526);if(!_0x19546c)return;const _0x26cf98=this[_0x3e65('0x21')][_0x3e65('0x2e')](_0x19546c),_0x1c0448=this[_0x3e65('0x36')];_0x1c0448&&_0x1c0448===_0x26cf98?this['_alignAfterItem'](_0x19546c,_0x2b1526):this['_alignBeforeItem'](_0x2b1526,_0x19546c);}['_alignForBottomChange'](_0x3a38ac){if(!_0x3a38ac['content'][_0x3e65('0x3b')])return;const _0x28fc21=this[_0x3e65('0x1c')](_0x3a38ac);if(!_0x28fc21)return;const _0x2c534d=this[_0x3e65('0x21')][_0x3e65('0x2e')](_0x28fc21),_0x2f8986=this['context'][_0x3e65('0x4')][_0x3e65('0x2e')](_0x3e65('0x0')),_0x7417c5=this[_0x3e65('0x36')];_0x7417c5&&_0x7417c5===_0x2c534d&&_0x2f8986?(this[_0x3e65('0x33')](_0x28fc21,_0x3a38ac),this[_0x3e65('0x3c')](_0x3a38ac,_0x28fc21)):_0x7417c5&&_0x7417c5===_0x2c534d?this[_0x3e65('0x33')](_0x28fc21,_0x3a38ac):this['_alignAfterItem'](_0x3a38ac,_0x28fc21);}['_recalculate'](_0x19cc57,_0x5d1bf7){0x0===this[_0x3e65('0x15')]['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x19f4b2,changedProp:_0x28b39}of this[_0x3e65('0x15')])'top'===_0x28b39?this['_alignForTopChange'](_0x19f4b2):this[_0x3e65('0x40')](_0x19f4b2);this[_0x3e65('0x15')]=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x19cc57,'changedProp':_0x5d1bf7});}[_0x3e65('0xe')](_0x4a16d2){return this[_0x3e65('0x17')][_0x3e65('0x2e')](_0x4a16d2);}[_0x3e65('0x39')](){this[_0x3e65('0x9')](),this[_0x3e65('0x1d')]['destroy']();}[_0x3e65('0x23')](_0x35f064){const _0x50a4d3=this[_0x3e65('0xe')](_0x35f064);this[_0x3e65('0x9')](_0x50a4d3),this['stopListening'](_0x35f064['view']),_0x50a4d3[_0x3e65('0x39')](),this[_0x3e65('0x17')]['delete'](_0x35f064),this[_0x3e65('0x21')]['delete'](_0x50a4d3);}[_0x3e65('0x14')](){const _0x57b06e=new _0x212e6f(this[_0x3e65('0x18')]['locale']);return _0x57b06e[_0x3e65('0x27')](),this['on'](_0x3e65('0x1e'),(_0x2e1d4b,_0x12fac9,_0x155b74,_0x179505)=>{_0x179505&&_0x57b06e[_0x3e65('0x3e')]('minHeight'),_0x155b74?_0x57b06e[_0x3e65('0x11')](_0x3e65('0x41'))['to'](_0x155b74,_0x3e65('0x38')):_0x57b06e['minHeight']=null;}),_0x57b06e;}[_0x3e65('0x25')](){var _0x35b7f3;this[_0x3e65('0x31')]=(null===(_0x35b7f3=this[_0x3e65('0x5')])||void 0x0===_0x35b7f3?void 0x0:_0x35b7f3[_0x3e65('0x3a')])?this['getSidebarItemView'](this['_annotations'][_0x3e65('0x3a')]):null;}[_0x3e65('0x32')](_0xb9a424){var _0x2abb39;const _0x4fba0a=this[_0x3e65('0x21')][_0x3e65('0x2e')](_0xb9a424),_0x575930=_0x4fba0a&&(null===(_0x2abb39=this[_0x3e65('0x5')])||void 0x0===_0x2abb39?void 0x0:_0x2abb39[_0x3e65('0x2e')](this[_0x3e65('0x5')][_0x3e65('0x8')](_0x4fba0a)-0x1));return _0x575930&&this[_0x3e65('0xe')](_0x575930)||null;}[_0x3e65('0x1c')](_0x12a275){var _0x3d60f8;const _0x2f9fc1=this[_0x3e65('0x21')][_0x3e65('0x2e')](_0x12a275),_0x3efea4=_0x2f9fc1&&(null===(_0x3d60f8=this[_0x3e65('0x5')])||void 0x0===_0x3d60f8?void 0x0:_0x3d60f8['get'](this[_0x3e65('0x5')][_0x3e65('0x8')](_0x2f9fc1)+0x1));return _0x3efea4&&this['getSidebarItemView'](_0x3efea4)||null;}[_0x3e65('0x33')](_0x43f1e8,_0xcb01d5){_0x43f1e8[_0x3e65('0xc')]();const _0x750874=M(_0xcb01d5[_0x3e65('0x38')]+this[_0x3e65('0x1b')],_0x43f1e8[_0x3e65('0x22')]);return!!_0x750874&&(this[_0x3e65('0x2d')](_0xcb01d5,_0xcb01d5[_0x3e65('0x22')]-_0x750874),!0x0);}[_0x3e65('0x3c')](_0x3098b1,_0xc58e67){_0x3098b1[_0x3e65('0xc')]();const _0x3a96ee=M(_0x3098b1['bottom']+this[_0x3e65('0x1b')],_0xc58e67[_0x3e65('0x22')]);return!!_0x3a96ee&&(this[_0x3e65('0x2d')](_0xc58e67,_0xc58e67[_0x3e65('0x22')]+_0x3a96ee,!0x1),!0x0);}[_0x3e65('0x35')](_0x32d387){const _0x36dbaa=this[_0x3e65('0x21')][_0x3e65('0x2e')](_0x32d387);if(!_0x36dbaa||!_0x36dbaa[_0x3e65('0x2b')]||!_0x36dbaa[_0x3e65('0x37')])return;const _0x5d29c8=this['_getTargetTop'](_0x36dbaa,_0x36dbaa[_0x3e65('0x37')]);this[_0x3e65('0x2d')](_0x32d387,_0x5d29c8);}[_0x3e65('0x28')](_0x2e8256,_0x2e5729){if(null===_0x2e5729)return 0x0;if(_0x2e8256[_0x3e65('0x2b')]instanceof _0x13578f)return _0x2e5729[_0x3e65('0x22')];{const _0x1db171=new _0x13578f(this[_0x3e65('0x1d')]['element'])[_0x3e65('0x22')];return _0x2e5729[_0x3e65('0x22')]-_0x1db171;}}[_0x3e65('0x2d')](_0x33e110,_0x1695be,_0x3d1581=this['context']['config']['get'](_0x3e65('0x0'))){_0x3d1581&&(_0x1695be=Math['max'](_0x1695be,this['_getMaxAvailableTop'](_0x33e110))),_0x33e110[_0x3e65('0x22')]=_0x1695be;}[_0x3e65('0x12')](_0x56ae26){let _0x228ac1=this[_0x3e65('0x32')](_0x56ae26),_0x2ce709=0x0;for(;_0x228ac1;)_0x228ac1[_0x3e65('0xc')](),_0x2ce709+=this['_spaceBetweenItems']+_0x228ac1[_0x3e65('0x7')],_0x228ac1=this[_0x3e65('0x32')](_0x228ac1);return _0x2ce709;}}function M(_0xf25c9e,_0x47e506){return Math[_0x3e65('0xa')](_0xf25c9e-_0x47e506,0x0);}function y(_0x514e2a){return null!==_0x514e2a&&'object'==typeof _0x514e2a&&0x1===_0x514e2a['nodeType'];}
23
+ const _0x24ae=['updateHeight','_spaceBetweenItems','pluginName','sidebar.preventScrollOutOfView','length','_getItemBefore','config','getIndex','list','appendChild','container','content','set','_sidebarItemViewToAnnotation','_activeAnnotation','_targetTop','_destroySidebarItemView','_createSidebarView','_annotationToSidebarItemView','init','listenTo','setContainer','change:_lastItem','_alignAfterItem','isAnimationDisabled','remove','object','locale','getSidebarItemView','last','_getMaxAvailableTop','_alignForBottomChange','max','_lastItem','_recalculateBuffer','_setItemTop','render','_updateLastItem','_recalculate','bottom','isActive','destroy','get','targetRect','add','_getTargetTop','_getItemAfter','height','minHeight','view','delete','_alignToTargetRect','refresh','_alignBeforeItem','_detachFromContainer','nodeType','bind','addAnnotation','class','stopListening','_annotations','_attachToContainer','context','sidebar.container','unbind','define','change:bottom','top','element','Sidebar','target','_alignForTopChange'];(function(_0xe5c958,_0x24ae7f){const _0x4826c5=function(_0x3f5fd5){while(--_0x3f5fd5){_0xe5c958['push'](_0xe5c958['shift']());}};_0x4826c5(++_0x24ae7f);}(_0x24ae,0xa0));const _0x4826=function(_0xe5c958,_0x24ae7f){_0xe5c958=_0xe5c958-0x0;let _0x4826c5=_0x24ae[_0xe5c958];return _0x4826c5;};import{ContextPlugin as _0x2bb38e}from'ckeditor5/src/core.js';import{Rect as _0x53781f,CKEditorError as _0x242e19}from'ckeditor5/src/utils.js';import _0xbc0340 from'./view/sidebarview.js';import _0x1ba307 from'./view/sidebaritemview.js';export default class z extends _0x2bb38e{static get[_0x4826('0x3a')](){return _0x4826('0x35');}constructor(_0x1c568d){super(_0x1c568d),this[_0x4826('0x44')]('_lastItem',void 0x0),this['view']=this[_0x4826('0x1')](),this[_0x4826('0x44')]('container',null),this[_0x4826('0x39')]=0x19,this[_0x4826('0x45')]=new Map(),this[_0x4826('0x2')]=new Map(),this[_0x4826('0x2e')][_0x4826('0x3e')][_0x4826('0x31')](_0x4826('0x3b'),!0x1),this['_annotations']=null,this[_0x4826('0x46')]=null,this['_recalculateBuffer']=[];}[_0x4826('0x3')](){const _0x11b7bc=this[_0x4826('0x2e')][_0x4826('0x3e')][_0x4826('0x1a')](_0x4826('0x2f'));_0x11b7bc&&this['setContainer'](_0x11b7bc);}[_0x4826('0x5')](_0x203279){if(!y(_0x203279))throw new _0x242e19('sidebar-setcontainer-invalid-element');this[_0x4826('0x42')]=_0x203279;}[_0x4826('0x2d')]({viewClass:_0x561e39='',spaceBetweenItems:_0xbddd6a=0x19}={}){if(!y(this['container']))throw new _0x242e19('sidebar-attachtocontainer-missing-container',this);this['container'][_0x4826('0x41')](this[_0x4826('0x21')][_0x4826('0x34')]),this[_0x4826('0x21')][_0x4826('0x2a')]=_0x561e39,this[_0x4826('0x39')]=_0xbddd6a;}['rearrange']({removedAnnotation:_0x2fe30f,previousAnnotation:_0x4b09d9,nextAnnotation:_0x2084f0}){const _0x54cda4=this['getSidebarItemView'](_0x2fe30f);this[_0x4826('0x21')][_0x4826('0x40')][_0x4826('0x9')](_0x54cda4),this[_0x4826('0x0')](_0x2fe30f),_0x4b09d9&&this['_alignToTargetRect'](this[_0x4826('0xc')](_0x4b09d9)),_0x2084f0&&this[_0x4826('0x23')](this['getSidebarItemView'](_0x2084f0)),this['_updateLastItem']();}[_0x4826('0x24')]({blurredAnnotation:_0x4e0a75,activatedAnnotation:_0x286d25,disableAnimationOnActivatedAnnotation:_0x20edd0}){if(this[_0x4826('0x46')]=_0x286d25,_0x4e0a75){_0x4e0a75[_0x4826('0x18')]=!0x1;const _0x19a905=this[_0x4826('0xc')](_0x4e0a75);_0x19a905&&_0x20edd0&&(_0x19a905[_0x4826('0x8')]=!0x1);}if(_0x286d25){const _0x170c2b=this[_0x4826('0xc')](_0x286d25);_0x170c2b&&(_0x286d25['isActive']=!0x0,_0x20edd0&&(_0x170c2b[_0x4826('0x8')]=!0x0,_0x170c2b['top']+=0x1),this[_0x4826('0x23')](_0x170c2b));}}[_0x4826('0x26')](_0x5465e){if(this[_0x4826('0x21')][_0x4826('0x34')]['remove'](),_0x5465e)for(const _0x25918b of _0x5465e)this[_0x4826('0x0')](_0x25918b);this[_0x4826('0x21')][_0x4826('0x40')]['clear'](),this[_0x4826('0x21')][_0x4826('0x2a')]='',this[_0x4826('0x11')]=null;}[_0x4826('0x29')](_0x487b4b,_0xd37be5){_0xd37be5||(_0xd37be5=_0x487b4b[_0x4826('0x21')]);const _0x3e6c3d=new _0x1ba307(this[_0x4826('0x2e')][_0x4826('0xb')]);this[_0x4826('0x45')][_0x4826('0x44')](_0x3e6c3d,_0x487b4b),this[_0x4826('0x2')][_0x4826('0x44')](_0x487b4b,_0x3e6c3d),_0x3e6c3d[_0x4826('0x43')]['add'](_0xd37be5),this[_0x4826('0x4')](_0x487b4b[_0x4826('0x21')],'change:targetRect',(_0xc09a12,_0x1fb4d2,_0x23b27e)=>{const _0xe3dfd8=this[_0x4826('0x1d')](_0x487b4b,_0x23b27e);_0x3e6c3d[_0x4826('0x47')]!=_0xe3dfd8&&(_0x3e6c3d['_targetTop']=_0xe3dfd8,this[_0x4826('0x13')](_0x3e6c3d,_0xe3dfd8));}),this[_0x4826('0x4')](_0x3e6c3d,'change:top',()=>{this['_recalculate'](_0x3e6c3d,_0x4826('0x33'));}),this[_0x4826('0x4')](_0x3e6c3d,_0x4826('0x32'),()=>{this[_0x4826('0x16')](_0x3e6c3d,_0x4826('0x17'));}),this[_0x4826('0x23')](_0x3e6c3d);const _0x3afe34=this[_0x4826('0x3d')](_0x3e6c3d);if(_0x3afe34)this[_0x4826('0x7')](_0x3afe34,_0x3e6c3d)||this['_alignToTargetRect'](_0x3e6c3d);else this[_0x4826('0x23')](_0x3e6c3d);return this[_0x4826('0x15')](),this[_0x4826('0x21')]['list'][_0x4826('0x1c')](_0x3e6c3d),_0x3e6c3d;}[_0x4826('0x37')](_0x4924cf){if(!_0x4924cf[_0x4826('0x43')][_0x4826('0x3c')])return;const _0x4cffe1=this[_0x4826('0x3d')](_0x4924cf);if(!_0x4cffe1)return;const _0x410364=this[_0x4826('0x45')][_0x4826('0x1a')](_0x4cffe1),_0x371185=this[_0x4826('0x46')];_0x371185&&_0x371185===_0x410364?this[_0x4826('0x7')](_0x4cffe1,_0x4924cf):this['_alignBeforeItem'](_0x4924cf,_0x4cffe1);}[_0x4826('0xf')](_0x4358ed){if(!_0x4358ed[_0x4826('0x43')][_0x4826('0x3c')])return;const _0xce4eb7=this[_0x4826('0x1e')](_0x4358ed);if(!_0xce4eb7)return;const _0x20193b=this[_0x4826('0x45')][_0x4826('0x1a')](_0xce4eb7),_0x311a6f=this[_0x4826('0x2e')]['config']['get'](_0x4826('0x3b')),_0x5b34ff=this[_0x4826('0x46')];_0x5b34ff&&_0x5b34ff===_0x20193b&&_0x311a6f?(this['_alignBeforeItem'](_0xce4eb7,_0x4358ed),this[_0x4826('0x7')](_0x4358ed,_0xce4eb7)):_0x5b34ff&&_0x5b34ff===_0x20193b?this[_0x4826('0x25')](_0xce4eb7,_0x4358ed):this['_alignAfterItem'](_0x4358ed,_0xce4eb7);}['_recalculate'](_0x4bb27a,_0x5eb6c8){0x0===this[_0x4826('0x12')][_0x4826('0x3c')]&&setTimeout(()=>{for(const {sidebarItemView:_0x332636,changedProp:_0x1d4eb}of this[_0x4826('0x12')])_0x4826('0x33')===_0x1d4eb?this[_0x4826('0x37')](_0x332636):this[_0x4826('0xf')](_0x332636);this[_0x4826('0x12')]=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x4bb27a,'changedProp':_0x5eb6c8});}[_0x4826('0xc')](_0x56dfac){return this[_0x4826('0x2')][_0x4826('0x1a')](_0x56dfac);}['destroy'](){this['stopListening'](),this[_0x4826('0x21')][_0x4826('0x19')]();}[_0x4826('0x0')](_0x236009){const _0x586cc2=this['getSidebarItemView'](_0x236009);this['stopListening'](_0x586cc2),this[_0x4826('0x2b')](_0x236009[_0x4826('0x21')]),_0x586cc2[_0x4826('0x19')](),this['_annotationToSidebarItemView'][_0x4826('0x22')](_0x236009),this['_sidebarItemViewToAnnotation'][_0x4826('0x22')](_0x586cc2);}[_0x4826('0x1')](){const _0x57f47f=new _0xbc0340(this[_0x4826('0x2e')][_0x4826('0xb')]);return _0x57f47f[_0x4826('0x14')](),this['on'](_0x4826('0x6'),(_0x570d54,_0x9602fd,_0x5ac9ae,_0x42e5df)=>{_0x42e5df&&_0x57f47f[_0x4826('0x30')](_0x4826('0x20')),_0x5ac9ae?_0x57f47f[_0x4826('0x28')](_0x4826('0x20'))['to'](_0x5ac9ae,_0x4826('0x17')):_0x57f47f['minHeight']=null;}),_0x57f47f;}[_0x4826('0x15')](){var _0x31ed89;this['_lastItem']=(null===(_0x31ed89=this[_0x4826('0x2c')])||void 0x0===_0x31ed89?void 0x0:_0x31ed89[_0x4826('0xd')])?this[_0x4826('0xc')](this[_0x4826('0x2c')][_0x4826('0xd')]):null;}[_0x4826('0x3d')](_0x44bf78){var _0xd89a8e;const _0x3825b8=this['_sidebarItemViewToAnnotation'][_0x4826('0x1a')](_0x44bf78),_0xcd69bc=_0x3825b8&&(null===(_0xd89a8e=this[_0x4826('0x2c')])||void 0x0===_0xd89a8e?void 0x0:_0xd89a8e[_0x4826('0x1a')](this[_0x4826('0x2c')][_0x4826('0x3f')](_0x3825b8)-0x1));return _0xcd69bc&&this[_0x4826('0xc')](_0xcd69bc)||null;}[_0x4826('0x1e')](_0x57fbd0){var _0x18108b;const _0x3b03a8=this[_0x4826('0x45')]['get'](_0x57fbd0),_0x40a0e4=_0x3b03a8&&(null===(_0x18108b=this['_annotations'])||void 0x0===_0x18108b?void 0x0:_0x18108b[_0x4826('0x1a')](this[_0x4826('0x2c')][_0x4826('0x3f')](_0x3b03a8)+0x1));return _0x40a0e4&&this[_0x4826('0xc')](_0x40a0e4)||null;}[_0x4826('0x25')](_0x41e5b3,_0x55ebc1){_0x41e5b3[_0x4826('0x38')]();const _0x4672dd=M(_0x55ebc1[_0x4826('0x17')]+this[_0x4826('0x39')],_0x41e5b3['top']);return!!_0x4672dd&&(this[_0x4826('0x13')](_0x55ebc1,_0x55ebc1['top']-_0x4672dd),!0x0);}['_alignAfterItem'](_0x1e0f03,_0x571503){_0x1e0f03[_0x4826('0x38')]();const _0x225925=M(_0x1e0f03[_0x4826('0x17')]+this['_spaceBetweenItems'],_0x571503['top']);return!!_0x225925&&(this[_0x4826('0x13')](_0x571503,_0x571503[_0x4826('0x33')]+_0x225925,!0x1),!0x0);}[_0x4826('0x23')](_0xa88955){const _0x5d9124=this[_0x4826('0x45')][_0x4826('0x1a')](_0xa88955);if(!_0x5d9124||!_0x5d9124[_0x4826('0x36')]||!_0x5d9124[_0x4826('0x1b')])return;const _0x4ed970=this[_0x4826('0x1d')](_0x5d9124,_0x5d9124['targetRect']);this[_0x4826('0x13')](_0xa88955,_0x4ed970);}[_0x4826('0x1d')](_0x2cdc0e,_0x228ce9){if(null===_0x228ce9)return 0x0;if(_0x2cdc0e[_0x4826('0x36')]instanceof _0x53781f)return _0x228ce9[_0x4826('0x33')];{const _0x1f2ba1=new _0x53781f(this[_0x4826('0x21')]['element'])['top'];return _0x228ce9[_0x4826('0x33')]-_0x1f2ba1;}}[_0x4826('0x13')](_0x4fdeef,_0x505d51,_0x1bcc8b=this['context'][_0x4826('0x3e')][_0x4826('0x1a')](_0x4826('0x3b'))){_0x1bcc8b&&(_0x505d51=Math[_0x4826('0x10')](_0x505d51,this[_0x4826('0xe')](_0x4fdeef))),_0x4fdeef[_0x4826('0x33')]=_0x505d51;}[_0x4826('0xe')](_0x19e335){let _0x255518=this[_0x4826('0x3d')](_0x19e335),_0x402c88=0x0;for(;_0x255518;)_0x255518['updateHeight'](),_0x402c88+=this['_spaceBetweenItems']+_0x255518[_0x4826('0x1f')],_0x255518=this[_0x4826('0x3d')](_0x255518);return _0x402c88;}}function M(_0x5bfeb3,_0x2ebfa5){return Math[_0x4826('0x10')](_0x5bfeb3-_0x2ebfa5,0x0);}function y(_0x267e28){return null!==_0x267e28&&_0x4826('0xa')==typeof _0x267e28&&0x1===_0x267e28[_0x4826('0x27')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4ec9=['number','annotationType','set','counterView','ck-annotation-counter','ck-annotation-counter__badge--edit-mode','icon','children','ck-annotation-counter__badge--','setTemplate','...','add','_badge','span','bindTemplate','toString','extendTemplate','ck-annotation-counter__badge','isDirty'];(function(_0xe45409,_0x4ec958){const _0x3edd2b=function(_0xd570d7){while(--_0xd570d7){_0xe45409['push'](_0xe45409['shift']());}};_0x3edd2b(++_0x4ec958);}(_0x4ec9,0x9f));const _0x3edd=function(_0xe45409,_0x4ec958){_0xe45409=_0xe45409-0x0;let _0x3edd2b=_0x4ec9[_0xe45409];return _0x3edd2b;};import{ButtonView as _0x47a48c,View as _0xa0e6f}from'ckeditor5/src/ui.js';import _0x336ab8 from'../../../theme/icons/add-comment.svg';export default class D extends _0x47a48c{constructor(_0x546254){super(_0x546254);const _0x223dd7=this[_0x3edd('0x7')];this[_0x3edd('0xe')](_0x3edd('0xb'),!0x1),this['set'](_0x3edd('0xc'),0x0),this['bind'](_0x3edd('0x5'))['to'](this,_0x3edd('0xb'),this,_0x3edd('0xc'),(_0x5832b9,_0x4666fa)=>_0x5832b9?_0x3edd('0x3'):_0x4666fa[_0x3edd('0x8')]()),this[_0x3edd('0xe')](_0x3edd('0xd'),''),this[_0x3edd('0x12')]=_0x336ab8,this[_0x3edd('0x9')]({'attributes':{'class':[_0x3edd('0x10')]}}),this['counterView']=new _0xa0e6f(),this['counterView'][_0x3edd('0x2')]({'tag':_0x3edd('0x6'),'attributes':{'class':[_0x3edd('0xa'),_0x223dd7['to'](_0x3edd('0xd'),_0xe996d3=>_0x3edd('0x1')+_0xe996d3),_0x223dd7['if'](_0x3edd('0xb'),_0x3edd('0x11'))]},'children':[{'text':_0x223dd7['to'](_0x3edd('0x5'))}]}),this[_0x3edd('0x0')][_0x3edd('0x4')](this[_0x3edd('0xf')]);}}
23
+ const _0x5a54=['bindTemplate','span','children','_badge','annotationType','number','toString','extendTemplate','setTemplate','add','icon','counterView','ck-annotation-counter__badge--','ck-annotation-counter','isDirty','...','ck-annotation-counter__badge--edit-mode','ck-annotation-counter__badge','set'];(function(_0x2e8c0f,_0x5a54c1){const _0xd97ec4=function(_0x18239d){while(--_0x18239d){_0x2e8c0f['push'](_0x2e8c0f['shift']());}};_0xd97ec4(++_0x5a54c1);}(_0x5a54,0x127));const _0xd97e=function(_0x2e8c0f,_0x5a54c1){_0x2e8c0f=_0x2e8c0f-0x0;let _0xd97ec4=_0x5a54[_0x2e8c0f];return _0xd97ec4;};import{ButtonView as _0x5a013e,View as _0x49afe3}from'ckeditor5/src/ui.js';import _0xa0df13 from'../../../theme/icons/add-comment.svg';export default class D extends _0x5a013e{constructor(_0x26e10e){super(_0x26e10e);const _0x1f6e8f=this[_0xd97e('0x9')];this[_0xd97e('0x8')](_0xd97e('0x4'),!0x1),this['set']('number',0x0),this['bind'](_0xd97e('0xc'))['to'](this,_0xd97e('0x4'),this,_0xd97e('0xe'),(_0x2549a6,_0x5dc857)=>_0x2549a6?_0xd97e('0x5'):_0x5dc857[_0xd97e('0xf')]()),this['set'](_0xd97e('0xd'),''),this[_0xd97e('0x0')]=_0xa0df13,this[_0xd97e('0x10')]({'attributes':{'class':[_0xd97e('0x3')]}}),this[_0xd97e('0x1')]=new _0x49afe3(),this[_0xd97e('0x1')][_0xd97e('0x11')]({'tag':_0xd97e('0xa'),'attributes':{'class':[_0xd97e('0x7'),_0x1f6e8f['to'](_0xd97e('0xd'),_0x5d26fc=>_0xd97e('0x2')+_0x5d26fc),_0x1f6e8f['if'](_0xd97e('0x4'),_0xd97e('0x6'))]},'children':[{'text':_0x1f6e8f['to'](_0xd97e('0xc'))}]}),this[_0xd97e('0xb')][_0xd97e('0x12')](this[_0xd97e('0x1')]);}}