@ckeditor/ckeditor5-comments 0.0.0-nightly-20230907.0 → 0.0.0-nightly-20230908.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-20230907.0",
3
+ "version": "0.0.0-nightly-20230908.0",
4
4
  "description": "Collaborative comments feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -43,8 +43,8 @@
43
43
  "CHANGELOG.md"
44
44
  ],
45
45
  "dependencies": {
46
- "ckeditor5": "0.0.0-nightly-20230907.0",
47
- "ckeditor5-collaboration": "0.0.0-nightly-20230907.0",
46
+ "ckeditor5": "0.0.0-nightly-20230908.0",
47
+ "ckeditor5-collaboration": "0.0.0-nightly-20230908.0",
48
48
  "lodash-es": "4.17.21"
49
49
  },
50
50
  "types": "src/index.d.ts",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x578e=['targetRect','_id','isArray','clear','remove','nodeType','refreshVisibility','target','element','annotation-invalid-target','_target','_getNormalizedTarget','innerView','function','focusableElements','length','object','focusTracker','_assertCorrectTarget','item','type','add','render','every','_type','mainView','destroy','getClientRects','filter','isActive','isVisible','updateTargetRect','set','stopListening','view'];(function(_0x1d7344,_0x578e0e){const _0x2184c7=function(_0x431508){while(--_0x431508){_0x1d7344['push'](_0x1d7344['shift']());}};_0x2184c7(++_0x578e0e);}(_0x578e,0xdf));const _0x2184=function(_0x1d7344,_0x578e0e){_0x1d7344=_0x1d7344-0x0;let _0x2184c7=_0x578e[_0x1d7344];return _0x2184c7;};import{CKEditorError as _0x43c707,Rect as _0x20f7ac,Collection as _0x4c7865,ObservableMixin as _0x5e3d4d}from'ckeditor5/src/utils';export default class d extends _0x5e3d4d(){constructor({view:_0x56bd50,target:_0x4d745d,type:_0x4e05f6,isVisible:_0x2494f8=!0x0}){super(),this['view']=_0x56bd50,this[_0x2184('0x15')][_0x2184('0x1e')]||this[_0x2184('0x15')][_0x2184('0x9')](),this['_type']=_0x4e05f6,this[_0x2184('0x20')]=_0x4d745d,d[_0x2184('0x5')](this[_0x2184('0x21')]()),this[_0x2184('0x1')]=new _0x4c7865([this[_0x2184('0x15')]['element']],{'idProperty':_0x2184('0x17')}),this[_0x2184('0x1')]['on'](_0x2184('0x8'),(_0x34da0d,_0x299f90)=>{this['view'][_0x2184('0x4')]['add'](_0x299f90);}),this[_0x2184('0x1')]['on'](_0x2184('0x1a'),(_0x267906,_0xdce7ef)=>{this[_0x2184('0x15')]['focusTracker'][_0x2184('0x1a')](_0xdce7ef);}),this[_0x2184('0x13')](_0x2184('0x11'),_0x2494f8);}get[_0x2184('0x7')](){return _0x2184('0x0')==typeof this['_type']?this['_type']():this[_0x2184('0xb')];}get[_0x2184('0x22')](){return this['view'][_0x2184('0xc')];}get[_0x2184('0x1d')](){const _0x38e48c=this[_0x2184('0x21')]();return d[_0x2184('0x5')](_0x38e48c),_0x38e48c;}get[_0x2184('0x16')](){const _0x25f7ae=this[_0x2184('0x1d')];if(null===_0x25f7ae)return null;if(_0x25f7ae instanceof _0x20f7ac)return _0x25f7ae;const _0xbb28bb=_0x25f7ae[_0x2184('0xf')](_0x314586=>function(_0xf18635){const _0x52f724=_0xf18635['offsetParent'];if(_0x52f724)return!0x0;const _0x5ede7c=_0xf18635[_0x2184('0xe')]()['item'](0x0);return!!_0x5ede7c;}(_0x314586));return 0x0===_0xbb28bb[_0x2184('0x2')]?null:new _0x20f7ac(_0xbb28bb[0x0]['getClientRects']()[_0x2184('0x6')](0x0));}get[_0x2184('0x10')](){return this[_0x2184('0x15')][_0x2184('0x10')];}set[_0x2184('0x10')](_0x45ed85){this[_0x2184('0x15')]['isActive']=_0x45ed85,this[_0x2184('0x15')][_0x2184('0xc')]['isActive']=_0x45ed85;}[_0x2184('0x12')](){this['view'][_0x2184('0x16')]=this[_0x2184('0x16')];}[_0x2184('0xd')](){this[_0x2184('0x1')][_0x2184('0x14')](),this[_0x2184('0x1')][_0x2184('0x19')](),this[_0x2184('0x14')]();}[_0x2184('0x1c')](){this[_0x2184('0x11')]=!!this[_0x2184('0x16')];}static[_0x2184('0x5')](_0x40ae5f){if(!(null===_0x40ae5f||_0x40ae5f instanceof _0x20f7ac||Array[_0x2184('0x18')](_0x40ae5f)&&_0x40ae5f[_0x2184('0xa')](_0x1e7802=>y(_0x1e7802))))throw new _0x43c707(_0x2184('0x1f'),null,{'target':_0x40ae5f});}[_0x2184('0x21')](){const _0x188e0a=_0x2184('0x0')==typeof this[_0x2184('0x20')]?this[_0x2184('0x20')]():this[_0x2184('0x20')];return y(_0x188e0a)?[_0x188e0a]:_0x188e0a;}}function y(_0x5f21e6){return null!==_0x5f21e6&&_0x2184('0x3')==typeof _0x5f21e6&&_0x2184('0x1b')in _0x5f21e6&&0x1===_0x5f21e6[_0x2184('0x1b')];}
