@ckeditor/ckeditor5-case-change 48.1.0-alpha.3 → 48.1.0-alpha.5

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 _0x3cad99,Plugin as _0x563391}from'@ckeditor/ckeditor5-core/dist/index.js';import{uid as _0xf72c1,Collection as _0x1bc644}from'@ckeditor/ckeditor5-utils/dist/index.js';import{MenuBarMenuView as _0x32a161,MenuBarMenuListView as _0x29fe81,MenuBarMenuListItemView as _0x445700,MenuBarMenuListItemButtonView as _0x5b65f7,createDropdown as _0x50fef3,addListToDropdown as _0x43833b,UIModel as _0x371bc2}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconCaseChange as _0x172d51}from'@ckeditor/ckeditor5-icons/dist/index.js';class d extends _0x3cad99{['_transformCallback'];constructor(_0x4a8be7,_0x1898b5){super(_0x4a8be7),this['_transformCallback']=_0x1898b5;}['execute'](){const _0x217270=this['editor']['model'],_0x14a2e8=Array['from'](this['_getAffectedRanges']()),_0x328064=Array['from'](_0x217270['document']['selection']['getRanges']());_0x217270['change'](_0xf82b7=>{for(const _0xafc95d of _0x14a2e8)this['_modifyContent'](_0xafc95d,_0xf82b7);_0xf82b7['setSelection'](_0x328064);});}['refresh'](){for(const _0x566421 of this['_getAffectedRanges']())for(const _0x2abea1 of _0x566421)if(_0x2abea1['item']['is']('$textProxy'))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['_getAffectedRanges'](){const _0x3f42c3=this['editor']['model'],_0x753ca5=_0x3f42c3['document']['selection'];if(_0x753ca5['isCollapsed']){const _0x4ad7fb=this['_findAncestorTextBlock'](_0x753ca5['getFirstPosition']()['parent']);return _0x4ad7fb?[_0x3f42c3['createRangeIn'](_0x4ad7fb)]:[];}return _0x753ca5['getRanges']();}['_modifyContent'](_0x126daa,_0x15e016){for(const _0xaf1183 of this['_getElementsAllowingText'](_0x126daa)){const _0x543241=this['_getElementTextContent'](_0xaf1183),_0x5c4c80=this['_transformCallback'](_0x543241);for(const _0x2fdb82 of this['_getTextNodesRangeLimited'](_0xaf1183,_0x126daa))this['_replaceTextNodeData'](_0x2fdb82,_0x5c4c80,_0x15e016);}}['_findAncestorTextBlock'](_0x4ca10f){const _0x118fc6=this['editor']['model']['schema'];if(_0x4ca10f['is']('element')&&_0x118fc6['checkChild'](_0x4ca10f,'$text'))return _0x4ca10f;const _0x4cdb06=_0x4ca10f['parent'];return!_0x4cdb06||_0x118fc6['isLimit'](_0x4ca10f)?null:this['_findAncestorTextBlock'](_0x4cdb06);}*['_getElementsAllowingText'](_0x47d706){const _0x2ffe81=new Set();for(const {item:_0x4967c1}of _0x47d706['getWalker']()){const _0x489117=this['_findAncestorTextBlock'](_0x4967c1);_0x489117&&!_0x2ffe81['has'](_0x489117)&&(_0x2ffe81['add'](_0x489117),yield _0x489117);}}['_getElementTextContent'](_0x5c299d){return Array['from'](_0x5c299d['getChildren']())['reduce']((_0xf45185,_0x500582)=>_0xf45185+(_0x500582['is']('$text')?_0x500582['data']:'\x20'),'');}*['_getTextNodesRangeLimited'](_0x580b3f,_0x172077){const _0x3a0074=_0x172077['getIntersection'](this['editor']['model']['createRangeIn'](_0x580b3f));if(_0x3a0074){for(const _0x515d47 of _0x3a0074['getItems']())_0x515d47['is']('$textProxy')&&_0x515d47['parent']==_0x580b3f&&(yield _0x515d47);}}['_replaceTextNodeData'](_0x32d008,_0xfecd7d,_0xbf3dd6){const _0x451279=_0xfecd7d['substring'](_0x32d008['startOffset'],_0x32d008['endOffset']);if(_0x451279===_0x32d008['data'])return;const _0x106b2b=_0x32d008['getAttributes']();this['editor']['model']['insertContent'](_0xbf3dd6['createText'](_0x451279,_0x106b2b),_0xbf3dd6['createSelection'](_0xbf3dd6['createRangeOn'](_0x32d008)));}}function w(_0x52c55e,_0x21fc72,..._0x5779d7){const t=_0x52c55e['t'];switch(_0x21fc72){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',..._0x5779d7);default:return _0x21fc72;}}class g extends _0x563391{['_currentCommandIndex']=0x0;static get['pluginName'](){return'CaseChangeEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x55034b=this['editor'],_0x2221ac=_0x55034b['locale']['contentLanguage'],_0x8e4eb6=function(_0x1591fb=[]){return'function'==typeof _0x1591fb?_0x1591fb:(_0x156c59,{wordIndex:_0x1b9d0b})=>_0x1b9d0b>0x0&&_0x1591fb['includes'](_0x156c59);}(_0x55034b['config']['get']('caseChange.titleCase.excludeWords')),_0x491057={'changeCaseUpper':new d(_0x55034b,_0x15cc2a=>_0x15cc2a['toLocaleUpperCase'](_0x2221ac)),'changeCaseLower':new d(_0x55034b,_0x2d1ac3=>_0x2d1ac3['toLocaleLowerCase'](_0x2221ac)),'changeCaseTitle':new d(_0x55034b,_0x28dd1a=>function(_0x1cb194,_0xdea985,_0x5f4911){return function(_0xfe97bb,_0x4a2960){let _0x52f520='',_0x36860b=0x0,_0x21561f=0x0;for(const _0x578d60 of _0xfe97bb['matchAll'](/ +/g)){const _0x32de9c=_0x578d60['index'],_0x4a4fb2=_0xfe97bb['substring'](_0x36860b,_0x32de9c);_0x4a4fb2['length']&&(_0x52f520+=_0x4a2960(_0x4a4fb2,_0x36860b,_0x21561f++)),_0x52f520+=_0x578d60[0x0],_0x36860b=_0x32de9c+_0x578d60[0x0]['length'];}const _0x4b40fd=_0xfe97bb['substring'](_0x36860b);return _0x4b40fd['length']&&(_0x52f520+=_0x4a2960(_0x4b40fd,_0x36860b,_0x21561f)),_0x52f520;}(_0x1cb194,(_0x1f087c,_0x310c75,_0x3dd684)=>{const _0x5b4293=_0x1f087c['toLocaleLowerCase'](_0x5f4911);return _0xdea985(_0x5b4293,{'charOffset':_0x310c75,'wordIndex':_0x3dd684,'blockText':_0x1cb194})?_0x5b4293:_0x5b4293['replace'](/(?:^|[^\p{L}\d'])\p{L}/gu,_0x22b21b=>_0x22b21b['toLocaleUpperCase'](_0x5f4911));});}(_0x28dd1a,_0x8e4eb6,_0x2221ac))};for(const [_0x34e375,_0x5e4b97]of Object['entries'](_0x491057))_0x55034b['commands']['add'](_0x34e375,_0x5e4b97),_0x5e4b97['on']('execute',()=>{this['_announceCaseChangeOperation'](_0x34e375);});this['listenTo'](_0x55034b['editing']['view']['document'],'selectionChange',()=>{this['_currentCommandIndex']=0x0;}),_0x55034b['keystrokes']['set']('shift+f3',(_0x137764,_0x544bc4)=>{const _0x53b3d4=m(this['editor']['locale']),_0x381440=_0x53b3d4[this['_currentCommandIndex']%_0x53b3d4['length']]['commandName'];_0x55034b['execute'](_0x381440),this['_currentCommandIndex']++,_0x544bc4();});}['afterInit'](){!async function(_0x530405){const _0x4b91d8=_0x121e0c([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]),_0x58b12d=0x334129cd,_0x1e5d9c=0x3346a05d^_0x58b12d,_0x4a027d=window[_0x121e0c([0x44,0x61,0x74,0x65])][_0x121e0c([0x6e,0x6f,0x77])](),_0x2d7fd8=_0x530405[_0x121e0c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x318c29=new window[(_0x121e0c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47c625=>{_0x2d7fd8[_0x121e0c([0x6f,0x6e,0x63,0x65])](_0x121e0c([0x72,0x65,0x61,0x64,0x79]),_0x47c625);}),_0x44bc81={[_0x121e0c([0x6b,0x74,0x79])]:_0x121e0c([0x45,0x43]),[_0x121e0c([0x75,0x73,0x65])]:_0x121e0c([0x73,0x69,0x67]),[_0x121e0c([0x63,0x72,0x76])]:_0x121e0c([0x50,0x2d,0x32,0x35,0x36]),[_0x121e0c([0x78])]:_0x121e0c([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]),[_0x121e0c([0x79])]:_0x121e0c([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]),[_0x121e0c([0x61,0x6c,0x67])]:_0x121e0c([0x45,0x53,0x32,0x35,0x36])},_0x1945ad=_0x2d7fd8[_0x121e0c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x121e0c([0x67,0x65,0x74])](_0x121e0c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4e257c(){let _0x29b080,_0xbce06=null,_0x26d5ed=null;try{if(_0x1945ad==_0x121e0c([0x47,0x50,0x4c]))return _0x121e0c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x29b080=_0x54a72e(),!_0x29b080)return _0x121e0c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x29b080[_0x121e0c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x26d5ed=_0x58db40(_0x29b080[_0x121e0c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x29b080[_0x121e0c([0x6a,0x74,0x69])])),await _0x1d61fa()?_0x150cfc()?_0x737729()?_0x121e0c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xf81d18()?(_0x29b080[_0x121e0c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x121e0c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xbce06=_0x3e44f4(_0x121e0c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x78de3f()):_0x121e0c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x121e0c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x121e0c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x121e0c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x737729(){const _0x550c13=[_0x121e0c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x121e0c([0x74,0x72,0x69,0x61,0x6c])][_0x121e0c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29b080[_0x121e0c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4a027d/0x3e8:0xe10*_0x1e5d9c;return _0x29b080[_0x121e0c([0x65,0x78,0x70])]<_0x550c13;}function _0x150cfc(){const _0x3ee707=_0x29b080[_0x121e0c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3ee707&&(!!_0x3ee707[_0x121e0c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x121e0c([0x2a]))||(!!_0x3ee707[_0x121e0c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x121e0c([0x43,0x43]))||!!_0x3ee707[_0x121e0c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x121e0c([0x50,0x50]))));}function _0xf81d18(){const _0x1c912a=_0x29b080[_0x121e0c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1c912a||0x0==_0x1c912a[_0x121e0c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x266f20}=new URL(window[_0x121e0c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1c912a[_0x121e0c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x266f20))return!0x0;const _0x3f5380=_0x266f20[_0x121e0c([0x73,0x70,0x6c,0x69,0x74])](_0x121e0c([0x2e]));return _0x1c912a[_0x121e0c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1dd9d0=>_0x1dd9d0[_0x121e0c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x121e0c([0x2a])))[_0x121e0c([0x6d,0x61,0x70])](_0x497a96=>_0x497a96[_0x121e0c([0x73,0x70,0x6c,0x69,0x74])](_0x121e0c([0x2e])))[_0x121e0c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xf55769=>_0xf55769[_0x121e0c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3f5380[_0x121e0c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x121e0c([0x6d,0x61,0x70])](_0x3e4a51=>Array(_0x3f5380[_0x121e0c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3e4a51[_0x121e0c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x121e0c([0x66,0x69,0x6c,0x6c])](_0x3e4a51[0x0]===_0x121e0c([0x2a])?_0x121e0c([0x2a]):'')[_0x121e0c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3e4a51))[_0x121e0c([0x73,0x6f,0x6d,0x65])](_0x1a356c=>_0x3f5380[_0x121e0c([0x65,0x76,0x65,0x72,0x79])]((_0x6e5bfb,_0x5cc251)=>_0x1a356c[_0x5cc251]===_0x6e5bfb||_0x1a356c[_0x5cc251]===_0x121e0c([0x2a])));}function _0x78de3f(){return _0xbce06&&_0x26d5ed?new window[(_0x121e0c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x74d665,_0x2396bb)=>{_0xbce06[_0x121e0c([0x74,0x68,0x65,0x6e])](_0x74d665,_0x2396bb),_0x26d5ed[_0x121e0c([0x74,0x68,0x65,0x6e])](_0x37322b=>{_0x37322b!=_0x121e0c([0x56,0x61,0x6c,0x69,0x64])&&_0x74d665(_0x37322b);},_0x2396bb);}):_0xbce06||_0x26d5ed||_0x121e0c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x58db40(_0x386e72,_0x11a187){return new window[(_0x121e0c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x14a1d3=>{if(_0x3e4924())return _0x14a1d3(_0x121e0c([0x56,0x61,0x6c,0x69,0x64]));_0x4c2d46(),_0x2d7fd8[_0x121e0c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x121e0c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x85d3d2=!0x1;const _0x4c7785=_0xf72c1();function _0x484cad(_0x855ac0){return!!_0x855ac0&&(typeof _0x855ac0===_0x121e0c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x855ac0===_0x121e0c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x855ac0[_0x121e0c([0x74,0x68,0x65,0x6e])]===_0x121e0c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x855ac0[_0x121e0c([0x63,0x61,0x74,0x63,0x68])]===_0x121e0c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5a5153(_0x3a1593){_0x45974d(_0x3a1593)[_0x121e0c([0x74,0x68,0x65,0x6e])](_0x3cbe83=>{if(!_0x3cbe83||_0x3cbe83[_0x121e0c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x121e0c([0x6f,0x6b]))return _0x121e0c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xe35a15(_0x4b898c(_0x4c7785+_0x11a187))!=_0x3cbe83[_0x121e0c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x121e0c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x121e0c([0x56,0x61,0x6c,0x69,0x64]);})[_0x121e0c([0x74,0x68,0x65,0x6e])](_0x485d90=>(_0x41ab25(),_0x485d90),()=>{const _0x137cac=_0x57249a();return null==_0x137cac?(_0x41ab25(),_0x121e0c([0x56,0x61,0x6c,0x69,0x64])):_0x121e0c(_0x4a027d-_0x137cac>(0x174dadcd^_0x58b12d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x121e0c([0x74,0x68,0x65,0x6e])](_0x14a1d3)[_0x121e0c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x14a1d3(_0x121e0c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2dde0b=0x3377c74d^_0x58b12d;function _0x41ab25(){const _0x214ed8=_0x121e0c([0x6c,0x6c,0x63,0x74,0x2d])+_0xe35a15(_0x4b898c(_0x386e72)),_0x5b9a3a=_0x2141bf(_0xe35a15(window[_0x121e0c([0x4d,0x61,0x74,0x68])][_0x121e0c([0x63,0x65,0x69,0x6c])](_0x4a027d/_0x2dde0b)));window[_0x121e0c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x121e0c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x214ed8,_0x5b9a3a);}function _0x57249a(){const _0x46a6ed=_0x121e0c([0x6c,0x6c,0x63,0x74,0x2d])+_0xe35a15(_0x4b898c(_0x386e72)),_0xc5837e=window[_0x121e0c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x121e0c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x46a6ed);return _0xc5837e?window[_0x121e0c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2141bf(_0xc5837e),0x10)*_0x2dde0b:null;}function _0x45974d(_0x57c4ca){return new window[(_0x121e0c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4a1927,_0x3bc9db)=>{_0x57c4ca[_0x121e0c([0x74,0x68,0x65,0x6e])](_0x4a1927,_0x3bc9db),window[_0x121e0c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3bc9db,0x3340fd0d^_0x58b12d);});}}_0x2d7fd8[_0x121e0c([0x6f,0x6e])](_0x121e0c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x11f751,_0x18a16f)=>{if(_0x18a16f[0x0]!=_0x386e72)return _0x14a1d3(_0x121e0c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x18a16f[0x1]={..._0x18a16f[0x1],[_0x121e0c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4c7785};},{[_0x121e0c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x121e0c([0x68,0x69,0x67,0x68])}),_0x2d7fd8[_0x121e0c([0x6f,0x6e])](_0x121e0c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4defd1=>{_0x484cad(_0x4defd1[_0x121e0c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x85d3d2=!0x0,_0x5a5153(_0x4defd1[_0x121e0c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x121e0c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x121e0c([0x6c,0x6f,0x77])}),_0x318c29[_0x121e0c([0x74,0x68,0x65,0x6e])](()=>{_0x85d3d2||_0x14a1d3(_0x121e0c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3e4924(){return _0x2d7fd8[_0x121e0c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x121e0c([0x76,0x69,0x65,0x77])][_0x121e0c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x121e0c([0x61,0x75,0x74,0x6f]);}function _0x4c2d46(){_0x2d7fd8[_0x121e0c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x121e0c([0x76,0x69,0x65,0x77])][_0x121e0c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x121e0c([0x61,0x75,0x74,0x6f]);}}function _0x3e44f4(_0x3e8fbe){const _0x2e83e4=[new window[(_0x121e0c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16ad55=>setTimeout(_0x16ad55,0x33481701^_0x58b12d)),_0x318c29[_0x121e0c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x121e0c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26ba11=>{let _0x872ca0=0x0;_0x2d7fd8[_0x121e0c([0x6d,0x6f,0x64,0x65,0x6c])][_0x121e0c([0x6f,0x6e])](_0x121e0c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x517805,_0x42b795)=>{_0x42b795[0x0][_0x121e0c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x872ca0++,_0x872ca0==(0x33412c25^_0x58b12d)&&(_0x26ba11(),_0x517805[_0x121e0c([0x6f,0x66,0x66])]());});}))];return window[_0x121e0c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x121e0c([0x72,0x61,0x63,0x65])](_0x2e83e4)[_0x121e0c([0x74,0x68,0x65,0x6e])](()=>_0x3e8fbe);}async function _0x1ad641(){await _0x318c29,_0x2d7fd8[_0x121e0c([0x6d,0x6f,0x64,0x65,0x6c])][_0x121e0c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x54bc99,_0x2d7fd8[_0x121e0c([0x6d,0x6f,0x64,0x65,0x6c])][_0x121e0c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x54bc99,_0x2d7fd8[_0x121e0c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x121e0c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x105fdf(_0x1bf119){const _0x13dc0a=_0x590439();_0x2d7fd8[_0x13dc0a]=_0x121e0c([0x63,0x61,0x73,0x65,0x43,0x68,0x61,0x6e,0x67,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1bf119,_0x1bf119!=_0x121e0c([0x56,0x61,0x6c,0x69,0x64])&&_0x1ad641();}function _0x590439(){const _0x7845c7=window[_0x121e0c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x121e0c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x121e0c([0x6e,0x6f,0x77])]())[_0x121e0c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x121e0c([0x2e]),'');let _0x2d27ed=_0x121e0c([0x45]);for(let _0x26f36d=0x0;_0x26f36d<_0x7845c7[_0x121e0c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x26f36d+=0x2){let _0x158ae3=window[_0x121e0c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x7845c7[_0x121e0c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x26f36d,_0x26f36d+0x2));_0x158ae3>=_0x4b91d8[_0x121e0c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x158ae3-=_0x4b91d8[_0x121e0c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2d27ed+=_0x4b91d8[_0x158ae3];}return _0x2d27ed;}function _0x54a72e(){const _0x5b1a7e=_0x1945ad[_0x121e0c([0x73,0x70,0x6c,0x69,0x74])](_0x121e0c([0x2e]));if(0x3!=_0x5b1a7e[_0x121e0c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5119be(_0x5b1a7e[0x1]);function _0x5119be(_0x195f3a){const _0x3a4b92=_0x21a27d(_0x195f3a);return _0x3a4b92&&_0x1bfc52()?_0x3a4b92:null;function _0x1bfc52(){const _0xbaedfa=_0x3a4b92[_0x121e0c([0x6a,0x74,0x69])],_0x2bd4d4=window[_0x121e0c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xbaedfa[_0x121e0c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xbaedfa[_0x121e0c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x17c252={..._0x3a4b92,[_0x121e0c([0x6a,0x74,0x69])]:_0xbaedfa[_0x121e0c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xbaedfa[_0x121e0c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x17c252[_0x121e0c([0x76,0x63])],_0x4b898c(_0x17c252)==_0x2bd4d4;}}}async function _0x1d61fa(){let _0x101337=!0x0;try{const _0x40d935=_0x1945ad[_0x121e0c([0x73,0x70,0x6c,0x69,0x74])](_0x121e0c([0x2e])),[_0x2a3629,_0x5687d4,_0x560dba]=_0x40d935;return _0x5c79f3(_0x2a3629),await _0x531ed3(_0x2a3629,_0x5687d4,_0x560dba),_0x101337;}catch{return!0x1;}function _0x5c79f3(_0x4b2c21){const _0x3008d2=_0x21a27d(_0x4b2c21);_0x3008d2&&_0x3008d2[_0x121e0c([0x61,0x6c,0x67])]==_0x121e0c([0x45,0x53,0x32,0x35,0x36])||(_0x101337=!0x1);}async function _0x531ed3(_0x51ab31,_0x3b9316,_0x898504){const _0x1ffb8a=window[_0x121e0c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x121e0c([0x66,0x72,0x6f,0x6d])](_0x3f46c8(_0x898504),_0x1c7883=>_0x1c7883[_0x121e0c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x506b1e=new window[(_0x121e0c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x121e0c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x51ab31+_0x121e0c([0x2e])+_0x3b9316),_0x47bc09=window[_0x121e0c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x121e0c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x47bc09)return;const _0x48c944=await _0x47bc09[_0x121e0c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x121e0c([0x6a,0x77,0x6b]),_0x44bc81,{[_0x121e0c([0x6e,0x61,0x6d,0x65])]:_0x121e0c([0x45,0x43,0x44,0x53,0x41]),[_0x121e0c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x121e0c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x121e0c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x47bc09[_0x121e0c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x121e0c([0x6e,0x61,0x6d,0x65])]:_0x121e0c([0x45,0x43,0x44,0x53,0x41]),[_0x121e0c([0x68,0x61,0x73,0x68])]:{[_0x121e0c([0x6e,0x61,0x6d,0x65])]:_0x121e0c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x48c944,_0x1ffb8a,_0x506b1e)||(_0x101337=!0x1);}}function _0x21a27d(_0x47fe3c){return _0x47fe3c[_0x121e0c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x121e0c([0x65,0x79]))?JSON[_0x121e0c([0x70,0x61,0x72,0x73,0x65])](_0x3f46c8(_0x47fe3c)):null;}function _0x3f46c8(_0x429d9e){return window[_0x121e0c([0x61,0x74,0x6f,0x62])](_0x429d9e[_0x121e0c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x121e0c([0x2b]))[_0x121e0c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x121e0c([0x2f])));}function _0x4b898c(_0x277288){let _0x3eadaa=0x1505;function _0x3d6fad(_0xe17bcc){for(let _0x41a0cf=0x0;_0x41a0cf<_0xe17bcc[_0x121e0c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x41a0cf++){const _0xe27bca=_0xe17bcc[_0x121e0c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x41a0cf);_0x3eadaa=(_0x3eadaa<<0x5)+_0x3eadaa+_0xe27bca,_0x3eadaa&=_0x3eadaa;}}function _0x31eb42(_0x53c163){Array[_0x121e0c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x53c163)?_0x53c163[_0x121e0c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x31eb42):_0x53c163&&typeof _0x53c163==_0x121e0c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x121e0c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x53c163)[_0x121e0c([0x73,0x6f,0x72,0x74])]()[_0x121e0c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x39ba3a,_0xba8b71])=>{_0x3d6fad(_0x39ba3a),_0x31eb42(_0xba8b71);}):_0x3d6fad(window[_0x121e0c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x53c163));}return _0x31eb42(_0x277288),_0x3eadaa>>>0x0;}function _0xe35a15(_0x570b43){return _0x570b43[_0x121e0c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x121e0c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x121e0c([0x30]));}function _0x2141bf(_0x156854){return _0x156854[_0x121e0c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x121e0c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x121e0c([0x6a,0x6f,0x69,0x6e])]('');}function _0x54bc99(){}function _0x121e0c(_0x3d9ab9){return _0x3d9ab9['map'](_0x10a787=>String['fromCharCode'](_0x10a787))['join']('');}_0x105fdf(await _0x4e257c());}(this);}['_announceCaseChangeOperation'](_0x26589e){const {ui:_0x59d800,locale:_0x4924ba}=this['editor'],_0x3530b2=m(_0x4924ba)['find'](_0x75750f=>_0x75750f['commandName']===_0x26589e)['label']['toLowerCase']();_0x59d800['ariaLiveAnnouncer']['announce'](w(_0x4924ba,'Changed\x20case\x20to\x20%0',_0x3530b2));}}function m(_0x44d1ca){return[{'label':w(_0x44d1ca,'UPPERCASE'),'commandName':'changeCaseUpper'},{'label':w(_0x44d1ca,'lowercase'),'commandName':'changeCaseLower'},{'label':w(_0x44d1ca,'Title\x20Case'),'commandName':'changeCaseTitle'}];}class C extends _0x563391{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CaseChangeUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4ea7c6=this['editor'];this['_registerComponents'](),_0x4ea7c6['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':w(_0x4ea7c6['locale'],'Change\x20text\x20case'),'keystroke':'Shift+f3','mayRequireFn':!0x0}]}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x54de94=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x13643a;for(const _0x370f05 in _0x54de94){const _0x377f25=_0x370f05,_0x41c71b=_0x54de94[_0x377f25];if('caseChangeLicenseKeyValid'==_0x41c71b||'caseChangeLicenseKeyInvalid'==_0x41c71b||'caseChangeLicenseKeyExpired'==_0x41c71b||'caseChangeLicenseKeyDomainLimit'==_0x41c71b||'caseChangeLicenseKeyNotAllowed'==_0x41c71b||'caseChangeLicenseKeyEvaluationLimit'==_0x41c71b||'caseChangeLicenseKeyUsageLimit'==_0x41c71b){delete _0x54de94[_0x377f25],_0x13643a=_0x41c71b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'caseChangeLicenseKeyInvalid'==_0x13643a&&_0x54de94['_showLicenseError']('invalid'),'caseChangeLicenseKeyExpired'==_0x13643a&&_0x54de94['_showLicenseError']('expired'),'caseChangeLicenseKeyDomainLimit'==_0x13643a&&_0x54de94['_showLicenseError']('domainLimit'),'caseChangeLicenseKeyNotAllowed'==_0x13643a&&_0x54de94['_showLicenseError']('featureNotAllowed','CaseChange'),'caseChangeLicenseKeyEvaluationLimit'==_0x13643a&&_0x54de94['_showLicenseError']('evaluationLimit'),'caseChangeLicenseKeyUsageLimit'==_0x13643a&&_0x54de94['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_registerComponents'](){const _0x5f0a76=this['editor'],{itemDefinitions:_0x5784fc,commands:_0x4bd3ee}=this['_getListItemDefinitionsAndCommands']();_0x5f0a76['ui']['componentFactory']['add']('caseChange',()=>this['_createDropdownView'](_0x5784fc,_0x4bd3ee)),_0x5f0a76['ui']['componentFactory']['add']('menuBar:caseChange',()=>this['_createMenuBarMenuView'](_0x5784fc,_0x4bd3ee));}['_createMenuBarMenuView'](_0x2819c9,_0x390fc8){const _0x14d20f=this['editor'],_0x11256f=_0x14d20f['locale'],_0x5295b9=new _0x32a161(_0x11256f),_0x31e589=new _0x29fe81(_0x11256f);_0x31e589['set']({'ariaLabel':w(_0x11256f,'Case\x20change'),'role':'menu'}),this['_setButtonProperties'](_0x5295b9['buttonView']),_0x5295b9['bind']('isEnabled')['toMany'](_0x390fc8,'isEnabled',(..._0x45f0d6)=>_0x45f0d6['some'](_0x38b9c2=>_0x38b9c2));for(const _0x303cdd of _0x2819c9){const _0x1aaa3c=new _0x445700(_0x11256f,_0x5295b9),_0x9e0ca3=new _0x5b65f7(_0x11256f);_0x9e0ca3['delegate']('execute')['to'](_0x5295b9),_0x9e0ca3['bind'](...Object['keys'](_0x303cdd['model']))['to'](_0x303cdd['model']),_0x9e0ca3['on']('execute',()=>{_0x14d20f['execute'](_0x303cdd['model']['commandName']),_0x14d20f['editing']['view']['focus']();}),_0x1aaa3c['children']['add'](_0x9e0ca3),_0x31e589['items']['add'](_0x1aaa3c);}return _0x5295b9['panelView']['children']['add'](_0x31e589),_0x5295b9;}['_createDropdownView'](_0x1ef24c,_0x15f987){const _0x4b2a30=this['editor'],_0x21be26=_0x50fef3(_0x4b2a30['locale']);return this['_setButtonProperties'](_0x21be26['buttonView']),_0x21be26['buttonView']['set']({'tooltip':!0x0}),_0x21be26['extendTemplate']({'attributes':{'class':['ck-case-change-dropdown']}}),_0x43833b(_0x21be26,_0x1ef24c,{'ariaLabel':w(_0x4b2a30['locale'],'Case\x20change'),'role':'menu'}),_0x21be26['bind']('isEnabled')['toMany'](_0x15f987,'isEnabled',(..._0x292a13)=>_0x292a13['some'](_0x551f65=>_0x551f65)),this['listenTo'](_0x21be26,'execute',_0x37070e=>{_0x4b2a30['execute'](_0x37070e['source']['commandName']),_0x4b2a30['editing']['view']['focus']();}),_0x21be26;}['_setButtonProperties'](_0x2f4aed){const _0x474378=this['editor'];_0x2f4aed['set']({'label':w(_0x474378['locale'],'Case\x20change'),'icon':_0x172d51,'keystroke':'Shift+F3'});}['_getListItemDefinitionsAndCommands'](){const _0x1ceeef=new _0x1bc644(),_0x220b36=[];for(const _0x228fae of m(this['editor']['locale'])){const _0x4034af=this['editor']['commands']['get'](_0x228fae['commandName']),_0x156d30=new _0x371bc2({'commandName':_0x228fae['commandName'],'label':_0x228fae['label'],'role':'menuitemradio','withText':!0x0});_0x156d30['bind']('isEnabled')['to'](_0x4034af,'isEnabled'),_0x1ceeef['add']({'type':'button','model':_0x156d30}),_0x220b36['push'](_0x4034af);}return{'itemDefinitions':_0x1ceeef,'commands':_0x220b36};}}class y extends _0x563391{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 _0x5c4cdd,Plugin as _0x3df193}from'@ckeditor/ckeditor5-core/dist/index.js';import{uid as _0x4d04ce,Collection as _0x5f1ee9}from'@ckeditor/ckeditor5-utils/dist/index.js';import{MenuBarMenuView as _0x1d214c,MenuBarMenuListView as _0x18cb13,MenuBarMenuListItemView as _0x17e63d,MenuBarMenuListItemButtonView as _0x4b38f2,createDropdown as _0x49f908,addListToDropdown as _0x590278,UIModel as _0x1cd3d4}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconCaseChange as _0x527383}from'@ckeditor/ckeditor5-icons/dist/index.js';class d extends _0x5c4cdd{['_transformCallback'];constructor(_0x3934a7,_0x43f018){super(_0x3934a7),this['_transformCallback']=_0x43f018;}['execute'](){const _0x4aa0ca=this['editor']['model'],_0x5ed1e6=Array['from'](this['_getAffectedRanges']()),_0xac79dd=Array['from'](_0x4aa0ca['document']['selection']['getRanges']());_0x4aa0ca['change'](_0x34c0f6=>{for(const _0x71174a of _0x5ed1e6)this['_modifyContent'](_0x71174a,_0x34c0f6);_0x34c0f6['setSelection'](_0xac79dd);});}['refresh'](){for(const _0x51e786 of this['_getAffectedRanges']())for(const _0x338c10 of _0x51e786)if(_0x338c10['item']['is']('$textProxy'))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['_getAffectedRanges'](){const _0x1271fb=this['editor']['model'],_0x16c495=_0x1271fb['document']['selection'];if(_0x16c495['isCollapsed']){const _0x2f190d=this['_findAncestorTextBlock'](_0x16c495['getFirstPosition']()['parent']);return _0x2f190d?[_0x1271fb['createRangeIn'](_0x2f190d)]:[];}return _0x16c495['getRanges']();}['_modifyContent'](_0x2b2529,_0x49da46){for(const _0xa9e44d of this['_getElementsAllowingText'](_0x2b2529)){const _0xbe07c1=this['_getElementTextContent'](_0xa9e44d),_0xba2e68=this['_transformCallback'](_0xbe07c1);for(const _0x10a659 of this['_getTextNodesRangeLimited'](_0xa9e44d,_0x2b2529))this['_replaceTextNodeData'](_0x10a659,_0xba2e68,_0x49da46);}}['_findAncestorTextBlock'](_0x2ec70a){const _0x9a2573=this['editor']['model']['schema'];if(_0x2ec70a['is']('element')&&_0x9a2573['checkChild'](_0x2ec70a,'$text'))return _0x2ec70a;const _0xd17dbb=_0x2ec70a['parent'];return!_0xd17dbb||_0x9a2573['isLimit'](_0x2ec70a)?null:this['_findAncestorTextBlock'](_0xd17dbb);}*['_getElementsAllowingText'](_0x456d67){const _0x43e0de=new Set();for(const {item:_0x58d9e1}of _0x456d67['getWalker']()){const _0x496e35=this['_findAncestorTextBlock'](_0x58d9e1);_0x496e35&&!_0x43e0de['has'](_0x496e35)&&(_0x43e0de['add'](_0x496e35),yield _0x496e35);}}['_getElementTextContent'](_0x5a396e){return Array['from'](_0x5a396e['getChildren']())['reduce']((_0x5119db,_0x1dc83b)=>_0x5119db+(_0x1dc83b['is']('$text')?_0x1dc83b['data']:'\x20'),'');}*['_getTextNodesRangeLimited'](_0x1de361,_0x3c47a8){const _0x1c8f18=_0x3c47a8['getIntersection'](this['editor']['model']['createRangeIn'](_0x1de361));if(_0x1c8f18){for(const _0x46cd3f of _0x1c8f18['getItems']())_0x46cd3f['is']('$textProxy')&&_0x46cd3f['parent']==_0x1de361&&(yield _0x46cd3f);}}['_replaceTextNodeData'](_0x1b0a9c,_0x2261e6,_0x49fdf2){const _0x27d983=_0x2261e6['substring'](_0x1b0a9c['startOffset'],_0x1b0a9c['endOffset']);if(_0x27d983===_0x1b0a9c['data'])return;const _0xed427b=_0x1b0a9c['getAttributes']();this['editor']['model']['insertContent'](_0x49fdf2['createText'](_0x27d983,_0xed427b),_0x49fdf2['createSelection'](_0x49fdf2['createRangeOn'](_0x1b0a9c)));}}function w(_0x4c3426,_0x197b29,..._0xd04a17){const t=_0x4c3426['t'];switch(_0x197b29){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',..._0xd04a17);default:return _0x197b29;}}class g extends _0x3df193{['_currentCommandIndex']=0x0;static get['pluginName'](){return'CaseChangeEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4983c4=this['editor'],_0x482593=_0x4983c4['locale']['contentLanguage'],_0x301315=function(_0x2a3d83=[]){return'function'==typeof _0x2a3d83?_0x2a3d83:(_0x2154e2,{wordIndex:_0x4c2068})=>_0x4c2068>0x0&&_0x2a3d83['includes'](_0x2154e2);}(_0x4983c4['config']['get']('caseChange.titleCase.excludeWords')),_0x4ec79b={'changeCaseUpper':new d(_0x4983c4,_0x412efd=>_0x412efd['toLocaleUpperCase'](_0x482593)),'changeCaseLower':new d(_0x4983c4,_0x2e2ec8=>_0x2e2ec8['toLocaleLowerCase'](_0x482593)),'changeCaseTitle':new d(_0x4983c4,_0x167ee3=>function(_0x49ff87,_0x268aad,_0x4766e1){return function(_0x368b4d,_0x1ee659){let _0x23d842='',_0x439d00=0x0,_0xee7bc2=0x0;for(const _0x5e843e of _0x368b4d['matchAll'](/ +/g)){const _0xf03c7b=_0x5e843e['index'],_0x4d949a=_0x368b4d['substring'](_0x439d00,_0xf03c7b);_0x4d949a['length']&&(_0x23d842+=_0x1ee659(_0x4d949a,_0x439d00,_0xee7bc2++)),_0x23d842+=_0x5e843e[0x0],_0x439d00=_0xf03c7b+_0x5e843e[0x0]['length'];}const _0x2c8b41=_0x368b4d['substring'](_0x439d00);return _0x2c8b41['length']&&(_0x23d842+=_0x1ee659(_0x2c8b41,_0x439d00,_0xee7bc2)),_0x23d842;}(_0x49ff87,(_0x1b6c43,_0x1aad6f,_0x44d61f)=>{const _0x33d0d0=_0x1b6c43['toLocaleLowerCase'](_0x4766e1);return _0x268aad(_0x33d0d0,{'charOffset':_0x1aad6f,'wordIndex':_0x44d61f,'blockText':_0x49ff87})?_0x33d0d0:_0x33d0d0['replace'](/(?:^|[^\p{L}\d'])\p{L}/gu,_0x4dcd2b=>_0x4dcd2b['toLocaleUpperCase'](_0x4766e1));});}(_0x167ee3,_0x301315,_0x482593))};for(const [_0x24d1e3,_0x45d071]of Object['entries'](_0x4ec79b))_0x4983c4['commands']['add'](_0x24d1e3,_0x45d071),_0x45d071['on']('execute',()=>{this['_announceCaseChangeOperation'](_0x24d1e3);});this['listenTo'](_0x4983c4['editing']['view']['document'],'selectionChange',()=>{this['_currentCommandIndex']=0x0;}),_0x4983c4['keystrokes']['set']('shift+f3',(_0x4ca896,_0x18ec75)=>{const _0x1c07df=m(this['editor']['locale']),_0x5946dc=_0x1c07df[this['_currentCommandIndex']%_0x1c07df['length']]['commandName'];_0x4983c4['execute'](_0x5946dc),this['_currentCommandIndex']++,_0x18ec75();});}['afterInit'](){!async function(_0x30f14a){const _0x5781b9=_0x12cd39([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]),_0x2786e7=0x334129cd,_0x3ca741=0x3346a00d^_0x2786e7,_0x1130fd=window[_0x12cd39([0x44,0x61,0x74,0x65])][_0x12cd39([0x6e,0x6f,0x77])](),_0x5704ae=_0x30f14a[_0x12cd39([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x33eb41=new window[(_0x12cd39([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x499843=>{_0x5704ae[_0x12cd39([0x6f,0x6e,0x63,0x65])](_0x12cd39([0x72,0x65,0x61,0x64,0x79]),_0x499843);}),_0x64cce3={[_0x12cd39([0x6b,0x74,0x79])]:_0x12cd39([0x45,0x43]),[_0x12cd39([0x75,0x73,0x65])]:_0x12cd39([0x73,0x69,0x67]),[_0x12cd39([0x63,0x72,0x76])]:_0x12cd39([0x50,0x2d,0x32,0x35,0x36]),[_0x12cd39([0x78])]:_0x12cd39([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]),[_0x12cd39([0x79])]:_0x12cd39([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]),[_0x12cd39([0x61,0x6c,0x67])]:_0x12cd39([0x45,0x53,0x32,0x35,0x36])},_0xb3eef=_0x5704ae[_0x12cd39([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x12cd39([0x67,0x65,0x74])](_0x12cd39([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x17c201(){let _0x43087c,_0x53c1b7=null,_0x4d6683=null;try{if(_0xb3eef==_0x12cd39([0x47,0x50,0x4c]))return _0x12cd39([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x43087c=_0x300aaa(),!_0x43087c)return _0x12cd39([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x43087c[_0x12cd39([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4d6683=_0x5c9c67(_0x43087c[_0x12cd39([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x43087c[_0x12cd39([0x6a,0x74,0x69])])),await _0x3a08f7()?_0x105236()?_0x3e7768()?_0x12cd39([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1703b5()?(_0x43087c[_0x12cd39([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x12cd39([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x53c1b7=_0x26ce6c(_0x12cd39([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x24d013()):_0x12cd39([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x12cd39([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x12cd39([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x12cd39([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3e7768(){const _0x44d371=[_0x12cd39([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x12cd39([0x74,0x72,0x69,0x61,0x6c])][_0x12cd39([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43087c[_0x12cd39([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1130fd/0x3e8:0xe10*_0x3ca741;return _0x43087c[_0x12cd39([0x65,0x78,0x70])]<_0x44d371;}function _0x105236(){const _0x18f952=_0x43087c[_0x12cd39([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x18f952&&(!!_0x18f952[_0x12cd39([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12cd39([0x2a]))||(!!_0x18f952[_0x12cd39([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12cd39([0x43,0x43]))||!!_0x18f952[_0x12cd39([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12cd39([0x50,0x50]))));}function _0x1703b5(){const _0x2848b5=_0x43087c[_0x12cd39([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2848b5||0x0==_0x2848b5[_0x12cd39([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x568476}=new URL(window[_0x12cd39([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2848b5[_0x12cd39([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x568476))return!0x0;const _0x5a7ce2=_0x568476[_0x12cd39([0x73,0x70,0x6c,0x69,0x74])](_0x12cd39([0x2e]));return _0x2848b5[_0x12cd39([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x328218=>_0x328218[_0x12cd39([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12cd39([0x2a])))[_0x12cd39([0x6d,0x61,0x70])](_0x518685=>_0x518685[_0x12cd39([0x73,0x70,0x6c,0x69,0x74])](_0x12cd39([0x2e])))[_0x12cd39([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2faf43=>_0x2faf43[_0x12cd39([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5a7ce2[_0x12cd39([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x12cd39([0x6d,0x61,0x70])](_0x904d3e=>Array(_0x5a7ce2[_0x12cd39([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x904d3e[_0x12cd39([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x12cd39([0x66,0x69,0x6c,0x6c])](_0x904d3e[0x0]===_0x12cd39([0x2a])?_0x12cd39([0x2a]):'')[_0x12cd39([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x904d3e))[_0x12cd39([0x73,0x6f,0x6d,0x65])](_0x31d641=>_0x5a7ce2[_0x12cd39([0x65,0x76,0x65,0x72,0x79])]((_0x3f9490,_0x88a011)=>_0x31d641[_0x88a011]===_0x3f9490||_0x31d641[_0x88a011]===_0x12cd39([0x2a])));}function _0x24d013(){return _0x53c1b7&&_0x4d6683?new window[(_0x12cd39([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x581d3b,_0x618244)=>{_0x53c1b7[_0x12cd39([0x74,0x68,0x65,0x6e])](_0x581d3b,_0x618244),_0x4d6683[_0x12cd39([0x74,0x68,0x65,0x6e])](_0x1ab1da=>{_0x1ab1da!=_0x12cd39([0x56,0x61,0x6c,0x69,0x64])&&_0x581d3b(_0x1ab1da);},_0x618244);}):_0x53c1b7||_0x4d6683||_0x12cd39([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5c9c67(_0x502f87,_0x2baa1a){return new window[(_0x12cd39([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e2e4e=>{if(_0x31d1f5())return _0x2e2e4e(_0x12cd39([0x56,0x61,0x6c,0x69,0x64]));_0xb08cb2(),_0x5704ae[_0x12cd39([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x12cd39([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4da673=!0x1;const _0x1048b8=_0x4d04ce();function _0x48b9af(_0x57dac){return!!_0x57dac&&(typeof _0x57dac===_0x12cd39([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x57dac===_0x12cd39([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x57dac[_0x12cd39([0x74,0x68,0x65,0x6e])]===_0x12cd39([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x57dac[_0x12cd39([0x63,0x61,0x74,0x63,0x68])]===_0x12cd39([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x339896(_0x4e6938){_0x1aff4c(_0x4e6938)[_0x12cd39([0x74,0x68,0x65,0x6e])](_0x1beec4=>{if(!_0x1beec4||_0x1beec4[_0x12cd39([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x12cd39([0x6f,0x6b]))return _0x12cd39([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1a9858(_0x21ceca(_0x1048b8+_0x2baa1a))!=_0x1beec4[_0x12cd39([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x12cd39([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x12cd39([0x56,0x61,0x6c,0x69,0x64]);})[_0x12cd39([0x74,0x68,0x65,0x6e])](_0x11a45f=>(_0x2b07b7(),_0x11a45f),()=>{const _0x161a14=_0x72470f();return null==_0x161a14?(_0x2b07b7(),_0x12cd39([0x56,0x61,0x6c,0x69,0x64])):_0x12cd39(_0x1130fd-_0x161a14>(0x174dadcd^_0x2786e7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x12cd39([0x74,0x68,0x65,0x6e])](_0x2e2e4e)[_0x12cd39([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2e2e4e(_0x12cd39([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x306ef3=0x3377c74d^_0x2786e7;function _0x2b07b7(){const _0x1252d9=_0x12cd39([0x6c,0x6c,0x63,0x74,0x2d])+_0x1a9858(_0x21ceca(_0x502f87)),_0x3a3200=_0x2b3a66(_0x1a9858(window[_0x12cd39([0x4d,0x61,0x74,0x68])][_0x12cd39([0x63,0x65,0x69,0x6c])](_0x1130fd/_0x306ef3)));window[_0x12cd39([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x12cd39([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1252d9,_0x3a3200);}function _0x72470f(){const _0x5bcd64=_0x12cd39([0x6c,0x6c,0x63,0x74,0x2d])+_0x1a9858(_0x21ceca(_0x502f87)),_0x119009=window[_0x12cd39([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x12cd39([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5bcd64);return _0x119009?window[_0x12cd39([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b3a66(_0x119009),0x10)*_0x306ef3:null;}function _0x1aff4c(_0x5886b0){return new window[(_0x12cd39([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2e5947,_0x3d21d7)=>{_0x5886b0[_0x12cd39([0x74,0x68,0x65,0x6e])](_0x2e5947,_0x3d21d7),window[_0x12cd39([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3d21d7,0x3340fd0d^_0x2786e7);});}}_0x5704ae[_0x12cd39([0x6f,0x6e])](_0x12cd39([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x35db9d,_0x9fbed1)=>{if(_0x9fbed1[0x0]!=_0x502f87)return _0x2e2e4e(_0x12cd39([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x9fbed1[0x1]={..._0x9fbed1[0x1],[_0x12cd39([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1048b8};},{[_0x12cd39([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x12cd39([0x68,0x69,0x67,0x68])}),_0x5704ae[_0x12cd39([0x6f,0x6e])](_0x12cd39([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1a2533=>{_0x48b9af(_0x1a2533[_0x12cd39([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4da673=!0x0,_0x339896(_0x1a2533[_0x12cd39([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x12cd39([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x12cd39([0x6c,0x6f,0x77])}),_0x33eb41[_0x12cd39([0x74,0x68,0x65,0x6e])](()=>{_0x4da673||_0x2e2e4e(_0x12cd39([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x31d1f5(){return _0x5704ae[_0x12cd39([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x12cd39([0x76,0x69,0x65,0x77])][_0x12cd39([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x12cd39([0x61,0x75,0x74,0x6f]);}function _0xb08cb2(){_0x5704ae[_0x12cd39([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x12cd39([0x76,0x69,0x65,0x77])][_0x12cd39([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x12cd39([0x61,0x75,0x74,0x6f]);}}function _0x26ce6c(_0x4394e9){const _0xc79530=[new window[(_0x12cd39([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x332411=>setTimeout(_0x332411,0x33481701^_0x2786e7)),_0x33eb41[_0x12cd39([0x74,0x68,0x65,0x6e])](()=>new window[(_0x12cd39([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59e062=>{let _0x8e6788=0x0;_0x5704ae[_0x12cd39([0x6d,0x6f,0x64,0x65,0x6c])][_0x12cd39([0x6f,0x6e])](_0x12cd39([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x6d235f,_0x2c1c4f)=>{_0x2c1c4f[0x0][_0x12cd39([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x8e6788++,_0x8e6788==(0x33412c25^_0x2786e7)&&(_0x59e062(),_0x6d235f[_0x12cd39([0x6f,0x66,0x66])]());});}))];return window[_0x12cd39([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x12cd39([0x72,0x61,0x63,0x65])](_0xc79530)[_0x12cd39([0x74,0x68,0x65,0x6e])](()=>_0x4394e9);}async function _0x25c8f7(){await _0x33eb41,_0x5704ae[_0x12cd39([0x6d,0x6f,0x64,0x65,0x6c])][_0x12cd39([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4e3223,_0x5704ae[_0x12cd39([0x6d,0x6f,0x64,0x65,0x6c])][_0x12cd39([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4e3223,_0x5704ae[_0x12cd39([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x12cd39([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3936f4(_0x1cf032){const _0x4d24af=_0x3aeb4e();_0x5704ae[_0x4d24af]=_0x12cd39([0x63,0x61,0x73,0x65,0x43,0x68,0x61,0x6e,0x67,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1cf032,_0x1cf032!=_0x12cd39([0x56,0x61,0x6c,0x69,0x64])&&_0x25c8f7();}function _0x3aeb4e(){const _0x23b761=window[_0x12cd39([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x12cd39([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x12cd39([0x6e,0x6f,0x77])]())[_0x12cd39([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x12cd39([0x2e]),'');let _0x488dd4=_0x12cd39([0x45]);for(let _0x34d378=0x0;_0x34d378<_0x23b761[_0x12cd39([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x34d378+=0x2){let _0x2299d2=window[_0x12cd39([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x23b761[_0x12cd39([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x34d378,_0x34d378+0x2));_0x2299d2>=_0x5781b9[_0x12cd39([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2299d2-=_0x5781b9[_0x12cd39([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x488dd4+=_0x5781b9[_0x2299d2];}return _0x488dd4;}function _0x300aaa(){const _0x16d027=_0xb3eef[_0x12cd39([0x73,0x70,0x6c,0x69,0x74])](_0x12cd39([0x2e]));if(0x3!=_0x16d027[_0x12cd39([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4060c0(_0x16d027[0x1]);function _0x4060c0(_0x2506a7){const _0x55b439=_0x3bdf3c(_0x2506a7);return _0x55b439&&_0x1f03f7()?_0x55b439:null;function _0x1f03f7(){const _0x1ab674=_0x55b439[_0x12cd39([0x6a,0x74,0x69])],_0x11b32a=window[_0x12cd39([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ab674[_0x12cd39([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1ab674[_0x12cd39([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xf9beec={..._0x55b439,[_0x12cd39([0x6a,0x74,0x69])]:_0x1ab674[_0x12cd39([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1ab674[_0x12cd39([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xf9beec[_0x12cd39([0x76,0x63])],_0x21ceca(_0xf9beec)==_0x11b32a;}}}async function _0x3a08f7(){let _0x18c436=!0x0;try{const _0x4f862e=_0xb3eef[_0x12cd39([0x73,0x70,0x6c,0x69,0x74])](_0x12cd39([0x2e])),[_0x48b526,_0x39379c,_0x3f2c03]=_0x4f862e;return _0x197bd9(_0x48b526),await _0x322265(_0x48b526,_0x39379c,_0x3f2c03),_0x18c436;}catch{return!0x1;}function _0x197bd9(_0x384bb9){const _0x27ea2b=_0x3bdf3c(_0x384bb9);_0x27ea2b&&_0x27ea2b[_0x12cd39([0x61,0x6c,0x67])]==_0x12cd39([0x45,0x53,0x32,0x35,0x36])||(_0x18c436=!0x1);}async function _0x322265(_0x253bcd,_0x389a3c,_0x10f0f9){const _0x1e7fdf=window[_0x12cd39([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x12cd39([0x66,0x72,0x6f,0x6d])](_0x54e239(_0x10f0f9),_0x33db84=>_0x33db84[_0x12cd39([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2f39a4=new window[(_0x12cd39([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x12cd39([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x253bcd+_0x12cd39([0x2e])+_0x389a3c),_0x3ab23f=window[_0x12cd39([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x12cd39([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3ab23f)return;const _0xdc4ddb=await _0x3ab23f[_0x12cd39([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x12cd39([0x6a,0x77,0x6b]),_0x64cce3,{[_0x12cd39([0x6e,0x61,0x6d,0x65])]:_0x12cd39([0x45,0x43,0x44,0x53,0x41]),[_0x12cd39([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x12cd39([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x12cd39([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3ab23f[_0x12cd39([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x12cd39([0x6e,0x61,0x6d,0x65])]:_0x12cd39([0x45,0x43,0x44,0x53,0x41]),[_0x12cd39([0x68,0x61,0x73,0x68])]:{[_0x12cd39([0x6e,0x61,0x6d,0x65])]:_0x12cd39([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xdc4ddb,_0x1e7fdf,_0x2f39a4)||(_0x18c436=!0x1);}}function _0x3bdf3c(_0x322d1e){return _0x322d1e[_0x12cd39([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x12cd39([0x65,0x79]))?JSON[_0x12cd39([0x70,0x61,0x72,0x73,0x65])](_0x54e239(_0x322d1e)):null;}function _0x54e239(_0x1946a9){return window[_0x12cd39([0x61,0x74,0x6f,0x62])](_0x1946a9[_0x12cd39([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x12cd39([0x2b]))[_0x12cd39([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x12cd39([0x2f])));}function _0x21ceca(_0x1dac12){let _0x2f3b87=0x1505;function _0x14f5f3(_0x204115){for(let _0x4006f7=0x0;_0x4006f7<_0x204115[_0x12cd39([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4006f7++){const _0x4953c8=_0x204115[_0x12cd39([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4006f7);_0x2f3b87=(_0x2f3b87<<0x5)+_0x2f3b87+_0x4953c8,_0x2f3b87&=_0x2f3b87;}}function _0x2166b3(_0x567e05){Array[_0x12cd39([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x567e05)?_0x567e05[_0x12cd39([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2166b3):_0x567e05&&typeof _0x567e05==_0x12cd39([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x12cd39([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x567e05)[_0x12cd39([0x73,0x6f,0x72,0x74])]()[_0x12cd39([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1ccfc4,_0x2ae4ba])=>{_0x14f5f3(_0x1ccfc4),_0x2166b3(_0x2ae4ba);}):_0x14f5f3(window[_0x12cd39([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x567e05));}return _0x2166b3(_0x1dac12),_0x2f3b87>>>0x0;}function _0x1a9858(_0x98bc0f){return _0x98bc0f[_0x12cd39([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x12cd39([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x12cd39([0x30]));}function _0x2b3a66(_0x400bfa){return _0x400bfa[_0x12cd39([0x73,0x70,0x6c,0x69,0x74])]('')[_0x12cd39([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x12cd39([0x6a,0x6f,0x69,0x6e])]('');}function _0x4e3223(){}function _0x12cd39(_0x306027){return _0x306027['map'](_0x16abac=>String['fromCharCode'](_0x16abac))['join']('');}_0x3936f4(await _0x17c201());}(this);}['_announceCaseChangeOperation'](_0x13fc8c){const {ui:_0x268041,locale:_0x2012a5}=this['editor'],_0x38643d=m(_0x2012a5)['find'](_0x470a00=>_0x470a00['commandName']===_0x13fc8c)['label']['toLowerCase']();_0x268041['ariaLiveAnnouncer']['announce'](w(_0x2012a5,'Changed\x20case\x20to\x20%0',_0x38643d));}}function m(_0x6a752e){return[{'label':w(_0x6a752e,'UPPERCASE'),'commandName':'changeCaseUpper'},{'label':w(_0x6a752e,'lowercase'),'commandName':'changeCaseLower'},{'label':w(_0x6a752e,'Title\x20Case'),'commandName':'changeCaseTitle'}];}class C extends _0x3df193{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CaseChangeUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x456e60=this['editor'];this['_registerComponents'](),_0x456e60['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':w(_0x456e60['locale'],'Change\x20text\x20case'),'keystroke':'Shift+f3','mayRequireFn':!0x0}]}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3ccdbf=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x58cc57;for(const _0x34d75f in _0x3ccdbf){const _0x38e409=_0x34d75f,_0x278f20=_0x3ccdbf[_0x38e409];if('caseChangeLicenseKeyValid'==_0x278f20||'caseChangeLicenseKeyInvalid'==_0x278f20||'caseChangeLicenseKeyExpired'==_0x278f20||'caseChangeLicenseKeyDomainLimit'==_0x278f20||'caseChangeLicenseKeyNotAllowed'==_0x278f20||'caseChangeLicenseKeyEvaluationLimit'==_0x278f20||'caseChangeLicenseKeyUsageLimit'==_0x278f20){delete _0x3ccdbf[_0x38e409],_0x58cc57=_0x278f20,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'caseChangeLicenseKeyInvalid'==_0x58cc57&&_0x3ccdbf['_showLicenseError']('invalid'),'caseChangeLicenseKeyExpired'==_0x58cc57&&_0x3ccdbf['_showLicenseError']('expired'),'caseChangeLicenseKeyDomainLimit'==_0x58cc57&&_0x3ccdbf['_showLicenseError']('domainLimit'),'caseChangeLicenseKeyNotAllowed'==_0x58cc57&&_0x3ccdbf['_showLicenseError']('featureNotAllowed','CaseChange'),'caseChangeLicenseKeyEvaluationLimit'==_0x58cc57&&_0x3ccdbf['_showLicenseError']('evaluationLimit'),'caseChangeLicenseKeyUsageLimit'==_0x58cc57&&_0x3ccdbf['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_registerComponents'](){const _0x5d5794=this['editor'],{itemDefinitions:_0x494f9a,commands:_0x40540e}=this['_getListItemDefinitionsAndCommands']();_0x5d5794['ui']['componentFactory']['add']('caseChange',()=>this['_createDropdownView'](_0x494f9a,_0x40540e)),_0x5d5794['ui']['componentFactory']['add']('menuBar:caseChange',()=>this['_createMenuBarMenuView'](_0x494f9a,_0x40540e));}['_createMenuBarMenuView'](_0x1d42bf,_0x3e3b74){const _0x2d8f9e=this['editor'],_0x202a1d=_0x2d8f9e['locale'],_0x467510=new _0x1d214c(_0x202a1d),_0x5c4d7d=new _0x18cb13(_0x202a1d);_0x5c4d7d['set']({'ariaLabel':w(_0x202a1d,'Case\x20change'),'role':'menu'}),this['_setButtonProperties'](_0x467510['buttonView']),_0x467510['bind']('isEnabled')['toMany'](_0x3e3b74,'isEnabled',(..._0x28c257)=>_0x28c257['some'](_0x5a5e8e=>_0x5a5e8e));for(const _0x4a6d17 of _0x1d42bf){const _0x211cce=new _0x17e63d(_0x202a1d,_0x467510),_0x9ff979=new _0x4b38f2(_0x202a1d);_0x9ff979['delegate']('execute')['to'](_0x467510),_0x9ff979['bind'](...Object['keys'](_0x4a6d17['model']))['to'](_0x4a6d17['model']),_0x9ff979['on']('execute',()=>{_0x2d8f9e['execute'](_0x4a6d17['model']['commandName']),_0x2d8f9e['editing']['view']['focus']();}),_0x211cce['children']['add'](_0x9ff979),_0x5c4d7d['items']['add'](_0x211cce);}return _0x467510['panelView']['children']['add'](_0x5c4d7d),_0x467510;}['_createDropdownView'](_0x45fd46,_0x483950){const _0x223a0b=this['editor'],_0x5eeaee=_0x49f908(_0x223a0b['locale']);return this['_setButtonProperties'](_0x5eeaee['buttonView']),_0x5eeaee['buttonView']['set']({'tooltip':!0x0}),_0x5eeaee['extendTemplate']({'attributes':{'class':['ck-case-change-dropdown']}}),_0x590278(_0x5eeaee,_0x45fd46,{'ariaLabel':w(_0x223a0b['locale'],'Case\x20change'),'role':'menu'}),_0x5eeaee['bind']('isEnabled')['toMany'](_0x483950,'isEnabled',(..._0x280643)=>_0x280643['some'](_0x37bccd=>_0x37bccd)),this['listenTo'](_0x5eeaee,'execute',_0x2be9ad=>{_0x223a0b['execute'](_0x2be9ad['source']['commandName']),_0x223a0b['editing']['view']['focus']();}),_0x5eeaee;}['_setButtonProperties'](_0x564684){const _0x250917=this['editor'];_0x564684['set']({'label':w(_0x250917['locale'],'Case\x20change'),'icon':_0x527383,'keystroke':'Shift+F3'});}['_getListItemDefinitionsAndCommands'](){const _0xfb64f9=new _0x5f1ee9(),_0x52e9ad=[];for(const _0xe4363 of m(this['editor']['locale'])){const _0x421867=this['editor']['commands']['get'](_0xe4363['commandName']),_0xbd8d0c=new _0x1cd3d4({'commandName':_0xe4363['commandName'],'label':_0xe4363['label'],'role':'menuitemradio','withText':!0x0});_0xbd8d0c['bind']('isEnabled')['to'](_0x421867,'isEnabled'),_0xfb64f9['add']({'type':'button','model':_0xbd8d0c}),_0x52e9ad['push'](_0x421867);}return{'itemDefinitions':_0xfb64f9,'commands':_0x52e9ad};}}class y extends _0x3df193{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.1.0-alpha.3",
3
+ "version": "48.1.0-alpha.5",
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.1.0-alpha.3",
40
- "@ckeditor/ckeditor5-engine": "48.1.0-alpha.3",
41
- "@ckeditor/ckeditor5-icons": "48.1.0-alpha.3",
42
- "@ckeditor/ckeditor5-ui": "48.1.0-alpha.3",
43
- "@ckeditor/ckeditor5-utils": "48.1.0-alpha.3"
39
+ "@ckeditor/ckeditor5-core": "48.1.0-alpha.5",
40
+ "@ckeditor/ckeditor5-engine": "48.1.0-alpha.5",
41
+ "@ckeditor/ckeditor5-icons": "48.1.0-alpha.5",
42
+ "@ckeditor/ckeditor5-ui": "48.1.0-alpha.5",
43
+ "@ckeditor/ckeditor5-utils": "48.1.0-alpha.5"
44
44
  },
45
45
  "files": [
46
46
  "dist",