@ckeditor/ckeditor5-case-change 48.8.1-alpha.2 → 48.8.1-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 _0x5080a4,Plugin as _0x2596fc}from'@ckeditor/ckeditor5-core/dist/index.js';import{uid as _0x18e358,Collection as _0x18d6f8}from'@ckeditor/ckeditor5-utils/dist/index.js';import{MenuBarMenuView as _0x33f1ae,MenuBarMenuListView as _0x242f5e,MenuBarMenuListItemView as _0x58b395,MenuBarMenuListItemButtonView as _0x1209ff,createDropdown as _0x41164e,addListToDropdown as _0x11d036,UIModel as _0x395f24}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconCaseChange as _0x2438bf}from'@ckeditor/ckeditor5-icons/dist/index.js';class CaseChangeCommand extends _0x5080a4{['_transformCallback'];constructor(_0x3b8926,_0x349d0d){super(_0x3b8926),this['_transformCallback']=_0x349d0d;}['execute'](){const _0x145e57=this['editor']['model'],_0x5f3f19=Array['from'](this['_getAffectedRanges']()),_0x283554=Array['from'](_0x145e57['document']['selection']['getRanges']());_0x145e57['change'](_0x2534e4=>{for(const _0x399994 of _0x5f3f19)this['_modifyContent'](_0x399994,_0x2534e4);_0x2534e4['setSelection'](_0x283554);});}['refresh'](){for(const _0x12ff72 of this['_getAffectedRanges']())for(const _0x8f4a87 of _0x12ff72)if(_0x8f4a87['item']['is']('$textProxy'))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['_getAffectedRanges'](){const _0xb84304=this['editor']['model'],_0x2252b3=_0xb84304['document']['selection'];if(_0x2252b3['isCollapsed']){const _0x5ad2aa=this['_findAncestorTextBlock'](_0x2252b3['getFirstPosition']()['parent']);return _0x5ad2aa?[_0xb84304['createRangeIn'](_0x5ad2aa)]:[];}return _0x2252b3['getRanges']();}['_modifyContent'](_0x13ab65,_0x2321b7){for(const _0x3c6b53 of this['_getElementsAllowingText'](_0x13ab65)){const _0x285e08=this['_getElementTextContent'](_0x3c6b53),_0x42990c=this['_transformCallback'](_0x285e08);for(const _0x1d5236 of this['_getTextNodesRangeLimited'](_0x3c6b53,_0x13ab65))this['_replaceTextNodeData'](_0x1d5236,_0x42990c,_0x2321b7);}}['_findAncestorTextBlock'](_0x4fdba6){const _0x407aa9=this['editor']['model']['schema'];if(_0x4fdba6['is']('element')&&_0x407aa9['checkChild'](_0x4fdba6,'$text'))return _0x4fdba6;const _0x2bb390=_0x4fdba6['parent'];return!_0x2bb390||_0x407aa9['isLimit'](_0x4fdba6)?null:this['_findAncestorTextBlock'](_0x2bb390);}*['_getElementsAllowingText'](_0x3a7278){const _0x382c95=new Set();for(const {item:_0x431a7f}of _0x3a7278['getWalker']()){const _0x72fa8c=this['_findAncestorTextBlock'](_0x431a7f);_0x72fa8c&&!_0x382c95['has'](_0x72fa8c)&&(_0x382c95['add'](_0x72fa8c),yield _0x72fa8c);}}['_getElementTextContent'](_0x3a826c){return Array['from'](_0x3a826c['getChildren']())['reduce']((_0x41bf35,_0x2b9e9b)=>_0x41bf35+(_0x2b9e9b['is']('$text')?_0x2b9e9b['data']:'\x20'),'');}*['_getTextNodesRangeLimited'](_0x35fa9f,_0x1704a4){const _0x56839f=_0x1704a4['getIntersection'](this['editor']['model']['createRangeIn'](_0x35fa9f));if(_0x56839f){for(const _0xe9165e of _0x56839f['getItems']())_0xe9165e['is']('$textProxy')&&_0xe9165e['parent']==_0x35fa9f&&(yield _0xe9165e);}}['_replaceTextNodeData'](_0x3752c7,_0x35a33a,_0x3fd450){const _0x198443=_0x35a33a['substring'](_0x3752c7['startOffset'],_0x3752c7['endOffset']);if(_0x198443===_0x3752c7['data'])return;const _0x2c5d37=_0x3752c7['getAttributes']();this['editor']['model']['insertContent'](_0x3fd450['createText'](_0x198443,_0x2c5d37),_0x3fd450['createSelection'](_0x3fd450['createRangeOn'](_0x3752c7)));}}function d(_0x213063,_0x554a83,..._0x3bc61c){const t=_0x213063['t'];switch(_0x554a83){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',..._0x3bc61c);default:return _0x554a83;}}class CaseChangeEditing extends _0x2596fc{['_currentCommandIndex']=0x0;static get['pluginName'](){return'CaseChangeEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4e84ed=this['editor'],_0x31599a=_0x4e84ed['locale']['contentLanguage'],_0x23a102=function(_0x381796=[]){return'function'==typeof _0x381796?_0x381796:(_0x3686fb,{wordIndex:_0x13bebe})=>_0x13bebe>0x0&&_0x381796['includes'](_0x3686fb);}(_0x4e84ed['config']['get']('caseChange.titleCase.excludeWords')),_0x2586a8={'changeCaseUpper':new CaseChangeCommand(_0x4e84ed,_0x563909=>_0x563909['toLocaleUpperCase'](_0x31599a)),'changeCaseLower':new CaseChangeCommand(_0x4e84ed,_0x4972f3=>_0x4972f3['toLocaleLowerCase'](_0x31599a)),'changeCaseTitle':new CaseChangeCommand(_0x4e84ed,_0x48a466=>function(_0x5e0ce6,_0xe9732d,_0xf2d0ce){return function(_0x252afe,_0xe90e9){let _0x14410d='',_0x21f5c5=0x0,_0x4388ff=0x0;for(const _0x16d80c of _0x252afe['matchAll'](/ +/g)){const _0x257666=_0x16d80c['index'],_0x1248f0=_0x252afe['substring'](_0x21f5c5,_0x257666);_0x1248f0['length']&&(_0x14410d+=_0xe90e9(_0x1248f0,_0x21f5c5,_0x4388ff++)),_0x14410d+=_0x16d80c[0x0],_0x21f5c5=_0x257666+_0x16d80c[0x0]['length'];}const _0xd8ba77=_0x252afe['substring'](_0x21f5c5);return _0xd8ba77['length']&&(_0x14410d+=_0xe90e9(_0xd8ba77,_0x21f5c5,_0x4388ff)),_0x14410d;}(_0x5e0ce6,(_0x4e337b,_0x8e8430,_0x3c6a3d)=>{const _0xf4ce8=_0x4e337b['toLocaleLowerCase'](_0xf2d0ce);return _0xe9732d(_0xf4ce8,{'charOffset':_0x8e8430,'wordIndex':_0x3c6a3d,'blockText':_0x5e0ce6})?_0xf4ce8:_0xf4ce8['replace'](/(?:^|[^\p{L}\d'])\p{L}/gu,_0x5df48f=>_0x5df48f['toLocaleUpperCase'](_0xf2d0ce));});}(_0x48a466,_0x23a102,_0x31599a))};for(const [_0x1eb2bc,_0x2028eb]of Object['entries'](_0x2586a8))_0x4e84ed['commands']['add'](_0x1eb2bc,_0x2028eb),_0x2028eb['on']('execute',()=>{this['_announceCaseChangeOperation'](_0x1eb2bc);});this['listenTo'](_0x4e84ed['editing']['view']['document'],'selectionChange',()=>{this['_currentCommandIndex']=0x0;}),_0x4e84ed['keystrokes']['set']('shift+f3',(_0x2194fb,_0x127ab4)=>{const _0xdac243=g(this['editor']['locale']),_0x550033=_0xdac243[this['_currentCommandIndex']%_0xdac243['length']]['commandName'];_0x4e84ed['execute'](_0x550033),this['_currentCommandIndex']++,_0x127ab4();});}['afterInit'](){!async function(_0x4f292e){const _0x1b92aa=_0x5af351([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]),_0x3a4420=0x334129cd,_0x55170c=0x3346a39d^_0x3a4420,_0x36d647=window[_0x5af351([0x44,0x61,0x74,0x65])][_0x5af351([0x6e,0x6f,0x77])](),_0xbe9728=_0x4f292e[_0x5af351([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1a25c0=new window[(_0x5af351([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x528d17=>{_0xbe9728[_0x5af351([0x6f,0x6e,0x63,0x65])](_0x5af351([0x72,0x65,0x61,0x64,0x79]),_0x528d17);}),_0x33a525={[_0x5af351([0x6b,0x74,0x79])]:_0x5af351([0x45,0x43]),[_0x5af351([0x75,0x73,0x65])]:_0x5af351([0x73,0x69,0x67]),[_0x5af351([0x63,0x72,0x76])]:_0x5af351([0x50,0x2d,0x32,0x35,0x36]),[_0x5af351([0x78])]:_0x5af351([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]),[_0x5af351([0x79])]:_0x5af351([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]),[_0x5af351([0x61,0x6c,0x67])]:_0x5af351([0x45,0x53,0x32,0x35,0x36])},_0x42961f=_0xbe9728[_0x5af351([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5af351([0x67,0x65,0x74])](_0x5af351([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1df860(){let _0x2b13ba,_0x403f71=null,_0x1505d8=null;try{if(_0x42961f==_0x5af351([0x47,0x50,0x4c]))return _0x5af351([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2b13ba=_0x40b634(),!_0x2b13ba)return _0x5af351([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2b13ba[_0x5af351([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1505d8=_0x480ee5(_0x2b13ba[_0x5af351([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2b13ba[_0x5af351([0x6a,0x74,0x69])])),await _0x2a4b37()?_0x4c79e1()?_0x441413()?_0x5af351([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x253b06()?(_0x2b13ba[_0x5af351([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5af351([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x403f71=_0x4f63d4(_0x5af351([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3343b9()):_0x5af351([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5af351([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5af351([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5af351([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x441413(){const _0xcf4462=[_0x5af351([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5af351([0x74,0x72,0x69,0x61,0x6c])][_0x5af351([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b13ba[_0x5af351([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x36d647/0x3e8:0xe10*_0x55170c;return _0x2b13ba[_0x5af351([0x65,0x78,0x70])]<_0xcf4462;}function _0x4c79e1(){const _0x5daa2b=_0x2b13ba[_0x5af351([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5daa2b&&(!!_0x5daa2b[_0x5af351([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5af351([0x2a]))||(!!_0x5daa2b[_0x5af351([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5af351([0x43,0x43]))||!!_0x5daa2b[_0x5af351([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5af351([0x50,0x50]))));}function _0x253b06(){const _0x321057=_0x2b13ba[_0x5af351([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x321057||0x0==_0x321057[_0x5af351([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2a9f0b}=new URL(window[_0x5af351([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x321057[_0x5af351([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a9f0b))return!0x0;const _0x9e04f4=_0x2a9f0b[_0x5af351([0x73,0x70,0x6c,0x69,0x74])](_0x5af351([0x2e]));return _0x321057[_0x5af351([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5cd87d=>_0x5cd87d[_0x5af351([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5af351([0x2a])))[_0x5af351([0x6d,0x61,0x70])](_0x1cf37a=>_0x1cf37a[_0x5af351([0x73,0x70,0x6c,0x69,0x74])](_0x5af351([0x2e])))[_0x5af351([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5a9ad5=>_0x5a9ad5[_0x5af351([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x9e04f4[_0x5af351([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5af351([0x6d,0x61,0x70])](_0x406668=>Array(_0x9e04f4[_0x5af351([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x406668[_0x5af351([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5af351([0x66,0x69,0x6c,0x6c])](_0x406668[0x0]===_0x5af351([0x2a])?_0x5af351([0x2a]):'')[_0x5af351([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x406668))[_0x5af351([0x73,0x6f,0x6d,0x65])](_0xdec466=>_0x9e04f4[_0x5af351([0x65,0x76,0x65,0x72,0x79])]((_0x42abc9,_0x25f25a)=>_0xdec466[_0x25f25a]===_0x42abc9||_0xdec466[_0x25f25a]===_0x5af351([0x2a])));}function _0x3343b9(){return _0x403f71&&_0x1505d8?new window[(_0x5af351([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1188b5,_0x385fc8)=>{_0x403f71[_0x5af351([0x74,0x68,0x65,0x6e])](_0x1188b5,_0x385fc8),_0x1505d8[_0x5af351([0x74,0x68,0x65,0x6e])](_0x1a641f=>{_0x1a641f!=_0x5af351([0x56,0x61,0x6c,0x69,0x64])&&_0x1188b5(_0x1a641f);},_0x385fc8);}):_0x403f71||_0x1505d8||_0x5af351([0x56,0x61,0x6c,0x69,0x64]);}}function _0x480ee5(_0x152fda,_0x21a7be){return new window[(_0x5af351([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4bbdbc=>{if(_0x1f9b43())return _0x4bbdbc(_0x5af351([0x56,0x61,0x6c,0x69,0x64]));_0xbc9a0f(),_0xbe9728[_0x5af351([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5af351([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5bb795=!0x1;const _0x7962fb=_0x18e358();function _0x1414a8(_0x4e7868){return!!_0x4e7868&&(typeof _0x4e7868===_0x5af351([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4e7868===_0x5af351([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4e7868[_0x5af351([0x74,0x68,0x65,0x6e])]===_0x5af351([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4e7868[_0x5af351([0x63,0x61,0x74,0x63,0x68])]===_0x5af351([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4873c8(_0x36c867){_0x1b9406(_0x36c867)[_0x5af351([0x74,0x68,0x65,0x6e])](_0x384afc=>{if(!_0x384afc||_0x384afc[_0x5af351([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5af351([0x6f,0x6b]))return _0x5af351([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2f78a8(_0x42403(_0x7962fb+_0x21a7be))!=_0x384afc[_0x5af351([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5af351([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5af351([0x56,0x61,0x6c,0x69,0x64]);})[_0x5af351([0x74,0x68,0x65,0x6e])](_0x16a69a=>(_0x51bd82(),_0x16a69a),()=>{const _0x24a580=_0x30e7f3();return null==_0x24a580?(_0x51bd82(),_0x5af351([0x56,0x61,0x6c,0x69,0x64])):_0x5af351(_0x36d647-_0x24a580>(0x174dadcd^_0x3a4420)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5af351([0x74,0x68,0x65,0x6e])](_0x4bbdbc)[_0x5af351([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4bbdbc(_0x5af351([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x209a77=0x3377c74d^_0x3a4420;function _0x51bd82(){const _0x1a866a=_0x5af351([0x6c,0x6c,0x63,0x74,0x2d])+_0x2f78a8(_0x42403(_0x152fda)),_0x5bfd33=_0x5ce050(_0x2f78a8(window[_0x5af351([0x4d,0x61,0x74,0x68])][_0x5af351([0x63,0x65,0x69,0x6c])](_0x36d647/_0x209a77)));window[_0x5af351([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5af351([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1a866a,_0x5bfd33);}function _0x30e7f3(){const _0x484c72=_0x5af351([0x6c,0x6c,0x63,0x74,0x2d])+_0x2f78a8(_0x42403(_0x152fda)),_0x1009a9=window[_0x5af351([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5af351([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x484c72);return _0x1009a9?window[_0x5af351([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ce050(_0x1009a9),0x10)*_0x209a77:null;}function _0x1b9406(_0x5ec9bb){return new window[(_0x5af351([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3bf41b,_0x1d01dd)=>{_0x5ec9bb[_0x5af351([0x74,0x68,0x65,0x6e])](_0x3bf41b,_0x1d01dd),window[_0x5af351([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1d01dd,0x3340fd0d^_0x3a4420);});}}_0xbe9728[_0x5af351([0x6f,0x6e])](_0x5af351([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x177fbc,_0x20dadb)=>{if(_0x20dadb[0x0]!=_0x152fda)return _0x4bbdbc(_0x5af351([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x20dadb[0x1]={..._0x20dadb[0x1],[_0x5af351([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x7962fb};},{[_0x5af351([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5af351([0x68,0x69,0x67,0x68])}),_0xbe9728[_0x5af351([0x6f,0x6e])](_0x5af351([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x417c18=>{_0x1414a8(_0x417c18[_0x5af351([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5bb795=!0x0,_0x4873c8(_0x417c18[_0x5af351([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5af351([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5af351([0x6c,0x6f,0x77])}),_0x1a25c0[_0x5af351([0x74,0x68,0x65,0x6e])](()=>{_0x5bb795||_0x4bbdbc(_0x5af351([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1f9b43(){return _0xbe9728[_0x5af351([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5af351([0x76,0x69,0x65,0x77])][_0x5af351([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5af351([0x61,0x75,0x74,0x6f]);}function _0xbc9a0f(){_0xbe9728[_0x5af351([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5af351([0x76,0x69,0x65,0x77])][_0x5af351([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5af351([0x61,0x75,0x74,0x6f]);}}function _0x4f63d4(_0x566b45){const _0x1d9073=[new window[(_0x5af351([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b2cff=>setTimeout(_0x5b2cff,0x33481701^_0x3a4420)),_0x1a25c0[_0x5af351([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5af351([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ea0d9=>{let _0x5f0a4f=0x0;_0xbe9728[_0x5af351([0x6d,0x6f,0x64,0x65,0x6c])][_0x5af351([0x6f,0x6e])](_0x5af351([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x403676,_0x1a99ce)=>{_0x1a99ce[0x0][_0x5af351([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5f0a4f++,_0x5f0a4f==(0x33412c25^_0x3a4420)&&(_0x3ea0d9(),_0x403676[_0x5af351([0x6f,0x66,0x66])]());});}))];return window[_0x5af351([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5af351([0x72,0x61,0x63,0x65])](_0x1d9073)[_0x5af351([0x74,0x68,0x65,0x6e])](()=>_0x566b45);}async function _0x478d5b(){await _0x1a25c0,_0xbe9728[_0x5af351([0x6d,0x6f,0x64,0x65,0x6c])][_0x5af351([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xe75095,_0xbe9728[_0x5af351([0x6d,0x6f,0x64,0x65,0x6c])][_0x5af351([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xe75095,_0xbe9728[_0x5af351([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5af351([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1eac32(_0x1e6629){const _0x11044e=_0x331da5();_0xbe9728[_0x11044e]=_0x5af351([0x63,0x61,0x73,0x65,0x43,0x68,0x61,0x6e,0x67,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1e6629,_0x1e6629!=_0x5af351([0x56,0x61,0x6c,0x69,0x64])&&_0x478d5b();}function _0x331da5(){const _0x326417=window[_0x5af351([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5af351([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5af351([0x6e,0x6f,0x77])]())[_0x5af351([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5af351([0x2e]),'');let _0x232d61=_0x5af351([0x45]);for(let _0x3042fc=0x0;_0x3042fc<_0x326417[_0x5af351([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3042fc+=0x2){let _0x1e7e13=window[_0x5af351([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x326417[_0x5af351([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3042fc,_0x3042fc+0x2));_0x1e7e13>=_0x1b92aa[_0x5af351([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1e7e13-=_0x1b92aa[_0x5af351([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x232d61+=_0x1b92aa[_0x1e7e13];}return _0x232d61;}function _0x40b634(){const _0x2791cc=_0x42961f[_0x5af351([0x73,0x70,0x6c,0x69,0x74])](_0x5af351([0x2e]));if(0x3!=_0x2791cc[_0x5af351([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5ef606(_0x2791cc[0x1]);function _0x5ef606(_0xc67b2){const _0x55f48e=_0x50bce3(_0xc67b2);return _0x55f48e&&_0x5ec707()?_0x55f48e:null;function _0x5ec707(){const _0x3d3f40=_0x55f48e[_0x5af351([0x6a,0x74,0x69])],_0x4c9578=window[_0x5af351([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3d3f40[_0x5af351([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3d3f40[_0x5af351([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3da812={..._0x55f48e,[_0x5af351([0x6a,0x74,0x69])]:_0x3d3f40[_0x5af351([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3d3f40[_0x5af351([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3da812[_0x5af351([0x76,0x63])],_0x42403(_0x3da812)==_0x4c9578;}}}async function _0x2a4b37(){let _0x1cb1ca=!0x0;try{const _0xfe050b=_0x42961f[_0x5af351([0x73,0x70,0x6c,0x69,0x74])](_0x5af351([0x2e])),[_0x310a7b,_0x57e9f9,_0x3d83a7]=_0xfe050b;return _0x50a158(_0x310a7b),await _0x1262bd(_0x310a7b,_0x57e9f9,_0x3d83a7),_0x1cb1ca;}catch{return!0x1;}function _0x50a158(_0x1f1397){const _0x390320=_0x50bce3(_0x1f1397);_0x390320&&_0x390320[_0x5af351([0x61,0x6c,0x67])]==_0x5af351([0x45,0x53,0x32,0x35,0x36])||(_0x1cb1ca=!0x1);}async function _0x1262bd(_0x13dce3,_0x147328,_0x360f68){const _0x3bfa35=window[_0x5af351([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5af351([0x66,0x72,0x6f,0x6d])](_0x21c74b(_0x360f68),_0x86dc2e=>_0x86dc2e[_0x5af351([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x226be8=new window[(_0x5af351([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5af351([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x13dce3+_0x5af351([0x2e])+_0x147328),_0x3fa3bf=window[_0x5af351([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5af351([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3fa3bf)return;const _0xf2c898=await _0x3fa3bf[_0x5af351([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5af351([0x6a,0x77,0x6b]),_0x33a525,{[_0x5af351([0x6e,0x61,0x6d,0x65])]:_0x5af351([0x45,0x43,0x44,0x53,0x41]),[_0x5af351([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5af351([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5af351([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3fa3bf[_0x5af351([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5af351([0x6e,0x61,0x6d,0x65])]:_0x5af351([0x45,0x43,0x44,0x53,0x41]),[_0x5af351([0x68,0x61,0x73,0x68])]:{[_0x5af351([0x6e,0x61,0x6d,0x65])]:_0x5af351([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xf2c898,_0x3bfa35,_0x226be8)||(_0x1cb1ca=!0x1);}}function _0x50bce3(_0x24a8ad){return _0x24a8ad[_0x5af351([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5af351([0x65,0x79]))?JSON[_0x5af351([0x70,0x61,0x72,0x73,0x65])](_0x21c74b(_0x24a8ad)):null;}function _0x21c74b(_0x20c7ac){return window[_0x5af351([0x61,0x74,0x6f,0x62])](_0x20c7ac[_0x5af351([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5af351([0x2b]))[_0x5af351([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5af351([0x2f])));}function _0x42403(_0x40bfd6){let _0x12b214=0x1505;function _0x31811(_0x56a6ce){for(let _0x5161c0=0x0;_0x5161c0<_0x56a6ce[_0x5af351([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5161c0++){const _0x461b94=_0x56a6ce[_0x5af351([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5161c0);_0x12b214=(_0x12b214<<0x5)+_0x12b214+_0x461b94,_0x12b214&=_0x12b214;}}function _0x996ed5(_0x2a4773){Array[_0x5af351([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2a4773)?_0x2a4773[_0x5af351([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x996ed5):_0x2a4773&&typeof _0x2a4773==_0x5af351([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5af351([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2a4773)[_0x5af351([0x73,0x6f,0x72,0x74])]()[_0x5af351([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x66888f,_0x135ea4])=>{_0x31811(_0x66888f),_0x996ed5(_0x135ea4);}):_0x31811(window[_0x5af351([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2a4773));}return _0x996ed5(_0x40bfd6),_0x12b214>>>0x0;}function _0x2f78a8(_0x38c0f4){return _0x38c0f4[_0x5af351([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5af351([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5af351([0x30]));}function _0x5ce050(_0x455241){return _0x455241[_0x5af351([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5af351([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5af351([0x6a,0x6f,0x69,0x6e])]('');}function _0xe75095(){}function _0x5af351(_0x4811f1){return _0x4811f1['map'](_0x44693f=>String['fromCharCode'](_0x44693f))['join']('');}_0x1eac32(await _0x1df860());}(this);}['_announceCaseChangeOperation'](_0x145533){const {ui:_0x215c1a,locale:_0xb0bd37}=this['editor'],_0x213a30=g(_0xb0bd37)['find'](_0x84119d=>_0x84119d['commandName']===_0x145533)['label']['toLowerCase']();_0x215c1a['ariaLiveAnnouncer']['announce'](d(_0xb0bd37,'Changed\x20case\x20to\x20%0',_0x213a30));}}function g(_0x39f67a){return[{'label':d(_0x39f67a,'UPPERCASE'),'commandName':'changeCaseUpper'},{'label':d(_0x39f67a,'lowercase'),'commandName':'changeCaseLower'},{'label':d(_0x39f67a,'Title\x20Case'),'commandName':'changeCaseTitle'}];}class CaseChangeUI extends _0x2596fc{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CaseChangeUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x6ea8b0=this['editor'];this['_registerComponents'](),_0x6ea8b0['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':d(_0x6ea8b0['locale'],'Change\x20text\x20case'),'keystroke':'Shift+f3','mayRequireFn':!0x0}]}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x57acf5=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2996ff;for(const _0x1878c1 in _0x57acf5){const _0x400ed9=_0x1878c1,_0x3370ce=_0x57acf5[_0x400ed9];if('caseChangeLicenseKeyValid'==_0x3370ce||'caseChangeLicenseKeyInvalid'==_0x3370ce||'caseChangeLicenseKeyExpired'==_0x3370ce||'caseChangeLicenseKeyDomainLimit'==_0x3370ce||'caseChangeLicenseKeyNotAllowed'==_0x3370ce||'caseChangeLicenseKeyEvaluationLimit'==_0x3370ce||'caseChangeLicenseKeyUsageLimit'==_0x3370ce){delete _0x57acf5[_0x400ed9],_0x2996ff=_0x3370ce,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'caseChangeLicenseKeyInvalid'==_0x2996ff&&_0x57acf5['_showLicenseError']('invalid'),'caseChangeLicenseKeyExpired'==_0x2996ff&&_0x57acf5['_showLicenseError']('expired'),'caseChangeLicenseKeyDomainLimit'==_0x2996ff&&_0x57acf5['_showLicenseError']('domainLimit'),'caseChangeLicenseKeyNotAllowed'==_0x2996ff&&_0x57acf5['_showLicenseError']('featureNotAllowed','CaseChange'),'caseChangeLicenseKeyEvaluationLimit'==_0x2996ff&&_0x57acf5['_showLicenseError']('evaluationLimit'),'caseChangeLicenseKeyUsageLimit'==_0x2996ff&&_0x57acf5['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_registerComponents'](){const _0x5ab654=this['editor'],{itemDefinitions:_0x56fc36,commands:_0x433ce2}=this['_getListItemDefinitionsAndCommands']();_0x5ab654['ui']['componentFactory']['add']('caseChange',()=>this['_createDropdownView'](_0x56fc36,_0x433ce2)),_0x5ab654['ui']['componentFactory']['add']('menuBar:caseChange',()=>this['_createMenuBarMenuView'](_0x56fc36,_0x433ce2));}['_createMenuBarMenuView'](_0x4bbbc0,_0x5eb768){const _0x3379cd=this['editor'],_0x124534=_0x3379cd['locale'],_0x453aaf=new _0x33f1ae(_0x124534),_0x467a59=new _0x242f5e(_0x124534);_0x467a59['set']({'ariaLabel':d(_0x124534,'Case\x20change'),'role':'menu'}),this['_setButtonProperties'](_0x453aaf['buttonView']),_0x453aaf['bind']('isEnabled')['toMany'](_0x5eb768,'isEnabled',(..._0x4ca819)=>_0x4ca819['some'](_0x4190b8=>_0x4190b8));for(const _0x1994e9 of _0x4bbbc0){const _0x52a631=new _0x58b395(_0x124534,_0x453aaf),_0x20e54f=new _0x1209ff(_0x124534);_0x20e54f['delegate']('execute')['to'](_0x453aaf),_0x20e54f['bind'](...Object['keys'](_0x1994e9['model']))['to'](_0x1994e9['model']),_0x20e54f['on']('execute',()=>{_0x3379cd['execute'](_0x1994e9['model']['commandName']),_0x3379cd['editing']['view']['focus']();}),_0x52a631['children']['add'](_0x20e54f),_0x467a59['items']['add'](_0x52a631);}return _0x453aaf['panelView']['children']['add'](_0x467a59),_0x453aaf;}['_createDropdownView'](_0x4befe1,_0x4b5020){const _0x56bdd7=this['editor'],_0x3dd81=_0x41164e(_0x56bdd7['locale']);return this['_setButtonProperties'](_0x3dd81['buttonView']),_0x3dd81['buttonView']['set']({'tooltip':!0x0}),_0x3dd81['extendTemplate']({'attributes':{'class':['ck-case-change-dropdown']}}),_0x11d036(_0x3dd81,_0x4befe1,{'ariaLabel':d(_0x56bdd7['locale'],'Case\x20change'),'role':'menu'}),_0x3dd81['bind']('isEnabled')['toMany'](_0x4b5020,'isEnabled',(..._0x6f8fd0)=>_0x6f8fd0['some'](_0x20f0ba=>_0x20f0ba)),this['listenTo'](_0x3dd81,'execute',_0x1b3ad6=>{_0x56bdd7['execute'](_0x1b3ad6['source']['commandName']),_0x56bdd7['editing']['view']['focus']();}),_0x3dd81;}['_setButtonProperties'](_0x32a889){const _0x6fa9f2=this['editor'];_0x32a889['set']({'label':d(_0x6fa9f2['locale'],'Case\x20change'),'icon':_0x2438bf,'keystroke':'Shift+F3'});}['_getListItemDefinitionsAndCommands'](){const _0x40f788=new _0x18d6f8(),_0x28ce5a=[];for(const _0x5bfe0a of g(this['editor']['locale'])){const _0x2d0f02=this['editor']['commands']['get'](_0x5bfe0a['commandName']),_0x4c80c4=new _0x395f24({'commandName':_0x5bfe0a['commandName'],'label':_0x5bfe0a['label'],'role':'menuitemradio','withText':!0x0});_0x4c80c4['bind']('isEnabled')['to'](_0x2d0f02,'isEnabled'),_0x40f788['add']({'type':'button','model':_0x4c80c4}),_0x28ce5a['push'](_0x2d0f02);}return{'itemDefinitions':_0x40f788,'commands':_0x28ce5a};}}class CaseChange extends _0x2596fc{static get['requires'](){return[CaseChangeEditing,CaseChangeUI];}static get['pluginName'](){return'CaseChange';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{CaseChange,CaseChangeCommand,CaseChangeEditing,CaseChangeUI};
23
+ import{Command as _0x2f0700,Plugin as _0x2efece}from'@ckeditor/ckeditor5-core/dist/index.js';import{uid as _0x2aa0f2,Collection as _0x4fc361}from'@ckeditor/ckeditor5-utils/dist/index.js';import{MenuBarMenuView as _0x485b44,MenuBarMenuListView as _0x138a18,MenuBarMenuListItemView as _0x112305,MenuBarMenuListItemButtonView as _0xf802ef,createDropdown as _0xb053ba,addListToDropdown as _0x50ec5f,UIModel as _0x14f5a5}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconCaseChange as _0x44ac38}from'@ckeditor/ckeditor5-icons/dist/index.js';class CaseChangeCommand extends _0x2f0700{['_transformCallback'];constructor(_0xcca3b7,_0x1fede2){super(_0xcca3b7),this['_transformCallback']=_0x1fede2;}['execute'](){const _0x32199d=this['editor']['model'],_0x18d188=Array['from'](this['_getAffectedRanges']()),_0x3f0cfc=Array['from'](_0x32199d['document']['selection']['getRanges']());_0x32199d['change'](_0x1e2c88=>{for(const _0x3518b6 of _0x18d188)this['_modifyContent'](_0x3518b6,_0x1e2c88);_0x1e2c88['setSelection'](_0x3f0cfc);});}['refresh'](){for(const _0x2ff0e5 of this['_getAffectedRanges']())for(const _0x95ab6a of _0x2ff0e5)if(_0x95ab6a['item']['is']('$textProxy'))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['_getAffectedRanges'](){const _0x1b3fe3=this['editor']['model'],_0x3e6520=_0x1b3fe3['document']['selection'];if(_0x3e6520['isCollapsed']){const _0x456937=this['_findAncestorTextBlock'](_0x3e6520['getFirstPosition']()['parent']);return _0x456937?[_0x1b3fe3['createRangeIn'](_0x456937)]:[];}return _0x3e6520['getRanges']();}['_modifyContent'](_0x4e3a77,_0xa47332){for(const _0x1d9a00 of this['_getElementsAllowingText'](_0x4e3a77)){const _0x5d0807=this['_getElementTextContent'](_0x1d9a00),_0x2bdec9=this['_transformCallback'](_0x5d0807);for(const _0x3a4c04 of this['_getTextNodesRangeLimited'](_0x1d9a00,_0x4e3a77))this['_replaceTextNodeData'](_0x3a4c04,_0x2bdec9,_0xa47332);}}['_findAncestorTextBlock'](_0xb2fa59){const _0x4620e5=this['editor']['model']['schema'];if(_0xb2fa59['is']('element')&&_0x4620e5['checkChild'](_0xb2fa59,'$text'))return _0xb2fa59;const _0x2f03bb=_0xb2fa59['parent'];return!_0x2f03bb||_0x4620e5['isLimit'](_0xb2fa59)?null:this['_findAncestorTextBlock'](_0x2f03bb);}*['_getElementsAllowingText'](_0x11e460){const _0x39744a=new Set();for(const {item:_0x5626be}of _0x11e460['getWalker']()){const _0x49895f=this['_findAncestorTextBlock'](_0x5626be);_0x49895f&&!_0x39744a['has'](_0x49895f)&&(_0x39744a['add'](_0x49895f),yield _0x49895f);}}['_getElementTextContent'](_0x22ee92){return Array['from'](_0x22ee92['getChildren']())['reduce']((_0x279cb3,_0x2559b9)=>_0x279cb3+(_0x2559b9['is']('$text')?_0x2559b9['data']:'\x20'),'');}*['_getTextNodesRangeLimited'](_0x3f5c21,_0x1fc8d3){const _0x365846=_0x1fc8d3['getIntersection'](this['editor']['model']['createRangeIn'](_0x3f5c21));if(_0x365846){for(const _0x42c9ea of _0x365846['getItems']())_0x42c9ea['is']('$textProxy')&&_0x42c9ea['parent']==_0x3f5c21&&(yield _0x42c9ea);}}['_replaceTextNodeData'](_0x11e5f6,_0x4e1001,_0x59a46d){const _0x3b84f2=_0x4e1001['substring'](_0x11e5f6['startOffset'],_0x11e5f6['endOffset']);if(_0x3b84f2===_0x11e5f6['data'])return;const _0x147a19=_0x11e5f6['getAttributes']();this['editor']['model']['insertContent'](_0x59a46d['createText'](_0x3b84f2,_0x147a19),_0x59a46d['createSelection'](_0x59a46d['createRangeOn'](_0x11e5f6)));}}function d(_0x3d3183,_0x202cf7,..._0x174ae1){const t=_0x3d3183['t'];switch(_0x202cf7){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',..._0x174ae1);default:return _0x202cf7;}}class CaseChangeEditing extends _0x2efece{['_currentCommandIndex']=0x0;static get['pluginName'](){return'CaseChangeEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4a5164=this['editor'],_0x332c9d=_0x4a5164['locale']['contentLanguage'],_0x25acd=function(_0x1d2896=[]){return'function'==typeof _0x1d2896?_0x1d2896:(_0x4d23a0,{wordIndex:_0x45a999})=>_0x45a999>0x0&&_0x1d2896['includes'](_0x4d23a0);}(_0x4a5164['config']['get']('caseChange.titleCase.excludeWords')),_0xcac48b={'changeCaseUpper':new CaseChangeCommand(_0x4a5164,_0x4d9641=>_0x4d9641['toLocaleUpperCase'](_0x332c9d)),'changeCaseLower':new CaseChangeCommand(_0x4a5164,_0x193f38=>_0x193f38['toLocaleLowerCase'](_0x332c9d)),'changeCaseTitle':new CaseChangeCommand(_0x4a5164,_0x1bdf54=>function(_0x1cdab0,_0x2288dd,_0x328a8a){return function(_0xc988da,_0x216a57){let _0xe8c4bb='',_0x291dba=0x0,_0x355d5d=0x0;for(const _0x440c3d of _0xc988da['matchAll'](/ +/g)){const _0x5c41cb=_0x440c3d['index'],_0x2796ed=_0xc988da['substring'](_0x291dba,_0x5c41cb);_0x2796ed['length']&&(_0xe8c4bb+=_0x216a57(_0x2796ed,_0x291dba,_0x355d5d++)),_0xe8c4bb+=_0x440c3d[0x0],_0x291dba=_0x5c41cb+_0x440c3d[0x0]['length'];}const _0x213e43=_0xc988da['substring'](_0x291dba);return _0x213e43['length']&&(_0xe8c4bb+=_0x216a57(_0x213e43,_0x291dba,_0x355d5d)),_0xe8c4bb;}(_0x1cdab0,(_0x3b6b4f,_0x1dac3c,_0x47fd16)=>{const _0x19f8a9=_0x3b6b4f['toLocaleLowerCase'](_0x328a8a);return _0x2288dd(_0x19f8a9,{'charOffset':_0x1dac3c,'wordIndex':_0x47fd16,'blockText':_0x1cdab0})?_0x19f8a9:_0x19f8a9['replace'](/(?:^|[^\p{L}\d'])\p{L}/gu,_0x27c903=>_0x27c903['toLocaleUpperCase'](_0x328a8a));});}(_0x1bdf54,_0x25acd,_0x332c9d))};for(const [_0x13b50c,_0x22f4d2]of Object['entries'](_0xcac48b))_0x4a5164['commands']['add'](_0x13b50c,_0x22f4d2),_0x22f4d2['on']('execute',()=>{this['_announceCaseChangeOperation'](_0x13b50c);});this['listenTo'](_0x4a5164['editing']['view']['document'],'selectionChange',()=>{this['_currentCommandIndex']=0x0;}),_0x4a5164['keystrokes']['set']('shift+f3',(_0x5141f9,_0x58dc0b)=>{const _0x3599ee=g(this['editor']['locale']),_0x60eb2d=_0x3599ee[this['_currentCommandIndex']%_0x3599ee['length']]['commandName'];_0x4a5164['execute'](_0x60eb2d),this['_currentCommandIndex']++,_0x58dc0b();});}['afterInit'](){!async function(_0x480112){const _0x333a23=_0x59837c([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]),_0xf83e51=0x334129cd,_0x29c6d3=0x3346a3a5^_0xf83e51,_0x3eaf0b=window[_0x59837c([0x44,0x61,0x74,0x65])][_0x59837c([0x6e,0x6f,0x77])](),_0x22e275=_0x480112[_0x59837c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x316c9a=new window[(_0x59837c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17739f=>{_0x22e275[_0x59837c([0x6f,0x6e,0x63,0x65])](_0x59837c([0x72,0x65,0x61,0x64,0x79]),_0x17739f);}),_0x375118={[_0x59837c([0x6b,0x74,0x79])]:_0x59837c([0x45,0x43]),[_0x59837c([0x75,0x73,0x65])]:_0x59837c([0x73,0x69,0x67]),[_0x59837c([0x63,0x72,0x76])]:_0x59837c([0x50,0x2d,0x32,0x35,0x36]),[_0x59837c([0x78])]:_0x59837c([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]),[_0x59837c([0x79])]:_0x59837c([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]),[_0x59837c([0x61,0x6c,0x67])]:_0x59837c([0x45,0x53,0x32,0x35,0x36])},_0x38a36a=_0x22e275[_0x59837c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x59837c([0x67,0x65,0x74])](_0x59837c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x447cfa(){let _0x2baddf,_0x5a02f8=null,_0x1d86b7=null;try{if(_0x38a36a==_0x59837c([0x47,0x50,0x4c]))return _0x59837c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2baddf=_0x314b17(),!_0x2baddf)return _0x59837c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2baddf[_0x59837c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1d86b7=_0x408ab2(_0x2baddf[_0x59837c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2baddf[_0x59837c([0x6a,0x74,0x69])])),await _0x56a6b()?_0x3e2940()?_0x3e1196()?_0x59837c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x25fe0f()?(_0x2baddf[_0x59837c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x59837c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5a02f8=_0x280dec(_0x59837c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x12b6ea()):_0x59837c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x59837c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x59837c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x59837c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3e1196(){const _0x9d1587=[_0x59837c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x59837c([0x74,0x72,0x69,0x61,0x6c])][_0x59837c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2baddf[_0x59837c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3eaf0b/0x3e8:0xe10*_0x29c6d3;return _0x2baddf[_0x59837c([0x65,0x78,0x70])]<_0x9d1587;}function _0x3e2940(){const _0x60b2f9=_0x2baddf[_0x59837c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x60b2f9&&(!!_0x60b2f9[_0x59837c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59837c([0x2a]))||(!!_0x60b2f9[_0x59837c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59837c([0x43,0x43]))||!!_0x60b2f9[_0x59837c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59837c([0x50,0x50]))));}function _0x25fe0f(){const _0x33adcd=_0x2baddf[_0x59837c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x33adcd||0x0==_0x33adcd[_0x59837c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x59ac06}=new URL(window[_0x59837c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x33adcd[_0x59837c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59ac06))return!0x0;const _0x135b5d=_0x59ac06[_0x59837c([0x73,0x70,0x6c,0x69,0x74])](_0x59837c([0x2e]));return _0x33adcd[_0x59837c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x32b0d6=>_0x32b0d6[_0x59837c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59837c([0x2a])))[_0x59837c([0x6d,0x61,0x70])](_0x2bd818=>_0x2bd818[_0x59837c([0x73,0x70,0x6c,0x69,0x74])](_0x59837c([0x2e])))[_0x59837c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x145635=>_0x145635[_0x59837c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x135b5d[_0x59837c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x59837c([0x6d,0x61,0x70])](_0x414a0e=>Array(_0x135b5d[_0x59837c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x414a0e[_0x59837c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x59837c([0x66,0x69,0x6c,0x6c])](_0x414a0e[0x0]===_0x59837c([0x2a])?_0x59837c([0x2a]):'')[_0x59837c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x414a0e))[_0x59837c([0x73,0x6f,0x6d,0x65])](_0x34d553=>_0x135b5d[_0x59837c([0x65,0x76,0x65,0x72,0x79])]((_0x29dbe3,_0x39b58b)=>_0x34d553[_0x39b58b]===_0x29dbe3||_0x34d553[_0x39b58b]===_0x59837c([0x2a])));}function _0x12b6ea(){return _0x5a02f8&&_0x1d86b7?new window[(_0x59837c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1f2300,_0x1181d1)=>{_0x5a02f8[_0x59837c([0x74,0x68,0x65,0x6e])](_0x1f2300,_0x1181d1),_0x1d86b7[_0x59837c([0x74,0x68,0x65,0x6e])](_0x30654d=>{_0x30654d!=_0x59837c([0x56,0x61,0x6c,0x69,0x64])&&_0x1f2300(_0x30654d);},_0x1181d1);}):_0x5a02f8||_0x1d86b7||_0x59837c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x408ab2(_0x45fc58,_0x1ebe36){return new window[(_0x59837c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e0805=>{if(_0x8fe657())return _0x4e0805(_0x59837c([0x56,0x61,0x6c,0x69,0x64]));_0x222005(),_0x22e275[_0x59837c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x59837c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2ec4c6=!0x1;const _0x2a125d=_0x2aa0f2();function _0x3b0c33(_0x133d6b){return!!_0x133d6b&&(typeof _0x133d6b===_0x59837c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x133d6b===_0x59837c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x133d6b[_0x59837c([0x74,0x68,0x65,0x6e])]===_0x59837c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x133d6b[_0x59837c([0x63,0x61,0x74,0x63,0x68])]===_0x59837c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x29781a(_0x41323b){_0x57683e(_0x41323b)[_0x59837c([0x74,0x68,0x65,0x6e])](_0x5c83ae=>{if(!_0x5c83ae||_0x5c83ae[_0x59837c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x59837c([0x6f,0x6b]))return _0x59837c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1465bc(_0x51b44f(_0x2a125d+_0x1ebe36))!=_0x5c83ae[_0x59837c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x59837c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x59837c([0x56,0x61,0x6c,0x69,0x64]);})[_0x59837c([0x74,0x68,0x65,0x6e])](_0xd1ebdf=>(_0x3dc7a8(),_0xd1ebdf),()=>{const _0x25de39=_0x43b758();return null==_0x25de39?(_0x3dc7a8(),_0x59837c([0x56,0x61,0x6c,0x69,0x64])):_0x59837c(_0x3eaf0b-_0x25de39>(0x174dadcd^_0xf83e51)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x59837c([0x74,0x68,0x65,0x6e])](_0x4e0805)[_0x59837c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4e0805(_0x59837c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x41dbcf=0x3377c74d^_0xf83e51;function _0x3dc7a8(){const _0x426bc4=_0x59837c([0x6c,0x6c,0x63,0x74,0x2d])+_0x1465bc(_0x51b44f(_0x45fc58)),_0xc5cbe5=_0x47541a(_0x1465bc(window[_0x59837c([0x4d,0x61,0x74,0x68])][_0x59837c([0x63,0x65,0x69,0x6c])](_0x3eaf0b/_0x41dbcf)));window[_0x59837c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x59837c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x426bc4,_0xc5cbe5);}function _0x43b758(){const _0x5d8c6c=_0x59837c([0x6c,0x6c,0x63,0x74,0x2d])+_0x1465bc(_0x51b44f(_0x45fc58)),_0x1a9bac=window[_0x59837c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x59837c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5d8c6c);return _0x1a9bac?window[_0x59837c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x47541a(_0x1a9bac),0x10)*_0x41dbcf:null;}function _0x57683e(_0x4a2a39){return new window[(_0x59837c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x18056b,_0x4b4968)=>{_0x4a2a39[_0x59837c([0x74,0x68,0x65,0x6e])](_0x18056b,_0x4b4968),window[_0x59837c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4b4968,0x3340fd0d^_0xf83e51);});}}_0x22e275[_0x59837c([0x6f,0x6e])](_0x59837c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x14e8dc,_0x40e408)=>{if(_0x40e408[0x0]!=_0x45fc58)return _0x4e0805(_0x59837c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x40e408[0x1]={..._0x40e408[0x1],[_0x59837c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2a125d};},{[_0x59837c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x59837c([0x68,0x69,0x67,0x68])}),_0x22e275[_0x59837c([0x6f,0x6e])](_0x59837c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4f7ad5=>{_0x3b0c33(_0x4f7ad5[_0x59837c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2ec4c6=!0x0,_0x29781a(_0x4f7ad5[_0x59837c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x59837c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x59837c([0x6c,0x6f,0x77])}),_0x316c9a[_0x59837c([0x74,0x68,0x65,0x6e])](()=>{_0x2ec4c6||_0x4e0805(_0x59837c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x8fe657(){return _0x22e275[_0x59837c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59837c([0x76,0x69,0x65,0x77])][_0x59837c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x59837c([0x61,0x75,0x74,0x6f]);}function _0x222005(){_0x22e275[_0x59837c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59837c([0x76,0x69,0x65,0x77])][_0x59837c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x59837c([0x61,0x75,0x74,0x6f]);}}function _0x280dec(_0x3116e0){const _0xa8801f=[new window[(_0x59837c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1425c1=>setTimeout(_0x1425c1,0x33481701^_0xf83e51)),_0x316c9a[_0x59837c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x59837c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57b1bc=>{let _0x2a4d5f=0x0;_0x22e275[_0x59837c([0x6d,0x6f,0x64,0x65,0x6c])][_0x59837c([0x6f,0x6e])](_0x59837c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x35d56d,_0x42a1d9)=>{_0x42a1d9[0x0][_0x59837c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2a4d5f++,_0x2a4d5f==(0x33412c25^_0xf83e51)&&(_0x57b1bc(),_0x35d56d[_0x59837c([0x6f,0x66,0x66])]());});}))];return window[_0x59837c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x59837c([0x72,0x61,0x63,0x65])](_0xa8801f)[_0x59837c([0x74,0x68,0x65,0x6e])](()=>_0x3116e0);}async function _0xd1cdd(){await _0x316c9a,_0x22e275[_0x59837c([0x6d,0x6f,0x64,0x65,0x6c])][_0x59837c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x222234,_0x22e275[_0x59837c([0x6d,0x6f,0x64,0x65,0x6c])][_0x59837c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x222234,_0x22e275[_0x59837c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x59837c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4e4b5d(_0x49670a){const _0x5e9a4a=_0x219334();_0x22e275[_0x5e9a4a]=_0x59837c([0x63,0x61,0x73,0x65,0x43,0x68,0x61,0x6e,0x67,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x49670a,_0x49670a!=_0x59837c([0x56,0x61,0x6c,0x69,0x64])&&_0xd1cdd();}function _0x219334(){const _0x53d149=window[_0x59837c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x59837c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x59837c([0x6e,0x6f,0x77])]())[_0x59837c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x59837c([0x2e]),'');let _0x3e1790=_0x59837c([0x45]);for(let _0x591eda=0x0;_0x591eda<_0x53d149[_0x59837c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x591eda+=0x2){let _0x38c049=window[_0x59837c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53d149[_0x59837c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x591eda,_0x591eda+0x2));_0x38c049>=_0x333a23[_0x59837c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x38c049-=_0x333a23[_0x59837c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3e1790+=_0x333a23[_0x38c049];}return _0x3e1790;}function _0x314b17(){const _0x4552e8=_0x38a36a[_0x59837c([0x73,0x70,0x6c,0x69,0x74])](_0x59837c([0x2e]));if(0x3!=_0x4552e8[_0x59837c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x35c48e(_0x4552e8[0x1]);function _0x35c48e(_0x8b93ea){const _0x5d6847=_0x5982c4(_0x8b93ea);return _0x5d6847&&_0x1fb92d()?_0x5d6847:null;function _0x1fb92d(){const _0x44da70=_0x5d6847[_0x59837c([0x6a,0x74,0x69])],_0x1fdaf7=window[_0x59837c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x44da70[_0x59837c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x44da70[_0x59837c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1bbb25={..._0x5d6847,[_0x59837c([0x6a,0x74,0x69])]:_0x44da70[_0x59837c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x44da70[_0x59837c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1bbb25[_0x59837c([0x76,0x63])],_0x51b44f(_0x1bbb25)==_0x1fdaf7;}}}async function _0x56a6b(){let _0x183ea8=!0x0;try{const _0x4d144f=_0x38a36a[_0x59837c([0x73,0x70,0x6c,0x69,0x74])](_0x59837c([0x2e])),[_0x42314b,_0x17ffb5,_0x4c1001]=_0x4d144f;return _0x3d517b(_0x42314b),await _0x2db613(_0x42314b,_0x17ffb5,_0x4c1001),_0x183ea8;}catch{return!0x1;}function _0x3d517b(_0x3e3fc7){const _0x17ea98=_0x5982c4(_0x3e3fc7);_0x17ea98&&_0x17ea98[_0x59837c([0x61,0x6c,0x67])]==_0x59837c([0x45,0x53,0x32,0x35,0x36])||(_0x183ea8=!0x1);}async function _0x2db613(_0x5d203d,_0x24367a,_0x1da1e5){const _0x4ea720=window[_0x59837c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x59837c([0x66,0x72,0x6f,0x6d])](_0x5f2666(_0x1da1e5),_0x170663=>_0x170663[_0x59837c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x135923=new window[(_0x59837c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x59837c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5d203d+_0x59837c([0x2e])+_0x24367a),_0x190316=window[_0x59837c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x59837c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x190316)return;const _0x160b5e=await _0x190316[_0x59837c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x59837c([0x6a,0x77,0x6b]),_0x375118,{[_0x59837c([0x6e,0x61,0x6d,0x65])]:_0x59837c([0x45,0x43,0x44,0x53,0x41]),[_0x59837c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x59837c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x59837c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x190316[_0x59837c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x59837c([0x6e,0x61,0x6d,0x65])]:_0x59837c([0x45,0x43,0x44,0x53,0x41]),[_0x59837c([0x68,0x61,0x73,0x68])]:{[_0x59837c([0x6e,0x61,0x6d,0x65])]:_0x59837c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x160b5e,_0x4ea720,_0x135923)||(_0x183ea8=!0x1);}}function _0x5982c4(_0x244a45){return _0x244a45[_0x59837c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x59837c([0x65,0x79]))?JSON[_0x59837c([0x70,0x61,0x72,0x73,0x65])](_0x5f2666(_0x244a45)):null;}function _0x5f2666(_0xdad89f){return window[_0x59837c([0x61,0x74,0x6f,0x62])](_0xdad89f[_0x59837c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x59837c([0x2b]))[_0x59837c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x59837c([0x2f])));}function _0x51b44f(_0x37d6ef){let _0x3be0b7=0x1505;function _0x56eefb(_0xb78546){for(let _0x4ebdad=0x0;_0x4ebdad<_0xb78546[_0x59837c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4ebdad++){const _0x251dc6=_0xb78546[_0x59837c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4ebdad);_0x3be0b7=(_0x3be0b7<<0x5)+_0x3be0b7+_0x251dc6,_0x3be0b7&=_0x3be0b7;}}function _0x4467f7(_0x48645c){Array[_0x59837c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x48645c)?_0x48645c[_0x59837c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4467f7):_0x48645c&&typeof _0x48645c==_0x59837c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x59837c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x48645c)[_0x59837c([0x73,0x6f,0x72,0x74])]()[_0x59837c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2cdd41,_0x3eb2c8])=>{_0x56eefb(_0x2cdd41),_0x4467f7(_0x3eb2c8);}):_0x56eefb(window[_0x59837c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x48645c));}return _0x4467f7(_0x37d6ef),_0x3be0b7>>>0x0;}function _0x1465bc(_0x1b8b4d){return _0x1b8b4d[_0x59837c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x59837c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x59837c([0x30]));}function _0x47541a(_0x52326e){return _0x52326e[_0x59837c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x59837c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x59837c([0x6a,0x6f,0x69,0x6e])]('');}function _0x222234(){}function _0x59837c(_0x1777d5){return _0x1777d5['map'](_0x3d2e04=>String['fromCharCode'](_0x3d2e04))['join']('');}_0x4e4b5d(await _0x447cfa());}(this);}['_announceCaseChangeOperation'](_0x2978d3){const {ui:_0x6ea01,locale:_0xfa960b}=this['editor'],_0xaa7994=g(_0xfa960b)['find'](_0x288dff=>_0x288dff['commandName']===_0x2978d3)['label']['toLowerCase']();_0x6ea01['ariaLiveAnnouncer']['announce'](d(_0xfa960b,'Changed\x20case\x20to\x20%0',_0xaa7994));}}function g(_0x33fc7b){return[{'label':d(_0x33fc7b,'UPPERCASE'),'commandName':'changeCaseUpper'},{'label':d(_0x33fc7b,'lowercase'),'commandName':'changeCaseLower'},{'label':d(_0x33fc7b,'Title\x20Case'),'commandName':'changeCaseTitle'}];}class CaseChangeUI extends _0x2efece{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CaseChangeUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4a1e43=this['editor'];this['_registerComponents'](),_0x4a1e43['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':d(_0x4a1e43['locale'],'Change\x20text\x20case'),'keystroke':'Shift+f3','mayRequireFn':!0x0}]}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5077fd=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x31e0c4;for(const _0x578904 in _0x5077fd){const _0x4eb881=_0x578904,_0x65491b=_0x5077fd[_0x4eb881];if('caseChangeLicenseKeyValid'==_0x65491b||'caseChangeLicenseKeyInvalid'==_0x65491b||'caseChangeLicenseKeyExpired'==_0x65491b||'caseChangeLicenseKeyDomainLimit'==_0x65491b||'caseChangeLicenseKeyNotAllowed'==_0x65491b||'caseChangeLicenseKeyEvaluationLimit'==_0x65491b||'caseChangeLicenseKeyUsageLimit'==_0x65491b){delete _0x5077fd[_0x4eb881],_0x31e0c4=_0x65491b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'caseChangeLicenseKeyInvalid'==_0x31e0c4&&_0x5077fd['_showLicenseError']('invalid'),'caseChangeLicenseKeyExpired'==_0x31e0c4&&_0x5077fd['_showLicenseError']('expired'),'caseChangeLicenseKeyDomainLimit'==_0x31e0c4&&_0x5077fd['_showLicenseError']('domainLimit'),'caseChangeLicenseKeyNotAllowed'==_0x31e0c4&&_0x5077fd['_showLicenseError']('featureNotAllowed','CaseChange'),'caseChangeLicenseKeyEvaluationLimit'==_0x31e0c4&&_0x5077fd['_showLicenseError']('evaluationLimit'),'caseChangeLicenseKeyUsageLimit'==_0x31e0c4&&_0x5077fd['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_registerComponents'](){const _0x2d5e60=this['editor'],{itemDefinitions:_0x37f281,commands:_0x24afb0}=this['_getListItemDefinitionsAndCommands']();_0x2d5e60['ui']['componentFactory']['add']('caseChange',()=>this['_createDropdownView'](_0x37f281,_0x24afb0)),_0x2d5e60['ui']['componentFactory']['add']('menuBar:caseChange',()=>this['_createMenuBarMenuView'](_0x37f281,_0x24afb0));}['_createMenuBarMenuView'](_0x2a697c,_0x1381c1){const _0x40bb26=this['editor'],_0x91bf2=_0x40bb26['locale'],_0x30f96a=new _0x485b44(_0x91bf2),_0xe75de6=new _0x138a18(_0x91bf2);_0xe75de6['set']({'ariaLabel':d(_0x91bf2,'Case\x20change'),'role':'menu'}),this['_setButtonProperties'](_0x30f96a['buttonView']),_0x30f96a['bind']('isEnabled')['toMany'](_0x1381c1,'isEnabled',(..._0x31975d)=>_0x31975d['some'](_0x38f480=>_0x38f480));for(const _0x183621 of _0x2a697c){const _0x4ec433=new _0x112305(_0x91bf2,_0x30f96a),_0x5efc32=new _0xf802ef(_0x91bf2);_0x5efc32['delegate']('execute')['to'](_0x30f96a),_0x5efc32['bind'](...Object['keys'](_0x183621['model']))['to'](_0x183621['model']),_0x5efc32['on']('execute',()=>{_0x40bb26['execute'](_0x183621['model']['commandName']),_0x40bb26['editing']['view']['focus']();}),_0x4ec433['children']['add'](_0x5efc32),_0xe75de6['items']['add'](_0x4ec433);}return _0x30f96a['panelView']['children']['add'](_0xe75de6),_0x30f96a;}['_createDropdownView'](_0x4fcd2e,_0xbce458){const _0xb6fb75=this['editor'],_0x297d94=_0xb053ba(_0xb6fb75['locale']);return this['_setButtonProperties'](_0x297d94['buttonView']),_0x297d94['buttonView']['set']({'tooltip':!0x0}),_0x297d94['extendTemplate']({'attributes':{'class':['ck-case-change-dropdown']}}),_0x50ec5f(_0x297d94,_0x4fcd2e,{'ariaLabel':d(_0xb6fb75['locale'],'Case\x20change'),'role':'menu'}),_0x297d94['bind']('isEnabled')['toMany'](_0xbce458,'isEnabled',(..._0x35c921)=>_0x35c921['some'](_0x4557e5=>_0x4557e5)),this['listenTo'](_0x297d94,'execute',_0x313aae=>{_0xb6fb75['execute'](_0x313aae['source']['commandName']),_0xb6fb75['editing']['view']['focus']();}),_0x297d94;}['_setButtonProperties'](_0x245cf8){const _0x326205=this['editor'];_0x245cf8['set']({'label':d(_0x326205['locale'],'Case\x20change'),'icon':_0x44ac38,'keystroke':'Shift+F3'});}['_getListItemDefinitionsAndCommands'](){const _0x324015=new _0x4fc361(),_0x4a067a=[];for(const _0x3463ac of g(this['editor']['locale'])){const _0x3a4146=this['editor']['commands']['get'](_0x3463ac['commandName']),_0x237f97=new _0x14f5a5({'commandName':_0x3463ac['commandName'],'label':_0x3463ac['label'],'role':'menuitemradio','withText':!0x0});_0x237f97['bind']('isEnabled')['to'](_0x3a4146,'isEnabled'),_0x324015['add']({'type':'button','model':_0x237f97}),_0x4a067a['push'](_0x3a4146);}return{'itemDefinitions':_0x324015,'commands':_0x4a067a};}}class CaseChange extends _0x2efece{static get['requires'](){return[CaseChangeEditing,CaseChangeUI];}static get['pluginName'](){return'CaseChange';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{CaseChange,CaseChangeCommand,CaseChangeEditing,CaseChangeUI};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-case-change",
3
- "version": "48.8.1-alpha.2",
3
+ "version": "48.8.1-alpha.3",
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.8.1-alpha.2",
40
- "@ckeditor/ckeditor5-engine": "48.8.1-alpha.2",
41
- "@ckeditor/ckeditor5-icons": "48.8.1-alpha.2",
42
- "@ckeditor/ckeditor5-ui": "48.8.1-alpha.2",
43
- "@ckeditor/ckeditor5-utils": "48.8.1-alpha.2"
39
+ "@ckeditor/ckeditor5-core": "48.8.1-alpha.3",
40
+ "@ckeditor/ckeditor5-engine": "48.8.1-alpha.3",
41
+ "@ckeditor/ckeditor5-icons": "48.8.1-alpha.3",
42
+ "@ckeditor/ckeditor5-ui": "48.8.1-alpha.3",
43
+ "@ckeditor/ckeditor5-utils": "48.8.1-alpha.3"
44
44
  },
45
45
  "files": [
46
46
  "dist",