23
+ const _0x5721=['_assertCorrectTarget','_getNormalizedTarget','object','type','targetRect','target','mainView','isActive','destroy','render','view','filter','function','add','focusTracker','element','updateTargetRect','innerView','refreshVisibility','_type','annotation-invalid-target','stopListening','isVisible','_target','focusableElements','remove','item','_id','offsetParent'];(function(_0x2a8768,_0x5721b3){const _0x53a255=function(_0x905229){while(--_0x905229){_0x2a8768['push'](_0x2a8768['shift']());}};_0x53a255(++_0x5721b3);}(_0x5721,0x116));const _0x53a2=function(_0x2a8768,_0x5721b3){_0x2a8768=_0x2a8768-0x0;let _0x53a255=_0x5721[_0x2a8768];return _0x53a255;};import{CKEditorError as _0x37425a,Rect as _0x345377,Collection as _0x45932c,ObservableMixin as _0x22caa3}from'ckeditor5/src/utils';export default class d extends _0x22caa3(){constructor({view:_0x1b4361,target:_0x13905a,type:_0x382a79,isVisible:_0xf795cd=!0x0}){super(),this[_0x53a2('0x16')]=_0x1b4361,this[_0x53a2('0x16')][_0x53a2('0x1b')]||this[_0x53a2('0x16')][_0x53a2('0x15')](),this[_0x53a2('0x2')]=_0x382a79,this[_0x53a2('0x6')]=_0x13905a,d[_0x53a2('0xc')](this[_0x53a2('0xd')]()),this[_0x53a2('0x7')]=new _0x45932c([this[_0x53a2('0x16')]['element']],{'idProperty':_0x53a2('0xa')}),this[_0x53a2('0x7')]['on'](_0x53a2('0x19'),(_0xb194ab,_0x456c97)=>{this[_0x53a2('0x16')]['focusTracker']['add'](_0x456c97);}),this[_0x53a2('0x7')]['on'](_0x53a2('0x8'),(_0x18fdc1,_0x5ba69a)=>{this['view'][_0x53a2('0x1a')][_0x53a2('0x8')](_0x5ba69a);}),this['set'](_0x53a2('0x5'),_0xf795cd);}get[_0x53a2('0xf')](){return _0x53a2('0x18')==typeof this[_0x53a2('0x2')]?this[_0x53a2('0x2')]():this['_type'];}get[_0x53a2('0x0')](){return this[_0x53a2('0x16')][_0x53a2('0x12')];}get[_0x53a2('0x11')](){const _0x2def2f=this[_0x53a2('0xd')]();return d['_assertCorrectTarget'](_0x2def2f),_0x2def2f;}get[_0x53a2('0x10')](){const _0x46a1d5=this['target'];if(null===_0x46a1d5)return null;if(_0x46a1d5 instanceof _0x345377)return _0x46a1d5;const _0x57ac33=_0x46a1d5[_0x53a2('0x17')](_0x10bd07=>function(_0x406bee){const _0x55d98a=_0x406bee[_0x53a2('0xb')];if(_0x55d98a)return!0x0;const _0x496b54=_0x406bee['getClientRects']()[_0x53a2('0x9')](0x0);return!!_0x496b54;}(_0x10bd07));return 0x0===_0x57ac33['length']?null:new _0x345377(_0x57ac33[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view'][_0x53a2('0x13')];}set[_0x53a2('0x13')](_0x18114a){this[_0x53a2('0x16')][_0x53a2('0x13')]=_0x18114a,this[_0x53a2('0x16')][_0x53a2('0x12')]['isActive']=_0x18114a;}[_0x53a2('0x1c')](){this['view'][_0x53a2('0x10')]=this['targetRect'];}[_0x53a2('0x14')](){this[_0x53a2('0x7')][_0x53a2('0x4')](),this['focusableElements']['clear'](),this[_0x53a2('0x4')]();}[_0x53a2('0x1')](){this[_0x53a2('0x5')]=!!this[_0x53a2('0x10')];}static['_assertCorrectTarget'](_0x4fa6d3){if(!(null===_0x4fa6d3||_0x4fa6d3 instanceof _0x345377||Array['isArray'](_0x4fa6d3)&&_0x4fa6d3['every'](_0x1be0c1=>y(_0x1be0c1))))throw new _0x37425a(_0x53a2('0x3'),null,{'target':_0x4fa6d3});}[_0x53a2('0xd')](){const _0x43eb8d='function'==typeof this[_0x53a2('0x6')]?this[_0x53a2('0x6')]():this[_0x53a2('0x6')];return y(_0x43eb8d)?[_0x43eb8d]:_0x43eb8d;}}function y(_0xfbda2a){return null!==_0xfbda2a&&_0x53a2('0xe')==typeof _0xfbda2a&&'nodeType'in _0xfbda2a&&0x1===_0xfbda2a['nodeType'];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5b24=['has','_getOrderInContent','top','_focusTracker','getByInnerView','remove','length','clear','delete','view','focusableElements','from','left','_viewToAnnotation','add','change:isFocused','innerView','updateTargetRect','_innerViewToAnnotation','set','sort','targetRect','get','getByView','fire','annotationcollection-duplicated-item','isFocused','getIndex','listenTo','destroy','focusTracker','stopListening','_sort','blur'];(function(_0xefbc1b,_0x5b24d2){const _0x118b43=function(_0x21a939){while(--_0x21a939){_0xefbc1b['push'](_0xefbc1b['shift']());}};_0x118b43(++_0x5b24d2);}(_0x5b24,0xa2));const _0x118b=function(_0xefbc1b,_0x5b24d2){_0xefbc1b=_0xefbc1b-0x0;let _0x118b43=_0x5b24[_0xefbc1b];return _0x118b43;};import{CKEditorError as _0x5dea1e,Collection as _0x3ab254,FocusTracker as _0x44a459}from'ckeditor5/src/utils';export default class x extends _0x3ab254{constructor(_0x475909=[]){super(),this[_0x118b('0x1a')]=new Map(),this[_0x118b('0x15')]=new Map(),this[_0x118b('0xb')]=new _0x44a459(),this[_0x118b('0xb')]['on'](_0x118b('0x17'),(_0xa47873,_0x19bb93,_0x41ca62)=>{_0x41ca62||this['fire'](_0x118b('0x7'));});for(const _0x402451 of _0x475909)this[_0x118b('0x16')](_0x402451);}get['isFocused'](){return this['_focusTracker'][_0x118b('0x0')];}['add'](_0x2f86e7){if(this[_0x118b('0x8')](_0x2f86e7))throw new _0x5dea1e(_0x118b('0x21'),null);this[_0x118b('0x1a')][_0x118b('0x1b')](_0x2f86e7[_0x118b('0x18')],_0x2f86e7),this[_0x118b('0x15')][_0x118b('0x1b')](_0x2f86e7[_0x118b('0x11')],_0x2f86e7);for(const _0x1259c9 of _0x2f86e7[_0x118b('0x12')])this[_0x118b('0xb')][_0x118b('0x16')](_0x1259c9);this[_0x118b('0x2')](_0x2f86e7[_0x118b('0x12')],_0x118b('0x16'),(_0x4ee9d9,_0x3aa6d4)=>{this[_0x118b('0xb')]['add'](_0x3aa6d4);}),this[_0x118b('0x2')](_0x2f86e7[_0x118b('0x12')],_0x118b('0xd'),(_0x5280f3,_0x5e6161)=>{this['_focusTracker'][_0x118b('0xd')](_0x5e6161);}),this[_0x118b('0x2')](_0x2f86e7['view'][_0x118b('0x4')],'change:isFocused',(_0x3b9fe4,_0x35b04b,_0x4f3159)=>{_0x4f3159&&this[_0x118b('0x20')]('focus',_0x2f86e7);}),_0x2f86e7['updateTargetRect']();const _0x1b8938=this[_0x118b('0x9')](_0x2f86e7[_0x118b('0x11')]['targetRect']);return super[_0x118b('0x16')](_0x2f86e7,_0x1b8938);}[_0x118b('0xd')](_0x49b4d3){if(!this['has'](_0x49b4d3))throw new _0x5dea1e('annotationcollection-not-existing-item',null);this[_0x118b('0x5')](_0x49b4d3[_0x118b('0x11')]['focusTracker']),this[_0x118b('0x5')](_0x49b4d3[_0x118b('0x12')]);for(const _0x7c58b0 of _0x49b4d3[_0x118b('0x12')])this[_0x118b('0xb')][_0x118b('0xd')](_0x7c58b0);return this['_viewToAnnotation'][_0x118b('0x10')](_0x49b4d3[_0x118b('0x11')]),this[_0x118b('0x1a')][_0x118b('0x10')](_0x49b4d3[_0x118b('0x18')]),super[_0x118b('0xd')](_0x49b4d3);}[_0x118b('0xc')](_0x5c4350){return this[_0x118b('0x1a')][_0x118b('0x1e')](_0x5c4350);}[_0x118b('0x1f')](_0xdbcc0e){return this['_viewToAnnotation']['get'](_0xdbcc0e);}[_0x118b('0x3')](){super['clear'](),this[_0x118b('0x5')](),this[_0x118b('0x1a')][_0x118b('0xf')](),this[_0x118b('0x15')]['clear'](),this['_focusTracker'][_0x118b('0x3')]();}['refreshPositioning'](){for(const _0x36768f of this)_0x36768f[_0x118b('0x19')]();this[_0x118b('0x6')]();}['_sort'](){const _0x4d4d6e=Array[_0x118b('0x13')](this)[_0x118b('0x1c')]((_0x15ffe2,_0xa92718)=>v(_0x15ffe2[_0x118b('0x11')][_0x118b('0x1d')],_0xa92718[_0x118b('0x11')][_0x118b('0x1d')]));for(let _0x443ce3=_0x4d4d6e[_0x118b('0xe')]-0x1;_0x443ce3>0x0;_0x443ce3--){const _0x55768c=_0x4d4d6e[_0x443ce3];_0x443ce3!==this[_0x118b('0x1')](_0x55768c)&&(this[_0x118b('0xd')](_0x55768c),this[_0x118b('0x16')](_0x55768c));}}[_0x118b('0x9')](_0xaede8){let _0x4e3750=0x0;if(!_0xaede8)return this[_0x118b('0xe')];for(const _0x56db48 of this){const _0x5b996d=_0x56db48[_0x118b('0x11')][_0x118b('0x1d')];if(_0x5b996d){if(v(_0xaede8,_0x5b996d)<0x0)return _0x4e3750;_0x4e3750++;}}return _0x4e3750;}}export function bindAnnotationCollections({source:_0x2df389,target:_0x59c4f7,filter:_0x370238}){for(const _0x5b2008 of _0x2df389)_0x370238(_0x5b2008)&&_0x59c4f7['add'](_0x5b2008);_0x59c4f7[_0x118b('0x2')](_0x2df389,'add',(_0x54bbc3,_0x117ec7)=>{_0x370238(_0x117ec7)&&_0x59c4f7[_0x118b('0x16')](_0x117ec7);}),_0x59c4f7[_0x118b('0x2')](_0x2df389,_0x118b('0xd'),(_0x331778,_0x4870a4)=>{_0x59c4f7[_0x118b('0x8')](_0x4870a4)&&_0x59c4f7['remove'](_0x4870a4);});}function v(_0x215da3,_0x5a73fb){if(null===_0x215da3&&null===_0x5a73fb)return 0x0;if(null===_0x215da3)return-0x1;if(null===_0x5a73fb)return 0x1;const _0x28b062=_0x215da3['top']-_0x5a73fb[_0x118b('0xa')];return 0x0==_0x28b062?_0x215da3[_0x118b('0x14')]-_0x5a73fb[_0x118b('0x14')]:_0x28b062;}
23
+ const _0x1aeb=['focusTracker','clear','add','getIndex','_sort','top','delete','left','getByView','isFocused','blur','annotationcollection-not-existing-item','get','fire','getByInnerView','focusableElements','focus','_focusTracker','refreshPositioning','_innerViewToAnnotation','has','set','view','targetRect','innerView','sort','stopListening','destroy','_viewToAnnotation','_getOrderInContent','change:isFocused','length','annotationcollection-duplicated-item','listenTo','updateTargetRect','remove'];(function(_0x1ff689,_0x1aeb70){const _0x171479=function(_0x12deb9){while(--_0x12deb9){_0x1ff689['push'](_0x1ff689['shift']());}};_0x171479(++_0x1aeb70);}(_0x1aeb,0xea));const _0x1714=function(_0x1ff689,_0x1aeb70){_0x1ff689=_0x1ff689-0x0;let _0x171479=_0x1aeb[_0x1ff689];return _0x171479;};import{CKEditorError as _0x41789c,Collection as _0x166593,FocusTracker as _0x444f0d}from'ckeditor5/src/utils';export default class x extends _0x166593{constructor(_0xf8621c=[]){super(),this[_0x1714('0x1')]=new Map(),this[_0x1714('0xa')]=new Map(),this[_0x1714('0x23')]=new _0x444f0d(),this[_0x1714('0x23')]['on']('change:isFocused',(_0x28a505,_0x2c005a,_0x44b823)=>{_0x44b823||this[_0x1714('0x1f')](_0x1714('0x1c'));});for(const _0x2edc01 of _0xf8621c)this[_0x1714('0x14')](_0x2edc01);}get[_0x1714('0x1b')](){return this['_focusTracker']['isFocused'];}[_0x1714('0x14')](_0x1beeb2){if(this[_0x1714('0x2')](_0x1beeb2))throw new _0x41789c(_0x1714('0xe'),null);this[_0x1714('0x1')]['set'](_0x1beeb2[_0x1714('0x6')],_0x1beeb2),this[_0x1714('0xa')][_0x1714('0x3')](_0x1beeb2['view'],_0x1beeb2);for(const _0x59504f of _0x1beeb2['focusableElements'])this[_0x1714('0x23')][_0x1714('0x14')](_0x59504f);this[_0x1714('0xf')](_0x1beeb2[_0x1714('0x21')],'add',(_0x32d45e,_0x20310d)=>{this[_0x1714('0x23')]['add'](_0x20310d);}),this[_0x1714('0xf')](_0x1beeb2[_0x1714('0x21')],_0x1714('0x11'),(_0x25a737,_0x5ece58)=>{this[_0x1714('0x23')][_0x1714('0x11')](_0x5ece58);}),this[_0x1714('0xf')](_0x1beeb2[_0x1714('0x4')][_0x1714('0x12')],_0x1714('0xc'),(_0x203591,_0x329d3f,_0x26bb3c)=>{_0x26bb3c&&this[_0x1714('0x1f')](_0x1714('0x22'),_0x1beeb2);}),_0x1beeb2[_0x1714('0x10')]();const _0x3ca0ca=this[_0x1714('0xb')](_0x1beeb2['view']['targetRect']);return super['add'](_0x1beeb2,_0x3ca0ca);}[_0x1714('0x11')](_0x516899){if(!this[_0x1714('0x2')](_0x516899))throw new _0x41789c(_0x1714('0x1d'),null);this['stopListening'](_0x516899[_0x1714('0x4')][_0x1714('0x12')]),this[_0x1714('0x8')](_0x516899[_0x1714('0x21')]);for(const _0x564638 of _0x516899['focusableElements'])this[_0x1714('0x23')][_0x1714('0x11')](_0x564638);return this[_0x1714('0xa')][_0x1714('0x18')](_0x516899[_0x1714('0x4')]),this[_0x1714('0x1')]['delete'](_0x516899[_0x1714('0x6')]),super['remove'](_0x516899);}[_0x1714('0x20')](_0x2c6ba6){return this['_innerViewToAnnotation'][_0x1714('0x1e')](_0x2c6ba6);}[_0x1714('0x1a')](_0x547552){return this['_viewToAnnotation'][_0x1714('0x1e')](_0x547552);}[_0x1714('0x9')](){super[_0x1714('0x13')](),this[_0x1714('0x8')](),this[_0x1714('0x1')][_0x1714('0x13')](),this[_0x1714('0xa')][_0x1714('0x13')](),this[_0x1714('0x23')][_0x1714('0x9')]();}[_0x1714('0x0')](){for(const _0x200285 of this)_0x200285[_0x1714('0x10')]();this[_0x1714('0x16')]();}['_sort'](){const _0x474a54=Array['from'](this)[_0x1714('0x7')]((_0x6332b8,_0x1faa6f)=>v(_0x6332b8[_0x1714('0x4')][_0x1714('0x5')],_0x1faa6f[_0x1714('0x4')][_0x1714('0x5')]));for(let _0x1b9e02=_0x474a54[_0x1714('0xd')]-0x1;_0x1b9e02>0x0;_0x1b9e02--){const _0x12402c=_0x474a54[_0x1b9e02];_0x1b9e02!==this[_0x1714('0x15')](_0x12402c)&&(this['remove'](_0x12402c),this[_0x1714('0x14')](_0x12402c));}}[_0x1714('0xb')](_0x37b593){let _0x346bca=0x0;if(!_0x37b593)return this[_0x1714('0xd')];for(const _0x408ebb of this){const _0x1ae6ff=_0x408ebb[_0x1714('0x4')][_0x1714('0x5')];if(_0x1ae6ff){if(v(_0x37b593,_0x1ae6ff)<0x0)return _0x346bca;_0x346bca++;}}return _0x346bca;}}export function bindAnnotationCollections({source:_0x4e8806,target:_0x4a3d37,filter:_0x39c1bc}){for(const _0x4dd031 of _0x4e8806)_0x39c1bc(_0x4dd031)&&_0x4a3d37[_0x1714('0x14')](_0x4dd031);_0x4a3d37[_0x1714('0xf')](_0x4e8806,_0x1714('0x14'),(_0x19e56e,_0x47d0a3)=>{_0x39c1bc(_0x47d0a3)&&_0x4a3d37[_0x1714('0x14')](_0x47d0a3);}),_0x4a3d37[_0x1714('0xf')](_0x4e8806,_0x1714('0x11'),(_0x53eb13,_0x345d5f)=>{_0x4a3d37[_0x1714('0x2')](_0x345d5f)&&_0x4a3d37[_0x1714('0x11')](_0x345d5f);});}function v(_0x3902ee,_0x345291){if(null===_0x3902ee&&null===_0x345291)return 0x0;if(null===_0x3902ee)return-0x1;if(null===_0x345291)return 0x1;const _0x3310db=_0x3902ee['top']-_0x345291[_0x1714('0x17')];return 0x0==_0x3310db?_0x3902ee['left']-_0x345291[_0x1714('0x19')]:_0x3310db;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x52ca=['_removeActiveAnnotation','view','createAnnotation','destroy','element','_deactivateAllAnnotations','_visibleAnnotations','activate','_addActiveAnnotation','activeAnnotations','isVisible','remove','add','set','focusTracker','listenTo','refreshVisibility','delete','collection','_bindAnnotationsToVisibleAnnotations','has','change:isVisible','refreshPositioning','Annotations','deactivateAll'];(function(_0x252040,_0x52ca54){const _0x319a17=function(_0x209d93){while(--_0x209d93){_0x252040['push'](_0x252040['shift']());}};_0x319a17(++_0x52ca54);}(_0x52ca,0x100));const _0x319a=function(_0x252040,_0x52ca54){_0x252040=_0x252040-0x0;let _0x319a17=_0x52ca[_0x252040];return _0x319a17;};import{ContextPlugin as _0x3b5093}from'ckeditor5/src/core';import _0x1be5b0 from'./annotation';import _0x4e5089 from'./annotationcollection';import _0x43868b from'./view/annotationview';export default class b extends _0x3b5093{static get['pluginName'](){return _0x319a('0x11');}constructor(_0x54b006){super(_0x54b006),this[_0x319a('0xc')]=new _0x4e5089(),this['_visibleAnnotations']=new _0x4e5089(),this[_0x319a('0x7')](_0x319a('0x3'),new Set()),this['_bindAnnotationsToVisibleAnnotations']();}[_0x319a('0x6')](_0x54cda2){this[_0x319a('0xc')][_0x319a('0x6')](_0x54cda2);}[_0x319a('0x5')](_0x1861bb){this['collection'][_0x319a('0x5')](_0x1861bb),_0x1861bb[_0x319a('0x16')]();}['refreshVisibility'](){for(const _0x427522 of this[_0x319a('0xc')])_0x427522[_0x319a('0xa')]();}[_0x319a('0x10')](){this[_0x319a('0x0')][_0x319a('0x10')]();}['getByInnerView'](_0x790a76){return this[_0x319a('0xc')]['getByInnerView'](_0x790a76);}[_0x319a('0x12')](){this['fire'](_0x319a('0x18'));}[_0x319a('0x16')](){for(const _0x2043b7 of this[_0x319a('0xc')])_0x2043b7[_0x319a('0x16')]();this[_0x319a('0x0')][_0x319a('0x16')](),this[_0x319a('0xc')]['destroy'](),super[_0x319a('0x16')]();}[_0x319a('0x1')](_0x5291d9){this['fire']('_activateAnnotation',_0x5291d9);}[_0x319a('0x15')](_0x5ff4f6){return new _0x1be5b0(_0x5ff4f6);}['createAnnotationView'](_0x130273,_0x4a924c){return new _0x43868b(_0x130273,_0x4a924c);}[_0x319a('0x2')](_0x9fbff4){const _0x3c1d3d=new Set(this[_0x319a('0x3')]);_0x3c1d3d[_0x319a('0x6')](_0x9fbff4),this[_0x319a('0x3')]=_0x3c1d3d;}[_0x319a('0x13')](_0x33658c){const _0x4e4e98=new Set(this[_0x319a('0x3')]);_0x4e4e98[_0x319a('0xb')](_0x33658c),this['activeAnnotations']=_0x4e4e98;}[_0x319a('0xd')](){const _0x1b4590=this['collection'],_0x278616=this[_0x319a('0x0')];function _0x27afda(_0x5aca43){const _0x50d102=_0x5aca43['source'];_0x50d102['isVisible']&&!_0x278616[_0x319a('0xe')](_0x50d102)?_0x278616[_0x319a('0x6')](_0x50d102):!_0x50d102[_0x319a('0x4')]&&_0x278616[_0x319a('0xe')](_0x50d102)&&_0x278616[_0x319a('0x5')](_0x50d102),_0x50d102[_0x319a('0x14')]['focusTracker'][_0x319a('0x5')](_0x50d102[_0x319a('0x14')][_0x319a('0x17')]),_0x50d102['view'][_0x319a('0x8')][_0x319a('0x6')](_0x50d102['view']['element']);}this[_0x319a('0x9')](_0x1b4590,_0x319a('0x6'),(_0x1ef13e,_0x4562de)=>{_0x4562de[_0x319a('0x4')]&&_0x278616[_0x319a('0x6')](_0x4562de),this[_0x319a('0x9')](_0x4562de,_0x319a('0xf'),_0x27afda);}),this[_0x319a('0x9')](_0x1b4590,'remove',(_0x48ebd3,_0x57ad4a)=>{_0x278616['has'](_0x57ad4a)&&_0x278616[_0x319a('0x5')](_0x57ad4a),this['stopListening'](_0x57ad4a,_0x319a('0xf'),_0x27afda);});}}
23
+ const _0x5375=['isVisible','add','_deactivateAllAnnotations','getByInnerView','destroy','Annotations','element','createAnnotationView','createAnnotation','change:isVisible','_bindAnnotationsToVisibleAnnotations','collection','refreshVisibility','has','activate','view','stopListening','deactivateAll','_visibleAnnotations','listenTo','set','source','remove','focusTracker','activeAnnotations','fire','_addActiveAnnotation'];(function(_0x477e90,_0x53754a){const _0x3ba1d0=function(_0x1b394a){while(--_0x1b394a){_0x477e90['push'](_0x477e90['shift']());}};_0x3ba1d0(++_0x53754a);}(_0x5375,0x190));const _0x3ba1=function(_0x477e90,_0x53754a){_0x477e90=_0x477e90-0x0;let _0x3ba1d0=_0x5375[_0x477e90];return _0x3ba1d0;};import{ContextPlugin as _0x5f07a4}from'ckeditor5/src/core';import _0x3daf1e from'./annotation';import _0x582a28 from'./annotationcollection';import _0x42abdd from'./view/annotationview';export default class b extends _0x5f07a4{static get['pluginName'](){return _0x3ba1('0xa');}constructor(_0x4bdaad){super(_0x4bdaad),this[_0x3ba1('0x10')]=new _0x582a28(),this[_0x3ba1('0x17')]=new _0x582a28(),this[_0x3ba1('0x19')]('activeAnnotations',new Set()),this[_0x3ba1('0xf')]();}[_0x3ba1('0x6')](_0x35b033){this[_0x3ba1('0x10')]['add'](_0x35b033);}[_0x3ba1('0x0')](_0x2f3ac2){this[_0x3ba1('0x10')][_0x3ba1('0x0')](_0x2f3ac2),_0x2f3ac2[_0x3ba1('0x9')]();}['refreshVisibility'](){for(const _0x50065e of this['collection'])_0x50065e[_0x3ba1('0x11')]();}['refreshPositioning'](){this[_0x3ba1('0x17')]['refreshPositioning']();}[_0x3ba1('0x8')](_0x40edd3){return this[_0x3ba1('0x10')]['getByInnerView'](_0x40edd3);}[_0x3ba1('0x16')](){this[_0x3ba1('0x3')](_0x3ba1('0x7'));}['destroy'](){for(const _0x33ca32 of this['collection'])_0x33ca32['destroy']();this[_0x3ba1('0x17')][_0x3ba1('0x9')](),this[_0x3ba1('0x10')][_0x3ba1('0x9')](),super[_0x3ba1('0x9')]();}[_0x3ba1('0x13')](_0x374b29){this['fire']('_activateAnnotation',_0x374b29);}[_0x3ba1('0xd')](_0xd357c0){return new _0x3daf1e(_0xd357c0);}[_0x3ba1('0xc')](_0x1b7273,_0x247f28){return new _0x42abdd(_0x1b7273,_0x247f28);}[_0x3ba1('0x4')](_0x17d431){const _0x3f8bfe=new Set(this[_0x3ba1('0x2')]);_0x3f8bfe[_0x3ba1('0x6')](_0x17d431),this[_0x3ba1('0x2')]=_0x3f8bfe;}['_removeActiveAnnotation'](_0x140b9c){const _0x114921=new Set(this[_0x3ba1('0x2')]);_0x114921['delete'](_0x140b9c),this[_0x3ba1('0x2')]=_0x114921;}[_0x3ba1('0xf')](){const _0x2cd7ba=this[_0x3ba1('0x10')],_0x4249a2=this['_visibleAnnotations'];function _0x854c9(_0x995880){const _0x579171=_0x995880[_0x3ba1('0x1a')];_0x579171['isVisible']&&!_0x4249a2[_0x3ba1('0x12')](_0x579171)?_0x4249a2[_0x3ba1('0x6')](_0x579171):!_0x579171[_0x3ba1('0x5')]&&_0x4249a2[_0x3ba1('0x12')](_0x579171)&&_0x4249a2[_0x3ba1('0x0')](_0x579171),_0x579171[_0x3ba1('0x14')][_0x3ba1('0x1')][_0x3ba1('0x0')](_0x579171[_0x3ba1('0x14')][_0x3ba1('0xb')]),_0x579171['view'][_0x3ba1('0x1')][_0x3ba1('0x6')](_0x579171['view']['element']);}this[_0x3ba1('0x18')](_0x2cd7ba,'add',(_0x4292dd,_0xc29154)=>{_0xc29154[_0x3ba1('0x5')]&&_0x4249a2[_0x3ba1('0x6')](_0xc29154),this[_0x3ba1('0x18')](_0xc29154,_0x3ba1('0xe'),_0x854c9);}),this[_0x3ba1('0x18')](_0x2cd7ba,'remove',(_0x47c785,_0x278414)=>{_0x4249a2['has'](_0x278414)&&_0x4249a2[_0x3ba1('0x0')](_0x278414),this[_0x3ba1('0x15')](_0x278414,_0x3ba1('0xe'),_0x854c9);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2f52=['annotationsuis-missing-ui','switchTo','listenTo','attach','init','length','change:activeAnnotation','refilterAnnotations','plugins','deactivateAll','activate','_activateAnnotation','pluginName','set','has','_addActiveAnnotation','detach','get','hasActive','_visibleAnnotations','destroy','annotationsuis-annotation-mismatch','filter','find','setActiveAnnotation','register','_assertAnnotationDoesNotBelongToMultipleUIs','_uis','size','remove','context','isActive','activeUIs','from','add','function','push','stopListening','_setSelectedAnnotations','requires','_uisData','deactivate','collection','delete'];(function(_0x42ff53,_0x2f526b){const _0x32b8b5=function(_0x581167){while(--_0x581167){_0x42ff53['push'](_0x42ff53['shift']());}};_0x32b8b5(++_0x2f526b);}(_0x2f52,0x17d));const _0x32b8=function(_0x42ff53,_0x2f526b){_0x42ff53=_0x42ff53-0x0;let _0x32b8b5=_0x2f52[_0x42ff53];return _0x32b8b5;};import{ContextPlugin as _0xea6127}from'ckeditor5/src/core';import{CKEditorError as _0x1b437c}from'ckeditor5/src/utils';import _0x2e9740,{bindAnnotationCollections as _0x3358dc}from'./annotationcollection';import _0x5a0d53 from'./annotations';export default class M extends _0xea6127{static get[_0x32b8('0xa')](){return[_0x5a0d53];}static get[_0x32b8('0x1b')](){return'AnnotationsUIs';}constructor(_0x53e095){super(_0x53e095),this[_0x32b8('0x3')]=new Set(),this[_0x32b8('0x2a')]=new Map(),this[_0x32b8('0xb')]=new Map();}[_0x32b8('0x13')](){const _0x42e2b6=this[_0x32b8('0x1')]['plugins'][_0x32b8('0x20')](_0x5a0d53);this[_0x32b8('0x11')](_0x42e2b6,_0x32b8('0x1a'),(_0x5adfc8,_0x2d5789)=>{for(const _0x3f2899 of this['activeUIs']){const _0x8fa1fd=this['_uis'][_0x32b8('0x20')](_0x3f2899);(0x0,this[_0x32b8('0xb')][_0x32b8('0x20')](_0x3f2899)[_0x32b8('0x25')])(_0x2d5789)&&_0x8fa1fd[_0x32b8('0x27')](_0x2d5789);}}),this['listenTo'](_0x42e2b6,'_deactivateAllAnnotations',()=>{for(const _0xa670d8 of this['activeUIs']){this[_0x32b8('0x2a')][_0x32b8('0x20')](_0xa670d8)[_0x32b8('0x27')](null);}}),this[_0x32b8('0x11')](_0x42e2b6[_0x32b8('0x22')],_0x32b8('0x5'),(_0x27a38c,_0x44d784)=>{this[_0x32b8('0x29')](_0x44d784);});}[_0x32b8('0x21')](){return this['activeUIs'][_0x32b8('0x2b')]>0x0;}['isActive'](_0x70d129){return this[_0x32b8('0x3')][_0x32b8('0x1d')](_0x70d129);}['activate'](_0x47e63d,_0x957a5d=()=>!0x0){const _0x5ccabe=this[_0x32b8('0x1')][_0x32b8('0x17')][_0x32b8('0x20')](_0x5a0d53);if(!this[_0x32b8('0x2a')][_0x32b8('0x1d')](_0x47e63d))throw new _0x1b437c('annotationsuis-missing-ui',this,{'uiName':_0x47e63d});this[_0x32b8('0x2')](_0x47e63d)&&this[_0x32b8('0xc')](_0x47e63d),this[_0x32b8('0x3')][_0x32b8('0x5')](_0x47e63d);const _0x3a865c=new _0x2e9740(),_0x206e64=_0x5ccabe['_visibleAnnotations'];_0x3358dc({'source':_0x206e64,'target':_0x3a865c,'filter':_0x957a5d}),this[_0x32b8('0xb')]['set'](_0x47e63d,{'collection':_0x3a865c,'filter':_0x957a5d});const _0xb22c30=this['_uis'][_0x32b8('0x20')](_0x47e63d);_0xb22c30[_0x32b8('0x12')](_0x3a865c),this[_0x32b8('0x11')](_0xb22c30,_0x32b8('0x15'),(_0x5657b3,_0x5a491a,_0x108e89,_0x85ed1d)=>{_0x85ed1d&&_0x5ccabe['_removeActiveAnnotation'](_0x85ed1d),_0x108e89&&_0x5ccabe[_0x32b8('0x1e')](_0x108e89);});}[_0x32b8('0xc')](_0x172432){if(this['activeUIs'][_0x32b8('0xe')](_0x172432),!this[_0x32b8('0x2a')]['has'](_0x172432))throw new _0x1b437c(_0x32b8('0xf'),this,{'uiName':_0x172432});const _0x2c0b45=this['_uis'][_0x32b8('0x20')](_0x172432);_0x2c0b45[_0x32b8('0x1f')](),this[_0x32b8('0x8')](_0x2c0b45),this[_0x32b8('0xb')][_0x32b8('0x20')](_0x172432)['collection'][_0x32b8('0x23')](),this[_0x32b8('0xb')][_0x32b8('0xe')](_0x172432);}[_0x32b8('0x10')](_0x3073af){if(!this[_0x32b8('0x2a')]['has'](_0x3073af))throw new _0x1b437c(_0x32b8('0xf'),this,{'uiName':_0x3073af});const _0x2f558c=this[_0x32b8('0x1')][_0x32b8('0x17')]['get'](_0x5a0d53),_0x23d40f=Array['from'](_0x2f558c['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this[_0x32b8('0x19')](_0x3073af);const _0xf70c35=this[_0x32b8('0x2a')][_0x32b8('0x20')](_0x3073af);_0xf70c35[_0x32b8('0x27')](_0x23d40f),_0xf70c35['_setSelectedAnnotations']&&_0x23d40f&&_0xf70c35[_0x32b8('0x9')]([_0x23d40f]);}[_0x32b8('0x18')](){for(const _0x125813 of this[_0x32b8('0x3')])this[_0x32b8('0xc')](_0x125813);}[_0x32b8('0x28')](_0x41b2b1,_0x32ac77){if(this[_0x32b8('0x2a')][_0x32b8('0x1d')](_0x41b2b1))throw new _0x1b437c('annotationsuis-register-already-registered');if('function'!=typeof _0x32ac77[_0x32b8('0x12')]||_0x32b8('0x6')!=typeof _0x32ac77[_0x32b8('0x1f')]||'function'!=typeof _0x32ac77[_0x32b8('0x27')])throw new _0x1b437c('annotationsuis-register-invalid-interface',null);this[_0x32b8('0x2a')][_0x32b8('0x1c')](_0x41b2b1,_0x32ac77);}[_0x32b8('0x16')](){const _0x3f663f=this['context']['plugins'][_0x32b8('0x20')](_0x5a0d53)[_0x32b8('0xd')],_0x1355b=new Map(),_0x38e911=Array[_0x32b8('0x4')](this[_0x32b8('0x3')]);for(const _0x45f3e9 of this[_0x32b8('0x3')]){const _0x5c73ce=this['_uisData'][_0x32b8('0x20')](_0x45f3e9)['collection'];for(const _0x4a9e9a of _0x5c73ce)_0x1355b['set'](_0x4a9e9a,_0x45f3e9);}for(const _0x3c733b of _0x3f663f){const _0x289dc9=_0x1355b[_0x32b8('0x20')](_0x3c733b);this[_0x32b8('0x29')](_0x3c733b);const _0x2b821a=_0x38e911[_0x32b8('0x26')](_0x1e9f00=>this[_0x32b8('0xb')]['get'](_0x1e9f00)[_0x32b8('0x25')](_0x3c733b));_0x289dc9!==_0x2b821a&&(_0x289dc9&&this[_0x32b8('0xb')][_0x32b8('0x20')](_0x289dc9)[_0x32b8('0xd')][_0x32b8('0x0')](_0x3c733b),_0x2b821a&&this[_0x32b8('0xb')][_0x32b8('0x20')](_0x2b821a)[_0x32b8('0xd')][_0x32b8('0x5')](_0x3c733b));}}[_0x32b8('0x23')](){this[_0x32b8('0x18')](),super[_0x32b8('0x23')]();}[_0x32b8('0x29')](_0x183da1){const _0x5f2f02=[];for(const _0x524855 of this[_0x32b8('0x3')]){(0x0,this['_uisData'][_0x32b8('0x20')](_0x524855)[_0x32b8('0x25')])(_0x183da1)&&_0x5f2f02[_0x32b8('0x7')](_0x524855);}if(_0x5f2f02[_0x32b8('0x14')]>0x1)throw new _0x1b437c(_0x32b8('0x24'),null,{'matchedUIs':_0x5f2f02,'annotationType':_0x183da1['type']});}}
23
+ const _0x57ce=['filter','activeUIs','_setSelectedAnnotations','activeAnnotations','_visibleAnnotations','_activateAnnotation','has','attach','function','_removeActiveAnnotation','setActiveAnnotation','listenTo','delete','_deactivateAllAnnotations','destroy','set','change:activeAnnotation','refilterAnnotations','deactivate','switchTo','requires','pluginName','hasActive','isActive','collection','annotationsuis-register-invalid-interface','_addActiveAnnotation','get','activate','_assertAnnotationDoesNotBelongToMultipleUIs','from','context','type','_uisData','length','annotationsuis-register-already-registered','deactivateAll','push','_uis','annotationsuis-annotation-mismatch','plugins','add','size'];(function(_0x8020a6,_0x57ce48){const _0x328025=function(_0xfb5e2f){while(--_0xfb5e2f){_0x8020a6['push'](_0x8020a6['shift']());}};_0x328025(++_0x57ce48);}(_0x57ce,0x85));const _0x3280=function(_0x8020a6,_0x57ce48){_0x8020a6=_0x8020a6-0x0;let _0x328025=_0x57ce[_0x8020a6];return _0x328025;};import{ContextPlugin as _0x344675}from'ckeditor5/src/core';import{CKEditorError as _0x3d9f78}from'ckeditor5/src/utils';import _0x4a7646,{bindAnnotationCollections as _0x3f1d6e}from'./annotationcollection';import _0x3e6c40 from'./annotations';export default class M extends _0x344675{static get[_0x3280('0x10')](){return[_0x3e6c40];}static get[_0x3280('0x11')](){return'AnnotationsUIs';}constructor(_0x925e66){super(_0x925e66),this[_0x3280('0x28')]=new Set(),this[_0x3280('0x22')]=new Map(),this[_0x3280('0x1d')]=new Map();}['init'](){const _0x32c3f3=this['context']['plugins'][_0x3280('0x17')](_0x3e6c40);this[_0x3280('0x7')](_0x32c3f3,_0x3280('0x1'),(_0x38ba7f,_0x3d1794)=>{for(const _0x2745c6 of this['activeUIs']){const _0x540eff=this['_uis'][_0x3280('0x17')](_0x2745c6);(0x0,this[_0x3280('0x1d')][_0x3280('0x17')](_0x2745c6)['filter'])(_0x3d1794)&&_0x540eff[_0x3280('0x6')](_0x3d1794);}}),this[_0x3280('0x7')](_0x32c3f3,_0x3280('0x9'),()=>{for(const _0x5b9de0 of this[_0x3280('0x28')]){this[_0x3280('0x22')]['get'](_0x5b9de0)[_0x3280('0x6')](null);}}),this[_0x3280('0x7')](_0x32c3f3[_0x3280('0x0')],'add',(_0x4a4a90,_0x3dde7b)=>{this[_0x3280('0x19')](_0x3dde7b);});}[_0x3280('0x12')](){return this[_0x3280('0x28')][_0x3280('0x26')]>0x0;}[_0x3280('0x13')](_0xe59c2a){return this['activeUIs']['has'](_0xe59c2a);}[_0x3280('0x18')](_0x57e85d,_0x43babc=()=>!0x0){const _0x29143d=this['context']['plugins'][_0x3280('0x17')](_0x3e6c40);if(!this[_0x3280('0x22')]['has'](_0x57e85d))throw new _0x3d9f78('annotationsuis-missing-ui',this,{'uiName':_0x57e85d});this['isActive'](_0x57e85d)&&this[_0x3280('0xe')](_0x57e85d),this[_0x3280('0x28')][_0x3280('0x25')](_0x57e85d);const _0x4f8b21=new _0x4a7646(),_0x52f37e=_0x29143d[_0x3280('0x0')];_0x3f1d6e({'source':_0x52f37e,'target':_0x4f8b21,'filter':_0x43babc}),this[_0x3280('0x1d')][_0x3280('0xb')](_0x57e85d,{'collection':_0x4f8b21,'filter':_0x43babc});const _0x4b38e8=this[_0x3280('0x22')][_0x3280('0x17')](_0x57e85d);_0x4b38e8[_0x3280('0x3')](_0x4f8b21),this[_0x3280('0x7')](_0x4b38e8,_0x3280('0xc'),(_0x42518f,_0x82bdc4,_0x404205,_0x49ba04)=>{_0x49ba04&&_0x29143d[_0x3280('0x5')](_0x49ba04),_0x404205&&_0x29143d[_0x3280('0x16')](_0x404205);});}[_0x3280('0xe')](_0x58293a){if(this['activeUIs'][_0x3280('0x8')](_0x58293a),!this[_0x3280('0x22')][_0x3280('0x2')](_0x58293a))throw new _0x3d9f78('annotationsuis-missing-ui',this,{'uiName':_0x58293a});const _0x2058a1=this[_0x3280('0x22')][_0x3280('0x17')](_0x58293a);_0x2058a1['detach'](),this['stopListening'](_0x2058a1),this[_0x3280('0x1d')][_0x3280('0x17')](_0x58293a)['collection']['destroy'](),this['_uisData'][_0x3280('0x8')](_0x58293a);}[_0x3280('0xf')](_0x25da1a){if(!this[_0x3280('0x22')][_0x3280('0x2')](_0x25da1a))throw new _0x3d9f78('annotationsuis-missing-ui',this,{'uiName':_0x25da1a});const _0x5b8399=this[_0x3280('0x1b')][_0x3280('0x24')][_0x3280('0x17')](_0x3e6c40),_0x586e90=Array[_0x3280('0x1a')](_0x5b8399[_0x3280('0x2a')])[0x0]||null;this[_0x3280('0x20')](),this['activate'](_0x25da1a);const _0x5a3467=this[_0x3280('0x22')][_0x3280('0x17')](_0x25da1a);_0x5a3467[_0x3280('0x6')](_0x586e90),_0x5a3467[_0x3280('0x29')]&&_0x586e90&&_0x5a3467[_0x3280('0x29')]([_0x586e90]);}['deactivateAll'](){for(const _0x512bf5 of this['activeUIs'])this['deactivate'](_0x512bf5);}['register'](_0xc7c731,_0x532bae){if(this[_0x3280('0x22')][_0x3280('0x2')](_0xc7c731))throw new _0x3d9f78(_0x3280('0x1f'));if(_0x3280('0x4')!=typeof _0x532bae[_0x3280('0x3')]||_0x3280('0x4')!=typeof _0x532bae['detach']||_0x3280('0x4')!=typeof _0x532bae['setActiveAnnotation'])throw new _0x3d9f78(_0x3280('0x15'),null);this[_0x3280('0x22')]['set'](_0xc7c731,_0x532bae);}[_0x3280('0xd')](){const _0x36fa7b=this[_0x3280('0x1b')][_0x3280('0x24')][_0x3280('0x17')](_0x3e6c40)[_0x3280('0x14')],_0x42ae06=new Map(),_0xde1ad3=Array[_0x3280('0x1a')](this['activeUIs']);for(const _0xd041d0 of this[_0x3280('0x28')]){const _0x3161e4=this['_uisData'][_0x3280('0x17')](_0xd041d0)[_0x3280('0x14')];for(const _0x1e140b of _0x3161e4)_0x42ae06[_0x3280('0xb')](_0x1e140b,_0xd041d0);}for(const _0xc4a829 of _0x36fa7b){const _0x1c3a83=_0x42ae06[_0x3280('0x17')](_0xc4a829);this[_0x3280('0x19')](_0xc4a829);const _0x31bf6b=_0xde1ad3['find'](_0x4d9481=>this[_0x3280('0x1d')][_0x3280('0x17')](_0x4d9481)[_0x3280('0x27')](_0xc4a829));_0x1c3a83!==_0x31bf6b&&(_0x1c3a83&&this['_uisData']['get'](_0x1c3a83)[_0x3280('0x14')]['remove'](_0xc4a829),_0x31bf6b&&this[_0x3280('0x1d')][_0x3280('0x17')](_0x31bf6b)[_0x3280('0x14')][_0x3280('0x25')](_0xc4a829));}}['destroy'](){this[_0x3280('0x20')](),super[_0x3280('0xa')]();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0xee313){const _0x1b6ed8=[];for(const _0x573a97 of this[_0x3280('0x28')]){(0x0,this[_0x3280('0x1d')][_0x3280('0x17')](_0x573a97)[_0x3280('0x27')])(_0xee313)&&_0x1b6ed8[_0x3280('0x21')](_0x573a97);}if(_0x1b6ed8[_0x3280('0x1e')]>0x1)throw new _0x3d9f78(_0x3280('0x23'),null,{'matchedUIs':_0x1b6ed8,'annotationType':_0xee313[_0x3280('0x1c')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xc16c=['has','addSourceCollector','remove','isEqual','isReadOnly','focusTracker','requires','plugins','map','fire','document','_dataCollectors','innerView','set','refreshSelectedViews','directChange','model','collection','cancel','isCollapsed','_editorAnnotationsData','editing','update','annotation','range','registerAnnotation','get','element','_editorAnnotations','editor','containsRange','selection','listenTo','change:isFocused','delete','getOrderedSelectedAnnotations','change:range','getRanges','editorannotations-invalid-source-callback','add','refresh','view','uiUpdate','hasDomSelection'];(function(_0x40e378,_0xc16c00){const _0x11f39e=function(_0x7e2275){while(--_0x7e2275){_0x40e378['push'](_0x40e378['shift']());}};_0x11f39e(++_0xc16c00);}(_0xc16c,0x174));const _0x11f3=function(_0x40e378,_0xc16c00){_0x40e378=_0x40e378-0x0;let _0x11f39e=_0xc16c[_0x40e378];return _0x11f39e;};import{Plugin as _0x3d9089}from'ckeditor5/src/core';import{CKEditorError as _0x373f3e}from'ckeditor5/src/utils';import{debounce as _0x2ace88}from'lodash-es';import _0x5eeed4 from'./annotations';export default class k extends _0x3d9089{static get[_0x11f3('0x1e')](){return[_0x5eeed4];}static get['pluginName'](){return'EditorAnnotations';}constructor(_0x18d85b){super(_0x18d85b),this[_0x11f3('0x23')]=new Set(),this[_0x11f3('0x8')]=new Set();}['init'](){const _0x30c5d7=this[_0x11f3('0x9')],_0x24d07e=_0x30c5d7[_0x11f3('0x28')][_0x11f3('0x22')][_0x11f3('0xb')],_0x201d01=_0x2ace88(()=>this['refreshSelectedViews'](),0xa);_0x24d07e['on'](_0x11f3('0x10'),(_0xfc7e7c,_0x2b6e90)=>{_0x2b6e90[_0x11f3('0x27')]&&(_0x201d01[_0x11f3('0x2a')](),this[_0x11f3('0x26')]());}),this[_0x11f3('0xc')](_0x30c5d7['editing'][_0x11f3('0x15')]['document'],'change:isFocused',(_0xc16987,_0x423046,_0x20a7be)=>{_0x20a7be&&_0x201d01();}),this[_0x11f3('0xc')](_0x30c5d7['ui'][_0x11f3('0x1d')],_0x11f3('0xd'),(_0xe7d1c1,_0x52dfba,_0x2ef964)=>{_0x2ef964||_0x30c5d7[_0x11f3('0x1c')]||this[_0x11f3('0x21')]('blur',{'isAnnotationTracked':_0x21e8b7=>this['_editorAnnotationsData']['has'](_0x21e8b7[_0x11f3('0x24')])});}),this[_0x11f3('0xc')](this[_0x11f3('0x9')]['ui'],_0x11f3('0x2'),()=>this[_0x11f3('0x21')](_0x11f3('0x16')));}[_0x11f3('0x5')](_0x2d8e80){if(this['_editorAnnotations'][_0x11f3('0x18')](_0x2d8e80[_0x11f3('0x15')]))return;this['_editorAnnotations'][_0x11f3('0x13')](_0x2d8e80[_0x11f3('0x15')]),this[_0x11f3('0x9')]['ui']['focusTracker']['add'](_0x2d8e80['view']['element']);const _0x2d9d45=this[_0x11f3('0x9')][_0x11f3('0x1f')][_0x11f3('0x6')](_0x5eeed4);this[_0x11f3('0xc')](_0x2d9d45[_0x11f3('0x29')],_0x11f3('0x1a'),(_0x24e1f2,_0x252fb4)=>{this[_0x11f3('0x9')]['ui'][_0x11f3('0x1d')]['remove'](_0x252fb4[_0x11f3('0x15')][_0x11f3('0x7')]),this[_0x11f3('0x8')][_0x11f3('0xe')](_0x252fb4['view']);});}[_0x11f3('0x17')](){return this[_0x11f3('0x9')][_0x11f3('0x1')][_0x11f3('0x15')][_0x11f3('0x17')];}[_0x11f3('0x19')](_0xe51bcd){if('function'!=typeof _0xe51bcd)throw new _0x373f3e(_0x11f3('0x12'));this[_0x11f3('0x23')][_0x11f3('0x13')](_0xe51bcd);}['refreshSelectedViews'](){this[_0x11f3('0x21')](_0x11f3('0x14'));}[_0x11f3('0xf')]({activeAnnotation:_0x2d8a71,annotations:_0x5319ff}){const _0x1a8589=[],_0x124d70=this[_0x11f3('0x9')][_0x11f3('0x28')]['document']['selection'],_0x3b16c7=Array['from'](_0x124d70[_0x11f3('0x11')]());for(const [_0x5c20ba,_0x3763d8]of this[_0x11f3('0x0')]){const _0x29395e=_0x2c94fa(_0x3763d8),_0x5af5c9=_0x5319ff['getByInnerView'](_0x5c20ba);_0x29395e&&_0x5af5c9&&_0x1a8589['push']({'annotation':_0x5af5c9,'range':_0x29395e});}function _0x2c94fa(_0x504477){for(const _0x39cfbb of _0x504477)for(const _0x34f945 of _0x3b16c7)if(_0x39cfbb['containsRange'](_0x34f945,!_0x124d70[_0x11f3('0x2b')]))return _0x39cfbb;return null;}return _0x1a8589['sort']((_0x50d0b2,_0x2db2e6)=>{const _0x1b3d5c=_0x50d0b2[_0x11f3('0x4')],_0x2f94e0=_0x2db2e6[_0x11f3('0x4')];if(!_0x1b3d5c[_0x11f3('0x1b')](_0x2f94e0)){if(_0x1b3d5c[_0x11f3('0xa')](_0x2f94e0,!0x0))return 0x1;if(_0x2f94e0[_0x11f3('0xa')](_0x1b3d5c,!0x0))return-0x1;}return _0x50d0b2[_0x11f3('0x3')]==_0x2d8a71?-0x1:_0x2db2e6[_0x11f3('0x3')]==_0x2d8a71?0x1:0x0;})[_0x11f3('0x20')](_0x1871d8=>_0x1871d8[_0x11f3('0x3')]);}get[_0x11f3('0x0')](){const _0x52bfd6=new Map();for(const _0x563c20 of Array['from'](this['_dataCollectors']))for(const [_0x80cf90,_0x5dc7bc]of _0x563c20())_0x52bfd6[_0x11f3('0x25')](_0x80cf90,_0x5dc7bc);return _0x52bfd6;}}
23
+ const _0x5ae2=['function','directChange','init','element','requires','add','EditorAnnotations','cancel','isReadOnly','focusTracker','get','refreshSelectedViews','isCollapsed','hasDomSelection','refresh','range','map','_editorAnnotations','isEqual','blur','from','_editorAnnotationsData','annotation','getOrderedSelectedAnnotations','uiUpdate','selection','innerView','push','plugins','containsRange','editing','change:range','model','collection','fire','_dataCollectors','remove','registerAnnotation','view','has','change:isFocused','pluginName','document','listenTo','update','editor'];(function(_0xa98a4d,_0x5ae279){const _0x2efd57=function(_0x1450dc){while(--_0x1450dc){_0xa98a4d['push'](_0xa98a4d['shift']());}};_0x2efd57(++_0x5ae279);}(_0x5ae2,0x90));const _0x2efd=function(_0xa98a4d,_0x5ae279){_0xa98a4d=_0xa98a4d-0x0;let _0x2efd57=_0x5ae2[_0xa98a4d];return _0x2efd57;};import{Plugin as _0x5bab27}from'ckeditor5/src/core';import{CKEditorError as _0x2e5780}from'ckeditor5/src/utils';import{debounce as _0x4c261d}from'lodash-es';import _0x518cbc from'./annotations';export default class k extends _0x5bab27{static get[_0x2efd('0x2c')](){return[_0x518cbc];}static get[_0x2efd('0x23')](){return _0x2efd('0x0');}constructor(_0x5a39b2){super(_0x5a39b2),this[_0x2efd('0x1d')]=new Set(),this[_0x2efd('0xb')]=new Set();}[_0x2efd('0x2a')](){const _0x5c8255=this['editor'],_0x4a1a7b=_0x5c8255[_0x2efd('0x1a')][_0x2efd('0x24')][_0x2efd('0x13')],_0x1d77ea=_0x4c261d(()=>this['refreshSelectedViews'](),0xa);_0x4a1a7b['on'](_0x2efd('0x19'),(_0x292352,_0x1ffe0b)=>{_0x1ffe0b[_0x2efd('0x29')]&&(_0x1d77ea[_0x2efd('0x1')](),this[_0x2efd('0x5')]());}),this[_0x2efd('0x25')](_0x5c8255[_0x2efd('0x18')]['view'][_0x2efd('0x24')],_0x2efd('0x22'),(_0x49a9a8,_0x2b588d,_0x58bafc)=>{_0x58bafc&&_0x1d77ea();}),this[_0x2efd('0x25')](_0x5c8255['ui']['focusTracker'],_0x2efd('0x22'),(_0x51544e,_0x24c11c,_0x4eca29)=>{_0x4eca29||_0x5c8255[_0x2efd('0x2')]||this[_0x2efd('0x1c')](_0x2efd('0xd'),{'isAnnotationTracked':_0x3800cf=>this[_0x2efd('0xf')][_0x2efd('0x21')](_0x3800cf[_0x2efd('0x14')])});}),this['listenTo'](this[_0x2efd('0x27')]['ui'],_0x2efd('0x26'),()=>this[_0x2efd('0x1c')](_0x2efd('0x12')));}[_0x2efd('0x1f')](_0x95b28a){if(this[_0x2efd('0xb')][_0x2efd('0x21')](_0x95b28a[_0x2efd('0x20')]))return;this[_0x2efd('0xb')]['add'](_0x95b28a[_0x2efd('0x20')]),this[_0x2efd('0x27')]['ui'][_0x2efd('0x3')][_0x2efd('0x2d')](_0x95b28a[_0x2efd('0x20')][_0x2efd('0x2b')]);const _0x1065fd=this[_0x2efd('0x27')][_0x2efd('0x16')][_0x2efd('0x4')](_0x518cbc);this['listenTo'](_0x1065fd[_0x2efd('0x1b')],'remove',(_0x33d0b5,_0x4f19c9)=>{this[_0x2efd('0x27')]['ui'][_0x2efd('0x3')][_0x2efd('0x1e')](_0x4f19c9[_0x2efd('0x20')][_0x2efd('0x2b')]),this[_0x2efd('0xb')]['delete'](_0x4f19c9[_0x2efd('0x20')]);});}[_0x2efd('0x7')](){return this[_0x2efd('0x27')]['editing']['view'][_0x2efd('0x7')];}['addSourceCollector'](_0x1a590b){if(_0x2efd('0x28')!=typeof _0x1a590b)throw new _0x2e5780('editorannotations-invalid-source-callback');this['_dataCollectors'][_0x2efd('0x2d')](_0x1a590b);}[_0x2efd('0x5')](){this[_0x2efd('0x1c')](_0x2efd('0x8'));}[_0x2efd('0x11')]({activeAnnotation:_0x451ad0,annotations:_0x4bd892}){const _0x5adec1=[],_0x5c7512=this[_0x2efd('0x27')][_0x2efd('0x1a')][_0x2efd('0x24')][_0x2efd('0x13')],_0x136509=Array[_0x2efd('0xe')](_0x5c7512['getRanges']());for(const [_0x2d8240,_0x1dec13]of this[_0x2efd('0xf')]){const _0x1ae640=_0xeba5a(_0x1dec13),_0x104e95=_0x4bd892['getByInnerView'](_0x2d8240);_0x1ae640&&_0x104e95&&_0x5adec1[_0x2efd('0x15')]({'annotation':_0x104e95,'range':_0x1ae640});}function _0xeba5a(_0x726815){for(const _0x47b6fe of _0x726815)for(const _0x4bf63a of _0x136509)if(_0x47b6fe[_0x2efd('0x17')](_0x4bf63a,!_0x5c7512[_0x2efd('0x6')]))return _0x47b6fe;return null;}return _0x5adec1['sort']((_0x66230,_0x3a47a2)=>{const _0x284d2e=_0x66230['range'],_0x550378=_0x3a47a2[_0x2efd('0x9')];if(!_0x284d2e[_0x2efd('0xc')](_0x550378)){if(_0x284d2e[_0x2efd('0x17')](_0x550378,!0x0))return 0x1;if(_0x550378[_0x2efd('0x17')](_0x284d2e,!0x0))return-0x1;}return _0x66230[_0x2efd('0x10')]==_0x451ad0?-0x1:_0x3a47a2['annotation']==_0x451ad0?0x1:0x0;})[_0x2efd('0xa')](_0x4a5677=>_0x4a5677[_0x2efd('0x10')]);}get[_0x2efd('0xf')](){const _0x414daf=new Map();for(const _0x1badb8 of Array[_0x2efd('0xe')](this['_dataCollectors']))for(const [_0x302d3a,_0x1018ee]of _0x1badb8())_0x414daf['set'](_0x302d3a,_0x1018ee);return _0x414daf;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x443f=['attach','find','domConverter','update','push','inlineannotations-not-allowed-with-context','focus','collapse','_closeAnnotation','change:height','getByView','getOrderedSelectedAnnotations','_balloon','register','right','fromRect','visibleView','setActiveAnnotation','Esc','length','_forceRefresh','view','remove','includes','detach','isAttached','plugins','change:isFocused','hasView','afterInit','clear','mousedown','init','delete','switchTo','add','annotations','inline','has','target','destroy','from','updatePosition','_getBalloonTargetForAnnotation','_selectedAnnotations','addObserver','_addedAnnotations','activeAnnotation','isFocused','_addAnnotationToBalloon','inlineannotations-attach-already-attached','left','document','selection','set','_removeAnnotationFromBalloon','change:visibleView','targetRect','_manuallyClosed','inlineannotations-detach-not-attached','getFirstRange','viewRangeToDom','stopListening','get','every','hasActive','context','isActive','pluginName','keystrokes','_setSelectedAnnotations','getBoundingClientRect','editor','editing','focusTracker','top','bottom','listenTo'];(function(_0x537f24,_0x443f47){const _0xffbaa0=function(_0x2feb16){while(--_0x2feb16){_0x537f24['push'](_0x537f24['shift']());}};_0xffbaa0(++_0x443f47);}(_0x443f,0x1c3));const _0xffba=function(_0x537f24,_0x443f47){_0x537f24=_0x537f24-0x0;let _0xffbaa0=_0x443f[_0x537f24];return _0xffbaa0;};import{Plugin as _0x55a068}from'ckeditor5/src/core';import _0x41cdd2 from'./annotationsuis';import _0x25eb8d from'./editorannotations';import{ContextualBalloon as _0x5a44d8}from'ckeditor5/src/ui';import{MouseObserver as _0x5a190f}from'ckeditor5/src/engine';import{CKEditorError as _0x739614,Rect as _0x476e56}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x55a068{static get['requires'](){return[_0x25eb8d,_0x5a44d8,_0x41cdd2];}static get[_0xffba('0x7')](){return'InlineAnnotations';}constructor(_0x283d73){super(_0x283d73),_0x283d73[_0xffba('0xc')][_0xffba('0x26')][_0xffba('0x3e')](_0x5a190f),this[_0xffba('0x2a')]=!0x1,this[_0xffba('0x47')](_0xffba('0x40'),null),this[_0xffba('0x35')]=null,this[_0xffba('0x4b')]=new Set(),this[_0xffba('0x1d')]=_0x283d73[_0xffba('0x2b')][_0xffba('0x2')](_0x5a44d8),this['_addedAnnotations']=new Set(),this[_0xffba('0x3d')]=[],this[_0xffba('0x25')]=!0x1;}[_0xffba('0x31')](){const _0x468e42=this['editor'][_0xffba('0x2b')][_0xffba('0x2')](_0x41cdd2);_0x468e42[_0xffba('0x5')]===this[_0xffba('0xb')]&&(_0x468e42[_0xffba('0x1e')](_0xffba('0x36'),this),this[_0xffba('0xb')][_0xffba('0x8')]['set'](_0xffba('0x23'),(_0x41835a,_0x241903)=>{const _0x287078=this['_balloon'];if(this[_0xffba('0x2a')]&&_0x287078['visibleView']){const _0x4b5f45=this['annotations'][_0xffba('0x1b')](_0x287078[_0xffba('0x21')]);_0x4b5f45&&this[_0xffba('0x19')](_0x4b5f45),_0x241903();}}));}[_0xffba('0x2e')](){const _0x413c9f=this[_0xffba('0xb')]['plugins'][_0xffba('0x2')](_0x41cdd2);_0x413c9f[_0xffba('0x5')]===this[_0xffba('0xb')]&&(_0x413c9f[_0xffba('0x4')]()||_0x413c9f[_0xffba('0x33')](_0xffba('0x36')));}[_0xffba('0x22')](_0x63930d){_0x63930d!==this[_0xffba('0x40')]&&(this[_0xffba('0x40')]&&(this[_0xffba('0x40')][_0xffba('0x6')]=!0x1),_0x63930d&&this[_0xffba('0xb')]['ui'][_0xffba('0xd')][_0xffba('0x41')]&&(this[_0xffba('0x35')][_0xffba('0x37')](_0x63930d)&&this[_0xffba('0x42')](_0x63930d,!0x0),_0x63930d['isActive']=!0x0),_0x63930d||this[_0xffba('0x9')]([]),this[_0xffba('0x40')]=_0x63930d);}[_0xffba('0x11')](_0x27651a){this['annotations']=_0x27651a;const _0x2b8cf1=this[_0xffba('0xb')][_0xffba('0x2b')]['get'](_0x41cdd2),_0x9ddcc1=this[_0xffba('0x1d')];if(this[_0xffba('0x2a')])throw new _0x739614(_0xffba('0x43'),this);if(_0x2b8cf1[_0xffba('0x5')]!==this[_0xffba('0xb')])throw new _0x739614(_0xffba('0x16'),this);const _0x3be274=this[_0xffba('0xb')][_0xffba('0x2b')][_0xffba('0x2')](_0x25eb8d);this[_0xffba('0x10')](_0x3be274,'refresh',()=>{const _0x5c81c6=_0x3be274[_0xffba('0x1c')]({'annotations':this['annotations'],'activeAnnotation':this[_0xffba('0x40')]});var _0x68e352,_0x4a894c;!this[_0xffba('0x25')]&&(_0x68e352=_0x5c81c6,_0x4a894c=this['_selectedAnnotations'],_0x68e352[_0xffba('0x24')]===_0x4a894c[_0xffba('0x24')]&&_0x68e352[_0xffba('0x3')](_0x37a1ff=>_0x4a894c[_0xffba('0x28')](_0x37a1ff)))||(this['_forceRefresh']=!0x1,this[_0xffba('0x9')](_0x5c81c6),this[_0xffba('0x22')](_0x5c81c6[0x0]||null));}),this[_0xffba('0x10')](_0x3be274,'blur',(_0x546c06,{isAnnotationTracked:_0x422462})=>{this[_0xffba('0x40')]&&_0x422462(this['activeAnnotation'])&&(this[_0xffba('0x9')]([]),this['setActiveAnnotation'](null));}),this['listenTo'](this[_0xffba('0xb')]['ui']['focusTracker'],_0xffba('0x2c'),(_0x54705a,_0x1455f2,_0x579482)=>{_0x579482||this[_0xffba('0x22')](null);}),this[_0xffba('0x10')](_0x27651a,_0xffba('0x27'),(_0x36445f,_0x52a04a)=>{this['_removeAnnotationFromBalloon'](_0x52a04a),_0x52a04a===this[_0xffba('0x40')]&&this[_0xffba('0x22')](null);}),this['listenTo'](_0x9ddcc1,_0xffba('0x49'),(_0x15f036,_0x5e5f5b,_0x410785,_0x35afdf)=>{_0x35afdf&&this[_0xffba('0x1')](_0x35afdf);const _0x27607e=_0x27651a[_0xffba('0x1b')](_0x410785);_0x410785&&_0x27607e&&(this[_0xffba('0x10')](_0x410785,_0xffba('0x1a'),()=>{_0x9ddcc1[_0xffba('0x3b')]();}),this['listenTo'](_0x410785,_0xffba('0x23'),()=>{this['_closeAnnotation'](_0x27607e),this[_0xffba('0xb')]['editing'][_0xffba('0x26')][_0xffba('0x17')]();}),this[_0xffba('0x40')]!==_0x27607e&&this[_0xffba('0x22')](_0x27607e));}),this[_0xffba('0x10')](this[_0xffba('0xb')]['ui'],_0xffba('0x14'),()=>{_0x9ddcc1[_0xffba('0x21')]&&(_0x27651a['getByView'](_0x9ddcc1[_0xffba('0x21')])&&_0x9ddcc1[_0xffba('0x3b')]());}),this[_0xffba('0x10')](this['editor']['editing'][_0xffba('0x26')][_0xffba('0x45')],_0xffba('0x30'),()=>{this[_0xffba('0x25')]=!0x0,this['_manuallyClosed'][_0xffba('0x2f')]();}),this[_0xffba('0xb')][_0xffba('0xc')][_0xffba('0x26')]['document'][_0xffba('0x46')]['editableElement']&&this[_0xffba('0xb')][_0xffba('0xc')][_0xffba('0x26')][_0xffba('0x17')](),this['isAttached']=!0x0;}[_0xffba('0x29')](){if(!this['isAttached'])throw new _0x739614(_0xffba('0x4c'),this);this['setActiveAnnotation'](null);for(const _0x525257 of this['_addedAnnotations'])this[_0xffba('0x48')](_0x525257);this['stopListening'](),this[_0xffba('0x2a')]=!0x1,this[_0xffba('0x35')]=null;}[_0xffba('0x39')](){this[_0xffba('0x2a')]&&this[_0xffba('0x29')]();}['_setSelectedAnnotations'](_0x1f2ba5){for(const _0x54c098 of this[_0xffba('0x3d')])_0x1f2ba5[_0xffba('0x28')](_0x54c098)||this[_0xffba('0x4b')][_0xffba('0x32')](_0x54c098);for(const _0x4295b7 of this['annotations'])_0x1f2ba5['includes'](_0x4295b7)||this[_0xffba('0x48')](_0x4295b7);if(this['editor']['ui'][_0xffba('0xd')][_0xffba('0x41')])for(const _0x873769 of _0x1f2ba5)this[_0xffba('0x42')](_0x873769);this['_selectedAnnotations']=_0x1f2ba5;}[_0xffba('0x42')](_0x1fb2d7,_0x69a7ce=!0x1){this[_0xffba('0x4b')]['has'](_0x1fb2d7)||(this[_0xffba('0x3f')][_0xffba('0x37')](_0x1fb2d7)||this[_0xffba('0x1d')]['hasView'](_0x1fb2d7[_0xffba('0x26')])||(this[_0xffba('0x3f')][_0xffba('0x34')](_0x1fb2d7),this[_0xffba('0x1d')][_0xffba('0x34')]({'stackId':_0x1fb2d7[_0xffba('0x26')]['id'],'view':_0x1fb2d7[_0xffba('0x26')],'position':{'target':()=>this[_0xffba('0x3c')](_0x1fb2d7)}})),_0x69a7ce&&this[_0xffba('0x1d')]['showStack'](_0x1fb2d7[_0xffba('0x26')]['id']));}[_0xffba('0x3c')](_0x234c9c){const _0x18f16f=_0x234c9c[_0xffba('0x38')],_0x4e420d=this[_0xffba('0xb')][_0xffba('0xc')][_0xffba('0x26')],_0x25b395=_0x4e420d[_0xffba('0x45')][_0xffba('0x46')][_0xffba('0x4d')](),_0xb3e642=_0x4e420d[_0xffba('0x13')][_0xffba('0x0')](_0x25b395);if(_0xb3e642[_0xffba('0x18')](!0x0),_0x18f16f){if(_0x18f16f instanceof _0x476e56)return _0x18f16f;let _0x3f7566=[];for(const _0x2137f9 of _0x18f16f)_0x3f7566[_0xffba('0x15')](...(_0x376cb2=_0x2137f9['getClientRects'](),Array[_0xffba('0x3a')](_0x376cb2)['map'](DOMRect[_0xffba('0x20')])));_0x3f7566=function(_0x34c3e3){const _0x47275e=[];let _0x5d049b=_0x34c3e3[0x0];for(let _0x39d07e=0x1;_0x39d07e<_0x34c3e3[_0xffba('0x24')];_0x39d07e++)F(_0x5d049b,_0x34c3e3[_0x39d07e])?_0x5d049b['width']+=_0x34c3e3[_0x39d07e]['width']:(_0x47275e[_0xffba('0x15')](_0x5d049b),_0x5d049b=_0x34c3e3[_0x39d07e]);return _0x47275e[_0xffba('0x15')](_0x5d049b),_0x47275e;}(_0x3f7566);const _0x55ef99=_0xb3e642[_0xffba('0xa')]();return _0x3f7566[_0xffba('0x12')](_0x5e3001=>_0x5e3001[_0xffba('0xe')]<=_0x55ef99[_0xffba('0xe')]&&_0x5e3001[_0xffba('0xf')]>=_0x55ef99['bottom']&&_0x5e3001[_0xffba('0x44')]<=_0x55ef99['left']&&_0x5e3001['right']>=_0x55ef99['right'])||_0x3f7566[0x0];}var _0x376cb2;return _0x234c9c[_0xffba('0x4a')]||_0xb3e642;}[_0xffba('0x48')](_0x2a3828){this[_0xffba('0x3f')][_0xffba('0x37')](_0x2a3828)&&this[_0xffba('0x1d')][_0xffba('0x2d')](_0x2a3828[_0xffba('0x26')])&&(this[_0xffba('0x3f')]['delete'](_0x2a3828),this[_0xffba('0x1d')][_0xffba('0x27')](_0x2a3828[_0xffba('0x26')]));}['_closeAnnotation'](_0x1a7d84){this[_0xffba('0x4b')][_0xffba('0x34')](_0x1a7d84),this[_0xffba('0x48')](_0x1a7d84);}}function F(_0xce6731,_0x134692){return _0xce6731['top']===_0x134692[_0xffba('0xe')]&&_0xce6731['bottom']===_0x134692['bottom']&&_0xce6731[_0xffba('0x1f')]===_0x134692[_0xffba('0x44')];}
23
+ const _0x126f=['_removeAnnotationFromBalloon','_balloon','afterInit','inline','listenTo','requires','_getBalloonTargetForAnnotation','fromRect','inlineannotations-attach-already-attached','right','editing','addObserver','from','set','domConverter','refresh','Esc','selection','target','focusTracker','detach','_selectedAnnotations','document','switchTo','map','change:visibleView','isAttached','add','push','_addedAnnotations','_forceRefresh','hasActive','focus','get','width','_setSelectedAnnotations','change:isFocused','editor','every','destroy','isFocused','hasView','remove','bottom','getBoundingClientRect','visibleView','has','left','context','annotations','change:height','includes','_closeAnnotation','showStack','_addAnnotationToBalloon','getOrderedSelectedAnnotations','view','_manuallyClosed','plugins','getByView','register','stopListening','editableElement','init','activeAnnotation','pluginName','clear','top','isActive','updatePosition','update','length','setActiveAnnotation'];(function(_0x386a7a,_0x126f91){const _0x32300a=function(_0x4f59c6){while(--_0x4f59c6){_0x386a7a['push'](_0x386a7a['shift']());}};_0x32300a(++_0x126f91);}(_0x126f,0x151));const _0x3230=function(_0x386a7a,_0x126f91){_0x386a7a=_0x386a7a-0x0;let _0x32300a=_0x126f[_0x386a7a];return _0x32300a;};import{Plugin as _0x537d06}from'ckeditor5/src/core';import _0x52cda7 from'./annotationsuis';import _0x125e3b from'./editorannotations';import{ContextualBalloon as _0x581819}from'ckeditor5/src/ui';import{MouseObserver as _0x3d27ba}from'ckeditor5/src/engine';import{CKEditorError as _0x2c9930,Rect as _0x3d4343}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x537d06{static get[_0x3230('0x21')](){return[_0x125e3b,_0x581819,_0x52cda7];}static get[_0x3230('0x14')](){return'InlineAnnotations';}constructor(_0x5be932){super(_0x5be932),_0x5be932['editing']['view'][_0x3230('0x27')](_0x3d27ba),this[_0x3230('0x36')]=!0x1,this[_0x3230('0x29')](_0x3230('0x13'),null),this[_0x3230('0x4')]=null,this[_0x3230('0xc')]=new Set(),this[_0x3230('0x1d')]=_0x5be932[_0x3230('0xd')][_0x3230('0x3d')](_0x581819),this['_addedAnnotations']=new Set(),this[_0x3230('0x31')]=[],this[_0x3230('0x3a')]=!0x1;}[_0x3230('0x12')](){const _0x599144=this[_0x3230('0x41')][_0x3230('0xd')][_0x3230('0x3d')](_0x52cda7);_0x599144[_0x3230('0x3')]===this['editor']&&(_0x599144[_0x3230('0xf')](_0x3230('0x1f'),this),this[_0x3230('0x41')]['keystrokes'][_0x3230('0x29')](_0x3230('0x2c'),(_0x3286cd,_0xd87299)=>{const _0x446ab9=this['_balloon'];if(this['isAttached']&&_0x446ab9[_0x3230('0x0')]){const _0x21ae69=this[_0x3230('0x4')][_0x3230('0xe')](_0x446ab9[_0x3230('0x0')]);_0x21ae69&&this[_0x3230('0x7')](_0x21ae69),_0xd87299();}}));}[_0x3230('0x1e')](){const _0xfbd97=this[_0x3230('0x41')]['plugins'][_0x3230('0x3d')](_0x52cda7);_0xfbd97[_0x3230('0x3')]===this['editor']&&(_0xfbd97[_0x3230('0x3b')]()||_0xfbd97[_0x3230('0x33')](_0x3230('0x1f')));}[_0x3230('0x1b')](_0x302a69){_0x302a69!==this[_0x3230('0x13')]&&(this[_0x3230('0x13')]&&(this['activeAnnotation']['isActive']=!0x1),_0x302a69&&this[_0x3230('0x41')]['ui']['focusTracker'][_0x3230('0x44')]&&(this[_0x3230('0x4')][_0x3230('0x1')](_0x302a69)&&this[_0x3230('0x9')](_0x302a69,!0x0),_0x302a69[_0x3230('0x17')]=!0x0),_0x302a69||this[_0x3230('0x3f')]([]),this[_0x3230('0x13')]=_0x302a69);}['attach'](_0x148437){this[_0x3230('0x4')]=_0x148437;const _0x57e1d6=this['editor'][_0x3230('0xd')][_0x3230('0x3d')](_0x52cda7),_0x544365=this[_0x3230('0x1d')];if(this[_0x3230('0x36')])throw new _0x2c9930(_0x3230('0x24'),this);if(_0x57e1d6[_0x3230('0x3')]!==this['editor'])throw new _0x2c9930('inlineannotations-not-allowed-with-context',this);const _0x4e293d=this[_0x3230('0x41')][_0x3230('0xd')][_0x3230('0x3d')](_0x125e3b);this[_0x3230('0x20')](_0x4e293d,_0x3230('0x2b'),()=>{const _0x4de453=_0x4e293d[_0x3230('0xa')]({'annotations':this[_0x3230('0x4')],'activeAnnotation':this[_0x3230('0x13')]});var _0x6ea503,_0x4ab634;!this['_forceRefresh']&&(_0x6ea503=_0x4de453,_0x4ab634=this[_0x3230('0x31')],_0x6ea503[_0x3230('0x1a')]===_0x4ab634[_0x3230('0x1a')]&&_0x6ea503[_0x3230('0x42')](_0x3f4aa5=>_0x4ab634['includes'](_0x3f4aa5)))||(this[_0x3230('0x3a')]=!0x1,this[_0x3230('0x3f')](_0x4de453),this[_0x3230('0x1b')](_0x4de453[0x0]||null));}),this[_0x3230('0x20')](_0x4e293d,'blur',(_0x56f4e0,{isAnnotationTracked:_0x456d5c})=>{this[_0x3230('0x13')]&&_0x456d5c(this[_0x3230('0x13')])&&(this['_setSelectedAnnotations']([]),this[_0x3230('0x1b')](null));}),this['listenTo'](this['editor']['ui'][_0x3230('0x2f')],_0x3230('0x40'),(_0xc893ec,_0x5c0e4d,_0x544ecd)=>{_0x544ecd||this[_0x3230('0x1b')](null);}),this['listenTo'](_0x148437,_0x3230('0x46'),(_0x1c7b2e,_0x49c973)=>{this[_0x3230('0x1c')](_0x49c973),_0x49c973===this['activeAnnotation']&&this[_0x3230('0x1b')](null);}),this[_0x3230('0x20')](_0x544365,_0x3230('0x35'),(_0x5e52ee,_0x5b328c,_0x53e3bb,_0x3e9dbc)=>{_0x3e9dbc&&this['stopListening'](_0x3e9dbc);const _0x318d14=_0x148437[_0x3230('0xe')](_0x53e3bb);_0x53e3bb&&_0x318d14&&(this[_0x3230('0x20')](_0x53e3bb,_0x3230('0x5'),()=>{_0x544365[_0x3230('0x18')]();}),this[_0x3230('0x20')](_0x53e3bb,'Esc',()=>{this[_0x3230('0x7')](_0x318d14),this[_0x3230('0x41')][_0x3230('0x26')][_0x3230('0xb')][_0x3230('0x3c')]();}),this['activeAnnotation']!==_0x318d14&&this[_0x3230('0x1b')](_0x318d14));}),this[_0x3230('0x20')](this[_0x3230('0x41')]['ui'],_0x3230('0x19'),()=>{_0x544365[_0x3230('0x0')]&&(_0x148437[_0x3230('0xe')](_0x544365[_0x3230('0x0')])&&_0x544365[_0x3230('0x18')]());}),this[_0x3230('0x20')](this[_0x3230('0x41')][_0x3230('0x26')]['view'][_0x3230('0x32')],'mousedown',()=>{this[_0x3230('0x3a')]=!0x0,this[_0x3230('0xc')][_0x3230('0x15')]();}),this[_0x3230('0x41')][_0x3230('0x26')][_0x3230('0xb')][_0x3230('0x32')][_0x3230('0x2d')][_0x3230('0x11')]&&this['editor'][_0x3230('0x26')][_0x3230('0xb')][_0x3230('0x3c')](),this[_0x3230('0x36')]=!0x0;}['detach'](){if(!this['isAttached'])throw new _0x2c9930('inlineannotations-detach-not-attached',this);this[_0x3230('0x1b')](null);for(const _0x207fb9 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x207fb9);this[_0x3230('0x10')](),this[_0x3230('0x36')]=!0x1,this['annotations']=null;}[_0x3230('0x43')](){this[_0x3230('0x36')]&&this[_0x3230('0x30')]();}['_setSelectedAnnotations'](_0x5c2a9c){for(const _0x1e786d of this[_0x3230('0x31')])_0x5c2a9c[_0x3230('0x6')](_0x1e786d)||this[_0x3230('0xc')]['delete'](_0x1e786d);for(const _0x14c2f6 of this['annotations'])_0x5c2a9c['includes'](_0x14c2f6)||this['_removeAnnotationFromBalloon'](_0x14c2f6);if(this[_0x3230('0x41')]['ui'][_0x3230('0x2f')][_0x3230('0x44')])for(const _0x201618 of _0x5c2a9c)this[_0x3230('0x9')](_0x201618);this[_0x3230('0x31')]=_0x5c2a9c;}[_0x3230('0x9')](_0x5ccddf,_0xf8b664=!0x1){this[_0x3230('0xc')][_0x3230('0x1')](_0x5ccddf)||(this['_addedAnnotations'][_0x3230('0x1')](_0x5ccddf)||this[_0x3230('0x1d')]['hasView'](_0x5ccddf[_0x3230('0xb')])||(this[_0x3230('0x39')][_0x3230('0x37')](_0x5ccddf),this[_0x3230('0x1d')]['add']({'stackId':_0x5ccddf['view']['id'],'view':_0x5ccddf[_0x3230('0xb')],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x5ccddf)}})),_0xf8b664&&this['_balloon'][_0x3230('0x8')](_0x5ccddf['view']['id']));}[_0x3230('0x22')](_0x1a15f9){const _0x8d4454=_0x1a15f9[_0x3230('0x2e')],_0x197253=this[_0x3230('0x41')][_0x3230('0x26')][_0x3230('0xb')],_0x24e09a=_0x197253[_0x3230('0x32')][_0x3230('0x2d')]['getFirstRange'](),_0x526e29=_0x197253[_0x3230('0x2a')]['viewRangeToDom'](_0x24e09a);if(_0x526e29['collapse'](!0x0),_0x8d4454){if(_0x8d4454 instanceof _0x3d4343)return _0x8d4454;let _0x462c63=[];for(const _0x4cf5b7 of _0x8d4454)_0x462c63[_0x3230('0x38')](...(_0x2ddcb2=_0x4cf5b7['getClientRects'](),Array[_0x3230('0x28')](_0x2ddcb2)[_0x3230('0x34')](DOMRect[_0x3230('0x23')])));_0x462c63=function(_0x43691b){const _0x377f48=[];let _0x1f2d55=_0x43691b[0x0];for(let _0x540604=0x1;_0x540604<_0x43691b[_0x3230('0x1a')];_0x540604++)F(_0x1f2d55,_0x43691b[_0x540604])?_0x1f2d55[_0x3230('0x3e')]+=_0x43691b[_0x540604][_0x3230('0x3e')]:(_0x377f48[_0x3230('0x38')](_0x1f2d55),_0x1f2d55=_0x43691b[_0x540604]);return _0x377f48[_0x3230('0x38')](_0x1f2d55),_0x377f48;}(_0x462c63);const _0x249739=_0x526e29[_0x3230('0x48')]();return _0x462c63['find'](_0x5a1159=>_0x5a1159['top']<=_0x249739[_0x3230('0x16')]&&_0x5a1159[_0x3230('0x47')]>=_0x249739[_0x3230('0x47')]&&_0x5a1159['left']<=_0x249739[_0x3230('0x2')]&&_0x5a1159[_0x3230('0x25')]>=_0x249739[_0x3230('0x25')])||_0x462c63[0x0];}var _0x2ddcb2;return _0x1a15f9['targetRect']||_0x526e29;}[_0x3230('0x1c')](_0x5ac29e){this[_0x3230('0x39')][_0x3230('0x1')](_0x5ac29e)&&this[_0x3230('0x1d')][_0x3230('0x45')](_0x5ac29e[_0x3230('0xb')])&&(this[_0x3230('0x39')]['delete'](_0x5ac29e),this[_0x3230('0x1d')][_0x3230('0x46')](_0x5ac29e[_0x3230('0xb')]));}[_0x3230('0x7')](_0x4ad361){this['_manuallyClosed'][_0x3230('0x37')](_0x4ad361),this['_removeAnnotationFromBalloon'](_0x4ad361);}}function F(_0x5d456b,_0x21b1b8){return _0x5d456b['top']===_0x21b1b8['top']&&_0x5d456b[_0x3230('0x47')]===_0x21b1b8['bottom']&&_0x5d456b[_0x3230('0x25')]===_0x21b1b8[_0x3230('0x2')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x48db=['unpin','southArrowNorth','balloonPanelView','_annotationToNarrowView','resize','_domEmitter','preventDefault','_hideBalloon','off','stopPropagation','Esc','remove','_attachToContainer','pin','isVisible','execute','rearrange','_attachListeners','set:container','target','_integrateWithEditorAnnotations','plugins','focus','contains','southArrowNorthEast','init','_destroyEditorAnnotationsIntegration','set','_annotations','preventClosingBalloon','requires','context','stop','destroy','activeAnnotation','bind','_editorAnnotations','clear','isDirty','uiUpdate','defaultPositions','ck-sidebar--narrow','change:height','pluginName','detachFromDom','first','addEventListener','_selectedAnnotations','blur','mousedown','setActiveAnnotation','cancel','_showBalloon','high','locale','content','addAnnotation','refresh','has','_refreshPositioningDebounced','register','_setSelectedAnnotations','narrowsidebar-attach-already-attached','getOrderedSelectedAnnotations','listenTo','EditorAnnotations','stopListening','low','narrowSidebar','keyCode','getSidebarItemView','number','_manuallyClosedAnnotationViews','delete','annotations','view','includes','change:container','from','_updateBalloonPosition','attachToDom','bodyCollection','find','_detachFromContainer','ready','get','_refreshPositioning','detach','attach','isAttached','element','northArrowSouthEast','add','esc','editors','_detachListeners','getByView'];(function(_0x42fbf6,_0x48dbb2){const _0x507891=function(_0x21b30d){while(--_0x21b30d){_0x42fbf6['push'](_0x42fbf6['shift']());}};_0x507891(++_0x48dbb2);}(_0x48db,0x75));const _0x5078=function(_0x42fbf6,_0x48dbb2){_0x42fbf6=_0x42fbf6-0x0;let _0x507891=_0x48db[_0x42fbf6];return _0x507891;};import{ContextPlugin as _0x33c72c,Context as _0x529458}from'ckeditor5/src/core';import _0x3bf76c from'./annotationsuis';import _0x44862c from'./sidebar';import _0x3f84a2 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x10117b,BodyCollection as _0x51f108}from'ckeditor5/src/ui';import{CKEditorError as _0x53a7ef,DomEmitterMixin as _0x127782,keyCodes as _0x493d76,Collection as _0x51dcb0}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x45066f}from'lodash-es';import _0x3eb095 from'./editorannotations';export default class s extends _0x33c72c{static get[_0x5078('0xa')](){return[_0x44862c,_0x3bf76c];}static get[_0x5078('0x17')](){return'NarrowSidebar';}constructor(_0x1787b3){super(_0x1787b3),this[_0x5078('0x45')]=!0x1,this[_0x5078('0x34')]=new Set(),this[_0x5078('0x52')]=Object['create'](_0x127782),this[_0x5078('0x50')]=new Map(),this[_0x5078('0x7')](_0x5078('0xe'),null),this[_0x5078('0x36')]=null,this[_0x5078('0x1b')]=[],this['_editorAnnotations']=new _0x51dcb0(),this[_0x5078('0x27')]=_0x45066f(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}[_0x5078('0x5')](){this[_0x5078('0xb')][_0x5078('0x1')][_0x5078('0x41')](_0x3bf76c)[_0x5078('0x28')](_0x5078('0x30'),this),this[_0x5078('0x3d')]=new _0x51f108(this[_0x5078('0xb')][_0x5078('0x22')]),this['balloonPanelView']=new _0x10117b(this[_0x5078('0xb')]['locale']),this[_0x5078('0x3d')][_0x5078('0x3c')](),this[_0x5078('0x3d')]['add'](this[_0x5078('0x4f')]);}[_0x5078('0x44')](_0x1edf78){this['annotations']=_0x1edf78;const _0x2810b2=this[_0x5078('0xb')][_0x5078('0x1')]['get'](_0x44862c),_0x327aed=this[_0x5078('0x4f')];if(_0x2810b2[_0x5078('0x8')]=_0x1edf78,this['isAttached'])throw new _0x53a7ef(_0x5078('0x2a'),this);this[_0x5078('0x45')]=!0x0,this[_0x5078('0x2c')](_0x2810b2,_0x5078('0x5f'),()=>{this[_0x5078('0x43')](),this[_0x5078('0x2c')](_0x2810b2,_0x5078('0x39'),_0x2f1263=>{_0x2f1263[_0x5078('0x55')](),this[_0x5078('0x44')](_0x1edf78);});}),_0x2810b2[_0x5078('0x59')]({'viewClass':_0x5078('0x15'),'spaceBetweenItems':0x5});const _0x61d7f7=_0x41fdd9=>{const _0xa82949=new _0x3f84a2(this['context']['locale']);_0x2810b2[_0x5078('0x24')](_0x41fdd9,_0xa82949),this[_0x5078('0x50')][_0x5078('0x7')](_0x41fdd9,_0xa82949),_0xa82949[_0x5078('0xf')]('isDirty','annotationType',_0x5078('0x33'))['to'](_0x41fdd9['view'],_0x5078('0x12'),'type','length'),_0xa82949['on'](_0x5078('0x5c'),()=>{this[_0x5078('0x34')][_0x5078('0x11')](),_0x327aed[_0x5078('0x23')][_0x5078('0x19')]!==_0x41fdd9[_0x5078('0x37')]?(this['_showBalloon'](_0x41fdd9),_0x41fdd9[_0x5078('0x37')][_0x5078('0x46')][_0x5078('0x2')](),this[_0x5078('0x1e')](_0x41fdd9)):this[_0x5078('0x1e')](null);});};for(const _0x404e21 of _0x1edf78)_0x61d7f7(_0x404e21);this['listenTo'](_0x1edf78,_0x5078('0x48'),(_0x20544d,_0x4eb3ce)=>{_0x61d7f7(_0x4eb3ce);}),this[_0x5078('0x2c')](_0x1edf78,_0x5078('0x58'),(_0x2200bc,_0x1cb3ea,_0x58e52f)=>{this[_0x5078('0x50')][_0x5078('0x41')](_0x1cb3ea)[_0x5078('0xd')](),this['_annotationToNarrowView'][_0x5078('0x35')](_0x1cb3ea),_0x2810b2[_0x5078('0x5d')]({'removedAnnotation':_0x1cb3ea,'previousAnnotation':_0x1edf78[_0x5078('0x41')](_0x58e52f-0x1),'nextAnnotation':_0x1edf78[_0x5078('0x41')](_0x58e52f+0x1)}),_0x1cb3ea===this['activeAnnotation']&&this[_0x5078('0x1e')](null);},{'priority':_0x5078('0x2f')}),this[_0x5078('0x2c')](_0x1edf78,_0x5078('0x2'),(_0x5bda7d,_0x381eca)=>{this[_0x5078('0x1e')](_0x381eca);}),this[_0x5078('0x2c')](_0x1edf78,_0x5078('0x1c'),()=>{this['setActiveAnnotation'](null);}),this[_0x5078('0x52')]['listenTo'](document,'keydown',(_0x1be1ca,_0x518520)=>{_0x518520[_0x5078('0x31')]===_0x493d76[_0x5078('0x49')]&&_0x327aed['isVisible']&&(this['_manuallyClosedAnnotationViews'][_0x5078('0x48')](_0x327aed[_0x5078('0x23')][_0x5078('0x19')]),this[_0x5078('0x54')](),_0x518520[_0x5078('0x56')](),_0x518520[_0x5078('0x53')]());}),this['_domEmitter'][_0x5078('0x2c')](document,_0x5078('0x1d'),(_0x571cd1,_0x339e6c)=>{const _0x2c9907=_0x339e6c[_0x5078('0x60')];_0x327aed[_0x5078('0x5b')]&&_0x327aed[_0x5078('0x46')][_0x5078('0x3')](_0x2c9907)||_0x2810b2[_0x5078('0x37')][_0x5078('0x46')]['contains'](_0x2c9907)||_0x571cd1[_0x5078('0x9')]||this[_0x5078('0xe')]&&this['activeAnnotation']['focusableElements'][_0x5078('0x3e')](_0x32a48f=>_0x32a48f[_0x5078('0x3')](_0x2c9907))||(this[_0x5078('0x34')][_0x5078('0x11')](),this['_hideBalloon'](),this[_0x5078('0x1e')](null));});const _0x19c7cf=this[_0x5078('0xb')]instanceof _0x529458?this[_0x5078('0xb')][_0x5078('0x4a')]:new _0x51dcb0([this[_0x5078('0xb')]]);for(const _0x457f80 of _0x19c7cf)this[_0x5078('0x0')](_0x457f80);this[_0x5078('0x2c')](_0x19c7cf,_0x5078('0x48'),(_0x4a5b7a,_0x439063)=>{this[_0x5078('0x2c')](_0x439063,_0x5078('0x40'),()=>{this['_integrateWithEditorAnnotations'](_0x439063);});}),this[_0x5078('0x2c')](_0x19c7cf,_0x5078('0x58'),(_0x3c53a4,_0x3d4554)=>{_0x3d4554[_0x5078('0x1')][_0x5078('0x26')](_0x5078('0x2d'))&&this[_0x5078('0x6')](_0x3d4554['plugins'][_0x5078('0x41')]('EditorAnnotations'));}),window[_0x5078('0x1a')](_0x5078('0x51'),this[_0x5078('0x27')]),this['_refreshPositioning']();}['setActiveAnnotation'](_0x38915f){if(_0x38915f===this[_0x5078('0xe')])return;const _0xb804e6=this['context'][_0x5078('0x1')][_0x5078('0x41')](_0x44862c);if(_0xb804e6[_0x5078('0x25')]({'blurredAnnotation':this[_0x5078('0xe')],'activatedAnnotation':_0x38915f,'disableAnimationOnActivatedAnnotation':!0x0}),_0x38915f)_0xb804e6[_0x5078('0x32')](_0x38915f)?this[_0x5078('0x20')](_0x38915f):this[_0x5078('0x54')]();else this['_hideBalloon']();this['activeAnnotation']=_0x38915f;}['detach'](){if(!this[_0x5078('0x45')])throw new _0x53a7ef('narrowsidebar-detach-not-attached',this);this[_0x5078('0x1e')](null);const _0x47e594=this[_0x5078('0xb')][_0x5078('0x1')]['get'](_0x44862c);this[_0x5078('0x54')](),Array[_0x5078('0x3a')](this[_0x5078('0x50')]['values'](),_0x325792=>_0x325792[_0x5078('0xd')]()),this['_annotationToNarrowView'][_0x5078('0x11')](),_0x47e594[_0x5078('0x3f')](this[_0x5078('0x36')]),this[_0x5078('0x2e')](),this[_0x5078('0x52')][_0x5078('0x2e')](),this[_0x5078('0xb')]instanceof _0x529458&&this[_0x5078('0x2e')](this[_0x5078('0xb')][_0x5078('0x4a')]);for(const _0x1a21a8 of Array['from'](this[_0x5078('0x10')]))this[_0x5078('0x6')](_0x1a21a8);window['removeEventListener'](_0x5078('0x51'),this[_0x5078('0x27')]),this[_0x5078('0x27')][_0x5078('0x1f')](),this[_0x5078('0x1b')]=[],this[_0x5078('0x45')]=!0x1,this[_0x5078('0x36')]=null;}['destroy'](){this[_0x5078('0x45')]&&this['detach'](),this['bodyCollection'][_0x5078('0x18')]();}[_0x5078('0x0')](_0x92099c){const _0x29ddd5=_0x92099c[_0x5078('0x1')][_0x5078('0x41')](_0x3eb095),_0x16fd88=this[_0x5078('0xb')][_0x5078('0x1')][_0x5078('0x41')](_0x44862c),_0x3941b4=this[_0x5078('0x36')],_0xb53c57=this['balloonPanelView'],_0x472ed5=()=>{const _0x28669f=_0x29ddd5[_0x5078('0x2b')]({'annotations':this['annotations'],'activeAnnotation':this[_0x5078('0xe')]});this[_0x5078('0x29')](_0x28669f),this[_0x5078('0x1e')](_0x28669f[0x0]||null);};this[_0x5078('0x2c')](_0x29ddd5,_0x5078('0x25'),_0x472ed5),this[_0x5078('0x2c')](_0x29ddd5,_0x5078('0x1c'),(_0x336a39,{isAnnotationTracked:_0x3c23ce})=>{this[_0x5078('0xe')]&&_0x3c23ce(this[_0x5078('0xe')])&&(this['_setSelectedAnnotations']([]),this[_0x5078('0x1e')](null));}),this[_0x5078('0x2c')](_0x29ddd5,_0x5078('0x13'),()=>{this['_refreshPositioningDebounced']();}),this[_0x5078('0x2c')](_0x3941b4,_0x5078('0x1c'),_0xe78def=>{_0x29ddd5['hasDomSelection']()&&_0xe78def[_0x5078('0xc')]();},{'priority':_0x5078('0x21')}),this['listenTo'](this['_domEmitter'],_0x5078('0x1d'),(_0x4b3f68,_0x2a1026)=>{const _0x264d83=_0x2a1026['target'];_0xb53c57[_0x5078('0x5b')]&&_0xb53c57['element'][_0x5078('0x3')](_0x264d83)||_0x16fd88[_0x5078('0x37')][_0x5078('0x46')][_0x5078('0x3')](_0x264d83)||this[_0x5078('0xe')]&&_0x29ddd5['hasDomSelection']()&&(_0x472ed5(),_0x4b3f68[_0x5078('0x9')]=!0x0);},{'priority':'high'}),this['_editorAnnotations'][_0x5078('0x48')](_0x29ddd5);}[_0x5078('0x6')](_0x7c1492){_0x7c1492&&(this[_0x5078('0x2e')](_0x7c1492),this[_0x5078('0x10')][_0x5078('0x58')](_0x7c1492));}['_setSelectedAnnotations'](_0x380cd5){for(const _0x174b7a of this[_0x5078('0x1b')])_0x380cd5[_0x5078('0x38')](_0x174b7a)||this['_manuallyClosedAnnotationViews']['delete'](_0x174b7a[_0x5078('0x37')]);this[_0x5078('0x1b')]=_0x380cd5;}[_0x5078('0x42')](){const _0x39bb78=this[_0x5078('0x4f')];this[_0x5078('0x36')]['refreshPositioning'](),_0x39bb78[_0x5078('0x5b')]&&this[_0x5078('0x3b')]();}['_showBalloon'](_0x10b833){if(this['_manuallyClosedAnnotationViews'][_0x5078('0x26')](_0x10b833[_0x5078('0x37')]))return;const _0x40b0e2=this[_0x5078('0x4f')][_0x5078('0x23')]['first'];_0x40b0e2!==_0x10b833[_0x5078('0x37')]?(_0x40b0e2&&this[_0x5078('0x4b')](_0x40b0e2),this[_0x5078('0x5e')](_0x10b833[_0x5078('0x37')]),this['balloonPanelView'][_0x5078('0x23')]['clear'](),this[_0x5078('0x4f')][_0x5078('0x23')][_0x5078('0x48')](_0x10b833[_0x5078('0x37')]),this[_0x5078('0x3b')]()):this[_0x5078('0x3b')]();}['_updateBalloonPosition'](){const _0x2201e4=this[_0x5078('0x4f')]['content']['first'],_0x8a3f58=_0x2201e4&&this[_0x5078('0x36')][_0x5078('0x4c')](_0x2201e4);if(!_0x8a3f58||!this['_annotationToNarrowView'][_0x5078('0x26')](_0x8a3f58))return;const _0x30c403=this['_annotationToNarrowView']['get'](_0x8a3f58)['element'],_0xdd6148=function(){const _0x172422=_0x10117b[_0x5078('0x14')];return[_0x172422[_0x5078('0x4')],_0x172422[_0x5078('0x47')],_0x172422[_0x5078('0x4e')],_0x172422['northArrowSouth'],_0x172422['southArrowNorthWest'],_0x172422['northArrowSouthWest']];}();this[_0x5078('0x4f')][_0x5078('0x5a')]({'target':_0x30c403,'positions':_0xdd6148});}[_0x5078('0x54')](){const _0x47d6de=this[_0x5078('0x4f')],_0x2d9345=_0x47d6de[_0x5078('0x23')]['first'];_0x2d9345&&(this[_0x5078('0x4b')](_0x2d9345),_0x47d6de[_0x5078('0x4d')](),_0x47d6de['content'][_0x5078('0x11')]());}[_0x5078('0x5e')](_0x1caa94){this[_0x5078('0x2c')](_0x1caa94,_0x5078('0x16'),()=>this[_0x5078('0x3b')]()),this[_0x5078('0x2c')](_0x1caa94,_0x5078('0x57'),(_0x2889e0,_0x427a63)=>{this[_0x5078('0x34')][_0x5078('0x48')](_0x1caa94),this[_0x5078('0x54')](),_0x427a63();});}[_0x5078('0x4b')](_0x2dfefc){this[_0x5078('0x2e')](_0x2dfefc);}}
23
+ const _0x23d5=['add','resize','_annotations','esc','context','plugins','balloonPanelView','isAttached','stop','_editorAnnotations','_annotationToNarrowView','includes','ready','editors','_detachFromContainer','target','length','getOrderedSelectedAnnotations','blur','register','attach','mousedown','first','_selectedAnnotations','stopListening','remove','_manuallyClosedAnnotationViews','clear','_domEmitter','uiUpdate','change:container','northArrowSouthEast','setActiveAnnotation','attachToDom','isDirty','preventClosingBalloon','change:height','keydown','_attachToContainer','has','cancel','focus','element','content','destroy','find','locale','requires','southArrowNorth','contains','get','annotations','getByView','_updateBalloonPosition','bodyCollection','listenTo','delete','_hideBalloon','init','defaultPositions','activeAnnotation','removeEventListener','set:container','set','_setSelectedAnnotations','_refreshPositioningDebounced','detach','stopPropagation','execute','northArrowSouthWest','detachFromDom','focusableElements','northArrowSouth','NarrowSidebar','create','_refreshPositioning','addAnnotation','preventDefault','_attachListeners','from','_detachListeners','isVisible','addEventListener','refresh','EditorAnnotations','view','pluginName','bind','_destroyEditorAnnotationsIntegration','_integrateWithEditorAnnotations','high','pin','keyCode','ck-sidebar--narrow','_showBalloon'];(function(_0xce54f8,_0x23d555){const _0x3dcdd1=function(_0x4791c7){while(--_0x4791c7){_0xce54f8['push'](_0xce54f8['shift']());}};_0x3dcdd1(++_0x23d555);}(_0x23d5,0x9a));const _0x3dcd=function(_0xce54f8,_0x23d555){_0xce54f8=_0xce54f8-0x0;let _0x3dcdd1=_0x23d5[_0xce54f8];return _0x3dcdd1;};import{ContextPlugin as _0x5095cb,Context as _0x66cff3}from'ckeditor5/src/core';import _0x3725ec from'./annotationsuis';import _0x483754 from'./sidebar';import _0x3f82ee from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x201a9e,BodyCollection as _0x14279e}from'ckeditor5/src/ui';import{CKEditorError as _0x1698a9,DomEmitterMixin as _0x4dd01f,keyCodes as _0x3467fc,Collection as _0x4db380}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x3c47dc}from'lodash-es';import _0x4ced7c from'./editorannotations';export default class s extends _0x5095cb{static get[_0x3dcd('0x53')](){return[_0x483754,_0x3725ec];}static get[_0x3dcd('0x1b')](){return _0x3dcd('0xe');}constructor(_0x29774a){super(_0x29774a),this[_0x3dcd('0x2b')]=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this[_0x3dcd('0x40')]=Object[_0x3dcd('0xf')](_0x4dd01f),this[_0x3dcd('0x2e')]=new Map(),this[_0x3dcd('0x4')](_0x3dcd('0x1'),null),this[_0x3dcd('0x57')]=null,this[_0x3dcd('0x3b')]=[],this[_0x3dcd('0x2d')]=new _0x4db380(),this['_refreshPositioningDebounced']=_0x3c47dc(()=>{this[_0x3dcd('0x10')]();},0xfa,{'leading':!0x1});}[_0x3dcd('0x5e')](){this['context'][_0x3dcd('0x29')][_0x3dcd('0x56')](_0x3725ec)[_0x3dcd('0x37')]('narrowSidebar',this),this[_0x3dcd('0x5a')]=new _0x14279e(this[_0x3dcd('0x28')]['locale']),this[_0x3dcd('0x2a')]=new _0x201a9e(this[_0x3dcd('0x28')][_0x3dcd('0x52')]),this[_0x3dcd('0x5a')][_0x3dcd('0x45')](),this[_0x3dcd('0x5a')][_0x3dcd('0x24')](this['balloonPanelView']);}[_0x3dcd('0x38')](_0x3dcd78){this['annotations']=_0x3dcd78;const _0x271f13=this[_0x3dcd('0x28')]['plugins'][_0x3dcd('0x56')](_0x483754),_0x49fb2d=this['balloonPanelView'];if(_0x271f13[_0x3dcd('0x26')]=_0x3dcd78,this[_0x3dcd('0x2b')])throw new _0x1698a9('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x271f13,_0x3dcd('0x3'),()=>{this[_0x3dcd('0x7')](),this['listenTo'](_0x271f13,_0x3dcd('0x42'),_0x5c158a=>{_0x5c158a['off'](),this['attach'](_0x3dcd78);});}),_0x271f13[_0x3dcd('0x4a')]({'viewClass':_0x3dcd('0x22'),'spaceBetweenItems':0x5});const _0x22b704=_0xa93de2=>{const _0x3811d8=new _0x3f82ee(this['context'][_0x3dcd('0x52')]);_0x271f13[_0x3dcd('0x11')](_0xa93de2,_0x3811d8),this[_0x3dcd('0x2e')][_0x3dcd('0x4')](_0xa93de2,_0x3811d8),_0x3811d8[_0x3dcd('0x1c')](_0x3dcd('0x46'),'annotationType','number')['to'](_0xa93de2['view'],_0x3dcd('0x46'),'type',_0x3dcd('0x34')),_0x3811d8['on'](_0x3dcd('0x9'),()=>{this[_0x3dcd('0x3e')]['clear'](),_0x49fb2d[_0x3dcd('0x4f')]['first']!==_0xa93de2[_0x3dcd('0x1a')]?(this[_0x3dcd('0x23')](_0xa93de2),_0xa93de2[_0x3dcd('0x1a')][_0x3dcd('0x4e')]['focus'](),this[_0x3dcd('0x44')](_0xa93de2)):this[_0x3dcd('0x44')](null);});};for(const _0x3d5f13 of _0x3dcd78)_0x22b704(_0x3d5f13);this[_0x3dcd('0x5b')](_0x3dcd78,_0x3dcd('0x24'),(_0x2b82c4,_0x506d0a)=>{_0x22b704(_0x506d0a);}),this[_0x3dcd('0x5b')](_0x3dcd78,_0x3dcd('0x3d'),(_0x552498,_0x4f382f,_0x573b72)=>{this[_0x3dcd('0x2e')][_0x3dcd('0x56')](_0x4f382f)[_0x3dcd('0x50')](),this[_0x3dcd('0x2e')][_0x3dcd('0x5c')](_0x4f382f),_0x271f13['rearrange']({'removedAnnotation':_0x4f382f,'previousAnnotation':_0x3dcd78['get'](_0x573b72-0x1),'nextAnnotation':_0x3dcd78[_0x3dcd('0x56')](_0x573b72+0x1)}),_0x4f382f===this[_0x3dcd('0x1')]&&this[_0x3dcd('0x44')](null);},{'priority':'low'}),this['listenTo'](_0x3dcd78,_0x3dcd('0x4d'),(_0x1324ba,_0x330f69)=>{this[_0x3dcd('0x44')](_0x330f69);}),this[_0x3dcd('0x5b')](_0x3dcd78,_0x3dcd('0x36'),()=>{this['setActiveAnnotation'](null);}),this[_0x3dcd('0x40')][_0x3dcd('0x5b')](document,_0x3dcd('0x49'),(_0x3b6a81,_0x3136d8)=>{_0x3136d8[_0x3dcd('0x21')]===_0x3467fc[_0x3dcd('0x27')]&&_0x49fb2d[_0x3dcd('0x16')]&&(this[_0x3dcd('0x3e')][_0x3dcd('0x24')](_0x49fb2d['content'][_0x3dcd('0x3a')]),this['_hideBalloon'](),_0x3136d8[_0x3dcd('0x8')](),_0x3136d8[_0x3dcd('0x12')]());}),this[_0x3dcd('0x40')][_0x3dcd('0x5b')](document,_0x3dcd('0x39'),(_0x16d08b,_0x2d00c2)=>{const _0x2490a3=_0x2d00c2[_0x3dcd('0x33')];_0x49fb2d[_0x3dcd('0x16')]&&_0x49fb2d['element'][_0x3dcd('0x55')](_0x2490a3)||_0x271f13[_0x3dcd('0x1a')][_0x3dcd('0x4e')]['contains'](_0x2490a3)||_0x16d08b['preventClosingBalloon']||this[_0x3dcd('0x1')]&&this['activeAnnotation'][_0x3dcd('0xc')][_0x3dcd('0x51')](_0x3e757f=>_0x3e757f['contains'](_0x2490a3))||(this[_0x3dcd('0x3e')]['clear'](),this['_hideBalloon'](),this[_0x3dcd('0x44')](null));});const _0x3c4f6a=this['context']instanceof _0x66cff3?this[_0x3dcd('0x28')][_0x3dcd('0x31')]:new _0x4db380([this['context']]);for(const _0x371a00 of _0x3c4f6a)this[_0x3dcd('0x1e')](_0x371a00);this[_0x3dcd('0x5b')](_0x3c4f6a,_0x3dcd('0x24'),(_0x21698d,_0x127f81)=>{this[_0x3dcd('0x5b')](_0x127f81,_0x3dcd('0x30'),()=>{this[_0x3dcd('0x1e')](_0x127f81);});}),this[_0x3dcd('0x5b')](_0x3c4f6a,_0x3dcd('0x3d'),(_0x1e8b6e,_0x2e8040)=>{_0x2e8040['plugins'][_0x3dcd('0x4b')](_0x3dcd('0x19'))&&this[_0x3dcd('0x1d')](_0x2e8040['plugins'][_0x3dcd('0x56')]('EditorAnnotations'));}),window[_0x3dcd('0x17')](_0x3dcd('0x25'),this[_0x3dcd('0x6')]),this[_0x3dcd('0x10')]();}[_0x3dcd('0x44')](_0x392174){if(_0x392174===this[_0x3dcd('0x1')])return;const _0x16805d=this['context'][_0x3dcd('0x29')][_0x3dcd('0x56')](_0x483754);if(_0x16805d[_0x3dcd('0x18')]({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x392174,'disableAnimationOnActivatedAnnotation':!0x0}),_0x392174)_0x16805d['getSidebarItemView'](_0x392174)?this['_showBalloon'](_0x392174):this['_hideBalloon']();else this[_0x3dcd('0x5d')]();this[_0x3dcd('0x1')]=_0x392174;}[_0x3dcd('0x7')](){if(!this[_0x3dcd('0x2b')])throw new _0x1698a9('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x5700c3=this['context'][_0x3dcd('0x29')][_0x3dcd('0x56')](_0x483754);this[_0x3dcd('0x5d')](),Array['from'](this[_0x3dcd('0x2e')]['values'](),_0xe1d6ce=>_0xe1d6ce[_0x3dcd('0x50')]()),this[_0x3dcd('0x2e')]['clear'](),_0x5700c3[_0x3dcd('0x32')](this[_0x3dcd('0x57')]),this[_0x3dcd('0x3c')](),this[_0x3dcd('0x40')][_0x3dcd('0x3c')](),this[_0x3dcd('0x28')]instanceof _0x66cff3&&this['stopListening'](this[_0x3dcd('0x28')]['editors']);for(const _0x2be053 of Array[_0x3dcd('0x14')](this[_0x3dcd('0x2d')]))this['_destroyEditorAnnotationsIntegration'](_0x2be053);window[_0x3dcd('0x2')](_0x3dcd('0x25'),this[_0x3dcd('0x6')]),this['_refreshPositioningDebounced'][_0x3dcd('0x4c')](),this[_0x3dcd('0x3b')]=[],this[_0x3dcd('0x2b')]=!0x1,this[_0x3dcd('0x57')]=null;}[_0x3dcd('0x50')](){this[_0x3dcd('0x2b')]&&this[_0x3dcd('0x7')](),this[_0x3dcd('0x5a')][_0x3dcd('0xb')]();}[_0x3dcd('0x1e')](_0x2a0766){const _0x26792f=_0x2a0766[_0x3dcd('0x29')]['get'](_0x4ced7c),_0x3a1ece=this[_0x3dcd('0x28')][_0x3dcd('0x29')][_0x3dcd('0x56')](_0x483754),_0x3a2a50=this[_0x3dcd('0x57')],_0x98e61c=this[_0x3dcd('0x2a')],_0x215f4b=()=>{const _0x282f11=_0x26792f[_0x3dcd('0x35')]({'annotations':this[_0x3dcd('0x57')],'activeAnnotation':this[_0x3dcd('0x1')]});this[_0x3dcd('0x5')](_0x282f11),this['setActiveAnnotation'](_0x282f11[0x0]||null);};this[_0x3dcd('0x5b')](_0x26792f,_0x3dcd('0x18'),_0x215f4b),this[_0x3dcd('0x5b')](_0x26792f,_0x3dcd('0x36'),(_0x575f98,{isAnnotationTracked:_0x214fbd})=>{this[_0x3dcd('0x1')]&&_0x214fbd(this['activeAnnotation'])&&(this[_0x3dcd('0x5')]([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x26792f,_0x3dcd('0x41'),()=>{this[_0x3dcd('0x6')]();}),this[_0x3dcd('0x5b')](_0x3a2a50,_0x3dcd('0x36'),_0x45a65d=>{_0x26792f['hasDomSelection']()&&_0x45a65d[_0x3dcd('0x2c')]();},{'priority':_0x3dcd('0x1f')}),this[_0x3dcd('0x5b')](this[_0x3dcd('0x40')],_0x3dcd('0x39'),(_0x2d3b41,_0x32acee)=>{const _0x3a46a1=_0x32acee[_0x3dcd('0x33')];_0x98e61c['isVisible']&&_0x98e61c[_0x3dcd('0x4e')][_0x3dcd('0x55')](_0x3a46a1)||_0x3a1ece[_0x3dcd('0x1a')][_0x3dcd('0x4e')][_0x3dcd('0x55')](_0x3a46a1)||this[_0x3dcd('0x1')]&&_0x26792f['hasDomSelection']()&&(_0x215f4b(),_0x2d3b41[_0x3dcd('0x47')]=!0x0);},{'priority':'high'}),this[_0x3dcd('0x2d')]['add'](_0x26792f);}[_0x3dcd('0x1d')](_0x12f6ba){_0x12f6ba&&(this[_0x3dcd('0x3c')](_0x12f6ba),this[_0x3dcd('0x2d')][_0x3dcd('0x3d')](_0x12f6ba));}[_0x3dcd('0x5')](_0x11db43){for(const _0x46c61c of this['_selectedAnnotations'])_0x11db43[_0x3dcd('0x2f')](_0x46c61c)||this[_0x3dcd('0x3e')][_0x3dcd('0x5c')](_0x46c61c[_0x3dcd('0x1a')]);this[_0x3dcd('0x3b')]=_0x11db43;}[_0x3dcd('0x10')](){const _0x538a8b=this[_0x3dcd('0x2a')];this[_0x3dcd('0x57')]['refreshPositioning'](),_0x538a8b[_0x3dcd('0x16')]&&this[_0x3dcd('0x59')]();}['_showBalloon'](_0x500c21){if(this[_0x3dcd('0x3e')][_0x3dcd('0x4b')](_0x500c21[_0x3dcd('0x1a')]))return;const _0x5da7fa=this[_0x3dcd('0x2a')][_0x3dcd('0x4f')]['first'];_0x5da7fa!==_0x500c21['view']?(_0x5da7fa&&this['_detachListeners'](_0x5da7fa),this[_0x3dcd('0x13')](_0x500c21['view']),this[_0x3dcd('0x2a')][_0x3dcd('0x4f')][_0x3dcd('0x3f')](),this[_0x3dcd('0x2a')][_0x3dcd('0x4f')][_0x3dcd('0x24')](_0x500c21[_0x3dcd('0x1a')]),this[_0x3dcd('0x59')]()):this[_0x3dcd('0x59')]();}[_0x3dcd('0x59')](){const _0x381190=this[_0x3dcd('0x2a')][_0x3dcd('0x4f')]['first'],_0x2de1f8=_0x381190&&this[_0x3dcd('0x57')][_0x3dcd('0x58')](_0x381190);if(!_0x2de1f8||!this[_0x3dcd('0x2e')][_0x3dcd('0x4b')](_0x2de1f8))return;const _0x15d344=this['_annotationToNarrowView']['get'](_0x2de1f8)[_0x3dcd('0x4e')],_0x33c143=function(){const _0x383bd6=_0x201a9e[_0x3dcd('0x0')];return[_0x383bd6['southArrowNorthEast'],_0x383bd6[_0x3dcd('0x43')],_0x383bd6[_0x3dcd('0x54')],_0x383bd6[_0x3dcd('0xd')],_0x383bd6['southArrowNorthWest'],_0x383bd6[_0x3dcd('0xa')]];}();this[_0x3dcd('0x2a')][_0x3dcd('0x20')]({'target':_0x15d344,'positions':_0x33c143});}[_0x3dcd('0x5d')](){const _0x1f3ff1=this[_0x3dcd('0x2a')],_0x36cdaf=_0x1f3ff1[_0x3dcd('0x4f')]['first'];_0x36cdaf&&(this[_0x3dcd('0x15')](_0x36cdaf),_0x1f3ff1['unpin'](),_0x1f3ff1[_0x3dcd('0x4f')][_0x3dcd('0x3f')]());}[_0x3dcd('0x13')](_0x97591b){this['listenTo'](_0x97591b,_0x3dcd('0x48'),()=>this['_updateBalloonPosition']()),this[_0x3dcd('0x5b')](_0x97591b,'Esc',(_0x176dff,_0x42428f)=>{this[_0x3dcd('0x3e')][_0x3dcd('0x24')](_0x97591b),this['_hideBalloon'](),_0x42428f();});}[_0x3dcd('0x15')](_0x578679){this[_0x3dcd('0x3c')](_0x578679);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x187f=['height','bottom','context','define','content','delete','_getItemBefore','render','unbind','max','sidebar-attachtocontainer-missing-container','target','_spaceBetweenItems','top','targetRect','appendChild','_setItemTop','nodeType','change:_lastItem','_activeAnnotation','refresh','_alignAfterItem','sidebar-setcontainer-invalid-element','stopListening','get','length','_attachToContainer','listenTo','_sidebarItemViewToAnnotation','_getMaxAvailableTop','_createSidebarView','getIndex','Sidebar','set','destroy','last','isActive','object','_alignBeforeItem','pluginName','_getTargetTop','class','change:top','_recalculate','_targetTop','sidebar.preventScrollOutOfView','isAnimationDisabled','_annotations','locale','addAnnotation','bind','rearrange','_recalculateBuffer','updateHeight','list','add','change:targetRect','getSidebarItemView','element','view','container','_updateLastItem','_annotationToSidebarItemView','remove','minHeight','_lastItem','_destroySidebarItemView','_alignForTopChange','setContainer','_alignToTargetRect'];(function(_0x325e06,_0x187fb9){const _0x4c9cf5=function(_0x471ce3){while(--_0x471ce3){_0x325e06['push'](_0x325e06['shift']());}};_0x4c9cf5(++_0x187fb9);}(_0x187f,0x137));const _0x4c9c=function(_0x325e06,_0x187fb9){_0x325e06=_0x325e06-0x0;let _0x4c9cf5=_0x187f[_0x325e06];return _0x4c9cf5;};import{ContextPlugin as _0x278191}from'ckeditor5/src/core';import{Rect as _0xbf6546,CKEditorError as _0x4902c5}from'ckeditor5/src/utils';import _0x507e2c from'./view/sidebarview';import _0x2db790 from'./view/sidebaritemview';export default class z extends _0x278191{static get[_0x4c9c('0x8')](){return _0x4c9c('0x1');}constructor(_0x3563ea){super(_0x3563ea),this[_0x4c9c('0x2')](_0x4c9c('0x22'),void 0x0),this['view']=this['_createSidebarView'](),this[_0x4c9c('0x2')]('container',null),this[_0x4c9c('0x33')]=0x19,this[_0x4c9c('0x43')]=new Map(),this['_annotationToSidebarItemView']=new Map(),this[_0x4c9c('0x29')]['config'][_0x4c9c('0x2a')](_0x4c9c('0xe'),!0x1),this[_0x4c9c('0x10')]=null,this[_0x4c9c('0x3a')]=null,this['_recalculateBuffer']=[];}['init'](){const _0x125ae9=this[_0x4c9c('0x29')]['config'][_0x4c9c('0x3f')]('sidebar.container');_0x125ae9&&this[_0x4c9c('0x25')](_0x125ae9);}[_0x4c9c('0x25')](_0x2682bf){if(!y(_0x2682bf))throw new _0x4902c5(_0x4c9c('0x3d'));this['container']=_0x2682bf;}[_0x4c9c('0x41')]({viewClass:_0x420c63='',spaceBetweenItems:_0x2abfb8=0x19}={}){if(!y(this['container']))throw new _0x4902c5(_0x4c9c('0x31'),this);this[_0x4c9c('0x1d')][_0x4c9c('0x36')](this[_0x4c9c('0x1c')][_0x4c9c('0x1b')]),this[_0x4c9c('0x1c')]['class']=_0x420c63,this[_0x4c9c('0x33')]=_0x2abfb8;}[_0x4c9c('0x14')]({removedAnnotation:_0x2a9d54,previousAnnotation:_0x277324,nextAnnotation:_0x32f8cd}){const _0x174ee2=this['getSidebarItemView'](_0x2a9d54);this[_0x4c9c('0x1c')][_0x4c9c('0x17')][_0x4c9c('0x20')](_0x174ee2),this['_destroySidebarItemView'](_0x2a9d54),_0x277324&&this[_0x4c9c('0x26')](this[_0x4c9c('0x1a')](_0x277324)),_0x32f8cd&&this['_alignToTargetRect'](this[_0x4c9c('0x1a')](_0x32f8cd)),this[_0x4c9c('0x1e')]();}[_0x4c9c('0x3b')]({blurredAnnotation:_0x4be047,activatedAnnotation:_0x17059c,disableAnimationOnActivatedAnnotation:_0x31fd35}){if(this['_activeAnnotation']=_0x17059c,_0x4be047){_0x4be047[_0x4c9c('0x5')]=!0x1;const _0x28bcb9=this[_0x4c9c('0x1a')](_0x4be047);_0x28bcb9&&_0x31fd35&&(_0x28bcb9[_0x4c9c('0xf')]=!0x1);}if(_0x17059c){const _0x574406=this[_0x4c9c('0x1a')](_0x17059c);_0x574406&&(_0x17059c[_0x4c9c('0x5')]=!0x0,_0x31fd35&&(_0x574406[_0x4c9c('0xf')]=!0x0,_0x574406[_0x4c9c('0x34')]+=0x1),this[_0x4c9c('0x26')](_0x574406));}}['_detachFromContainer'](_0x4ff0ed){if(this[_0x4c9c('0x1c')][_0x4c9c('0x1b')][_0x4c9c('0x20')](),_0x4ff0ed)for(const _0x536f71 of _0x4ff0ed)this[_0x4c9c('0x23')](_0x536f71);this[_0x4c9c('0x1c')][_0x4c9c('0x17')]['clear'](),this['view'][_0x4c9c('0xa')]='',this[_0x4c9c('0x22')]=null;}[_0x4c9c('0x12')](_0x5bc554,_0xb7e407){_0xb7e407||(_0xb7e407=_0x5bc554['view']);const _0x5a7c4b=new _0x2db790(this[_0x4c9c('0x29')][_0x4c9c('0x11')]);this[_0x4c9c('0x43')][_0x4c9c('0x2')](_0x5a7c4b,_0x5bc554),this[_0x4c9c('0x1f')][_0x4c9c('0x2')](_0x5bc554,_0x5a7c4b),_0x5a7c4b[_0x4c9c('0x2b')][_0x4c9c('0x18')](_0xb7e407),this[_0x4c9c('0x42')](_0x5bc554[_0x4c9c('0x1c')],_0x4c9c('0x19'),(_0x7c6ad1,_0x3816a9,_0x6af98c)=>{const _0x21014=this['_getTargetTop'](_0x5bc554,_0x6af98c);_0x5a7c4b[_0x4c9c('0xd')]!=_0x21014&&(_0x5a7c4b['_targetTop']=_0x21014,this[_0x4c9c('0x37')](_0x5a7c4b,_0x21014));}),this[_0x4c9c('0x42')](_0x5a7c4b,_0x4c9c('0xb'),()=>{this[_0x4c9c('0xc')](_0x5a7c4b,_0x4c9c('0x34'));}),this[_0x4c9c('0x42')](_0x5a7c4b,'change:bottom',()=>{this[_0x4c9c('0xc')](_0x5a7c4b,_0x4c9c('0x28'));}),this[_0x4c9c('0x26')](_0x5a7c4b);const _0x57cd5c=this[_0x4c9c('0x2d')](_0x5a7c4b);if(_0x57cd5c)this[_0x4c9c('0x3c')](_0x57cd5c,_0x5a7c4b)||this[_0x4c9c('0x26')](_0x5a7c4b);else this[_0x4c9c('0x26')](_0x5a7c4b);return this[_0x4c9c('0x1e')](),this[_0x4c9c('0x1c')][_0x4c9c('0x17')]['add'](_0x5a7c4b),_0x5a7c4b;}['_alignForTopChange'](_0x239a51){if(!_0x239a51[_0x4c9c('0x2b')][_0x4c9c('0x40')])return;const _0x192b3e=this[_0x4c9c('0x2d')](_0x239a51);if(!_0x192b3e)return;const _0x411805=this[_0x4c9c('0x43')][_0x4c9c('0x3f')](_0x192b3e),_0x2b6f06=this[_0x4c9c('0x3a')];_0x2b6f06&&_0x2b6f06===_0x411805?this[_0x4c9c('0x3c')](_0x192b3e,_0x239a51):this[_0x4c9c('0x7')](_0x239a51,_0x192b3e);}['_alignForBottomChange'](_0x25af38){if(!_0x25af38[_0x4c9c('0x2b')][_0x4c9c('0x40')])return;const _0x113b58=this['_getItemAfter'](_0x25af38);if(!_0x113b58)return;const _0x520bf3=this['_sidebarItemViewToAnnotation']['get'](_0x113b58),_0x3ac8d7=this[_0x4c9c('0x29')]['config'][_0x4c9c('0x3f')](_0x4c9c('0xe')),_0x192095=this[_0x4c9c('0x3a')];_0x192095&&_0x192095===_0x520bf3&&_0x3ac8d7?(this[_0x4c9c('0x7')](_0x113b58,_0x25af38),this['_alignAfterItem'](_0x25af38,_0x113b58)):_0x192095&&_0x192095===_0x520bf3?this[_0x4c9c('0x7')](_0x113b58,_0x25af38):this[_0x4c9c('0x3c')](_0x25af38,_0x113b58);}[_0x4c9c('0xc')](_0x49e887,_0x3f4e48){0x0===this[_0x4c9c('0x15')]['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x5973d3,changedProp:_0x298337}of this[_0x4c9c('0x15')])_0x4c9c('0x34')===_0x298337?this[_0x4c9c('0x24')](_0x5973d3):this['_alignForBottomChange'](_0x5973d3);this[_0x4c9c('0x15')]=[];},0xa),this[_0x4c9c('0x15')]['push']({'sidebarItemView':_0x49e887,'changedProp':_0x3f4e48});}['getSidebarItemView'](_0x7815ba){return this[_0x4c9c('0x1f')][_0x4c9c('0x3f')](_0x7815ba);}[_0x4c9c('0x3')](){this['stopListening'](),this[_0x4c9c('0x1c')][_0x4c9c('0x3')]();}[_0x4c9c('0x23')](_0x258d04){const _0x3d4035=this[_0x4c9c('0x1a')](_0x258d04);this[_0x4c9c('0x3e')](_0x3d4035),this[_0x4c9c('0x3e')](_0x258d04[_0x4c9c('0x1c')]),_0x3d4035['destroy'](),this[_0x4c9c('0x1f')]['delete'](_0x258d04),this['_sidebarItemViewToAnnotation'][_0x4c9c('0x2c')](_0x3d4035);}[_0x4c9c('0x45')](){const _0x32272f=new _0x507e2c(this['context'][_0x4c9c('0x11')]);return _0x32272f[_0x4c9c('0x2e')](),this['on'](_0x4c9c('0x39'),(_0x16d09f,_0x4a2171,_0x3f6554,_0x4801c4)=>{_0x4801c4&&_0x32272f[_0x4c9c('0x2f')]('minHeight'),_0x3f6554?_0x32272f[_0x4c9c('0x13')](_0x4c9c('0x21'))['to'](_0x3f6554,_0x4c9c('0x28')):_0x32272f[_0x4c9c('0x21')]=null;}),_0x32272f;}[_0x4c9c('0x1e')](){var _0x2529bd;this[_0x4c9c('0x22')]=(null===(_0x2529bd=this[_0x4c9c('0x10')])||void 0x0===_0x2529bd?void 0x0:_0x2529bd[_0x4c9c('0x4')])?this[_0x4c9c('0x1a')](this[_0x4c9c('0x10')][_0x4c9c('0x4')]):null;}[_0x4c9c('0x2d')](_0x119fb4){var _0x5a803f;const _0x262ed6=this[_0x4c9c('0x43')][_0x4c9c('0x3f')](_0x119fb4),_0x2d7851=_0x262ed6&&(null===(_0x5a803f=this['_annotations'])||void 0x0===_0x5a803f?void 0x0:_0x5a803f[_0x4c9c('0x3f')](this[_0x4c9c('0x10')]['getIndex'](_0x262ed6)-0x1));return _0x2d7851&&this[_0x4c9c('0x1a')](_0x2d7851)||null;}['_getItemAfter'](_0x130d7d){var _0x146677;const _0x499cfb=this[_0x4c9c('0x43')][_0x4c9c('0x3f')](_0x130d7d),_0x7e805=_0x499cfb&&(null===(_0x146677=this[_0x4c9c('0x10')])||void 0x0===_0x146677?void 0x0:_0x146677[_0x4c9c('0x3f')](this[_0x4c9c('0x10')][_0x4c9c('0x0')](_0x499cfb)+0x1));return _0x7e805&&this[_0x4c9c('0x1a')](_0x7e805)||null;}[_0x4c9c('0x7')](_0x57b7bf,_0x2056f1){_0x57b7bf[_0x4c9c('0x16')]();const _0x275841=H(_0x2056f1[_0x4c9c('0x28')]+this[_0x4c9c('0x33')],_0x57b7bf[_0x4c9c('0x34')]);return!!_0x275841&&(this[_0x4c9c('0x37')](_0x2056f1,_0x2056f1['top']-_0x275841),!0x0);}[_0x4c9c('0x3c')](_0x1a0331,_0x825bef){_0x1a0331[_0x4c9c('0x16')]();const _0x3b55ef=H(_0x1a0331['bottom']+this[_0x4c9c('0x33')],_0x825bef[_0x4c9c('0x34')]);return!!_0x3b55ef&&(this['_setItemTop'](_0x825bef,_0x825bef['top']+_0x3b55ef,!0x1),!0x0);}[_0x4c9c('0x26')](_0x2fa076){const _0x523a8b=this['_sidebarItemViewToAnnotation'][_0x4c9c('0x3f')](_0x2fa076);if(!_0x523a8b||!_0x523a8b[_0x4c9c('0x32')]||!_0x523a8b['targetRect'])return;const _0x43068d=this[_0x4c9c('0x9')](_0x523a8b,_0x523a8b[_0x4c9c('0x35')]);this[_0x4c9c('0x37')](_0x2fa076,_0x43068d);}[_0x4c9c('0x9')](_0x26e013,_0x4643e4){if(null===_0x4643e4)return 0x0;if(_0x26e013[_0x4c9c('0x32')]instanceof _0xbf6546)return _0x4643e4[_0x4c9c('0x34')];{const _0x271b5e=new _0xbf6546(this[_0x4c9c('0x1c')][_0x4c9c('0x1b')])[_0x4c9c('0x34')];return _0x4643e4[_0x4c9c('0x34')]-_0x271b5e;}}['_setItemTop'](_0x375937,_0x167021,_0x5a8729=this[_0x4c9c('0x29')]['config']['get'](_0x4c9c('0xe'))){_0x5a8729&&(_0x167021=Math[_0x4c9c('0x30')](_0x167021,this[_0x4c9c('0x44')](_0x375937))),_0x375937[_0x4c9c('0x34')]=_0x167021;}[_0x4c9c('0x44')](_0x392832){let _0x84adf0=this[_0x4c9c('0x2d')](_0x392832),_0x46ad12=0x0;for(;_0x84adf0;)_0x84adf0[_0x4c9c('0x16')](),_0x46ad12+=this['_spaceBetweenItems']+_0x84adf0[_0x4c9c('0x27')],_0x84adf0=this[_0x4c9c('0x2d')](_0x84adf0);return _0x46ad12;}}function H(_0x3fbe27,_0x5697dd){return Math[_0x4c9c('0x30')](_0x3fbe27-_0x5697dd,0x0);}function y(_0x13f2d5){return null!==_0x13f2d5&&_0x4c9c('0x6')==typeof _0x13f2d5&&0x1===_0x13f2d5[_0x4c9c('0x38')];}
23
+ const _0x4b81=['_annotationToSidebarItemView','target','_detachFromContainer','change:bottom','_createSidebarView','stopListening','get','_alignBeforeItem','addAnnotation','getIndex','minHeight','_setItemTop','_attachToContainer','setContainer','element','sidebar-attachtocontainer-missing-container','_updateLastItem','isAnimationDisabled','_annotations','_destroySidebarItemView','unbind','_getItemAfter','_alignForBottomChange','_lastItem','bottom','_recalculateBuffer','top','content','refresh','appendChild','bind','Sidebar','_alignToTargetRect','_getItemBefore','_getMaxAvailableTop','_activeAnnotation','push','_recalculate','list','set','_alignAfterItem','length','sidebar-setcontainer-invalid-element','remove','height','context','isActive','updateHeight','pluginName','targetRect','sidebar.container','_spaceBetweenItems','getSidebarItemView','_alignForTopChange','view','init','object','container','_getTargetTop','add','max','change:_lastItem','config','change:targetRect','_sidebarItemViewToAnnotation','listenTo','last','sidebar.preventScrollOutOfView','delete','destroy','class','_targetTop'];(function(_0x2412e2,_0x4b8135){const _0x21c581=function(_0x3ddf46){while(--_0x3ddf46){_0x2412e2['push'](_0x2412e2['shift']());}};_0x21c581(++_0x4b8135);}(_0x4b81,0xfb));const _0x21c5=function(_0x2412e2,_0x4b8135){_0x2412e2=_0x2412e2-0x0;let _0x21c581=_0x4b81[_0x2412e2];return _0x21c581;};import{ContextPlugin as _0x2f5b08}from'ckeditor5/src/core';import{Rect as _0x763586,CKEditorError as _0x3c9fcb}from'ckeditor5/src/utils';import _0xdd39a4 from'./view/sidebarview';import _0x377067 from'./view/sidebaritemview';export default class z extends _0x2f5b08{static get[_0x21c5('0xd')](){return _0x21c5('0x44');}constructor(_0x3df754){super(_0x3df754),this[_0x21c5('0x4')](_0x21c5('0x3c'),void 0x0),this[_0x21c5('0x13')]=this[_0x21c5('0x29')](),this[_0x21c5('0x4')](_0x21c5('0x16'),null),this[_0x21c5('0x10')]=0x19,this[_0x21c5('0x1d')]=new Map(),this['_annotationToSidebarItemView']=new Map(),this[_0x21c5('0xa')][_0x21c5('0x1b')]['define'](_0x21c5('0x20'),!0x1),this[_0x21c5('0x37')]=null,this['_activeAnnotation']=null,this[_0x21c5('0x3e')]=[];}[_0x21c5('0x14')](){const _0x72d3aa=this[_0x21c5('0xa')][_0x21c5('0x1b')][_0x21c5('0x2b')](_0x21c5('0xf'));_0x72d3aa&&this[_0x21c5('0x32')](_0x72d3aa);}[_0x21c5('0x32')](_0x10020a){if(!y(_0x10020a))throw new _0x3c9fcb(_0x21c5('0x7'));this['container']=_0x10020a;}[_0x21c5('0x31')]({viewClass:_0x1d44b9='',spaceBetweenItems:_0x41d40c=0x19}={}){if(!y(this[_0x21c5('0x16')]))throw new _0x3c9fcb(_0x21c5('0x34'),this);this['container'][_0x21c5('0x42')](this[_0x21c5('0x13')][_0x21c5('0x33')]),this[_0x21c5('0x13')][_0x21c5('0x23')]=_0x1d44b9,this[_0x21c5('0x10')]=_0x41d40c;}['rearrange']({removedAnnotation:_0x4e7190,previousAnnotation:_0x537b57,nextAnnotation:_0xe7aedf}){const _0x3acf5c=this['getSidebarItemView'](_0x4e7190);this['view']['list']['remove'](_0x3acf5c),this[_0x21c5('0x38')](_0x4e7190),_0x537b57&&this[_0x21c5('0x45')](this['getSidebarItemView'](_0x537b57)),_0xe7aedf&&this['_alignToTargetRect'](this['getSidebarItemView'](_0xe7aedf)),this[_0x21c5('0x35')]();}[_0x21c5('0x41')]({blurredAnnotation:_0x5ae0e6,activatedAnnotation:_0x2ba011,disableAnimationOnActivatedAnnotation:_0x4b77b6}){if(this['_activeAnnotation']=_0x2ba011,_0x5ae0e6){_0x5ae0e6['isActive']=!0x1;const _0xaa348f=this[_0x21c5('0x11')](_0x5ae0e6);_0xaa348f&&_0x4b77b6&&(_0xaa348f[_0x21c5('0x36')]=!0x1);}if(_0x2ba011){const _0x13f831=this[_0x21c5('0x11')](_0x2ba011);_0x13f831&&(_0x2ba011[_0x21c5('0xb')]=!0x0,_0x4b77b6&&(_0x13f831['isAnimationDisabled']=!0x0,_0x13f831['top']+=0x1),this['_alignToTargetRect'](_0x13f831));}}[_0x21c5('0x27')](_0x469eef){if(this[_0x21c5('0x13')][_0x21c5('0x33')][_0x21c5('0x8')](),_0x469eef)for(const _0x48318e of _0x469eef)this[_0x21c5('0x38')](_0x48318e);this[_0x21c5('0x13')]['list']['clear'](),this[_0x21c5('0x13')]['class']='',this[_0x21c5('0x3c')]=null;}[_0x21c5('0x2d')](_0x91522a,_0x43c13b){_0x43c13b||(_0x43c13b=_0x91522a[_0x21c5('0x13')]);const _0x141c18=new _0x377067(this[_0x21c5('0xa')]['locale']);this[_0x21c5('0x1d')][_0x21c5('0x4')](_0x141c18,_0x91522a),this[_0x21c5('0x25')][_0x21c5('0x4')](_0x91522a,_0x141c18),_0x141c18[_0x21c5('0x40')]['add'](_0x43c13b),this[_0x21c5('0x1e')](_0x91522a['view'],_0x21c5('0x1c'),(_0x1ef783,_0x212be2,_0x46120f)=>{const _0x46ad72=this['_getTargetTop'](_0x91522a,_0x46120f);_0x141c18[_0x21c5('0x24')]!=_0x46ad72&&(_0x141c18['_targetTop']=_0x46ad72,this[_0x21c5('0x30')](_0x141c18,_0x46ad72));}),this[_0x21c5('0x1e')](_0x141c18,'change:top',()=>{this[_0x21c5('0x2')](_0x141c18,_0x21c5('0x3f'));}),this[_0x21c5('0x1e')](_0x141c18,_0x21c5('0x28'),()=>{this[_0x21c5('0x2')](_0x141c18,_0x21c5('0x3d'));}),this[_0x21c5('0x45')](_0x141c18);const _0x16a1fb=this[_0x21c5('0x46')](_0x141c18);if(_0x16a1fb)this[_0x21c5('0x5')](_0x16a1fb,_0x141c18)||this[_0x21c5('0x45')](_0x141c18);else this[_0x21c5('0x45')](_0x141c18);return this['_updateLastItem'](),this[_0x21c5('0x13')][_0x21c5('0x3')][_0x21c5('0x18')](_0x141c18),_0x141c18;}['_alignForTopChange'](_0x170018){if(!_0x170018[_0x21c5('0x40')][_0x21c5('0x6')])return;const _0x3ed5a0=this[_0x21c5('0x46')](_0x170018);if(!_0x3ed5a0)return;const _0x5ef4db=this[_0x21c5('0x1d')][_0x21c5('0x2b')](_0x3ed5a0),_0x2b1b2c=this[_0x21c5('0x0')];_0x2b1b2c&&_0x2b1b2c===_0x5ef4db?this['_alignAfterItem'](_0x3ed5a0,_0x170018):this[_0x21c5('0x2c')](_0x170018,_0x3ed5a0);}['_alignForBottomChange'](_0x5c774c){if(!_0x5c774c[_0x21c5('0x40')][_0x21c5('0x6')])return;const _0xc5e444=this[_0x21c5('0x3a')](_0x5c774c);if(!_0xc5e444)return;const _0x3e2d4a=this[_0x21c5('0x1d')][_0x21c5('0x2b')](_0xc5e444),_0x157b5c=this['context']['config'][_0x21c5('0x2b')](_0x21c5('0x20')),_0x23d92d=this['_activeAnnotation'];_0x23d92d&&_0x23d92d===_0x3e2d4a&&_0x157b5c?(this[_0x21c5('0x2c')](_0xc5e444,_0x5c774c),this['_alignAfterItem'](_0x5c774c,_0xc5e444)):_0x23d92d&&_0x23d92d===_0x3e2d4a?this[_0x21c5('0x2c')](_0xc5e444,_0x5c774c):this[_0x21c5('0x5')](_0x5c774c,_0xc5e444);}[_0x21c5('0x2')](_0x5af9fa,_0x4ae5fe){0x0===this[_0x21c5('0x3e')][_0x21c5('0x6')]&&setTimeout(()=>{for(const {sidebarItemView:_0x43ac87,changedProp:_0x21c6ec}of this[_0x21c5('0x3e')])_0x21c5('0x3f')===_0x21c6ec?this[_0x21c5('0x12')](_0x43ac87):this[_0x21c5('0x3b')](_0x43ac87);this['_recalculateBuffer']=[];},0xa),this[_0x21c5('0x3e')][_0x21c5('0x1')]({'sidebarItemView':_0x5af9fa,'changedProp':_0x4ae5fe});}['getSidebarItemView'](_0x44c423){return this[_0x21c5('0x25')][_0x21c5('0x2b')](_0x44c423);}[_0x21c5('0x22')](){this[_0x21c5('0x2a')](),this[_0x21c5('0x13')][_0x21c5('0x22')]();}[_0x21c5('0x38')](_0x316241){const _0x3620c0=this['getSidebarItemView'](_0x316241);this[_0x21c5('0x2a')](_0x3620c0),this[_0x21c5('0x2a')](_0x316241[_0x21c5('0x13')]),_0x3620c0[_0x21c5('0x22')](),this[_0x21c5('0x25')][_0x21c5('0x21')](_0x316241),this[_0x21c5('0x1d')][_0x21c5('0x21')](_0x3620c0);}['_createSidebarView'](){const _0xce8a36=new _0xdd39a4(this['context']['locale']);return _0xce8a36['render'](),this['on'](_0x21c5('0x1a'),(_0x29a9ad,_0x1a8361,_0x439a3b,_0x5388d6)=>{_0x5388d6&&_0xce8a36[_0x21c5('0x39')]('minHeight'),_0x439a3b?_0xce8a36[_0x21c5('0x43')](_0x21c5('0x2f'))['to'](_0x439a3b,_0x21c5('0x3d')):_0xce8a36['minHeight']=null;}),_0xce8a36;}[_0x21c5('0x35')](){var _0xf89305;this[_0x21c5('0x3c')]=(null===(_0xf89305=this[_0x21c5('0x37')])||void 0x0===_0xf89305?void 0x0:_0xf89305[_0x21c5('0x1f')])?this[_0x21c5('0x11')](this[_0x21c5('0x37')][_0x21c5('0x1f')]):null;}[_0x21c5('0x46')](_0x4cc469){var _0xf9091f;const _0x34c994=this[_0x21c5('0x1d')][_0x21c5('0x2b')](_0x4cc469),_0x2acdab=_0x34c994&&(null===(_0xf9091f=this[_0x21c5('0x37')])||void 0x0===_0xf9091f?void 0x0:_0xf9091f[_0x21c5('0x2b')](this[_0x21c5('0x37')][_0x21c5('0x2e')](_0x34c994)-0x1));return _0x2acdab&&this['getSidebarItemView'](_0x2acdab)||null;}[_0x21c5('0x3a')](_0x3e8a28){var _0x3f376c;const _0xa330d6=this[_0x21c5('0x1d')][_0x21c5('0x2b')](_0x3e8a28),_0x1ff523=_0xa330d6&&(null===(_0x3f376c=this[_0x21c5('0x37')])||void 0x0===_0x3f376c?void 0x0:_0x3f376c[_0x21c5('0x2b')](this[_0x21c5('0x37')][_0x21c5('0x2e')](_0xa330d6)+0x1));return _0x1ff523&&this['getSidebarItemView'](_0x1ff523)||null;}[_0x21c5('0x2c')](_0x2ce616,_0x2ff623){_0x2ce616['updateHeight']();const _0x5f3203=H(_0x2ff623[_0x21c5('0x3d')]+this['_spaceBetweenItems'],_0x2ce616[_0x21c5('0x3f')]);return!!_0x5f3203&&(this[_0x21c5('0x30')](_0x2ff623,_0x2ff623[_0x21c5('0x3f')]-_0x5f3203),!0x0);}[_0x21c5('0x5')](_0x48d0ea,_0x4c60b7){_0x48d0ea[_0x21c5('0xc')]();const _0x472fe4=H(_0x48d0ea[_0x21c5('0x3d')]+this['_spaceBetweenItems'],_0x4c60b7['top']);return!!_0x472fe4&&(this[_0x21c5('0x30')](_0x4c60b7,_0x4c60b7[_0x21c5('0x3f')]+_0x472fe4,!0x1),!0x0);}[_0x21c5('0x45')](_0x500644){const _0x277cd8=this[_0x21c5('0x1d')][_0x21c5('0x2b')](_0x500644);if(!_0x277cd8||!_0x277cd8[_0x21c5('0x26')]||!_0x277cd8[_0x21c5('0xe')])return;const _0xb3406a=this[_0x21c5('0x17')](_0x277cd8,_0x277cd8[_0x21c5('0xe')]);this[_0x21c5('0x30')](_0x500644,_0xb3406a);}[_0x21c5('0x17')](_0x337dcb,_0x43a92f){if(null===_0x43a92f)return 0x0;if(_0x337dcb[_0x21c5('0x26')]instanceof _0x763586)return _0x43a92f[_0x21c5('0x3f')];{const _0x255a89=new _0x763586(this['view'][_0x21c5('0x33')])[_0x21c5('0x3f')];return _0x43a92f[_0x21c5('0x3f')]-_0x255a89;}}['_setItemTop'](_0x2bfa70,_0x22744e,_0x10fcf1=this[_0x21c5('0xa')][_0x21c5('0x1b')][_0x21c5('0x2b')](_0x21c5('0x20'))){_0x10fcf1&&(_0x22744e=Math['max'](_0x22744e,this[_0x21c5('0x47')](_0x2bfa70))),_0x2bfa70[_0x21c5('0x3f')]=_0x22744e;}[_0x21c5('0x47')](_0x7aa547){let _0x488334=this['_getItemBefore'](_0x7aa547),_0x1e5797=0x0;for(;_0x488334;)_0x488334['updateHeight'](),_0x1e5797+=this['_spaceBetweenItems']+_0x488334[_0x21c5('0x9')],_0x488334=this[_0x21c5('0x46')](_0x488334);return _0x1e5797;}}function H(_0x1381c2,_0x278180){return Math[_0x21c5('0x19')](_0x1381c2-_0x278180,0x0);}function y(_0x53c5a9){return null!==_0x53c5a9&&_0x21c5('0x15')==typeof _0x53c5a9&&0x1===_0x53c5a9['nodeType'];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x284e=['ck-annotation-counter__badge--edit-mode','icon','ck-annotation-counter','number','counterView','bindTemplate','ck-annotation-counter__badge','toString','_badge','set','annotationType','span','children','ck-annotation-counter__badge--','isDirty','extendTemplate'];(function(_0x10cec9,_0x284ed5){const _0x525993=function(_0x2d3d4c){while(--_0x2d3d4c){_0x10cec9['push'](_0x10cec9['shift']());}};_0x525993(++_0x284ed5);}(_0x284e,0xaa));const _0x5259=function(_0x10cec9,_0x284ed5){_0x10cec9=_0x10cec9-0x0;let _0x525993=_0x284e[_0x10cec9];return _0x525993;};import{ButtonView as _0x7bba1c,View as _0xab6b1c}from'ckeditor5/src/ui';import _0x428dfb from'../../../theme/icons/add-comment.svg';export default class D extends _0x7bba1c{constructor(_0x3a39c1){super(_0x3a39c1);const _0x5bd5f0=this[_0x5259('0xb')];this[_0x5259('0xf')]('isDirty',!0x1),this[_0x5259('0xf')](_0x5259('0x9'),0x0),this['bind'](_0x5259('0xe'))['to'](this,'isDirty',this,_0x5259('0x9'),(_0x1a1022,_0x16646f)=>_0x1a1022?'...':_0x16646f[_0x5259('0xd')]()),this[_0x5259('0xf')](_0x5259('0x0'),''),this[_0x5259('0x7')]=_0x428dfb,this[_0x5259('0x5')]({'attributes':{'class':[_0x5259('0x8')]}}),this['counterView']=new _0xab6b1c(),this[_0x5259('0xa')]['setTemplate']({'tag':_0x5259('0x1'),'attributes':{'class':[_0x5259('0xc'),_0x5bd5f0['to'](_0x5259('0x0'),_0x3f2945=>_0x5259('0x3')+_0x3f2945),_0x5bd5f0['if'](_0x5259('0x4'),_0x5259('0x6'))]},'children':[{'text':_0x5bd5f0['to']('_badge')}]}),this[_0x5259('0x2')]['add'](this[_0x5259('0xa')]);}}
23
+ const _0x510d=['_badge','bindTemplate','ck-annotation-counter','bind','span','set','isDirty','counterView','toString','extendTemplate','...','annotationType','add','number','icon','ck-annotation-counter__badge--'];(function(_0x4c5d5a,_0x510dde){const _0x165ccf=function(_0x5ee8a5){while(--_0x5ee8a5){_0x4c5d5a['push'](_0x4c5d5a['shift']());}};_0x165ccf(++_0x510dde);}(_0x510d,0x1a5));const _0x165c=function(_0x4c5d5a,_0x510dde){_0x4c5d5a=_0x4c5d5a-0x0;let _0x165ccf=_0x510d[_0x4c5d5a];return _0x165ccf;};import{ButtonView as _0x598003,View as _0x57224f}from'ckeditor5/src/ui';import _0x1673fe from'../../../theme/icons/add-comment.svg';export default class D extends _0x598003{constructor(_0x188a30){super(_0x188a30);const _0x505958=this[_0x165c('0xc')];this[_0x165c('0x0')](_0x165c('0x1'),!0x1),this['set'](_0x165c('0x8'),0x0),this[_0x165c('0xe')](_0x165c('0xb'))['to'](this,'isDirty',this,_0x165c('0x8'),(_0x1c0efe,_0x151071)=>_0x1c0efe?_0x165c('0x5'):_0x151071[_0x165c('0x3')]()),this[_0x165c('0x0')](_0x165c('0x6'),''),this[_0x165c('0x9')]=_0x1673fe,this[_0x165c('0x4')]({'attributes':{'class':[_0x165c('0xd')]}}),this[_0x165c('0x2')]=new _0x57224f(),this[_0x165c('0x2')]['setTemplate']({'tag':_0x165c('0xf'),'attributes':{'class':['ck-annotation-counter__badge',_0x505958['to'](_0x165c('0x6'),_0x5422cb=>_0x165c('0xa')+_0x5422cb),_0x505958['if'](_0x165c('0x1'),'ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x505958['to']('_badge')}]}),this['children'][_0x165c('0x7')](this[_0x165c('0x2')]);}}