@ckeditor/ckeditor5-track-changes 31.1.0 → 32.0.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.
- package/LICENSE.md +2 -2
- package/README.md +2 -2
- package/lang/contexts.json +1 -1
- package/lang/translations/cs.po +3 -3
- package/lang/translations/da.po +3 -3
- package/lang/translations/de.po +3 -3
- package/lang/translations/en-au.po +3 -3
- package/lang/translations/en.po +2 -2
- package/lang/translations/es.po +2 -2
- package/lang/translations/et.po +2 -2
- package/lang/translations/fr.po +3 -3
- package/lang/translations/gl.po +3 -3
- package/lang/translations/hi.po +3 -3
- package/lang/translations/hr.po +3 -3
- package/lang/translations/it.po +5 -5
- package/lang/translations/nl.po +2 -2
- package/lang/translations/pl.po +3 -3
- package/lang/translations/pt-br.po +5 -5
- package/lang/translations/sk.po +3 -3
- package/lang/translations/sr-latn.po +3 -3
- package/lang/translations/sr.po +3 -3
- package/lang/translations/tk.po +3 -3
- package/lang/translations/tr.po +3 -3
- package/lang/translations/zh-cn.po +3 -3
- package/lang/translations/zh.po +2 -2
- package/package.json +7 -7
- package/src/commands/acceptallsuggestionscommand.js +2 -2
- package/src/commands/acceptselectedsuggestionscommand.js +2 -2
- package/src/commands/acceptsuggestioncommand.js +2 -2
- package/src/commands/discardallsuggestionscommand.js +2 -2
- package/src/commands/discardselectedsuggestionscommand.js +2 -2
- package/src/commands/discardsuggestioncommand.js +2 -2
- package/src/commands/trackchangescommand.js +2 -2
- package/src/integrations/alignment.js +2 -2
- package/src/integrations/basicstyles.js +2 -2
- package/src/integrations/blockquote.js +2 -2
- package/src/integrations/codeblock.js +2 -2
- package/src/integrations/comments.js +2 -2
- package/src/integrations/deletecommand.js +2 -2
- package/src/integrations/entercommand.js +2 -2
- package/src/integrations/font.js +2 -2
- package/src/integrations/heading.js +2 -2
- package/src/integrations/highlight.js +2 -2
- package/src/integrations/horizontalline.js +2 -2
- package/src/integrations/image.js +2 -2
- package/src/integrations/indent.js +2 -2
- package/src/integrations/inputcommand.js +2 -2
- package/src/integrations/link.js +2 -2
- package/src/integrations/list.js +2 -2
- package/src/integrations/mediaembed.js +2 -2
- package/src/integrations/mention.js +2 -2
- package/src/integrations/pagebreak.js +2 -2
- package/src/integrations/paragraph.js +2 -2
- package/src/integrations/removeformat.js +2 -2
- package/src/integrations/restrictededitingmode.js +2 -2
- package/src/integrations/shiftentercommand.js +2 -2
- package/src/integrations/standardeditingmode.js +2 -2
- package/src/integrations/table.js +2 -2
- package/src/integrations/tableclipboard.js +2 -2
- package/src/integrations/tableheadings.js +2 -2
- package/src/integrations/tablemergesplit.js +2 -2
- package/src/integrations/title.js +2 -2
- package/src/integrations/undo.js +2 -2
- package/src/integrations/utils.js +2 -2
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.js +2 -2
- package/src/trackchanges.js +2 -2
- package/src/trackchangesdata.js +2 -2
- package/src/trackchangesediting.js +2 -2
- package/src/trackchangesui.js +2 -2
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.js +2 -2
- package/src/ui/view/suggestionthreadview.js +2 -2
- package/src/utils/getselectedsuggestions.js +2 -2
- package/src/utils/hashobject.js +2 -2
- package/src/utils/normalizedescription.js +2 -2
- package/src/utils/sortsuggestions.js +2 -2
- package/theme/icons/track-changes-accept.svg +1 -1
- package/theme/icons/track-changes-discard.svg +1 -1
- package/theme/icons/track-changes.svg +1 -1
- package/theme/suggestionmarker.css +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x234039}from'ckeditor5/src/core';import _0x2187be from'@ckeditor/ckeditor5-table/src/tablewalker';import ht from'./table';import{getSelectionAffectedTableCells as _0x2ed7de}from'@ckeditor/ckeditor5-table/src/utils/selection';import{LiveRange as _0x494018}from'ckeditor5/src/engine';export default class ut extends _0x234039{static get['requires'](){return[ht];}['afterInit'](){const _0x3d6c59=this['editor'],_0x405fe4=_0x3d6c59['model']['document']['selection'];if(!_0x3d6c59['plugins']['has']('TableEditing'))return;const {t:t}=_0x3d6c59['locale'],_0x38d9f1=_0x3d6c59['plugins']['get']('TrackChangesEditing'),_0x19daa2=_0x3d6c59['plugins']['get']('TableUtils'),_0x20f3d5=_0x3d6c59['plugins']['get'](ht);_0x20f3d5['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x38d9f1['enableCommand']('mergeTableCells',()=>{const _0xef867b=_0x2ed7de(_0x3d6c59['model']['document']['selection']);_0x3d6c59['model']['change'](()=>{_0x38d9f1['markMultiRangeBlockFormat'](_0xef867b,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3d6c59['commands']['get']('mergeTableCells')['on']('execute',(_0x489c43,_0x4ff1dc)=>{_0x3d6c59['commands']['get']('trackChanges')['value']&&(_0x4ff1dc['length']>0x0&&_0x4ff1dc[_0x4ff1dc['length']-0x1]&&_0x4ff1dc[_0x4ff1dc['length']-0x1]['forceDefaultExecution']||_0x38d9f1['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x489c43['stop']());},{'priority':'highest'});for(const _0x189045 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x50f1aa=_0x3d6c59['commands']['get'](_0x189045);_0x38d9f1['enableCommand'](_0x189045,()=>{const _0xf69d94=_0x3d6c59['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x246922=>_0x246922['is']('element','tableCell')),_0x45e5bc=_0x50f1aa['value'];_0x3d6c59['model']['change'](()=>{_0x38d9f1['markMultiRangeBlockFormat']([_0xf69d94,_0x45e5bc],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x57d8fd of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2680c3=_0x3d6c59['commands']['get'](_0x57d8fd);_0x38d9f1['enableCommand'](_0x57d8fd,()=>{const _0xf0ecd=_0x2ed7de(_0x3d6c59['model']['document']['selection'])[0x0],_0x38d845=_0xf0ecd['findAncestor']('table'),{column:_0x3ffaa1,row:_0x5015b5}=_0x19daa2['getCellLocation'](_0xf0ecd);let _0x506e71=[];if('horizontally'==_0x2680c3['direction']){const _0x46416b=new _0x2187be(_0x38d845,{'startRow':_0x5015b5,'endRow':_0x5015b5,'includeAllSlots':!0x0});_0x506e71=Array['from'](_0x46416b)['map'](_0x50a594=>_0x50a594['cell']);}else{const _0x59cf41=new _0x2187be(_0x38d845,{'column':_0x3ffaa1,'includeAllSlots':!0x0});_0x506e71=Array['from'](_0x59cf41)['map'](_0x46a439=>_0x46a439['cell']);}_0x3d6c59['model']['change'](_0x41fa92=>{_0x38d9f1['markBlockFormat'](_0x41fa92['createRangeOn'](_0xf0ecd),{'commandName':_0x57d8fd,'commandParams':[]},_0x506e71,_0x57d8fd);});});}_0x38d9f1['_descriptionFactory']['registerDescriptionCallback'](_0xf2e6fd=>{const {data:_0x18c569}=_0xf2e6fd;if(_0x18c569)return'mergeTableCells'==_0x18c569['commandName']?{'type':'format','content':t('*Merge\x20cells*')}:void 0x0;}),_0x38d9f1['_descriptionFactory']['registerDescriptionCallback'](_0x40c870=>{const {data:_0x4e19c7}=_0x40c870;if(_0x4e19c7)return'splitTableCellVertically'==_0x4e19c7['commandName']?{'type':'format','content':t('*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4e19c7['commandName']?{'type':'format','content':t('*Split\x20cell:*\x20horizontally')}:void 0x0;});const _0x569e79=_0x20f3d5['_acceptFormatSuggestionCallbackFactory']();for(const _0x2a2d13 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x38d9f1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2a2d13,'accept',_0x569e79);for(const _0xd942a8 of['splitTableCellVertically','splitTableCellHorizontally'])_0x38d9f1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xd942a8,'accept',_0x569e79);_0x38d9f1['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x15b7f0=>{_0x3d6c59['model']['change'](_0x5c804d=>{const _0x56d9e9=Array['from'](_0x405fe4['getRanges']())['map'](_0x45b4d1=>_0x494018['fromRange'](_0x45b4d1));_0x5c804d['setSelection'](_0x15b7f0),_0x3d6c59['commands']['get']('mergeTableCells')['refresh'](),_0x3d6c59['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5438ee=_0x56d9e9['filter'](_0x217bd0=>'$graveyard'!=_0x217bd0['root']['rootName']);_0x5438ee['length']>0x0&&_0x5c804d['setSelection'](_0x5438ee);for(const _0x42634c of _0x56d9e9)_0x42634c['detach']();});});for(const _0x390a7f of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x557726=_0x3d6c59['commands']['get'](_0x390a7f);_0x557726['on']('set:isEnabled',(_0x2f2e83,_0x178f16,_0x2ddcb2)=>{if(_0x2ddcb2){const _0x46c733=_0x3d6c59['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2db6e2=>_0x2db6e2['is']('element','tableCell'));this['_areMergableCells'](_0x557726['value'],_0x46c733)||(_0x2f2e83['return']=!0x1,_0x2f2e83['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){if(!this['editor']['commands']['get']('mergeTableCells')['isEnabled'])return!0x1;const _0x591857=_0x2ed7de(this['editor']['model']['document']['selection']);for(const _0x4773f1 of _0x591857)for(const _0x195d03 of _0x591857)if(_0x4773f1!=_0x195d03&&!this['_areMergableCells'](_0x4773f1,_0x195d03))return!0x1;return!0x0;}['_areMergableCells'](_0x1b4d39,_0x395612){const _0x19af38=this['editor']['plugins']['get']('TrackChangesEditing'),_0x52d1fc=this['editor']['model']['createRangeOn'](_0x1b4d39),_0x5036bb=this['editor']['model']['createRangeOn'](_0x395612),_0x20be54=new Set(),_0x596539=new Set();for(const _0x2152b6 of _0x19af38['getSuggestions']())if(('insertion'==_0x2152b6['type']||'deletion'==_0x2152b6['type']||'mergeTableCells'==_0x2152b6['subType'])&&_0x2152b6['isInContent'])for(const _0x18ba2e of _0x2152b6['getRanges']())_0x18ba2e['containsRange'](_0x52d1fc,!0x0)&&_0x20be54['add'](_0x2152b6['type']+':'+_0x2152b6['author']['id']),_0x18ba2e['containsRange'](_0x5036bb,!0x0)&&_0x596539['add'](_0x2152b6['type']+':'+_0x2152b6['author']['id']);if(_0x20be54['size']!=_0x596539['size'])return!0x1;for(const _0x22f354 of _0x20be54)if(!_0x596539['has'](_0x22f354))return!0x1;return!0x0;}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x19fda8}from'ckeditor5/src/core';export default class lt extends _0x19fda8{['afterInit'](){const _0x1c631c=this['editor'],t=_0x1c631c['t'];if(!_0x1c631c['plugins']['has']('Title'))return;const _0xfca28b=_0x1c631c['plugins']['get']('TrackChangesEditing');_0xfca28b['_descriptionFactory']['registerElementLabel']('title-content',()=>t({'id':'ELEMENT_TITLE','string':'title'})),_0x1c631c['model']['document']['registerPostFixer'](_0x1c1ba0=>{let _0x7e9fa=!0x1;const _0x399d80=Array['from'](_0x1c631c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x54e4d9,data:_0x5397fb}of _0x399d80){const {group:_0x10d67d}=_0xfca28b['_splitMarkerName'](_0x54e4d9);if('suggestion'!==_0x10d67d||!_0x5397fb['newRange'])continue;const _0x2d07fc=_0x5397fb['newRange'],_0x168f2a=_0x2d07fc['end']['nodeBefore'];if(!_0x168f2a||!_0x168f2a['is']('element','title-content'))continue;if(!_0x2d07fc['start']['isTouching'](_0x2d07fc['end']))continue;const _0x35c0e9=_0x1c631c['model']['schema']['getNearestSelectionRange'](_0x2d07fc['end'],'forward');if(_0x35c0e9&&_0x35c0e9['isCollapsed']){const _0x59c04a=_0x1c1ba0['createRange'](_0x2d07fc['start'],_0x35c0e9['start']);_0x59c04a['isEqual'](_0x2d07fc)||(_0x1c1ba0['updateMarker'](_0x54e4d9,{'range':_0x59c04a}),_0x7e9fa=!0x0);}_0x7e9fa||(_0x1c1ba0['removeMarker'](_0x54e4d9),_0x7e9fa=!0x0);}return _0x7e9fa;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2e8d=['UndoEditing','get','TrackChangesEditing','has','undo','enableCommand','redo','afterInit'];(function(_0x3f1ce6,_0x2e8db1){const _0x182636=function(_0x260a5b){while(--_0x260a5b){_0x3f1ce6['push'](_0x3f1ce6['shift']());}};_0x182636(++_0x2e8db1);}(_0x2e8d,0x16d));const _0x1826=function(_0x3f1ce6,_0x2e8db1){_0x3f1ce6=_0x3f1ce6-0x0;let _0x182636=_0x2e8d[_0x3f1ce6];return _0x182636;};import{Plugin as _0xce0cc8}from'ckeditor5/src/core';export default class dt extends _0xce0cc8{[_0x1826('0x2')](){const _0x4bd536=this['editor'],_0x2b1d99=_0x4bd536['plugins'][_0x1826('0x4')](_0x1826('0x5'));_0x4bd536['plugins'][_0x1826('0x6')](_0x1826('0x3'))&&(_0x2b1d99[_0x1826('0x0')](_0x1826('0x7')),_0x2b1d99['enableCommand'](_0x1826('0x1')));}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x113c=['schema','getAttribute','item','elementEnd','test','isLimit','mapper','listIndent','parent','toViewPosition','isAtEnd','activeMarkers','ck-suggestion-marker--active','type','nextSibling','getWalker','push','ck-suggestion-marker-','element','addClass','createRangeOn','start','createUIElement','listItem','isBlock','writer','get','name','markerRange','markerName','TrackChangesEditing','hasAttribute','previousPosition'];(function(_0x185eb8,_0x113c94){const _0x347751=function(_0x20ef12){while(--_0x20ef12){_0x185eb8['push'](_0x185eb8['shift']());}};_0x347751(++_0x113c94);}(_0x113c,0xca));const _0x3477=function(_0x185eb8,_0x113c94){_0x185eb8=_0x185eb8-0x0;let _0x347751=_0x113c[_0x185eb8];return _0x347751;};export function getRangesWithAttribute(_0x19f0e0,_0x4f07d1,_0x30b126){const _0x28ac74=[];for(const _0x18d8f8 of _0x4f07d1['getItems']())_0x18d8f8[_0x3477('0x1b')](_0x19f0e0)&&_0x28ac74[_0x3477('0xc')](_0x30b126[_0x3477('0x10')](_0x18d8f8));return _0x28ac74;}export function getElementsAffectedByListItemRename(_0x39d96d){const _0x30f9f3=[];if(_0x39d96d['is'](_0x3477('0xe'),_0x3477('0x13'))){let _0x4f76d7=_0x39d96d[_0x3477('0xa')];for(;_0x4f76d7&&_0x4f76d7['is'](_0x3477('0xe'),_0x3477('0x13'))&&_0x4f76d7[_0x3477('0x1e')](_0x3477('0x3'))>0x0;)_0x30f9f3[_0x3477('0xc')](_0x4f76d7),_0x4f76d7=_0x4f76d7[_0x3477('0xa')];}return _0x30f9f3;}export function downcastSplitMergeMarker(_0x33c3d5,_0x7fd528,{showActiveMarker:_0x371c8a=!0x0}={}){const _0x3b8a59=_0x33c3d5['plugins'][_0x3477('0x16')](_0x3477('0x1a'));return(_0x1f55d1,_0x3382d4,_0x51eeb)=>{if(!_0x51eeb['consumable'][_0x3477('0x0')](_0x3382d4[_0x3477('0x18')],_0x1f55d1[_0x3477('0x17')]))return;const _0x13f260=_0x3382d4['markerRange'][_0x3477('0xb')](),_0x2eb157=_0x3382d4[_0x3477('0x18')][_0x3477('0x11')],_0x309b46=_0x33c3d5['model'][_0x3477('0x1d')];let _0x1c7565=null,_0x4dd3a7=null,_0xb944a8=!0x1,_0x13ecc4=!0x1;for(const _0x41496c of _0x13f260){const _0x56ddd3=_0x41496c[_0x3477('0x1f')];_0xb944a8=_0xb944a8||_0x309b46['isContent'](_0x56ddd3);const _0x58ff51=_0x51eeb['mapper']['toViewElement'](_0x56ddd3);if(_0x58ff51&&_0x58ff51['getCustomProperty']('addHighlight'))return;_0x3477('0x20')==_0x41496c[_0x3477('0x9')]&&(_0x309b46[_0x3477('0x14')](_0x56ddd3)&&!_0x309b46[_0x3477('0x1')](_0x56ddd3)&&(_0x56ddd3[_0x3477('0xa')]||_0x2eb157[_0x3477('0x6')]?_0x1c7565&&_0x1c7565[_0x3477('0x4')]==_0x56ddd3||(_0x1c7565=_0x56ddd3,_0x24637d(_0x41496c['previousPosition']),_0x13ecc4=!0x0):_0x4dd3a7=_0x4dd3a7||_0x41496c[_0x3477('0x1c')]));}function _0x24637d(_0x577b79){const _0x5aa3e3=_0x51eeb[_0x3477('0x15')][_0x3477('0x12')]('span',{'class':_0x3477('0xd')+_0x7fd528}),_0x1596ba=_0x51eeb['mapper'][_0x3477('0x5')](_0x577b79);_0x371c8a&&_0x3b8a59[_0x3477('0x7')]['includes'](_0x3382d4['markerName'])&&_0x51eeb[_0x3477('0x15')][_0x3477('0xf')](_0x3477('0x8'),_0x5aa3e3),_0x51eeb[_0x3477('0x15')]['insert'](_0x1596ba,_0x5aa3e3),_0x51eeb[_0x3477('0x2')]['bindElementToMarker'](_0x5aa3e3,_0x3382d4[_0x3477('0x19')]);}_0xb944a8||_0x13ecc4||!_0x4dd3a7||_0x24637d(_0x4dd3a7);};}
|
package/src/suggestion.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x23c8=['decorate','start','markers','hasComments','attributes','head','map','getRange','getFirstRange','nodeAfter','discard','subType','delete','length','split','suggestion:','from','clear','push','getItems','getAllAdjacentSuggestions','getContainedElement','isInContent','createdAt','_model','nodeBefore','commentThread','filter','getMarkers','getMarkerNames','type','onAttributesChange','_markerNames','add','end','_onAttributesChange','_onAccept','set','isMultiRange','previous','removeMarkers','data','author','addMarker','change','addRange','accept','removeMarker','getRanges','toJSON','_saved','removeAttribute','setAttribute','_onDiscard','next','getFirstMarker'];(function(_0x1d3563,_0x23c811){const _0x544bf7=function(_0x51c79b){while(--_0x51c79b){_0x1d3563['push'](_0x1d3563['shift']());}};_0x544bf7(++_0x23c811);}(_0x23c8,0xde));const _0x544b=function(_0x1d3563,_0x23c811){_0x1d3563=_0x1d3563-0x0;let _0x544bf7=_0x23c8[_0x1d3563];return _0x544bf7;};import{Element as _0x50db9b}from'ckeditor5/src/engine';import{ObservableMixin as _0x1d3549,mix as _0x2e5b20,uid as _0x57ae7b}from'ckeditor5/src/utils';import{cloneDeep as _0x5e0a12,isEqual as _0x1b1512,set as _0x304ede,unset as _0x55473e}from'lodash-es';export default class o{constructor(_0x4fa01f,_0x4fd520){this['id']=_0x4fd520['id'],this[_0x544b('0x20')]=_0x4fd520[_0x544b('0x20')],this[_0x544b('0xd')]=_0x4fd520['subType']||null,this[_0x544b('0x2c')]=_0x4fd520[_0x544b('0x2c')],this['data']=null,this[_0x544b('0x1a')]=_0x4fa01f,this['_onAccept']=_0x4fd520['onAccept'],this['_onDiscard']=_0x4fd520['onDiscard'],this[_0x544b('0x25')]=_0x4fd520[_0x544b('0x21')],this[_0x544b('0x22')]=new Set(),this['set'](_0x544b('0x19'),null),this[_0x544b('0x27')](_0x544b('0x6'),_0x4fd520[_0x544b('0x6')]||{}),this[_0x544b('0x27')](_0x544b('0x29'),null),this['set'](_0x544b('0x0'),null),this['set'](_0x544b('0x1c'),null),this[_0x544b('0x27')](_0x544b('0x34'),!0x1),this[_0x544b('0x2')](_0x544b('0x30')),this[_0x544b('0x2')](_0x544b('0xc'));}get[_0x544b('0x7')](){let _0x4ca845=this;for(;_0x4ca845[_0x544b('0x29')];)_0x4ca845=_0x4ca845['previous'];return _0x4ca845;}get[_0x544b('0x5')](){return!!this[_0x544b('0x1c')]&&this[_0x544b('0x1c')][_0x544b('0xf')]>0x0;}get[_0x544b('0x28')](){if(0x0==this[_0x544b('0x22')]['size'])return!0x1;return 0x6==Array[_0x544b('0x12')](this[_0x544b('0x22')])[0x0][_0x544b('0x10')](':')['length'];}get[_0x544b('0x18')](){return null!==this[_0x544b('0x1')]();}['addMarkerName'](_0xd89279){this[_0x544b('0x22')][_0x544b('0x23')](_0xd89279);}['getMarkerNames'](){return Array[_0x544b('0x12')](this['_markerNames']);}[_0x544b('0x1e')](){return this[_0x544b('0x1f')]()[_0x544b('0x8')](_0x25ab97=>this[_0x544b('0x1a')][_0x544b('0x4')]['get'](_0x25ab97))[_0x544b('0x1d')](_0x573b43=>_0x573b43);}[_0x544b('0x1')](){return this['getMarkers']()[0x0]||null;}[_0x544b('0x2a')](){this['_model']['change'](_0x2dc83a=>{for(const _0x225566 of this['getMarkers']())_0x2dc83a[_0x544b('0x31')](_0x225566);}),this[_0x544b('0x22')][_0x544b('0x13')]();}[_0x544b('0x31')](_0x303126){this[_0x544b('0x1a')][_0x544b('0x2e')](_0x5c7092=>{_0x5c7092[_0x544b('0x31')](_0x303126);}),this['_markerNames'][_0x544b('0xe')](_0x303126);}[_0x544b('0x2f')](_0x2d7a63){const _0x13f085=_0x544b('0x11')+this[_0x544b('0x20')]+':'+this[_0x544b('0xd')]+':'+this['id']+':'+this['author']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x13f085),this[_0x544b('0x1a')][_0x544b('0x2e')](_0x46386d=>{_0x46386d[_0x544b('0x2d')](_0x13f085,{'range':_0x2d7a63,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4bc4ec){for(const _0x584e55 of this[_0x544b('0x32')]())if(_0x584e55['isIntersecting'](_0x4bc4ec))return!0x0;return!0x1;}[_0x544b('0x32')](){return this[_0x544b('0x1e')]()['map'](_0x5c7cc4=>_0x5c7cc4[_0x544b('0x9')]());}['getItems'](){return this[_0x544b('0x32')]()['reduce']((_0x1c7ce9,_0x58dfa1)=>[..._0x1c7ce9,..._0x58dfa1[_0x544b('0x15')]()],[]);}[_0x544b('0xa')](){return this[_0x544b('0x1')]()[_0x544b('0x9')]();}[_0x544b('0x17')](){const _0x23f6de=this['getRanges']();if(0x1!=_0x23f6de[_0x544b('0xf')])return null;const _0x5ec041=_0x23f6de[0x0],_0x1ab7b0=_0x5ec041[_0x544b('0x3')][_0x544b('0xb')],_0x5c2aa7=_0x5ec041[_0x544b('0x24')][_0x544b('0x1b')];return _0x1ab7b0 instanceof _0x50db9b?_0x1ab7b0!=_0x5c2aa7?null:_0x1ab7b0:null;}['accept'](){this[_0x544b('0x26')](this[_0x544b('0x32')](),this[_0x544b('0x2b')],this['attributes']),this[_0x544b('0x2a')]();}[_0x544b('0xc')](){this[_0x544b('0x37')](this['getRanges'](),this[_0x544b('0x2b')],this[_0x544b('0x6')]),this['removeMarkers']();}[_0x544b('0x16')](){const _0x35661b=[];let _0x542a56=this['head'];for(;_0x542a56;)_0x35661b[_0x544b('0x14')](_0x542a56),_0x542a56=_0x542a56[_0x544b('0x0')];return _0x35661b;}[_0x544b('0x36')](_0x455284,_0x26d41a){const _0x3e8efe=_0x5e0a12(this[_0x544b('0x6')]);_0x304ede(_0x3e8efe,_0x455284,_0x26d41a),_0x1b1512(_0x3e8efe,this[_0x544b('0x6')])||(this[_0x544b('0x6')]=_0x3e8efe,this[_0x544b('0x25')](_0x3e8efe));}[_0x544b('0x35')](_0x2bef18){const _0xf70c01=_0x5e0a12(this[_0x544b('0x6')]);_0x55473e(_0xf70c01,_0x2bef18),_0x1b1512(_0xf70c01,this['attributes'])||(this[_0x544b('0x6')]=_0xf70c01,this[_0x544b('0x25')](this[_0x544b('0x6')]));}[_0x544b('0x33')](){return{'id':this['id'],'type':this[_0x544b('0xd')]?this[_0x544b('0x20')]+':'+this[_0x544b('0xd')]:this[_0x544b('0x20')],'authorId':this[_0x544b('0x2c')]['id'],'createdAt':this[_0x544b('0x19')],'hasComments':this[_0x544b('0x5')],'data':this['data'],'attributes':this[_0x544b('0x6')]};}static['getMultiRangeId'](){return _0x57ae7b()['substr'](0x1,0x5);}}_0x2e5b20(o,_0x1d3549);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default class c{constructor(
|
|
23
|
+
export default class c{constructor(_0x3f8371,_0xf4d594){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_schema']=_0x3f8371,this['_locale']=_0xf4d594;}['getDescriptions'](_0x44a0f9){const _0x26b6e9=[];for(let _0x200c3d=0x0;_0x200c3d<_0x44a0f9['length'];_0x200c3d++){const _0x7d516f=_0x44a0f9[_0x200c3d];if(!_0x7d516f['isInContent'])continue;let _0x58e49c=!0x1;for(const _0x43a8dd of this['_customCallbacks']){const _0x4f7870=_0x43a8dd(_0x7d516f);if(_0x4f7870){_0x4f7870['type']&&_0x26b6e9['push'](_0x4f7870),_0x58e49c=!0x0;break;}}if(!_0x58e49c){this['_addDescriptionItems'](_0x26b6e9,_0x7d516f);const _0x432364=_0x44a0f9[_0x200c3d+0x1];if(_0x432364&&!_0x7d516f['getFirstRange']()['end']['isEqual'](_0x432364['getFirstRange']()['start'])){const _0x576208=_0x26b6e9[_0x26b6e9['length']-0x1],_0x619829='insertion'==_0x7d516f['type']?'add':'remove';_0x576208&&'text'==_0x576208['type']&&(_0x576208[_0x619829]+='\x0a');}}}return this['_resolveDescriptionItems'](_0x26b6e9);}['registerDescriptionCallback'](_0x246be4){this['_customCallbacks']['push'](_0x246be4);}['registerElementLabel'](_0x1ec21a,_0x174a9e){this['_itemLabels']['set'](_0x1ec21a,_0x174a9e);}['getItemLabel'](_0x3b2d98,_0x86c255=0x1){const _0x50cfdf=this['_itemLabels']['get'](_0x3b2d98)||_0x3b2d98;return'function'==typeof _0x50cfdf?_0x50cfdf(_0x86c255):0x1!==_0x86c255?_0x86c255+'\x20'+_0x50cfdf+'s':''+_0x50cfdf;}['_addDescriptionItems'](_0x403f15,_0x131b19){const _0x25ff90=_0x131b19['getFirstRange']()['getWalker'](),_0x1e6044='insertion'==_0x131b19['type']?'add':'remove';for(const _0xd07294 of _0x25ff90){const _0x2c553a=_0xd07294['item'],_0x1a8bc9=_0x403f15[_0x403f15['length']-0x1];if(_0x2c553a['is']('textProxy'))_0x1a8bc9&&_0x1a8bc9['type']['indexOf']('Container')>-0x1&&_0x403f15['pop'](),_0x1a8bc9&&'text'==_0x1a8bc9['type']?_0x1a8bc9[_0x1e6044]+=_0x2c553a['data']:_0x403f15['push']({'type':'text','add':'add'==_0x1e6044?_0x2c553a['data']:'','remove':'remove'==_0x1e6044?_0x2c553a['data']:''});else{if(this['_schema']['isObject'](_0x2c553a)){if(_0x1a8bc9&&_0x1a8bc9['type']['indexOf']('Container')>-0x1&&_0x403f15['pop'](),'elementEnd'==_0xd07294['type'])continue;_0x1a8bc9&&_0x1a8bc9['type']==_0x1e6044+'Object'&&_0x1a8bc9['name']==_0x2c553a['name']?_0x1a8bc9['quantity']++:_0x403f15['push']({'type':_0x1e6044+'Object','name':_0x2c553a['name'],'quantity':0x1}),_0x25ff90['skip'](_0x4e0cee=>!('elementEnd'==_0x4e0cee['type']&&_0x4e0cee['item']==_0x2c553a));}else{if(this['_schema']['checkChild'](_0x2c553a,'$text')||_0x2c553a['is']('element','softBreak')){if('add'==_0x1e6044&&'elementStart'==_0xd07294['type']||'remove'==_0x1e6044&&'elementEnd'==_0xd07294['type'])continue;if(_0x1a8bc9&&-0x1==_0x1a8bc9['type']['indexOf']('Container')){'text'==_0x1a8bc9['type']&&(_0x1a8bc9[_0x1e6044]+='\x0a');continue;}let _0x388d45;if(_0x388d45='add'==_0x1e6044?_0x2c553a['nextSibling']&&!this['_schema']['isObject'](_0x2c553a['nextSibling'])?_0x2c553a['nextSibling']:null:_0x2c553a['previousSibling']&&!this['_schema']['isObject'](_0x2c553a['previousSibling'])?_0x2c553a['previousSibling']:null,_0x2c553a['isEmpty']||_0x388d45&&_0x388d45['isEmpty']){const _0x303923=_0x388d45&&_0x388d45['isEmpty']?_0x388d45['name']:_0x2c553a['name'];_0x1a8bc9&&_0x1a8bc9['type']==_0x1e6044+'EmptyContainer'&&_0x1a8bc9['name']==_0x303923?_0x1a8bc9['quantity']++:_0x403f15['push']({'type':_0x1e6044+'EmptyContainer','name':_0x303923,'quantity':0x1});}else _0x403f15['push']({'type':_0x1e6044+'Container','name':_0x2c553a['name']});}}}}}['_resolveDescriptionItems'](_0xa71623){const {t:t}=this['_locale'],_0x10ece7=[];for(const _0x201edb of _0xa71623){switch(_0x201edb['type']){case'text':if(_0x201edb['add']=_0x201edb['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x201edb['remove']=_0x201edb['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x201edb['add']&&''!=_0x201edb['remove']){_0x10ece7['push']({'type':'replace','content':t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},['\x22'+_0x201edb['remove']+'\x22','\x22'+_0x201edb['add']+'\x22'])});continue;}if(null!=_0x201edb['add']['match'](/^ +$/)){_0x10ece7['push']({'type':'insertion','content':t('*Insert:*\x20%0',t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x201edb['add']['length']))});continue;}if(null!=_0x201edb['remove']['match'](/^ +$/)){_0x10ece7['push']({'type':'deletion','content':t('*Remove:*\x20%0',t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x201edb['remove']['length']))});continue;}if(''!=_0x201edb['add']){_0x10ece7['push']({'type':'insertion','content':t('*Insert:*\x20%0','\x22'+_0x201edb['add']+'\x22')});continue;}_0x10ece7['push']({'type':'deletion','content':t('*Remove:*\x20%0','\x22'+_0x201edb['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x10ece7['push']({'type':'insertion','content':t('*Insert:*\x20%0',this['getItemLabel'](_0x201edb['name'],_0x201edb['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x10ece7['push']({'type':'deletion','content':t('*Remove:*\x20%0',this['getItemLabel'](_0x201edb['name'],_0x201edb['quantity']))});continue;case'addContainer':_0x10ece7['push']({'type':'insertion','content':t('*Split:*\x20%0',this['getItemLabel'](_0x201edb['name'],_0x201edb['quantity']))});continue;case'removeContainer':_0x10ece7['push']({'type':'deletion','content':t('*Merge:*\x20%0',this['getItemLabel'](_0x201edb['name'],_0x201edb['quantity']))});continue;}_0x10ece7['push'](_0x201edb);}return _0x10ece7;}}
|
package/src/trackchanges.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1307=['plugins','getSuggestions','getSuggestion','adapter','requires','TrackChanges','editor','get'];(function(_0x375359,_0x130717){var _0x182ce5=function(_0x3be0f1){while(--_0x3be0f1){_0x375359['push'](_0x375359['shift']());}};_0x182ce5(++_0x130717);}(_0x1307,0x14c));var _0x182c=function(_0x375359,_0x130717){_0x375359=_0x375359-0x0;var _0x182ce5=_0x1307[_0x375359];return _0x182ce5;};import{Plugin as _0x8a0594}from'ckeditor5/src/core';import _0x1f07df from'@ckeditor/ckeditor5-comments/src/comments';import _0x4a7431 from'@ckeditor/ckeditor5-comments/src/annotations/widesidebar';import _0x4c11de from'@ckeditor/ckeditor5-comments/src/annotations/narrowsidebar';import _0x4ef27b from'@ckeditor/ckeditor5-comments/src/annotations/inlineannotations';import _0x902738 from'./trackchangesui';import _0x307e9a from'./trackchangesediting';import'../theme/suggestion.css';import'../theme/suggestionmarker.css';export default class S extends _0x8a0594{static get[_0x182c('0x0')](){return[_0x307e9a,_0x902738,_0x1f07df,_0x4a7431,_0x4c11de,_0x4ef27b];}static get['pluginName'](){return _0x182c('0x1');}set['adapter'](_0x1a9291){this['editor']['plugins'][_0x182c('0x3')](_0x307e9a)[_0x182c('0x7')]=_0x1a9291;}get['adapter'](){return this[_0x182c('0x2')][_0x182c('0x4')][_0x182c('0x3')](_0x307e9a)[_0x182c('0x7')];}['addSuggestion'](_0x17c6f8){return this[_0x182c('0x2')][_0x182c('0x4')][_0x182c('0x3')](_0x307e9a)['addSuggestionData'](_0x17c6f8);}[_0x182c('0x5')](_0x1d6460){return this[_0x182c('0x2')][_0x182c('0x4')][_0x182c('0x3')](_0x307e9a)['getSuggestions'](_0x1d6460);}[_0x182c('0x6')](_0x425a7f){return this[_0x182c('0x2')][_0x182c('0x4')][_0x182c('0x3')](_0x307e9a)['getSuggestion'](_0x425a7f);}}
|
package/src/trackchangesdata.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x544e=['track-changes-data-invalid-editor-creator','from','set','get','init','getSuggestions','has','names','pluginName','useAnonymousUser','define','TrackChangesDataGetter','push','config','document','Autosave','users','end','Users','trackChangesData','_adapter','editor','createElement','every','appendChild','name','data','requires','function','div','map','constructor','string','RealTimeCollaborativeEditing','find','TrackChangesEditing','trackChangesData.editorCreator','context','extraPlugins','plugins','add','concat','TrackChangesData','create','RealTimeCollaborativeTrackChanges','acceptAllSuggestions','destroy','RealTimeCollaborativeComments','reduce','includes','execute','getDataWithDiscardedSuggestions','getRootNames','model','filter','addSuggestionData','discardAllSuggestions','getUser'];(function(_0x2a060b,_0x544e1c){const _0x5d7a6b=function(_0xe1d913){while(--_0xe1d913){_0x2a060b['push'](_0x2a060b['shift']());}};_0x5d7a6b(++_0x544e1c);}(_0x544e,0x114));const _0x5d7a=function(_0x2a060b,_0x544e1c){_0x2a060b=_0x2a060b-0x0;let _0x5d7a6b=_0x544e[_0x2a060b];return _0x5d7a6b;};import{Plugin as _0x5ce728}from'ckeditor5/src/core';import _0x59b8ee from'./trackchangesediting';import{CKEditorError as _0x4e7524}from'ckeditor5/src/utils';const T=['initialData',_0x5d7a('0x33'),'toolbar'],D=[_0x5d7a('0x2f'),_0x5d7a('0x3'),_0x5d7a('0x0'),_0x5d7a('0x1d')];export default class w extends _0x5ce728{static get['requires'](){return[_0x59b8ee];}static get['pluginName'](){return _0x5d7a('0x38');}[_0x5d7a('0x12')](){const _0x1620ab=this[_0x5d7a('0x23')];if(_0x1620ab[_0x5d7a('0x1b')][_0x5d7a('0x18')](_0x5d7a('0x32'),_0x56644f=>_0x1620ab[_0x5d7a('0x2d')][_0x5d7a('0x39')]('',_0x56644f)),_0x5d7a('0x2a')!=typeof _0x1620ab['config'][_0x5d7a('0x11')](_0x5d7a('0x21'))['editorCreator'])throw new _0x4e7524(_0x5d7a('0xe'));}['getDataWithAcceptedSuggestions'](_0x54a4af){return y(this[_0x5d7a('0x23')],!0x0,_0x54a4af);}[_0x5d7a('0x7')](_0x5dc44e){return y(this[_0x5d7a('0x23')],!0x1,_0x5dc44e);}}class v extends _0x5ce728{static get[_0x5d7a('0x16')](){return _0x5d7a('0x19');}[_0x5d7a('0x12')](){this['result']=_0x5d7a('0x1f'),this[_0x5d7a('0x23')][_0x5d7a('0x35')][_0x5d7a('0x11')]('CommentsRepository')[_0x5d7a('0x22')]={'getCommentThread':()=>new Promise(()=>{})},this['editor'][_0x5d7a('0x35')][_0x5d7a('0x11')](_0x5d7a('0x31'))['_adapter']=null;}}async function y(_0x356cb6,_0x281e36,_0x4f3fcc){const _0x7a4c46=function(_0x5cbcc8){const _0x12b241={};for(const _0x22bb0b of _0x5cbcc8[_0x5d7a('0x1b')][_0x5d7a('0x15')]())T[_0x5d7a('0x5')](_0x22bb0b)||(_0x12b241[_0x22bb0b]=_0x5cbcc8[_0x5d7a('0x1b')]['get'](_0x22bb0b));const _0x1db84a=_0x5cbcc8[_0x5d7a('0x2d')]['builtinPlugins']||[],_0xa4c3dd=_0x12b241['extraPlugins']||[];delete _0x12b241[_0x5d7a('0x34')];const _0x254f4f=_0x1db84a[_0x5d7a('0x37')](_0x12b241[_0x5d7a('0x35')])['concat'](_0xa4c3dd)[_0x5d7a('0x2c')](_0x36247c=>_0x5d7a('0x2e')==typeof _0x36247c?_0x1db84a[_0x5d7a('0x30')](_0x4d01cb=>_0x4d01cb[_0x5d7a('0x16')]==_0x36247c):_0x36247c),_0x53ba55=Array[_0x5d7a('0xf')](new Set(_0x254f4f));return _0x12b241['plugins']=_0x53ba55[_0x5d7a('0xa')](_0x255243=>A(_0x255243,new Set())),_0x12b241[_0x5d7a('0x35')][_0x5d7a('0x1a')](v),_0x12b241[_0x5d7a('0x35')][_0x5d7a('0x1a')](_0x59b8ee),_0x12b241;}(_0x356cb6),_0x435a31=document['createDocumentFragment'](),_0x4aef89=_0x356cb6['config']['get'](_0x5d7a('0x21'))['editorCreator'],_0x21937a=await _0x4aef89(_0x7a4c46,()=>function(_0x21115b){const _0x324a80=document[_0x5d7a('0x24')](_0x5d7a('0x2b'));return _0x21115b[_0x5d7a('0x26')](_0x324a80),_0x324a80;}(_0x435a31));!function(_0x5460ad,_0xd8f95e){const _0xdde0=_0x5460ad[_0x5d7a('0x9')][_0x5d7a('0x1c')][_0x5d7a('0x8')]()[_0x5d7a('0x4')]((_0x5451f7,_0x170735)=>(_0x5451f7[_0x170735]=_0x5460ad[_0x5d7a('0x28')][_0x5d7a('0x11')]({'rootName':_0x170735}),_0x5451f7),{}),_0x5938f6=_0x5460ad[_0x5d7a('0x35')][_0x5d7a('0x11')]('Users')[_0x5d7a('0x1e')][_0x5d7a('0x2c')](_0x4b82a0=>({'id':_0x4b82a0['id']})),_0x54829a=_0x5460ad[_0x5d7a('0x35')][_0x5d7a('0x11')](_0x5d7a('0x31'))[_0x5d7a('0x13')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x39c89a=_0xd8f95e['plugins'][_0x5d7a('0x11')](_0x5d7a('0x20')),_0x1f521d=_0xd8f95e[_0x5d7a('0x35')][_0x5d7a('0x11')](_0x5d7a('0x31'));for(const _0x381569 of _0x5938f6)_0x39c89a[_0x5d7a('0xd')](_0x381569['id'])||_0x39c89a['addUser'](_0x381569);_0x39c89a['me']||_0x39c89a[_0x5d7a('0x17')]();for(const _0x5f2ee9 of _0x54829a)_0x1f521d[_0x5d7a('0xb')](_0x5f2ee9);_0xd8f95e[_0x5d7a('0x28')][_0x5d7a('0x10')](_0xdde0);}(_0x356cb6,_0x21937a),_0x21937a[_0x5d7a('0x6')](_0x281e36?_0x5d7a('0x1'):_0x5d7a('0xc'));const _0x5da78a=_0x21937a[_0x5d7a('0x28')][_0x5d7a('0x11')](_0x4f3fcc);return await _0x21937a[_0x5d7a('0x2')](),_0x5da78a;}function A(_0x525f71,_0xfc1390){if(_0xfc1390[_0x5d7a('0x14')](_0x525f71))return!0x0;_0xfc1390[_0x5d7a('0x36')](_0x525f71);const _0x54c13d=_0x5d7a('0x2a')==typeof _0x525f71?_0x525f71[_0x5d7a('0x16')]||_0x525f71[_0x5d7a('0x27')]:_0x525f71;return(!_0x54c13d||!D[_0x5d7a('0x5')](_0x54c13d))&&(!_0x525f71[_0x5d7a('0x29')]||_0x525f71[_0x5d7a('0x29')][_0x5d7a('0x25')](_0x146a16=>A(_0x146a16,_0xfc1390)));}
|