@ckeditor/ckeditor5-comments 0.0.0-nightly-20230820.0 → 0.0.0-nightly-20230821.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": "0.0.0-nightly-20230820.0",
3
+ "version": "0.0.0-nightly-20230821.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/)",
@@ -43,8 +43,8 @@
43
43
  "CHANGELOG.md"
44
44
  ],
45
45
  "dependencies": {
46
- "ckeditor5": "0.0.0-nightly-20230820.0",
47
- "ckeditor5-collaboration": "0.0.0-nightly-20230820.0",
46
+ "ckeditor5": "0.0.0-nightly-20230821.1",
47
+ "ckeditor5-collaboration": "0.0.0-nightly-20230821.1",
48
48
  "lodash-es": "4.17.21"
49
49
  },
50
50
  "types": "src/index.d.ts",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x25e4=['filter','remove','length','add','clear','target','item','getClientRects','focusTracker','render','view','every','_id','function','offsetParent','type','destroy','stopListening','isArray','annotation-invalid-target','updateTargetRect','element','targetRect','innerView','isActive','_getNormalizedTarget','_type','mainView','_assertCorrectTarget','focusableElements','isVisible','_target'];(function(_0x3be51f,_0x25e487){const _0x3017a5=function(_0x34b7fc){while(--_0x34b7fc){_0x3be51f['push'](_0x3be51f['shift']());}};_0x3017a5(++_0x25e487);}(_0x25e4,0x15f));const _0x3017=function(_0x3be51f,_0x25e487){_0x3be51f=_0x3be51f-0x0;let _0x3017a5=_0x25e4[_0x3be51f];return _0x3017a5;};import{CKEditorError as _0x1c0aeb,Rect as _0x35d490,Collection as _0x3f826d,ObservableMixin as _0x5d587f}from'ckeditor5/src/utils';export default class d extends _0x5d587f(){constructor({view:_0x4d6d61,target:_0x81fa44,type:_0x3c76c7,isVisible:_0x7c620b=!0x0}){super(),this['view']=_0x4d6d61,this[_0x3017('0xb')][_0x3017('0x16')]||this['view'][_0x3017('0xa')](),this[_0x3017('0x1b')]=_0x3c76c7,this['_target']=_0x81fa44,d[_0x3017('0x1d')](this['_getNormalizedTarget']()),this['focusableElements']=new _0x3f826d([this[_0x3017('0xb')][_0x3017('0x16')]],{'idProperty':_0x3017('0xd')}),this[_0x3017('0x1e')]['on'](_0x3017('0x4'),(_0x5b2841,_0x27bb37)=>{this['view'][_0x3017('0x9')][_0x3017('0x4')](_0x27bb37);}),this[_0x3017('0x1e')]['on'](_0x3017('0x2'),(_0x46e5c1,_0x3ed07b)=>{this[_0x3017('0xb')]['focusTracker'][_0x3017('0x2')](_0x3ed07b);}),this['set'](_0x3017('0x1f'),_0x7c620b);}get[_0x3017('0x10')](){return _0x3017('0xe')==typeof this[_0x3017('0x1b')]?this[_0x3017('0x1b')]():this['_type'];}get[_0x3017('0x18')](){return this['view'][_0x3017('0x1c')];}get['target'](){const _0x3fee07=this[_0x3017('0x1a')]();return d[_0x3017('0x1d')](_0x3fee07),_0x3fee07;}get['targetRect'](){const _0x16aa17=this[_0x3017('0x6')];if(null===_0x16aa17)return null;if(_0x16aa17 instanceof _0x35d490)return _0x16aa17;const _0x2e66a6=_0x16aa17[_0x3017('0x1')](_0x4d9f12=>function(_0x495166){const _0x4944b9=_0x495166[_0x3017('0xf')];if(_0x4944b9)return!0x0;const _0x129bd2=_0x495166[_0x3017('0x8')]()[_0x3017('0x7')](0x0);return!!_0x129bd2;}(_0x4d9f12));return 0x0===_0x2e66a6[_0x3017('0x3')]?null:new _0x35d490(_0x2e66a6[0x0]['getClientRects']()[_0x3017('0x7')](0x0));}get[_0x3017('0x19')](){return this[_0x3017('0xb')]['isActive'];}set[_0x3017('0x19')](_0x58e5a5){this[_0x3017('0xb')][_0x3017('0x19')]=_0x58e5a5,this[_0x3017('0xb')][_0x3017('0x1c')]['isActive']=_0x58e5a5;}[_0x3017('0x15')](){this[_0x3017('0xb')][_0x3017('0x17')]=this[_0x3017('0x17')];}[_0x3017('0x11')](){this[_0x3017('0x1e')][_0x3017('0x12')](),this[_0x3017('0x1e')][_0x3017('0x5')](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this[_0x3017('0x17')];}static[_0x3017('0x1d')](_0x14062a){if(!(null===_0x14062a||_0x14062a instanceof _0x35d490||Array[_0x3017('0x13')](_0x14062a)&&_0x14062a[_0x3017('0xc')](_0x300298=>y(_0x300298))))throw new _0x1c0aeb(_0x3017('0x14'),null,{'target':_0x14062a});}[_0x3017('0x1a')](){const _0x43dc70=_0x3017('0xe')==typeof this['_target']?this[_0x3017('0x0')]():this[_0x3017('0x0')];return y(_0x43dc70)?[_0x43dc70]:_0x43dc70;}}function y(_0xec299f){return null!==_0xec299f&&'object'==typeof _0xec299f&&'nodeType'in _0xec299f&&0x1===_0xec299f['nodeType'];}
23
+ const _0x1541=['nodeType','_id','add','updateTargetRect','offsetParent','_assertCorrectTarget','target','_target','focusableElements','item','clear','_getNormalizedTarget','refreshVisibility','targetRect','focusTracker','annotation-invalid-target','every','view','innerView','element','mainView','isArray','getClientRects','filter','render','destroy','_type','length','isVisible','remove','function','stopListening','isActive'];(function(_0x1fb0cf,_0x154181){const _0x27e2b7=function(_0x233646){while(--_0x233646){_0x1fb0cf['push'](_0x1fb0cf['shift']());}};_0x27e2b7(++_0x154181);}(_0x1541,0xe9));const _0x27e2=function(_0x1fb0cf,_0x154181){_0x1fb0cf=_0x1fb0cf-0x0;let _0x27e2b7=_0x1541[_0x1fb0cf];return _0x27e2b7;};import{CKEditorError as _0x38e0ce,Rect as _0x53b4c5,Collection as _0x34fad1,ObservableMixin as _0x37d204}from'ckeditor5/src/utils';export default class d extends _0x37d204(){constructor({view:_0x424a60,target:_0x59c355,type:_0x10e155,isVisible:_0x526803=!0x0}){super(),this[_0x27e2('0xf')]=_0x424a60,this[_0x27e2('0xf')]['element']||this[_0x27e2('0xf')][_0x27e2('0x16')](),this[_0x27e2('0x18')]=_0x10e155,this[_0x27e2('0x5')]=_0x59c355,d[_0x27e2('0x3')](this[_0x27e2('0x9')]()),this[_0x27e2('0x6')]=new _0x34fad1([this['view'][_0x27e2('0x11')]],{'idProperty':_0x27e2('0x20')}),this[_0x27e2('0x6')]['on'](_0x27e2('0x0'),(_0x2c08f6,_0x371871)=>{this['view'][_0x27e2('0xc')][_0x27e2('0x0')](_0x371871);}),this[_0x27e2('0x6')]['on']('remove',(_0x89b91f,_0x32cb66)=>{this['view'][_0x27e2('0xc')][_0x27e2('0x1b')](_0x32cb66);}),this['set'](_0x27e2('0x1a'),_0x526803);}get['type'](){return _0x27e2('0x1c')==typeof this[_0x27e2('0x18')]?this[_0x27e2('0x18')]():this[_0x27e2('0x18')];}get[_0x27e2('0x10')](){return this[_0x27e2('0xf')][_0x27e2('0x12')];}get[_0x27e2('0x4')](){const _0x2ccc96=this[_0x27e2('0x9')]();return d[_0x27e2('0x3')](_0x2ccc96),_0x2ccc96;}get['targetRect'](){const _0xccc5c1=this[_0x27e2('0x4')];if(null===_0xccc5c1)return null;if(_0xccc5c1 instanceof _0x53b4c5)return _0xccc5c1;const _0x301d82=_0xccc5c1[_0x27e2('0x15')](_0x3b47b3=>function(_0x2ad6f2){const _0x162e75=_0x2ad6f2[_0x27e2('0x2')];if(_0x162e75)return!0x0;const _0x1c5074=_0x2ad6f2['getClientRects']()[_0x27e2('0x7')](0x0);return!!_0x1c5074;}(_0x3b47b3));return 0x0===_0x301d82[_0x27e2('0x19')]?null:new _0x53b4c5(_0x301d82[0x0][_0x27e2('0x14')]()[_0x27e2('0x7')](0x0));}get['isActive'](){return this['view'][_0x27e2('0x1e')];}set[_0x27e2('0x1e')](_0x10049b){this['view'][_0x27e2('0x1e')]=_0x10049b,this[_0x27e2('0xf')]['mainView'][_0x27e2('0x1e')]=_0x10049b;}[_0x27e2('0x1')](){this['view'][_0x27e2('0xb')]=this['targetRect'];}[_0x27e2('0x17')](){this[_0x27e2('0x6')]['stopListening'](),this[_0x27e2('0x6')][_0x27e2('0x8')](),this[_0x27e2('0x1d')]();}[_0x27e2('0xa')](){this[_0x27e2('0x1a')]=!!this[_0x27e2('0xb')];}static[_0x27e2('0x3')](_0x5e0900){if(!(null===_0x5e0900||_0x5e0900 instanceof _0x53b4c5||Array[_0x27e2('0x13')](_0x5e0900)&&_0x5e0900[_0x27e2('0xe')](_0x4e615a=>y(_0x4e615a))))throw new _0x38e0ce(_0x27e2('0xd'),null,{'target':_0x5e0900});}['_getNormalizedTarget'](){const _0x16e685=_0x27e2('0x1c')==typeof this['_target']?this[_0x27e2('0x5')]():this[_0x27e2('0x5')];return y(_0x16e685)?[_0x16e685]:_0x16e685;}}function y(_0x7381dd){return null!==_0x7381dd&&'object'==typeof _0x7381dd&&_0x27e2('0x1f')in _0x7381dd&&0x1===_0x7381dd[_0x27e2('0x1f')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xf1e6=['left','getByInnerView','stopListening','getIndex','has','from','remove','get','delete','sort','_focusTracker','top','annotationcollection-not-existing-item','isFocused','set','add','_sort','_getOrderInContent','refreshPositioning','view','clear','listenTo','targetRect','focusableElements','_innerViewToAnnotation','focusTracker','destroy','length','fire','_viewToAnnotation','getByView','focus','innerView'];(function(_0x6b20f0,_0xf1e6d){const _0x57a166=function(_0x36d24f){while(--_0x36d24f){_0x6b20f0['push'](_0x6b20f0['shift']());}};_0x57a166(++_0xf1e6d);}(_0xf1e6,0x80));const _0x57a1=function(_0x6b20f0,_0xf1e6d){_0x6b20f0=_0x6b20f0-0x0;let _0x57a166=_0xf1e6[_0x6b20f0];return _0x57a166;};import{CKEditorError as _0x4d6e33,Collection as _0x5552b8,FocusTracker as _0x5c6ca5}from'ckeditor5/src/utils';export default class x extends _0x5552b8{constructor(_0x3349bc=[]){super(),this[_0x57a1('0x1c')]=new Map(),this[_0x57a1('0x0')]=new Map(),this['_focusTracker']=new _0x5c6ca5(),this['_focusTracker']['on']('change:isFocused',(_0x57df05,_0x31645c,_0x32c484)=>{_0x32c484||this[_0x57a1('0x20')]('blur');});for(const _0x660967 of _0x3349bc)this['add'](_0x660967);}get[_0x57a1('0x11')](){return this[_0x57a1('0xe')][_0x57a1('0x11')];}[_0x57a1('0x13')](_0xc78092){if(this[_0x57a1('0x8')](_0xc78092))throw new _0x4d6e33('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0xc78092['innerView'],_0xc78092),this['_viewToAnnotation'][_0x57a1('0x12')](_0xc78092[_0x57a1('0x17')],_0xc78092);for(const _0x1de148 of _0xc78092[_0x57a1('0x1b')])this[_0x57a1('0xe')]['add'](_0x1de148);this[_0x57a1('0x19')](_0xc78092[_0x57a1('0x1b')],_0x57a1('0x13'),(_0x558d01,_0x598c06)=>{this[_0x57a1('0xe')][_0x57a1('0x13')](_0x598c06);}),this[_0x57a1('0x19')](_0xc78092[_0x57a1('0x1b')],_0x57a1('0xa'),(_0x98501c,_0x5deeb9)=>{this['_focusTracker'][_0x57a1('0xa')](_0x5deeb9);}),this[_0x57a1('0x19')](_0xc78092[_0x57a1('0x17')][_0x57a1('0x1d')],'change:isFocused',(_0x171e58,_0x20780c,_0x434155)=>{_0x434155&&this[_0x57a1('0x20')](_0x57a1('0x2'),_0xc78092);}),_0xc78092['updateTargetRect']();const _0x96d892=this['_getOrderInContent'](_0xc78092['view'][_0x57a1('0x1a')]);return super['add'](_0xc78092,_0x96d892);}[_0x57a1('0xa')](_0x1dd501){if(!this['has'](_0x1dd501))throw new _0x4d6e33(_0x57a1('0x10'),null);this['stopListening'](_0x1dd501[_0x57a1('0x17')][_0x57a1('0x1d')]),this[_0x57a1('0x6')](_0x1dd501[_0x57a1('0x1b')]);for(const _0x5b75f4 of _0x1dd501[_0x57a1('0x1b')])this['_focusTracker'][_0x57a1('0xa')](_0x5b75f4);return this[_0x57a1('0x0')]['delete'](_0x1dd501[_0x57a1('0x17')]),this[_0x57a1('0x1c')][_0x57a1('0xc')](_0x1dd501[_0x57a1('0x3')]),super[_0x57a1('0xa')](_0x1dd501);}[_0x57a1('0x5')](_0xa3ceca){return this['_innerViewToAnnotation'][_0x57a1('0xb')](_0xa3ceca);}[_0x57a1('0x1')](_0x48fd02){return this[_0x57a1('0x0')][_0x57a1('0xb')](_0x48fd02);}[_0x57a1('0x1e')](){super[_0x57a1('0x18')](),this['stopListening'](),this[_0x57a1('0x1c')][_0x57a1('0x18')](),this[_0x57a1('0x0')][_0x57a1('0x18')](),this[_0x57a1('0xe')][_0x57a1('0x1e')]();}[_0x57a1('0x16')](){for(const _0x5082ed of this)_0x5082ed['updateTargetRect']();this[_0x57a1('0x14')]();}[_0x57a1('0x14')](){const _0x1aa66f=Array[_0x57a1('0x9')](this)[_0x57a1('0xd')]((_0x48eb4a,_0x56ff26)=>v(_0x48eb4a['view'][_0x57a1('0x1a')],_0x56ff26[_0x57a1('0x17')][_0x57a1('0x1a')]));for(let _0x13c8e5=_0x1aa66f[_0x57a1('0x1f')]-0x1;_0x13c8e5>0x0;_0x13c8e5--){const _0x409e54=_0x1aa66f[_0x13c8e5];_0x13c8e5!==this[_0x57a1('0x7')](_0x409e54)&&(this[_0x57a1('0xa')](_0x409e54),this['add'](_0x409e54));}}[_0x57a1('0x15')](_0x508de6){let _0x4b63fa=0x0;if(!_0x508de6)return this[_0x57a1('0x1f')];for(const _0x22404e of this){const _0x535a5c=_0x22404e[_0x57a1('0x17')][_0x57a1('0x1a')];if(_0x535a5c){if(v(_0x508de6,_0x535a5c)<0x0)return _0x4b63fa;_0x4b63fa++;}}return _0x4b63fa;}}export function bindAnnotationCollections({source:_0x52873b,target:_0x445613,filter:_0x1dd493}){for(const _0x5f1478 of _0x52873b)_0x1dd493(_0x5f1478)&&_0x445613['add'](_0x5f1478);_0x445613[_0x57a1('0x19')](_0x52873b,_0x57a1('0x13'),(_0x4ef8e7,_0x262be5)=>{_0x1dd493(_0x262be5)&&_0x445613[_0x57a1('0x13')](_0x262be5);}),_0x445613['listenTo'](_0x52873b,'remove',(_0x313552,_0x1efc68)=>{_0x445613[_0x57a1('0x8')](_0x1efc68)&&_0x445613[_0x57a1('0xa')](_0x1efc68);});}function v(_0x53b75e,_0x2e1249){if(null===_0x53b75e&&null===_0x2e1249)return 0x0;if(null===_0x53b75e)return-0x1;if(null===_0x2e1249)return 0x1;const _0x4e7782=_0x53b75e['top']-_0x2e1249[_0x57a1('0xf')];return 0x0==_0x4e7782?_0x53b75e[_0x57a1('0x4')]-_0x2e1249['left']:_0x4e7782;}
23
+ const _0x1139=['destroy','add','targetRect','getIndex','_innerViewToAnnotation','focusableElements','_sort','focus','clear','_viewToAnnotation','fire','set','sort','focusTracker','has','view','refreshPositioning','_focusTracker','annotationcollection-not-existing-item','getByView','annotationcollection-duplicated-item','listenTo','updateTargetRect','remove','blur','change:isFocused','top','get','from','left','innerView','getByInnerView','stopListening','length','delete'];(function(_0x5c31ab,_0x113948){const _0x358b56=function(_0x8ea617){while(--_0x8ea617){_0x5c31ab['push'](_0x5c31ab['shift']());}};_0x358b56(++_0x113948);}(_0x1139,0x1e7));const _0x358b=function(_0x5c31ab,_0x113948){_0x5c31ab=_0x5c31ab-0x0;let _0x358b56=_0x1139[_0x5c31ab];return _0x358b56;};import{CKEditorError as _0x35f584,Collection as _0x53688b,FocusTracker as _0x1785e2}from'ckeditor5/src/utils';export default class x extends _0x53688b{constructor(_0x34e7a1=[]){super(),this[_0x358b('0x7')]=new Map(),this[_0x358b('0xc')]=new Map(),this[_0x358b('0x14')]=new _0x1785e2(),this[_0x358b('0x14')]['on'](_0x358b('0x1c'),(_0x1971d3,_0x30be3e,_0x54f1f4)=>{_0x54f1f4||this[_0x358b('0xd')](_0x358b('0x1b'));});for(const _0x3d7f98 of _0x34e7a1)this[_0x358b('0x4')](_0x3d7f98);}get['isFocused'](){return this[_0x358b('0x14')]['isFocused'];}['add'](_0x1f80a6){if(this[_0x358b('0x11')](_0x1f80a6))throw new _0x35f584(_0x358b('0x17'),null);this[_0x358b('0x7')][_0x358b('0xe')](_0x1f80a6[_0x358b('0x21')],_0x1f80a6),this[_0x358b('0xc')][_0x358b('0xe')](_0x1f80a6[_0x358b('0x12')],_0x1f80a6);for(const _0x4dc53d of _0x1f80a6['focusableElements'])this[_0x358b('0x14')][_0x358b('0x4')](_0x4dc53d);this[_0x358b('0x18')](_0x1f80a6['focusableElements'],'add',(_0x2dffe9,_0x3da071)=>{this[_0x358b('0x14')][_0x358b('0x4')](_0x3da071);}),this['listenTo'](_0x1f80a6[_0x358b('0x8')],_0x358b('0x1a'),(_0x346229,_0x45e89d)=>{this[_0x358b('0x14')]['remove'](_0x45e89d);}),this[_0x358b('0x18')](_0x1f80a6[_0x358b('0x12')]['focusTracker'],_0x358b('0x1c'),(_0x33101d,_0x3a7dba,_0x101ff9)=>{_0x101ff9&&this['fire'](_0x358b('0xa'),_0x1f80a6);}),_0x1f80a6[_0x358b('0x19')]();const _0x453fd4=this['_getOrderInContent'](_0x1f80a6[_0x358b('0x12')]['targetRect']);return super[_0x358b('0x4')](_0x1f80a6,_0x453fd4);}[_0x358b('0x1a')](_0x403a13){if(!this[_0x358b('0x11')](_0x403a13))throw new _0x35f584(_0x358b('0x15'),null);this[_0x358b('0x0')](_0x403a13[_0x358b('0x12')][_0x358b('0x10')]),this[_0x358b('0x0')](_0x403a13['focusableElements']);for(const _0x219ada of _0x403a13[_0x358b('0x8')])this[_0x358b('0x14')]['remove'](_0x219ada);return this[_0x358b('0xc')][_0x358b('0x2')](_0x403a13[_0x358b('0x12')]),this['_innerViewToAnnotation'][_0x358b('0x2')](_0x403a13[_0x358b('0x21')]),super[_0x358b('0x1a')](_0x403a13);}[_0x358b('0x22')](_0x4e5e72){return this[_0x358b('0x7')][_0x358b('0x1e')](_0x4e5e72);}[_0x358b('0x16')](_0x5146c4){return this[_0x358b('0xc')][_0x358b('0x1e')](_0x5146c4);}[_0x358b('0x3')](){super[_0x358b('0xb')](),this[_0x358b('0x0')](),this[_0x358b('0x7')][_0x358b('0xb')](),this['_viewToAnnotation'][_0x358b('0xb')](),this[_0x358b('0x14')][_0x358b('0x3')]();}[_0x358b('0x13')](){for(const _0x2a1412 of this)_0x2a1412[_0x358b('0x19')]();this[_0x358b('0x9')]();}[_0x358b('0x9')](){const _0x55c429=Array[_0x358b('0x1f')](this)[_0x358b('0xf')]((_0x35d995,_0x39cb6a)=>v(_0x35d995[_0x358b('0x12')][_0x358b('0x5')],_0x39cb6a[_0x358b('0x12')][_0x358b('0x5')]));for(let _0x3fd2a0=_0x55c429[_0x358b('0x1')]-0x1;_0x3fd2a0>0x0;_0x3fd2a0--){const _0x259ff3=_0x55c429[_0x3fd2a0];_0x3fd2a0!==this[_0x358b('0x6')](_0x259ff3)&&(this[_0x358b('0x1a')](_0x259ff3),this[_0x358b('0x4')](_0x259ff3));}}['_getOrderInContent'](_0x85da94){let _0x41fab6=0x0;if(!_0x85da94)return this[_0x358b('0x1')];for(const _0x19ec5f of this){const _0x32f4a8=_0x19ec5f[_0x358b('0x12')][_0x358b('0x5')];if(_0x32f4a8){if(v(_0x85da94,_0x32f4a8)<0x0)return _0x41fab6;_0x41fab6++;}}return _0x41fab6;}}export function bindAnnotationCollections({source:_0x24ca70,target:_0x26fe65,filter:_0x2f4a58}){for(const _0x3928a0 of _0x24ca70)_0x2f4a58(_0x3928a0)&&_0x26fe65['add'](_0x3928a0);_0x26fe65[_0x358b('0x18')](_0x24ca70,_0x358b('0x4'),(_0x5ac747,_0x5363fd)=>{_0x2f4a58(_0x5363fd)&&_0x26fe65[_0x358b('0x4')](_0x5363fd);}),_0x26fe65[_0x358b('0x18')](_0x24ca70,_0x358b('0x1a'),(_0x78ea23,_0x46a7f3)=>{_0x26fe65['has'](_0x46a7f3)&&_0x26fe65[_0x358b('0x1a')](_0x46a7f3);});}function v(_0x24a2ef,_0x3562ce){if(null===_0x24a2ef&&null===_0x3562ce)return 0x0;if(null===_0x24a2ef)return-0x1;if(null===_0x3562ce)return 0x1;const _0x4961e4=_0x24a2ef[_0x358b('0x1d')]-_0x3562ce[_0x358b('0x1d')];return 0x0==_0x4961e4?_0x24a2ef[_0x358b('0x20')]-_0x3562ce[_0x358b('0x20')]:_0x4961e4;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x32a0=['createAnnotation','destroy','view','collection','isVisible','source','refreshVisibility','element','focusTracker','_visibleAnnotations','createAnnotationView','listenTo','refreshPositioning','has','_activateAnnotation','set','_bindAnnotationsToVisibleAnnotations','activate','delete','stopListening','Annotations','activeAnnotations','deactivateAll','_addActiveAnnotation','_deactivateAllAnnotations','remove','change:isVisible','add','getByInnerView'];(function(_0x1b702b,_0x32a037){const _0x6ed64=function(_0x65f176){while(--_0x65f176){_0x1b702b['push'](_0x1b702b['shift']());}};_0x6ed64(++_0x32a037);}(_0x32a0,0xd7));const _0x6ed6=function(_0x1b702b,_0x32a037){_0x1b702b=_0x1b702b-0x0;let _0x6ed64=_0x32a0[_0x1b702b];return _0x6ed64;};import{ContextPlugin as _0x46b6fb}from'ckeditor5/src/core';import _0x565a02 from'./annotation';import _0x482ee4 from'./annotationcollection';import _0x514bb1 from'./view/annotationview';export default class b extends _0x46b6fb{static get['pluginName'](){return _0x6ed6('0x8');}constructor(_0x488b4f){super(_0x488b4f),this['collection']=new _0x482ee4(),this[_0x6ed6('0x1a')]=new _0x482ee4(),this[_0x6ed6('0x3')](_0x6ed6('0x9'),new Set()),this[_0x6ed6('0x4')]();}[_0x6ed6('0xf')](_0x4ad35b){this[_0x6ed6('0x14')][_0x6ed6('0xf')](_0x4ad35b);}[_0x6ed6('0xd')](_0x13da28){this[_0x6ed6('0x14')]['remove'](_0x13da28),_0x13da28[_0x6ed6('0x12')]();}['refreshVisibility'](){for(const _0x490805 of this['collection'])_0x490805[_0x6ed6('0x17')]();}[_0x6ed6('0x0')](){this[_0x6ed6('0x1a')][_0x6ed6('0x0')]();}[_0x6ed6('0x10')](_0x23ece1){return this[_0x6ed6('0x14')][_0x6ed6('0x10')](_0x23ece1);}[_0x6ed6('0xa')](){this['fire'](_0x6ed6('0xc'));}[_0x6ed6('0x12')](){for(const _0x2b8b4e of this['collection'])_0x2b8b4e[_0x6ed6('0x12')]();this[_0x6ed6('0x1a')][_0x6ed6('0x12')](),this[_0x6ed6('0x14')][_0x6ed6('0x12')](),super[_0x6ed6('0x12')]();}[_0x6ed6('0x5')](_0x44ce53){this['fire'](_0x6ed6('0x2'),_0x44ce53);}[_0x6ed6('0x11')](_0x5aef37){return new _0x565a02(_0x5aef37);}[_0x6ed6('0x1b')](_0x22519b,_0x98ca5){return new _0x514bb1(_0x22519b,_0x98ca5);}[_0x6ed6('0xb')](_0x3d1c01){const _0x2b132b=new Set(this[_0x6ed6('0x9')]);_0x2b132b[_0x6ed6('0xf')](_0x3d1c01),this['activeAnnotations']=_0x2b132b;}['_removeActiveAnnotation'](_0x258681){const _0x38cf3c=new Set(this[_0x6ed6('0x9')]);_0x38cf3c[_0x6ed6('0x6')](_0x258681),this[_0x6ed6('0x9')]=_0x38cf3c;}[_0x6ed6('0x4')](){const _0x1c0b43=this[_0x6ed6('0x14')],_0x5d4090=this['_visibleAnnotations'];function _0x115e58(_0x5d9d8b){const _0x10ccde=_0x5d9d8b[_0x6ed6('0x16')];_0x10ccde[_0x6ed6('0x15')]&&!_0x5d4090[_0x6ed6('0x1')](_0x10ccde)?_0x5d4090['add'](_0x10ccde):!_0x10ccde[_0x6ed6('0x15')]&&_0x5d4090[_0x6ed6('0x1')](_0x10ccde)&&_0x5d4090[_0x6ed6('0xd')](_0x10ccde),_0x10ccde['view']['focusTracker']['remove'](_0x10ccde[_0x6ed6('0x13')][_0x6ed6('0x18')]),_0x10ccde[_0x6ed6('0x13')][_0x6ed6('0x19')][_0x6ed6('0xf')](_0x10ccde['view']['element']);}this[_0x6ed6('0x1c')](_0x1c0b43,_0x6ed6('0xf'),(_0x478c8a,_0x5cb3cc)=>{_0x5cb3cc[_0x6ed6('0x15')]&&_0x5d4090[_0x6ed6('0xf')](_0x5cb3cc),this[_0x6ed6('0x1c')](_0x5cb3cc,_0x6ed6('0xe'),_0x115e58);}),this['listenTo'](_0x1c0b43,_0x6ed6('0xd'),(_0x2056fe,_0x2a57b6)=>{_0x5d4090[_0x6ed6('0x1')](_0x2a57b6)&&_0x5d4090['remove'](_0x2a57b6),this[_0x6ed6('0x7')](_0x2a57b6,_0x6ed6('0xe'),_0x115e58);});}}
23
+ const _0x4b68=['focusTracker','source','Annotations','isVisible','activeAnnotations','set','getByInnerView','deactivateAll','_deactivateAllAnnotations','destroy','_bindAnnotationsToVisibleAnnotations','createAnnotation','element','collection','_removeActiveAnnotation','has','add','delete','_addActiveAnnotation','refreshPositioning','listenTo','_visibleAnnotations','remove','fire','refreshVisibility','change:isVisible','activate','_activateAnnotation','pluginName','view'];(function(_0x1a207c,_0x4b68d3){const _0x4cab5f=function(_0x3de527){while(--_0x3de527){_0x1a207c['push'](_0x1a207c['shift']());}};_0x4cab5f(++_0x4b68d3);}(_0x4b68,0x6a));const _0x4cab=function(_0x1a207c,_0x4b68d3){_0x1a207c=_0x1a207c-0x0;let _0x4cab5f=_0x4b68[_0x1a207c];return _0x4cab5f;};import{ContextPlugin as _0x1636a7}from'ckeditor5/src/core';import _0x1ede23 from'./annotation';import _0x6a6db2 from'./annotationcollection';import _0x195524 from'./view/annotationview';export default class b extends _0x1636a7{static get[_0x4cab('0xc')](){return _0x4cab('0x10');}constructor(_0x5ef042){super(_0x5ef042),this[_0x4cab('0x1b')]=new _0x6a6db2(),this['_visibleAnnotations']=new _0x6a6db2(),this[_0x4cab('0x13')](_0x4cab('0x12'),new Set()),this[_0x4cab('0x18')]();}[_0x4cab('0x0')](_0x5184f0){this[_0x4cab('0x1b')]['add'](_0x5184f0);}[_0x4cab('0x6')](_0x4fbc5a){this[_0x4cab('0x1b')]['remove'](_0x4fbc5a),_0x4fbc5a['destroy']();}[_0x4cab('0x8')](){for(const _0x2453dd of this[_0x4cab('0x1b')])_0x2453dd['refreshVisibility']();}[_0x4cab('0x3')](){this[_0x4cab('0x5')][_0x4cab('0x3')]();}[_0x4cab('0x14')](_0x5d31ad){return this['collection'][_0x4cab('0x14')](_0x5d31ad);}[_0x4cab('0x15')](){this[_0x4cab('0x7')](_0x4cab('0x16'));}[_0x4cab('0x17')](){for(const _0x11243f of this[_0x4cab('0x1b')])_0x11243f['destroy']();this[_0x4cab('0x5')][_0x4cab('0x17')](),this['collection'][_0x4cab('0x17')](),super['destroy']();}[_0x4cab('0xa')](_0x2b51fb){this[_0x4cab('0x7')](_0x4cab('0xb'),_0x2b51fb);}[_0x4cab('0x19')](_0x3245ab){return new _0x1ede23(_0x3245ab);}['createAnnotationView'](_0x5d32a3,_0x214189){return new _0x195524(_0x5d32a3,_0x214189);}[_0x4cab('0x2')](_0x3c8511){const _0x20f624=new Set(this[_0x4cab('0x12')]);_0x20f624[_0x4cab('0x0')](_0x3c8511),this['activeAnnotations']=_0x20f624;}[_0x4cab('0x1c')](_0x5cadec){const _0x3ee516=new Set(this[_0x4cab('0x12')]);_0x3ee516[_0x4cab('0x1')](_0x5cadec),this[_0x4cab('0x12')]=_0x3ee516;}[_0x4cab('0x18')](){const _0x3e011a=this[_0x4cab('0x1b')],_0x7fd178=this[_0x4cab('0x5')];function _0x5b9765(_0x39b47a){const _0x19aeb9=_0x39b47a[_0x4cab('0xf')];_0x19aeb9[_0x4cab('0x11')]&&!_0x7fd178[_0x4cab('0x1d')](_0x19aeb9)?_0x7fd178['add'](_0x19aeb9):!_0x19aeb9[_0x4cab('0x11')]&&_0x7fd178['has'](_0x19aeb9)&&_0x7fd178[_0x4cab('0x6')](_0x19aeb9),_0x19aeb9[_0x4cab('0xd')][_0x4cab('0xe')][_0x4cab('0x6')](_0x19aeb9[_0x4cab('0xd')][_0x4cab('0x1a')]),_0x19aeb9[_0x4cab('0xd')][_0x4cab('0xe')]['add'](_0x19aeb9['view']['element']);}this[_0x4cab('0x4')](_0x3e011a,_0x4cab('0x0'),(_0x417114,_0x38b07a)=>{_0x38b07a[_0x4cab('0x11')]&&_0x7fd178[_0x4cab('0x0')](_0x38b07a),this[_0x4cab('0x4')](_0x38b07a,_0x4cab('0x9'),_0x5b9765);}),this['listenTo'](_0x3e011a,_0x4cab('0x6'),(_0x4f51ab,_0x38f722)=>{_0x7fd178['has'](_0x38f722)&&_0x7fd178['remove'](_0x38f722),this['stopListening'](_0x38f722,_0x4cab('0x9'),_0x5b9765);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1b4d=['attach','switchTo','length','deactivate','setActiveAnnotation','AnnotationsUIs','_activateAnnotation','find','remove','annotationsuis-missing-ui','refilterAnnotations','context','filter','add','annotationsuis-register-invalid-interface','activate','pluginName','_visibleAnnotations','set','_deactivateAllAnnotations','requires','change:activeAnnotation','collection','from','hasActive','has','function','type','init','destroy','delete','_uis','plugins','_uisData','_setSelectedAnnotations','get','activeUIs','_assertAnnotationDoesNotBelongToMultipleUIs','register','size','listenTo','deactivateAll','activeAnnotations','detach','annotationsuis-annotation-mismatch','push'];(function(_0x3002c9,_0x1b4d2f){const _0x4bb973=function(_0x3f041f){while(--_0x3f041f){_0x3002c9['push'](_0x3002c9['shift']());}};_0x4bb973(++_0x1b4d2f);}(_0x1b4d,0x12d));const _0x4bb9=function(_0x3002c9,_0x1b4d2f){_0x3002c9=_0x3002c9-0x0;let _0x4bb973=_0x1b4d[_0x3002c9];return _0x4bb973;};import{ContextPlugin as _0x4a28b0}from'ckeditor5/src/core';import{CKEditorError as _0x2747e1}from'ckeditor5/src/utils';import _0x530a85,{bindAnnotationCollections as _0x4913f7}from'./annotationcollection';import _0x188f9f from'./annotations';export default class M extends _0x4a28b0{static get[_0x4bb9('0x29')](){return[_0x188f9f];}static get[_0x4bb9('0x25')](){return _0x4bb9('0x1a');}constructor(_0x8d71e){super(_0x8d71e),this[_0x4bb9('0xb')]=new Set(),this[_0x4bb9('0x6')]=new Map(),this['_uisData']=new Map();}[_0x4bb9('0x3')](){const _0x588e37=this['context']['plugins']['get'](_0x188f9f);this[_0x4bb9('0xf')](_0x588e37,_0x4bb9('0x1b'),(_0x17b5d4,_0x5f25a5)=>{for(const _0x38782d of this[_0x4bb9('0xb')]){const _0x5bd4cf=this[_0x4bb9('0x6')]['get'](_0x38782d);(0x0,this['_uisData']['get'](_0x38782d)['filter'])(_0x5f25a5)&&_0x5bd4cf[_0x4bb9('0x19')](_0x5f25a5);}}),this[_0x4bb9('0xf')](_0x588e37,_0x4bb9('0x28'),()=>{for(const _0x1d8626 of this[_0x4bb9('0xb')]){this[_0x4bb9('0x6')][_0x4bb9('0xa')](_0x1d8626)['setActiveAnnotation'](null);}}),this[_0x4bb9('0xf')](_0x588e37[_0x4bb9('0x26')],_0x4bb9('0x22'),(_0xa67d67,_0x179d84)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x179d84);});}[_0x4bb9('0x2d')](){return this[_0x4bb9('0xb')][_0x4bb9('0xe')]>0x0;}['isActive'](_0x52d7dd){return this['activeUIs']['has'](_0x52d7dd);}['activate'](_0x4f0f2f,_0x1014d5=()=>!0x0){const _0x27ba52=this[_0x4bb9('0x20')][_0x4bb9('0x7')][_0x4bb9('0xa')](_0x188f9f);if(!this[_0x4bb9('0x6')]['has'](_0x4f0f2f))throw new _0x2747e1(_0x4bb9('0x1e'),this,{'uiName':_0x4f0f2f});this['isActive'](_0x4f0f2f)&&this[_0x4bb9('0x18')](_0x4f0f2f),this[_0x4bb9('0xb')][_0x4bb9('0x22')](_0x4f0f2f);const _0x4086fa=new _0x530a85(),_0x27182e=_0x27ba52[_0x4bb9('0x26')];_0x4913f7({'source':_0x27182e,'target':_0x4086fa,'filter':_0x1014d5}),this[_0x4bb9('0x8')][_0x4bb9('0x27')](_0x4f0f2f,{'collection':_0x4086fa,'filter':_0x1014d5});const _0x522e80=this['_uis']['get'](_0x4f0f2f);_0x522e80[_0x4bb9('0x15')](_0x4086fa),this['listenTo'](_0x522e80,_0x4bb9('0x2a'),(_0x378302,_0x675f79,_0x469b92,_0x1046aa)=>{_0x1046aa&&_0x27ba52['_removeActiveAnnotation'](_0x1046aa),_0x469b92&&_0x27ba52['_addActiveAnnotation'](_0x469b92);});}[_0x4bb9('0x18')](_0x1fb73c){if(this[_0x4bb9('0xb')][_0x4bb9('0x5')](_0x1fb73c),!this[_0x4bb9('0x6')][_0x4bb9('0x0')](_0x1fb73c))throw new _0x2747e1(_0x4bb9('0x1e'),this,{'uiName':_0x1fb73c});const _0x40b66a=this['_uis'][_0x4bb9('0xa')](_0x1fb73c);_0x40b66a[_0x4bb9('0x12')](),this['stopListening'](_0x40b66a),this['_uisData']['get'](_0x1fb73c)[_0x4bb9('0x2b')][_0x4bb9('0x4')](),this[_0x4bb9('0x8')]['delete'](_0x1fb73c);}[_0x4bb9('0x16')](_0x52035f){if(!this['_uis'][_0x4bb9('0x0')](_0x52035f))throw new _0x2747e1(_0x4bb9('0x1e'),this,{'uiName':_0x52035f});const _0x442bc2=this[_0x4bb9('0x20')][_0x4bb9('0x7')][_0x4bb9('0xa')](_0x188f9f),_0x5c07dc=Array[_0x4bb9('0x2c')](_0x442bc2[_0x4bb9('0x11')])[0x0]||null;this[_0x4bb9('0x10')](),this[_0x4bb9('0x24')](_0x52035f);const _0x57c43d=this[_0x4bb9('0x6')][_0x4bb9('0xa')](_0x52035f);_0x57c43d[_0x4bb9('0x19')](_0x5c07dc),_0x57c43d[_0x4bb9('0x9')]&&_0x5c07dc&&_0x57c43d[_0x4bb9('0x9')]([_0x5c07dc]);}[_0x4bb9('0x10')](){for(const _0x5605b1 of this['activeUIs'])this['deactivate'](_0x5605b1);}[_0x4bb9('0xd')](_0x2a78ee,_0x508a40){if(this[_0x4bb9('0x6')][_0x4bb9('0x0')](_0x2a78ee))throw new _0x2747e1('annotationsuis-register-already-registered');if('function'!=typeof _0x508a40[_0x4bb9('0x15')]||'function'!=typeof _0x508a40[_0x4bb9('0x12')]||_0x4bb9('0x1')!=typeof _0x508a40['setActiveAnnotation'])throw new _0x2747e1(_0x4bb9('0x23'),null);this[_0x4bb9('0x6')]['set'](_0x2a78ee,_0x508a40);}[_0x4bb9('0x1f')](){const _0x66bd0=this[_0x4bb9('0x20')][_0x4bb9('0x7')][_0x4bb9('0xa')](_0x188f9f)[_0x4bb9('0x2b')],_0xc66481=new Map(),_0x2e78cc=Array[_0x4bb9('0x2c')](this[_0x4bb9('0xb')]);for(const _0x446e3e of this[_0x4bb9('0xb')]){const _0x10d21a=this['_uisData'][_0x4bb9('0xa')](_0x446e3e)['collection'];for(const _0x5682a6 of _0x10d21a)_0xc66481['set'](_0x5682a6,_0x446e3e);}for(const _0x1c428f of _0x66bd0){const _0x27086d=_0xc66481[_0x4bb9('0xa')](_0x1c428f);this[_0x4bb9('0xc')](_0x1c428f);const _0x5b49f8=_0x2e78cc[_0x4bb9('0x1c')](_0x418d0b=>this[_0x4bb9('0x8')][_0x4bb9('0xa')](_0x418d0b)[_0x4bb9('0x21')](_0x1c428f));_0x27086d!==_0x5b49f8&&(_0x27086d&&this['_uisData'][_0x4bb9('0xa')](_0x27086d)[_0x4bb9('0x2b')][_0x4bb9('0x1d')](_0x1c428f),_0x5b49f8&&this['_uisData']['get'](_0x5b49f8)[_0x4bb9('0x2b')]['add'](_0x1c428f));}}[_0x4bb9('0x4')](){this[_0x4bb9('0x10')](),super['destroy']();}[_0x4bb9('0xc')](_0x415165){const _0x58b28d=[];for(const _0x466873 of this[_0x4bb9('0xb')]){(0x0,this[_0x4bb9('0x8')][_0x4bb9('0xa')](_0x466873)[_0x4bb9('0x21')])(_0x415165)&&_0x58b28d[_0x4bb9('0x14')](_0x466873);}if(_0x58b28d[_0x4bb9('0x17')]>0x1)throw new _0x2747e1(_0x4bb9('0x13'),null,{'matchedUIs':_0x58b28d,'annotationType':_0x415165[_0x4bb9('0x2')]});}}
23
+ const _0xeeee=['context','destroy','set','isActive','has','refilterAnnotations','annotationsuis-register-invalid-interface','_uis','switchTo','setActiveAnnotation','listenTo','size','_activateAnnotation','push','function','init','add','get','collection','plugins','_setSelectedAnnotations','annotationsuis-register-already-registered','from','stopListening','requires','AnnotationsUIs','_removeActiveAnnotation','annotationsuis-annotation-mismatch','_deactivateAllAnnotations','activeAnnotations','attach','deactivateAll','deactivate','pluginName','_addActiveAnnotation','annotationsuis-missing-ui','_uisData','_assertAnnotationDoesNotBelongToMultipleUIs','hasActive','_visibleAnnotations','delete','activeUIs','filter','length','activate'];(function(_0x28b7e7,_0xeeee01){const _0x1bf992=function(_0x298fc2){while(--_0x298fc2){_0x28b7e7['push'](_0x28b7e7['shift']());}};_0x1bf992(++_0xeeee01);}(_0xeeee,0x10f));const _0x1bf9=function(_0x28b7e7,_0xeeee01){_0x28b7e7=_0x28b7e7-0x0;let _0x1bf992=_0xeeee[_0x28b7e7];return _0x1bf992;};import{ContextPlugin as _0x6dfbcb}from'ckeditor5/src/core';import{CKEditorError as _0x47fa6c}from'ckeditor5/src/utils';import _0x20bb5c,{bindAnnotationCollections as _0x31fc64}from'./annotationcollection';import _0x5de19a from'./annotations';export default class M extends _0x6dfbcb{static get[_0x1bf9('0x17')](){return[_0x5de19a];}static get[_0x1bf9('0x20')](){return _0x1bf9('0x18');}constructor(_0x5c611f){super(_0x5c611f),this[_0x1bf9('0x28')]=new Set(),this['_uis']=new Map(),this[_0x1bf9('0x23')]=new Map();}[_0x1bf9('0xe')](){const _0x5703ec=this[_0x1bf9('0x2c')][_0x1bf9('0x12')][_0x1bf9('0x10')](_0x5de19a);this['listenTo'](_0x5703ec,_0x1bf9('0xb'),(_0x3c0a96,_0x218949)=>{for(const _0xf4ca2a of this[_0x1bf9('0x28')]){const _0x5a984a=this[_0x1bf9('0x6')][_0x1bf9('0x10')](_0xf4ca2a);(0x0,this[_0x1bf9('0x23')]['get'](_0xf4ca2a)[_0x1bf9('0x29')])(_0x218949)&&_0x5a984a[_0x1bf9('0x8')](_0x218949);}}),this[_0x1bf9('0x9')](_0x5703ec,_0x1bf9('0x1b'),()=>{for(const _0x175d7d of this[_0x1bf9('0x28')]){this[_0x1bf9('0x6')]['get'](_0x175d7d)['setActiveAnnotation'](null);}}),this[_0x1bf9('0x9')](_0x5703ec[_0x1bf9('0x26')],_0x1bf9('0xf'),(_0xffb9ea,_0x2b0514)=>{this[_0x1bf9('0x24')](_0x2b0514);});}[_0x1bf9('0x25')](){return this[_0x1bf9('0x28')][_0x1bf9('0xa')]>0x0;}[_0x1bf9('0x2')](_0x38aaf1){return this[_0x1bf9('0x28')][_0x1bf9('0x3')](_0x38aaf1);}['activate'](_0x43ea1c,_0x4d71f4=()=>!0x0){const _0x241fa4=this[_0x1bf9('0x2c')]['plugins'][_0x1bf9('0x10')](_0x5de19a);if(!this[_0x1bf9('0x6')][_0x1bf9('0x3')](_0x43ea1c))throw new _0x47fa6c(_0x1bf9('0x22'),this,{'uiName':_0x43ea1c});this[_0x1bf9('0x2')](_0x43ea1c)&&this[_0x1bf9('0x1f')](_0x43ea1c),this['activeUIs']['add'](_0x43ea1c);const _0x2b985d=new _0x20bb5c(),_0x3bcb31=_0x241fa4['_visibleAnnotations'];_0x31fc64({'source':_0x3bcb31,'target':_0x2b985d,'filter':_0x4d71f4}),this['_uisData'][_0x1bf9('0x1')](_0x43ea1c,{'collection':_0x2b985d,'filter':_0x4d71f4});const _0x21a850=this[_0x1bf9('0x6')][_0x1bf9('0x10')](_0x43ea1c);_0x21a850[_0x1bf9('0x1d')](_0x2b985d),this[_0x1bf9('0x9')](_0x21a850,'change:activeAnnotation',(_0x76fb76,_0x2874b5,_0x51d025,_0x23bb18)=>{_0x23bb18&&_0x241fa4[_0x1bf9('0x19')](_0x23bb18),_0x51d025&&_0x241fa4[_0x1bf9('0x21')](_0x51d025);});}[_0x1bf9('0x1f')](_0x554140){if(this[_0x1bf9('0x28')][_0x1bf9('0x27')](_0x554140),!this[_0x1bf9('0x6')][_0x1bf9('0x3')](_0x554140))throw new _0x47fa6c(_0x1bf9('0x22'),this,{'uiName':_0x554140});const _0x1820f1=this[_0x1bf9('0x6')][_0x1bf9('0x10')](_0x554140);_0x1820f1['detach'](),this[_0x1bf9('0x16')](_0x1820f1),this[_0x1bf9('0x23')]['get'](_0x554140)[_0x1bf9('0x11')]['destroy'](),this[_0x1bf9('0x23')]['delete'](_0x554140);}[_0x1bf9('0x7')](_0xaab628){if(!this[_0x1bf9('0x6')]['has'](_0xaab628))throw new _0x47fa6c('annotationsuis-missing-ui',this,{'uiName':_0xaab628});const _0x57f7ff=this['context'][_0x1bf9('0x12')]['get'](_0x5de19a),_0x8661ed=Array[_0x1bf9('0x15')](_0x57f7ff[_0x1bf9('0x1c')])[0x0]||null;this[_0x1bf9('0x1e')](),this[_0x1bf9('0x2b')](_0xaab628);const _0x4b076b=this['_uis'][_0x1bf9('0x10')](_0xaab628);_0x4b076b[_0x1bf9('0x8')](_0x8661ed),_0x4b076b[_0x1bf9('0x13')]&&_0x8661ed&&_0x4b076b[_0x1bf9('0x13')]([_0x8661ed]);}[_0x1bf9('0x1e')](){for(const _0x1b0269 of this[_0x1bf9('0x28')])this[_0x1bf9('0x1f')](_0x1b0269);}['register'](_0xf3074a,_0x869c10){if(this[_0x1bf9('0x6')][_0x1bf9('0x3')](_0xf3074a))throw new _0x47fa6c(_0x1bf9('0x14'));if(_0x1bf9('0xd')!=typeof _0x869c10['attach']||_0x1bf9('0xd')!=typeof _0x869c10['detach']||_0x1bf9('0xd')!=typeof _0x869c10[_0x1bf9('0x8')])throw new _0x47fa6c(_0x1bf9('0x5'),null);this['_uis'][_0x1bf9('0x1')](_0xf3074a,_0x869c10);}[_0x1bf9('0x4')](){const _0x28bcf1=this[_0x1bf9('0x2c')][_0x1bf9('0x12')]['get'](_0x5de19a)[_0x1bf9('0x11')],_0x45bec2=new Map(),_0x291c97=Array[_0x1bf9('0x15')](this[_0x1bf9('0x28')]);for(const _0x468b28 of this[_0x1bf9('0x28')]){const _0x30ca0b=this['_uisData'][_0x1bf9('0x10')](_0x468b28)['collection'];for(const _0x39e0c8 of _0x30ca0b)_0x45bec2[_0x1bf9('0x1')](_0x39e0c8,_0x468b28);}for(const _0xc29ed4 of _0x28bcf1){const _0x266211=_0x45bec2[_0x1bf9('0x10')](_0xc29ed4);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0xc29ed4);const _0x575287=_0x291c97['find'](_0x393a50=>this['_uisData']['get'](_0x393a50)[_0x1bf9('0x29')](_0xc29ed4));_0x266211!==_0x575287&&(_0x266211&&this[_0x1bf9('0x23')][_0x1bf9('0x10')](_0x266211)[_0x1bf9('0x11')]['remove'](_0xc29ed4),_0x575287&&this[_0x1bf9('0x23')][_0x1bf9('0x10')](_0x575287)[_0x1bf9('0x11')][_0x1bf9('0xf')](_0xc29ed4));}}[_0x1bf9('0x0')](){this[_0x1bf9('0x1e')](),super['destroy']();}[_0x1bf9('0x24')](_0x529b0e){const _0x5d4a11=[];for(const _0x5a963f of this[_0x1bf9('0x28')]){(0x0,this[_0x1bf9('0x23')][_0x1bf9('0x10')](_0x5a963f)[_0x1bf9('0x29')])(_0x529b0e)&&_0x5d4a11[_0x1bf9('0xc')](_0x5a963f);}if(_0x5d4a11[_0x1bf9('0x2a')]>0x1)throw new _0x47fa6c(_0x1bf9('0x1a'),null,{'matchedUIs':_0x5d4a11,'annotationType':_0x529b0e['type']});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x24e1=['change:isFocused','get','getByInnerView','view','addSourceCollector','set','pluginName','delete','change:range','plugins','init','editing','fire','blur','registerAnnotation','getRanges','has','innerView','push','annotation','from','uiUpdate','_editorAnnotations','listenTo','range','getOrderedSelectedAnnotations','directChange','_dataCollectors','_editorAnnotationsData','function','refresh','remove','editor','focusTracker','collection','selection','document','update','model','EditorAnnotations','element','hasDomSelection','refreshSelectedViews','containsRange','map'];(function(_0x4c8838,_0x24e1fd){const _0x1d33a3=function(_0x12c853){while(--_0x12c853){_0x4c8838['push'](_0x4c8838['shift']());}};_0x1d33a3(++_0x24e1fd);}(_0x24e1,0x1a5));const _0x1d33=function(_0x4c8838,_0x24e1fd){_0x4c8838=_0x4c8838-0x0;let _0x1d33a3=_0x24e1[_0x4c8838];return _0x1d33a3;};import{Plugin as _0x25fc9d}from'ckeditor5/src/core';import{CKEditorError as _0x1a2318}from'ckeditor5/src/utils';import{debounce as _0x33d6f9}from'lodash-es';import _0x5a9874 from'./annotations';export default class k extends _0x25fc9d{static get['requires'](){return[_0x5a9874];}static get[_0x1d33('0x23')](){return _0x1d33('0x17');}constructor(_0x6c87e0){super(_0x6c87e0),this[_0x1d33('0xb')]=new Set(),this[_0x1d33('0x6')]=new Set();}[_0x1d33('0x27')](){const _0x1835be=this[_0x1d33('0x10')],_0x3264f5=_0x1835be['model'][_0x1d33('0x14')][_0x1d33('0x13')],_0x41f3c4=_0x33d6f9(()=>this['refreshSelectedViews'](),0xa);_0x3264f5['on'](_0x1d33('0x25'),(_0x155b91,_0xf93158)=>{_0xf93158[_0x1d33('0xa')]&&(_0x41f3c4['cancel'](),this[_0x1d33('0x1a')]());}),this[_0x1d33('0x7')](_0x1835be[_0x1d33('0x28')][_0x1d33('0x20')]['document'],_0x1d33('0x1d'),(_0x3a43a7,_0x2b1987,_0x223d62)=>{_0x223d62&&_0x41f3c4();}),this[_0x1d33('0x7')](_0x1835be['ui'][_0x1d33('0x11')],_0x1d33('0x1d'),(_0x5323b8,_0x150a88,_0x1ff55b)=>{_0x1ff55b||_0x1835be['isReadOnly']||this[_0x1d33('0x29')](_0x1d33('0x2a'),{'isAnnotationTracked':_0x1048f4=>this[_0x1d33('0xc')][_0x1d33('0x0')](_0x1048f4[_0x1d33('0x1')])});}),this[_0x1d33('0x7')](this[_0x1d33('0x10')]['ui'],_0x1d33('0x15'),()=>this['fire'](_0x1d33('0x5')));}[_0x1d33('0x2b')](_0x29d267){if(this[_0x1d33('0x6')][_0x1d33('0x0')](_0x29d267[_0x1d33('0x20')]))return;this[_0x1d33('0x6')]['add'](_0x29d267[_0x1d33('0x20')]),this['editor']['ui'][_0x1d33('0x11')]['add'](_0x29d267[_0x1d33('0x20')][_0x1d33('0x18')]);const _0x69ed0e=this['editor'][_0x1d33('0x26')][_0x1d33('0x1e')](_0x5a9874);this[_0x1d33('0x7')](_0x69ed0e[_0x1d33('0x12')],_0x1d33('0xf'),(_0x14fd19,_0xff9be4)=>{this[_0x1d33('0x10')]['ui'][_0x1d33('0x11')][_0x1d33('0xf')](_0xff9be4[_0x1d33('0x20')][_0x1d33('0x18')]),this[_0x1d33('0x6')][_0x1d33('0x24')](_0xff9be4[_0x1d33('0x20')]);});}[_0x1d33('0x19')](){return this['editor'][_0x1d33('0x28')]['view'][_0x1d33('0x19')];}[_0x1d33('0x21')](_0x29803f){if(_0x1d33('0xd')!=typeof _0x29803f)throw new _0x1a2318('editorannotations-invalid-source-callback');this[_0x1d33('0xb')]['add'](_0x29803f);}['refreshSelectedViews'](){this['fire'](_0x1d33('0xe'));}[_0x1d33('0x9')]({activeAnnotation:_0x3531cf,annotations:_0xdeec99}){const _0x303a45=[],_0x53badd=this[_0x1d33('0x10')][_0x1d33('0x16')][_0x1d33('0x14')][_0x1d33('0x13')],_0x16bc5e=Array[_0x1d33('0x4')](_0x53badd[_0x1d33('0x2c')]());for(const [_0x504b4c,_0x28b9cf]of this['_editorAnnotationsData']){const _0x21c700=_0x1d615b(_0x28b9cf),_0x470d66=_0xdeec99[_0x1d33('0x1f')](_0x504b4c);_0x21c700&&_0x470d66&&_0x303a45[_0x1d33('0x2')]({'annotation':_0x470d66,'range':_0x21c700});}function _0x1d615b(_0x19b6ab){for(const _0x131273 of _0x19b6ab)for(const _0x1737ae of _0x16bc5e)if(_0x131273['containsRange'](_0x1737ae,!_0x53badd['isCollapsed']))return _0x131273;return null;}return _0x303a45['sort']((_0x47de7a,_0x27db66)=>{const _0x521bbf=_0x47de7a[_0x1d33('0x8')],_0x4be2e9=_0x27db66['range'];if(!_0x521bbf['isEqual'](_0x4be2e9)){if(_0x521bbf[_0x1d33('0x1b')](_0x4be2e9,!0x0))return 0x1;if(_0x4be2e9[_0x1d33('0x1b')](_0x521bbf,!0x0))return-0x1;}return _0x47de7a[_0x1d33('0x3')]==_0x3531cf?-0x1:_0x27db66[_0x1d33('0x3')]==_0x3531cf?0x1:0x0;})[_0x1d33('0x1c')](_0x39a109=>_0x39a109[_0x1d33('0x3')]);}get[_0x1d33('0xc')](){const _0x52d173=new Map();for(const _0xc72501 of Array['from'](this['_dataCollectors']))for(const [_0x4cd4cb,_0x164c9f]of _0xc72501())_0x52d173[_0x1d33('0x22')](_0x4cd4cb,_0x164c9f);return _0x52d173;}}
23
+ const _0x53e5=['function','registerAnnotation','has','document','getByInnerView','element','requires','refreshSelectedViews','isReadOnly','add','get','plugins','uiUpdate','set','fire','getRanges','change:range','_editorAnnotations','getOrderedSelectedAnnotations','refresh','annotation','from','sort','focusTracker','editorannotations-invalid-source-callback','view','remove','blur','map','directChange','hasDomSelection','innerView','isEqual','editing','selection','change:isFocused','containsRange','listenTo','range','_dataCollectors','collection','editor','model','isCollapsed','_editorAnnotationsData','update','addSourceCollector'];(function(_0xc56352,_0x53e573){const _0x45e070=function(_0x1e1e7a){while(--_0x1e1e7a){_0xc56352['push'](_0xc56352['shift']());}};_0x45e070(++_0x53e573);}(_0x53e5,0x97));const _0x45e0=function(_0xc56352,_0x53e573){_0xc56352=_0xc56352-0x0;let _0x45e070=_0x53e5[_0xc56352];return _0x45e070;};import{Plugin as _0x8c8430}from'ckeditor5/src/core';import{CKEditorError as _0x535e00}from'ckeditor5/src/utils';import{debounce as _0x4e31f9}from'lodash-es';import _0x20dbf5 from'./annotations';export default class k extends _0x8c8430{static get[_0x45e0('0x2b')](){return[_0x20dbf5];}static get['pluginName'](){return'EditorAnnotations';}constructor(_0x1624f6){super(_0x1624f6),this[_0x45e0('0x1d')]=new Set(),this[_0x45e0('0x7')]=new Set();}['init'](){const _0x3f44b1=this[_0x45e0('0x1f')],_0x105d33=_0x3f44b1[_0x45e0('0x20')][_0x45e0('0x28')][_0x45e0('0x18')],_0xd9b987=_0x4e31f9(()=>this[_0x45e0('0x2c')](),0xa);_0x105d33['on'](_0x45e0('0x6'),(_0xf55104,_0xc01f10)=>{_0xc01f10[_0x45e0('0x13')]&&(_0xd9b987['cancel'](),this[_0x45e0('0x2c')]());}),this[_0x45e0('0x1b')](_0x3f44b1[_0x45e0('0x17')]['view']['document'],_0x45e0('0x19'),(_0x1dadcc,_0x9d9b33,_0x31c08f)=>{_0x31c08f&&_0xd9b987();}),this[_0x45e0('0x1b')](_0x3f44b1['ui'][_0x45e0('0xd')],_0x45e0('0x19'),(_0x21c5b9,_0x1a985d,_0x509872)=>{_0x509872||_0x3f44b1[_0x45e0('0x2d')]||this[_0x45e0('0x4')](_0x45e0('0x11'),{'isAnnotationTracked':_0x903639=>this[_0x45e0('0x22')][_0x45e0('0x27')](_0x903639[_0x45e0('0x15')])});}),this['listenTo'](this[_0x45e0('0x1f')]['ui'],_0x45e0('0x23'),()=>this[_0x45e0('0x4')](_0x45e0('0x2')));}[_0x45e0('0x26')](_0x3fc210){if(this[_0x45e0('0x7')][_0x45e0('0x27')](_0x3fc210['view']))return;this[_0x45e0('0x7')]['add'](_0x3fc210[_0x45e0('0xf')]),this[_0x45e0('0x1f')]['ui']['focusTracker'][_0x45e0('0x2e')](_0x3fc210[_0x45e0('0xf')]['element']);const _0x4c72fe=this[_0x45e0('0x1f')][_0x45e0('0x1')][_0x45e0('0x0')](_0x20dbf5);this['listenTo'](_0x4c72fe[_0x45e0('0x1e')],_0x45e0('0x10'),(_0x2b6831,_0x3a88cd)=>{this[_0x45e0('0x1f')]['ui'][_0x45e0('0xd')]['remove'](_0x3a88cd[_0x45e0('0xf')][_0x45e0('0x2a')]),this[_0x45e0('0x7')]['delete'](_0x3a88cd[_0x45e0('0xf')]);});}[_0x45e0('0x14')](){return this[_0x45e0('0x1f')][_0x45e0('0x17')][_0x45e0('0xf')][_0x45e0('0x14')];}[_0x45e0('0x24')](_0x1936af){if(_0x45e0('0x25')!=typeof _0x1936af)throw new _0x535e00(_0x45e0('0xe'));this[_0x45e0('0x1d')][_0x45e0('0x2e')](_0x1936af);}[_0x45e0('0x2c')](){this[_0x45e0('0x4')](_0x45e0('0x9'));}[_0x45e0('0x8')]({activeAnnotation:_0x193dbe,annotations:_0x389fe1}){const _0x323662=[],_0x5cf910=this[_0x45e0('0x1f')][_0x45e0('0x20')]['document']['selection'],_0x2e8041=Array[_0x45e0('0xb')](_0x5cf910[_0x45e0('0x5')]());for(const [_0x54e35e,_0x49bbb7]of this[_0x45e0('0x22')]){const _0x1eb029=_0x121104(_0x49bbb7),_0x4803d7=_0x389fe1[_0x45e0('0x29')](_0x54e35e);_0x1eb029&&_0x4803d7&&_0x323662['push']({'annotation':_0x4803d7,'range':_0x1eb029});}function _0x121104(_0x4d8607){for(const _0x5d94e4 of _0x4d8607)for(const _0x5fbf8e of _0x2e8041)if(_0x5d94e4[_0x45e0('0x1a')](_0x5fbf8e,!_0x5cf910[_0x45e0('0x21')]))return _0x5d94e4;return null;}return _0x323662[_0x45e0('0xc')]((_0xbb8a80,_0x2b008c)=>{const _0x54eadb=_0xbb8a80[_0x45e0('0x1c')],_0x28505a=_0x2b008c[_0x45e0('0x1c')];if(!_0x54eadb[_0x45e0('0x16')](_0x28505a)){if(_0x54eadb[_0x45e0('0x1a')](_0x28505a,!0x0))return 0x1;if(_0x28505a['containsRange'](_0x54eadb,!0x0))return-0x1;}return _0xbb8a80['annotation']==_0x193dbe?-0x1:_0x2b008c[_0x45e0('0xa')]==_0x193dbe?0x1:0x0;})[_0x45e0('0x12')](_0xd32065=>_0xd32065[_0x45e0('0xa')]);}get[_0x45e0('0x22')](){const _0x2f2a2c=new Map();for(const _0x42ff06 of Array[_0x45e0('0xb')](this[_0x45e0('0x1d')]))for(const [_0x186ff4,_0x37b137]of _0x42ff06())_0x2f2a2c[_0x45e0('0x3')](_0x186ff4,_0x37b137);return _0x2f2a2c;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x148a=['targetRect','blur','get','init','inline','context','destroy','plugins','getClientRects','getBoundingClientRect','_manuallyClosed','_addAnnotationToBalloon','listenTo','showStack','visibleView','activeAnnotation','addObserver','requires','push','_balloon','isAttached','width','getOrderedSelectedAnnotations','_selectedAnnotations','document','detach','setActiveAnnotation','collapse','add','set','left','refresh','isActive','fromRect','mousedown','_setSelectedAnnotations','remove','delete','keystrokes','editor','hasActive','right','_closeAnnotation','selection','domConverter','stopListening','isFocused','annotations','Esc','has','editing','inlineannotations-detach-not-attached','from','attach','change:isFocused','register','hasView','includes','afterInit','updatePosition','InlineAnnotations','view','focusTracker','clear','_forceRefresh','_removeAnnotationFromBalloon','inlineannotations-not-allowed-with-context','top','map','getFirstRange','_addedAnnotations','_getBalloonTargetForAnnotation','length','bottom','focus','getByView','target'];(function(_0x4fad4e,_0x148ad7){const _0x374bc2=function(_0x168313){while(--_0x168313){_0x4fad4e['push'](_0x4fad4e['shift']());}};_0x374bc2(++_0x148ad7);}(_0x148a,0x1b3));const _0x374b=function(_0x4fad4e,_0x148ad7){_0x4fad4e=_0x4fad4e-0x0;let _0x374bc2=_0x148a[_0x4fad4e];return _0x374bc2;};import{Plugin as _0x1d2bd1}from'ckeditor5/src/core';import _0x3c083d from'./annotationsuis';import _0x498477 from'./editorannotations';import{ContextualBalloon as _0xde8a70}from'ckeditor5/src/ui';import{MouseObserver as _0x58b6cf}from'ckeditor5/src/engine';import{CKEditorError as _0x4942e2,Rect as _0x313398}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x1d2bd1{static get[_0x374b('0x2c')](){return[_0x498477,_0xde8a70,_0x3c083d];}static get['pluginName'](){return _0x374b('0xa');}constructor(_0x1a7c37){super(_0x1a7c37),_0x1a7c37[_0x374b('0x0')][_0x374b('0xb')][_0x374b('0x2b')](_0x58b6cf),this[_0x374b('0x2f')]=!0x1,this[_0x374b('0x38')](_0x374b('0x2a'),null),this['annotations']=null,this[_0x374b('0x25')]=new Set(),this[_0x374b('0x2e')]=_0x1a7c37[_0x374b('0x22')][_0x374b('0x1d')](_0xde8a70),this[_0x374b('0x14')]=new Set(),this['_selectedAnnotations']=[],this[_0x374b('0xe')]=!0x1;}[_0x374b('0x1e')](){const _0x8ef7a9=this[_0x374b('0x42')][_0x374b('0x22')][_0x374b('0x1d')](_0x3c083d);_0x8ef7a9[_0x374b('0x20')]===this['editor']&&(_0x8ef7a9[_0x374b('0x5')](_0x374b('0x1f'),this),this[_0x374b('0x42')][_0x374b('0x41')][_0x374b('0x38')](_0x374b('0x4b'),(_0x4e25d6,_0x4f5a9b)=>{const _0x5da8d1=this[_0x374b('0x2e')];if(this['isAttached']&&_0x5da8d1['visibleView']){const _0x4cc4ae=this['annotations'][_0x374b('0x19')](_0x5da8d1[_0x374b('0x29')]);_0x4cc4ae&&this[_0x374b('0x45')](_0x4cc4ae),_0x4f5a9b();}}));}[_0x374b('0x8')](){const _0x248b22=this['editor'][_0x374b('0x22')]['get'](_0x3c083d);_0x248b22[_0x374b('0x20')]===this[_0x374b('0x42')]&&(_0x248b22[_0x374b('0x43')]()||_0x248b22['switchTo']('inline'));}[_0x374b('0x35')](_0xc504bc){_0xc504bc!==this[_0x374b('0x2a')]&&(this['activeAnnotation']&&(this['activeAnnotation'][_0x374b('0x3b')]=!0x1),_0xc504bc&&this[_0x374b('0x42')]['ui'][_0x374b('0xc')][_0x374b('0x49')]&&(this['annotations'][_0x374b('0x4c')](_0xc504bc)&&this[_0x374b('0x26')](_0xc504bc,!0x0),_0xc504bc[_0x374b('0x3b')]=!0x0),_0xc504bc||this[_0x374b('0x3e')]([]),this[_0x374b('0x2a')]=_0xc504bc);}[_0x374b('0x3')](_0x5110b7){this[_0x374b('0x4a')]=_0x5110b7;const _0x431a7f=this[_0x374b('0x42')][_0x374b('0x22')]['get'](_0x3c083d),_0x51b606=this['_balloon'];if(this[_0x374b('0x2f')])throw new _0x4942e2('inlineannotations-attach-already-attached',this);if(_0x431a7f[_0x374b('0x20')]!==this[_0x374b('0x42')])throw new _0x4942e2(_0x374b('0x10'),this);const _0x13c42a=this[_0x374b('0x42')][_0x374b('0x22')][_0x374b('0x1d')](_0x498477);this[_0x374b('0x27')](_0x13c42a,_0x374b('0x3a'),()=>{const _0xd87c28=_0x13c42a[_0x374b('0x31')]({'annotations':this[_0x374b('0x4a')],'activeAnnotation':this[_0x374b('0x2a')]});var _0x4cbe88,_0x11e6a7;!this[_0x374b('0xe')]&&(_0x4cbe88=_0xd87c28,_0x11e6a7=this[_0x374b('0x32')],_0x4cbe88[_0x374b('0x16')]===_0x11e6a7[_0x374b('0x16')]&&_0x4cbe88['every'](_0x385570=>_0x11e6a7['includes'](_0x385570)))||(this['_forceRefresh']=!0x1,this[_0x374b('0x3e')](_0xd87c28),this['setActiveAnnotation'](_0xd87c28[0x0]||null));}),this['listenTo'](_0x13c42a,_0x374b('0x1c'),(_0x1f7e00,{isAnnotationTracked:_0x127b0e})=>{this[_0x374b('0x2a')]&&_0x127b0e(this['activeAnnotation'])&&(this[_0x374b('0x3e')]([]),this[_0x374b('0x35')](null));}),this[_0x374b('0x27')](this[_0x374b('0x42')]['ui'][_0x374b('0xc')],_0x374b('0x4'),(_0x10f895,_0x2cc480,_0x5c07b1)=>{_0x5c07b1||this['setActiveAnnotation'](null);}),this[_0x374b('0x27')](_0x5110b7,_0x374b('0x3f'),(_0x5b956b,_0x25fc11)=>{this[_0x374b('0xf')](_0x25fc11),_0x25fc11===this[_0x374b('0x2a')]&&this['setActiveAnnotation'](null);}),this[_0x374b('0x27')](_0x51b606,'change:visibleView',(_0x4a4a0e,_0x1d896c,_0x91a084,_0x10db81)=>{_0x10db81&&this[_0x374b('0x48')](_0x10db81);const _0x55d87c=_0x5110b7['getByView'](_0x91a084);_0x91a084&&_0x55d87c&&(this[_0x374b('0x27')](_0x91a084,'change:height',()=>{_0x51b606['updatePosition']();}),this[_0x374b('0x27')](_0x91a084,_0x374b('0x4b'),()=>{this[_0x374b('0x45')](_0x55d87c),this[_0x374b('0x42')]['editing']['view']['focus']();}),this[_0x374b('0x2a')]!==_0x55d87c&&this[_0x374b('0x35')](_0x55d87c));}),this[_0x374b('0x27')](this[_0x374b('0x42')]['ui'],'update',()=>{_0x51b606[_0x374b('0x29')]&&(_0x5110b7['getByView'](_0x51b606[_0x374b('0x29')])&&_0x51b606[_0x374b('0x9')]());}),this['listenTo'](this[_0x374b('0x42')][_0x374b('0x0')][_0x374b('0xb')][_0x374b('0x33')],_0x374b('0x3d'),()=>{this[_0x374b('0xe')]=!0x0,this[_0x374b('0x25')][_0x374b('0xd')]();}),this['editor'][_0x374b('0x0')][_0x374b('0xb')][_0x374b('0x33')]['selection']['editableElement']&&this[_0x374b('0x42')]['editing'][_0x374b('0xb')][_0x374b('0x18')](),this[_0x374b('0x2f')]=!0x0;}[_0x374b('0x34')](){if(!this['isAttached'])throw new _0x4942e2(_0x374b('0x1'),this);this['setActiveAnnotation'](null);for(const _0x49b1ad of this['_addedAnnotations'])this[_0x374b('0xf')](_0x49b1ad);this['stopListening'](),this[_0x374b('0x2f')]=!0x1,this[_0x374b('0x4a')]=null;}[_0x374b('0x21')](){this['isAttached']&&this[_0x374b('0x34')]();}[_0x374b('0x3e')](_0x93dded){for(const _0x3da4c2 of this[_0x374b('0x32')])_0x93dded[_0x374b('0x7')](_0x3da4c2)||this[_0x374b('0x25')][_0x374b('0x40')](_0x3da4c2);for(const _0x2547b2 of this[_0x374b('0x4a')])_0x93dded[_0x374b('0x7')](_0x2547b2)||this[_0x374b('0xf')](_0x2547b2);if(this['editor']['ui'][_0x374b('0xc')]['isFocused'])for(const _0x42b4c9 of _0x93dded)this[_0x374b('0x26')](_0x42b4c9);this[_0x374b('0x32')]=_0x93dded;}[_0x374b('0x26')](_0x292299,_0x599ebf=!0x1){this[_0x374b('0x25')][_0x374b('0x4c')](_0x292299)||(this[_0x374b('0x14')][_0x374b('0x4c')](_0x292299)||this[_0x374b('0x2e')]['hasView'](_0x292299['view'])||(this['_addedAnnotations'][_0x374b('0x37')](_0x292299),this[_0x374b('0x2e')][_0x374b('0x37')]({'stackId':_0x292299[_0x374b('0xb')]['id'],'view':_0x292299[_0x374b('0xb')],'position':{'target':()=>this[_0x374b('0x15')](_0x292299)}})),_0x599ebf&&this['_balloon'][_0x374b('0x28')](_0x292299[_0x374b('0xb')]['id']));}[_0x374b('0x15')](_0x48d61e){const _0x5550b6=_0x48d61e[_0x374b('0x1a')],_0x427b9a=this[_0x374b('0x42')][_0x374b('0x0')][_0x374b('0xb')],_0x3eea30=_0x427b9a[_0x374b('0x33')][_0x374b('0x46')][_0x374b('0x13')](),_0x4f0da4=_0x427b9a[_0x374b('0x47')]['viewRangeToDom'](_0x3eea30);if(_0x4f0da4[_0x374b('0x36')](!0x0),_0x5550b6){if(_0x5550b6 instanceof _0x313398)return _0x5550b6;let _0xe55b99=[];for(const _0x23f77e of _0x5550b6)_0xe55b99[_0x374b('0x2d')](...(_0x4919bd=_0x23f77e[_0x374b('0x23')](),Array[_0x374b('0x2')](_0x4919bd)[_0x374b('0x12')](DOMRect[_0x374b('0x3c')])));_0xe55b99=function(_0x491b7b){const _0x11b5fb=[];let _0x140478=_0x491b7b[0x0];for(let _0xc63144=0x1;_0xc63144<_0x491b7b['length'];_0xc63144++)F(_0x140478,_0x491b7b[_0xc63144])?_0x140478['width']+=_0x491b7b[_0xc63144][_0x374b('0x30')]:(_0x11b5fb[_0x374b('0x2d')](_0x140478),_0x140478=_0x491b7b[_0xc63144]);return _0x11b5fb[_0x374b('0x2d')](_0x140478),_0x11b5fb;}(_0xe55b99);const _0x2b603b=_0x4f0da4[_0x374b('0x24')]();return _0xe55b99['find'](_0xe5d782=>_0xe5d782[_0x374b('0x11')]<=_0x2b603b['top']&&_0xe5d782[_0x374b('0x17')]>=_0x2b603b[_0x374b('0x17')]&&_0xe5d782[_0x374b('0x39')]<=_0x2b603b[_0x374b('0x39')]&&_0xe5d782['right']>=_0x2b603b[_0x374b('0x44')])||_0xe55b99[0x0];}var _0x4919bd;return _0x48d61e[_0x374b('0x1b')]||_0x4f0da4;}[_0x374b('0xf')](_0x2dda90){this[_0x374b('0x14')]['has'](_0x2dda90)&&this[_0x374b('0x2e')][_0x374b('0x6')](_0x2dda90[_0x374b('0xb')])&&(this[_0x374b('0x14')]['delete'](_0x2dda90),this[_0x374b('0x2e')]['remove'](_0x2dda90[_0x374b('0xb')]));}['_closeAnnotation'](_0x32adf7){this[_0x374b('0x25')][_0x374b('0x37')](_0x32adf7),this[_0x374b('0xf')](_0x32adf7);}}function F(_0x5d13de,_0x8d4ff3){return _0x5d13de['top']===_0x8d4ff3[_0x374b('0x11')]&&_0x5d13de[_0x374b('0x17')]===_0x8d4ff3['bottom']&&_0x5d13de[_0x374b('0x44')]===_0x8d4ff3['left'];}
23
+ const _0x4dc4=['attach','_addAnnotationToBalloon','hasView','selection','_balloon','push','focus','inlineannotations-attach-already-attached','editing','addObserver','register','_getBalloonTargetForAnnotation','requires','map','viewRangeToDom','mousedown','change:height','top','editor','inline','keystrokes','focusTracker','view','getFirstRange','detach','update','width','from','has','find','set','_removeAnnotationFromBalloon','right','context','showStack','switchTo','_closeAnnotation','editableElement','change:visibleView','blur','isActive','bottom','isFocused','updatePosition','refresh','change:isFocused','getByView','get','remove','left','target','length','document','clear','annotations','listenTo','Esc','activeAnnotation','stopListening','inlineannotations-not-allowed-with-context','setActiveAnnotation','hasActive','add','_forceRefresh','fromRect','_setSelectedAnnotations','_manuallyClosed','_addedAnnotations','isAttached','plugins','afterInit','includes','_selectedAnnotations','visibleView','delete'];(function(_0x5178ad,_0x4dc43e){const _0x7aa1c2=function(_0x51d679){while(--_0x51d679){_0x5178ad['push'](_0x5178ad['shift']());}};_0x7aa1c2(++_0x4dc43e);}(_0x4dc4,0x1ba));const _0x7aa1=function(_0x5178ad,_0x4dc43e){_0x5178ad=_0x5178ad-0x0;let _0x7aa1c2=_0x4dc4[_0x5178ad];return _0x7aa1c2;};import{Plugin as _0x1f2b79}from'ckeditor5/src/core';import _0x423097 from'./annotationsuis';import _0x1789fd from'./editorannotations';import{ContextualBalloon as _0x479bf6}from'ckeditor5/src/ui';import{MouseObserver as _0x49ad08}from'ckeditor5/src/engine';import{CKEditorError as _0x4ee021,Rect as _0x1fd36c}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x1f2b79{static get[_0x7aa1('0x14')](){return[_0x1789fd,_0x479bf6,_0x423097];}static get['pluginName'](){return'InlineAnnotations';}constructor(_0x9be38c){super(_0x9be38c),_0x9be38c['editing'][_0x7aa1('0x1e')][_0x7aa1('0x11')](_0x49ad08),this['isAttached']=!0x1,this[_0x7aa1('0x26')](_0x7aa1('0x41'),null),this[_0x7aa1('0x3e')]=null,this[_0x7aa1('0x4a')]=new Set(),this[_0x7aa1('0xc')]=_0x9be38c[_0x7aa1('0x2')][_0x7aa1('0x37')](_0x479bf6),this[_0x7aa1('0x0')]=new Set(),this['_selectedAnnotations']=[],this[_0x7aa1('0x47')]=!0x1;}['init'](){const _0x584f94=this[_0x7aa1('0x1a')][_0x7aa1('0x2')][_0x7aa1('0x37')](_0x423097);_0x584f94[_0x7aa1('0x29')]===this['editor']&&(_0x584f94[_0x7aa1('0x12')](_0x7aa1('0x1b'),this),this[_0x7aa1('0x1a')][_0x7aa1('0x1c')]['set'](_0x7aa1('0x40'),(_0x200b31,_0x5c862f)=>{const _0x15db06=this[_0x7aa1('0xc')];if(this[_0x7aa1('0x1')]&&_0x15db06[_0x7aa1('0x6')]){const _0x2d696a=this[_0x7aa1('0x3e')][_0x7aa1('0x36')](_0x15db06['visibleView']);_0x2d696a&&this[_0x7aa1('0x2c')](_0x2d696a),_0x5c862f();}}));}[_0x7aa1('0x3')](){const _0xe9e9d9=this['editor'][_0x7aa1('0x2')]['get'](_0x423097);_0xe9e9d9[_0x7aa1('0x29')]===this[_0x7aa1('0x1a')]&&(_0xe9e9d9[_0x7aa1('0x45')]()||_0xe9e9d9[_0x7aa1('0x2b')](_0x7aa1('0x1b')));}['setActiveAnnotation'](_0x102485){_0x102485!==this['activeAnnotation']&&(this[_0x7aa1('0x41')]&&(this[_0x7aa1('0x41')][_0x7aa1('0x30')]=!0x1),_0x102485&&this['editor']['ui'][_0x7aa1('0x1d')][_0x7aa1('0x32')]&&(this[_0x7aa1('0x3e')]['has'](_0x102485)&&this['_addAnnotationToBalloon'](_0x102485,!0x0),_0x102485[_0x7aa1('0x30')]=!0x0),_0x102485||this[_0x7aa1('0x49')]([]),this[_0x7aa1('0x41')]=_0x102485);}[_0x7aa1('0x8')](_0x1a270e){this[_0x7aa1('0x3e')]=_0x1a270e;const _0x2a7fc3=this[_0x7aa1('0x1a')][_0x7aa1('0x2')][_0x7aa1('0x37')](_0x423097),_0x3f7e06=this[_0x7aa1('0xc')];if(this[_0x7aa1('0x1')])throw new _0x4ee021(_0x7aa1('0xf'),this);if(_0x2a7fc3['context']!==this[_0x7aa1('0x1a')])throw new _0x4ee021(_0x7aa1('0x43'),this);const _0x1251d1=this[_0x7aa1('0x1a')][_0x7aa1('0x2')]['get'](_0x1789fd);this['listenTo'](_0x1251d1,_0x7aa1('0x34'),()=>{const _0xcf18dc=_0x1251d1['getOrderedSelectedAnnotations']({'annotations':this[_0x7aa1('0x3e')],'activeAnnotation':this[_0x7aa1('0x41')]});var _0x28917a,_0x4a0eec;!this[_0x7aa1('0x47')]&&(_0x28917a=_0xcf18dc,_0x4a0eec=this['_selectedAnnotations'],_0x28917a[_0x7aa1('0x3b')]===_0x4a0eec[_0x7aa1('0x3b')]&&_0x28917a['every'](_0x243976=>_0x4a0eec[_0x7aa1('0x4')](_0x243976)))||(this[_0x7aa1('0x47')]=!0x1,this[_0x7aa1('0x49')](_0xcf18dc),this[_0x7aa1('0x44')](_0xcf18dc[0x0]||null));}),this[_0x7aa1('0x3f')](_0x1251d1,_0x7aa1('0x2f'),(_0x353812,{isAnnotationTracked:_0x4d735f})=>{this['activeAnnotation']&&_0x4d735f(this[_0x7aa1('0x41')])&&(this[_0x7aa1('0x49')]([]),this[_0x7aa1('0x44')](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],_0x7aa1('0x35'),(_0x4addbe,_0x1c0908,_0x486785)=>{_0x486785||this[_0x7aa1('0x44')](null);}),this[_0x7aa1('0x3f')](_0x1a270e,_0x7aa1('0x38'),(_0x610898,_0x1c5799)=>{this[_0x7aa1('0x27')](_0x1c5799),_0x1c5799===this[_0x7aa1('0x41')]&&this['setActiveAnnotation'](null);}),this[_0x7aa1('0x3f')](_0x3f7e06,_0x7aa1('0x2e'),(_0x2a4386,_0xc718d8,_0x460ae9,_0x3bb071)=>{_0x3bb071&&this['stopListening'](_0x3bb071);const _0x4789a6=_0x1a270e['getByView'](_0x460ae9);_0x460ae9&&_0x4789a6&&(this[_0x7aa1('0x3f')](_0x460ae9,_0x7aa1('0x18'),()=>{_0x3f7e06[_0x7aa1('0x33')]();}),this['listenTo'](_0x460ae9,'Esc',()=>{this[_0x7aa1('0x2c')](_0x4789a6),this[_0x7aa1('0x1a')]['editing'][_0x7aa1('0x1e')][_0x7aa1('0xe')]();}),this[_0x7aa1('0x41')]!==_0x4789a6&&this[_0x7aa1('0x44')](_0x4789a6));}),this['listenTo'](this['editor']['ui'],_0x7aa1('0x21'),()=>{_0x3f7e06[_0x7aa1('0x6')]&&(_0x1a270e[_0x7aa1('0x36')](_0x3f7e06[_0x7aa1('0x6')])&&_0x3f7e06[_0x7aa1('0x33')]());}),this[_0x7aa1('0x3f')](this['editor']['editing'][_0x7aa1('0x1e')][_0x7aa1('0x3c')],_0x7aa1('0x17'),()=>{this[_0x7aa1('0x47')]=!0x0,this[_0x7aa1('0x4a')][_0x7aa1('0x3d')]();}),this[_0x7aa1('0x1a')][_0x7aa1('0x10')][_0x7aa1('0x1e')][_0x7aa1('0x3c')]['selection'][_0x7aa1('0x2d')]&&this[_0x7aa1('0x1a')][_0x7aa1('0x10')][_0x7aa1('0x1e')]['focus'](),this[_0x7aa1('0x1')]=!0x0;}['detach'](){if(!this[_0x7aa1('0x1')])throw new _0x4ee021('inlineannotations-detach-not-attached',this);this[_0x7aa1('0x44')](null);for(const _0x535bf3 of this[_0x7aa1('0x0')])this['_removeAnnotationFromBalloon'](_0x535bf3);this[_0x7aa1('0x42')](),this[_0x7aa1('0x1')]=!0x1,this['annotations']=null;}['destroy'](){this[_0x7aa1('0x1')]&&this[_0x7aa1('0x20')]();}[_0x7aa1('0x49')](_0x331239){for(const _0x2236cb of this[_0x7aa1('0x5')])_0x331239[_0x7aa1('0x4')](_0x2236cb)||this['_manuallyClosed']['delete'](_0x2236cb);for(const _0xf9e003 of this[_0x7aa1('0x3e')])_0x331239[_0x7aa1('0x4')](_0xf9e003)||this['_removeAnnotationFromBalloon'](_0xf9e003);if(this[_0x7aa1('0x1a')]['ui']['focusTracker'][_0x7aa1('0x32')])for(const _0x5dd513 of _0x331239)this[_0x7aa1('0x9')](_0x5dd513);this['_selectedAnnotations']=_0x331239;}['_addAnnotationToBalloon'](_0x39da9a,_0x245ae1=!0x1){this['_manuallyClosed'][_0x7aa1('0x24')](_0x39da9a)||(this[_0x7aa1('0x0')][_0x7aa1('0x24')](_0x39da9a)||this[_0x7aa1('0xc')]['hasView'](_0x39da9a[_0x7aa1('0x1e')])||(this[_0x7aa1('0x0')]['add'](_0x39da9a),this[_0x7aa1('0xc')][_0x7aa1('0x46')]({'stackId':_0x39da9a[_0x7aa1('0x1e')]['id'],'view':_0x39da9a[_0x7aa1('0x1e')],'position':{'target':()=>this[_0x7aa1('0x13')](_0x39da9a)}})),_0x245ae1&&this[_0x7aa1('0xc')][_0x7aa1('0x2a')](_0x39da9a[_0x7aa1('0x1e')]['id']));}[_0x7aa1('0x13')](_0x5ee68a){const _0xe5c142=_0x5ee68a[_0x7aa1('0x3a')],_0x527749=this['editor'][_0x7aa1('0x10')][_0x7aa1('0x1e')],_0x10a800=_0x527749[_0x7aa1('0x3c')][_0x7aa1('0xb')][_0x7aa1('0x1f')](),_0x98fc8=_0x527749['domConverter'][_0x7aa1('0x16')](_0x10a800);if(_0x98fc8['collapse'](!0x0),_0xe5c142){if(_0xe5c142 instanceof _0x1fd36c)return _0xe5c142;let _0x29cf2f=[];for(const _0x240fec of _0xe5c142)_0x29cf2f['push'](...(_0x7630fb=_0x240fec['getClientRects'](),Array[_0x7aa1('0x23')](_0x7630fb)[_0x7aa1('0x15')](DOMRect[_0x7aa1('0x48')])));_0x29cf2f=function(_0x4fe7ce){const _0x568d1b=[];let _0x42dbea=_0x4fe7ce[0x0];for(let _0x2e0d37=0x1;_0x2e0d37<_0x4fe7ce[_0x7aa1('0x3b')];_0x2e0d37++)F(_0x42dbea,_0x4fe7ce[_0x2e0d37])?_0x42dbea[_0x7aa1('0x22')]+=_0x4fe7ce[_0x2e0d37][_0x7aa1('0x22')]:(_0x568d1b[_0x7aa1('0xd')](_0x42dbea),_0x42dbea=_0x4fe7ce[_0x2e0d37]);return _0x568d1b[_0x7aa1('0xd')](_0x42dbea),_0x568d1b;}(_0x29cf2f);const _0x38c2a5=_0x98fc8['getBoundingClientRect']();return _0x29cf2f[_0x7aa1('0x25')](_0x2366e0=>_0x2366e0['top']<=_0x38c2a5['top']&&_0x2366e0['bottom']>=_0x38c2a5['bottom']&&_0x2366e0['left']<=_0x38c2a5['left']&&_0x2366e0[_0x7aa1('0x28')]>=_0x38c2a5[_0x7aa1('0x28')])||_0x29cf2f[0x0];}var _0x7630fb;return _0x5ee68a['targetRect']||_0x98fc8;}[_0x7aa1('0x27')](_0x154189){this['_addedAnnotations'][_0x7aa1('0x24')](_0x154189)&&this[_0x7aa1('0xc')][_0x7aa1('0xa')](_0x154189[_0x7aa1('0x1e')])&&(this[_0x7aa1('0x0')][_0x7aa1('0x7')](_0x154189),this[_0x7aa1('0xc')]['remove'](_0x154189[_0x7aa1('0x1e')]));}[_0x7aa1('0x2c')](_0x499879){this[_0x7aa1('0x4a')][_0x7aa1('0x46')](_0x499879),this[_0x7aa1('0x27')](_0x499879);}}function F(_0x609b18,_0x222f26){return _0x609b18[_0x7aa1('0x19')]===_0x222f26[_0x7aa1('0x19')]&&_0x609b18[_0x7aa1('0x31')]===_0x222f26[_0x7aa1('0x31')]&&_0x609b18[_0x7aa1('0x28')]===_0x222f26[_0x7aa1('0x39')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3e8d=['southArrowNorthWest','_detachFromContainer','preventDefault','content','preventClosingBalloon','_manuallyClosedAnnotationViews','_editorAnnotations','esc','register','find','_selectedAnnotations','mousedown','unpin','remove','detach','_updateBalloonPosition','includes','destroy','removeEventListener','first','add','_domEmitter','element','attach','type','detachFromDom','_refreshPositioning','cancel','length','narrowsidebar-attach-already-attached','context','Esc','_setSelectedAnnotations','isDirty','getOrderedSelectedAnnotations','_integrateWithEditorAnnotations','isVisible','getSidebarItemView','annotationType','locale','refreshPositioning','bodyCollection','stopListening','delete','rearrange','_destroyEditorAnnotationsIntegration','_attachToContainer','pin','_attachListeners','high','northArrowSouth','view','balloonPanelView','clear','number','stopPropagation','requires','_annotationToNarrowView','target','refresh','EditorAnnotations','keydown','activeAnnotation','getByView','_hideBalloon','set','from','narrowSidebar','focusableElements','addEventListener','editors','create','has','setActiveAnnotation','_refreshPositioningDebounced','resize','annotations','set:container','uiUpdate','ck-sidebar--narrow','_detachListeners','focus','_showBalloon','northArrowSouthWest','northArrowSouthEast','contains','values','NarrowSidebar','blur','hasDomSelection','get','listenTo','plugins','isAttached','_annotations','low','init'];(function(_0x11b1d1,_0x3e8dee){const _0x1a0095=function(_0x46fcc8){while(--_0x46fcc8){_0x11b1d1['push'](_0x11b1d1['shift']());}};_0x1a0095(++_0x3e8dee);}(_0x3e8d,0xae));const _0x1a00=function(_0x11b1d1,_0x3e8dee){_0x11b1d1=_0x11b1d1-0x0;let _0x1a0095=_0x3e8d[_0x11b1d1];return _0x1a0095;};import{ContextPlugin as _0x10815b,Context as _0x2e5e0d}from'ckeditor5/src/core';import _0x631709 from'./annotationsuis';import _0x153d22 from'./sidebar';import _0x113915 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x884e4c,BodyCollection as _0x5aa6f9}from'ckeditor5/src/ui';import{CKEditorError as _0x253b15,DomEmitterMixin as _0x147e4c,keyCodes as _0x3faf63,Collection as _0x55c8a2}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x45e0ac}from'lodash-es';import _0x546586 from'./editorannotations';export default class s extends _0x10815b{static get[_0x1a00('0x4c')](){return[_0x153d22,_0x631709];}static get['pluginName'](){return _0x1a00('0xa');}constructor(_0x1c88c9){super(_0x1c88c9),this[_0x1a00('0x10')]=!0x1,this[_0x1a00('0x19')]=new Set(),this[_0x1a00('0x29')]=Object[_0x1a00('0x5b')](_0x147e4c),this['_annotationToNarrowView']=new Map(),this[_0x1a00('0x55')]('activeAnnotation',null),this[_0x1a00('0x60')]=null,this['_selectedAnnotations']=[],this[_0x1a00('0x1a')]=new _0x55c8a2(),this[_0x1a00('0x5e')]=_0x45e0ac(()=>{this[_0x1a00('0x2e')]();},0xfa,{'leading':!0x1});}[_0x1a00('0x13')](){this['context'][_0x1a00('0xf')][_0x1a00('0xd')](_0x631709)[_0x1a00('0x1c')](_0x1a00('0x57'),this),this[_0x1a00('0x3d')]=new _0x5aa6f9(this[_0x1a00('0x32')][_0x1a00('0x3b')]),this[_0x1a00('0x48')]=new _0x884e4c(this['context']['locale']),this[_0x1a00('0x3d')]['attachToDom'](),this[_0x1a00('0x3d')][_0x1a00('0x28')](this[_0x1a00('0x48')]);}[_0x1a00('0x2b')](_0xd706b3){this[_0x1a00('0x60')]=_0xd706b3;const _0x4e473b=this[_0x1a00('0x32')][_0x1a00('0xf')][_0x1a00('0xd')](_0x153d22),_0x9005a2=this[_0x1a00('0x48')];if(_0x4e473b[_0x1a00('0x11')]=_0xd706b3,this['isAttached'])throw new _0x253b15(_0x1a00('0x31'),this);this['isAttached']=!0x0,this['listenTo'](_0x4e473b,_0x1a00('0x0'),()=>{this[_0x1a00('0x22')](),this['listenTo'](_0x4e473b,'change:container',_0x14605c=>{_0x14605c['off'](),this[_0x1a00('0x2b')](_0xd706b3);});}),_0x4e473b[_0x1a00('0x42')]({'viewClass':_0x1a00('0x2'),'spaceBetweenItems':0x5});const _0x3bc8f0=_0x444a49=>{const _0x22b0e8=new _0x113915(this[_0x1a00('0x32')]['locale']);_0x4e473b['addAnnotation'](_0x444a49,_0x22b0e8),this[_0x1a00('0x4d')][_0x1a00('0x55')](_0x444a49,_0x22b0e8),_0x22b0e8['bind'](_0x1a00('0x35'),_0x1a00('0x3a'),_0x1a00('0x4a'))['to'](_0x444a49[_0x1a00('0x47')],_0x1a00('0x35'),_0x1a00('0x2c'),_0x1a00('0x30')),_0x22b0e8['on']('execute',()=>{this['_manuallyClosedAnnotationViews'][_0x1a00('0x49')](),_0x9005a2['content'][_0x1a00('0x27')]!==_0x444a49[_0x1a00('0x47')]?(this[_0x1a00('0x5')](_0x444a49),_0x444a49[_0x1a00('0x47')][_0x1a00('0x2a')][_0x1a00('0x4')](),this['setActiveAnnotation'](_0x444a49)):this[_0x1a00('0x5d')](null);});};for(const _0x2fdef0 of _0xd706b3)_0x3bc8f0(_0x2fdef0);this[_0x1a00('0xe')](_0xd706b3,'add',(_0x44d954,_0x3a3519)=>{_0x3bc8f0(_0x3a3519);}),this[_0x1a00('0xe')](_0xd706b3,_0x1a00('0x21'),(_0x5cc7ec,_0xcbc5bc,_0xff3555)=>{this[_0x1a00('0x4d')][_0x1a00('0xd')](_0xcbc5bc)[_0x1a00('0x25')](),this[_0x1a00('0x4d')][_0x1a00('0x3f')](_0xcbc5bc),_0x4e473b[_0x1a00('0x40')]({'removedAnnotation':_0xcbc5bc,'previousAnnotation':_0xd706b3[_0x1a00('0xd')](_0xff3555-0x1),'nextAnnotation':_0xd706b3[_0x1a00('0xd')](_0xff3555+0x1)}),_0xcbc5bc===this[_0x1a00('0x52')]&&this['setActiveAnnotation'](null);},{'priority':_0x1a00('0x12')}),this[_0x1a00('0xe')](_0xd706b3,_0x1a00('0x4'),(_0x3d26c1,_0x16998d)=>{this[_0x1a00('0x5d')](_0x16998d);}),this[_0x1a00('0xe')](_0xd706b3,_0x1a00('0xb'),()=>{this[_0x1a00('0x5d')](null);}),this[_0x1a00('0x29')]['listenTo'](document,_0x1a00('0x51'),(_0x5b02b5,_0x36cae9)=>{_0x36cae9['keyCode']===_0x3faf63[_0x1a00('0x1b')]&&_0x9005a2['isVisible']&&(this['_manuallyClosedAnnotationViews'][_0x1a00('0x28')](_0x9005a2[_0x1a00('0x17')][_0x1a00('0x27')]),this[_0x1a00('0x54')](),_0x36cae9[_0x1a00('0x4b')](),_0x36cae9[_0x1a00('0x16')]());}),this['_domEmitter'][_0x1a00('0xe')](document,_0x1a00('0x1f'),(_0x5beeb2,_0x25aa89)=>{const _0x56df0c=_0x25aa89[_0x1a00('0x4e')];_0x9005a2['isVisible']&&_0x9005a2[_0x1a00('0x2a')][_0x1a00('0x8')](_0x56df0c)||_0x4e473b[_0x1a00('0x47')][_0x1a00('0x2a')][_0x1a00('0x8')](_0x56df0c)||_0x5beeb2[_0x1a00('0x18')]||this[_0x1a00('0x52')]&&this[_0x1a00('0x52')][_0x1a00('0x58')][_0x1a00('0x1d')](_0x5da892=>_0x5da892[_0x1a00('0x8')](_0x56df0c))||(this[_0x1a00('0x19')][_0x1a00('0x49')](),this[_0x1a00('0x54')](),this[_0x1a00('0x5d')](null));});const _0x1ed55c=this[_0x1a00('0x32')]instanceof _0x2e5e0d?this[_0x1a00('0x32')][_0x1a00('0x5a')]:new _0x55c8a2([this[_0x1a00('0x32')]]);for(const _0x5dceab of _0x1ed55c)this[_0x1a00('0x37')](_0x5dceab);this[_0x1a00('0xe')](_0x1ed55c,_0x1a00('0x28'),(_0x21ef69,_0x5cc874)=>{this[_0x1a00('0xe')](_0x5cc874,'ready',()=>{this[_0x1a00('0x37')](_0x5cc874);});}),this[_0x1a00('0xe')](_0x1ed55c,_0x1a00('0x21'),(_0x496524,_0x2b40e3)=>{_0x2b40e3[_0x1a00('0xf')]['has']('EditorAnnotations')&&this[_0x1a00('0x41')](_0x2b40e3['plugins'][_0x1a00('0xd')](_0x1a00('0x50')));}),window[_0x1a00('0x59')]('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}[_0x1a00('0x5d')](_0x518fc7){if(_0x518fc7===this[_0x1a00('0x52')])return;const _0x5b96b1=this[_0x1a00('0x32')]['plugins'][_0x1a00('0xd')](_0x153d22);if(_0x5b96b1[_0x1a00('0x4f')]({'blurredAnnotation':this[_0x1a00('0x52')],'activatedAnnotation':_0x518fc7,'disableAnimationOnActivatedAnnotation':!0x0}),_0x518fc7)_0x5b96b1[_0x1a00('0x39')](_0x518fc7)?this[_0x1a00('0x5')](_0x518fc7):this['_hideBalloon']();else this['_hideBalloon']();this[_0x1a00('0x52')]=_0x518fc7;}[_0x1a00('0x22')](){if(!this['isAttached'])throw new _0x253b15('narrowsidebar-detach-not-attached',this);this[_0x1a00('0x5d')](null);const _0x2c1e75=this[_0x1a00('0x32')][_0x1a00('0xf')][_0x1a00('0xd')](_0x153d22);this['_hideBalloon'](),Array[_0x1a00('0x56')](this[_0x1a00('0x4d')][_0x1a00('0x9')](),_0x2ca587=>_0x2ca587[_0x1a00('0x25')]()),this[_0x1a00('0x4d')][_0x1a00('0x49')](),_0x2c1e75[_0x1a00('0x15')](this[_0x1a00('0x60')]),this[_0x1a00('0x3e')](),this[_0x1a00('0x29')][_0x1a00('0x3e')](),this[_0x1a00('0x32')]instanceof _0x2e5e0d&&this['stopListening'](this[_0x1a00('0x32')][_0x1a00('0x5a')]);for(const _0x11632b of Array['from'](this[_0x1a00('0x1a')]))this['_destroyEditorAnnotationsIntegration'](_0x11632b);window[_0x1a00('0x26')](_0x1a00('0x5f'),this[_0x1a00('0x5e')]),this[_0x1a00('0x5e')][_0x1a00('0x2f')](),this[_0x1a00('0x1e')]=[],this[_0x1a00('0x10')]=!0x1,this[_0x1a00('0x60')]=null;}[_0x1a00('0x25')](){this['isAttached']&&this[_0x1a00('0x22')](),this[_0x1a00('0x3d')][_0x1a00('0x2d')]();}[_0x1a00('0x37')](_0x49fd60){const _0x12dc41=_0x49fd60[_0x1a00('0xf')][_0x1a00('0xd')](_0x546586),_0x4fa1df=this[_0x1a00('0x32')][_0x1a00('0xf')][_0x1a00('0xd')](_0x153d22),_0x5af350=this[_0x1a00('0x60')],_0x74cc4c=this[_0x1a00('0x48')],_0x20a7f6=()=>{const _0x2b1631=_0x12dc41[_0x1a00('0x36')]({'annotations':this[_0x1a00('0x60')],'activeAnnotation':this[_0x1a00('0x52')]});this['_setSelectedAnnotations'](_0x2b1631),this[_0x1a00('0x5d')](_0x2b1631[0x0]||null);};this[_0x1a00('0xe')](_0x12dc41,'refresh',_0x20a7f6),this[_0x1a00('0xe')](_0x12dc41,'blur',(_0x224e49,{isAnnotationTracked:_0x3da4ac})=>{this[_0x1a00('0x52')]&&_0x3da4ac(this[_0x1a00('0x52')])&&(this[_0x1a00('0x34')]([]),this['setActiveAnnotation'](null));}),this[_0x1a00('0xe')](_0x12dc41,_0x1a00('0x1'),()=>{this[_0x1a00('0x5e')]();}),this['listenTo'](_0x5af350,_0x1a00('0xb'),_0x20d3a3=>{_0x12dc41[_0x1a00('0xc')]()&&_0x20d3a3['stop']();},{'priority':_0x1a00('0x45')}),this['listenTo'](this[_0x1a00('0x29')],_0x1a00('0x1f'),(_0x319110,_0x552099)=>{const _0x5b15ba=_0x552099[_0x1a00('0x4e')];_0x74cc4c['isVisible']&&_0x74cc4c['element'][_0x1a00('0x8')](_0x5b15ba)||_0x4fa1df[_0x1a00('0x47')][_0x1a00('0x2a')][_0x1a00('0x8')](_0x5b15ba)||this['activeAnnotation']&&_0x12dc41[_0x1a00('0xc')]()&&(_0x20a7f6(),_0x319110['preventClosingBalloon']=!0x0);},{'priority':_0x1a00('0x45')}),this['_editorAnnotations'][_0x1a00('0x28')](_0x12dc41);}[_0x1a00('0x41')](_0x52ebb8){_0x52ebb8&&(this[_0x1a00('0x3e')](_0x52ebb8),this[_0x1a00('0x1a')]['remove'](_0x52ebb8));}[_0x1a00('0x34')](_0x12532b){for(const _0x530fbf of this[_0x1a00('0x1e')])_0x12532b[_0x1a00('0x24')](_0x530fbf)||this[_0x1a00('0x19')]['delete'](_0x530fbf[_0x1a00('0x47')]);this[_0x1a00('0x1e')]=_0x12532b;}['_refreshPositioning'](){const _0x115b30=this[_0x1a00('0x48')];this[_0x1a00('0x60')][_0x1a00('0x3c')](),_0x115b30[_0x1a00('0x38')]&&this[_0x1a00('0x23')]();}['_showBalloon'](_0x54786b){if(this[_0x1a00('0x19')][_0x1a00('0x5c')](_0x54786b[_0x1a00('0x47')]))return;const _0x406fac=this[_0x1a00('0x48')][_0x1a00('0x17')][_0x1a00('0x27')];_0x406fac!==_0x54786b['view']?(_0x406fac&&this[_0x1a00('0x3')](_0x406fac),this[_0x1a00('0x44')](_0x54786b[_0x1a00('0x47')]),this[_0x1a00('0x48')][_0x1a00('0x17')][_0x1a00('0x49')](),this[_0x1a00('0x48')][_0x1a00('0x17')][_0x1a00('0x28')](_0x54786b['view']),this[_0x1a00('0x23')]()):this[_0x1a00('0x23')]();}['_updateBalloonPosition'](){const _0x3b69a0=this['balloonPanelView'][_0x1a00('0x17')][_0x1a00('0x27')],_0x47481b=_0x3b69a0&&this[_0x1a00('0x60')][_0x1a00('0x53')](_0x3b69a0);if(!_0x47481b||!this[_0x1a00('0x4d')]['has'](_0x47481b))return;const _0x5c20ca=this[_0x1a00('0x4d')][_0x1a00('0xd')](_0x47481b)[_0x1a00('0x2a')],_0x22b9c7=function(){const _0x5e00e7=_0x884e4c['defaultPositions'];return[_0x5e00e7['southArrowNorthEast'],_0x5e00e7[_0x1a00('0x7')],_0x5e00e7['southArrowNorth'],_0x5e00e7[_0x1a00('0x46')],_0x5e00e7[_0x1a00('0x14')],_0x5e00e7[_0x1a00('0x6')]];}();this[_0x1a00('0x48')][_0x1a00('0x43')]({'target':_0x5c20ca,'positions':_0x22b9c7});}[_0x1a00('0x54')](){const _0x1007bf=this[_0x1a00('0x48')],_0x4080d4=_0x1007bf[_0x1a00('0x17')][_0x1a00('0x27')];_0x4080d4&&(this[_0x1a00('0x3')](_0x4080d4),_0x1007bf[_0x1a00('0x20')](),_0x1007bf[_0x1a00('0x17')][_0x1a00('0x49')]());}[_0x1a00('0x44')](_0x4c317e){this['listenTo'](_0x4c317e,'change:height',()=>this[_0x1a00('0x23')]()),this[_0x1a00('0xe')](_0x4c317e,_0x1a00('0x33'),(_0xe8db92,_0xd5354b)=>{this['_manuallyClosedAnnotationViews'][_0x1a00('0x28')](_0x4c317e),this['_hideBalloon'](),_0xd5354b();});}['_detachListeners'](_0x1e67e3){this[_0x1a00('0x3e')](_0x1e67e3);}}
23
+ const _0x4b4b=['from','get','Esc','annotations','detachFromDom','_attachToContainer','_annotationToNarrowView','hasDomSelection','uiUpdate','add','northArrowSouthWest','find','addAnnotation','remove','change:container','southArrowNorthWest','create','pluginName','_editorAnnotations','keyCode','change:height','preventDefault','element','refresh','_refreshPositioning','set:container','_selectedAnnotations','refreshPositioning','activeAnnotation','getSidebarItemView','detach','_hideBalloon','stopPropagation','_setSelectedAnnotations','_showBalloon','has','off','set','view','high','unpin','narrowSidebar','isAttached','resize','isDirty','bodyCollection','length','listenTo','destroy','ready','low','values','register','_detachListeners','plugins','getByView','northArrowSouth','getOrderedSelectedAnnotations','contains','editors','type','_destroyEditorAnnotationsIntegration','rearrange','mousedown','context','_annotations','target','ck-sidebar--narrow','_detachFromContainer','bind','content','southArrowNorth','clear','blur','balloonPanelView','delete','isVisible','_manuallyClosedAnnotationViews','_domEmitter','_refreshPositioningDebounced','stopListening','focus','locale','defaultPositions','number','esc','EditorAnnotations','stop','attachToDom','_attachListeners','_updateBalloonPosition','attach','first','setActiveAnnotation','NarrowSidebar','init','_integrateWithEditorAnnotations','addEventListener','preventClosingBalloon'];(function(_0x2da643,_0x4b4b9b){const _0xbd5af7=function(_0x345062){while(--_0x345062){_0x2da643['push'](_0x2da643['shift']());}};_0xbd5af7(++_0x4b4b9b);}(_0x4b4b,0x123));const _0xbd5a=function(_0x2da643,_0x4b4b9b){_0x2da643=_0x2da643-0x0;let _0xbd5af7=_0x4b4b[_0x2da643];return _0xbd5af7;};import{ContextPlugin as _0x4a9be3,Context as _0x19c4ae}from'ckeditor5/src/core';import _0x20ce45 from'./annotationsuis';import _0x1d526c from'./sidebar';import _0x231c04 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x525224,BodyCollection as _0x814cb4}from'ckeditor5/src/ui';import{CKEditorError as _0x1c70d0,DomEmitterMixin as _0x4326f6,keyCodes as _0x19fdac,Collection as _0x1a8371}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x45356d}from'lodash-es';import _0x21901f from'./editorannotations';export default class s extends _0x4a9be3{static get['requires'](){return[_0x1d526c,_0x20ce45];}static get[_0xbd5a('0x17')](){return _0xbd5a('0x1');}constructor(_0x827f29){super(_0x827f29),this[_0xbd5a('0x30')]=!0x1,this[_0xbd5a('0x53')]=new Set(),this['_domEmitter']=Object[_0xbd5a('0x16')](_0x4326f6),this['_annotationToNarrowView']=new Map(),this[_0xbd5a('0x2b')]('activeAnnotation',null),this[_0xbd5a('0x9')]=null,this['_selectedAnnotations']=[],this[_0xbd5a('0x18')]=new _0x1a8371(),this['_refreshPositioningDebounced']=_0x45356d(()=>{this[_0xbd5a('0x1e')]();},0xfa,{'leading':!0x1});}[_0xbd5a('0x2')](){this[_0xbd5a('0x46')][_0xbd5a('0x3c')]['get'](_0x20ce45)[_0xbd5a('0x3a')](_0xbd5a('0x2f'),this),this[_0xbd5a('0x33')]=new _0x814cb4(this[_0xbd5a('0x46')][_0xbd5a('0x58')]),this['balloonPanelView']=new _0x525224(this[_0xbd5a('0x46')]['locale']),this[_0xbd5a('0x33')][_0xbd5a('0x5e')](),this[_0xbd5a('0x33')][_0xbd5a('0xf')](this[_0xbd5a('0x50')]);}[_0xbd5a('0x61')](_0x47e972){this[_0xbd5a('0x9')]=_0x47e972;const _0x4ef2b8=this[_0xbd5a('0x46')][_0xbd5a('0x3c')]['get'](_0x1d526c),_0x2b425f=this[_0xbd5a('0x50')];if(_0x4ef2b8[_0xbd5a('0x47')]=_0x47e972,this[_0xbd5a('0x30')])throw new _0x1c70d0('narrowsidebar-attach-already-attached',this);this[_0xbd5a('0x30')]=!0x0,this[_0xbd5a('0x35')](_0x4ef2b8,_0xbd5a('0x1f'),()=>{this[_0xbd5a('0x24')](),this['listenTo'](_0x4ef2b8,_0xbd5a('0x14'),_0x3ccf3b=>{_0x3ccf3b[_0xbd5a('0x2a')](),this[_0xbd5a('0x61')](_0x47e972);});}),_0x4ef2b8[_0xbd5a('0xb')]({'viewClass':_0xbd5a('0x49'),'spaceBetweenItems':0x5});const _0xfe1d02=_0x496fec=>{const _0x2b48ec=new _0x231c04(this[_0xbd5a('0x46')][_0xbd5a('0x58')]);_0x4ef2b8[_0xbd5a('0x12')](_0x496fec,_0x2b48ec),this[_0xbd5a('0xc')][_0xbd5a('0x2b')](_0x496fec,_0x2b48ec),_0x2b48ec[_0xbd5a('0x4b')](_0xbd5a('0x32'),'annotationType',_0xbd5a('0x5a'))['to'](_0x496fec[_0xbd5a('0x2c')],_0xbd5a('0x32'),_0xbd5a('0x42'),_0xbd5a('0x34')),_0x2b48ec['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x2b425f[_0xbd5a('0x4c')][_0xbd5a('0x62')]!==_0x496fec[_0xbd5a('0x2c')]?(this['_showBalloon'](_0x496fec),_0x496fec['view']['element'][_0xbd5a('0x57')](),this['setActiveAnnotation'](_0x496fec)):this['setActiveAnnotation'](null);});};for(const _0x2a7f08 of _0x47e972)_0xfe1d02(_0x2a7f08);this[_0xbd5a('0x35')](_0x47e972,'add',(_0xac89b,_0x56b0b0)=>{_0xfe1d02(_0x56b0b0);}),this[_0xbd5a('0x35')](_0x47e972,'remove',(_0x124012,_0x3dd8ab,_0x880779)=>{this['_annotationToNarrowView'][_0xbd5a('0x7')](_0x3dd8ab)[_0xbd5a('0x36')](),this['_annotationToNarrowView']['delete'](_0x3dd8ab),_0x4ef2b8[_0xbd5a('0x44')]({'removedAnnotation':_0x3dd8ab,'previousAnnotation':_0x47e972[_0xbd5a('0x7')](_0x880779-0x1),'nextAnnotation':_0x47e972['get'](_0x880779+0x1)}),_0x3dd8ab===this[_0xbd5a('0x22')]&&this['setActiveAnnotation'](null);},{'priority':_0xbd5a('0x38')}),this[_0xbd5a('0x35')](_0x47e972,_0xbd5a('0x57'),(_0x200c76,_0x12ade5)=>{this[_0xbd5a('0x0')](_0x12ade5);}),this[_0xbd5a('0x35')](_0x47e972,_0xbd5a('0x4f'),()=>{this[_0xbd5a('0x0')](null);}),this[_0xbd5a('0x54')][_0xbd5a('0x35')](document,'keydown',(_0xdc2712,_0x406d35)=>{_0x406d35[_0xbd5a('0x19')]===_0x19fdac[_0xbd5a('0x5b')]&&_0x2b425f[_0xbd5a('0x52')]&&(this[_0xbd5a('0x53')][_0xbd5a('0xf')](_0x2b425f[_0xbd5a('0x4c')]['first']),this[_0xbd5a('0x25')](),_0x406d35[_0xbd5a('0x26')](),_0x406d35[_0xbd5a('0x1b')]());}),this[_0xbd5a('0x54')][_0xbd5a('0x35')](document,_0xbd5a('0x45'),(_0x20faad,_0x48f786)=>{const _0x2040e0=_0x48f786[_0xbd5a('0x48')];_0x2b425f[_0xbd5a('0x52')]&&_0x2b425f['element'][_0xbd5a('0x40')](_0x2040e0)||_0x4ef2b8['view']['element']['contains'](_0x2040e0)||_0x20faad[_0xbd5a('0x5')]||this[_0xbd5a('0x22')]&&this['activeAnnotation']['focusableElements'][_0xbd5a('0x11')](_0x31f36c=>_0x31f36c[_0xbd5a('0x40')](_0x2040e0))||(this[_0xbd5a('0x53')][_0xbd5a('0x4e')](),this['_hideBalloon'](),this[_0xbd5a('0x0')](null));});const _0x30118d=this[_0xbd5a('0x46')]instanceof _0x19c4ae?this[_0xbd5a('0x46')][_0xbd5a('0x41')]:new _0x1a8371([this[_0xbd5a('0x46')]]);for(const _0x538f2d of _0x30118d)this[_0xbd5a('0x3')](_0x538f2d);this[_0xbd5a('0x35')](_0x30118d,_0xbd5a('0xf'),(_0x386f04,_0x57d401)=>{this[_0xbd5a('0x35')](_0x57d401,_0xbd5a('0x37'),()=>{this[_0xbd5a('0x3')](_0x57d401);});}),this[_0xbd5a('0x35')](_0x30118d,_0xbd5a('0x13'),(_0x37915b,_0x47ca79)=>{_0x47ca79[_0xbd5a('0x3c')]['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x47ca79[_0xbd5a('0x3c')][_0xbd5a('0x7')](_0xbd5a('0x5c')));}),window[_0xbd5a('0x4')](_0xbd5a('0x31'),this[_0xbd5a('0x55')]),this['_refreshPositioning']();}['setActiveAnnotation'](_0x666579){if(_0x666579===this[_0xbd5a('0x22')])return;const _0x3d58fc=this[_0xbd5a('0x46')][_0xbd5a('0x3c')][_0xbd5a('0x7')](_0x1d526c);if(_0x3d58fc[_0xbd5a('0x1d')]({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x666579,'disableAnimationOnActivatedAnnotation':!0x0}),_0x666579)_0x3d58fc[_0xbd5a('0x23')](_0x666579)?this[_0xbd5a('0x28')](_0x666579):this['_hideBalloon']();else this[_0xbd5a('0x25')]();this[_0xbd5a('0x22')]=_0x666579;}['detach'](){if(!this['isAttached'])throw new _0x1c70d0('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x537b97=this[_0xbd5a('0x46')][_0xbd5a('0x3c')][_0xbd5a('0x7')](_0x1d526c);this[_0xbd5a('0x25')](),Array[_0xbd5a('0x6')](this['_annotationToNarrowView'][_0xbd5a('0x39')](),_0x59f0e7=>_0x59f0e7[_0xbd5a('0x36')]()),this[_0xbd5a('0xc')]['clear'](),_0x537b97[_0xbd5a('0x4a')](this[_0xbd5a('0x9')]),this[_0xbd5a('0x56')](),this['_domEmitter']['stopListening'](),this[_0xbd5a('0x46')]instanceof _0x19c4ae&&this['stopListening'](this[_0xbd5a('0x46')]['editors']);for(const _0x1e1c1d of Array[_0xbd5a('0x6')](this[_0xbd5a('0x18')]))this[_0xbd5a('0x43')](_0x1e1c1d);window['removeEventListener'](_0xbd5a('0x31'),this[_0xbd5a('0x55')]),this[_0xbd5a('0x55')]['cancel'](),this[_0xbd5a('0x20')]=[],this[_0xbd5a('0x30')]=!0x1,this[_0xbd5a('0x9')]=null;}[_0xbd5a('0x36')](){this[_0xbd5a('0x30')]&&this[_0xbd5a('0x24')](),this[_0xbd5a('0x33')][_0xbd5a('0xa')]();}[_0xbd5a('0x3')](_0x8a98ec){const _0x4c3b4e=_0x8a98ec[_0xbd5a('0x3c')]['get'](_0x21901f),_0x245a02=this[_0xbd5a('0x46')]['plugins'][_0xbd5a('0x7')](_0x1d526c),_0x62b193=this[_0xbd5a('0x9')],_0x5a6efd=this['balloonPanelView'],_0x4ee498=()=>{const _0x31aac6=_0x4c3b4e[_0xbd5a('0x3f')]({'annotations':this[_0xbd5a('0x9')],'activeAnnotation':this[_0xbd5a('0x22')]});this[_0xbd5a('0x27')](_0x31aac6),this['setActiveAnnotation'](_0x31aac6[0x0]||null);};this[_0xbd5a('0x35')](_0x4c3b4e,_0xbd5a('0x1d'),_0x4ee498),this[_0xbd5a('0x35')](_0x4c3b4e,'blur',(_0x549130,{isAnnotationTracked:_0x4aa6fc})=>{this[_0xbd5a('0x22')]&&_0x4aa6fc(this[_0xbd5a('0x22')])&&(this[_0xbd5a('0x27')]([]),this[_0xbd5a('0x0')](null));}),this[_0xbd5a('0x35')](_0x4c3b4e,_0xbd5a('0xe'),()=>{this[_0xbd5a('0x55')]();}),this[_0xbd5a('0x35')](_0x62b193,_0xbd5a('0x4f'),_0x49f568=>{_0x4c3b4e[_0xbd5a('0xd')]()&&_0x49f568[_0xbd5a('0x5d')]();},{'priority':_0xbd5a('0x2d')}),this[_0xbd5a('0x35')](this[_0xbd5a('0x54')],_0xbd5a('0x45'),(_0x4a6946,_0x5bd37b)=>{const _0x2e3f04=_0x5bd37b['target'];_0x5a6efd['isVisible']&&_0x5a6efd[_0xbd5a('0x1c')][_0xbd5a('0x40')](_0x2e3f04)||_0x245a02[_0xbd5a('0x2c')]['element']['contains'](_0x2e3f04)||this[_0xbd5a('0x22')]&&_0x4c3b4e[_0xbd5a('0xd')]()&&(_0x4ee498(),_0x4a6946[_0xbd5a('0x5')]=!0x0);},{'priority':_0xbd5a('0x2d')}),this[_0xbd5a('0x18')][_0xbd5a('0xf')](_0x4c3b4e);}[_0xbd5a('0x43')](_0x1dedb1){_0x1dedb1&&(this[_0xbd5a('0x56')](_0x1dedb1),this[_0xbd5a('0x18')]['remove'](_0x1dedb1));}['_setSelectedAnnotations'](_0x16dc96){for(const _0x1fce9c of this[_0xbd5a('0x20')])_0x16dc96['includes'](_0x1fce9c)||this[_0xbd5a('0x53')][_0xbd5a('0x51')](_0x1fce9c[_0xbd5a('0x2c')]);this[_0xbd5a('0x20')]=_0x16dc96;}[_0xbd5a('0x1e')](){const _0x1a72bc=this['balloonPanelView'];this[_0xbd5a('0x9')][_0xbd5a('0x21')](),_0x1a72bc[_0xbd5a('0x52')]&&this[_0xbd5a('0x60')]();}['_showBalloon'](_0xb24de7){if(this['_manuallyClosedAnnotationViews'][_0xbd5a('0x29')](_0xb24de7[_0xbd5a('0x2c')]))return;const _0x121739=this[_0xbd5a('0x50')]['content'][_0xbd5a('0x62')];_0x121739!==_0xb24de7['view']?(_0x121739&&this[_0xbd5a('0x3b')](_0x121739),this['_attachListeners'](_0xb24de7[_0xbd5a('0x2c')]),this[_0xbd5a('0x50')]['content'][_0xbd5a('0x4e')](),this[_0xbd5a('0x50')]['content'][_0xbd5a('0xf')](_0xb24de7['view']),this[_0xbd5a('0x60')]()):this[_0xbd5a('0x60')]();}[_0xbd5a('0x60')](){const _0x20febe=this['balloonPanelView'][_0xbd5a('0x4c')][_0xbd5a('0x62')],_0x5ec1f7=_0x20febe&&this[_0xbd5a('0x9')][_0xbd5a('0x3d')](_0x20febe);if(!_0x5ec1f7||!this[_0xbd5a('0xc')][_0xbd5a('0x29')](_0x5ec1f7))return;const _0x1ecb3f=this[_0xbd5a('0xc')][_0xbd5a('0x7')](_0x5ec1f7)[_0xbd5a('0x1c')],_0x4a291b=function(){const _0x413b73=_0x525224[_0xbd5a('0x59')];return[_0x413b73['southArrowNorthEast'],_0x413b73['northArrowSouthEast'],_0x413b73[_0xbd5a('0x4d')],_0x413b73[_0xbd5a('0x3e')],_0x413b73[_0xbd5a('0x15')],_0x413b73[_0xbd5a('0x10')]];}();this[_0xbd5a('0x50')]['pin']({'target':_0x1ecb3f,'positions':_0x4a291b});}[_0xbd5a('0x25')](){const _0x3a4147=this[_0xbd5a('0x50')],_0x6af436=_0x3a4147[_0xbd5a('0x4c')][_0xbd5a('0x62')];_0x6af436&&(this[_0xbd5a('0x3b')](_0x6af436),_0x3a4147[_0xbd5a('0x2e')](),_0x3a4147['content']['clear']());}[_0xbd5a('0x5f')](_0x2fd225){this[_0xbd5a('0x35')](_0x2fd225,_0xbd5a('0x1a'),()=>this['_updateBalloonPosition']()),this[_0xbd5a('0x35')](_0x2fd225,_0xbd5a('0x8'),(_0x2b6484,_0x2e211c)=>{this[_0xbd5a('0x53')]['add'](_0x2fd225),this[_0xbd5a('0x25')](),_0x2e211c();});}['_detachListeners'](_0x3eddd6){this[_0xbd5a('0x56')](_0x3eddd6);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xb2b6=['_alignBeforeItem','addAnnotation','_annotations','_recalculate','content','container','_targetTop','_attachToContainer','element','object','class','targetRect','target','pluginName','refresh','_detachFromContainer','height','_annotationToSidebarItemView','getSidebarItemView','_activeAnnotation','isActive','get','change:_lastItem','sidebar.container','_destroySidebarItemView','Sidebar','bottom','_recalculateBuffer','_alignForBottomChange','listenTo','setContainer','context','stopListening','_getItemAfter','_alignAfterItem','length','nodeType','unbind','render','_alignForTopChange','_getMaxAvailableTop','config','_updateLastItem','add','list','change:targetRect','updateHeight','remove','bind','_sidebarItemViewToAnnotation','clear','_lastItem','define','change:bottom','top','delete','_getTargetTop','set','_setItemTop','_spaceBetweenItems','appendChild','_getItemBefore','_alignToTargetRect','change:top','destroy','last','sidebar.preventScrollOutOfView','getIndex','_createSidebarView','minHeight','locale','push','view'];(function(_0x5884bf,_0xb2b617){const _0x56534d=function(_0x36cae1){while(--_0x36cae1){_0x5884bf['push'](_0x5884bf['shift']());}};_0x56534d(++_0xb2b617);}(_0xb2b6,0x1d8));const _0x5653=function(_0x5884bf,_0xb2b617){_0x5884bf=_0x5884bf-0x0;let _0x56534d=_0xb2b6[_0x5884bf];return _0x56534d;};import{ContextPlugin as _0x5d307b}from'ckeditor5/src/core';import{Rect as _0x37bdda,CKEditorError as _0x4e76e8}from'ckeditor5/src/utils';import _0x25fc4e from'./view/sidebarview';import _0x4af31d from'./view/sidebaritemview';export default class z extends _0x5d307b{static get[_0x5653('0x34')](){return _0x5653('0x40');}constructor(_0x59fa61){super(_0x59fa61),this['set'](_0x5653('0x11'),void 0x0),this[_0x5653('0x26')]=this[_0x5653('0x22')](),this[_0x5653('0x17')](_0x5653('0x2c'),null),this[_0x5653('0x19')]=0x19,this[_0x5653('0xf')]=new Map(),this[_0x5653('0x38')]=new Map(),this[_0x5653('0x46')][_0x5653('0x7')][_0x5653('0x12')](_0x5653('0x20'),!0x1),this['_annotations']=null,this[_0x5653('0x3a')]=null,this['_recalculateBuffer']=[];}['init'](){const _0x22a4f9=this[_0x5653('0x46')][_0x5653('0x7')][_0x5653('0x3c')](_0x5653('0x3e'));_0x22a4f9&&this[_0x5653('0x45')](_0x22a4f9);}[_0x5653('0x45')](_0x32f3a8){if(!y(_0x32f3a8))throw new _0x4e76e8('sidebar-setcontainer-invalid-element');this[_0x5653('0x2c')]=_0x32f3a8;}[_0x5653('0x2e')]({viewClass:_0x6eedd='',spaceBetweenItems:_0xb6e52a=0x19}={}){if(!y(this[_0x5653('0x2c')]))throw new _0x4e76e8('sidebar-attachtocontainer-missing-container',this);this[_0x5653('0x2c')][_0x5653('0x1a')](this['view'][_0x5653('0x2f')]),this['view'][_0x5653('0x31')]=_0x6eedd,this['_spaceBetweenItems']=_0xb6e52a;}['rearrange']({removedAnnotation:_0x4110c0,previousAnnotation:_0x534c31,nextAnnotation:_0x201596}){const _0x44c2eb=this['getSidebarItemView'](_0x4110c0);this['view'][_0x5653('0xa')][_0x5653('0xd')](_0x44c2eb),this[_0x5653('0x3f')](_0x4110c0),_0x534c31&&this[_0x5653('0x1c')](this['getSidebarItemView'](_0x534c31)),_0x201596&&this[_0x5653('0x1c')](this[_0x5653('0x39')](_0x201596)),this[_0x5653('0x8')]();}[_0x5653('0x35')]({blurredAnnotation:_0x42eb75,activatedAnnotation:_0x57b80d,disableAnimationOnActivatedAnnotation:_0x5c28d2}){if(this[_0x5653('0x3a')]=_0x57b80d,_0x42eb75){_0x42eb75[_0x5653('0x3b')]=!0x1;const _0x2773a6=this[_0x5653('0x39')](_0x42eb75);_0x2773a6&&_0x5c28d2&&(_0x2773a6['isAnimationDisabled']=!0x1);}if(_0x57b80d){const _0x17c5ec=this[_0x5653('0x39')](_0x57b80d);_0x17c5ec&&(_0x57b80d[_0x5653('0x3b')]=!0x0,_0x5c28d2&&(_0x17c5ec['isAnimationDisabled']=!0x0,_0x17c5ec[_0x5653('0x14')]+=0x1),this[_0x5653('0x1c')](_0x17c5ec));}}[_0x5653('0x36')](_0x49bcf8){if(this[_0x5653('0x26')][_0x5653('0x2f')][_0x5653('0xd')](),_0x49bcf8)for(const _0x508874 of _0x49bcf8)this[_0x5653('0x3f')](_0x508874);this['view'][_0x5653('0xa')][_0x5653('0x10')](),this[_0x5653('0x26')][_0x5653('0x31')]='',this[_0x5653('0x11')]=null;}[_0x5653('0x28')](_0x3b86b0,_0x471ae7){_0x471ae7||(_0x471ae7=_0x3b86b0[_0x5653('0x26')]);const _0x3de0ce=new _0x4af31d(this[_0x5653('0x46')][_0x5653('0x24')]);this[_0x5653('0xf')][_0x5653('0x17')](_0x3de0ce,_0x3b86b0),this[_0x5653('0x38')][_0x5653('0x17')](_0x3b86b0,_0x3de0ce),_0x3de0ce[_0x5653('0x2b')][_0x5653('0x9')](_0x471ae7),this[_0x5653('0x44')](_0x3b86b0[_0x5653('0x26')],_0x5653('0xb'),(_0x56ccd3,_0x10664c,_0x53dfc9)=>{const _0x33f57e=this['_getTargetTop'](_0x3b86b0,_0x53dfc9);_0x3de0ce[_0x5653('0x2d')]!=_0x33f57e&&(_0x3de0ce[_0x5653('0x2d')]=_0x33f57e,this[_0x5653('0x18')](_0x3de0ce,_0x33f57e));}),this[_0x5653('0x44')](_0x3de0ce,_0x5653('0x1d'),()=>{this[_0x5653('0x2a')](_0x3de0ce,'top');}),this['listenTo'](_0x3de0ce,_0x5653('0x13'),()=>{this['_recalculate'](_0x3de0ce,_0x5653('0x41'));}),this['_alignToTargetRect'](_0x3de0ce);const _0x368225=this['_getItemBefore'](_0x3de0ce);if(_0x368225)this[_0x5653('0x0')](_0x368225,_0x3de0ce)||this[_0x5653('0x1c')](_0x3de0ce);else this[_0x5653('0x1c')](_0x3de0ce);return this[_0x5653('0x8')](),this['view'][_0x5653('0xa')][_0x5653('0x9')](_0x3de0ce),_0x3de0ce;}[_0x5653('0x5')](_0x4a2648){if(!_0x4a2648[_0x5653('0x2b')]['length'])return;const _0xb66525=this[_0x5653('0x1b')](_0x4a2648);if(!_0xb66525)return;const _0x121388=this[_0x5653('0xf')]['get'](_0xb66525),_0x86df27=this[_0x5653('0x3a')];_0x86df27&&_0x86df27===_0x121388?this[_0x5653('0x0')](_0xb66525,_0x4a2648):this[_0x5653('0x27')](_0x4a2648,_0xb66525);}[_0x5653('0x43')](_0x1428a5){if(!_0x1428a5[_0x5653('0x2b')][_0x5653('0x1')])return;const _0x5e59e6=this[_0x5653('0x48')](_0x1428a5);if(!_0x5e59e6)return;const _0x2f3c7f=this[_0x5653('0xf')]['get'](_0x5e59e6),_0x4d9799=this[_0x5653('0x46')][_0x5653('0x7')][_0x5653('0x3c')](_0x5653('0x20')),_0x3fce6e=this[_0x5653('0x3a')];_0x3fce6e&&_0x3fce6e===_0x2f3c7f&&_0x4d9799?(this['_alignBeforeItem'](_0x5e59e6,_0x1428a5),this[_0x5653('0x0')](_0x1428a5,_0x5e59e6)):_0x3fce6e&&_0x3fce6e===_0x2f3c7f?this[_0x5653('0x27')](_0x5e59e6,_0x1428a5):this[_0x5653('0x0')](_0x1428a5,_0x5e59e6);}[_0x5653('0x2a')](_0x104dbb,_0x20e50e){0x0===this[_0x5653('0x42')][_0x5653('0x1')]&&setTimeout(()=>{for(const {sidebarItemView:_0x267c99,changedProp:_0x4e627f}of this[_0x5653('0x42')])_0x5653('0x14')===_0x4e627f?this[_0x5653('0x5')](_0x267c99):this[_0x5653('0x43')](_0x267c99);this[_0x5653('0x42')]=[];},0xa),this[_0x5653('0x42')][_0x5653('0x25')]({'sidebarItemView':_0x104dbb,'changedProp':_0x20e50e});}[_0x5653('0x39')](_0x3942c9){return this[_0x5653('0x38')][_0x5653('0x3c')](_0x3942c9);}[_0x5653('0x1e')](){this[_0x5653('0x47')](),this[_0x5653('0x26')][_0x5653('0x1e')]();}['_destroySidebarItemView'](_0x30cb4b){const _0x56b7a8=this['getSidebarItemView'](_0x30cb4b);this[_0x5653('0x47')](_0x56b7a8),this['stopListening'](_0x30cb4b[_0x5653('0x26')]),_0x56b7a8[_0x5653('0x1e')](),this[_0x5653('0x38')]['delete'](_0x30cb4b),this['_sidebarItemViewToAnnotation'][_0x5653('0x15')](_0x56b7a8);}[_0x5653('0x22')](){const _0x36f535=new _0x25fc4e(this[_0x5653('0x46')][_0x5653('0x24')]);return _0x36f535[_0x5653('0x4')](),this['on'](_0x5653('0x3d'),(_0x317ce4,_0x357b4f,_0x51e0ad,_0x5c1568)=>{_0x5c1568&&_0x36f535[_0x5653('0x3')](_0x5653('0x23')),_0x51e0ad?_0x36f535[_0x5653('0xe')]('minHeight')['to'](_0x51e0ad,_0x5653('0x41')):_0x36f535['minHeight']=null;}),_0x36f535;}[_0x5653('0x8')](){var _0x58667a;this[_0x5653('0x11')]=(null===(_0x58667a=this[_0x5653('0x29')])||void 0x0===_0x58667a?void 0x0:_0x58667a[_0x5653('0x1f')])?this[_0x5653('0x39')](this[_0x5653('0x29')][_0x5653('0x1f')]):null;}[_0x5653('0x1b')](_0xe2c371){var _0x3218b1;const _0x5e19f7=this[_0x5653('0xf')]['get'](_0xe2c371),_0x3a0714=_0x5e19f7&&(null===(_0x3218b1=this[_0x5653('0x29')])||void 0x0===_0x3218b1?void 0x0:_0x3218b1[_0x5653('0x3c')](this['_annotations']['getIndex'](_0x5e19f7)-0x1));return _0x3a0714&&this['getSidebarItemView'](_0x3a0714)||null;}[_0x5653('0x48')](_0x41d4e4){var _0x314673;const _0x291290=this['_sidebarItemViewToAnnotation'][_0x5653('0x3c')](_0x41d4e4),_0x4f60c8=_0x291290&&(null===(_0x314673=this['_annotations'])||void 0x0===_0x314673?void 0x0:_0x314673[_0x5653('0x3c')](this[_0x5653('0x29')][_0x5653('0x21')](_0x291290)+0x1));return _0x4f60c8&&this[_0x5653('0x39')](_0x4f60c8)||null;}['_alignBeforeItem'](_0x3517cb,_0x39e42d){_0x3517cb['updateHeight']();const _0x33b6de=H(_0x39e42d[_0x5653('0x41')]+this[_0x5653('0x19')],_0x3517cb[_0x5653('0x14')]);return!!_0x33b6de&&(this[_0x5653('0x18')](_0x39e42d,_0x39e42d[_0x5653('0x14')]-_0x33b6de),!0x0);}[_0x5653('0x0')](_0x38734b,_0x10d6a5){_0x38734b[_0x5653('0xc')]();const _0x40d404=H(_0x38734b[_0x5653('0x41')]+this[_0x5653('0x19')],_0x10d6a5[_0x5653('0x14')]);return!!_0x40d404&&(this[_0x5653('0x18')](_0x10d6a5,_0x10d6a5[_0x5653('0x14')]+_0x40d404,!0x1),!0x0);}['_alignToTargetRect'](_0x2c12c7){const _0x478aff=this[_0x5653('0xf')]['get'](_0x2c12c7);if(!_0x478aff||!_0x478aff['target']||!_0x478aff[_0x5653('0x32')])return;const _0xd31140=this[_0x5653('0x16')](_0x478aff,_0x478aff[_0x5653('0x32')]);this[_0x5653('0x18')](_0x2c12c7,_0xd31140);}[_0x5653('0x16')](_0x596afd,_0x7e129a){if(null===_0x7e129a)return 0x0;if(_0x596afd[_0x5653('0x33')]instanceof _0x37bdda)return _0x7e129a[_0x5653('0x14')];{const _0x40f1d8=new _0x37bdda(this[_0x5653('0x26')]['element'])[_0x5653('0x14')];return _0x7e129a['top']-_0x40f1d8;}}[_0x5653('0x18')](_0x3e8553,_0x328ade,_0x1ad4da=this[_0x5653('0x46')][_0x5653('0x7')]['get'](_0x5653('0x20'))){_0x1ad4da&&(_0x328ade=Math['max'](_0x328ade,this[_0x5653('0x6')](_0x3e8553))),_0x3e8553[_0x5653('0x14')]=_0x328ade;}[_0x5653('0x6')](_0x1d9116){let _0x5f5bbb=this[_0x5653('0x1b')](_0x1d9116),_0x5c865d=0x0;for(;_0x5f5bbb;)_0x5f5bbb['updateHeight'](),_0x5c865d+=this[_0x5653('0x19')]+_0x5f5bbb[_0x5653('0x37')],_0x5f5bbb=this[_0x5653('0x1b')](_0x5f5bbb);return _0x5c865d;}}function H(_0x4b4523,_0x42bca3){return Math['max'](_0x4b4523-_0x42bca3,0x0);}function y(_0x5e1471){return null!==_0x5e1471&&_0x5653('0x30')==typeof _0x5e1471&&0x1===_0x5e1471[_0x5653('0x2')];}
23
+ const _0x2eac=['nodeType','context','sidebar.container','content','push','length','stopListening','_getItemAfter','isActive','remove','_detachFromContainer','_alignBeforeItem','_destroySidebarItemView','_annotations','_alignForBottomChange','isAnimationDisabled','refresh','_targetTop','_getTargetTop','locale','delete','container','_alignAfterItem','appendChild','class','_setItemTop','_recalculateBuffer','target','setContainer','_spaceBetweenItems','change:_lastItem','_getMaxAvailableTop','define','change:targetRect','sidebar-attachtocontainer-missing-container','view','init','top','add','_updateLastItem','clear','_createSidebarView','_recalculate','_lastItem','list','updateHeight','listenTo','_activeAnnotation','addAnnotation','_alignToTargetRect','targetRect','Sidebar','rearrange','_annotationToSidebarItemView','bottom','object','_alignForTopChange','getSidebarItemView','element','last','config','unbind','pluginName','destroy','height','minHeight','_sidebarItemViewToAnnotation','set','_getItemBefore','get','max','sidebar.preventScrollOutOfView'];(function(_0x16d2ae,_0x2eac7a){const _0x3b491c=function(_0x465226){while(--_0x465226){_0x16d2ae['push'](_0x16d2ae['shift']());}};_0x3b491c(++_0x2eac7a);}(_0x2eac,0xc3));const _0x3b49=function(_0x16d2ae,_0x2eac7a){_0x16d2ae=_0x16d2ae-0x0;let _0x3b491c=_0x2eac[_0x16d2ae];return _0x3b491c;};import{ContextPlugin as _0x4319b6}from'ckeditor5/src/core';import{Rect as _0x4f4e9e,CKEditorError as _0x45cf9c}from'ckeditor5/src/utils';import _0x1edbea from'./view/sidebarview';import _0x444934 from'./view/sidebaritemview';export default class z extends _0x4319b6{static get[_0x3b49('0xb')](){return _0x3b49('0x0');}constructor(_0x4eaaa0){super(_0x4eaaa0),this[_0x3b49('0x10')](_0x3b49('0x40'),void 0x0),this[_0x3b49('0x38')]=this[_0x3b49('0x3e')](),this[_0x3b49('0x10')](_0x3b49('0x2a'),null),this[_0x3b49('0x32')]=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this[_0x3b49('0x2')]=new Map(),this[_0x3b49('0x16')][_0x3b49('0x9')][_0x3b49('0x35')]('sidebar.preventScrollOutOfView',!0x1),this[_0x3b49('0x22')]=null,this[_0x3b49('0x44')]=null,this[_0x3b49('0x2f')]=[];}[_0x3b49('0x39')](){const _0x20ceab=this[_0x3b49('0x16')]['config']['get'](_0x3b49('0x17'));_0x20ceab&&this[_0x3b49('0x31')](_0x20ceab);}['setContainer'](_0x2679ff){if(!y(_0x2679ff))throw new _0x45cf9c('sidebar-setcontainer-invalid-element');this[_0x3b49('0x2a')]=_0x2679ff;}['_attachToContainer']({viewClass:_0x50047c='',spaceBetweenItems:_0x38dab1=0x19}={}){if(!y(this['container']))throw new _0x45cf9c(_0x3b49('0x37'),this);this['container'][_0x3b49('0x2c')](this[_0x3b49('0x38')][_0x3b49('0x7')]),this[_0x3b49('0x38')][_0x3b49('0x2d')]=_0x50047c,this['_spaceBetweenItems']=_0x38dab1;}[_0x3b49('0x1')]({removedAnnotation:_0x2f5048,previousAnnotation:_0xed7f19,nextAnnotation:_0x23c9ac}){const _0x3a9dde=this['getSidebarItemView'](_0x2f5048);this[_0x3b49('0x38')][_0x3b49('0x41')][_0x3b49('0x1e')](_0x3a9dde),this[_0x3b49('0x21')](_0x2f5048),_0xed7f19&&this['_alignToTargetRect'](this[_0x3b49('0x6')](_0xed7f19)),_0x23c9ac&&this[_0x3b49('0x46')](this['getSidebarItemView'](_0x23c9ac)),this[_0x3b49('0x3c')]();}[_0x3b49('0x25')]({blurredAnnotation:_0x14e0ef,activatedAnnotation:_0x34ad47,disableAnimationOnActivatedAnnotation:_0x3acf88}){if(this[_0x3b49('0x44')]=_0x34ad47,_0x14e0ef){_0x14e0ef[_0x3b49('0x1d')]=!0x1;const _0x517403=this[_0x3b49('0x6')](_0x14e0ef);_0x517403&&_0x3acf88&&(_0x517403[_0x3b49('0x24')]=!0x1);}if(_0x34ad47){const _0x3a03d2=this[_0x3b49('0x6')](_0x34ad47);_0x3a03d2&&(_0x34ad47[_0x3b49('0x1d')]=!0x0,_0x3acf88&&(_0x3a03d2[_0x3b49('0x24')]=!0x0,_0x3a03d2[_0x3b49('0x3a')]+=0x1),this[_0x3b49('0x46')](_0x3a03d2));}}[_0x3b49('0x1f')](_0x522488){if(this[_0x3b49('0x38')][_0x3b49('0x7')][_0x3b49('0x1e')](),_0x522488)for(const _0x4c0b8c of _0x522488)this[_0x3b49('0x21')](_0x4c0b8c);this['view'][_0x3b49('0x41')][_0x3b49('0x3d')](),this['view'][_0x3b49('0x2d')]='',this['_lastItem']=null;}[_0x3b49('0x45')](_0xa2fafb,_0x451d41){_0x451d41||(_0x451d41=_0xa2fafb['view']);const _0x37edbd=new _0x444934(this[_0x3b49('0x16')][_0x3b49('0x28')]);this[_0x3b49('0xf')]['set'](_0x37edbd,_0xa2fafb),this['_annotationToSidebarItemView'][_0x3b49('0x10')](_0xa2fafb,_0x37edbd),_0x37edbd[_0x3b49('0x18')][_0x3b49('0x3b')](_0x451d41),this[_0x3b49('0x43')](_0xa2fafb['view'],_0x3b49('0x36'),(_0x5f3101,_0x3380b2,_0x328afa)=>{const _0x1fa70f=this['_getTargetTop'](_0xa2fafb,_0x328afa);_0x37edbd['_targetTop']!=_0x1fa70f&&(_0x37edbd[_0x3b49('0x26')]=_0x1fa70f,this['_setItemTop'](_0x37edbd,_0x1fa70f));}),this['listenTo'](_0x37edbd,'change:top',()=>{this['_recalculate'](_0x37edbd,'top');}),this[_0x3b49('0x43')](_0x37edbd,'change:bottom',()=>{this[_0x3b49('0x3f')](_0x37edbd,_0x3b49('0x3'));}),this[_0x3b49('0x46')](_0x37edbd);const _0x35c093=this[_0x3b49('0x11')](_0x37edbd);if(_0x35c093)this[_0x3b49('0x2b')](_0x35c093,_0x37edbd)||this[_0x3b49('0x46')](_0x37edbd);else this[_0x3b49('0x46')](_0x37edbd);return this['_updateLastItem'](),this['view']['list'][_0x3b49('0x3b')](_0x37edbd),_0x37edbd;}[_0x3b49('0x5')](_0x53fe5e){if(!_0x53fe5e[_0x3b49('0x18')][_0x3b49('0x1a')])return;const _0x449ba6=this[_0x3b49('0x11')](_0x53fe5e);if(!_0x449ba6)return;const _0x250f2e=this[_0x3b49('0xf')][_0x3b49('0x12')](_0x449ba6),_0x4be36c=this[_0x3b49('0x44')];_0x4be36c&&_0x4be36c===_0x250f2e?this[_0x3b49('0x2b')](_0x449ba6,_0x53fe5e):this[_0x3b49('0x20')](_0x53fe5e,_0x449ba6);}[_0x3b49('0x23')](_0x50f455){if(!_0x50f455[_0x3b49('0x18')][_0x3b49('0x1a')])return;const _0x230dc0=this[_0x3b49('0x1c')](_0x50f455);if(!_0x230dc0)return;const _0x2e5b61=this[_0x3b49('0xf')][_0x3b49('0x12')](_0x230dc0),_0x288155=this['context'][_0x3b49('0x9')][_0x3b49('0x12')]('sidebar.preventScrollOutOfView'),_0x1425a0=this['_activeAnnotation'];_0x1425a0&&_0x1425a0===_0x2e5b61&&_0x288155?(this['_alignBeforeItem'](_0x230dc0,_0x50f455),this[_0x3b49('0x2b')](_0x50f455,_0x230dc0)):_0x1425a0&&_0x1425a0===_0x2e5b61?this[_0x3b49('0x20')](_0x230dc0,_0x50f455):this['_alignAfterItem'](_0x50f455,_0x230dc0);}[_0x3b49('0x3f')](_0x4b74d0,_0x3fcb99){0x0===this[_0x3b49('0x2f')][_0x3b49('0x1a')]&&setTimeout(()=>{for(const {sidebarItemView:_0x1eece9,changedProp:_0x481add}of this[_0x3b49('0x2f')])_0x3b49('0x3a')===_0x481add?this[_0x3b49('0x5')](_0x1eece9):this[_0x3b49('0x23')](_0x1eece9);this[_0x3b49('0x2f')]=[];},0xa),this[_0x3b49('0x2f')][_0x3b49('0x19')]({'sidebarItemView':_0x4b74d0,'changedProp':_0x3fcb99});}[_0x3b49('0x6')](_0x40ea34){return this[_0x3b49('0x2')][_0x3b49('0x12')](_0x40ea34);}[_0x3b49('0xc')](){this[_0x3b49('0x1b')](),this[_0x3b49('0x38')][_0x3b49('0xc')]();}[_0x3b49('0x21')](_0x2d9d5d){const _0x46653b=this[_0x3b49('0x6')](_0x2d9d5d);this[_0x3b49('0x1b')](_0x46653b),this[_0x3b49('0x1b')](_0x2d9d5d[_0x3b49('0x38')]),_0x46653b[_0x3b49('0xc')](),this[_0x3b49('0x2')]['delete'](_0x2d9d5d),this[_0x3b49('0xf')][_0x3b49('0x29')](_0x46653b);}[_0x3b49('0x3e')](){const _0x2a72ce=new _0x1edbea(this[_0x3b49('0x16')][_0x3b49('0x28')]);return _0x2a72ce['render'](),this['on'](_0x3b49('0x33'),(_0x1e89ee,_0x294620,_0x33b0bd,_0x248e65)=>{_0x248e65&&_0x2a72ce[_0x3b49('0xa')](_0x3b49('0xe')),_0x33b0bd?_0x2a72ce['bind'](_0x3b49('0xe'))['to'](_0x33b0bd,_0x3b49('0x3')):_0x2a72ce[_0x3b49('0xe')]=null;}),_0x2a72ce;}[_0x3b49('0x3c')](){var _0x3a6fbc;this[_0x3b49('0x40')]=(null===(_0x3a6fbc=this['_annotations'])||void 0x0===_0x3a6fbc?void 0x0:_0x3a6fbc[_0x3b49('0x8')])?this[_0x3b49('0x6')](this[_0x3b49('0x22')][_0x3b49('0x8')]):null;}[_0x3b49('0x11')](_0x486e45){var _0x310717;const _0x271f79=this[_0x3b49('0xf')][_0x3b49('0x12')](_0x486e45),_0x3eb2a3=_0x271f79&&(null===(_0x310717=this[_0x3b49('0x22')])||void 0x0===_0x310717?void 0x0:_0x310717[_0x3b49('0x12')](this[_0x3b49('0x22')]['getIndex'](_0x271f79)-0x1));return _0x3eb2a3&&this['getSidebarItemView'](_0x3eb2a3)||null;}[_0x3b49('0x1c')](_0x381cf6){var _0x2cc05e;const _0x14b107=this[_0x3b49('0xf')][_0x3b49('0x12')](_0x381cf6),_0x4cf5d5=_0x14b107&&(null===(_0x2cc05e=this[_0x3b49('0x22')])||void 0x0===_0x2cc05e?void 0x0:_0x2cc05e[_0x3b49('0x12')](this[_0x3b49('0x22')]['getIndex'](_0x14b107)+0x1));return _0x4cf5d5&&this[_0x3b49('0x6')](_0x4cf5d5)||null;}[_0x3b49('0x20')](_0xa5e2f6,_0x1d32f4){_0xa5e2f6[_0x3b49('0x42')]();const _0x1692a2=H(_0x1d32f4[_0x3b49('0x3')]+this[_0x3b49('0x32')],_0xa5e2f6[_0x3b49('0x3a')]);return!!_0x1692a2&&(this['_setItemTop'](_0x1d32f4,_0x1d32f4[_0x3b49('0x3a')]-_0x1692a2),!0x0);}[_0x3b49('0x2b')](_0x5997cf,_0x618e67){_0x5997cf[_0x3b49('0x42')]();const _0x4cc7e3=H(_0x5997cf[_0x3b49('0x3')]+this[_0x3b49('0x32')],_0x618e67[_0x3b49('0x3a')]);return!!_0x4cc7e3&&(this[_0x3b49('0x2e')](_0x618e67,_0x618e67['top']+_0x4cc7e3,!0x1),!0x0);}['_alignToTargetRect'](_0xb3eb8a){const _0x5b6769=this['_sidebarItemViewToAnnotation'][_0x3b49('0x12')](_0xb3eb8a);if(!_0x5b6769||!_0x5b6769[_0x3b49('0x30')]||!_0x5b6769['targetRect'])return;const _0x3fe599=this[_0x3b49('0x27')](_0x5b6769,_0x5b6769[_0x3b49('0x47')]);this[_0x3b49('0x2e')](_0xb3eb8a,_0x3fe599);}[_0x3b49('0x27')](_0x5886c5,_0x3467f7){if(null===_0x3467f7)return 0x0;if(_0x5886c5['target']instanceof _0x4f4e9e)return _0x3467f7[_0x3b49('0x3a')];{const _0x42878e=new _0x4f4e9e(this['view'][_0x3b49('0x7')])['top'];return _0x3467f7[_0x3b49('0x3a')]-_0x42878e;}}[_0x3b49('0x2e')](_0x4ddd85,_0x1d7bdd,_0x483d33=this['context'][_0x3b49('0x9')][_0x3b49('0x12')](_0x3b49('0x14'))){_0x483d33&&(_0x1d7bdd=Math['max'](_0x1d7bdd,this[_0x3b49('0x34')](_0x4ddd85))),_0x4ddd85[_0x3b49('0x3a')]=_0x1d7bdd;}['_getMaxAvailableTop'](_0x5c6711){let _0x49a1c9=this[_0x3b49('0x11')](_0x5c6711),_0x5c899e=0x0;for(;_0x49a1c9;)_0x49a1c9[_0x3b49('0x42')](),_0x5c899e+=this['_spaceBetweenItems']+_0x49a1c9[_0x3b49('0xd')],_0x49a1c9=this[_0x3b49('0x11')](_0x49a1c9);return _0x5c899e;}}function H(_0x5a056d,_0x42a3c4){return Math[_0x3b49('0x13')](_0x5a056d-_0x42a3c4,0x0);}function y(_0x2f136d){return null!==_0x2f136d&&_0x3b49('0x4')==typeof _0x2f136d&&0x1===_0x2f136d[_0x3b49('0x15')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2642=['set','ck-annotation-counter__badge--edit-mode','bind','counterView','annotationType','...','_badge','ck-annotation-counter__badge--','bindTemplate','setTemplate','isDirty','number','add','extendTemplate','children','icon','ck-annotation-counter__badge'];(function(_0x42fb41,_0x2642bc){const _0x15d02b=function(_0x5054ce){while(--_0x5054ce){_0x42fb41['push'](_0x42fb41['shift']());}};_0x15d02b(++_0x2642bc);}(_0x2642,0x17d));const _0x15d0=function(_0x42fb41,_0x2642bc){_0x42fb41=_0x42fb41-0x0;let _0x15d02b=_0x2642[_0x42fb41];return _0x15d02b;};import{ButtonView as _0xbfb91d,View as _0x5a0b5d}from'ckeditor5/src/ui';import _0x43f961 from'../../../theme/icons/add-comment.svg';export default class D extends _0xbfb91d{constructor(_0x259078){super(_0x259078);const _0x4e0605=this[_0x15d0('0x1')];this[_0x15d0('0xa')](_0x15d0('0x3'),!0x1),this[_0x15d0('0xa')](_0x15d0('0x4'),0x0),this[_0x15d0('0xc')](_0x15d0('0x10'))['to'](this,'isDirty',this,_0x15d0('0x4'),(_0x337aa2,_0x5360a8)=>_0x337aa2?_0x15d0('0xf'):_0x5360a8['toString']()),this[_0x15d0('0xa')](_0x15d0('0xe'),''),this[_0x15d0('0x8')]=_0x43f961,this[_0x15d0('0x6')]({'attributes':{'class':['ck-annotation-counter']}}),this[_0x15d0('0xd')]=new _0x5a0b5d(),this[_0x15d0('0xd')][_0x15d0('0x2')]({'tag':'span','attributes':{'class':[_0x15d0('0x9'),_0x4e0605['to'](_0x15d0('0xe'),_0x23fbf3=>_0x15d0('0x0')+_0x23fbf3),_0x4e0605['if'](_0x15d0('0x3'),_0x15d0('0xb'))]},'children':[{'text':_0x4e0605['to'](_0x15d0('0x10'))}]}),this[_0x15d0('0x7')][_0x15d0('0x5')](this[_0x15d0('0xd')]);}}
23
+ const _0x7ac5=['ck-annotation-counter','bind','counterView','icon','number','add','ck-annotation-counter__badge','_badge','setTemplate','bindTemplate','annotationType','isDirty','span','extendTemplate','ck-annotation-counter__badge--edit-mode','set','children','...'];(function(_0x2d861c,_0x7ac591){const _0x40bb2d=function(_0x2a5425){while(--_0x2a5425){_0x2d861c['push'](_0x2d861c['shift']());}};_0x40bb2d(++_0x7ac591);}(_0x7ac5,0x123));const _0x40bb=function(_0x2d861c,_0x7ac591){_0x2d861c=_0x2d861c-0x0;let _0x40bb2d=_0x7ac5[_0x2d861c];return _0x40bb2d;};import{ButtonView as _0x4ee2dc,View as _0x1f25dc}from'ckeditor5/src/ui';import _0x4b08dc from'../../../theme/icons/add-comment.svg';export default class D extends _0x4ee2dc{constructor(_0x49ba8b){super(_0x49ba8b);const _0x313bad=this[_0x40bb('0x6')];this['set']('isDirty',!0x1),this[_0x40bb('0xc')](_0x40bb('0x1'),0x0),this[_0x40bb('0x10')](_0x40bb('0x4'))['to'](this,_0x40bb('0x8'),this,_0x40bb('0x1'),(_0x22a589,_0x1705a7)=>_0x22a589?_0x40bb('0xe'):_0x1705a7['toString']()),this[_0x40bb('0xc')](_0x40bb('0x7'),''),this[_0x40bb('0x0')]=_0x4b08dc,this[_0x40bb('0xa')]({'attributes':{'class':[_0x40bb('0xf')]}}),this[_0x40bb('0x11')]=new _0x1f25dc(),this[_0x40bb('0x11')][_0x40bb('0x5')]({'tag':_0x40bb('0x9'),'attributes':{'class':[_0x40bb('0x3'),_0x313bad['to'](_0x40bb('0x7'),_0x143816=>'ck-annotation-counter__badge--'+_0x143816),_0x313bad['if'](_0x40bb('0x8'),_0x40bb('0xb'))]},'children':[{'text':_0x313bad['to'](_0x40bb('0x4'))}]}),this[_0x40bb('0xd')][_0x40bb('0x2')](this[_0x40bb('0x11')]);}}