@ckeditor/ckeditor5-ai
Version:
AI Assistant feature for CKEditor 5.
23 lines • 21 kB
JavaScript
/*
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
*
*
*
*
* +---------------------------------------------------------------------------------+
* | |
* | Hello stranger! |
* | |
* | |
* | What you're currently looking at is the source code of a legally protected, |
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
* | are forbidden and will result in legal consequences. |
* | |
* | |
* +---------------------------------------------------------------------------------+
*
*
*
*
*/
const _0x5c8240=_0x294a;(function(_0x2061e6,_0x31fe01){const _0x1e1790=_0x294a,_0x53b49=_0x2061e6();while(!![]){try{const _0x3eabd8=parseInt(_0x1e1790(0x136))/0x1*(-parseInt(_0x1e1790(0x10e))/0x2)+parseInt(_0x1e1790(0x108))/0x3*(parseInt(_0x1e1790(0xda))/0x4)+parseInt(_0x1e1790(0xa7))/0x5+parseInt(_0x1e1790(0xec))/0x6*(parseInt(_0x1e1790(0xa4))/0x7)+parseInt(_0x1e1790(0x99))/0x8*(-parseInt(_0x1e1790(0x100))/0x9)+-parseInt(_0x1e1790(0xc0))/0xa+-parseInt(_0x1e1790(0x125))/0xb*(-parseInt(_0x1e1790(0x101))/0xc);if(_0x3eabd8===_0x31fe01)break;else _0x53b49['push'](_0x53b49['shift']());}catch(_0x3aaa67){_0x53b49['push'](_0x53b49['shift']());}}}(_0x428c,0xb7887));function _0x428c(){const _0x4851ce=['updatePosition','aiLicenseKeyTrialLimit','componentFactory','evaluationLimit','</p>','fire','_dialog','_getResolvedCommandsDefinitions','requires','push','aiLicenseKeyDomainLimit','setSelection','groupLabel','commands','9kogdgy','1416lFCZuj','INSERT','map','trialLimit','_populateMenuBarMenu','pluginName','from','59784EwKHxi','_onExecute','forEach','set','buttonView','destroy','1339978RKrXqK','listenTo','plugins','ai.useTheme','comment','includes','splice','isOfficialPlugin','aiLicenseKeyInvalid','ck-ai-assistant-ui','reset','queryView','hideUI','model','aiLicenseKeyUsageLimit','once','copy','showAIAssistant','licenseKey','label','delegate','_commandDefinitions','hide','151888IfpqaE','show','aiAssistant','Error\x20during\x20AI\x20content\x20generation:\x20%0','_forceMarkersCopy','items','textAdapter','locale','document','EDITOR_TOP_SIDE','isOn','selection','AI\x20is\x20writing','_licenseKeyCheckInterval','ai.aiAssistant.commands','aiLicenseKeyExpired','config','1tTgOKv','change:value','change','editing','DataTransfer','<p>','focus','panelView','init','replace','getLimitElement','trim','menuBar:aiAssistant','get','tableOfContents','errorView','showUI','getData','body','_initView','bind','5442384sGfcFW','isEnabled','addMany','showFakeVisualSelection','announce','getSelectedBlocks','isCollapsed','schema','rawHtml','buttons','featureNotAllowed','791oGeTAt','enabledCommandsIds','view','134785eJNuUG','source','menuPanelClass','aiLicenseKeyEvaluationLimit','_formView','insertContent','change:enabledCommandsIds','ck-ai-commands-dropdown\x20','change:isProcessing','execute','expired','update','values','AI\x20Commands','updateView','hideFakeVisualSelection','isPremiumPlugin','getRanges','media','polite','Generated\x20content:\x20%0','custom','render','\x20ck-ai-assistant-ui_theme','promptView','11512740FFKTiw','order','usageLimit','AIAssistant','fieldView','ai.aiAssistant.contentAreaCssClass','REPLACE','wasMoved','change:isError','replaceContent','command:','length','insertContentBelow','ai.aiAssistant.disabledElements','_uiCssClasses','filter','domainLimit','_aiAdapter','menuBar:aiCommands','currentContext','_getMenuBarGroupButtons','getSelectedElement','AI\x20Assistant','_initAriaAiStatusChangeAnnouncements','text','add','292Lglohg','prompt','aiLicenseKeyValid','isFlat','AIAssistantUI','_aiAssistantController','define','sort','groupId','_createAIAssistantUIButton','_showLicenseError','aiCommands','children','aiLicenseKeyNotAllowed','ck-ai-assistant-button\x20','invalid','menuView','menuitemcheckbox','7554DSCdhf','text/html','editor','contentArea','requiresContent','ai-commands-config-order-collision'];_0x428c=function(){return _0x4851ce;};return _0x428c();}import{Plugin as _0x1075e4}from'ckeditor5/src/core.js';import{IconMagicWand as _0x33c665,IconRobotPencil as _0x388c49}from'ckeditor5/src/icons.js';import{first as _0x45b39,CKEditorError as _0x5d618a}from'ckeditor5/src/utils.js';function _0x294a(_0x4315ef,_0x2a468f){const _0x428c48=_0x428c();return _0x294a=function(_0x294a8a,_0x592b80){_0x294a8a=_0x294a8a-0x8a;let _0x38bcb3=_0x428c48[_0x294a8a];return _0x38bcb3;},_0x294a(_0x4315ef,_0x2a468f);}import{createDropdown as _0x412f86,addMenuToDropdown as _0xef130,ButtonView as _0x4e6515,MenuBarMenuListItemButtonView as _0x38b86f,Dialog as _0x6a3f98,DialogViewPosition as _0x3b66a9,MenuBarMenuView as _0xa89877,MenuBarMenuListView as _0x16cc11,MenuBarMenuListItemView as _0x1fe5a4}from'ckeditor5/src/ui.js';import{normalizeCommandsConfig as _0xd18c72,UNGROUPED_COMMANDS_GROUP_ID as _0x4d794d}from'./utils/normalizecommandsconfig.js';import _0x4d3db5 from'./aiassistantediting.js';import _0x4106a0 from'./adapters/aiadapter.js';import{getTranslation as _0x4f7776}from'./utils/common-translations.js';import _0x112024 from'./ui/showaiassistantcommand.js';import _0x4eda84 from'./ui/aiassistantcontroller.js';import _0x122699 from'./ui/form/aiformview.js';import{AIFormToolbarViewMainActionLabel as _0x40d9ee}from'./ui/form/aiformtoolbarview.js';import'../theme/ai.css';import'../theme/ai-dropdown.css';import'../theme/ai-form.css';const w=globalThis[_0x5c8240(0x13a)];import{ClipboardMarkersUtils as _0x2d9ed7}from'ckeditor5/src/clipboard.js';import{DomEventData as _0x2f6757,DataTransfer as _0x761454}from'ckeditor5/src/engine.js';export default class n extends _0x1075e4{[_0x5c8240(0x120)];[_0x5c8240(0x132)];[_0x5c8240(0xf8)];[_0x5c8240(0xab)];[_0x5c8240(0xd1)];[_0x5c8240(0xdf)];[_0x5c8240(0xce)]='';static get[_0x5c8240(0x106)](){const _0x2e6f71=_0x5c8240;return _0x2e6f71(0xde);}static get[_0x5c8240(0x115)](){return!0x0;}static get[_0x5c8240(0xb7)](){return!0x0;}static get[_0x5c8240(0xfa)](){return[_0x2d9ed7,_0x4d3db5,_0x4106a0,_0x6a3f98];}constructor(_0x40ef82){const _0x20bf29=_0x5c8240;super(_0x40ef82),_0x40ef82[_0x20bf29(0x135)][_0x20bf29(0xe0)](_0x20bf29(0xcd),[_0x20bf29(0xb9),_0x20bf29(0xa1),_0x20bf29(0x92)]),_0x40ef82[_0x20bf29(0x135)][_0x20bf29(0xe0)](_0x20bf29(0xc5),''),_0x40ef82[_0x20bf29(0x135)][_0x20bf29(0xe0)](_0x20bf29(0x111),!0x0),this[_0x20bf29(0xce)]=_0x20bf29(0x117)+(_0x40ef82[_0x20bf29(0x135)][_0x20bf29(0x91)](_0x20bf29(0x111))?_0x20bf29(0xbe):'');}[_0x5c8240(0x8c)](){const _0x34e34f=_0x5c8240,{editor:_0x308745}=this;this[_0x34e34f(0xd1)]=_0x308745[_0x34e34f(0x110)][_0x34e34f(0x91)](_0x4106a0),this[_0x34e34f(0xf8)]=_0x308745[_0x34e34f(0x110)][_0x34e34f(0x91)](_0x6a3f98),this[_0x34e34f(0xab)]=null,this[_0x34e34f(0x123)]=this[_0x34e34f(0xf9)]();const _0x25dd51=new _0x112024(_0x308745,Array[_0x34e34f(0x107)](this[_0x34e34f(0x123)][_0x34e34f(0xb3)]()));_0x308745[_0x34e34f(0xff)][_0x34e34f(0xd9)](_0x34e34f(0x11f),_0x25dd51),_0x308745['ui'][_0x34e34f(0xf4)][_0x34e34f(0xd9)](_0x34e34f(0xe5),_0x487bcd=>{const _0x48aeb9=_0x34e34f,_0x255e06=_0x412f86(_0x487bcd);return _0x255e06[_0x48aeb9(0x10b)]({'class':_0x48aeb9(0xae)+this[_0x48aeb9(0xce)]}),_0x255e06[_0x48aeb9(0x10c)][_0x48aeb9(0x10b)]({'label':_0x4f7776(_0x487bcd,_0x48aeb9(0xb4)),'icon':_0x33c665,'tooltip':!0x0}),_0x255e06['on'](_0x48aeb9(0xb0),_0x30b1ee=>this[_0x48aeb9(0x109)](_0x30b1ee[_0x48aeb9(0xa8)]['id'])),_0xef130(_0x255e06,_0x308745['ui'][_0x48aeb9(0xa6)][_0x48aeb9(0x96)],function(_0x3c0d44){const _0x327d67=_0x48aeb9,_0x25c926=_0xd18c72(_0x3c0d44[_0x327d67(0x135)][_0x327d67(0x91)](_0x327d67(0x133)),_0x3c0d44[_0x327d67(0x12c)]),_0x325b91=U(_0x3c0d44,_0x25c926)[_0x327d67(0xcf)](_0xd10cff=>_0xd10cff[_0x327d67(0xff)][_0x327d67(0xcb)]);if(0x1===_0x325b91[_0x327d67(0xcb)])return U(_0x3c0d44,_0x325b91[0x0][_0x327d67(0xff)])[_0x327d67(0x103)](_0x51245b=>({'id':_0x51245b['id'],'label':_0x51245b[_0x327d67(0x121)]}));return _0x325b91[_0x327d67(0x103)](_0x407473=>{const _0x37b2e0=_0x327d67,{groupId:_0x1babcd,groupLabel:_0x21e69f,commands:_0x1b19a1}=_0x407473,_0x563788=U(_0x3c0d44,_0x1b19a1)[_0x37b2e0(0x103)](_0x31458f=>({'id':_0x31458f['id'],'label':_0x31458f[_0x37b2e0(0x121)]}));return{'id':_0x1babcd,'menu':_0x21e69f||_0x1babcd,'children':_0x563788};});}(_0x308745),{'ariaLabel':_0x4f7776(_0x487bcd,_0x48aeb9(0xb4))}),_0x255e06[_0x48aeb9(0xea)][_0x48aeb9(0xa9)]=_0x48aeb9(0xae)+this[_0x48aeb9(0xce)],_0x25dd51['on'](_0x48aeb9(0xad),_0x344016),_0x255e06[_0x48aeb9(0xea)][_0x48aeb9(0x11d)](_0x48aeb9(0xbd),_0x344016),_0x255e06;function _0x344016(){const _0x54b868=_0x48aeb9;_0x255e06[_0x54b868(0x9a)]=_0x25dd51[_0x54b868(0xa5)][_0x54b868(0xcb)]>0x0;for(const _0x50696f of _0x255e06[_0x54b868(0xea)][_0x54b868(0xa2)])_0x50696f[_0x54b868(0x9a)]=_0x25dd51[_0x54b868(0xa5)][_0x54b868(0x113)](_0x50696f['id']);}}),_0x308745['ui'][_0x34e34f(0xf4)][_0x34e34f(0xd9)](_0x34e34f(0xd2),_0x1fa9c3=>{const _0x5e2800=_0x34e34f,_0x5b40c1=new _0xa89877(_0x1fa9c3);_0x5b40c1[_0x5e2800(0x10c)][_0x5e2800(0x10b)]({'label':_0x4f7776(_0x1fa9c3,_0x5e2800(0xb4)),'icon':_0x33c665}),_0x5b40c1[_0x5e2800(0x98)](_0x5e2800(0x9a))['to'](_0x25dd51,_0x5e2800(0xa5),_0x5311cd=>_0x5311cd[_0x5e2800(0xcb)]>0x0);const _0x36d56c=_0xd18c72(_0x308745[_0x5e2800(0x135)][_0x5e2800(0x91)](_0x5e2800(0x133)),_0x1fa9c3);return this[_0x5e2800(0x105)](_0x25dd51,_0x5b40c1,_0x36d56c,_0x47e47e=>this[_0x5e2800(0x109)](_0x47e47e)),_0x5b40c1;}),_0x308745['ui'][_0x34e34f(0xf4)][_0x34e34f(0xd9)](_0x34e34f(0x127),()=>{const _0x5e29e0=_0x34e34f,_0x4d435f=this[_0x5e29e0(0xe3)](_0x4e6515);return _0x4d435f[_0x5e29e0(0x10b)]({'tooltip':!0x0,'class':_0x5e29e0(0xe8)+this[_0x5e29e0(0xce)]}),_0x4d435f;}),_0x308745['ui'][_0x34e34f(0xf4)][_0x34e34f(0xd9)](_0x34e34f(0x90),()=>{const _0x3a8dc0=_0x34e34f,_0x2b2bfb=this[_0x3a8dc0(0xe3)](_0x38b86f);return _0x2b2bfb[_0x3a8dc0(0x10b)]({'role':_0x3a8dc0(0xeb)}),_0x2b2bfb;}),this[_0x34e34f(0x120)]=this[_0x34e34f(0xee)][_0x34e34f(0x135)][_0x34e34f(0x91)](_0x34e34f(0x120));const _0xc4693c=this[_0x34e34f(0xee)];this[_0x34e34f(0x132)]=setInterval(()=>{const _0x4708a2=_0x34e34f;let _0x264f75;for(const _0x2dde12 in _0xc4693c){const _0x2b989a=_0x2dde12,_0x13557a=_0xc4693c[_0x2b989a];if(_0x4708a2(0xdc)==_0x13557a||_0x4708a2(0x116)==_0x13557a||_0x4708a2(0x134)==_0x13557a||_0x4708a2(0xfc)==_0x13557a||_0x4708a2(0xe7)==_0x13557a||_0x4708a2(0xaa)==_0x13557a||_0x4708a2(0xf3)==_0x13557a||_0x4708a2(0x11c)==_0x13557a){delete _0xc4693c[_0x2b989a],_0x264f75=_0x13557a,clearInterval(this[_0x4708a2(0x132)]),this[_0x4708a2(0x132)]=void 0x0;break;}}_0x4708a2(0x116)==_0x264f75&&_0xc4693c[_0x4708a2(0xe4)](_0x4708a2(0xe9)),_0x4708a2(0x134)==_0x264f75&&_0xc4693c[_0x4708a2(0xe4)](_0x4708a2(0xb1)),_0x4708a2(0xfc)==_0x264f75&&_0xc4693c[_0x4708a2(0xe4)](_0x4708a2(0xd0)),_0x4708a2(0xe7)==_0x264f75&&_0xc4693c[_0x4708a2(0xe4)](_0x4708a2(0xa3),_0x4708a2(0xc3)),_0x4708a2(0xaa)==_0x264f75&&_0xc4693c[_0x4708a2(0xe4)](_0x4708a2(0xf5)),_0x4708a2(0xf3)==_0x264f75&&_0xc4693c[_0x4708a2(0xe4)](_0x4708a2(0x104)),_0x4708a2(0x11c)==_0x264f75&&_0xc4693c[_0x4708a2(0xe4)](_0x4708a2(0xc2));},0x3e8);}[_0x5c8240(0x10d)](){const _0x234c24=_0x5c8240;super[_0x234c24(0x10d)](),this[_0x234c24(0x132)]&&clearInterval(this[_0x234c24(0x132)]);}[_0x5c8240(0x94)](_0x2ae88e='',_0x2ad854='',_0x23d607=_0x5c8240(0xbc)){const _0x40a7ca=_0x5c8240,_0x5aab04=this[_0x40a7ca(0xee)],_0x15b3a6=_0x5aab04[_0x40a7ca(0x139)][_0x40a7ca(0xa6)],_0x438c29=_0x5aab04[_0x40a7ca(0x110)][_0x40a7ca(0x91)](_0x4d3db5),_0x3d3916=_0x5aab04[_0x40a7ca(0x110)][_0x40a7ca(0x91)](_0x2d9ed7);_0x438c29[_0x40a7ca(0x9c)]();const _0x3a076e=new w(),_0x1698c3=new ClipboardEvent(_0x40a7ca(0x11e),{'clipboardData':_0x3a076e}),_0x2f60a9=new _0x761454(_0x3a076e),_0x357ee9=new _0x2f6757(_0x15b3a6,_0x1698c3,{'dataTransfer':_0x2f60a9});_0x3d3916[_0x40a7ca(0x129)](_0x40a7ca(0x112),()=>{const _0x1ee924=_0x40a7ca;_0x15b3a6[_0x1ee924(0x12d)][_0x1ee924(0xf7)](_0x1ee924(0x11e),_0x357ee9);}),this[_0x40a7ca(0xab)]||(this[_0x40a7ca(0x97)](),this[_0x40a7ca(0xdf)]=new _0x4eda84(_0x5aab04,this[_0x40a7ca(0xd1)][_0x40a7ca(0x12b)],this[_0x40a7ca(0xab)]));let _0x1241bb=_0x2f60a9[_0x40a7ca(0x95)](_0x40a7ca(0xed));const _0x2d4576=_0x5aab04[_0x40a7ca(0x11b)][_0x40a7ca(0x12d)][_0x40a7ca(0x130)],_0x50aea0=Array[_0x40a7ca(0x107)](_0x2d4576[_0x40a7ca(0xb8)]());0x1===_0x50aea0[_0x40a7ca(0xcb)]&&_0x50aea0[0x0][_0x40a7ca(0xdd)]&&!_0x2d4576[_0x40a7ca(0xd5)]()&&''!==_0x1241bb[_0x40a7ca(0x8d)](/ /g,'')[_0x40a7ca(0x8f)]()&&(_0x1241bb=_0x40a7ca(0x13b)+_0x1241bb+_0x40a7ca(0xf6)),this[_0x40a7ca(0xdf)][_0x40a7ca(0xb5)]({'actionId':_0x23d607,'query':_0x2ae88e,'htmlContent':_0x1241bb,'label':_0x2ad854,'mainActionLabel':_0x40d9ee[_0x5aab04[_0x40a7ca(0x11b)][_0x40a7ca(0x12d)][_0x40a7ca(0x130)][_0x40a7ca(0x9f)]?_0x40a7ca(0x102):_0x40a7ca(0xc6)]}),_0x40a7ca(0x127)!==this[_0x40a7ca(0xf8)]['id']?this[_0x40a7ca(0xf8)][_0x40a7ca(0x126)]({'id':_0x40a7ca(0x127),'icon':_0x388c49,'title':_0x4f7776(this[_0x40a7ca(0xee)][_0x40a7ca(0x12c)],_0x40a7ca(0xd6)),'content':this[_0x40a7ca(0xab)],'position':_0x3b66a9[_0x40a7ca(0x12e)],'onShow':()=>{const _0x4b64d8=_0x40a7ca;this[_0x4b64d8(0xab)][_0x4b64d8(0x8a)]();},'onHide':()=>{const _0x2a000d=_0x40a7ca;this[_0x2a000d(0xdf)][_0x2a000d(0x118)](),_0x438c29[_0x2a000d(0xb6)]();}}):this[_0x40a7ca(0xf8)][_0x40a7ca(0xa6)][_0x40a7ca(0xc7)]||this[_0x40a7ca(0xf8)][_0x40a7ca(0xa6)][_0x40a7ca(0xf2)]();}[_0x5c8240(0x11a)](){const _0xa740b8=_0x5c8240;this[_0xa740b8(0xf8)][_0xa740b8(0x124)]();}[_0x5c8240(0xf9)](){const _0x144490=_0x5c8240,_0x2d2510=new Map(),_0x4e22ba=_0xd18c72(this[_0x144490(0xee)][_0x144490(0x135)][_0x144490(0x91)](_0x144490(0x133)),this[_0x144490(0xee)][_0x144490(0x12c)]);for(const _0x3deb35 of _0x4e22ba)for(const _0x5d446e of _0x3deb35[_0x144490(0xff)])_0x2d2510[_0x144490(0x10b)](_0x5d446e['id'],{..._0x5d446e,'groupId':_0x3deb35[_0x144490(0xe2)],'groupLabel':_0x3deb35[_0x144490(0xfe)]||_0x3deb35[_0x144490(0xe2)]});return _0x2d2510;}[_0x5c8240(0xe3)](_0x377f08){const _0xb3da9e=_0x5c8240,_0x1f8200=this[_0xb3da9e(0xee)],_0xf644ba=_0x1f8200[_0xb3da9e(0xff)][_0xb3da9e(0x91)](_0xb3da9e(0x11f)),_0x164434=new _0x377f08(_0x1f8200[_0xb3da9e(0x12c)]);return _0x164434[_0xb3da9e(0x10b)]({'label':_0x4f7776(_0x1f8200[_0xb3da9e(0x12c)],_0xb3da9e(0xd6)),'icon':_0x388c49,'isToggleable':!0x0}),_0x164434[_0xb3da9e(0x98)](_0xb3da9e(0x9a))['to'](_0xf644ba),_0x164434[_0xb3da9e(0x98)](_0xb3da9e(0x12f))['to'](this[_0xb3da9e(0xf8)],'id',_0x3bae00=>_0xb3da9e(0x127)===_0x3bae00),this[_0xb3da9e(0x10f)](_0x164434,_0xb3da9e(0xb0),()=>{const _0x2106ec=_0xb3da9e;_0x164434[_0x2106ec(0x12f)]?this[_0x2106ec(0x11a)]():_0xf644ba[_0x2106ec(0xb0)]();}),_0x164434;}[_0x5c8240(0x97)](){const _0x447c48=_0x5c8240,_0x6205f6=this[_0x447c48(0xee)][_0x447c48(0x110)][_0x447c48(0x91)](_0x4d3db5);this[_0x447c48(0xab)]=new _0x122699(this[_0x447c48(0xee)][_0x447c48(0x12c)],this[_0x447c48(0xce)],this[_0x447c48(0xee)][_0x447c48(0x135)][_0x447c48(0x91)](_0x447c48(0xc5))),this[_0x447c48(0xab)]['on'](_0x447c48(0x137),()=>{const _0x24144b=_0x447c48;this[_0x24144b(0xf8)][_0x24144b(0xa6)][_0x24144b(0xc7)]||this[_0x24144b(0xf8)][_0x24144b(0xa6)][_0x24144b(0xf2)]();}),this[_0x447c48(0xab)][_0x447c48(0xbf)][_0x447c48(0x119)][_0x447c48(0xc4)]['on'](_0x447c48(0xb2),()=>{const _0x4a878a=_0x447c48;this[_0x4a878a(0xf8)][_0x4a878a(0xa6)][_0x4a878a(0xc7)]||this[_0x4a878a(0xf8)][_0x4a878a(0xa6)][_0x4a878a(0xf2)]();}),this[_0x447c48(0x10f)](this[_0x447c48(0xab)],_0x447c48(0xc9),()=>{const _0xd402f3=_0x447c48;_0x6205f6[_0xd402f3(0xac)](this[_0xd402f3(0xdf)][_0xd402f3(0xd3)]),this[_0xd402f3(0x11a)]();}),this[_0x447c48(0x10f)](this[_0x447c48(0xab)],_0x447c48(0xcc),()=>{const _0xbcae6f=_0x447c48;_0x6205f6[_0xbcae6f(0xcc)](this[_0xbcae6f(0xdf)][_0xbcae6f(0xd3)]),this[_0xbcae6f(0x11a)]();}),this[_0x447c48(0xd7)]();}[_0x5c8240(0xd7)](){const _0xb54cc9=_0x5c8240,{locale:_0x196910,ui:{ariaLiveAnnouncer:_0x1271aa}}=this[_0xb54cc9(0xee)];this[_0xb54cc9(0xab)][_0xb54cc9(0xef)]['on'](_0xb54cc9(0xaf),(_0x52dfcf,_0x469066,_0x2576e5)=>{const _0x5a4ddb=_0xb54cc9,_0x224ec3=this[_0x5a4ddb(0xdf)][_0x5a4ddb(0xd3)];_0x2576e5?_0x1271aa[_0x5a4ddb(0x9d)](_0x4f7776(_0x196910,_0x5a4ddb(0x131))):_0x224ec3&&_0x1271aa[_0x5a4ddb(0x9d)](_0x4f7776(_0x196910,_0x5a4ddb(0xbb),_0x224ec3),{'politeness':_0x5a4ddb(0xba),'isUnsafeHTML':!0x0});}),this[_0xb54cc9(0xab)]['on'](_0xb54cc9(0xc8),(_0x2cd673,_0x39b325,_0x5a4e3d)=>{const _0x121593=_0xb54cc9;if(_0x5a4e3d){const _0x4adfae=this[_0x121593(0xab)][_0x121593(0x93)][_0x121593(0xd8)];_0x1271aa[_0x121593(0x9d)](_0x4f7776(_0x196910,_0x121593(0x128),_0x4adfae));}});}[_0x5c8240(0x109)](_0x1fafad){const _0x2238fa=_0x5c8240,_0x12ebc7=this[_0x2238fa(0x123)][_0x2238fa(0x91)](_0x1fafad),_0x28b49c=this[_0x2238fa(0xee)],_0x4847d5=_0x28b49c[_0x2238fa(0x11b)][_0x2238fa(0x12d)][_0x2238fa(0x130)],_0x5b4ed8=_0x28b49c[_0x2238fa(0xff)][_0x2238fa(0x91)](_0x2238fa(0x11f)),_0x44b1b6=_0x28b49c[_0x2238fa(0x110)][_0x2238fa(0x91)](_0x4d3db5),_0x4e7b54=''+(_0x12ebc7[_0x2238fa(0xe2)]!==_0x4d794d?_0x12ebc7[_0x2238fa(0xfe)]+':\x20':'')+_0x12ebc7[_0x2238fa(0x121)];if(!0x1!==_0x12ebc7[_0x2238fa(0xf0)]&&_0x4847d5[_0x2238fa(0x9f)]){const _0x5ade28=_0x45b39(_0x4847d5[_0x2238fa(0x9e)]())||_0x28b49c[_0x2238fa(0x11b)][_0x2238fa(0xa0)][_0x2238fa(0x8e)](_0x4847d5);_0x28b49c[_0x2238fa(0x11b)][_0x2238fa(0x138)](_0x5c5e3c=>{const _0x5a000d=_0x2238fa;_0x5c5e3c[_0x5a000d(0xfd)](_0x5ade28,'in');});}_0x44b1b6[_0x2238fa(0x9c)](),_0x5b4ed8[_0x2238fa(0xb0)](_0x12ebc7[_0x2238fa(0xdb)],_0x4e7b54,_0x2238fa(0xca)+_0x1fafad);}[_0x5c8240(0x105)](_0x1efa7f,_0x51e6f3,_0x4346a2,_0x25d357){const _0x140eb8=_0x5c8240,_0x49cee2=this[_0x140eb8(0xee)],_0x179705=_0x49cee2[_0x140eb8(0x12c)],_0x17b696=new _0x16cc11(_0x179705),_0x1ccfe0=U(_0x49cee2,_0x4346a2)[_0x140eb8(0xcf)](_0x4064a9=>_0x4064a9[_0x140eb8(0xff)][_0x140eb8(0xcb)]);0x1===_0x1ccfe0[_0x140eb8(0xcb)]?this[_0x140eb8(0xd4)]({'command':_0x1efa7f,'commands':_0x1ccfe0[0x0][_0x140eb8(0xff)],'parentMenuView':_0x51e6f3,'onExecute':_0x25d357})[_0x140eb8(0x10a)](_0x32559d=>_0x17b696[_0x140eb8(0x12a)][_0x140eb8(0xd9)](_0x32559d)):_0x1ccfe0[_0x140eb8(0x10a)](({groupId:_0x3afc79,groupLabel:_0x3ee27d,commands:_0x275948})=>{const _0x8e98b3=_0x140eb8,_0x40e606=new _0x1fe5a4(_0x179705,_0x51e6f3),_0x469b18=new _0xa89877(_0x179705),_0x2122e4=new _0x16cc11(_0x179705),_0x46b43c=this[_0x8e98b3(0xd4)]({'command':_0x1efa7f,'commands':_0x275948,'parentMenuView':_0x469b18,'onExecute':_0x25d357});_0x469b18[_0x8e98b3(0x10c)][_0x8e98b3(0x10b)]({'label':_0x3ee27d||_0x3afc79}),_0x469b18[_0x8e98b3(0x122)](_0x8e98b3(0xb0))['to'](_0x51e6f3),_0x2122e4[_0x8e98b3(0x12a)][_0x8e98b3(0x9b)](_0x46b43c),_0x469b18[_0x8e98b3(0x8b)][_0x8e98b3(0xe6)][_0x8e98b3(0xd9)](_0x2122e4),_0x40e606[_0x8e98b3(0xe6)][_0x8e98b3(0xd9)](_0x469b18),_0x17b696[_0x8e98b3(0x12a)][_0x8e98b3(0xd9)](_0x40e606);}),_0x51e6f3[_0x140eb8(0x8b)][_0x140eb8(0xe6)][_0x140eb8(0xd9)](_0x17b696);}[_0x5c8240(0xd4)]({command:_0x164653,commands:_0x48f542,parentMenuView:_0x29427c,onExecute:_0x2b2685}){const _0x46e1d1=_0x5c8240,_0x49d29d=this[_0x46e1d1(0xee)],_0x19f9e4=_0x49d29d[_0x46e1d1(0x12c)];return U(_0x49d29d,_0x48f542)[_0x46e1d1(0x103)](_0x3cedaf=>{const _0x17baef=_0x46e1d1,_0x101375=new _0x1fe5a4(_0x19f9e4,_0x29427c),_0x786f25=new _0x38b86f(_0x19f9e4);return _0x786f25[_0x17baef(0x10b)]({'label':_0x3cedaf[_0x17baef(0x121)]}),_0x786f25[_0x17baef(0x122)](_0x17baef(0xb0))['to'](_0x29427c),_0x786f25['on'](_0x17baef(0xb0),()=>_0x2b2685(_0x3cedaf['id'])),_0x786f25[_0x17baef(0x98)](_0x17baef(0x9a))['to'](_0x164653,_0x17baef(0xa5),_0x274054=>_0x274054[_0x17baef(0x113)](_0x3cedaf['id'])),_0x101375[_0x17baef(0xe6)][_0x17baef(0xd9)](_0x786f25),_0x101375;});}}function B(_0x804bcc,_0x1adbfe){const _0x221bfb=_0x5c8240;return void 0x0!==_0x804bcc[_0x221bfb(0xc1)]&&void 0x0===_0x1adbfe[_0x221bfb(0xc1)]?0x1:void 0x0===_0x804bcc[_0x221bfb(0xc1)]&&void 0x0!==_0x1adbfe[_0x221bfb(0xc1)]?-0x1:void 0x0!==_0x804bcc[_0x221bfb(0xc1)]&&void 0x0!==_0x1adbfe[_0x221bfb(0xc1)]?_0x804bcc[_0x221bfb(0xc1)]-_0x1adbfe[_0x221bfb(0xc1)]:0x0;}function U(_0x51ee8e,_0x5de986){const _0x35f08a=_0x5c8240;_0x5de986[_0x35f08a(0xe1)](B);const _0xf3502b={},_0x196b8c=[];for(const _0x59e47d of _0x5de986)if(void 0x0!==_0x59e47d[_0x35f08a(0xc1)]){if(_0x59e47d[_0x35f08a(0xc1)]in _0xf3502b)throw new _0x5d618a(_0x35f08a(0xf1),_0x51ee8e,{'conflictingDefinitions':[_0x59e47d,_0xf3502b[_0x59e47d[_0x35f08a(0xc1)]]]});_0xf3502b[_0x59e47d[_0x35f08a(0xc1)]]=_0x59e47d,_0x196b8c[_0x35f08a(0x114)](_0x59e47d[_0x35f08a(0xc1)],0x0,_0x59e47d);}else _0x196b8c[_0x35f08a(0xfb)](_0x59e47d);return _0x196b8c;}