@ckeditor/ckeditor5-case-change 48.0.0-alpha.0 → 48.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x38f454,Plugin as _0x2a58f3}from'@ckeditor/ckeditor5-core/dist/index.js';import{uid as _0x571a0a,Collection as _0x3e179c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{MenuBarMenuView as _0x9312d8,MenuBarMenuListView as _0x372baf,MenuBarMenuListItemView as _0x249cf8,MenuBarMenuListItemButtonView as _0x1244ba,createDropdown as _0x58e375,addListToDropdown as _0x40e0e9,UIModel as _0x517e7b}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconCaseChange as _0x585f40}from'@ckeditor/ckeditor5-icons/dist/index.js';class d extends _0x38f454{['_transformCallback'];constructor(_0x178e63,_0x22df15){super(_0x178e63),this['_transformCallback']=_0x22df15;}['execute'](){const _0x4a662c=this['editor']['model'],_0x5d1fda=Array['from'](this['_getAffectedRanges']()),_0xc4ada=Array['from'](_0x4a662c['document']['selection']['getRanges']());_0x4a662c['change'](_0x50d265=>{for(const _0x44e293 of _0x5d1fda)this['_modifyContent'](_0x44e293,_0x50d265);_0x50d265['setSelection'](_0xc4ada);});}['refresh'](){for(const _0x45f9a3 of this['_getAffectedRanges']())for(const _0x44eab6 of _0x45f9a3)if(_0x44eab6['item']['is']('$textProxy'))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['_getAffectedRanges'](){const _0x28d79d=this['editor']['model'],_0x22432e=_0x28d79d['document']['selection'];if(_0x22432e['isCollapsed']){const _0x3cc86f=this['_findAncestorTextBlock'](_0x22432e['getFirstPosition']()['parent']);return _0x3cc86f?[_0x28d79d['createRangeIn'](_0x3cc86f)]:[];}return _0x22432e['getRanges']();}['_modifyContent'](_0x2b0b34,_0x4aaf93){for(const _0x180d56 of this['_getElementsAllowingText'](_0x2b0b34)){const _0x351dc5=this['_getElementTextContent'](_0x180d56),_0x3e0753=this['_transformCallback'](_0x351dc5);for(const _0x5e1e3b of this['_getTextNodesRangeLimited'](_0x180d56,_0x2b0b34))this['_replaceTextNodeData'](_0x5e1e3b,_0x3e0753,_0x4aaf93);}}['_findAncestorTextBlock'](_0x105d70){const _0x1dcbc1=this['editor']['model']['schema'];if(_0x105d70['is']('element')&&_0x1dcbc1['checkChild'](_0x105d70,'$text'))return _0x105d70;const _0x22d1ad=_0x105d70['parent'];return!_0x22d1ad||_0x1dcbc1['isLimit'](_0x105d70)?null:this['_findAncestorTextBlock'](_0x22d1ad);}*['_getElementsAllowingText'](_0x4a3776){const _0x1beba3=new Set();for(const {item:_0x2350df}of _0x4a3776['getWalker']()){const _0x4ab2c0=this['_findAncestorTextBlock'](_0x2350df);_0x4ab2c0&&!_0x1beba3['has'](_0x4ab2c0)&&(_0x1beba3['add'](_0x4ab2c0),yield _0x4ab2c0);}}['_getElementTextContent'](_0x26006d){return Array['from'](_0x26006d['getChildren']())['reduce']((_0x150940,_0x1b21f9)=>_0x150940+(_0x1b21f9['is']('$text')?_0x1b21f9['data']:'\x20'),'');}*['_getTextNodesRangeLimited'](_0x1765bf,_0x586da7){const _0xfe2db8=_0x586da7['getIntersection'](this['editor']['model']['createRangeIn'](_0x1765bf));if(_0xfe2db8){for(const _0x5760bf of _0xfe2db8['getItems']())_0x5760bf['is']('$textProxy')&&_0x5760bf['parent']==_0x1765bf&&(yield _0x5760bf);}}['_replaceTextNodeData'](_0x5d6e75,_0x4e4c85,_0x59f91f){const _0x44406c=_0x4e4c85['substring'](_0x5d6e75['startOffset'],_0x5d6e75['endOffset']);if(_0x44406c===_0x5d6e75['data'])return;const _0x3469d2=_0x5d6e75['getAttributes']();this['editor']['model']['insertContent'](_0x59f91f['createText'](_0x44406c,_0x3469d2),_0x59f91f['createSelection'](_0x59f91f['createRangeOn'](_0x5d6e75)));}}function w(_0x2b4975,_0x4d435b,..._0x5b4997){const t=_0x2b4975['t'];switch(_0x4d435b){case'Case\x20change':return t('Case\x20change');case'UPPERCASE':return t('UPPERCASE');case'lowercase':return t('lowercase');case'Title\x20Case':return t('Title\x20Case');case'Change\x20text\x20case':return t('Change\x20text\x20case');case'Changed\x20case\x20to\x20%0':return t('Changed\x20case\x20to\x20%0',..._0x5b4997);default:return _0x4d435b;}}class g extends _0x2a58f3{['_currentCommandIndex']=0x0;static get['pluginName'](){return'CaseChangeEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x17516a=this['editor'],_0x1c775f=_0x17516a['locale']['contentLanguage'],_0x2e4aa4=function(_0x6c8e1f=[]){return'function'==typeof _0x6c8e1f?_0x6c8e1f:(_0x48163d,{wordIndex:_0x2d037b})=>_0x2d037b>0x0&&_0x6c8e1f['includes'](_0x48163d);}(_0x17516a['config']['get']('caseChange.titleCase.excludeWords')),_0x651a6={'changeCaseUpper':new d(_0x17516a,_0x26d51d=>_0x26d51d['toLocaleUpperCase'](_0x1c775f)),'changeCaseLower':new d(_0x17516a,_0x45cb60=>_0x45cb60['toLocaleLowerCase'](_0x1c775f)),'changeCaseTitle':new d(_0x17516a,_0x1dba58=>function(_0x28c442,_0x147f28,_0x3e45e7){return function(_0x2e9f08,_0x2b9a12){let _0x324fe7='',_0x48aee2=0x0,_0x88ca5d=0x0;for(const _0x2fa8a4 of _0x2e9f08['matchAll'](/ +/g)){const _0xf322dc=_0x2fa8a4['index'],_0x5cb42c=_0x2e9f08['substring'](_0x48aee2,_0xf322dc);_0x5cb42c['length']&&(_0x324fe7+=_0x2b9a12(_0x5cb42c,_0x48aee2,_0x88ca5d++)),_0x324fe7+=_0x2fa8a4[0x0],_0x48aee2=_0xf322dc+_0x2fa8a4[0x0]['length'];}const _0x490468=_0x2e9f08['substring'](_0x48aee2);return _0x490468['length']&&(_0x324fe7+=_0x2b9a12(_0x490468,_0x48aee2,_0x88ca5d)),_0x324fe7;}(_0x28c442,(_0x4b0533,_0x854508,_0x35a299)=>{const _0x215e20=_0x4b0533['toLocaleLowerCase'](_0x3e45e7);return _0x147f28(_0x215e20,{'charOffset':_0x854508,'wordIndex':_0x35a299,'blockText':_0x28c442})?_0x215e20:_0x215e20['replace'](/(?:^|[^\p{L}\d'])\p{L}/gu,_0x5186c7=>_0x5186c7['toLocaleUpperCase'](_0x3e45e7));});}(_0x1dba58,_0x2e4aa4,_0x1c775f))};for(const [_0x4ce05f,_0x463382]of Object['entries'](_0x651a6))_0x17516a['commands']['add'](_0x4ce05f,_0x463382),_0x463382['on']('execute',()=>{this['_announceCaseChangeOperation'](_0x4ce05f);});this['listenTo'](_0x17516a['editing']['view']['document'],'selectionChange',()=>{this['_currentCommandIndex']=0x0;}),_0x17516a['keystrokes']['set']('shift+f3',(_0x9fc6c8,_0x1dfff7)=>{const _0x5ba126=m(this['editor']['locale']),_0x6d7abc=_0x5ba126[this['_currentCommandIndex']%_0x5ba126['length']]['commandName'];_0x17516a['execute'](_0x6d7abc),this['_currentCommandIndex']++,_0x1dfff7();});}['afterInit'](){!async function(_0x407880){const _0x1e653d=_0x2738fc([0x45,0x4d,0x44,0x53,0x33,0x64,0x73,0x4c,0x6f,0x4a,0x59,0x30,0x6e,0x62,0x65,0x39,0x63,0x6d,0x6c,0x43,0x72,0x58,0x79,0x61,0x5a,0x38,0x7a,0x70,0x50,0x71,0x4e,0x36,0x6a,0x78,0x54,0x68,0x66,0x37,0x67,0x77,0x42,0x69,0x32,0x4b,0x46,0x4f,0x56,0x55,0x57,0x52,0x41,0x47,0x31,0x34,0x48,0x51,0x49,0x6b,0x75,0x74,0x35,0x76]),_0x192e71=0x334129cd,_0x21a8dc=0x3346ad05^_0x192e71,_0x326a00=window[_0x2738fc([0x44,0x61,0x74,0x65])][_0x2738fc([0x6e,0x6f,0x77])](),_0x52d0d8=_0x407880[_0x2738fc([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x809318=new window[(_0x2738fc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17809a=>{_0x52d0d8[_0x2738fc([0x6f,0x6e,0x63,0x65])](_0x2738fc([0x72,0x65,0x61,0x64,0x79]),_0x17809a);}),_0x209d66={[_0x2738fc([0x6b,0x74,0x79])]:_0x2738fc([0x45,0x43]),[_0x2738fc([0x75,0x73,0x65])]:_0x2738fc([0x73,0x69,0x67]),[_0x2738fc([0x63,0x72,0x76])]:_0x2738fc([0x50,0x2d,0x32,0x35,0x36]),[_0x2738fc([0x78])]:_0x2738fc([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]),[_0x2738fc([0x79])]:_0x2738fc([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]),[_0x2738fc([0x61,0x6c,0x67])]:_0x2738fc([0x45,0x53,0x32,0x35,0x36])},_0x2bec27=_0x52d0d8[_0x2738fc([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2738fc([0x67,0x65,0x74])](_0x2738fc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x250930(){let _0x20d4bc,_0x18d26c=null,_0x117869=null;try{if(_0x2bec27==_0x2738fc([0x47,0x50,0x4c]))return _0x2738fc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x20d4bc=_0x34cf52(),!_0x20d4bc)return _0x2738fc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x20d4bc[_0x2738fc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x117869=_0x2188a5(_0x20d4bc[_0x2738fc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x20d4bc[_0x2738fc([0x6a,0x74,0x69])])),await _0x2e4a7e()?_0x4b1133()?_0x58aa24()?_0x2738fc([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x23fd7d()?(_0x20d4bc[_0x2738fc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2738fc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x18d26c=_0x279edb(_0x2738fc([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1946a5()):_0x2738fc([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2738fc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2738fc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2738fc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x58aa24(){const _0x79b5cf=[_0x2738fc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2738fc([0x74,0x72,0x69,0x61,0x6c])][_0x2738fc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20d4bc[_0x2738fc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x326a00/0x3e8:0xe10*_0x21a8dc;return _0x20d4bc[_0x2738fc([0x65,0x78,0x70])]<_0x79b5cf;}function _0x4b1133(){const _0x524fdf=_0x20d4bc[_0x2738fc([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x524fdf&&(!!_0x524fdf[_0x2738fc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2738fc([0x2a]))||(!!_0x524fdf[_0x2738fc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2738fc([0x43,0x43]))||!!_0x524fdf[_0x2738fc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2738fc([0x50,0x50]))));}function _0x23fd7d(){const _0x139abc=_0x20d4bc[_0x2738fc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x139abc||0x0==_0x139abc[_0x2738fc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1aea38}=new URL(window[_0x2738fc([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x139abc[_0x2738fc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1aea38))return!0x0;const _0x2d77e0=_0x1aea38[_0x2738fc([0x73,0x70,0x6c,0x69,0x74])](_0x2738fc([0x2e]));return _0x139abc[_0x2738fc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2b67f2=>_0x2b67f2[_0x2738fc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2738fc([0x2a])))[_0x2738fc([0x6d,0x61,0x70])](_0x3baf9d=>_0x3baf9d[_0x2738fc([0x73,0x70,0x6c,0x69,0x74])](_0x2738fc([0x2e])))[_0x2738fc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x492f5f=>_0x492f5f[_0x2738fc([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2d77e0[_0x2738fc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2738fc([0x6d,0x61,0x70])](_0x212aaf=>Array(_0x2d77e0[_0x2738fc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x212aaf[_0x2738fc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2738fc([0x66,0x69,0x6c,0x6c])](_0x212aaf[0x0]===_0x2738fc([0x2a])?_0x2738fc([0x2a]):'')[_0x2738fc([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x212aaf))[_0x2738fc([0x73,0x6f,0x6d,0x65])](_0x2ec903=>_0x2d77e0[_0x2738fc([0x65,0x76,0x65,0x72,0x79])]((_0x91b981,_0x49e3c5)=>_0x2ec903[_0x49e3c5]===_0x91b981||_0x2ec903[_0x49e3c5]===_0x2738fc([0x2a])));}function _0x1946a5(){return _0x18d26c&&_0x117869?new window[(_0x2738fc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x78364f,_0x4d82a9)=>{_0x18d26c[_0x2738fc([0x74,0x68,0x65,0x6e])](_0x78364f,_0x4d82a9),_0x117869[_0x2738fc([0x74,0x68,0x65,0x6e])](_0x1f724a=>{_0x1f724a!=_0x2738fc([0x56,0x61,0x6c,0x69,0x64])&&_0x78364f(_0x1f724a);},_0x4d82a9);}):_0x18d26c||_0x117869||_0x2738fc([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2188a5(_0x168614,_0x228b4b){return new window[(_0x2738fc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a4efa=>{if(_0x30362d())return _0x4a4efa(_0x2738fc([0x56,0x61,0x6c,0x69,0x64]));_0x5c34fd(),_0x52d0d8[_0x2738fc([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2738fc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2ff756=!0x1;const _0x6688e1=_0x571a0a();function _0x29d738(_0x503b80){return!!_0x503b80&&(typeof _0x503b80===_0x2738fc([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x503b80===_0x2738fc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x503b80[_0x2738fc([0x74,0x68,0x65,0x6e])]===_0x2738fc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x503b80[_0x2738fc([0x63,0x61,0x74,0x63,0x68])]===_0x2738fc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3ded04(_0x3e227d){_0x58e359(_0x3e227d)[_0x2738fc([0x74,0x68,0x65,0x6e])](_0x48c4d0=>{if(!_0x48c4d0||_0x48c4d0[_0x2738fc([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2738fc([0x6f,0x6b]))return _0x2738fc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x545a30(_0x7cd776(_0x6688e1+_0x228b4b))!=_0x48c4d0[_0x2738fc([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2738fc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2738fc([0x56,0x61,0x6c,0x69,0x64]);})[_0x2738fc([0x74,0x68,0x65,0x6e])](_0x65903d=>(_0x545fb6(),_0x65903d),()=>{const _0x15a187=_0x320c09();return null==_0x15a187?(_0x545fb6(),_0x2738fc([0x56,0x61,0x6c,0x69,0x64])):_0x2738fc(_0x326a00-_0x15a187>(0x174dadcd^_0x192e71)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2738fc([0x74,0x68,0x65,0x6e])](_0x4a4efa)[_0x2738fc([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4a4efa(_0x2738fc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x6d87d2=0x3377c74d^_0x192e71;function _0x545fb6(){const _0x1d4b05=_0x2738fc([0x6c,0x6c,0x63,0x74,0x2d])+_0x545a30(_0x7cd776(_0x168614)),_0x4401bb=_0x41dc95(_0x545a30(window[_0x2738fc([0x4d,0x61,0x74,0x68])][_0x2738fc([0x63,0x65,0x69,0x6c])](_0x326a00/_0x6d87d2)));window[_0x2738fc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2738fc([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1d4b05,_0x4401bb);}function _0x320c09(){const _0x37c688=_0x2738fc([0x6c,0x6c,0x63,0x74,0x2d])+_0x545a30(_0x7cd776(_0x168614)),_0x18b06b=window[_0x2738fc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2738fc([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x37c688);return _0x18b06b?window[_0x2738fc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x41dc95(_0x18b06b),0x10)*_0x6d87d2:null;}function _0x58e359(_0x1cb437){return new window[(_0x2738fc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1fe4d8,_0x179d70)=>{_0x1cb437[_0x2738fc([0x74,0x68,0x65,0x6e])](_0x1fe4d8,_0x179d70),window[_0x2738fc([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x179d70,0x3340fd0d^_0x192e71);});}}_0x52d0d8[_0x2738fc([0x6f,0x6e])](_0x2738fc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3d4a93,_0x11b74c)=>{if(_0x11b74c[0x0]!=_0x168614)return _0x4a4efa(_0x2738fc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x11b74c[0x1]={..._0x11b74c[0x1],[_0x2738fc([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x6688e1};},{[_0x2738fc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2738fc([0x68,0x69,0x67,0x68])}),_0x52d0d8[_0x2738fc([0x6f,0x6e])](_0x2738fc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1b02fb=>{_0x29d738(_0x1b02fb[_0x2738fc([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2ff756=!0x0,_0x3ded04(_0x1b02fb[_0x2738fc([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2738fc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2738fc([0x6c,0x6f,0x77])}),_0x809318[_0x2738fc([0x74,0x68,0x65,0x6e])](()=>{_0x2ff756||_0x4a4efa(_0x2738fc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x30362d(){return _0x52d0d8[_0x2738fc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2738fc([0x76,0x69,0x65,0x77])][_0x2738fc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2738fc([0x61,0x75,0x74,0x6f]);}function _0x5c34fd(){_0x52d0d8[_0x2738fc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2738fc([0x76,0x69,0x65,0x77])][_0x2738fc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2738fc([0x61,0x75,0x74,0x6f]);}}function _0x279edb(_0x545f44){const _0x5562d3=[new window[(_0x2738fc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ee705=>setTimeout(_0x1ee705,0x33481701^_0x192e71)),_0x809318[_0x2738fc([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2738fc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29e6a0=>{let _0x5e2de8=0x0;_0x52d0d8[_0x2738fc([0x6d,0x6f,0x64,0x65,0x6c])][_0x2738fc([0x6f,0x6e])](_0x2738fc([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x315c48,_0x52411d)=>{_0x52411d[0x0][_0x2738fc([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5e2de8++,_0x5e2de8==(0x33412c25^_0x192e71)&&(_0x29e6a0(),_0x315c48[_0x2738fc([0x6f,0x66,0x66])]());});}))];return window[_0x2738fc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2738fc([0x72,0x61,0x63,0x65])](_0x5562d3)[_0x2738fc([0x74,0x68,0x65,0x6e])](()=>_0x545f44);}async function _0x179f32(){await _0x809318,_0x52d0d8[_0x2738fc([0x6d,0x6f,0x64,0x65,0x6c])][_0x2738fc([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x6cc641,_0x52d0d8[_0x2738fc([0x6d,0x6f,0x64,0x65,0x6c])][_0x2738fc([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x6cc641,_0x52d0d8[_0x2738fc([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2738fc([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1920ad(_0x578fca){const _0x3582a6=_0x5d41ad();_0x52d0d8[_0x3582a6]=_0x2738fc([0x63,0x61,0x73,0x65,0x43,0x68,0x61,0x6e,0x67,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x578fca,_0x578fca!=_0x2738fc([0x56,0x61,0x6c,0x69,0x64])&&_0x179f32();}function _0x5d41ad(){const _0x480ba6=window[_0x2738fc([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2738fc([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2738fc([0x6e,0x6f,0x77])]())[_0x2738fc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2738fc([0x2e]),'');let _0x244f64=_0x2738fc([0x45]);for(let _0x17d9ce=0x0;_0x17d9ce<_0x480ba6[_0x2738fc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x17d9ce+=0x2){let _0x3ccd1a=window[_0x2738fc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x480ba6[_0x2738fc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x17d9ce,_0x17d9ce+0x2));_0x3ccd1a>=_0x1e653d[_0x2738fc([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3ccd1a-=_0x1e653d[_0x2738fc([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x244f64+=_0x1e653d[_0x3ccd1a];}return _0x244f64;}function _0x34cf52(){const _0x1eba23=_0x2bec27[_0x2738fc([0x73,0x70,0x6c,0x69,0x74])](_0x2738fc([0x2e]));if(0x3!=_0x1eba23[_0x2738fc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2d4199(_0x1eba23[0x1]);function _0x2d4199(_0x2c1c40){const _0x306f29=_0x20c530(_0x2c1c40);return _0x306f29&&_0x53b9cf()?_0x306f29:null;function _0x53b9cf(){const _0xbd0cf5=_0x306f29[_0x2738fc([0x6a,0x74,0x69])],_0x14b9c6=window[_0x2738fc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xbd0cf5[_0x2738fc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xbd0cf5[_0x2738fc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x588781={..._0x306f29,[_0x2738fc([0x6a,0x74,0x69])]:_0xbd0cf5[_0x2738fc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xbd0cf5[_0x2738fc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x588781[_0x2738fc([0x76,0x63])],_0x7cd776(_0x588781)==_0x14b9c6;}}}async function _0x2e4a7e(){let _0x5b433d=!0x0;try{const _0x1ebd2a=_0x2bec27[_0x2738fc([0x73,0x70,0x6c,0x69,0x74])](_0x2738fc([0x2e])),[_0x264125,_0x5af03b,_0x3906d5]=_0x1ebd2a;return _0x453683(_0x264125),await _0x5400a7(_0x264125,_0x5af03b,_0x3906d5),_0x5b433d;}catch{return!0x1;}function _0x453683(_0x123117){const _0x37584b=_0x20c530(_0x123117);_0x37584b&&_0x37584b[_0x2738fc([0x61,0x6c,0x67])]==_0x2738fc([0x45,0x53,0x32,0x35,0x36])||(_0x5b433d=!0x1);}async function _0x5400a7(_0x4b9993,_0x2fbf6f,_0x44a7aa){const _0x5535b8=window[_0x2738fc([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2738fc([0x66,0x72,0x6f,0x6d])](_0x2238e0(_0x44a7aa),_0x450ddd=>_0x450ddd[_0x2738fc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x15db96=new window[(_0x2738fc([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2738fc([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4b9993+_0x2738fc([0x2e])+_0x2fbf6f),_0x3581b7=window[_0x2738fc([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2738fc([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3581b7)return;const _0x2b454b=await _0x3581b7[_0x2738fc([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2738fc([0x6a,0x77,0x6b]),_0x209d66,{[_0x2738fc([0x6e,0x61,0x6d,0x65])]:_0x2738fc([0x45,0x43,0x44,0x53,0x41]),[_0x2738fc([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2738fc([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2738fc([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3581b7[_0x2738fc([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2738fc([0x6e,0x61,0x6d,0x65])]:_0x2738fc([0x45,0x43,0x44,0x53,0x41]),[_0x2738fc([0x68,0x61,0x73,0x68])]:{[_0x2738fc([0x6e,0x61,0x6d,0x65])]:_0x2738fc([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2b454b,_0x5535b8,_0x15db96)||(_0x5b433d=!0x1);}}function _0x20c530(_0x32f8b5){return _0x32f8b5[_0x2738fc([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2738fc([0x65,0x79]))?JSON[_0x2738fc([0x70,0x61,0x72,0x73,0x65])](_0x2238e0(_0x32f8b5)):null;}function _0x2238e0(_0x5e7a10){return window[_0x2738fc([0x61,0x74,0x6f,0x62])](_0x5e7a10[_0x2738fc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2738fc([0x2b]))[_0x2738fc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2738fc([0x2f])));}function _0x7cd776(_0x54a1d5){let _0x24bbe3=0x1505;function _0x4338f(_0x2e5eb6){for(let _0x4c7b8c=0x0;_0x4c7b8c<_0x2e5eb6[_0x2738fc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4c7b8c++){const _0x59d240=_0x2e5eb6[_0x2738fc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4c7b8c);_0x24bbe3=(_0x24bbe3<<0x5)+_0x24bbe3+_0x59d240,_0x24bbe3&=_0x24bbe3;}}function _0x4f5c82(_0x405e47){Array[_0x2738fc([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x405e47)?_0x405e47[_0x2738fc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4f5c82):_0x405e47&&typeof _0x405e47==_0x2738fc([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2738fc([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x405e47)[_0x2738fc([0x73,0x6f,0x72,0x74])]()[_0x2738fc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2985e6,_0x440658])=>{_0x4338f(_0x2985e6),_0x4f5c82(_0x440658);}):_0x4338f(window[_0x2738fc([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x405e47));}return _0x4f5c82(_0x54a1d5),_0x24bbe3>>>0x0;}function _0x545a30(_0x3984b3){return _0x3984b3[_0x2738fc([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2738fc([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2738fc([0x30]));}function _0x41dc95(_0x50b7ce){return _0x50b7ce[_0x2738fc([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2738fc([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2738fc([0x6a,0x6f,0x69,0x6e])]('');}function _0x6cc641(){}function _0x2738fc(_0x199a6b){return _0x199a6b['map'](_0x9489fc=>String['fromCharCode'](_0x9489fc))['join']('');}_0x1920ad(await _0x250930());}(this);}['_announceCaseChangeOperation'](_0x30b5c1){const {ui:_0x54f6e2,locale:_0x10ff1e}=this['editor'],_0x1d3750=m(_0x10ff1e)['find'](_0x1f940b=>_0x1f940b['commandName']===_0x30b5c1)['label']['toLowerCase']();_0x54f6e2['ariaLiveAnnouncer']['announce'](w(_0x10ff1e,'Changed\x20case\x20to\x20%0',_0x1d3750));}}function m(_0x50de4d){return[{'label':w(_0x50de4d,'UPPERCASE'),'commandName':'changeCaseUpper'},{'label':w(_0x50de4d,'lowercase'),'commandName':'changeCaseLower'},{'label':w(_0x50de4d,'Title\x20Case'),'commandName':'changeCaseTitle'}];}class C extends _0x2a58f3{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CaseChangeUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x189937=this['editor'];this['_registerComponents'](),_0x189937['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':w(_0x189937['locale'],'Change\x20text\x20case'),'keystroke':'Shift+f3','mayRequireFn':!0x0}]}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4dcc16=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2b0b0a;for(const _0x2238f9 in _0x4dcc16){const _0x3cad46=_0x2238f9,_0x3cb757=_0x4dcc16[_0x3cad46];if('caseChangeLicenseKeyValid'==_0x3cb757||'caseChangeLicenseKeyInvalid'==_0x3cb757||'caseChangeLicenseKeyExpired'==_0x3cb757||'caseChangeLicenseKeyDomainLimit'==_0x3cb757||'caseChangeLicenseKeyNotAllowed'==_0x3cb757||'caseChangeLicenseKeyEvaluationLimit'==_0x3cb757||'caseChangeLicenseKeyUsageLimit'==_0x3cb757){delete _0x4dcc16[_0x3cad46],_0x2b0b0a=_0x3cb757,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'caseChangeLicenseKeyInvalid'==_0x2b0b0a&&_0x4dcc16['_showLicenseError']('invalid'),'caseChangeLicenseKeyExpired'==_0x2b0b0a&&_0x4dcc16['_showLicenseError']('expired'),'caseChangeLicenseKeyDomainLimit'==_0x2b0b0a&&_0x4dcc16['_showLicenseError']('domainLimit'),'caseChangeLicenseKeyNotAllowed'==_0x2b0b0a&&_0x4dcc16['_showLicenseError']('featureNotAllowed','CaseChange'),'caseChangeLicenseKeyEvaluationLimit'==_0x2b0b0a&&_0x4dcc16['_showLicenseError']('evaluationLimit'),'caseChangeLicenseKeyUsageLimit'==_0x2b0b0a&&_0x4dcc16['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_registerComponents'](){const _0x78065a=this['editor'],{itemDefinitions:_0x3d88c8,commands:_0x4ff662}=this['_getListItemDefinitionsAndCommands']();_0x78065a['ui']['componentFactory']['add']('caseChange',()=>this['_createDropdownView'](_0x3d88c8,_0x4ff662)),_0x78065a['ui']['componentFactory']['add']('menuBar:caseChange',()=>this['_createMenuBarMenuView'](_0x3d88c8,_0x4ff662));}['_createMenuBarMenuView'](_0x48f4a3,_0x47fe06){const _0x3da584=this['editor'],_0x460fb0=_0x3da584['locale'],_0x5c03a0=new _0x9312d8(_0x460fb0),_0x24b89c=new _0x372baf(_0x460fb0);_0x24b89c['set']({'ariaLabel':w(_0x460fb0,'Case\x20change'),'role':'menu'}),this['_setButtonProperties'](_0x5c03a0['buttonView']),_0x5c03a0['bind']('isEnabled')['toMany'](_0x47fe06,'isEnabled',(..._0x30ce70)=>_0x30ce70['some'](_0x335cc4=>_0x335cc4));for(const _0x6076a2 of _0x48f4a3){const _0x22e855=new _0x249cf8(_0x460fb0,_0x5c03a0),_0x3691ef=new _0x1244ba(_0x460fb0);_0x3691ef['delegate']('execute')['to'](_0x5c03a0),_0x3691ef['bind'](...Object['keys'](_0x6076a2['model']))['to'](_0x6076a2['model']),_0x3691ef['on']('execute',()=>{_0x3da584['execute'](_0x6076a2['model']['commandName']),_0x3da584['editing']['view']['focus']();}),_0x22e855['children']['add'](_0x3691ef),_0x24b89c['items']['add'](_0x22e855);}return _0x5c03a0['panelView']['children']['add'](_0x24b89c),_0x5c03a0;}['_createDropdownView'](_0x263878,_0x319e21){const _0x202230=this['editor'],_0x443e34=_0x58e375(_0x202230['locale']);return this['_setButtonProperties'](_0x443e34['buttonView']),_0x443e34['buttonView']['set']({'tooltip':!0x0}),_0x443e34['extendTemplate']({'attributes':{'class':['ck-case-change-dropdown']}}),_0x40e0e9(_0x443e34,_0x263878,{'ariaLabel':w(_0x202230['locale'],'Case\x20change'),'role':'menu'}),_0x443e34['bind']('isEnabled')['toMany'](_0x319e21,'isEnabled',(..._0x30e919)=>_0x30e919['some'](_0x3d7f86=>_0x3d7f86)),this['listenTo'](_0x443e34,'execute',_0x3bd883=>{_0x202230['execute'](_0x3bd883['source']['commandName']),_0x202230['editing']['view']['focus']();}),_0x443e34;}['_setButtonProperties'](_0x2dc3da){const _0x59d48c=this['editor'];_0x2dc3da['set']({'label':w(_0x59d48c['locale'],'Case\x20change'),'icon':_0x585f40,'keystroke':'Shift+F3'});}['_getListItemDefinitionsAndCommands'](){const _0x3a86c6=new _0x3e179c(),_0x4f3f80=[];for(const _0x54cbf7 of m(this['editor']['locale'])){const _0x3cf46e=this['editor']['commands']['get'](_0x54cbf7['commandName']),_0x149e75=new _0x517e7b({'commandName':_0x54cbf7['commandName'],'label':_0x54cbf7['label'],'role':'menuitemradio','withText':!0x0});_0x149e75['bind']('isEnabled')['to'](_0x3cf46e,'isEnabled'),_0x3a86c6['add']({'type':'button','model':_0x149e75}),_0x4f3f80['push'](_0x3cf46e);}return{'itemDefinitions':_0x3a86c6,'commands':_0x4f3f80};}}class y extends _0x2a58f3{static get['requires'](){return[g,C];}static get['pluginName'](){return'CaseChange';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{y as CaseChange,d as CaseChangeCommand,g as CaseChangeEditing,C as CaseChangeUI};
23
+ import{Command as _0x3b6d1b,Plugin as _0x183f4a}from'@ckeditor/ckeditor5-core/dist/index.js';import{uid as _0x36659b,Collection as _0x27dad7}from'@ckeditor/ckeditor5-utils/dist/index.js';import{MenuBarMenuView as _0x4ceccb,MenuBarMenuListView as _0x43b462,MenuBarMenuListItemView as _0x2aa156,MenuBarMenuListItemButtonView as _0x4d111a,createDropdown as _0x2e95e1,addListToDropdown as _0x70c616,UIModel as _0x10f1b5}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconCaseChange as _0x154f71}from'@ckeditor/ckeditor5-icons/dist/index.js';class d extends _0x3b6d1b{['_transformCallback'];constructor(_0x379b3e,_0x57ea3b){super(_0x379b3e),this['_transformCallback']=_0x57ea3b;}['execute'](){const _0x45b26c=this['editor']['model'],_0x4238c6=Array['from'](this['_getAffectedRanges']()),_0x54d83e=Array['from'](_0x45b26c['document']['selection']['getRanges']());_0x45b26c['change'](_0xf4ec95=>{for(const _0x1b738c of _0x4238c6)this['_modifyContent'](_0x1b738c,_0xf4ec95);_0xf4ec95['setSelection'](_0x54d83e);});}['refresh'](){for(const _0x3fda08 of this['_getAffectedRanges']())for(const _0x48ed6f of _0x3fda08)if(_0x48ed6f['item']['is']('$textProxy'))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['_getAffectedRanges'](){const _0x5ee597=this['editor']['model'],_0x4cb402=_0x5ee597['document']['selection'];if(_0x4cb402['isCollapsed']){const _0x13897f=this['_findAncestorTextBlock'](_0x4cb402['getFirstPosition']()['parent']);return _0x13897f?[_0x5ee597['createRangeIn'](_0x13897f)]:[];}return _0x4cb402['getRanges']();}['_modifyContent'](_0x28decc,_0x124db0){for(const _0x131f5a of this['_getElementsAllowingText'](_0x28decc)){const _0x2f4eee=this['_getElementTextContent'](_0x131f5a),_0x1dc0fb=this['_transformCallback'](_0x2f4eee);for(const _0x3414e8 of this['_getTextNodesRangeLimited'](_0x131f5a,_0x28decc))this['_replaceTextNodeData'](_0x3414e8,_0x1dc0fb,_0x124db0);}}['_findAncestorTextBlock'](_0x29a03f){const _0x5d9d4f=this['editor']['model']['schema'];if(_0x29a03f['is']('element')&&_0x5d9d4f['checkChild'](_0x29a03f,'$text'))return _0x29a03f;const _0x30e145=_0x29a03f['parent'];return!_0x30e145||_0x5d9d4f['isLimit'](_0x29a03f)?null:this['_findAncestorTextBlock'](_0x30e145);}*['_getElementsAllowingText'](_0x2e4f79){const _0x12493c=new Set();for(const {item:_0x317c9b}of _0x2e4f79['getWalker']()){const _0x3f080b=this['_findAncestorTextBlock'](_0x317c9b);_0x3f080b&&!_0x12493c['has'](_0x3f080b)&&(_0x12493c['add'](_0x3f080b),yield _0x3f080b);}}['_getElementTextContent'](_0xcdc715){return Array['from'](_0xcdc715['getChildren']())['reduce']((_0xd20657,_0x307d27)=>_0xd20657+(_0x307d27['is']('$text')?_0x307d27['data']:'\x20'),'');}*['_getTextNodesRangeLimited'](_0x378b6d,_0x33b55d){const _0x439607=_0x33b55d['getIntersection'](this['editor']['model']['createRangeIn'](_0x378b6d));if(_0x439607){for(const _0x2eaa67 of _0x439607['getItems']())_0x2eaa67['is']('$textProxy')&&_0x2eaa67['parent']==_0x378b6d&&(yield _0x2eaa67);}}['_replaceTextNodeData'](_0x231e64,_0xa4169b,_0x120f3c){const _0x4dae56=_0xa4169b['substring'](_0x231e64['startOffset'],_0x231e64['endOffset']);if(_0x4dae56===_0x231e64['data'])return;const _0x304a2e=_0x231e64['getAttributes']();this['editor']['model']['insertContent'](_0x120f3c['createText'](_0x4dae56,_0x304a2e),_0x120f3c['createSelection'](_0x120f3c['createRangeOn'](_0x231e64)));}}function w(_0x4e5694,_0x2a7ed3,..._0x17f2d8){const t=_0x4e5694['t'];switch(_0x2a7ed3){case'Case\x20change':return t('Case\x20change');case'UPPERCASE':return t('UPPERCASE');case'lowercase':return t('lowercase');case'Title\x20Case':return t('Title\x20Case');case'Change\x20text\x20case':return t('Change\x20text\x20case');case'Changed\x20case\x20to\x20%0':return t('Changed\x20case\x20to\x20%0',..._0x17f2d8);default:return _0x2a7ed3;}}class g extends _0x183f4a{['_currentCommandIndex']=0x0;static get['pluginName'](){return'CaseChangeEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x53098a=this['editor'],_0x232726=_0x53098a['locale']['contentLanguage'],_0x235915=function(_0x5421e=[]){return'function'==typeof _0x5421e?_0x5421e:(_0x13374a,{wordIndex:_0x492a80})=>_0x492a80>0x0&&_0x5421e['includes'](_0x13374a);}(_0x53098a['config']['get']('caseChange.titleCase.excludeWords')),_0xa14601={'changeCaseUpper':new d(_0x53098a,_0x39d58d=>_0x39d58d['toLocaleUpperCase'](_0x232726)),'changeCaseLower':new d(_0x53098a,_0x2ff0d7=>_0x2ff0d7['toLocaleLowerCase'](_0x232726)),'changeCaseTitle':new d(_0x53098a,_0x262c98=>function(_0x27d38a,_0x29a00c,_0x2eecaa){return function(_0x2d7bf4,_0x30a465){let _0x3fa2e9='',_0x59e845=0x0,_0x2c7930=0x0;for(const _0x5e67a0 of _0x2d7bf4['matchAll'](/ +/g)){const _0x247f4b=_0x5e67a0['index'],_0x4234cc=_0x2d7bf4['substring'](_0x59e845,_0x247f4b);_0x4234cc['length']&&(_0x3fa2e9+=_0x30a465(_0x4234cc,_0x59e845,_0x2c7930++)),_0x3fa2e9+=_0x5e67a0[0x0],_0x59e845=_0x247f4b+_0x5e67a0[0x0]['length'];}const _0x4ab29c=_0x2d7bf4['substring'](_0x59e845);return _0x4ab29c['length']&&(_0x3fa2e9+=_0x30a465(_0x4ab29c,_0x59e845,_0x2c7930)),_0x3fa2e9;}(_0x27d38a,(_0x2debdc,_0xa05104,_0x470997)=>{const _0x134921=_0x2debdc['toLocaleLowerCase'](_0x2eecaa);return _0x29a00c(_0x134921,{'charOffset':_0xa05104,'wordIndex':_0x470997,'blockText':_0x27d38a})?_0x134921:_0x134921['replace'](/(?:^|[^\p{L}\d'])\p{L}/gu,_0x4575bc=>_0x4575bc['toLocaleUpperCase'](_0x2eecaa));});}(_0x262c98,_0x235915,_0x232726))};for(const [_0x55a915,_0xe4d42f]of Object['entries'](_0xa14601))_0x53098a['commands']['add'](_0x55a915,_0xe4d42f),_0xe4d42f['on']('execute',()=>{this['_announceCaseChangeOperation'](_0x55a915);});this['listenTo'](_0x53098a['editing']['view']['document'],'selectionChange',()=>{this['_currentCommandIndex']=0x0;}),_0x53098a['keystrokes']['set']('shift+f3',(_0x225300,_0x352918)=>{const _0x12286f=m(this['editor']['locale']),_0x5afa09=_0x12286f[this['_currentCommandIndex']%_0x12286f['length']]['commandName'];_0x53098a['execute'](_0x5afa09),this['_currentCommandIndex']++,_0x352918();});}['afterInit'](){!async function(_0x3fe973){const _0x12b255=_0x118fc4([0x45,0x4d,0x44,0x53,0x33,0x64,0x73,0x4c,0x6f,0x4a,0x59,0x30,0x6e,0x62,0x65,0x39,0x63,0x6d,0x6c,0x43,0x72,0x58,0x79,0x61,0x5a,0x38,0x7a,0x70,0x50,0x71,0x4e,0x36,0x6a,0x78,0x54,0x68,0x66,0x37,0x67,0x77,0x42,0x69,0x32,0x4b,0x46,0x4f,0x56,0x55,0x57,0x52,0x41,0x47,0x31,0x34,0x48,0x51,0x49,0x6b,0x75,0x74,0x35,0x76]),_0x5b021f=0x334129cd,_0x25f0b4=0x3346ad2d^_0x5b021f,_0x1f42c5=window[_0x118fc4([0x44,0x61,0x74,0x65])][_0x118fc4([0x6e,0x6f,0x77])](),_0x3f6afa=_0x3fe973[_0x118fc4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x55e3a6=new window[(_0x118fc4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x14b250=>{_0x3f6afa[_0x118fc4([0x6f,0x6e,0x63,0x65])](_0x118fc4([0x72,0x65,0x61,0x64,0x79]),_0x14b250);}),_0x182963={[_0x118fc4([0x6b,0x74,0x79])]:_0x118fc4([0x45,0x43]),[_0x118fc4([0x75,0x73,0x65])]:_0x118fc4([0x73,0x69,0x67]),[_0x118fc4([0x63,0x72,0x76])]:_0x118fc4([0x50,0x2d,0x32,0x35,0x36]),[_0x118fc4([0x78])]:_0x118fc4([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]),[_0x118fc4([0x79])]:_0x118fc4([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]),[_0x118fc4([0x61,0x6c,0x67])]:_0x118fc4([0x45,0x53,0x32,0x35,0x36])},_0x8b5f4=_0x3f6afa[_0x118fc4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x118fc4([0x67,0x65,0x74])](_0x118fc4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x40cc0e(){let _0x402f89,_0x185f42=null,_0x34773f=null;try{if(_0x8b5f4==_0x118fc4([0x47,0x50,0x4c]))return _0x118fc4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x402f89=_0x1818cd(),!_0x402f89)return _0x118fc4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x402f89[_0x118fc4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x34773f=_0x3a05a3(_0x402f89[_0x118fc4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x402f89[_0x118fc4([0x6a,0x74,0x69])])),await _0x5a6bf5()?_0x5955c9()?_0x57c895()?_0x118fc4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x407d15()?(_0x402f89[_0x118fc4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x118fc4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x185f42=_0x58f66c(_0x118fc4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1f202a()):_0x118fc4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x118fc4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x118fc4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x118fc4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x57c895(){const _0x13e24c=[_0x118fc4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x118fc4([0x74,0x72,0x69,0x61,0x6c])][_0x118fc4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x402f89[_0x118fc4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1f42c5/0x3e8:0xe10*_0x25f0b4;return _0x402f89[_0x118fc4([0x65,0x78,0x70])]<_0x13e24c;}function _0x5955c9(){const _0x108ec1=_0x402f89[_0x118fc4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x108ec1&&(!!_0x108ec1[_0x118fc4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x118fc4([0x2a]))||(!!_0x108ec1[_0x118fc4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x118fc4([0x43,0x43]))||!!_0x108ec1[_0x118fc4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x118fc4([0x50,0x50]))));}function _0x407d15(){const _0x5ee361=_0x402f89[_0x118fc4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5ee361||0x0==_0x5ee361[_0x118fc4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x44078f}=new URL(window[_0x118fc4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5ee361[_0x118fc4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44078f))return!0x0;const _0x4004fc=_0x44078f[_0x118fc4([0x73,0x70,0x6c,0x69,0x74])](_0x118fc4([0x2e]));return _0x5ee361[_0x118fc4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x87ba9f=>_0x87ba9f[_0x118fc4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x118fc4([0x2a])))[_0x118fc4([0x6d,0x61,0x70])](_0x5bb292=>_0x5bb292[_0x118fc4([0x73,0x70,0x6c,0x69,0x74])](_0x118fc4([0x2e])))[_0x118fc4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x492f5b=>_0x492f5b[_0x118fc4([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4004fc[_0x118fc4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x118fc4([0x6d,0x61,0x70])](_0x528a8c=>Array(_0x4004fc[_0x118fc4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x528a8c[_0x118fc4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x118fc4([0x66,0x69,0x6c,0x6c])](_0x528a8c[0x0]===_0x118fc4([0x2a])?_0x118fc4([0x2a]):'')[_0x118fc4([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x528a8c))[_0x118fc4([0x73,0x6f,0x6d,0x65])](_0x5c3be3=>_0x4004fc[_0x118fc4([0x65,0x76,0x65,0x72,0x79])]((_0x19fde3,_0xb0d80d)=>_0x5c3be3[_0xb0d80d]===_0x19fde3||_0x5c3be3[_0xb0d80d]===_0x118fc4([0x2a])));}function _0x1f202a(){return _0x185f42&&_0x34773f?new window[(_0x118fc4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x581095,_0x4856cb)=>{_0x185f42[_0x118fc4([0x74,0x68,0x65,0x6e])](_0x581095,_0x4856cb),_0x34773f[_0x118fc4([0x74,0x68,0x65,0x6e])](_0x532b72=>{_0x532b72!=_0x118fc4([0x56,0x61,0x6c,0x69,0x64])&&_0x581095(_0x532b72);},_0x4856cb);}):_0x185f42||_0x34773f||_0x118fc4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3a05a3(_0x303ae5,_0x2bf7ca){return new window[(_0x118fc4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19d98d=>{if(_0x56462b())return _0x19d98d(_0x118fc4([0x56,0x61,0x6c,0x69,0x64]));_0x4e7696(),_0x3f6afa[_0x118fc4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x118fc4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1c8d8e=!0x1;const _0x4e23aa=_0x36659b();function _0x1c524b(_0x4109f3){return!!_0x4109f3&&(typeof _0x4109f3===_0x118fc4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4109f3===_0x118fc4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4109f3[_0x118fc4([0x74,0x68,0x65,0x6e])]===_0x118fc4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4109f3[_0x118fc4([0x63,0x61,0x74,0x63,0x68])]===_0x118fc4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5492ba(_0x1c2d47){_0x1d6954(_0x1c2d47)[_0x118fc4([0x74,0x68,0x65,0x6e])](_0x3682f6=>{if(!_0x3682f6||_0x3682f6[_0x118fc4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x118fc4([0x6f,0x6b]))return _0x118fc4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x59cd0b(_0x25ae73(_0x4e23aa+_0x2bf7ca))!=_0x3682f6[_0x118fc4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x118fc4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x118fc4([0x56,0x61,0x6c,0x69,0x64]);})[_0x118fc4([0x74,0x68,0x65,0x6e])](_0x384502=>(_0x51bb15(),_0x384502),()=>{const _0x5fbd14=_0xe1d6a2();return null==_0x5fbd14?(_0x51bb15(),_0x118fc4([0x56,0x61,0x6c,0x69,0x64])):_0x118fc4(_0x1f42c5-_0x5fbd14>(0x174dadcd^_0x5b021f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x118fc4([0x74,0x68,0x65,0x6e])](_0x19d98d)[_0x118fc4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x19d98d(_0x118fc4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4d247=0x3377c74d^_0x5b021f;function _0x51bb15(){const _0x439c1b=_0x118fc4([0x6c,0x6c,0x63,0x74,0x2d])+_0x59cd0b(_0x25ae73(_0x303ae5)),_0x868f4=_0x1428c5(_0x59cd0b(window[_0x118fc4([0x4d,0x61,0x74,0x68])][_0x118fc4([0x63,0x65,0x69,0x6c])](_0x1f42c5/_0x4d247)));window[_0x118fc4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x118fc4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x439c1b,_0x868f4);}function _0xe1d6a2(){const _0x3f4195=_0x118fc4([0x6c,0x6c,0x63,0x74,0x2d])+_0x59cd0b(_0x25ae73(_0x303ae5)),_0xf6b9e7=window[_0x118fc4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x118fc4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3f4195);return _0xf6b9e7?window[_0x118fc4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1428c5(_0xf6b9e7),0x10)*_0x4d247:null;}function _0x1d6954(_0x4c9cec){return new window[(_0x118fc4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1ed430,_0x2f6982)=>{_0x4c9cec[_0x118fc4([0x74,0x68,0x65,0x6e])](_0x1ed430,_0x2f6982),window[_0x118fc4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2f6982,0x3340fd0d^_0x5b021f);});}}_0x3f6afa[_0x118fc4([0x6f,0x6e])](_0x118fc4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x34d74b,_0x3249e5)=>{if(_0x3249e5[0x0]!=_0x303ae5)return _0x19d98d(_0x118fc4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3249e5[0x1]={..._0x3249e5[0x1],[_0x118fc4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4e23aa};},{[_0x118fc4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x118fc4([0x68,0x69,0x67,0x68])}),_0x3f6afa[_0x118fc4([0x6f,0x6e])](_0x118fc4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x32764b=>{_0x1c524b(_0x32764b[_0x118fc4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1c8d8e=!0x0,_0x5492ba(_0x32764b[_0x118fc4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x118fc4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x118fc4([0x6c,0x6f,0x77])}),_0x55e3a6[_0x118fc4([0x74,0x68,0x65,0x6e])](()=>{_0x1c8d8e||_0x19d98d(_0x118fc4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x56462b(){return _0x3f6afa[_0x118fc4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x118fc4([0x76,0x69,0x65,0x77])][_0x118fc4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x118fc4([0x61,0x75,0x74,0x6f]);}function _0x4e7696(){_0x3f6afa[_0x118fc4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x118fc4([0x76,0x69,0x65,0x77])][_0x118fc4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x118fc4([0x61,0x75,0x74,0x6f]);}}function _0x58f66c(_0x4e1596){const _0x2ccb00=[new window[(_0x118fc4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d6195=>setTimeout(_0x5d6195,0x33481701^_0x5b021f)),_0x55e3a6[_0x118fc4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x118fc4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5848d8=>{let _0x4af92f=0x0;_0x3f6afa[_0x118fc4([0x6d,0x6f,0x64,0x65,0x6c])][_0x118fc4([0x6f,0x6e])](_0x118fc4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xa5e1ca,_0x24fb71)=>{_0x24fb71[0x0][_0x118fc4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4af92f++,_0x4af92f==(0x33412c25^_0x5b021f)&&(_0x5848d8(),_0xa5e1ca[_0x118fc4([0x6f,0x66,0x66])]());});}))];return window[_0x118fc4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x118fc4([0x72,0x61,0x63,0x65])](_0x2ccb00)[_0x118fc4([0x74,0x68,0x65,0x6e])](()=>_0x4e1596);}async function _0x38e20c(){await _0x55e3a6,_0x3f6afa[_0x118fc4([0x6d,0x6f,0x64,0x65,0x6c])][_0x118fc4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4557b4,_0x3f6afa[_0x118fc4([0x6d,0x6f,0x64,0x65,0x6c])][_0x118fc4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4557b4,_0x3f6afa[_0x118fc4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x118fc4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x31cb5b(_0x6fe7f6){const _0x547e82=_0x38f6d7();_0x3f6afa[_0x547e82]=_0x118fc4([0x63,0x61,0x73,0x65,0x43,0x68,0x61,0x6e,0x67,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x6fe7f6,_0x6fe7f6!=_0x118fc4([0x56,0x61,0x6c,0x69,0x64])&&_0x38e20c();}function _0x38f6d7(){const _0x526ae4=window[_0x118fc4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x118fc4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x118fc4([0x6e,0x6f,0x77])]())[_0x118fc4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x118fc4([0x2e]),'');let _0x493a44=_0x118fc4([0x45]);for(let _0x3a52bc=0x0;_0x3a52bc<_0x526ae4[_0x118fc4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3a52bc+=0x2){let _0x26f196=window[_0x118fc4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x526ae4[_0x118fc4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3a52bc,_0x3a52bc+0x2));_0x26f196>=_0x12b255[_0x118fc4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x26f196-=_0x12b255[_0x118fc4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x493a44+=_0x12b255[_0x26f196];}return _0x493a44;}function _0x1818cd(){const _0x2ad5ed=_0x8b5f4[_0x118fc4([0x73,0x70,0x6c,0x69,0x74])](_0x118fc4([0x2e]));if(0x3!=_0x2ad5ed[_0x118fc4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x507e4c(_0x2ad5ed[0x1]);function _0x507e4c(_0x2b1903){const _0x578502=_0x5dfded(_0x2b1903);return _0x578502&&_0xbdf1d3()?_0x578502:null;function _0xbdf1d3(){const _0x242625=_0x578502[_0x118fc4([0x6a,0x74,0x69])],_0x4f8e54=window[_0x118fc4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x242625[_0x118fc4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x242625[_0x118fc4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2909e7={..._0x578502,[_0x118fc4([0x6a,0x74,0x69])]:_0x242625[_0x118fc4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x242625[_0x118fc4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2909e7[_0x118fc4([0x76,0x63])],_0x25ae73(_0x2909e7)==_0x4f8e54;}}}async function _0x5a6bf5(){let _0x418ce8=!0x0;try{const _0x1fbaeb=_0x8b5f4[_0x118fc4([0x73,0x70,0x6c,0x69,0x74])](_0x118fc4([0x2e])),[_0x21274e,_0x29913c,_0x7e514b]=_0x1fbaeb;return _0x267663(_0x21274e),await _0x2588b5(_0x21274e,_0x29913c,_0x7e514b),_0x418ce8;}catch{return!0x1;}function _0x267663(_0x5165bb){const _0x246f5b=_0x5dfded(_0x5165bb);_0x246f5b&&_0x246f5b[_0x118fc4([0x61,0x6c,0x67])]==_0x118fc4([0x45,0x53,0x32,0x35,0x36])||(_0x418ce8=!0x1);}async function _0x2588b5(_0x36b56b,_0x2eb9a9,_0x37e471){const _0x42a969=window[_0x118fc4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x118fc4([0x66,0x72,0x6f,0x6d])](_0xc4f1e6(_0x37e471),_0x36c209=>_0x36c209[_0x118fc4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4757ec=new window[(_0x118fc4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x118fc4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x36b56b+_0x118fc4([0x2e])+_0x2eb9a9),_0x5c16d3=window[_0x118fc4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x118fc4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5c16d3)return;const _0x3e4e46=await _0x5c16d3[_0x118fc4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x118fc4([0x6a,0x77,0x6b]),_0x182963,{[_0x118fc4([0x6e,0x61,0x6d,0x65])]:_0x118fc4([0x45,0x43,0x44,0x53,0x41]),[_0x118fc4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x118fc4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x118fc4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5c16d3[_0x118fc4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x118fc4([0x6e,0x61,0x6d,0x65])]:_0x118fc4([0x45,0x43,0x44,0x53,0x41]),[_0x118fc4([0x68,0x61,0x73,0x68])]:{[_0x118fc4([0x6e,0x61,0x6d,0x65])]:_0x118fc4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3e4e46,_0x42a969,_0x4757ec)||(_0x418ce8=!0x1);}}function _0x5dfded(_0x431f69){return _0x431f69[_0x118fc4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x118fc4([0x65,0x79]))?JSON[_0x118fc4([0x70,0x61,0x72,0x73,0x65])](_0xc4f1e6(_0x431f69)):null;}function _0xc4f1e6(_0x5b44a5){return window[_0x118fc4([0x61,0x74,0x6f,0x62])](_0x5b44a5[_0x118fc4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x118fc4([0x2b]))[_0x118fc4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x118fc4([0x2f])));}function _0x25ae73(_0x177c9a){let _0x1aeee5=0x1505;function _0x37930a(_0x523f58){for(let _0x36739f=0x0;_0x36739f<_0x523f58[_0x118fc4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x36739f++){const _0x553941=_0x523f58[_0x118fc4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x36739f);_0x1aeee5=(_0x1aeee5<<0x5)+_0x1aeee5+_0x553941,_0x1aeee5&=_0x1aeee5;}}function _0x3a0beb(_0x43f17f){Array[_0x118fc4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x43f17f)?_0x43f17f[_0x118fc4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3a0beb):_0x43f17f&&typeof _0x43f17f==_0x118fc4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x118fc4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x43f17f)[_0x118fc4([0x73,0x6f,0x72,0x74])]()[_0x118fc4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x167d82,_0x2c1996])=>{_0x37930a(_0x167d82),_0x3a0beb(_0x2c1996);}):_0x37930a(window[_0x118fc4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x43f17f));}return _0x3a0beb(_0x177c9a),_0x1aeee5>>>0x0;}function _0x59cd0b(_0xe9bc5d){return _0xe9bc5d[_0x118fc4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x118fc4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x118fc4([0x30]));}function _0x1428c5(_0x327f02){return _0x327f02[_0x118fc4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x118fc4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x118fc4([0x6a,0x6f,0x69,0x6e])]('');}function _0x4557b4(){}function _0x118fc4(_0x48a3cc){return _0x48a3cc['map'](_0x15d6ab=>String['fromCharCode'](_0x15d6ab))['join']('');}_0x31cb5b(await _0x40cc0e());}(this);}['_announceCaseChangeOperation'](_0x640725){const {ui:_0xb341ed,locale:_0x1727ed}=this['editor'],_0x3001eb=m(_0x1727ed)['find'](_0x3ee2f1=>_0x3ee2f1['commandName']===_0x640725)['label']['toLowerCase']();_0xb341ed['ariaLiveAnnouncer']['announce'](w(_0x1727ed,'Changed\x20case\x20to\x20%0',_0x3001eb));}}function m(_0x3df929){return[{'label':w(_0x3df929,'UPPERCASE'),'commandName':'changeCaseUpper'},{'label':w(_0x3df929,'lowercase'),'commandName':'changeCaseLower'},{'label':w(_0x3df929,'Title\x20Case'),'commandName':'changeCaseTitle'}];}class C extends _0x183f4a{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CaseChangeUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x244e8d=this['editor'];this['_registerComponents'](),_0x244e8d['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':w(_0x244e8d['locale'],'Change\x20text\x20case'),'keystroke':'Shift+f3','mayRequireFn':!0x0}]}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x10df0c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x31ed36;for(const _0x16a147 in _0x10df0c){const _0xadd400=_0x16a147,_0x400219=_0x10df0c[_0xadd400];if('caseChangeLicenseKeyValid'==_0x400219||'caseChangeLicenseKeyInvalid'==_0x400219||'caseChangeLicenseKeyExpired'==_0x400219||'caseChangeLicenseKeyDomainLimit'==_0x400219||'caseChangeLicenseKeyNotAllowed'==_0x400219||'caseChangeLicenseKeyEvaluationLimit'==_0x400219||'caseChangeLicenseKeyUsageLimit'==_0x400219){delete _0x10df0c[_0xadd400],_0x31ed36=_0x400219,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'caseChangeLicenseKeyInvalid'==_0x31ed36&&_0x10df0c['_showLicenseError']('invalid'),'caseChangeLicenseKeyExpired'==_0x31ed36&&_0x10df0c['_showLicenseError']('expired'),'caseChangeLicenseKeyDomainLimit'==_0x31ed36&&_0x10df0c['_showLicenseError']('domainLimit'),'caseChangeLicenseKeyNotAllowed'==_0x31ed36&&_0x10df0c['_showLicenseError']('featureNotAllowed','CaseChange'),'caseChangeLicenseKeyEvaluationLimit'==_0x31ed36&&_0x10df0c['_showLicenseError']('evaluationLimit'),'caseChangeLicenseKeyUsageLimit'==_0x31ed36&&_0x10df0c['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_registerComponents'](){const _0x393b5d=this['editor'],{itemDefinitions:_0x56f86e,commands:_0x1002f5}=this['_getListItemDefinitionsAndCommands']();_0x393b5d['ui']['componentFactory']['add']('caseChange',()=>this['_createDropdownView'](_0x56f86e,_0x1002f5)),_0x393b5d['ui']['componentFactory']['add']('menuBar:caseChange',()=>this['_createMenuBarMenuView'](_0x56f86e,_0x1002f5));}['_createMenuBarMenuView'](_0x570b35,_0x17c565){const _0x115059=this['editor'],_0x2d2707=_0x115059['locale'],_0x136f55=new _0x4ceccb(_0x2d2707),_0x418bc1=new _0x43b462(_0x2d2707);_0x418bc1['set']({'ariaLabel':w(_0x2d2707,'Case\x20change'),'role':'menu'}),this['_setButtonProperties'](_0x136f55['buttonView']),_0x136f55['bind']('isEnabled')['toMany'](_0x17c565,'isEnabled',(..._0x5550d9)=>_0x5550d9['some'](_0x3412fb=>_0x3412fb));for(const _0x10d73e of _0x570b35){const _0x2e274e=new _0x2aa156(_0x2d2707,_0x136f55),_0x1bdd57=new _0x4d111a(_0x2d2707);_0x1bdd57['delegate']('execute')['to'](_0x136f55),_0x1bdd57['bind'](...Object['keys'](_0x10d73e['model']))['to'](_0x10d73e['model']),_0x1bdd57['on']('execute',()=>{_0x115059['execute'](_0x10d73e['model']['commandName']),_0x115059['editing']['view']['focus']();}),_0x2e274e['children']['add'](_0x1bdd57),_0x418bc1['items']['add'](_0x2e274e);}return _0x136f55['panelView']['children']['add'](_0x418bc1),_0x136f55;}['_createDropdownView'](_0xa8a880,_0x1218c8){const _0x312b31=this['editor'],_0x538524=_0x2e95e1(_0x312b31['locale']);return this['_setButtonProperties'](_0x538524['buttonView']),_0x538524['buttonView']['set']({'tooltip':!0x0}),_0x538524['extendTemplate']({'attributes':{'class':['ck-case-change-dropdown']}}),_0x70c616(_0x538524,_0xa8a880,{'ariaLabel':w(_0x312b31['locale'],'Case\x20change'),'role':'menu'}),_0x538524['bind']('isEnabled')['toMany'](_0x1218c8,'isEnabled',(..._0x587223)=>_0x587223['some'](_0x202abc=>_0x202abc)),this['listenTo'](_0x538524,'execute',_0x39d56d=>{_0x312b31['execute'](_0x39d56d['source']['commandName']),_0x312b31['editing']['view']['focus']();}),_0x538524;}['_setButtonProperties'](_0x1d6511){const _0x482e62=this['editor'];_0x1d6511['set']({'label':w(_0x482e62['locale'],'Case\x20change'),'icon':_0x154f71,'keystroke':'Shift+F3'});}['_getListItemDefinitionsAndCommands'](){const _0x4ba705=new _0x27dad7(),_0x35bffe=[];for(const _0x955b4e of m(this['editor']['locale'])){const _0x4ba44d=this['editor']['commands']['get'](_0x955b4e['commandName']),_0x10e386=new _0x10f1b5({'commandName':_0x955b4e['commandName'],'label':_0x955b4e['label'],'role':'menuitemradio','withText':!0x0});_0x10e386['bind']('isEnabled')['to'](_0x4ba44d,'isEnabled'),_0x4ba705['add']({'type':'button','model':_0x10e386}),_0x35bffe['push'](_0x4ba44d);}return{'itemDefinitions':_0x4ba705,'commands':_0x35bffe};}}class y extends _0x183f4a{static get['requires'](){return[g,C];}static get['pluginName'](){return'CaseChange';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{y as CaseChange,d as CaseChangeCommand,g as CaseChangeEditing,C as CaseChangeUI};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-case-change",
3
- "version": "48.0.0-alpha.0",
3
+ "version": "48.0.0-alpha.1",
4
4
  "description": "Case change feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -36,11 +36,11 @@
36
36
  "./package.json": "./package.json"
37
37
  },
38
38
  "dependencies": {
39
- "@ckeditor/ckeditor5-core": "48.0.0-alpha.0",
40
- "@ckeditor/ckeditor5-engine": "48.0.0-alpha.0",
41
- "@ckeditor/ckeditor5-icons": "48.0.0-alpha.0",
42
- "@ckeditor/ckeditor5-ui": "48.0.0-alpha.0",
43
- "@ckeditor/ckeditor5-utils": "48.0.0-alpha.0"
39
+ "@ckeditor/ckeditor5-core": "48.0.0-alpha.1",
40
+ "@ckeditor/ckeditor5-engine": "48.0.0-alpha.1",
41
+ "@ckeditor/ckeditor5-icons": "48.0.0-alpha.1",
42
+ "@ckeditor/ckeditor5-ui": "48.0.0-alpha.1",
43
+ "@ckeditor/ckeditor5-utils": "48.0.0-alpha.1"
44
44
  },
45
45
  "files": [
46
46
  "dist",