@ckeditor/ckeditor5-comments 37.0.0-rc.0 → 37.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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": "37.0.0-rc.0",
3
+ "version": "37.0.1",
4
4
  "description": "Collaborative comments feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -45,8 +45,8 @@
45
45
  "postversion": "npm run build"
46
46
  },
47
47
  "dependencies": {
48
- "ckeditor5": "^37.0.0-rc.0",
49
- "ckeditor5-collaboration": "^36.0.1",
48
+ "ckeditor5": "^37.0.1",
49
+ "ckeditor5-collaboration": "^37.0.1",
50
50
  "lodash-es": "^4.17.11"
51
51
  },
52
52
  "types": "src/index.d.ts",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x46d3=['destroy','item','length','target','focusableElements','object','nodeType','_getNormalizedTarget','getClientRects','function','remove','set','type','targetRect','_type','isActive','mainView','view','render','updateTargetRect','isVisible','_assertCorrectTarget','stopListening','clear','_target','element','refreshVisibility','annotation-invalid-target','focusTracker','filter','add','every','isArray','innerView','offsetParent'];(function(_0x5d6fec,_0x46d389){const _0x6269ac=function(_0x2c6a42){while(--_0x2c6a42){_0x5d6fec['push'](_0x5d6fec['shift']());}};_0x6269ac(++_0x46d389);}(_0x46d3,0x1ec));const _0x6269=function(_0x5d6fec,_0x46d389){_0x5d6fec=_0x5d6fec-0x0;let _0x6269ac=_0x46d3[_0x5d6fec];return _0x6269ac;};import{CKEditorError as _0x1539dc,Rect as _0x36c313,Collection as _0x135bc6,ObservableMixin as _0x89f78f}from'ckeditor5/src/utils';export default class d extends _0x89f78f(){constructor({view:_0x3121cd,target:_0xbeae3c,type:_0x22ed43,isVisible:_0x1a70f1=!0x0}){super(),this[_0x6269('0xf')]=_0x3121cd,this[_0x6269('0xf')][_0x6269('0x17')]||this[_0x6269('0xf')][_0x6269('0x10')](),this[_0x6269('0xc')]=_0x22ed43,this[_0x6269('0x16')]=_0xbeae3c,d[_0x6269('0x13')](this['_getNormalizedTarget']()),this[_0x6269('0x2')]=new _0x135bc6([this[_0x6269('0xf')]['element']],{'idProperty':'_id'}),this[_0x6269('0x2')]['on'](_0x6269('0x1c'),(_0x46a262,_0xa602f1)=>{this['view']['focusTracker']['add'](_0xa602f1);}),this['focusableElements']['on'](_0x6269('0x8'),(_0x5ac726,_0x3d4ed1)=>{this['view'][_0x6269('0x1a')][_0x6269('0x8')](_0x3d4ed1);}),this[_0x6269('0x9')]('isVisible',_0x1a70f1);}get[_0x6269('0xa')](){return _0x6269('0x7')==typeof this[_0x6269('0xc')]?this[_0x6269('0xc')]():this[_0x6269('0xc')];}get[_0x6269('0x1f')](){return this['view'][_0x6269('0xe')];}get['target'](){const _0x35d2ed=this[_0x6269('0x5')]();return d[_0x6269('0x13')](_0x35d2ed),_0x35d2ed;}get[_0x6269('0xb')](){const _0x5ecea1=this[_0x6269('0x1')];if(null===_0x5ecea1)return null;if(_0x5ecea1 instanceof _0x36c313)return _0x5ecea1;const _0x3048cd=_0x5ecea1[_0x6269('0x1b')](_0x33ee5e=>function(_0x53ec07){const _0x239967=_0x53ec07[_0x6269('0x20')];if(_0x239967)return!0x0;const _0x53f635=_0x53ec07['getClientRects']()[_0x6269('0x22')](0x0);return!!_0x53f635;}(_0x33ee5e));return 0x0===_0x3048cd[_0x6269('0x0')]?null:new _0x36c313(_0x3048cd[0x0][_0x6269('0x6')]()[_0x6269('0x22')](0x0));}get['isActive'](){return this['view'][_0x6269('0xd')];}set[_0x6269('0xd')](_0x1a0a6c){this[_0x6269('0xf')][_0x6269('0xd')]=_0x1a0a6c,this[_0x6269('0xf')]['mainView'][_0x6269('0xd')]=_0x1a0a6c;}[_0x6269('0x11')](){this[_0x6269('0xf')][_0x6269('0xb')]=this[_0x6269('0xb')];}[_0x6269('0x21')](){this['focusableElements'][_0x6269('0x14')](),this[_0x6269('0x2')][_0x6269('0x15')](),this[_0x6269('0x14')]();}[_0x6269('0x18')](){this[_0x6269('0x12')]=!!this[_0x6269('0xb')];}static[_0x6269('0x13')](_0x1afe33){if(!(null===_0x1afe33||_0x1afe33 instanceof _0x36c313||Array[_0x6269('0x1e')](_0x1afe33)&&_0x1afe33[_0x6269('0x1d')](_0x2e1f6b=>y(_0x2e1f6b))))throw new _0x1539dc(_0x6269('0x19'),null,{'target':_0x1afe33});}[_0x6269('0x5')](){const _0x5327c8=_0x6269('0x7')==typeof this[_0x6269('0x16')]?this[_0x6269('0x16')]():this[_0x6269('0x16')];return y(_0x5327c8)?[_0x5327c8]:_0x5327c8;}}function y(_0x18ab9d){return null!==_0x18ab9d&&_0x6269('0x3')==typeof _0x18ab9d&&_0x6269('0x4')in _0x18ab9d&&0x1===_0x18ab9d['nodeType'];}
