@ckeditor/ckeditor5-comments 0.0.0-nightly-20240124.0 → 0.0.0-nightly-20240126.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-20240124.0",
3
+ "version": "0.0.0-nightly-20240126.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-20240124.0",
48
- "ckeditor5-collaboration": "0.0.0-nightly-20240124.0",
47
+ "ckeditor5": "0.0.0-nightly-20240126.0",
48
+ "ckeditor5-collaboration": "0.0.0-nightly-20240126.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 _0x1b18=['remove','focusableElements','_target','nodeType','filter','mainView','every','stopListening','object','isActive','focusTracker','isVisible','_type','render','type','targetRect','clear','add','_id','view','_getNormalizedTarget','target','item','getClientRects','function','offsetParent','_assertCorrectTarget','set'];(function(_0xdb04a0,_0x1b181a){const _0x2e0cc8=function(_0xd9b17b){while(--_0xd9b17b){_0xdb04a0['push'](_0xdb04a0['shift']());}};_0x2e0cc8(++_0x1b181a);}(_0x1b18,0x9d));const _0x2e0c=function(_0xdb04a0,_0x1b181a){_0xdb04a0=_0xdb04a0-0x0;let _0x2e0cc8=_0x1b18[_0xdb04a0];return _0x2e0cc8;};import{CKEditorError as _0x2a74c1,Rect as _0x1f9faf,Collection as _0x2fe534,ObservableMixin as _0x5550c1}from'ckeditor5/src/utils.js';export default class d extends _0x5550c1(){constructor({view:_0xe94cae,target:_0x428c06,type:_0x2400ba,isVisible:_0x5196e9=!0x0}){super(),this[_0x2e0c('0x2')]=_0xe94cae,this['view']['element']||this[_0x2e0c('0x2')][_0x2e0c('0x18')](),this[_0x2e0c('0x17')]=_0x2400ba,this[_0x2e0c('0xd')]=_0x428c06,d['_assertCorrectTarget'](this[_0x2e0c('0x3')]()),this['focusableElements']=new _0x2fe534([this[_0x2e0c('0x2')]['element']],{'idProperty':_0x2e0c('0x1')}),this[_0x2e0c('0xc')]['on'](_0x2e0c('0x0'),(_0x30d940,_0x43119b)=>{this['view']['focusTracker']['add'](_0x43119b);}),this['focusableElements']['on'](_0x2e0c('0xb'),(_0x3ff22e,_0x4d7cca)=>{this[_0x2e0c('0x2')][_0x2e0c('0x15')][_0x2e0c('0xb')](_0x4d7cca);}),this[_0x2e0c('0xa')](_0x2e0c('0x16'),_0x5196e9);}get[_0x2e0c('0x19')](){return _0x2e0c('0x7')==typeof this[_0x2e0c('0x17')]?this[_0x2e0c('0x17')]():this[_0x2e0c('0x17')];}get['innerView'](){return this['view'][_0x2e0c('0x10')];}get[_0x2e0c('0x4')](){const _0x5d2443=this[_0x2e0c('0x3')]();return d[_0x2e0c('0x9')](_0x5d2443),_0x5d2443;}get[_0x2e0c('0x1a')](){const _0x3a4101=this[_0x2e0c('0x4')];if(null===_0x3a4101)return null;if(_0x3a4101 instanceof _0x1f9faf)return _0x3a4101;const _0x6e53ae=_0x3a4101[_0x2e0c('0xf')](_0x413233=>function(_0x1b208e){const _0x218b22=_0x1b208e[_0x2e0c('0x8')];if(_0x218b22)return!0x0;const _0xf7b04d=_0x1b208e[_0x2e0c('0x6')]()[_0x2e0c('0x5')](0x0);return!!_0xf7b04d;}(_0x413233));return 0x0===_0x6e53ae['length']?null:new _0x1f9faf(_0x6e53ae[0x0]['getClientRects']()[_0x2e0c('0x5')](0x0));}get['isActive'](){return this[_0x2e0c('0x2')][_0x2e0c('0x14')];}set[_0x2e0c('0x14')](_0x35f04b){this[_0x2e0c('0x2')][_0x2e0c('0x14')]=_0x35f04b,this[_0x2e0c('0x2')]['mainView'][_0x2e0c('0x14')]=_0x35f04b;}['updateTargetRect'](){this[_0x2e0c('0x2')][_0x2e0c('0x1a')]=this[_0x2e0c('0x1a')];}['destroy'](){this[_0x2e0c('0xc')][_0x2e0c('0x12')](),this[_0x2e0c('0xc')][_0x2e0c('0x1b')](),this[_0x2e0c('0x12')]();}['refreshVisibility'](){this[_0x2e0c('0x16')]=!!this['targetRect'];}static[_0x2e0c('0x9')](_0xeae11c){if(!(null===_0xeae11c||_0xeae11c instanceof _0x1f9faf||Array['isArray'](_0xeae11c)&&_0xeae11c[_0x2e0c('0x11')](_0x142a71=>y(_0x142a71))))throw new _0x2a74c1('annotation-invalid-target',null,{'target':_0xeae11c});}[_0x2e0c('0x3')](){const _0x5f32ab=_0x2e0c('0x7')==typeof this[_0x2e0c('0xd')]?this[_0x2e0c('0xd')]():this[_0x2e0c('0xd')];return y(_0x5f32ab)?[_0x5f32ab]:_0x5f32ab;}}function y(_0x22a68f){return null!==_0x22a68f&&_0x2e0c('0x13')==typeof _0x22a68f&&_0x2e0c('0xe')in _0x22a68f&&0x1===_0x22a68f[_0x2e0c('0xe')];}
23
+ const _0x1d02=['set','focusableElements','refreshVisibility','targetRect','item','stopListening','filter','render','function','view','nodeType','add','_target','mainView','_id','target','isArray','updateTargetRect','destroy','_assertCorrectTarget','focusTracker','remove','element','isActive','getClientRects','innerView','every','type','object','isVisible','clear','_type','_getNormalizedTarget','annotation-invalid-target'];(function(_0x2d459a,_0x1d02b3){const _0x344b36=function(_0xc99b06){while(--_0xc99b06){_0x2d459a['push'](_0x2d459a['shift']());}};_0x344b36(++_0x1d02b3);}(_0x1d02,0x122));const _0x344b=function(_0x2d459a,_0x1d02b3){_0x2d459a=_0x2d459a-0x0;let _0x344b36=_0x1d02[_0x2d459a];return _0x344b36;};import{CKEditorError as _0xf67982,Rect as _0x1f2580,Collection as _0x345724,ObservableMixin as _0x5aaafe}from'ckeditor5/src/utils.js';export default class d extends _0x5aaafe(){constructor({view:_0x118086,target:_0x137a1b,type:_0x5bfba4,isVisible:_0x3186bc=!0x0}){super(),this[_0x344b('0x19')]=_0x118086,this[_0x344b('0x19')][_0x344b('0x4')]||this[_0x344b('0x19')][_0x344b('0x17')](),this[_0x344b('0xd')]=_0x5bfba4,this[_0x344b('0x1c')]=_0x137a1b,d[_0x344b('0x1')](this[_0x344b('0xe')]()),this[_0x344b('0x11')]=new _0x345724([this[_0x344b('0x19')][_0x344b('0x4')]],{'idProperty':_0x344b('0x1e')}),this[_0x344b('0x11')]['on']('add',(_0x2c8665,_0x135596)=>{this[_0x344b('0x19')][_0x344b('0x2')][_0x344b('0x1b')](_0x135596);}),this[_0x344b('0x11')]['on'](_0x344b('0x3'),(_0x241a93,_0x9eb40d)=>{this[_0x344b('0x19')][_0x344b('0x2')][_0x344b('0x3')](_0x9eb40d);}),this[_0x344b('0x10')](_0x344b('0xb'),_0x3186bc);}get[_0x344b('0x9')](){return _0x344b('0x18')==typeof this['_type']?this['_type']():this[_0x344b('0xd')];}get[_0x344b('0x7')](){return this[_0x344b('0x19')][_0x344b('0x1d')];}get[_0x344b('0x1f')](){const _0x5aee1e=this[_0x344b('0xe')]();return d[_0x344b('0x1')](_0x5aee1e),_0x5aee1e;}get[_0x344b('0x13')](){const _0x2a20f0=this['target'];if(null===_0x2a20f0)return null;if(_0x2a20f0 instanceof _0x1f2580)return _0x2a20f0;const _0x2315ea=_0x2a20f0[_0x344b('0x16')](_0x362560=>function(_0x141c7f){const _0x50a01c=_0x141c7f['offsetParent'];if(_0x50a01c)return!0x0;const _0x2778f3=_0x141c7f[_0x344b('0x6')]()[_0x344b('0x14')](0x0);return!!_0x2778f3;}(_0x362560));return 0x0===_0x2315ea['length']?null:new _0x1f2580(_0x2315ea[0x0][_0x344b('0x6')]()[_0x344b('0x14')](0x0));}get[_0x344b('0x5')](){return this[_0x344b('0x19')]['isActive'];}set[_0x344b('0x5')](_0x1c0729){this[_0x344b('0x19')][_0x344b('0x5')]=_0x1c0729,this['view'][_0x344b('0x1d')][_0x344b('0x5')]=_0x1c0729;}[_0x344b('0x21')](){this[_0x344b('0x19')][_0x344b('0x13')]=this[_0x344b('0x13')];}[_0x344b('0x0')](){this[_0x344b('0x11')]['stopListening'](),this['focusableElements'][_0x344b('0xc')](),this[_0x344b('0x15')]();}[_0x344b('0x12')](){this[_0x344b('0xb')]=!!this['targetRect'];}static[_0x344b('0x1')](_0x4897e4){if(!(null===_0x4897e4||_0x4897e4 instanceof _0x1f2580||Array[_0x344b('0x20')](_0x4897e4)&&_0x4897e4[_0x344b('0x8')](_0x4f7b3c=>y(_0x4f7b3c))))throw new _0xf67982(_0x344b('0xf'),null,{'target':_0x4897e4});}['_getNormalizedTarget'](){const _0x4e5804='function'==typeof this[_0x344b('0x1c')]?this[_0x344b('0x1c')]():this[_0x344b('0x1c')];return y(_0x4e5804)?[_0x4e5804]:_0x4e5804;}}function y(_0x168134){return null!==_0x168134&&_0x344b('0xa')==typeof _0x168134&&_0x344b('0x1a')in _0x168134&&0x1===_0x168134[_0x344b('0x1a')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x27f7=['from','clear','focusTracker','targetRect','_innerViewToAnnotation','getIndex','refreshPositioning','annotationcollection-not-existing-item','remove','isFocused','_focusTracker','set','focusableElements','get','_sort','updateTargetRect','left','delete','add','top','_viewToAnnotation','sort','change:isFocused','length','listenTo','view','blur','getByView','fire','destroy','has','stopListening','annotationcollection-duplicated-item','getByInnerView','_getOrderInContent'];(function(_0xd6bf1c,_0x27f799){const _0x14f9eb=function(_0x4b9703){while(--_0x4b9703){_0xd6bf1c['push'](_0xd6bf1c['shift']());}};_0x14f9eb(++_0x27f799);}(_0x27f7,0x9c));const _0x14f9=function(_0xd6bf1c,_0x27f799){_0xd6bf1c=_0xd6bf1c-0x0;let _0x14f9eb=_0x27f7[_0xd6bf1c];return _0x14f9eb;};import{CKEditorError as _0x926df7,Collection as _0x138cc7,FocusTracker as _0x72227f}from'ckeditor5/src/utils.js';export default class x extends _0x138cc7{constructor(_0x5c704d=[]){super(),this[_0x14f9('0x17')]=new Map(),this[_0x14f9('0x4')]=new Map(),this[_0x14f9('0x1d')]=new _0x72227f(),this['_focusTracker']['on']('change:isFocused',(_0x25a639,_0x6dd5bb,_0x1886e6)=>{_0x1886e6||this[_0x14f9('0xc')](_0x14f9('0xa'));});for(const _0x382026 of _0x5c704d)this[_0x14f9('0x2')](_0x382026);}get[_0x14f9('0x1c')](){return this['_focusTracker'][_0x14f9('0x1c')];}[_0x14f9('0x2')](_0x58281f){if(this['has'](_0x58281f))throw new _0x926df7(_0x14f9('0x10'),null);this[_0x14f9('0x17')][_0x14f9('0x1e')](_0x58281f['innerView'],_0x58281f),this[_0x14f9('0x4')]['set'](_0x58281f[_0x14f9('0x9')],_0x58281f);for(const _0x9f6b2c of _0x58281f['focusableElements'])this['_focusTracker'][_0x14f9('0x2')](_0x9f6b2c);this[_0x14f9('0x8')](_0x58281f[_0x14f9('0x1f')],'add',(_0x47f4c1,_0x12a795)=>{this[_0x14f9('0x1d')][_0x14f9('0x2')](_0x12a795);}),this[_0x14f9('0x8')](_0x58281f[_0x14f9('0x1f')],_0x14f9('0x1b'),(_0x5bff99,_0xda6963)=>{this[_0x14f9('0x1d')][_0x14f9('0x1b')](_0xda6963);}),this[_0x14f9('0x8')](_0x58281f[_0x14f9('0x9')]['focusTracker'],_0x14f9('0x6'),(_0x57bd1e,_0x549799,_0x377dc1)=>{_0x377dc1&&this[_0x14f9('0xc')]('focus',_0x58281f);}),_0x58281f[_0x14f9('0x22')]();const _0x52be47=this[_0x14f9('0x12')](_0x58281f[_0x14f9('0x9')][_0x14f9('0x16')]);return super[_0x14f9('0x2')](_0x58281f,_0x52be47);}['remove'](_0xdfb63d){if(!this[_0x14f9('0xe')](_0xdfb63d))throw new _0x926df7(_0x14f9('0x1a'),null);this[_0x14f9('0xf')](_0xdfb63d[_0x14f9('0x9')][_0x14f9('0x15')]),this['stopListening'](_0xdfb63d[_0x14f9('0x1f')]);for(const _0x119c3d of _0xdfb63d[_0x14f9('0x1f')])this[_0x14f9('0x1d')][_0x14f9('0x1b')](_0x119c3d);return this[_0x14f9('0x4')][_0x14f9('0x1')](_0xdfb63d[_0x14f9('0x9')]),this[_0x14f9('0x17')]['delete'](_0xdfb63d['innerView']),super[_0x14f9('0x1b')](_0xdfb63d);}[_0x14f9('0x11')](_0x541356){return this['_innerViewToAnnotation'][_0x14f9('0x20')](_0x541356);}[_0x14f9('0xb')](_0x14fc1e){return this[_0x14f9('0x4')]['get'](_0x14fc1e);}[_0x14f9('0xd')](){super[_0x14f9('0x14')](),this[_0x14f9('0xf')](),this[_0x14f9('0x17')][_0x14f9('0x14')](),this[_0x14f9('0x4')][_0x14f9('0x14')](),this[_0x14f9('0x1d')]['destroy']();}[_0x14f9('0x19')](){for(const _0x37e46a of this)_0x37e46a['updateTargetRect']();this[_0x14f9('0x21')]();}[_0x14f9('0x21')](){const _0x1ae626=Array[_0x14f9('0x13')](this)[_0x14f9('0x5')]((_0x54efb2,_0x46c9a4)=>v(_0x54efb2[_0x14f9('0x9')][_0x14f9('0x16')],_0x46c9a4[_0x14f9('0x9')][_0x14f9('0x16')]));for(let _0x5e76ec=_0x1ae626['length']-0x1;_0x5e76ec>0x0;_0x5e76ec--){const _0x4af9eb=_0x1ae626[_0x5e76ec];_0x5e76ec!==this[_0x14f9('0x18')](_0x4af9eb)&&(this[_0x14f9('0x1b')](_0x4af9eb),this['add'](_0x4af9eb));}}['_getOrderInContent'](_0x2a6435){let _0xfb9d99=0x0;if(!_0x2a6435)return this[_0x14f9('0x7')];for(const _0x30a6d4 of this){const _0x3038ef=_0x30a6d4[_0x14f9('0x9')][_0x14f9('0x16')];if(_0x3038ef){if(v(_0x2a6435,_0x3038ef)<0x0)return _0xfb9d99;_0xfb9d99++;}}return _0xfb9d99;}}export function bindAnnotationCollections({source:_0x4942fd,target:_0x2a7d2b,filter:_0x4964d2}){for(const _0xc7934b of _0x4942fd)_0x4964d2(_0xc7934b)&&_0x2a7d2b[_0x14f9('0x2')](_0xc7934b);_0x2a7d2b[_0x14f9('0x8')](_0x4942fd,_0x14f9('0x2'),(_0x283c1d,_0xf36c78)=>{_0x4964d2(_0xf36c78)&&_0x2a7d2b[_0x14f9('0x2')](_0xf36c78);}),_0x2a7d2b[_0x14f9('0x8')](_0x4942fd,_0x14f9('0x1b'),(_0x1789e7,_0x5f038d)=>{_0x2a7d2b[_0x14f9('0xe')](_0x5f038d)&&_0x2a7d2b[_0x14f9('0x1b')](_0x5f038d);});}function v(_0x50cff2,_0x462414){if(null===_0x50cff2&&null===_0x462414)return 0x0;if(null===_0x50cff2)return-0x1;if(null===_0x462414)return 0x1;const _0x4af7ea=_0x50cff2[_0x14f9('0x3')]-_0x462414['top'];return 0x0==_0x4af7ea?_0x50cff2[_0x14f9('0x0')]-_0x462414[_0x14f9('0x0')]:_0x4af7ea;}
23
+ const _0x3b07=['destroy','fire','innerView','focusTracker','listenTo','annotationcollection-duplicated-item','_getOrderInContent','_viewToAnnotation','clear','_focusTracker','remove','updateTargetRect','getByInnerView','view','getByView','stopListening','sort','targetRect','delete','_innerViewToAnnotation','set','change:isFocused','focusableElements','annotationcollection-not-existing-item','getIndex','focus','add','length','_sort','left','isFocused','get','has','top'];(function(_0x3fcf5e,_0x3b0757){const _0x38976c=function(_0x526d48){while(--_0x526d48){_0x3fcf5e['push'](_0x3fcf5e['shift']());}};_0x38976c(++_0x3b0757);}(_0x3b07,0x74));const _0x3897=function(_0x3fcf5e,_0x3b0757){_0x3fcf5e=_0x3fcf5e-0x0;let _0x38976c=_0x3b07[_0x3fcf5e];return _0x38976c;};import{CKEditorError as _0x14fe74,Collection as _0x4be33c,FocusTracker as _0x47ebef}from'ckeditor5/src/utils.js';export default class x extends _0x4be33c{constructor(_0x3a5806=[]){super(),this[_0x3897('0x5')]=new Map(),this[_0x3897('0x1b')]=new Map(),this[_0x3897('0x1d')]=new _0x47ebef(),this[_0x3897('0x1d')]['on'](_0x3897('0x7'),(_0x33d99e,_0x443aef,_0x335ced)=>{_0x335ced||this[_0x3897('0x15')]('blur');});for(const _0x11e8a3 of _0x3a5806)this[_0x3897('0xc')](_0x11e8a3);}get[_0x3897('0x10')](){return this['_focusTracker'][_0x3897('0x10')];}[_0x3897('0xc')](_0x1f2be1){if(this['has'](_0x1f2be1))throw new _0x14fe74(_0x3897('0x19'),null);this['_innerViewToAnnotation']['set'](_0x1f2be1['innerView'],_0x1f2be1),this[_0x3897('0x1b')][_0x3897('0x6')](_0x1f2be1['view'],_0x1f2be1);for(const _0x38e1aa of _0x1f2be1[_0x3897('0x8')])this[_0x3897('0x1d')][_0x3897('0xc')](_0x38e1aa);this[_0x3897('0x18')](_0x1f2be1[_0x3897('0x8')],'add',(_0x456780,_0x20306d)=>{this['_focusTracker'][_0x3897('0xc')](_0x20306d);}),this[_0x3897('0x18')](_0x1f2be1[_0x3897('0x8')],_0x3897('0x1e'),(_0x1bc92e,_0x106f63)=>{this[_0x3897('0x1d')][_0x3897('0x1e')](_0x106f63);}),this[_0x3897('0x18')](_0x1f2be1['view'][_0x3897('0x17')],'change:isFocused',(_0x4ffd68,_0x5a05cd,_0xc8cf49)=>{_0xc8cf49&&this[_0x3897('0x15')](_0x3897('0xb'),_0x1f2be1);}),_0x1f2be1[_0x3897('0x1f')]();const _0x1c046d=this[_0x3897('0x1a')](_0x1f2be1[_0x3897('0x21')][_0x3897('0x3')]);return super[_0x3897('0xc')](_0x1f2be1,_0x1c046d);}[_0x3897('0x1e')](_0x53de21){if(!this[_0x3897('0x12')](_0x53de21))throw new _0x14fe74(_0x3897('0x9'),null);this[_0x3897('0x1')](_0x53de21[_0x3897('0x21')][_0x3897('0x17')]),this[_0x3897('0x1')](_0x53de21[_0x3897('0x8')]);for(const _0x204877 of _0x53de21[_0x3897('0x8')])this[_0x3897('0x1d')]['remove'](_0x204877);return this['_viewToAnnotation'][_0x3897('0x4')](_0x53de21['view']),this[_0x3897('0x5')][_0x3897('0x4')](_0x53de21[_0x3897('0x16')]),super[_0x3897('0x1e')](_0x53de21);}[_0x3897('0x20')](_0x13da2c){return this[_0x3897('0x5')]['get'](_0x13da2c);}[_0x3897('0x0')](_0x1715d8){return this['_viewToAnnotation'][_0x3897('0x11')](_0x1715d8);}['destroy'](){super[_0x3897('0x1c')](),this['stopListening'](),this[_0x3897('0x5')][_0x3897('0x1c')](),this['_viewToAnnotation'][_0x3897('0x1c')](),this[_0x3897('0x1d')][_0x3897('0x14')]();}['refreshPositioning'](){for(const _0x19da6a of this)_0x19da6a[_0x3897('0x1f')]();this[_0x3897('0xe')]();}[_0x3897('0xe')](){const _0x22dda0=Array['from'](this)[_0x3897('0x2')]((_0xf991e3,_0x4b30fc)=>v(_0xf991e3[_0x3897('0x21')][_0x3897('0x3')],_0x4b30fc[_0x3897('0x21')][_0x3897('0x3')]));for(let _0x970787=_0x22dda0[_0x3897('0xd')]-0x1;_0x970787>0x0;_0x970787--){const _0x77b1b=_0x22dda0[_0x970787];_0x970787!==this[_0x3897('0xa')](_0x77b1b)&&(this['remove'](_0x77b1b),this['add'](_0x77b1b));}}[_0x3897('0x1a')](_0x5513e3){let _0x38b0be=0x0;if(!_0x5513e3)return this[_0x3897('0xd')];for(const _0x1e3ab4 of this){const _0x6609bb=_0x1e3ab4['view'][_0x3897('0x3')];if(_0x6609bb){if(v(_0x5513e3,_0x6609bb)<0x0)return _0x38b0be;_0x38b0be++;}}return _0x38b0be;}}export function bindAnnotationCollections({source:_0x4b4342,target:_0x3ff37d,filter:_0x2276b2}){for(const _0x50d854 of _0x4b4342)_0x2276b2(_0x50d854)&&_0x3ff37d['add'](_0x50d854);_0x3ff37d[_0x3897('0x18')](_0x4b4342,_0x3897('0xc'),(_0x4a3efd,_0xcfa99a)=>{_0x2276b2(_0xcfa99a)&&_0x3ff37d[_0x3897('0xc')](_0xcfa99a);}),_0x3ff37d[_0x3897('0x18')](_0x4b4342,'remove',(_0x54d665,_0x21db31)=>{_0x3ff37d[_0x3897('0x12')](_0x21db31)&&_0x3ff37d[_0x3897('0x1e')](_0x21db31);});}function v(_0xacdbb3,_0x2282bf){if(null===_0xacdbb3&&null===_0x2282bf)return 0x0;if(null===_0xacdbb3)return-0x1;if(null===_0x2282bf)return 0x1;const _0x32466f=_0xacdbb3[_0x3897('0x13')]-_0x2282bf[_0x3897('0x13')];return 0x0==_0x32466f?_0xacdbb3[_0x3897('0xf')]-_0x2282bf[_0x3897('0xf')]:_0x32466f;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x24ac=['destroy','source','collection','fire','add','_bindAnnotationsToVisibleAnnotations','change:isVisible','deactivateAll','view','set','element','activeAnnotations','_removeActiveAnnotation','focusTracker','delete','isVisible','createAnnotation','remove','refreshPositioning','_visibleAnnotations','getByInnerView','_addActiveAnnotation','listenTo','has','pluginName','refreshVisibility'];(function(_0x262603,_0x24ac41){const _0x55e49e=function(_0x394adb){while(--_0x394adb){_0x262603['push'](_0x262603['shift']());}};_0x55e49e(++_0x24ac41);}(_0x24ac,0x104));const _0x55e4=function(_0x262603,_0x24ac41){_0x262603=_0x262603-0x0;let _0x55e49e=_0x24ac[_0x262603];return _0x55e49e;};import{ContextPlugin as _0x23ad34}from'ckeditor5/src/core.js';import _0x4626aa from'./annotation.js';import _0x393bb8 from'./annotationcollection.js';import _0x16b16e from'./view/annotationview.js';export default class b extends _0x23ad34{static get[_0x55e4('0x18')](){return'Annotations';}constructor(_0x1e5f30){super(_0x1e5f30),this['collection']=new _0x393bb8(),this[_0x55e4('0x13')]=new _0x393bb8(),this[_0x55e4('0x9')](_0x55e4('0xb'),new Set()),this[_0x55e4('0x5')]();}['add'](_0x20dae1){this[_0x55e4('0x2')][_0x55e4('0x4')](_0x20dae1);}['remove'](_0x1ee23b){this[_0x55e4('0x2')][_0x55e4('0x11')](_0x1ee23b),_0x1ee23b['destroy']();}['refreshVisibility'](){for(const _0x15240e of this['collection'])_0x15240e[_0x55e4('0x19')]();}[_0x55e4('0x12')](){this[_0x55e4('0x13')][_0x55e4('0x12')]();}[_0x55e4('0x14')](_0xb76cb){return this[_0x55e4('0x2')][_0x55e4('0x14')](_0xb76cb);}[_0x55e4('0x7')](){this[_0x55e4('0x3')]('_deactivateAllAnnotations');}['destroy'](){for(const _0xa783ea of this['collection'])_0xa783ea[_0x55e4('0x0')]();this[_0x55e4('0x13')]['destroy'](),this[_0x55e4('0x2')]['destroy'](),super[_0x55e4('0x0')]();}['activate'](_0x313a36){this[_0x55e4('0x3')]('_activateAnnotation',_0x313a36);}[_0x55e4('0x10')](_0x4eae5a){return new _0x4626aa(_0x4eae5a);}['createAnnotationView'](_0x10551d,_0x37e731){return new _0x16b16e(_0x10551d,_0x37e731);}[_0x55e4('0x15')](_0x16ebd8){const _0x4f504a=new Set(this[_0x55e4('0xb')]);_0x4f504a[_0x55e4('0x4')](_0x16ebd8),this['activeAnnotations']=_0x4f504a;}[_0x55e4('0xc')](_0x1c85e6){const _0x11b107=new Set(this[_0x55e4('0xb')]);_0x11b107[_0x55e4('0xe')](_0x1c85e6),this[_0x55e4('0xb')]=_0x11b107;}['_bindAnnotationsToVisibleAnnotations'](){const _0x4effe2=this[_0x55e4('0x2')],_0x252a12=this[_0x55e4('0x13')];function _0x1e062d(_0x1de421){const _0x295b72=_0x1de421[_0x55e4('0x1')];_0x295b72['isVisible']&&!_0x252a12[_0x55e4('0x17')](_0x295b72)?_0x252a12['add'](_0x295b72):!_0x295b72[_0x55e4('0xf')]&&_0x252a12[_0x55e4('0x17')](_0x295b72)&&_0x252a12[_0x55e4('0x11')](_0x295b72),_0x295b72[_0x55e4('0x8')]['focusTracker'][_0x55e4('0x11')](_0x295b72[_0x55e4('0x8')]['element']),_0x295b72[_0x55e4('0x8')][_0x55e4('0xd')][_0x55e4('0x4')](_0x295b72[_0x55e4('0x8')][_0x55e4('0xa')]);}this[_0x55e4('0x16')](_0x4effe2,'add',(_0x4fea09,_0x47464c)=>{_0x47464c[_0x55e4('0xf')]&&_0x252a12[_0x55e4('0x4')](_0x47464c),this['listenTo'](_0x47464c,_0x55e4('0x6'),_0x1e062d);}),this['listenTo'](_0x4effe2,_0x55e4('0x11'),(_0xddfdc7,_0x4a3bd1)=>{_0x252a12[_0x55e4('0x17')](_0x4a3bd1)&&_0x252a12[_0x55e4('0x11')](_0x4a3bd1),this['stopListening'](_0x4a3bd1,_0x55e4('0x6'),_0x1e062d);});}}
23
+ const _0x1b82=['deactivateAll','collection','view','_visibleAnnotations','pluginName','destroy','has','delete','remove','_bindAnnotationsToVisibleAnnotations','set','source','listenTo','change:isVisible','_addActiveAnnotation','refreshPositioning','refreshVisibility','activate','getByInnerView','_deactivateAllAnnotations','fire','add','createAnnotation','activeAnnotations','isVisible','element','focusTracker'];(function(_0x327ae9,_0x1b8219){const _0x561cef=function(_0x28a4ac){while(--_0x28a4ac){_0x327ae9['push'](_0x327ae9['shift']());}};_0x561cef(++_0x1b8219);}(_0x1b82,0x138));const _0x561c=function(_0x327ae9,_0x1b8219){_0x327ae9=_0x327ae9-0x0;let _0x561cef=_0x1b82[_0x327ae9];return _0x561cef;};import{ContextPlugin as _0x10e69b}from'ckeditor5/src/core.js';import _0x1ac764 from'./annotation.js';import _0x3e9d1a from'./annotationcollection.js';import _0x519a14 from'./view/annotationview.js';export default class b extends _0x10e69b{static get[_0x561c('0x10')](){return'Annotations';}constructor(_0x159ef5){super(_0x159ef5),this[_0x561c('0xd')]=new _0x3e9d1a(),this['_visibleAnnotations']=new _0x3e9d1a(),this[_0x561c('0x16')](_0x561c('0x8'),new Set()),this['_bindAnnotationsToVisibleAnnotations']();}[_0x561c('0x6')](_0x153388){this[_0x561c('0xd')][_0x561c('0x6')](_0x153388);}[_0x561c('0x14')](_0x3d5474){this['collection'][_0x561c('0x14')](_0x3d5474),_0x3d5474[_0x561c('0x11')]();}[_0x561c('0x1')](){for(const _0x18b3a9 of this[_0x561c('0xd')])_0x18b3a9[_0x561c('0x1')]();}[_0x561c('0x0')](){this[_0x561c('0xf')][_0x561c('0x0')]();}[_0x561c('0x3')](_0x18ad33){return this['collection'][_0x561c('0x3')](_0x18ad33);}[_0x561c('0xc')](){this[_0x561c('0x5')](_0x561c('0x4'));}[_0x561c('0x11')](){for(const _0x526a49 of this[_0x561c('0xd')])_0x526a49['destroy']();this[_0x561c('0xf')][_0x561c('0x11')](),this[_0x561c('0xd')][_0x561c('0x11')](),super['destroy']();}[_0x561c('0x2')](_0x53d73f){this[_0x561c('0x5')]('_activateAnnotation',_0x53d73f);}[_0x561c('0x7')](_0x496bfa){return new _0x1ac764(_0x496bfa);}['createAnnotationView'](_0x40e5c1,_0x2d634d){return new _0x519a14(_0x40e5c1,_0x2d634d);}[_0x561c('0x1a')](_0xeb94){const _0x535eb1=new Set(this[_0x561c('0x8')]);_0x535eb1[_0x561c('0x6')](_0xeb94),this['activeAnnotations']=_0x535eb1;}['_removeActiveAnnotation'](_0x3dde10){const _0x598638=new Set(this[_0x561c('0x8')]);_0x598638[_0x561c('0x13')](_0x3dde10),this[_0x561c('0x8')]=_0x598638;}[_0x561c('0x15')](){const _0x51efa1=this[_0x561c('0xd')],_0x9187de=this[_0x561c('0xf')];function _0x1c0745(_0x368818){const _0x1e86f6=_0x368818[_0x561c('0x17')];_0x1e86f6[_0x561c('0x9')]&&!_0x9187de['has'](_0x1e86f6)?_0x9187de[_0x561c('0x6')](_0x1e86f6):!_0x1e86f6[_0x561c('0x9')]&&_0x9187de[_0x561c('0x12')](_0x1e86f6)&&_0x9187de['remove'](_0x1e86f6),_0x1e86f6['view'][_0x561c('0xb')][_0x561c('0x14')](_0x1e86f6[_0x561c('0xe')][_0x561c('0xa')]),_0x1e86f6[_0x561c('0xe')][_0x561c('0xb')]['add'](_0x1e86f6['view'][_0x561c('0xa')]);}this[_0x561c('0x18')](_0x51efa1,_0x561c('0x6'),(_0x339ba2,_0x4b7d63)=>{_0x4b7d63[_0x561c('0x9')]&&_0x9187de['add'](_0x4b7d63),this[_0x561c('0x18')](_0x4b7d63,_0x561c('0x19'),_0x1c0745);}),this['listenTo'](_0x51efa1,_0x561c('0x14'),(_0xeb1486,_0xf569f8)=>{_0x9187de['has'](_0xf569f8)&&_0x9187de[_0x561c('0x14')](_0xf569f8),this['stopListening'](_0xf569f8,'change:isVisible',_0x1c0745);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1b55=['attach','register','has','find','deactivateAll','annotationsuis-annotation-mismatch','pluginName','_uis','_assertAnnotationDoesNotBelongToMultipleUIs','delete','_addActiveAnnotation','_visibleAnnotations','listenTo','annotationsuis-register-already-registered','from','_uisData','switchTo','activate','get','set','context','add','size','activeUIs','AnnotationsUIs','annotationsuis-register-invalid-interface','length','refilterAnnotations','_deactivateAllAnnotations','isActive','type','function','activeAnnotations','detach','filter','destroy','push','_removeActiveAnnotation','hasActive','collection','setActiveAnnotation','plugins','requires','deactivate','annotationsuis-missing-ui','_setSelectedAnnotations'];(function(_0x2a0a32,_0x1b5516){const _0xd67674=function(_0x1d5066){while(--_0x1d5066){_0x2a0a32['push'](_0x2a0a32['shift']());}};_0xd67674(++_0x1b5516);}(_0x1b55,0x114));const _0xd676=function(_0x2a0a32,_0x1b5516){_0x2a0a32=_0x2a0a32-0x0;let _0xd67674=_0x1b55[_0x2a0a32];return _0xd67674;};import{ContextPlugin as _0x292047}from'ckeditor5/src/core.js';import{CKEditorError as _0x4fae03}from'ckeditor5/src/utils.js';import _0x306c30,{bindAnnotationCollections as _0x17d7c0}from'./annotationcollection.js';import _0x14c7e3 from'./annotations.js';export default class j extends _0x292047{static get[_0xd676('0x2a')](){return[_0x14c7e3];}static get[_0xd676('0x6')](){return _0xd676('0x18');}constructor(_0x3a8273){super(_0x3a8273),this[_0xd676('0x17')]=new Set(),this['_uis']=new Map(),this[_0xd676('0xf')]=new Map();}['init'](){const _0x5e4854=this['context'][_0xd676('0x29')]['get'](_0x14c7e3);this[_0xd676('0xc')](_0x5e4854,'_activateAnnotation',(_0x3ce26f,_0x4f48e4)=>{for(const _0x40ea7d of this[_0xd676('0x17')]){const _0x161e4e=this[_0xd676('0x7')][_0xd676('0x12')](_0x40ea7d);(0x0,this[_0xd676('0xf')][_0xd676('0x12')](_0x40ea7d)[_0xd676('0x22')])(_0x4f48e4)&&_0x161e4e[_0xd676('0x28')](_0x4f48e4);}}),this['listenTo'](_0x5e4854,_0xd676('0x1c'),()=>{for(const _0x5b8d92 of this['activeUIs']){this[_0xd676('0x7')][_0xd676('0x12')](_0x5b8d92)['setActiveAnnotation'](null);}}),this[_0xd676('0xc')](_0x5e4854[_0xd676('0xb')],_0xd676('0x15'),(_0x10a2a7,_0x52ab15)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x52ab15);});}[_0xd676('0x26')](){return this[_0xd676('0x17')][_0xd676('0x16')]>0x0;}[_0xd676('0x1d')](_0x3f330a){return this[_0xd676('0x17')][_0xd676('0x2')](_0x3f330a);}['activate'](_0x21dd4a,_0x47db3e=()=>!0x0){const _0x4420f0=this['context']['plugins']['get'](_0x14c7e3);if(!this[_0xd676('0x7')]['has'](_0x21dd4a))throw new _0x4fae03(_0xd676('0x2c'),this,{'uiName':_0x21dd4a});this[_0xd676('0x1d')](_0x21dd4a)&&this[_0xd676('0x2b')](_0x21dd4a),this[_0xd676('0x17')][_0xd676('0x15')](_0x21dd4a);const _0x11654f=new _0x306c30(),_0xfacf3e=_0x4420f0[_0xd676('0xb')];_0x17d7c0({'source':_0xfacf3e,'target':_0x11654f,'filter':_0x47db3e}),this[_0xd676('0xf')]['set'](_0x21dd4a,{'collection':_0x11654f,'filter':_0x47db3e});const _0x51242b=this[_0xd676('0x7')][_0xd676('0x12')](_0x21dd4a);_0x51242b[_0xd676('0x0')](_0x11654f),this[_0xd676('0xc')](_0x51242b,'change:activeAnnotation',(_0x34c2ab,_0x3e78c3,_0x59e00a,_0x13b511)=>{_0x13b511&&_0x4420f0[_0xd676('0x25')](_0x13b511),_0x59e00a&&_0x4420f0[_0xd676('0xa')](_0x59e00a);});}[_0xd676('0x2b')](_0x18a6b0){if(this['activeUIs']['delete'](_0x18a6b0),!this['_uis'][_0xd676('0x2')](_0x18a6b0))throw new _0x4fae03('annotationsuis-missing-ui',this,{'uiName':_0x18a6b0});const _0x39b926=this[_0xd676('0x7')][_0xd676('0x12')](_0x18a6b0);_0x39b926['detach'](),this['stopListening'](_0x39b926),this[_0xd676('0xf')][_0xd676('0x12')](_0x18a6b0)['collection']['destroy'](),this['_uisData'][_0xd676('0x9')](_0x18a6b0);}[_0xd676('0x10')](_0x5d8c83){if(!this[_0xd676('0x7')]['has'](_0x5d8c83))throw new _0x4fae03('annotationsuis-missing-ui',this,{'uiName':_0x5d8c83});const _0x1bca38=this[_0xd676('0x14')][_0xd676('0x29')][_0xd676('0x12')](_0x14c7e3),_0x4cde96=Array[_0xd676('0xe')](_0x1bca38[_0xd676('0x20')])[0x0]||null;this[_0xd676('0x4')](),this[_0xd676('0x11')](_0x5d8c83);const _0x1f6360=this['_uis'][_0xd676('0x12')](_0x5d8c83);_0x1f6360['setActiveAnnotation'](_0x4cde96),_0x1f6360[_0xd676('0x2d')]&&_0x4cde96&&_0x1f6360[_0xd676('0x2d')]([_0x4cde96]);}[_0xd676('0x4')](){for(const _0x1c4ecf of this[_0xd676('0x17')])this['deactivate'](_0x1c4ecf);}[_0xd676('0x1')](_0x139e56,_0x165831){if(this[_0xd676('0x7')][_0xd676('0x2')](_0x139e56))throw new _0x4fae03(_0xd676('0xd'));if(_0xd676('0x1f')!=typeof _0x165831[_0xd676('0x0')]||'function'!=typeof _0x165831[_0xd676('0x21')]||_0xd676('0x1f')!=typeof _0x165831['setActiveAnnotation'])throw new _0x4fae03(_0xd676('0x19'),null);this[_0xd676('0x7')][_0xd676('0x13')](_0x139e56,_0x165831);}[_0xd676('0x1b')](){const _0x2ab6cd=this[_0xd676('0x14')][_0xd676('0x29')][_0xd676('0x12')](_0x14c7e3)['collection'],_0x122758=new Map(),_0x538b1e=Array[_0xd676('0xe')](this['activeUIs']);for(const _0x570d12 of this['activeUIs']){const _0x32a251=this['_uisData'][_0xd676('0x12')](_0x570d12)[_0xd676('0x27')];for(const _0x364f3e of _0x32a251)_0x122758[_0xd676('0x13')](_0x364f3e,_0x570d12);}for(const _0x593b50 of _0x2ab6cd){const _0x3059e4=_0x122758['get'](_0x593b50);this[_0xd676('0x8')](_0x593b50);const _0x1d23ee=_0x538b1e[_0xd676('0x3')](_0x82f9b8=>this[_0xd676('0xf')][_0xd676('0x12')](_0x82f9b8)[_0xd676('0x22')](_0x593b50));_0x3059e4!==_0x1d23ee&&(_0x3059e4&&this[_0xd676('0xf')][_0xd676('0x12')](_0x3059e4)[_0xd676('0x27')]['remove'](_0x593b50),_0x1d23ee&&this[_0xd676('0xf')]['get'](_0x1d23ee)[_0xd676('0x27')]['add'](_0x593b50));}}['destroy'](){this[_0xd676('0x4')](),super[_0xd676('0x23')]();}[_0xd676('0x8')](_0x231824){const _0x13dfd6=[];for(const _0x37fea1 of this[_0xd676('0x17')]){(0x0,this[_0xd676('0xf')]['get'](_0x37fea1)[_0xd676('0x22')])(_0x231824)&&_0x13dfd6[_0xd676('0x24')](_0x37fea1);}if(_0x13dfd6[_0xd676('0x1a')]>0x1)throw new _0x4fae03(_0xd676('0x5'),null,{'matchedUIs':_0x13dfd6,'annotationType':_0x231824[_0xd676('0x1e')]});}}
23
+ const _0x1bee=['_activateAnnotation','add','deactivate','get','delete','filter','_visibleAnnotations','refilterAnnotations','push','from','length','AnnotationsUIs','destroy','_deactivateAllAnnotations','annotationsuis-register-already-registered','set','context','_uis','_setSelectedAnnotations','annotationsuis-register-invalid-interface','requires','remove','register','_assertAnnotationDoesNotBelongToMultipleUIs','listenTo','_uisData','collection','annotationsuis-missing-ui','_removeActiveAnnotation','pluginName','activate','annotationsuis-annotation-mismatch','activeAnnotations','deactivateAll','_addActiveAnnotation','setActiveAnnotation','stopListening','has','activeUIs','change:activeAnnotation','plugins','isActive','type','function'];(function(_0x1ddbc9,_0x1bee14){const _0x56bb8e=function(_0x591908){while(--_0x591908){_0x1ddbc9['push'](_0x1ddbc9['shift']());}};_0x56bb8e(++_0x1bee14);}(_0x1bee,0xe1));const _0x56bb=function(_0x1ddbc9,_0x1bee14){_0x1ddbc9=_0x1ddbc9-0x0;let _0x56bb8e=_0x1bee[_0x1ddbc9];return _0x56bb8e;};import{ContextPlugin as _0x7fcd24}from'ckeditor5/src/core.js';import{CKEditorError as _0x4e1269}from'ckeditor5/src/utils.js';import _0x582745,{bindAnnotationCollections as _0x3c3104}from'./annotationcollection.js';import _0x233589 from'./annotations.js';export default class j extends _0x7fcd24{static get[_0x56bb('0xf')](){return[_0x233589];}static get[_0x56bb('0x18')](){return _0x56bb('0x6');}constructor(_0x5b0b67){super(_0x5b0b67),this[_0x56bb('0x21')]=new Set(),this[_0x56bb('0xc')]=new Map(),this[_0x56bb('0x14')]=new Map();}['init'](){const _0x381be4=this['context'][_0x56bb('0x23')][_0x56bb('0x2a')](_0x233589);this[_0x56bb('0x13')](_0x381be4,_0x56bb('0x27'),(_0x5df786,_0x20dbb5)=>{for(const _0x282562 of this[_0x56bb('0x21')]){const _0x3bc118=this['_uis'][_0x56bb('0x2a')](_0x282562);(0x0,this[_0x56bb('0x14')][_0x56bb('0x2a')](_0x282562)[_0x56bb('0x0')])(_0x20dbb5)&&_0x3bc118[_0x56bb('0x1e')](_0x20dbb5);}}),this[_0x56bb('0x13')](_0x381be4,_0x56bb('0x8'),()=>{for(const _0x5cdbe3 of this[_0x56bb('0x21')]){this['_uis']['get'](_0x5cdbe3)['setActiveAnnotation'](null);}}),this['listenTo'](_0x381be4['_visibleAnnotations'],'add',(_0x24f0c5,_0xd79812)=>{this[_0x56bb('0x12')](_0xd79812);});}['hasActive'](){return this['activeUIs']['size']>0x0;}[_0x56bb('0x24')](_0x338c45){return this['activeUIs'][_0x56bb('0x20')](_0x338c45);}[_0x56bb('0x19')](_0x40832d,_0x2610b8=()=>!0x0){const _0x4f27d4=this[_0x56bb('0xb')][_0x56bb('0x23')][_0x56bb('0x2a')](_0x233589);if(!this[_0x56bb('0xc')][_0x56bb('0x20')](_0x40832d))throw new _0x4e1269(_0x56bb('0x16'),this,{'uiName':_0x40832d});this[_0x56bb('0x24')](_0x40832d)&&this[_0x56bb('0x29')](_0x40832d),this[_0x56bb('0x21')][_0x56bb('0x28')](_0x40832d);const _0x7b7863=new _0x582745(),_0x1abb5a=_0x4f27d4[_0x56bb('0x1')];_0x3c3104({'source':_0x1abb5a,'target':_0x7b7863,'filter':_0x2610b8}),this[_0x56bb('0x14')][_0x56bb('0xa')](_0x40832d,{'collection':_0x7b7863,'filter':_0x2610b8});const _0x1b8d4f=this[_0x56bb('0xc')][_0x56bb('0x2a')](_0x40832d);_0x1b8d4f['attach'](_0x7b7863),this[_0x56bb('0x13')](_0x1b8d4f,_0x56bb('0x22'),(_0x517e4b,_0x4bc9f8,_0x210179,_0x445f0e)=>{_0x445f0e&&_0x4f27d4[_0x56bb('0x17')](_0x445f0e),_0x210179&&_0x4f27d4[_0x56bb('0x1d')](_0x210179);});}[_0x56bb('0x29')](_0x4fe489){if(this[_0x56bb('0x21')]['delete'](_0x4fe489),!this[_0x56bb('0xc')][_0x56bb('0x20')](_0x4fe489))throw new _0x4e1269(_0x56bb('0x16'),this,{'uiName':_0x4fe489});const _0xa48e23=this[_0x56bb('0xc')]['get'](_0x4fe489);_0xa48e23['detach'](),this[_0x56bb('0x1f')](_0xa48e23),this[_0x56bb('0x14')][_0x56bb('0x2a')](_0x4fe489)[_0x56bb('0x15')][_0x56bb('0x7')](),this['_uisData'][_0x56bb('0x2b')](_0x4fe489);}['switchTo'](_0x36d1d1){if(!this[_0x56bb('0xc')][_0x56bb('0x20')](_0x36d1d1))throw new _0x4e1269('annotationsuis-missing-ui',this,{'uiName':_0x36d1d1});const _0x4d9e5b=this[_0x56bb('0xb')][_0x56bb('0x23')][_0x56bb('0x2a')](_0x233589),_0x48fe24=Array[_0x56bb('0x4')](_0x4d9e5b[_0x56bb('0x1b')])[0x0]||null;this['deactivateAll'](),this[_0x56bb('0x19')](_0x36d1d1);const _0x586ef5=this[_0x56bb('0xc')][_0x56bb('0x2a')](_0x36d1d1);_0x586ef5['setActiveAnnotation'](_0x48fe24),_0x586ef5['_setSelectedAnnotations']&&_0x48fe24&&_0x586ef5[_0x56bb('0xd')]([_0x48fe24]);}[_0x56bb('0x1c')](){for(const _0x962916 of this['activeUIs'])this[_0x56bb('0x29')](_0x962916);}[_0x56bb('0x11')](_0x59e740,_0x36cef8){if(this[_0x56bb('0xc')][_0x56bb('0x20')](_0x59e740))throw new _0x4e1269(_0x56bb('0x9'));if('function'!=typeof _0x36cef8['attach']||_0x56bb('0x26')!=typeof _0x36cef8['detach']||_0x56bb('0x26')!=typeof _0x36cef8['setActiveAnnotation'])throw new _0x4e1269(_0x56bb('0xe'),null);this[_0x56bb('0xc')][_0x56bb('0xa')](_0x59e740,_0x36cef8);}[_0x56bb('0x2')](){const _0x5bb1e5=this[_0x56bb('0xb')][_0x56bb('0x23')][_0x56bb('0x2a')](_0x233589)[_0x56bb('0x15')],_0x3f1b20=new Map(),_0x39df3f=Array[_0x56bb('0x4')](this[_0x56bb('0x21')]);for(const _0x1fc00f of this[_0x56bb('0x21')]){const _0x135e33=this[_0x56bb('0x14')][_0x56bb('0x2a')](_0x1fc00f)['collection'];for(const _0x5a62e6 of _0x135e33)_0x3f1b20[_0x56bb('0xa')](_0x5a62e6,_0x1fc00f);}for(const _0x9e6ff2 of _0x5bb1e5){const _0x527906=_0x3f1b20[_0x56bb('0x2a')](_0x9e6ff2);this[_0x56bb('0x12')](_0x9e6ff2);const _0x56097f=_0x39df3f['find'](_0x260112=>this[_0x56bb('0x14')]['get'](_0x260112)[_0x56bb('0x0')](_0x9e6ff2));_0x527906!==_0x56097f&&(_0x527906&&this[_0x56bb('0x14')][_0x56bb('0x2a')](_0x527906)[_0x56bb('0x15')][_0x56bb('0x10')](_0x9e6ff2),_0x56097f&&this['_uisData'][_0x56bb('0x2a')](_0x56097f)[_0x56bb('0x15')][_0x56bb('0x28')](_0x9e6ff2));}}[_0x56bb('0x7')](){this['deactivateAll'](),super[_0x56bb('0x7')]();}[_0x56bb('0x12')](_0x34c37f){const _0x35a0b7=[];for(const _0x2098b2 of this[_0x56bb('0x21')]){(0x0,this[_0x56bb('0x14')][_0x56bb('0x2a')](_0x2098b2)[_0x56bb('0x0')])(_0x34c37f)&&_0x35a0b7[_0x56bb('0x3')](_0x2098b2);}if(_0x35a0b7[_0x56bb('0x5')]>0x1)throw new _0x4e1269(_0x56bb('0x1a'),null,{'matchedUIs':_0x35a0b7,'annotationType':_0x34c37f[_0x56bb('0x25')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x37e6=['uiUpdate','annotation','editing','refreshSelectedViews','directChange','fire','focusTracker','init','containsRange','cancel','getRanges','registerAnnotation','isEqual','_editorAnnotationsData','editorannotations-invalid-source-callback','view','_dataCollectors','isReadOnly','editor','element','add','refresh','model','blur','innerView','document','has','function','plugins','delete','listenTo','map','change:isFocused','hasDomSelection','addSourceCollector','from','_editorAnnotations','range','selection','remove','change:range','sort','EditorAnnotations','collection','requires','pluginName'];(function(_0x559d7d,_0x37e68b){const _0x4f4725=function(_0x3e2b0c){while(--_0x3e2b0c){_0x559d7d['push'](_0x559d7d['shift']());}};_0x4f4725(++_0x37e68b);}(_0x37e6,0x1cb));const _0x4f47=function(_0x559d7d,_0x37e68b){_0x559d7d=_0x559d7d-0x0;let _0x4f4725=_0x37e6[_0x559d7d];return _0x4f4725;};import{Plugin as _0x1def78}from'ckeditor5/src/core.js';import{CKEditorError as _0xd67a62}from'ckeditor5/src/utils.js';import{debounce as _0x81dd7d}from'lodash-es';import _0x1f9389 from'./annotations.js';export default class k extends _0x1def78{static get[_0x4f47('0x2d')](){return[_0x1f9389];}static get[_0x4f47('0x0')](){return _0x4f47('0x2b');}constructor(_0x447fd6){super(_0x447fd6),this[_0x4f47('0x11')]=new Set(),this[_0x4f47('0x25')]=new Set();}[_0x4f47('0x8')](){const _0x1550a1=this[_0x4f47('0x13')],_0x1bd39a=_0x1550a1[_0x4f47('0x17')][_0x4f47('0x1a')]['selection'],_0x53b808=_0x81dd7d(()=>this[_0x4f47('0x4')](),0xa);_0x1bd39a['on'](_0x4f47('0x29'),(_0x42655e,_0x2db0ed)=>{_0x2db0ed[_0x4f47('0x5')]&&(_0x53b808[_0x4f47('0xa')](),this[_0x4f47('0x4')]());}),this[_0x4f47('0x1f')](_0x1550a1[_0x4f47('0x3')][_0x4f47('0x10')]['document'],_0x4f47('0x21'),(_0x20c63a,_0x4bf921,_0x47c7f1)=>{_0x47c7f1&&_0x53b808();}),this[_0x4f47('0x1f')](_0x1550a1['ui'][_0x4f47('0x7')],_0x4f47('0x21'),(_0x56a5f3,_0x13994f,_0x2e0142)=>{_0x2e0142||_0x1550a1[_0x4f47('0x12')]||this[_0x4f47('0x6')](_0x4f47('0x18'),{'isAnnotationTracked':_0x130166=>this['_editorAnnotationsData'][_0x4f47('0x1b')](_0x130166[_0x4f47('0x19')])});}),this[_0x4f47('0x1f')](this[_0x4f47('0x13')]['ui'],'update',()=>this[_0x4f47('0x6')](_0x4f47('0x1')));}[_0x4f47('0xc')](_0x136502){if(this[_0x4f47('0x25')][_0x4f47('0x1b')](_0x136502[_0x4f47('0x10')]))return;this[_0x4f47('0x25')][_0x4f47('0x15')](_0x136502[_0x4f47('0x10')]),this['editor']['ui'][_0x4f47('0x7')][_0x4f47('0x15')](_0x136502[_0x4f47('0x10')]['element']);const _0x25b41d=this['editor'][_0x4f47('0x1d')]['get'](_0x1f9389);this[_0x4f47('0x1f')](_0x25b41d[_0x4f47('0x2c')],_0x4f47('0x28'),(_0x3e24aa,_0xd41c4e)=>{this['editor']['ui'][_0x4f47('0x7')]['remove'](_0xd41c4e[_0x4f47('0x10')][_0x4f47('0x14')]),this[_0x4f47('0x25')][_0x4f47('0x1e')](_0xd41c4e[_0x4f47('0x10')]);});}[_0x4f47('0x22')](){return this[_0x4f47('0x13')][_0x4f47('0x3')][_0x4f47('0x10')][_0x4f47('0x22')];}[_0x4f47('0x23')](_0x1f73b8){if(_0x4f47('0x1c')!=typeof _0x1f73b8)throw new _0xd67a62(_0x4f47('0xf'));this[_0x4f47('0x11')][_0x4f47('0x15')](_0x1f73b8);}[_0x4f47('0x4')](){this['fire'](_0x4f47('0x16'));}['getOrderedSelectedAnnotations']({activeAnnotation:_0xf4ca20,annotations:_0x396419}){const _0xacc0f1=[],_0x2f8182=this[_0x4f47('0x13')][_0x4f47('0x17')]['document'][_0x4f47('0x27')],_0x550c79=Array['from'](_0x2f8182[_0x4f47('0xb')]());for(const [_0x4114d4,_0x248ca0]of this[_0x4f47('0xe')]){const _0x4af075=_0x364003(_0x248ca0),_0xc72cd8=_0x396419['getByInnerView'](_0x4114d4);_0x4af075&&_0xc72cd8&&_0xacc0f1['push']({'annotation':_0xc72cd8,'range':_0x4af075});}function _0x364003(_0x59e741){for(const _0x4f079d of _0x59e741)for(const _0x43edb3 of _0x550c79)if(_0x4f079d[_0x4f47('0x9')](_0x43edb3,!_0x2f8182['isCollapsed']))return _0x4f079d;return null;}return _0xacc0f1[_0x4f47('0x2a')]((_0x10b246,_0x5e70fe)=>{const _0x182f23=_0x10b246['range'],_0x2b6afc=_0x5e70fe[_0x4f47('0x26')];if(!_0x182f23[_0x4f47('0xd')](_0x2b6afc)){if(_0x182f23[_0x4f47('0x9')](_0x2b6afc,!0x0))return 0x1;if(_0x2b6afc[_0x4f47('0x9')](_0x182f23,!0x0))return-0x1;}return _0x10b246[_0x4f47('0x2')]==_0xf4ca20?-0x1:_0x5e70fe[_0x4f47('0x2')]==_0xf4ca20?0x1:0x0;})[_0x4f47('0x20')](_0x2513a9=>_0x2513a9[_0x4f47('0x2')]);}get[_0x4f47('0xe')](){const _0x2ebbc8=new Map();for(const _0x3ff1c4 of Array[_0x4f47('0x24')](this['_dataCollectors']))for(const [_0x370242,_0x45dd7e]of _0x3ff1c4())_0x2ebbc8['set'](_0x370242,_0x45dd7e);return _0x2ebbc8;}}
23
+ const _0x2bf9=['listenTo','function','get','directChange','delete','range','_dataCollectors','plugins','requires','blur','EditorAnnotations','_editorAnnotations','addSourceCollector','fire','uiUpdate','innerView','getByInnerView','remove','model','from','hasDomSelection','focusTracker','has','_editorAnnotationsData','view','add','refreshSelectedViews','annotation','change:range','isEqual','pluginName','document','selection','sort','editorannotations-invalid-source-callback','map','containsRange','refresh','editor','update','isCollapsed','push'];(function(_0x13ee8f,_0x2bf997){const _0x581dba=function(_0x57d004){while(--_0x57d004){_0x13ee8f['push'](_0x13ee8f['shift']());}};_0x581dba(++_0x2bf997);}(_0x2bf9,0xb7));const _0x581d=function(_0x13ee8f,_0x2bf997){_0x13ee8f=_0x13ee8f-0x0;let _0x581dba=_0x2bf9[_0x13ee8f];return _0x581dba;};import{Plugin as _0x7463a3}from'ckeditor5/src/core.js';import{CKEditorError as _0xff62ee}from'ckeditor5/src/utils.js';import{debounce as _0x2f744f}from'lodash-es';import _0x58c3a6 from'./annotations.js';export default class k extends _0x7463a3{static get[_0x581d('0x23')](){return[_0x58c3a6];}static get[_0x581d('0xf')](){return _0x581d('0x25');}constructor(_0x5c2b2b){super(_0x5c2b2b),this[_0x581d('0x21')]=new Set(),this[_0x581d('0x26')]=new Set();}['init'](){const _0x36a456=this['editor'],_0xc10416=_0x36a456[_0x581d('0x3')][_0x581d('0x10')][_0x581d('0x11')],_0x326c19=_0x2f744f(()=>this[_0x581d('0xb')](),0xa);_0xc10416['on'](_0x581d('0xd'),(_0x1cecc5,_0x3f7acb)=>{_0x3f7acb[_0x581d('0x1e')]&&(_0x326c19['cancel'](),this[_0x581d('0xb')]());}),this['listenTo'](_0x36a456['editing'][_0x581d('0x9')][_0x581d('0x10')],'change:isFocused',(_0xf4f744,_0x49a7e9,_0x3f3aa0)=>{_0x3f3aa0&&_0x326c19();}),this[_0x581d('0x1b')](_0x36a456['ui']['focusTracker'],'change:isFocused',(_0x508ee1,_0x305fb5,_0x359ddb)=>{_0x359ddb||_0x36a456['isReadOnly']||this['fire'](_0x581d('0x24'),{'isAnnotationTracked':_0x2316c1=>this[_0x581d('0x8')][_0x581d('0x7')](_0x2316c1[_0x581d('0x0')])});}),this[_0x581d('0x1b')](this['editor']['ui'],_0x581d('0x18'),()=>this[_0x581d('0x28')](_0x581d('0x29')));}['registerAnnotation'](_0x2c4631){if(this[_0x581d('0x26')][_0x581d('0x7')](_0x2c4631[_0x581d('0x9')]))return;this['_editorAnnotations']['add'](_0x2c4631[_0x581d('0x9')]),this['editor']['ui'][_0x581d('0x6')][_0x581d('0xa')](_0x2c4631['view']['element']);const _0x37be3b=this[_0x581d('0x17')][_0x581d('0x22')][_0x581d('0x1d')](_0x58c3a6);this['listenTo'](_0x37be3b['collection'],'remove',(_0x5d964a,_0x525e81)=>{this['editor']['ui']['focusTracker'][_0x581d('0x2')](_0x525e81[_0x581d('0x9')]['element']),this[_0x581d('0x26')][_0x581d('0x1f')](_0x525e81[_0x581d('0x9')]);});}[_0x581d('0x5')](){return this[_0x581d('0x17')]['editing'][_0x581d('0x9')]['hasDomSelection'];}[_0x581d('0x27')](_0x16f519){if(_0x581d('0x1c')!=typeof _0x16f519)throw new _0xff62ee(_0x581d('0x13'));this['_dataCollectors'][_0x581d('0xa')](_0x16f519);}[_0x581d('0xb')](){this[_0x581d('0x28')](_0x581d('0x16'));}['getOrderedSelectedAnnotations']({activeAnnotation:_0x3a1eac,annotations:_0x494089}){const _0x1409e2=[],_0x5a7c12=this[_0x581d('0x17')][_0x581d('0x3')][_0x581d('0x10')][_0x581d('0x11')],_0x1f283f=Array[_0x581d('0x4')](_0x5a7c12['getRanges']());for(const [_0x817866,_0x1cc1ae]of this[_0x581d('0x8')]){const _0x1d1598=_0x3b4ce0(_0x1cc1ae),_0x21c010=_0x494089[_0x581d('0x1')](_0x817866);_0x1d1598&&_0x21c010&&_0x1409e2[_0x581d('0x1a')]({'annotation':_0x21c010,'range':_0x1d1598});}function _0x3b4ce0(_0x238cc3){for(const _0x4f1715 of _0x238cc3)for(const _0x444ade of _0x1f283f)if(_0x4f1715[_0x581d('0x15')](_0x444ade,!_0x5a7c12[_0x581d('0x19')]))return _0x4f1715;return null;}return _0x1409e2[_0x581d('0x12')]((_0xfded66,_0x2e195d)=>{const _0x29a471=_0xfded66[_0x581d('0x20')],_0x551e57=_0x2e195d[_0x581d('0x20')];if(!_0x29a471[_0x581d('0xe')](_0x551e57)){if(_0x29a471[_0x581d('0x15')](_0x551e57,!0x0))return 0x1;if(_0x551e57[_0x581d('0x15')](_0x29a471,!0x0))return-0x1;}return _0xfded66[_0x581d('0xc')]==_0x3a1eac?-0x1:_0x2e195d[_0x581d('0xc')]==_0x3a1eac?0x1:0x0;})[_0x581d('0x14')](_0x3daf52=>_0x3daf52[_0x581d('0xc')]);}get['_editorAnnotationsData'](){const _0x120d3a=new Map();for(const _0x2a2433 of Array[_0x581d('0x4')](this[_0x581d('0x21')]))for(const [_0x5d1fe9,_0x37df34]of _0x2a2433())_0x120d3a['set'](_0x5d1fe9,_0x37df34);return _0x120d3a;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5e35=['listenTo','isActive','attach','InlineAnnotations','editor','focus','update','_balloon','stopListening','includes','get','context','inlineannotations-detach-not-attached','showStack','pluginName','view','_getBalloonTargetForAnnotation','focusTracker','clear','setActiveAnnotation','_forceRefresh','push','_selectedAnnotations','getBoundingClientRect','requires','detach','keystrokes','isAttached','mousedown','change:height','selection','_setSelectedAnnotations','viewRangeToDom','_addAnnotationToBalloon','targetRect','editing','hasView','updatePosition','remove','getFirstRange','_closeAnnotation','right','init','activeAnnotation','bottom','inlineannotations-not-allowed-with-context','set','isFocused','delete','switchTo','Esc','top','refresh','inline','_manuallyClosed','fromRect','change:visibleView','destroy','plugins','blur','_removeAnnotationFromBalloon','annotations','change:isFocused','_addedAnnotations','length','document','visibleView','from','width','afterInit','left','register'];(function(_0xe6bca0,_0x5e356a){const _0x4194b0=function(_0x303e2d){while(--_0x303e2d){_0xe6bca0['push'](_0xe6bca0['shift']());}};_0x4194b0(++_0x5e356a);}(_0x5e35,0xa0));const _0x4194=function(_0xe6bca0,_0x5e356a){_0xe6bca0=_0xe6bca0-0x0;let _0x4194b0=_0x5e35[_0xe6bca0];return _0x4194b0;};import{Plugin as _0x30c4e4}from'ckeditor5/src/core.js';import _0x28a2e4 from'./annotationsuis.js';import _0x258d8c from'./editorannotations.js';import{ContextualBalloon as _0x1f9f14}from'ckeditor5/src/ui.js';import{MouseObserver as _0x56cb1a}from'ckeditor5/src/engine.js';import{CKEditorError as _0xa92bba,Rect as _0x46fa87}from'ckeditor5/src/utils.js';import'./../../theme/annotation-inline.css';export default class c extends _0x30c4e4{static get[_0x4194('0x8')](){return[_0x258d8c,_0x1f9f14,_0x28a2e4];}static get[_0x4194('0x46')](){return _0x4194('0x3b');}constructor(_0x431ed9){super(_0x431ed9),_0x431ed9[_0x4194('0x13')][_0x4194('0x47')]['addObserver'](_0x56cb1a),this[_0x4194('0xb')]=!0x1,this[_0x4194('0x1e')]('activeAnnotation',null),this[_0x4194('0x2d')]=null,this[_0x4194('0x26')]=new Set(),this[_0x4194('0x3f')]=_0x431ed9[_0x4194('0x2a')]['get'](_0x1f9f14),this[_0x4194('0x2f')]=new Set(),this[_0x4194('0x6')]=[],this[_0x4194('0x4')]=!0x1;}[_0x4194('0x1a')](){const _0x4380ae=this[_0x4194('0x3c')][_0x4194('0x2a')][_0x4194('0x42')](_0x28a2e4);_0x4380ae[_0x4194('0x43')]===this[_0x4194('0x3c')]&&(_0x4380ae[_0x4194('0x37')](_0x4194('0x25'),this),this[_0x4194('0x3c')][_0x4194('0xa')][_0x4194('0x1e')]('Esc',(_0x4c3e34,_0x484c3f)=>{const _0x1786f9=this['_balloon'];if(this[_0x4194('0xb')]&&_0x1786f9[_0x4194('0x32')]){const _0x48296b=this[_0x4194('0x2d')]['getByView'](_0x1786f9[_0x4194('0x32')]);_0x48296b&&this[_0x4194('0x18')](_0x48296b),_0x484c3f();}}));}[_0x4194('0x35')](){const _0x14bada=this['editor'][_0x4194('0x2a')][_0x4194('0x42')](_0x28a2e4);_0x14bada['context']===this[_0x4194('0x3c')]&&(_0x14bada['hasActive']()||_0x14bada[_0x4194('0x21')](_0x4194('0x25')));}['setActiveAnnotation'](_0x4d6f93){_0x4d6f93!==this[_0x4194('0x1b')]&&(this[_0x4194('0x1b')]&&(this[_0x4194('0x1b')][_0x4194('0x39')]=!0x1),_0x4d6f93&&this[_0x4194('0x3c')]['ui'][_0x4194('0x1')][_0x4194('0x1f')]&&(this['annotations']['has'](_0x4d6f93)&&this['_addAnnotationToBalloon'](_0x4d6f93,!0x0),_0x4d6f93['isActive']=!0x0),_0x4d6f93||this[_0x4194('0xf')]([]),this[_0x4194('0x1b')]=_0x4d6f93);}[_0x4194('0x3a')](_0x2c4afc){this['annotations']=_0x2c4afc;const _0x17680a=this[_0x4194('0x3c')][_0x4194('0x2a')][_0x4194('0x42')](_0x28a2e4),_0x23732e=this[_0x4194('0x3f')];if(this[_0x4194('0xb')])throw new _0xa92bba('inlineannotations-attach-already-attached',this);if(_0x17680a['context']!==this['editor'])throw new _0xa92bba(_0x4194('0x1d'),this);const _0x405ee5=this['editor'][_0x4194('0x2a')][_0x4194('0x42')](_0x258d8c);this[_0x4194('0x38')](_0x405ee5,_0x4194('0x24'),()=>{const _0x1423a7=_0x405ee5['getOrderedSelectedAnnotations']({'annotations':this[_0x4194('0x2d')],'activeAnnotation':this['activeAnnotation']});var _0x39bb12,_0x5b1be6;!this[_0x4194('0x4')]&&(_0x39bb12=_0x1423a7,_0x5b1be6=this['_selectedAnnotations'],_0x39bb12[_0x4194('0x30')]===_0x5b1be6[_0x4194('0x30')]&&_0x39bb12['every'](_0x4531cf=>_0x5b1be6[_0x4194('0x41')](_0x4531cf)))||(this[_0x4194('0x4')]=!0x1,this[_0x4194('0xf')](_0x1423a7),this[_0x4194('0x3')](_0x1423a7[0x0]||null));}),this[_0x4194('0x38')](_0x405ee5,_0x4194('0x2b'),(_0x56edf2,{isAnnotationTracked:_0x3bcd94})=>{this[_0x4194('0x1b')]&&_0x3bcd94(this[_0x4194('0x1b')])&&(this['_setSelectedAnnotations']([]),this[_0x4194('0x3')](null));}),this[_0x4194('0x38')](this[_0x4194('0x3c')]['ui']['focusTracker'],_0x4194('0x2e'),(_0x5a4abe,_0xce2e02,_0x483098)=>{_0x483098||this[_0x4194('0x3')](null);}),this['listenTo'](_0x2c4afc,_0x4194('0x16'),(_0x11ea42,_0x1ae083)=>{this[_0x4194('0x2c')](_0x1ae083),_0x1ae083===this[_0x4194('0x1b')]&&this[_0x4194('0x3')](null);}),this[_0x4194('0x38')](_0x23732e,_0x4194('0x28'),(_0x58f772,_0x43d833,_0x8dd43b,_0x46d300)=>{_0x46d300&&this[_0x4194('0x40')](_0x46d300);const _0x3ac2a1=_0x2c4afc['getByView'](_0x8dd43b);_0x8dd43b&&_0x3ac2a1&&(this[_0x4194('0x38')](_0x8dd43b,_0x4194('0xd'),()=>{_0x23732e[_0x4194('0x15')]();}),this['listenTo'](_0x8dd43b,_0x4194('0x22'),()=>{this[_0x4194('0x18')](_0x3ac2a1),this[_0x4194('0x3c')]['editing'][_0x4194('0x47')]['focus']();}),this['activeAnnotation']!==_0x3ac2a1&&this['setActiveAnnotation'](_0x3ac2a1));}),this[_0x4194('0x38')](this['editor']['ui'],_0x4194('0x3e'),()=>{_0x23732e[_0x4194('0x32')]&&(_0x2c4afc['getByView'](_0x23732e['visibleView'])&&_0x23732e[_0x4194('0x15')]());}),this[_0x4194('0x38')](this[_0x4194('0x3c')][_0x4194('0x13')]['view'][_0x4194('0x31')],_0x4194('0xc'),()=>{this['_forceRefresh']=!0x0,this[_0x4194('0x26')][_0x4194('0x2')]();}),this[_0x4194('0x3c')][_0x4194('0x13')][_0x4194('0x47')][_0x4194('0x31')]['selection']['editableElement']&&this['editor'][_0x4194('0x13')][_0x4194('0x47')][_0x4194('0x3d')](),this[_0x4194('0xb')]=!0x0;}[_0x4194('0x9')](){if(!this[_0x4194('0xb')])throw new _0xa92bba(_0x4194('0x44'),this);this[_0x4194('0x3')](null);for(const _0x2b00de of this[_0x4194('0x2f')])this[_0x4194('0x2c')](_0x2b00de);this[_0x4194('0x40')](),this[_0x4194('0xb')]=!0x1,this[_0x4194('0x2d')]=null;}[_0x4194('0x29')](){this[_0x4194('0xb')]&&this[_0x4194('0x9')]();}['_setSelectedAnnotations'](_0x3462c4){for(const _0x4b51fd of this['_selectedAnnotations'])_0x3462c4['includes'](_0x4b51fd)||this[_0x4194('0x26')][_0x4194('0x20')](_0x4b51fd);for(const _0x12d273 of this[_0x4194('0x2d')])_0x3462c4['includes'](_0x12d273)||this[_0x4194('0x2c')](_0x12d273);if(this['editor']['ui']['focusTracker'][_0x4194('0x1f')])for(const _0x4bcb6c of _0x3462c4)this['_addAnnotationToBalloon'](_0x4bcb6c);this[_0x4194('0x6')]=_0x3462c4;}[_0x4194('0x11')](_0x43a8b9,_0x1f1085=!0x1){this[_0x4194('0x26')]['has'](_0x43a8b9)||(this['_addedAnnotations']['has'](_0x43a8b9)||this[_0x4194('0x3f')][_0x4194('0x14')](_0x43a8b9[_0x4194('0x47')])||(this[_0x4194('0x2f')]['add'](_0x43a8b9),this[_0x4194('0x3f')]['add']({'stackId':_0x43a8b9[_0x4194('0x47')]['id'],'view':_0x43a8b9['view'],'position':{'target':()=>this[_0x4194('0x0')](_0x43a8b9)}})),_0x1f1085&&this[_0x4194('0x3f')][_0x4194('0x45')](_0x43a8b9[_0x4194('0x47')]['id']));}['_getBalloonTargetForAnnotation'](_0x18dfb0){const _0x3c552c=_0x18dfb0['target'],_0x60a5f7=this[_0x4194('0x3c')][_0x4194('0x13')][_0x4194('0x47')],_0x2cb962=_0x60a5f7[_0x4194('0x31')][_0x4194('0xe')][_0x4194('0x17')](),_0x24d759=_0x60a5f7['domConverter'][_0x4194('0x10')](_0x2cb962);if(_0x24d759['collapse'](!0x0),_0x3c552c){if(_0x3c552c instanceof _0x46fa87)return _0x3c552c;let _0x29dafb=[];for(const _0x5cb706 of _0x3c552c)_0x29dafb[_0x4194('0x5')](...(_0x484b6c=_0x5cb706['getClientRects'](),Array[_0x4194('0x33')](_0x484b6c)['map'](DOMRect[_0x4194('0x27')])));_0x29dafb=function(_0x309d45){const _0xcd8610=[];let _0x3e0da8=_0x309d45[0x0];for(let _0x1a6e59=0x1;_0x1a6e59<_0x309d45['length'];_0x1a6e59++)F(_0x3e0da8,_0x309d45[_0x1a6e59])?_0x3e0da8[_0x4194('0x34')]+=_0x309d45[_0x1a6e59][_0x4194('0x34')]:(_0xcd8610[_0x4194('0x5')](_0x3e0da8),_0x3e0da8=_0x309d45[_0x1a6e59]);return _0xcd8610['push'](_0x3e0da8),_0xcd8610;}(_0x29dafb);const _0x5909bd=_0x24d759[_0x4194('0x7')]();return _0x29dafb['find'](_0x3696f7=>_0x3696f7[_0x4194('0x23')]<=_0x5909bd[_0x4194('0x23')]&&_0x3696f7[_0x4194('0x1c')]>=_0x5909bd[_0x4194('0x1c')]&&_0x3696f7[_0x4194('0x36')]<=_0x5909bd[_0x4194('0x36')]&&_0x3696f7[_0x4194('0x19')]>=_0x5909bd[_0x4194('0x19')])||_0x29dafb[0x0];}var _0x484b6c;return _0x18dfb0[_0x4194('0x12')]||_0x24d759;}['_removeAnnotationFromBalloon'](_0x59ae88){this[_0x4194('0x2f')]['has'](_0x59ae88)&&this[_0x4194('0x3f')][_0x4194('0x14')](_0x59ae88[_0x4194('0x47')])&&(this[_0x4194('0x2f')][_0x4194('0x20')](_0x59ae88),this['_balloon']['remove'](_0x59ae88[_0x4194('0x47')]));}[_0x4194('0x18')](_0x2fe7b6){this[_0x4194('0x26')]['add'](_0x2fe7b6),this['_removeAnnotationFromBalloon'](_0x2fe7b6);}}function F(_0x49a4dc,_0x11717f){return _0x49a4dc['top']===_0x11717f['top']&&_0x49a4dc['bottom']===_0x11717f[_0x4194('0x1c')]&&_0x49a4dc[_0x4194('0x19')]===_0x11717f[_0x4194('0x36')];}
23
+ const _0x4d0b=['change:isFocused','focusTracker','hasActive','_forceRefresh','init','_addedAnnotations','annotations','right','_selectedAnnotations','push','domConverter','activeAnnotation','visibleView','getClientRects','setActiveAnnotation','set','focus','listenTo','_removeAnnotationFromBalloon','fromRect','register','_setSelectedAnnotations','requires','plugins','clear','change:height','editing','get','inlineannotations-attach-already-attached','editor','bottom','collapse','addObserver','target','isAttached','editableElement','_manuallyClosed','_addAnnotationToBalloon','delete','_closeAnnotation','view','left','getBoundingClientRect','getOrderedSelectedAnnotations','selection','map','length','width','_balloon','mousedown','stopListening','document','Esc','showStack','inline','isFocused','inlineannotations-not-allowed-with-context','detach','hasView','keystrokes','every','InlineAnnotations','attach','change:visibleView','updatePosition','includes','getByView','top','remove','from','context','has','add','targetRect','switchTo','isActive','pluginName','_getBalloonTargetForAnnotation'];(function(_0x4669bb,_0x4d0bbd){const _0x44727c=function(_0x4277c7){while(--_0x4277c7){_0x4669bb['push'](_0x4669bb['shift']());}};_0x44727c(++_0x4d0bbd);}(_0x4d0b,0x18c));const _0x4472=function(_0x4669bb,_0x4d0bbd){_0x4669bb=_0x4669bb-0x0;let _0x44727c=_0x4d0b[_0x4669bb];return _0x44727c;};import{Plugin as _0x3c5c6c}from'ckeditor5/src/core.js';import _0x3626d7 from'./annotationsuis.js';import _0xd8d130 from'./editorannotations.js';import{ContextualBalloon as _0x485e33}from'ckeditor5/src/ui.js';import{MouseObserver as _0x51619f}from'ckeditor5/src/engine.js';import{CKEditorError as _0x70466c,Rect as _0x19822c}from'ckeditor5/src/utils.js';import'./../../theme/annotation-inline.css';export default class c extends _0x3c5c6c{static get[_0x4472('0x10')](){return[_0xd8d130,_0x485e33,_0x3626d7];}static get[_0x4472('0x46')](){return _0x4472('0x37');}constructor(_0x1187d4){super(_0x1187d4),_0x1187d4[_0x4472('0x14')][_0x4472('0x22')][_0x4472('0x1a')](_0x51619f),this[_0x4472('0x1c')]=!0x1,this[_0x4472('0x9')]('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this[_0x4472('0x2a')]=_0x1187d4['plugins']['get'](_0x485e33),this[_0x4472('0x4d')]=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}[_0x4472('0x4c')](){const _0x416933=this['editor'][_0x4472('0x11')][_0x4472('0x15')](_0x3626d7);_0x416933['context']===this[_0x4472('0x17')]&&(_0x416933[_0x4472('0xe')](_0x4472('0x30'),this),this[_0x4472('0x17')][_0x4472('0x35')][_0x4472('0x9')](_0x4472('0x2e'),(_0x478ad0,_0x1271ab)=>{const _0x4bc605=this['_balloon'];if(this['isAttached']&&_0x4bc605[_0x4472('0x6')]){const _0x42f00c=this[_0x4472('0x0')][_0x4472('0x3c')](_0x4bc605[_0x4472('0x6')]);_0x42f00c&&this[_0x4472('0x21')](_0x42f00c),_0x1271ab();}}));}['afterInit'](){const _0x17b9b5=this[_0x4472('0x17')][_0x4472('0x11')][_0x4472('0x15')](_0x3626d7);_0x17b9b5[_0x4472('0x40')]===this[_0x4472('0x17')]&&(_0x17b9b5[_0x4472('0x4a')]()||_0x17b9b5[_0x4472('0x44')](_0x4472('0x30')));}[_0x4472('0x8')](_0x3656c4){_0x3656c4!==this['activeAnnotation']&&(this[_0x4472('0x5')]&&(this[_0x4472('0x5')][_0x4472('0x45')]=!0x1),_0x3656c4&&this[_0x4472('0x17')]['ui'][_0x4472('0x49')][_0x4472('0x31')]&&(this[_0x4472('0x0')]['has'](_0x3656c4)&&this[_0x4472('0x1f')](_0x3656c4,!0x0),_0x3656c4['isActive']=!0x0),_0x3656c4||this[_0x4472('0xf')]([]),this[_0x4472('0x5')]=_0x3656c4);}[_0x4472('0x38')](_0x2ad3a8){this[_0x4472('0x0')]=_0x2ad3a8;const _0x5b3603=this[_0x4472('0x17')][_0x4472('0x11')][_0x4472('0x15')](_0x3626d7),_0x27fab8=this['_balloon'];if(this['isAttached'])throw new _0x70466c(_0x4472('0x16'),this);if(_0x5b3603['context']!==this[_0x4472('0x17')])throw new _0x70466c(_0x4472('0x32'),this);const _0x3a91ba=this[_0x4472('0x17')][_0x4472('0x11')][_0x4472('0x15')](_0xd8d130);this['listenTo'](_0x3a91ba,'refresh',()=>{const _0x35b524=_0x3a91ba[_0x4472('0x25')]({'annotations':this[_0x4472('0x0')],'activeAnnotation':this[_0x4472('0x5')]});var _0x4d539c,_0x2584b6;!this[_0x4472('0x4b')]&&(_0x4d539c=_0x35b524,_0x2584b6=this[_0x4472('0x2')],_0x4d539c[_0x4472('0x28')]===_0x2584b6[_0x4472('0x28')]&&_0x4d539c[_0x4472('0x36')](_0x5128a2=>_0x2584b6['includes'](_0x5128a2)))||(this['_forceRefresh']=!0x1,this[_0x4472('0xf')](_0x35b524),this['setActiveAnnotation'](_0x35b524[0x0]||null));}),this[_0x4472('0xb')](_0x3a91ba,'blur',(_0x3f3a74,{isAnnotationTracked:_0x53a523})=>{this[_0x4472('0x5')]&&_0x53a523(this[_0x4472('0x5')])&&(this[_0x4472('0xf')]([]),this[_0x4472('0x8')](null));}),this[_0x4472('0xb')](this['editor']['ui']['focusTracker'],_0x4472('0x48'),(_0x2d658e,_0x5d605c,_0x3ccae0)=>{_0x3ccae0||this['setActiveAnnotation'](null);}),this[_0x4472('0xb')](_0x2ad3a8,_0x4472('0x3e'),(_0x257998,_0x573409)=>{this['_removeAnnotationFromBalloon'](_0x573409),_0x573409===this['activeAnnotation']&&this[_0x4472('0x8')](null);}),this['listenTo'](_0x27fab8,_0x4472('0x39'),(_0x4ff083,_0x13344d,_0x8e08a7,_0x42132f)=>{_0x42132f&&this[_0x4472('0x2c')](_0x42132f);const _0x500aa6=_0x2ad3a8[_0x4472('0x3c')](_0x8e08a7);_0x8e08a7&&_0x500aa6&&(this[_0x4472('0xb')](_0x8e08a7,_0x4472('0x13'),()=>{_0x27fab8[_0x4472('0x3a')]();}),this[_0x4472('0xb')](_0x8e08a7,'Esc',()=>{this[_0x4472('0x21')](_0x500aa6),this[_0x4472('0x17')][_0x4472('0x14')][_0x4472('0x22')]['focus']();}),this['activeAnnotation']!==_0x500aa6&&this[_0x4472('0x8')](_0x500aa6));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x27fab8['visibleView']&&(_0x2ad3a8['getByView'](_0x27fab8[_0x4472('0x6')])&&_0x27fab8[_0x4472('0x3a')]());}),this[_0x4472('0xb')](this[_0x4472('0x17')][_0x4472('0x14')][_0x4472('0x22')][_0x4472('0x2d')],_0x4472('0x2b'),()=>{this[_0x4472('0x4b')]=!0x0,this[_0x4472('0x1e')][_0x4472('0x12')]();}),this[_0x4472('0x17')][_0x4472('0x14')]['view'][_0x4472('0x2d')][_0x4472('0x26')][_0x4472('0x1d')]&&this[_0x4472('0x17')][_0x4472('0x14')][_0x4472('0x22')][_0x4472('0xa')](),this[_0x4472('0x1c')]=!0x0;}[_0x4472('0x33')](){if(!this['isAttached'])throw new _0x70466c('inlineannotations-detach-not-attached',this);this[_0x4472('0x8')](null);for(const _0x42f85a of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x42f85a);this[_0x4472('0x2c')](),this[_0x4472('0x1c')]=!0x1,this[_0x4472('0x0')]=null;}['destroy'](){this[_0x4472('0x1c')]&&this[_0x4472('0x33')]();}['_setSelectedAnnotations'](_0x3afc53){for(const _0x3d6128 of this['_selectedAnnotations'])_0x3afc53[_0x4472('0x3b')](_0x3d6128)||this[_0x4472('0x1e')][_0x4472('0x20')](_0x3d6128);for(const _0x1425a8 of this['annotations'])_0x3afc53['includes'](_0x1425a8)||this[_0x4472('0xc')](_0x1425a8);if(this[_0x4472('0x17')]['ui']['focusTracker']['isFocused'])for(const _0x40e2f3 of _0x3afc53)this['_addAnnotationToBalloon'](_0x40e2f3);this[_0x4472('0x2')]=_0x3afc53;}[_0x4472('0x1f')](_0x27eeff,_0x490b0c=!0x1){this[_0x4472('0x1e')][_0x4472('0x41')](_0x27eeff)||(this[_0x4472('0x4d')][_0x4472('0x41')](_0x27eeff)||this[_0x4472('0x2a')][_0x4472('0x34')](_0x27eeff['view'])||(this[_0x4472('0x4d')][_0x4472('0x42')](_0x27eeff),this[_0x4472('0x2a')][_0x4472('0x42')]({'stackId':_0x27eeff[_0x4472('0x22')]['id'],'view':_0x27eeff['view'],'position':{'target':()=>this[_0x4472('0x47')](_0x27eeff)}})),_0x490b0c&&this[_0x4472('0x2a')][_0x4472('0x2f')](_0x27eeff[_0x4472('0x22')]['id']));}['_getBalloonTargetForAnnotation'](_0x46f27d){const _0x5b54e4=_0x46f27d[_0x4472('0x1b')],_0x3e8036=this['editor'][_0x4472('0x14')]['view'],_0x2811fe=_0x3e8036[_0x4472('0x2d')][_0x4472('0x26')]['getFirstRange'](),_0x2cd1ad=_0x3e8036[_0x4472('0x4')]['viewRangeToDom'](_0x2811fe);if(_0x2cd1ad[_0x4472('0x19')](!0x0),_0x5b54e4){if(_0x5b54e4 instanceof _0x19822c)return _0x5b54e4;let _0x421653=[];for(const _0x39c89c of _0x5b54e4)_0x421653[_0x4472('0x3')](...(_0x59f5ce=_0x39c89c[_0x4472('0x7')](),Array[_0x4472('0x3f')](_0x59f5ce)[_0x4472('0x27')](DOMRect[_0x4472('0xd')])));_0x421653=function(_0x3675ce){const _0x5471b2=[];let _0x4c04a7=_0x3675ce[0x0];for(let _0x5df5bc=0x1;_0x5df5bc<_0x3675ce[_0x4472('0x28')];_0x5df5bc++)F(_0x4c04a7,_0x3675ce[_0x5df5bc])?_0x4c04a7[_0x4472('0x29')]+=_0x3675ce[_0x5df5bc][_0x4472('0x29')]:(_0x5471b2['push'](_0x4c04a7),_0x4c04a7=_0x3675ce[_0x5df5bc]);return _0x5471b2[_0x4472('0x3')](_0x4c04a7),_0x5471b2;}(_0x421653);const _0x15f480=_0x2cd1ad[_0x4472('0x24')]();return _0x421653['find'](_0xecce7f=>_0xecce7f[_0x4472('0x3d')]<=_0x15f480['top']&&_0xecce7f[_0x4472('0x18')]>=_0x15f480[_0x4472('0x18')]&&_0xecce7f[_0x4472('0x23')]<=_0x15f480['left']&&_0xecce7f[_0x4472('0x1')]>=_0x15f480[_0x4472('0x1')])||_0x421653[0x0];}var _0x59f5ce;return _0x46f27d[_0x4472('0x43')]||_0x2cd1ad;}[_0x4472('0xc')](_0x151262){this[_0x4472('0x4d')][_0x4472('0x41')](_0x151262)&&this['_balloon']['hasView'](_0x151262[_0x4472('0x22')])&&(this[_0x4472('0x4d')][_0x4472('0x20')](_0x151262),this[_0x4472('0x2a')][_0x4472('0x3e')](_0x151262['view']));}[_0x4472('0x21')](_0x5c5b94){this['_manuallyClosed'][_0x4472('0x42')](_0x5c5b94),this[_0x4472('0xc')](_0x5c5b94);}}function F(_0x9e6233,_0x2d358c){return _0x9e6233['top']===_0x2d358c[_0x4472('0x3d')]&&_0x9e6233[_0x4472('0x18')]===_0x2d358c[_0x4472('0x18')]&&_0x9e6233['right']===_0x2d358c[_0x4472('0x23')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4723=['view','values','get','stopPropagation','_refreshPositioningDebounced','unpin','keydown','resize','focusableElements','activeAnnotation','bodyCollection','number','isDirty','listenTo','locale','change:height','refreshPositioning','defaultPositions','stop','uiUpdate','southArrowNorthWest','editors','set','setActiveAnnotation','register','bind','context','isAttached','keyCode','content','narrowsidebar-detach-not-attached','annotations','high','hasDomSelection','stopListening','blur','_showBalloon','_destroyEditorAnnotationsIntegration','_detachFromContainer','find','refresh','mousedown','southArrowNorthEast','isVisible','type','target','_attachListeners','_selectedAnnotations','northArrowSouthWest','_detachListeners','_annotationToNarrowView','focus','plugins','_setSelectedAnnotations','_updateBalloonPosition','destroy','EditorAnnotations','from','cancel','narrowSidebar','element','esc','remove','pin','preventClosingBalloon','getOrderedSelectedAnnotations','Esc','_editorAnnotations','clear','first','has','add','low','includes','requires','NarrowSidebar','balloonPanelView','annotationType','northArrowSouth','getByView','southArrowNorth','rearrange','ck-sidebar--narrow','attach','narrowsidebar-attach-already-attached','addAnnotation','ready','detach','_hideBalloon','attachToDom','delete','detachFromDom','addEventListener','_manuallyClosedAnnotationViews','_refreshPositioning','contains','_domEmitter','pluginName','_integrateWithEditorAnnotations'];(function(_0x2a122f,_0x4723ff){const _0x2ea238=function(_0x1ace5f){while(--_0x1ace5f){_0x2a122f['push'](_0x2a122f['shift']());}};_0x2ea238(++_0x4723ff);}(_0x4723,0x6f));const _0x2ea2=function(_0x2a122f,_0x4723ff){_0x2a122f=_0x2a122f-0x0;let _0x2ea238=_0x4723[_0x2a122f];return _0x2ea238;};import{ContextPlugin as _0x14885a,Context as _0x506f74}from'ckeditor5/src/core.js';import _0x178e8b from'./annotationsuis.js';import _0x2e99c6 from'./sidebar.js';import _0x444072 from'./view/annotationcounterbuttonview.js';import{BalloonPanelView as _0x1df862,BodyCollection as _0x29cfbf}from'ckeditor5/src/ui.js';import{CKEditorError as _0x15d8a8,DomEmitterMixin as _0x19bc93,keyCodes as _0x6602a,Collection as _0x2fd49e}from'ckeditor5/src/utils.js';import'../../theme/sidebar-narrow.css';import{debounce as _0x129cb1}from'lodash-es';import _0x8e8d05 from'./editorannotations.js';export default class i extends _0x14885a{static get[_0x2ea2('0x3e')](){return[_0x2e99c6,_0x178e8b];}static get[_0x2ea2('0x55')](){return _0x2ea2('0x3f');}constructor(_0x5817cd){super(_0x5817cd),this[_0x2ea2('0xf')]=!0x1,this[_0x2ea2('0x51')]=new Set(),this[_0x2ea2('0x54')]=Object['create'](_0x19bc93),this[_0x2ea2('0x26')]=new Map(),this[_0x2ea2('0xa')]('activeAnnotation',null),this['annotations']=null,this[_0x2ea2('0x23')]=[],this[_0x2ea2('0x37')]=new _0x2fd49e(),this[_0x2ea2('0x5b')]=_0x129cb1(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context'][_0x2ea2('0x28')][_0x2ea2('0x59')](_0x178e8b)[_0x2ea2('0xc')](_0x2ea2('0x2f'),this),this['bodyCollection']=new _0x29cfbf(this[_0x2ea2('0xe')][_0x2ea2('0x2')]),this[_0x2ea2('0x40')]=new _0x1df862(this[_0x2ea2('0xe')][_0x2ea2('0x2')]),this[_0x2ea2('0x61')][_0x2ea2('0x4d')](),this[_0x2ea2('0x61')]['add'](this[_0x2ea2('0x40')]);}[_0x2ea2('0x47')](_0x1c4e7c){this['annotations']=_0x1c4e7c;const _0xdbe001=this[_0x2ea2('0xe')][_0x2ea2('0x28')]['get'](_0x2e99c6),_0x8a62e7=this[_0x2ea2('0x40')];if(_0xdbe001['_annotations']=_0x1c4e7c,this[_0x2ea2('0xf')])throw new _0x15d8a8(_0x2ea2('0x48'),this);this[_0x2ea2('0xf')]=!0x0,this['listenTo'](_0xdbe001,'set:container',()=>{this[_0x2ea2('0x4b')](),this['listenTo'](_0xdbe001,'change:container',_0x180676=>{_0x180676['off'](),this['attach'](_0x1c4e7c);});}),_0xdbe001['_attachToContainer']({'viewClass':_0x2ea2('0x46'),'spaceBetweenItems':0x5});const _0x736a91=_0x38a369=>{const _0x315179=new _0x444072(this[_0x2ea2('0xe')][_0x2ea2('0x2')]);_0xdbe001[_0x2ea2('0x49')](_0x38a369,_0x315179),this[_0x2ea2('0x26')][_0x2ea2('0xa')](_0x38a369,_0x315179),_0x315179[_0x2ea2('0xd')](_0x2ea2('0x0'),_0x2ea2('0x41'),_0x2ea2('0x62'))['to'](_0x38a369[_0x2ea2('0x57')],'isDirty',_0x2ea2('0x20'),'length'),_0x315179['on']('execute',()=>{this[_0x2ea2('0x51')][_0x2ea2('0x38')](),_0x8a62e7['content'][_0x2ea2('0x39')]!==_0x38a369['view']?(this[_0x2ea2('0x18')](_0x38a369),_0x38a369[_0x2ea2('0x57')][_0x2ea2('0x30')][_0x2ea2('0x27')](),this['setActiveAnnotation'](_0x38a369)):this['setActiveAnnotation'](null);});};for(const _0x18dcdc of _0x1c4e7c)_0x736a91(_0x18dcdc);this[_0x2ea2('0x1')](_0x1c4e7c,_0x2ea2('0x3b'),(_0x2dbc94,_0x1e9027)=>{_0x736a91(_0x1e9027);}),this[_0x2ea2('0x1')](_0x1c4e7c,'remove',(_0xd4457,_0x2f552f,_0x40e8f6)=>{this[_0x2ea2('0x26')][_0x2ea2('0x59')](_0x2f552f)[_0x2ea2('0x2b')](),this[_0x2ea2('0x26')]['delete'](_0x2f552f),_0xdbe001[_0x2ea2('0x45')]({'removedAnnotation':_0x2f552f,'previousAnnotation':_0x1c4e7c[_0x2ea2('0x59')](_0x40e8f6-0x1),'nextAnnotation':_0x1c4e7c['get'](_0x40e8f6+0x1)}),_0x2f552f===this[_0x2ea2('0x60')]&&this[_0x2ea2('0xb')](null);},{'priority':_0x2ea2('0x3c')}),this[_0x2ea2('0x1')](_0x1c4e7c,_0x2ea2('0x27'),(_0x59e1e6,_0x1b8dd0)=>{this[_0x2ea2('0xb')](_0x1b8dd0);}),this[_0x2ea2('0x1')](_0x1c4e7c,_0x2ea2('0x17'),()=>{this[_0x2ea2('0xb')](null);}),this[_0x2ea2('0x54')][_0x2ea2('0x1')](document,_0x2ea2('0x5d'),(_0x1d7598,_0x512ca6)=>{_0x512ca6[_0x2ea2('0x10')]===_0x6602a[_0x2ea2('0x31')]&&_0x8a62e7[_0x2ea2('0x1f')]&&(this[_0x2ea2('0x51')][_0x2ea2('0x3b')](_0x8a62e7['content']['first']),this[_0x2ea2('0x4c')](),_0x512ca6[_0x2ea2('0x5a')](),_0x512ca6['preventDefault']());}),this[_0x2ea2('0x54')][_0x2ea2('0x1')](document,_0x2ea2('0x1d'),(_0x15e65a,_0x591392)=>{const _0x2b9d99=_0x591392[_0x2ea2('0x21')];_0x8a62e7[_0x2ea2('0x1f')]&&_0x8a62e7['element'][_0x2ea2('0x53')](_0x2b9d99)||_0xdbe001[_0x2ea2('0x57')][_0x2ea2('0x30')][_0x2ea2('0x53')](_0x2b9d99)||_0x15e65a['preventClosingBalloon']||this[_0x2ea2('0x60')]&&this[_0x2ea2('0x60')][_0x2ea2('0x5f')][_0x2ea2('0x1b')](_0x52322b=>_0x52322b[_0x2ea2('0x53')](_0x2b9d99))||(this['_manuallyClosedAnnotationViews'][_0x2ea2('0x38')](),this[_0x2ea2('0x4c')](),this[_0x2ea2('0xb')](null));});const _0x53f2aa=this[_0x2ea2('0xe')]instanceof _0x506f74?this['context'][_0x2ea2('0x9')]:new _0x2fd49e([this[_0x2ea2('0xe')]]);for(const _0x1bcdd3 of _0x53f2aa)this[_0x2ea2('0x56')](_0x1bcdd3);this[_0x2ea2('0x1')](_0x53f2aa,_0x2ea2('0x3b'),(_0x4db8be,_0x4cd9e1)=>{this[_0x2ea2('0x1')](_0x4cd9e1,_0x2ea2('0x4a'),()=>{this[_0x2ea2('0x56')](_0x4cd9e1);});}),this[_0x2ea2('0x1')](_0x53f2aa,'remove',(_0x183213,_0x5cc8f9)=>{_0x5cc8f9[_0x2ea2('0x28')][_0x2ea2('0x3a')](_0x2ea2('0x2c'))&&this[_0x2ea2('0x19')](_0x5cc8f9['plugins'][_0x2ea2('0x59')](_0x2ea2('0x2c')));}),window[_0x2ea2('0x50')](_0x2ea2('0x5e'),this[_0x2ea2('0x5b')]),this['_refreshPositioning']();}[_0x2ea2('0xb')](_0x47bc24){if(_0x47bc24===this['activeAnnotation'])return;const _0x1df987=this[_0x2ea2('0xe')][_0x2ea2('0x28')][_0x2ea2('0x59')](_0x2e99c6);if(_0x1df987[_0x2ea2('0x1c')]({'blurredAnnotation':this[_0x2ea2('0x60')],'activatedAnnotation':_0x47bc24,'disableAnimationOnActivatedAnnotation':!0x0}),_0x47bc24)_0x1df987['getSidebarItemView'](_0x47bc24)?this[_0x2ea2('0x18')](_0x47bc24):this['_hideBalloon']();else this[_0x2ea2('0x4c')]();this['activeAnnotation']=_0x47bc24;}[_0x2ea2('0x4b')](){if(!this[_0x2ea2('0xf')])throw new _0x15d8a8(_0x2ea2('0x12'),this);this['setActiveAnnotation'](null);const _0x4a3941=this['context'][_0x2ea2('0x28')][_0x2ea2('0x59')](_0x2e99c6);this[_0x2ea2('0x4c')](),Array[_0x2ea2('0x2d')](this[_0x2ea2('0x26')][_0x2ea2('0x58')](),_0x137be7=>_0x137be7[_0x2ea2('0x2b')]()),this[_0x2ea2('0x26')][_0x2ea2('0x38')](),_0x4a3941[_0x2ea2('0x1a')](this['annotations']),this[_0x2ea2('0x16')](),this[_0x2ea2('0x54')][_0x2ea2('0x16')](),this[_0x2ea2('0xe')]instanceof _0x506f74&&this[_0x2ea2('0x16')](this[_0x2ea2('0xe')]['editors']);for(const _0x48fe8d of Array[_0x2ea2('0x2d')](this[_0x2ea2('0x37')]))this[_0x2ea2('0x19')](_0x48fe8d);window['removeEventListener']('resize',this[_0x2ea2('0x5b')]),this[_0x2ea2('0x5b')][_0x2ea2('0x2e')](),this['_selectedAnnotations']=[],this[_0x2ea2('0xf')]=!0x1,this[_0x2ea2('0x13')]=null;}[_0x2ea2('0x2b')](){this[_0x2ea2('0xf')]&&this[_0x2ea2('0x4b')](),this[_0x2ea2('0x61')][_0x2ea2('0x4f')]();}['_integrateWithEditorAnnotations'](_0x574ea5){const _0x33464d=_0x574ea5[_0x2ea2('0x28')][_0x2ea2('0x59')](_0x8e8d05),_0x42fc26=this['context'][_0x2ea2('0x28')]['get'](_0x2e99c6),_0x1eba2f=this[_0x2ea2('0x13')],_0x2ed4f7=this[_0x2ea2('0x40')],_0x3c17be=()=>{const _0x435acf=_0x33464d[_0x2ea2('0x35')]({'annotations':this[_0x2ea2('0x13')],'activeAnnotation':this[_0x2ea2('0x60')]});this[_0x2ea2('0x29')](_0x435acf),this[_0x2ea2('0xb')](_0x435acf[0x0]||null);};this[_0x2ea2('0x1')](_0x33464d,_0x2ea2('0x1c'),_0x3c17be),this['listenTo'](_0x33464d,'blur',(_0x317dcd,{isAnnotationTracked:_0x22184e})=>{this[_0x2ea2('0x60')]&&_0x22184e(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this[_0x2ea2('0xb')](null));}),this[_0x2ea2('0x1')](_0x33464d,_0x2ea2('0x7'),()=>{this[_0x2ea2('0x5b')]();}),this[_0x2ea2('0x1')](_0x1eba2f,_0x2ea2('0x17'),_0x255ba5=>{_0x33464d[_0x2ea2('0x15')]()&&_0x255ba5[_0x2ea2('0x6')]();},{'priority':_0x2ea2('0x14')}),this[_0x2ea2('0x1')](this[_0x2ea2('0x54')],_0x2ea2('0x1d'),(_0x28f1b7,_0x5b2908)=>{const _0x382dc1=_0x5b2908[_0x2ea2('0x21')];_0x2ed4f7['isVisible']&&_0x2ed4f7[_0x2ea2('0x30')][_0x2ea2('0x53')](_0x382dc1)||_0x42fc26[_0x2ea2('0x57')][_0x2ea2('0x30')][_0x2ea2('0x53')](_0x382dc1)||this['activeAnnotation']&&_0x33464d[_0x2ea2('0x15')]()&&(_0x3c17be(),_0x28f1b7[_0x2ea2('0x34')]=!0x0);},{'priority':_0x2ea2('0x14')}),this[_0x2ea2('0x37')]['add'](_0x33464d);}[_0x2ea2('0x19')](_0x3e9dcc){_0x3e9dcc&&(this['stopListening'](_0x3e9dcc),this[_0x2ea2('0x37')][_0x2ea2('0x32')](_0x3e9dcc));}['_setSelectedAnnotations'](_0x112f3f){for(const _0x400347 of this[_0x2ea2('0x23')])_0x112f3f[_0x2ea2('0x3d')](_0x400347)||this[_0x2ea2('0x51')][_0x2ea2('0x4e')](_0x400347[_0x2ea2('0x57')]);this[_0x2ea2('0x23')]=_0x112f3f;}[_0x2ea2('0x52')](){const _0x66c1ff=this[_0x2ea2('0x40')];this[_0x2ea2('0x13')][_0x2ea2('0x4')](),_0x66c1ff[_0x2ea2('0x1f')]&&this[_0x2ea2('0x2a')]();}[_0x2ea2('0x18')](_0x46984c){if(this['_manuallyClosedAnnotationViews']['has'](_0x46984c[_0x2ea2('0x57')]))return;const _0x283fde=this[_0x2ea2('0x40')][_0x2ea2('0x11')][_0x2ea2('0x39')];_0x283fde!==_0x46984c[_0x2ea2('0x57')]?(_0x283fde&&this['_detachListeners'](_0x283fde),this[_0x2ea2('0x22')](_0x46984c[_0x2ea2('0x57')]),this[_0x2ea2('0x40')][_0x2ea2('0x11')][_0x2ea2('0x38')](),this[_0x2ea2('0x40')][_0x2ea2('0x11')][_0x2ea2('0x3b')](_0x46984c[_0x2ea2('0x57')]),this[_0x2ea2('0x2a')]()):this[_0x2ea2('0x2a')]();}[_0x2ea2('0x2a')](){const _0x36c077=this[_0x2ea2('0x40')][_0x2ea2('0x11')]['first'],_0x12192e=_0x36c077&&this[_0x2ea2('0x13')][_0x2ea2('0x43')](_0x36c077);if(!_0x12192e||!this[_0x2ea2('0x26')][_0x2ea2('0x3a')](_0x12192e))return;const _0x5b3cd4=this['_annotationToNarrowView'][_0x2ea2('0x59')](_0x12192e)['element'],_0x7d4d68=function(){const _0xfa3b2d=_0x1df862[_0x2ea2('0x5')];return[_0xfa3b2d[_0x2ea2('0x1e')],_0xfa3b2d['northArrowSouthEast'],_0xfa3b2d[_0x2ea2('0x44')],_0xfa3b2d[_0x2ea2('0x42')],_0xfa3b2d[_0x2ea2('0x8')],_0xfa3b2d[_0x2ea2('0x24')]];}();this[_0x2ea2('0x40')][_0x2ea2('0x33')]({'target':_0x5b3cd4,'positions':_0x7d4d68});}[_0x2ea2('0x4c')](){const _0x55441e=this['balloonPanelView'],_0x28a06c=_0x55441e[_0x2ea2('0x11')][_0x2ea2('0x39')];_0x28a06c&&(this[_0x2ea2('0x25')](_0x28a06c),_0x55441e[_0x2ea2('0x5c')](),_0x55441e[_0x2ea2('0x11')][_0x2ea2('0x38')]());}[_0x2ea2('0x22')](_0x227233){this['listenTo'](_0x227233,_0x2ea2('0x3'),()=>this[_0x2ea2('0x2a')]()),this['listenTo'](_0x227233,_0x2ea2('0x36'),(_0xb184c3,_0x5e1edd)=>{this[_0x2ea2('0x51')][_0x2ea2('0x3b')](_0x227233),this[_0x2ea2('0x4c')](),_0x5e1edd();});}[_0x2ea2('0x25')](_0x287a39){this[_0x2ea2('0x16')](_0x287a39);}}
23
+ const _0xe109=['view','refreshPositioning','content','activeAnnotation','annotations','_hideBalloon','Esc','isDirty','preventClosingBalloon','init','cancel','change:height','stopListening','defaultPositions','isAttached','change:container','_refreshPositioning','unpin','_showBalloon','stopPropagation','keyCode','southArrowNorth','bind','_annotationToNarrowView','listenTo','isVisible','remove','_attachListeners','detach','setActiveAnnotation','keydown','element','focusableElements','resize','context','attachToDom','rearrange','_destroyEditorAnnotationsIntegration','high','plugins','register','ready','_domEmitter','length','getByView','bodyCollection','_integrateWithEditorAnnotations','attach','create','_setSelectedAnnotations','delete','hasDomSelection','_updateBalloonPosition','detachFromDom','narrowSidebar','values','get','_manuallyClosedAnnotationViews','first','destroy','contains','_selectedAnnotations','EditorAnnotations','_detachListeners','refresh','northArrowSouthEast','_annotations','balloonPanelView','addAnnotation','target','locale','getOrderedSelectedAnnotations','stop','_editorAnnotations','_refreshPositioningDebounced','editors','_detachFromContainer','NarrowSidebar','focus','uiUpdate','has','ck-sidebar--narrow','getSidebarItemView','addEventListener','from','southArrowNorthEast','number','blur','removeEventListener','clear','set','add'];(function(_0x150705,_0xe109c0){const _0x3184b7=function(_0x3af11f){while(--_0x3af11f){_0x150705['push'](_0x150705['shift']());}};_0x3184b7(++_0xe109c0);}(_0xe109,0xbc));const _0x3184=function(_0x150705,_0xe109c0){_0x150705=_0x150705-0x0;let _0x3184b7=_0xe109[_0x150705];return _0x3184b7;};import{ContextPlugin as _0x5a8ea9,Context as _0x4a5fc6}from'ckeditor5/src/core.js';import _0x11e238 from'./annotationsuis.js';import _0x1c1083 from'./sidebar.js';import _0x124d4d from'./view/annotationcounterbuttonview.js';import{BalloonPanelView as _0x486bd9,BodyCollection as _0x10248a}from'ckeditor5/src/ui.js';import{CKEditorError as _0x486fd5,DomEmitterMixin as _0xf61baf,keyCodes as _0x5c4e4d,Collection as _0x251f9c}from'ckeditor5/src/utils.js';import'../../theme/sidebar-narrow.css';import{debounce as _0x59a0a7}from'lodash-es';import _0x1069e4 from'./editorannotations.js';export default class i extends _0x5a8ea9{static get['requires'](){return[_0x1c1083,_0x11e238];}static get['pluginName'](){return _0x3184('0x49');}constructor(_0x5ea3e8){super(_0x5ea3e8),this['isAttached']=!0x1,this[_0x3184('0x35')]=new Set(),this[_0x3184('0x26')]=Object[_0x3184('0x2c')](_0xf61baf),this[_0x3184('0x13')]=new Map(),this['set'](_0x3184('0x5b'),null),this[_0x3184('0x0')]=null,this[_0x3184('0x39')]=[],this['_editorAnnotations']=new _0x251f9c(),this[_0x3184('0x46')]=_0x59a0a7(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}[_0x3184('0x5')](){this[_0x3184('0x1e')][_0x3184('0x23')][_0x3184('0x34')](_0x11e238)[_0x3184('0x24')](_0x3184('0x32'),this),this[_0x3184('0x29')]=new _0x10248a(this[_0x3184('0x1e')]['locale']),this[_0x3184('0x3f')]=new _0x486bd9(this[_0x3184('0x1e')][_0x3184('0x42')]),this['bodyCollection'][_0x3184('0x1f')](),this[_0x3184('0x29')][_0x3184('0x57')](this[_0x3184('0x3f')]);}[_0x3184('0x2b')](_0x5e0e54){this[_0x3184('0x0')]=_0x5e0e54;const _0x600311=this[_0x3184('0x1e')]['plugins'][_0x3184('0x34')](_0x1c1083),_0x104c55=this[_0x3184('0x3f')];if(_0x600311[_0x3184('0x3e')]=_0x5e0e54,this[_0x3184('0xa')])throw new _0x486fd5('narrowsidebar-attach-already-attached',this);this[_0x3184('0xa')]=!0x0,this[_0x3184('0x14')](_0x600311,'set:container',()=>{this['detach'](),this[_0x3184('0x14')](_0x600311,_0x3184('0xb'),_0x5f51eb=>{_0x5f51eb['off'](),this[_0x3184('0x2b')](_0x5e0e54);});}),_0x600311['_attachToContainer']({'viewClass':_0x3184('0x4d'),'spaceBetweenItems':0x5});const _0x582d38=_0x4e108c=>{const _0x66068a=new _0x124d4d(this[_0x3184('0x1e')][_0x3184('0x42')]);_0x600311[_0x3184('0x40')](_0x4e108c,_0x66068a),this[_0x3184('0x13')][_0x3184('0x56')](_0x4e108c,_0x66068a),_0x66068a[_0x3184('0x12')](_0x3184('0x3'),'annotationType',_0x3184('0x52'))['to'](_0x4e108c[_0x3184('0x58')],_0x3184('0x3'),'type',_0x3184('0x27')),_0x66068a['on']('execute',()=>{this[_0x3184('0x35')][_0x3184('0x55')](),_0x104c55['content'][_0x3184('0x36')]!==_0x4e108c[_0x3184('0x58')]?(this[_0x3184('0xe')](_0x4e108c),_0x4e108c['view'][_0x3184('0x1b')][_0x3184('0x4a')](),this[_0x3184('0x19')](_0x4e108c)):this[_0x3184('0x19')](null);});};for(const _0x183680 of _0x5e0e54)_0x582d38(_0x183680);this[_0x3184('0x14')](_0x5e0e54,_0x3184('0x57'),(_0x568acc,_0x406427)=>{_0x582d38(_0x406427);}),this[_0x3184('0x14')](_0x5e0e54,'remove',(_0x25610c,_0x5bd17d,_0x59b041)=>{this[_0x3184('0x13')][_0x3184('0x34')](_0x5bd17d)[_0x3184('0x37')](),this[_0x3184('0x13')][_0x3184('0x2e')](_0x5bd17d),_0x600311[_0x3184('0x20')]({'removedAnnotation':_0x5bd17d,'previousAnnotation':_0x5e0e54['get'](_0x59b041-0x1),'nextAnnotation':_0x5e0e54[_0x3184('0x34')](_0x59b041+0x1)}),_0x5bd17d===this['activeAnnotation']&&this[_0x3184('0x19')](null);},{'priority':'low'}),this[_0x3184('0x14')](_0x5e0e54,'focus',(_0x4cca15,_0x5d5b4c)=>{this[_0x3184('0x19')](_0x5d5b4c);}),this['listenTo'](_0x5e0e54,_0x3184('0x53'),()=>{this[_0x3184('0x19')](null);}),this['_domEmitter'][_0x3184('0x14')](document,_0x3184('0x1a'),(_0x591972,_0xd9cacc)=>{_0xd9cacc[_0x3184('0x10')]===_0x5c4e4d['esc']&&_0x104c55[_0x3184('0x15')]&&(this['_manuallyClosedAnnotationViews'][_0x3184('0x57')](_0x104c55[_0x3184('0x5a')]['first']),this['_hideBalloon'](),_0xd9cacc[_0x3184('0xf')](),_0xd9cacc['preventDefault']());}),this['_domEmitter'][_0x3184('0x14')](document,'mousedown',(_0x173df5,_0x39a9e6)=>{const _0x243870=_0x39a9e6[_0x3184('0x41')];_0x104c55[_0x3184('0x15')]&&_0x104c55['element'][_0x3184('0x38')](_0x243870)||_0x600311[_0x3184('0x58')]['element'][_0x3184('0x38')](_0x243870)||_0x173df5[_0x3184('0x4')]||this[_0x3184('0x5b')]&&this[_0x3184('0x5b')][_0x3184('0x1c')]['find'](_0x380864=>_0x380864[_0x3184('0x38')](_0x243870))||(this[_0x3184('0x35')][_0x3184('0x55')](),this[_0x3184('0x1')](),this[_0x3184('0x19')](null));});const _0x1f4335=this[_0x3184('0x1e')]instanceof _0x4a5fc6?this[_0x3184('0x1e')][_0x3184('0x47')]:new _0x251f9c([this['context']]);for(const _0x2cecae of _0x1f4335)this[_0x3184('0x2a')](_0x2cecae);this[_0x3184('0x14')](_0x1f4335,'add',(_0x54d766,_0x30eec4)=>{this[_0x3184('0x14')](_0x30eec4,_0x3184('0x25'),()=>{this[_0x3184('0x2a')](_0x30eec4);});}),this[_0x3184('0x14')](_0x1f4335,_0x3184('0x16'),(_0x493ecf,_0x2891b0)=>{_0x2891b0[_0x3184('0x23')]['has'](_0x3184('0x3a'))&&this['_destroyEditorAnnotationsIntegration'](_0x2891b0[_0x3184('0x23')][_0x3184('0x34')](_0x3184('0x3a')));}),window[_0x3184('0x4f')](_0x3184('0x1d'),this[_0x3184('0x46')]),this[_0x3184('0xc')]();}[_0x3184('0x19')](_0x2dec95){if(_0x2dec95===this['activeAnnotation'])return;const _0x2e48c4=this[_0x3184('0x1e')][_0x3184('0x23')][_0x3184('0x34')](_0x1c1083);if(_0x2e48c4[_0x3184('0x3c')]({'blurredAnnotation':this[_0x3184('0x5b')],'activatedAnnotation':_0x2dec95,'disableAnimationOnActivatedAnnotation':!0x0}),_0x2dec95)_0x2e48c4[_0x3184('0x4e')](_0x2dec95)?this[_0x3184('0xe')](_0x2dec95):this[_0x3184('0x1')]();else this[_0x3184('0x1')]();this[_0x3184('0x5b')]=_0x2dec95;}[_0x3184('0x18')](){if(!this['isAttached'])throw new _0x486fd5('narrowsidebar-detach-not-attached',this);this[_0x3184('0x19')](null);const _0x2b0b81=this[_0x3184('0x1e')][_0x3184('0x23')][_0x3184('0x34')](_0x1c1083);this[_0x3184('0x1')](),Array[_0x3184('0x50')](this[_0x3184('0x13')][_0x3184('0x33')](),_0x3ba140=>_0x3ba140[_0x3184('0x37')]()),this[_0x3184('0x13')]['clear'](),_0x2b0b81[_0x3184('0x48')](this[_0x3184('0x0')]),this[_0x3184('0x8')](),this[_0x3184('0x26')][_0x3184('0x8')](),this[_0x3184('0x1e')]instanceof _0x4a5fc6&&this['stopListening'](this[_0x3184('0x1e')][_0x3184('0x47')]);for(const _0x553aba of Array['from'](this[_0x3184('0x45')]))this[_0x3184('0x21')](_0x553aba);window[_0x3184('0x54')](_0x3184('0x1d'),this['_refreshPositioningDebounced']),this[_0x3184('0x46')][_0x3184('0x6')](),this[_0x3184('0x39')]=[],this[_0x3184('0xa')]=!0x1,this['annotations']=null;}[_0x3184('0x37')](){this[_0x3184('0xa')]&&this[_0x3184('0x18')](),this[_0x3184('0x29')][_0x3184('0x31')]();}['_integrateWithEditorAnnotations'](_0x33c817){const _0x1debf6=_0x33c817['plugins'][_0x3184('0x34')](_0x1069e4),_0x35a57d=this[_0x3184('0x1e')][_0x3184('0x23')]['get'](_0x1c1083),_0x496b65=this[_0x3184('0x0')],_0xb02b8e=this[_0x3184('0x3f')],_0x4d35ab=()=>{const _0x46e26f=_0x1debf6[_0x3184('0x43')]({'annotations':this[_0x3184('0x0')],'activeAnnotation':this[_0x3184('0x5b')]});this[_0x3184('0x2d')](_0x46e26f),this[_0x3184('0x19')](_0x46e26f[0x0]||null);};this[_0x3184('0x14')](_0x1debf6,'refresh',_0x4d35ab),this['listenTo'](_0x1debf6,_0x3184('0x53'),(_0x53259d,{isAnnotationTracked:_0x4cfeb6})=>{this['activeAnnotation']&&_0x4cfeb6(this[_0x3184('0x5b')])&&(this[_0x3184('0x2d')]([]),this[_0x3184('0x19')](null));}),this[_0x3184('0x14')](_0x1debf6,_0x3184('0x4b'),()=>{this[_0x3184('0x46')]();}),this[_0x3184('0x14')](_0x496b65,_0x3184('0x53'),_0x1978f2=>{_0x1debf6[_0x3184('0x2f')]()&&_0x1978f2[_0x3184('0x44')]();},{'priority':'high'}),this['listenTo'](this[_0x3184('0x26')],'mousedown',(_0x17484a,_0x24c1e5)=>{const _0xa86a71=_0x24c1e5[_0x3184('0x41')];_0xb02b8e['isVisible']&&_0xb02b8e['element'][_0x3184('0x38')](_0xa86a71)||_0x35a57d[_0x3184('0x58')][_0x3184('0x1b')][_0x3184('0x38')](_0xa86a71)||this['activeAnnotation']&&_0x1debf6[_0x3184('0x2f')]()&&(_0x4d35ab(),_0x17484a[_0x3184('0x4')]=!0x0);},{'priority':_0x3184('0x22')}),this['_editorAnnotations']['add'](_0x1debf6);}[_0x3184('0x21')](_0x18b98f){_0x18b98f&&(this['stopListening'](_0x18b98f),this[_0x3184('0x45')][_0x3184('0x16')](_0x18b98f));}['_setSelectedAnnotations'](_0x3634d0){for(const _0x1b4a36 of this[_0x3184('0x39')])_0x3634d0['includes'](_0x1b4a36)||this[_0x3184('0x35')]['delete'](_0x1b4a36[_0x3184('0x58')]);this[_0x3184('0x39')]=_0x3634d0;}[_0x3184('0xc')](){const _0x3056c0=this[_0x3184('0x3f')];this[_0x3184('0x0')][_0x3184('0x59')](),_0x3056c0[_0x3184('0x15')]&&this['_updateBalloonPosition']();}[_0x3184('0xe')](_0x424be1){if(this[_0x3184('0x35')][_0x3184('0x4c')](_0x424be1[_0x3184('0x58')]))return;const _0x22b601=this[_0x3184('0x3f')]['content'][_0x3184('0x36')];_0x22b601!==_0x424be1[_0x3184('0x58')]?(_0x22b601&&this[_0x3184('0x3b')](_0x22b601),this[_0x3184('0x17')](_0x424be1[_0x3184('0x58')]),this[_0x3184('0x3f')][_0x3184('0x5a')]['clear'](),this[_0x3184('0x3f')][_0x3184('0x5a')]['add'](_0x424be1[_0x3184('0x58')]),this[_0x3184('0x30')]()):this[_0x3184('0x30')]();}[_0x3184('0x30')](){const _0x233e8e=this[_0x3184('0x3f')][_0x3184('0x5a')][_0x3184('0x36')],_0x155b00=_0x233e8e&&this[_0x3184('0x0')][_0x3184('0x28')](_0x233e8e);if(!_0x155b00||!this[_0x3184('0x13')][_0x3184('0x4c')](_0x155b00))return;const _0x4d829a=this[_0x3184('0x13')][_0x3184('0x34')](_0x155b00)[_0x3184('0x1b')],_0x175b93=function(){const _0x1b0d2a=_0x486bd9[_0x3184('0x9')];return[_0x1b0d2a[_0x3184('0x51')],_0x1b0d2a[_0x3184('0x3d')],_0x1b0d2a[_0x3184('0x11')],_0x1b0d2a['northArrowSouth'],_0x1b0d2a['southArrowNorthWest'],_0x1b0d2a['northArrowSouthWest']];}();this[_0x3184('0x3f')]['pin']({'target':_0x4d829a,'positions':_0x175b93});}[_0x3184('0x1')](){const _0x118976=this['balloonPanelView'],_0xb3470d=_0x118976[_0x3184('0x5a')][_0x3184('0x36')];_0xb3470d&&(this[_0x3184('0x3b')](_0xb3470d),_0x118976[_0x3184('0xd')](),_0x118976[_0x3184('0x5a')][_0x3184('0x55')]());}[_0x3184('0x17')](_0x439cee){this['listenTo'](_0x439cee,_0x3184('0x7'),()=>this['_updateBalloonPosition']()),this['listenTo'](_0x439cee,_0x3184('0x2'),(_0xd15b44,_0x205424)=>{this[_0x3184('0x35')]['add'](_0x439cee),this[_0x3184('0x1')](),_0x205424();});}[_0x3184('0x3b')](_0x11905f){this[_0x3184('0x8')](_0x11905f);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3eb0=['_alignAfterItem','Sidebar','destroy','_sidebarItemViewToAnnotation','locale','_activeAnnotation','_alignForBottomChange','change:_lastItem','_recalculate','context','_alignForTopChange','isAnimationDisabled','_annotationToSidebarItemView','_detachFromContainer','targetRect','init','appendChild','length','_spaceBetweenItems','_attachToContainer','minHeight','content','list','_setItemTop','_alignBeforeItem','stopListening','nodeType','bottom','container','getSidebarItemView','remove','_getItemAfter','_lastItem','_annotations','isActive','element','change:top','refresh','define','_recalculateBuffer','max','pluginName','sidebar-setcontainer-invalid-element','_getItemBefore','top','view','clear','class','unbind','_destroySidebarItemView','set','_updateLastItem','_getTargetTop','sidebar.preventScrollOutOfView','render','target','sidebar-attachtocontainer-missing-container','getIndex','_alignToTargetRect','_createSidebarView','setContainer','change:bottom','sidebar.container','_getMaxAvailableTop','listenTo','get','config','push','updateHeight','last','_targetTop','rearrange','height','add'];(function(_0x362274,_0x3eb0c){const _0xfd2c74=function(_0x1b41a1){while(--_0x1b41a1){_0x362274['push'](_0x362274['shift']());}};_0xfd2c74(++_0x3eb0c);}(_0x3eb0,0x147));const _0xfd2c=function(_0x362274,_0x3eb0c){_0x362274=_0x362274-0x0;let _0xfd2c74=_0x3eb0[_0x362274];return _0xfd2c74;};import{ContextPlugin as _0x2bfb0b}from'ckeditor5/src/core.js';import{Rect as _0x55d1f8,CKEditorError as _0x1ffd59}from'ckeditor5/src/utils.js';import _0x346966 from'./view/sidebarview.js';import _0x5e338b from'./view/sidebaritemview.js';export default class z extends _0x2bfb0b{static get[_0xfd2c('0xa')](){return _0xfd2c('0x2c');}constructor(_0x376914){super(_0x376914),this[_0xfd2c('0x13')]('_lastItem',void 0x0),this[_0xfd2c('0xe')]=this['_createSidebarView'](),this[_0xfd2c('0x13')](_0xfd2c('0x47'),null),this[_0xfd2c('0x3d')]=0x19,this[_0xfd2c('0x2e')]=new Map(),this['_annotationToSidebarItemView']=new Map(),this[_0xfd2c('0x34')][_0xfd2c('0x23')][_0xfd2c('0x7')](_0xfd2c('0x16'),!0x1),this[_0xfd2c('0x2')]=null,this[_0xfd2c('0x30')]=null,this[_0xfd2c('0x8')]=[];}[_0xfd2c('0x3a')](){const _0x5d0017=this['context']['config']['get'](_0xfd2c('0x1f'));_0x5d0017&&this['setContainer'](_0x5d0017);}[_0xfd2c('0x1d')](_0x1fa56d){if(!y(_0x1fa56d))throw new _0x1ffd59(_0xfd2c('0xb'));this[_0xfd2c('0x47')]=_0x1fa56d;}[_0xfd2c('0x3e')]({viewClass:_0x1b9008='',spaceBetweenItems:_0x4f8adf=0x19}={}){if(!y(this['container']))throw new _0x1ffd59(_0xfd2c('0x19'),this);this[_0xfd2c('0x47')][_0xfd2c('0x3b')](this[_0xfd2c('0xe')][_0xfd2c('0x4')]),this[_0xfd2c('0xe')][_0xfd2c('0x10')]=_0x1b9008,this[_0xfd2c('0x3d')]=_0x4f8adf;}[_0xfd2c('0x28')]({removedAnnotation:_0x158354,previousAnnotation:_0x194b42,nextAnnotation:_0x158ea1}){const _0x16432a=this['getSidebarItemView'](_0x158354);this[_0xfd2c('0xe')][_0xfd2c('0x41')][_0xfd2c('0x49')](_0x16432a),this[_0xfd2c('0x12')](_0x158354),_0x194b42&&this[_0xfd2c('0x1b')](this['getSidebarItemView'](_0x194b42)),_0x158ea1&&this[_0xfd2c('0x1b')](this[_0xfd2c('0x48')](_0x158ea1)),this[_0xfd2c('0x14')]();}[_0xfd2c('0x6')]({blurredAnnotation:_0xaf0bf1,activatedAnnotation:_0x526f6c,disableAnimationOnActivatedAnnotation:_0x227ebc}){if(this[_0xfd2c('0x30')]=_0x526f6c,_0xaf0bf1){_0xaf0bf1[_0xfd2c('0x3')]=!0x1;const _0x9f47a1=this[_0xfd2c('0x48')](_0xaf0bf1);_0x9f47a1&&_0x227ebc&&(_0x9f47a1[_0xfd2c('0x36')]=!0x1);}if(_0x526f6c){const _0x217023=this[_0xfd2c('0x48')](_0x526f6c);_0x217023&&(_0x526f6c[_0xfd2c('0x3')]=!0x0,_0x227ebc&&(_0x217023['isAnimationDisabled']=!0x0,_0x217023[_0xfd2c('0xd')]+=0x1),this[_0xfd2c('0x1b')](_0x217023));}}[_0xfd2c('0x38')](_0x5abf14){if(this[_0xfd2c('0xe')]['element'][_0xfd2c('0x49')](),_0x5abf14)for(const _0x2674f0 of _0x5abf14)this[_0xfd2c('0x12')](_0x2674f0);this[_0xfd2c('0xe')][_0xfd2c('0x41')][_0xfd2c('0xf')](),this[_0xfd2c('0xe')][_0xfd2c('0x10')]='',this['_lastItem']=null;}['addAnnotation'](_0x14bfc8,_0x529e15){_0x529e15||(_0x529e15=_0x14bfc8[_0xfd2c('0xe')]);const _0x43abc6=new _0x5e338b(this[_0xfd2c('0x34')][_0xfd2c('0x2f')]);this[_0xfd2c('0x2e')][_0xfd2c('0x13')](_0x43abc6,_0x14bfc8),this[_0xfd2c('0x37')][_0xfd2c('0x13')](_0x14bfc8,_0x43abc6),_0x43abc6[_0xfd2c('0x40')][_0xfd2c('0x2a')](_0x529e15),this[_0xfd2c('0x21')](_0x14bfc8[_0xfd2c('0xe')],'change:targetRect',(_0xc256e0,_0x1aaa7f,_0x27d6b0)=>{const _0x3e35e0=this[_0xfd2c('0x15')](_0x14bfc8,_0x27d6b0);_0x43abc6[_0xfd2c('0x27')]!=_0x3e35e0&&(_0x43abc6[_0xfd2c('0x27')]=_0x3e35e0,this[_0xfd2c('0x42')](_0x43abc6,_0x3e35e0));}),this[_0xfd2c('0x21')](_0x43abc6,_0xfd2c('0x5'),()=>{this[_0xfd2c('0x33')](_0x43abc6,'top');}),this[_0xfd2c('0x21')](_0x43abc6,_0xfd2c('0x1e'),()=>{this[_0xfd2c('0x33')](_0x43abc6,_0xfd2c('0x46'));}),this[_0xfd2c('0x1b')](_0x43abc6);const _0x213ee2=this[_0xfd2c('0xc')](_0x43abc6);if(_0x213ee2)this[_0xfd2c('0x2b')](_0x213ee2,_0x43abc6)||this[_0xfd2c('0x1b')](_0x43abc6);else this[_0xfd2c('0x1b')](_0x43abc6);return this['_updateLastItem'](),this[_0xfd2c('0xe')][_0xfd2c('0x41')][_0xfd2c('0x2a')](_0x43abc6),_0x43abc6;}['_alignForTopChange'](_0x3e13a9){if(!_0x3e13a9[_0xfd2c('0x40')][_0xfd2c('0x3c')])return;const _0x2c1a83=this['_getItemBefore'](_0x3e13a9);if(!_0x2c1a83)return;const _0x432602=this['_sidebarItemViewToAnnotation'][_0xfd2c('0x22')](_0x2c1a83),_0x4ea65e=this['_activeAnnotation'];_0x4ea65e&&_0x4ea65e===_0x432602?this[_0xfd2c('0x2b')](_0x2c1a83,_0x3e13a9):this[_0xfd2c('0x43')](_0x3e13a9,_0x2c1a83);}[_0xfd2c('0x31')](_0x5a7397){if(!_0x5a7397[_0xfd2c('0x40')][_0xfd2c('0x3c')])return;const _0x54d097=this[_0xfd2c('0x0')](_0x5a7397);if(!_0x54d097)return;const _0x555a01=this[_0xfd2c('0x2e')][_0xfd2c('0x22')](_0x54d097),_0x302ff0=this[_0xfd2c('0x34')][_0xfd2c('0x23')]['get']('sidebar.preventScrollOutOfView'),_0x59bef9=this['_activeAnnotation'];_0x59bef9&&_0x59bef9===_0x555a01&&_0x302ff0?(this[_0xfd2c('0x43')](_0x54d097,_0x5a7397),this['_alignAfterItem'](_0x5a7397,_0x54d097)):_0x59bef9&&_0x59bef9===_0x555a01?this['_alignBeforeItem'](_0x54d097,_0x5a7397):this[_0xfd2c('0x2b')](_0x5a7397,_0x54d097);}[_0xfd2c('0x33')](_0x4b83c6,_0x1488d2){0x0===this[_0xfd2c('0x8')][_0xfd2c('0x3c')]&&setTimeout(()=>{for(const {sidebarItemView:_0x444a03,changedProp:_0x522820}of this[_0xfd2c('0x8')])'top'===_0x522820?this[_0xfd2c('0x35')](_0x444a03):this[_0xfd2c('0x31')](_0x444a03);this[_0xfd2c('0x8')]=[];},0xa),this[_0xfd2c('0x8')][_0xfd2c('0x24')]({'sidebarItemView':_0x4b83c6,'changedProp':_0x1488d2});}[_0xfd2c('0x48')](_0xfce8af){return this[_0xfd2c('0x37')][_0xfd2c('0x22')](_0xfce8af);}['destroy'](){this[_0xfd2c('0x44')](),this[_0xfd2c('0xe')][_0xfd2c('0x2d')]();}['_destroySidebarItemView'](_0x5085cc){const _0x5ed473=this[_0xfd2c('0x48')](_0x5085cc);this[_0xfd2c('0x44')](_0x5ed473),this['stopListening'](_0x5085cc['view']),_0x5ed473[_0xfd2c('0x2d')](),this[_0xfd2c('0x37')]['delete'](_0x5085cc),this['_sidebarItemViewToAnnotation']['delete'](_0x5ed473);}[_0xfd2c('0x1c')](){const _0x1edab0=new _0x346966(this[_0xfd2c('0x34')][_0xfd2c('0x2f')]);return _0x1edab0[_0xfd2c('0x17')](),this['on'](_0xfd2c('0x32'),(_0x2521cc,_0x2d680e,_0x45c6db,_0x212241)=>{_0x212241&&_0x1edab0[_0xfd2c('0x11')](_0xfd2c('0x3f')),_0x45c6db?_0x1edab0['bind'](_0xfd2c('0x3f'))['to'](_0x45c6db,'bottom'):_0x1edab0['minHeight']=null;}),_0x1edab0;}[_0xfd2c('0x14')](){var _0x4f3072;this[_0xfd2c('0x1')]=(null===(_0x4f3072=this[_0xfd2c('0x2')])||void 0x0===_0x4f3072?void 0x0:_0x4f3072[_0xfd2c('0x26')])?this[_0xfd2c('0x48')](this['_annotations'][_0xfd2c('0x26')]):null;}[_0xfd2c('0xc')](_0x4aae11){var _0x9561;const _0x51ebb5=this['_sidebarItemViewToAnnotation'][_0xfd2c('0x22')](_0x4aae11),_0x39683c=_0x51ebb5&&(null===(_0x9561=this[_0xfd2c('0x2')])||void 0x0===_0x9561?void 0x0:_0x9561[_0xfd2c('0x22')](this[_0xfd2c('0x2')][_0xfd2c('0x1a')](_0x51ebb5)-0x1));return _0x39683c&&this['getSidebarItemView'](_0x39683c)||null;}['_getItemAfter'](_0x405b41){var _0x1eb324;const _0x5434f9=this[_0xfd2c('0x2e')][_0xfd2c('0x22')](_0x405b41),_0xb9caba=_0x5434f9&&(null===(_0x1eb324=this[_0xfd2c('0x2')])||void 0x0===_0x1eb324?void 0x0:_0x1eb324[_0xfd2c('0x22')](this['_annotations'][_0xfd2c('0x1a')](_0x5434f9)+0x1));return _0xb9caba&&this[_0xfd2c('0x48')](_0xb9caba)||null;}[_0xfd2c('0x43')](_0x290ec6,_0x5f222a){_0x290ec6[_0xfd2c('0x25')]();const _0x2709b3=M(_0x5f222a[_0xfd2c('0x46')]+this[_0xfd2c('0x3d')],_0x290ec6['top']);return!!_0x2709b3&&(this[_0xfd2c('0x42')](_0x5f222a,_0x5f222a[_0xfd2c('0xd')]-_0x2709b3),!0x0);}[_0xfd2c('0x2b')](_0x1d9828,_0x1d4cb5){_0x1d9828['updateHeight']();const _0xd1a720=M(_0x1d9828[_0xfd2c('0x46')]+this[_0xfd2c('0x3d')],_0x1d4cb5['top']);return!!_0xd1a720&&(this['_setItemTop'](_0x1d4cb5,_0x1d4cb5[_0xfd2c('0xd')]+_0xd1a720,!0x1),!0x0);}[_0xfd2c('0x1b')](_0x3a395d){const _0x55926b=this[_0xfd2c('0x2e')][_0xfd2c('0x22')](_0x3a395d);if(!_0x55926b||!_0x55926b[_0xfd2c('0x18')]||!_0x55926b[_0xfd2c('0x39')])return;const _0x2d4c09=this[_0xfd2c('0x15')](_0x55926b,_0x55926b['targetRect']);this[_0xfd2c('0x42')](_0x3a395d,_0x2d4c09);}['_getTargetTop'](_0x214cf3,_0x58a125){if(null===_0x58a125)return 0x0;if(_0x214cf3['target']instanceof _0x55d1f8)return _0x58a125[_0xfd2c('0xd')];{const _0x1c57d2=new _0x55d1f8(this[_0xfd2c('0xe')]['element'])['top'];return _0x58a125[_0xfd2c('0xd')]-_0x1c57d2;}}['_setItemTop'](_0x5e077f,_0x2fd2e5,_0x1098c4=this[_0xfd2c('0x34')][_0xfd2c('0x23')][_0xfd2c('0x22')](_0xfd2c('0x16'))){_0x1098c4&&(_0x2fd2e5=Math[_0xfd2c('0x9')](_0x2fd2e5,this[_0xfd2c('0x20')](_0x5e077f))),_0x5e077f['top']=_0x2fd2e5;}[_0xfd2c('0x20')](_0x4c41cd){let _0x979807=this[_0xfd2c('0xc')](_0x4c41cd),_0x5b3e7b=0x0;for(;_0x979807;)_0x979807[_0xfd2c('0x25')](),_0x5b3e7b+=this[_0xfd2c('0x3d')]+_0x979807[_0xfd2c('0x29')],_0x979807=this[_0xfd2c('0xc')](_0x979807);return _0x5b3e7b;}}function M(_0x529c06,_0x3657fd){return Math['max'](_0x529c06-_0x3657fd,0x0);}function y(_0x5448c5){return null!==_0x5448c5&&'object'==typeof _0x5448c5&&0x1===_0x5448c5[_0xfd2c('0x45')];}
23
+ const _0x42f6=['_getItemBefore','appendChild','sidebar.preventScrollOutOfView','sidebar-attachtocontainer-missing-container','container','_annotations','_spaceBetweenItems','updateHeight','_updateLastItem','add','getSidebarItemView','top','refresh','set','_alignForTopChange','change:targetRect','listenTo','isActive','init','bottom','_setItemTop','_getItemAfter','_alignAfterItem','_sidebarItemViewToAnnotation','view','_createSidebarView','_alignBeforeItem','getIndex','locale','_getTargetTop','last','_lastItem','element','config','_destroySidebarItemView','clear','pluginName','get','target','_getMaxAvailableTop','nodeType','Sidebar','sidebar.container','change:_lastItem','_annotationToSidebarItemView','render','stopListening','rearrange','_recalculate','content','change:top','_recalculateBuffer','max','context','destroy','remove','targetRect','unbind','_activeAnnotation','define','_alignForBottomChange','addAnnotation','list','_alignToTargetRect','push','_targetTop','class','_detachFromContainer','length','minHeight'];(function(_0x7b6757,_0x42f65a){const _0x38d5e1=function(_0x39ccf7){while(--_0x39ccf7){_0x7b6757['push'](_0x7b6757['shift']());}};_0x38d5e1(++_0x42f65a);}(_0x42f6,0x84));const _0x38d5=function(_0x7b6757,_0x42f65a){_0x7b6757=_0x7b6757-0x0;let _0x38d5e1=_0x42f6[_0x7b6757];return _0x38d5e1;};import{ContextPlugin as _0x2fc423}from'ckeditor5/src/core.js';import{Rect as _0x5c5b9f,CKEditorError as _0x33a764}from'ckeditor5/src/utils.js';import _0x52bcdb from'./view/sidebarview.js';import _0x3e0c0f from'./view/sidebaritemview.js';export default class z extends _0x2fc423{static get[_0x38d5('0x2c')](){return _0x38d5('0x31');}constructor(_0x3e6c9d){super(_0x3e6c9d),this[_0x38d5('0x15')]('_lastItem',void 0x0),this[_0x38d5('0x20')]=this['_createSidebarView'](),this[_0x38d5('0x15')](_0x38d5('0xc'),null),this['_spaceBetweenItems']=0x19,this[_0x38d5('0x1f')]=new Map(),this[_0x38d5('0x34')]=new Map(),this['context'][_0x38d5('0x29')][_0x38d5('0x43')](_0x38d5('0xa'),!0x1),this[_0x38d5('0xd')]=null,this['_activeAnnotation']=null,this[_0x38d5('0x3b')]=[];}[_0x38d5('0x1a')](){const _0x58a33a=this[_0x38d5('0x3d')][_0x38d5('0x29')][_0x38d5('0x2d')](_0x38d5('0x32'));_0x58a33a&&this['setContainer'](_0x58a33a);}['setContainer'](_0x8bed1f){if(!y(_0x8bed1f))throw new _0x33a764('sidebar-setcontainer-invalid-element');this['container']=_0x8bed1f;}['_attachToContainer']({viewClass:_0x16041b='',spaceBetweenItems:_0x3c00c3=0x19}={}){if(!y(this['container']))throw new _0x33a764(_0x38d5('0xb'),this);this[_0x38d5('0xc')][_0x38d5('0x9')](this[_0x38d5('0x20')][_0x38d5('0x28')]),this[_0x38d5('0x20')][_0x38d5('0x4')]=_0x16041b,this[_0x38d5('0xe')]=_0x3c00c3;}[_0x38d5('0x37')]({removedAnnotation:_0x25c3fa,previousAnnotation:_0x264a46,nextAnnotation:_0x2492fd}){const _0x2bef40=this[_0x38d5('0x12')](_0x25c3fa);this['view'][_0x38d5('0x0')][_0x38d5('0x3f')](_0x2bef40),this['_destroySidebarItemView'](_0x25c3fa),_0x264a46&&this[_0x38d5('0x1')](this[_0x38d5('0x12')](_0x264a46)),_0x2492fd&&this['_alignToTargetRect'](this[_0x38d5('0x12')](_0x2492fd)),this[_0x38d5('0x10')]();}[_0x38d5('0x14')]({blurredAnnotation:_0x52a32c,activatedAnnotation:_0x10761f,disableAnimationOnActivatedAnnotation:_0xad13d8}){if(this[_0x38d5('0x42')]=_0x10761f,_0x52a32c){_0x52a32c[_0x38d5('0x19')]=!0x1;const _0xe12e04=this['getSidebarItemView'](_0x52a32c);_0xe12e04&&_0xad13d8&&(_0xe12e04['isAnimationDisabled']=!0x1);}if(_0x10761f){const _0x5eaa57=this[_0x38d5('0x12')](_0x10761f);_0x5eaa57&&(_0x10761f[_0x38d5('0x19')]=!0x0,_0xad13d8&&(_0x5eaa57['isAnimationDisabled']=!0x0,_0x5eaa57['top']+=0x1),this['_alignToTargetRect'](_0x5eaa57));}}[_0x38d5('0x5')](_0x5443b4){if(this['view'][_0x38d5('0x28')]['remove'](),_0x5443b4)for(const _0x5628b6 of _0x5443b4)this[_0x38d5('0x2a')](_0x5628b6);this[_0x38d5('0x20')]['list'][_0x38d5('0x2b')](),this['view'][_0x38d5('0x4')]='',this[_0x38d5('0x27')]=null;}[_0x38d5('0x45')](_0x595441,_0xf9ad98){_0xf9ad98||(_0xf9ad98=_0x595441['view']);const _0x4deb4b=new _0x3e0c0f(this[_0x38d5('0x3d')][_0x38d5('0x24')]);this[_0x38d5('0x1f')][_0x38d5('0x15')](_0x4deb4b,_0x595441),this[_0x38d5('0x34')][_0x38d5('0x15')](_0x595441,_0x4deb4b),_0x4deb4b[_0x38d5('0x39')][_0x38d5('0x11')](_0xf9ad98),this['listenTo'](_0x595441[_0x38d5('0x20')],_0x38d5('0x17'),(_0x1122db,_0x5b73c2,_0x71515)=>{const _0x5deb93=this[_0x38d5('0x25')](_0x595441,_0x71515);_0x4deb4b[_0x38d5('0x3')]!=_0x5deb93&&(_0x4deb4b['_targetTop']=_0x5deb93,this[_0x38d5('0x1c')](_0x4deb4b,_0x5deb93));}),this[_0x38d5('0x18')](_0x4deb4b,_0x38d5('0x3a'),()=>{this['_recalculate'](_0x4deb4b,_0x38d5('0x13'));}),this[_0x38d5('0x18')](_0x4deb4b,'change:bottom',()=>{this[_0x38d5('0x38')](_0x4deb4b,_0x38d5('0x1b'));}),this['_alignToTargetRect'](_0x4deb4b);const _0x5b9390=this[_0x38d5('0x8')](_0x4deb4b);if(_0x5b9390)this[_0x38d5('0x1e')](_0x5b9390,_0x4deb4b)||this[_0x38d5('0x1')](_0x4deb4b);else this[_0x38d5('0x1')](_0x4deb4b);return this[_0x38d5('0x10')](),this[_0x38d5('0x20')][_0x38d5('0x0')]['add'](_0x4deb4b),_0x4deb4b;}[_0x38d5('0x16')](_0x141968){if(!_0x141968[_0x38d5('0x39')]['length'])return;const _0x2cb324=this[_0x38d5('0x8')](_0x141968);if(!_0x2cb324)return;const _0x262681=this[_0x38d5('0x1f')]['get'](_0x2cb324),_0x335209=this['_activeAnnotation'];_0x335209&&_0x335209===_0x262681?this[_0x38d5('0x1e')](_0x2cb324,_0x141968):this[_0x38d5('0x22')](_0x141968,_0x2cb324);}['_alignForBottomChange'](_0xcc0e41){if(!_0xcc0e41[_0x38d5('0x39')][_0x38d5('0x6')])return;const _0x579ceb=this[_0x38d5('0x1d')](_0xcc0e41);if(!_0x579ceb)return;const _0xd19a=this[_0x38d5('0x1f')]['get'](_0x579ceb),_0x4d6c39=this[_0x38d5('0x3d')][_0x38d5('0x29')][_0x38d5('0x2d')](_0x38d5('0xa')),_0x59f6a4=this[_0x38d5('0x42')];_0x59f6a4&&_0x59f6a4===_0xd19a&&_0x4d6c39?(this[_0x38d5('0x22')](_0x579ceb,_0xcc0e41),this[_0x38d5('0x1e')](_0xcc0e41,_0x579ceb)):_0x59f6a4&&_0x59f6a4===_0xd19a?this[_0x38d5('0x22')](_0x579ceb,_0xcc0e41):this[_0x38d5('0x1e')](_0xcc0e41,_0x579ceb);}[_0x38d5('0x38')](_0x350fad,_0x37192b){0x0===this[_0x38d5('0x3b')][_0x38d5('0x6')]&&setTimeout(()=>{for(const {sidebarItemView:_0x1977f2,changedProp:_0x24d6f0}of this[_0x38d5('0x3b')])'top'===_0x24d6f0?this[_0x38d5('0x16')](_0x1977f2):this[_0x38d5('0x44')](_0x1977f2);this[_0x38d5('0x3b')]=[];},0xa),this[_0x38d5('0x3b')][_0x38d5('0x2')]({'sidebarItemView':_0x350fad,'changedProp':_0x37192b});}[_0x38d5('0x12')](_0x37175b){return this[_0x38d5('0x34')][_0x38d5('0x2d')](_0x37175b);}['destroy'](){this[_0x38d5('0x36')](),this[_0x38d5('0x20')]['destroy']();}[_0x38d5('0x2a')](_0x1c056e){const _0x30386b=this[_0x38d5('0x12')](_0x1c056e);this[_0x38d5('0x36')](_0x30386b),this[_0x38d5('0x36')](_0x1c056e[_0x38d5('0x20')]),_0x30386b[_0x38d5('0x3e')](),this[_0x38d5('0x34')]['delete'](_0x1c056e),this[_0x38d5('0x1f')]['delete'](_0x30386b);}[_0x38d5('0x21')](){const _0x429f69=new _0x52bcdb(this[_0x38d5('0x3d')][_0x38d5('0x24')]);return _0x429f69[_0x38d5('0x35')](),this['on'](_0x38d5('0x33'),(_0x1d22f7,_0x1b50a8,_0x15fc13,_0x238ae5)=>{_0x238ae5&&_0x429f69[_0x38d5('0x41')]('minHeight'),_0x15fc13?_0x429f69['bind'](_0x38d5('0x7'))['to'](_0x15fc13,_0x38d5('0x1b')):_0x429f69['minHeight']=null;}),_0x429f69;}['_updateLastItem'](){var _0x1b66ee;this[_0x38d5('0x27')]=(null===(_0x1b66ee=this[_0x38d5('0xd')])||void 0x0===_0x1b66ee?void 0x0:_0x1b66ee['last'])?this[_0x38d5('0x12')](this['_annotations'][_0x38d5('0x26')]):null;}['_getItemBefore'](_0x557b9f){var _0x3a076a;const _0x26a8b1=this[_0x38d5('0x1f')][_0x38d5('0x2d')](_0x557b9f),_0x4149f6=_0x26a8b1&&(null===(_0x3a076a=this[_0x38d5('0xd')])||void 0x0===_0x3a076a?void 0x0:_0x3a076a[_0x38d5('0x2d')](this[_0x38d5('0xd')][_0x38d5('0x23')](_0x26a8b1)-0x1));return _0x4149f6&&this['getSidebarItemView'](_0x4149f6)||null;}['_getItemAfter'](_0x459656){var _0x47d444;const _0x3f7a93=this[_0x38d5('0x1f')][_0x38d5('0x2d')](_0x459656),_0x43b5d8=_0x3f7a93&&(null===(_0x47d444=this[_0x38d5('0xd')])||void 0x0===_0x47d444?void 0x0:_0x47d444[_0x38d5('0x2d')](this[_0x38d5('0xd')][_0x38d5('0x23')](_0x3f7a93)+0x1));return _0x43b5d8&&this[_0x38d5('0x12')](_0x43b5d8)||null;}[_0x38d5('0x22')](_0x393438,_0x185908){_0x393438[_0x38d5('0xf')]();const _0x3e1d9c=M(_0x185908['bottom']+this[_0x38d5('0xe')],_0x393438[_0x38d5('0x13')]);return!!_0x3e1d9c&&(this['_setItemTop'](_0x185908,_0x185908[_0x38d5('0x13')]-_0x3e1d9c),!0x0);}[_0x38d5('0x1e')](_0x4348c2,_0x490fab){_0x4348c2[_0x38d5('0xf')]();const _0x51b06c=M(_0x4348c2[_0x38d5('0x1b')]+this[_0x38d5('0xe')],_0x490fab['top']);return!!_0x51b06c&&(this[_0x38d5('0x1c')](_0x490fab,_0x490fab[_0x38d5('0x13')]+_0x51b06c,!0x1),!0x0);}[_0x38d5('0x1')](_0x1df72d){const _0x3e372b=this['_sidebarItemViewToAnnotation'][_0x38d5('0x2d')](_0x1df72d);if(!_0x3e372b||!_0x3e372b['target']||!_0x3e372b[_0x38d5('0x40')])return;const _0x2924a2=this[_0x38d5('0x25')](_0x3e372b,_0x3e372b[_0x38d5('0x40')]);this[_0x38d5('0x1c')](_0x1df72d,_0x2924a2);}[_0x38d5('0x25')](_0xc64d61,_0x37ebdb){if(null===_0x37ebdb)return 0x0;if(_0xc64d61[_0x38d5('0x2e')]instanceof _0x5c5b9f)return _0x37ebdb['top'];{const _0x4598f4=new _0x5c5b9f(this['view']['element'])[_0x38d5('0x13')];return _0x37ebdb[_0x38d5('0x13')]-_0x4598f4;}}['_setItemTop'](_0x330962,_0x272f7e,_0x4ccb7b=this[_0x38d5('0x3d')]['config'][_0x38d5('0x2d')](_0x38d5('0xa'))){_0x4ccb7b&&(_0x272f7e=Math[_0x38d5('0x3c')](_0x272f7e,this['_getMaxAvailableTop'](_0x330962))),_0x330962['top']=_0x272f7e;}[_0x38d5('0x2f')](_0x4fc921){let _0xba4338=this[_0x38d5('0x8')](_0x4fc921),_0x29af13=0x0;for(;_0xba4338;)_0xba4338[_0x38d5('0xf')](),_0x29af13+=this[_0x38d5('0xe')]+_0xba4338['height'],_0xba4338=this[_0x38d5('0x8')](_0xba4338);return _0x29af13;}}function M(_0xd2f859,_0x39e014){return Math['max'](_0xd2f859-_0x39e014,0x0);}function y(_0x2f131f){return null!==_0x2f131f&&'object'==typeof _0x2f131f&&0x1===_0x2f131f[_0x38d5('0x30')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2034=['annotationType','ck-annotation-counter__badge--','children','set','span','ck-annotation-counter__badge','counterView','setTemplate','_badge','isDirty','ck-annotation-counter','toString','ck-annotation-counter__badge--edit-mode','extendTemplate','bind'];(function(_0x2facc3,_0x203462){const _0x32f4fd=function(_0x4356bf){while(--_0x4356bf){_0x2facc3['push'](_0x2facc3['shift']());}};_0x32f4fd(++_0x203462);}(_0x2034,0x12c));const _0x32f4=function(_0x2facc3,_0x203462){_0x2facc3=_0x2facc3-0x0;let _0x32f4fd=_0x2034[_0x2facc3];return _0x32f4fd;};import{ButtonView as _0x4be44e,View as _0x23dc01}from'ckeditor5/src/ui.js';import _0x3e1ce6 from'../../../theme/icons/add-comment.svg';export default class D extends _0x4be44e{constructor(_0x44b830){super(_0x44b830);const _0x55bde2=this['bindTemplate'];this[_0x32f4('0x3')](_0x32f4('0x9'),!0x1),this[_0x32f4('0x3')]('number',0x0),this[_0x32f4('0xe')](_0x32f4('0x8'))['to'](this,_0x32f4('0x9'),this,'number',(_0x1a4d4e,_0x4f01a0)=>_0x1a4d4e?'...':_0x4f01a0[_0x32f4('0xb')]()),this[_0x32f4('0x3')](_0x32f4('0x0'),''),this['icon']=_0x3e1ce6,this[_0x32f4('0xd')]({'attributes':{'class':[_0x32f4('0xa')]}}),this[_0x32f4('0x6')]=new _0x23dc01(),this[_0x32f4('0x6')][_0x32f4('0x7')]({'tag':_0x32f4('0x4'),'attributes':{'class':[_0x32f4('0x5'),_0x55bde2['to'](_0x32f4('0x0'),_0x1f9cfe=>_0x32f4('0x1')+_0x1f9cfe),_0x55bde2['if'](_0x32f4('0x9'),_0x32f4('0xc'))]},'children':[{'text':_0x55bde2['to'](_0x32f4('0x8'))}]}),this[_0x32f4('0x2')]['add'](this[_0x32f4('0x6')]);}}
23
+ const _0x1ece=['counterView','ck-annotation-counter__badge--','bindTemplate','_badge','children','ck-annotation-counter__badge--edit-mode','icon','...','number','ck-annotation-counter','setTemplate','isDirty','toString','bind','add','annotationType','extendTemplate','set','ck-annotation-counter__badge','span'];(function(_0x425fcc,_0x1ece41){const _0x3449a4=function(_0x29edeb){while(--_0x29edeb){_0x425fcc['push'](_0x425fcc['shift']());}};_0x3449a4(++_0x1ece41);}(_0x1ece,0x17b));const _0x3449=function(_0x425fcc,_0x1ece41){_0x425fcc=_0x425fcc-0x0;let _0x3449a4=_0x1ece[_0x425fcc];return _0x3449a4;};import{ButtonView as _0x343a47,View as _0x3c236a}from'ckeditor5/src/ui.js';import _0x5b85d6 from'../../../theme/icons/add-comment.svg';export default class D extends _0x343a47{constructor(_0x1ef360){super(_0x1ef360);const _0x3fff18=this[_0x3449('0x3')];this[_0x3449('0x12')](_0x3449('0xc'),!0x1),this[_0x3449('0x12')](_0x3449('0x9'),0x0),this[_0x3449('0xe')](_0x3449('0x4'))['to'](this,_0x3449('0xc'),this,'number',(_0x1a0503,_0x541a51)=>_0x1a0503?_0x3449('0x8'):_0x541a51[_0x3449('0xd')]()),this[_0x3449('0x12')](_0x3449('0x10'),''),this[_0x3449('0x7')]=_0x5b85d6,this[_0x3449('0x11')]({'attributes':{'class':[_0x3449('0xa')]}}),this[_0x3449('0x1')]=new _0x3c236a(),this[_0x3449('0x1')][_0x3449('0xb')]({'tag':_0x3449('0x0'),'attributes':{'class':[_0x3449('0x13'),_0x3fff18['to'](_0x3449('0x10'),_0x29ad2e=>_0x3449('0x2')+_0x29ad2e),_0x3fff18['if'](_0x3449('0xc'),_0x3449('0x6'))]},'children':[{'text':_0x3fff18['to'](_0x3449('0x4'))}]}),this[_0x3449('0x5')][_0x3449('0xf')](this[_0x3449('0x1')]);}}