@ckeditor/ckeditor5-ai 46.0.1-alpha.0 → 46.0.1-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.css +2 -2
- package/dist/index.js +2 -2
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/adapters/aiadapter.js +1 -1
- package/src/adapters/aitextadapter.js +1 -1
- package/src/adapters/awstextadapter.js +1 -1
- package/src/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant.js +1 -1
- package/src/aiassistantediting.js +1 -1
- package/src/aiassistantui.js +1 -1
- package/src/index.js +1 -1
- package/src/legacyerrors.js +1 -1
- package/src/ui/aiassistantcontroller.js +2 -2
- package/src/ui/form/aiformcontentarea.js +1 -1
- package/src/ui/form/aiformerrorview.js +1 -1
- package/src/ui/form/aiformpromptview.js +1 -1
- package/src/ui/form/aiformtoolbarview.js +1 -1
- package/src/ui/form/aiformview.js +1 -1
- package/src/ui/form/aihistorylistitemview.js +1 -1
- package/src/ui/form/aihistorylistview.js +1 -1
- package/src/ui/form/prompthistory.js +1 -1
- package/src/ui/showaiassistantcommand.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/normalizecommandsconfig.js +1 -1
- package/theme/ai-form.css +2 -2
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x2b7d(){const _0xa7dcf6=['POST','reject','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','7919020xPSxMB','signal','choices','body','ai.openAI.requestParameters','locale','_apiUrl','replace','AI_ERROR_MODERATION','pluginName','gpt-4o','config','2701062Nchucg','data:\x20','_requestParameters','prepareMessages','content','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','ai.openAI.requestHeaders','parse','_cleanUpData','550437mETtYS','abortController','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','45979NwLXfW','1824242FdpcqF','delta','https://api.openai.com/v1/chat/completions','editor','811521rpcPqD','json','_prepareRequestHeaders','10BNZktx','user','_requestHeaders','40THflEN','define','Instruction:\x0a','stream','_isBufferIncomplete','_readStreamableResponse','filter','get','getReader','read','length','message','context_length_exceeded','decode','map','stringify','ai.openAI.apiUrl','join','[DONE]','resolve','AI_ERROR_CONTEXT_LENGTH','8LKcVAy','OpenAITextAdapter','split','system','Moderation','text','_readStaticResponse','1167410VcdsiJ','sendRequest','includes','_prepareRequestParameters'];_0x2b7d=function(){return _0xa7dcf6;};return _0x2b7d();}const _0x46123c=_0x4e5a;(function(_0x218197,_0x38b843){const _0x5668bb=_0x4e5a,_0x7100db=_0x218197();while(!![]){try{const _0x31874f=-parseInt(_0x5668bb(0x151))/0x1*(-parseInt(_0x5668bb(0x159))/0x2)+-parseInt(_0x5668bb(0x14e))/0x3*(parseInt(_0x5668bb(0x171))/0x4)+parseInt(_0x5668bb(0x178))/0x5+-parseInt(_0x5668bb(0x145))/0x6+parseInt(_0x5668bb(0x152))/0x7+-parseInt(_0x5668bb(0x15c))/0x8*(parseInt(_0x5668bb(0x156))/0x9)+parseInt(_0x5668bb(0x17f))/0xa;if(_0x31874f===_0x38b843)break;else _0x7100db['push'](_0x7100db['shift']());}catch(_0x36d457){_0x7100db['push'](_0x7100db['shift']());}}}(_0x2b7d,0x3c861));import{AITextAdapter as _0x57cdcb}from'./aitextadapter.js';function _0x4e5a(_0x1f8c67,_0x4c4919){const _0x2b7da0=_0x2b7d();return _0x4e5a=function(_0x4e5a3d,_0x54d358){_0x4e5a3d=_0x4e5a3d-0x13f;let _0x4249b6=_0x2b7da0[_0x4e5a3d];return _0x4249b6;},_0x4e5a(_0x1f8c67,_0x4c4919);}import{AIRequestError as _0x429237}from'./aiadapter.js';import{getTranslation as _0x35b1d3}from'../utils/common-translations.js';export class OpenAITextAdapter extends _0x57cdcb{[_0x46123c(0x13f)];[_0x46123c(0x15b)];[_0x46123c(0x147)];static get[_0x46123c(0x142)](){const _0x1f9dd4=_0x46123c;return _0x1f9dd4(0x172);}constructor(_0x5f4e7f){const _0x644f6=_0x46123c;super(_0x5f4e7f),_0x5f4e7f[_0x644f6(0x144)][_0x644f6(0x15d)](_0x644f6(0x16c),_0x644f6(0x154)),_0x5f4e7f[_0x644f6(0x144)][_0x644f6(0x163)](_0x644f6(0x183))||_0x5f4e7f[_0x644f6(0x144)][_0x644f6(0x15d)](_0x644f6(0x183),{'model':_0x644f6(0x143),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x644f6(0x13f)]=_0x5f4e7f[_0x644f6(0x144)][_0x644f6(0x163)](_0x644f6(0x16c)),this[_0x644f6(0x15b)]=_0x5f4e7f[_0x644f6(0x144)][_0x644f6(0x163)](_0x644f6(0x14b))||{},this[_0x644f6(0x147)]=_0x5f4e7f[_0x644f6(0x144)][_0x644f6(0x163)](_0x644f6(0x183));}async[_0x46123c(0x179)]({query:_0x5c3410,context:_0x4f8ef9,onData:_0x47f174,actionId:_0x47a42a}){const _0xc689bd=_0x46123c,_0x11fc2b=this[_0xc689bd(0x155)][_0xc689bd(0x184)],_0x1bd8d9=await this[_0xc689bd(0x148)](_0x5c3410,_0x4f8ef9,_0x47a42a),_0x49ef92=await this[_0xc689bd(0x158)](this[_0xc689bd(0x15b)],_0x47a42a),_0x2d8af2=await this[_0xc689bd(0x17b)](this[_0xc689bd(0x147)],_0x47a42a),_0x2ee0ae={'messages':_0x1bd8d9,..._0x2d8af2},_0x1b09da={'method':_0xc689bd(0x17c),'headers':_0x49ef92,'body':JSON[_0xc689bd(0x16b)](_0x2ee0ae),'signal':this[_0xc689bd(0x14f)][_0xc689bd(0x180)]},_0x1b0175=await fetch(this[_0xc689bd(0x13f)],_0x1b09da);if(_0x1b0175['ok'])return _0x2d8af2[_0xc689bd(0x15f)]?await this[_0xc689bd(0x161)](_0x1b0175,_0x47f174):await this[_0xc689bd(0x177)](_0x1b0175,_0x47f174),Promise[_0xc689bd(0x16f)]();{const _0x3675bc=await _0x1b0175[_0xc689bd(0x176)]();return _0x3675bc[_0xc689bd(0x17a)](_0xc689bd(0x168))?Promise[_0xc689bd(0x17d)](new _0x429237(_0x35b1d3(_0x11fc2b,_0xc689bd(0x170)))):_0x3675bc[_0xc689bd(0x17a)](_0xc689bd(0x175))?Promise[_0xc689bd(0x17d)](new _0x429237(_0x35b1d3(_0x11fc2b,_0xc689bd(0x141)))):Promise[_0xc689bd(0x17d)](new Error(_0x3675bc));}}async[_0x46123c(0x148)](_0x22a836,_0xc7fbdc,_0xf78a48){const _0x2911b3=_0x46123c;let _0x3b63d5,_0xe8ad20;return _0xc7fbdc?(_0x3b63d5=_0x2911b3(0x17e),_0xe8ad20=_0x2911b3(0x15e)+_0x22a836+_0x2911b3(0x14a)+_0xc7fbdc):(_0x3b63d5=_0x2911b3(0x150),_0xe8ad20=_0x22a836),[{'role':_0x2911b3(0x174),'content':_0x3b63d5},{'role':_0x2911b3(0x15a),'content':_0xe8ad20}];}async[_0x46123c(0x161)](_0x4cd600,_0x32907b){const _0x37847d=_0x46123c,_0x41a41d=_0x4cd600[_0x37847d(0x182)][_0x37847d(0x164)](),_0x13c27c=new TextDecoder();let _0x29b3e3='',_0x50c59c='',_0x52480e='',_0x5763e8=!0x1;for(;!_0x5763e8;){const {done:_0x3b6c5c,value:_0x5a6836}=await _0x41a41d[_0x37847d(0x165)](),_0x47969a=_0x29b3e3+_0x13c27c[_0x37847d(0x169)](_0x5a6836);let _0x416784='';_0x5763e8=_0x3b6c5c;try{_0x416784=this[_0x37847d(0x14d)](_0x47969a),_0x29b3e3='';}catch{_0x29b3e3=_0x47969a;continue;}_0x50c59c+=_0x416784,!_0x5763e8&&this[_0x37847d(0x160)](_0x50c59c)||_0x50c59c&&(_0x52480e+=_0x50c59c,_0x50c59c='',_0x32907b(_0x52480e));}return Promise[_0x37847d(0x16f)]();}async[_0x46123c(0x177)](_0x7403b,_0x8dcd96){const _0x5ee77d=_0x46123c;return _0x8dcd96((await _0x7403b[_0x5ee77d(0x157)]())[_0x5ee77d(0x181)][0x0][_0x5ee77d(0x167)][_0x5ee77d(0x149)]),Promise[_0x5ee77d(0x16f)]();}[_0x46123c(0x160)](_0xa0131f){const _0x4862c3=_0x46123c,_0x19545f=_0xa0131f[_0x4862c3(0x173)]('<')[_0x4862c3(0x166)]!==_0xa0131f[_0x4862c3(0x173)]('>')[_0x4862c3(0x166)],_0x22f1ed=_0xa0131f[_0x4862c3(0x166)]<0x1e;return _0x19545f&&_0x22f1ed;}[_0x46123c(0x14d)](_0x2fcfb7){const _0x391418=_0x46123c;return _0x2fcfb7[_0x391418(0x173)](/\n(?![^{]*\})/g)[_0x391418(0x16a)](_0x234641=>_0x234641[_0x391418(0x140)](_0x391418(0x146),''))[_0x391418(0x162)](_0xb9b647=>_0xb9b647&&_0xb9b647[_0x391418(0x166)]>0x0&&_0x391418(0x16e)!==_0xb9b647)[_0x391418(0x16a)](_0xa6b8e4=>{const _0x21ece4=_0x391418,{choices:_0x104578}=JSON[_0x21ece4(0x14c)](_0xa6b8e4);if(_0x104578[0x0]?.[_0x21ece4(0x153)]?.[_0x21ece4(0x149)])return _0x104578[0x0][_0x21ece4(0x153)][_0x21ece4(0x149)];})[_0x391418(0x162)](_0x346bc4=>_0x346bc4)[_0x391418(0x16d)]('');}}
|
package/src/aiassistant.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x691d(_0xb4dda0,_0x32c7c7){const _0x3c5617=_0x3c56();return _0x691d=function(_0x691d44,_0x3eb57c){_0x691d44=_0x691d44-0x91;let _0x388002=_0x3c5617[_0x691d44];return _0x388002;},_0x691d(_0xb4dda0,_0x32c7c7);}function _0x3c56(){const _0x5ac5ab=['Improve\x20writing','set','friendly','translateGerman','Summarize','groupId','legal','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','get','changeStyle','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Make\x20longer','AIAssistant','filter','Professional','Change\x20tone','German','Make\x20shorter','makeShorter','isPremiumPlugin','Translate\x20the\x20content\x20to\x20German\x20language.','Translate\x20the\x20content\x20to\x20Spanish\x20language.','412klpOOR','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Translate\x20the\x20content\x20to\x20English\x20language.','Translate\x20the\x20content\x20to\x20Hindi\x20language.','simplifyLanguage','Continue','casual','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','Casual','makeLonger','English','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','confident','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','Translate\x20the\x20content\x20to\x20Arabic\x20language.','French','config','Business','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','Change\x20style','includes','Simplify\x20language','isOfficialPlugin','translateChinese','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','Legal','editOrReview','Direct','direct','translateFrench','professional','17345LNGigX','Simplified\x20Chinese','translatePortuguese','improveWriting','translateHindi','Edit\x20or\x20review','2672eiPZrV','pluginName','push','find','Hindi','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','summarize','Friendly','changeTone','ai.aiAssistant.removeCommands','journalism','translate','Translate\x20the\x20content\x20to\x20French\x20language.','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','23219mlOlmw','translateArabic','1000732bOScCv','business','generate','define','Confident','4041576wYMcOO','Journalism','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','continue','translateEnglish','ai.aiAssistant.extraCommandGroups','39422601dZzhVW','Generate\x20from\x20selection','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','locale','8823858lMndWy','Poetic','concat','Spanish','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','ai.aiAssistant.commands','translateSpanish','2287604rOQmYL','Arabic','commands','10rPnyTP','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','requires','Portuguese','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','Translate','poetic','ai.aiAssistant.preserveComments','forEach'];_0x3c56=function(){return _0x5ac5ab;};return _0x3c56();}const _0x43bc3d=_0x691d;(function(_0x1f6094,_0x5c21d6){const _0x5ac8c4=_0x691d,_0x20f26a=_0x1f6094();while(!![]){try{const _0x41760c=-parseInt(_0x5ac8c4(0xd8))/0x1+-parseInt(_0x5ac8c4(0xf0))/0x2+-parseInt(_0x5ac8c4(0xdd))/0x3+parseInt(_0x5ac8c4(0xa3))/0x4*(parseInt(_0x5ac8c4(0xc2))/0x5)+-parseInt(_0x5ac8c4(0xe8))/0x6+parseInt(_0x5ac8c4(0xd6))/0x7*(parseInt(_0x5ac8c4(0xc8))/0x8)+-parseInt(_0x5ac8c4(0xe3))/0x9*(-parseInt(_0x5ac8c4(0xf3))/0xa);if(_0x41760c===_0x5c21d6)break;else _0x20f26a['push'](_0x20f26a['shift']());}catch(_0x44a225){_0x20f26a['push'](_0x20f26a['shift']());}}}(_0x3c56,0xd79a1));import{Plugin as _0x45a88b}from'ckeditor5/src/core.js';import{AIAssistantUI as _0xea80a2}from'./aiassistantui.js';import{AIAssistantEditing as _0x5b0203}from'./aiassistantediting.js';import{getTranslation as _0x5184d3}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x18fdde}from'./utils/normalizecommandsconfig.js';export class AIAssistant extends _0x45a88b{static get[_0x43bc3d(0xf5)](){return[_0xea80a2,_0x5b0203];}static get[_0x43bc3d(0xc9)](){const _0x30408f=_0x43bc3d;return _0x30408f(0x99);}static get[_0x43bc3d(0xb9)](){return!0x0;}static get[_0x43bc3d(0xa0)](){return!0x0;}constructor(_0xcd5f34){const _0x14e56e=_0x43bc3d;super(_0xcd5f34);const _0x45ba14=_0xcd5f34[_0x14e56e(0xb3)],_0x1595d8=_0xcd5f34[_0x14e56e(0xe7)];_0x45ba14[_0x14e56e(0xdb)](_0x14e56e(0xfa),!0x0),_0x45ba14[_0x14e56e(0xdb)](_0x14e56e(0xee),getDefaultAICommands(_0x1595d8)),_0x45ba14[_0x14e56e(0xdb)](_0x14e56e(0xe2),[]),_0x45ba14[_0x14e56e(0xdb)](_0x14e56e(0xd1),[]);let _0x774c84=_0x18fdde(_0x45ba14[_0x14e56e(0x95)](_0x14e56e(0xee)),_0x1595d8);const _0x2bb27b=_0x45ba14[_0x14e56e(0x95)](_0x14e56e(0xe2)),_0xe1e2c1=_0x45ba14[_0x14e56e(0x95)](_0x14e56e(0xd1));_0x2bb27b[_0x14e56e(0xfb)](_0x198877=>{const _0x9c8de0=_0x14e56e,_0x1da790=_0x774c84[_0x9c8de0(0xcb)](_0x1da5b6=>_0x1da5b6[_0x9c8de0(0x92)]===_0x198877[_0x9c8de0(0x92)]);_0x1da790?_0x1da790[_0x9c8de0(0xf2)]=_0x1da790[_0x9c8de0(0xf2)][_0x9c8de0(0xea)](_0x198877[_0x9c8de0(0xf2)]):_0x774c84[_0x9c8de0(0xca)](_0x198877);}),_0x774c84=_0x774c84[_0x14e56e(0x9a)](_0x5382b9=>!_0xe1e2c1[_0x14e56e(0xb7)](_0x5382b9[_0x14e56e(0x92)])),_0x774c84[_0x14e56e(0xfb)](_0xa38822=>{const _0x1a060c=_0x14e56e;_0xa38822[_0x1a060c(0xf2)]=_0xa38822[_0x1a060c(0xf2)][_0x1a060c(0x9a)](_0x2d36b1=>!_0xe1e2c1[_0x1a060c(0xb7)](_0x2d36b1['id']));}),_0x45ba14[_0x14e56e(0xfd)](_0x14e56e(0xee),_0x774c84);}}export function getDefaultAICommands(_0x59d79f){const _0x2506b7=_0x43bc3d;return[{'groupId':_0x2506b7(0xbd),'groupLabel':_0x5184d3(_0x59d79f,_0x2506b7(0xc7)),'commands':[{'id':_0x2506b7(0xc5),'label':_0x5184d3(_0x59d79f,_0x2506b7(0xfc)),'prompt':_0x2506b7(0x97)},{'id':_0x2506b7(0x9f),'label':_0x5184d3(_0x59d79f,_0x2506b7(0x9e)),'prompt':_0x2506b7(0xed)},{'id':_0x2506b7(0xac),'label':_0x5184d3(_0x59d79f,_0x2506b7(0x98)),'prompt':_0x2506b7(0x94)},{'id':_0x2506b7(0xa7),'label':_0x5184d3(_0x59d79f,_0x2506b7(0xb8)),'prompt':_0x2506b7(0xe6)}]},{'groupId':_0x2506b7(0xda),'groupLabel':_0x5184d3(_0x59d79f,_0x2506b7(0xe4)),'commands':[{'id':_0x2506b7(0xce),'label':_0x5184d3(_0x59d79f,_0x2506b7(0x91)),'prompt':_0x2506b7(0xe5)},{'id':_0x2506b7(0xe0),'label':_0x5184d3(_0x59d79f,_0x2506b7(0xa8)),'prompt':_0x2506b7(0xb5)}]},{'groupId':_0x2506b7(0xd0),'groupLabel':_0x5184d3(_0x59d79f,_0x2506b7(0x9c)),'commands':[{'id':_0x2506b7(0xc1),'label':_0x5184d3(_0x59d79f,_0x2506b7(0x9b)),'prompt':_0x2506b7(0xd5)},{'id':_0x2506b7(0xa9),'label':_0x5184d3(_0x59d79f,_0x2506b7(0xab)),'prompt':_0x2506b7(0xcd)},{'id':_0x2506b7(0xbf),'label':_0x5184d3(_0x59d79f,_0x2506b7(0xbe)),'prompt':_0x2506b7(0xec)},{'id':_0x2506b7(0xaf),'label':_0x5184d3(_0x59d79f,_0x2506b7(0xdc)),'prompt':_0x2506b7(0xf7)},{'id':_0x2506b7(0xfe),'label':_0x5184d3(_0x59d79f,_0x2506b7(0xcf)),'prompt':_0x2506b7(0xaa)}]},{'groupId':_0x2506b7(0x96),'groupLabel':_0x5184d3(_0x59d79f,_0x2506b7(0xb6)),'commands':[{'id':_0x2506b7(0xd9),'label':_0x5184d3(_0x59d79f,_0x2506b7(0xb4)),'prompt':_0x2506b7(0xb0)},{'id':_0x2506b7(0x93),'label':_0x5184d3(_0x59d79f,_0x2506b7(0xbc)),'prompt':_0x2506b7(0xbb)},{'id':_0x2506b7(0xd2),'label':_0x5184d3(_0x59d79f,_0x2506b7(0xde)),'prompt':_0x2506b7(0xdf)},{'id':_0x2506b7(0xf9),'label':_0x5184d3(_0x59d79f,_0x2506b7(0xe9)),'prompt':_0x2506b7(0xa4)}]},{'groupId':_0x2506b7(0xd3),'groupLabel':_0x5184d3(_0x59d79f,_0x2506b7(0xf8)),'commands':[{'id':_0x2506b7(0xe1),'label':_0x5184d3(_0x59d79f,_0x2506b7(0xad)),'prompt':_0x2506b7(0xa5)},{'id':_0x2506b7(0xef),'label':_0x5184d3(_0x59d79f,_0x2506b7(0xeb)),'prompt':_0x2506b7(0xa2)},{'id':_0x2506b7(0xc4),'label':_0x5184d3(_0x59d79f,_0x2506b7(0xf6)),'prompt':_0x2506b7(0xf4)},{'id':_0x2506b7(0xff),'label':_0x5184d3(_0x59d79f,_0x2506b7(0x9d)),'prompt':_0x2506b7(0xa1)},{'id':_0x2506b7(0xc0),'label':_0x5184d3(_0x59d79f,_0x2506b7(0xb2)),'prompt':_0x2506b7(0xd4)},{'id':_0x2506b7(0xba),'label':_0x5184d3(_0x59d79f,_0x2506b7(0xc3)),'prompt':_0x2506b7(0xae)},{'id':_0x2506b7(0xc6),'label':_0x5184d3(_0x59d79f,_0x2506b7(0xcc)),'prompt':_0x2506b7(0xa6)},{'id':_0x2506b7(0xd7),'label':_0x5184d3(_0x59d79f,_0x2506b7(0xf1)),'prompt':_0x2506b7(0xb1)}]}];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x21d7b7=_0x442e;function _0x442e(_0x102de9,_0x552f88){const _0x5dc01b=_0x5dc0();return _0x442e=function(_0x442efc,_0x5af064){_0x442efc=_0x442efc-0x1dd;let _0x56d048=_0x5dc01b[_0x442efc];return _0x56d048;},_0x442e(_0x102de9,_0x552f88);}(function(_0x497534,_0x5bdc3){const _0x315e26=_0x442e,_0x43ca48=_0x497534();while(!![]){try{const _0x348c86=-parseInt(_0x315e26(0x1e6))/0x1*(-parseInt(_0x315e26(0x1fe))/0x2)+parseInt(_0x315e26(0x22f))/0x3+-parseInt(_0x315e26(0x207))/0x4*(parseInt(_0x315e26(0x230))/0x5)+parseInt(_0x315e26(0x1fc))/0x6*(-parseInt(_0x315e26(0x218))/0x7)+parseInt(_0x315e26(0x232))/0x8+-parseInt(_0x315e26(0x209))/0x9+parseInt(_0x315e26(0x235))/0xa;if(_0x348c86===_0x5bdc3)break;else _0x43ca48['push'](_0x43ca48['shift']());}catch(_0x3c6209){_0x43ca48['push'](_0x43ca48['shift']());}}}(_0x5dc0,0x89f33));import{uid as _0x4b8c21}from'ckeditor5/src/utils.js';import{Plugin as _0xad5377}from'ckeditor5/src/core.js';import{ClipboardPipeline as _0xd42a23}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0x3b2c1b,ViewDataTransfer as _0x4c5efd}from'ckeditor5/src/engine.js';function _0x5dc0(){const _0x374553=['table','conversion','length','_getTableRowCountFromContent','off','_getAISelection','text/html','createPositionAfter','isAtEnd','getSelectedTableCells','addMarker','parse','getSelectedBlocks','ck-fake-ai-selection','push','getRange','getRanges','removeMarker','866082XyBjdK','85370hFhYXu','markers','8070808tnkArY','markerRange','getRowIndexes','12861100YjVWjC','createSelection','getChildren','_createEmptyTableRows','addClass','editingDowncast','canEditAt','plugins','ai-ui','insertContentBelow','editing','deleteContent','data','findAncestor','AIAssistantEditing','isContent','href','has','change','getMarkersGroup','map','showFakeVisualSelection','schema','getChild','getRows','createPositionAt','selection','_pasteHTMLUsingClipboard','isPremiumPlugin','pluginName','join','71525gwdoDG','model','getColumnIndexes','insertRows','getLastMatchingPosition','end','updateMarker','start','getFirstRange','get','span','ai.useTheme','createUIElement','ck-ai-assistant-ui_theme','editor','once','DataTransfer','from','for','setSelection','markerToHighlight','isOfficialPlugin','3136788wXpLjU','contentInsertion','2QJfjtd','markerToElement','filter','isCollapsed','last','setData','fromCharCode','resultRange','ck-fake-ai-selection_collapsed','212vsEujI','afterInit','1256571yhBImR','forEach','element','lowest','insertContent','config','paste','_prepareTableInsertBelowPosition','document','_resetContentOfSelectedTableCells','getLastPosition','init','pop','_getDefaultInsertBelowPosition','createRange','14PbktmQ','fire','TableUtils','hideFakeVisualSelection','first'];_0x5dc0=function(){return _0x374553;};return _0x5dc0();}const l=globalThis[_0x21d7b7(0x1f6)],w=_0x21d7b7(0x23d);export class AIAssistantEditing extends _0xad5377{static get[_0x21d7b7(0x1e4)](){const _0x31dd14=_0x21d7b7;return _0x31dd14(0x243);}static get[_0x21d7b7(0x1fb)](){return!0x0;}static get[_0x21d7b7(0x1e3)](){return!0x0;}[_0x21d7b7(0x214)](){const _0x41e004=_0x21d7b7,{editor:_0x486360}=this,_0x55b705=[_0x41e004(0x22a)];_0x486360[_0x41e004(0x20e)][_0x41e004(0x1ef)](_0x41e004(0x1f1))&&_0x55b705[_0x41e004(0x22b)](_0x41e004(0x1f3)),_0x486360[_0x41e004(0x21e)][_0x41e004(0x1f8)](_0x41e004(0x23a))[_0x41e004(0x1fa)]({'model':w,'view':{'classes':_0x55b705,'priority':0xc}}),_0x486360[_0x41e004(0x21e)][_0x41e004(0x1f8)](_0x41e004(0x23a))[_0x41e004(0x1ff)]({'model':w,'view':(_0x51cd1f,{writer:_0x15df07})=>{const _0x19431b=_0x41e004;if(!_0x51cd1f[_0x19431b(0x233)][_0x19431b(0x201)])return null;const _0x441a4b=_0x15df07[_0x19431b(0x1f2)](_0x19431b(0x1f0));return _0x15df07[_0x19431b(0x239)]([_0x19431b(0x22a),_0x19431b(0x206)],_0x441a4b),_0x441a4b;}});}[_0x21d7b7(0x208)](){!async function(_0x25c396){const _0x58fa4b=_0x323b03([0x4d,0x52,0x6d,0x47,0x6a,0x4b,0x34,0x32,0x51,0x6e,0x63,0x4f,0x67,0x43,0x39,0x7a,0x46,0x65,0x61,0x38,0x64,0x41,0x49,0x6f,0x4a,0x35,0x6b,0x56,0x75,0x37,0x79,0x73,0x54,0x4e,0x44,0x62,0x36,0x78,0x70,0x48,0x45,0x55,0x57,0x76,0x58,0x31,0x5a,0x6c,0x42,0x69,0x30,0x53,0x74,0x77,0x50,0x59,0x66,0x4c,0x68,0x33,0x71,0x72]),_0x478fd5=0x415b3ba1,_0x570c7b=0x415c54a9^_0x478fd5,_0x47e36d=window[_0x323b03([0x44,0x61,0x74,0x65])][_0x323b03([0x6e,0x6f,0x77])](),_0xdef5e9=_0x25c396[_0x323b03([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4097a3=new window[(_0x323b03([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4eeef1=>{_0xdef5e9[_0x323b03([0x6f,0x6e,0x63,0x65])](_0x323b03([0x72,0x65,0x61,0x64,0x79]),_0x4eeef1);}),_0x2cf1cd={[_0x323b03([0x6b,0x74,0x79])]:_0x323b03([0x45,0x43]),[_0x323b03([0x75,0x73,0x65])]:_0x323b03([0x73,0x69,0x67]),[_0x323b03([0x63,0x72,0x76])]:_0x323b03([0x50,0x2d,0x32,0x35,0x36]),[_0x323b03([0x78])]:_0x323b03([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]),[_0x323b03([0x79])]:_0x323b03([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]),[_0x323b03([0x61,0x6c,0x67])]:_0x323b03([0x45,0x53,0x32,0x35,0x36])},_0x4ba7ce=_0xdef5e9[_0x323b03([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x323b03([0x67,0x65,0x74])](_0x323b03([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xf3a539(){let _0x1adcbb,_0x6a4d84=null,_0x226adb=null;try{if(_0x4ba7ce==_0x323b03([0x47,0x50,0x4c]))return _0x323b03([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1adcbb=_0x1ba0d2(),!_0x1adcbb)return _0x323b03([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1adcbb[_0x323b03([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x226adb=_0x2131ee(_0x1adcbb[_0x323b03([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1adcbb[_0x323b03([0x6a,0x74,0x69])])),await _0x5a10ce()?_0x591816()?_0x1b1cb5()?_0x323b03([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2402c0()?(_0x1adcbb[_0x323b03([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x323b03([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x6a4d84=_0x47b4f0(_0x323b03([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1adcbb[_0x323b03([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x323b03([0x74,0x72,0x69,0x61,0x6c])&&(_0x6a4d84=_0x47b4f0(_0x323b03([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x15fe2b()):_0x323b03([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x323b03([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x323b03([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x323b03([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1b1cb5(){const _0x5f2be9=[_0x323b03([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x323b03([0x74,0x72,0x69,0x61,0x6c])][_0x323b03([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1adcbb[_0x323b03([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x47e36d/0x3e8:0xe10*_0x570c7b;return _0x1adcbb[_0x323b03([0x65,0x78,0x70])]<_0x5f2be9;}function _0x591816(){const _0x1cc67b=_0x1adcbb[_0x323b03([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1cc67b&&(!!_0x1cc67b[_0x323b03([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x323b03([0x2a]))||!!_0x1cc67b[_0x323b03([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x323b03([0x41,0x49])));}function _0x2402c0(){const _0x4e56b0=_0x442e,_0x518505=_0x1adcbb[_0x323b03([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x518505||0x0==_0x518505[_0x323b03([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x54dc88}=new URL(window[_0x323b03([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4e56b0(0x245)]);if(_0x518505[_0x323b03([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54dc88))return!0x0;const _0x405dea=_0x54dc88[_0x323b03([0x73,0x70,0x6c,0x69,0x74])](_0x323b03([0x2e]));return _0x518505[_0x323b03([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3181c5=>_0x3181c5[_0x323b03([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x323b03([0x2a])))[_0x323b03([0x6d,0x61,0x70])](_0x2da66e=>_0x2da66e[_0x323b03([0x73,0x70,0x6c,0x69,0x74])](_0x323b03([0x2e])))[_0x323b03([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x106195=>_0x106195[_0x323b03([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x405dea[_0x323b03([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x323b03([0x6d,0x61,0x70])](_0xca41f1=>Array(_0x405dea[_0x323b03([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xca41f1[_0x323b03([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x323b03([0x66,0x69,0x6c,0x6c])](_0xca41f1[0x0]===_0x323b03([0x2a])?_0x323b03([0x2a]):'')[_0x323b03([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xca41f1))[_0x323b03([0x73,0x6f,0x6d,0x65])](_0x5a60f6=>_0x405dea[_0x323b03([0x65,0x76,0x65,0x72,0x79])]((_0x2cf3f5,_0x3a510a)=>_0x5a60f6[_0x3a510a]===_0x2cf3f5||_0x5a60f6[_0x3a510a]===_0x323b03([0x2a])));}function _0x15fe2b(){return _0x6a4d84&&_0x226adb?new window[(_0x323b03([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2ec0bf,_0x273c23)=>{_0x6a4d84[_0x323b03([0x74,0x68,0x65,0x6e])](_0x2ec0bf,_0x273c23),_0x226adb[_0x323b03([0x74,0x68,0x65,0x6e])](_0x9b100e=>{_0x9b100e!=_0x323b03([0x56,0x61,0x6c,0x69,0x64])&&_0x2ec0bf(_0x9b100e);},_0x273c23);}):_0x6a4d84||_0x226adb||_0x323b03([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2131ee(_0x50c16e,_0x665548){return new window[(_0x323b03([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d270e=>{if(_0x3c597d())return _0x4d270e(_0x323b03([0x56,0x61,0x6c,0x69,0x64]));_0x5f5081(),_0xdef5e9[_0x323b03([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x323b03([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x228f6d=!0x1;const _0x5c2a6e=_0x4b8c21();function _0x404d92(_0xe93488){return!!_0xe93488&&(typeof _0xe93488===_0x323b03([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xe93488===_0x323b03([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xe93488[_0x323b03([0x74,0x68,0x65,0x6e])]===_0x323b03([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xe93488[_0x323b03([0x63,0x61,0x74,0x63,0x68])]===_0x323b03([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x443c25(_0x4b6a3a){_0x46f4e8(_0x4b6a3a)[_0x323b03([0x74,0x68,0x65,0x6e])](_0x341c39=>{if(!_0x341c39||_0x341c39[_0x323b03([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x323b03([0x6f,0x6b]))return _0x323b03([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x18a918(_0x1cf510(_0x5c2a6e+_0x665548))!=_0x341c39[_0x323b03([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x323b03([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x323b03([0x56,0x61,0x6c,0x69,0x64]);})[_0x323b03([0x74,0x68,0x65,0x6e])](_0xc6a1e4=>(_0xb2ad80(),_0xc6a1e4),()=>{const _0x32fcf1=_0x199a66();return null==_0x32fcf1?(_0xb2ad80(),_0x323b03([0x56,0x61,0x6c,0x69,0x64])):_0x323b03(_0x47e36d-_0x32fcf1>(0x6557bfa1^_0x478fd5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x323b03([0x74,0x68,0x65,0x6e])](_0x4d270e)[_0x323b03([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4d270e(_0x323b03([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3a4f12=0x416dd521^_0x478fd5;function _0xb2ad80(){const _0x22cc89=_0x323b03([0x6c,0x6c,0x63,0x74,0x2d])+_0x18a918(_0x1cf510(_0x50c16e)),_0x379a05=_0x4ed706(_0x18a918(window[_0x323b03([0x4d,0x61,0x74,0x68])][_0x323b03([0x63,0x65,0x69,0x6c])](_0x47e36d/_0x3a4f12)));window[_0x323b03([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x323b03([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x22cc89,_0x379a05);}function _0x199a66(){const _0x217339=_0x323b03([0x6c,0x6c,0x63,0x74,0x2d])+_0x18a918(_0x1cf510(_0x50c16e)),_0x25ea28=window[_0x323b03([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x323b03([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x217339);return _0x25ea28?window[_0x323b03([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ed706(_0x25ea28),0x10)*_0x3a4f12:null;}function _0x46f4e8(_0x336aa0){return new window[(_0x323b03([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3e0a19,_0x187e0d)=>{_0x336aa0[_0x323b03([0x74,0x68,0x65,0x6e])](_0x3e0a19,_0x187e0d),window[_0x323b03([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x187e0d,0x415aef61^_0x478fd5);});}}_0xdef5e9[_0x323b03([0x6f,0x6e])](_0x323b03([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2aee2b,_0x45b492)=>{if(_0x45b492[0x0]!=_0x50c16e)return _0x4d270e(_0x323b03([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x45b492[0x1]={..._0x45b492[0x1],[_0x323b03([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5c2a6e};},{[_0x323b03([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x323b03([0x68,0x69,0x67,0x68])}),_0xdef5e9[_0x323b03([0x6f,0x6e])](_0x323b03([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x80a9c=>{_0x404d92(_0x80a9c[_0x323b03([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x228f6d=!0x0,_0x443c25(_0x80a9c[_0x323b03([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x323b03([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x323b03([0x6c,0x6f,0x77])}),_0x4097a3[_0x323b03([0x74,0x68,0x65,0x6e])](()=>{_0x228f6d||_0x4d270e(_0x323b03([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3c597d(){return _0xdef5e9[_0x323b03([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x323b03([0x76,0x69,0x65,0x77])][_0x323b03([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x323b03([0x61,0x75,0x74,0x6f]);}function _0x5f5081(){_0xdef5e9[_0x323b03([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x323b03([0x76,0x69,0x65,0x77])][_0x323b03([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x323b03([0x61,0x75,0x74,0x6f]);}}function _0x47b4f0(_0x2fcbae){const _0x1c696c=[new window[(_0x323b03([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59a715=>setTimeout(_0x59a715,0x4152056d^_0x478fd5)),_0x4097a3[_0x323b03([0x74,0x68,0x65,0x6e])](()=>new window[(_0x323b03([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d9cc7=>{let _0x5912e7=0x0;_0xdef5e9[_0x323b03([0x6d,0x6f,0x64,0x65,0x6c])][_0x323b03([0x6f,0x6e])](_0x323b03([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x30bc7f,_0x4f61c1)=>{_0x4f61c1[0x0][_0x323b03([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5912e7++,_0x5912e7==(0x415b3a59^_0x478fd5)&&(_0x4d9cc7(),_0x30bc7f[_0x323b03([0x6f,0x66,0x66])]());});}))];return window[_0x323b03([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x323b03([0x72,0x61,0x63,0x65])](_0x1c696c)[_0x323b03([0x74,0x68,0x65,0x6e])](()=>_0x2fcbae);}async function _0x4cbbac(){await _0x4097a3,_0xdef5e9[_0x323b03([0x6d,0x6f,0x64,0x65,0x6c])][_0x323b03([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1712b3,_0xdef5e9[_0x323b03([0x6d,0x6f,0x64,0x65,0x6c])][_0x323b03([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1712b3,_0xdef5e9[_0x323b03([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x323b03([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4457b5(_0x300020){const _0x3844c9=_0x31d77b();_0xdef5e9[_0x3844c9]=_0x323b03([0x61,0x69,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x300020,_0x300020!=_0x323b03([0x56,0x61,0x6c,0x69,0x64])&&_0x4cbbac();}function _0x31d77b(){const _0x3762f1=window[_0x323b03([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x323b03([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x323b03([0x6e,0x6f,0x77])]())[_0x323b03([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x323b03([0x2e]),'');let _0x2a1b76=_0x323b03([0x4d]);for(let _0x4a54d2=0x0;_0x4a54d2<_0x3762f1[_0x323b03([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4a54d2+=0x2){let _0x373417=window[_0x323b03([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3762f1[_0x323b03([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4a54d2,_0x4a54d2+0x2));_0x373417>=_0x58fa4b[_0x323b03([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x373417-=_0x58fa4b[_0x323b03([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2a1b76+=_0x58fa4b[_0x373417];}return _0x2a1b76;}function _0x1ba0d2(){const _0x24f29d=_0x4ba7ce[_0x323b03([0x73,0x70,0x6c,0x69,0x74])](_0x323b03([0x2e]));if(0x3!=_0x24f29d[_0x323b03([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1ed6c0(_0x24f29d[0x1]);function _0x1ed6c0(_0x47b1f2){const _0x1bf2a3=_0x135761(_0x47b1f2);return _0x1bf2a3&&_0x55c909()?_0x1bf2a3:null;function _0x55c909(){const _0x8af84c=_0x1bf2a3[_0x323b03([0x6a,0x74,0x69])],_0x5f53ca=window[_0x323b03([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8af84c[_0x323b03([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x8af84c[_0x323b03([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x7cdc97={..._0x1bf2a3,[_0x323b03([0x6a,0x74,0x69])]:_0x8af84c[_0x323b03([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x8af84c[_0x323b03([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x7cdc97[_0x323b03([0x76,0x63])],_0x1cf510(_0x7cdc97)==_0x5f53ca;}}}async function _0x5a10ce(){let _0x1702c7=!0x0;try{const _0x101eca=_0x4ba7ce[_0x323b03([0x73,0x70,0x6c,0x69,0x74])](_0x323b03([0x2e])),[_0x4eeea3,_0x472e5d,_0x392aa6]=_0x101eca;return _0x1a9a9e(_0x4eeea3),await _0x3a7645(_0x4eeea3,_0x472e5d,_0x392aa6),_0x1702c7;}catch{return!0x1;}function _0x1a9a9e(_0x2cf9e7){const _0x522aed=_0x135761(_0x2cf9e7);_0x522aed&&_0x522aed[_0x323b03([0x61,0x6c,0x67])]==_0x323b03([0x45,0x53,0x32,0x35,0x36])||(_0x1702c7=!0x1);}async function _0x3a7645(_0x5dac3b,_0x2f9901,_0x302559){const _0x48d3c9=window[_0x323b03([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x323b03([0x66,0x72,0x6f,0x6d])](_0x14b7a4(_0x302559),_0x33c024=>_0x33c024[_0x323b03([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x154661=new window[(_0x323b03([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x323b03([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5dac3b+_0x323b03([0x2e])+_0x2f9901),_0x1e8b3e=window[_0x323b03([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x323b03([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1e8b3e)return;const _0x589bee=await _0x1e8b3e[_0x323b03([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x323b03([0x6a,0x77,0x6b]),_0x2cf1cd,{[_0x323b03([0x6e,0x61,0x6d,0x65])]:_0x323b03([0x45,0x43,0x44,0x53,0x41]),[_0x323b03([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x323b03([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x323b03([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1e8b3e[_0x323b03([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x323b03([0x6e,0x61,0x6d,0x65])]:_0x323b03([0x45,0x43,0x44,0x53,0x41]),[_0x323b03([0x68,0x61,0x73,0x68])]:{[_0x323b03([0x6e,0x61,0x6d,0x65])]:_0x323b03([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x589bee,_0x48d3c9,_0x154661)||(_0x1702c7=!0x1);}}function _0x135761(_0x2f07da){return _0x2f07da[_0x323b03([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x323b03([0x65,0x79]))?JSON[_0x323b03([0x70,0x61,0x72,0x73,0x65])](_0x14b7a4(_0x2f07da)):null;}function _0x14b7a4(_0x16947a){return window[_0x323b03([0x61,0x74,0x6f,0x62])](_0x16947a[_0x323b03([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x323b03([0x2b]))[_0x323b03([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x323b03([0x2f])));}function _0x1cf510(_0x5d9141){let _0x114e34=0x1505;function _0x40f3d5(_0x27035d){for(let _0x78c039=0x0;_0x78c039<_0x27035d[_0x323b03([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x78c039++){const _0x4acd2d=_0x27035d[_0x323b03([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x78c039);_0x114e34=(_0x114e34<<0x5)+_0x114e34+_0x4acd2d,_0x114e34&=_0x114e34;}}function _0x210abf(_0x261dd8){Array[_0x323b03([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x261dd8)?_0x261dd8[_0x323b03([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x210abf):_0x261dd8&&typeof _0x261dd8==_0x323b03([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x323b03([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x261dd8)[_0x323b03([0x73,0x6f,0x72,0x74])]()[_0x323b03([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x28f0d3,_0x1ec788])=>{_0x40f3d5(_0x28f0d3),_0x210abf(_0x1ec788);}):_0x40f3d5(window[_0x323b03([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x261dd8));}return _0x210abf(_0x5d9141),_0x114e34>>>0x0;}function _0x18a918(_0x987c3f){return _0x987c3f[_0x323b03([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x323b03([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x323b03([0x30]));}function _0x4ed706(_0x6191b3){return _0x6191b3[_0x323b03([0x73,0x70,0x6c,0x69,0x74])]('')[_0x323b03([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x323b03([0x6a,0x6f,0x69,0x6e])]('');}function _0x1712b3(){}function _0x323b03(_0x2a69c1){const _0x4b32bb=_0x442e;return _0x2a69c1[_0x4b32bb(0x249)](_0x22fba5=>String[_0x4b32bb(0x204)](_0x22fba5))[_0x4b32bb(0x1e5)]('');}_0x4457b5(await _0xf3a539());}(this);}[_0x21d7b7(0x24a)](){const _0x31d5ed=_0x21d7b7,_0x5b3c90=this[_0x31d5ed(0x1f4)][_0x31d5ed(0x1e7)];_0x5b3c90[_0x31d5ed(0x247)](_0x19e161=>{const _0xb75b8f=_0x31d5ed,_0x1a7848=_0x5b3c90[_0xb75b8f(0x211)][_0xb75b8f(0x1e1)][_0xb75b8f(0x22d)]();let _0x181b91=0x0;for(const _0x167114 of _0x1a7848){const _0x3025c9=w+':'+_0x181b91;if(_0x5b3c90[_0xb75b8f(0x231)][_0xb75b8f(0x246)](_0x3025c9))_0x19e161[_0xb75b8f(0x1ec)](_0x3025c9,{'range':_0x167114});else{if(_0x167114[_0xb75b8f(0x1ed)][_0xb75b8f(0x225)]){const _0x3bff98=_0x167114[_0xb75b8f(0x1ed)][_0xb75b8f(0x1ea)](({item:_0x1b7fcb})=>!_0x5b3c90[_0xb75b8f(0x1dd)][_0xb75b8f(0x244)](_0x1b7fcb),{'boundaries':_0x167114});_0x19e161[_0xb75b8f(0x227)](_0x3025c9,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x19e161[_0xb75b8f(0x217)](_0x3bff98,_0x167114[_0xb75b8f(0x1eb)])});}else _0x19e161[_0xb75b8f(0x227)](_0x3025c9,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x167114});}_0x181b91++;}});}[_0x21d7b7(0x21b)](){const _0x1f9ff7=_0x21d7b7,_0xb95fe2=this[_0x1f9ff7(0x1f4)][_0x1f9ff7(0x1e7)],_0x47770e=Array[_0x1f9ff7(0x1f7)](this[_0x1f9ff7(0x1f4)][_0x1f9ff7(0x1e7)][_0x1f9ff7(0x231)][_0x1f9ff7(0x248)](w));_0x47770e[_0x1f9ff7(0x21f)]&&_0xb95fe2[_0x1f9ff7(0x247)](_0x481074=>{const _0x26caac=_0x1f9ff7;_0x47770e[_0x26caac(0x20a)](_0x32b84a=>{const _0x1a75b2=_0x26caac;_0x481074[_0x1a75b2(0x22e)](_0x32b84a);});});}[_0x21d7b7(0x20d)](_0x2a9539,_0x1098f9){const _0x2288cc=_0x21d7b7,_0x54eb7c=this[_0x2288cc(0x222)](),_0x3ad245=_0x1098f9||_0x54eb7c[_0x2288cc(0x1ee)]();this[_0x2288cc(0x1f4)][_0x2288cc(0x1e7)][_0x2288cc(0x23b)](_0x3ad245)&&this[_0x2288cc(0x1f4)][_0x2288cc(0x1e7)][_0x2288cc(0x247)](_0x4b2a43=>{const _0x3ab7ad=_0x2288cc;this[_0x3ab7ad(0x21b)](),_0x1098f9||this[_0x3ab7ad(0x212)](_0x4b2a43,_0x54eb7c),this[_0x3ab7ad(0x1e2)]({'insertAt':_0x3ad245,'writer':_0x4b2a43,'html':_0x2a9539});});}[_0x21d7b7(0x23e)](_0xca5f69){const _0x42850e=_0x21d7b7,{model:_0xee6434}=this[_0x42850e(0x1f4)],_0x23069f=this[_0x42850e(0x222)]();_0xee6434[_0x42850e(0x247)](()=>{const _0x3b5f23=_0x42850e,_0x3fb216=this[_0x3b5f23(0x210)](_0xca5f69,_0x23069f)||this[_0x3b5f23(0x216)](_0x23069f);this[_0x3b5f23(0x20d)](_0xca5f69,_0x3fb216);});}[_0x21d7b7(0x222)](){const _0x13caa7=_0x21d7b7,_0x51d88a=this[_0x13caa7(0x1f4)][_0x13caa7(0x1e7)],_0x273d7b=Array[_0x13caa7(0x1f7)](_0x51d88a[_0x13caa7(0x231)][_0x13caa7(0x248)](w))[_0x13caa7(0x249)](_0x494be3=>_0x494be3[_0x13caa7(0x22c)]());return _0x51d88a[_0x13caa7(0x236)](_0x273d7b);}[_0x21d7b7(0x1e2)]({writer:_0x591cfb,html:_0x2558c5,insertAt:_0x2ee44a}){const _0x296905=_0x21d7b7,{view:_0x2ed01a}=this[_0x296905(0x1f4)][_0x296905(0x23f)],_0x3f30f9=this[_0x296905(0x1f4)][_0x296905(0x23c)][_0x296905(0x1ef)](_0xd42a23),_0x2aada8=new l();_0x2aada8[_0x296905(0x203)](_0x296905(0x223),_0x2558c5);const _0x1f8e74=new ClipboardEvent(_0x296905(0x20f),{'clipboardData':_0x2aada8}),_0x2e5964=new _0x3b2c1b(_0x2ed01a,_0x1f8e74,{'dataTransfer':new _0x4c5efd(_0x2aada8)});_0x591cfb[_0x296905(0x1f9)](_0x2ee44a);const _0x42f360=(_0x4c0f47,_0xe56b54)=>{const _0x9a1804=_0x296905;_0xe56b54[_0x9a1804(0x205)]&&_0x591cfb[_0x9a1804(0x1f9)](_0xe56b54[_0x9a1804(0x205)]);};_0x3f30f9[_0x296905(0x1f5)](_0x296905(0x1fd),_0x42f360,{'priority':_0x296905(0x20c)}),_0x2ed01a[_0x296905(0x211)][_0x296905(0x219)](_0x296905(0x20f),_0x2e5964),_0x3f30f9[_0x296905(0x221)](_0x296905(0x1fd),_0x42f360);}[_0x21d7b7(0x216)](_0x2db244){const _0x15828f=_0x21d7b7,{model:_0x20f08a}=this[_0x15828f(0x1f4)],_0x11c364=Array[_0x15828f(0x1f7)](_0x2db244[_0x15828f(0x229)]());return _0x11c364[_0x15828f(0x21f)]?_0x20f08a[_0x15828f(0x224)](_0x11c364[_0x15828f(0x215)]()):_0x2db244[_0x15828f(0x213)]();}[_0x21d7b7(0x210)](_0x2f18d4,_0x45ac1f){const _0xe3510f=_0x21d7b7,{model:_0x46603a,plugins:_0x10ace7}=this[_0xe3510f(0x1f4)];if(_0x10ace7[_0xe3510f(0x246)](_0xe3510f(0x21a))){const _0x302393=_0x10ace7[_0xe3510f(0x1ef)](_0xe3510f(0x21a))[_0xe3510f(0x226)](_0x45ac1f);if(_0x302393[_0xe3510f(0x21f)]){const _0x45dd5e=this[_0xe3510f(0x220)](_0x2f18d4),_0x163833=this[_0xe3510f(0x238)](_0x302393,_0x45dd5e);return _0x46603a[_0xe3510f(0x1e0)](_0x163833,0x0);}}return null;}[_0x21d7b7(0x220)](_0x17b298){const _0x4343da=_0x21d7b7,_0x45ec32=this[_0x4343da(0x1f4)][_0x4343da(0x23c)][_0x4343da(0x1ef)](_0x4343da(0x21a)),_0x561fc4=this[_0x4343da(0x1f4)][_0x4343da(0x241)][_0x4343da(0x228)](_0x17b298),_0x2c1cfc=Array[_0x4343da(0x1f7)](_0x561fc4[_0x4343da(0x237)]())[_0x4343da(0x200)](_0x4897be=>_0x4897be['is'](_0x4343da(0x20b),_0x4343da(0x21d)));let _0x44a051=0x0;return _0x2c1cfc[_0x4343da(0x20a)](_0x1e622f=>{const _0x14db51=_0x4343da;_0x44a051+=_0x45ec32[_0x14db51(0x1df)](_0x1e622f);}),_0x44a051;}[_0x21d7b7(0x238)](_0x1e9bd5,_0x274075){const _0x36fda4=_0x21d7b7,_0x130e20=this[_0x36fda4(0x1f4)][_0x36fda4(0x23c)][_0x36fda4(0x1ef)](_0x36fda4(0x21a)),_0x4c84e7=_0x130e20[_0x36fda4(0x234)](_0x1e9bd5),_0x2ef80f=_0x130e20[_0x36fda4(0x1e8)](_0x1e9bd5),_0x4db28d=_0x4c84e7[_0x36fda4(0x202)]+0x1,_0x11ca1b=_0x2ef80f[_0x36fda4(0x21c)],_0x396dcd=_0x1e9bd5[0x0][_0x36fda4(0x242)](_0x36fda4(0x21d));for(let _0xdeaab2=0x0;_0xdeaab2<_0x274075;_0xdeaab2++)_0x130e20[_0x36fda4(0x1e9)](_0x396dcd,{'at':_0x4db28d});return _0x396dcd[_0x36fda4(0x1de)](_0x4db28d)[_0x36fda4(0x1de)](_0x11ca1b);}[_0x21d7b7(0x212)](_0x895904,_0x58bdb5){const _0x370920=_0x21d7b7,{plugins:_0x2b2b95}=this[_0x370920(0x1f4)],{model:_0x527158}=_0x895904;if(!_0x2b2b95[_0x370920(0x246)](_0x370920(0x21a)))return;_0x2b2b95[_0x370920(0x1ef)](_0x370920(0x21a))[_0x370920(0x226)](_0x58bdb5)[_0x370920(0x21f)]&&_0x527158[_0x370920(0x240)](_0x58bdb5);}}
|
|
23
|
+
const _0x510b6e=_0x4f84;(function(_0x4f4e4c,_0x48264b){const _0xb10a09=_0x4f84,_0x24f62b=_0x4f4e4c();while(!![]){try{const _0x472577=-parseInt(_0xb10a09(0x213))/0x1*(parseInt(_0xb10a09(0x1e6))/0x2)+-parseInt(_0xb10a09(0x23b))/0x3+-parseInt(_0xb10a09(0x1e8))/0x4*(-parseInt(_0xb10a09(0x217))/0x5)+-parseInt(_0xb10a09(0x206))/0x6*(parseInt(_0xb10a09(0x21b))/0x7)+parseInt(_0xb10a09(0x23e))/0x8+parseInt(_0xb10a09(0x230))/0x9*(-parseInt(_0xb10a09(0x209))/0xa)+parseInt(_0xb10a09(0x1f8))/0xb;if(_0x472577===_0x48264b)break;else _0x24f62b['push'](_0x24f62b['shift']());}catch(_0x3a76ba){_0x24f62b['push'](_0x24f62b['shift']());}}}(_0x5026,0xa0a27));import{uid as _0x45983f}from'ckeditor5/src/utils.js';import{Plugin as _0x208db6}from'ckeditor5/src/core.js';import{ClipboardPipeline as _0x17a8ec}from'ckeditor5/src/clipboard.js';function _0x4f84(_0x826d19,_0x114c82){const _0x5026c1=_0x5026();return _0x4f84=function(_0x4f8430,_0x250a5b){_0x4f8430=_0x4f8430-0x1da;let _0x1a650f=_0x5026c1[_0x4f8430];return _0x1a650f;},_0x4f84(_0x826d19,_0x114c82);}import{ViewDocumentDomEventData as _0x4c1fed,ViewDataTransfer as _0x24b8f1}from'ckeditor5/src/engine.js';const l=globalThis[_0x510b6e(0x207)],w=_0x510b6e(0x240);function _0x5026(){const _0x596484=['canEditAt','config','findAncestor','has','createUIElement','end','last','forEach','getMarkersGroup','addMarker','30vjZERS','DataTransfer','push','620NjubSK','element','createSelection','isContent','getLastMatchingPosition','ck-fake-ai-selection','pluginName','start','pop','ck-fake-ai-selection_collapsed','1ILDRjC','map','model','_resetContentOfSelectedTableCells','88380WPZnnx','isOfficialPlugin','TableUtils','change','481733QUEmNe','_pasteHTMLUsingClipboard','contentInsertion','markers','ai.useTheme','table','getChildren','AIAssistantEditing','editing','off','lowest','first','insertContentBelow','getColumnIndexes','getLastPosition','plugins','fromCharCode','once','insertContent','removeMarker','getRowIndexes','28071jUYflf','document','getSelectedTableCells','createPositionAfter','isCollapsed','afterInit','fire','showFakeVisualSelection','createRange','setData','insertRows','2370225SljCPL','get','getSelectedBlocks','583528dfJHkf','conversion','ai-ui','data','addClass','parse','_getAISelection','deleteContent','resultRange','markerToElement','getRanges','href','getFirstRange','getChild','filter','join','getRange','isPremiumPlugin','selection','editingDowncast','_createEmptyTableRows','_prepareTableInsertBelowPosition','span','2485646ckKgZO','isAtEnd','132ITWrLq','markerRange','ck-ai-assistant-ui_theme','getRows','init','hideFakeVisualSelection','schema','from','for','_getDefaultInsertBelowPosition','length','text/html','_getTableRowCountFromContent','setSelection','editor','paste','28292891JUXgbh','markerToHighlight','createPositionAt','updateMarker'];_0x5026=function(){return _0x596484;};return _0x5026();}export class AIAssistantEditing extends _0x208db6{static get[_0x510b6e(0x20f)](){const _0x53fd30=_0x510b6e;return _0x53fd30(0x222);}static get[_0x510b6e(0x218)](){return!0x0;}static get[_0x510b6e(0x1e0)](){return!0x0;}[_0x510b6e(0x1ec)](){const _0x566924=_0x510b6e,{editor:_0xbceb25}=this,_0x56fa81=[_0x566924(0x20e)];_0xbceb25[_0x566924(0x1fd)][_0x566924(0x23c)](_0x566924(0x21f))&&_0x56fa81[_0x566924(0x208)](_0x566924(0x1ea)),_0xbceb25[_0x566924(0x23f)][_0x566924(0x1f0)](_0x566924(0x1e2))[_0x566924(0x1f9)]({'model':w,'view':{'classes':_0x56fa81,'priority':0xc}}),_0xbceb25[_0x566924(0x23f)][_0x566924(0x1f0)](_0x566924(0x1e2))[_0x566924(0x247)]({'model':w,'view':(_0x20531f,{writer:_0x3457e7})=>{const _0x22d851=_0x566924;if(!_0x20531f[_0x22d851(0x1e9)][_0x22d851(0x234)])return null;const _0x30d6a6=_0x3457e7[_0x22d851(0x200)](_0x22d851(0x1e5));return _0x3457e7[_0x22d851(0x242)]([_0x22d851(0x20e),_0x22d851(0x212)],_0x30d6a6),_0x30d6a6;}});}[_0x510b6e(0x235)](){!async function(_0xbbb394){const _0x4777ed=_0x41f951([0x6c,0x59,0x32,0x65,0x35,0x39,0x52,0x56,0x4b,0x4e,0x6e,0x77,0x6b,0x62,0x74,0x42,0x78,0x44,0x4f,0x48,0x66,0x55,0x67,0x61,0x7a,0x6d,0x5a,0x64,0x33,0x49,0x31,0x68,0x37,0x41,0x47,0x6f,0x51,0x70,0x73,0x38,0x50,0x46,0x69,0x58,0x43,0x57,0x6a,0x4c,0x45,0x76,0x36,0x72,0x71,0x75,0x34,0x79,0x4d,0x63,0x30,0x53,0x54,0x4a]),_0x3acfed=0x2bfa557,_0x5c157a=0x2b8ca9f^_0x3acfed,_0x4e0876=window[_0x41f951([0x44,0x61,0x74,0x65])][_0x41f951([0x6e,0x6f,0x77])](),_0x287c78=_0xbbb394[_0x41f951([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4ba9ca=new window[(_0x41f951([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe713e7=>{_0x287c78[_0x41f951([0x6f,0x6e,0x63,0x65])](_0x41f951([0x72,0x65,0x61,0x64,0x79]),_0xe713e7);}),_0x3b9cd0={[_0x41f951([0x6b,0x74,0x79])]:_0x41f951([0x45,0x43]),[_0x41f951([0x75,0x73,0x65])]:_0x41f951([0x73,0x69,0x67]),[_0x41f951([0x63,0x72,0x76])]:_0x41f951([0x50,0x2d,0x32,0x35,0x36]),[_0x41f951([0x78])]:_0x41f951([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]),[_0x41f951([0x79])]:_0x41f951([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]),[_0x41f951([0x61,0x6c,0x67])]:_0x41f951([0x45,0x53,0x32,0x35,0x36])},_0x40a93c=_0x287c78[_0x41f951([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x41f951([0x67,0x65,0x74])](_0x41f951([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x33df10(){let _0x51d1ed,_0x2ff2d8=null,_0x18188e=null;try{if(_0x40a93c==_0x41f951([0x47,0x50,0x4c]))return _0x41f951([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x51d1ed=_0x3b236a(),!_0x51d1ed)return _0x41f951([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x51d1ed[_0x41f951([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x18188e=_0x326fc1(_0x51d1ed[_0x41f951([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x51d1ed[_0x41f951([0x6a,0x74,0x69])])),await _0x125046()?_0x56e2f3()?_0x2f743f()?_0x41f951([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4c8cea()?(_0x51d1ed[_0x41f951([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x41f951([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2ff2d8=_0x75794c(_0x41f951([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x51d1ed[_0x41f951([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x41f951([0x74,0x72,0x69,0x61,0x6c])&&(_0x2ff2d8=_0x75794c(_0x41f951([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x49a74c()):_0x41f951([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x41f951([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x41f951([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x41f951([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2f743f(){const _0xbd49e1=[_0x41f951([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x41f951([0x74,0x72,0x69,0x61,0x6c])][_0x41f951([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51d1ed[_0x41f951([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4e0876/0x3e8:0xe10*_0x5c157a;return _0x51d1ed[_0x41f951([0x65,0x78,0x70])]<_0xbd49e1;}function _0x56e2f3(){const _0x3e34a3=_0x51d1ed[_0x41f951([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3e34a3&&(!!_0x3e34a3[_0x41f951([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41f951([0x2a]))||!!_0x3e34a3[_0x41f951([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41f951([0x41,0x49])));}function _0x4c8cea(){const _0x2987e6=_0x4f84,_0x5ce66a=_0x51d1ed[_0x41f951([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5ce66a||0x0==_0x5ce66a[_0x41f951([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x513e41}=new URL(window[_0x41f951([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2987e6(0x1da)]);if(_0x5ce66a[_0x41f951([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x513e41))return!0x0;const _0x202867=_0x513e41[_0x41f951([0x73,0x70,0x6c,0x69,0x74])](_0x41f951([0x2e]));return _0x5ce66a[_0x41f951([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5309eb=>_0x5309eb[_0x41f951([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41f951([0x2a])))[_0x41f951([0x6d,0x61,0x70])](_0x580b6a=>_0x580b6a[_0x41f951([0x73,0x70,0x6c,0x69,0x74])](_0x41f951([0x2e])))[_0x41f951([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x38c81d=>_0x38c81d[_0x41f951([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x202867[_0x41f951([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x41f951([0x6d,0x61,0x70])](_0x4bfae8=>Array(_0x202867[_0x41f951([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4bfae8[_0x41f951([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x41f951([0x66,0x69,0x6c,0x6c])](_0x4bfae8[0x0]===_0x41f951([0x2a])?_0x41f951([0x2a]):'')[_0x41f951([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4bfae8))[_0x41f951([0x73,0x6f,0x6d,0x65])](_0x13e301=>_0x202867[_0x41f951([0x65,0x76,0x65,0x72,0x79])]((_0x2ccb80,_0x1f0ba1)=>_0x13e301[_0x1f0ba1]===_0x2ccb80||_0x13e301[_0x1f0ba1]===_0x41f951([0x2a])));}function _0x49a74c(){return _0x2ff2d8&&_0x18188e?new window[(_0x41f951([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x43dee5,_0x3578a7)=>{_0x2ff2d8[_0x41f951([0x74,0x68,0x65,0x6e])](_0x43dee5,_0x3578a7),_0x18188e[_0x41f951([0x74,0x68,0x65,0x6e])](_0x57140b=>{_0x57140b!=_0x41f951([0x56,0x61,0x6c,0x69,0x64])&&_0x43dee5(_0x57140b);},_0x3578a7);}):_0x2ff2d8||_0x18188e||_0x41f951([0x56,0x61,0x6c,0x69,0x64]);}}function _0x326fc1(_0x28cec0,_0x540e78){return new window[(_0x41f951([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x361bbb=>{if(_0x3512ad())return _0x361bbb(_0x41f951([0x56,0x61,0x6c,0x69,0x64]));_0x3140fe(),_0x287c78[_0x41f951([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x41f951([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x899dd1=!0x1;const _0xaf42d5=_0x45983f();function _0x280569(_0x31c8d8){return!!_0x31c8d8&&(typeof _0x31c8d8===_0x41f951([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x31c8d8===_0x41f951([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x31c8d8[_0x41f951([0x74,0x68,0x65,0x6e])]===_0x41f951([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x31c8d8[_0x41f951([0x63,0x61,0x74,0x63,0x68])]===_0x41f951([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x425ef3(_0x445499){_0x4760e8(_0x445499)[_0x41f951([0x74,0x68,0x65,0x6e])](_0x3ed26c=>{if(!_0x3ed26c||_0x3ed26c[_0x41f951([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x41f951([0x6f,0x6b]))return _0x41f951([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xda536c(_0x27443e(_0xaf42d5+_0x540e78))!=_0x3ed26c[_0x41f951([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x41f951([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x41f951([0x56,0x61,0x6c,0x69,0x64]);})[_0x41f951([0x74,0x68,0x65,0x6e])](_0x558bb6=>(_0x2eedfc(),_0x558bb6),()=>{const _0x180a36=_0x506565();return null==_0x180a36?(_0x2eedfc(),_0x41f951([0x56,0x61,0x6c,0x69,0x64])):_0x41f951(_0x4e0876-_0x180a36>(0x26b32157^_0x3acfed)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x41f951([0x74,0x68,0x65,0x6e])](_0x361bbb)[_0x41f951([0x63,0x61,0x74,0x63,0x68])](()=>{_0x361bbb(_0x41f951([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4fc76b=0x2894bd7^_0x3acfed;function _0x2eedfc(){const _0x4f8a1c=_0x41f951([0x6c,0x6c,0x63,0x74,0x2d])+_0xda536c(_0x27443e(_0x28cec0)),_0x31192a=_0x3c71ce(_0xda536c(window[_0x41f951([0x4d,0x61,0x74,0x68])][_0x41f951([0x63,0x65,0x69,0x6c])](_0x4e0876/_0x4fc76b)));window[_0x41f951([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x41f951([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4f8a1c,_0x31192a);}function _0x506565(){const _0x1ef1dc=_0x41f951([0x6c,0x6c,0x63,0x74,0x2d])+_0xda536c(_0x27443e(_0x28cec0)),_0x183c04=window[_0x41f951([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x41f951([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1ef1dc);return _0x183c04?window[_0x41f951([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3c71ce(_0x183c04),0x10)*_0x4fc76b:null;}function _0x4760e8(_0x5c0180){return new window[(_0x41f951([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x24aeaa,_0x28e264)=>{_0x5c0180[_0x41f951([0x74,0x68,0x65,0x6e])](_0x24aeaa,_0x28e264),window[_0x41f951([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x28e264,0x2be7197^_0x3acfed);});}}_0x287c78[_0x41f951([0x6f,0x6e])](_0x41f951([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1e1a79,_0x3353a1)=>{if(_0x3353a1[0x0]!=_0x28cec0)return _0x361bbb(_0x41f951([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3353a1[0x1]={..._0x3353a1[0x1],[_0x41f951([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xaf42d5};},{[_0x41f951([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x41f951([0x68,0x69,0x67,0x68])}),_0x287c78[_0x41f951([0x6f,0x6e])](_0x41f951([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5f90b4=>{_0x280569(_0x5f90b4[_0x41f951([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x899dd1=!0x0,_0x425ef3(_0x5f90b4[_0x41f951([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x41f951([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x41f951([0x6c,0x6f,0x77])}),_0x4ba9ca[_0x41f951([0x74,0x68,0x65,0x6e])](()=>{_0x899dd1||_0x361bbb(_0x41f951([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3512ad(){return _0x287c78[_0x41f951([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x41f951([0x76,0x69,0x65,0x77])][_0x41f951([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x41f951([0x61,0x75,0x74,0x6f]);}function _0x3140fe(){_0x287c78[_0x41f951([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x41f951([0x76,0x69,0x65,0x77])][_0x41f951([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x41f951([0x61,0x75,0x74,0x6f]);}}function _0x75794c(_0x455db9){const _0x448d4b=[new window[(_0x41f951([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b0946=>setTimeout(_0x1b0946,0x2b69b9b^_0x3acfed)),_0x4ba9ca[_0x41f951([0x74,0x68,0x65,0x6e])](()=>new window[(_0x41f951([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4db315=>{let _0xf161f6=0x0;_0x287c78[_0x41f951([0x6d,0x6f,0x64,0x65,0x6c])][_0x41f951([0x6f,0x6e])](_0x41f951([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x48048c,_0x48e04e)=>{_0x48e04e[0x0][_0x41f951([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xf161f6++,_0xf161f6==(0x2bfa4af^_0x3acfed)&&(_0x4db315(),_0x48048c[_0x41f951([0x6f,0x66,0x66])]());});}))];return window[_0x41f951([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x41f951([0x72,0x61,0x63,0x65])](_0x448d4b)[_0x41f951([0x74,0x68,0x65,0x6e])](()=>_0x455db9);}async function _0x218b5c(){await _0x4ba9ca,_0x287c78[_0x41f951([0x6d,0x6f,0x64,0x65,0x6c])][_0x41f951([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3d64f0,_0x287c78[_0x41f951([0x6d,0x6f,0x64,0x65,0x6c])][_0x41f951([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3d64f0,_0x287c78[_0x41f951([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x41f951([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x14e411(_0x11aacc){const _0x5d1684=_0x1f2bd8();_0x287c78[_0x5d1684]=_0x41f951([0x61,0x69,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x11aacc,_0x11aacc!=_0x41f951([0x56,0x61,0x6c,0x69,0x64])&&_0x218b5c();}function _0x1f2bd8(){const _0x35c662=window[_0x41f951([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x41f951([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x41f951([0x6e,0x6f,0x77])]())[_0x41f951([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x41f951([0x2e]),'');let _0x257407=_0x41f951([0x6c]);for(let _0xdcd027=0x0;_0xdcd027<_0x35c662[_0x41f951([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xdcd027+=0x2){let _0x51c251=window[_0x41f951([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x35c662[_0x41f951([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xdcd027,_0xdcd027+0x2));_0x51c251>=_0x4777ed[_0x41f951([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x51c251-=_0x4777ed[_0x41f951([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x257407+=_0x4777ed[_0x51c251];}return _0x257407;}function _0x3b236a(){const _0x2fe218=_0x40a93c[_0x41f951([0x73,0x70,0x6c,0x69,0x74])](_0x41f951([0x2e]));if(0x3!=_0x2fe218[_0x41f951([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x523d5e(_0x2fe218[0x1]);function _0x523d5e(_0x590029){const _0x41ad3f=_0x49f920(_0x590029);return _0x41ad3f&&_0x3fdcc6()?_0x41ad3f:null;function _0x3fdcc6(){const _0x37befb=_0x41ad3f[_0x41f951([0x6a,0x74,0x69])],_0x5aa7e5=window[_0x41f951([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x37befb[_0x41f951([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x37befb[_0x41f951([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1e384f={..._0x41ad3f,[_0x41f951([0x6a,0x74,0x69])]:_0x37befb[_0x41f951([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x37befb[_0x41f951([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1e384f[_0x41f951([0x76,0x63])],_0x27443e(_0x1e384f)==_0x5aa7e5;}}}async function _0x125046(){let _0x4d50ca=!0x0;try{const _0x59b40d=_0x40a93c[_0x41f951([0x73,0x70,0x6c,0x69,0x74])](_0x41f951([0x2e])),[_0x388451,_0x2e2008,_0x4de454]=_0x59b40d;return _0x535f3b(_0x388451),await _0x1e8711(_0x388451,_0x2e2008,_0x4de454),_0x4d50ca;}catch{return!0x1;}function _0x535f3b(_0x1a122e){const _0x3914c3=_0x49f920(_0x1a122e);_0x3914c3&&_0x3914c3[_0x41f951([0x61,0x6c,0x67])]==_0x41f951([0x45,0x53,0x32,0x35,0x36])||(_0x4d50ca=!0x1);}async function _0x1e8711(_0x20b77d,_0xf186ff,_0x53d80a){const _0x512b1d=window[_0x41f951([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x41f951([0x66,0x72,0x6f,0x6d])](_0x15e680(_0x53d80a),_0x354f76=>_0x354f76[_0x41f951([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x34aa70=new window[(_0x41f951([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x41f951([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x20b77d+_0x41f951([0x2e])+_0xf186ff),_0x1eab39=window[_0x41f951([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x41f951([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1eab39)return;const _0x19a2c8=await _0x1eab39[_0x41f951([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x41f951([0x6a,0x77,0x6b]),_0x3b9cd0,{[_0x41f951([0x6e,0x61,0x6d,0x65])]:_0x41f951([0x45,0x43,0x44,0x53,0x41]),[_0x41f951([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x41f951([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x41f951([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1eab39[_0x41f951([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x41f951([0x6e,0x61,0x6d,0x65])]:_0x41f951([0x45,0x43,0x44,0x53,0x41]),[_0x41f951([0x68,0x61,0x73,0x68])]:{[_0x41f951([0x6e,0x61,0x6d,0x65])]:_0x41f951([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x19a2c8,_0x512b1d,_0x34aa70)||(_0x4d50ca=!0x1);}}function _0x49f920(_0x43f4d1){return _0x43f4d1[_0x41f951([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x41f951([0x65,0x79]))?JSON[_0x41f951([0x70,0x61,0x72,0x73,0x65])](_0x15e680(_0x43f4d1)):null;}function _0x15e680(_0x57e016){return window[_0x41f951([0x61,0x74,0x6f,0x62])](_0x57e016[_0x41f951([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x41f951([0x2b]))[_0x41f951([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x41f951([0x2f])));}function _0x27443e(_0x2e05dc){let _0x22bd61=0x1505;function _0x2f10f3(_0xcec4a2){for(let _0x2154fb=0x0;_0x2154fb<_0xcec4a2[_0x41f951([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2154fb++){const _0x164ef1=_0xcec4a2[_0x41f951([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2154fb);_0x22bd61=(_0x22bd61<<0x5)+_0x22bd61+_0x164ef1,_0x22bd61&=_0x22bd61;}}function _0x3bef0e(_0x2dca7d){Array[_0x41f951([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2dca7d)?_0x2dca7d[_0x41f951([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3bef0e):_0x2dca7d&&typeof _0x2dca7d==_0x41f951([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x41f951([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2dca7d)[_0x41f951([0x73,0x6f,0x72,0x74])]()[_0x41f951([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5a0ceb,_0x328342])=>{_0x2f10f3(_0x5a0ceb),_0x3bef0e(_0x328342);}):_0x2f10f3(window[_0x41f951([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2dca7d));}return _0x3bef0e(_0x2e05dc),_0x22bd61>>>0x0;}function _0xda536c(_0x5cd5f3){return _0x5cd5f3[_0x41f951([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x41f951([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x41f951([0x30]));}function _0x3c71ce(_0x45a0d1){return _0x45a0d1[_0x41f951([0x73,0x70,0x6c,0x69,0x74])]('')[_0x41f951([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x41f951([0x6a,0x6f,0x69,0x6e])]('');}function _0x3d64f0(){}function _0x41f951(_0x34b811){const _0x1e6483=_0x4f84;return _0x34b811[_0x1e6483(0x214)](_0x590ac7=>String[_0x1e6483(0x22b)](_0x590ac7))[_0x1e6483(0x1de)]('');}_0x14e411(await _0x33df10());}(this);}[_0x510b6e(0x237)](){const _0x2e4e0a=_0x510b6e,_0x4edca7=this[_0x2e4e0a(0x1f6)][_0x2e4e0a(0x215)];_0x4edca7[_0x2e4e0a(0x21a)](_0x35ad6e=>{const _0x5031f0=_0x2e4e0a,_0x3d1a59=_0x4edca7[_0x5031f0(0x231)][_0x5031f0(0x1e1)][_0x5031f0(0x248)]();let _0x5c0dde=0x0;for(const _0x29742f of _0x3d1a59){const _0x2de142=w+':'+_0x5c0dde;if(_0x4edca7[_0x5031f0(0x21e)][_0x5031f0(0x1ff)](_0x2de142))_0x35ad6e[_0x5031f0(0x1fb)](_0x2de142,{'range':_0x29742f});else{if(_0x29742f[_0x5031f0(0x210)][_0x5031f0(0x1e7)]){const _0x16f2b6=_0x29742f[_0x5031f0(0x210)][_0x5031f0(0x20d)](({item:_0x14c970})=>!_0x4edca7[_0x5031f0(0x1ee)][_0x5031f0(0x20c)](_0x14c970),{'boundaries':_0x29742f});_0x35ad6e[_0x5031f0(0x205)](_0x2de142,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x35ad6e[_0x5031f0(0x238)](_0x16f2b6,_0x29742f[_0x5031f0(0x201)])});}else _0x35ad6e[_0x5031f0(0x205)](_0x2de142,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x29742f});}_0x5c0dde++;}});}[_0x510b6e(0x1ed)](){const _0x4b9afc=_0x510b6e,_0x4b6808=this[_0x4b9afc(0x1f6)][_0x4b9afc(0x215)],_0x61e75a=Array[_0x4b9afc(0x1ef)](this[_0x4b9afc(0x1f6)][_0x4b9afc(0x215)][_0x4b9afc(0x21e)][_0x4b9afc(0x204)](w));_0x61e75a[_0x4b9afc(0x1f2)]&&_0x4b6808[_0x4b9afc(0x21a)](_0x152168=>{const _0x387a8b=_0x4b9afc;_0x61e75a[_0x387a8b(0x203)](_0x3e7091=>{const _0x217c4c=_0x387a8b;_0x152168[_0x217c4c(0x22e)](_0x3e7091);});});}[_0x510b6e(0x22d)](_0x1145cb,_0x40bd3d){const _0xc83b21=_0x510b6e,_0xe9f71=this[_0xc83b21(0x244)](),_0x2a5f22=_0x40bd3d||_0xe9f71[_0xc83b21(0x1db)]();this[_0xc83b21(0x1f6)][_0xc83b21(0x215)][_0xc83b21(0x1fc)](_0x2a5f22)&&this[_0xc83b21(0x1f6)][_0xc83b21(0x215)][_0xc83b21(0x21a)](_0x192cf8=>{const _0x404f53=_0xc83b21;this[_0x404f53(0x1ed)](),_0x40bd3d||this[_0x404f53(0x216)](_0x192cf8,_0xe9f71),this[_0x404f53(0x21c)]({'insertAt':_0x2a5f22,'writer':_0x192cf8,'html':_0x1145cb});});}[_0x510b6e(0x227)](_0xfd08b3){const _0x527f26=_0x510b6e,{model:_0x11440b}=this[_0x527f26(0x1f6)],_0x36d70c=this[_0x527f26(0x244)]();_0x11440b[_0x527f26(0x21a)](()=>{const _0xf5cb=_0x527f26,_0x57f826=this[_0xf5cb(0x1e4)](_0xfd08b3,_0x36d70c)||this[_0xf5cb(0x1f1)](_0x36d70c);this[_0xf5cb(0x22d)](_0xfd08b3,_0x57f826);});}[_0x510b6e(0x244)](){const _0x75b4fc=_0x510b6e,_0x2d0c10=this[_0x75b4fc(0x1f6)][_0x75b4fc(0x215)],_0x1a10af=Array[_0x75b4fc(0x1ef)](_0x2d0c10[_0x75b4fc(0x21e)][_0x75b4fc(0x204)](w))[_0x75b4fc(0x214)](_0x31ffe7=>_0x31ffe7[_0x75b4fc(0x1df)]());return _0x2d0c10[_0x75b4fc(0x20b)](_0x1a10af);}[_0x510b6e(0x21c)]({writer:_0x293b47,html:_0x334298,insertAt:_0x2d7518}){const _0x5b29f7=_0x510b6e,{view:_0x4ac461}=this[_0x5b29f7(0x1f6)][_0x5b29f7(0x223)],_0x18c5d9=this[_0x5b29f7(0x1f6)][_0x5b29f7(0x22a)][_0x5b29f7(0x23c)](_0x17a8ec),_0x1e304c=new l();_0x1e304c[_0x5b29f7(0x239)](_0x5b29f7(0x1f3),_0x334298);const _0x2c251a=new ClipboardEvent(_0x5b29f7(0x1f7),{'clipboardData':_0x1e304c}),_0x365f95=new _0x4c1fed(_0x4ac461,_0x2c251a,{'dataTransfer':new _0x24b8f1(_0x1e304c)});_0x293b47[_0x5b29f7(0x1f5)](_0x2d7518);const _0xff96ca=(_0x161dd3,_0xbdd2d5)=>{const _0x495884=_0x5b29f7;_0xbdd2d5[_0x495884(0x246)]&&_0x293b47[_0x495884(0x1f5)](_0xbdd2d5[_0x495884(0x246)]);};_0x18c5d9[_0x5b29f7(0x22c)](_0x5b29f7(0x21d),_0xff96ca,{'priority':_0x5b29f7(0x225)}),_0x4ac461[_0x5b29f7(0x231)][_0x5b29f7(0x236)](_0x5b29f7(0x1f7),_0x365f95),_0x18c5d9[_0x5b29f7(0x224)](_0x5b29f7(0x21d),_0xff96ca);}[_0x510b6e(0x1f1)](_0x16972d){const _0x20d16c=_0x510b6e,{model:_0x4cfeea}=this[_0x20d16c(0x1f6)],_0x2142a9=Array[_0x20d16c(0x1ef)](_0x16972d[_0x20d16c(0x23d)]());return _0x2142a9[_0x20d16c(0x1f2)]?_0x4cfeea[_0x20d16c(0x233)](_0x2142a9[_0x20d16c(0x211)]()):_0x16972d[_0x20d16c(0x229)]();}[_0x510b6e(0x1e4)](_0x50b6e7,_0x1534cf){const _0x5e0f9a=_0x510b6e,{model:_0x171e1c,plugins:_0x439e28}=this[_0x5e0f9a(0x1f6)];if(_0x439e28[_0x5e0f9a(0x1ff)](_0x5e0f9a(0x219))){const _0x3f9d51=_0x439e28[_0x5e0f9a(0x23c)](_0x5e0f9a(0x219))[_0x5e0f9a(0x232)](_0x1534cf);if(_0x3f9d51[_0x5e0f9a(0x1f2)]){const _0x538c24=this[_0x5e0f9a(0x1f4)](_0x50b6e7),_0x588f6a=this[_0x5e0f9a(0x1e3)](_0x3f9d51,_0x538c24);return _0x171e1c[_0x5e0f9a(0x1fa)](_0x588f6a,0x0);}}return null;}[_0x510b6e(0x1f4)](_0x34811a){const _0x4a2fdf=_0x510b6e,_0x15622a=this[_0x4a2fdf(0x1f6)][_0x4a2fdf(0x22a)][_0x4a2fdf(0x23c)](_0x4a2fdf(0x219)),_0x1a8b1e=this[_0x4a2fdf(0x1f6)][_0x4a2fdf(0x241)][_0x4a2fdf(0x243)](_0x34811a),_0xc19bcc=Array[_0x4a2fdf(0x1ef)](_0x1a8b1e[_0x4a2fdf(0x221)]())[_0x4a2fdf(0x1dd)](_0x44c988=>_0x44c988['is'](_0x4a2fdf(0x20a),_0x4a2fdf(0x220)));let _0x10f4e4=0x0;return _0xc19bcc[_0x4a2fdf(0x203)](_0x59a5ed=>{const _0x4ad30e=_0x4a2fdf;_0x10f4e4+=_0x15622a[_0x4ad30e(0x1eb)](_0x59a5ed);}),_0x10f4e4;}[_0x510b6e(0x1e3)](_0x3d52d2,_0x42a6ba){const _0x1d4ff1=_0x510b6e,_0x6d1b13=this[_0x1d4ff1(0x1f6)][_0x1d4ff1(0x22a)][_0x1d4ff1(0x23c)](_0x1d4ff1(0x219)),_0x1ad780=_0x6d1b13[_0x1d4ff1(0x22f)](_0x3d52d2),_0x2ccdd4=_0x6d1b13[_0x1d4ff1(0x228)](_0x3d52d2),_0x83cf5=_0x1ad780[_0x1d4ff1(0x202)]+0x1,_0x27b8d5=_0x2ccdd4[_0x1d4ff1(0x226)],_0x308a26=_0x3d52d2[0x0][_0x1d4ff1(0x1fe)](_0x1d4ff1(0x220));for(let _0x4acf2e=0x0;_0x4acf2e<_0x42a6ba;_0x4acf2e++)_0x6d1b13[_0x1d4ff1(0x23a)](_0x308a26,{'at':_0x83cf5});return _0x308a26[_0x1d4ff1(0x1dc)](_0x83cf5)[_0x1d4ff1(0x1dc)](_0x27b8d5);}[_0x510b6e(0x216)](_0x272bfa,_0x4ddefb){const _0x12c28b=_0x510b6e,{plugins:_0x1f4f0e}=this[_0x12c28b(0x1f6)],{model:_0x4deacc}=_0x272bfa;if(!_0x1f4f0e[_0x12c28b(0x1ff)](_0x12c28b(0x219)))return;_0x1f4f0e[_0x12c28b(0x23c)](_0x12c28b(0x219))[_0x12c28b(0x232)](_0x4ddefb)[_0x12c28b(0x1f2)]&&_0x4deacc[_0x12c28b(0x245)](_0x4ddefb);}}
|
package/src/aiassistantui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x583b7f=_0xd0ef;(function(_0x4bf854,_0x5ef822){const _0x550d20=_0xd0ef,_0x4e03cb=_0x4bf854();while(!![]){try{const _0x83ea52=parseInt(_0x550d20(0xb8))/0x1*(parseInt(_0x550d20(0xb5))/0x2)+-parseInt(_0x550d20(0x9d))/0x3*(-parseInt(_0x550d20(0xa2))/0x4)+parseInt(_0x550d20(0xbf))/0x5*(-parseInt(_0x550d20(0xea))/0x6)+-parseInt(_0x550d20(0xef))/0x7+-parseInt(_0x550d20(0x9f))/0x8+-parseInt(_0x550d20(0xe8))/0x9*(parseInt(_0x550d20(0xe7))/0xa)+-parseInt(_0x550d20(0xce))/0xb*(-parseInt(_0x550d20(0x111))/0xc);if(_0x83ea52===_0x5ef822)break;else _0x4e03cb['push'](_0x4e03cb['shift']());}catch(_0x110790){_0x4e03cb['push'](_0x4e03cb['shift']());}}}(_0x3bf8,0x5d5af));import{Plugin as _0x51a802}from'ckeditor5/src/core.js';import{IconMagicWand as _0x3f4908,IconRobotPencil as _0x32faea}from'ckeditor5/src/icons.js';import{first as _0x57395d,CKEditorError as _0xfef7d2}from'ckeditor5/src/utils.js';import{createDropdown as _0x3e29a3,addMenuToDropdown as _0x2ed418,ButtonView as _0x7827e1,MenuBarMenuListItemButtonView as _0x564d15,Dialog as _0x5c3c93,DialogViewPosition as _0x252604,MenuBarMenuView as _0x4cc9c0,MenuBarMenuListView as _0x1788b6,MenuBarMenuListItemView as _0x2c3b4f}from'ckeditor5/src/ui.js';function _0xd0ef(_0x6f7446,_0x466188){const _0x3bf842=_0x3bf8();return _0xd0ef=function(_0xd0ef45,_0x1950fa){_0xd0ef45=_0xd0ef45-0x85;let _0x5110b8=_0x3bf842[_0xd0ef45];return _0x5110b8;},_0xd0ef(_0x6f7446,_0x466188);}function _0x3bf8(){const _0x4c4385=['length','items','requires','replaceContent','body','menuPanelClass','AIAssistantUI','</p>','_onExecute','label','once','hideUI','106wSQWRc','isEnabled','showFakeVisualSelection','2026xGkClu','_showLicenseError','model','command:','evaluationLimit','isOn','invalid','50kKPXZj','usageLimit','menuBar:aiAssistant','getSelectedBlocks','custom','insertContent','ck-ai-assistant-button\x20','promptView','_initView','forEach','menuBar:aiCommands','aiLicenseKeyNotAllowed','add','trialLimit','_aiAssistantController','482141yojFIv','setSelection','buttonView','featureNotAllowed','sort','map','children','values','reset','editing','aiLicenseKeyTrialLimit','getData','destroy','locale','isCollapsed','change:enabledCommandsIds','get','enabledCommandsIds','focus','componentFactory','_licenseKeyCheckInterval','change:isProcessing','ai.useTheme','menuView','bind','10agvqCf','2577654dBmome','text/html','229038HdebUT','source','ck-ai-assistant-ui','media','isFlat','3003266QtVyLd','schema','from','INSERT','panelView','currentContext','ai.aiAssistant.contentAreaCssClass','plugins','getSelectedElement','aiLicenseKeyUsageLimit','textAdapter','filter','expired','set','commands','queryView','hide','update','AI\x20Commands','\x20ck-ai-assistant-ui_theme','replace','AI\x20is\x20writing','wasMoved','aiLicenseKeyDomainLimit','selection','DataTransfer','copy','_formView','_initAriaAiStatusChangeAnnouncements','fire','updateView','_dialog','REPLACE','_uiCssClasses','396tFlbwq','hideFakeVisualSelection','tableOfContents','AIAssistant','render','polite','fieldView','change:isError','_createAIAssistantUIButton','aiLicenseKeyExpired','aiAssistant','getRanges','showUI','_getResolvedCommandsDefinitions','errorView','show','ai.aiAssistant.commands','execute','aiLicenseKeyInvalid','ck-ai-commands-dropdown\x20','_forceMarkersCopy','listenTo','push','_aiAdapter','_commandDefinitions','comment','addMany','document','updatePosition','aiLicenseKeyValid','contentArea','delegate','ai-commands-config-order-collision','aiCommands','trim','EDITOR_TOP_SIDE','menuitemcheckbox','groupId','order','text','change','showAIAssistant','splice','<p>','init','licenseKey','includes','ai.aiAssistant.disabledElements','define','editor','Error\x20during\x20AI\x20content\x20generation:\x20%0','AI\x20Assistant','_populateMenuBarMenu','insertContentBelow','domainLimit','getLimitElement','rawHtml','config','isOfficialPlugin','aiLicenseKeyEvaluationLimit','requiresContent','pluginName','4635vtMZnt','announce','4178352RKNrcB','Generated\x20content:\x20%0','_getMenuBarGroupButtons','1160ZMVqIe','prompt','change:value','buttons','isPremiumPlugin','view','groupLabel'];_0x3bf8=function(){return _0x4c4385;};return _0x3bf8();}import{normalizeCommandsConfig as _0x5a8c8a,UNGROUPED_COMMANDS_GROUP_ID as _0x376d7b}from'./utils/normalizecommandsconfig.js';import{AIAssistantEditing as _0x2e369a}from'./aiassistantediting.js';import{AIAdapter as _0x19942c}from'./adapters/aiadapter.js';import{getTranslation as _0x4e0034}from'./utils/common-translations.js';import{ShowAIAssistantCommand as _0x309944}from'./ui/showaiassistantcommand.js';import{AIAssistantController as _0x1a8d09}from'./ui/aiassistantcontroller.js';import{AIFormView as _0x3ef799}from'./ui/form/aiformview.js';import{AIFormToolbarViewMainActionLabel as _0x3365c8}from'./ui/form/aiformtoolbarview.js';import'../theme/ai.css';import'../theme/ai-dropdown.css';import'../theme/ai-form.css';const l=globalThis[_0x583b7f(0x108)];import{ClipboardMarkersUtils as _0x2b5f69}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0x6af1f4,ViewDataTransfer as _0x185f54}from'ckeditor5/src/engine.js';export class AIAssistantUI extends _0x51a802{[_0x583b7f(0x8c)];[_0x583b7f(0xe2)];[_0x583b7f(0x10e)];[_0x583b7f(0x10a)];[_0x583b7f(0x128)];[_0x583b7f(0xcd)];[_0x583b7f(0x110)]='';static get[_0x583b7f(0x9c)](){const _0x28ed38=_0x583b7f;return _0x28ed38(0xaf);}static get[_0x583b7f(0x99)](){return!0x0;}static get[_0x583b7f(0xa6)](){return!0x0;}static get[_0x583b7f(0xab)](){return[_0x2b5f69,_0x2e369a,_0x19942c,_0x5c3c93];}constructor(_0x349fa5){const _0x2a6f3f=_0x583b7f;super(_0x349fa5),_0x349fa5[_0x2a6f3f(0x98)][_0x2a6f3f(0x8f)](_0x2a6f3f(0x8e),[_0x2a6f3f(0xed),_0x2a6f3f(0x97),_0x2a6f3f(0x113)]),_0x349fa5[_0x2a6f3f(0x98)][_0x2a6f3f(0x8f)](_0x2a6f3f(0xf5),''),_0x349fa5[_0x2a6f3f(0x98)][_0x2a6f3f(0x8f)](_0x2a6f3f(0xe4),!0x0),this[_0x2a6f3f(0x110)]=_0x2a6f3f(0xec)+(_0x349fa5[_0x2a6f3f(0x98)][_0x2a6f3f(0xde)](_0x2a6f3f(0xe4))?_0x2a6f3f(0x102):'');}[_0x583b7f(0x8b)](){const _0x53b269=_0x583b7f,{editor:_0x3f6212}=this;this[_0x53b269(0x128)]=_0x3f6212[_0x53b269(0xf6)][_0x53b269(0xde)](_0x19942c),this[_0x53b269(0x10e)]=_0x3f6212[_0x53b269(0xf6)][_0x53b269(0xde)](_0x5c3c93),this[_0x53b269(0x10a)]=null,this[_0x53b269(0x129)]=this[_0x53b269(0x11e)]();const _0x8a808c=new _0x309944(_0x3f6212,Array[_0x53b269(0xf1)](this[_0x53b269(0x129)][_0x53b269(0xd5)]()));_0x3f6212[_0x53b269(0xfd)][_0x53b269(0xcb)](_0x53b269(0x88),_0x8a808c),_0x3f6212['ui'][_0x53b269(0xe1)][_0x53b269(0xcb)](_0x53b269(0x132),_0x4b64e8=>{const _0x2cd02f=_0x53b269,_0x51969c=_0x3e29a3(_0x4b64e8);return _0x51969c[_0x2cd02f(0xfc)]({'class':_0x2cd02f(0x124)+this[_0x2cd02f(0x110)]}),_0x51969c[_0x2cd02f(0xd0)][_0x2cd02f(0xfc)]({'label':_0x4e0034(_0x4b64e8,_0x2cd02f(0x101)),'icon':_0x3f4908,'tooltip':!0x0}),_0x51969c['on'](_0x2cd02f(0x122),_0x183acc=>this[_0x2cd02f(0xb1)](_0x183acc[_0x2cd02f(0xeb)]['id'])),_0x2ed418(_0x51969c,_0x3f6212['ui'][_0x2cd02f(0xa7)][_0x2cd02f(0xad)],function(_0x3e796f){const _0x4a8604=_0x2cd02f,_0x4c7e80=_0x5a8c8a(_0x3e796f[_0x4a8604(0x98)][_0x4a8604(0xde)](_0x4a8604(0x121)),_0x3e796f[_0x4a8604(0xdb)]),_0x31f1ae=U(_0x3e796f,_0x4c7e80)[_0x4a8604(0xfa)](_0x2f873f=>_0x2f873f[_0x4a8604(0xfd)][_0x4a8604(0xa9)]);if(0x1===_0x31f1ae[_0x4a8604(0xa9)])return U(_0x3e796f,_0x31f1ae[0x0][_0x4a8604(0xfd)])[_0x4a8604(0xd3)](_0x4b8aba=>({'id':_0x4b8aba['id'],'label':_0x4b8aba[_0x4a8604(0xb2)]}));return _0x31f1ae[_0x4a8604(0xd3)](_0x5a076d=>{const _0x3b8912=_0x4a8604,{groupId:_0x49e109,groupLabel:_0xde5c6c,commands:_0x2d6a9d}=_0x5a076d,_0x32cbd3=U(_0x3e796f,_0x2d6a9d)[_0x3b8912(0xd3)](_0x2b3c2b=>({'id':_0x2b3c2b['id'],'label':_0x2b3c2b[_0x3b8912(0xb2)]}));return{'id':_0x49e109,'menu':_0xde5c6c||_0x49e109,'children':_0x32cbd3};});}(_0x3f6212),{'ariaLabel':_0x4e0034(_0x4b64e8,_0x2cd02f(0x101))}),_0x51969c[_0x2cd02f(0xe5)][_0x2cd02f(0xae)]=_0x2cd02f(0x124)+this[_0x2cd02f(0x110)],_0x8a808c['on'](_0x2cd02f(0xdd),_0x1bba38),_0x51969c[_0x2cd02f(0xe5)][_0x2cd02f(0xb3)](_0x2cd02f(0x115),_0x1bba38),_0x51969c;function _0x1bba38(){const _0xcd89bf=_0x2cd02f;_0x51969c[_0xcd89bf(0xb6)]=_0x8a808c[_0xcd89bf(0xdf)][_0xcd89bf(0xa9)]>0x0;for(const _0x5db149 of _0x51969c[_0xcd89bf(0xe5)][_0xcd89bf(0xa5)])_0x5db149[_0xcd89bf(0xb6)]=_0x8a808c[_0xcd89bf(0xdf)][_0xcd89bf(0x8d)](_0x5db149['id']);}}),_0x3f6212['ui'][_0x53b269(0xe1)][_0x53b269(0xcb)](_0x53b269(0xc9),_0x754f0f=>{const _0x377104=_0x53b269,_0x5a9f4d=new _0x4cc9c0(_0x754f0f);_0x5a9f4d[_0x377104(0xd0)][_0x377104(0xfc)]({'label':_0x4e0034(_0x754f0f,_0x377104(0x101)),'icon':_0x3f4908}),_0x5a9f4d[_0x377104(0xe6)](_0x377104(0xb6))['to'](_0x8a808c,_0x377104(0xdf),_0x3cd8e2=>_0x3cd8e2[_0x377104(0xa9)]>0x0);const _0x392923=_0x5a8c8a(_0x3f6212[_0x377104(0x98)][_0x377104(0xde)](_0x377104(0x121)),_0x754f0f);return this[_0x377104(0x93)](_0x8a808c,_0x5a9f4d,_0x392923,_0x21fcda=>this[_0x377104(0xb1)](_0x21fcda)),_0x5a9f4d;}),_0x3f6212['ui'][_0x53b269(0xe1)][_0x53b269(0xcb)](_0x53b269(0x11b),()=>{const _0x49fab6=_0x53b269,_0x433fbc=this[_0x49fab6(0x119)](_0x7827e1);return _0x433fbc[_0x49fab6(0xfc)]({'tooltip':!0x0,'class':_0x49fab6(0xc5)+this[_0x49fab6(0x110)]}),_0x433fbc;}),_0x3f6212['ui'][_0x53b269(0xe1)][_0x53b269(0xcb)](_0x53b269(0xc1),()=>{const _0x5cad70=_0x53b269,_0x5f49d9=this[_0x5cad70(0x119)](_0x564d15);return _0x5f49d9[_0x5cad70(0xfc)]({'role':_0x5cad70(0x135)}),_0x5f49d9;}),this[_0x53b269(0x8c)]=this[_0x53b269(0x90)][_0x53b269(0x98)][_0x53b269(0xde)](_0x53b269(0x8c));const _0x233c54=this[_0x53b269(0x90)];this[_0x53b269(0xe2)]=setInterval(()=>{const _0x2a1795=_0x53b269;let _0x538ee1;for(const _0x2b6783 in _0x233c54){const _0x212048=_0x2b6783,_0x11529c=_0x233c54[_0x212048];if(_0x2a1795(0x12e)==_0x11529c||_0x2a1795(0x123)==_0x11529c||_0x2a1795(0x11a)==_0x11529c||_0x2a1795(0x106)==_0x11529c||_0x2a1795(0xca)==_0x11529c||_0x2a1795(0x9a)==_0x11529c||_0x2a1795(0xd8)==_0x11529c||_0x2a1795(0xf8)==_0x11529c){delete _0x233c54[_0x212048],_0x538ee1=_0x11529c,clearInterval(this[_0x2a1795(0xe2)]),this[_0x2a1795(0xe2)]=void 0x0;break;}}_0x2a1795(0x123)==_0x538ee1&&_0x233c54[_0x2a1795(0xb9)](_0x2a1795(0xbe)),_0x2a1795(0x11a)==_0x538ee1&&_0x233c54[_0x2a1795(0xb9)](_0x2a1795(0xfb)),_0x2a1795(0x106)==_0x538ee1&&_0x233c54[_0x2a1795(0xb9)](_0x2a1795(0x95)),_0x2a1795(0xca)==_0x538ee1&&_0x233c54[_0x2a1795(0xb9)](_0x2a1795(0xd1),_0x2a1795(0x114)),_0x2a1795(0x9a)==_0x538ee1&&_0x233c54[_0x2a1795(0xb9)](_0x2a1795(0xbc)),_0x2a1795(0xd8)==_0x538ee1&&_0x233c54[_0x2a1795(0xb9)](_0x2a1795(0xcc)),_0x2a1795(0xf8)==_0x538ee1&&_0x233c54[_0x2a1795(0xb9)](_0x2a1795(0xc0));},0x3e8);}[_0x583b7f(0xda)](){const _0x25b60e=_0x583b7f;super[_0x25b60e(0xda)](),this[_0x25b60e(0xe2)]&&clearInterval(this[_0x25b60e(0xe2)]);}[_0x583b7f(0x11d)](_0x130c1f='',_0x1598e6='',_0x35230e=_0x583b7f(0xc3)){const _0xbe226c=_0x583b7f,_0x3c3e74=this[_0xbe226c(0x90)],_0x3de059=_0x3c3e74[_0xbe226c(0xd7)][_0xbe226c(0xa7)],_0x354b6d=_0x3c3e74[_0xbe226c(0xf6)][_0xbe226c(0xde)](_0x2e369a),_0x277a0f=_0x3c3e74[_0xbe226c(0xf6)][_0xbe226c(0xde)](_0x2b5f69);_0x354b6d[_0xbe226c(0xb7)]();const _0x1a89de=new l(),_0x4a26ec=new ClipboardEvent(_0xbe226c(0x109),{'clipboardData':_0x1a89de}),_0x4aff91=new _0x185f54(_0x1a89de),_0x3d1ef4=new _0x6af1f4(_0x3de059,_0x4a26ec,{'dataTransfer':_0x4aff91});_0x277a0f[_0xbe226c(0x125)](_0xbe226c(0x12a),()=>{const _0x202f33=_0xbe226c;_0x3de059[_0x202f33(0x12c)][_0x202f33(0x10c)](_0x202f33(0x109),_0x3d1ef4);}),this[_0xbe226c(0x10a)]||(this[_0xbe226c(0xc7)](),this[_0xbe226c(0xcd)]=new _0x1a8d09(_0x3c3e74,this[_0xbe226c(0x128)][_0xbe226c(0xf9)],this[_0xbe226c(0x10a)]));let _0x5b3e26=_0x4aff91[_0xbe226c(0xd9)](_0xbe226c(0xe9));const _0xb960d1=_0x3c3e74[_0xbe226c(0xba)][_0xbe226c(0x12c)][_0xbe226c(0x107)],_0x9b7fa3=Array[_0xbe226c(0xf1)](_0xb960d1[_0xbe226c(0x11c)]());0x1===_0x9b7fa3[_0xbe226c(0xa9)]&&_0x9b7fa3[0x0][_0xbe226c(0xee)]&&!_0xb960d1[_0xbe226c(0xf7)]()&&''!==_0x5b3e26[_0xbe226c(0x103)](/ /g,'')[_0xbe226c(0x133)]()&&(_0x5b3e26=_0xbe226c(0x8a)+_0x5b3e26+_0xbe226c(0xb0)),this[_0xbe226c(0xcd)][_0xbe226c(0x10d)]({'actionId':_0x35230e,'query':_0x130c1f,'htmlContent':_0x5b3e26,'label':_0x1598e6,'mainActionLabel':_0x3365c8[_0x3c3e74[_0xbe226c(0xba)][_0xbe226c(0x12c)][_0xbe226c(0x107)][_0xbe226c(0xdc)]?_0xbe226c(0xf2):_0xbe226c(0x10f)]}),_0xbe226c(0x11b)!==this[_0xbe226c(0x10e)]['id']?this[_0xbe226c(0x10e)][_0xbe226c(0x120)]({'id':_0xbe226c(0x11b),'icon':_0x32faea,'title':_0x4e0034(this[_0xbe226c(0x90)][_0xbe226c(0xdb)],_0xbe226c(0x92)),'content':this[_0xbe226c(0x10a)],'position':_0x252604[_0xbe226c(0x134)],'onShow':()=>{const _0x1bb3b0=_0xbe226c;this[_0x1bb3b0(0x10a)][_0x1bb3b0(0xe0)]();},'onHide':()=>{const _0x5ea1fd=_0xbe226c;this[_0x5ea1fd(0xcd)][_0x5ea1fd(0xd6)](),_0x354b6d[_0x5ea1fd(0x112)]();}}):this[_0xbe226c(0x10e)][_0xbe226c(0xa7)][_0xbe226c(0x105)]||this[_0xbe226c(0x10e)][_0xbe226c(0xa7)][_0xbe226c(0x12d)]();}[_0x583b7f(0xb4)](){const _0xd8ac1=_0x583b7f;this[_0xd8ac1(0x10e)][_0xd8ac1(0xff)]();}[_0x583b7f(0x11e)](){const _0x1807a5=_0x583b7f,_0x2fd0fe=new Map(),_0x360acb=_0x5a8c8a(this[_0x1807a5(0x90)][_0x1807a5(0x98)][_0x1807a5(0xde)](_0x1807a5(0x121)),this[_0x1807a5(0x90)][_0x1807a5(0xdb)]);for(const _0x5d67d4 of _0x360acb)for(const _0x15c211 of _0x5d67d4[_0x1807a5(0xfd)])_0x2fd0fe[_0x1807a5(0xfc)](_0x15c211['id'],{..._0x15c211,'groupId':_0x5d67d4[_0x1807a5(0x136)],'groupLabel':_0x5d67d4[_0x1807a5(0xa8)]||_0x5d67d4[_0x1807a5(0x136)]});return _0x2fd0fe;}[_0x583b7f(0x119)](_0x19b483){const _0x2dfaab=_0x583b7f,_0x1809f6=this[_0x2dfaab(0x90)],_0x25d08e=_0x1809f6[_0x2dfaab(0xfd)][_0x2dfaab(0xde)](_0x2dfaab(0x88)),_0x4e85ae=new _0x19b483(_0x1809f6[_0x2dfaab(0xdb)]);return _0x4e85ae[_0x2dfaab(0xfc)]({'label':_0x4e0034(_0x1809f6[_0x2dfaab(0xdb)],_0x2dfaab(0x92)),'icon':_0x32faea,'isToggleable':!0x0}),_0x4e85ae[_0x2dfaab(0xe6)](_0x2dfaab(0xb6))['to'](_0x25d08e),_0x4e85ae[_0x2dfaab(0xe6)](_0x2dfaab(0xbd))['to'](this[_0x2dfaab(0x10e)],'id',_0x298b70=>_0x2dfaab(0x11b)===_0x298b70),this[_0x2dfaab(0x126)](_0x4e85ae,_0x2dfaab(0x122),()=>{const _0x20ffdc=_0x2dfaab;_0x4e85ae[_0x20ffdc(0xbd)]?this[_0x20ffdc(0xb4)]():_0x25d08e[_0x20ffdc(0x122)]();}),_0x4e85ae;}[_0x583b7f(0xc7)](){const _0x49da9f=_0x583b7f,_0x476891=this[_0x49da9f(0x90)][_0x49da9f(0xf6)][_0x49da9f(0xde)](_0x2e369a);this[_0x49da9f(0x10a)]=new _0x3ef799(this[_0x49da9f(0x90)][_0x49da9f(0xdb)],this[_0x49da9f(0x110)],this[_0x49da9f(0x90)][_0x49da9f(0x98)][_0x49da9f(0xde)](_0x49da9f(0xf5))),this[_0x49da9f(0x10a)]['on'](_0x49da9f(0xa4),()=>{const _0x137840=_0x49da9f;this[_0x137840(0x10e)][_0x137840(0xa7)][_0x137840(0x105)]||this[_0x137840(0x10e)][_0x137840(0xa7)][_0x137840(0x12d)]();}),this[_0x49da9f(0x10a)][_0x49da9f(0xc6)][_0x49da9f(0xfe)][_0x49da9f(0x117)]['on'](_0x49da9f(0x100),()=>{const _0x1506ca=_0x49da9f;this[_0x1506ca(0x10e)][_0x1506ca(0xa7)][_0x1506ca(0x105)]||this[_0x1506ca(0x10e)][_0x1506ca(0xa7)][_0x1506ca(0x12d)]();}),this[_0x49da9f(0x126)](this[_0x49da9f(0x10a)],_0x49da9f(0xac),()=>{const _0x40f5e4=_0x49da9f;_0x476891[_0x40f5e4(0xc4)](this[_0x40f5e4(0xcd)][_0x40f5e4(0xf4)]),this[_0x40f5e4(0xb4)]();}),this[_0x49da9f(0x126)](this[_0x49da9f(0x10a)],_0x49da9f(0x94),()=>{const _0x1b5255=_0x49da9f;_0x476891[_0x1b5255(0x94)](this[_0x1b5255(0xcd)][_0x1b5255(0xf4)]),this[_0x1b5255(0xb4)]();}),this[_0x49da9f(0x10b)]();}[_0x583b7f(0x10b)](){const _0x290325=_0x583b7f,{locale:_0x14f1b3,ui:{ariaLiveAnnouncer:_0x33ec1c}}=this[_0x290325(0x90)];this[_0x290325(0x10a)][_0x290325(0x12f)]['on'](_0x290325(0xe3),(_0xe2f7e,_0x1f98e3,_0x34c4e9)=>{const _0x218e2c=_0x290325,_0x8933c0=this[_0x218e2c(0xcd)][_0x218e2c(0xf4)];_0x34c4e9?_0x33ec1c[_0x218e2c(0x9e)](_0x4e0034(_0x14f1b3,_0x218e2c(0x104))):_0x8933c0&&_0x33ec1c[_0x218e2c(0x9e)](_0x4e0034(_0x14f1b3,_0x218e2c(0xa0),_0x8933c0),{'politeness':_0x218e2c(0x116),'isUnsafeHTML':!0x0});}),this[_0x290325(0x10a)]['on'](_0x290325(0x118),(_0x2a181b,_0x13a933,_0x2f52ff)=>{const _0x3e4d72=_0x290325;if(_0x2f52ff){const _0x4fc907=this[_0x3e4d72(0x10a)][_0x3e4d72(0x11f)][_0x3e4d72(0x86)];_0x33ec1c[_0x3e4d72(0x9e)](_0x4e0034(_0x14f1b3,_0x3e4d72(0x91),_0x4fc907));}});}[_0x583b7f(0xb1)](_0x3529ee){const _0x111fce=_0x583b7f,_0x4827de=this[_0x111fce(0x129)][_0x111fce(0xde)](_0x3529ee),_0x48ffcf=this[_0x111fce(0x90)],_0x15ddbc=_0x48ffcf[_0x111fce(0xba)][_0x111fce(0x12c)][_0x111fce(0x107)],_0x41d2b6=_0x48ffcf[_0x111fce(0xfd)][_0x111fce(0xde)](_0x111fce(0x88)),_0x318210=_0x48ffcf[_0x111fce(0xf6)][_0x111fce(0xde)](_0x2e369a),_0x433f6e=''+(_0x4827de[_0x111fce(0x136)]!==_0x376d7b?_0x4827de[_0x111fce(0xa8)]+':\x20':'')+_0x4827de[_0x111fce(0xb2)];if(!0x1!==_0x4827de[_0x111fce(0x9b)]&&_0x15ddbc[_0x111fce(0xdc)]){const _0x2fb06a=_0x57395d(_0x15ddbc[_0x111fce(0xc2)]())||_0x48ffcf[_0x111fce(0xba)][_0x111fce(0xf0)][_0x111fce(0x96)](_0x15ddbc);_0x48ffcf[_0x111fce(0xba)][_0x111fce(0x87)](_0x23d149=>{const _0x16a4fb=_0x111fce;_0x23d149[_0x16a4fb(0xcf)](_0x2fb06a,'in');});}_0x318210[_0x111fce(0xb7)](),_0x41d2b6[_0x111fce(0x122)](_0x4827de[_0x111fce(0xa3)],_0x433f6e,_0x111fce(0xbb)+_0x3529ee);}[_0x583b7f(0x93)](_0x19cf5b,_0x87544e,_0x4c2bb9,_0x2ac20d){const _0x9e9b2a=_0x583b7f,_0x332b62=this[_0x9e9b2a(0x90)],_0xee7ee8=_0x332b62[_0x9e9b2a(0xdb)],_0x2635f0=new _0x1788b6(_0xee7ee8),_0x5e6918=U(_0x332b62,_0x4c2bb9)[_0x9e9b2a(0xfa)](_0x31fc93=>_0x31fc93[_0x9e9b2a(0xfd)][_0x9e9b2a(0xa9)]);0x1===_0x5e6918[_0x9e9b2a(0xa9)]?this[_0x9e9b2a(0xa1)]({'command':_0x19cf5b,'commands':_0x5e6918[0x0][_0x9e9b2a(0xfd)],'parentMenuView':_0x87544e,'onExecute':_0x2ac20d})[_0x9e9b2a(0xc8)](_0x1386a9=>_0x2635f0[_0x9e9b2a(0xaa)][_0x9e9b2a(0xcb)](_0x1386a9)):_0x5e6918[_0x9e9b2a(0xc8)](({groupId:_0x14d309,groupLabel:_0x5a78d3,commands:_0x346bdc})=>{const _0x12c197=_0x9e9b2a,_0x39b2cb=new _0x2c3b4f(_0xee7ee8,_0x87544e),_0x231ded=new _0x4cc9c0(_0xee7ee8),_0x552d85=new _0x1788b6(_0xee7ee8),_0x4faadf=this[_0x12c197(0xa1)]({'command':_0x19cf5b,'commands':_0x346bdc,'parentMenuView':_0x231ded,'onExecute':_0x2ac20d});_0x231ded[_0x12c197(0xd0)][_0x12c197(0xfc)]({'label':_0x5a78d3||_0x14d309}),_0x231ded[_0x12c197(0x130)](_0x12c197(0x122))['to'](_0x87544e),_0x552d85[_0x12c197(0xaa)][_0x12c197(0x12b)](_0x4faadf),_0x231ded[_0x12c197(0xf3)][_0x12c197(0xd4)][_0x12c197(0xcb)](_0x552d85),_0x39b2cb[_0x12c197(0xd4)][_0x12c197(0xcb)](_0x231ded),_0x2635f0[_0x12c197(0xaa)][_0x12c197(0xcb)](_0x39b2cb);}),_0x87544e[_0x9e9b2a(0xf3)][_0x9e9b2a(0xd4)][_0x9e9b2a(0xcb)](_0x2635f0);}[_0x583b7f(0xa1)]({command:_0x133263,commands:_0x504b37,parentMenuView:_0x14fa7b,onExecute:_0x331ec0}){const _0x117b69=_0x583b7f,_0xc0531=this[_0x117b69(0x90)],_0x4142f5=_0xc0531[_0x117b69(0xdb)];return U(_0xc0531,_0x504b37)[_0x117b69(0xd3)](_0x4ece61=>{const _0x583c64=_0x117b69,_0xb31633=new _0x2c3b4f(_0x4142f5,_0x14fa7b),_0x8749bf=new _0x564d15(_0x4142f5);return _0x8749bf[_0x583c64(0xfc)]({'label':_0x4ece61[_0x583c64(0xb2)]}),_0x8749bf[_0x583c64(0x130)](_0x583c64(0x122))['to'](_0x14fa7b),_0x8749bf['on'](_0x583c64(0x122),()=>_0x331ec0(_0x4ece61['id'])),_0x8749bf[_0x583c64(0xe6)](_0x583c64(0xb6))['to'](_0x133263,_0x583c64(0xdf),_0xede360=>_0xede360[_0x583c64(0x8d)](_0x4ece61['id'])),_0xb31633[_0x583c64(0xd4)][_0x583c64(0xcb)](_0x8749bf),_0xb31633;});}}function T(_0x2d7d57,_0x3ac70a){const _0x106ec8=_0x583b7f;return void 0x0!==_0x2d7d57[_0x106ec8(0x85)]&&void 0x0===_0x3ac70a[_0x106ec8(0x85)]?0x1:void 0x0===_0x2d7d57[_0x106ec8(0x85)]&&void 0x0!==_0x3ac70a[_0x106ec8(0x85)]?-0x1:void 0x0!==_0x2d7d57[_0x106ec8(0x85)]&&void 0x0!==_0x3ac70a[_0x106ec8(0x85)]?_0x2d7d57[_0x106ec8(0x85)]-_0x3ac70a[_0x106ec8(0x85)]:0x0;}function U(_0x44aebc,_0x531b96){const _0xf5bcef=_0x583b7f;_0x531b96[_0xf5bcef(0xd2)](T);const _0x37c8af={},_0xe99664=[];for(const _0x36ca87 of _0x531b96)if(void 0x0!==_0x36ca87[_0xf5bcef(0x85)]){if(_0x36ca87[_0xf5bcef(0x85)]in _0x37c8af)throw new _0xfef7d2(_0xf5bcef(0x131),_0x44aebc,{'conflictingDefinitions':[_0x36ca87,_0x37c8af[_0x36ca87[_0xf5bcef(0x85)]]]});_0x37c8af[_0x36ca87[_0xf5bcef(0x85)]]=_0x36ca87,_0xe99664[_0xf5bcef(0x89)](_0x36ca87[_0xf5bcef(0x85)],0x0,_0x36ca87);}else _0xe99664[_0xf5bcef(0x127)](_0x36ca87);return _0xe99664;}
|
|
23
|
+
const _0x327919=_0x2e17;function _0x4b45(){const _0x1750c0=['AIAssistant','text','wasMoved','copy','currentContext','order','show','addMany','EDITOR_TOP_SIDE','document','update','_onExecute','4826190JOyQcH','errorView','text/html','menuitemcheckbox','aiLicenseKeyExpired','usageLimit','featureNotAllowed','reset','_licenseKeyCheckInterval','isOn','push','media','editor','showAIAssistant','getData','804728YZxPeu','replaceContent','componentFactory','fieldView','2324292OTEjzo','add','forEach','set','from','getSelectedBlocks','menuBar:aiCommands','command:','execute','values','tableOfContents','items','<p>','model','_getResolvedCommandsDefinitions','_showLicenseError','editing','aiLicenseKeyTrialLimit','aiLicenseKeyUsageLimit','requires','bind','aiCommands','AI\x20Assistant','DataTransfer','ai-commands-config-order-collision','hideFakeVisualSelection','_aiAdapter','aiLicenseKeyEvaluationLimit','getLimitElement','isPremiumPlugin','custom','_uiCssClasses','Generated\x20content:\x20%0','groupLabel','commands','hideUI','_commandDefinitions','</p>','_getMenuBarGroupButtons','207565yOSKjd','schema','ck-ai-assistant-ui','getRanges','menuBar:aiAssistant','promptView','menuView','ai.aiAssistant.commands','render','invalid','hide','isFlat','change','requiresContent','once','comment','source','sort','1036886mMWjgX','destroy','updatePosition','view','plugins','change:enabledCommandsIds','ai.useTheme','listenTo','8Fuckel','isOfficialPlugin','buttons','_createAIAssistantUIButton','showUI','Error\x20during\x20AI\x20content\x20generation:\x20%0','textAdapter','updateView','contentArea','queryView','licenseKey','AIAssistantUI','children','polite','includes','init','rawHtml','prompt','enabledCommandsIds','REPLACE','insertContentBelow','_aiAssistantController','2167431EDaIPt','buttonView','_forceMarkersCopy','define','_dialog','evaluationLimit','domainLimit','focus','aiLicenseKeyNotAllowed','change:value','\x20ck-ai-assistant-ui_theme','INSERT','config','map','expired','insertContent','aiLicenseKeyDomainLimit','splice','setSelection','change:isError','ai.aiAssistant.disabledElements','filter','isCollapsed','replace','menuPanelClass','_formView','locale','body','AI\x20Commands','pluginName','isEnabled','get','_populateMenuBarMenu','groupId','delegate','_initView','8661898APqAUh','AI\x20is\x20writing','ck-ai-commands-dropdown\x20','trim','ai.aiAssistant.contentAreaCssClass','showFakeVisualSelection','_initAriaAiStatusChangeAnnouncements','aiLicenseKeyValid','change:isProcessing','fire','label','aiLicenseKeyInvalid','length','ck-ai-assistant-button\x20','announce','selection','panelView','trialLimit','aiAssistant','getSelectedElement'];_0x4b45=function(){return _0x1750c0;};return _0x4b45();}(function(_0x4af94c,_0x522bb8){const _0x585168=_0x2e17,_0x26f4b2=_0x4af94c();while(!![]){try{const _0x2d01ef=-parseInt(_0x585168(0xc7))/0x1+parseInt(_0x585168(0x104))/0x2+-parseInt(_0x585168(0x122))/0x3+-parseInt(_0x585168(0xcb))/0x4+-parseInt(_0x585168(0xf2))/0x5+parseInt(_0x585168(0xb8))/0x6+parseInt(_0x585168(0x98))/0x7*(parseInt(_0x585168(0x10c))/0x8);if(_0x2d01ef===_0x522bb8)break;else _0x26f4b2['push'](_0x26f4b2['shift']());}catch(_0x340075){_0x26f4b2['push'](_0x26f4b2['shift']());}}}(_0x4b45,0x6433f));import{Plugin as _0x3ca17c}from'ckeditor5/src/core.js';import{IconMagicWand as _0x470972,IconRobotPencil as _0x58d12d}from'ckeditor5/src/icons.js';import{first as _0x10601f,CKEditorError as _0x69291e}from'ckeditor5/src/utils.js';import{createDropdown as _0xd6452b,addMenuToDropdown as _0x578802,ButtonView as _0x6adf79,MenuBarMenuListItemButtonView as _0x37a685,Dialog as _0x52386b,DialogViewPosition as _0x2a76e6,MenuBarMenuView as _0x4809d5,MenuBarMenuListView as _0xd80053,MenuBarMenuListItemView as _0x5aa47b}from'ckeditor5/src/ui.js';import{normalizeCommandsConfig as _0xb04c41,UNGROUPED_COMMANDS_GROUP_ID as _0x5d00fc}from'./utils/normalizecommandsconfig.js';import{AIAssistantEditing as _0x1b992d}from'./aiassistantediting.js';import{AIAdapter as _0x5b39c9}from'./adapters/aiadapter.js';import{getTranslation as _0x5c85a8}from'./utils/common-translations.js';import{ShowAIAssistantCommand as _0x2db475}from'./ui/showaiassistantcommand.js';import{AIAssistantController as _0x5f2db7}from'./ui/aiassistantcontroller.js';import{AIFormView as _0x4d849c}from'./ui/form/aiformview.js';import{AIFormToolbarViewMainActionLabel as _0x3248dc}from'./ui/form/aiformtoolbarview.js';import'../theme/ai.css';import'../theme/ai-dropdown.css';import'../theme/ai-form.css';function _0x2e17(_0x3b9a0a,_0x19ed93){const _0x4b4591=_0x4b45();return _0x2e17=function(_0x2e1775,_0x4a2d69){_0x2e1775=_0x2e1775-0x84;let _0x51260f=_0x4b4591[_0x2e1775];return _0x51260f;},_0x2e17(_0x3b9a0a,_0x19ed93);}const l=globalThis[_0x327919(0xe2)];import{ClipboardMarkersUtils as _0x419e07}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0x47c0e6,ViewDataTransfer as _0x38d99f}from'ckeditor5/src/engine.js';export class AIAssistantUI extends _0x3ca17c{[_0x327919(0x116)];[_0x327919(0xc0)];[_0x327919(0x126)];[_0x327919(0x8d)];[_0x327919(0xe5)];[_0x327919(0x121)];[_0x327919(0xea)]='';static get[_0x327919(0x91)](){const _0x1c3a3f=_0x327919;return _0x1c3a3f(0x117);}static get[_0x327919(0x10d)](){return!0x0;}static get[_0x327919(0xe8)](){return!0x0;}static get[_0x327919(0xde)](){return[_0x419e07,_0x1b992d,_0x5b39c9,_0x52386b];}constructor(_0x69351f){const _0x59941b=_0x327919;super(_0x69351f),_0x69351f[_0x59941b(0x12e)][_0x59941b(0x125)](_0x59941b(0x88),[_0x59941b(0xc3),_0x59941b(0x11c),_0x59941b(0xd5)]),_0x69351f[_0x59941b(0x12e)][_0x59941b(0x125)](_0x59941b(0x9c),''),_0x69351f[_0x59941b(0x12e)][_0x59941b(0x125)](_0x59941b(0x10a),!0x0),this[_0x59941b(0xea)]=_0x59941b(0xf4)+(_0x69351f[_0x59941b(0x12e)][_0x59941b(0x93)](_0x59941b(0x10a))?_0x59941b(0x12c):'');}[_0x327919(0x11b)](){const _0x5e8157=_0x327919,{editor:_0x1b2782}=this;this[_0x5e8157(0xe5)]=_0x1b2782[_0x5e8157(0x108)][_0x5e8157(0x93)](_0x5b39c9),this[_0x5e8157(0x126)]=_0x1b2782[_0x5e8157(0x108)][_0x5e8157(0x93)](_0x52386b),this[_0x5e8157(0x8d)]=null,this[_0x5e8157(0xef)]=this[_0x5e8157(0xd9)]();const _0x3b6d4b=new _0x2db475(_0x1b2782,Array[_0x5e8157(0xcf)](this[_0x5e8157(0xef)][_0x5e8157(0xd4)]()));_0x1b2782[_0x5e8157(0xed)][_0x5e8157(0xcc)](_0x5e8157(0xc5),_0x3b6d4b),_0x1b2782['ui'][_0x5e8157(0xc9)][_0x5e8157(0xcc)](_0x5e8157(0xe0),_0x38c44b=>{const _0x1ebf17=_0x5e8157,_0x5af386=_0xd6452b(_0x38c44b);return _0x5af386[_0x1ebf17(0xce)]({'class':_0x1ebf17(0x9a)+this[_0x1ebf17(0xea)]}),_0x5af386[_0x1ebf17(0x123)][_0x1ebf17(0xce)]({'label':_0x5c85a8(_0x38c44b,_0x1ebf17(0x90)),'icon':_0x470972,'tooltip':!0x0}),_0x5af386['on'](_0x1ebf17(0xd3),_0xb3b46=>this[_0x1ebf17(0xb7)](_0xb3b46[_0x1ebf17(0x102)]['id'])),_0x578802(_0x5af386,_0x1b2782['ui'][_0x1ebf17(0x107)][_0x1ebf17(0x8f)],function(_0x18a048){const _0x220cbd=_0x1ebf17,_0x5369c7=_0xb04c41(_0x18a048[_0x220cbd(0x12e)][_0x220cbd(0x93)](_0x220cbd(0xf9)),_0x18a048[_0x220cbd(0x8e)]),_0x34261c=U(_0x18a048,_0x5369c7)[_0x220cbd(0x89)](_0x3e046a=>_0x3e046a[_0x220cbd(0xed)][_0x220cbd(0xa4)]);if(0x1===_0x34261c[_0x220cbd(0xa4)])return U(_0x18a048,_0x34261c[0x0][_0x220cbd(0xed)])[_0x220cbd(0x12f)](_0x3ffad7=>({'id':_0x3ffad7['id'],'label':_0x3ffad7[_0x220cbd(0xa2)]}));return _0x34261c[_0x220cbd(0x12f)](_0x3d6320=>{const _0x562aa5=_0x220cbd,{groupId:_0x3d521e,groupLabel:_0x2ec135,commands:_0x27dbdb}=_0x3d6320,_0x51dedb=U(_0x18a048,_0x27dbdb)[_0x562aa5(0x12f)](_0x510beb=>({'id':_0x510beb['id'],'label':_0x510beb[_0x562aa5(0xa2)]}));return{'id':_0x3d521e,'menu':_0x2ec135||_0x3d521e,'children':_0x51dedb};});}(_0x1b2782),{'ariaLabel':_0x5c85a8(_0x38c44b,_0x1ebf17(0x90))}),_0x5af386[_0x1ebf17(0xf8)][_0x1ebf17(0x8c)]=_0x1ebf17(0x9a)+this[_0x1ebf17(0xea)],_0x3b6d4b['on'](_0x1ebf17(0x109),_0x83160b),_0x5af386[_0x1ebf17(0xf8)][_0x1ebf17(0x100)](_0x1ebf17(0xfa),_0x83160b),_0x5af386;function _0x83160b(){const _0x208417=_0x1ebf17;_0x5af386[_0x208417(0x92)]=_0x3b6d4b[_0x208417(0x11e)][_0x208417(0xa4)]>0x0;for(const _0x2056d0 of _0x5af386[_0x208417(0xf8)][_0x208417(0x10e)])_0x2056d0[_0x208417(0x92)]=_0x3b6d4b[_0x208417(0x11e)][_0x208417(0x11a)](_0x2056d0['id']);}}),_0x1b2782['ui'][_0x5e8157(0xc9)][_0x5e8157(0xcc)](_0x5e8157(0xd1),_0x4fb13=>{const _0x1f22e7=_0x5e8157,_0x3f072c=new _0x4809d5(_0x4fb13);_0x3f072c[_0x1f22e7(0x123)][_0x1f22e7(0xce)]({'label':_0x5c85a8(_0x4fb13,_0x1f22e7(0x90)),'icon':_0x470972}),_0x3f072c[_0x1f22e7(0xdf)](_0x1f22e7(0x92))['to'](_0x3b6d4b,_0x1f22e7(0x11e),_0x417c08=>_0x417c08[_0x1f22e7(0xa4)]>0x0);const _0x3f5aef=_0xb04c41(_0x1b2782[_0x1f22e7(0x12e)][_0x1f22e7(0x93)](_0x1f22e7(0xf9)),_0x4fb13);return this[_0x1f22e7(0x94)](_0x3b6d4b,_0x3f072c,_0x3f5aef,_0x234145=>this[_0x1f22e7(0xb7)](_0x234145)),_0x3f072c;}),_0x1b2782['ui'][_0x5e8157(0xc9)][_0x5e8157(0xcc)](_0x5e8157(0xaa),()=>{const _0x295535=_0x5e8157,_0x42fb0a=this[_0x295535(0x10f)](_0x6adf79);return _0x42fb0a[_0x295535(0xce)]({'tooltip':!0x0,'class':_0x295535(0xa5)+this[_0x295535(0xea)]}),_0x42fb0a;}),_0x1b2782['ui'][_0x5e8157(0xc9)][_0x5e8157(0xcc)](_0x5e8157(0xf6),()=>{const _0x23379c=_0x5e8157,_0x842f34=this[_0x23379c(0x10f)](_0x37a685);return _0x842f34[_0x23379c(0xce)]({'role':_0x23379c(0xbb)}),_0x842f34;}),this[_0x5e8157(0x116)]=this[_0x5e8157(0xc4)][_0x5e8157(0x12e)][_0x5e8157(0x93)](_0x5e8157(0x116));const _0x19d239=this[_0x5e8157(0xc4)];this[_0x5e8157(0xc0)]=setInterval(()=>{const _0x47d0f8=_0x5e8157;let _0x83d84d;for(const _0x198e9e in _0x19d239){const _0x566bd6=_0x198e9e,_0x4898af=_0x19d239[_0x566bd6];if(_0x47d0f8(0x9f)==_0x4898af||_0x47d0f8(0xa3)==_0x4898af||_0x47d0f8(0xbc)==_0x4898af||_0x47d0f8(0x84)==_0x4898af||_0x47d0f8(0x12a)==_0x4898af||_0x47d0f8(0xe6)==_0x4898af||_0x47d0f8(0xdc)==_0x4898af||_0x47d0f8(0xdd)==_0x4898af){delete _0x19d239[_0x566bd6],_0x83d84d=_0x4898af,clearInterval(this[_0x47d0f8(0xc0)]),this[_0x47d0f8(0xc0)]=void 0x0;break;}}_0x47d0f8(0xa3)==_0x83d84d&&_0x19d239[_0x47d0f8(0xda)](_0x47d0f8(0xfb)),_0x47d0f8(0xbc)==_0x83d84d&&_0x19d239[_0x47d0f8(0xda)](_0x47d0f8(0x130)),_0x47d0f8(0x84)==_0x83d84d&&_0x19d239[_0x47d0f8(0xda)](_0x47d0f8(0x128)),_0x47d0f8(0x12a)==_0x83d84d&&_0x19d239[_0x47d0f8(0xda)](_0x47d0f8(0xbe),_0x47d0f8(0xac)),_0x47d0f8(0xe6)==_0x83d84d&&_0x19d239[_0x47d0f8(0xda)](_0x47d0f8(0x127)),_0x47d0f8(0xdc)==_0x83d84d&&_0x19d239[_0x47d0f8(0xda)](_0x47d0f8(0xa9)),_0x47d0f8(0xdd)==_0x83d84d&&_0x19d239[_0x47d0f8(0xda)](_0x47d0f8(0xbd));},0x3e8);}[_0x327919(0x105)](){const _0x1f72c5=_0x327919;super[_0x1f72c5(0x105)](),this[_0x1f72c5(0xc0)]&&clearInterval(this[_0x1f72c5(0xc0)]);}[_0x327919(0x110)](_0xe3441e='',_0x258fd9='',_0x34b6fc=_0x327919(0xe9)){const _0x169a4d=_0x327919,_0x33e5e5=this[_0x169a4d(0xc4)],_0x1d51b1=_0x33e5e5[_0x169a4d(0xdb)][_0x169a4d(0x107)],_0x222136=_0x33e5e5[_0x169a4d(0x108)][_0x169a4d(0x93)](_0x1b992d),_0x50729b=_0x33e5e5[_0x169a4d(0x108)][_0x169a4d(0x93)](_0x419e07);_0x222136[_0x169a4d(0x9d)]();const _0x50d22a=new l(),_0x159f45=new ClipboardEvent(_0x169a4d(0xaf),{'clipboardData':_0x50d22a}),_0x55aa72=new _0x38d99f(_0x50d22a),_0x45a8c3=new _0x47c0e6(_0x1d51b1,_0x159f45,{'dataTransfer':_0x55aa72});_0x50729b[_0x169a4d(0x124)](_0x169a4d(0x101),()=>{const _0x10b9e6=_0x169a4d;_0x1d51b1[_0x10b9e6(0xb5)][_0x10b9e6(0xa1)](_0x10b9e6(0xaf),_0x45a8c3);}),this[_0x169a4d(0x8d)]||(this[_0x169a4d(0x97)](),this[_0x169a4d(0x121)]=new _0x5f2db7(_0x33e5e5,this[_0x169a4d(0xe5)][_0x169a4d(0x112)],this[_0x169a4d(0x8d)]));let _0x4d7f69=_0x55aa72[_0x169a4d(0xc6)](_0x169a4d(0xba));const _0xa2a289=_0x33e5e5[_0x169a4d(0xd8)][_0x169a4d(0xb5)][_0x169a4d(0xa7)],_0x47eaa5=Array[_0x169a4d(0xcf)](_0xa2a289[_0x169a4d(0xf5)]());0x1===_0x47eaa5[_0x169a4d(0xa4)]&&_0x47eaa5[0x0][_0x169a4d(0xfd)]&&!_0xa2a289[_0x169a4d(0xab)]()&&''!==_0x4d7f69[_0x169a4d(0x8b)](/ /g,'')[_0x169a4d(0x9b)]()&&(_0x4d7f69=_0x169a4d(0xd7)+_0x4d7f69+_0x169a4d(0xf0)),this[_0x169a4d(0x121)][_0x169a4d(0x113)]({'actionId':_0x34b6fc,'query':_0xe3441e,'htmlContent':_0x4d7f69,'label':_0x258fd9,'mainActionLabel':_0x3248dc[_0x33e5e5[_0x169a4d(0xd8)][_0x169a4d(0xb5)][_0x169a4d(0xa7)][_0x169a4d(0x8a)]?_0x169a4d(0x12d):_0x169a4d(0x11f)]}),_0x169a4d(0xaa)!==this[_0x169a4d(0x126)]['id']?this[_0x169a4d(0x126)][_0x169a4d(0xb2)]({'id':_0x169a4d(0xaa),'icon':_0x58d12d,'title':_0x5c85a8(this[_0x169a4d(0xc4)][_0x169a4d(0x8e)],_0x169a4d(0xe1)),'content':this[_0x169a4d(0x8d)],'position':_0x2a76e6[_0x169a4d(0xb4)],'onShow':()=>{const _0x112acb=_0x169a4d;this[_0x112acb(0x8d)][_0x112acb(0x129)]();},'onHide':()=>{const _0x2c82e0=_0x169a4d;this[_0x2c82e0(0x121)][_0x2c82e0(0xbf)](),_0x222136[_0x2c82e0(0xe4)]();}}):this[_0x169a4d(0x126)][_0x169a4d(0x107)][_0x169a4d(0xae)]||this[_0x169a4d(0x126)][_0x169a4d(0x107)][_0x169a4d(0x106)]();}[_0x327919(0xee)](){const _0x382aef=_0x327919;this[_0x382aef(0x126)][_0x382aef(0xfc)]();}[_0x327919(0xd9)](){const _0x3ddd05=_0x327919,_0x3af349=new Map(),_0x2d720d=_0xb04c41(this[_0x3ddd05(0xc4)][_0x3ddd05(0x12e)][_0x3ddd05(0x93)](_0x3ddd05(0xf9)),this[_0x3ddd05(0xc4)][_0x3ddd05(0x8e)]);for(const _0xc82fe5 of _0x2d720d)for(const _0xd14d67 of _0xc82fe5[_0x3ddd05(0xed)])_0x3af349[_0x3ddd05(0xce)](_0xd14d67['id'],{..._0xd14d67,'groupId':_0xc82fe5[_0x3ddd05(0x95)],'groupLabel':_0xc82fe5[_0x3ddd05(0xec)]||_0xc82fe5[_0x3ddd05(0x95)]});return _0x3af349;}[_0x327919(0x10f)](_0x3d2780){const _0x5cc759=_0x327919,_0x1036fd=this[_0x5cc759(0xc4)],_0x44452e=_0x1036fd[_0x5cc759(0xed)][_0x5cc759(0x93)](_0x5cc759(0xc5)),_0x2e35fb=new _0x3d2780(_0x1036fd[_0x5cc759(0x8e)]);return _0x2e35fb[_0x5cc759(0xce)]({'label':_0x5c85a8(_0x1036fd[_0x5cc759(0x8e)],_0x5cc759(0xe1)),'icon':_0x58d12d,'isToggleable':!0x0}),_0x2e35fb[_0x5cc759(0xdf)](_0x5cc759(0x92))['to'](_0x44452e),_0x2e35fb[_0x5cc759(0xdf)](_0x5cc759(0xc1))['to'](this[_0x5cc759(0x126)],'id',_0x43c484=>_0x5cc759(0xaa)===_0x43c484),this[_0x5cc759(0x10b)](_0x2e35fb,_0x5cc759(0xd3),()=>{const _0x311591=_0x5cc759;_0x2e35fb[_0x311591(0xc1)]?this[_0x311591(0xee)]():_0x44452e[_0x311591(0xd3)]();}),_0x2e35fb;}[_0x327919(0x97)](){const _0x4e0104=_0x327919,_0x1dee23=this[_0x4e0104(0xc4)][_0x4e0104(0x108)][_0x4e0104(0x93)](_0x1b992d);this[_0x4e0104(0x8d)]=new _0x4d849c(this[_0x4e0104(0xc4)][_0x4e0104(0x8e)],this[_0x4e0104(0xea)],this[_0x4e0104(0xc4)][_0x4e0104(0x12e)][_0x4e0104(0x93)](_0x4e0104(0x9c))),this[_0x4e0104(0x8d)]['on'](_0x4e0104(0x12b),()=>{const _0x5492f4=_0x4e0104;this[_0x5492f4(0x126)][_0x5492f4(0x107)][_0x5492f4(0xae)]||this[_0x5492f4(0x126)][_0x5492f4(0x107)][_0x5492f4(0x106)]();}),this[_0x4e0104(0x8d)][_0x4e0104(0xf7)][_0x4e0104(0x115)][_0x4e0104(0xca)]['on'](_0x4e0104(0xb6),()=>{const _0x4d348b=_0x4e0104;this[_0x4d348b(0x126)][_0x4d348b(0x107)][_0x4d348b(0xae)]||this[_0x4d348b(0x126)][_0x4d348b(0x107)][_0x4d348b(0x106)]();}),this[_0x4e0104(0x10b)](this[_0x4e0104(0x8d)],_0x4e0104(0xc8),()=>{const _0x56eeaa=_0x4e0104;_0x1dee23[_0x56eeaa(0x131)](this[_0x56eeaa(0x121)][_0x56eeaa(0xb0)]),this[_0x56eeaa(0xee)]();}),this[_0x4e0104(0x10b)](this[_0x4e0104(0x8d)],_0x4e0104(0x120),()=>{const _0x3bf91a=_0x4e0104;_0x1dee23[_0x3bf91a(0x120)](this[_0x3bf91a(0x121)][_0x3bf91a(0xb0)]),this[_0x3bf91a(0xee)]();}),this[_0x4e0104(0x9e)]();}[_0x327919(0x9e)](){const _0x317fcd=_0x327919,{locale:_0x18686d,ui:{ariaLiveAnnouncer:_0x55669a}}=this[_0x317fcd(0xc4)];this[_0x317fcd(0x8d)][_0x317fcd(0x114)]['on'](_0x317fcd(0xa0),(_0x49d749,_0x464aee,_0x21465b)=>{const _0x5c3f70=_0x317fcd,_0x1c006f=this[_0x5c3f70(0x121)][_0x5c3f70(0xb0)];_0x21465b?_0x55669a[_0x5c3f70(0xa6)](_0x5c85a8(_0x18686d,_0x5c3f70(0x99))):_0x1c006f&&_0x55669a[_0x5c3f70(0xa6)](_0x5c85a8(_0x18686d,_0x5c3f70(0xeb),_0x1c006f),{'politeness':_0x5c3f70(0x119),'isUnsafeHTML':!0x0});}),this[_0x317fcd(0x8d)]['on'](_0x317fcd(0x87),(_0x5a053b,_0x3af73d,_0x58ee3e)=>{const _0x47cbf5=_0x317fcd;if(_0x58ee3e){const _0x3c9114=this[_0x47cbf5(0x8d)][_0x47cbf5(0xb9)][_0x47cbf5(0xad)];_0x55669a[_0x47cbf5(0xa6)](_0x5c85a8(_0x18686d,_0x47cbf5(0x111),_0x3c9114));}});}[_0x327919(0xb7)](_0x4fe962){const _0x2b452f=_0x327919,_0x259d42=this[_0x2b452f(0xef)][_0x2b452f(0x93)](_0x4fe962),_0x4c37e9=this[_0x2b452f(0xc4)],_0x483a1d=_0x4c37e9[_0x2b452f(0xd8)][_0x2b452f(0xb5)][_0x2b452f(0xa7)],_0x56610c=_0x4c37e9[_0x2b452f(0xed)][_0x2b452f(0x93)](_0x2b452f(0xc5)),_0x1b3e5e=_0x4c37e9[_0x2b452f(0x108)][_0x2b452f(0x93)](_0x1b992d),_0x4b6613=''+(_0x259d42[_0x2b452f(0x95)]!==_0x5d00fc?_0x259d42[_0x2b452f(0xec)]+':\x20':'')+_0x259d42[_0x2b452f(0xa2)];if(!0x1!==_0x259d42[_0x2b452f(0xff)]&&_0x483a1d[_0x2b452f(0x8a)]){const _0x274491=_0x10601f(_0x483a1d[_0x2b452f(0xd0)]())||_0x4c37e9[_0x2b452f(0xd8)][_0x2b452f(0xf3)][_0x2b452f(0xe7)](_0x483a1d);_0x4c37e9[_0x2b452f(0xd8)][_0x2b452f(0xfe)](_0x44c5f2=>{const _0xbcc3e9=_0x2b452f;_0x44c5f2[_0xbcc3e9(0x86)](_0x274491,'in');});}_0x1b3e5e[_0x2b452f(0x9d)](),_0x56610c[_0x2b452f(0xd3)](_0x259d42[_0x2b452f(0x11d)],_0x4b6613,_0x2b452f(0xd2)+_0x4fe962);}[_0x327919(0x94)](_0x3428dd,_0x2315a5,_0x3da666,_0x1d1c7d){const _0x427706=_0x327919,_0x2d49d9=this[_0x427706(0xc4)],_0x4ec7fd=_0x2d49d9[_0x427706(0x8e)],_0x41208e=new _0xd80053(_0x4ec7fd),_0x5c16e9=U(_0x2d49d9,_0x3da666)[_0x427706(0x89)](_0x57310e=>_0x57310e[_0x427706(0xed)][_0x427706(0xa4)]);0x1===_0x5c16e9[_0x427706(0xa4)]?this[_0x427706(0xf1)]({'command':_0x3428dd,'commands':_0x5c16e9[0x0][_0x427706(0xed)],'parentMenuView':_0x2315a5,'onExecute':_0x1d1c7d})[_0x427706(0xcd)](_0x3320f5=>_0x41208e[_0x427706(0xd6)][_0x427706(0xcc)](_0x3320f5)):_0x5c16e9[_0x427706(0xcd)](({groupId:_0x45ec0c,groupLabel:_0x5748f8,commands:_0x39266b})=>{const _0x27a326=_0x427706,_0x5048c3=new _0x5aa47b(_0x4ec7fd,_0x2315a5),_0x58dccd=new _0x4809d5(_0x4ec7fd),_0x497335=new _0xd80053(_0x4ec7fd),_0x4585f7=this[_0x27a326(0xf1)]({'command':_0x3428dd,'commands':_0x39266b,'parentMenuView':_0x58dccd,'onExecute':_0x1d1c7d});_0x58dccd[_0x27a326(0x123)][_0x27a326(0xce)]({'label':_0x5748f8||_0x45ec0c}),_0x58dccd[_0x27a326(0x96)](_0x27a326(0xd3))['to'](_0x2315a5),_0x497335[_0x27a326(0xd6)][_0x27a326(0xb3)](_0x4585f7),_0x58dccd[_0x27a326(0xa8)][_0x27a326(0x118)][_0x27a326(0xcc)](_0x497335),_0x5048c3[_0x27a326(0x118)][_0x27a326(0xcc)](_0x58dccd),_0x41208e[_0x27a326(0xd6)][_0x27a326(0xcc)](_0x5048c3);}),_0x2315a5[_0x427706(0xa8)][_0x427706(0x118)][_0x427706(0xcc)](_0x41208e);}[_0x327919(0xf1)]({command:_0x4762c9,commands:_0x514abe,parentMenuView:_0x1e41f8,onExecute:_0xaf8c02}){const _0x32a58b=_0x327919,_0x4bc25c=this[_0x32a58b(0xc4)],_0x3edc02=_0x4bc25c[_0x32a58b(0x8e)];return U(_0x4bc25c,_0x514abe)[_0x32a58b(0x12f)](_0x5e04df=>{const _0x529864=_0x32a58b,_0x38f152=new _0x5aa47b(_0x3edc02,_0x1e41f8),_0x275619=new _0x37a685(_0x3edc02);return _0x275619[_0x529864(0xce)]({'label':_0x5e04df[_0x529864(0xa2)]}),_0x275619[_0x529864(0x96)](_0x529864(0xd3))['to'](_0x1e41f8),_0x275619['on'](_0x529864(0xd3),()=>_0xaf8c02(_0x5e04df['id'])),_0x275619[_0x529864(0xdf)](_0x529864(0x92))['to'](_0x4762c9,_0x529864(0x11e),_0x45df28=>_0x45df28[_0x529864(0x11a)](_0x5e04df['id'])),_0x38f152[_0x529864(0x118)][_0x529864(0xcc)](_0x275619),_0x38f152;});}}function T(_0x4363ca,_0x5d8c14){const _0x24e912=_0x327919;return void 0x0!==_0x4363ca[_0x24e912(0xb1)]&&void 0x0===_0x5d8c14[_0x24e912(0xb1)]?0x1:void 0x0===_0x4363ca[_0x24e912(0xb1)]&&void 0x0!==_0x5d8c14[_0x24e912(0xb1)]?-0x1:void 0x0!==_0x4363ca[_0x24e912(0xb1)]&&void 0x0!==_0x5d8c14[_0x24e912(0xb1)]?_0x4363ca[_0x24e912(0xb1)]-_0x5d8c14[_0x24e912(0xb1)]:0x0;}function U(_0x49ba2c,_0x21650d){const _0x32f19e=_0x327919;_0x21650d[_0x32f19e(0x103)](T);const _0x33bdfa={},_0x7b8e9f=[];for(const _0x5e6aeb of _0x21650d)if(void 0x0!==_0x5e6aeb[_0x32f19e(0xb1)]){if(_0x5e6aeb[_0x32f19e(0xb1)]in _0x33bdfa)throw new _0x69291e(_0x32f19e(0xe3),_0x49ba2c,{'conflictingDefinitions':[_0x5e6aeb,_0x33bdfa[_0x5e6aeb[_0x32f19e(0xb1)]]]});_0x33bdfa[_0x5e6aeb[_0x32f19e(0xb1)]]=_0x5e6aeb,_0x7b8e9f[_0x32f19e(0x85)](_0x5e6aeb[_0x32f19e(0xb1)],0x0,_0x5e6aeb);}else _0x7b8e9f[_0x32f19e(0xc2)](_0x5e6aeb);return _0x7b8e9f;}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x577725,_0x374036){var _0x32460c=_0x2560,_0x4887a4=_0x577725();while(!![]){try{var _0x2969a0=parseInt(_0x32460c(0xff))/0x1+-parseInt(_0x32460c(0x107))/0x2*(-parseInt(_0x32460c(0x103))/0x3)+-parseInt(_0x32460c(0x106))/0x4+-parseInt(_0x32460c(0x104))/0x5+-parseInt(_0x32460c(0x100))/0x6+-parseInt(_0x32460c(0x101))/0x7*(-parseInt(_0x32460c(0xfe))/0x8)+-parseInt(_0x32460c(0x102))/0x9*(-parseInt(_0x32460c(0x105))/0xa);if(_0x2969a0===_0x374036)break;else _0x4887a4['push'](_0x4887a4['shift']());}catch(_0x3b4825){_0x4887a4['push'](_0x4887a4['shift']());}}}(_0xf0d7,0x4526d));export{AIAssistant,getDefaultAICommands}from'./aiassistant.js';function _0xf0d7(){var _0x1ac90f=['1053484xyHXgQ','2uGEcnL','8JkHVNe','393508DlPBRL','2861934QdIsEQ','3121713fgyrDf','9Mzslnc','16602Fxafap','2452015rykVDr','6690070fmFopr'];_0xf0d7=function(){return _0x1ac90f;};return _0xf0d7();}export{AIAssistantUI}from'./aiassistantui.js';export{AIAdapter,AIRequestError}from'./adapters/aiadapter.js';export{AITextAdapter}from'./adapters/aitextadapter.js';export{OpenAITextAdapter}from'./adapters/openaitextadapter.js';function _0x2560(_0x5840be,_0x3ac18){var _0xf0d75d=_0xf0d7();return _0x2560=function(_0x2560f3,_0x3d1fd1){_0x2560f3=_0x2560f3-0xfe;var _0x27eb5e=_0xf0d75d[_0x2560f3];return _0x27eb5e;},_0x2560(_0x5840be,_0x3ac18);}export{AWSTextAdapter}from'./adapters/awstextadapter.js';export{ShowAIAssistantCommand}from'./ui/showaiassistantcommand.js';import'./augmentation.js';
|
package/src/legacyerrors.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x3f71ab,_0x1cbf4d){var _0x104723=_0x4c64,_0x33e01e=_0x3f71ab();while(!![]){try{var _0xefaffe=parseInt(_0x104723(0x80))/0x1*(parseInt(_0x104723(0x86))/0x2)+parseInt(_0x104723(0x84))/0x3+-parseInt(_0x104723(0x85))/0x4+-parseInt(_0x104723(0x81))/0x5*(parseInt(_0x104723(0x7e))/0x6)+parseInt(_0x104723(0x7f))/0x7*(-parseInt(_0x104723(0x87))/0x8)+parseInt(_0x104723(0x7d))/0x9*(parseInt(_0x104723(0x7c))/0xa)+-parseInt(_0x104723(0x82))/0xb*(-parseInt(_0x104723(0x83))/0xc);if(_0xefaffe===_0x1cbf4d)break;else _0x33e01e['push'](_0x33e01e['shift']());}catch(_0x2216b1){_0x33e01e['push'](_0x33e01e['shift']());}}}(_0x3414,0xbc6e4));function _0x4c64(_0x33a80d,_0xb0ac3){var _0x341407=_0x3414();return _0x4c64=function(_0x4c643f,_0x11afb1){_0x4c643f=_0x4c643f-0x7c;var _0x5efbb5=_0x341407[_0x4c643f];return _0x5efbb5;},_0x4c64(_0x33a80d,_0xb0ac3);}function _0x3414(){var _0x10c413=['1485jESfTZ','2505798QyeFek','49svlpHo','337JUGFLw','15HHwZtS','11ThbCSF','31376964AbnOHX','358851pkkgsN','3401992xzPgyw','5748cgPXvr','952912xeXBUX','370jggPkv'];_0x3414=function(){return _0x10c413;};return _0x3414();}import{CKEditorError as _0x4f2765}from'ckeditor5/src/utils.js';
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0xcbcb31=_0x45c8;function _0x5c90(){const _0x3c3796=['once','serializeToString','previousContext','from','670908JUFfWI','childNodes','currentResponse','reverse','initialContext','trim','createElement','domConverter','length','_stripMarkdownSyntax','reset','toModel','1726735Qhydim','custom','nodeType','parseFromString','```html','remove','finally','textAdapter','then','isRendered','setContentOf','get','previousActionId','_handleQuery','mainAction','editor','exec','stopProcessing','editing','set','isProcessing','element','submitPrompt','currentContext','processor','previousLabel','listenTo','name','substring','message','_domParser','abort','3685182LWEBbY','catch','<h1></h1>','makeRequest','ai.aiAssistant.preserveComments','config','render','startsWith','6112512jUEqvh','innerHTML','stringify','endsWith','3194ISsDVS','set:currentContext','_parseAndNormalizeContent','1050588vRhICl','push','querySelector','prompt','_xmlSerializer','markers','_sanitizationContainer','_normalizeResponseHeadings','previousQuery','tryAgainEvent','value','clear','htmlProcessor','viewToDom','_isH1TagSupportEnabled','```','div','view','updateView','finishProcessing','data','startProcessing','document','rename','stopListening','text/html','handleError','body','match','ELEMENT_NODE','_sanitizeHTML','destroy','2191527IbLxNL','94usOwjg','toView'];_0x5c90=function(){return _0x3c3796;};return _0x5c90();}(function(_0x12caf7,_0x5ae27e){const _0x2f6d66=_0x45c8,_0x49edb8=_0x12caf7();while(!![]){try{const _0x383d8f=parseInt(_0x2f6d66(0x1c3))/0x1*(parseInt(_0x2f6d66(0x1e7))/0x2)+parseInt(_0x2f6d66(0x1e6))/0x3+parseInt(_0x2f6d66(0x18b))/0x4+-parseInt(_0x2f6d66(0x197))/0x5+parseInt(_0x2f6d66(0x1b7))/0x6+-parseInt(_0x2f6d66(0x1c6))/0x7+-parseInt(_0x2f6d66(0x1bf))/0x8;if(_0x383d8f===_0x5ae27e)break;else _0x49edb8['push'](_0x49edb8['shift']());}catch(_0xe33312){_0x49edb8['push'](_0x49edb8['shift']());}}}(_0x5c90,0x62670));function _0x45c8(_0x821d4a,_0x5e3b54){const _0x5c9016=_0x5c90();return _0x45c8=function(_0x45c803,_0xa704db){_0x45c803=_0x45c803-0x187;let _0x52a781=_0x5c9016[_0x45c803];return _0x52a781;},_0x45c8(_0x821d4a,_0x5e3b54);}import{ObservableMixin as _0x88ebf5}from'ckeditor5/src/utils.js';import{AIRequestError as _0x5bebcc}from'../adapters/aiadapter.js';import{Matcher as _0x2a3443,ViewUpcastWriter as _0x3da47c}from'ckeditor5/src/engine.js';const Q=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');export class AIAssistantController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x88ebf5(){[_0xcbcb31(0x1a6)];[_0xcbcb31(0x19e)];[_0xcbcb31(0x1d7)];[_0xcbcb31(0x1cc)];[_0xcbcb31(0x1b5)];[_0xcbcb31(0x1ca)];constructor(_0x10bfce,_0x17fed0,_0x3ddb71){const _0x4a4da8=_0xcbcb31;super(),this[_0x4a4da8(0x1a6)]=_0x10bfce,this[_0x4a4da8(0x19e)]=_0x17fed0,this[_0x4a4da8(0x1cc)]=document[_0x4a4da8(0x191)](_0x4a4da8(0x1d6)),this[_0x4a4da8(0x1b5)]=new DOMParser(),this[_0x4a4da8(0x1ca)]=new XMLSerializer(),this[_0x4a4da8(0x1d7)]=_0x3ddb71,this[_0x4a4da8(0x1aa)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x4a4da8(0x1c4),(_0x52a943,_0x5c25fb,_0x340862)=>{const _0x2d7133=_0x4a4da8;this[_0x2d7133(0x1d7)][_0x2d7133(0x1d0)]=this[_0x2d7133(0x1e4)](_0x340862);}),this[_0x4a4da8(0x1b1)](this[_0x4a4da8(0x1d7)],_0x4a4da8(0x1ad),(_0x4a30b0,_0x1941d0)=>{const _0x59a241=_0x4a4da8,_0x223e11=this[_0x59a241(0x1ae)]||this[_0x59a241(0x18f)];this[_0x59a241(0x1a4)](_0x1941d0,_0x223e11,_0x59a241(0x198));}),this[_0x4a4da8(0x1b1)](this[_0x4a4da8(0x1d7)],_0x4a4da8(0x1cf),()=>{const _0x1dff98=_0x4a4da8;this[_0x1dff98(0x1d7)][_0x1dff98(0x1c9)]=this[_0x1dff98(0x1b0)],this[_0x1dff98(0x1a4)](this[_0x1dff98(0x1ce)],this[_0x1dff98(0x189)],this[_0x1dff98(0x1a3)],this[_0x1dff98(0x1b0)]);}),this[_0x4a4da8(0x1b1)](this[_0x4a4da8(0x1d7)],_0x4a4da8(0x1a8),()=>{const _0x21803f=_0x4a4da8;this[_0x21803f(0x1a8)]();});}[_0xcbcb31(0x1e5)](){const _0x3b3aa0=_0xcbcb31;this[_0x3b3aa0(0x1de)]();}async[_0xcbcb31(0x1d8)]({actionId:_0xc9bc1d,query:_0x1ad361,htmlContent:_0x4b02cd,label:_0xa75d7e,mainActionLabel:_0x15e565}){const _0x4a2512=_0xcbcb31;this[_0x4a2512(0x1d7)][_0x4a2512(0x1c9)]=_0xa75d7e,this[_0x4a2512(0x1d7)][_0x4a2512(0x1a5)]=_0x15e565,this[_0x4a2512(0x18f)]=_0x4b02cd,_0x1ad361&&(this[_0x4a2512(0x1d7)][_0x4a2512(0x1a0)]?this[_0x4a2512(0x1a4)](_0x1ad361,_0x4b02cd,_0xc9bc1d,_0xa75d7e):this[_0x4a2512(0x1d7)][_0x4a2512(0x187)](_0x4a2512(0x1bd),()=>{const _0xad7552=_0x4a2512;this[_0xad7552(0x1a4)](_0x1ad361,_0x4b02cd,_0xc9bc1d,_0xa75d7e);}));}[_0xcbcb31(0x1a8)](){const _0x69d5ef=_0xcbcb31;this[_0x69d5ef(0x1ab)]&&(this[_0x69d5ef(0x1ab)]=!0x1,this[_0x69d5ef(0x1d7)][_0x69d5ef(0x1d9)](),this[_0x69d5ef(0x19e)][_0x69d5ef(0x1b6)]());}[_0xcbcb31(0x195)](){const _0x4a24dc=_0xcbcb31;this[_0x4a24dc(0x18f)]='',this[_0x4a24dc(0x1ae)]='',this[_0x4a24dc(0x18d)]='',this[_0x4a24dc(0x189)]='',this[_0x4a24dc(0x1ce)]='',this[_0x4a24dc(0x1b0)]='',this[_0x4a24dc(0x1a3)]=void 0x0,this[_0x4a24dc(0x1d7)][_0x4a24dc(0x195)](),this[_0x4a24dc(0x1a8)]();}async[_0xcbcb31(0x1a4)](_0xdc2638,_0xdc4f68,_0x4091e9,_0x27b826){const _0x3c2dc3=_0xcbcb31;return this[_0x3c2dc3(0x1ab)]=!0x0,this[_0x3c2dc3(0x1d7)][_0x3c2dc3(0x1db)](),this[_0x3c2dc3(0x189)]=_0xdc4f68,this[_0x3c2dc3(0x1ce)]=_0xdc2638,this[_0x3c2dc3(0x1b0)]=_0x27b826||_0xdc2638,this[_0x3c2dc3(0x1a3)]=_0x4091e9,new Promise(_0x553b35=>{const _0x50777a=_0x3c2dc3;this[_0x50777a(0x19e)][_0x50777a(0x1ba)]({'query':_0xdc2638,'context':_0xdc4f68,'onData':_0x2f8746=>{const _0x3e3773=_0x50777a;this[_0x3e3773(0x18d)]=_0x2f8746,this[_0x3e3773(0x1ae)]=this[_0x3e3773(0x1c5)](this[_0x3e3773(0x18d)]);},'actionId':_0x4091e9})[_0x50777a(0x19f)](()=>{const _0x4b39fb=_0x50777a;!this[_0x4b39fb(0x1ae)]&&this[_0x4b39fb(0x18d)]&&(this[_0x4b39fb(0x1ae)]=this[_0x4b39fb(0x1c5)](this[_0x4b39fb(0x18d)],!0x0));})[_0x50777a(0x1b8)](_0x2c4f97=>{const _0x551e29=_0x50777a;_0x2c4f97 instanceof _0x5bebcc?this[_0x551e29(0x1d7)][_0x551e29(0x1e0)](_0x2c4f97[_0x551e29(0x1b4)]):this[_0x551e29(0x1d7)][_0x551e29(0x1e0)](),_0x553b35();})[_0x50777a(0x19d)](()=>{const _0x5aa151=_0x50777a;this[_0x5aa151(0x1a8)](),_0x553b35();});});}[_0xcbcb31(0x1c5)](_0x429e72,_0x2db3a6=!0x1){const _0x2c0154=_0xcbcb31,_0x37bd34=Q[_0x2c0154(0x1a7)](_0x429e72);_0x429e72=_0x37bd34?_0x429e72[_0x2c0154(0x1b3)](_0x37bd34[0x1][_0x2c0154(0x193)]):_0x429e72[_0x2c0154(0x193)]<0x64&&!_0x2db3a6?'':this[_0x2c0154(0x194)](_0x429e72);const _0x589af9=this[_0x2c0154(0x1b5)][_0x2c0154(0x19a)](_0x429e72,_0x2c0154(0x1df));if(_0x37bd34){const _0x17eb48=Array[_0x2c0154(0x18a)](_0x589af9[_0x2c0154(0x1e1)][_0x2c0154(0x18c)]);_0x17eb48[_0x2c0154(0x18e)]();for(const _0x1a512a of _0x17eb48){if(_0x1a512a[_0x2c0154(0x199)]==Node[_0x2c0154(0x1e3)])break;_0x1a512a[_0x2c0154(0x19c)]();}}const _0x57e04a=this[_0x2c0154(0x1a6)][_0x2c0154(0x1da)][_0x2c0154(0x1af)][_0x2c0154(0x1e8)](this[_0x2c0154(0x1ca)][_0x2c0154(0x188)](_0x589af9[_0x2c0154(0x1e1)]));this[_0x2c0154(0x1d4)]()||this[_0x2c0154(0x1cd)](_0x57e04a);const _0x983081=this[_0x2c0154(0x1a6)][_0x2c0154(0x1bc)][_0x2c0154(0x1a2)](_0x2c0154(0x1bb)),_0x49287e=this[_0x2c0154(0x1a6)][_0x2c0154(0x1da)][_0x2c0154(0x196)](_0x57e04a);return _0x983081||_0x49287e[_0x2c0154(0x1cb)][_0x2c0154(0x1d1)](),this[_0x2c0154(0x1a6)][_0x2c0154(0x1da)][_0x2c0154(0x1c1)](_0x49287e);}[_0xcbcb31(0x1cd)](_0x16d7d4){const _0xa6c17b=_0xcbcb31,_0x1ee7c2=new _0x3da47c(this[_0xa6c17b(0x1a6)][_0xa6c17b(0x1a9)][_0xa6c17b(0x1d7)][_0xa6c17b(0x1dc)]),_0x4b45dc=new _0x2a3443({'name':/^h[1-5]$/}),_0x59896b=[];let _0x3cd1b5=!0x1;for(const _0x1bedc3 of _0x16d7d4)_0x1bedc3['is'](_0xa6c17b(0x1ac))&&_0x4b45dc[_0xa6c17b(0x1e2)](_0x1bedc3)&&(_0x59896b[_0xa6c17b(0x1c7)](_0x1bedc3),'h1'==_0x1bedc3[_0xa6c17b(0x1b2)]&&(_0x3cd1b5=!0x0));if(_0x3cd1b5){for(const _0x31e700 of _0x59896b)_0x1ee7c2[_0xa6c17b(0x1dd)]('h'+(parseInt(_0x31e700[_0xa6c17b(0x1b2)][0x1])+0x1),_0x31e700);}}[_0xcbcb31(0x1d4)](){const _0x1dcfdf=_0xcbcb31,{data:_0xf1c0da,editing:_0x3067b7}=this[_0x1dcfdf(0x1a6)],_0x425e5b=_0xf1c0da[_0x1dcfdf(0x1d2)][_0x1dcfdf(0x1e8)](_0x1dcfdf(0x1b9)),_0x3dce1a=_0xf1c0da[_0x1dcfdf(0x1e8)](_0xf1c0da[_0x1dcfdf(0x196)](_0x425e5b));return!!_0x3067b7[_0x1dcfdf(0x1d7)][_0x1dcfdf(0x192)][_0x1dcfdf(0x1d3)](_0x3dce1a)[_0x1dcfdf(0x1c8)]('h1');}[_0xcbcb31(0x1e4)](_0x22895a){const _0x352f93=_0xcbcb31;return this[_0x352f93(0x1a6)][_0x352f93(0x1a9)][_0x352f93(0x1d7)][_0x352f93(0x192)][_0x352f93(0x1a1)](this[_0x352f93(0x1cc)],_0x22895a),this[_0x352f93(0x1cc)][_0x352f93(0x1c0)];}[_0xcbcb31(0x194)](_0x165edb){const _0x3b2f66=_0xcbcb31,_0x3dbd2a=_0x165edb[_0x3b2f66(0x190)]();return _0x3dbd2a[_0x3b2f66(0x1be)](_0x3b2f66(0x19b))?_0x3dbd2a[_0x3b2f66(0x1c2)](_0x3b2f66(0x1d5))?_0x3dbd2a[_0x3b2f66(0x1b3)](0x7,_0x3dbd2a[_0x3b2f66(0x193)]-0x3):_0x3dbd2a[_0x3b2f66(0x1b3)](0x7):_0x165edb;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x6cd71f=_0xecf8;(function(_0x41c545,_0x118861){const _0x1a5023=_0xecf8,_0x1f9f51=_0x41c545();while(!![]){try{const _0x1de98c=parseInt(_0x1a5023(0x1c4))/0x1*(-parseInt(_0x1a5023(0x1bb))/0x2)+-parseInt(_0x1a5023(0x1c1))/0x3+-parseInt(_0x1a5023(0x1f4))/0x4*(parseInt(_0x1a5023(0x1d5))/0x5)+-parseInt(_0x1a5023(0x1e3))/0x6*(-parseInt(_0x1a5023(0x1fd))/0x7)+-parseInt(_0x1a5023(0x1e4))/0x8+-parseInt(_0x1a5023(0x1f6))/0x9*(-parseInt(_0x1a5023(0x1d0))/0xa)+parseInt(_0x1a5023(0x1ed))/0xb;if(_0x1de98c===_0x118861)break;else _0x1f9f51['push'](_0x1f9f51['shift']());}catch(_0x1b3aa2){_0x1f9f51['push'](_0x1f9f51['shift']());}}}(_0xce1f,0xbc555));import{global as _0x1eec9a}from'ckeditor5/src/utils.js';import{View as _0x4856d5,ButtonView as _0x402804,SpinnerView as _0x195a87}from'ckeditor5/src/ui.js';function _0xce1f(){const _0x1d65db=['2565704XMepXH','text/plain','lastElementChild','\x20ck-ai-form__copy-button--copied','clipboard','ck-ai-form__content-area-wrapper','remove','isVisible','<span>[</span>','22338569VkfNGG','icon','ck-ai-form__content-area','querySelector','ck-hidden','element','bind','116GPqsMd','loaderView','18711kyiFTW','removeAllRanges','.ck-ai-form__loader','ClipboardItem','left','addRange','isProcessing','203arEjxW','scrollHeight','-9999px','copy','mousedown','text/html','absolute','execute','Copy','render','isEnabled','setStartAfter','createElement','body','_createCopyButton','ck-ai-form__loader','ck-content','value','setContent','bindTemplate','182870ejlAaH','ck-ai-form__content-area--processing','ck-ai-form__copy-button-wrapper','contentFieldView','setEndBefore','setTemplate','2787288VmxnWI','_copyHTMLToClipboard','locale','13CVydTM','class','ck-ai-form__content-field','innerHTML','<span>]</span>','execCommand','createRange','getSelection','change:value','style','ck-reset_all-excluded','AI\x20is\x20writing...','6330LERWbL','smooth','textContent','div','appendChild','89785FNDPOp','copyButtonView','set','wheel','position','firstElementChild','change:isProcessing','scrollTo','write','ck-ai-form__copy-button','_createLoader','appendLoader','listenTo','focus','79416LKGhCH'];_0xce1f=function(){return _0x1d65db;};return _0xce1f();}import{IconCheck as _0x35705d,IconCopy as _0x177269}from'ckeditor5/src/icons.js';function _0xecf8(_0xcb79c4,_0x36bcba){const _0xce1f0d=_0xce1f();return _0xecf8=function(_0xecf859,_0x1acd2e){_0xecf859=_0xecf859-0x1ba;let _0x598a0c=_0xce1f0d[_0xecf859];return _0x598a0c;},_0xecf8(_0xcb79c4,_0x36bcba);}import{getTranslation as _0x32528d}from'../../utils/common-translations.js';export class AIFormContentArea extends _0x4856d5{[_0x6cd71f(0x1be)];[_0x6cd71f(0x1d6)];constructor(_0x19a686,_0x37c417=''){const _0xeb0c50=_0x6cd71f;super(_0x19a686),this[_0xeb0c50(0x1d7)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x3913ed=this[_0xeb0c50(0x1ba)];this[_0xeb0c50(0x1be)]=new ContentFieldView(_0x19a686,_0x37c417),this[_0xeb0c50(0x1d6)]=this[_0xeb0c50(0x20b)](),this[_0xeb0c50(0x1c0)]({'tag':_0xeb0c50(0x1d3),'attributes':{'class':['ck',_0xeb0c50(0x1e9),_0x3913ed['if'](_0xeb0c50(0x1eb),_0xeb0c50(0x1f1),_0x5aa760=>!_0x5aa760)],'tabindex':'-1'},'children':[{'tag':_0xeb0c50(0x1d3),'attributes':{'class':['ck',_0xeb0c50(0x1ef),_0x3913ed['if'](_0xeb0c50(0x1fc),_0xeb0c50(0x1bc))]},'children':[this[_0xeb0c50(0x1be)],{'tag':_0xeb0c50(0x1d3),'attributes':{'class':['ck',_0xeb0c50(0x1bd)]},'children':[this[_0xeb0c50(0x1d6)]]}]}]});}[_0x6cd71f(0x206)](){const _0x3da785=_0x6cd71f;super[_0x3da785(0x206)](),this[_0x3da785(0x20e)]&&this[_0x3da785(0x1be)][_0x3da785(0x20f)](this[_0x3da785(0x20e)]);let _0xe507f7=!0x1;this['on'](_0x3da785(0x1cc),(_0x2e6d31,_0x46a75a,_0x7b264c)=>{const _0x5081c9=_0x3da785,_0x4052a8=!this[_0x5081c9(0x1be)][_0x5081c9(0x1f2)][_0x5081c9(0x1f0)](_0x5081c9(0x1f8));this[_0x5081c9(0x1be)][_0x5081c9(0x20f)](_0x7b264c),this[_0x5081c9(0x1fc)]&&_0x4052a8&&!_0xe507f7&&this[_0x5081c9(0x1f2)][_0x5081c9(0x1dc)]({'top':this[_0x5081c9(0x1f2)][_0x5081c9(0x1fe)],'behavior':_0x5081c9(0x1d1)});}),this['on'](_0x3da785(0x1db),(_0x5673b6,_0x8eeb18,_0x767cac)=>{const _0x150b74=_0x3da785;_0xe507f7=!0x1,_0x767cac?(this[_0x150b74(0x20e)]=null,this[_0x150b74(0x1be)][_0x150b74(0x1e0)]()):this[_0x150b74(0x20e)]||this[_0x150b74(0x1be)][_0x150b74(0x20f)]('');}),this[_0x3da785(0x1e1)](this[_0x3da785(0x1f2)],_0x3da785(0x1d8),()=>{_0xe507f7=!0x0;}),this[_0x3da785(0x1e1)](this[_0x3da785(0x1f2)],_0x3da785(0x201),()=>{_0xe507f7=!0x0;});}[_0x6cd71f(0x1e2)](){const _0xb88fb2=_0x6cd71f;this[_0xb88fb2(0x1f2)][_0xb88fb2(0x1e2)]();}[_0x6cd71f(0x20b)](){const _0x3ffd96=_0x6cd71f,_0x3235fc=this[_0x3ffd96(0x1c3)],_0x540b8=new _0x402804(this[_0x3ffd96(0x1c3)]),_0x39583c=_0x3ffd96(0x1de);return _0x540b8[_0x3ffd96(0x1d7)]({'label':_0x32528d(_0x3235fc,_0x3ffd96(0x205)),'icon':_0x177269,'class':_0x39583c,'tooltip':!0x0}),_0x540b8[_0x3ffd96(0x1f3)](_0x3ffd96(0x1eb))['to'](this,_0x3ffd96(0x20e),_0x8009c4=>!!_0x8009c4),_0x540b8[_0x3ffd96(0x1f3)](_0x3ffd96(0x207))['to'](this,_0x3ffd96(0x1fc),_0x29380a=>!_0x29380a),_0x540b8['on'](_0x3ffd96(0x204),()=>{const _0x4aa1ec=_0x3ffd96;this[_0x4aa1ec(0x1c2)](this[_0x4aa1ec(0x1be)][_0x4aa1ec(0x1f2)]),_0x540b8[_0x4aa1ec(0x1ee)]=_0x35705d,_0x540b8[_0x4aa1ec(0x1c5)]=_0x39583c+_0x4aa1ec(0x1e7),this[_0x4aa1ec(0x1e2)](),setTimeout(()=>{const _0x2c037e=_0x4aa1ec;_0x540b8[_0x2c037e(0x1ee)]=_0x177269,_0x540b8[_0x2c037e(0x1c5)]=_0x39583c;},0x3e8);}),_0x540b8;}[_0x6cd71f(0x1c2)](_0x238e07){const _0x572edc=_0x6cd71f,{window:_0x4e4d27,document:_0x3eb847}=_0x1eec9a;if(_0x4e4d27[_0x572edc(0x1f9)]){const {Blob:_0x394dfc,ClipboardItem:_0x195bfb}=_0x4e4d27,_0x23833b=[new _0x195bfb({'text/html':new _0x394dfc([_0x238e07[_0x572edc(0x1c7)]],{'type':_0x572edc(0x202)}),'text/plain':new _0x394dfc([_0x238e07[_0x572edc(0x1d2)]||''],{'type':_0x572edc(0x1e5)})})];navigator[_0x572edc(0x1e8)][_0x572edc(0x1dd)](_0x23833b);}else{const _0x5b6fa1=_0x3eb847[_0x572edc(0x209)](_0x572edc(0x1d3));_0x5b6fa1[_0x572edc(0x1cd)][_0x572edc(0x1d9)]=_0x572edc(0x203),_0x5b6fa1[_0x572edc(0x1cd)][_0x572edc(0x1fa)]=_0x572edc(0x1ff),_0x5b6fa1[_0x572edc(0x1c7)]=_0x572edc(0x1ec)+_0x238e07[_0x572edc(0x1c7)]+_0x572edc(0x1c8),_0x3eb847[_0x572edc(0x20a)][_0x572edc(0x1d4)](_0x5b6fa1);const _0x4fcecf=_0x3eb847[_0x572edc(0x1ca)]();_0x4fcecf[_0x572edc(0x208)](_0x5b6fa1[_0x572edc(0x1da)]),_0x4fcecf[_0x572edc(0x1bf)](_0x5b6fa1[_0x572edc(0x1e6)]);const _0x42b6f3=_0x4e4d27[_0x572edc(0x1cb)]();_0x42b6f3[_0x572edc(0x1f7)](),_0x42b6f3[_0x572edc(0x1fb)](_0x4fcecf),_0x3eb847[_0x572edc(0x1c9)](_0x572edc(0x200)),_0x5b6fa1[_0x572edc(0x1ea)]();}}}export class ContentFieldView extends _0x4856d5{constructor(_0x328306,_0x1c7748=''){const _0x2c7723=_0x6cd71f;super(_0x328306),this[_0x2c7723(0x1f5)]=this[_0x2c7723(0x1df)](),this[_0x2c7723(0x1c0)]({'tag':_0x2c7723(0x1d3),'attributes':{'class':['ck',_0x2c7723(0x20d),_0x1c7748,_0x2c7723(0x1ce),_0x2c7723(0x1c6)]}});}[_0x6cd71f(0x20f)](_0x504903){const _0x1b8ac2=_0x6cd71f;this[_0x1b8ac2(0x1f2)][_0x1b8ac2(0x1c7)]=_0x504903;}[_0x6cd71f(0x1e0)](){const _0xab3964=_0x6cd71f;this[_0xab3964(0x1f2)][_0xab3964(0x1d4)](this[_0xab3964(0x1f5)][_0xab3964(0x1f2)]);}[_0x6cd71f(0x1df)](){const _0x1f0555=_0x6cd71f,_0xd5b0cb=new _0x4856d5(),_0x2a5744=this[_0x1f0555(0x1c3)],_0x56074e=new _0x195a87();return _0x56074e[_0x1f0555(0x1eb)]=!0x0,_0xd5b0cb[_0x1f0555(0x1c0)]({'tag':_0x1f0555(0x1d3),'attributes':{'class':['ck',_0x1f0555(0x20c)]},'children':[_0x56074e,{'text':_0x32528d(_0x2a5744,_0x1f0555(0x1cf))}]}),_0xd5b0cb[_0x1f0555(0x206)](),_0xd5b0cb;}}
|