@ckeditor/ckeditor5-list-multi-level 48.8.1-alpha.2 → 48.8.1-alpha.3
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/dist/index.js +1 -1
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as _0x476497,Plugin as _0x103050}from'@ckeditor/ckeditor5-core/dist/index.js';import{Matcher as _0x42743a,ViewUpcastWriter as _0x4cbf6b}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ListEditing as _0xeb5206,_isFirstBlockOfListItem as _0x2d1119}from'@ckeditor/ckeditor5-list/dist/index.js';import{first as _0x575ae7,createElement as _0x36c2c2,uid as _0x4e3e6f,FocusTracker as _0x5cc76e,KeystrokeHandler as _0x2b1fb1,global as _0xa3cedc}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconMultiLevelList as _0x59df2c}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x3049b7,ViewCollection as _0x5113b3,FocusCycler as _0x496134,addKeyboardHandlingForGrid as _0x4a77f9,CollapsibleView as _0x2a670f,LabeledFieldView as _0x128bca,createLabeledInputNumber as _0x49076c,MenuBarMenuListItemButtonView as _0x404926,ButtonView as _0x12b144,createDropdown as _0x3eaa2e,SplitButtonView as _0x272624}from'@ckeditor/ckeditor5-ui/dist/index.js';class MultiLevelListCommand extends _0x476497{['defaultListMarkerStyle'];['_listDefinitions'];['_listUtils'];constructor(_0x48302f,_0x5ca9b1,_0x1e79f6){super(_0x48302f),this['defaultListMarkerStyle']=_0x5ca9b1,this['_listDefinitions']=_0x1e79f6,this['_listUtils']=this['editor']['plugins']['get']('ListUtils');}['refresh'](){this['value']=this['_getValue'](),this['isEnabled']=this['_checkEnabled']();}['execute'](_0x33f171={}){const _0x3ba80a=this['editor']['model'],_0x404577=_0x33f171['listMarkerStyle']||this['defaultListMarkerStyle'];_0x3ba80a['change'](()=>{const _0xd7efe=this['_getListTypeFromListMarkerStyle'](_0x404577);if(!_0xd7efe)return;const _0x56646d=_0xd7efe+'List';this['editor']['execute'](_0x56646d,{'additionalAttributes':{'listMarkerStyle':_0x404577}});});}['_getValue'](){const _0x239d09=_0x575ae7(this['editor']['model']['document']['selection']['getSelectedBlocks']());return this['_listUtils']['isListItemBlock'](_0x239d09)?_0x239d09['getAttribute']('listMarkerStyle'):null;}['_checkEnabled'](){const _0x374005=this['editor'],_0xe0f7e9=_0x374005['commands']['get']('customNumberedList'),_0x3badee=_0x374005['commands']['get']('customBulletedList');return _0xe0f7e9['isEnabled']||_0x3badee['isEnabled'];}['_getListTypeFromListMarkerStyle'](_0x33593d){const _0x3cd7a5=this['_listDefinitions']['find'](_0x4469f6=>_0x4469f6['listMarkerStyle']==_0x33593d);return _0x3cd7a5?_0x3cd7a5['listType']:null;}}class MultiLevelListEditing extends _0x103050{['_listDefinitions'];static get['pluginName'](){return'MultiLevelListEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0xeb5206];}constructor(_0x30cc82){super(_0x30cc82);const _0x9ea0bd=this['editor']['config']['get']('listMultiLevel.listDefinitions')||[];this['_listDefinitions']=[{'listType':'customNumbered','listMarkerStyle':'legal','className':'legal-list','listMarkers':[{'marker':_0x11d98f=>_0x11d98f+'.'}]},..._0x9ea0bd];}['init'](){const _0x238275=this['editor'],_0xd7f772=_0x238275['model'],_0x4884c4=_0x238275['editing']['view'],_0x4f870b=_0x238275['plugins']['get'](_0xeb5206);_0x238275['commands']['add']('multiLevelList',new MultiLevelListCommand(_0x238275,'legal',this['_listDefinitions'])),_0xd7f772['schema']['extend']('$listItem',{'allowAttributes':['listMarkerStyle','listMarker']}),_0xd7f772['schema']['addAttributeCheck']((_0x384ea6,_0x5d2cf0)=>{const _0x442d62=_0x384ea6['last'];if('listMarker'==_0x5d2cf0||'listMarkerStyle'==_0x5d2cf0)return!(!_0x442d62['getAttribute']('listItemId')||!this['_listDefinitions']['find'](_0x7f4ef8=>_0x7f4ef8['listType']==_0x442d62['getAttribute']('listType')))&&void 0x0;});for(const _0xa6462a of this['_listDefinitions'])_0x238275['conversion']['for']('upcast')['add'](_0x20c224=>{_0x20c224['on']('element:'+('customNumbered'==_0xa6462a['listType']?'ol':'ul'),N(_0xa6462a,_0xd7f772['schema']),{'priority':'low'});}),_0x4f870b['registerDowncastStrategy']({'scope':'list','attributeName':'listMarkerStyle','setAttributeOnDowncast'(_0x4d2c40,_0x1bb3a2,_0x593263){_0x1bb3a2==_0xa6462a['listMarkerStyle']?(_0x4d2c40['addClass'](['multi-level-list',_0xa6462a['className']],_0x593263),_0x4d2c40['setStyle']('list-style-type','none',_0x593263)):(_0x4d2c40['removeClass'](['multi-level-list',_0xa6462a['className']],_0x593263),_0x4d2c40['removeStyle']('list-style-type',_0x593263));}}),_0x4f870b['registerDowncastStrategy']({'scope':'itemMarker','attributeName':'listMarker','createElement'(_0x2853d0,_0x39a141,{dataPipeline:_0x5b2a62}){if(!_0x39a141['hasAttribute']('listMarker'))return null;if(_0x39a141['getAttribute']('listType')!=_0xa6462a['listType']||_0x39a141['getAttribute']('listMarkerStyle')!=_0xa6462a['listMarkerStyle'])return null;const _0x30385a=String(_0x39a141['getAttribute']('listMarker')),_0x49caf7=this['canInjectMarkerIntoElement'](_0x39a141);return _0x2853d0['createUIElement']('span',{'class':'multi-level-list__marker',...!_0x5b2a62&&{'contenteditable':'false','data-multi-level-list-marker':_0x30385a}},function(_0xaa0405){const _0x280697=this['toDomElement'](_0xaa0405);return _0x49caf7?(_0x280697['appendChild'](_0x36c2c2(_0xaa0405,'span',{},_0x5b2a62?_0xaa0405['createTextNode'](_0x30385a):[])),_0x280697['appendChild'](_0xaa0405['createTextNode']('\u00a0'))):_0x5b2a62&&_0x280697['appendChild'](_0xaa0405['createTextNode'](_0x30385a)),_0x280697;});},'canInjectMarkerIntoElement':_0x25a3ad=>_0xd7f772['schema']['checkChild'](_0x25a3ad,'$text')&&_0xd7f772['schema']['checkChild'](_0x25a3ad,'$inlineObject')&&!_0xd7f772['schema']['isLimit'](_0x25a3ad)&&_0x25a3ad['getAttribute']('listType')==_0xa6462a['listType']&&_0x25a3ad['getAttribute']('listMarkerStyle')==_0xa6462a['listMarkerStyle']});_0x238275['conversion']['for']('upcast')['add'](_0x2e0640=>{_0x2e0640['on']('element:span',function(_0x342652){return(_0x35bd4f,_0xae8e7c,{writer:_0x430b8d,consumable:_0xfaeba5})=>{const _0x1b6d81=_0xae8e7c['modelCursor'],_0x5e4729=_0x1b6d81['parent'],_0x1c4600=_0xae8e7c['viewItem'];if(_0xfaeba5['consume'](_0x1c4600,{'name':!0x0,'classes':'multi-level-list__marker'})&&_0x1b6d81['isAtStart']&&_0x5e4729['hasAttribute']('listType')&&_0x1c4600['childCount']>0x0){const _0x1a074b=_0x342652['createRangeIn'](_0x1c4600);let _0x5d8bfe='';for(const _0x39b8f4 of _0x1a074b['getItems']())_0x39b8f4['is']('$textProxy')?(_0x5d8bfe+=_0x39b8f4['data']['trim'](),_0xfaeba5['consume'](_0x39b8f4['textNode'])):_0xfaeba5['consume'](_0x39b8f4,{'name':!0x0});_0x430b8d['setAttribute']('listMarker',_0x5d8bfe['trim'](),_0x5e4729);}};}(_0x4884c4));}),_0x4f870b['on']('postFixer',(_0x3eb4d9,{listNodes:_0x5dcfe2,writer:_0x1b04ca})=>{const _0x519b9f=[];for(const {node:_0x51eb6b,previousNodeInList:_0x4492b4}of _0x5dcfe2){const _0x16fa96=_0x51eb6b['getAttribute']('listType'),_0x2e42c2=_0x51eb6b['getAttribute']('listMarkerStyle')||('customNumbered'==_0x16fa96?'legal':void 0x0),_0x48df16=this['_listDefinitions']['find'](_0x2ffb04=>_0x2ffb04['listType']==_0x16fa96&&_0x2ffb04['listMarkerStyle']==_0x2e42c2);if('customNumbered'!=_0x16fa96&&'customBulleted'!=_0x16fa96&&(_0x51eb6b['hasAttribute']('listMarker')&&(_0x1b04ca['removeAttribute']('listMarker',_0x51eb6b),_0x3eb4d9['return']=!0x0),_0x51eb6b['hasAttribute']('listMarkerStyle')&&(_0x1b04ca['removeAttribute']('listMarkerStyle',_0x51eb6b),_0x3eb4d9['return']=!0x0)),!_0x48df16){'customBulleted'!=_0x16fa96||_0x2e42c2||(_0x1b04ca['setAttribute']('listType','bulleted',_0x51eb6b),_0x3eb4d9['return']=!0x0);continue;}_0x51eb6b['hasAttribute']('listMarkerStyle')||(_0x1b04ca['setAttribute']('listMarkerStyle',_0x2e42c2,_0x51eb6b),_0x3eb4d9['return']=!0x0);const _0x8b790b=_0x51eb6b['getAttribute']('listIndent');if(_0x4492b4&&_0x4492b4['getAttribute']('listItemId')==_0x51eb6b['getAttribute']('listItemId'))continue;_0x519b9f['length']=_0x8b790b+0x1,_0x4492b4||_0x519b9f[_0x8b790b]?_0x4492b4&&_0x4492b4['getAttribute']('listType')!=_0x48df16['listType']?_0x519b9f[_0x8b790b]=0x1:_0x519b9f[_0x8b790b]++:_0x519b9f[_0x8b790b]=_0x51eb6b['getAttribute']('listStart')||0x1;const _0x274d4c=I(_0x8b790b,_0x48df16,_0x519b9f);_0x51eb6b['getAttribute']('listMarker')!=_0x274d4c&&(_0x1b04ca['setAttribute']('listMarker',_0x274d4c,_0x51eb6b),_0x3eb4d9['return']=!0x0);}}),_0x4f870b['on']('checkElement',(_0x3513e6,{modelElement:_0x1b3d0f,viewElement:_0x3f20da})=>{const _0x1f130d=_0x1b3d0f['getAttribute']('listType');if('customNumbered'!=_0x1f130d&&'customBulleted'!=_0x1f130d)return;if(_0xd7f772['schema']['checkChild'](_0x1b3d0f,'$text'))return;const _0x109041=_0x2d1119(_0x1b3d0f);let _0xcc007=!0x1;const _0x2ea25a=_0x4884c4['createPositionBefore'](_0x3f20da)['getWalker']({'direction':'backward'});for(const {item:_0x26e63d}of _0x2ea25a)if(_0x26e63d['is']('element')){if(_0x238275['editing']['mapper']['toModelElement'](_0x26e63d))break;if(_0x26e63d['getCustomProperty']('listItemMarker')){_0xcc007=!0x0;break;}}_0xcc007!=_0x109041&&(_0x3513e6['return']=!0x0,_0x3513e6['stop']());});const _0x2a808e=_0x238275['editing']['view']['document'];this['listenTo'](_0x2a808e,'clipboardOutput',(_0x5134ef,_0x4fb821)=>{const _0x2efc96=new _0x42743a({'name':'span','classes':'multi-level-list__marker'}),_0x24498f=new _0x42743a({'name':'ol','classes':'multi-level-list','styles':{'list-style-type':'none'}}),_0x1f5ee5=new _0x4cbf6b(_0x4fb821['content']['document']),_0x34c6ec=[];for(const _0x688ade of _0x1f5ee5['createRangeIn'](_0x4fb821['content'])['getItems']())_0x688ade['is']('element')&&_0x2efc96['match'](_0x688ade)&&_0x34c6ec['push'](_0x688ade),_0x688ade['is']('element')&&_0x24498f['match'](_0x688ade)&&_0x1f5ee5['removeStyle']('list-style-type',_0x688ade);for(const _0x4d0835 of _0x34c6ec)_0x1f5ee5['remove'](_0x4d0835);});}['afterInit'](){!async function(_0x391158){const _0x353679=_0x57653c([0x75,0x6e,0x30,0x4e,0x46,0x51,0x55,0x6f,0x58,0x31,0x65,0x76,0x7a,0x6b,0x33,0x79,0x4d,0x45,0x66,0x77,0x6c,0x37,0x54,0x78,0x62,0x44,0x72,0x69,0x73,0x4f,0x5a,0x61,0x57,0x74,0x4b,0x71,0x35,0x32,0x50,0x39,0x38,0x64,0x63,0x68,0x42,0x56,0x70,0x6a,0x53,0x34,0x6d,0x59,0x4c,0x43,0x36,0x67,0x4a,0x49,0x48,0x47,0x52,0x41]),_0x2555e4=0xf46a94a,_0x1be7f3=0xf41231a^_0x2555e4,_0xa832cc=window[_0x57653c([0x44,0x61,0x74,0x65])][_0x57653c([0x6e,0x6f,0x77])](),_0x272e90=_0x391158[_0x57653c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x121dd5=new window[(_0x57653c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12ce0e=>{_0x272e90[_0x57653c([0x6f,0x6e,0x63,0x65])](_0x57653c([0x72,0x65,0x61,0x64,0x79]),_0x12ce0e);}),_0x3aed9c={[_0x57653c([0x6b,0x74,0x79])]:_0x57653c([0x45,0x43]),[_0x57653c([0x75,0x73,0x65])]:_0x57653c([0x73,0x69,0x67]),[_0x57653c([0x63,0x72,0x76])]:_0x57653c([0x50,0x2d,0x32,0x35,0x36]),[_0x57653c([0x78])]:_0x57653c([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x57653c([0x79])]:_0x57653c([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x57653c([0x61,0x6c,0x67])]:_0x57653c([0x45,0x53,0x32,0x35,0x36])},_0x308e4c=_0x272e90[_0x57653c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x57653c([0x67,0x65,0x74])](_0x57653c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4ebc95(){let _0x5148bf,_0x5013b0=null,_0x27ef75=null;try{if(_0x308e4c==_0x57653c([0x47,0x50,0x4c]))return _0x57653c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5148bf=_0x371094(),!_0x5148bf)return _0x57653c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5148bf[_0x57653c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x27ef75=_0x3d1dd0(_0x5148bf[_0x57653c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5148bf[_0x57653c([0x6a,0x74,0x69])])),await _0xfd0cce()?_0x1d6766()?_0x163310()?_0x57653c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1901ca()?(_0x5148bf[_0x57653c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x57653c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5013b0=_0x5edb72(_0x57653c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3ac984()):_0x57653c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x57653c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x57653c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x57653c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x163310(){const _0x583dde=[_0x57653c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x57653c([0x74,0x72,0x69,0x61,0x6c])][_0x57653c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5148bf[_0x57653c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xa832cc/0x3e8:0xe10*_0x1be7f3;return _0x5148bf[_0x57653c([0x65,0x78,0x70])]<_0x583dde;}function _0x1d6766(){const _0x1d1e7f=_0x5148bf[_0x57653c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1d1e7f&&(!!_0x1d1e7f[_0x57653c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57653c([0x2a]))||!!_0x1d1e7f[_0x57653c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57653c([0x4d,0x4c,0x4c])));}function _0x1901ca(){const _0x4a2662=_0x5148bf[_0x57653c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4a2662||0x0==_0x4a2662[_0x57653c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xbfedcd}=new URL(window[_0x57653c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4a2662[_0x57653c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbfedcd))return!0x0;const _0x5f180a=_0xbfedcd[_0x57653c([0x73,0x70,0x6c,0x69,0x74])](_0x57653c([0x2e]));return _0x4a2662[_0x57653c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4ee8fb=>_0x4ee8fb[_0x57653c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57653c([0x2a])))[_0x57653c([0x6d,0x61,0x70])](_0x3cd815=>_0x3cd815[_0x57653c([0x73,0x70,0x6c,0x69,0x74])](_0x57653c([0x2e])))[_0x57653c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x56c2d7=>_0x56c2d7[_0x57653c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5f180a[_0x57653c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x57653c([0x6d,0x61,0x70])](_0x570e8a=>Array(_0x5f180a[_0x57653c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x570e8a[_0x57653c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x57653c([0x66,0x69,0x6c,0x6c])](_0x570e8a[0x0]===_0x57653c([0x2a])?_0x57653c([0x2a]):'')[_0x57653c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x570e8a))[_0x57653c([0x73,0x6f,0x6d,0x65])](_0x4fb217=>_0x5f180a[_0x57653c([0x65,0x76,0x65,0x72,0x79])]((_0x138ca9,_0x4f7014)=>_0x4fb217[_0x4f7014]===_0x138ca9||_0x4fb217[_0x4f7014]===_0x57653c([0x2a])));}function _0x3ac984(){return _0x5013b0&&_0x27ef75?new window[(_0x57653c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x6b0105,_0x205f03)=>{_0x5013b0[_0x57653c([0x74,0x68,0x65,0x6e])](_0x6b0105,_0x205f03),_0x27ef75[_0x57653c([0x74,0x68,0x65,0x6e])](_0x26dd47=>{_0x26dd47!=_0x57653c([0x56,0x61,0x6c,0x69,0x64])&&_0x6b0105(_0x26dd47);},_0x205f03);}):_0x5013b0||_0x27ef75||_0x57653c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3d1dd0(_0x12cdfc,_0x220829){return new window[(_0x57653c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x39950f=>{if(_0x375f25())return _0x39950f(_0x57653c([0x56,0x61,0x6c,0x69,0x64]));_0x3b0f54(),_0x272e90[_0x57653c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x57653c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x277eb6=!0x1;const _0x40a495=_0x4e3e6f();function _0x2679e8(_0x3ea1dd){return!!_0x3ea1dd&&(typeof _0x3ea1dd===_0x57653c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3ea1dd===_0x57653c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3ea1dd[_0x57653c([0x74,0x68,0x65,0x6e])]===_0x57653c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3ea1dd[_0x57653c([0x63,0x61,0x74,0x63,0x68])]===_0x57653c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x82b0b(_0x2f6595){_0x239d3a(_0x2f6595)[_0x57653c([0x74,0x68,0x65,0x6e])](_0x2fe1d1=>{if(!_0x2fe1d1||_0x2fe1d1[_0x57653c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x57653c([0x6f,0x6b]))return _0x57653c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x428bf5(_0x218ac7(_0x40a495+_0x220829))!=_0x2fe1d1[_0x57653c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x57653c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x57653c([0x56,0x61,0x6c,0x69,0x64]);})[_0x57653c([0x74,0x68,0x65,0x6e])](_0x2b1424=>(_0x4fcb3a(),_0x2b1424),()=>{const _0x1a19dc=_0x142400();return null==_0x1a19dc?(_0x4fcb3a(),_0x57653c([0x56,0x61,0x6c,0x69,0x64])):_0x57653c(_0xa832cc-_0x1a19dc>(0x2b4a2d4a^_0x2555e4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x57653c([0x74,0x68,0x65,0x6e])](_0x39950f)[_0x57653c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x39950f(_0x57653c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xc62598=0xf7047ca^_0x2555e4;function _0x4fcb3a(){const _0x56d010=_0x57653c([0x6c,0x6c,0x63,0x74,0x2d])+_0x428bf5(_0x218ac7(_0x12cdfc)),_0x3ac498=_0x25e63e(_0x428bf5(window[_0x57653c([0x4d,0x61,0x74,0x68])][_0x57653c([0x63,0x65,0x69,0x6c])](_0xa832cc/_0xc62598)));window[_0x57653c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x57653c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x56d010,_0x3ac498);}function _0x142400(){const _0x2a3085=_0x57653c([0x6c,0x6c,0x63,0x74,0x2d])+_0x428bf5(_0x218ac7(_0x12cdfc)),_0x5d7400=window[_0x57653c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x57653c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2a3085);return _0x5d7400?window[_0x57653c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x25e63e(_0x5d7400),0x10)*_0xc62598:null;}function _0x239d3a(_0x3a4118){return new window[(_0x57653c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5be280,_0x3ca031)=>{_0x3a4118[_0x57653c([0x74,0x68,0x65,0x6e])](_0x5be280,_0x3ca031),window[_0x57653c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3ca031,0xf477d8a^_0x2555e4);});}}_0x272e90[_0x57653c([0x6f,0x6e])](_0x57653c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x497a62,_0x5a6605)=>{if(_0x5a6605[0x0]!=_0x12cdfc)return _0x39950f(_0x57653c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5a6605[0x1]={..._0x5a6605[0x1],[_0x57653c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x40a495};},{[_0x57653c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x57653c([0x68,0x69,0x67,0x68])}),_0x272e90[_0x57653c([0x6f,0x6e])](_0x57653c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x39ccdd=>{_0x2679e8(_0x39ccdd[_0x57653c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x277eb6=!0x0,_0x82b0b(_0x39ccdd[_0x57653c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x57653c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x57653c([0x6c,0x6f,0x77])}),_0x121dd5[_0x57653c([0x74,0x68,0x65,0x6e])](()=>{_0x277eb6||_0x39950f(_0x57653c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x375f25(){return _0x272e90[_0x57653c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x57653c([0x76,0x69,0x65,0x77])][_0x57653c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x57653c([0x61,0x75,0x74,0x6f]);}function _0x3b0f54(){_0x272e90[_0x57653c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x57653c([0x76,0x69,0x65,0x77])][_0x57653c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x57653c([0x61,0x75,0x74,0x6f]);}}function _0x5edb72(_0x4f8570){const _0x479993=[new window[(_0x57653c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59a1ac=>setTimeout(_0x59a1ac,0xf4f9786^_0x2555e4)),_0x121dd5[_0x57653c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x57653c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9bb9fb=>{let _0x27f16f=0x0;_0x272e90[_0x57653c([0x6d,0x6f,0x64,0x65,0x6c])][_0x57653c([0x6f,0x6e])](_0x57653c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1e3376,_0xfe7bbd)=>{_0xfe7bbd[0x0][_0x57653c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x27f16f++,_0x27f16f==(0xf46aca2^_0x2555e4)&&(_0x9bb9fb(),_0x1e3376[_0x57653c([0x6f,0x66,0x66])]());});}))];return window[_0x57653c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x57653c([0x72,0x61,0x63,0x65])](_0x479993)[_0x57653c([0x74,0x68,0x65,0x6e])](()=>_0x4f8570);}async function _0x322450(){await _0x121dd5,_0x272e90[_0x57653c([0x6d,0x6f,0x64,0x65,0x6c])][_0x57653c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1a7e69,_0x272e90[_0x57653c([0x6d,0x6f,0x64,0x65,0x6c])][_0x57653c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1a7e69,_0x272e90[_0x57653c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x57653c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x8df7b(_0x3e5932){const _0x16632b=_0x308313();_0x272e90[_0x16632b]=_0x57653c([0x6d,0x75,0x6c,0x74,0x69,0x4c,0x65,0x76,0x65,0x6c,0x4c,0x69,0x73,0x74,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3e5932,_0x3e5932!=_0x57653c([0x56,0x61,0x6c,0x69,0x64])&&_0x322450();}function _0x308313(){const _0x1eab80=window[_0x57653c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x57653c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x57653c([0x6e,0x6f,0x77])]())[_0x57653c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x57653c([0x2e]),'');let _0x3792e5=_0x57653c([0x75]);for(let _0x1018d9=0x0;_0x1018d9<_0x1eab80[_0x57653c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1018d9+=0x2){let _0x185cc1=window[_0x57653c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1eab80[_0x57653c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1018d9,_0x1018d9+0x2));_0x185cc1>=_0x353679[_0x57653c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x185cc1-=_0x353679[_0x57653c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3792e5+=_0x353679[_0x185cc1];}return _0x3792e5;}function _0x371094(){const _0x421549=_0x308e4c[_0x57653c([0x73,0x70,0x6c,0x69,0x74])](_0x57653c([0x2e]));if(0x3!=_0x421549[_0x57653c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x55d8ec(_0x421549[0x1]);function _0x55d8ec(_0x14a40e){const _0x40ffb9=_0x219a76(_0x14a40e);return _0x40ffb9&&_0x3429c9()?_0x40ffb9:null;function _0x3429c9(){const _0x266a1d=_0x40ffb9[_0x57653c([0x6a,0x74,0x69])],_0x9afbc6=window[_0x57653c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x266a1d[_0x57653c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x266a1d[_0x57653c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5b6663={..._0x40ffb9,[_0x57653c([0x6a,0x74,0x69])]:_0x266a1d[_0x57653c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x266a1d[_0x57653c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5b6663[_0x57653c([0x76,0x63])],_0x218ac7(_0x5b6663)==_0x9afbc6;}}}async function _0xfd0cce(){let _0x23ffd6=!0x0;try{const _0x7d3f8d=_0x308e4c[_0x57653c([0x73,0x70,0x6c,0x69,0x74])](_0x57653c([0x2e])),[_0xa1980f,_0x10893b,_0x91ea9a]=_0x7d3f8d;return _0x599359(_0xa1980f),await _0x58318b(_0xa1980f,_0x10893b,_0x91ea9a),_0x23ffd6;}catch{return!0x1;}function _0x599359(_0x57ef6a){const _0x1aef7f=_0x219a76(_0x57ef6a);_0x1aef7f&&_0x1aef7f[_0x57653c([0x61,0x6c,0x67])]==_0x57653c([0x45,0x53,0x32,0x35,0x36])||(_0x23ffd6=!0x1);}async function _0x58318b(_0x3d1f98,_0x4568d9,_0x1d77c2){const _0x142c85=window[_0x57653c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x57653c([0x66,0x72,0x6f,0x6d])](_0x200228(_0x1d77c2),_0x50c173=>_0x50c173[_0x57653c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x512b82=new window[(_0x57653c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x57653c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3d1f98+_0x57653c([0x2e])+_0x4568d9),_0x12c3c9=window[_0x57653c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x57653c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x12c3c9)return;const _0x1e9127=await _0x12c3c9[_0x57653c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x57653c([0x6a,0x77,0x6b]),_0x3aed9c,{[_0x57653c([0x6e,0x61,0x6d,0x65])]:_0x57653c([0x45,0x43,0x44,0x53,0x41]),[_0x57653c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x57653c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x57653c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x12c3c9[_0x57653c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x57653c([0x6e,0x61,0x6d,0x65])]:_0x57653c([0x45,0x43,0x44,0x53,0x41]),[_0x57653c([0x68,0x61,0x73,0x68])]:{[_0x57653c([0x6e,0x61,0x6d,0x65])]:_0x57653c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1e9127,_0x142c85,_0x512b82)||(_0x23ffd6=!0x1);}}function _0x219a76(_0x5ac367){return _0x5ac367[_0x57653c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x57653c([0x65,0x79]))?JSON[_0x57653c([0x70,0x61,0x72,0x73,0x65])](_0x200228(_0x5ac367)):null;}function _0x200228(_0xf0dd93){return window[_0x57653c([0x61,0x74,0x6f,0x62])](_0xf0dd93[_0x57653c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x57653c([0x2b]))[_0x57653c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x57653c([0x2f])));}function _0x218ac7(_0x457e4e){let _0x33719c=0x1505;function _0x5aa06c(_0x376d43){for(let _0x53e389=0x0;_0x53e389<_0x376d43[_0x57653c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x53e389++){const _0x47a60e=_0x376d43[_0x57653c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x53e389);_0x33719c=(_0x33719c<<0x5)+_0x33719c+_0x47a60e,_0x33719c&=_0x33719c;}}function _0x1be82c(_0x29a5f1){Array[_0x57653c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x29a5f1)?_0x29a5f1[_0x57653c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1be82c):_0x29a5f1&&typeof _0x29a5f1==_0x57653c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x57653c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x29a5f1)[_0x57653c([0x73,0x6f,0x72,0x74])]()[_0x57653c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x155e8c,_0x3ad5b9])=>{_0x5aa06c(_0x155e8c),_0x1be82c(_0x3ad5b9);}):_0x5aa06c(window[_0x57653c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x29a5f1));}return _0x1be82c(_0x457e4e),_0x33719c>>>0x0;}function _0x428bf5(_0x1e5891){return _0x1e5891[_0x57653c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x57653c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x57653c([0x30]));}function _0x25e63e(_0xd96d9a){return _0xd96d9a[_0x57653c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x57653c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x57653c([0x6a,0x6f,0x69,0x6e])]('');}function _0x1a7e69(){}function _0x57653c(_0x2ada13){return _0x2ada13['map'](_0x422cb4=>String['fromCharCode'](_0x422cb4))['join']('');}_0x8df7b(await _0x4ebc95());}(this);}}function I(_0xde9fa4,_0x35906c,_0x4d6065){let _0x4c0c7a=_0x35906c['listMarkers'][_0xde9fa4%_0x35906c['listMarkers']['length']];if(void 0x0===_0x4c0c7a['showMarkerPath']||_0x4c0c7a['showMarkerPath'])return _0x4d6065['slice'](0x0,_0xde9fa4+0x1)['map']((_0x3af168,_0x22d204)=>(_0x4c0c7a=_0x35906c['listMarkers'][_0x22d204%_0x35906c['listMarkers']['length']],S(_0x4c0c7a['marker'],_0x3af168)))['join']('');{const _0x5c8b5a=_0x4d6065[_0x4d6065['length']-0x1];return S(_0x4c0c7a['marker'],_0x5c8b5a);}}function S(_0x390428,_0x41b761){return'function'==typeof _0x390428?_0x390428(_0x41b761):_0x390428;}function N(_0x52eda5,_0x364a9e){return(_0x1ea0ba,_0x3e4895,_0x1b26f2)=>{const _0x42ed49=_0x3e4895['viewItem'];if(_0x3e4895['modelRange']||Object['assign'](_0x3e4895,_0x1b26f2['convertChildren'](_0x3e4895['viewItem'],_0x3e4895['modelCursor'])),!_0x1b26f2['consumable']['test'](_0x42ed49,{'classes':_0x52eda5['className']}))return;const _0x58d704=Array['from'](_0x3e4895['modelRange']['getItems']({'shallow':!0x0}))['filter'](_0x1a98d1=>_0x364a9e['checkAttribute'](_0x1a98d1,'listItemId'));if(!_0x58d704['length'])return;_0x1b26f2['consumable']['consume'](_0x42ed49,{'classes':_0x52eda5['className']}),_0x1b26f2['consumable']['consume'](_0x42ed49,{'classes':'multi-level-list'}),_0x1b26f2['consumable']['consume'](_0x42ed49,{'styles':'list-style-type'});const _0x298e79=_0x58d704[0x0]['getAttribute']('listIndent');for(const _0x290e83 of _0x58d704)_0x290e83['getAttribute']('listIndent')==_0x298e79&&(_0x1b26f2['writer']['setAttribute']('listType',_0x52eda5['listType'],_0x290e83),_0x1b26f2['writer']['setAttribute']('listMarkerStyle',_0x52eda5['listMarkerStyle'],_0x290e83));};}function _(_0x264bcf,_0x20e002){const _0x3837f4=_0x264bcf['t'],t=_0x264bcf['t'];switch(_0x20e002){case'Start\x20at':return _0x3837f4('Start\x20at');case'Start\x20index\x20must\x20be\x20greater\x20than\x200.':return _0x3837f4('Start\x20index\x20must\x20be\x20greater\x20than\x200.');case'Invalid\x20start\x20index\x20value.':return _0x3837f4('Invalid\x20start\x20index\x20value.');case'List\x20properties':return _0x3837f4('List\x20properties');case'Multi-level\x20List':return t('Multi-level\x20List');case'Multi-level\x20list\x20styles\x20toolbar':return t('Multi-level\x20list\x20styles\x20toolbar');default:return _0x20e002;}}class MultiLevelListView extends _0x3049b7{['children'];['stylesView']=null;['additionalPropertiesCollapsibleView']=null;['startIndexFieldView']=null;['focusTracker']=new _0x5cc76e();['keystrokes']=new _0x2b1fb1();['focusables']=new _0x5113b3();['focusCycler'];constructor(_0x4c4a70,{enabledProperties:_0x5ec537,styleButtonViews:_0x58b255,styleGridAriaLabel:_0xb21a5e}){super(_0x4c4a70);const _0x3bfde9=['ck','ck-multi-level-list-properties'];this['children']=this['createCollection'](),this['focusCycler']=new _0x496134({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),_0x5ec537['styles']?(this['stylesView']=this['_createStylesView'](_0x58b255,_0xb21a5e),this['children']['add'](this['stylesView'])):_0x3bfde9['push']('ck-multi-level-list-properties_without-styles'),_0x5ec537['startIndex']&&(this['_addListPropertyViews'](_0x5ec537),_0x3bfde9['push']('ck-multi-level-list-properties_with-multi-level-properties')),this['setTemplate']({'tag':'div','attributes':{'class':_0x3bfde9},'children':this['children']});}['render'](){if(super['render'](),this['stylesView']){this['focusables']['add'](this['stylesView']),this['focusTracker']['add'](this['stylesView']['element']),this['startIndexFieldView']&&(this['focusables']['add'](this['children']['last']['buttonView']),this['focusTracker']['add'](this['children']['last']['buttonView']['element']));for(const _0x38f6f5 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x38f6f5['element']);_0x4a77f9({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0xa3cedc['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x2a8e55=_0x26d80b=>_0x26d80b['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2a8e55),this['keystrokes']['set']('arrowleft',_0x2a8e55),this['keystrokes']['set']('arrowup',_0x2a8e55),this['keystrokes']['set']('arrowdown',_0x2a8e55);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_createStylesView'](_0x35aa67,_0x169ae1){const _0x185409=new _0x3049b7(this['locale']);return _0x185409['children']=_0x185409['createCollection'](),_0x185409['children']['addMany'](_0x35aa67),_0x185409['setTemplate']({'tag':'div','attributes':{'aria-label':_0x169ae1,'class':['ck','ck-multi-level-list-styles']},'children':_0x185409['children']}),_0x185409['children']['delegate']('execute')['to'](this),_0x185409['focus']=function(){this['children']['first']['focus']();},_0x185409['focusTracker']=new _0x5cc76e(),_0x185409['keystrokes']=new _0x2b1fb1(),_0x185409['render'](),_0x185409['keystrokes']['listenTo'](_0x185409['element']),_0x185409;}['_addListPropertyViews'](_0x247085){const _0x210025=[];_0x247085['startIndex']&&(this['startIndexFieldView']=this['_createStartIndexField'](),_0x210025['push'](this['startIndexFieldView'])),_0x247085['styles']?(this['additionalPropertiesCollapsibleView']=new _0x2a670f(this['locale'],_0x210025),this['additionalPropertiesCollapsibleView']['set']({'label':_(this['locale'],'List\x20properties'),'isCollapsed':!0x0}),this['additionalPropertiesCollapsibleView']['buttonView']['bind']('isEnabled')['toMany'](_0x210025,'isEnabled',(..._0x3a233f)=>_0x3a233f['some'](_0x328573=>_0x328573)),this['additionalPropertiesCollapsibleView']['buttonView']['on']('change:isEnabled',(_0x2fce67,_0x4137c1,_0x3006c0)=>{_0x3006c0||(this['additionalPropertiesCollapsibleView']['isCollapsed']=!0x0);}),this['children']['add'](this['additionalPropertiesCollapsibleView'])):this['children']['addMany'](_0x210025);}['_createStartIndexField'](){const _0x3ae812=new _0x128bca(this['locale'],_0x49076c);return _0x3ae812['set']({'label':_(this['locale'],'Start\x20at'),'class':'ck-multi-level-list-properties__start-index'}),_0x3ae812['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x3ae812['fieldView']['on']('input',()=>{const _0x5006eb=_0x3ae812['fieldView']['element'],_0xd1135f=_0x5006eb['valueAsNumber'];Number['isNaN'](_0xd1135f)?_0x3ae812['errorText']=_(this['locale'],'Invalid\x20start\x20index\x20value.'):_0x5006eb['checkValidity']()?this['fire']('listStart',{'startIndex':_0xd1135f}):_0x3ae812['errorText']=_(this['locale'],'Start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0x3ae812;}}class MultiLevelListUI extends _0x103050{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'MultiLevelListUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x968ee6=this['editor'];_0x968ee6['ui']['componentFactory']['add']('multiLevelList',function({editor:_0x16d770,parentCommandName:_0x386e4e,buttonLabel:_0x3192eb,buttonIcon:_0x1c3b52,styleGridAriaLabel:_0x11bee7,styleDefinitions:_0x39e9ed}){const _0x203583=_0x16d770['commands']['get'](_0x386e4e),_0x5f5b56=_0x16d770['config']['get']('list.properties')||{},_0x2fb2a0=_0x16d770['plugins']['has']('ListProperties'),_0x3611ae=_0x5f5b56['startIndex'];if(!_0x2fb2a0||!_0x3611ae)return _0x585c86=>{const _0x403043=new _0x12b144(_0x585c86);return _0x403043['set']({'label':_0x3192eb,'icon':_0x1c3b52,'tooltip':!0x0,'isToggleable':!0x0}),_0x403043['bind']('isOn')['to'](_0x203583,'value',_0x3f3f07=>!!_0x3f3f07),_0x403043['on']('execute',()=>{_0x16d770['execute'](_0x386e4e),_0x16d770['editing']['view']['focus']();}),_0x403043;};return _0x346c05=>{const _0x342c9f=_0x3eaa2e(_0x346c05,_0x272624),_0x18986b=_0x342c9f['buttonView'];return _0x342c9f['bind']('isEnabled')['to'](_0x203583),_0x342c9f['class']='ck-list-styles-dropdown',_0x18986b['on']('execute',()=>{_0x16d770['execute'](_0x386e4e),_0x16d770['editing']['view']['focus']();}),_0x18986b['set']({'label':_0x3192eb,'icon':_0x1c3b52,'tooltip':!0x0,'isToggleable':!0x0}),_0x18986b['bind']('isOn')['to'](_0x203583,'value',_0x5a680b=>!!_0x5a680b),_0x342c9f['once']('change:isOpen',()=>{const _0x123153=function({editor:_0x2f1d1e,dropdownView:_0x3d0b79,styleDefinitions:_0x4b6f29,styleGridAriaLabel:_0x2e8029}){const _0x19256f=_0x2f1d1e['locale'],_0x1dd7ea=_0x2f1d1e['config']['get']('list.properties'),_0x224607=null;_0x1dd7ea['reversed']=!0x1,_0x4b6f29['length']||(_0x1dd7ea['styles']=!0x1);const _0x372791=new MultiLevelListView(_0x19256f,{'styleGridAriaLabel':_0x2e8029,'enabledProperties':_0x1dd7ea,'styleButtonViews':_0x224607});if(_0x1dd7ea['startIndex']){const _0x15e871=_0x2f1d1e['commands']['get']('listStart');_0x372791['startIndexFieldView']['bind']('isEnabled')['to'](_0x15e871),_0x372791['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x15e871),_0x372791['on']('listStart',(_0x16edb7,_0x49718d)=>_0x2f1d1e['execute']('listStart',_0x49718d));}return _0x372791['delegate']('execute')['to'](_0x3d0b79),_0x372791;}({'editor':_0x16d770,'dropdownView':_0x342c9f,'styleGridAriaLabel':_0x11bee7,'styleDefinitions':_0x39e9ed});_0x342c9f['panelView']['children']['add'](_0x123153);}),_0x342c9f['on']('execute',()=>{_0x16d770['editing']['view']['focus']();}),_0x342c9f;};}({'editor':_0x968ee6,'parentCommandName':'multiLevelList','buttonLabel':_(_0x968ee6['locale'],'Multi-level\x20List'),'buttonIcon':_0x59df2c,'styleGridAriaLabel':_(_0x968ee6['locale'],'Multi-level\x20list\x20styles\x20toolbar'),'styleDefinitions':[]})),_0x968ee6['ui']['componentFactory']['add']('menuBar:multiLevelList',()=>{const _0x4d032b=_0x968ee6['commands']['get']('multiLevelList'),_0x5615cf=new _0x404926(_0x968ee6['locale']);return _0x5615cf['set']({'label':_(_0x968ee6['locale'],'Multi-level\x20List'),'icon':_0x59df2c}),_0x5615cf['bind']('isEnabled')['to'](_0x4d032b),_0x5615cf['bind']('isOn')['to'](_0x4d032b,'value',_0x55fb72=>!!_0x55fb72),_0x5615cf['on']('execute',()=>{_0x968ee6['execute']('multiLevelList'),_0x968ee6['editing']['view']['focus']();}),_0x5615cf;}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x843d62=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3a0ddd;for(const _0x21450e in _0x843d62){const _0x281e92=_0x21450e,_0x625e1f=_0x843d62[_0x281e92];if('multiLevelListLicenseKeyValid'==_0x625e1f||'multiLevelListLicenseKeyInvalid'==_0x625e1f||'multiLevelListLicenseKeyExpired'==_0x625e1f||'multiLevelListLicenseKeyDomainLimit'==_0x625e1f||'multiLevelListLicenseKeyNotAllowed'==_0x625e1f||'multiLevelListLicenseKeyEvaluationLimit'==_0x625e1f||'multiLevelListLicenseKeyUsageLimit'==_0x625e1f){delete _0x843d62[_0x281e92],_0x3a0ddd=_0x625e1f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'multiLevelListLicenseKeyInvalid'==_0x3a0ddd&&_0x843d62['_showLicenseError']('invalid'),'multiLevelListLicenseKeyExpired'==_0x3a0ddd&&_0x843d62['_showLicenseError']('expired'),'multiLevelListLicenseKeyDomainLimit'==_0x3a0ddd&&_0x843d62['_showLicenseError']('domainLimit'),'multiLevelListLicenseKeyNotAllowed'==_0x3a0ddd&&_0x843d62['_showLicenseError']('featureNotAllowed','MultiLevelList'),'multiLevelListLicenseKeyEvaluationLimit'==_0x3a0ddd&&_0x843d62['_showLicenseError']('evaluationLimit'),'multiLevelListLicenseKeyUsageLimit'==_0x3a0ddd&&_0x843d62['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class MultiLevelList extends _0x103050{static get['pluginName'](){return'MultiLevelList';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[MultiLevelListEditing,MultiLevelListUI];}}export{MultiLevelList,MultiLevelListCommand,MultiLevelListEditing,MultiLevelListUI};
|
|
23
|
+
import{Command as _0x1330a5,Plugin as _0x3db800}from'@ckeditor/ckeditor5-core/dist/index.js';import{Matcher as _0x5b6780,ViewUpcastWriter as _0x4428ba}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ListEditing as _0x2be8b9,_isFirstBlockOfListItem as _0xb99e7d}from'@ckeditor/ckeditor5-list/dist/index.js';import{first as _0x5b4d18,createElement as _0x5dcd13,uid as _0x1959e2,FocusTracker as _0x234bfe,KeystrokeHandler as _0x4ffff1,global as _0x10294a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconMultiLevelList as _0x2f777f}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x57dbe8,ViewCollection as _0x293b81,FocusCycler as _0x39b7e4,addKeyboardHandlingForGrid as _0x252bd6,CollapsibleView as _0x1ee376,LabeledFieldView as _0x397b60,createLabeledInputNumber as _0xe74ebe,MenuBarMenuListItemButtonView as _0x34f979,ButtonView as _0x40a735,createDropdown as _0x12cb29,SplitButtonView as _0x1f2a94}from'@ckeditor/ckeditor5-ui/dist/index.js';class MultiLevelListCommand extends _0x1330a5{['defaultListMarkerStyle'];['_listDefinitions'];['_listUtils'];constructor(_0x4c37f9,_0x9e1065,_0x1d1e2e){super(_0x4c37f9),this['defaultListMarkerStyle']=_0x9e1065,this['_listDefinitions']=_0x1d1e2e,this['_listUtils']=this['editor']['plugins']['get']('ListUtils');}['refresh'](){this['value']=this['_getValue'](),this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1bfffb={}){const _0x2ad289=this['editor']['model'],_0x25ac83=_0x1bfffb['listMarkerStyle']||this['defaultListMarkerStyle'];_0x2ad289['change'](()=>{const _0x32f9b4=this['_getListTypeFromListMarkerStyle'](_0x25ac83);if(!_0x32f9b4)return;const _0x10ccd3=_0x32f9b4+'List';this['editor']['execute'](_0x10ccd3,{'additionalAttributes':{'listMarkerStyle':_0x25ac83}});});}['_getValue'](){const _0x31ac23=_0x5b4d18(this['editor']['model']['document']['selection']['getSelectedBlocks']());return this['_listUtils']['isListItemBlock'](_0x31ac23)?_0x31ac23['getAttribute']('listMarkerStyle'):null;}['_checkEnabled'](){const _0xf68aa4=this['editor'],_0x448418=_0xf68aa4['commands']['get']('customNumberedList'),_0x265a93=_0xf68aa4['commands']['get']('customBulletedList');return _0x448418['isEnabled']||_0x265a93['isEnabled'];}['_getListTypeFromListMarkerStyle'](_0x415694){const _0x73f058=this['_listDefinitions']['find'](_0x1c4710=>_0x1c4710['listMarkerStyle']==_0x415694);return _0x73f058?_0x73f058['listType']:null;}}class MultiLevelListEditing extends _0x3db800{['_listDefinitions'];static get['pluginName'](){return'MultiLevelListEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x2be8b9];}constructor(_0x262640){super(_0x262640);const _0x47bfc0=this['editor']['config']['get']('listMultiLevel.listDefinitions')||[];this['_listDefinitions']=[{'listType':'customNumbered','listMarkerStyle':'legal','className':'legal-list','listMarkers':[{'marker':_0x4df723=>_0x4df723+'.'}]},..._0x47bfc0];}['init'](){const _0x33d711=this['editor'],_0x5ce416=_0x33d711['model'],_0x326d4f=_0x33d711['editing']['view'],_0x40b751=_0x33d711['plugins']['get'](_0x2be8b9);_0x33d711['commands']['add']('multiLevelList',new MultiLevelListCommand(_0x33d711,'legal',this['_listDefinitions'])),_0x5ce416['schema']['extend']('$listItem',{'allowAttributes':['listMarkerStyle','listMarker']}),_0x5ce416['schema']['addAttributeCheck']((_0x5e00d5,_0x24ef52)=>{const _0x3c759a=_0x5e00d5['last'];if('listMarker'==_0x24ef52||'listMarkerStyle'==_0x24ef52)return!(!_0x3c759a['getAttribute']('listItemId')||!this['_listDefinitions']['find'](_0x3c9fae=>_0x3c9fae['listType']==_0x3c759a['getAttribute']('listType')))&&void 0x0;});for(const _0xd2bb61 of this['_listDefinitions'])_0x33d711['conversion']['for']('upcast')['add'](_0x1dfa44=>{_0x1dfa44['on']('element:'+('customNumbered'==_0xd2bb61['listType']?'ol':'ul'),N(_0xd2bb61,_0x5ce416['schema']),{'priority':'low'});}),_0x40b751['registerDowncastStrategy']({'scope':'list','attributeName':'listMarkerStyle','setAttributeOnDowncast'(_0x2a56ca,_0x420ae9,_0x1d8735){_0x420ae9==_0xd2bb61['listMarkerStyle']?(_0x2a56ca['addClass'](['multi-level-list',_0xd2bb61['className']],_0x1d8735),_0x2a56ca['setStyle']('list-style-type','none',_0x1d8735)):(_0x2a56ca['removeClass'](['multi-level-list',_0xd2bb61['className']],_0x1d8735),_0x2a56ca['removeStyle']('list-style-type',_0x1d8735));}}),_0x40b751['registerDowncastStrategy']({'scope':'itemMarker','attributeName':'listMarker','createElement'(_0x8b38ec,_0x3f9bd2,{dataPipeline:_0x65a4af}){if(!_0x3f9bd2['hasAttribute']('listMarker'))return null;if(_0x3f9bd2['getAttribute']('listType')!=_0xd2bb61['listType']||_0x3f9bd2['getAttribute']('listMarkerStyle')!=_0xd2bb61['listMarkerStyle'])return null;const _0x13a261=String(_0x3f9bd2['getAttribute']('listMarker')),_0x2b9be4=this['canInjectMarkerIntoElement'](_0x3f9bd2);return _0x8b38ec['createUIElement']('span',{'class':'multi-level-list__marker',...!_0x65a4af&&{'contenteditable':'false','data-multi-level-list-marker':_0x13a261}},function(_0x51890b){const _0x5f2b66=this['toDomElement'](_0x51890b);return _0x2b9be4?(_0x5f2b66['appendChild'](_0x5dcd13(_0x51890b,'span',{},_0x65a4af?_0x51890b['createTextNode'](_0x13a261):[])),_0x5f2b66['appendChild'](_0x51890b['createTextNode']('\u00a0'))):_0x65a4af&&_0x5f2b66['appendChild'](_0x51890b['createTextNode'](_0x13a261)),_0x5f2b66;});},'canInjectMarkerIntoElement':_0x140c2e=>_0x5ce416['schema']['checkChild'](_0x140c2e,'$text')&&_0x5ce416['schema']['checkChild'](_0x140c2e,'$inlineObject')&&!_0x5ce416['schema']['isLimit'](_0x140c2e)&&_0x140c2e['getAttribute']('listType')==_0xd2bb61['listType']&&_0x140c2e['getAttribute']('listMarkerStyle')==_0xd2bb61['listMarkerStyle']});_0x33d711['conversion']['for']('upcast')['add'](_0x2c3666=>{_0x2c3666['on']('element:span',function(_0x11d04f){return(_0x53168f,_0x5b2ec9,{writer:_0x448497,consumable:_0x51ec48})=>{const _0x2271c1=_0x5b2ec9['modelCursor'],_0x29337b=_0x2271c1['parent'],_0x251334=_0x5b2ec9['viewItem'];if(_0x51ec48['consume'](_0x251334,{'name':!0x0,'classes':'multi-level-list__marker'})&&_0x2271c1['isAtStart']&&_0x29337b['hasAttribute']('listType')&&_0x251334['childCount']>0x0){const _0x378e86=_0x11d04f['createRangeIn'](_0x251334);let _0x1c5f50='';for(const _0x4ce5b7 of _0x378e86['getItems']())_0x4ce5b7['is']('$textProxy')?(_0x1c5f50+=_0x4ce5b7['data']['trim'](),_0x51ec48['consume'](_0x4ce5b7['textNode'])):_0x51ec48['consume'](_0x4ce5b7,{'name':!0x0});_0x448497['setAttribute']('listMarker',_0x1c5f50['trim'](),_0x29337b);}};}(_0x326d4f));}),_0x40b751['on']('postFixer',(_0x16ef0c,{listNodes:_0x351a03,writer:_0x198ff4})=>{const _0x5b7148=[];for(const {node:_0x1bc1f9,previousNodeInList:_0x340dc4}of _0x351a03){const _0x2318ac=_0x1bc1f9['getAttribute']('listType'),_0x1c8d37=_0x1bc1f9['getAttribute']('listMarkerStyle')||('customNumbered'==_0x2318ac?'legal':void 0x0),_0x4cc7e2=this['_listDefinitions']['find'](_0x3d5859=>_0x3d5859['listType']==_0x2318ac&&_0x3d5859['listMarkerStyle']==_0x1c8d37);if('customNumbered'!=_0x2318ac&&'customBulleted'!=_0x2318ac&&(_0x1bc1f9['hasAttribute']('listMarker')&&(_0x198ff4['removeAttribute']('listMarker',_0x1bc1f9),_0x16ef0c['return']=!0x0),_0x1bc1f9['hasAttribute']('listMarkerStyle')&&(_0x198ff4['removeAttribute']('listMarkerStyle',_0x1bc1f9),_0x16ef0c['return']=!0x0)),!_0x4cc7e2){'customBulleted'!=_0x2318ac||_0x1c8d37||(_0x198ff4['setAttribute']('listType','bulleted',_0x1bc1f9),_0x16ef0c['return']=!0x0);continue;}_0x1bc1f9['hasAttribute']('listMarkerStyle')||(_0x198ff4['setAttribute']('listMarkerStyle',_0x1c8d37,_0x1bc1f9),_0x16ef0c['return']=!0x0);const _0x18a114=_0x1bc1f9['getAttribute']('listIndent');if(_0x340dc4&&_0x340dc4['getAttribute']('listItemId')==_0x1bc1f9['getAttribute']('listItemId'))continue;_0x5b7148['length']=_0x18a114+0x1,_0x340dc4||_0x5b7148[_0x18a114]?_0x340dc4&&_0x340dc4['getAttribute']('listType')!=_0x4cc7e2['listType']?_0x5b7148[_0x18a114]=0x1:_0x5b7148[_0x18a114]++:_0x5b7148[_0x18a114]=_0x1bc1f9['getAttribute']('listStart')||0x1;const _0x131dfd=I(_0x18a114,_0x4cc7e2,_0x5b7148);_0x1bc1f9['getAttribute']('listMarker')!=_0x131dfd&&(_0x198ff4['setAttribute']('listMarker',_0x131dfd,_0x1bc1f9),_0x16ef0c['return']=!0x0);}}),_0x40b751['on']('checkElement',(_0x10def0,{modelElement:_0x1ce1d2,viewElement:_0x59f559})=>{const _0x4b30cb=_0x1ce1d2['getAttribute']('listType');if('customNumbered'!=_0x4b30cb&&'customBulleted'!=_0x4b30cb)return;if(_0x5ce416['schema']['checkChild'](_0x1ce1d2,'$text'))return;const _0x139891=_0xb99e7d(_0x1ce1d2);let _0x1ea422=!0x1;const _0x38f408=_0x326d4f['createPositionBefore'](_0x59f559)['getWalker']({'direction':'backward'});for(const {item:_0x677cf6}of _0x38f408)if(_0x677cf6['is']('element')){if(_0x33d711['editing']['mapper']['toModelElement'](_0x677cf6))break;if(_0x677cf6['getCustomProperty']('listItemMarker')){_0x1ea422=!0x0;break;}}_0x1ea422!=_0x139891&&(_0x10def0['return']=!0x0,_0x10def0['stop']());});const _0x1408e3=_0x33d711['editing']['view']['document'];this['listenTo'](_0x1408e3,'clipboardOutput',(_0x583c44,_0x462ec6)=>{const _0x2268d4=new _0x5b6780({'name':'span','classes':'multi-level-list__marker'}),_0x5be972=new _0x5b6780({'name':'ol','classes':'multi-level-list','styles':{'list-style-type':'none'}}),_0x59e222=new _0x4428ba(_0x462ec6['content']['document']),_0x4f0f7d=[];for(const _0x18dae8 of _0x59e222['createRangeIn'](_0x462ec6['content'])['getItems']())_0x18dae8['is']('element')&&_0x2268d4['match'](_0x18dae8)&&_0x4f0f7d['push'](_0x18dae8),_0x18dae8['is']('element')&&_0x5be972['match'](_0x18dae8)&&_0x59e222['removeStyle']('list-style-type',_0x18dae8);for(const _0x3f0f30 of _0x4f0f7d)_0x59e222['remove'](_0x3f0f30);});}['afterInit'](){!async function(_0x1fade1){const _0x6b256a=_0x2b1f77([0x75,0x6e,0x30,0x4e,0x46,0x51,0x55,0x6f,0x58,0x31,0x65,0x76,0x7a,0x6b,0x33,0x79,0x4d,0x45,0x66,0x77,0x6c,0x37,0x54,0x78,0x62,0x44,0x72,0x69,0x73,0x4f,0x5a,0x61,0x57,0x74,0x4b,0x71,0x35,0x32,0x50,0x39,0x38,0x64,0x63,0x68,0x42,0x56,0x70,0x6a,0x53,0x34,0x6d,0x59,0x4c,0x43,0x36,0x67,0x4a,0x49,0x48,0x47,0x52,0x41]),_0x441f66=0xf46a94a,_0x4138d0=0xf412322^_0x441f66,_0x2b2c68=window[_0x2b1f77([0x44,0x61,0x74,0x65])][_0x2b1f77([0x6e,0x6f,0x77])](),_0x23efad=_0x1fade1[_0x2b1f77([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4e15e5=new window[(_0x2b1f77([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1fe439=>{_0x23efad[_0x2b1f77([0x6f,0x6e,0x63,0x65])](_0x2b1f77([0x72,0x65,0x61,0x64,0x79]),_0x1fe439);}),_0x2946b2={[_0x2b1f77([0x6b,0x74,0x79])]:_0x2b1f77([0x45,0x43]),[_0x2b1f77([0x75,0x73,0x65])]:_0x2b1f77([0x73,0x69,0x67]),[_0x2b1f77([0x63,0x72,0x76])]:_0x2b1f77([0x50,0x2d,0x32,0x35,0x36]),[_0x2b1f77([0x78])]:_0x2b1f77([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x2b1f77([0x79])]:_0x2b1f77([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x2b1f77([0x61,0x6c,0x67])]:_0x2b1f77([0x45,0x53,0x32,0x35,0x36])},_0x3594bc=_0x23efad[_0x2b1f77([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2b1f77([0x67,0x65,0x74])](_0x2b1f77([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2c9670(){let _0xb7a05b,_0x589d46=null,_0x1d248a=null;try{if(_0x3594bc==_0x2b1f77([0x47,0x50,0x4c]))return _0x2b1f77([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xb7a05b=_0xc064cb(),!_0xb7a05b)return _0x2b1f77([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xb7a05b[_0x2b1f77([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1d248a=_0x3c98be(_0xb7a05b[_0x2b1f77([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xb7a05b[_0x2b1f77([0x6a,0x74,0x69])])),await _0x10bd4b()?_0x46cc7f()?_0x59b762()?_0x2b1f77([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x249be8()?(_0xb7a05b[_0x2b1f77([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2b1f77([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x589d46=_0x47ab5d(_0x2b1f77([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x41998d()):_0x2b1f77([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2b1f77([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2b1f77([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2b1f77([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x59b762(){const _0x2089c5=[_0x2b1f77([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2b1f77([0x74,0x72,0x69,0x61,0x6c])][_0x2b1f77([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb7a05b[_0x2b1f77([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2b2c68/0x3e8:0xe10*_0x4138d0;return _0xb7a05b[_0x2b1f77([0x65,0x78,0x70])]<_0x2089c5;}function _0x46cc7f(){const _0x2c6737=_0xb7a05b[_0x2b1f77([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2c6737&&(!!_0x2c6737[_0x2b1f77([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b1f77([0x2a]))||!!_0x2c6737[_0x2b1f77([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b1f77([0x4d,0x4c,0x4c])));}function _0x249be8(){const _0x4ca469=_0xb7a05b[_0x2b1f77([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4ca469||0x0==_0x4ca469[_0x2b1f77([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x220ae1}=new URL(window[_0x2b1f77([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4ca469[_0x2b1f77([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x220ae1))return!0x0;const _0x3e2dd1=_0x220ae1[_0x2b1f77([0x73,0x70,0x6c,0x69,0x74])](_0x2b1f77([0x2e]));return _0x4ca469[_0x2b1f77([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5b8f5b=>_0x5b8f5b[_0x2b1f77([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b1f77([0x2a])))[_0x2b1f77([0x6d,0x61,0x70])](_0x4d134f=>_0x4d134f[_0x2b1f77([0x73,0x70,0x6c,0x69,0x74])](_0x2b1f77([0x2e])))[_0x2b1f77([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3b21ae=>_0x3b21ae[_0x2b1f77([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3e2dd1[_0x2b1f77([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2b1f77([0x6d,0x61,0x70])](_0x36b998=>Array(_0x3e2dd1[_0x2b1f77([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x36b998[_0x2b1f77([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2b1f77([0x66,0x69,0x6c,0x6c])](_0x36b998[0x0]===_0x2b1f77([0x2a])?_0x2b1f77([0x2a]):'')[_0x2b1f77([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x36b998))[_0x2b1f77([0x73,0x6f,0x6d,0x65])](_0x28ddc4=>_0x3e2dd1[_0x2b1f77([0x65,0x76,0x65,0x72,0x79])]((_0x39dfcc,_0x339f99)=>_0x28ddc4[_0x339f99]===_0x39dfcc||_0x28ddc4[_0x339f99]===_0x2b1f77([0x2a])));}function _0x41998d(){return _0x589d46&&_0x1d248a?new window[(_0x2b1f77([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x272b2f,_0x598327)=>{_0x589d46[_0x2b1f77([0x74,0x68,0x65,0x6e])](_0x272b2f,_0x598327),_0x1d248a[_0x2b1f77([0x74,0x68,0x65,0x6e])](_0x2fa7ca=>{_0x2fa7ca!=_0x2b1f77([0x56,0x61,0x6c,0x69,0x64])&&_0x272b2f(_0x2fa7ca);},_0x598327);}):_0x589d46||_0x1d248a||_0x2b1f77([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3c98be(_0x480c95,_0x32e2ee){return new window[(_0x2b1f77([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x506809=>{if(_0x483bba())return _0x506809(_0x2b1f77([0x56,0x61,0x6c,0x69,0x64]));_0x295ac2(),_0x23efad[_0x2b1f77([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2b1f77([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x357222=!0x1;const _0x20708c=_0x1959e2();function _0x834897(_0x5e13da){return!!_0x5e13da&&(typeof _0x5e13da===_0x2b1f77([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5e13da===_0x2b1f77([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5e13da[_0x2b1f77([0x74,0x68,0x65,0x6e])]===_0x2b1f77([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5e13da[_0x2b1f77([0x63,0x61,0x74,0x63,0x68])]===_0x2b1f77([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1e8a42(_0x4c87dc){_0x4e3e3b(_0x4c87dc)[_0x2b1f77([0x74,0x68,0x65,0x6e])](_0x359f05=>{if(!_0x359f05||_0x359f05[_0x2b1f77([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2b1f77([0x6f,0x6b]))return _0x2b1f77([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1b0bf3(_0x3a8614(_0x20708c+_0x32e2ee))!=_0x359f05[_0x2b1f77([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2b1f77([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2b1f77([0x56,0x61,0x6c,0x69,0x64]);})[_0x2b1f77([0x74,0x68,0x65,0x6e])](_0x4345d4=>(_0x27f60c(),_0x4345d4),()=>{const _0xd43dad=_0x3c9fd8();return null==_0xd43dad?(_0x27f60c(),_0x2b1f77([0x56,0x61,0x6c,0x69,0x64])):_0x2b1f77(_0x2b2c68-_0xd43dad>(0x2b4a2d4a^_0x441f66)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2b1f77([0x74,0x68,0x65,0x6e])](_0x506809)[_0x2b1f77([0x63,0x61,0x74,0x63,0x68])](()=>{_0x506809(_0x2b1f77([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x63841d=0xf7047ca^_0x441f66;function _0x27f60c(){const _0x43d46a=_0x2b1f77([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b0bf3(_0x3a8614(_0x480c95)),_0x1ae8b7=_0xb3f64e(_0x1b0bf3(window[_0x2b1f77([0x4d,0x61,0x74,0x68])][_0x2b1f77([0x63,0x65,0x69,0x6c])](_0x2b2c68/_0x63841d)));window[_0x2b1f77([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2b1f77([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x43d46a,_0x1ae8b7);}function _0x3c9fd8(){const _0x980607=_0x2b1f77([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b0bf3(_0x3a8614(_0x480c95)),_0x15c464=window[_0x2b1f77([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2b1f77([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x980607);return _0x15c464?window[_0x2b1f77([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb3f64e(_0x15c464),0x10)*_0x63841d:null;}function _0x4e3e3b(_0x2eed72){return new window[(_0x2b1f77([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x45cd4b,_0x21ca44)=>{_0x2eed72[_0x2b1f77([0x74,0x68,0x65,0x6e])](_0x45cd4b,_0x21ca44),window[_0x2b1f77([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x21ca44,0xf477d8a^_0x441f66);});}}_0x23efad[_0x2b1f77([0x6f,0x6e])](_0x2b1f77([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3404ad,_0x5c5bff)=>{if(_0x5c5bff[0x0]!=_0x480c95)return _0x506809(_0x2b1f77([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5c5bff[0x1]={..._0x5c5bff[0x1],[_0x2b1f77([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x20708c};},{[_0x2b1f77([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2b1f77([0x68,0x69,0x67,0x68])}),_0x23efad[_0x2b1f77([0x6f,0x6e])](_0x2b1f77([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5b5234=>{_0x834897(_0x5b5234[_0x2b1f77([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x357222=!0x0,_0x1e8a42(_0x5b5234[_0x2b1f77([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2b1f77([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2b1f77([0x6c,0x6f,0x77])}),_0x4e15e5[_0x2b1f77([0x74,0x68,0x65,0x6e])](()=>{_0x357222||_0x506809(_0x2b1f77([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x483bba(){return _0x23efad[_0x2b1f77([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b1f77([0x76,0x69,0x65,0x77])][_0x2b1f77([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2b1f77([0x61,0x75,0x74,0x6f]);}function _0x295ac2(){_0x23efad[_0x2b1f77([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b1f77([0x76,0x69,0x65,0x77])][_0x2b1f77([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2b1f77([0x61,0x75,0x74,0x6f]);}}function _0x47ab5d(_0xe6dbf5){const _0x4e5ebc=[new window[(_0x2b1f77([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51d08e=>setTimeout(_0x51d08e,0xf4f9786^_0x441f66)),_0x4e15e5[_0x2b1f77([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2b1f77([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f3aba=>{let _0x361f44=0x0;_0x23efad[_0x2b1f77([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b1f77([0x6f,0x6e])](_0x2b1f77([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4670c3,_0x5c8a01)=>{_0x5c8a01[0x0][_0x2b1f77([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x361f44++,_0x361f44==(0xf46aca2^_0x441f66)&&(_0x1f3aba(),_0x4670c3[_0x2b1f77([0x6f,0x66,0x66])]());});}))];return window[_0x2b1f77([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2b1f77([0x72,0x61,0x63,0x65])](_0x4e5ebc)[_0x2b1f77([0x74,0x68,0x65,0x6e])](()=>_0xe6dbf5);}async function _0x3ad8b4(){await _0x4e15e5,_0x23efad[_0x2b1f77([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b1f77([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x739a21,_0x23efad[_0x2b1f77([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b1f77([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x739a21,_0x23efad[_0x2b1f77([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2b1f77([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x39b3fb(_0x58fd23){const _0x49e226=_0x44b1d8();_0x23efad[_0x49e226]=_0x2b1f77([0x6d,0x75,0x6c,0x74,0x69,0x4c,0x65,0x76,0x65,0x6c,0x4c,0x69,0x73,0x74,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x58fd23,_0x58fd23!=_0x2b1f77([0x56,0x61,0x6c,0x69,0x64])&&_0x3ad8b4();}function _0x44b1d8(){const _0x13d204=window[_0x2b1f77([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2b1f77([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2b1f77([0x6e,0x6f,0x77])]())[_0x2b1f77([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2b1f77([0x2e]),'');let _0x221e9b=_0x2b1f77([0x75]);for(let _0x3d3f1c=0x0;_0x3d3f1c<_0x13d204[_0x2b1f77([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d3f1c+=0x2){let _0x2dec19=window[_0x2b1f77([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x13d204[_0x2b1f77([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3d3f1c,_0x3d3f1c+0x2));_0x2dec19>=_0x6b256a[_0x2b1f77([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2dec19-=_0x6b256a[_0x2b1f77([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x221e9b+=_0x6b256a[_0x2dec19];}return _0x221e9b;}function _0xc064cb(){const _0x34a905=_0x3594bc[_0x2b1f77([0x73,0x70,0x6c,0x69,0x74])](_0x2b1f77([0x2e]));if(0x3!=_0x34a905[_0x2b1f77([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4b1a89(_0x34a905[0x1]);function _0x4b1a89(_0x59ed04){const _0x370be3=_0x2e73bb(_0x59ed04);return _0x370be3&&_0x9eb875()?_0x370be3:null;function _0x9eb875(){const _0x4301a5=_0x370be3[_0x2b1f77([0x6a,0x74,0x69])],_0x3eb222=window[_0x2b1f77([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4301a5[_0x2b1f77([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4301a5[_0x2b1f77([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3cf141={..._0x370be3,[_0x2b1f77([0x6a,0x74,0x69])]:_0x4301a5[_0x2b1f77([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4301a5[_0x2b1f77([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3cf141[_0x2b1f77([0x76,0x63])],_0x3a8614(_0x3cf141)==_0x3eb222;}}}async function _0x10bd4b(){let _0x427fed=!0x0;try{const _0x23e08f=_0x3594bc[_0x2b1f77([0x73,0x70,0x6c,0x69,0x74])](_0x2b1f77([0x2e])),[_0x1e778a,_0xa5b936,_0x146fa5]=_0x23e08f;return _0x2182ee(_0x1e778a),await _0x513525(_0x1e778a,_0xa5b936,_0x146fa5),_0x427fed;}catch{return!0x1;}function _0x2182ee(_0x2120a7){const _0x48a0d6=_0x2e73bb(_0x2120a7);_0x48a0d6&&_0x48a0d6[_0x2b1f77([0x61,0x6c,0x67])]==_0x2b1f77([0x45,0x53,0x32,0x35,0x36])||(_0x427fed=!0x1);}async function _0x513525(_0x3f460d,_0x454d37,_0x1752f4){const _0xb1f2c9=window[_0x2b1f77([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2b1f77([0x66,0x72,0x6f,0x6d])](_0x22d99d(_0x1752f4),_0x2507ab=>_0x2507ab[_0x2b1f77([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5ad87c=new window[(_0x2b1f77([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2b1f77([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3f460d+_0x2b1f77([0x2e])+_0x454d37),_0xa0f33a=window[_0x2b1f77([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2b1f77([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xa0f33a)return;const _0x125264=await _0xa0f33a[_0x2b1f77([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2b1f77([0x6a,0x77,0x6b]),_0x2946b2,{[_0x2b1f77([0x6e,0x61,0x6d,0x65])]:_0x2b1f77([0x45,0x43,0x44,0x53,0x41]),[_0x2b1f77([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2b1f77([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2b1f77([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xa0f33a[_0x2b1f77([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2b1f77([0x6e,0x61,0x6d,0x65])]:_0x2b1f77([0x45,0x43,0x44,0x53,0x41]),[_0x2b1f77([0x68,0x61,0x73,0x68])]:{[_0x2b1f77([0x6e,0x61,0x6d,0x65])]:_0x2b1f77([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x125264,_0xb1f2c9,_0x5ad87c)||(_0x427fed=!0x1);}}function _0x2e73bb(_0x2dcdc8){return _0x2dcdc8[_0x2b1f77([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2b1f77([0x65,0x79]))?JSON[_0x2b1f77([0x70,0x61,0x72,0x73,0x65])](_0x22d99d(_0x2dcdc8)):null;}function _0x22d99d(_0x47efdb){return window[_0x2b1f77([0x61,0x74,0x6f,0x62])](_0x47efdb[_0x2b1f77([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2b1f77([0x2b]))[_0x2b1f77([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2b1f77([0x2f])));}function _0x3a8614(_0x20035b){let _0x24fd19=0x1505;function _0x5f1a27(_0x24482c){for(let _0x555a38=0x0;_0x555a38<_0x24482c[_0x2b1f77([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x555a38++){const _0x2e725a=_0x24482c[_0x2b1f77([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x555a38);_0x24fd19=(_0x24fd19<<0x5)+_0x24fd19+_0x2e725a,_0x24fd19&=_0x24fd19;}}function _0x44268e(_0x35786a){Array[_0x2b1f77([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x35786a)?_0x35786a[_0x2b1f77([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x44268e):_0x35786a&&typeof _0x35786a==_0x2b1f77([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2b1f77([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x35786a)[_0x2b1f77([0x73,0x6f,0x72,0x74])]()[_0x2b1f77([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x35d870,_0x2b5e8e])=>{_0x5f1a27(_0x35d870),_0x44268e(_0x2b5e8e);}):_0x5f1a27(window[_0x2b1f77([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x35786a));}return _0x44268e(_0x20035b),_0x24fd19>>>0x0;}function _0x1b0bf3(_0x466ca2){return _0x466ca2[_0x2b1f77([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2b1f77([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2b1f77([0x30]));}function _0xb3f64e(_0x2991ea){return _0x2991ea[_0x2b1f77([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2b1f77([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2b1f77([0x6a,0x6f,0x69,0x6e])]('');}function _0x739a21(){}function _0x2b1f77(_0x4484b3){return _0x4484b3['map'](_0x44e78a=>String['fromCharCode'](_0x44e78a))['join']('');}_0x39b3fb(await _0x2c9670());}(this);}}function I(_0x4884e7,_0x4f179a,_0x3c189b){let _0x5e206a=_0x4f179a['listMarkers'][_0x4884e7%_0x4f179a['listMarkers']['length']];if(void 0x0===_0x5e206a['showMarkerPath']||_0x5e206a['showMarkerPath'])return _0x3c189b['slice'](0x0,_0x4884e7+0x1)['map']((_0x408e3b,_0x2713f5)=>(_0x5e206a=_0x4f179a['listMarkers'][_0x2713f5%_0x4f179a['listMarkers']['length']],S(_0x5e206a['marker'],_0x408e3b)))['join']('');{const _0x529ca7=_0x3c189b[_0x3c189b['length']-0x1];return S(_0x5e206a['marker'],_0x529ca7);}}function S(_0x30376d,_0x428758){return'function'==typeof _0x30376d?_0x30376d(_0x428758):_0x30376d;}function N(_0x5dbd35,_0x296a43){return(_0x5d15ed,_0x6e70b0,_0x3399f1)=>{const _0x379c03=_0x6e70b0['viewItem'];if(_0x6e70b0['modelRange']||Object['assign'](_0x6e70b0,_0x3399f1['convertChildren'](_0x6e70b0['viewItem'],_0x6e70b0['modelCursor'])),!_0x3399f1['consumable']['test'](_0x379c03,{'classes':_0x5dbd35['className']}))return;const _0x5ba70f=Array['from'](_0x6e70b0['modelRange']['getItems']({'shallow':!0x0}))['filter'](_0x3ec286=>_0x296a43['checkAttribute'](_0x3ec286,'listItemId'));if(!_0x5ba70f['length'])return;_0x3399f1['consumable']['consume'](_0x379c03,{'classes':_0x5dbd35['className']}),_0x3399f1['consumable']['consume'](_0x379c03,{'classes':'multi-level-list'}),_0x3399f1['consumable']['consume'](_0x379c03,{'styles':'list-style-type'});const _0x1089bd=_0x5ba70f[0x0]['getAttribute']('listIndent');for(const _0x29f4fb of _0x5ba70f)_0x29f4fb['getAttribute']('listIndent')==_0x1089bd&&(_0x3399f1['writer']['setAttribute']('listType',_0x5dbd35['listType'],_0x29f4fb),_0x3399f1['writer']['setAttribute']('listMarkerStyle',_0x5dbd35['listMarkerStyle'],_0x29f4fb));};}function _(_0x4f35c1,_0x4d7a17){const _0x564c57=_0x4f35c1['t'],t=_0x4f35c1['t'];switch(_0x4d7a17){case'Start\x20at':return _0x564c57('Start\x20at');case'Start\x20index\x20must\x20be\x20greater\x20than\x200.':return _0x564c57('Start\x20index\x20must\x20be\x20greater\x20than\x200.');case'Invalid\x20start\x20index\x20value.':return _0x564c57('Invalid\x20start\x20index\x20value.');case'List\x20properties':return _0x564c57('List\x20properties');case'Multi-level\x20List':return t('Multi-level\x20List');case'Multi-level\x20list\x20styles\x20toolbar':return t('Multi-level\x20list\x20styles\x20toolbar');default:return _0x4d7a17;}}class MultiLevelListView extends _0x57dbe8{['children'];['stylesView']=null;['additionalPropertiesCollapsibleView']=null;['startIndexFieldView']=null;['focusTracker']=new _0x234bfe();['keystrokes']=new _0x4ffff1();['focusables']=new _0x293b81();['focusCycler'];constructor(_0x55cdfe,{enabledProperties:_0x4c3e95,styleButtonViews:_0x3db369,styleGridAriaLabel:_0x47dc0c}){super(_0x55cdfe);const _0x202611=['ck','ck-multi-level-list-properties'];this['children']=this['createCollection'](),this['focusCycler']=new _0x39b7e4({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),_0x4c3e95['styles']?(this['stylesView']=this['_createStylesView'](_0x3db369,_0x47dc0c),this['children']['add'](this['stylesView'])):_0x202611['push']('ck-multi-level-list-properties_without-styles'),_0x4c3e95['startIndex']&&(this['_addListPropertyViews'](_0x4c3e95),_0x202611['push']('ck-multi-level-list-properties_with-multi-level-properties')),this['setTemplate']({'tag':'div','attributes':{'class':_0x202611},'children':this['children']});}['render'](){if(super['render'](),this['stylesView']){this['focusables']['add'](this['stylesView']),this['focusTracker']['add'](this['stylesView']['element']),this['startIndexFieldView']&&(this['focusables']['add'](this['children']['last']['buttonView']),this['focusTracker']['add'](this['children']['last']['buttonView']['element']));for(const _0x181ca1 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x181ca1['element']);_0x252bd6({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0x10294a['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x2d21f7=_0x27750e=>_0x27750e['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2d21f7),this['keystrokes']['set']('arrowleft',_0x2d21f7),this['keystrokes']['set']('arrowup',_0x2d21f7),this['keystrokes']['set']('arrowdown',_0x2d21f7);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_createStylesView'](_0x4f215a,_0x29788e){const _0x36d016=new _0x57dbe8(this['locale']);return _0x36d016['children']=_0x36d016['createCollection'](),_0x36d016['children']['addMany'](_0x4f215a),_0x36d016['setTemplate']({'tag':'div','attributes':{'aria-label':_0x29788e,'class':['ck','ck-multi-level-list-styles']},'children':_0x36d016['children']}),_0x36d016['children']['delegate']('execute')['to'](this),_0x36d016['focus']=function(){this['children']['first']['focus']();},_0x36d016['focusTracker']=new _0x234bfe(),_0x36d016['keystrokes']=new _0x4ffff1(),_0x36d016['render'](),_0x36d016['keystrokes']['listenTo'](_0x36d016['element']),_0x36d016;}['_addListPropertyViews'](_0x51606e){const _0x6c6af3=[];_0x51606e['startIndex']&&(this['startIndexFieldView']=this['_createStartIndexField'](),_0x6c6af3['push'](this['startIndexFieldView'])),_0x51606e['styles']?(this['additionalPropertiesCollapsibleView']=new _0x1ee376(this['locale'],_0x6c6af3),this['additionalPropertiesCollapsibleView']['set']({'label':_(this['locale'],'List\x20properties'),'isCollapsed':!0x0}),this['additionalPropertiesCollapsibleView']['buttonView']['bind']('isEnabled')['toMany'](_0x6c6af3,'isEnabled',(..._0xa69cdb)=>_0xa69cdb['some'](_0x4e7a77=>_0x4e7a77)),this['additionalPropertiesCollapsibleView']['buttonView']['on']('change:isEnabled',(_0x5679ea,_0x538663,_0x22c4b6)=>{_0x22c4b6||(this['additionalPropertiesCollapsibleView']['isCollapsed']=!0x0);}),this['children']['add'](this['additionalPropertiesCollapsibleView'])):this['children']['addMany'](_0x6c6af3);}['_createStartIndexField'](){const _0x5f48df=new _0x397b60(this['locale'],_0xe74ebe);return _0x5f48df['set']({'label':_(this['locale'],'Start\x20at'),'class':'ck-multi-level-list-properties__start-index'}),_0x5f48df['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x5f48df['fieldView']['on']('input',()=>{const _0x499640=_0x5f48df['fieldView']['element'],_0x52b847=_0x499640['valueAsNumber'];Number['isNaN'](_0x52b847)?_0x5f48df['errorText']=_(this['locale'],'Invalid\x20start\x20index\x20value.'):_0x499640['checkValidity']()?this['fire']('listStart',{'startIndex':_0x52b847}):_0x5f48df['errorText']=_(this['locale'],'Start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0x5f48df;}}class MultiLevelListUI extends _0x3db800{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'MultiLevelListUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3ab0ed=this['editor'];_0x3ab0ed['ui']['componentFactory']['add']('multiLevelList',function({editor:_0x494808,parentCommandName:_0x8320b5,buttonLabel:_0x273bc5,buttonIcon:_0x5e5fad,styleGridAriaLabel:_0x41c5e4,styleDefinitions:_0x3702ca}){const _0x3d0bf7=_0x494808['commands']['get'](_0x8320b5),_0x59aacd=_0x494808['config']['get']('list.properties')||{},_0xe4798a=_0x494808['plugins']['has']('ListProperties'),_0x4f62e1=_0x59aacd['startIndex'];if(!_0xe4798a||!_0x4f62e1)return _0x278c84=>{const _0x48e1a5=new _0x40a735(_0x278c84);return _0x48e1a5['set']({'label':_0x273bc5,'icon':_0x5e5fad,'tooltip':!0x0,'isToggleable':!0x0}),_0x48e1a5['bind']('isOn')['to'](_0x3d0bf7,'value',_0x6d57a9=>!!_0x6d57a9),_0x48e1a5['on']('execute',()=>{_0x494808['execute'](_0x8320b5),_0x494808['editing']['view']['focus']();}),_0x48e1a5;};return _0x18549a=>{const _0x135f4f=_0x12cb29(_0x18549a,_0x1f2a94),_0x4d1014=_0x135f4f['buttonView'];return _0x135f4f['bind']('isEnabled')['to'](_0x3d0bf7),_0x135f4f['class']='ck-list-styles-dropdown',_0x4d1014['on']('execute',()=>{_0x494808['execute'](_0x8320b5),_0x494808['editing']['view']['focus']();}),_0x4d1014['set']({'label':_0x273bc5,'icon':_0x5e5fad,'tooltip':!0x0,'isToggleable':!0x0}),_0x4d1014['bind']('isOn')['to'](_0x3d0bf7,'value',_0x4f4f4d=>!!_0x4f4f4d),_0x135f4f['once']('change:isOpen',()=>{const _0x8a34ba=function({editor:_0x5a8afb,dropdownView:_0x329cec,styleDefinitions:_0x1b353f,styleGridAriaLabel:_0x3fc5e3}){const _0x1221e7=_0x5a8afb['locale'],_0x3ce119=_0x5a8afb['config']['get']('list.properties'),_0x33e2fc=null;_0x3ce119['reversed']=!0x1,_0x1b353f['length']||(_0x3ce119['styles']=!0x1);const _0x45ab55=new MultiLevelListView(_0x1221e7,{'styleGridAriaLabel':_0x3fc5e3,'enabledProperties':_0x3ce119,'styleButtonViews':_0x33e2fc});if(_0x3ce119['startIndex']){const _0x17b612=_0x5a8afb['commands']['get']('listStart');_0x45ab55['startIndexFieldView']['bind']('isEnabled')['to'](_0x17b612),_0x45ab55['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x17b612),_0x45ab55['on']('listStart',(_0x4055a8,_0x1d57af)=>_0x5a8afb['execute']('listStart',_0x1d57af));}return _0x45ab55['delegate']('execute')['to'](_0x329cec),_0x45ab55;}({'editor':_0x494808,'dropdownView':_0x135f4f,'styleGridAriaLabel':_0x41c5e4,'styleDefinitions':_0x3702ca});_0x135f4f['panelView']['children']['add'](_0x8a34ba);}),_0x135f4f['on']('execute',()=>{_0x494808['editing']['view']['focus']();}),_0x135f4f;};}({'editor':_0x3ab0ed,'parentCommandName':'multiLevelList','buttonLabel':_(_0x3ab0ed['locale'],'Multi-level\x20List'),'buttonIcon':_0x2f777f,'styleGridAriaLabel':_(_0x3ab0ed['locale'],'Multi-level\x20list\x20styles\x20toolbar'),'styleDefinitions':[]})),_0x3ab0ed['ui']['componentFactory']['add']('menuBar:multiLevelList',()=>{const _0x420b91=_0x3ab0ed['commands']['get']('multiLevelList'),_0x13cff7=new _0x34f979(_0x3ab0ed['locale']);return _0x13cff7['set']({'label':_(_0x3ab0ed['locale'],'Multi-level\x20List'),'icon':_0x2f777f}),_0x13cff7['bind']('isEnabled')['to'](_0x420b91),_0x13cff7['bind']('isOn')['to'](_0x420b91,'value',_0x182012=>!!_0x182012),_0x13cff7['on']('execute',()=>{_0x3ab0ed['execute']('multiLevelList'),_0x3ab0ed['editing']['view']['focus']();}),_0x13cff7;}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4c1893=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1f5327;for(const _0x14e014 in _0x4c1893){const _0x274289=_0x14e014,_0x353db3=_0x4c1893[_0x274289];if('multiLevelListLicenseKeyValid'==_0x353db3||'multiLevelListLicenseKeyInvalid'==_0x353db3||'multiLevelListLicenseKeyExpired'==_0x353db3||'multiLevelListLicenseKeyDomainLimit'==_0x353db3||'multiLevelListLicenseKeyNotAllowed'==_0x353db3||'multiLevelListLicenseKeyEvaluationLimit'==_0x353db3||'multiLevelListLicenseKeyUsageLimit'==_0x353db3){delete _0x4c1893[_0x274289],_0x1f5327=_0x353db3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'multiLevelListLicenseKeyInvalid'==_0x1f5327&&_0x4c1893['_showLicenseError']('invalid'),'multiLevelListLicenseKeyExpired'==_0x1f5327&&_0x4c1893['_showLicenseError']('expired'),'multiLevelListLicenseKeyDomainLimit'==_0x1f5327&&_0x4c1893['_showLicenseError']('domainLimit'),'multiLevelListLicenseKeyNotAllowed'==_0x1f5327&&_0x4c1893['_showLicenseError']('featureNotAllowed','MultiLevelList'),'multiLevelListLicenseKeyEvaluationLimit'==_0x1f5327&&_0x4c1893['_showLicenseError']('evaluationLimit'),'multiLevelListLicenseKeyUsageLimit'==_0x1f5327&&_0x4c1893['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class MultiLevelList extends _0x3db800{static get['pluginName'](){return'MultiLevelList';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[MultiLevelListEditing,MultiLevelListUI];}}export{MultiLevelList,MultiLevelListCommand,MultiLevelListEditing,MultiLevelListUI};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-list-multi-level",
|
|
3
|
-
"version": "48.8.1-alpha.
|
|
3
|
+
"version": "48.8.1-alpha.3",
|
|
4
4
|
"description": "Multi-level list feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -32,13 +32,13 @@
|
|
|
32
32
|
"./package.json": "./package.json"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@ckeditor/ckeditor5-clipboard": "48.8.1-alpha.
|
|
36
|
-
"@ckeditor/ckeditor5-core": "48.8.1-alpha.
|
|
37
|
-
"@ckeditor/ckeditor5-engine": "48.8.1-alpha.
|
|
38
|
-
"@ckeditor/ckeditor5-icons": "48.8.1-alpha.
|
|
39
|
-
"@ckeditor/ckeditor5-list": "48.8.1-alpha.
|
|
40
|
-
"@ckeditor/ckeditor5-ui": "48.8.1-alpha.
|
|
41
|
-
"@ckeditor/ckeditor5-utils": "48.8.1-alpha.
|
|
35
|
+
"@ckeditor/ckeditor5-clipboard": "48.8.1-alpha.3",
|
|
36
|
+
"@ckeditor/ckeditor5-core": "48.8.1-alpha.3",
|
|
37
|
+
"@ckeditor/ckeditor5-engine": "48.8.1-alpha.3",
|
|
38
|
+
"@ckeditor/ckeditor5-icons": "48.8.1-alpha.3",
|
|
39
|
+
"@ckeditor/ckeditor5-list": "48.8.1-alpha.3",
|
|
40
|
+
"@ckeditor/ckeditor5-ui": "48.8.1-alpha.3",
|
|
41
|
+
"@ckeditor/ckeditor5-utils": "48.8.1-alpha.3"
|
|
42
42
|
},
|
|
43
43
|
"files": [
|
|
44
44
|
"dist",
|