@ckeditor/ckeditor5-comments 0.0.0-nightly-20231221.0 → 0.0.0-nightly-20231223.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/build/comments.js +1 -1
  2. package/package.json +3 -3
  3. package/src/annotations/annotation.js +1 -1
  4. package/src/annotations/annotationcollection.js +1 -1
  5. package/src/annotations/annotations.js +1 -1
  6. package/src/annotations/annotationsuis.js +1 -1
  7. package/src/annotations/editorannotations.js +1 -1
  8. package/src/annotations/inlineannotations.js +1 -1
  9. package/src/annotations/narrowsidebar.js +1 -1
  10. package/src/annotations/sidebar.js +1 -1
  11. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  12. package/src/annotations/view/annotationview.js +1 -1
  13. package/src/annotations/view/sidebaritemview.js +1 -1
  14. package/src/annotations/view/sidebarview.js +1 -1
  15. package/src/annotations/widesidebar.js +1 -1
  16. package/src/comments/addcommentthreadcommand.js +1 -1
  17. package/src/comments/commentsarchive.js +1 -1
  18. package/src/comments/commentsarchiveui.js +1 -1
  19. package/src/comments/commentsediting.js +1 -1
  20. package/src/comments/commentsrepository.js +1 -1
  21. package/src/comments/commentsui.js +1 -1
  22. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  23. package/src/comments/integrations/importword.js +1 -1
  24. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  25. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  26. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  27. package/src/comments/ui/commentthreadcontroller.js +1 -1
  28. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  29. package/src/comments/ui/view/basecommentview.js +1 -1
  30. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  31. package/src/comments/ui/view/commentcontentview.js +1 -1
  32. package/src/comments/ui/view/commentinputview.js +1 -1
  33. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  34. package/src/comments/ui/view/commentslistview.js +1 -1
  35. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  36. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  37. package/src/comments/ui/view/commentthreadview.js +1 -1
  38. package/src/comments/ui/view/commentview.js +1 -1
  39. package/src/comments.js +1 -1
  40. package/src/commentsonly.js +1 -1
  41. package/src/utils/common-translations.js +1 -1
  42. package/src/utils/createmutationobserver.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-comments",
3
- "version": "0.0.0-nightly-20231221.0",
3
+ "version": "0.0.0-nightly-20231223.0",
4
4
  "description": "Collaborative comments feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -44,8 +44,8 @@
44
44
  "CHANGELOG.md"
45
45
  ],
46
46
  "dependencies": {
47
- "ckeditor5": "0.0.0-nightly-20231221.0",
48
- "ckeditor5-collaboration": "0.0.0-nightly-20231221.0",
47
+ "ckeditor5": "0.0.0-nightly-20231223.0",
48
+ "ckeditor5-collaboration": "0.0.0-nightly-20231223.0",
49
49
  "lodash-es": "4.17.21"
50
50
  },
51
51
  "types": "src/index.d.ts",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4a63=['type','isVisible','annotation-invalid-target','clear','_id','_assertCorrectTarget','focusTracker','length','item','_type','mainView','focusableElements','nodeType','object','refreshVisibility','destroy','targetRect','_getNormalizedTarget','set','function','isActive','_target','element','view','filter','stopListening','offsetParent','every','getClientRects','target','innerView','updateTargetRect','add','remove'];(function(_0x2f4a25,_0x4a63e5){const _0x15cc8d=function(_0x728740){while(--_0x728740){_0x2f4a25['push'](_0x2f4a25['shift']());}};_0x15cc8d(++_0x4a63e5);}(_0x4a63,0x12a));const _0x15cc=function(_0x2f4a25,_0x4a63e5){_0x2f4a25=_0x2f4a25-0x0;let _0x15cc8d=_0x4a63[_0x2f4a25];return _0x15cc8d;};import{CKEditorError as _0x51804c,Rect as _0x2a139a,Collection as _0x15317e,ObservableMixin as _0x5b7b07}from'ckeditor5/src/utils.js';export default class d extends _0x5b7b07(){constructor({view:_0xf404de,target:_0x45df9e,type:_0x46c044,isVisible:_0x199f72=!0x0}){super(),this[_0x15cc('0x1f')]=_0xf404de,this[_0x15cc('0x1f')]['element']||this[_0x15cc('0x1f')]['render'](),this[_0x15cc('0x11')]=_0x46c044,this['_target']=_0x45df9e,d[_0x15cc('0xd')](this[_0x15cc('0x19')]()),this[_0x15cc('0x13')]=new _0x15317e([this[_0x15cc('0x1f')][_0x15cc('0x1e')]],{'idProperty':_0x15cc('0xc')}),this[_0x15cc('0x13')]['on'](_0x15cc('0x6'),(_0x45b026,_0x1dc7e4)=>{this['view'][_0x15cc('0xe')][_0x15cc('0x6')](_0x1dc7e4);}),this[_0x15cc('0x13')]['on']('remove',(_0x1111ba,_0x5d382f)=>{this[_0x15cc('0x1f')][_0x15cc('0xe')][_0x15cc('0x7')](_0x5d382f);}),this[_0x15cc('0x1a')](_0x15cc('0x9'),_0x199f72);}get[_0x15cc('0x8')](){return _0x15cc('0x1b')==typeof this[_0x15cc('0x11')]?this[_0x15cc('0x11')]():this[_0x15cc('0x11')];}get[_0x15cc('0x4')](){return this['view'][_0x15cc('0x12')];}get[_0x15cc('0x3')](){const _0x38490e=this[_0x15cc('0x19')]();return d[_0x15cc('0xd')](_0x38490e),_0x38490e;}get[_0x15cc('0x18')](){const _0x59a3fc=this[_0x15cc('0x3')];if(null===_0x59a3fc)return null;if(_0x59a3fc instanceof _0x2a139a)return _0x59a3fc;const _0x2e6cf4=_0x59a3fc[_0x15cc('0x20')](_0x5a20e5=>function(_0x419dc5){const _0x3a9cb0=_0x419dc5[_0x15cc('0x0')];if(_0x3a9cb0)return!0x0;const _0x505b07=_0x419dc5['getClientRects']()[_0x15cc('0x10')](0x0);return!!_0x505b07;}(_0x5a20e5));return 0x0===_0x2e6cf4[_0x15cc('0xf')]?null:new _0x2a139a(_0x2e6cf4[0x0][_0x15cc('0x2')]()['item'](0x0));}get[_0x15cc('0x1c')](){return this[_0x15cc('0x1f')][_0x15cc('0x1c')];}set['isActive'](_0xce3d02){this[_0x15cc('0x1f')]['isActive']=_0xce3d02,this[_0x15cc('0x1f')][_0x15cc('0x12')][_0x15cc('0x1c')]=_0xce3d02;}[_0x15cc('0x5')](){this[_0x15cc('0x1f')][_0x15cc('0x18')]=this[_0x15cc('0x18')];}[_0x15cc('0x17')](){this['focusableElements'][_0x15cc('0x21')](),this[_0x15cc('0x13')][_0x15cc('0xb')](),this[_0x15cc('0x21')]();}[_0x15cc('0x16')](){this[_0x15cc('0x9')]=!!this[_0x15cc('0x18')];}static[_0x15cc('0xd')](_0x4af42d){if(!(null===_0x4af42d||_0x4af42d instanceof _0x2a139a||Array['isArray'](_0x4af42d)&&_0x4af42d[_0x15cc('0x1')](_0x4d6af3=>y(_0x4d6af3))))throw new _0x51804c(_0x15cc('0xa'),null,{'target':_0x4af42d});}['_getNormalizedTarget'](){const _0x2fa44c=_0x15cc('0x1b')==typeof this[_0x15cc('0x1d')]?this['_target']():this[_0x15cc('0x1d')];return y(_0x2fa44c)?[_0x2fa44c]:_0x2fa44c;}}function y(_0xb41051){return null!==_0xb41051&&_0x15cc('0x15')==typeof _0xb41051&&_0x15cc('0x14')in _0xb41051&&0x1===_0xb41051[_0x15cc('0x14')];}