23
+ const _0x10d4=['filter','type','annotation-invalid-target','isVisible','item','_getNormalizedTarget','_target','function','refreshVisibility','nodeType','focusableElements','targetRect','innerView','stopListening','focusTracker','offsetParent','target','clear','_type','every','isArray','updateTargetRect','element','set','mainView','_assertCorrectTarget','length','remove','view','add','isActive','render'];(function(_0x23da9f,_0x10d4e1){const _0x3c97c9=function(_0x5398e7){while(--_0x5398e7){_0x23da9f['push'](_0x23da9f['shift']());}};_0x3c97c9(++_0x10d4e1);}(_0x10d4,0xfa));const _0x3c97=function(_0x23da9f,_0x10d4e1){_0x23da9f=_0x23da9f-0x0;let _0x3c97c9=_0x10d4[_0x23da9f];return _0x3c97c9;};import{CKEditorError as _0x451243,Rect as _0x440505,Collection as _0x5c0ac0,ObservableMixin as _0xce0667}from'ckeditor5/src/utils';export default class d extends _0xce0667(){constructor({view:_0x49cca1,target:_0xf785a2,type:_0xe3fdcd,isVisible:_0x146a66=!0x0}){super(),this[_0x3c97('0x2')]=_0x49cca1,this[_0x3c97('0x2')][_0x3c97('0x1c')]||this[_0x3c97('0x2')][_0x3c97('0x5')](),this[_0x3c97('0x18')]=_0xe3fdcd,this[_0x3c97('0xc')]=_0xf785a2,d[_0x3c97('0x1f')](this['_getNormalizedTarget']()),this[_0x3c97('0x10')]=new _0x5c0ac0([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on'](_0x3c97('0x3'),(_0x3faf84,_0x22ce15)=>{this['view']['focusTracker'][_0x3c97('0x3')](_0x22ce15);}),this[_0x3c97('0x10')]['on'](_0x3c97('0x1'),(_0x5b9b79,_0x5b33e0)=>{this['view'][_0x3c97('0x14')][_0x3c97('0x1')](_0x5b33e0);}),this[_0x3c97('0x1d')](_0x3c97('0x9'),_0x146a66);}get[_0x3c97('0x7')](){return'function'==typeof this[_0x3c97('0x18')]?this[_0x3c97('0x18')]():this[_0x3c97('0x18')];}get[_0x3c97('0x12')](){return this[_0x3c97('0x2')][_0x3c97('0x1e')];}get[_0x3c97('0x16')](){const _0x524704=this[_0x3c97('0xb')]();return d[_0x3c97('0x1f')](_0x524704),_0x524704;}get[_0x3c97('0x11')](){const _0x401975=this[_0x3c97('0x16')];if(null===_0x401975)return null;if(_0x401975 instanceof _0x440505)return _0x401975;const _0x3332af=_0x401975[_0x3c97('0x6')](_0x32c83c=>function(_0x8d9c8f){const _0x71638e=_0x8d9c8f[_0x3c97('0x15')];if(_0x71638e)return!0x0;const _0x36a6c3=_0x8d9c8f['getClientRects']()[_0x3c97('0xa')](0x0);return!!_0x36a6c3;}(_0x32c83c));return 0x0===_0x3332af[_0x3c97('0x0')]?null:new _0x440505(_0x3332af[0x0]['getClientRects']()['item'](0x0));}get[_0x3c97('0x4')](){return this[_0x3c97('0x2')]['isActive'];}set['isActive'](_0x51c7c5){this[_0x3c97('0x2')]['isActive']=_0x51c7c5,this[_0x3c97('0x2')][_0x3c97('0x1e')][_0x3c97('0x4')]=_0x51c7c5;}[_0x3c97('0x1b')](){this[_0x3c97('0x2')]['targetRect']=this[_0x3c97('0x11')];}['destroy'](){this[_0x3c97('0x10')]['stopListening'](),this[_0x3c97('0x10')][_0x3c97('0x17')](),this[_0x3c97('0x13')]();}[_0x3c97('0xe')](){this[_0x3c97('0x9')]=!!this[_0x3c97('0x11')];}static[_0x3c97('0x1f')](_0x228e45){if(!(null===_0x228e45||_0x228e45 instanceof _0x440505||Array[_0x3c97('0x1a')](_0x228e45)&&_0x228e45[_0x3c97('0x19')](_0x26412d=>y(_0x26412d))))throw new _0x451243(_0x3c97('0x8'),null,{'target':_0x228e45});}[_0x3c97('0xb')](){const _0x877583=_0x3c97('0xd')==typeof this[_0x3c97('0xc')]?this[_0x3c97('0xc')]():this['_target'];return y(_0x877583)?[_0x877583]:_0x877583;}}function y(_0x29aae9){return null!==_0x29aae9&&'object'==typeof _0x29aae9&&_0x3c97('0xf')in _0x29aae9&&0x1===_0x29aae9[_0x3c97('0xf')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5ec4=['fire','refreshPositioning','left','view','get','_sort','targetRect','clear','from','blur','sort','has','listenTo','_innerViewToAnnotation','_getOrderInContent','getByInnerView','_viewToAnnotation','destroy','focus','annotationcollection-not-existing-item','stopListening','_focusTracker','set','top','updateTargetRect','add','remove','focusableElements','delete','focusTracker','length'];(function(_0x2e07ce,_0x5ec45a){const _0x3feed2=function(_0x3fa998){while(--_0x3fa998){_0x2e07ce['push'](_0x2e07ce['shift']());}};_0x3feed2(++_0x5ec45a);}(_0x5ec4,0x125));const _0x3fee=function(_0x2e07ce,_0x5ec45a){_0x2e07ce=_0x2e07ce-0x0;let _0x3feed2=_0x5ec4[_0x2e07ce];return _0x3feed2;};import{CKEditorError as _0xb63554,Collection as _0x183b29,FocusTracker as _0x474772}from'ckeditor5/src/utils';export default class x extends _0x183b29{constructor(_0x8c8ce8=[]){super(),this[_0x3fee('0x1e')]=new Map(),this[_0x3fee('0x2')]=new Map(),this[_0x3fee('0x7')]=new _0x474772(),this[_0x3fee('0x7')]['on']('change:isFocused',(_0x4a9bb2,_0x161061,_0x300280)=>{_0x300280||this[_0x3fee('0x11')](_0x3fee('0x1a'));});for(const _0x129225 of _0x8c8ce8)this[_0x3fee('0xb')](_0x129225);}get['isFocused'](){return this[_0x3fee('0x7')]['isFocused'];}[_0x3fee('0xb')](_0xdbba77){if(this[_0x3fee('0x1c')](_0xdbba77))throw new _0xb63554('annotationcollection-duplicated-item',null);this[_0x3fee('0x1e')][_0x3fee('0x8')](_0xdbba77['innerView'],_0xdbba77),this[_0x3fee('0x2')][_0x3fee('0x8')](_0xdbba77['view'],_0xdbba77);for(const _0x3118c of _0xdbba77[_0x3fee('0xd')])this[_0x3fee('0x7')][_0x3fee('0xb')](_0x3118c);this[_0x3fee('0x1d')](_0xdbba77[_0x3fee('0xd')],_0x3fee('0xb'),(_0x5e396c,_0x1828ab)=>{this[_0x3fee('0x7')]['add'](_0x1828ab);}),this['listenTo'](_0xdbba77[_0x3fee('0xd')],_0x3fee('0xc'),(_0x2e32ae,_0x1cdf9f)=>{this[_0x3fee('0x7')]['remove'](_0x1cdf9f);}),this[_0x3fee('0x1d')](_0xdbba77[_0x3fee('0x14')][_0x3fee('0xf')],'change:isFocused',(_0x1ac2a6,_0x305934,_0x4a4804)=>{_0x4a4804&&this[_0x3fee('0x11')](_0x3fee('0x4'),_0xdbba77);}),_0xdbba77['updateTargetRect']();const _0x5ebffb=this[_0x3fee('0x0')](_0xdbba77['view']['targetRect']);return super[_0x3fee('0xb')](_0xdbba77,_0x5ebffb);}[_0x3fee('0xc')](_0x3e3177){if(!this[_0x3fee('0x1c')](_0x3e3177))throw new _0xb63554(_0x3fee('0x5'),null);this[_0x3fee('0x6')](_0x3e3177[_0x3fee('0x14')][_0x3fee('0xf')]),this['stopListening'](_0x3e3177['focusableElements']);for(const _0x4e9d0f of _0x3e3177['focusableElements'])this[_0x3fee('0x7')][_0x3fee('0xc')](_0x4e9d0f);return this[_0x3fee('0x2')][_0x3fee('0xe')](_0x3e3177[_0x3fee('0x14')]),this[_0x3fee('0x1e')]['delete'](_0x3e3177['innerView']),super[_0x3fee('0xc')](_0x3e3177);}[_0x3fee('0x1')](_0x1f33e9){return this[_0x3fee('0x1e')][_0x3fee('0x15')](_0x1f33e9);}['getByView'](_0x48beea){return this[_0x3fee('0x2')][_0x3fee('0x15')](_0x48beea);}[_0x3fee('0x3')](){super[_0x3fee('0x18')](),this[_0x3fee('0x6')](),this['_innerViewToAnnotation'][_0x3fee('0x18')](),this[_0x3fee('0x2')][_0x3fee('0x18')](),this[_0x3fee('0x7')][_0x3fee('0x3')]();}[_0x3fee('0x12')](){for(const _0x133a22 of this)_0x133a22[_0x3fee('0xa')]();this['_sort']();}[_0x3fee('0x16')](){const _0x5f503f=Array[_0x3fee('0x19')](this)[_0x3fee('0x1b')]((_0x590d51,_0x3d3e5a)=>v(_0x590d51[_0x3fee('0x14')][_0x3fee('0x17')],_0x3d3e5a['view']['targetRect']));for(let _0x5eec74=_0x5f503f[_0x3fee('0x10')]-0x1;_0x5eec74>0x0;_0x5eec74--){const _0x521219=_0x5f503f[_0x5eec74];_0x5eec74!==this['getIndex'](_0x521219)&&(this[_0x3fee('0xc')](_0x521219),this[_0x3fee('0xb')](_0x521219));}}[_0x3fee('0x0')](_0x4658de){let _0x449265=0x0;if(!_0x4658de)return this['length'];for(const _0xfb4d65 of this){const _0x474041=_0xfb4d65[_0x3fee('0x14')]['targetRect'];if(_0x474041){if(v(_0x4658de,_0x474041)<0x0)return _0x449265;_0x449265++;}}return _0x449265;}}export function bindAnnotationCollections({source:_0x331057,target:_0xb3610f,filter:_0x5cd02e}){for(const _0xac8d85 of _0x331057)_0x5cd02e(_0xac8d85)&&_0xb3610f['add'](_0xac8d85);_0xb3610f[_0x3fee('0x1d')](_0x331057,_0x3fee('0xb'),(_0x21b4c9,_0xae82a3)=>{_0x5cd02e(_0xae82a3)&&_0xb3610f['add'](_0xae82a3);}),_0xb3610f['listenTo'](_0x331057,_0x3fee('0xc'),(_0xf9dd0d,_0x1c4bfb)=>{_0xb3610f['has'](_0x1c4bfb)&&_0xb3610f['remove'](_0x1c4bfb);});}function v(_0x57e9a9,_0x3e7471){if(null===_0x57e9a9&&null===_0x3e7471)return 0x0;if(null===_0x57e9a9)return-0x1;if(null===_0x3e7471)return 0x1;const _0x37bc59=_0x57e9a9[_0x3fee('0x9')]-_0x3e7471[_0x3fee('0x9')];return 0x0==_0x37bc59?_0x57e9a9[_0x3fee('0x13')]-_0x3e7471[_0x3fee('0x13')]:_0x37bc59;}
23
+ const _0x46b3=['delete','add','clear','isFocused','_sort','fire','_getOrderInContent','left','change:isFocused','annotationcollection-not-existing-item','_focusTracker','_innerViewToAnnotation','focusableElements','remove','getByView','set','refreshPositioning','focusTracker','listenTo','top','updateTargetRect','get','targetRect','innerView','length','has','_viewToAnnotation','annotationcollection-duplicated-item','view','stopListening','blur','destroy','sort','getByInnerView'];(function(_0x32d82c,_0x46b3a0){const _0x5b342e=function(_0x2b113c){while(--_0x2b113c){_0x32d82c['push'](_0x32d82c['shift']());}};_0x5b342e(++_0x46b3a0);}(_0x46b3,0x139));const _0x5b34=function(_0x32d82c,_0x46b3a0){_0x32d82c=_0x32d82c-0x0;let _0x5b342e=_0x46b3[_0x32d82c];return _0x5b342e;};import{CKEditorError as _0x2b0a31,Collection as _0x24dec0,FocusTracker as _0x5ce6a4}from'ckeditor5/src/utils';export default class x extends _0x24dec0{constructor(_0x54baca=[]){super(),this[_0x5b34('0x4')]=new Map(),this[_0x5b34('0x13')]=new Map(),this[_0x5b34('0x3')]=new _0x5ce6a4(),this[_0x5b34('0x3')]['on'](_0x5b34('0x1'),(_0x4f9084,_0x30b503,_0x20a32f)=>{_0x20a32f||this[_0x5b34('0x20')](_0x5b34('0x17'));});for(const _0x50b46b of _0x54baca)this[_0x5b34('0x1c')](_0x50b46b);}get[_0x5b34('0x1e')](){return this['_focusTracker'][_0x5b34('0x1e')];}[_0x5b34('0x1c')](_0x457093){if(this[_0x5b34('0x12')](_0x457093))throw new _0x2b0a31(_0x5b34('0x14'),null);this['_innerViewToAnnotation'][_0x5b34('0x8')](_0x457093[_0x5b34('0x10')],_0x457093),this[_0x5b34('0x13')][_0x5b34('0x8')](_0x457093[_0x5b34('0x15')],_0x457093);for(const _0x31cc8c of _0x457093[_0x5b34('0x5')])this['_focusTracker']['add'](_0x31cc8c);this[_0x5b34('0xb')](_0x457093[_0x5b34('0x5')],'add',(_0x25ff2e,_0x5b5f46)=>{this[_0x5b34('0x3')][_0x5b34('0x1c')](_0x5b5f46);}),this[_0x5b34('0xb')](_0x457093['focusableElements'],'remove',(_0x52abe8,_0x34b214)=>{this[_0x5b34('0x3')]['remove'](_0x34b214);}),this[_0x5b34('0xb')](_0x457093['view']['focusTracker'],_0x5b34('0x1'),(_0x232451,_0x3e2cbf,_0x47adcb)=>{_0x47adcb&&this['fire']('focus',_0x457093);}),_0x457093[_0x5b34('0xd')]();const _0x1c6df6=this['_getOrderInContent'](_0x457093[_0x5b34('0x15')]['targetRect']);return super[_0x5b34('0x1c')](_0x457093,_0x1c6df6);}[_0x5b34('0x6')](_0x13ec75){if(!this[_0x5b34('0x12')](_0x13ec75))throw new _0x2b0a31(_0x5b34('0x2'),null);this['stopListening'](_0x13ec75[_0x5b34('0x15')][_0x5b34('0xa')]),this[_0x5b34('0x16')](_0x13ec75[_0x5b34('0x5')]);for(const _0x9c7c9c of _0x13ec75['focusableElements'])this[_0x5b34('0x3')]['remove'](_0x9c7c9c);return this['_viewToAnnotation']['delete'](_0x13ec75[_0x5b34('0x15')]),this[_0x5b34('0x4')][_0x5b34('0x1b')](_0x13ec75[_0x5b34('0x10')]),super['remove'](_0x13ec75);}[_0x5b34('0x1a')](_0x4c51ba){return this['_innerViewToAnnotation'][_0x5b34('0xe')](_0x4c51ba);}[_0x5b34('0x7')](_0x462269){return this[_0x5b34('0x13')][_0x5b34('0xe')](_0x462269);}[_0x5b34('0x18')](){super[_0x5b34('0x1d')](),this[_0x5b34('0x16')](),this[_0x5b34('0x4')]['clear'](),this['_viewToAnnotation'][_0x5b34('0x1d')](),this[_0x5b34('0x3')][_0x5b34('0x18')]();}[_0x5b34('0x9')](){for(const _0xb1e501 of this)_0xb1e501[_0x5b34('0xd')]();this[_0x5b34('0x1f')]();}['_sort'](){const _0x117452=Array['from'](this)[_0x5b34('0x19')]((_0x20b584,_0x49b4ff)=>v(_0x20b584[_0x5b34('0x15')][_0x5b34('0xf')],_0x49b4ff[_0x5b34('0x15')]['targetRect']));for(let _0xbff35a=_0x117452['length']-0x1;_0xbff35a>0x0;_0xbff35a--){const _0x489035=_0x117452[_0xbff35a];_0xbff35a!==this['getIndex'](_0x489035)&&(this[_0x5b34('0x6')](_0x489035),this[_0x5b34('0x1c')](_0x489035));}}[_0x5b34('0x21')](_0x1ec8ec){let _0x2e8dad=0x0;if(!_0x1ec8ec)return this[_0x5b34('0x11')];for(const _0x17a1bb of this){const _0x50d70e=_0x17a1bb['view'][_0x5b34('0xf')];if(_0x50d70e){if(v(_0x1ec8ec,_0x50d70e)<0x0)return _0x2e8dad;_0x2e8dad++;}}return _0x2e8dad;}}export function bindAnnotationCollections({source:_0x176fa5,target:_0x18d0c0,filter:_0x5aeac8}){for(const _0x383164 of _0x176fa5)_0x5aeac8(_0x383164)&&_0x18d0c0[_0x5b34('0x1c')](_0x383164);_0x18d0c0[_0x5b34('0xb')](_0x176fa5,_0x5b34('0x1c'),(_0x2e2c99,_0x49846c)=>{_0x5aeac8(_0x49846c)&&_0x18d0c0[_0x5b34('0x1c')](_0x49846c);}),_0x18d0c0[_0x5b34('0xb')](_0x176fa5,'remove',(_0x15df31,_0x5a7790)=>{_0x18d0c0[_0x5b34('0x12')](_0x5a7790)&&_0x18d0c0[_0x5b34('0x6')](_0x5a7790);});}function v(_0x3b81f7,_0x45b8af){if(null===_0x3b81f7&&null===_0x45b8af)return 0x0;if(null===_0x3b81f7)return-0x1;if(null===_0x45b8af)return 0x1;const _0x1e0240=_0x3b81f7[_0x5b34('0xc')]-_0x45b8af['top'];return 0x0==_0x1e0240?_0x3b81f7[_0x5b34('0x0')]-_0x45b8af[_0x5b34('0x0')]:_0x1e0240;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x491a=['pluginName','refreshVisibility','remove','Annotations','_removeActiveAnnotation','deactivateAll','stopListening','add','change:isVisible','refreshPositioning','_visibleAnnotations','isVisible','element','_addActiveAnnotation','_activateAnnotation','fire','view','destroy','listenTo','_deactivateAllAnnotations','collection','getByInnerView','source','has','activate','activeAnnotations'];(function(_0x53a3b9,_0x491ac8){const _0x3b9b09=function(_0x4a29ea){while(--_0x4a29ea){_0x53a3b9['push'](_0x53a3b9['shift']());}};_0x3b9b09(++_0x491ac8);}(_0x491a,0x1c3));const _0x3b9b=function(_0x53a3b9,_0x491ac8){_0x53a3b9=_0x53a3b9-0x0;let _0x3b9b09=_0x491a[_0x53a3b9];return _0x3b9b09;};import{ContextPlugin as _0x59d1ff}from'ckeditor5/src/core';import _0x1d2878 from'./annotation';import _0x1e97db from'./annotationcollection';import _0x5c4aad from'./view/annotationview';export default class b extends _0x59d1ff{static get[_0x3b9b('0x11')](){return _0x3b9b('0x14');}constructor(_0x11b7eb){super(_0x11b7eb),this[_0x3b9b('0xb')]=new _0x1e97db(),this[_0x3b9b('0x1')]=new _0x1e97db(),this['set'](_0x3b9b('0x10'),new Set()),this['_bindAnnotationsToVisibleAnnotations']();}[_0x3b9b('0x18')](_0x57984f){this[_0x3b9b('0xb')][_0x3b9b('0x18')](_0x57984f);}['remove'](_0x2f6e91){this['collection'][_0x3b9b('0x13')](_0x2f6e91),_0x2f6e91[_0x3b9b('0x8')]();}['refreshVisibility'](){for(const _0x168c0a of this[_0x3b9b('0xb')])_0x168c0a[_0x3b9b('0x12')]();}[_0x3b9b('0x0')](){this[_0x3b9b('0x1')][_0x3b9b('0x0')]();}[_0x3b9b('0xc')](_0x324fd0){return this[_0x3b9b('0xb')][_0x3b9b('0xc')](_0x324fd0);}[_0x3b9b('0x16')](){this[_0x3b9b('0x6')](_0x3b9b('0xa'));}['destroy'](){for(const _0x2d1640 of this[_0x3b9b('0xb')])_0x2d1640[_0x3b9b('0x8')]();this[_0x3b9b('0x1')][_0x3b9b('0x8')](),this['collection'][_0x3b9b('0x8')](),super['destroy']();}[_0x3b9b('0xf')](_0x239c19){this[_0x3b9b('0x6')](_0x3b9b('0x5'),_0x239c19);}['createAnnotation'](_0x26acfc){return new _0x1d2878(_0x26acfc);}['createAnnotationView'](_0x17b921,_0x226db9){return new _0x5c4aad(_0x17b921,_0x226db9);}[_0x3b9b('0x4')](_0x58829b){const _0x25059d=new Set(this[_0x3b9b('0x10')]);_0x25059d[_0x3b9b('0x18')](_0x58829b),this[_0x3b9b('0x10')]=_0x25059d;}[_0x3b9b('0x15')](_0x78bbf3){const _0x575cec=new Set(this[_0x3b9b('0x10')]);_0x575cec['delete'](_0x78bbf3),this['activeAnnotations']=_0x575cec;}['_bindAnnotationsToVisibleAnnotations'](){const _0x42900b=this[_0x3b9b('0xb')],_0x29f9e9=this[_0x3b9b('0x1')];function _0x560870(_0x1ff2a0){const _0x14fa66=_0x1ff2a0[_0x3b9b('0xd')];_0x14fa66[_0x3b9b('0x2')]&&!_0x29f9e9[_0x3b9b('0xe')](_0x14fa66)?_0x29f9e9[_0x3b9b('0x18')](_0x14fa66):!_0x14fa66[_0x3b9b('0x2')]&&_0x29f9e9[_0x3b9b('0xe')](_0x14fa66)&&_0x29f9e9[_0x3b9b('0x13')](_0x14fa66),_0x14fa66['view']['focusTracker'][_0x3b9b('0x13')](_0x14fa66[_0x3b9b('0x7')][_0x3b9b('0x3')]),_0x14fa66[_0x3b9b('0x7')]['focusTracker']['add'](_0x14fa66['view'][_0x3b9b('0x3')]);}this['listenTo'](_0x42900b,_0x3b9b('0x18'),(_0x1f7d0d,_0x2c75b5)=>{_0x2c75b5['isVisible']&&_0x29f9e9[_0x3b9b('0x18')](_0x2c75b5),this['listenTo'](_0x2c75b5,_0x3b9b('0x19'),_0x560870);}),this[_0x3b9b('0x9')](_0x42900b,_0x3b9b('0x13'),(_0x4ed42b,_0x200467)=>{_0x29f9e9['has'](_0x200467)&&_0x29f9e9[_0x3b9b('0x13')](_0x200467),this[_0x3b9b('0x17')](_0x200467,_0x3b9b('0x19'),_0x560870);});}}
23
+ const _0x32ba=['deactivateAll','add','_bindAnnotationsToVisibleAnnotations','set','activeAnnotations','refreshPositioning','delete','activate','view','isVisible','createAnnotationView','change:isVisible','pluginName','refreshVisibility','has','focusTracker','_activateAnnotation','collection','_removeActiveAnnotation','stopListening','fire','remove','element','getByInnerView','_addActiveAnnotation','createAnnotation','destroy','_visibleAnnotations','Annotations','listenTo'];(function(_0x57b9df,_0x32ba24){const _0x58108b=function(_0x2cf88d){while(--_0x2cf88d){_0x57b9df['push'](_0x57b9df['shift']());}};_0x58108b(++_0x32ba24);}(_0x32ba,0x1d4));const _0x5810=function(_0x57b9df,_0x32ba24){_0x57b9df=_0x57b9df-0x0;let _0x58108b=_0x32ba[_0x57b9df];return _0x58108b;};import{ContextPlugin as _0x4c3070}from'ckeditor5/src/core';import _0x726fae from'./annotation';import _0x4380e3 from'./annotationcollection';import _0x2418fc from'./view/annotationview';export default class b extends _0x4c3070{static get[_0x5810('0x18')](){return _0x5810('0xa');}constructor(_0x40832e){super(_0x40832e),this[_0x5810('0x1d')]=new _0x4380e3(),this[_0x5810('0x9')]=new _0x4380e3(),this[_0x5810('0xf')](_0x5810('0x10'),new Set()),this[_0x5810('0xe')]();}['add'](_0x365e81){this[_0x5810('0x1d')][_0x5810('0xd')](_0x365e81);}['remove'](_0x330167){this[_0x5810('0x1d')][_0x5810('0x3')](_0x330167),_0x330167[_0x5810('0x8')]();}[_0x5810('0x19')](){for(const _0x4d94a5 of this[_0x5810('0x1d')])_0x4d94a5[_0x5810('0x19')]();}[_0x5810('0x11')](){this[_0x5810('0x9')][_0x5810('0x11')]();}[_0x5810('0x5')](_0xa2e96f){return this[_0x5810('0x1d')][_0x5810('0x5')](_0xa2e96f);}[_0x5810('0xc')](){this[_0x5810('0x2')]('_deactivateAllAnnotations');}[_0x5810('0x8')](){for(const _0x5c2aa6 of this['collection'])_0x5c2aa6['destroy']();this[_0x5810('0x9')][_0x5810('0x8')](),this['collection'][_0x5810('0x8')](),super[_0x5810('0x8')]();}[_0x5810('0x13')](_0x50373a){this[_0x5810('0x2')](_0x5810('0x1c'),_0x50373a);}[_0x5810('0x7')](_0x3a3916){return new _0x726fae(_0x3a3916);}[_0x5810('0x16')](_0x1cd06e,_0x56b49a){return new _0x2418fc(_0x1cd06e,_0x56b49a);}[_0x5810('0x6')](_0x42f361){const _0x236fa9=new Set(this[_0x5810('0x10')]);_0x236fa9['add'](_0x42f361),this[_0x5810('0x10')]=_0x236fa9;}[_0x5810('0x0')](_0x5829f4){const _0x5c32a2=new Set(this[_0x5810('0x10')]);_0x5c32a2[_0x5810('0x12')](_0x5829f4),this[_0x5810('0x10')]=_0x5c32a2;}[_0x5810('0xe')](){const _0x39dbee=this[_0x5810('0x1d')],_0x5b80c6=this[_0x5810('0x9')];function _0x22cfe1(_0x1fdb05){const _0x1a9467=_0x1fdb05['source'];_0x1a9467['isVisible']&&!_0x5b80c6[_0x5810('0x1a')](_0x1a9467)?_0x5b80c6[_0x5810('0xd')](_0x1a9467):!_0x1a9467[_0x5810('0x15')]&&_0x5b80c6[_0x5810('0x1a')](_0x1a9467)&&_0x5b80c6[_0x5810('0x3')](_0x1a9467),_0x1a9467[_0x5810('0x14')]['focusTracker']['remove'](_0x1a9467[_0x5810('0x14')]['element']),_0x1a9467['view'][_0x5810('0x1b')]['add'](_0x1a9467[_0x5810('0x14')][_0x5810('0x4')]);}this['listenTo'](_0x39dbee,_0x5810('0xd'),(_0x181a51,_0x46ee28)=>{_0x46ee28[_0x5810('0x15')]&&_0x5b80c6[_0x5810('0xd')](_0x46ee28),this[_0x5810('0xb')](_0x46ee28,_0x5810('0x17'),_0x22cfe1);}),this[_0x5810('0xb')](_0x39dbee,_0x5810('0x3'),(_0x514a5f,_0x3fc0b0)=>{_0x5b80c6['has'](_0x3fc0b0)&&_0x5b80c6['remove'](_0x3fc0b0),this[_0x5810('0x1')](_0x3fc0b0,_0x5810('0x17'),_0x22cfe1);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3e8c=['change:activeAnnotation','get','annotationsuis-annotation-mismatch','AnnotationsUIs','annotationsuis-register-invalid-interface','isActive','refilterAnnotations','_visibleAnnotations','find','listenTo','setActiveAnnotation','size','deactivateAll','filter','hasActive','activeAnnotations','_activateAnnotation','_uis','from','activate','annotationsuis-missing-ui','init','function','push','annotationsuis-register-already-registered','stopListening','collection','deactivate','pluginName','attach','length','destroy','has','activeUIs','set','type','add','context','detach','delete','_assertAnnotationDoesNotBelongToMultipleUIs','plugins','_setSelectedAnnotations','register','_deactivateAllAnnotations','_uisData'];(function(_0x6f9690,_0x3e8c82){const _0x5d7eac=function(_0xe605da){while(--_0xe605da){_0x6f9690['push'](_0x6f9690['shift']());}};_0x5d7eac(++_0x3e8c82);}(_0x3e8c,0x81));const _0x5d7e=function(_0x6f9690,_0x3e8c82){_0x6f9690=_0x6f9690-0x0;let _0x5d7eac=_0x3e8c[_0x6f9690];return _0x5d7eac;};import{ContextPlugin as _0x1e9bb8}from'ckeditor5/src/core';import{CKEditorError as _0x1a45d6}from'ckeditor5/src/utils';import _0xee8372,{bindAnnotationCollections as _0x4f41d9}from'./annotationcollection';import _0x442de0 from'./annotations';export default class M extends _0x1e9bb8{static get['requires'](){return[_0x442de0];}static get[_0x5d7e('0x25')](){return _0x5d7e('0xc');}constructor(_0x489912){super(_0x489912),this[_0x5d7e('0x2a')]=new Set(),this['_uis']=new Map(),this[_0x5d7e('0x8')]=new Map();}[_0x5d7e('0x1e')](){const _0x34abec=this[_0x5d7e('0x0')]['plugins'][_0x5d7e('0xa')](_0x442de0);this[_0x5d7e('0x12')](_0x34abec,_0x5d7e('0x19'),(_0xc79007,_0x42a938)=>{for(const _0x5f03ee of this[_0x5d7e('0x2a')]){const _0x3ad975=this[_0x5d7e('0x1a')][_0x5d7e('0xa')](_0x5f03ee);(0x0,this[_0x5d7e('0x8')][_0x5d7e('0xa')](_0x5f03ee)['filter'])(_0x42a938)&&_0x3ad975[_0x5d7e('0x13')](_0x42a938);}}),this['listenTo'](_0x34abec,_0x5d7e('0x7'),()=>{for(const _0x2f0040 of this['activeUIs']){this['_uis'][_0x5d7e('0xa')](_0x2f0040)[_0x5d7e('0x13')](null);}}),this['listenTo'](_0x34abec['_visibleAnnotations'],_0x5d7e('0x2d'),(_0x58db70,_0x33535f)=>{this[_0x5d7e('0x3')](_0x33535f);});}[_0x5d7e('0x17')](){return this[_0x5d7e('0x2a')][_0x5d7e('0x14')]>0x0;}[_0x5d7e('0xe')](_0x175a83){return this[_0x5d7e('0x2a')][_0x5d7e('0x29')](_0x175a83);}[_0x5d7e('0x1c')](_0x58a41e,_0x26923f=()=>!0x0){const _0x12d253=this[_0x5d7e('0x0')][_0x5d7e('0x4')][_0x5d7e('0xa')](_0x442de0);if(!this[_0x5d7e('0x1a')][_0x5d7e('0x29')](_0x58a41e))throw new _0x1a45d6(_0x5d7e('0x1d'),this,{'uiName':_0x58a41e});this[_0x5d7e('0xe')](_0x58a41e)&&this[_0x5d7e('0x24')](_0x58a41e),this['activeUIs']['add'](_0x58a41e);const _0x26b739=new _0xee8372(),_0x17715f=_0x12d253[_0x5d7e('0x10')];_0x4f41d9({'source':_0x17715f,'target':_0x26b739,'filter':_0x26923f}),this[_0x5d7e('0x8')][_0x5d7e('0x2b')](_0x58a41e,{'collection':_0x26b739,'filter':_0x26923f});const _0x56c9cb=this[_0x5d7e('0x1a')][_0x5d7e('0xa')](_0x58a41e);_0x56c9cb[_0x5d7e('0x26')](_0x26b739),this['listenTo'](_0x56c9cb,_0x5d7e('0x9'),(_0x230199,_0x1ab1c7,_0x3758d8,_0x51ef7f)=>{_0x51ef7f&&_0x12d253['_removeActiveAnnotation'](_0x51ef7f),_0x3758d8&&_0x12d253['_addActiveAnnotation'](_0x3758d8);});}[_0x5d7e('0x24')](_0x5c435f){if(this['activeUIs'][_0x5d7e('0x2')](_0x5c435f),!this[_0x5d7e('0x1a')][_0x5d7e('0x29')](_0x5c435f))throw new _0x1a45d6(_0x5d7e('0x1d'),this,{'uiName':_0x5c435f});const _0xc4cc3a=this['_uis'][_0x5d7e('0xa')](_0x5c435f);_0xc4cc3a['detach'](),this[_0x5d7e('0x22')](_0xc4cc3a),this[_0x5d7e('0x8')][_0x5d7e('0xa')](_0x5c435f)[_0x5d7e('0x23')][_0x5d7e('0x28')](),this['_uisData'][_0x5d7e('0x2')](_0x5c435f);}['switchTo'](_0x27eada){if(!this[_0x5d7e('0x1a')][_0x5d7e('0x29')](_0x27eada))throw new _0x1a45d6('annotationsuis-missing-ui',this,{'uiName':_0x27eada});const _0x677ac1=this[_0x5d7e('0x0')][_0x5d7e('0x4')][_0x5d7e('0xa')](_0x442de0),_0x531df0=Array[_0x5d7e('0x1b')](_0x677ac1[_0x5d7e('0x18')])[0x0]||null;this[_0x5d7e('0x15')](),this[_0x5d7e('0x1c')](_0x27eada);const _0x13b440=this[_0x5d7e('0x1a')]['get'](_0x27eada);_0x13b440[_0x5d7e('0x13')](_0x531df0),_0x13b440[_0x5d7e('0x5')]&&_0x531df0&&_0x13b440[_0x5d7e('0x5')]([_0x531df0]);}['deactivateAll'](){for(const _0x3a3efa of this[_0x5d7e('0x2a')])this[_0x5d7e('0x24')](_0x3a3efa);}[_0x5d7e('0x6')](_0x1b1c66,_0x129b90){if(this[_0x5d7e('0x1a')][_0x5d7e('0x29')](_0x1b1c66))throw new _0x1a45d6(_0x5d7e('0x21'));if(_0x5d7e('0x1f')!=typeof _0x129b90[_0x5d7e('0x26')]||_0x5d7e('0x1f')!=typeof _0x129b90[_0x5d7e('0x1')]||_0x5d7e('0x1f')!=typeof _0x129b90['setActiveAnnotation'])throw new _0x1a45d6(_0x5d7e('0xd'),null);this[_0x5d7e('0x1a')]['set'](_0x1b1c66,_0x129b90);}[_0x5d7e('0xf')](){const _0x34a016=this[_0x5d7e('0x0')]['plugins']['get'](_0x442de0)[_0x5d7e('0x23')],_0x1f213a=new Map(),_0x566e2c=Array[_0x5d7e('0x1b')](this[_0x5d7e('0x2a')]);for(const _0x3fade1 of this[_0x5d7e('0x2a')]){const _0x28e03c=this[_0x5d7e('0x8')]['get'](_0x3fade1)[_0x5d7e('0x23')];for(const _0x2a0638 of _0x28e03c)_0x1f213a[_0x5d7e('0x2b')](_0x2a0638,_0x3fade1);}for(const _0x1a7c71 of _0x34a016){const _0x5c01c8=_0x1f213a[_0x5d7e('0xa')](_0x1a7c71);this[_0x5d7e('0x3')](_0x1a7c71);const _0x117b02=_0x566e2c[_0x5d7e('0x11')](_0x57d67c=>this[_0x5d7e('0x8')][_0x5d7e('0xa')](_0x57d67c)[_0x5d7e('0x16')](_0x1a7c71));_0x5c01c8!==_0x117b02&&(_0x5c01c8&&this[_0x5d7e('0x8')]['get'](_0x5c01c8)['collection']['remove'](_0x1a7c71),_0x117b02&&this[_0x5d7e('0x8')][_0x5d7e('0xa')](_0x117b02)[_0x5d7e('0x23')][_0x5d7e('0x2d')](_0x1a7c71));}}[_0x5d7e('0x28')](){this[_0x5d7e('0x15')](),super[_0x5d7e('0x28')]();}[_0x5d7e('0x3')](_0x2e025b){const _0x266aec=[];for(const _0x330883 of this[_0x5d7e('0x2a')]){(0x0,this[_0x5d7e('0x8')]['get'](_0x330883)['filter'])(_0x2e025b)&&_0x266aec[_0x5d7e('0x20')](_0x330883);}if(_0x266aec[_0x5d7e('0x27')]>0x1)throw new _0x1a45d6(_0x5d7e('0xb'),null,{'matchedUIs':_0x266aec,'annotationType':_0x2e025b[_0x5d7e('0x2c')]});}}
23
+ const _0x1339=['delete','init','attach','set','AnnotationsUIs','setActiveAnnotation','activeAnnotations','collection','type','_uis','_setSelectedAnnotations','annotationsuis-register-invalid-interface','plugins','_removeActiveAnnotation','has','pluginName','function','get','filter','register','_deactivateAllAnnotations','deactivateAll','requires','activeUIs','stopListening','_addActiveAnnotation','from','hasActive','context','push','refilterAnnotations','destroy','isActive','find','_activateAnnotation','_visibleAnnotations','_uisData','_assertAnnotationDoesNotBelongToMultipleUIs','switchTo','activate','annotationsuis-missing-ui','listenTo','deactivate','change:activeAnnotation','add','annotationsuis-annotation-mismatch','size'];(function(_0x3344b7,_0x1339d0){const _0x3287de=function(_0x1af834){while(--_0x1af834){_0x3344b7['push'](_0x3344b7['shift']());}};_0x3287de(++_0x1339d0);}(_0x1339,0x13b));const _0x3287=function(_0x3344b7,_0x1339d0){_0x3344b7=_0x3344b7-0x0;let _0x3287de=_0x1339[_0x3344b7];return _0x3287de;};import{ContextPlugin as _0x568308}from'ckeditor5/src/core';import{CKEditorError as _0x238389}from'ckeditor5/src/utils';import _0x592899,{bindAnnotationCollections as _0xf240f1}from'./annotationcollection';import _0x2601da from'./annotations';export default class M extends _0x568308{static get[_0x3287('0x24')](){return[_0x2601da];}static get[_0x3287('0x1d')](){return _0x3287('0x12');}constructor(_0x50748b){super(_0x50748b),this['activeUIs']=new Set(),this[_0x3287('0x17')]=new Map(),this[_0x3287('0x3')]=new Map();}[_0x3287('0xf')](){const _0x8d1d35=this[_0x3287('0x2a')]['plugins'][_0x3287('0x1f')](_0x2601da);this['listenTo'](_0x8d1d35,_0x3287('0x1'),(_0x28805c,_0x318bba)=>{for(const _0x5b54fb of this[_0x3287('0x25')]){const _0x57227f=this[_0x3287('0x17')]['get'](_0x5b54fb);(0x0,this['_uisData']['get'](_0x5b54fb)['filter'])(_0x318bba)&&_0x57227f['setActiveAnnotation'](_0x318bba);}}),this[_0x3287('0x8')](_0x8d1d35,_0x3287('0x22'),()=>{for(const _0x1177b3 of this['activeUIs']){this[_0x3287('0x17')][_0x3287('0x1f')](_0x1177b3)[_0x3287('0x13')](null);}}),this[_0x3287('0x8')](_0x8d1d35[_0x3287('0x2')],_0x3287('0xb'),(_0x574c43,_0x5346b5)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x5346b5);});}[_0x3287('0x29')](){return this['activeUIs'][_0x3287('0xd')]>0x0;}[_0x3287('0x2e')](_0x53bdb7){return this[_0x3287('0x25')][_0x3287('0x1c')](_0x53bdb7);}['activate'](_0x35de47,_0x3b6b78=()=>!0x0){const _0x5d6e05=this[_0x3287('0x2a')][_0x3287('0x1a')][_0x3287('0x1f')](_0x2601da);if(!this['_uis'][_0x3287('0x1c')](_0x35de47))throw new _0x238389(_0x3287('0x7'),this,{'uiName':_0x35de47});this['isActive'](_0x35de47)&&this[_0x3287('0x9')](_0x35de47),this[_0x3287('0x25')]['add'](_0x35de47);const _0x1926ad=new _0x592899(),_0x38f9b4=_0x5d6e05['_visibleAnnotations'];_0xf240f1({'source':_0x38f9b4,'target':_0x1926ad,'filter':_0x3b6b78}),this['_uisData']['set'](_0x35de47,{'collection':_0x1926ad,'filter':_0x3b6b78});const _0x3b6e69=this[_0x3287('0x17')][_0x3287('0x1f')](_0x35de47);_0x3b6e69[_0x3287('0x10')](_0x1926ad),this['listenTo'](_0x3b6e69,_0x3287('0xa'),(_0x16481c,_0x4c86e0,_0x127f8c,_0x344056)=>{_0x344056&&_0x5d6e05[_0x3287('0x1b')](_0x344056),_0x127f8c&&_0x5d6e05[_0x3287('0x27')](_0x127f8c);});}[_0x3287('0x9')](_0x4effbb){if(this['activeUIs'][_0x3287('0xe')](_0x4effbb),!this[_0x3287('0x17')][_0x3287('0x1c')](_0x4effbb))throw new _0x238389(_0x3287('0x7'),this,{'uiName':_0x4effbb});const _0x2f47fd=this[_0x3287('0x17')]['get'](_0x4effbb);_0x2f47fd['detach'](),this[_0x3287('0x26')](_0x2f47fd),this['_uisData'][_0x3287('0x1f')](_0x4effbb)[_0x3287('0x15')][_0x3287('0x2d')](),this[_0x3287('0x3')][_0x3287('0xe')](_0x4effbb);}[_0x3287('0x5')](_0x3441b5){if(!this[_0x3287('0x17')]['has'](_0x3441b5))throw new _0x238389('annotationsuis-missing-ui',this,{'uiName':_0x3441b5});const _0x4c318e=this[_0x3287('0x2a')][_0x3287('0x1a')][_0x3287('0x1f')](_0x2601da),_0x2c5764=Array['from'](_0x4c318e[_0x3287('0x14')])[0x0]||null;this['deactivateAll'](),this[_0x3287('0x6')](_0x3441b5);const _0x177eb9=this[_0x3287('0x17')]['get'](_0x3441b5);_0x177eb9[_0x3287('0x13')](_0x2c5764),_0x177eb9[_0x3287('0x18')]&&_0x2c5764&&_0x177eb9[_0x3287('0x18')]([_0x2c5764]);}[_0x3287('0x23')](){for(const _0x72b05c of this[_0x3287('0x25')])this['deactivate'](_0x72b05c);}[_0x3287('0x21')](_0x53dcf8,_0x39792d){if(this[_0x3287('0x17')]['has'](_0x53dcf8))throw new _0x238389('annotationsuis-register-already-registered');if('function'!=typeof _0x39792d[_0x3287('0x10')]||_0x3287('0x1e')!=typeof _0x39792d['detach']||'function'!=typeof _0x39792d[_0x3287('0x13')])throw new _0x238389(_0x3287('0x19'),null);this[_0x3287('0x17')][_0x3287('0x11')](_0x53dcf8,_0x39792d);}[_0x3287('0x2c')](){const _0x2d7f1e=this['context'][_0x3287('0x1a')]['get'](_0x2601da)['collection'],_0x5b2b54=new Map(),_0x462b85=Array[_0x3287('0x28')](this[_0x3287('0x25')]);for(const _0x54cb44 of this[_0x3287('0x25')]){const _0x47cded=this['_uisData'][_0x3287('0x1f')](_0x54cb44)['collection'];for(const _0x3d2d03 of _0x47cded)_0x5b2b54[_0x3287('0x11')](_0x3d2d03,_0x54cb44);}for(const _0x465cdb of _0x2d7f1e){const _0xf6201d=_0x5b2b54[_0x3287('0x1f')](_0x465cdb);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x465cdb);const _0x3e3b5a=_0x462b85[_0x3287('0x0')](_0x201cd6=>this['_uisData'][_0x3287('0x1f')](_0x201cd6)[_0x3287('0x20')](_0x465cdb));_0xf6201d!==_0x3e3b5a&&(_0xf6201d&&this[_0x3287('0x3')][_0x3287('0x1f')](_0xf6201d)[_0x3287('0x15')]['remove'](_0x465cdb),_0x3e3b5a&&this[_0x3287('0x3')][_0x3287('0x1f')](_0x3e3b5a)[_0x3287('0x15')][_0x3287('0xb')](_0x465cdb));}}[_0x3287('0x2d')](){this['deactivateAll'](),super[_0x3287('0x2d')]();}[_0x3287('0x4')](_0x3136ae){const _0x1822ca=[];for(const _0x4b2289 of this['activeUIs']){(0x0,this[_0x3287('0x3')][_0x3287('0x1f')](_0x4b2289)['filter'])(_0x3136ae)&&_0x1822ca[_0x3287('0x2b')](_0x4b2289);}if(_0x1822ca['length']>0x1)throw new _0x238389(_0x3287('0xc'),null,{'matchedUIs':_0x1822ca,'annotationType':_0x3136ae[_0x3287('0x16')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4cdb=['getRanges','model','annotation','hasDomSelection','refreshSelectedViews','pluginName','change:range','remove','requires','registerAnnotation','directChange','addSourceCollector','uiUpdate','selection','cancel','listenTo','editorannotations-invalid-source-callback','sort','fire','document','_dataCollectors','view','delete','collection','refresh','isCollapsed','element','init','has','range','_editorAnnotations','editor','update','EditorAnnotations','function','editing','blur','isEqual','from','containsRange','focusTracker','_editorAnnotationsData','plugins','add'];(function(_0x10e3ff,_0x4cdb8a){const _0x2076cf=function(_0x3839c4){while(--_0x3839c4){_0x10e3ff['push'](_0x10e3ff['shift']());}};_0x2076cf(++_0x4cdb8a);}(_0x4cdb,0xaa));const _0x2076=function(_0x10e3ff,_0x4cdb8a){_0x10e3ff=_0x10e3ff-0x0;let _0x2076cf=_0x4cdb[_0x10e3ff];return _0x2076cf;};import{Plugin as _0x42a95c}from'ckeditor5/src/core';import{CKEditorError as _0x16c200}from'ckeditor5/src/utils';import{debounce as _0x1d3262}from'lodash-es';import _0x16e8f6 from'./annotations';export default class k extends _0x42a95c{static get[_0x2076('0xe')](){return[_0x16e8f6];}static get[_0x2076('0xb')](){return _0x2076('0x27');}constructor(_0x53a8c3){super(_0x53a8c3),this['_dataCollectors']=new Set(),this[_0x2076('0x24')]=new Set();}[_0x2076('0x21')](){const _0x21708d=this[_0x2076('0x25')],_0x5af893=_0x21708d[_0x2076('0x7')]['document'][_0x2076('0x13')],_0x464bcd=_0x1d3262(()=>this[_0x2076('0xa')](),0xa);_0x5af893['on'](_0x2076('0xc'),(_0x3d4405,_0x349840)=>{_0x349840[_0x2076('0x10')]&&(_0x464bcd[_0x2076('0x14')](),this[_0x2076('0xa')]());}),this[_0x2076('0x15')](_0x21708d[_0x2076('0x29')][_0x2076('0x1b')]['document'],'change:isFocused',(_0x30632b,_0x5604e1,_0x2b1c5c)=>{_0x2b1c5c&&_0x464bcd();}),this[_0x2076('0x15')](_0x21708d['ui'][_0x2076('0x2')],'change:isFocused',(_0x178971,_0x236be2,_0x1cca44)=>{_0x1cca44||_0x21708d['isReadOnly']||this['fire'](_0x2076('0x2a'),{'isAnnotationTracked':_0x572f5d=>this[_0x2076('0x3')][_0x2076('0x22')](_0x572f5d['innerView'])});}),this[_0x2076('0x15')](this['editor']['ui'],_0x2076('0x26'),()=>this[_0x2076('0x18')](_0x2076('0x12')));}[_0x2076('0xf')](_0x2c3985){if(this['_editorAnnotations'][_0x2076('0x22')](_0x2c3985[_0x2076('0x1b')]))return;this['_editorAnnotations'][_0x2076('0x5')](_0x2c3985['view']),this['editor']['ui'][_0x2076('0x2')][_0x2076('0x5')](_0x2c3985[_0x2076('0x1b')]['element']);const _0x50acab=this[_0x2076('0x25')][_0x2076('0x4')]['get'](_0x16e8f6);this[_0x2076('0x15')](_0x50acab[_0x2076('0x1d')],_0x2076('0xd'),(_0x241f98,_0x40705f)=>{this[_0x2076('0x25')]['ui'][_0x2076('0x2')][_0x2076('0xd')](_0x40705f['view'][_0x2076('0x20')]),this[_0x2076('0x24')][_0x2076('0x1c')](_0x40705f[_0x2076('0x1b')]);});}[_0x2076('0x9')](){return this[_0x2076('0x25')]['editing'][_0x2076('0x1b')]['hasDomSelection'];}[_0x2076('0x11')](_0x444108){if(_0x2076('0x28')!=typeof _0x444108)throw new _0x16c200(_0x2076('0x16'));this[_0x2076('0x1a')][_0x2076('0x5')](_0x444108);}['refreshSelectedViews'](){this[_0x2076('0x18')](_0x2076('0x1e'));}['getOrderedSelectedAnnotations']({activeAnnotation:_0x2bc608,annotations:_0x259879}){const _0x23137d=[],_0x39b943=this[_0x2076('0x25')]['model'][_0x2076('0x19')]['selection'],_0x22f6ed=Array[_0x2076('0x0')](_0x39b943[_0x2076('0x6')]());for(const [_0x1ab604,_0xd83149]of this[_0x2076('0x3')]){const _0x4b3e54=_0xcdfd55(_0xd83149),_0x1ae01e=_0x259879['getByInnerView'](_0x1ab604);_0x4b3e54&&_0x1ae01e&&_0x23137d['push']({'annotation':_0x1ae01e,'range':_0x4b3e54});}function _0xcdfd55(_0x5d28bd){for(const _0x588a52 of _0x5d28bd)for(const _0x35596b of _0x22f6ed)if(_0x588a52['containsRange'](_0x35596b,!_0x39b943[_0x2076('0x1f')]))return _0x588a52;return null;}return _0x23137d[_0x2076('0x17')]((_0x2e4f90,_0x124436)=>{const _0x38abf0=_0x2e4f90[_0x2076('0x23')],_0x48b3fb=_0x124436[_0x2076('0x23')];if(!_0x38abf0[_0x2076('0x2b')](_0x48b3fb)){if(_0x38abf0[_0x2076('0x1')](_0x48b3fb,!0x0))return 0x1;if(_0x48b3fb[_0x2076('0x1')](_0x38abf0,!0x0))return-0x1;}return _0x2e4f90[_0x2076('0x8')]==_0x2bc608?-0x1:_0x124436[_0x2076('0x8')]==_0x2bc608?0x1:0x0;})['map'](_0x1e3ca2=>_0x1e3ca2[_0x2076('0x8')]);}get[_0x2076('0x3')](){const _0x465407=new Map();for(const _0x28df52 of Array[_0x2076('0x0')](this[_0x2076('0x1a')]))for(const [_0x1da194,_0xa3df59]of _0x28df52())_0x465407['set'](_0x1da194,_0xa3df59);return _0x465407;}}
23
+ const _0x1a9a=['isReadOnly','range','hasDomSelection','focusTracker','element','set','isEqual','pluginName','editing','blur','has','refresh','editorannotations-invalid-source-callback','init','view','uiUpdate','annotation','change:isFocused','_dataCollectors','listenTo','sort','remove','refreshSelectedViews','from','registerAnnotation','selection','addSourceCollector','update','fire','add','getOrderedSelectedAnnotations','_editorAnnotationsData','isCollapsed','model','_editorAnnotations','map','containsRange','document','editor','requires','change:range','getRanges','cancel','getByInnerView'];(function(_0x345753,_0x1a9a73){const _0x4da8fd=function(_0x5e48e7){while(--_0x5e48e7){_0x345753['push'](_0x345753['shift']());}};_0x4da8fd(++_0x1a9a73);}(_0x1a9a,0x140));const _0x4da8=function(_0x345753,_0x1a9a73){_0x345753=_0x345753-0x0;let _0x4da8fd=_0x1a9a[_0x345753];return _0x4da8fd;};import{Plugin as _0x45d586}from'ckeditor5/src/core';import{CKEditorError as _0x475640}from'ckeditor5/src/utils';import{debounce as _0x462c48}from'lodash-es';import _0x232416 from'./annotations';export default class k extends _0x45d586{static get[_0x4da8('0x1b')](){return[_0x232416];}static get[_0x4da8('0x27')](){return'EditorAnnotations';}constructor(_0x41214e){super(_0x41214e),this['_dataCollectors']=new Set(),this[_0x4da8('0x16')]=new Set();}[_0x4da8('0x1')](){const _0x4e9c37=this[_0x4da8('0x1a')],_0xff0b4c=_0x4e9c37[_0x4da8('0x15')][_0x4da8('0x19')][_0x4da8('0xd')],_0x3ee9ae=_0x462c48(()=>this['refreshSelectedViews'](),0xa);_0xff0b4c['on'](_0x4da8('0x1c'),(_0x5159b4,_0x1d4806)=>{_0x1d4806['directChange']&&(_0x3ee9ae[_0x4da8('0x1e')](),this[_0x4da8('0xa')]());}),this['listenTo'](_0x4e9c37[_0x4da8('0x28')][_0x4da8('0x2')][_0x4da8('0x19')],_0x4da8('0x5'),(_0x37fd20,_0x429068,_0x3880a1)=>{_0x3880a1&&_0x3ee9ae();}),this['listenTo'](_0x4e9c37['ui'][_0x4da8('0x23')],_0x4da8('0x5'),(_0x46170c,_0x241816,_0x2287fd)=>{_0x2287fd||_0x4e9c37[_0x4da8('0x20')]||this[_0x4da8('0x10')](_0x4da8('0x29'),{'isAnnotationTracked':_0x20db5f=>this[_0x4da8('0x13')][_0x4da8('0x2a')](_0x20db5f['innerView'])});}),this['listenTo'](this['editor']['ui'],_0x4da8('0xf'),()=>this[_0x4da8('0x10')](_0x4da8('0x3')));}[_0x4da8('0xc')](_0x50fbe8){if(this[_0x4da8('0x16')][_0x4da8('0x2a')](_0x50fbe8['view']))return;this[_0x4da8('0x16')]['add'](_0x50fbe8[_0x4da8('0x2')]),this[_0x4da8('0x1a')]['ui']['focusTracker'][_0x4da8('0x11')](_0x50fbe8[_0x4da8('0x2')]['element']);const _0x41c6a8=this[_0x4da8('0x1a')]['plugins']['get'](_0x232416);this[_0x4da8('0x7')](_0x41c6a8['collection'],'remove',(_0x283bb9,_0x5b51a1)=>{this[_0x4da8('0x1a')]['ui']['focusTracker'][_0x4da8('0x9')](_0x5b51a1['view'][_0x4da8('0x24')]),this[_0x4da8('0x16')]['delete'](_0x5b51a1[_0x4da8('0x2')]);});}[_0x4da8('0x22')](){return this[_0x4da8('0x1a')][_0x4da8('0x28')][_0x4da8('0x2')][_0x4da8('0x22')];}[_0x4da8('0xe')](_0x5c8485){if('function'!=typeof _0x5c8485)throw new _0x475640(_0x4da8('0x0'));this[_0x4da8('0x6')][_0x4da8('0x11')](_0x5c8485);}[_0x4da8('0xa')](){this[_0x4da8('0x10')](_0x4da8('0x2b'));}[_0x4da8('0x12')]({activeAnnotation:_0x1d66e3,annotations:_0x4414eb}){const _0x1f865d=[],_0x370701=this[_0x4da8('0x1a')]['model'][_0x4da8('0x19')]['selection'],_0x736728=Array[_0x4da8('0xb')](_0x370701[_0x4da8('0x1d')]());for(const [_0x19c4bc,_0xd43016]of this[_0x4da8('0x13')]){const _0x1aee41=_0x40133e(_0xd43016),_0x10d6e3=_0x4414eb[_0x4da8('0x1f')](_0x19c4bc);_0x1aee41&&_0x10d6e3&&_0x1f865d['push']({'annotation':_0x10d6e3,'range':_0x1aee41});}function _0x40133e(_0xd6fd1a){for(const _0x48946d of _0xd6fd1a)for(const _0x3be192 of _0x736728)if(_0x48946d[_0x4da8('0x18')](_0x3be192,!_0x370701[_0x4da8('0x14')]))return _0x48946d;return null;}return _0x1f865d[_0x4da8('0x8')]((_0x479c80,_0x2f0049)=>{const _0x36b937=_0x479c80['range'],_0x17aa22=_0x2f0049[_0x4da8('0x21')];if(!_0x36b937[_0x4da8('0x26')](_0x17aa22)){if(_0x36b937[_0x4da8('0x18')](_0x17aa22,!0x0))return 0x1;if(_0x17aa22['containsRange'](_0x36b937,!0x0))return-0x1;}return _0x479c80['annotation']==_0x1d66e3?-0x1:_0x2f0049['annotation']==_0x1d66e3?0x1:0x0;})[_0x4da8('0x17')](_0x4701fa=>_0x4701fa[_0x4da8('0x4')]);}get[_0x4da8('0x13')](){const _0x2f07d8=new Map();for(const _0x34b378 of Array[_0x4da8('0xb')](this[_0x4da8('0x6')]))for(const [_0x2680f9,_0x2c8fa5]of _0x34b378())_0x2f07d8[_0x4da8('0x25')](_0x2680f9,_0x2c8fa5);return _0x2f07d8;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2d96=['isFocused','includes','bottom','plugins','from','detach','_forceRefresh','_setSelectedAnnotations','remove','clear','pluginName','fromRect','top','editing','stopListening','length','inlineannotations-not-allowed-with-context','_manuallyClosed','hasActive','set','add','afterInit','getByView','document','Esc','every','push','_closeAnnotation','getOrderedSelectedAnnotations','view','keystrokes','target','focus','get','change:visibleView','showStack','switchTo','_balloon','right','_addedAnnotations','destroy','isActive','setActiveAnnotation','isAttached','_removeAnnotationFromBalloon','editor','editableElement','addObserver','change:isFocused','change:height','activeAnnotation','getBoundingClientRect','hasView','attach','blur','annotations','focusTracker','delete','map','context','left','listenTo','targetRect','updatePosition','update','_addAnnotationToBalloon','find','collapse','_selectedAnnotations','has','getFirstRange','selection','inline','mousedown','width','visibleView'];(function(_0x296048,_0x2d9619){const _0x32011e=function(_0x51d54a){while(--_0x51d54a){_0x296048['push'](_0x296048['shift']());}};_0x32011e(++_0x2d9619);}(_0x2d96,0x111));const _0x3201=function(_0x296048,_0x2d9619){_0x296048=_0x296048-0x0;let _0x32011e=_0x2d96[_0x296048];return _0x32011e;};import{Plugin as _0x394cd1}from'ckeditor5/src/core';import _0x3b01a2 from'./annotationsuis';import _0x479de6 from'./editorannotations';import{ContextualBalloon as _0x5e56a8}from'ckeditor5/src/ui';import{MouseObserver as _0x4698d0}from'ckeditor5/src/engine';import{CKEditorError as _0x54d7de,Rect as _0x10eb49}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x394cd1{static get['requires'](){return[_0x479de6,_0x5e56a8,_0x3b01a2];}static get[_0x3201('0x29')](){return'InlineAnnotations';}constructor(_0x44a542){super(_0x44a542),_0x44a542['editing'][_0x3201('0x3c')][_0x3201('0x2')](_0x4698d0),this['isAttached']=!0x1,this[_0x3201('0x32')](_0x3201('0x5'),null),this[_0x3201('0xa')]=null,this[_0x3201('0x30')]=new Set(),this[_0x3201('0x44')]=_0x44a542[_0x3201('0x22')][_0x3201('0x40')](_0x5e56a8),this[_0x3201('0x46')]=new Set(),this['_selectedAnnotations']=[],this[_0x3201('0x25')]=!0x1;}['init'](){const _0x3f0927=this[_0x3201('0x0')][_0x3201('0x22')][_0x3201('0x40')](_0x3b01a2);_0x3f0927['context']===this[_0x3201('0x0')]&&(_0x3f0927['register']('inline',this),this['editor'][_0x3201('0x3d')][_0x3201('0x32')](_0x3201('0x37'),(_0x517c18,_0x432928)=>{const _0x6c0220=this[_0x3201('0x44')];if(this[_0x3201('0x4a')]&&_0x6c0220[_0x3201('0x1e')]){const _0x4328ce=this[_0x3201('0xa')][_0x3201('0x35')](_0x6c0220[_0x3201('0x1e')]);_0x4328ce&&this[_0x3201('0x3a')](_0x4328ce),_0x432928();}}));}[_0x3201('0x34')](){const _0x1ea787=this[_0x3201('0x0')][_0x3201('0x22')][_0x3201('0x40')](_0x3b01a2);_0x1ea787[_0x3201('0xe')]===this[_0x3201('0x0')]&&(_0x1ea787[_0x3201('0x31')]()||_0x1ea787[_0x3201('0x43')](_0x3201('0x1b')));}[_0x3201('0x49')](_0x3fb47b){_0x3fb47b!==this[_0x3201('0x5')]&&(this['activeAnnotation']&&(this[_0x3201('0x5')][_0x3201('0x48')]=!0x1),_0x3fb47b&&this[_0x3201('0x0')]['ui'][_0x3201('0xb')][_0x3201('0x1f')]&&(this[_0x3201('0xa')][_0x3201('0x18')](_0x3fb47b)&&this[_0x3201('0x14')](_0x3fb47b,!0x0),_0x3fb47b[_0x3201('0x48')]=!0x0),_0x3fb47b||this['_setSelectedAnnotations']([]),this[_0x3201('0x5')]=_0x3fb47b);}[_0x3201('0x8')](_0x433c93){this[_0x3201('0xa')]=_0x433c93;const _0x5d73ff=this['editor'][_0x3201('0x22')]['get'](_0x3b01a2),_0x21e65f=this[_0x3201('0x44')];if(this[_0x3201('0x4a')])throw new _0x54d7de('inlineannotations-attach-already-attached',this);if(_0x5d73ff[_0x3201('0xe')]!==this[_0x3201('0x0')])throw new _0x54d7de(_0x3201('0x2f'),this);const _0x18a621=this[_0x3201('0x0')][_0x3201('0x22')][_0x3201('0x40')](_0x479de6);this[_0x3201('0x10')](_0x18a621,'refresh',()=>{const _0x54285e=_0x18a621[_0x3201('0x3b')]({'annotations':this[_0x3201('0xa')],'activeAnnotation':this['activeAnnotation']});var _0x501146,_0x219b14;!this[_0x3201('0x25')]&&(_0x501146=_0x54285e,_0x219b14=this[_0x3201('0x17')],_0x501146[_0x3201('0x2e')]===_0x219b14[_0x3201('0x2e')]&&_0x501146[_0x3201('0x38')](_0x515ccb=>_0x219b14[_0x3201('0x20')](_0x515ccb)))||(this[_0x3201('0x25')]=!0x1,this[_0x3201('0x26')](_0x54285e),this[_0x3201('0x49')](_0x54285e[0x0]||null));}),this[_0x3201('0x10')](_0x18a621,_0x3201('0x9'),(_0x1ab4c8,{isAnnotationTracked:_0x1e6a7d})=>{this['activeAnnotation']&&_0x1e6a7d(this['activeAnnotation'])&&(this[_0x3201('0x26')]([]),this[_0x3201('0x49')](null));}),this[_0x3201('0x10')](this[_0x3201('0x0')]['ui'][_0x3201('0xb')],_0x3201('0x3'),(_0x389996,_0x338a40,_0x19ec67)=>{_0x19ec67||this[_0x3201('0x49')](null);}),this[_0x3201('0x10')](_0x433c93,_0x3201('0x27'),(_0x13743e,_0x23473f)=>{this[_0x3201('0x4b')](_0x23473f),_0x23473f===this[_0x3201('0x5')]&&this[_0x3201('0x49')](null);}),this[_0x3201('0x10')](_0x21e65f,_0x3201('0x41'),(_0x5773c2,_0x34ecc3,_0x23bb0b,_0x46351d)=>{_0x46351d&&this[_0x3201('0x2d')](_0x46351d);const _0x16010e=_0x433c93[_0x3201('0x35')](_0x23bb0b);_0x23bb0b&&_0x16010e&&(this['listenTo'](_0x23bb0b,_0x3201('0x4'),()=>{_0x21e65f[_0x3201('0x12')]();}),this[_0x3201('0x10')](_0x23bb0b,_0x3201('0x37'),()=>{this['_closeAnnotation'](_0x16010e),this[_0x3201('0x0')]['editing'][_0x3201('0x3c')][_0x3201('0x3f')]();}),this['activeAnnotation']!==_0x16010e&&this['setActiveAnnotation'](_0x16010e));}),this['listenTo'](this[_0x3201('0x0')]['ui'],_0x3201('0x13'),()=>{_0x21e65f[_0x3201('0x1e')]&&(_0x433c93[_0x3201('0x35')](_0x21e65f[_0x3201('0x1e')])&&_0x21e65f[_0x3201('0x12')]());}),this[_0x3201('0x10')](this[_0x3201('0x0')][_0x3201('0x2c')][_0x3201('0x3c')][_0x3201('0x36')],_0x3201('0x1c'),()=>{this[_0x3201('0x25')]=!0x0,this[_0x3201('0x30')][_0x3201('0x28')]();}),this['editor'][_0x3201('0x2c')][_0x3201('0x3c')][_0x3201('0x36')]['selection'][_0x3201('0x1')]&&this[_0x3201('0x0')][_0x3201('0x2c')][_0x3201('0x3c')][_0x3201('0x3f')](),this[_0x3201('0x4a')]=!0x0;}[_0x3201('0x24')](){if(!this[_0x3201('0x4a')])throw new _0x54d7de('inlineannotations-detach-not-attached',this);this[_0x3201('0x49')](null);for(const _0x4ba597 of this[_0x3201('0x46')])this[_0x3201('0x4b')](_0x4ba597);this[_0x3201('0x2d')](),this['isAttached']=!0x1,this[_0x3201('0xa')]=null;}[_0x3201('0x47')](){this[_0x3201('0x4a')]&&this[_0x3201('0x24')]();}[_0x3201('0x26')](_0xfdab94){for(const _0x322e8a of this[_0x3201('0x17')])_0xfdab94[_0x3201('0x20')](_0x322e8a)||this[_0x3201('0x30')][_0x3201('0xc')](_0x322e8a);for(const _0x7a9093 of this[_0x3201('0xa')])_0xfdab94[_0x3201('0x20')](_0x7a9093)||this['_removeAnnotationFromBalloon'](_0x7a9093);if(this['editor']['ui'][_0x3201('0xb')][_0x3201('0x1f')])for(const _0x180cee of _0xfdab94)this[_0x3201('0x14')](_0x180cee);this[_0x3201('0x17')]=_0xfdab94;}[_0x3201('0x14')](_0x3c77af,_0x23667d=!0x1){this[_0x3201('0x30')][_0x3201('0x18')](_0x3c77af)||(this[_0x3201('0x46')][_0x3201('0x18')](_0x3c77af)||this[_0x3201('0x44')][_0x3201('0x7')](_0x3c77af[_0x3201('0x3c')])||(this['_addedAnnotations'][_0x3201('0x33')](_0x3c77af),this['_balloon'][_0x3201('0x33')]({'stackId':_0x3c77af[_0x3201('0x3c')]['id'],'view':_0x3c77af[_0x3201('0x3c')],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x3c77af)}})),_0x23667d&&this[_0x3201('0x44')][_0x3201('0x42')](_0x3c77af[_0x3201('0x3c')]['id']));}['_getBalloonTargetForAnnotation'](_0x5965fc){const _0x4f214f=_0x5965fc[_0x3201('0x3e')],_0x2387ca=this[_0x3201('0x0')][_0x3201('0x2c')]['view'],_0x359026=_0x2387ca[_0x3201('0x36')][_0x3201('0x1a')][_0x3201('0x19')](),_0x573f69=_0x2387ca['domConverter']['viewRangeToDom'](_0x359026);if(_0x573f69[_0x3201('0x16')](!0x0),_0x4f214f){if(_0x4f214f instanceof _0x10eb49)return _0x4f214f;let _0x2f1c66=[];for(const _0x2d46dc of _0x4f214f)_0x2f1c66['push'](...(_0x559d59=_0x2d46dc['getClientRects'](),Array[_0x3201('0x23')](_0x559d59)[_0x3201('0xd')](DOMRect[_0x3201('0x2a')])));_0x2f1c66=function(_0x17a82f){const _0x46a5f4=[];let _0x58e408=_0x17a82f[0x0];for(let _0x4966c=0x1;_0x4966c<_0x17a82f[_0x3201('0x2e')];_0x4966c++)F(_0x58e408,_0x17a82f[_0x4966c])?_0x58e408[_0x3201('0x1d')]+=_0x17a82f[_0x4966c][_0x3201('0x1d')]:(_0x46a5f4['push'](_0x58e408),_0x58e408=_0x17a82f[_0x4966c]);return _0x46a5f4[_0x3201('0x39')](_0x58e408),_0x46a5f4;}(_0x2f1c66);const _0x4b6b55=_0x573f69[_0x3201('0x6')]();return _0x2f1c66[_0x3201('0x15')](_0x36539f=>_0x36539f[_0x3201('0x2b')]<=_0x4b6b55[_0x3201('0x2b')]&&_0x36539f[_0x3201('0x21')]>=_0x4b6b55[_0x3201('0x21')]&&_0x36539f['left']<=_0x4b6b55[_0x3201('0xf')]&&_0x36539f[_0x3201('0x45')]>=_0x4b6b55[_0x3201('0x45')])||_0x2f1c66[0x0];}var _0x559d59;return _0x5965fc[_0x3201('0x11')]||_0x573f69;}[_0x3201('0x4b')](_0x5a23d9){this[_0x3201('0x46')][_0x3201('0x18')](_0x5a23d9)&&this[_0x3201('0x44')][_0x3201('0x7')](_0x5a23d9[_0x3201('0x3c')])&&(this[_0x3201('0x46')][_0x3201('0xc')](_0x5a23d9),this[_0x3201('0x44')][_0x3201('0x27')](_0x5a23d9[_0x3201('0x3c')]));}[_0x3201('0x3a')](_0x5a90d1){this[_0x3201('0x30')][_0x3201('0x33')](_0x5a90d1),this['_removeAnnotationFromBalloon'](_0x5a90d1);}}function F(_0x229ac4,_0xfee924){return _0x229ac4[_0x3201('0x2b')]===_0xfee924[_0x3201('0x2b')]&&_0x229ac4[_0x3201('0x21')]===_0xfee924[_0x3201('0x21')]&&_0x229ac4[_0x3201('0x45')]===_0xfee924['left'];}
23
+ const _0x5ddc=['view','mousedown','attach','push','updatePosition','every','top','isFocused','pluginName','_closeAnnotation','change:height','getOrderedSelectedAnnotations','afterInit','width','visibleView','get','getFirstRange','_setSelectedAnnotations','selection','bottom','delete','showStack','annotations','add','left','listenTo','editing','destroy','target','_getBalloonTargetForAnnotation','requires','focus','_balloon','getByView','isAttached','detach','viewRangeToDom','includes','length','update','_forceRefresh','getClientRects','editableElement','_selectedAnnotations','right','_addedAnnotations','editor','clear','Esc','remove','document','plugins','isActive','focusTracker','activeAnnotation','_removeAnnotationFromBalloon','_manuallyClosed','inline','fromRect','set','domConverter','hasView','find','getBoundingClientRect','context','targetRect','InlineAnnotations','has','refresh','stopListening','setActiveAnnotation','init'];(function(_0x3d1bb3,_0x5ddce8){const _0x388177=function(_0x32cd8d){while(--_0x32cd8d){_0x3d1bb3['push'](_0x3d1bb3['shift']());}};_0x388177(++_0x5ddce8);}(_0x5ddc,0x164));const _0x3881=function(_0x3d1bb3,_0x5ddce8){_0x3d1bb3=_0x3d1bb3-0x0;let _0x388177=_0x5ddc[_0x3d1bb3];return _0x388177;};import{Plugin as _0x90ac4d}from'ckeditor5/src/core';import _0x1649d3 from'./annotationsuis';import _0x8eb84a from'./editorannotations';import{ContextualBalloon as _0x16ffb7}from'ckeditor5/src/ui';import{MouseObserver as _0x1ace00}from'ckeditor5/src/engine';import{CKEditorError as _0x56dd4c,Rect as _0x1fb4c4}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x90ac4d{static get[_0x3881('0x22')](){return[_0x8eb84a,_0x16ffb7,_0x1649d3];}static get[_0x3881('0xc')](){return _0x3881('0x46');}constructor(_0x535bcf){super(_0x535bcf),_0x535bcf['editing'][_0x3881('0x4')]['addObserver'](_0x1ace00),this[_0x3881('0x26')]=!0x1,this[_0x3881('0x3f')]('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this[_0x3881('0x24')]=_0x535bcf['plugins']['get'](_0x16ffb7),this[_0x3881('0x31')]=new Set(),this['_selectedAnnotations']=[],this[_0x3881('0x2c')]=!0x1;}[_0x3881('0x3')](){const _0x37479e=this[_0x3881('0x32')]['plugins'][_0x3881('0x13')](_0x1649d3);_0x37479e[_0x3881('0x44')]===this[_0x3881('0x32')]&&(_0x37479e['register'](_0x3881('0x3d'),this),this['editor']['keystrokes'][_0x3881('0x3f')](_0x3881('0x34'),(_0x129421,_0x5c16e0)=>{const _0x96b045=this['_balloon'];if(this[_0x3881('0x26')]&&_0x96b045[_0x3881('0x12')]){const _0xf5a602=this[_0x3881('0x1a')][_0x3881('0x25')](_0x96b045[_0x3881('0x12')]);_0xf5a602&&this[_0x3881('0xd')](_0xf5a602),_0x5c16e0();}}));}[_0x3881('0x10')](){const _0x20d4c5=this['editor'][_0x3881('0x37')][_0x3881('0x13')](_0x1649d3);_0x20d4c5[_0x3881('0x44')]===this['editor']&&(_0x20d4c5['hasActive']()||_0x20d4c5['switchTo'](_0x3881('0x3d')));}[_0x3881('0x2')](_0x3a1f45){_0x3a1f45!==this['activeAnnotation']&&(this[_0x3881('0x3a')]&&(this[_0x3881('0x3a')][_0x3881('0x38')]=!0x1),_0x3a1f45&&this[_0x3881('0x32')]['ui']['focusTracker'][_0x3881('0xb')]&&(this[_0x3881('0x1a')][_0x3881('0x47')](_0x3a1f45)&&this['_addAnnotationToBalloon'](_0x3a1f45,!0x0),_0x3a1f45[_0x3881('0x38')]=!0x0),_0x3a1f45||this[_0x3881('0x15')]([]),this[_0x3881('0x3a')]=_0x3a1f45);}[_0x3881('0x6')](_0x324c56){this['annotations']=_0x324c56;const _0x5a4033=this[_0x3881('0x32')]['plugins'][_0x3881('0x13')](_0x1649d3),_0x40d0cf=this[_0x3881('0x24')];if(this[_0x3881('0x26')])throw new _0x56dd4c('inlineannotations-attach-already-attached',this);if(_0x5a4033[_0x3881('0x44')]!==this[_0x3881('0x32')])throw new _0x56dd4c('inlineannotations-not-allowed-with-context',this);const _0x3b5c6d=this['editor'][_0x3881('0x37')][_0x3881('0x13')](_0x8eb84a);this[_0x3881('0x1d')](_0x3b5c6d,_0x3881('0x0'),()=>{const _0x43acf2=_0x3b5c6d[_0x3881('0xf')]({'annotations':this[_0x3881('0x1a')],'activeAnnotation':this[_0x3881('0x3a')]});var _0x339466,_0x59764f;!this['_forceRefresh']&&(_0x339466=_0x43acf2,_0x59764f=this['_selectedAnnotations'],_0x339466[_0x3881('0x2a')]===_0x59764f[_0x3881('0x2a')]&&_0x339466[_0x3881('0x9')](_0xc9b033=>_0x59764f[_0x3881('0x29')](_0xc9b033)))||(this[_0x3881('0x2c')]=!0x1,this[_0x3881('0x15')](_0x43acf2),this[_0x3881('0x2')](_0x43acf2[0x0]||null));}),this[_0x3881('0x1d')](_0x3b5c6d,'blur',(_0x209ded,{isAnnotationTracked:_0x2af220})=>{this[_0x3881('0x3a')]&&_0x2af220(this[_0x3881('0x3a')])&&(this[_0x3881('0x15')]([]),this['setActiveAnnotation'](null));}),this[_0x3881('0x1d')](this[_0x3881('0x32')]['ui'][_0x3881('0x39')],'change:isFocused',(_0xd59046,_0x3b04fd,_0xd98633)=>{_0xd98633||this[_0x3881('0x2')](null);}),this[_0x3881('0x1d')](_0x324c56,_0x3881('0x35'),(_0x1f709f,_0x5d2049)=>{this['_removeAnnotationFromBalloon'](_0x5d2049),_0x5d2049===this[_0x3881('0x3a')]&&this[_0x3881('0x2')](null);}),this['listenTo'](_0x40d0cf,'change:visibleView',(_0x11f1ed,_0x20af64,_0x5e8bf6,_0x4b3e8d)=>{_0x4b3e8d&&this[_0x3881('0x1')](_0x4b3e8d);const _0x44237a=_0x324c56[_0x3881('0x25')](_0x5e8bf6);_0x5e8bf6&&_0x44237a&&(this[_0x3881('0x1d')](_0x5e8bf6,_0x3881('0xe'),()=>{_0x40d0cf[_0x3881('0x8')]();}),this[_0x3881('0x1d')](_0x5e8bf6,_0x3881('0x34'),()=>{this[_0x3881('0xd')](_0x44237a),this['editor'][_0x3881('0x1e')][_0x3881('0x4')][_0x3881('0x23')]();}),this['activeAnnotation']!==_0x44237a&&this[_0x3881('0x2')](_0x44237a));}),this[_0x3881('0x1d')](this[_0x3881('0x32')]['ui'],_0x3881('0x2b'),()=>{_0x40d0cf[_0x3881('0x12')]&&(_0x324c56[_0x3881('0x25')](_0x40d0cf[_0x3881('0x12')])&&_0x40d0cf['updatePosition']());}),this[_0x3881('0x1d')](this[_0x3881('0x32')][_0x3881('0x1e')][_0x3881('0x4')][_0x3881('0x36')],_0x3881('0x5'),()=>{this[_0x3881('0x2c')]=!0x0,this[_0x3881('0x3c')][_0x3881('0x33')]();}),this[_0x3881('0x32')][_0x3881('0x1e')]['view'][_0x3881('0x36')]['selection'][_0x3881('0x2e')]&&this[_0x3881('0x32')][_0x3881('0x1e')][_0x3881('0x4')][_0x3881('0x23')](),this[_0x3881('0x26')]=!0x0;}[_0x3881('0x27')](){if(!this[_0x3881('0x26')])throw new _0x56dd4c('inlineannotations-detach-not-attached',this);this[_0x3881('0x2')](null);for(const _0x350b0b of this[_0x3881('0x31')])this[_0x3881('0x3b')](_0x350b0b);this[_0x3881('0x1')](),this[_0x3881('0x26')]=!0x1,this[_0x3881('0x1a')]=null;}[_0x3881('0x1f')](){this[_0x3881('0x26')]&&this[_0x3881('0x27')]();}[_0x3881('0x15')](_0x1a28e3){for(const _0x3586d7 of this[_0x3881('0x2f')])_0x1a28e3[_0x3881('0x29')](_0x3586d7)||this['_manuallyClosed'][_0x3881('0x18')](_0x3586d7);for(const _0x594de6 of this[_0x3881('0x1a')])_0x1a28e3[_0x3881('0x29')](_0x594de6)||this[_0x3881('0x3b')](_0x594de6);if(this[_0x3881('0x32')]['ui'][_0x3881('0x39')][_0x3881('0xb')])for(const _0x55b4db of _0x1a28e3)this['_addAnnotationToBalloon'](_0x55b4db);this[_0x3881('0x2f')]=_0x1a28e3;}['_addAnnotationToBalloon'](_0x1fb254,_0x507cfe=!0x1){this[_0x3881('0x3c')][_0x3881('0x47')](_0x1fb254)||(this[_0x3881('0x31')][_0x3881('0x47')](_0x1fb254)||this[_0x3881('0x24')]['hasView'](_0x1fb254[_0x3881('0x4')])||(this[_0x3881('0x31')][_0x3881('0x1b')](_0x1fb254),this['_balloon'][_0x3881('0x1b')]({'stackId':_0x1fb254[_0x3881('0x4')]['id'],'view':_0x1fb254[_0x3881('0x4')],'position':{'target':()=>this[_0x3881('0x21')](_0x1fb254)}})),_0x507cfe&&this['_balloon'][_0x3881('0x19')](_0x1fb254[_0x3881('0x4')]['id']));}[_0x3881('0x21')](_0x24ed76){const _0x42a052=_0x24ed76[_0x3881('0x20')],_0x448a8a=this[_0x3881('0x32')]['editing'][_0x3881('0x4')],_0x10c9a9=_0x448a8a['document'][_0x3881('0x16')][_0x3881('0x14')](),_0x195f3c=_0x448a8a[_0x3881('0x40')][_0x3881('0x28')](_0x10c9a9);if(_0x195f3c['collapse'](!0x0),_0x42a052){if(_0x42a052 instanceof _0x1fb4c4)return _0x42a052;let _0x22f220=[];for(const _0x2e1b6b of _0x42a052)_0x22f220[_0x3881('0x7')](...(_0x379108=_0x2e1b6b[_0x3881('0x2d')](),Array['from'](_0x379108)['map'](DOMRect[_0x3881('0x3e')])));_0x22f220=function(_0x2e71c4){const _0x24d134=[];let _0x52d4a9=_0x2e71c4[0x0];for(let _0x490afb=0x1;_0x490afb<_0x2e71c4['length'];_0x490afb++)F(_0x52d4a9,_0x2e71c4[_0x490afb])?_0x52d4a9[_0x3881('0x11')]+=_0x2e71c4[_0x490afb][_0x3881('0x11')]:(_0x24d134['push'](_0x52d4a9),_0x52d4a9=_0x2e71c4[_0x490afb]);return _0x24d134[_0x3881('0x7')](_0x52d4a9),_0x24d134;}(_0x22f220);const _0x4695ee=_0x195f3c[_0x3881('0x43')]();return _0x22f220[_0x3881('0x42')](_0x46804f=>_0x46804f[_0x3881('0xa')]<=_0x4695ee[_0x3881('0xa')]&&_0x46804f[_0x3881('0x17')]>=_0x4695ee['bottom']&&_0x46804f['left']<=_0x4695ee[_0x3881('0x1c')]&&_0x46804f[_0x3881('0x30')]>=_0x4695ee['right'])||_0x22f220[0x0];}var _0x379108;return _0x24ed76[_0x3881('0x45')]||_0x195f3c;}[_0x3881('0x3b')](_0x5b6707){this[_0x3881('0x31')][_0x3881('0x47')](_0x5b6707)&&this[_0x3881('0x24')][_0x3881('0x41')](_0x5b6707[_0x3881('0x4')])&&(this[_0x3881('0x31')]['delete'](_0x5b6707),this[_0x3881('0x24')][_0x3881('0x35')](_0x5b6707['view']));}[_0x3881('0xd')](_0x1c7894){this[_0x3881('0x3c')][_0x3881('0x1b')](_0x1c7894),this[_0x3881('0x3b')](_0x1c7894);}}function F(_0x149d34,_0x4b8027){return _0x149d34['top']===_0x4b8027[_0x3881('0xa')]&&_0x149d34[_0x3881('0x17')]===_0x4b8027['bottom']&&_0x149d34['right']===_0x4b8027[_0x3881('0x1c')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x297b=['isAttached','bodyCollection','_integrateWithEditorAnnotations','_attachListeners','length','target','esc','pluginName','requires','type','narrowsidebar-attach-already-attached','from','annotationType','removeEventListener','NarrowSidebar','set:container','context','defaultPositions','blur','getSidebarItemView','hasDomSelection','isVisible','keyCode','add','_selectedAnnotations','getOrderedSelectedAnnotations','remove','rearrange','refreshPositioning','northArrowSouthWest','clear','southArrowNorthEast','content','getByView','delete','_hideBalloon','view','keydown','stop','editors','contains','_showBalloon','addAnnotation','annotations','setActiveAnnotation','_detachFromContainer','focus','_editorAnnotations','get','register','ck-sidebar--narrow','_setSelectedAnnotations','refresh','locale','includes','_annotations','EditorAnnotations','stopListening','create','listenTo','uiUpdate','_destroyEditorAnnotationsIntegration','preventClosingBalloon','detach','_updateBalloonPosition','southArrowNorthWest','_refreshPositioning','_detachListeners','init','southArrowNorth','element','attachToDom','first','isDirty','mousedown','low','activeAnnotation','execute','has','attach','destroy','pin','resize','plugins','balloonPanelView','_manuallyClosedAnnotationViews','Esc','_annotationToNarrowView','detachFromDom','northArrowSouthEast','high','_refreshPositioningDebounced','cancel','change:container','_domEmitter','set','unpin'];(function(_0x2bf93c,_0x297b41){const _0x11598d=function(_0x16fa33){while(--_0x16fa33){_0x2bf93c['push'](_0x2bf93c['shift']());}};_0x11598d(++_0x297b41);}(_0x297b,0x6f));const _0x1159=function(_0x2bf93c,_0x297b41){_0x2bf93c=_0x2bf93c-0x0;let _0x11598d=_0x297b[_0x2bf93c];return _0x11598d;};import{ContextPlugin as _0x2a1951,Context as _0x184cf1}from'ckeditor5/src/core';import _0x3c495a from'./annotationsuis';import _0x41979b from'./sidebar';import _0x492660 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x445565,BodyCollection as _0x56ff43}from'ckeditor5/src/ui';import{CKEditorError as _0x598556,DomEmitterMixin as _0x23a6a6,keyCodes as _0x2ed5ce,Collection as _0x52d27c}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x474423}from'lodash-es';import _0x179a0f from'./editorannotations';export default class s extends _0x2a1951{static get[_0x1159('0x5b')](){return[_0x41979b,_0x3c495a];}static get[_0x1159('0x5a')](){return _0x1159('0x0');}constructor(_0x5d7c1d){super(_0x5d7c1d),this[_0x1159('0x53')]=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this[_0x1159('0x50')]=Object[_0x1159('0x2c')](_0x23a6a6),this[_0x1159('0x49')]=new Map(),this[_0x1159('0x51')](_0x1159('0x3e'),null),this[_0x1159('0x1d')]=null,this[_0x1159('0xa')]=[],this[_0x1159('0x21')]=new _0x52d27c(),this[_0x1159('0x4d')]=_0x474423(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}[_0x1159('0x36')](){this[_0x1159('0x2')]['plugins'][_0x1159('0x22')](_0x3c495a)[_0x1159('0x23')]('narrowSidebar',this),this[_0x1159('0x54')]=new _0x56ff43(this[_0x1159('0x2')][_0x1159('0x27')]),this[_0x1159('0x46')]=new _0x445565(this[_0x1159('0x2')][_0x1159('0x27')]),this[_0x1159('0x54')][_0x1159('0x39')](),this[_0x1159('0x54')][_0x1159('0x9')](this[_0x1159('0x46')]);}[_0x1159('0x41')](_0x34861a){this[_0x1159('0x1d')]=_0x34861a;const _0x2427cf=this[_0x1159('0x2')][_0x1159('0x45')]['get'](_0x41979b),_0x28c830=this['balloonPanelView'];if(_0x2427cf[_0x1159('0x29')]=_0x34861a,this[_0x1159('0x53')])throw new _0x598556(_0x1159('0x5d'),this);this[_0x1159('0x53')]=!0x0,this[_0x1159('0x2d')](_0x2427cf,_0x1159('0x1'),()=>{this[_0x1159('0x31')](),this[_0x1159('0x2d')](_0x2427cf,_0x1159('0x4f'),_0xb7bb78=>{_0xb7bb78['off'](),this[_0x1159('0x41')](_0x34861a);});}),_0x2427cf['_attachToContainer']({'viewClass':_0x1159('0x24'),'spaceBetweenItems':0x5});const _0x1db299=_0x1ee029=>{const _0x2191d6=new _0x492660(this[_0x1159('0x2')]['locale']);_0x2427cf[_0x1159('0x1c')](_0x1ee029,_0x2191d6),this[_0x1159('0x49')][_0x1159('0x51')](_0x1ee029,_0x2191d6),_0x2191d6['bind'](_0x1159('0x3b'),_0x1159('0x5f'),'number')['to'](_0x1ee029[_0x1159('0x16')],'isDirty',_0x1159('0x5c'),_0x1159('0x57')),_0x2191d6['on'](_0x1159('0x3f'),()=>{this[_0x1159('0x47')][_0x1159('0x10')](),_0x28c830[_0x1159('0x12')][_0x1159('0x3a')]!==_0x1ee029[_0x1159('0x16')]?(this[_0x1159('0x1b')](_0x1ee029),_0x1ee029[_0x1159('0x16')][_0x1159('0x38')][_0x1159('0x20')](),this[_0x1159('0x1e')](_0x1ee029)):this[_0x1159('0x1e')](null);});};for(const _0x2e6e7b of _0x34861a)_0x1db299(_0x2e6e7b);this[_0x1159('0x2d')](_0x34861a,_0x1159('0x9'),(_0xaa6ec5,_0x462ee5)=>{_0x1db299(_0x462ee5);}),this['listenTo'](_0x34861a,_0x1159('0xc'),(_0x36f45e,_0x408e83,_0x1d6181)=>{this['_annotationToNarrowView'][_0x1159('0x22')](_0x408e83)[_0x1159('0x42')](),this[_0x1159('0x49')][_0x1159('0x14')](_0x408e83),_0x2427cf[_0x1159('0xd')]({'removedAnnotation':_0x408e83,'previousAnnotation':_0x34861a[_0x1159('0x22')](_0x1d6181-0x1),'nextAnnotation':_0x34861a[_0x1159('0x22')](_0x1d6181+0x1)}),_0x408e83===this[_0x1159('0x3e')]&&this[_0x1159('0x1e')](null);},{'priority':_0x1159('0x3d')}),this['listenTo'](_0x34861a,_0x1159('0x20'),(_0x2bf11d,_0x42ca27)=>{this[_0x1159('0x1e')](_0x42ca27);}),this['listenTo'](_0x34861a,_0x1159('0x4'),()=>{this[_0x1159('0x1e')](null);}),this[_0x1159('0x50')]['listenTo'](document,_0x1159('0x17'),(_0x347e50,_0x3ca2e8)=>{_0x3ca2e8[_0x1159('0x8')]===_0x2ed5ce[_0x1159('0x59')]&&_0x28c830[_0x1159('0x7')]&&(this[_0x1159('0x47')][_0x1159('0x9')](_0x28c830['content'][_0x1159('0x3a')]),this['_hideBalloon'](),_0x3ca2e8['stopPropagation'](),_0x3ca2e8['preventDefault']());}),this['_domEmitter'][_0x1159('0x2d')](document,_0x1159('0x3c'),(_0x477cb5,_0x4142ed)=>{const _0x339c1c=_0x4142ed['target'];_0x28c830[_0x1159('0x7')]&&_0x28c830[_0x1159('0x38')][_0x1159('0x1a')](_0x339c1c)||_0x2427cf[_0x1159('0x16')][_0x1159('0x38')][_0x1159('0x1a')](_0x339c1c)||_0x477cb5[_0x1159('0x30')]||(this[_0x1159('0x47')]['clear'](),this['_hideBalloon'](),this[_0x1159('0x1e')](null));});const _0x407ab4=this[_0x1159('0x2')]instanceof _0x184cf1?this['context']['editors']:new _0x52d27c([this[_0x1159('0x2')]]);for(const _0x929a21 of _0x407ab4)this[_0x1159('0x55')](_0x929a21);this[_0x1159('0x2d')](_0x407ab4,_0x1159('0x9'),(_0x3341e9,_0x23a7a4)=>{this[_0x1159('0x2d')](_0x23a7a4,'ready',()=>{this[_0x1159('0x55')](_0x23a7a4);});}),this[_0x1159('0x2d')](_0x407ab4,'remove',(_0x113820,_0x4340cf)=>{_0x4340cf[_0x1159('0x45')][_0x1159('0x40')](_0x1159('0x2a'))&&this[_0x1159('0x2f')](_0x4340cf[_0x1159('0x45')][_0x1159('0x22')](_0x1159('0x2a')));}),window['addEventListener'](_0x1159('0x44'),this[_0x1159('0x4d')]),this[_0x1159('0x34')]();}[_0x1159('0x1e')](_0x1307f1){if(_0x1307f1===this['activeAnnotation'])return;const _0x482464=this[_0x1159('0x2')][_0x1159('0x45')][_0x1159('0x22')](_0x41979b);if(_0x482464['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x1307f1,'disableAnimationOnActivatedAnnotation':!0x0}),_0x1307f1)_0x482464[_0x1159('0x5')](_0x1307f1)?this['_showBalloon'](_0x1307f1):this['_hideBalloon']();else this[_0x1159('0x15')]();this[_0x1159('0x3e')]=_0x1307f1;}['detach'](){if(!this[_0x1159('0x53')])throw new _0x598556('narrowsidebar-detach-not-attached',this);this[_0x1159('0x1e')](null);const _0x448510=this[_0x1159('0x2')][_0x1159('0x45')][_0x1159('0x22')](_0x41979b);this[_0x1159('0x15')](),Array[_0x1159('0x5e')](this[_0x1159('0x49')]['values'](),_0x2afb92=>_0x2afb92['destroy']()),this[_0x1159('0x49')][_0x1159('0x10')](),_0x448510[_0x1159('0x1f')](this['annotations']),this[_0x1159('0x2b')](),this[_0x1159('0x50')][_0x1159('0x2b')](),this[_0x1159('0x2')]instanceof _0x184cf1&&this[_0x1159('0x2b')](this[_0x1159('0x2')][_0x1159('0x19')]);for(const _0x5c195d of Array['from'](this[_0x1159('0x21')]))this['_destroyEditorAnnotationsIntegration'](_0x5c195d);window[_0x1159('0x60')]('resize',this[_0x1159('0x4d')]),this[_0x1159('0x4d')][_0x1159('0x4e')](),this[_0x1159('0xa')]=[],this['isAttached']=!0x1,this[_0x1159('0x1d')]=null;}[_0x1159('0x42')](){this[_0x1159('0x53')]&&this[_0x1159('0x31')](),this[_0x1159('0x54')][_0x1159('0x4a')]();}[_0x1159('0x55')](_0x79f910){const _0x5c1d1f=_0x79f910[_0x1159('0x45')][_0x1159('0x22')](_0x179a0f),_0x86fa9d=this['context'][_0x1159('0x45')][_0x1159('0x22')](_0x41979b),_0x173f55=this[_0x1159('0x1d')],_0x5f1b33=this[_0x1159('0x46')],_0x1a6576=()=>{const _0x12d6fe=_0x5c1d1f[_0x1159('0xb')]({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this[_0x1159('0x25')](_0x12d6fe),this[_0x1159('0x1e')](_0x12d6fe[0x0]||null);};this['listenTo'](_0x5c1d1f,_0x1159('0x26'),_0x1a6576),this[_0x1159('0x2d')](_0x5c1d1f,_0x1159('0x4'),(_0x572c4c,{isAnnotationTracked:_0x44fde4})=>{this[_0x1159('0x3e')]&&_0x44fde4(this[_0x1159('0x3e')])&&(this[_0x1159('0x25')]([]),this[_0x1159('0x1e')](null));}),this[_0x1159('0x2d')](_0x5c1d1f,_0x1159('0x2e'),()=>{this[_0x1159('0x4d')]();}),this[_0x1159('0x2d')](_0x173f55,_0x1159('0x4'),_0x5b5a06=>{_0x5c1d1f[_0x1159('0x6')]()&&_0x5b5a06[_0x1159('0x18')]();},{'priority':_0x1159('0x4c')}),this[_0x1159('0x2d')](this[_0x1159('0x50')],_0x1159('0x3c'),(_0x477627,_0x5f3a33)=>{const _0x4eebda=_0x5f3a33[_0x1159('0x58')];_0x5f1b33['isVisible']&&_0x5f1b33['element'][_0x1159('0x1a')](_0x4eebda)||_0x86fa9d[_0x1159('0x16')][_0x1159('0x38')][_0x1159('0x1a')](_0x4eebda)||this[_0x1159('0x3e')]&&_0x5c1d1f['hasDomSelection']()&&(_0x1a6576(),_0x477627[_0x1159('0x30')]=!0x0);},{'priority':_0x1159('0x4c')}),this['_editorAnnotations']['add'](_0x5c1d1f);}[_0x1159('0x2f')](_0x73fc15){_0x73fc15&&(this[_0x1159('0x2b')](_0x73fc15),this[_0x1159('0x21')]['remove'](_0x73fc15));}[_0x1159('0x25')](_0x116806){for(const _0x588739 of this['_selectedAnnotations'])_0x116806[_0x1159('0x28')](_0x588739)||this[_0x1159('0x47')][_0x1159('0x14')](_0x588739[_0x1159('0x16')]);this['_selectedAnnotations']=_0x116806;}[_0x1159('0x34')](){const _0x294b6f=this[_0x1159('0x46')];this[_0x1159('0x1d')][_0x1159('0xe')](),_0x294b6f['isVisible']&&this[_0x1159('0x32')]();}[_0x1159('0x1b')](_0x354f04){if(this[_0x1159('0x47')]['has'](_0x354f04['view']))return;const _0x5e8753=this[_0x1159('0x46')][_0x1159('0x12')][_0x1159('0x3a')];_0x5e8753!==_0x354f04[_0x1159('0x16')]?(_0x5e8753&&this[_0x1159('0x35')](_0x5e8753),this[_0x1159('0x56')](_0x354f04[_0x1159('0x16')]),this['balloonPanelView'][_0x1159('0x12')][_0x1159('0x10')](),this['balloonPanelView'][_0x1159('0x12')][_0x1159('0x9')](_0x354f04[_0x1159('0x16')]),this[_0x1159('0x32')]()):this['_updateBalloonPosition']();}[_0x1159('0x32')](){const _0x55ceff=this[_0x1159('0x46')][_0x1159('0x12')]['first'],_0x233b86=_0x55ceff&&this['annotations'][_0x1159('0x13')](_0x55ceff);if(!_0x233b86||!this[_0x1159('0x49')][_0x1159('0x40')](_0x233b86))return;const _0x280740=this[_0x1159('0x49')][_0x1159('0x22')](_0x233b86)[_0x1159('0x38')],_0x1d9be=function(){const _0x1d7aa0=_0x445565[_0x1159('0x3')];return[_0x1d7aa0[_0x1159('0x11')],_0x1d7aa0[_0x1159('0x4b')],_0x1d7aa0[_0x1159('0x37')],_0x1d7aa0['northArrowSouth'],_0x1d7aa0[_0x1159('0x33')],_0x1d7aa0[_0x1159('0xf')]];}();this[_0x1159('0x46')][_0x1159('0x43')]({'target':_0x280740,'positions':_0x1d9be});}[_0x1159('0x15')](){const _0x375987=this[_0x1159('0x46')],_0x59c1f1=_0x375987[_0x1159('0x12')]['first'];_0x59c1f1&&(this['_detachListeners'](_0x59c1f1),_0x375987[_0x1159('0x52')](),_0x375987[_0x1159('0x12')][_0x1159('0x10')]());}[_0x1159('0x56')](_0x1aa958){this['listenTo'](_0x1aa958,'change:height',()=>this[_0x1159('0x32')]()),this[_0x1159('0x2d')](_0x1aa958,_0x1159('0x48'),(_0x32fc38,_0x5b3825)=>{this['_manuallyClosedAnnotationViews'][_0x1159('0x9')](_0x1aa958),this[_0x1159('0x15')](),_0x5b3825();});}[_0x1159('0x35')](_0x2b7547){this[_0x1159('0x2b')](_0x2b7547);}}
23
+ const _0x269a=['context','narrowsidebar-attach-already-attached','has','detachFromDom','_annotationToNarrowView','bind','low','_editorAnnotations','editors','_setSelectedAnnotations','removeEventListener','refreshPositioning','southArrowNorthEast','resize','setActiveAnnotation','add','off','number','_refreshPositioning','focus','requires','length','defaultPositions','content','addEventListener','isAttached','EditorAnnotations','get','first','_domEmitter','annotationType','remove','detach','_showBalloon','isVisible','_hideBalloon','execute','addAnnotation','element','isDirty','init','includes','esc','register','set','target','unpin','mousedown','_destroyEditorAnnotationsIntegration','listenTo','refresh','_integrateWithEditorAnnotations','stop','_updateBalloonPosition','view','high','cancel','values','preventClosingBalloon','_refreshPositioningDebounced','activeAnnotation','attach','from','locale','keyCode','getByView','contains','attachToDom','southArrowNorthWest','_manuallyClosedAnnotationViews','getSidebarItemView','destroy','rearrange','NarrowSidebar','blur','balloonPanelView','_attachToContainer','_selectedAnnotations','clear','preventDefault','stopPropagation','plugins','ck-sidebar--narrow','getOrderedSelectedAnnotations','annotations','bodyCollection','_detachFromContainer','_attachListeners','create','southArrowNorth','_detachListeners','stopListening'];(function(_0x2f3d33,_0x269abb){const _0x58f171=function(_0x541fbc){while(--_0x541fbc){_0x2f3d33['push'](_0x2f3d33['shift']());}};_0x58f171(++_0x269abb);}(_0x269a,0x12a));const _0x58f1=function(_0x2f3d33,_0x269abb){_0x2f3d33=_0x2f3d33-0x0;let _0x58f171=_0x269a[_0x2f3d33];return _0x58f171;};import{ContextPlugin as _0x1469b8,Context as _0x2531c8}from'ckeditor5/src/core';import _0x41fd01 from'./annotationsuis';import _0x27aa92 from'./sidebar';import _0x60a638 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x4da970,BodyCollection as _0x184704}from'ckeditor5/src/ui';import{CKEditorError as _0x1712a9,DomEmitterMixin as _0x8418e6,keyCodes as _0xad897c,Collection as _0x5b916d}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x1b94d6}from'lodash-es';import _0x1858f4 from'./editorannotations';export default class s extends _0x1469b8{static get[_0x58f1('0x5a')](){return[_0x27aa92,_0x41fd01];}static get['pluginName'](){return _0x58f1('0x33');}constructor(_0x3e1703){super(_0x3e1703),this['isAttached']=!0x1,this[_0x58f1('0x2f')]=new Set(),this[_0x58f1('0x7')]=Object[_0x58f1('0x42')](_0x8418e6),this[_0x58f1('0x4a')]=new Map(),this['set'](_0x58f1('0x26'),null),this[_0x58f1('0x3e')]=null,this[_0x58f1('0x37')]=[],this[_0x58f1('0x4d')]=new _0x5b916d(),this[_0x58f1('0x25')]=_0x1b94d6(()=>{this[_0x58f1('0x58')]();},0xfa,{'leading':!0x1});}[_0x58f1('0x12')](){this['context'][_0x58f1('0x3b')][_0x58f1('0x5')](_0x41fd01)[_0x58f1('0x15')]('narrowSidebar',this),this[_0x58f1('0x3f')]=new _0x184704(this[_0x58f1('0x46')]['locale']),this['balloonPanelView']=new _0x4da970(this[_0x58f1('0x46')][_0x58f1('0x29')]),this[_0x58f1('0x3f')][_0x58f1('0x2d')](),this['bodyCollection'][_0x58f1('0x55')](this[_0x58f1('0x35')]);}['attach'](_0x4e3ebe){this[_0x58f1('0x3e')]=_0x4e3ebe;const _0x1b73d0=this[_0x58f1('0x46')][_0x58f1('0x3b')][_0x58f1('0x5')](_0x27aa92),_0x3c6cea=this[_0x58f1('0x35')];if(_0x1b73d0['_annotations']=_0x4e3ebe,this[_0x58f1('0x3')])throw new _0x1712a9(_0x58f1('0x47'),this);this['isAttached']=!0x0,this[_0x58f1('0x1b')](_0x1b73d0,'set:container',()=>{this[_0x58f1('0xa')](),this[_0x58f1('0x1b')](_0x1b73d0,'change:container',_0x111051=>{_0x111051[_0x58f1('0x56')](),this[_0x58f1('0x27')](_0x4e3ebe);});}),_0x1b73d0[_0x58f1('0x36')]({'viewClass':_0x58f1('0x3c'),'spaceBetweenItems':0x5});const _0x4ab361=_0x3ca26c=>{const _0x2bdf48=new _0x60a638(this[_0x58f1('0x46')][_0x58f1('0x29')]);_0x1b73d0[_0x58f1('0xf')](_0x3ca26c,_0x2bdf48),this[_0x58f1('0x4a')][_0x58f1('0x16')](_0x3ca26c,_0x2bdf48),_0x2bdf48[_0x58f1('0x4b')](_0x58f1('0x11'),_0x58f1('0x8'),_0x58f1('0x57'))['to'](_0x3ca26c[_0x58f1('0x20')],'isDirty','type',_0x58f1('0x5b')),_0x2bdf48['on'](_0x58f1('0xe'),()=>{this[_0x58f1('0x2f')][_0x58f1('0x38')](),_0x3c6cea[_0x58f1('0x1')][_0x58f1('0x6')]!==_0x3ca26c[_0x58f1('0x20')]?(this['_showBalloon'](_0x3ca26c),_0x3ca26c[_0x58f1('0x20')][_0x58f1('0x10')][_0x58f1('0x59')](),this[_0x58f1('0x54')](_0x3ca26c)):this[_0x58f1('0x54')](null);});};for(const _0x4af12d of _0x4e3ebe)_0x4ab361(_0x4af12d);this['listenTo'](_0x4e3ebe,_0x58f1('0x55'),(_0xcf4674,_0xd7b6a)=>{_0x4ab361(_0xd7b6a);}),this['listenTo'](_0x4e3ebe,_0x58f1('0x9'),(_0x473329,_0x5c9dc7,_0x2b7746)=>{this['_annotationToNarrowView'][_0x58f1('0x5')](_0x5c9dc7)[_0x58f1('0x31')](),this[_0x58f1('0x4a')]['delete'](_0x5c9dc7),_0x1b73d0[_0x58f1('0x32')]({'removedAnnotation':_0x5c9dc7,'previousAnnotation':_0x4e3ebe[_0x58f1('0x5')](_0x2b7746-0x1),'nextAnnotation':_0x4e3ebe[_0x58f1('0x5')](_0x2b7746+0x1)}),_0x5c9dc7===this[_0x58f1('0x26')]&&this[_0x58f1('0x54')](null);},{'priority':_0x58f1('0x4c')}),this[_0x58f1('0x1b')](_0x4e3ebe,_0x58f1('0x59'),(_0x4fa85f,_0xcb3c1)=>{this[_0x58f1('0x54')](_0xcb3c1);}),this[_0x58f1('0x1b')](_0x4e3ebe,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter'][_0x58f1('0x1b')](document,'keydown',(_0x352395,_0x460451)=>{_0x460451[_0x58f1('0x2a')]===_0xad897c[_0x58f1('0x14')]&&_0x3c6cea['isVisible']&&(this[_0x58f1('0x2f')][_0x58f1('0x55')](_0x3c6cea['content'][_0x58f1('0x6')]),this[_0x58f1('0xd')](),_0x460451[_0x58f1('0x3a')](),_0x460451[_0x58f1('0x39')]());}),this[_0x58f1('0x7')][_0x58f1('0x1b')](document,_0x58f1('0x19'),(_0x880207,_0x42abfc)=>{const _0xf5fe3=_0x42abfc[_0x58f1('0x17')];_0x3c6cea[_0x58f1('0xc')]&&_0x3c6cea[_0x58f1('0x10')][_0x58f1('0x2c')](_0xf5fe3)||_0x1b73d0['view'][_0x58f1('0x10')]['contains'](_0xf5fe3)||_0x880207['preventClosingBalloon']||(this[_0x58f1('0x2f')][_0x58f1('0x38')](),this['_hideBalloon'](),this[_0x58f1('0x54')](null));});const _0x3cc2ba=this['context']instanceof _0x2531c8?this['context']['editors']:new _0x5b916d([this[_0x58f1('0x46')]]);for(const _0x5c91d8 of _0x3cc2ba)this['_integrateWithEditorAnnotations'](_0x5c91d8);this[_0x58f1('0x1b')](_0x3cc2ba,_0x58f1('0x55'),(_0x8ce8dd,_0x2a585e)=>{this[_0x58f1('0x1b')](_0x2a585e,'ready',()=>{this[_0x58f1('0x1d')](_0x2a585e);});}),this[_0x58f1('0x1b')](_0x3cc2ba,_0x58f1('0x9'),(_0x850f87,_0xfce667)=>{_0xfce667[_0x58f1('0x3b')]['has'](_0x58f1('0x4'))&&this[_0x58f1('0x1a')](_0xfce667[_0x58f1('0x3b')][_0x58f1('0x5')](_0x58f1('0x4')));}),window[_0x58f1('0x2')](_0x58f1('0x53'),this[_0x58f1('0x25')]),this[_0x58f1('0x58')]();}[_0x58f1('0x54')](_0x211af7){if(_0x211af7===this[_0x58f1('0x26')])return;const _0xee7f5c=this[_0x58f1('0x46')][_0x58f1('0x3b')][_0x58f1('0x5')](_0x27aa92);if(_0xee7f5c[_0x58f1('0x1c')]({'blurredAnnotation':this[_0x58f1('0x26')],'activatedAnnotation':_0x211af7,'disableAnimationOnActivatedAnnotation':!0x0}),_0x211af7)_0xee7f5c[_0x58f1('0x30')](_0x211af7)?this[_0x58f1('0xb')](_0x211af7):this[_0x58f1('0xd')]();else this[_0x58f1('0xd')]();this[_0x58f1('0x26')]=_0x211af7;}[_0x58f1('0xa')](){if(!this[_0x58f1('0x3')])throw new _0x1712a9('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x4b8178=this[_0x58f1('0x46')][_0x58f1('0x3b')][_0x58f1('0x5')](_0x27aa92);this[_0x58f1('0xd')](),Array[_0x58f1('0x28')](this['_annotationToNarrowView'][_0x58f1('0x23')](),_0x20a613=>_0x20a613[_0x58f1('0x31')]()),this['_annotationToNarrowView'][_0x58f1('0x38')](),_0x4b8178[_0x58f1('0x40')](this[_0x58f1('0x3e')]),this[_0x58f1('0x45')](),this[_0x58f1('0x7')]['stopListening'](),this[_0x58f1('0x46')]instanceof _0x2531c8&&this[_0x58f1('0x45')](this['context'][_0x58f1('0x4e')]);for(const _0x107a2f of Array[_0x58f1('0x28')](this[_0x58f1('0x4d')]))this[_0x58f1('0x1a')](_0x107a2f);window[_0x58f1('0x50')]('resize',this[_0x58f1('0x25')]),this[_0x58f1('0x25')][_0x58f1('0x22')](),this[_0x58f1('0x37')]=[],this[_0x58f1('0x3')]=!0x1,this[_0x58f1('0x3e')]=null;}['destroy'](){this['isAttached']&&this[_0x58f1('0xa')](),this[_0x58f1('0x3f')][_0x58f1('0x49')]();}[_0x58f1('0x1d')](_0xea9485){const _0xc3215c=_0xea9485[_0x58f1('0x3b')][_0x58f1('0x5')](_0x1858f4),_0x2cada6=this[_0x58f1('0x46')][_0x58f1('0x3b')][_0x58f1('0x5')](_0x27aa92),_0x33de74=this[_0x58f1('0x3e')],_0x341421=this['balloonPanelView'],_0x41566a=()=>{const _0x362ccf=_0xc3215c[_0x58f1('0x3d')]({'annotations':this[_0x58f1('0x3e')],'activeAnnotation':this[_0x58f1('0x26')]});this[_0x58f1('0x4f')](_0x362ccf),this['setActiveAnnotation'](_0x362ccf[0x0]||null);};this[_0x58f1('0x1b')](_0xc3215c,_0x58f1('0x1c'),_0x41566a),this[_0x58f1('0x1b')](_0xc3215c,_0x58f1('0x34'),(_0x43fa56,{isAnnotationTracked:_0x2dcad5})=>{this[_0x58f1('0x26')]&&_0x2dcad5(this[_0x58f1('0x26')])&&(this[_0x58f1('0x4f')]([]),this['setActiveAnnotation'](null));}),this[_0x58f1('0x1b')](_0xc3215c,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this[_0x58f1('0x1b')](_0x33de74,_0x58f1('0x34'),_0x51f0d3=>{_0xc3215c['hasDomSelection']()&&_0x51f0d3[_0x58f1('0x1e')]();},{'priority':_0x58f1('0x21')}),this[_0x58f1('0x1b')](this[_0x58f1('0x7')],'mousedown',(_0x1dbb1f,_0x62464)=>{const _0x29b760=_0x62464['target'];_0x341421[_0x58f1('0xc')]&&_0x341421[_0x58f1('0x10')][_0x58f1('0x2c')](_0x29b760)||_0x2cada6[_0x58f1('0x20')][_0x58f1('0x10')][_0x58f1('0x2c')](_0x29b760)||this[_0x58f1('0x26')]&&_0xc3215c['hasDomSelection']()&&(_0x41566a(),_0x1dbb1f[_0x58f1('0x24')]=!0x0);},{'priority':_0x58f1('0x21')}),this[_0x58f1('0x4d')][_0x58f1('0x55')](_0xc3215c);}['_destroyEditorAnnotationsIntegration'](_0x4758ca){_0x4758ca&&(this[_0x58f1('0x45')](_0x4758ca),this[_0x58f1('0x4d')][_0x58f1('0x9')](_0x4758ca));}[_0x58f1('0x4f')](_0x23e7f9){for(const _0x2734ef of this['_selectedAnnotations'])_0x23e7f9[_0x58f1('0x13')](_0x2734ef)||this[_0x58f1('0x2f')]['delete'](_0x2734ef[_0x58f1('0x20')]);this[_0x58f1('0x37')]=_0x23e7f9;}[_0x58f1('0x58')](){const _0x4a0249=this['balloonPanelView'];this[_0x58f1('0x3e')][_0x58f1('0x51')](),_0x4a0249['isVisible']&&this[_0x58f1('0x1f')]();}['_showBalloon'](_0x4c9b2f){if(this['_manuallyClosedAnnotationViews'][_0x58f1('0x48')](_0x4c9b2f[_0x58f1('0x20')]))return;const _0x48ae5a=this[_0x58f1('0x35')][_0x58f1('0x1')][_0x58f1('0x6')];_0x48ae5a!==_0x4c9b2f['view']?(_0x48ae5a&&this['_detachListeners'](_0x48ae5a),this[_0x58f1('0x41')](_0x4c9b2f['view']),this[_0x58f1('0x35')][_0x58f1('0x1')][_0x58f1('0x38')](),this[_0x58f1('0x35')]['content'][_0x58f1('0x55')](_0x4c9b2f[_0x58f1('0x20')]),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}[_0x58f1('0x1f')](){const _0x199bae=this[_0x58f1('0x35')][_0x58f1('0x1')][_0x58f1('0x6')],_0x18e1af=_0x199bae&&this[_0x58f1('0x3e')][_0x58f1('0x2b')](_0x199bae);if(!_0x18e1af||!this[_0x58f1('0x4a')][_0x58f1('0x48')](_0x18e1af))return;const _0x1eb1c7=this['_annotationToNarrowView'][_0x58f1('0x5')](_0x18e1af)[_0x58f1('0x10')],_0xb1ad10=function(){const _0xb7a869=_0x4da970[_0x58f1('0x0')];return[_0xb7a869[_0x58f1('0x52')],_0xb7a869['northArrowSouthEast'],_0xb7a869[_0x58f1('0x43')],_0xb7a869['northArrowSouth'],_0xb7a869[_0x58f1('0x2e')],_0xb7a869['northArrowSouthWest']];}();this[_0x58f1('0x35')]['pin']({'target':_0x1eb1c7,'positions':_0xb1ad10});}['_hideBalloon'](){const _0x546b58=this[_0x58f1('0x35')],_0x38a9b3=_0x546b58['content'][_0x58f1('0x6')];_0x38a9b3&&(this[_0x58f1('0x44')](_0x38a9b3),_0x546b58[_0x58f1('0x18')](),_0x546b58[_0x58f1('0x1')][_0x58f1('0x38')]());}[_0x58f1('0x41')](_0x54375e){this[_0x58f1('0x1b')](_0x54375e,'change:height',()=>this[_0x58f1('0x1f')]()),this[_0x58f1('0x1b')](_0x54375e,'Esc',(_0x26a54a,_0x52299b)=>{this['_manuallyClosedAnnotationViews'][_0x58f1('0x55')](_0x54375e),this[_0x58f1('0xd')](),_0x52299b();});}[_0x58f1('0x44')](_0x280da8){this[_0x58f1('0x45')](_0x280da8);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x23f9=['_getTargetTop','delete','_alignForTopChange','_alignAfterItem','_attachToContainer','appendChild','_targetTop','max','top','get','refresh','change:bottom','_getItemAfter','init','sidebar-setcontainer-invalid-element','_alignBeforeItem','content','destroy','getSidebarItemView','rearrange','unbind','_alignToTargetRect','minHeight','_lastItem','define','length','element','sidebar-attachtocontainer-missing-container','setContainer','bind','nodeType','isActive','view','listenTo','_activeAnnotation','_recalculate','sidebar.preventScrollOutOfView','_getMaxAvailableTop','remove','_updateLastItem','object','_destroySidebarItemView','change:targetRect','_spaceBetweenItems','_alignForBottomChange','Sidebar','_setItemTop','add','getIndex','context','set','container','change:_lastItem','addAnnotation','last','change:top','render','_detachFromContainer','updateHeight','_createSidebarView','_getItemBefore','stopListening','_sidebarItemViewToAnnotation','list','targetRect','_annotations','_annotationToSidebarItemView','target','_recalculateBuffer','bottom','locale','clear','isAnimationDisabled','config'];(function(_0x35e5b6,_0x23f9f7){const _0x102d30=function(_0x5cac3f){while(--_0x5cac3f){_0x35e5b6['push'](_0x35e5b6['shift']());}};_0x102d30(++_0x23f9f7);}(_0x23f9,0x146));const _0x102d=function(_0x35e5b6,_0x23f9f7){_0x35e5b6=_0x35e5b6-0x0;let _0x102d30=_0x23f9[_0x35e5b6];return _0x102d30;};import{ContextPlugin as _0x14445a}from'ckeditor5/src/core';import{Rect as _0x1b1f6f,CKEditorError as _0x5cf2db}from'ckeditor5/src/utils';import _0x240aa0 from'./view/sidebarview';import _0x5d4168 from'./view/sidebaritemview';export default class z extends _0x14445a{static get['pluginName'](){return _0x102d('0xf');}constructor(_0x5e0158){super(_0x5e0158),this[_0x102d('0x14')]('_lastItem',void 0x0),this[_0x102d('0x2')]=this[_0x102d('0x1d')](),this[_0x102d('0x14')]('container',null),this[_0x102d('0xd')]=0x19,this[_0x102d('0x20')]=new Map(),this[_0x102d('0x24')]=new Map(),this[_0x102d('0x13')][_0x102d('0x2b')][_0x102d('0x44')](_0x102d('0x6'),!0x1),this[_0x102d('0x23')]=null,this['_activeAnnotation']=null,this[_0x102d('0x26')]=[];}[_0x102d('0x39')](){const _0x139444=this[_0x102d('0x13')]['config']['get']('sidebar.container');_0x139444&&this[_0x102d('0x48')](_0x139444);}[_0x102d('0x48')](_0x34d6f4){if(!y(_0x34d6f4))throw new _0x5cf2db(_0x102d('0x3a'));this[_0x102d('0x15')]=_0x34d6f4;}[_0x102d('0x30')]({viewClass:_0x3dac17='',spaceBetweenItems:_0x26ccfc=0x19}={}){if(!y(this['container']))throw new _0x5cf2db(_0x102d('0x47'),this);this[_0x102d('0x15')][_0x102d('0x31')](this['view'][_0x102d('0x46')]),this[_0x102d('0x2')]['class']=_0x3dac17,this[_0x102d('0xd')]=_0x26ccfc;}[_0x102d('0x3f')]({removedAnnotation:_0x5e847d,previousAnnotation:_0x5e02b4,nextAnnotation:_0x55c417}){const _0xc117f=this['getSidebarItemView'](_0x5e847d);this['view'][_0x102d('0x21')][_0x102d('0x8')](_0xc117f),this[_0x102d('0xb')](_0x5e847d),_0x5e02b4&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x5e02b4)),_0x55c417&&this[_0x102d('0x41')](this['getSidebarItemView'](_0x55c417)),this['_updateLastItem']();}[_0x102d('0x36')]({blurredAnnotation:_0x41397e,activatedAnnotation:_0x56386a,disableAnimationOnActivatedAnnotation:_0x2d1666}){if(this[_0x102d('0x4')]=_0x56386a,_0x41397e){_0x41397e['isActive']=!0x1;const _0x5d0fe5=this[_0x102d('0x3e')](_0x41397e);_0x5d0fe5&&_0x2d1666&&(_0x5d0fe5[_0x102d('0x2a')]=!0x1);}if(_0x56386a){const _0x9b5666=this[_0x102d('0x3e')](_0x56386a);_0x9b5666&&(_0x56386a[_0x102d('0x1')]=!0x0,_0x2d1666&&(_0x9b5666['isAnimationDisabled']=!0x0,_0x9b5666[_0x102d('0x34')]+=0x1),this[_0x102d('0x41')](_0x9b5666));}}[_0x102d('0x1b')](_0x2b41e5){if(this['stopListening'](),this[_0x102d('0x2')][_0x102d('0x46')][_0x102d('0x8')](),_0x2b41e5)for(const _0x428825 of _0x2b41e5)this[_0x102d('0xb')](_0x428825);this[_0x102d('0x2')][_0x102d('0x21')][_0x102d('0x29')](),this[_0x102d('0x2')]['class']='',this['_lastItem']=null;}[_0x102d('0x17')](_0xb4d019,_0x4d73e2){_0x4d73e2||(_0x4d73e2=_0xb4d019[_0x102d('0x2')]);const _0x34f1c3=new _0x5d4168(this[_0x102d('0x13')][_0x102d('0x28')]);this[_0x102d('0x20')]['set'](_0x34f1c3,_0xb4d019),this[_0x102d('0x24')]['set'](_0xb4d019,_0x34f1c3),_0x34f1c3[_0x102d('0x3c')][_0x102d('0x11')](_0x4d73e2),this[_0x102d('0x3')](_0xb4d019[_0x102d('0x2')],_0x102d('0xc'),(_0xf01d3c,_0x17667e,_0x25b043)=>{const _0x3b8e9a=this[_0x102d('0x2c')](_0xb4d019,_0x25b043);_0x34f1c3[_0x102d('0x32')]!=_0x3b8e9a&&(_0x34f1c3[_0x102d('0x32')]=_0x3b8e9a,this[_0x102d('0x10')](_0x34f1c3,_0x3b8e9a));}),this[_0x102d('0x3')](_0x34f1c3,_0x102d('0x19'),()=>{this[_0x102d('0x5')](_0x34f1c3,_0x102d('0x34'));}),this[_0x102d('0x3')](_0x34f1c3,_0x102d('0x37'),()=>{this['_recalculate'](_0x34f1c3,'bottom');}),this['_alignToTargetRect'](_0x34f1c3);const _0x346eb5=this[_0x102d('0x1e')](_0x34f1c3);if(_0x346eb5)this[_0x102d('0x2f')](_0x346eb5,_0x34f1c3)||this[_0x102d('0x41')](_0x34f1c3);else this[_0x102d('0x41')](_0x34f1c3);return this[_0x102d('0x9')](),this[_0x102d('0x2')][_0x102d('0x21')][_0x102d('0x11')](_0x34f1c3),_0x34f1c3;}['_alignForTopChange'](_0x432592){if(!_0x432592[_0x102d('0x3c')][_0x102d('0x45')])return;const _0x33e410=this[_0x102d('0x1e')](_0x432592);if(!_0x33e410)return;const _0x304884=this[_0x102d('0x20')]['get'](_0x33e410),_0x275f7f=this[_0x102d('0x4')];_0x275f7f&&_0x275f7f===_0x304884?this['_alignAfterItem'](_0x33e410,_0x432592):this[_0x102d('0x3b')](_0x432592,_0x33e410);}[_0x102d('0xe')](_0x18c74a){if(!_0x18c74a[_0x102d('0x3c')][_0x102d('0x45')])return;const _0x2b1384=this[_0x102d('0x38')](_0x18c74a);if(!_0x2b1384)return;const _0x7f0c03=this[_0x102d('0x20')][_0x102d('0x35')](_0x2b1384),_0x1812ea=this[_0x102d('0x13')][_0x102d('0x2b')]['get'](_0x102d('0x6')),_0x534886=this[_0x102d('0x4')];_0x534886&&_0x534886===_0x7f0c03&&_0x1812ea?(this[_0x102d('0x3b')](_0x2b1384,_0x18c74a),this[_0x102d('0x2f')](_0x18c74a,_0x2b1384)):_0x534886&&_0x534886===_0x7f0c03?this['_alignBeforeItem'](_0x2b1384,_0x18c74a):this[_0x102d('0x2f')](_0x18c74a,_0x2b1384);}[_0x102d('0x5')](_0x3b6a7a,_0x3f34de){0x0===this[_0x102d('0x26')]['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x5660aa,changedProp:_0x35b2d5}of this[_0x102d('0x26')])_0x102d('0x34')===_0x35b2d5?this[_0x102d('0x2e')](_0x5660aa):this[_0x102d('0xe')](_0x5660aa);this['_recalculateBuffer']=[];},0xa),this[_0x102d('0x26')]['push']({'sidebarItemView':_0x3b6a7a,'changedProp':_0x3f34de});}[_0x102d('0x3e')](_0x5446f4){return this['_annotationToSidebarItemView']['get'](_0x5446f4);}[_0x102d('0x3d')](){this[_0x102d('0x2')][_0x102d('0x3d')]();}[_0x102d('0xb')](_0x47b04b){const _0x5c33df=this[_0x102d('0x3e')](_0x47b04b);this[_0x102d('0x1f')](_0x5c33df),this[_0x102d('0x1f')](_0x47b04b[_0x102d('0x2')]),_0x5c33df[_0x102d('0x3d')](),this['_annotationToSidebarItemView']['delete'](_0x47b04b),this[_0x102d('0x20')][_0x102d('0x2d')](_0x5c33df);}['_createSidebarView'](){const _0x5be744=new _0x240aa0(this[_0x102d('0x13')][_0x102d('0x28')]);return _0x5be744[_0x102d('0x1a')](),this['on'](_0x102d('0x16'),(_0x12c3bf,_0x3aaaf0,_0x5d00bb,_0x458b45)=>{_0x458b45&&_0x5be744[_0x102d('0x40')]('minHeight'),_0x5d00bb?_0x5be744[_0x102d('0x49')]('minHeight')['to'](_0x5d00bb,'bottom'):_0x5be744[_0x102d('0x42')]=null;}),_0x5be744;}[_0x102d('0x9')](){var _0x229810;this[_0x102d('0x43')]=(null===(_0x229810=this[_0x102d('0x23')])||void 0x0===_0x229810?void 0x0:_0x229810[_0x102d('0x18')])?this['getSidebarItemView'](this['_annotations'][_0x102d('0x18')]):null;}[_0x102d('0x1e')](_0x2454e3){var _0x2407d2;const _0xb6aa0=this[_0x102d('0x20')]['get'](_0x2454e3),_0x221f50=_0xb6aa0&&(null===(_0x2407d2=this[_0x102d('0x23')])||void 0x0===_0x2407d2?void 0x0:_0x2407d2['get'](this[_0x102d('0x23')][_0x102d('0x12')](_0xb6aa0)-0x1));return _0x221f50&&this[_0x102d('0x3e')](_0x221f50)||null;}['_getItemAfter'](_0xd939e5){var _0x221341;const _0x305337=this[_0x102d('0x20')]['get'](_0xd939e5),_0x1c55d3=_0x305337&&(null===(_0x221341=this[_0x102d('0x23')])||void 0x0===_0x221341?void 0x0:_0x221341['get'](this[_0x102d('0x23')]['getIndex'](_0x305337)+0x1));return _0x1c55d3&&this[_0x102d('0x3e')](_0x1c55d3)||null;}['_alignBeforeItem'](_0x4be619,_0x2b89c2){_0x4be619['updateHeight']();const _0x314b75=H(_0x2b89c2[_0x102d('0x27')]+this[_0x102d('0xd')],_0x4be619[_0x102d('0x34')]);return!!_0x314b75&&(this[_0x102d('0x10')](_0x2b89c2,_0x2b89c2[_0x102d('0x34')]-_0x314b75),!0x0);}['_alignAfterItem'](_0x3f9fb9,_0x3de95e){_0x3f9fb9['updateHeight']();const _0x5438d0=H(_0x3f9fb9[_0x102d('0x27')]+this['_spaceBetweenItems'],_0x3de95e['top']);return!!_0x5438d0&&(this['_setItemTop'](_0x3de95e,_0x3de95e[_0x102d('0x34')]+_0x5438d0,!0x1),!0x0);}[_0x102d('0x41')](_0x567ca0){const _0x4346a6=this[_0x102d('0x20')][_0x102d('0x35')](_0x567ca0);if(!_0x4346a6||!_0x4346a6['target']||!_0x4346a6[_0x102d('0x22')])return;const _0x469431=this[_0x102d('0x2c')](_0x4346a6,_0x4346a6[_0x102d('0x22')]);this['_setItemTop'](_0x567ca0,_0x469431);}[_0x102d('0x2c')](_0x1416a8,_0xccdf3a){if(null===_0xccdf3a)return 0x0;if(_0x1416a8[_0x102d('0x25')]instanceof _0x1b1f6f)return _0xccdf3a[_0x102d('0x34')];{const _0x344bc1=new _0x1b1f6f(this[_0x102d('0x2')]['element'])[_0x102d('0x34')];return _0xccdf3a[_0x102d('0x34')]-_0x344bc1;}}[_0x102d('0x10')](_0xc5c6fb,_0xd3c72b,_0x4f0fbb=this[_0x102d('0x13')][_0x102d('0x2b')][_0x102d('0x35')]('sidebar.preventScrollOutOfView')){_0x4f0fbb&&(_0xd3c72b=Math[_0x102d('0x33')](_0xd3c72b,this[_0x102d('0x7')](_0xc5c6fb))),_0xc5c6fb['top']=_0xd3c72b;}[_0x102d('0x7')](_0x48fa40){let _0x109045=this[_0x102d('0x1e')](_0x48fa40),_0x2e3ece=0x0;for(;_0x109045;)_0x109045[_0x102d('0x1c')](),_0x2e3ece+=this[_0x102d('0xd')]+_0x109045['height'],_0x109045=this[_0x102d('0x1e')](_0x109045);return _0x2e3ece;}}function H(_0x3a08cf,_0x30f202){return Math[_0x102d('0x33')](_0x3a08cf-_0x30f202,0x0);}function y(_0x5e126d){return null!==_0x5e126d&&_0x102d('0xa')==typeof _0x5e126d&&0x1===_0x5e126d[_0x102d('0x0')];}
23
+ const _0x2aea=['change:top','_setItemTop','unbind','minHeight','isActive','pluginName','_alignForTopChange','bind','_sidebarItemViewToAnnotation','delete','remove','isAnimationDisabled','nodeType','_destroySidebarItemView','bottom','container','last','destroy','addAnnotation','stopListening','view','_recalculate','_getTargetTop','sidebar.preventScrollOutOfView','_detachFromContainer','element','_annotationToSidebarItemView','clear','define','sidebar.container','updateHeight','max','_alignForBottomChange','_activeAnnotation','_getItemAfter','target','_targetTop','rearrange','_recalculateBuffer','_alignBeforeItem','listenTo','change:bottom','getSidebarItemView','setContainer','class','height','_spaceBetweenItems','getIndex','_updateLastItem','_annotations','appendChild','_createSidebarView','targetRect','add','_getItemBefore','_alignToTargetRect','list','set','_lastItem','get','init','top','object','config','_getMaxAvailableTop','length','sidebar-setcontainer-invalid-element','content','locale','context','_alignAfterItem','_attachToContainer','change:targetRect'];(function(_0x41283d,_0x2aeafc){const _0x1b82a8=function(_0xac8536){while(--_0xac8536){_0x41283d['push'](_0x41283d['shift']());}};_0x1b82a8(++_0x2aeafc);}(_0x2aea,0x175));const _0x1b82=function(_0x41283d,_0x2aeafc){_0x41283d=_0x41283d-0x0;let _0x1b82a8=_0x2aea[_0x41283d];return _0x1b82a8;};import{ContextPlugin as _0x4c5a99}from'ckeditor5/src/core';import{Rect as _0xc8e253,CKEditorError as _0x55b66b}from'ckeditor5/src/utils';import _0x20a06e from'./view/sidebarview';import _0x142c97 from'./view/sidebaritemview';export default class z extends _0x4c5a99{static get[_0x1b82('0x46')](){return'Sidebar';}constructor(_0x347e2a){super(_0x347e2a),this[_0x1b82('0x31')]('_lastItem',void 0x0),this['view']=this[_0x1b82('0x2b')](),this[_0x1b82('0x31')](_0x1b82('0x7'),null),this['_spaceBetweenItems']=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this[_0x1b82('0x12')]=new Map(),this[_0x1b82('0x3d')][_0x1b82('0x37')][_0x1b82('0x14')](_0x1b82('0xf'),!0x1),this['_annotations']=null,this['_activeAnnotation']=null,this['_recalculateBuffer']=[];}[_0x1b82('0x34')](){const _0x5d2f60=this[_0x1b82('0x3d')][_0x1b82('0x37')][_0x1b82('0x33')](_0x1b82('0x15'));_0x5d2f60&&this[_0x1b82('0x23')](_0x5d2f60);}[_0x1b82('0x23')](_0x4c01b7){if(!y(_0x4c01b7))throw new _0x55b66b(_0x1b82('0x3a'));this['container']=_0x4c01b7;}[_0x1b82('0x3f')]({viewClass:_0x29208f='',spaceBetweenItems:_0x2657db=0x19}={}){if(!y(this[_0x1b82('0x7')]))throw new _0x55b66b('sidebar-attachtocontainer-missing-container',this);this[_0x1b82('0x7')][_0x1b82('0x2a')](this[_0x1b82('0xc')][_0x1b82('0x11')]),this[_0x1b82('0xc')][_0x1b82('0x24')]=_0x29208f,this[_0x1b82('0x26')]=_0x2657db;}[_0x1b82('0x1d')]({removedAnnotation:_0xe93aa9,previousAnnotation:_0x37f713,nextAnnotation:_0x2809a0}){const _0x311abf=this[_0x1b82('0x22')](_0xe93aa9);this[_0x1b82('0xc')]['list']['remove'](_0x311abf),this[_0x1b82('0x5')](_0xe93aa9),_0x37f713&&this[_0x1b82('0x2f')](this['getSidebarItemView'](_0x37f713)),_0x2809a0&&this[_0x1b82('0x2f')](this[_0x1b82('0x22')](_0x2809a0)),this[_0x1b82('0x28')]();}['refresh']({blurredAnnotation:_0x15accb,activatedAnnotation:_0x5522f2,disableAnimationOnActivatedAnnotation:_0x221fca}){if(this[_0x1b82('0x19')]=_0x5522f2,_0x15accb){_0x15accb[_0x1b82('0x45')]=!0x1;const _0x1d30df=this[_0x1b82('0x22')](_0x15accb);_0x1d30df&&_0x221fca&&(_0x1d30df[_0x1b82('0x3')]=!0x1);}if(_0x5522f2){const _0x5b104b=this['getSidebarItemView'](_0x5522f2);_0x5b104b&&(_0x5522f2[_0x1b82('0x45')]=!0x0,_0x221fca&&(_0x5b104b[_0x1b82('0x3')]=!0x0,_0x5b104b[_0x1b82('0x35')]+=0x1),this[_0x1b82('0x2f')](_0x5b104b));}}[_0x1b82('0x10')](_0x29b43c){if(this[_0x1b82('0xb')](),this[_0x1b82('0xc')][_0x1b82('0x11')][_0x1b82('0x2')](),_0x29b43c)for(const _0x948a75 of _0x29b43c)this[_0x1b82('0x5')](_0x948a75);this['view'][_0x1b82('0x30')][_0x1b82('0x13')](),this['view'][_0x1b82('0x24')]='',this[_0x1b82('0x32')]=null;}[_0x1b82('0xa')](_0x1387b3,_0x1d32cd){_0x1d32cd||(_0x1d32cd=_0x1387b3[_0x1b82('0xc')]);const _0x52f5a4=new _0x142c97(this[_0x1b82('0x3d')][_0x1b82('0x3c')]);this[_0x1b82('0x0')][_0x1b82('0x31')](_0x52f5a4,_0x1387b3),this[_0x1b82('0x12')]['set'](_0x1387b3,_0x52f5a4),_0x52f5a4[_0x1b82('0x3b')][_0x1b82('0x2d')](_0x1d32cd),this[_0x1b82('0x20')](_0x1387b3[_0x1b82('0xc')],_0x1b82('0x40'),(_0x19c97d,_0x3662f0,_0xddd110)=>{const _0x4b06ec=this[_0x1b82('0xe')](_0x1387b3,_0xddd110);_0x52f5a4['_targetTop']!=_0x4b06ec&&(_0x52f5a4[_0x1b82('0x1c')]=_0x4b06ec,this[_0x1b82('0x42')](_0x52f5a4,_0x4b06ec));}),this[_0x1b82('0x20')](_0x52f5a4,_0x1b82('0x41'),()=>{this[_0x1b82('0xd')](_0x52f5a4,'top');}),this[_0x1b82('0x20')](_0x52f5a4,_0x1b82('0x21'),()=>{this[_0x1b82('0xd')](_0x52f5a4,_0x1b82('0x6'));}),this[_0x1b82('0x2f')](_0x52f5a4);const _0x314ec0=this[_0x1b82('0x2e')](_0x52f5a4);if(_0x314ec0)this[_0x1b82('0x3e')](_0x314ec0,_0x52f5a4)||this[_0x1b82('0x2f')](_0x52f5a4);else this[_0x1b82('0x2f')](_0x52f5a4);return this[_0x1b82('0x28')](),this[_0x1b82('0xc')]['list']['add'](_0x52f5a4),_0x52f5a4;}[_0x1b82('0x47')](_0x352cbb){if(!_0x352cbb['content'][_0x1b82('0x39')])return;const _0x2b3b41=this[_0x1b82('0x2e')](_0x352cbb);if(!_0x2b3b41)return;const _0x20be38=this[_0x1b82('0x0')][_0x1b82('0x33')](_0x2b3b41),_0x5cb81c=this[_0x1b82('0x19')];_0x5cb81c&&_0x5cb81c===_0x20be38?this[_0x1b82('0x3e')](_0x2b3b41,_0x352cbb):this[_0x1b82('0x1f')](_0x352cbb,_0x2b3b41);}['_alignForBottomChange'](_0x301d86){if(!_0x301d86['content']['length'])return;const _0x30c9f7=this[_0x1b82('0x1a')](_0x301d86);if(!_0x30c9f7)return;const _0x4d8196=this[_0x1b82('0x0')]['get'](_0x30c9f7),_0x89250a=this[_0x1b82('0x3d')]['config'][_0x1b82('0x33')]('sidebar.preventScrollOutOfView'),_0x581a37=this[_0x1b82('0x19')];_0x581a37&&_0x581a37===_0x4d8196&&_0x89250a?(this[_0x1b82('0x1f')](_0x30c9f7,_0x301d86),this[_0x1b82('0x3e')](_0x301d86,_0x30c9f7)):_0x581a37&&_0x581a37===_0x4d8196?this['_alignBeforeItem'](_0x30c9f7,_0x301d86):this['_alignAfterItem'](_0x301d86,_0x30c9f7);}[_0x1b82('0xd')](_0x995bde,_0x134c81){0x0===this[_0x1b82('0x1e')][_0x1b82('0x39')]&&setTimeout(()=>{for(const {sidebarItemView:_0x4e2ba2,changedProp:_0x3bfec8}of this[_0x1b82('0x1e')])_0x1b82('0x35')===_0x3bfec8?this[_0x1b82('0x47')](_0x4e2ba2):this[_0x1b82('0x18')](_0x4e2ba2);this[_0x1b82('0x1e')]=[];},0xa),this[_0x1b82('0x1e')]['push']({'sidebarItemView':_0x995bde,'changedProp':_0x134c81});}[_0x1b82('0x22')](_0x12b73c){return this[_0x1b82('0x12')][_0x1b82('0x33')](_0x12b73c);}[_0x1b82('0x9')](){this[_0x1b82('0xc')][_0x1b82('0x9')]();}[_0x1b82('0x5')](_0x124153){const _0x53eecf=this['getSidebarItemView'](_0x124153);this[_0x1b82('0xb')](_0x53eecf),this[_0x1b82('0xb')](_0x124153[_0x1b82('0xc')]),_0x53eecf[_0x1b82('0x9')](),this['_annotationToSidebarItemView']['delete'](_0x124153),this[_0x1b82('0x0')][_0x1b82('0x1')](_0x53eecf);}[_0x1b82('0x2b')](){const _0x57453d=new _0x20a06e(this['context'][_0x1b82('0x3c')]);return _0x57453d['render'](),this['on']('change:_lastItem',(_0xcf13a4,_0x4d4e02,_0x426e88,_0x5a10bf)=>{_0x5a10bf&&_0x57453d[_0x1b82('0x43')]('minHeight'),_0x426e88?_0x57453d[_0x1b82('0x48')](_0x1b82('0x44'))['to'](_0x426e88,'bottom'):_0x57453d[_0x1b82('0x44')]=null;}),_0x57453d;}[_0x1b82('0x28')](){var _0x31efaa;this['_lastItem']=(null===(_0x31efaa=this['_annotations'])||void 0x0===_0x31efaa?void 0x0:_0x31efaa[_0x1b82('0x8')])?this[_0x1b82('0x22')](this[_0x1b82('0x29')][_0x1b82('0x8')]):null;}[_0x1b82('0x2e')](_0x27e1b6){var _0x4a0d46;const _0x5f5a63=this[_0x1b82('0x0')]['get'](_0x27e1b6),_0x137b3c=_0x5f5a63&&(null===(_0x4a0d46=this[_0x1b82('0x29')])||void 0x0===_0x4a0d46?void 0x0:_0x4a0d46[_0x1b82('0x33')](this[_0x1b82('0x29')][_0x1b82('0x27')](_0x5f5a63)-0x1));return _0x137b3c&&this[_0x1b82('0x22')](_0x137b3c)||null;}[_0x1b82('0x1a')](_0x5b0251){var _0x259b78;const _0x24bb09=this[_0x1b82('0x0')][_0x1b82('0x33')](_0x5b0251),_0x331cd5=_0x24bb09&&(null===(_0x259b78=this[_0x1b82('0x29')])||void 0x0===_0x259b78?void 0x0:_0x259b78[_0x1b82('0x33')](this[_0x1b82('0x29')][_0x1b82('0x27')](_0x24bb09)+0x1));return _0x331cd5&&this[_0x1b82('0x22')](_0x331cd5)||null;}['_alignBeforeItem'](_0x2f950b,_0x3112e0){_0x2f950b[_0x1b82('0x16')]();const _0x459cd8=H(_0x3112e0[_0x1b82('0x6')]+this['_spaceBetweenItems'],_0x2f950b['top']);return!!_0x459cd8&&(this[_0x1b82('0x42')](_0x3112e0,_0x3112e0['top']-_0x459cd8),!0x0);}[_0x1b82('0x3e')](_0x4ad52d,_0x23afd5){_0x4ad52d['updateHeight']();const _0x46487a=H(_0x4ad52d[_0x1b82('0x6')]+this[_0x1b82('0x26')],_0x23afd5[_0x1b82('0x35')]);return!!_0x46487a&&(this[_0x1b82('0x42')](_0x23afd5,_0x23afd5[_0x1b82('0x35')]+_0x46487a,!0x1),!0x0);}['_alignToTargetRect'](_0x5ac4ec){const _0x4a522b=this[_0x1b82('0x0')][_0x1b82('0x33')](_0x5ac4ec);if(!_0x4a522b||!_0x4a522b['target']||!_0x4a522b[_0x1b82('0x2c')])return;const _0x2550b0=this['_getTargetTop'](_0x4a522b,_0x4a522b['targetRect']);this[_0x1b82('0x42')](_0x5ac4ec,_0x2550b0);}['_getTargetTop'](_0x4c3cf1,_0x5dc4bf){if(null===_0x5dc4bf)return 0x0;if(_0x4c3cf1[_0x1b82('0x1b')]instanceof _0xc8e253)return _0x5dc4bf['top'];{const _0x2f1188=new _0xc8e253(this[_0x1b82('0xc')][_0x1b82('0x11')])[_0x1b82('0x35')];return _0x5dc4bf[_0x1b82('0x35')]-_0x2f1188;}}[_0x1b82('0x42')](_0x294eb7,_0x2ce99d,_0x530e5b=this[_0x1b82('0x3d')][_0x1b82('0x37')][_0x1b82('0x33')](_0x1b82('0xf'))){_0x530e5b&&(_0x2ce99d=Math['max'](_0x2ce99d,this[_0x1b82('0x38')](_0x294eb7))),_0x294eb7[_0x1b82('0x35')]=_0x2ce99d;}[_0x1b82('0x38')](_0x5c36ef){let _0x5e3a9e=this['_getItemBefore'](_0x5c36ef),_0x395be1=0x0;for(;_0x5e3a9e;)_0x5e3a9e[_0x1b82('0x16')](),_0x395be1+=this[_0x1b82('0x26')]+_0x5e3a9e[_0x1b82('0x25')],_0x5e3a9e=this[_0x1b82('0x2e')](_0x5e3a9e);return _0x395be1;}}function H(_0x21c6af,_0x1c231d){return Math[_0x1b82('0x17')](_0x21c6af-_0x1c231d,0x0);}function y(_0x266f01){return null!==_0x266f01&&_0x1b82('0x36')==typeof _0x266f01&&0x1===_0x266f01[_0x1b82('0x4')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2df1=['counterView','bind','span','set','add','ck-annotation-counter__badge--edit-mode','_badge','setTemplate','...','number','toString','isDirty','ck-annotation-counter__badge','annotationType','children'];(function(_0x4a37ae,_0x2df1bf){const _0x460c37=function(_0x56cf1f){while(--_0x56cf1f){_0x4a37ae['push'](_0x4a37ae['shift']());}};_0x460c37(++_0x2df1bf);}(_0x2df1,0x19c));const _0x460c=function(_0x4a37ae,_0x2df1bf){_0x4a37ae=_0x4a37ae-0x0;let _0x460c37=_0x2df1[_0x4a37ae];return _0x460c37;};import{ButtonView as _0x244a67,View as _0x3f56f5}from'ckeditor5/src/ui';import _0x1307b2 from'../../../theme/icons/add-comment.svg';export default class D extends _0x244a67{constructor(_0x24ea56){super(_0x24ea56);const _0x4a7e63=this['bindTemplate'];this[_0x460c('0xb')](_0x460c('0x4'),!0x1),this['set'](_0x460c('0x2'),0x0),this[_0x460c('0x9')](_0x460c('0xe'))['to'](this,_0x460c('0x4'),this,_0x460c('0x2'),(_0x1c72eb,_0x313e73)=>_0x1c72eb?_0x460c('0x1'):_0x313e73[_0x460c('0x3')]()),this['set'](_0x460c('0x6'),''),this['icon']=_0x1307b2,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this[_0x460c('0x8')]=new _0x3f56f5(),this['counterView'][_0x460c('0x0')]({'tag':_0x460c('0xa'),'attributes':{'class':[_0x460c('0x5'),_0x4a7e63['to']('annotationType',_0x2a95eb=>'ck-annotation-counter__badge--'+_0x2a95eb),_0x4a7e63['if'](_0x460c('0x4'),_0x460c('0xd'))]},'children':[{'text':_0x4a7e63['to'](_0x460c('0xe'))}]}),this[_0x460c('0x7')][_0x460c('0xc')](this['counterView']);}}
23
+ const _0x2d5f=['span','number','toString','_badge','...','bind','counterView','extendTemplate','ck-annotation-counter__badge--edit-mode','ck-annotation-counter__badge','ck-annotation-counter','add','annotationType','isDirty','ck-annotation-counter__badge--','set'];(function(_0x5262f6,_0x2d5f8e){const _0xc19214=function(_0x2b692e){while(--_0x2b692e){_0x5262f6['push'](_0x5262f6['shift']());}};_0xc19214(++_0x2d5f8e);}(_0x2d5f,0x1be));const _0xc192=function(_0x5262f6,_0x2d5f8e){_0x5262f6=_0x5262f6-0x0;let _0xc19214=_0x2d5f[_0x5262f6];return _0xc19214;};import{ButtonView as _0x393ddd,View as _0x3efa86}from'ckeditor5/src/ui';import _0x56934c from'../../../theme/icons/add-comment.svg';export default class D extends _0x393ddd{constructor(_0x279a1b){super(_0x279a1b);const _0x2e2f3a=this['bindTemplate'];this[_0xc192('0x1')](_0xc192('0xf'),!0x1),this['set'](_0xc192('0x3'),0x0),this[_0xc192('0x7')](_0xc192('0x5'))['to'](this,_0xc192('0xf'),this,_0xc192('0x3'),(_0xb26e8d,_0x39195b)=>_0xb26e8d?_0xc192('0x6'):_0x39195b[_0xc192('0x4')]()),this['set'](_0xc192('0xe'),''),this['icon']=_0x56934c,this[_0xc192('0x9')]({'attributes':{'class':[_0xc192('0xc')]}}),this[_0xc192('0x8')]=new _0x3efa86(),this[_0xc192('0x8')]['setTemplate']({'tag':_0xc192('0x2'),'attributes':{'class':[_0xc192('0xb'),_0x2e2f3a['to'](_0xc192('0xe'),_0x418d80=>_0xc192('0x0')+_0x418d80),_0x2e2f3a['if'](_0xc192('0xf'),_0xc192('0xa'))]},'children':[{'text':_0x2e2f3a['to']('_badge')}]}),this['children'][_0xc192('0xd')](this[_0xc192('0x8')]);}}