23
+ const _0x5e3e=['getClientRects','item','focusTracker','object','_getNormalizedTarget','isActive','view','refreshVisibility','_type','innerView','targetRect','_id','remove','element','set','function','filter','isVisible','render','mainView','annotation-invalid-target','focusableElements','_assertCorrectTarget','nodeType','type','add','_target','stopListening','length'];(function(_0x392d27,_0x5e3e1b){const _0x5a427f=function(_0x2e0b46){while(--_0x2e0b46){_0x392d27['push'](_0x392d27['shift']());}};_0x5a427f(++_0x5e3e1b);}(_0x5e3e,0x154));const _0x5a42=function(_0x392d27,_0x5e3e1b){_0x392d27=_0x392d27-0x0;let _0x5a427f=_0x5e3e[_0x392d27];return _0x5a427f;};import{CKEditorError as _0x4bf185,Rect as _0x174a01,Collection as _0x927683,ObservableMixin as _0xa05887}from'ckeditor5/src/utils.js';export default class d extends _0xa05887(){constructor({view:_0x3523b7,target:_0x307271,type:_0x589390,isVisible:_0x54d52a=!0x0}){super(),this[_0x5a42('0xe')]=_0x3523b7,this[_0x5a42('0xe')][_0x5a42('0x15')]||this[_0x5a42('0xe')][_0x5a42('0x1a')](),this[_0x5a42('0x10')]=_0x589390,this[_0x5a42('0x5')]=_0x307271,d[_0x5a42('0x1')](this[_0x5a42('0xc')]()),this[_0x5a42('0x0')]=new _0x927683([this[_0x5a42('0xe')][_0x5a42('0x15')]],{'idProperty':_0x5a42('0x13')}),this[_0x5a42('0x0')]['on']('add',(_0x24fd09,_0x5785ee)=>{this['view'][_0x5a42('0xa')][_0x5a42('0x4')](_0x5785ee);}),this[_0x5a42('0x0')]['on'](_0x5a42('0x14'),(_0x2eb4b7,_0x542b4c)=>{this[_0x5a42('0xe')]['focusTracker'][_0x5a42('0x14')](_0x542b4c);}),this[_0x5a42('0x16')](_0x5a42('0x19'),_0x54d52a);}get[_0x5a42('0x3')](){return _0x5a42('0x17')==typeof this[_0x5a42('0x10')]?this['_type']():this[_0x5a42('0x10')];}get[_0x5a42('0x11')](){return this[_0x5a42('0xe')][_0x5a42('0x1b')];}get['target'](){const _0x3a348b=this['_getNormalizedTarget']();return d[_0x5a42('0x1')](_0x3a348b),_0x3a348b;}get[_0x5a42('0x12')](){const _0x5ebbd7=this['target'];if(null===_0x5ebbd7)return null;if(_0x5ebbd7 instanceof _0x174a01)return _0x5ebbd7;const _0x502804=_0x5ebbd7[_0x5a42('0x18')](_0x3ccedf=>function(_0x6fdfce){const _0x696673=_0x6fdfce['offsetParent'];if(_0x696673)return!0x0;const _0x2b6a55=_0x6fdfce[_0x5a42('0x8')]()[_0x5a42('0x9')](0x0);return!!_0x2b6a55;}(_0x3ccedf));return 0x0===_0x502804[_0x5a42('0x7')]?null:new _0x174a01(_0x502804[0x0][_0x5a42('0x8')]()[_0x5a42('0x9')](0x0));}get['isActive'](){return this[_0x5a42('0xe')]['isActive'];}set[_0x5a42('0xd')](_0x18a5d4){this[_0x5a42('0xe')]['isActive']=_0x18a5d4,this['view'][_0x5a42('0x1b')]['isActive']=_0x18a5d4;}['updateTargetRect'](){this[_0x5a42('0xe')][_0x5a42('0x12')]=this[_0x5a42('0x12')];}['destroy'](){this[_0x5a42('0x0')][_0x5a42('0x6')](),this[_0x5a42('0x0')]['clear'](),this['stopListening']();}[_0x5a42('0xf')](){this[_0x5a42('0x19')]=!!this[_0x5a42('0x12')];}static[_0x5a42('0x1')](_0x53d71e){if(!(null===_0x53d71e||_0x53d71e instanceof _0x174a01||Array['isArray'](_0x53d71e)&&_0x53d71e['every'](_0x52d57b=>y(_0x52d57b))))throw new _0x4bf185(_0x5a42('0x1c'),null,{'target':_0x53d71e});}['_getNormalizedTarget'](){const _0x2ead45=_0x5a42('0x17')==typeof this['_target']?this[_0x5a42('0x5')]():this['_target'];return y(_0x2ead45)?[_0x2ead45]:_0x2ead45;}}function y(_0x231d88){return null!==_0x231d88&&_0x5a42('0xb')==typeof _0x231d88&&'nodeType'in _0x231d88&&0x1===_0x231d88[_0x5a42('0x2')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x25c7=['focusableElements','set','getByView','_viewToAnnotation','from','has','destroy','delete','annotationcollection-duplicated-item','refreshPositioning','_sort','focusTracker','innerView','focus','_focusTracker','left','top','length','isFocused','get','remove','getByInnerView','updateTargetRect','stopListening','getIndex','listenTo','sort','clear','blur','view','fire','_getOrderInContent','add','_innerViewToAnnotation','change:isFocused','targetRect'];(function(_0x568e2e,_0x25c7e8){const _0x5e081c=function(_0x2a17a2){while(--_0x2a17a2){_0x568e2e['push'](_0x568e2e['shift']());}};_0x5e081c(++_0x25c7e8);}(_0x25c7,0x1cf));const _0x5e08=function(_0x568e2e,_0x25c7e8){_0x568e2e=_0x568e2e-0x0;let _0x5e081c=_0x25c7[_0x568e2e];return _0x5e081c;};import{CKEditorError as _0x2c0b1d,Collection as _0x20731d,FocusTracker as _0x4dfa92}from'ckeditor5/src/utils.js';export default class x extends _0x20731d{constructor(_0x108eda=[]){super(),this[_0x5e08('0x2')]=new Map(),this[_0x5e08('0x8')]=new Map(),this[_0x5e08('0x13')]=new _0x4dfa92(),this[_0x5e08('0x13')]['on']('change:isFocused',(_0x3553a6,_0x47dd24,_0x25d10e)=>{_0x25d10e||this[_0x5e08('0x23')](_0x5e08('0x21'));});for(const _0x59330f of _0x108eda)this['add'](_0x59330f);}get[_0x5e08('0x17')](){return this[_0x5e08('0x13')][_0x5e08('0x17')];}[_0x5e08('0x1')](_0xc59806){if(this[_0x5e08('0xa')](_0xc59806))throw new _0x2c0b1d(_0x5e08('0xd'),null);this['_innerViewToAnnotation'][_0x5e08('0x6')](_0xc59806[_0x5e08('0x11')],_0xc59806),this[_0x5e08('0x8')][_0x5e08('0x6')](_0xc59806[_0x5e08('0x22')],_0xc59806);for(const _0x49549e of _0xc59806['focusableElements'])this[_0x5e08('0x13')][_0x5e08('0x1')](_0x49549e);this[_0x5e08('0x1e')](_0xc59806[_0x5e08('0x5')],'add',(_0x7f760a,_0x2fc950)=>{this['_focusTracker'][_0x5e08('0x1')](_0x2fc950);}),this[_0x5e08('0x1e')](_0xc59806[_0x5e08('0x5')],'remove',(_0x1fae2a,_0x22cf01)=>{this[_0x5e08('0x13')][_0x5e08('0x19')](_0x22cf01);}),this[_0x5e08('0x1e')](_0xc59806[_0x5e08('0x22')][_0x5e08('0x10')],_0x5e08('0x3'),(_0x3682b2,_0x2c581f,_0x385fd7)=>{_0x385fd7&&this[_0x5e08('0x23')](_0x5e08('0x12'),_0xc59806);}),_0xc59806[_0x5e08('0x1b')]();const _0xa0b656=this[_0x5e08('0x0')](_0xc59806[_0x5e08('0x22')]['targetRect']);return super[_0x5e08('0x1')](_0xc59806,_0xa0b656);}[_0x5e08('0x19')](_0xa60f89){if(!this[_0x5e08('0xa')](_0xa60f89))throw new _0x2c0b1d('annotationcollection-not-existing-item',null);this[_0x5e08('0x1c')](_0xa60f89[_0x5e08('0x22')]['focusTracker']),this[_0x5e08('0x1c')](_0xa60f89[_0x5e08('0x5')]);for(const _0x443746 of _0xa60f89[_0x5e08('0x5')])this['_focusTracker'][_0x5e08('0x19')](_0x443746);return this[_0x5e08('0x8')]['delete'](_0xa60f89[_0x5e08('0x22')]),this[_0x5e08('0x2')][_0x5e08('0xc')](_0xa60f89[_0x5e08('0x11')]),super[_0x5e08('0x19')](_0xa60f89);}[_0x5e08('0x1a')](_0x320f51){return this[_0x5e08('0x2')][_0x5e08('0x18')](_0x320f51);}[_0x5e08('0x7')](_0x3ed3f2){return this[_0x5e08('0x8')][_0x5e08('0x18')](_0x3ed3f2);}[_0x5e08('0xb')](){super[_0x5e08('0x20')](),this[_0x5e08('0x1c')](),this[_0x5e08('0x2')][_0x5e08('0x20')](),this[_0x5e08('0x8')][_0x5e08('0x20')](),this[_0x5e08('0x13')][_0x5e08('0xb')]();}[_0x5e08('0xe')](){for(const _0x20d68d of this)_0x20d68d['updateTargetRect']();this[_0x5e08('0xf')]();}['_sort'](){const _0xc5250a=Array[_0x5e08('0x9')](this)[_0x5e08('0x1f')]((_0x1cde7d,_0xf4ad54)=>v(_0x1cde7d[_0x5e08('0x22')][_0x5e08('0x4')],_0xf4ad54['view'][_0x5e08('0x4')]));for(let _0x37cfe1=_0xc5250a[_0x5e08('0x16')]-0x1;_0x37cfe1>0x0;_0x37cfe1--){const _0x41b50f=_0xc5250a[_0x37cfe1];_0x37cfe1!==this[_0x5e08('0x1d')](_0x41b50f)&&(this[_0x5e08('0x19')](_0x41b50f),this[_0x5e08('0x1')](_0x41b50f));}}[_0x5e08('0x0')](_0x4da108){let _0x4be51a=0x0;if(!_0x4da108)return this[_0x5e08('0x16')];for(const _0xf42350 of this){const _0xbc1e7d=_0xf42350[_0x5e08('0x22')][_0x5e08('0x4')];if(_0xbc1e7d){if(v(_0x4da108,_0xbc1e7d)<0x0)return _0x4be51a;_0x4be51a++;}}return _0x4be51a;}}export function bindAnnotationCollections({source:_0x3a786e,target:_0xb976a1,filter:_0x4e7297}){for(const _0x2558af of _0x3a786e)_0x4e7297(_0x2558af)&&_0xb976a1[_0x5e08('0x1')](_0x2558af);_0xb976a1[_0x5e08('0x1e')](_0x3a786e,_0x5e08('0x1'),(_0x4af471,_0x322ea4)=>{_0x4e7297(_0x322ea4)&&_0xb976a1[_0x5e08('0x1')](_0x322ea4);}),_0xb976a1[_0x5e08('0x1e')](_0x3a786e,'remove',(_0x44f19c,_0x26c324)=>{_0xb976a1[_0x5e08('0xa')](_0x26c324)&&_0xb976a1[_0x5e08('0x19')](_0x26c324);});}function v(_0x39d9a4,_0x1570d8){if(null===_0x39d9a4&&null===_0x1570d8)return 0x0;if(null===_0x39d9a4)return-0x1;if(null===_0x1570d8)return 0x1;const _0x23e016=_0x39d9a4[_0x5e08('0x15')]-_0x1570d8[_0x5e08('0x15')];return 0x0==_0x23e016?_0x39d9a4[_0x5e08('0x14')]-_0x1570d8['left']:_0x23e016;}
23
+ const _0x3c6b=['_sort','set','view','add','getIndex','innerView','getByView','listenTo','getByInnerView','destroy','delete','clear','fire','targetRect','_viewToAnnotation','_getOrderInContent','isFocused','annotationcollection-duplicated-item','remove','stopListening','updateTargetRect','focusableElements','length','focusTracker','left','_innerViewToAnnotation','change:isFocused','_focusTracker','has','annotationcollection-not-existing-item','get'];(function(_0x495dae,_0x3c6bcf){const _0x38668f=function(_0x36ae2e){while(--_0x36ae2e){_0x495dae['push'](_0x495dae['shift']());}};_0x38668f(++_0x3c6bcf);}(_0x3c6b,0x198));const _0x3866=function(_0x495dae,_0x3c6bcf){_0x495dae=_0x495dae-0x0;let _0x38668f=_0x3c6b[_0x495dae];return _0x38668f;};import{CKEditorError as _0x1b8732,Collection as _0x3b7c2e,FocusTracker as _0x6712f2}from'ckeditor5/src/utils.js';export default class x extends _0x3b7c2e{constructor(_0xf5b45a=[]){super(),this[_0x3866('0x14')]=new Map(),this[_0x3866('0x9')]=new Map(),this[_0x3866('0x16')]=new _0x6712f2(),this[_0x3866('0x16')]['on']('change:isFocused',(_0x5774ce,_0x352346,_0x5f1832)=>{_0x5f1832||this[_0x3866('0x7')]('blur');});for(const _0x269be2 of _0xf5b45a)this[_0x3866('0x1d')](_0x269be2);}get[_0x3866('0xb')](){return this[_0x3866('0x16')][_0x3866('0xb')];}[_0x3866('0x1d')](_0x4b9215){if(this['has'](_0x4b9215))throw new _0x1b8732(_0x3866('0xc'),null);this[_0x3866('0x14')][_0x3866('0x1b')](_0x4b9215[_0x3866('0x0')],_0x4b9215),this[_0x3866('0x9')][_0x3866('0x1b')](_0x4b9215['view'],_0x4b9215);for(const _0x13427a of _0x4b9215[_0x3866('0x10')])this[_0x3866('0x16')]['add'](_0x13427a);this[_0x3866('0x2')](_0x4b9215[_0x3866('0x10')],_0x3866('0x1d'),(_0x53798c,_0x569fe2)=>{this[_0x3866('0x16')]['add'](_0x569fe2);}),this[_0x3866('0x2')](_0x4b9215[_0x3866('0x10')],_0x3866('0xd'),(_0x42a9d9,_0x526f6f)=>{this[_0x3866('0x16')][_0x3866('0xd')](_0x526f6f);}),this[_0x3866('0x2')](_0x4b9215[_0x3866('0x1c')][_0x3866('0x12')],_0x3866('0x15'),(_0x2e9b01,_0x31f1d3,_0x4a1bf2)=>{_0x4a1bf2&&this[_0x3866('0x7')]('focus',_0x4b9215);}),_0x4b9215[_0x3866('0xf')]();const _0x1ddffe=this[_0x3866('0xa')](_0x4b9215['view'][_0x3866('0x8')]);return super['add'](_0x4b9215,_0x1ddffe);}['remove'](_0x5b46ba){if(!this[_0x3866('0x17')](_0x5b46ba))throw new _0x1b8732(_0x3866('0x18'),null);this[_0x3866('0xe')](_0x5b46ba[_0x3866('0x1c')][_0x3866('0x12')]),this['stopListening'](_0x5b46ba[_0x3866('0x10')]);for(const _0x54555e of _0x5b46ba[_0x3866('0x10')])this[_0x3866('0x16')][_0x3866('0xd')](_0x54555e);return this['_viewToAnnotation'][_0x3866('0x5')](_0x5b46ba[_0x3866('0x1c')]),this[_0x3866('0x14')]['delete'](_0x5b46ba[_0x3866('0x0')]),super[_0x3866('0xd')](_0x5b46ba);}[_0x3866('0x3')](_0x1a83be){return this[_0x3866('0x14')]['get'](_0x1a83be);}[_0x3866('0x1')](_0x8c1542){return this[_0x3866('0x9')][_0x3866('0x19')](_0x8c1542);}[_0x3866('0x4')](){super[_0x3866('0x6')](),this[_0x3866('0xe')](),this[_0x3866('0x14')][_0x3866('0x6')](),this[_0x3866('0x9')][_0x3866('0x6')](),this['_focusTracker'][_0x3866('0x4')]();}['refreshPositioning'](){for(const _0x1f4488 of this)_0x1f4488[_0x3866('0xf')]();this[_0x3866('0x1a')]();}[_0x3866('0x1a')](){const _0x3cf04c=Array['from'](this)['sort']((_0x548ee8,_0x9a9e8b)=>v(_0x548ee8['view']['targetRect'],_0x9a9e8b['view'][_0x3866('0x8')]));for(let _0xd1df0c=_0x3cf04c[_0x3866('0x11')]-0x1;_0xd1df0c>0x0;_0xd1df0c--){const _0x14237d=_0x3cf04c[_0xd1df0c];_0xd1df0c!==this[_0x3866('0x1e')](_0x14237d)&&(this['remove'](_0x14237d),this[_0x3866('0x1d')](_0x14237d));}}[_0x3866('0xa')](_0x3c9ffd){let _0x484287=0x0;if(!_0x3c9ffd)return this[_0x3866('0x11')];for(const _0x55cb44 of this){const _0x3c34e9=_0x55cb44['view'][_0x3866('0x8')];if(_0x3c34e9){if(v(_0x3c9ffd,_0x3c34e9)<0x0)return _0x484287;_0x484287++;}}return _0x484287;}}export function bindAnnotationCollections({source:_0x3debaa,target:_0x393b67,filter:_0xff8ee9}){for(const _0x24c6b9 of _0x3debaa)_0xff8ee9(_0x24c6b9)&&_0x393b67[_0x3866('0x1d')](_0x24c6b9);_0x393b67[_0x3866('0x2')](_0x3debaa,_0x3866('0x1d'),(_0x1cc319,_0x81efca)=>{_0xff8ee9(_0x81efca)&&_0x393b67[_0x3866('0x1d')](_0x81efca);}),_0x393b67['listenTo'](_0x3debaa,'remove',(_0xd78fd2,_0x2b5579)=>{_0x393b67[_0x3866('0x17')](_0x2b5579)&&_0x393b67['remove'](_0x2b5579);});}function v(_0x21191b,_0x22b805){if(null===_0x21191b&&null===_0x22b805)return 0x0;if(null===_0x21191b)return-0x1;if(null===_0x22b805)return 0x1;const _0x35a6ba=_0x21191b['top']-_0x22b805['top'];return 0x0==_0x35a6ba?_0x21191b['left']-_0x22b805[_0x3866('0x13')]:_0x35a6ba;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3a63=['source','add','element','deactivateAll','has','_visibleAnnotations','fire','pluginName','delete','_deactivateAllAnnotations','activeAnnotations','createAnnotation','_addActiveAnnotation','_activateAnnotation','activate','refreshPositioning','_removeActiveAnnotation','Annotations','view','getByInnerView','focusTracker','listenTo','stopListening','change:isVisible','refreshVisibility','createAnnotationView','_bindAnnotationsToVisibleAnnotations','isVisible','destroy','collection','remove'];(function(_0x550137,_0x3a63f7){const _0x55c1bb=function(_0x7f7b8b){while(--_0x7f7b8b){_0x550137['push'](_0x550137['shift']());}};_0x55c1bb(++_0x3a63f7);}(_0x3a63,0x1c9));const _0x55c1=function(_0x550137,_0x3a63f7){_0x550137=_0x550137-0x0;let _0x55c1bb=_0x3a63[_0x550137];return _0x55c1bb;};import{ContextPlugin as _0x4a92a6}from'ckeditor5/src/core.js';import _0x1234ba from'./annotation.js';import _0x3a0b85 from'./annotationcollection.js';import _0x444274 from'./view/annotationview.js';export default class b extends _0x4a92a6{static get[_0x55c1('0xf')](){return _0x55c1('0x19');}constructor(_0x57f95d){super(_0x57f95d),this[_0x55c1('0x6')]=new _0x3a0b85(),this['_visibleAnnotations']=new _0x3a0b85(),this['set'](_0x55c1('0x12'),new Set()),this[_0x55c1('0x3')]();}[_0x55c1('0x9')](_0x55c4d8){this['collection'][_0x55c1('0x9')](_0x55c4d8);}[_0x55c1('0x7')](_0x32d983){this[_0x55c1('0x6')]['remove'](_0x32d983),_0x32d983[_0x55c1('0x5')]();}['refreshVisibility'](){for(const _0x41aab0 of this[_0x55c1('0x6')])_0x41aab0[_0x55c1('0x1')]();}[_0x55c1('0x17')](){this['_visibleAnnotations']['refreshPositioning']();}[_0x55c1('0x1b')](_0x37d4f8){return this['collection'][_0x55c1('0x1b')](_0x37d4f8);}[_0x55c1('0xb')](){this[_0x55c1('0xe')](_0x55c1('0x11'));}[_0x55c1('0x5')](){for(const _0xc1f85f of this[_0x55c1('0x6')])_0xc1f85f[_0x55c1('0x5')]();this['_visibleAnnotations'][_0x55c1('0x5')](),this[_0x55c1('0x6')][_0x55c1('0x5')](),super[_0x55c1('0x5')]();}[_0x55c1('0x16')](_0x10520e){this[_0x55c1('0xe')](_0x55c1('0x15'),_0x10520e);}[_0x55c1('0x13')](_0x195996){return new _0x1234ba(_0x195996);}[_0x55c1('0x2')](_0x3071a2,_0x5b3048){return new _0x444274(_0x3071a2,_0x5b3048);}[_0x55c1('0x14')](_0x30f282){const _0x36ed8f=new Set(this[_0x55c1('0x12')]);_0x36ed8f[_0x55c1('0x9')](_0x30f282),this['activeAnnotations']=_0x36ed8f;}[_0x55c1('0x18')](_0x1a0a12){const _0x12deb0=new Set(this[_0x55c1('0x12')]);_0x12deb0[_0x55c1('0x10')](_0x1a0a12),this[_0x55c1('0x12')]=_0x12deb0;}[_0x55c1('0x3')](){const _0x278c86=this[_0x55c1('0x6')],_0x27c3ca=this[_0x55c1('0xd')];function _0x2e62fe(_0x1fd44d){const _0x2b16b2=_0x1fd44d[_0x55c1('0x8')];_0x2b16b2['isVisible']&&!_0x27c3ca[_0x55c1('0xc')](_0x2b16b2)?_0x27c3ca['add'](_0x2b16b2):!_0x2b16b2[_0x55c1('0x4')]&&_0x27c3ca[_0x55c1('0xc')](_0x2b16b2)&&_0x27c3ca[_0x55c1('0x7')](_0x2b16b2),_0x2b16b2[_0x55c1('0x1a')][_0x55c1('0x1c')][_0x55c1('0x7')](_0x2b16b2[_0x55c1('0x1a')]['element']),_0x2b16b2[_0x55c1('0x1a')][_0x55c1('0x1c')]['add'](_0x2b16b2[_0x55c1('0x1a')][_0x55c1('0xa')]);}this[_0x55c1('0x1d')](_0x278c86,_0x55c1('0x9'),(_0x2030dc,_0x2e0778)=>{_0x2e0778[_0x55c1('0x4')]&&_0x27c3ca['add'](_0x2e0778),this[_0x55c1('0x1d')](_0x2e0778,'change:isVisible',_0x2e62fe);}),this[_0x55c1('0x1d')](_0x278c86,_0x55c1('0x7'),(_0x2d6d1d,_0x380748)=>{_0x27c3ca[_0x55c1('0xc')](_0x380748)&&_0x27c3ca[_0x55c1('0x7')](_0x380748),this[_0x55c1('0x1e')](_0x380748,_0x55c1('0x0'),_0x2e62fe);});}}
23
+ const _0x6639=['fire','view','element','activate','remove','_activateAnnotation','Annotations','change:isVisible','focusTracker','_addActiveAnnotation','listenTo','isVisible','has','createAnnotationView','destroy','delete','add','refreshVisibility','_visibleAnnotations','refreshPositioning','_removeActiveAnnotation','activeAnnotations','stopListening','pluginName','set','_bindAnnotationsToVisibleAnnotations','collection','getByInnerView'];(function(_0x13290e,_0x6639aa){const _0x554ac4=function(_0x148395){while(--_0x148395){_0x13290e['push'](_0x13290e['shift']());}};_0x554ac4(++_0x6639aa);}(_0x6639,0xb4));const _0x554a=function(_0x13290e,_0x6639aa){_0x13290e=_0x13290e-0x0;let _0x554ac4=_0x6639[_0x13290e];return _0x554ac4;};import{ContextPlugin as _0x187e6b}from'ckeditor5/src/core.js';import _0x3bf2ae from'./annotation.js';import _0x12412f from'./annotationcollection.js';import _0x62946f from'./view/annotationview.js';export default class b extends _0x187e6b{static get[_0x554a('0xb')](){return _0x554a('0x16');}constructor(_0x36c661){super(_0x36c661),this[_0x554a('0xe')]=new _0x12412f(),this['_visibleAnnotations']=new _0x12412f(),this[_0x554a('0xc')](_0x554a('0x9'),new Set()),this[_0x554a('0xd')]();}[_0x554a('0x4')](_0x56d52b){this['collection'][_0x554a('0x4')](_0x56d52b);}[_0x554a('0x14')](_0x32e6ea){this[_0x554a('0xe')][_0x554a('0x14')](_0x32e6ea),_0x32e6ea[_0x554a('0x2')]();}[_0x554a('0x5')](){for(const _0x5f066b of this[_0x554a('0xe')])_0x5f066b[_0x554a('0x5')]();}[_0x554a('0x7')](){this['_visibleAnnotations']['refreshPositioning']();}[_0x554a('0xf')](_0x3b4021){return this[_0x554a('0xe')][_0x554a('0xf')](_0x3b4021);}['deactivateAll'](){this[_0x554a('0x10')]('_deactivateAllAnnotations');}['destroy'](){for(const _0x23a08a of this[_0x554a('0xe')])_0x23a08a[_0x554a('0x2')]();this[_0x554a('0x6')][_0x554a('0x2')](),this[_0x554a('0xe')][_0x554a('0x2')](),super[_0x554a('0x2')]();}[_0x554a('0x13')](_0x3dff5a){this[_0x554a('0x10')](_0x554a('0x15'),_0x3dff5a);}['createAnnotation'](_0x436269){return new _0x3bf2ae(_0x436269);}[_0x554a('0x1')](_0xb70ec4,_0xe634c7){return new _0x62946f(_0xb70ec4,_0xe634c7);}[_0x554a('0x19')](_0x11d267){const _0x2ceef5=new Set(this[_0x554a('0x9')]);_0x2ceef5[_0x554a('0x4')](_0x11d267),this[_0x554a('0x9')]=_0x2ceef5;}[_0x554a('0x8')](_0x8f309b){const _0x3a7bf2=new Set(this[_0x554a('0x9')]);_0x3a7bf2[_0x554a('0x3')](_0x8f309b),this[_0x554a('0x9')]=_0x3a7bf2;}[_0x554a('0xd')](){const _0x35869f=this[_0x554a('0xe')],_0x19374b=this[_0x554a('0x6')];function _0x221b0e(_0x162ff0){const _0x2f7e68=_0x162ff0['source'];_0x2f7e68[_0x554a('0x1b')]&&!_0x19374b[_0x554a('0x0')](_0x2f7e68)?_0x19374b['add'](_0x2f7e68):!_0x2f7e68[_0x554a('0x1b')]&&_0x19374b[_0x554a('0x0')](_0x2f7e68)&&_0x19374b[_0x554a('0x14')](_0x2f7e68),_0x2f7e68['view'][_0x554a('0x18')][_0x554a('0x14')](_0x2f7e68['view'][_0x554a('0x12')]),_0x2f7e68[_0x554a('0x11')]['focusTracker']['add'](_0x2f7e68[_0x554a('0x11')][_0x554a('0x12')]);}this[_0x554a('0x1a')](_0x35869f,_0x554a('0x4'),(_0x18b3a0,_0x44eb58)=>{_0x44eb58[_0x554a('0x1b')]&&_0x19374b['add'](_0x44eb58),this[_0x554a('0x1a')](_0x44eb58,_0x554a('0x17'),_0x221b0e);}),this[_0x554a('0x1a')](_0x35869f,_0x554a('0x14'),(_0x3d826b,_0x24bb93)=>{_0x19374b['has'](_0x24bb93)&&_0x19374b[_0x554a('0x14')](_0x24bb93),this[_0x554a('0xa')](_0x24bb93,_0x554a('0x17'),_0x221b0e);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x6326=['register','activeUIs','collection','detach','AnnotationsUIs','length','change:activeAnnotation','_activateAnnotation','activeAnnotations','destroy','delete','init','context','_uis','isActive','_uisData','_removeActiveAnnotation','find','pluginName','filter','function','activate','remove','plugins','_visibleAnnotations','from','set','_addActiveAnnotation','requires','deactivateAll','add','has','setActiveAnnotation','annotationsuis-missing-ui','listenTo','attach','_deactivateAllAnnotations','refilterAnnotations','size','deactivate','_assertAnnotationDoesNotBelongToMultipleUIs','get','type','hasActive'];(function(_0x4ef200,_0x6326c5){const _0x170be8=function(_0x1c15bf){while(--_0x1c15bf){_0x4ef200['push'](_0x4ef200['shift']());}};_0x170be8(++_0x6326c5);}(_0x6326,0x1af));const _0x170b=function(_0x4ef200,_0x6326c5){_0x4ef200=_0x4ef200-0x0;let _0x170be8=_0x6326[_0x4ef200];return _0x170be8;};import{ContextPlugin as _0x4a74b5}from'ckeditor5/src/core.js';import{CKEditorError as _0x2d3adc}from'ckeditor5/src/utils.js';import _0x1f7a37,{bindAnnotationCollections as _0x2d943c}from'./annotationcollection.js';import _0xdfe03a from'./annotations.js';export default class j extends _0x4a74b5{static get[_0x170b('0x25')](){return[_0xdfe03a];}static get[_0x170b('0x1b')](){return _0x170b('0xd');}constructor(_0x8bb518){super(_0x8bb518),this[_0x170b('0xa')]=new Set(),this['_uis']=new Map(),this[_0x170b('0x18')]=new Map();}[_0x170b('0x14')](){const _0x3afbae=this[_0x170b('0x15')][_0x170b('0x20')][_0x170b('0x6')](_0xdfe03a);this[_0x170b('0x2b')](_0x3afbae,_0x170b('0x10'),(_0x505d53,_0x16feea)=>{for(const _0x4767a7 of this[_0x170b('0xa')]){const _0x3be441=this[_0x170b('0x16')][_0x170b('0x6')](_0x4767a7);(0x0,this[_0x170b('0x18')][_0x170b('0x6')](_0x4767a7)[_0x170b('0x1c')])(_0x16feea)&&_0x3be441[_0x170b('0x29')](_0x16feea);}}),this['listenTo'](_0x3afbae,_0x170b('0x1'),()=>{for(const _0x11e8f7 of this['activeUIs']){this['_uis'][_0x170b('0x6')](_0x11e8f7)['setActiveAnnotation'](null);}}),this['listenTo'](_0x3afbae[_0x170b('0x21')],_0x170b('0x27'),(_0xb95475,_0x1b1b63)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x1b1b63);});}[_0x170b('0x8')](){return this[_0x170b('0xa')][_0x170b('0x3')]>0x0;}[_0x170b('0x17')](_0x1b313a){return this[_0x170b('0xa')][_0x170b('0x28')](_0x1b313a);}[_0x170b('0x1e')](_0x59ae46,_0x3f1a5d=()=>!0x0){const _0x11b3cb=this[_0x170b('0x15')]['plugins'][_0x170b('0x6')](_0xdfe03a);if(!this['_uis'][_0x170b('0x28')](_0x59ae46))throw new _0x2d3adc(_0x170b('0x2a'),this,{'uiName':_0x59ae46});this[_0x170b('0x17')](_0x59ae46)&&this[_0x170b('0x4')](_0x59ae46),this[_0x170b('0xa')][_0x170b('0x27')](_0x59ae46);const _0x996200=new _0x1f7a37(),_0x868aa7=_0x11b3cb[_0x170b('0x21')];_0x2d943c({'source':_0x868aa7,'target':_0x996200,'filter':_0x3f1a5d}),this[_0x170b('0x18')][_0x170b('0x23')](_0x59ae46,{'collection':_0x996200,'filter':_0x3f1a5d});const _0x459e89=this[_0x170b('0x16')][_0x170b('0x6')](_0x59ae46);_0x459e89[_0x170b('0x0')](_0x996200),this['listenTo'](_0x459e89,_0x170b('0xf'),(_0x249003,_0x4b4a96,_0xa6b995,_0x1418cc)=>{_0x1418cc&&_0x11b3cb[_0x170b('0x19')](_0x1418cc),_0xa6b995&&_0x11b3cb[_0x170b('0x24')](_0xa6b995);});}[_0x170b('0x4')](_0x57b891){if(this['activeUIs'][_0x170b('0x13')](_0x57b891),!this[_0x170b('0x16')][_0x170b('0x28')](_0x57b891))throw new _0x2d3adc(_0x170b('0x2a'),this,{'uiName':_0x57b891});const _0x10badf=this[_0x170b('0x16')][_0x170b('0x6')](_0x57b891);_0x10badf[_0x170b('0xc')](),this['stopListening'](_0x10badf),this[_0x170b('0x18')]['get'](_0x57b891)[_0x170b('0xb')][_0x170b('0x12')](),this[_0x170b('0x18')][_0x170b('0x13')](_0x57b891);}['switchTo'](_0x57a68b){if(!this[_0x170b('0x16')]['has'](_0x57a68b))throw new _0x2d3adc(_0x170b('0x2a'),this,{'uiName':_0x57a68b});const _0x33dc8d=this[_0x170b('0x15')]['plugins'][_0x170b('0x6')](_0xdfe03a),_0x432423=Array[_0x170b('0x22')](_0x33dc8d[_0x170b('0x11')])[0x0]||null;this[_0x170b('0x26')](),this[_0x170b('0x1e')](_0x57a68b);const _0x1b1f72=this[_0x170b('0x16')]['get'](_0x57a68b);_0x1b1f72[_0x170b('0x29')](_0x432423),_0x1b1f72['_setSelectedAnnotations']&&_0x432423&&_0x1b1f72['_setSelectedAnnotations']([_0x432423]);}[_0x170b('0x26')](){for(const _0x290b79 of this[_0x170b('0xa')])this[_0x170b('0x4')](_0x290b79);}[_0x170b('0x9')](_0x5e8b00,_0x559baf){if(this[_0x170b('0x16')][_0x170b('0x28')](_0x5e8b00))throw new _0x2d3adc('annotationsuis-register-already-registered');if('function'!=typeof _0x559baf[_0x170b('0x0')]||'function'!=typeof _0x559baf[_0x170b('0xc')]||_0x170b('0x1d')!=typeof _0x559baf['setActiveAnnotation'])throw new _0x2d3adc('annotationsuis-register-invalid-interface',null);this[_0x170b('0x16')]['set'](_0x5e8b00,_0x559baf);}[_0x170b('0x2')](){const _0x59e235=this[_0x170b('0x15')][_0x170b('0x20')][_0x170b('0x6')](_0xdfe03a)[_0x170b('0xb')],_0x58beec=new Map(),_0x271cf4=Array[_0x170b('0x22')](this[_0x170b('0xa')]);for(const _0x543157 of this[_0x170b('0xa')]){const _0x289401=this[_0x170b('0x18')][_0x170b('0x6')](_0x543157)[_0x170b('0xb')];for(const _0x3191a5 of _0x289401)_0x58beec[_0x170b('0x23')](_0x3191a5,_0x543157);}for(const _0x2e004d of _0x59e235){const _0x453f21=_0x58beec[_0x170b('0x6')](_0x2e004d);this[_0x170b('0x5')](_0x2e004d);const _0x159212=_0x271cf4[_0x170b('0x1a')](_0x156372=>this[_0x170b('0x18')][_0x170b('0x6')](_0x156372)[_0x170b('0x1c')](_0x2e004d));_0x453f21!==_0x159212&&(_0x453f21&&this[_0x170b('0x18')][_0x170b('0x6')](_0x453f21)[_0x170b('0xb')][_0x170b('0x1f')](_0x2e004d),_0x159212&&this[_0x170b('0x18')][_0x170b('0x6')](_0x159212)[_0x170b('0xb')]['add'](_0x2e004d));}}[_0x170b('0x12')](){this[_0x170b('0x26')](),super[_0x170b('0x12')]();}[_0x170b('0x5')](_0x236ae7){const _0x3009ec=[];for(const _0x2c3315 of this[_0x170b('0xa')]){(0x0,this[_0x170b('0x18')][_0x170b('0x6')](_0x2c3315)['filter'])(_0x236ae7)&&_0x3009ec['push'](_0x2c3315);}if(_0x3009ec[_0x170b('0xe')]>0x1)throw new _0x2d3adc('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x3009ec,'annotationType':_0x236ae7[_0x170b('0x7')]});}}
23
+ const _0x198f=['_assertAnnotationDoesNotBelongToMultipleUIs','destroy','register','switchTo','deactivateAll','remove','detach','plugins','function','_deactivateAllAnnotations','stopListening','deactivate','requires','AnnotationsUIs','find','_uis','_removeActiveAnnotation','type','annotationsuis-missing-ui','add','_visibleAnnotations','get','annotationsuis-register-already-registered','attach','setActiveAnnotation','set','listenTo','activate','hasActive','activeUIs','has','isActive','_activateAnnotation','from','size','init','_uisData','filter','annotationsuis-annotation-mismatch','refilterAnnotations','_addActiveAnnotation','collection','context','delete','activeAnnotations','annotationsuis-register-invalid-interface'];(function(_0x368f19,_0x198f22){const _0x5d53ab=function(_0x568632){while(--_0x568632){_0x368f19['push'](_0x368f19['shift']());}};_0x5d53ab(++_0x198f22);}(_0x198f,0x149));const _0x5d53=function(_0x368f19,_0x198f22){_0x368f19=_0x368f19-0x0;let _0x5d53ab=_0x198f[_0x368f19];return _0x5d53ab;};import{ContextPlugin as _0x58009f}from'ckeditor5/src/core.js';import{CKEditorError as _0x4c6c03}from'ckeditor5/src/utils.js';import _0x1961f0,{bindAnnotationCollections as _0x4240f0}from'./annotationcollection.js';import _0x426a18 from'./annotations.js';export default class j extends _0x58009f{static get[_0x5d53('0x5')](){return[_0x426a18];}static get['pluginName'](){return _0x5d53('0x6');}constructor(_0x15272b){super(_0x15272b),this[_0x5d53('0x16')]=new Set(),this['_uis']=new Map(),this[_0x5d53('0x1d')]=new Map();}[_0x5d53('0x1c')](){const _0xe43b27=this[_0x5d53('0x23')]['plugins']['get'](_0x426a18);this['listenTo'](_0xe43b27,_0x5d53('0x19'),(_0x328e7e,_0x5d57d1)=>{for(const _0x221d08 of this[_0x5d53('0x16')]){const _0x1abba3=this[_0x5d53('0x8')][_0x5d53('0xe')](_0x221d08);(0x0,this[_0x5d53('0x1d')][_0x5d53('0xe')](_0x221d08)[_0x5d53('0x1e')])(_0x5d57d1)&&_0x1abba3[_0x5d53('0x11')](_0x5d57d1);}}),this[_0x5d53('0x13')](_0xe43b27,_0x5d53('0x2'),()=>{for(const _0x31ff46 of this[_0x5d53('0x16')]){this['_uis'][_0x5d53('0xe')](_0x31ff46)[_0x5d53('0x11')](null);}}),this[_0x5d53('0x13')](_0xe43b27[_0x5d53('0xd')],'add',(_0x21f8f8,_0x3a1285)=>{this[_0x5d53('0x27')](_0x3a1285);});}[_0x5d53('0x15')](){return this[_0x5d53('0x16')][_0x5d53('0x1b')]>0x0;}['isActive'](_0x3bf95c){return this[_0x5d53('0x16')]['has'](_0x3bf95c);}[_0x5d53('0x14')](_0x26b9c0,_0x21c857=()=>!0x0){const _0x5f2525=this[_0x5d53('0x23')][_0x5d53('0x0')][_0x5d53('0xe')](_0x426a18);if(!this[_0x5d53('0x8')][_0x5d53('0x17')](_0x26b9c0))throw new _0x4c6c03('annotationsuis-missing-ui',this,{'uiName':_0x26b9c0});this[_0x5d53('0x18')](_0x26b9c0)&&this['deactivate'](_0x26b9c0),this[_0x5d53('0x16')][_0x5d53('0xc')](_0x26b9c0);const _0x5a3d7a=new _0x1961f0(),_0x3ffa3b=_0x5f2525[_0x5d53('0xd')];_0x4240f0({'source':_0x3ffa3b,'target':_0x5a3d7a,'filter':_0x21c857}),this[_0x5d53('0x1d')][_0x5d53('0x12')](_0x26b9c0,{'collection':_0x5a3d7a,'filter':_0x21c857});const _0x365960=this[_0x5d53('0x8')]['get'](_0x26b9c0);_0x365960[_0x5d53('0x10')](_0x5a3d7a),this['listenTo'](_0x365960,'change:activeAnnotation',(_0x3f4b6e,_0x4ed0c1,_0x590085,_0x2b3711)=>{_0x2b3711&&_0x5f2525[_0x5d53('0x9')](_0x2b3711),_0x590085&&_0x5f2525[_0x5d53('0x21')](_0x590085);});}[_0x5d53('0x4')](_0x3f23ce){if(this[_0x5d53('0x16')][_0x5d53('0x24')](_0x3f23ce),!this['_uis'][_0x5d53('0x17')](_0x3f23ce))throw new _0x4c6c03(_0x5d53('0xb'),this,{'uiName':_0x3f23ce});const _0x57ce2c=this['_uis'][_0x5d53('0xe')](_0x3f23ce);_0x57ce2c[_0x5d53('0x2d')](),this[_0x5d53('0x3')](_0x57ce2c),this[_0x5d53('0x1d')][_0x5d53('0xe')](_0x3f23ce)[_0x5d53('0x22')][_0x5d53('0x28')](),this[_0x5d53('0x1d')]['delete'](_0x3f23ce);}[_0x5d53('0x2a')](_0x27774c){if(!this[_0x5d53('0x8')][_0x5d53('0x17')](_0x27774c))throw new _0x4c6c03(_0x5d53('0xb'),this,{'uiName':_0x27774c});const _0x586472=this[_0x5d53('0x23')][_0x5d53('0x0')][_0x5d53('0xe')](_0x426a18),_0x3a634c=Array[_0x5d53('0x1a')](_0x586472[_0x5d53('0x25')])[0x0]||null;this[_0x5d53('0x2b')](),this[_0x5d53('0x14')](_0x27774c);const _0xa43a48=this[_0x5d53('0x8')][_0x5d53('0xe')](_0x27774c);_0xa43a48['setActiveAnnotation'](_0x3a634c),_0xa43a48['_setSelectedAnnotations']&&_0x3a634c&&_0xa43a48['_setSelectedAnnotations']([_0x3a634c]);}[_0x5d53('0x2b')](){for(const _0x4bcc93 of this['activeUIs'])this[_0x5d53('0x4')](_0x4bcc93);}[_0x5d53('0x29')](_0x475e16,_0x2adeaf){if(this[_0x5d53('0x8')]['has'](_0x475e16))throw new _0x4c6c03(_0x5d53('0xf'));if(_0x5d53('0x1')!=typeof _0x2adeaf['attach']||_0x5d53('0x1')!=typeof _0x2adeaf[_0x5d53('0x2d')]||'function'!=typeof _0x2adeaf[_0x5d53('0x11')])throw new _0x4c6c03(_0x5d53('0x26'),null);this[_0x5d53('0x8')][_0x5d53('0x12')](_0x475e16,_0x2adeaf);}[_0x5d53('0x20')](){const _0xc9ee90=this[_0x5d53('0x23')][_0x5d53('0x0')][_0x5d53('0xe')](_0x426a18)['collection'],_0x22590c=new Map(),_0x4657d1=Array['from'](this[_0x5d53('0x16')]);for(const _0x451639 of this[_0x5d53('0x16')]){const _0x532e3f=this['_uisData'][_0x5d53('0xe')](_0x451639)[_0x5d53('0x22')];for(const _0x598d11 of _0x532e3f)_0x22590c[_0x5d53('0x12')](_0x598d11,_0x451639);}for(const _0x1e31f4 of _0xc9ee90){const _0x3a8718=_0x22590c['get'](_0x1e31f4);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x1e31f4);const _0x3ab565=_0x4657d1[_0x5d53('0x7')](_0x2e1ba6=>this[_0x5d53('0x1d')]['get'](_0x2e1ba6)['filter'](_0x1e31f4));_0x3a8718!==_0x3ab565&&(_0x3a8718&&this['_uisData'][_0x5d53('0xe')](_0x3a8718)[_0x5d53('0x22')][_0x5d53('0x2c')](_0x1e31f4),_0x3ab565&&this[_0x5d53('0x1d')]['get'](_0x3ab565)[_0x5d53('0x22')][_0x5d53('0xc')](_0x1e31f4));}}[_0x5d53('0x28')](){this['deactivateAll'](),super[_0x5d53('0x28')]();}[_0x5d53('0x27')](_0x2f0294){const _0xcabbea=[];for(const _0xe02641 of this['activeUIs']){(0x0,this[_0x5d53('0x1d')][_0x5d53('0xe')](_0xe02641)[_0x5d53('0x1e')])(_0x2f0294)&&_0xcabbea['push'](_0xe02641);}if(_0xcabbea['length']>0x1)throw new _0x4c6c03(_0x5d53('0x1f'),null,{'matchedUIs':_0xcabbea,'annotationType':_0x2f0294[_0x5d53('0xa')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x7805=['isEqual','change:isFocused','function','cancel','sort','has','annotation','model','map','fire','collection','add','isCollapsed','pluginName','init','containsRange','view','remove','set','_dataCollectors','isReadOnly','_editorAnnotationsData','editorannotations-invalid-source-callback','hasDomSelection','refreshSelectedViews','directChange','range','get','document','getRanges','editor','focusTracker','refresh','selection','push','listenTo','update','uiUpdate','element','editing','delete','getByInnerView','_editorAnnotations','blur','plugins','change:range','registerAnnotation','addSourceCollector'];(function(_0x22a454,_0x780578){const _0x5042b6=function(_0x18bdcb){while(--_0x18bdcb){_0x22a454['push'](_0x22a454['shift']());}};_0x5042b6(++_0x780578);}(_0x7805,0xf5));const _0x5042=function(_0x22a454,_0x780578){_0x22a454=_0x22a454-0x0;let _0x5042b6=_0x7805[_0x22a454];return _0x5042b6;};import{Plugin as _0x5d423d}from'ckeditor5/src/core.js';import{CKEditorError as _0x44d073}from'ckeditor5/src/utils.js';import{debounce as _0x6e436a}from'lodash-es';import _0x4ee91a from'./annotations.js';export default class k extends _0x5d423d{static get['requires'](){return[_0x4ee91a];}static get[_0x5042('0x8')](){return'EditorAnnotations';}constructor(_0x17722d){super(_0x17722d),this['_dataCollectors']=new Set(),this[_0x5042('0x25')]=new Set();}[_0x5042('0x9')](){const _0x2c58f2=this[_0x5042('0x19')],_0x29fc04=_0x2c58f2[_0x5042('0x2')]['document'][_0x5042('0x1c')],_0x39fc9c=_0x6e436a(()=>this[_0x5042('0x13')](),0xa);_0x29fc04['on'](_0x5042('0x28'),(_0x3f080b,_0x3a3091)=>{_0x3a3091[_0x5042('0x14')]&&(_0x39fc9c[_0x5042('0x2e')](),this[_0x5042('0x13')]());}),this[_0x5042('0x1e')](_0x2c58f2[_0x5042('0x22')]['view']['document'],_0x5042('0x2c'),(_0x411f0a,_0x45a900,_0x130c07)=>{_0x130c07&&_0x39fc9c();}),this[_0x5042('0x1e')](_0x2c58f2['ui']['focusTracker'],_0x5042('0x2c'),(_0x5ee385,_0x38564e,_0x1e403f)=>{_0x1e403f||_0x2c58f2[_0x5042('0xf')]||this[_0x5042('0x4')](_0x5042('0x26'),{'isAnnotationTracked':_0x1f93d2=>this[_0x5042('0x10')][_0x5042('0x0')](_0x1f93d2['innerView'])});}),this[_0x5042('0x1e')](this[_0x5042('0x19')]['ui'],_0x5042('0x1f'),()=>this[_0x5042('0x4')](_0x5042('0x20')));}[_0x5042('0x29')](_0x2cab8c){if(this['_editorAnnotations'][_0x5042('0x0')](_0x2cab8c['view']))return;this[_0x5042('0x25')]['add'](_0x2cab8c[_0x5042('0xb')]),this[_0x5042('0x19')]['ui']['focusTracker'][_0x5042('0x6')](_0x2cab8c[_0x5042('0xb')][_0x5042('0x21')]);const _0x4da79a=this[_0x5042('0x19')][_0x5042('0x27')][_0x5042('0x16')](_0x4ee91a);this[_0x5042('0x1e')](_0x4da79a[_0x5042('0x5')],_0x5042('0xc'),(_0x53fc6d,_0xcc21b7)=>{this['editor']['ui'][_0x5042('0x1a')][_0x5042('0xc')](_0xcc21b7['view'][_0x5042('0x21')]),this[_0x5042('0x25')][_0x5042('0x23')](_0xcc21b7['view']);});}[_0x5042('0x12')](){return this[_0x5042('0x19')][_0x5042('0x22')]['view']['hasDomSelection'];}[_0x5042('0x2a')](_0x2d1bf8){if(_0x5042('0x2d')!=typeof _0x2d1bf8)throw new _0x44d073(_0x5042('0x11'));this[_0x5042('0xe')][_0x5042('0x6')](_0x2d1bf8);}['refreshSelectedViews'](){this[_0x5042('0x4')](_0x5042('0x1b'));}['getOrderedSelectedAnnotations']({activeAnnotation:_0x271ed0,annotations:_0x3438c3}){const _0x45abb0=[],_0x348cdd=this[_0x5042('0x19')][_0x5042('0x2')][_0x5042('0x17')][_0x5042('0x1c')],_0x344f32=Array['from'](_0x348cdd[_0x5042('0x18')]());for(const [_0x4af73c,_0x3bd134]of this[_0x5042('0x10')]){const _0x4606b2=_0x44cb5e(_0x3bd134),_0x7f4968=_0x3438c3[_0x5042('0x24')](_0x4af73c);_0x4606b2&&_0x7f4968&&_0x45abb0[_0x5042('0x1d')]({'annotation':_0x7f4968,'range':_0x4606b2});}function _0x44cb5e(_0x4a1a4f){for(const _0x3f88e6 of _0x4a1a4f)for(const _0x4ff129 of _0x344f32)if(_0x3f88e6[_0x5042('0xa')](_0x4ff129,!_0x348cdd[_0x5042('0x7')]))return _0x3f88e6;return null;}return _0x45abb0[_0x5042('0x2f')]((_0x3d553d,_0x50fd98)=>{const _0x2359e2=_0x3d553d[_0x5042('0x15')],_0x4dcd30=_0x50fd98[_0x5042('0x15')];if(!_0x2359e2[_0x5042('0x2b')](_0x4dcd30)){if(_0x2359e2['containsRange'](_0x4dcd30,!0x0))return 0x1;if(_0x4dcd30[_0x5042('0xa')](_0x2359e2,!0x0))return-0x1;}return _0x3d553d['annotation']==_0x271ed0?-0x1:_0x50fd98['annotation']==_0x271ed0?0x1:0x0;})[_0x5042('0x3')](_0x46d1a9=>_0x46d1a9[_0x5042('0x1')]);}get[_0x5042('0x10')](){const _0x3c060a=new Map();for(const _0x5c94f2 of Array['from'](this[_0x5042('0xe')]))for(const [_0x5b48ac,_0x232519]of _0x5c94f2())_0x3c060a[_0x5042('0xd')](_0x5b48ac,_0x232519);return _0x3c060a;}}
23
+ const _0x13cf=['update','_dataCollectors','directChange','fire','element','innerView','map','annotation','focusTracker','listenTo','_editorAnnotationsData','selection','containsRange','document','remove','get','refreshSelectedViews','_editorAnnotations','EditorAnnotations','isReadOnly','editor','add','requires','pluginName','addSourceCollector','getOrderedSelectedAnnotations','change:range','getRanges','editing','range','isCollapsed','isEqual','has','change:isFocused','delete','hasDomSelection','view','model','plugins','refresh','blur','collection','init'];(function(_0x1efb63,_0x13cf03){const _0x3cd566=function(_0x43947a){while(--_0x43947a){_0x1efb63['push'](_0x1efb63['shift']());}};_0x3cd566(++_0x13cf03);}(_0x13cf,0xe6));const _0x3cd5=function(_0x1efb63,_0x13cf03){_0x1efb63=_0x1efb63-0x0;let _0x3cd566=_0x13cf[_0x1efb63];return _0x3cd566;};import{Plugin as _0x464f8f}from'ckeditor5/src/core.js';import{CKEditorError as _0x3bf35d}from'ckeditor5/src/utils.js';import{debounce as _0xf95ec1}from'lodash-es';import _0x53880e from'./annotations.js';export default class k extends _0x464f8f{static get[_0x3cd5('0x7')](){return[_0x53880e];}static get[_0x3cd5('0x8')](){return _0x3cd5('0x3');}constructor(_0x4a2c62){super(_0x4a2c62),this[_0x3cd5('0x1d')]=new Set(),this[_0x3cd5('0x2')]=new Set();}[_0x3cd5('0x1b')](){const _0x5a4735=this['editor'],_0x248884=_0x5a4735['model'][_0x3cd5('0x29')][_0x3cd5('0x27')],_0x3d0b03=_0xf95ec1(()=>this[_0x3cd5('0x1')](),0xa);_0x248884['on'](_0x3cd5('0xb'),(_0x5c570d,_0x4b7fba)=>{_0x4b7fba[_0x3cd5('0x1e')]&&(_0x3d0b03['cancel'](),this[_0x3cd5('0x1')]());}),this['listenTo'](_0x5a4735[_0x3cd5('0xd')]['view'][_0x3cd5('0x29')],_0x3cd5('0x12'),(_0x1e15a4,_0x2ffdbf,_0x20a3d3)=>{_0x20a3d3&&_0x3d0b03();}),this[_0x3cd5('0x25')](_0x5a4735['ui']['focusTracker'],_0x3cd5('0x12'),(_0x1f3d43,_0x47d57a,_0x52f5fb)=>{_0x52f5fb||_0x5a4735[_0x3cd5('0x4')]||this['fire'](_0x3cd5('0x19'),{'isAnnotationTracked':_0x4fec68=>this[_0x3cd5('0x26')]['has'](_0x4fec68[_0x3cd5('0x21')])});}),this[_0x3cd5('0x25')](this[_0x3cd5('0x5')]['ui'],_0x3cd5('0x1c'),()=>this[_0x3cd5('0x1f')]('uiUpdate'));}['registerAnnotation'](_0x16103d){if(this[_0x3cd5('0x2')][_0x3cd5('0x11')](_0x16103d['view']))return;this['_editorAnnotations'][_0x3cd5('0x6')](_0x16103d[_0x3cd5('0x15')]),this[_0x3cd5('0x5')]['ui'][_0x3cd5('0x24')][_0x3cd5('0x6')](_0x16103d[_0x3cd5('0x15')][_0x3cd5('0x20')]);const _0x5c186f=this[_0x3cd5('0x5')][_0x3cd5('0x17')][_0x3cd5('0x0')](_0x53880e);this[_0x3cd5('0x25')](_0x5c186f[_0x3cd5('0x1a')],'remove',(_0x6613dc,_0x1c78c4)=>{this['editor']['ui'][_0x3cd5('0x24')][_0x3cd5('0x2a')](_0x1c78c4[_0x3cd5('0x15')][_0x3cd5('0x20')]),this['_editorAnnotations'][_0x3cd5('0x13')](_0x1c78c4[_0x3cd5('0x15')]);});}[_0x3cd5('0x14')](){return this['editor'][_0x3cd5('0xd')]['view'][_0x3cd5('0x14')];}[_0x3cd5('0x9')](_0xff73d6){if('function'!=typeof _0xff73d6)throw new _0x3bf35d('editorannotations-invalid-source-callback');this[_0x3cd5('0x1d')][_0x3cd5('0x6')](_0xff73d6);}[_0x3cd5('0x1')](){this['fire'](_0x3cd5('0x18'));}[_0x3cd5('0xa')]({activeAnnotation:_0x31a9f4,annotations:_0x1e17e2}){const _0x5b403c=[],_0x1363cb=this['editor'][_0x3cd5('0x16')][_0x3cd5('0x29')][_0x3cd5('0x27')],_0x477118=Array['from'](_0x1363cb[_0x3cd5('0xc')]());for(const [_0x3db0f0,_0x36c7c4]of this[_0x3cd5('0x26')]){const _0x27a8b5=_0x3211ea(_0x36c7c4),_0x55bea0=_0x1e17e2['getByInnerView'](_0x3db0f0);_0x27a8b5&&_0x55bea0&&_0x5b403c['push']({'annotation':_0x55bea0,'range':_0x27a8b5});}function _0x3211ea(_0x281a80){for(const _0x3f330b of _0x281a80)for(const _0x32dc86 of _0x477118)if(_0x3f330b['containsRange'](_0x32dc86,!_0x1363cb[_0x3cd5('0xf')]))return _0x3f330b;return null;}return _0x5b403c['sort']((_0x460cb1,_0x310359)=>{const _0x18a60e=_0x460cb1[_0x3cd5('0xe')],_0x42ada9=_0x310359[_0x3cd5('0xe')];if(!_0x18a60e[_0x3cd5('0x10')](_0x42ada9)){if(_0x18a60e[_0x3cd5('0x28')](_0x42ada9,!0x0))return 0x1;if(_0x42ada9[_0x3cd5('0x28')](_0x18a60e,!0x0))return-0x1;}return _0x460cb1[_0x3cd5('0x23')]==_0x31a9f4?-0x1:_0x310359[_0x3cd5('0x23')]==_0x31a9f4?0x1:0x0;})[_0x3cd5('0x22')](_0x13d0b5=>_0x13d0b5[_0x3cd5('0x23')]);}get['_editorAnnotationsData'](){const _0x4edcff=new Map();for(const _0x5b0b6b of Array['from'](this['_dataCollectors']))for(const [_0x2a8a5c,_0x26a3d4]of _0x5b0b6b())_0x4edcff['set'](_0x2a8a5c,_0x26a3d4);return _0x4edcff;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x152f=['_manuallyClosed','showStack','keystrokes','update','isFocused','_forceRefresh','change:isFocused','from','top','afterInit','annotations','inlineannotations-not-allowed-with-context','selection','find','editor','mousedown','getOrderedSelectedAnnotations','focus','target','targetRect','init','domConverter','_getBalloonTargetForAnnotation','_balloon','destroy','getFirstRange','getByView','remove','document','get','isActive','setActiveAnnotation','detach','length','updatePosition','push','hasView','isAttached','visibleView','_setSelectedAnnotations','getBoundingClientRect','blur','refresh','editableElement','right','activeAnnotation','stopListening','clear','plugins','delete','_addedAnnotations','bottom','includes','context','map','view','left','hasActive','add','listenTo','switchTo','change:visibleView','collapse','inline','_selectedAnnotations','fromRect','set','_addAnnotationToBalloon','width','pluginName','Esc','editing','_removeAnnotationFromBalloon','requires','_closeAnnotation','addObserver','InlineAnnotations','focusTracker','has'];(function(_0x2c509f,_0x152f2f){const _0xd4ba22=function(_0x14f78a){while(--_0x14f78a){_0x2c509f['push'](_0x2c509f['shift']());}};_0xd4ba22(++_0x152f2f);}(_0x152f,0x11e));const _0xd4ba=function(_0x2c509f,_0x152f2f){_0x2c509f=_0x2c509f-0x0;let _0xd4ba22=_0x152f[_0x2c509f];return _0xd4ba22;};import{Plugin as _0x1cb175}from'ckeditor5/src/core.js';import _0x52a0e9 from'./annotationsuis.js';import _0x46cd39 from'./editorannotations.js';import{ContextualBalloon as _0x3498c9}from'ckeditor5/src/ui.js';import{MouseObserver as _0x33a09e}from'ckeditor5/src/engine.js';import{CKEditorError as _0x99de69,Rect as _0x5ec1a4}from'ckeditor5/src/utils.js';import'./../../theme/annotation-inline.css';export default class c extends _0x1cb175{static get[_0xd4ba('0x18')](){return[_0x46cd39,_0x3498c9,_0x52a0e9];}static get[_0xd4ba('0x14')](){return _0xd4ba('0x1b');}constructor(_0xec29d0){super(_0xec29d0),_0xec29d0['editing'][_0xd4ba('0x6')][_0xd4ba('0x1a')](_0x33a09e),this[_0xd4ba('0x43')]=!0x1,this[_0xd4ba('0x11')](_0xd4ba('0x4b'),null),this['annotations']=null,this[_0xd4ba('0x1e')]=new Set(),this[_0xd4ba('0x35')]=_0xec29d0[_0xd4ba('0x4e')][_0xd4ba('0x3b')](_0x3498c9),this[_0xd4ba('0x1')]=new Set(),this[_0xd4ba('0xf')]=[],this[_0xd4ba('0x23')]=!0x1;}[_0xd4ba('0x32')](){const _0x5f1bae=this[_0xd4ba('0x2c')][_0xd4ba('0x4e')][_0xd4ba('0x3b')](_0x52a0e9);_0x5f1bae['context']===this[_0xd4ba('0x2c')]&&(_0x5f1bae['register'](_0xd4ba('0xe'),this),this['editor'][_0xd4ba('0x20')][_0xd4ba('0x11')](_0xd4ba('0x15'),(_0x33956f,_0x35f54f)=>{const _0x378121=this[_0xd4ba('0x35')];if(this['isAttached']&&_0x378121[_0xd4ba('0x44')]){const _0x233eb3=this[_0xd4ba('0x28')][_0xd4ba('0x38')](_0x378121[_0xd4ba('0x44')]);_0x233eb3&&this[_0xd4ba('0x19')](_0x233eb3),_0x35f54f();}}));}[_0xd4ba('0x27')](){const _0x421914=this['editor']['plugins'][_0xd4ba('0x3b')](_0x52a0e9);_0x421914[_0xd4ba('0x4')]===this[_0xd4ba('0x2c')]&&(_0x421914[_0xd4ba('0x8')]()||_0x421914[_0xd4ba('0xb')](_0xd4ba('0xe')));}[_0xd4ba('0x3d')](_0x7787a9){_0x7787a9!==this[_0xd4ba('0x4b')]&&(this[_0xd4ba('0x4b')]&&(this[_0xd4ba('0x4b')][_0xd4ba('0x3c')]=!0x1),_0x7787a9&&this[_0xd4ba('0x2c')]['ui'][_0xd4ba('0x1c')][_0xd4ba('0x22')]&&(this[_0xd4ba('0x28')][_0xd4ba('0x1d')](_0x7787a9)&&this[_0xd4ba('0x12')](_0x7787a9,!0x0),_0x7787a9[_0xd4ba('0x3c')]=!0x0),_0x7787a9||this[_0xd4ba('0x45')]([]),this['activeAnnotation']=_0x7787a9);}['attach'](_0x82ad62){this['annotations']=_0x82ad62;const _0x4b9227=this[_0xd4ba('0x2c')][_0xd4ba('0x4e')]['get'](_0x52a0e9),_0x3532a6=this[_0xd4ba('0x35')];if(this['isAttached'])throw new _0x99de69('inlineannotations-attach-already-attached',this);if(_0x4b9227[_0xd4ba('0x4')]!==this[_0xd4ba('0x2c')])throw new _0x99de69(_0xd4ba('0x29'),this);const _0x2d77db=this[_0xd4ba('0x2c')][_0xd4ba('0x4e')]['get'](_0x46cd39);this[_0xd4ba('0xa')](_0x2d77db,_0xd4ba('0x48'),()=>{const _0x2afbb5=_0x2d77db[_0xd4ba('0x2e')]({'annotations':this[_0xd4ba('0x28')],'activeAnnotation':this[_0xd4ba('0x4b')]});var _0x3acca1,_0x4bcb3b;!this[_0xd4ba('0x23')]&&(_0x3acca1=_0x2afbb5,_0x4bcb3b=this[_0xd4ba('0xf')],_0x3acca1['length']===_0x4bcb3b[_0xd4ba('0x3f')]&&_0x3acca1['every'](_0xb697a5=>_0x4bcb3b[_0xd4ba('0x3')](_0xb697a5)))||(this[_0xd4ba('0x23')]=!0x1,this['_setSelectedAnnotations'](_0x2afbb5),this[_0xd4ba('0x3d')](_0x2afbb5[0x0]||null));}),this[_0xd4ba('0xa')](_0x2d77db,_0xd4ba('0x47'),(_0x52f59d,{isAnnotationTracked:_0x3832c6})=>{this[_0xd4ba('0x4b')]&&_0x3832c6(this[_0xd4ba('0x4b')])&&(this['_setSelectedAnnotations']([]),this[_0xd4ba('0x3d')](null));}),this[_0xd4ba('0xa')](this[_0xd4ba('0x2c')]['ui'][_0xd4ba('0x1c')],_0xd4ba('0x24'),(_0x23276b,_0x1cdaae,_0x3eddda)=>{_0x3eddda||this[_0xd4ba('0x3d')](null);}),this[_0xd4ba('0xa')](_0x82ad62,'remove',(_0x214d74,_0x193d4f)=>{this[_0xd4ba('0x17')](_0x193d4f),_0x193d4f===this[_0xd4ba('0x4b')]&&this[_0xd4ba('0x3d')](null);}),this[_0xd4ba('0xa')](_0x3532a6,_0xd4ba('0xc'),(_0x7985a1,_0x2df720,_0x2b6455,_0x176065)=>{_0x176065&&this[_0xd4ba('0x4c')](_0x176065);const _0x4acc4d=_0x82ad62[_0xd4ba('0x38')](_0x2b6455);_0x2b6455&&_0x4acc4d&&(this['listenTo'](_0x2b6455,'change:height',()=>{_0x3532a6[_0xd4ba('0x40')]();}),this['listenTo'](_0x2b6455,_0xd4ba('0x15'),()=>{this[_0xd4ba('0x19')](_0x4acc4d),this[_0xd4ba('0x2c')][_0xd4ba('0x16')]['view'][_0xd4ba('0x2f')]();}),this[_0xd4ba('0x4b')]!==_0x4acc4d&&this[_0xd4ba('0x3d')](_0x4acc4d));}),this[_0xd4ba('0xa')](this[_0xd4ba('0x2c')]['ui'],_0xd4ba('0x21'),()=>{_0x3532a6[_0xd4ba('0x44')]&&(_0x82ad62[_0xd4ba('0x38')](_0x3532a6['visibleView'])&&_0x3532a6[_0xd4ba('0x40')]());}),this[_0xd4ba('0xa')](this[_0xd4ba('0x2c')][_0xd4ba('0x16')][_0xd4ba('0x6')][_0xd4ba('0x3a')],_0xd4ba('0x2d'),()=>{this[_0xd4ba('0x23')]=!0x0,this['_manuallyClosed'][_0xd4ba('0x4d')]();}),this[_0xd4ba('0x2c')]['editing'][_0xd4ba('0x6')][_0xd4ba('0x3a')][_0xd4ba('0x2a')][_0xd4ba('0x49')]&&this['editor'][_0xd4ba('0x16')][_0xd4ba('0x6')]['focus'](),this[_0xd4ba('0x43')]=!0x0;}[_0xd4ba('0x3e')](){if(!this['isAttached'])throw new _0x99de69('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x560041 of this[_0xd4ba('0x1')])this[_0xd4ba('0x17')](_0x560041);this[_0xd4ba('0x4c')](),this[_0xd4ba('0x43')]=!0x1,this[_0xd4ba('0x28')]=null;}[_0xd4ba('0x36')](){this[_0xd4ba('0x43')]&&this[_0xd4ba('0x3e')]();}[_0xd4ba('0x45')](_0x3e8dfc){for(const _0x37182a of this['_selectedAnnotations'])_0x3e8dfc[_0xd4ba('0x3')](_0x37182a)||this['_manuallyClosed']['delete'](_0x37182a);for(const _0x1b33ff of this[_0xd4ba('0x28')])_0x3e8dfc[_0xd4ba('0x3')](_0x1b33ff)||this[_0xd4ba('0x17')](_0x1b33ff);if(this[_0xd4ba('0x2c')]['ui'][_0xd4ba('0x1c')][_0xd4ba('0x22')])for(const _0x1887a0 of _0x3e8dfc)this[_0xd4ba('0x12')](_0x1887a0);this['_selectedAnnotations']=_0x3e8dfc;}[_0xd4ba('0x12')](_0xf41e9a,_0x1fad0b=!0x1){this[_0xd4ba('0x1e')][_0xd4ba('0x1d')](_0xf41e9a)||(this['_addedAnnotations'][_0xd4ba('0x1d')](_0xf41e9a)||this[_0xd4ba('0x35')]['hasView'](_0xf41e9a[_0xd4ba('0x6')])||(this[_0xd4ba('0x1')]['add'](_0xf41e9a),this[_0xd4ba('0x35')][_0xd4ba('0x9')]({'stackId':_0xf41e9a['view']['id'],'view':_0xf41e9a[_0xd4ba('0x6')],'position':{'target':()=>this[_0xd4ba('0x34')](_0xf41e9a)}})),_0x1fad0b&&this[_0xd4ba('0x35')][_0xd4ba('0x1f')](_0xf41e9a[_0xd4ba('0x6')]['id']));}['_getBalloonTargetForAnnotation'](_0x105f27){const _0x1a9fcf=_0x105f27[_0xd4ba('0x30')],_0x118f4a=this[_0xd4ba('0x2c')][_0xd4ba('0x16')][_0xd4ba('0x6')],_0x2d1067=_0x118f4a[_0xd4ba('0x3a')]['selection'][_0xd4ba('0x37')](),_0x28ed2d=_0x118f4a[_0xd4ba('0x33')]['viewRangeToDom'](_0x2d1067);if(_0x28ed2d[_0xd4ba('0xd')](!0x0),_0x1a9fcf){if(_0x1a9fcf instanceof _0x5ec1a4)return _0x1a9fcf;let _0xae82b6=[];for(const _0x49f03d of _0x1a9fcf)_0xae82b6[_0xd4ba('0x41')](...(_0x3522df=_0x49f03d['getClientRects'](),Array[_0xd4ba('0x25')](_0x3522df)[_0xd4ba('0x5')](DOMRect[_0xd4ba('0x10')])));_0xae82b6=function(_0xe55a1b){const _0x23f87b=[];let _0x3d59c8=_0xe55a1b[0x0];for(let _0x15bc47=0x1;_0x15bc47<_0xe55a1b[_0xd4ba('0x3f')];_0x15bc47++)F(_0x3d59c8,_0xe55a1b[_0x15bc47])?_0x3d59c8[_0xd4ba('0x13')]+=_0xe55a1b[_0x15bc47][_0xd4ba('0x13')]:(_0x23f87b[_0xd4ba('0x41')](_0x3d59c8),_0x3d59c8=_0xe55a1b[_0x15bc47]);return _0x23f87b['push'](_0x3d59c8),_0x23f87b;}(_0xae82b6);const _0x5cab46=_0x28ed2d[_0xd4ba('0x46')]();return _0xae82b6[_0xd4ba('0x2b')](_0x1c6de3=>_0x1c6de3[_0xd4ba('0x26')]<=_0x5cab46[_0xd4ba('0x26')]&&_0x1c6de3[_0xd4ba('0x2')]>=_0x5cab46[_0xd4ba('0x2')]&&_0x1c6de3[_0xd4ba('0x7')]<=_0x5cab46[_0xd4ba('0x7')]&&_0x1c6de3['right']>=_0x5cab46['right'])||_0xae82b6[0x0];}var _0x3522df;return _0x105f27[_0xd4ba('0x31')]||_0x28ed2d;}[_0xd4ba('0x17')](_0x3bc672){this['_addedAnnotations']['has'](_0x3bc672)&&this[_0xd4ba('0x35')][_0xd4ba('0x42')](_0x3bc672[_0xd4ba('0x6')])&&(this[_0xd4ba('0x1')][_0xd4ba('0x0')](_0x3bc672),this[_0xd4ba('0x35')][_0xd4ba('0x39')](_0x3bc672[_0xd4ba('0x6')]));}[_0xd4ba('0x19')](_0x3105bc){this[_0xd4ba('0x1e')][_0xd4ba('0x9')](_0x3105bc),this[_0xd4ba('0x17')](_0x3105bc);}}function F(_0x269b9b,_0x8ff5a7){return _0x269b9b[_0xd4ba('0x26')]===_0x8ff5a7[_0xd4ba('0x26')]&&_0x269b9b['bottom']===_0x8ff5a7['bottom']&&_0x269b9b[_0xd4ba('0x4a')]===_0x8ff5a7[_0xd4ba('0x7')];}
23
+ const _0x3bba=['editing','keystrokes','updatePosition','target','editor','_addedAnnotations','refresh','_closeAnnotation','change:isFocused','register','inlineannotations-not-allowed-with-context','from','requires','_setSelectedAnnotations','right','_forceRefresh','get','isFocused','document','focusTracker','annotations','plugins','top','isAttached','view','every','includes','pluginName','Esc','collapse','getOrderedSelectedAnnotations','setActiveAnnotation','InlineAnnotations','push','add','visibleView','length','init','showStack','targetRect','inline','getByView','destroy','inlineannotations-attach-already-attached','update','set','hasView','blur','has','delete','selection','_removeAnnotationFromBalloon','focus','listenTo','attach','editableElement','map','change:height','_balloon','viewRangeToDom','_selectedAnnotations','stopListening','context','change:visibleView','detach','activeAnnotation','mousedown','_addAnnotationToBalloon','_getBalloonTargetForAnnotation','_manuallyClosed','isActive','width','bottom','clear'];(function(_0x414677,_0x3bbaba){const _0x5b6694=function(_0x59011e){while(--_0x59011e){_0x414677['push'](_0x414677['shift']());}};_0x5b6694(++_0x3bbaba);}(_0x3bba,0x176));const _0x5b66=function(_0x414677,_0x3bbaba){_0x414677=_0x414677-0x0;let _0x5b6694=_0x3bba[_0x414677];return _0x5b6694;};import{Plugin as _0x118596}from'ckeditor5/src/core.js';import _0x381fc3 from'./annotationsuis.js';import _0x15ed50 from'./editorannotations.js';import{ContextualBalloon as _0x4698d4}from'ckeditor5/src/ui.js';import{MouseObserver as _0x4708cf}from'ckeditor5/src/engine.js';import{CKEditorError as _0x45714c,Rect as _0x55ae65}from'ckeditor5/src/utils.js';import'./../../theme/annotation-inline.css';export default class c extends _0x118596{static get[_0x5b66('0x8')](){return[_0x15ed50,_0x4698d4,_0x381fc3];}static get[_0x5b66('0x17')](){return _0x5b66('0x1c');}constructor(_0x2a3416){super(_0x2a3416),_0x2a3416[_0x5b66('0x46')][_0x5b66('0x14')]['addObserver'](_0x4708cf),this[_0x5b66('0x13')]=!0x1,this['set'](_0x5b66('0x3d'),null),this[_0x5b66('0x10')]=null,this[_0x5b66('0x41')]=new Set(),this[_0x5b66('0x36')]=_0x2a3416[_0x5b66('0x11')][_0x5b66('0xc')](_0x4698d4),this[_0x5b66('0x1')]=new Set(),this[_0x5b66('0x38')]=[],this[_0x5b66('0xb')]=!0x1;}[_0x5b66('0x21')](){const _0xe7bc2c=this['editor'][_0x5b66('0x11')]['get'](_0x381fc3);_0xe7bc2c[_0x5b66('0x3a')]===this[_0x5b66('0x0')]&&(_0xe7bc2c[_0x5b66('0x5')](_0x5b66('0x24'),this),this[_0x5b66('0x0')][_0x5b66('0x47')][_0x5b66('0x29')](_0x5b66('0x18'),(_0x5692a8,_0x5c5d78)=>{const _0xb3d1f4=this[_0x5b66('0x36')];if(this[_0x5b66('0x13')]&&_0xb3d1f4['visibleView']){const _0x36fba0=this[_0x5b66('0x10')][_0x5b66('0x25')](_0xb3d1f4[_0x5b66('0x1f')]);_0x36fba0&&this[_0x5b66('0x3')](_0x36fba0),_0x5c5d78();}}));}['afterInit'](){const _0x38659a=this[_0x5b66('0x0')][_0x5b66('0x11')][_0x5b66('0xc')](_0x381fc3);_0x38659a['context']===this[_0x5b66('0x0')]&&(_0x38659a['hasActive']()||_0x38659a['switchTo']('inline'));}[_0x5b66('0x1b')](_0x559b2f){_0x559b2f!==this[_0x5b66('0x3d')]&&(this[_0x5b66('0x3d')]&&(this[_0x5b66('0x3d')]['isActive']=!0x1),_0x559b2f&&this['editor']['ui']['focusTracker'][_0x5b66('0xd')]&&(this[_0x5b66('0x10')][_0x5b66('0x2c')](_0x559b2f)&&this['_addAnnotationToBalloon'](_0x559b2f,!0x0),_0x559b2f[_0x5b66('0x42')]=!0x0),_0x559b2f||this[_0x5b66('0x9')]([]),this[_0x5b66('0x3d')]=_0x559b2f);}[_0x5b66('0x32')](_0x1efdf4){this[_0x5b66('0x10')]=_0x1efdf4;const _0x3eaf81=this[_0x5b66('0x0')][_0x5b66('0x11')][_0x5b66('0xc')](_0x381fc3),_0x298355=this[_0x5b66('0x36')];if(this[_0x5b66('0x13')])throw new _0x45714c(_0x5b66('0x27'),this);if(_0x3eaf81[_0x5b66('0x3a')]!==this['editor'])throw new _0x45714c(_0x5b66('0x6'),this);const _0x24cdf7=this['editor'][_0x5b66('0x11')]['get'](_0x15ed50);this[_0x5b66('0x31')](_0x24cdf7,_0x5b66('0x2'),()=>{const _0x3e041b=_0x24cdf7[_0x5b66('0x1a')]({'annotations':this[_0x5b66('0x10')],'activeAnnotation':this[_0x5b66('0x3d')]});var _0x3304ef,_0x5ff11d;!this['_forceRefresh']&&(_0x3304ef=_0x3e041b,_0x5ff11d=this['_selectedAnnotations'],_0x3304ef['length']===_0x5ff11d['length']&&_0x3304ef[_0x5b66('0x15')](_0xcea928=>_0x5ff11d['includes'](_0xcea928)))||(this[_0x5b66('0xb')]=!0x1,this[_0x5b66('0x9')](_0x3e041b),this[_0x5b66('0x1b')](_0x3e041b[0x0]||null));}),this['listenTo'](_0x24cdf7,_0x5b66('0x2b'),(_0x541a5d,{isAnnotationTracked:_0x354375})=>{this[_0x5b66('0x3d')]&&_0x354375(this[_0x5b66('0x3d')])&&(this[_0x5b66('0x9')]([]),this[_0x5b66('0x1b')](null));}),this['listenTo'](this[_0x5b66('0x0')]['ui'][_0x5b66('0xf')],_0x5b66('0x4'),(_0x541fd1,_0xb9d393,_0x4b240d)=>{_0x4b240d||this[_0x5b66('0x1b')](null);}),this[_0x5b66('0x31')](_0x1efdf4,'remove',(_0x1c98f3,_0x5047a6)=>{this[_0x5b66('0x2f')](_0x5047a6),_0x5047a6===this[_0x5b66('0x3d')]&&this[_0x5b66('0x1b')](null);}),this[_0x5b66('0x31')](_0x298355,_0x5b66('0x3b'),(_0x575683,_0x34a4cf,_0x5a16c6,_0x95df8)=>{_0x95df8&&this['stopListening'](_0x95df8);const _0x530994=_0x1efdf4[_0x5b66('0x25')](_0x5a16c6);_0x5a16c6&&_0x530994&&(this[_0x5b66('0x31')](_0x5a16c6,_0x5b66('0x35'),()=>{_0x298355[_0x5b66('0x48')]();}),this[_0x5b66('0x31')](_0x5a16c6,_0x5b66('0x18'),()=>{this[_0x5b66('0x3')](_0x530994),this[_0x5b66('0x0')][_0x5b66('0x46')][_0x5b66('0x14')][_0x5b66('0x30')]();}),this['activeAnnotation']!==_0x530994&&this['setActiveAnnotation'](_0x530994));}),this[_0x5b66('0x31')](this[_0x5b66('0x0')]['ui'],_0x5b66('0x28'),()=>{_0x298355['visibleView']&&(_0x1efdf4[_0x5b66('0x25')](_0x298355[_0x5b66('0x1f')])&&_0x298355[_0x5b66('0x48')]());}),this[_0x5b66('0x31')](this[_0x5b66('0x0')][_0x5b66('0x46')][_0x5b66('0x14')][_0x5b66('0xe')],_0x5b66('0x3e'),()=>{this['_forceRefresh']=!0x0,this[_0x5b66('0x41')][_0x5b66('0x45')]();}),this[_0x5b66('0x0')][_0x5b66('0x46')]['view']['document'][_0x5b66('0x2e')][_0x5b66('0x33')]&&this[_0x5b66('0x0')][_0x5b66('0x46')][_0x5b66('0x14')][_0x5b66('0x30')](),this[_0x5b66('0x13')]=!0x0;}[_0x5b66('0x3c')](){if(!this['isAttached'])throw new _0x45714c('inlineannotations-detach-not-attached',this);this[_0x5b66('0x1b')](null);for(const _0x2ba7cc of this['_addedAnnotations'])this[_0x5b66('0x2f')](_0x2ba7cc);this[_0x5b66('0x39')](),this[_0x5b66('0x13')]=!0x1,this[_0x5b66('0x10')]=null;}[_0x5b66('0x26')](){this[_0x5b66('0x13')]&&this[_0x5b66('0x3c')]();}[_0x5b66('0x9')](_0x5060b0){for(const _0x5a5eb4 of this['_selectedAnnotations'])_0x5060b0[_0x5b66('0x16')](_0x5a5eb4)||this[_0x5b66('0x41')][_0x5b66('0x2d')](_0x5a5eb4);for(const _0x1f1a94 of this[_0x5b66('0x10')])_0x5060b0[_0x5b66('0x16')](_0x1f1a94)||this[_0x5b66('0x2f')](_0x1f1a94);if(this[_0x5b66('0x0')]['ui'][_0x5b66('0xf')][_0x5b66('0xd')])for(const _0x4a7737 of _0x5060b0)this[_0x5b66('0x3f')](_0x4a7737);this[_0x5b66('0x38')]=_0x5060b0;}[_0x5b66('0x3f')](_0x2f48f0,_0x588b59=!0x1){this[_0x5b66('0x41')][_0x5b66('0x2c')](_0x2f48f0)||(this[_0x5b66('0x1')]['has'](_0x2f48f0)||this[_0x5b66('0x36')][_0x5b66('0x2a')](_0x2f48f0[_0x5b66('0x14')])||(this[_0x5b66('0x1')][_0x5b66('0x1e')](_0x2f48f0),this[_0x5b66('0x36')][_0x5b66('0x1e')]({'stackId':_0x2f48f0[_0x5b66('0x14')]['id'],'view':_0x2f48f0[_0x5b66('0x14')],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x2f48f0)}})),_0x588b59&&this['_balloon'][_0x5b66('0x22')](_0x2f48f0[_0x5b66('0x14')]['id']));}[_0x5b66('0x40')](_0x5ecebf){const _0x355195=_0x5ecebf[_0x5b66('0x49')],_0x366a27=this[_0x5b66('0x0')][_0x5b66('0x46')]['view'],_0x2aa0ba=_0x366a27[_0x5b66('0xe')][_0x5b66('0x2e')]['getFirstRange'](),_0x39426b=_0x366a27['domConverter'][_0x5b66('0x37')](_0x2aa0ba);if(_0x39426b[_0x5b66('0x19')](!0x0),_0x355195){if(_0x355195 instanceof _0x55ae65)return _0x355195;let _0x4a854d=[];for(const _0x5b6dea of _0x355195)_0x4a854d[_0x5b66('0x1d')](...(_0x575e7d=_0x5b6dea['getClientRects'](),Array[_0x5b66('0x7')](_0x575e7d)[_0x5b66('0x34')](DOMRect['fromRect'])));_0x4a854d=function(_0x28aed1){const _0x326859=[];let _0x36116b=_0x28aed1[0x0];for(let _0x28d51d=0x1;_0x28d51d<_0x28aed1[_0x5b66('0x20')];_0x28d51d++)F(_0x36116b,_0x28aed1[_0x28d51d])?_0x36116b[_0x5b66('0x43')]+=_0x28aed1[_0x28d51d][_0x5b66('0x43')]:(_0x326859[_0x5b66('0x1d')](_0x36116b),_0x36116b=_0x28aed1[_0x28d51d]);return _0x326859[_0x5b66('0x1d')](_0x36116b),_0x326859;}(_0x4a854d);const _0x5c25a7=_0x39426b['getBoundingClientRect']();return _0x4a854d['find'](_0x140b4b=>_0x140b4b['top']<=_0x5c25a7[_0x5b66('0x12')]&&_0x140b4b[_0x5b66('0x44')]>=_0x5c25a7[_0x5b66('0x44')]&&_0x140b4b['left']<=_0x5c25a7['left']&&_0x140b4b[_0x5b66('0xa')]>=_0x5c25a7['right'])||_0x4a854d[0x0];}var _0x575e7d;return _0x5ecebf[_0x5b66('0x23')]||_0x39426b;}['_removeAnnotationFromBalloon'](_0x5ae025){this[_0x5b66('0x1')]['has'](_0x5ae025)&&this['_balloon'][_0x5b66('0x2a')](_0x5ae025['view'])&&(this[_0x5b66('0x1')][_0x5b66('0x2d')](_0x5ae025),this[_0x5b66('0x36')]['remove'](_0x5ae025[_0x5b66('0x14')]));}['_closeAnnotation'](_0x546d34){this[_0x5b66('0x41')][_0x5b66('0x1e')](_0x546d34),this[_0x5b66('0x2f')](_0x546d34);}}function F(_0x17a4a1,_0x2ec65f){return _0x17a4a1['top']===_0x2ec65f[_0x5b66('0x12')]&&_0x17a4a1[_0x5b66('0x44')]===_0x2ec65f[_0x5b66('0x44')]&&_0x17a4a1[_0x5b66('0xa')]===_0x2ec65f['left'];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1cf1=['has','_showBalloon','view','isDirty','keyCode','detach','northArrowSouth','hasDomSelection','_annotationToNarrowView','register','narrowsidebar-detach-not-attached','isVisible','delete','EditorAnnotations','narrowsidebar-attach-already-attached','_integrateWithEditorAnnotations','high','values','change:container','focusableElements','ready','focus','_domEmitter','blur','_refreshPositioning','content','Esc','annotationType','off','detachFromDom','locale','requires','contains','cancel','init','attach','addEventListener','getByView','resize','length','ck-sidebar--narrow','stopPropagation','_attachListeners','removeEventListener','bodyCollection','destroy','addAnnotation','target','_updateBalloonPosition','stopListening','activeAnnotation','preventClosingBalloon','esc','unpin','element','preventDefault','balloonPanelView','clear','northArrowSouthEast','_attachToContainer','change:height','remove','_detachFromContainer','refresh','southArrowNorth','setActiveAnnotation','listenTo','plugins','_editorAnnotations','isAttached','_destroyEditorAnnotationsIntegration','execute','_refreshPositioningDebounced','defaultPositions','first','_manuallyClosedAnnotationViews','annotations','context','refreshPositioning','add','get','mousedown','create','_detachListeners','number','rearrange','set','_setSelectedAnnotations','_selectedAnnotations','includes','_hideBalloon','editors','stop','narrowSidebar','northArrowSouthWest'];(function(_0x2f0518,_0x1cf1b6){const _0x13ef7e=function(_0x50ea2d){while(--_0x50ea2d){_0x2f0518['push'](_0x2f0518['shift']());}};_0x13ef7e(++_0x1cf1b6);}(_0x1cf1,0x129));const _0x13ef=function(_0x2f0518,_0x1cf1b6){_0x2f0518=_0x2f0518-0x0;let _0x13ef7e=_0x1cf1[_0x2f0518];return _0x13ef7e;};import{ContextPlugin as _0x7fb536,Context as _0x79d6fc}from'ckeditor5/src/core.js';import _0x79385c from'./annotationsuis.js';import _0x523122 from'./sidebar.js';import _0x5096d1 from'./view/annotationcounterbuttonview.js';import{BalloonPanelView as _0x3108e7,BodyCollection as _0xe7834c}from'ckeditor5/src/ui.js';import{CKEditorError as _0x269634,DomEmitterMixin as _0x587abd,keyCodes as _0x47b4d0,Collection as _0x2aa39c}from'ckeditor5/src/utils.js';import'../../theme/sidebar-narrow.css';import{debounce as _0x244327}from'lodash-es';import _0x11ca24 from'./editorannotations.js';export default class i extends _0x7fb536{static get[_0x13ef('0x13')](){return[_0x523122,_0x79385c];}static get['pluginName'](){return'NarrowSidebar';}constructor(_0x5122ee){super(_0x5122ee),this[_0x13ef('0x39')]=!0x1,this[_0x13ef('0x3f')]=new Set(),this[_0x13ef('0xa')]=Object[_0x13ef('0x46')](_0x587abd),this[_0x13ef('0x5b')]=new Map(),this[_0x13ef('0x4a')](_0x13ef('0x26'),null),this[_0x13ef('0x40')]=null,this[_0x13ef('0x4c')]=[],this[_0x13ef('0x38')]=new _0x2aa39c(),this[_0x13ef('0x3c')]=_0x244327(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}[_0x13ef('0x16')](){this[_0x13ef('0x41')][_0x13ef('0x37')][_0x13ef('0x44')](_0x79385c)[_0x13ef('0x5c')](_0x13ef('0x51'),this),this[_0x13ef('0x20')]=new _0xe7834c(this[_0x13ef('0x41')][_0x13ef('0x12')]),this['balloonPanelView']=new _0x3108e7(this[_0x13ef('0x41')]['locale']),this[_0x13ef('0x20')]['attachToDom'](),this[_0x13ef('0x20')]['add'](this['balloonPanelView']);}[_0x13ef('0x17')](_0x4d42c5){this[_0x13ef('0x40')]=_0x4d42c5;const _0x43c0ac=this[_0x13ef('0x41')][_0x13ef('0x37')][_0x13ef('0x44')](_0x523122),_0x45a6c0=this[_0x13ef('0x2c')];if(_0x43c0ac['_annotations']=_0x4d42c5,this['isAttached'])throw new _0x269634(_0x13ef('0x2'),this);this[_0x13ef('0x39')]=!0x0,this[_0x13ef('0x36')](_0x43c0ac,'set:container',()=>{this['detach'](),this['listenTo'](_0x43c0ac,_0x13ef('0x6'),_0x2f91cc=>{_0x2f91cc[_0x13ef('0x10')](),this['attach'](_0x4d42c5);});}),_0x43c0ac[_0x13ef('0x2f')]({'viewClass':_0x13ef('0x1c'),'spaceBetweenItems':0x5});const _0x493aab=_0x2bc09b=>{const _0x25c97b=new _0x5096d1(this[_0x13ef('0x41')]['locale']);_0x43c0ac[_0x13ef('0x22')](_0x2bc09b,_0x25c97b),this[_0x13ef('0x5b')][_0x13ef('0x4a')](_0x2bc09b,_0x25c97b),_0x25c97b['bind'](_0x13ef('0x56'),_0x13ef('0xf'),_0x13ef('0x48'))['to'](_0x2bc09b['view'],_0x13ef('0x56'),'type',_0x13ef('0x1b')),_0x25c97b['on'](_0x13ef('0x3b'),()=>{this[_0x13ef('0x3f')]['clear'](),_0x45a6c0[_0x13ef('0xd')]['first']!==_0x2bc09b[_0x13ef('0x55')]?(this[_0x13ef('0x54')](_0x2bc09b),_0x2bc09b[_0x13ef('0x55')]['element'][_0x13ef('0x9')](),this[_0x13ef('0x35')](_0x2bc09b)):this['setActiveAnnotation'](null);});};for(const _0x487366 of _0x4d42c5)_0x493aab(_0x487366);this[_0x13ef('0x36')](_0x4d42c5,_0x13ef('0x43'),(_0x4ecbcd,_0x4b46d3)=>{_0x493aab(_0x4b46d3);}),this[_0x13ef('0x36')](_0x4d42c5,_0x13ef('0x31'),(_0x59b084,_0x9a3071,_0x24b05f)=>{this['_annotationToNarrowView'][_0x13ef('0x44')](_0x9a3071)[_0x13ef('0x21')](),this[_0x13ef('0x5b')][_0x13ef('0x0')](_0x9a3071),_0x43c0ac[_0x13ef('0x49')]({'removedAnnotation':_0x9a3071,'previousAnnotation':_0x4d42c5[_0x13ef('0x44')](_0x24b05f-0x1),'nextAnnotation':_0x4d42c5[_0x13ef('0x44')](_0x24b05f+0x1)}),_0x9a3071===this[_0x13ef('0x26')]&&this[_0x13ef('0x35')](null);},{'priority':'low'}),this[_0x13ef('0x36')](_0x4d42c5,_0x13ef('0x9'),(_0x3eb56f,_0x1d8ffe)=>{this['setActiveAnnotation'](_0x1d8ffe);}),this[_0x13ef('0x36')](_0x4d42c5,_0x13ef('0xb'),()=>{this[_0x13ef('0x35')](null);}),this[_0x13ef('0xa')]['listenTo'](document,'keydown',(_0x1022e6,_0x156a96)=>{_0x156a96[_0x13ef('0x57')]===_0x47b4d0[_0x13ef('0x28')]&&_0x45a6c0[_0x13ef('0x5e')]&&(this[_0x13ef('0x3f')]['add'](_0x45a6c0[_0x13ef('0xd')][_0x13ef('0x3e')]),this[_0x13ef('0x4e')](),_0x156a96[_0x13ef('0x1d')](),_0x156a96[_0x13ef('0x2b')]());}),this[_0x13ef('0xa')][_0x13ef('0x36')](document,_0x13ef('0x45'),(_0x55af6c,_0x26f59f)=>{const _0x18e907=_0x26f59f['target'];_0x45a6c0[_0x13ef('0x5e')]&&_0x45a6c0[_0x13ef('0x2a')]['contains'](_0x18e907)||_0x43c0ac[_0x13ef('0x55')]['element'][_0x13ef('0x14')](_0x18e907)||_0x55af6c[_0x13ef('0x27')]||this[_0x13ef('0x26')]&&this['activeAnnotation'][_0x13ef('0x7')]['find'](_0x6e66bf=>_0x6e66bf[_0x13ef('0x14')](_0x18e907))||(this['_manuallyClosedAnnotationViews'][_0x13ef('0x2d')](),this[_0x13ef('0x4e')](),this[_0x13ef('0x35')](null));});const _0x2bef17=this[_0x13ef('0x41')]instanceof _0x79d6fc?this[_0x13ef('0x41')][_0x13ef('0x4f')]:new _0x2aa39c([this['context']]);for(const _0x291d31 of _0x2bef17)this[_0x13ef('0x3')](_0x291d31);this[_0x13ef('0x36')](_0x2bef17,_0x13ef('0x43'),(_0x4a6ac3,_0x45159)=>{this['listenTo'](_0x45159,_0x13ef('0x8'),()=>{this['_integrateWithEditorAnnotations'](_0x45159);});}),this['listenTo'](_0x2bef17,_0x13ef('0x31'),(_0x38d31a,_0x219308)=>{_0x219308[_0x13ef('0x37')][_0x13ef('0x53')](_0x13ef('0x1'))&&this[_0x13ef('0x3a')](_0x219308['plugins'][_0x13ef('0x44')](_0x13ef('0x1')));}),window[_0x13ef('0x18')](_0x13ef('0x1a'),this['_refreshPositioningDebounced']),this['_refreshPositioning']();}[_0x13ef('0x35')](_0x126854){if(_0x126854===this[_0x13ef('0x26')])return;const _0x361ba0=this['context'][_0x13ef('0x37')]['get'](_0x523122);if(_0x361ba0[_0x13ef('0x33')]({'blurredAnnotation':this[_0x13ef('0x26')],'activatedAnnotation':_0x126854,'disableAnimationOnActivatedAnnotation':!0x0}),_0x126854)_0x361ba0['getSidebarItemView'](_0x126854)?this[_0x13ef('0x54')](_0x126854):this[_0x13ef('0x4e')]();else this[_0x13ef('0x4e')]();this[_0x13ef('0x26')]=_0x126854;}[_0x13ef('0x58')](){if(!this['isAttached'])throw new _0x269634(_0x13ef('0x5d'),this);this[_0x13ef('0x35')](null);const _0x1450be=this[_0x13ef('0x41')][_0x13ef('0x37')]['get'](_0x523122);this[_0x13ef('0x4e')](),Array['from'](this[_0x13ef('0x5b')][_0x13ef('0x5')](),_0x124dff=>_0x124dff['destroy']()),this[_0x13ef('0x5b')][_0x13ef('0x2d')](),_0x1450be[_0x13ef('0x32')](this[_0x13ef('0x40')]),this['stopListening'](),this[_0x13ef('0xa')][_0x13ef('0x25')](),this['context']instanceof _0x79d6fc&&this['stopListening'](this['context']['editors']);for(const _0x528603 of Array['from'](this['_editorAnnotations']))this[_0x13ef('0x3a')](_0x528603);window[_0x13ef('0x1f')](_0x13ef('0x1a'),this[_0x13ef('0x3c')]),this[_0x13ef('0x3c')][_0x13ef('0x15')](),this[_0x13ef('0x4c')]=[],this['isAttached']=!0x1,this['annotations']=null;}[_0x13ef('0x21')](){this[_0x13ef('0x39')]&&this[_0x13ef('0x58')](),this[_0x13ef('0x20')][_0x13ef('0x11')]();}['_integrateWithEditorAnnotations'](_0x32df4f){const _0x457654=_0x32df4f['plugins'][_0x13ef('0x44')](_0x11ca24),_0xa4eba=this['context'][_0x13ef('0x37')][_0x13ef('0x44')](_0x523122),_0x102503=this[_0x13ef('0x40')],_0x33226c=this[_0x13ef('0x2c')],_0x1c671c=()=>{const _0xd1648=_0x457654['getOrderedSelectedAnnotations']({'annotations':this[_0x13ef('0x40')],'activeAnnotation':this[_0x13ef('0x26')]});this[_0x13ef('0x4b')](_0xd1648),this['setActiveAnnotation'](_0xd1648[0x0]||null);};this[_0x13ef('0x36')](_0x457654,_0x13ef('0x33'),_0x1c671c),this[_0x13ef('0x36')](_0x457654,'blur',(_0x4199ce,{isAnnotationTracked:_0x59045b})=>{this[_0x13ef('0x26')]&&_0x59045b(this[_0x13ef('0x26')])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this[_0x13ef('0x36')](_0x457654,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x102503,_0x13ef('0xb'),_0x2f9768=>{_0x457654['hasDomSelection']()&&_0x2f9768[_0x13ef('0x50')]();},{'priority':_0x13ef('0x4')}),this[_0x13ef('0x36')](this[_0x13ef('0xa')],_0x13ef('0x45'),(_0x5a87d7,_0x395ac3)=>{const _0x554208=_0x395ac3[_0x13ef('0x23')];_0x33226c[_0x13ef('0x5e')]&&_0x33226c[_0x13ef('0x2a')][_0x13ef('0x14')](_0x554208)||_0xa4eba[_0x13ef('0x55')][_0x13ef('0x2a')][_0x13ef('0x14')](_0x554208)||this[_0x13ef('0x26')]&&_0x457654[_0x13ef('0x5a')]()&&(_0x1c671c(),_0x5a87d7[_0x13ef('0x27')]=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x457654);}[_0x13ef('0x3a')](_0x1b04b7){_0x1b04b7&&(this[_0x13ef('0x25')](_0x1b04b7),this['_editorAnnotations'][_0x13ef('0x31')](_0x1b04b7));}['_setSelectedAnnotations'](_0x175053){for(const _0x579deb of this[_0x13ef('0x4c')])_0x175053[_0x13ef('0x4d')](_0x579deb)||this[_0x13ef('0x3f')][_0x13ef('0x0')](_0x579deb[_0x13ef('0x55')]);this[_0x13ef('0x4c')]=_0x175053;}[_0x13ef('0xc')](){const _0x3bf741=this['balloonPanelView'];this[_0x13ef('0x40')][_0x13ef('0x42')](),_0x3bf741[_0x13ef('0x5e')]&&this['_updateBalloonPosition']();}[_0x13ef('0x54')](_0x5c6e70){if(this[_0x13ef('0x3f')][_0x13ef('0x53')](_0x5c6e70['view']))return;const _0x1b2c78=this[_0x13ef('0x2c')][_0x13ef('0xd')][_0x13ef('0x3e')];_0x1b2c78!==_0x5c6e70[_0x13ef('0x55')]?(_0x1b2c78&&this['_detachListeners'](_0x1b2c78),this[_0x13ef('0x1e')](_0x5c6e70[_0x13ef('0x55')]),this[_0x13ef('0x2c')][_0x13ef('0xd')]['clear'](),this[_0x13ef('0x2c')][_0x13ef('0xd')][_0x13ef('0x43')](_0x5c6e70[_0x13ef('0x55')]),this[_0x13ef('0x24')]()):this[_0x13ef('0x24')]();}[_0x13ef('0x24')](){const _0x294a9c=this[_0x13ef('0x2c')][_0x13ef('0xd')][_0x13ef('0x3e')],_0x3dc722=_0x294a9c&&this[_0x13ef('0x40')][_0x13ef('0x19')](_0x294a9c);if(!_0x3dc722||!this[_0x13ef('0x5b')][_0x13ef('0x53')](_0x3dc722))return;const _0x3f1882=this[_0x13ef('0x5b')][_0x13ef('0x44')](_0x3dc722)[_0x13ef('0x2a')],_0x35853f=function(){const _0x1c22f7=_0x3108e7[_0x13ef('0x3d')];return[_0x1c22f7['southArrowNorthEast'],_0x1c22f7[_0x13ef('0x2e')],_0x1c22f7[_0x13ef('0x34')],_0x1c22f7[_0x13ef('0x59')],_0x1c22f7['southArrowNorthWest'],_0x1c22f7[_0x13ef('0x52')]];}();this[_0x13ef('0x2c')]['pin']({'target':_0x3f1882,'positions':_0x35853f});}[_0x13ef('0x4e')](){const _0x13c351=this[_0x13ef('0x2c')],_0x241c13=_0x13c351[_0x13ef('0xd')][_0x13ef('0x3e')];_0x241c13&&(this[_0x13ef('0x47')](_0x241c13),_0x13c351[_0x13ef('0x29')](),_0x13c351[_0x13ef('0xd')][_0x13ef('0x2d')]());}[_0x13ef('0x1e')](_0x1aafc6){this[_0x13ef('0x36')](_0x1aafc6,_0x13ef('0x30'),()=>this[_0x13ef('0x24')]()),this[_0x13ef('0x36')](_0x1aafc6,_0x13ef('0xe'),(_0x78f7a5,_0x5ddfcd)=>{this[_0x13ef('0x3f')][_0x13ef('0x43')](_0x1aafc6),this['_hideBalloon'](),_0x5ddfcd();});}['_detachListeners'](_0x75e736){this[_0x13ef('0x25')](_0x75e736);}}
23
+ const _0x574d=['hasDomSelection','annotationType','focus','narrowsidebar-attach-already-attached','getByView','pluginName','execute','locale','add','first','Esc','_manuallyClosedAnnotationViews','get','setActiveAnnotation','view','from','mousedown','editors','_setSelectedAnnotations','remove','refreshPositioning','isDirty','annotations','has','refresh','target','stopListening','listenTo','set','addAnnotation','delete','_destroyEditorAnnotationsIntegration','high','init','northArrowSouthWest','northArrowSouthEast','change:height','plugins','_refreshPositioningDebounced','ready','removeEventListener','keyCode','detach','southArrowNorthEast','_showBalloon','register','resize','activeAnnotation','blur','uiUpdate','clear','length','EditorAnnotations','_updateBalloonPosition','element','_editorAnnotations','keydown','_domEmitter','_hideBalloon','_attachToContainer','preventDefault','northArrowSouth','destroy','set:container','_attachListeners','isVisible','_refreshPositioning','change:container','pin','low','contains','_detachListeners','ck-sidebar--narrow','bind','find','getSidebarItemView','_annotationToNarrowView','type','requires','context','_annotations','bodyCollection','southArrowNorth','content','cancel','_selectedAnnotations','attach','preventClosingBalloon','southArrowNorthWest','esc','_integrateWithEditorAnnotations','detachFromDom','addEventListener','balloonPanelView','isAttached','focusableElements'];(function(_0x182322,_0x574d05){const _0xc3e60=function(_0x41e68a){while(--_0x41e68a){_0x182322['push'](_0x182322['shift']());}};_0xc3e60(++_0x574d05);}(_0x574d,0xc9));const _0xc3e6=function(_0x182322,_0x574d05){_0x182322=_0x182322-0x0;let _0xc3e60=_0x574d[_0x182322];return _0xc3e60;};import{ContextPlugin as _0x53391f,Context as _0x3a652e}from'ckeditor5/src/core.js';import _0x4264f3 from'./annotationsuis.js';import _0x4a9ab8 from'./sidebar.js';import _0x30c079 from'./view/annotationcounterbuttonview.js';import{BalloonPanelView as _0x462b7e,BodyCollection as _0x7a6fa3}from'ckeditor5/src/ui.js';import{CKEditorError as _0x51231a,DomEmitterMixin as _0x513b56,keyCodes as _0x37094d,Collection as _0x172944}from'ckeditor5/src/utils.js';import'../../theme/sidebar-narrow.css';import{debounce as _0x4f2eb1}from'lodash-es';import _0x29332c from'./editorannotations.js';export default class i extends _0x53391f{static get[_0xc3e6('0x45')](){return[_0x4a9ab8,_0x4264f3];}static get[_0xc3e6('0x5c')](){return'NarrowSidebar';}constructor(_0x227923){super(_0x227923),this['isAttached']=!0x1,this[_0xc3e6('0x2')]=new Set(),this[_0xc3e6('0x30')]=Object['create'](_0x513b56),this[_0xc3e6('0x43')]=new Map(),this[_0xc3e6('0x13')]('activeAnnotation',null),this[_0xc3e6('0xd')]=null,this['_selectedAnnotations']=[],this[_0xc3e6('0x2e')]=new _0x172944(),this[_0xc3e6('0x1d')]=_0x4f2eb1(()=>{this[_0xc3e6('0x39')]();},0xfa,{'leading':!0x1});}[_0xc3e6('0x18')](){this[_0xc3e6('0x46')][_0xc3e6('0x1c')][_0xc3e6('0x3')](_0x4264f3)[_0xc3e6('0x24')]('narrowSidebar',this),this[_0xc3e6('0x48')]=new _0x7a6fa3(this['context'][_0xc3e6('0x5e')]),this[_0xc3e6('0x54')]=new _0x462b7e(this['context'][_0xc3e6('0x5e')]),this['bodyCollection']['attachToDom'](),this[_0xc3e6('0x48')][_0xc3e6('0x5f')](this['balloonPanelView']);}[_0xc3e6('0x4d')](_0x4bdfda){this[_0xc3e6('0xd')]=_0x4bdfda;const _0x1e87e3=this[_0xc3e6('0x46')]['plugins'][_0xc3e6('0x3')](_0x4a9ab8),_0x8b56be=this[_0xc3e6('0x54')];if(_0x1e87e3[_0xc3e6('0x47')]=_0x4bdfda,this['isAttached'])throw new _0x51231a(_0xc3e6('0x5a'),this);this['isAttached']=!0x0,this[_0xc3e6('0x12')](_0x1e87e3,_0xc3e6('0x36'),()=>{this[_0xc3e6('0x21')](),this[_0xc3e6('0x12')](_0x1e87e3,_0xc3e6('0x3a'),_0x2c27fe=>{_0x2c27fe['off'](),this[_0xc3e6('0x4d')](_0x4bdfda);});}),_0x1e87e3[_0xc3e6('0x32')]({'viewClass':_0xc3e6('0x3f'),'spaceBetweenItems':0x5});const _0x706c05=_0xd52a98=>{const _0x5ae877=new _0x30c079(this[_0xc3e6('0x46')]['locale']);_0x1e87e3[_0xc3e6('0x14')](_0xd52a98,_0x5ae877),this[_0xc3e6('0x43')][_0xc3e6('0x13')](_0xd52a98,_0x5ae877),_0x5ae877[_0xc3e6('0x40')]('isDirty',_0xc3e6('0x58'),'number')['to'](_0xd52a98['view'],_0xc3e6('0xc'),_0xc3e6('0x44'),_0xc3e6('0x2a')),_0x5ae877['on'](_0xc3e6('0x5d'),()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x8b56be[_0xc3e6('0x4a')][_0xc3e6('0x0')]!==_0xd52a98[_0xc3e6('0x5')]?(this[_0xc3e6('0x23')](_0xd52a98),_0xd52a98[_0xc3e6('0x5')][_0xc3e6('0x2d')][_0xc3e6('0x59')](),this[_0xc3e6('0x4')](_0xd52a98)):this[_0xc3e6('0x4')](null);});};for(const _0x425d7f of _0x4bdfda)_0x706c05(_0x425d7f);this['listenTo'](_0x4bdfda,_0xc3e6('0x5f'),(_0x4622da,_0x317d2b)=>{_0x706c05(_0x317d2b);}),this['listenTo'](_0x4bdfda,_0xc3e6('0xa'),(_0x147400,_0x248252,_0x400e97)=>{this[_0xc3e6('0x43')]['get'](_0x248252)[_0xc3e6('0x35')](),this[_0xc3e6('0x43')][_0xc3e6('0x15')](_0x248252),_0x1e87e3['rearrange']({'removedAnnotation':_0x248252,'previousAnnotation':_0x4bdfda[_0xc3e6('0x3')](_0x400e97-0x1),'nextAnnotation':_0x4bdfda[_0xc3e6('0x3')](_0x400e97+0x1)}),_0x248252===this[_0xc3e6('0x26')]&&this[_0xc3e6('0x4')](null);},{'priority':_0xc3e6('0x3c')}),this['listenTo'](_0x4bdfda,_0xc3e6('0x59'),(_0x510a8f,_0xcc0440)=>{this[_0xc3e6('0x4')](_0xcc0440);}),this['listenTo'](_0x4bdfda,'blur',()=>{this[_0xc3e6('0x4')](null);}),this['_domEmitter'][_0xc3e6('0x12')](document,_0xc3e6('0x2f'),(_0x279f2f,_0x1604c6)=>{_0x1604c6[_0xc3e6('0x20')]===_0x37094d[_0xc3e6('0x50')]&&_0x8b56be[_0xc3e6('0x38')]&&(this[_0xc3e6('0x2')]['add'](_0x8b56be[_0xc3e6('0x4a')][_0xc3e6('0x0')]),this[_0xc3e6('0x31')](),_0x1604c6['stopPropagation'](),_0x1604c6[_0xc3e6('0x33')]());}),this[_0xc3e6('0x30')][_0xc3e6('0x12')](document,_0xc3e6('0x7'),(_0x3f4f41,_0x550028)=>{const _0x5151d4=_0x550028['target'];_0x8b56be[_0xc3e6('0x38')]&&_0x8b56be[_0xc3e6('0x2d')]['contains'](_0x5151d4)||_0x1e87e3[_0xc3e6('0x5')][_0xc3e6('0x2d')][_0xc3e6('0x3d')](_0x5151d4)||_0x3f4f41[_0xc3e6('0x4e')]||this['activeAnnotation']&&this['activeAnnotation'][_0xc3e6('0x56')][_0xc3e6('0x41')](_0x124ef4=>_0x124ef4[_0xc3e6('0x3d')](_0x5151d4))||(this[_0xc3e6('0x2')][_0xc3e6('0x29')](),this[_0xc3e6('0x31')](),this[_0xc3e6('0x4')](null));});const _0x1fbc72=this[_0xc3e6('0x46')]instanceof _0x3a652e?this[_0xc3e6('0x46')][_0xc3e6('0x8')]:new _0x172944([this[_0xc3e6('0x46')]]);for(const _0x471b3e of _0x1fbc72)this['_integrateWithEditorAnnotations'](_0x471b3e);this['listenTo'](_0x1fbc72,_0xc3e6('0x5f'),(_0x45bc34,_0x18111e)=>{this['listenTo'](_0x18111e,_0xc3e6('0x1e'),()=>{this[_0xc3e6('0x51')](_0x18111e);});}),this[_0xc3e6('0x12')](_0x1fbc72,_0xc3e6('0xa'),(_0x321392,_0x4340e1)=>{_0x4340e1[_0xc3e6('0x1c')][_0xc3e6('0xe')]('EditorAnnotations')&&this[_0xc3e6('0x16')](_0x4340e1[_0xc3e6('0x1c')][_0xc3e6('0x3')](_0xc3e6('0x2b')));}),window[_0xc3e6('0x53')](_0xc3e6('0x25'),this[_0xc3e6('0x1d')]),this[_0xc3e6('0x39')]();}[_0xc3e6('0x4')](_0x467d79){if(_0x467d79===this[_0xc3e6('0x26')])return;const _0x3775ec=this[_0xc3e6('0x46')][_0xc3e6('0x1c')][_0xc3e6('0x3')](_0x4a9ab8);if(_0x3775ec[_0xc3e6('0xf')]({'blurredAnnotation':this[_0xc3e6('0x26')],'activatedAnnotation':_0x467d79,'disableAnimationOnActivatedAnnotation':!0x0}),_0x467d79)_0x3775ec[_0xc3e6('0x42')](_0x467d79)?this[_0xc3e6('0x23')](_0x467d79):this[_0xc3e6('0x31')]();else this[_0xc3e6('0x31')]();this[_0xc3e6('0x26')]=_0x467d79;}[_0xc3e6('0x21')](){if(!this[_0xc3e6('0x55')])throw new _0x51231a('narrowsidebar-detach-not-attached',this);this[_0xc3e6('0x4')](null);const _0x54f319=this[_0xc3e6('0x46')][_0xc3e6('0x1c')][_0xc3e6('0x3')](_0x4a9ab8);this[_0xc3e6('0x31')](),Array[_0xc3e6('0x6')](this[_0xc3e6('0x43')]['values'](),_0x2826c0=>_0x2826c0['destroy']()),this[_0xc3e6('0x43')][_0xc3e6('0x29')](),_0x54f319['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this[_0xc3e6('0x46')]instanceof _0x3a652e&&this['stopListening'](this[_0xc3e6('0x46')][_0xc3e6('0x8')]);for(const _0x27a5cb of Array['from'](this[_0xc3e6('0x2e')]))this[_0xc3e6('0x16')](_0x27a5cb);window[_0xc3e6('0x1f')](_0xc3e6('0x25'),this['_refreshPositioningDebounced']),this[_0xc3e6('0x1d')][_0xc3e6('0x4b')](),this['_selectedAnnotations']=[],this[_0xc3e6('0x55')]=!0x1,this[_0xc3e6('0xd')]=null;}[_0xc3e6('0x35')](){this[_0xc3e6('0x55')]&&this[_0xc3e6('0x21')](),this['bodyCollection'][_0xc3e6('0x52')]();}[_0xc3e6('0x51')](_0x29e427){const _0x4c84fc=_0x29e427[_0xc3e6('0x1c')][_0xc3e6('0x3')](_0x29332c),_0x2efd47=this[_0xc3e6('0x46')][_0xc3e6('0x1c')]['get'](_0x4a9ab8),_0x29385c=this[_0xc3e6('0xd')],_0x29127f=this[_0xc3e6('0x54')],_0x569dcc=()=>{const _0x1f13f8=_0x4c84fc['getOrderedSelectedAnnotations']({'annotations':this[_0xc3e6('0xd')],'activeAnnotation':this[_0xc3e6('0x26')]});this[_0xc3e6('0x9')](_0x1f13f8),this[_0xc3e6('0x4')](_0x1f13f8[0x0]||null);};this['listenTo'](_0x4c84fc,'refresh',_0x569dcc),this[_0xc3e6('0x12')](_0x4c84fc,_0xc3e6('0x27'),(_0x277871,{isAnnotationTracked:_0x16e814})=>{this[_0xc3e6('0x26')]&&_0x16e814(this['activeAnnotation'])&&(this[_0xc3e6('0x9')]([]),this[_0xc3e6('0x4')](null));}),this[_0xc3e6('0x12')](_0x4c84fc,_0xc3e6('0x28'),()=>{this[_0xc3e6('0x1d')]();}),this[_0xc3e6('0x12')](_0x29385c,_0xc3e6('0x27'),_0x5d54fe=>{_0x4c84fc['hasDomSelection']()&&_0x5d54fe['stop']();},{'priority':_0xc3e6('0x17')}),this[_0xc3e6('0x12')](this[_0xc3e6('0x30')],_0xc3e6('0x7'),(_0x5aa40a,_0x224fbe)=>{const _0x234ba6=_0x224fbe[_0xc3e6('0x10')];_0x29127f[_0xc3e6('0x38')]&&_0x29127f[_0xc3e6('0x2d')][_0xc3e6('0x3d')](_0x234ba6)||_0x2efd47['view'][_0xc3e6('0x2d')][_0xc3e6('0x3d')](_0x234ba6)||this['activeAnnotation']&&_0x4c84fc[_0xc3e6('0x57')]()&&(_0x569dcc(),_0x5aa40a[_0xc3e6('0x4e')]=!0x0);},{'priority':_0xc3e6('0x17')}),this['_editorAnnotations'][_0xc3e6('0x5f')](_0x4c84fc);}['_destroyEditorAnnotationsIntegration'](_0xa07231){_0xa07231&&(this['stopListening'](_0xa07231),this[_0xc3e6('0x2e')][_0xc3e6('0xa')](_0xa07231));}[_0xc3e6('0x9')](_0x4c30a1){for(const _0xbe5f3e of this[_0xc3e6('0x4c')])_0x4c30a1['includes'](_0xbe5f3e)||this[_0xc3e6('0x2')]['delete'](_0xbe5f3e['view']);this['_selectedAnnotations']=_0x4c30a1;}[_0xc3e6('0x39')](){const _0x27906f=this['balloonPanelView'];this[_0xc3e6('0xd')][_0xc3e6('0xb')](),_0x27906f[_0xc3e6('0x38')]&&this[_0xc3e6('0x2c')]();}['_showBalloon'](_0x4344da){if(this[_0xc3e6('0x2')][_0xc3e6('0xe')](_0x4344da[_0xc3e6('0x5')]))return;const _0x41972c=this[_0xc3e6('0x54')][_0xc3e6('0x4a')][_0xc3e6('0x0')];_0x41972c!==_0x4344da[_0xc3e6('0x5')]?(_0x41972c&&this[_0xc3e6('0x3e')](_0x41972c),this[_0xc3e6('0x37')](_0x4344da[_0xc3e6('0x5')]),this[_0xc3e6('0x54')]['content'][_0xc3e6('0x29')](),this[_0xc3e6('0x54')][_0xc3e6('0x4a')]['add'](_0x4344da[_0xc3e6('0x5')]),this[_0xc3e6('0x2c')]()):this['_updateBalloonPosition']();}[_0xc3e6('0x2c')](){const _0x4b7b71=this[_0xc3e6('0x54')]['content'][_0xc3e6('0x0')],_0x29f142=_0x4b7b71&&this[_0xc3e6('0xd')][_0xc3e6('0x5b')](_0x4b7b71);if(!_0x29f142||!this[_0xc3e6('0x43')][_0xc3e6('0xe')](_0x29f142))return;const _0x2a0ee3=this[_0xc3e6('0x43')][_0xc3e6('0x3')](_0x29f142)[_0xc3e6('0x2d')],_0x13fc43=function(){const _0x4dd538=_0x462b7e['defaultPositions'];return[_0x4dd538[_0xc3e6('0x22')],_0x4dd538[_0xc3e6('0x1a')],_0x4dd538[_0xc3e6('0x49')],_0x4dd538[_0xc3e6('0x34')],_0x4dd538[_0xc3e6('0x4f')],_0x4dd538[_0xc3e6('0x19')]];}();this[_0xc3e6('0x54')][_0xc3e6('0x3b')]({'target':_0x2a0ee3,'positions':_0x13fc43});}['_hideBalloon'](){const _0x44fe08=this[_0xc3e6('0x54')],_0x13273c=_0x44fe08[_0xc3e6('0x4a')][_0xc3e6('0x0')];_0x13273c&&(this[_0xc3e6('0x3e')](_0x13273c),_0x44fe08['unpin'](),_0x44fe08[_0xc3e6('0x4a')]['clear']());}[_0xc3e6('0x37')](_0x5f212f){this[_0xc3e6('0x12')](_0x5f212f,_0xc3e6('0x1b'),()=>this[_0xc3e6('0x2c')]()),this[_0xc3e6('0x12')](_0x5f212f,_0xc3e6('0x1'),(_0x3f0078,_0x3217cb)=>{this[_0xc3e6('0x2')]['add'](_0x5f212f),this['_hideBalloon'](),_0x3217cb();});}['_detachListeners'](_0x3e5c27){this[_0xc3e6('0x11')](_0x3e5c27);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x24ae=['updateHeight','_spaceBetweenItems','pluginName','sidebar.preventScrollOutOfView','length','_getItemBefore','config','getIndex','list','appendChild','container','content','set','_sidebarItemViewToAnnotation','_activeAnnotation','_targetTop','_destroySidebarItemView','_createSidebarView','_annotationToSidebarItemView','init','listenTo','setContainer','change:_lastItem','_alignAfterItem','isAnimationDisabled','remove','object','locale','getSidebarItemView','last','_getMaxAvailableTop','_alignForBottomChange','max','_lastItem','_recalculateBuffer','_setItemTop','render','_updateLastItem','_recalculate','bottom','isActive','destroy','get','targetRect','add','_getTargetTop','_getItemAfter','height','minHeight','view','delete','_alignToTargetRect','refresh','_alignBeforeItem','_detachFromContainer','nodeType','bind','addAnnotation','class','stopListening','_annotations','_attachToContainer','context','sidebar.container','unbind','define','change:bottom','top','element','Sidebar','target','_alignForTopChange'];(function(_0xe5c958,_0x24ae7f){const _0x4826c5=function(_0x3f5fd5){while(--_0x3f5fd5){_0xe5c958['push'](_0xe5c958['shift']());}};_0x4826c5(++_0x24ae7f);}(_0x24ae,0xa0));const _0x4826=function(_0xe5c958,_0x24ae7f){_0xe5c958=_0xe5c958-0x0;let _0x4826c5=_0x24ae[_0xe5c958];return _0x4826c5;};import{ContextPlugin as _0x2bb38e}from'ckeditor5/src/core.js';import{Rect as _0x53781f,CKEditorError as _0x242e19}from'ckeditor5/src/utils.js';import _0xbc0340 from'./view/sidebarview.js';import _0x1ba307 from'./view/sidebaritemview.js';export default class z extends _0x2bb38e{static get[_0x4826('0x3a')](){return _0x4826('0x35');}constructor(_0x1c568d){super(_0x1c568d),this[_0x4826('0x44')]('_lastItem',void 0x0),this['view']=this[_0x4826('0x1')](),this[_0x4826('0x44')]('container',null),this[_0x4826('0x39')]=0x19,this[_0x4826('0x45')]=new Map(),this[_0x4826('0x2')]=new Map(),this[_0x4826('0x2e')][_0x4826('0x3e')][_0x4826('0x31')](_0x4826('0x3b'),!0x1),this['_annotations']=null,this[_0x4826('0x46')]=null,this['_recalculateBuffer']=[];}[_0x4826('0x3')](){const _0x11b7bc=this[_0x4826('0x2e')][_0x4826('0x3e')][_0x4826('0x1a')](_0x4826('0x2f'));_0x11b7bc&&this['setContainer'](_0x11b7bc);}[_0x4826('0x5')](_0x203279){if(!y(_0x203279))throw new _0x242e19('sidebar-setcontainer-invalid-element');this[_0x4826('0x42')]=_0x203279;}[_0x4826('0x2d')]({viewClass:_0x561e39='',spaceBetweenItems:_0xbddd6a=0x19}={}){if(!y(this['container']))throw new _0x242e19('sidebar-attachtocontainer-missing-container',this);this['container'][_0x4826('0x41')](this[_0x4826('0x21')][_0x4826('0x34')]),this[_0x4826('0x21')][_0x4826('0x2a')]=_0x561e39,this[_0x4826('0x39')]=_0xbddd6a;}['rearrange']({removedAnnotation:_0x2fe30f,previousAnnotation:_0x4b09d9,nextAnnotation:_0x2084f0}){const _0x54cda4=this['getSidebarItemView'](_0x2fe30f);this[_0x4826('0x21')][_0x4826('0x40')][_0x4826('0x9')](_0x54cda4),this[_0x4826('0x0')](_0x2fe30f),_0x4b09d9&&this['_alignToTargetRect'](this[_0x4826('0xc')](_0x4b09d9)),_0x2084f0&&this[_0x4826('0x23')](this['getSidebarItemView'](_0x2084f0)),this['_updateLastItem']();}[_0x4826('0x24')]({blurredAnnotation:_0x4e0a75,activatedAnnotation:_0x286d25,disableAnimationOnActivatedAnnotation:_0x20edd0}){if(this[_0x4826('0x46')]=_0x286d25,_0x4e0a75){_0x4e0a75[_0x4826('0x18')]=!0x1;const _0x19a905=this[_0x4826('0xc')](_0x4e0a75);_0x19a905&&_0x20edd0&&(_0x19a905[_0x4826('0x8')]=!0x1);}if(_0x286d25){const _0x170c2b=this[_0x4826('0xc')](_0x286d25);_0x170c2b&&(_0x286d25['isActive']=!0x0,_0x20edd0&&(_0x170c2b[_0x4826('0x8')]=!0x0,_0x170c2b['top']+=0x1),this[_0x4826('0x23')](_0x170c2b));}}[_0x4826('0x26')](_0x5465e){if(this[_0x4826('0x21')][_0x4826('0x34')]['remove'](),_0x5465e)for(const _0x25918b of _0x5465e)this[_0x4826('0x0')](_0x25918b);this[_0x4826('0x21')][_0x4826('0x40')]['clear'](),this[_0x4826('0x21')][_0x4826('0x2a')]='',this[_0x4826('0x11')]=null;}[_0x4826('0x29')](_0x487b4b,_0xd37be5){_0xd37be5||(_0xd37be5=_0x487b4b[_0x4826('0x21')]);const _0x3e6c3d=new _0x1ba307(this[_0x4826('0x2e')][_0x4826('0xb')]);this[_0x4826('0x45')][_0x4826('0x44')](_0x3e6c3d,_0x487b4b),this[_0x4826('0x2')][_0x4826('0x44')](_0x487b4b,_0x3e6c3d),_0x3e6c3d[_0x4826('0x43')]['add'](_0xd37be5),this[_0x4826('0x4')](_0x487b4b[_0x4826('0x21')],'change:targetRect',(_0xc09a12,_0x1fb4d2,_0x23b27e)=>{const _0xe3dfd8=this[_0x4826('0x1d')](_0x487b4b,_0x23b27e);_0x3e6c3d[_0x4826('0x47')]!=_0xe3dfd8&&(_0x3e6c3d['_targetTop']=_0xe3dfd8,this[_0x4826('0x13')](_0x3e6c3d,_0xe3dfd8));}),this[_0x4826('0x4')](_0x3e6c3d,'change:top',()=>{this['_recalculate'](_0x3e6c3d,_0x4826('0x33'));}),this[_0x4826('0x4')](_0x3e6c3d,_0x4826('0x32'),()=>{this[_0x4826('0x16')](_0x3e6c3d,_0x4826('0x17'));}),this[_0x4826('0x23')](_0x3e6c3d);const _0x3afe34=this[_0x4826('0x3d')](_0x3e6c3d);if(_0x3afe34)this[_0x4826('0x7')](_0x3afe34,_0x3e6c3d)||this['_alignToTargetRect'](_0x3e6c3d);else this[_0x4826('0x23')](_0x3e6c3d);return this[_0x4826('0x15')](),this[_0x4826('0x21')]['list'][_0x4826('0x1c')](_0x3e6c3d),_0x3e6c3d;}[_0x4826('0x37')](_0x4924cf){if(!_0x4924cf[_0x4826('0x43')][_0x4826('0x3c')])return;const _0x4cffe1=this[_0x4826('0x3d')](_0x4924cf);if(!_0x4cffe1)return;const _0x410364=this[_0x4826('0x45')][_0x4826('0x1a')](_0x4cffe1),_0x371185=this[_0x4826('0x46')];_0x371185&&_0x371185===_0x410364?this[_0x4826('0x7')](_0x4cffe1,_0x4924cf):this['_alignBeforeItem'](_0x4924cf,_0x4cffe1);}[_0x4826('0xf')](_0x4358ed){if(!_0x4358ed[_0x4826('0x43')][_0x4826('0x3c')])return;const _0xce4eb7=this[_0x4826('0x1e')](_0x4358ed);if(!_0xce4eb7)return;const _0x20193b=this[_0x4826('0x45')][_0x4826('0x1a')](_0xce4eb7),_0x311a6f=this[_0x4826('0x2e')]['config']['get'](_0x4826('0x3b')),_0x5b34ff=this[_0x4826('0x46')];_0x5b34ff&&_0x5b34ff===_0x20193b&&_0x311a6f?(this['_alignBeforeItem'](_0xce4eb7,_0x4358ed),this[_0x4826('0x7')](_0x4358ed,_0xce4eb7)):_0x5b34ff&&_0x5b34ff===_0x20193b?this[_0x4826('0x25')](_0xce4eb7,_0x4358ed):this['_alignAfterItem'](_0x4358ed,_0xce4eb7);}['_recalculate'](_0x4bb27a,_0x5eb6c8){0x0===this[_0x4826('0x12')][_0x4826('0x3c')]&&setTimeout(()=>{for(const {sidebarItemView:_0x332636,changedProp:_0x1d4eb}of this[_0x4826('0x12')])_0x4826('0x33')===_0x1d4eb?this[_0x4826('0x37')](_0x332636):this[_0x4826('0xf')](_0x332636);this[_0x4826('0x12')]=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x4bb27a,'changedProp':_0x5eb6c8});}[_0x4826('0xc')](_0x56dfac){return this[_0x4826('0x2')][_0x4826('0x1a')](_0x56dfac);}['destroy'](){this['stopListening'](),this[_0x4826('0x21')][_0x4826('0x19')]();}[_0x4826('0x0')](_0x236009){const _0x586cc2=this['getSidebarItemView'](_0x236009);this['stopListening'](_0x586cc2),this[_0x4826('0x2b')](_0x236009[_0x4826('0x21')]),_0x586cc2[_0x4826('0x19')](),this['_annotationToSidebarItemView'][_0x4826('0x22')](_0x236009),this['_sidebarItemViewToAnnotation'][_0x4826('0x22')](_0x586cc2);}[_0x4826('0x1')](){const _0x57f47f=new _0xbc0340(this[_0x4826('0x2e')][_0x4826('0xb')]);return _0x57f47f[_0x4826('0x14')](),this['on'](_0x4826('0x6'),(_0x570d54,_0x9602fd,_0x5ac9ae,_0x42e5df)=>{_0x42e5df&&_0x57f47f[_0x4826('0x30')](_0x4826('0x20')),_0x5ac9ae?_0x57f47f[_0x4826('0x28')](_0x4826('0x20'))['to'](_0x5ac9ae,_0x4826('0x17')):_0x57f47f['minHeight']=null;}),_0x57f47f;}[_0x4826('0x15')](){var _0x31ed89;this['_lastItem']=(null===(_0x31ed89=this[_0x4826('0x2c')])||void 0x0===_0x31ed89?void 0x0:_0x31ed89[_0x4826('0xd')])?this[_0x4826('0xc')](this[_0x4826('0x2c')][_0x4826('0xd')]):null;}[_0x4826('0x3d')](_0x44bf78){var _0xd89a8e;const _0x3825b8=this['_sidebarItemViewToAnnotation'][_0x4826('0x1a')](_0x44bf78),_0xcd69bc=_0x3825b8&&(null===(_0xd89a8e=this[_0x4826('0x2c')])||void 0x0===_0xd89a8e?void 0x0:_0xd89a8e[_0x4826('0x1a')](this[_0x4826('0x2c')][_0x4826('0x3f')](_0x3825b8)-0x1));return _0xcd69bc&&this[_0x4826('0xc')](_0xcd69bc)||null;}[_0x4826('0x1e')](_0x57fbd0){var _0x18108b;const _0x3b03a8=this[_0x4826('0x45')]['get'](_0x57fbd0),_0x40a0e4=_0x3b03a8&&(null===(_0x18108b=this['_annotations'])||void 0x0===_0x18108b?void 0x0:_0x18108b[_0x4826('0x1a')](this[_0x4826('0x2c')][_0x4826('0x3f')](_0x3b03a8)+0x1));return _0x40a0e4&&this[_0x4826('0xc')](_0x40a0e4)||null;}[_0x4826('0x25')](_0x41e5b3,_0x55ebc1){_0x41e5b3[_0x4826('0x38')]();const _0x4672dd=M(_0x55ebc1[_0x4826('0x17')]+this[_0x4826('0x39')],_0x41e5b3['top']);return!!_0x4672dd&&(this[_0x4826('0x13')](_0x55ebc1,_0x55ebc1['top']-_0x4672dd),!0x0);}['_alignAfterItem'](_0x1e0f03,_0x571503){_0x1e0f03[_0x4826('0x38')]();const _0x225925=M(_0x1e0f03[_0x4826('0x17')]+this['_spaceBetweenItems'],_0x571503['top']);return!!_0x225925&&(this[_0x4826('0x13')](_0x571503,_0x571503[_0x4826('0x33')]+_0x225925,!0x1),!0x0);}[_0x4826('0x23')](_0xa88955){const _0x5d9124=this[_0x4826('0x45')][_0x4826('0x1a')](_0xa88955);if(!_0x5d9124||!_0x5d9124[_0x4826('0x36')]||!_0x5d9124[_0x4826('0x1b')])return;const _0x4ed970=this[_0x4826('0x1d')](_0x5d9124,_0x5d9124['targetRect']);this[_0x4826('0x13')](_0xa88955,_0x4ed970);}[_0x4826('0x1d')](_0x2cdc0e,_0x228ce9){if(null===_0x228ce9)return 0x0;if(_0x2cdc0e[_0x4826('0x36')]instanceof _0x53781f)return _0x228ce9[_0x4826('0x33')];{const _0x1f2ba1=new _0x53781f(this[_0x4826('0x21')]['element'])['top'];return _0x228ce9[_0x4826('0x33')]-_0x1f2ba1;}}[_0x4826('0x13')](_0x4fdeef,_0x505d51,_0x1bcc8b=this['context'][_0x4826('0x3e')][_0x4826('0x1a')](_0x4826('0x3b'))){_0x1bcc8b&&(_0x505d51=Math[_0x4826('0x10')](_0x505d51,this[_0x4826('0xe')](_0x4fdeef))),_0x4fdeef[_0x4826('0x33')]=_0x505d51;}[_0x4826('0xe')](_0x19e335){let _0x255518=this[_0x4826('0x3d')](_0x19e335),_0x402c88=0x0;for(;_0x255518;)_0x255518['updateHeight'](),_0x402c88+=this['_spaceBetweenItems']+_0x255518[_0x4826('0x1f')],_0x255518=this[_0x4826('0x3d')](_0x255518);return _0x402c88;}}function M(_0x5bfeb3,_0x2ebfa5){return Math[_0x4826('0x10')](_0x5bfeb3-_0x2ebfa5,0x0);}function y(_0x267e28){return null!==_0x267e28&&_0x4826('0xa')==typeof _0x267e28&&0x1===_0x267e28[_0x4826('0x27')];}
23
+ const _0x2794=['_alignForTopChange','_alignAfterItem','sidebar-attachtocontainer-missing-container','isAnimationDisabled','last','listenTo','refresh','get','setContainer','stopListening','target','_destroySidebarItemView','sidebar-setcontainer-invalid-element','minHeight','_updateLastItem','_getTargetTop','_lastItem','_getMaxAvailableTop','getSidebarItemView','getIndex','change:bottom','_recalculate','_recalculateBuffer','isActive','bottom','length','max','pluginName','set','_activeAnnotation','_getItemAfter','config','_targetTop','_attachToContainer','element','container','destroy','_getItemBefore','bind','delete','change:top','_createSidebarView','class','Sidebar','top','sidebar.container','sidebar.preventScrollOutOfView','updateHeight','clear','define','view','content','_sidebarItemViewToAnnotation','_setItemTop','locale','remove','change:targetRect','render','_spaceBetweenItems','_annotations','_alignForBottomChange','context','list','addAnnotation','_alignToTargetRect','_annotationToSidebarItemView','_detachFromContainer','add','height','unbind','_alignBeforeItem','appendChild','targetRect','nodeType'];(function(_0x14ce73,_0x27942e){const _0x18f424=function(_0x28c960){while(--_0x28c960){_0x14ce73['push'](_0x14ce73['shift']());}};_0x18f424(++_0x27942e);}(_0x2794,0xbb));const _0x18f4=function(_0x14ce73,_0x27942e){_0x14ce73=_0x14ce73-0x0;let _0x18f424=_0x2794[_0x14ce73];return _0x18f424;};import{ContextPlugin as _0x54bcdd}from'ckeditor5/src/core.js';import{Rect as _0x96e83a,CKEditorError as _0xbe5139}from'ckeditor5/src/utils.js';import _0x2fb4af from'./view/sidebarview.js';import _0x212a74 from'./view/sidebaritemview.js';export default class z extends _0x54bcdd{static get[_0x18f4('0x3e')](){return _0x18f4('0x4');}constructor(_0x5a4c64){super(_0x5a4c64),this['set'](_0x18f4('0x33'),void 0x0),this[_0x18f4('0xb')]=this[_0x18f4('0x2')](),this[_0x18f4('0x3f')](_0x18f4('0x46'),null),this['_spaceBetweenItems']=0x19,this[_0x18f4('0xd')]=new Map(),this[_0x18f4('0x1a')]=new Map(),this[_0x18f4('0x16')][_0x18f4('0x42')][_0x18f4('0xa')](_0x18f4('0x7'),!0x1),this[_0x18f4('0x14')]=null,this[_0x18f4('0x40')]=null,this[_0x18f4('0x39')]=[];}['init'](){const _0x20fd1b=this[_0x18f4('0x16')][_0x18f4('0x42')][_0x18f4('0x2a')](_0x18f4('0x6'));_0x20fd1b&&this[_0x18f4('0x2b')](_0x20fd1b);}[_0x18f4('0x2b')](_0x5c222f){if(!y(_0x5c222f))throw new _0xbe5139(_0x18f4('0x2f'));this[_0x18f4('0x46')]=_0x5c222f;}[_0x18f4('0x44')]({viewClass:_0x2f50b7='',spaceBetweenItems:_0x848bb5=0x19}={}){if(!y(this['container']))throw new _0xbe5139(_0x18f4('0x25'),this);this['container'][_0x18f4('0x20')](this[_0x18f4('0xb')][_0x18f4('0x45')]),this[_0x18f4('0xb')][_0x18f4('0x3')]=_0x2f50b7,this[_0x18f4('0x13')]=_0x848bb5;}['rearrange']({removedAnnotation:_0x1d1642,previousAnnotation:_0x5c532d,nextAnnotation:_0x4b6de7}){const _0x3a5bec=this[_0x18f4('0x35')](_0x1d1642);this[_0x18f4('0xb')][_0x18f4('0x17')][_0x18f4('0x10')](_0x3a5bec),this[_0x18f4('0x2e')](_0x1d1642),_0x5c532d&&this[_0x18f4('0x19')](this[_0x18f4('0x35')](_0x5c532d)),_0x4b6de7&&this[_0x18f4('0x19')](this[_0x18f4('0x35')](_0x4b6de7)),this['_updateLastItem']();}[_0x18f4('0x29')]({blurredAnnotation:_0x2e8833,activatedAnnotation:_0x2f4dfd,disableAnimationOnActivatedAnnotation:_0x4d2510}){if(this[_0x18f4('0x40')]=_0x2f4dfd,_0x2e8833){_0x2e8833['isActive']=!0x1;const _0x1f9c0b=this[_0x18f4('0x35')](_0x2e8833);_0x1f9c0b&&_0x4d2510&&(_0x1f9c0b[_0x18f4('0x26')]=!0x1);}if(_0x2f4dfd){const _0x4310e5=this[_0x18f4('0x35')](_0x2f4dfd);_0x4310e5&&(_0x2f4dfd[_0x18f4('0x3a')]=!0x0,_0x4d2510&&(_0x4310e5['isAnimationDisabled']=!0x0,_0x4310e5['top']+=0x1),this[_0x18f4('0x19')](_0x4310e5));}}[_0x18f4('0x1b')](_0x24306a){if(this[_0x18f4('0xb')][_0x18f4('0x45')][_0x18f4('0x10')](),_0x24306a)for(const _0x511aac of _0x24306a)this[_0x18f4('0x2e')](_0x511aac);this[_0x18f4('0xb')]['list'][_0x18f4('0x9')](),this[_0x18f4('0xb')][_0x18f4('0x3')]='',this[_0x18f4('0x33')]=null;}[_0x18f4('0x18')](_0x118aed,_0x26ea85){_0x26ea85||(_0x26ea85=_0x118aed['view']);const _0x4505b0=new _0x212a74(this['context'][_0x18f4('0xf')]);this[_0x18f4('0xd')]['set'](_0x4505b0,_0x118aed),this[_0x18f4('0x1a')][_0x18f4('0x3f')](_0x118aed,_0x4505b0),_0x4505b0[_0x18f4('0xc')][_0x18f4('0x1c')](_0x26ea85),this[_0x18f4('0x28')](_0x118aed['view'],_0x18f4('0x11'),(_0x2c1c47,_0x51992e,_0x4c6e5b)=>{const _0x3dff79=this[_0x18f4('0x32')](_0x118aed,_0x4c6e5b);_0x4505b0[_0x18f4('0x43')]!=_0x3dff79&&(_0x4505b0[_0x18f4('0x43')]=_0x3dff79,this['_setItemTop'](_0x4505b0,_0x3dff79));}),this[_0x18f4('0x28')](_0x4505b0,_0x18f4('0x1'),()=>{this[_0x18f4('0x38')](_0x4505b0,_0x18f4('0x5'));}),this['listenTo'](_0x4505b0,_0x18f4('0x37'),()=>{this['_recalculate'](_0x4505b0,_0x18f4('0x3b'));}),this[_0x18f4('0x19')](_0x4505b0);const _0xd56ca6=this[_0x18f4('0x48')](_0x4505b0);if(_0xd56ca6)this['_alignAfterItem'](_0xd56ca6,_0x4505b0)||this[_0x18f4('0x19')](_0x4505b0);else this[_0x18f4('0x19')](_0x4505b0);return this[_0x18f4('0x31')](),this[_0x18f4('0xb')][_0x18f4('0x17')][_0x18f4('0x1c')](_0x4505b0),_0x4505b0;}[_0x18f4('0x23')](_0x417ed5){if(!_0x417ed5[_0x18f4('0xc')][_0x18f4('0x3c')])return;const _0x8deb8d=this[_0x18f4('0x48')](_0x417ed5);if(!_0x8deb8d)return;const _0x5ab920=this['_sidebarItemViewToAnnotation']['get'](_0x8deb8d),_0x36b62a=this[_0x18f4('0x40')];_0x36b62a&&_0x36b62a===_0x5ab920?this[_0x18f4('0x24')](_0x8deb8d,_0x417ed5):this[_0x18f4('0x1f')](_0x417ed5,_0x8deb8d);}[_0x18f4('0x15')](_0x275b3c){if(!_0x275b3c['content'][_0x18f4('0x3c')])return;const _0x21a3e2=this[_0x18f4('0x41')](_0x275b3c);if(!_0x21a3e2)return;const _0x26c5d4=this[_0x18f4('0xd')][_0x18f4('0x2a')](_0x21a3e2),_0x5a2a85=this[_0x18f4('0x16')][_0x18f4('0x42')][_0x18f4('0x2a')](_0x18f4('0x7')),_0xcbaa18=this[_0x18f4('0x40')];_0xcbaa18&&_0xcbaa18===_0x26c5d4&&_0x5a2a85?(this[_0x18f4('0x1f')](_0x21a3e2,_0x275b3c),this[_0x18f4('0x24')](_0x275b3c,_0x21a3e2)):_0xcbaa18&&_0xcbaa18===_0x26c5d4?this[_0x18f4('0x1f')](_0x21a3e2,_0x275b3c):this['_alignAfterItem'](_0x275b3c,_0x21a3e2);}[_0x18f4('0x38')](_0x1d67b6,_0x4cb937){0x0===this[_0x18f4('0x39')][_0x18f4('0x3c')]&&setTimeout(()=>{for(const {sidebarItemView:_0x4dc371,changedProp:_0x54bd5c}of this[_0x18f4('0x39')])_0x18f4('0x5')===_0x54bd5c?this[_0x18f4('0x23')](_0x4dc371):this[_0x18f4('0x15')](_0x4dc371);this[_0x18f4('0x39')]=[];},0xa),this[_0x18f4('0x39')]['push']({'sidebarItemView':_0x1d67b6,'changedProp':_0x4cb937});}[_0x18f4('0x35')](_0x23f766){return this[_0x18f4('0x1a')][_0x18f4('0x2a')](_0x23f766);}[_0x18f4('0x47')](){this['stopListening'](),this['view']['destroy']();}[_0x18f4('0x2e')](_0x10207f){const _0x51ed80=this[_0x18f4('0x35')](_0x10207f);this[_0x18f4('0x2c')](_0x51ed80),this[_0x18f4('0x2c')](_0x10207f[_0x18f4('0xb')]),_0x51ed80[_0x18f4('0x47')](),this[_0x18f4('0x1a')][_0x18f4('0x0')](_0x10207f),this[_0x18f4('0xd')][_0x18f4('0x0')](_0x51ed80);}[_0x18f4('0x2')](){const _0x17a77a=new _0x2fb4af(this[_0x18f4('0x16')][_0x18f4('0xf')]);return _0x17a77a[_0x18f4('0x12')](),this['on']('change:_lastItem',(_0x2315b,_0x4a1a2b,_0x34e6c1,_0x5a514c)=>{_0x5a514c&&_0x17a77a[_0x18f4('0x1e')]('minHeight'),_0x34e6c1?_0x17a77a[_0x18f4('0x49')](_0x18f4('0x30'))['to'](_0x34e6c1,_0x18f4('0x3b')):_0x17a77a[_0x18f4('0x30')]=null;}),_0x17a77a;}['_updateLastItem'](){var _0x1ba185;this[_0x18f4('0x33')]=(null===(_0x1ba185=this[_0x18f4('0x14')])||void 0x0===_0x1ba185?void 0x0:_0x1ba185['last'])?this[_0x18f4('0x35')](this['_annotations'][_0x18f4('0x27')]):null;}['_getItemBefore'](_0x173063){var _0x383888;const _0x14332f=this[_0x18f4('0xd')][_0x18f4('0x2a')](_0x173063),_0x191a7a=_0x14332f&&(null===(_0x383888=this[_0x18f4('0x14')])||void 0x0===_0x383888?void 0x0:_0x383888[_0x18f4('0x2a')](this['_annotations'][_0x18f4('0x36')](_0x14332f)-0x1));return _0x191a7a&&this[_0x18f4('0x35')](_0x191a7a)||null;}[_0x18f4('0x41')](_0x51e9b6){var _0x20aeac;const _0x3f8926=this[_0x18f4('0xd')][_0x18f4('0x2a')](_0x51e9b6),_0x5acc9e=_0x3f8926&&(null===(_0x20aeac=this[_0x18f4('0x14')])||void 0x0===_0x20aeac?void 0x0:_0x20aeac[_0x18f4('0x2a')](this[_0x18f4('0x14')][_0x18f4('0x36')](_0x3f8926)+0x1));return _0x5acc9e&&this[_0x18f4('0x35')](_0x5acc9e)||null;}['_alignBeforeItem'](_0x1e619e,_0x5bf975){_0x1e619e[_0x18f4('0x8')]();const _0x3c83cb=M(_0x5bf975[_0x18f4('0x3b')]+this[_0x18f4('0x13')],_0x1e619e[_0x18f4('0x5')]);return!!_0x3c83cb&&(this[_0x18f4('0xe')](_0x5bf975,_0x5bf975[_0x18f4('0x5')]-_0x3c83cb),!0x0);}[_0x18f4('0x24')](_0x483031,_0x18a9c7){_0x483031[_0x18f4('0x8')]();const _0x338ec1=M(_0x483031['bottom']+this[_0x18f4('0x13')],_0x18a9c7[_0x18f4('0x5')]);return!!_0x338ec1&&(this[_0x18f4('0xe')](_0x18a9c7,_0x18a9c7[_0x18f4('0x5')]+_0x338ec1,!0x1),!0x0);}[_0x18f4('0x19')](_0x250e57){const _0x197a75=this[_0x18f4('0xd')][_0x18f4('0x2a')](_0x250e57);if(!_0x197a75||!_0x197a75[_0x18f4('0x2d')]||!_0x197a75[_0x18f4('0x21')])return;const _0x1b746d=this['_getTargetTop'](_0x197a75,_0x197a75['targetRect']);this[_0x18f4('0xe')](_0x250e57,_0x1b746d);}[_0x18f4('0x32')](_0x53a5e0,_0x9422a7){if(null===_0x9422a7)return 0x0;if(_0x53a5e0[_0x18f4('0x2d')]instanceof _0x96e83a)return _0x9422a7[_0x18f4('0x5')];{const _0x453df8=new _0x96e83a(this['view'][_0x18f4('0x45')])[_0x18f4('0x5')];return _0x9422a7[_0x18f4('0x5')]-_0x453df8;}}[_0x18f4('0xe')](_0x4362c1,_0x13e54a,_0x5b5959=this['context']['config'][_0x18f4('0x2a')](_0x18f4('0x7'))){_0x5b5959&&(_0x13e54a=Math[_0x18f4('0x3d')](_0x13e54a,this['_getMaxAvailableTop'](_0x4362c1))),_0x4362c1[_0x18f4('0x5')]=_0x13e54a;}[_0x18f4('0x34')](_0x1cb0fb){let _0x21d18f=this['_getItemBefore'](_0x1cb0fb),_0x33fe10=0x0;for(;_0x21d18f;)_0x21d18f[_0x18f4('0x8')](),_0x33fe10+=this[_0x18f4('0x13')]+_0x21d18f[_0x18f4('0x1d')],_0x21d18f=this[_0x18f4('0x48')](_0x21d18f);return _0x33fe10;}}function M(_0x21ce91,_0x4db41b){return Math[_0x18f4('0x3d')](_0x21ce91-_0x4db41b,0x0);}function y(_0x1edf3a){return null!==_0x1edf3a&&'object'==typeof _0x1edf3a&&0x1===_0x1edf3a[_0x18f4('0x22')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5a54=['bindTemplate','span','children','_badge','annotationType','number','toString','extendTemplate','setTemplate','add','icon','counterView','ck-annotation-counter__badge--','ck-annotation-counter','isDirty','...','ck-annotation-counter__badge--edit-mode','ck-annotation-counter__badge','set'];(function(_0x2e8c0f,_0x5a54c1){const _0xd97ec4=function(_0x18239d){while(--_0x18239d){_0x2e8c0f['push'](_0x2e8c0f['shift']());}};_0xd97ec4(++_0x5a54c1);}(_0x5a54,0x127));const _0xd97e=function(_0x2e8c0f,_0x5a54c1){_0x2e8c0f=_0x2e8c0f-0x0;let _0xd97ec4=_0x5a54[_0x2e8c0f];return _0xd97ec4;};import{ButtonView as _0x5a013e,View as _0x49afe3}from'ckeditor5/src/ui.js';import _0xa0df13 from'../../../theme/icons/add-comment.svg';export default class D extends _0x5a013e{constructor(_0x26e10e){super(_0x26e10e);const _0x1f6e8f=this[_0xd97e('0x9')];this[_0xd97e('0x8')](_0xd97e('0x4'),!0x1),this['set']('number',0x0),this['bind'](_0xd97e('0xc'))['to'](this,_0xd97e('0x4'),this,_0xd97e('0xe'),(_0x2549a6,_0x5dc857)=>_0x2549a6?_0xd97e('0x5'):_0x5dc857[_0xd97e('0xf')]()),this['set'](_0xd97e('0xd'),''),this[_0xd97e('0x0')]=_0xa0df13,this[_0xd97e('0x10')]({'attributes':{'class':[_0xd97e('0x3')]}}),this[_0xd97e('0x1')]=new _0x49afe3(),this[_0xd97e('0x1')][_0xd97e('0x11')]({'tag':_0xd97e('0xa'),'attributes':{'class':[_0xd97e('0x7'),_0x1f6e8f['to'](_0xd97e('0xd'),_0x5d26fc=>_0xd97e('0x2')+_0x5d26fc),_0x1f6e8f['if'](_0xd97e('0x4'),_0xd97e('0x6'))]},'children':[{'text':_0x1f6e8f['to'](_0xd97e('0xc'))}]}),this[_0xd97e('0xb')][_0xd97e('0x12')](this[_0xd97e('0x1')]);}}
23
+ const _0xe988=['annotationType','setTemplate','ck-annotation-counter__badge--edit-mode','counterView','_badge','extendTemplate','number','set','add','toString','span','isDirty','bindTemplate','...'];(function(_0x565193,_0xe98836){const _0x531efc=function(_0x24395e){while(--_0x24395e){_0x565193['push'](_0x565193['shift']());}};_0x531efc(++_0xe98836);}(_0xe988,0x1ce));const _0x531e=function(_0x565193,_0xe98836){_0x565193=_0x565193-0x0;let _0x531efc=_0xe988[_0x565193];return _0x531efc;};import{ButtonView as _0x5a1dd1,View as _0x3d0613}from'ckeditor5/src/ui.js';import _0x575004 from'../../../theme/icons/add-comment.svg';export default class D extends _0x5a1dd1{constructor(_0x1b2d79){super(_0x1b2d79);const _0x29a91a=this[_0x531e('0xc')];this[_0x531e('0x7')]('isDirty',!0x1),this['set'](_0x531e('0x6'),0x0),this['bind'](_0x531e('0x4'))['to'](this,'isDirty',this,'number',(_0xe225b1,_0x24b08e)=>_0xe225b1?_0x531e('0xd'):_0x24b08e[_0x531e('0x9')]()),this[_0x531e('0x7')](_0x531e('0x0'),''),this['icon']=_0x575004,this[_0x531e('0x5')]({'attributes':{'class':['ck-annotation-counter']}}),this[_0x531e('0x3')]=new _0x3d0613(),this['counterView'][_0x531e('0x1')]({'tag':_0x531e('0xa'),'attributes':{'class':['ck-annotation-counter__badge',_0x29a91a['to'](_0x531e('0x0'),_0x3cdeb9=>'ck-annotation-counter__badge--'+_0x3cdeb9),_0x29a91a['if'](_0x531e('0xb'),_0x531e('0x2'))]},'children':[{'text':_0x29a91a['to'](_0x531e('0x4'))}]}),this['children'][_0x531e('0x8')](this[_0x531e('0x3')]);}}