@ckeditor/ckeditor5-ai 46.0.1-alpha.1 → 46.0.1-alpha.11
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
|
-
function _0x1158(){const _0x32e384=['396ZeZFvq','createRange','42728oWYNip','editing','getChild','table','insertContentBelow','setSelection','deleteContent','_getTableRowCountFromContent','addMarker','ai.useTheme','DataTransfer','updateMarker','isCollapsed','from','text/html','selection','findAncestor','fromCharCode','change','end','getSelectedTableCells','27RywSTA','6XXswik','map','getSelectedBlocks','getMarkersGroup','getColumnIndexes','markerToHighlight','245201MKqxsh','415485DgAXlp','fire','markerRange','config','getRows','isOfficialPlugin','getChildren','addClass','document','_pasteHTMLUsingClipboard','data','1002778MjFmNo','isContent','_getAISelection','element','getFirstRange','plugins','contentInsertion','conversion','afterInit','get','removeMarker','getRowIndexes','setData','pluginName','getRange','model','for','start','markerToElement','canEditAt','join','_prepareTableInsertBelowPosition','init','isPremiumPlugin','has','span','filter','6853840JygOai','insertRows','hideFakeVisualSelection','createSelection','href','resultRange','editor','createPositionAfter','AIAssistantEditing','getLastPosition','2SLwaQQ','_createEmptyTableRows','parse','pop','lowest','editingDowncast','paste','markers','ai-ui','getRanges','off','once','createPositionAt','first','last','createUIElement','_resetContentOfSelectedTableCells','ck-ai-assistant-ui_theme','schema','insertContent','forEach','TableUtils','25nAVJKI','637737OBMPkZ','push','2181368RReTNG','getLastMatchingPosition','showFakeVisualSelection','_getDefaultInsertBelowPosition','ck-fake-ai-selection','isAtEnd','length','ck-fake-ai-selection_collapsed'];_0x1158=function(){return _0x32e384;};return _0x1158();}const _0x4ddbde=_0x1fce;(function(_0x13e662,_0x5aa711){const _0x3a6dda=_0x1fce,_0x29d767=_0x13e662();while(!![]){try{const _0x4e3ec2=parseInt(_0x3a6dda(0xc5))/0x1*(-parseInt(_0x3a6dda(0xf5))/0x2)+parseInt(_0x3a6dda(0x10c))/0x3+-parseInt(_0x3a6dda(0xa8))/0x4*(-parseInt(_0x3a6dda(0x10b))/0x5)+parseInt(_0x3a6dda(0xbe))/0x6*(-parseInt(_0x3a6dda(0xd0))/0x7)+-parseInt(_0x3a6dda(0x10e))/0x8*(-parseInt(_0x3a6dda(0xbd))/0x9)+parseInt(_0x3a6dda(0xeb))/0xa+-parseInt(_0x3a6dda(0xc4))/0xb*(parseInt(_0x3a6dda(0xa6))/0xc);if(_0x4e3ec2===_0x5aa711)break;else _0x29d767['push'](_0x29d767['shift']());}catch(_0x520c34){_0x29d767['push'](_0x29d767['shift']());}}}(_0x1158,0x73fa4));import{uid as _0x374a23}from'ckeditor5/src/utils.js';import{Plugin as _0x14f5b6}from'ckeditor5/src/core.js';import{ClipboardPipeline as _0x43ac97}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0xc258c6,ViewDataTransfer as _0x218535}from'ckeditor5/src/engine.js';const l=globalThis[_0x4ddbde(0xb2)],w=_0x4ddbde(0xfd);function _0x1fce(_0x3be473,_0x2b2ac8){const _0x115864=_0x1158();return _0x1fce=function(_0x1fcec9,_0x4a1201){_0x1fcec9=_0x1fcec9-0xa6;let _0x5d7bf5=_0x115864[_0x1fcec9];return _0x5d7bf5;},_0x1fce(_0x3be473,_0x2b2ac8);}export class AIAssistantEditing extends _0x14f5b6{static get[_0x4ddbde(0xdd)](){const _0x47f818=_0x4ddbde;return _0x47f818(0xf3);}static get[_0x4ddbde(0xca)](){return!0x0;}static get[_0x4ddbde(0xe7)](){return!0x0;}[_0x4ddbde(0xe6)](){const _0x5a2b64=_0x4ddbde,{editor:_0x5b43e6}=this,_0x417161=[_0x5a2b64(0x112)];_0x5b43e6[_0x5a2b64(0xc8)][_0x5a2b64(0xd9)](_0x5a2b64(0xb1))&&_0x417161[_0x5a2b64(0x10d)](_0x5a2b64(0x106)),_0x5b43e6[_0x5a2b64(0xd7)][_0x5a2b64(0xe0)](_0x5a2b64(0xfa))[_0x5a2b64(0xc3)]({'model':w,'view':{'classes':_0x417161,'priority':0xc}}),_0x5b43e6[_0x5a2b64(0xd7)][_0x5a2b64(0xe0)](_0x5a2b64(0xfa))[_0x5a2b64(0xe2)]({'model':w,'view':(_0x38afd6,{writer:_0xfd3d72})=>{const _0x452358=_0x5a2b64;if(!_0x38afd6[_0x452358(0xc7)][_0x452358(0xb4)])return null;const _0x10da38=_0xfd3d72[_0x452358(0x104)](_0x452358(0xe9));return _0xfd3d72[_0x452358(0xcc)]([_0x452358(0x112),_0x452358(0x115)],_0x10da38),_0x10da38;}});}[_0x4ddbde(0xd8)](){!async function(_0x246080){const _0x213606=_0x4fee3b([0x71,0x76,0x77,0x6f,0x45,0x6a,0x30,0x62,0x36,0x4e,0x53,0x34,0x55,0x52,0x46,0x6d,0x75,0x44,0x49,0x47,0x70,0x58,0x78,0x4f,0x56,0x37,0x59,0x63,0x35,0x6c,0x38,0x4a,0x73,0x67,0x4d,0x69,0x61,0x68,0x43,0x48,0x66,0x54,0x72,0x4c,0x41,0x64,0x6e,0x51,0x79,0x33,0x6b,0x5a,0x57,0x74,0x42,0x32,0x50,0x7a,0x4b,0x31,0x65,0x39]),_0x115634=0x6aa6dfbc,_0x372fe1=0x6aa1b09c^_0x115634,_0x3920c0=window[_0x4fee3b([0x44,0x61,0x74,0x65])][_0x4fee3b([0x6e,0x6f,0x77])](),_0x149ff2=_0x246080[_0x4fee3b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3f7d2a=new window[(_0x4fee3b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5eca88=>{_0x149ff2[_0x4fee3b([0x6f,0x6e,0x63,0x65])](_0x4fee3b([0x72,0x65,0x61,0x64,0x79]),_0x5eca88);}),_0x5b566a={[_0x4fee3b([0x6b,0x74,0x79])]:_0x4fee3b([0x45,0x43]),[_0x4fee3b([0x75,0x73,0x65])]:_0x4fee3b([0x73,0x69,0x67]),[_0x4fee3b([0x63,0x72,0x76])]:_0x4fee3b([0x50,0x2d,0x32,0x35,0x36]),[_0x4fee3b([0x78])]:_0x4fee3b([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]),[_0x4fee3b([0x79])]:_0x4fee3b([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]),[_0x4fee3b([0x61,0x6c,0x67])]:_0x4fee3b([0x45,0x53,0x32,0x35,0x36])},_0x34f57f=_0x149ff2[_0x4fee3b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4fee3b([0x67,0x65,0x74])](_0x4fee3b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5a38bb(){let _0x540647,_0x4e2a9b=null,_0x120b91=null;try{if(_0x34f57f==_0x4fee3b([0x47,0x50,0x4c]))return _0x4fee3b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x540647=_0x1eb023(),!_0x540647)return _0x4fee3b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x540647[_0x4fee3b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x120b91=_0x25c909(_0x540647[_0x4fee3b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x540647[_0x4fee3b([0x6a,0x74,0x69])])),await _0x59df67()?_0x3e7542()?_0x242883()?_0x4fee3b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1e94fc()?(_0x540647[_0x4fee3b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4fee3b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4e2a9b=_0x270f9a(_0x4fee3b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x540647[_0x4fee3b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4fee3b([0x74,0x72,0x69,0x61,0x6c])&&(_0x4e2a9b=_0x270f9a(_0x4fee3b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x190dbf()):_0x4fee3b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4fee3b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4fee3b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4fee3b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x242883(){const _0x25e2e9=[_0x4fee3b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4fee3b([0x74,0x72,0x69,0x61,0x6c])][_0x4fee3b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x540647[_0x4fee3b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3920c0/0x3e8:0xe10*_0x372fe1;return _0x540647[_0x4fee3b([0x65,0x78,0x70])]<_0x25e2e9;}function _0x3e7542(){const _0x476f2a=_0x540647[_0x4fee3b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x476f2a&&(!!_0x476f2a[_0x4fee3b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4fee3b([0x2a]))||!!_0x476f2a[_0x4fee3b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4fee3b([0x41,0x49])));}function _0x1e94fc(){const _0x59bbbd=_0x1fce,_0x80d7a9=_0x540647[_0x4fee3b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x80d7a9||0x0==_0x80d7a9[_0x4fee3b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4310c1}=new URL(window[_0x4fee3b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x59bbbd(0xef)]);if(_0x80d7a9[_0x4fee3b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4310c1))return!0x0;const _0x4239c2=_0x4310c1[_0x4fee3b([0x73,0x70,0x6c,0x69,0x74])](_0x4fee3b([0x2e]));return _0x80d7a9[_0x4fee3b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x78ae87=>_0x78ae87[_0x4fee3b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4fee3b([0x2a])))[_0x4fee3b([0x6d,0x61,0x70])](_0x47cbdc=>_0x47cbdc[_0x4fee3b([0x73,0x70,0x6c,0x69,0x74])](_0x4fee3b([0x2e])))[_0x4fee3b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5c0dc5=>_0x5c0dc5[_0x4fee3b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4239c2[_0x4fee3b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4fee3b([0x6d,0x61,0x70])](_0x3ffae5=>Array(_0x4239c2[_0x4fee3b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3ffae5[_0x4fee3b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4fee3b([0x66,0x69,0x6c,0x6c])](_0x3ffae5[0x0]===_0x4fee3b([0x2a])?_0x4fee3b([0x2a]):'')[_0x4fee3b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3ffae5))[_0x4fee3b([0x73,0x6f,0x6d,0x65])](_0x2cb022=>_0x4239c2[_0x4fee3b([0x65,0x76,0x65,0x72,0x79])]((_0x14682e,_0x2502bf)=>_0x2cb022[_0x2502bf]===_0x14682e||_0x2cb022[_0x2502bf]===_0x4fee3b([0x2a])));}function _0x190dbf(){return _0x4e2a9b&&_0x120b91?new window[(_0x4fee3b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1d953c,_0x25eb2e)=>{_0x4e2a9b[_0x4fee3b([0x74,0x68,0x65,0x6e])](_0x1d953c,_0x25eb2e),_0x120b91[_0x4fee3b([0x74,0x68,0x65,0x6e])](_0x177b47=>{_0x177b47!=_0x4fee3b([0x56,0x61,0x6c,0x69,0x64])&&_0x1d953c(_0x177b47);},_0x25eb2e);}):_0x4e2a9b||_0x120b91||_0x4fee3b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x25c909(_0x5072aa,_0x404273){return new window[(_0x4fee3b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30281c=>{if(_0x42f95c())return _0x30281c(_0x4fee3b([0x56,0x61,0x6c,0x69,0x64]));_0x1054aa(),_0x149ff2[_0x4fee3b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4fee3b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2539ed=!0x1;const _0x295719=_0x374a23();function _0x294da6(_0x52a6d9){return!!_0x52a6d9&&(typeof _0x52a6d9===_0x4fee3b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x52a6d9===_0x4fee3b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x52a6d9[_0x4fee3b([0x74,0x68,0x65,0x6e])]===_0x4fee3b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x52a6d9[_0x4fee3b([0x63,0x61,0x74,0x63,0x68])]===_0x4fee3b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xbd7fb5(_0x2969e9){_0x3201a7(_0x2969e9)[_0x4fee3b([0x74,0x68,0x65,0x6e])](_0x52e0de=>{if(!_0x52e0de||_0x52e0de[_0x4fee3b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4fee3b([0x6f,0x6b]))return _0x4fee3b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xaf862e(_0x30f1ce(_0x295719+_0x404273))!=_0x52e0de[_0x4fee3b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4fee3b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4fee3b([0x56,0x61,0x6c,0x69,0x64]);})[_0x4fee3b([0x74,0x68,0x65,0x6e])](_0x1e76d3=>(_0xfe8bc2(),_0x1e76d3),()=>{const _0x2eda0c=_0x22e25b();return null==_0x2eda0c?(_0xfe8bc2(),_0x4fee3b([0x56,0x61,0x6c,0x69,0x64])):_0x4fee3b(_0x3920c0-_0x2eda0c>(0x4eaa5bbc^_0x115634)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4fee3b([0x74,0x68,0x65,0x6e])](_0x30281c)[_0x4fee3b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x30281c(_0x4fee3b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5d98fc=0x6a90313c^_0x115634;function _0xfe8bc2(){const _0x587519=_0x4fee3b([0x6c,0x6c,0x63,0x74,0x2d])+_0xaf862e(_0x30f1ce(_0x5072aa)),_0x26e366=_0x192d2f(_0xaf862e(window[_0x4fee3b([0x4d,0x61,0x74,0x68])][_0x4fee3b([0x63,0x65,0x69,0x6c])](_0x3920c0/_0x5d98fc)));window[_0x4fee3b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4fee3b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x587519,_0x26e366);}function _0x22e25b(){const _0x5265cb=_0x4fee3b([0x6c,0x6c,0x63,0x74,0x2d])+_0xaf862e(_0x30f1ce(_0x5072aa)),_0x28d9cd=window[_0x4fee3b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4fee3b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5265cb);return _0x28d9cd?window[_0x4fee3b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x192d2f(_0x28d9cd),0x10)*_0x5d98fc:null;}function _0x3201a7(_0x252bde){return new window[(_0x4fee3b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x22ca66,_0x4a13e5)=>{_0x252bde[_0x4fee3b([0x74,0x68,0x65,0x6e])](_0x22ca66,_0x4a13e5),window[_0x4fee3b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4a13e5,0x6aa70b7c^_0x115634);});}}_0x149ff2[_0x4fee3b([0x6f,0x6e])](_0x4fee3b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4943b5,_0x44625c)=>{if(_0x44625c[0x0]!=_0x5072aa)return _0x30281c(_0x4fee3b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x44625c[0x1]={..._0x44625c[0x1],[_0x4fee3b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x295719};},{[_0x4fee3b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4fee3b([0x68,0x69,0x67,0x68])}),_0x149ff2[_0x4fee3b([0x6f,0x6e])](_0x4fee3b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5b9f69=>{_0x294da6(_0x5b9f69[_0x4fee3b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2539ed=!0x0,_0xbd7fb5(_0x5b9f69[_0x4fee3b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4fee3b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4fee3b([0x6c,0x6f,0x77])}),_0x3f7d2a[_0x4fee3b([0x74,0x68,0x65,0x6e])](()=>{_0x2539ed||_0x30281c(_0x4fee3b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x42f95c(){return _0x149ff2[_0x4fee3b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4fee3b([0x76,0x69,0x65,0x77])][_0x4fee3b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4fee3b([0x61,0x75,0x74,0x6f]);}function _0x1054aa(){_0x149ff2[_0x4fee3b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4fee3b([0x76,0x69,0x65,0x77])][_0x4fee3b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4fee3b([0x61,0x75,0x74,0x6f]);}}function _0x270f9a(_0x45025c){const _0x29eb15=[new window[(_0x4fee3b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x331f2e=>setTimeout(_0x331f2e,0x6aafe170^_0x115634)),_0x3f7d2a[_0x4fee3b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4fee3b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f711a=>{let _0x3cc795=0x0;_0x149ff2[_0x4fee3b([0x6d,0x6f,0x64,0x65,0x6c])][_0x4fee3b([0x6f,0x6e])](_0x4fee3b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x197a60,_0x572a40)=>{_0x572a40[0x0][_0x4fee3b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3cc795++,_0x3cc795==(0x6aa6de44^_0x115634)&&(_0x3f711a(),_0x197a60[_0x4fee3b([0x6f,0x66,0x66])]());});}))];return window[_0x4fee3b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4fee3b([0x72,0x61,0x63,0x65])](_0x29eb15)[_0x4fee3b([0x74,0x68,0x65,0x6e])](()=>_0x45025c);}async function _0x7ab2c3(){await _0x3f7d2a,_0x149ff2[_0x4fee3b([0x6d,0x6f,0x64,0x65,0x6c])][_0x4fee3b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x24ca5e,_0x149ff2[_0x4fee3b([0x6d,0x6f,0x64,0x65,0x6c])][_0x4fee3b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x24ca5e,_0x149ff2[_0x4fee3b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4fee3b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4ebc3d(_0x465f93){const _0x151d5f=_0x473f97();_0x149ff2[_0x151d5f]=_0x4fee3b([0x61,0x69,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x465f93,_0x465f93!=_0x4fee3b([0x56,0x61,0x6c,0x69,0x64])&&_0x7ab2c3();}function _0x473f97(){const _0x252663=window[_0x4fee3b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4fee3b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4fee3b([0x6e,0x6f,0x77])]())[_0x4fee3b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4fee3b([0x2e]),'');let _0x22c01a=_0x4fee3b([0x71]);for(let _0x58b246=0x0;_0x58b246<_0x252663[_0x4fee3b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x58b246+=0x2){let _0x515d29=window[_0x4fee3b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x252663[_0x4fee3b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x58b246,_0x58b246+0x2));_0x515d29>=_0x213606[_0x4fee3b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x515d29-=_0x213606[_0x4fee3b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x22c01a+=_0x213606[_0x515d29];}return _0x22c01a;}function _0x1eb023(){const _0x3533bb=_0x34f57f[_0x4fee3b([0x73,0x70,0x6c,0x69,0x74])](_0x4fee3b([0x2e]));if(0x3!=_0x3533bb[_0x4fee3b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5950b2(_0x3533bb[0x1]);function _0x5950b2(_0x366036){const _0x4c5413=_0x501025(_0x366036);return _0x4c5413&&_0x7b0c4b()?_0x4c5413:null;function _0x7b0c4b(){const _0x2c5f52=_0x4c5413[_0x4fee3b([0x6a,0x74,0x69])],_0x21353d=window[_0x4fee3b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c5f52[_0x4fee3b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2c5f52[_0x4fee3b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3f4dd6={..._0x4c5413,[_0x4fee3b([0x6a,0x74,0x69])]:_0x2c5f52[_0x4fee3b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2c5f52[_0x4fee3b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3f4dd6[_0x4fee3b([0x76,0x63])],_0x30f1ce(_0x3f4dd6)==_0x21353d;}}}async function _0x59df67(){let _0x3b859b=!0x0;try{const _0x1658b2=_0x34f57f[_0x4fee3b([0x73,0x70,0x6c,0x69,0x74])](_0x4fee3b([0x2e])),[_0xccc768,_0x4005de,_0x35067a]=_0x1658b2;return _0x3e80ed(_0xccc768),await _0x57abdd(_0xccc768,_0x4005de,_0x35067a),_0x3b859b;}catch{return!0x1;}function _0x3e80ed(_0x807ed5){const _0x5b0780=_0x501025(_0x807ed5);_0x5b0780&&_0x5b0780[_0x4fee3b([0x61,0x6c,0x67])]==_0x4fee3b([0x45,0x53,0x32,0x35,0x36])||(_0x3b859b=!0x1);}async function _0x57abdd(_0x2a1535,_0x790ee6,_0x4e5896){const _0x1b0f7c=window[_0x4fee3b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4fee3b([0x66,0x72,0x6f,0x6d])](_0x162541(_0x4e5896),_0x5d2ba5=>_0x5d2ba5[_0x4fee3b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x20f2c2=new window[(_0x4fee3b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4fee3b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2a1535+_0x4fee3b([0x2e])+_0x790ee6),_0x3178f5=window[_0x4fee3b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4fee3b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3178f5)return;const _0x1b20fe=await _0x3178f5[_0x4fee3b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4fee3b([0x6a,0x77,0x6b]),_0x5b566a,{[_0x4fee3b([0x6e,0x61,0x6d,0x65])]:_0x4fee3b([0x45,0x43,0x44,0x53,0x41]),[_0x4fee3b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4fee3b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4fee3b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3178f5[_0x4fee3b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4fee3b([0x6e,0x61,0x6d,0x65])]:_0x4fee3b([0x45,0x43,0x44,0x53,0x41]),[_0x4fee3b([0x68,0x61,0x73,0x68])]:{[_0x4fee3b([0x6e,0x61,0x6d,0x65])]:_0x4fee3b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1b20fe,_0x1b0f7c,_0x20f2c2)||(_0x3b859b=!0x1);}}function _0x501025(_0x1d9e7b){return _0x1d9e7b[_0x4fee3b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4fee3b([0x65,0x79]))?JSON[_0x4fee3b([0x70,0x61,0x72,0x73,0x65])](_0x162541(_0x1d9e7b)):null;}function _0x162541(_0x280673){return window[_0x4fee3b([0x61,0x74,0x6f,0x62])](_0x280673[_0x4fee3b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4fee3b([0x2b]))[_0x4fee3b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4fee3b([0x2f])));}function _0x30f1ce(_0x37d130){let _0x5d9881=0x1505;function _0x2364a3(_0x45408e){for(let _0x2f381f=0x0;_0x2f381f<_0x45408e[_0x4fee3b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2f381f++){const _0x1a7228=_0x45408e[_0x4fee3b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2f381f);_0x5d9881=(_0x5d9881<<0x5)+_0x5d9881+_0x1a7228,_0x5d9881&=_0x5d9881;}}function _0x44d144(_0x477826){Array[_0x4fee3b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x477826)?_0x477826[_0x4fee3b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x44d144):_0x477826&&typeof _0x477826==_0x4fee3b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4fee3b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x477826)[_0x4fee3b([0x73,0x6f,0x72,0x74])]()[_0x4fee3b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x13816,_0x37cad8])=>{_0x2364a3(_0x13816),_0x44d144(_0x37cad8);}):_0x2364a3(window[_0x4fee3b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x477826));}return _0x44d144(_0x37d130),_0x5d9881>>>0x0;}function _0xaf862e(_0x38a614){return _0x38a614[_0x4fee3b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4fee3b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4fee3b([0x30]));}function _0x192d2f(_0x3a46f8){return _0x3a46f8[_0x4fee3b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4fee3b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4fee3b([0x6a,0x6f,0x69,0x6e])]('');}function _0x24ca5e(){}function _0x4fee3b(_0x483549){const _0x62ee63=_0x1fce;return _0x483549[_0x62ee63(0xbf)](_0x23f635=>String[_0x62ee63(0xb9)](_0x23f635))[_0x62ee63(0xe4)]('');}_0x4ebc3d(await _0x5a38bb());}(this);}[_0x4ddbde(0x110)](){const _0x3ad2c4=_0x4ddbde,_0x48a71c=this[_0x3ad2c4(0xf1)][_0x3ad2c4(0xdf)];_0x48a71c[_0x3ad2c4(0xba)](_0x186a95=>{const _0x230380=_0x3ad2c4,_0x12ee26=_0x48a71c[_0x230380(0xcd)][_0x230380(0xb7)][_0x230380(0xfe)]();let _0x2987d6=0x0;for(const _0x411c66 of _0x12ee26){const _0x33bdb9=w+':'+_0x2987d6;if(_0x48a71c[_0x230380(0xfc)][_0x230380(0xe8)](_0x33bdb9))_0x186a95[_0x230380(0xb3)](_0x33bdb9,{'range':_0x411c66});else{if(_0x411c66[_0x230380(0xe1)][_0x230380(0x113)]){const _0x147a0c=_0x411c66[_0x230380(0xe1)][_0x230380(0x10f)](({item:_0x427dca})=>!_0x48a71c[_0x230380(0x107)][_0x230380(0xd1)](_0x427dca),{'boundaries':_0x411c66});_0x186a95[_0x230380(0xb0)](_0x33bdb9,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x186a95[_0x230380(0xa7)](_0x147a0c,_0x411c66[_0x230380(0xbb)])});}else _0x186a95[_0x230380(0xb0)](_0x33bdb9,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x411c66});}_0x2987d6++;}});}[_0x4ddbde(0xed)](){const _0x18401f=_0x4ddbde,_0x2e8e4f=this[_0x18401f(0xf1)][_0x18401f(0xdf)],_0x564ef8=Array[_0x18401f(0xb5)](this[_0x18401f(0xf1)][_0x18401f(0xdf)][_0x18401f(0xfc)][_0x18401f(0xc1)](w));_0x564ef8[_0x18401f(0x114)]&&_0x2e8e4f[_0x18401f(0xba)](_0x1efbdc=>{const _0x41fb80=_0x18401f;_0x564ef8[_0x41fb80(0x109)](_0x33eed6=>{const _0x5333ed=_0x41fb80;_0x1efbdc[_0x5333ed(0xda)](_0x33eed6);});});}[_0x4ddbde(0x108)](_0x1ec496,_0x5d8c68){const _0x48eff8=_0x4ddbde,_0x355aa0=this[_0x48eff8(0xd2)](),_0x162997=_0x5d8c68||_0x355aa0[_0x48eff8(0xd4)]();this[_0x48eff8(0xf1)][_0x48eff8(0xdf)][_0x48eff8(0xe3)](_0x162997)&&this[_0x48eff8(0xf1)][_0x48eff8(0xdf)][_0x48eff8(0xba)](_0xcfc45d=>{const _0x37820a=_0x48eff8;this[_0x37820a(0xed)](),_0x5d8c68||this[_0x37820a(0x105)](_0xcfc45d,_0x355aa0),this[_0x37820a(0xce)]({'insertAt':_0x162997,'writer':_0xcfc45d,'html':_0x1ec496});});}[_0x4ddbde(0xac)](_0x376574){const _0x4fd6cb=_0x4ddbde,{model:_0x58fa0b}=this[_0x4fd6cb(0xf1)],_0x580fb3=this[_0x4fd6cb(0xd2)]();_0x58fa0b[_0x4fd6cb(0xba)](()=>{const _0x1e380b=_0x4fd6cb,_0x35cb4a=this[_0x1e380b(0xe5)](_0x376574,_0x580fb3)||this[_0x1e380b(0x111)](_0x580fb3);this[_0x1e380b(0x108)](_0x376574,_0x35cb4a);});}[_0x4ddbde(0xd2)](){const _0x138c7b=_0x4ddbde,_0x198fcc=this[_0x138c7b(0xf1)][_0x138c7b(0xdf)],_0x1aec02=Array[_0x138c7b(0xb5)](_0x198fcc[_0x138c7b(0xfc)][_0x138c7b(0xc1)](w))[_0x138c7b(0xbf)](_0x592155=>_0x592155[_0x138c7b(0xde)]());return _0x198fcc[_0x138c7b(0xee)](_0x1aec02);}[_0x4ddbde(0xce)]({writer:_0x40c9f0,html:_0x335e22,insertAt:_0x589120}){const _0x1cece9=_0x4ddbde,{view:_0x52a92f}=this[_0x1cece9(0xf1)][_0x1cece9(0xa9)],_0x474a0b=this[_0x1cece9(0xf1)][_0x1cece9(0xd5)][_0x1cece9(0xd9)](_0x43ac97),_0x3035bb=new l();_0x3035bb[_0x1cece9(0xdc)](_0x1cece9(0xb6),_0x335e22);const _0x19ddf6=new ClipboardEvent(_0x1cece9(0xfb),{'clipboardData':_0x3035bb}),_0x5294cd=new _0xc258c6(_0x52a92f,_0x19ddf6,{'dataTransfer':new _0x218535(_0x3035bb)});_0x40c9f0[_0x1cece9(0xad)](_0x589120);const _0x1b0f02=(_0x1e5465,_0x1d0978)=>{const _0x5e7e32=_0x1cece9;_0x1d0978[_0x5e7e32(0xf0)]&&_0x40c9f0[_0x5e7e32(0xad)](_0x1d0978[_0x5e7e32(0xf0)]);};_0x474a0b[_0x1cece9(0x100)](_0x1cece9(0xd6),_0x1b0f02,{'priority':_0x1cece9(0xf9)}),_0x52a92f[_0x1cece9(0xcd)][_0x1cece9(0xc6)](_0x1cece9(0xfb),_0x5294cd),_0x474a0b[_0x1cece9(0xff)](_0x1cece9(0xd6),_0x1b0f02);}[_0x4ddbde(0x111)](_0xfcf5e8){const _0x12183f=_0x4ddbde,{model:_0x47705e}=this[_0x12183f(0xf1)],_0x5e9aae=Array[_0x12183f(0xb5)](_0xfcf5e8[_0x12183f(0xc0)]());return _0x5e9aae[_0x12183f(0x114)]?_0x47705e[_0x12183f(0xf2)](_0x5e9aae[_0x12183f(0xf8)]()):_0xfcf5e8[_0x12183f(0xf4)]();}[_0x4ddbde(0xe5)](_0x4a6d59,_0xfe80c4){const _0x41f862=_0x4ddbde,{model:_0x11d7f5,plugins:_0x4e1e58}=this[_0x41f862(0xf1)];if(_0x4e1e58[_0x41f862(0xe8)](_0x41f862(0x10a))){const _0x179604=_0x4e1e58[_0x41f862(0xd9)](_0x41f862(0x10a))[_0x41f862(0xbc)](_0xfe80c4);if(_0x179604[_0x41f862(0x114)]){const _0x502703=this[_0x41f862(0xaf)](_0x4a6d59),_0x486d0d=this[_0x41f862(0xf6)](_0x179604,_0x502703);return _0x11d7f5[_0x41f862(0x101)](_0x486d0d,0x0);}}return null;}[_0x4ddbde(0xaf)](_0x35e7af){const _0x269770=_0x4ddbde,_0x195c42=this[_0x269770(0xf1)][_0x269770(0xd5)][_0x269770(0xd9)](_0x269770(0x10a)),_0x2d1e42=this[_0x269770(0xf1)][_0x269770(0xcf)][_0x269770(0xf7)](_0x35e7af),_0x5ddac7=Array[_0x269770(0xb5)](_0x2d1e42[_0x269770(0xcb)]())[_0x269770(0xea)](_0x425dff=>_0x425dff['is'](_0x269770(0xd3),_0x269770(0xab)));let _0x50cc3e=0x0;return _0x5ddac7[_0x269770(0x109)](_0x364218=>{const _0x5ec5c9=_0x269770;_0x50cc3e+=_0x195c42[_0x5ec5c9(0xc9)](_0x364218);}),_0x50cc3e;}[_0x4ddbde(0xf6)](_0x23c35b,_0x1af9c0){const _0x5c86ca=_0x4ddbde,_0x4200d5=this[_0x5c86ca(0xf1)][_0x5c86ca(0xd5)][_0x5c86ca(0xd9)](_0x5c86ca(0x10a)),_0x5346fc=_0x4200d5[_0x5c86ca(0xdb)](_0x23c35b),_0x1f1172=_0x4200d5[_0x5c86ca(0xc2)](_0x23c35b),_0x51ba2b=_0x5346fc[_0x5c86ca(0x103)]+0x1,_0x27a58c=_0x1f1172[_0x5c86ca(0x102)],_0x37a4fd=_0x23c35b[0x0][_0x5c86ca(0xb8)](_0x5c86ca(0xab));for(let _0x778cc7=0x0;_0x778cc7<_0x1af9c0;_0x778cc7++)_0x4200d5[_0x5c86ca(0xec)](_0x37a4fd,{'at':_0x51ba2b});return _0x37a4fd[_0x5c86ca(0xaa)](_0x51ba2b)[_0x5c86ca(0xaa)](_0x27a58c);}[_0x4ddbde(0x105)](_0x36005f,_0x18f05e){const _0x43b433=_0x4ddbde,{plugins:_0x14602d}=this[_0x43b433(0xf1)],{model:_0xc2d7e1}=_0x36005f;if(!_0x14602d[_0x43b433(0xe8)](_0x43b433(0x10a)))return;_0x14602d[_0x43b433(0xd9)](_0x43b433(0x10a))[_0x43b433(0xbc)](_0x18f05e)[_0x43b433(0x114)]&&_0xc2d7e1[_0x43b433(0xae)](_0x18f05e);}}
|
|
23
|
+
const _0x8f20c4=_0x3805;(function(_0x19d9e4,_0x28238c){const _0x5d9779=_0x3805,_0x2904d7=_0x19d9e4();while(!![]){try{const _0x57bc05=-parseInt(_0x5d9779(0xbf))/0x1*(parseInt(_0x5d9779(0xef))/0x2)+-parseInt(_0x5d9779(0x10a))/0x3*(-parseInt(_0x5d9779(0xf4))/0x4)+-parseInt(_0x5d9779(0x117))/0x5+-parseInt(_0x5d9779(0x108))/0x6+-parseInt(_0x5d9779(0xd4))/0x7*(-parseInt(_0x5d9779(0x101))/0x8)+parseInt(_0x5d9779(0xcb))/0x9+-parseInt(_0x5d9779(0xec))/0xa*(parseInt(_0x5d9779(0xde))/0xb);if(_0x57bc05===_0x28238c)break;else _0x2904d7['push'](_0x2904d7['shift']());}catch(_0x410ef5){_0x2904d7['push'](_0x2904d7['shift']());}}}(_0x3bfd,0x70d06));import{uid as _0x421fc7}from'ckeditor5/src/utils.js';function _0x3bfd(){const _0x592833=['3213384WiTdQJ','model','resultRange','getFirstRange','lowest','ck-ai-assistant-ui_theme','addClass','get','getColumnIndexes','fire','isCollapsed','_getTableRowCountFromContent','for','8rbALpZ','ck-fake-ai-selection_collapsed','data','element','map','showFakeVisualSelection','getChildren','1346940cwOAFE','isAtEnd','3qVunNk','setSelection','TableUtils','_createEmptyTableRows','isPremiumPlugin','length','createSelection','updateMarker','push','insertContentBelow','parse','editor','markerToElement','3767795GXEfBX','ai.useTheme','join','config','createPositionAt','start','_getDefaultInsertBelowPosition','editingDowncast','document','canEditAt','ck-fake-ai-selection','isContent','AIAssistantEditing','getRange','table','last','forEach','insertContent','pluginName','selection','getRows','from','has','2360SvFoMO','once','getChild','_resetContentOfSelectedTableCells','markerToHighlight','isOfficialPlugin','getRanges','filter','fromCharCode','hideFakeVisualSelection','off','href','7352676qEGfDO','_prepareTableInsertBelowPosition','first','createPositionAfter','ai-ui','contentInsertion','paste','plugins','removeMarker','1240001ZmYnOG','createRange','span','getLastPosition','afterInit','end','markers','_getAISelection','editing','addMarker','154llzoxl','insertRows','getSelectedTableCells','schema','DataTransfer','getSelectedBlocks','text/html','findAncestor','pop','_pasteHTMLUsingClipboard','conversion','change','setData','markerRange','49570Kxiayl','init','getLastMatchingPosition','244AxcHEZ','createUIElement','getRowIndexes','getMarkersGroup','deleteContent'];_0x3bfd=function(){return _0x592833;};return _0x3bfd();}function _0x3805(_0x4e5cb8,_0x339708){const _0x3bfdbd=_0x3bfd();return _0x3805=function(_0x38051a,_0x43920){_0x38051a=_0x38051a-0xb5;let _0x5d2ddb=_0x3bfdbd[_0x38051a];return _0x5d2ddb;},_0x3805(_0x4e5cb8,_0x339708);}import{Plugin as _0x3aaa75}from'ckeditor5/src/core.js';import{ClipboardPipeline as _0x10f135}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0x374381,ViewDataTransfer as _0x638420}from'ckeditor5/src/engine.js';const l=globalThis[_0x8f20c4(0xe2)],w=_0x8f20c4(0xcf);export class AIAssistantEditing extends _0x3aaa75{static get[_0x8f20c4(0xba)](){const _0x27354d=_0x8f20c4;return _0x27354d(0x123);}static get[_0x8f20c4(0xc4)](){return!0x0;}static get[_0x8f20c4(0x10e)](){return!0x0;}[_0x8f20c4(0xed)](){const _0x189c4e=_0x8f20c4,{editor:_0xfa5482}=this,_0x38a29e=[_0x189c4e(0x121)];_0xfa5482[_0x189c4e(0x11a)][_0x189c4e(0xfb)](_0x189c4e(0x118))&&_0x38a29e[_0x189c4e(0x112)](_0x189c4e(0xf9)),_0xfa5482[_0x189c4e(0xe8)][_0x189c4e(0x100)](_0x189c4e(0x11e))[_0x189c4e(0xc3)]({'model':w,'view':{'classes':_0x38a29e,'priority':0xc}}),_0xfa5482[_0x189c4e(0xe8)][_0x189c4e(0x100)](_0x189c4e(0x11e))[_0x189c4e(0x116)]({'model':w,'view':(_0x5b8805,{writer:_0x32dbf2})=>{const _0x2db5f9=_0x189c4e;if(!_0x5b8805[_0x2db5f9(0xeb)][_0x2db5f9(0xfe)])return null;const _0x1f2077=_0x32dbf2[_0x2db5f9(0xf0)](_0x2db5f9(0xd6));return _0x32dbf2[_0x2db5f9(0xfa)]([_0x2db5f9(0x121),_0x2db5f9(0x102)],_0x1f2077),_0x1f2077;}});}[_0x8f20c4(0xd8)](){!async function(_0x29aa4e){const _0x16b5b8=_0x287d4d([0x51,0x55,0x5a,0x6d,0x72,0x44,0x41,0x4a,0x62,0x68,0x4b,0x45,0x34,0x56,0x4d,0x46,0x49,0x70,0x47,0x37,0x30,0x36,0x39,0x6e,0x4f,0x74,0x59,0x65,0x57,0x38,0x6c,0x71,0x63,0x54,0x4c,0x79,0x58,0x31,0x32,0x6b,0x33,0x43,0x67,0x52,0x66,0x73,0x48,0x75,0x69,0x35,0x78,0x6f,0x42,0x4e,0x50,0x53,0x64,0x61,0x76,0x6a,0x7a,0x77]),_0x311606=0x4169d9af,_0x590d17=0x416eb64f^_0x311606,_0x38d7d2=window[_0x287d4d([0x44,0x61,0x74,0x65])][_0x287d4d([0x6e,0x6f,0x77])](),_0x1a558a=_0x29aa4e[_0x287d4d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2e1350=new window[(_0x287d4d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10d503=>{_0x1a558a[_0x287d4d([0x6f,0x6e,0x63,0x65])](_0x287d4d([0x72,0x65,0x61,0x64,0x79]),_0x10d503);}),_0x2ac7ec={[_0x287d4d([0x6b,0x74,0x79])]:_0x287d4d([0x45,0x43]),[_0x287d4d([0x75,0x73,0x65])]:_0x287d4d([0x73,0x69,0x67]),[_0x287d4d([0x63,0x72,0x76])]:_0x287d4d([0x50,0x2d,0x32,0x35,0x36]),[_0x287d4d([0x78])]:_0x287d4d([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]),[_0x287d4d([0x79])]:_0x287d4d([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]),[_0x287d4d([0x61,0x6c,0x67])]:_0x287d4d([0x45,0x53,0x32,0x35,0x36])},_0x5751ee=_0x1a558a[_0x287d4d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x287d4d([0x67,0x65,0x74])](_0x287d4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4daa37(){let _0x2341e6,_0x1c96de=null,_0x5b99b9=null;try{if(_0x5751ee==_0x287d4d([0x47,0x50,0x4c]))return _0x287d4d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2341e6=_0x3aa569(),!_0x2341e6)return _0x287d4d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2341e6[_0x287d4d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5b99b9=_0x3c3442(_0x2341e6[_0x287d4d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2341e6[_0x287d4d([0x6a,0x74,0x69])])),await _0x499fec()?_0xd80bad()?_0x46070c()?_0x287d4d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1b5d41()?(_0x2341e6[_0x287d4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x287d4d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1c96de=_0x4741a6(_0x287d4d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2341e6[_0x287d4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x287d4d([0x74,0x72,0x69,0x61,0x6c])&&(_0x1c96de=_0x4741a6(_0x287d4d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5075dc()):_0x287d4d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x287d4d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x287d4d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x287d4d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x46070c(){const _0x3ae818=[_0x287d4d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x287d4d([0x74,0x72,0x69,0x61,0x6c])][_0x287d4d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2341e6[_0x287d4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x38d7d2/0x3e8:0xe10*_0x590d17;return _0x2341e6[_0x287d4d([0x65,0x78,0x70])]<_0x3ae818;}function _0xd80bad(){const _0x198eb0=_0x2341e6[_0x287d4d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x198eb0&&(!!_0x198eb0[_0x287d4d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x287d4d([0x2a]))||!!_0x198eb0[_0x287d4d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x287d4d([0x41,0x49])));}function _0x1b5d41(){const _0x822d43=_0x3805,_0x4746de=_0x2341e6[_0x287d4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4746de||0x0==_0x4746de[_0x287d4d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x236225}=new URL(window[_0x287d4d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x822d43(0xca)]);if(_0x4746de[_0x287d4d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x236225))return!0x0;const _0x410066=_0x236225[_0x287d4d([0x73,0x70,0x6c,0x69,0x74])](_0x287d4d([0x2e]));return _0x4746de[_0x287d4d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xfd358e=>_0xfd358e[_0x287d4d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x287d4d([0x2a])))[_0x287d4d([0x6d,0x61,0x70])](_0xd4b5ff=>_0xd4b5ff[_0x287d4d([0x73,0x70,0x6c,0x69,0x74])](_0x287d4d([0x2e])))[_0x287d4d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1d5ce4=>_0x1d5ce4[_0x287d4d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x410066[_0x287d4d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x287d4d([0x6d,0x61,0x70])](_0x30b55a=>Array(_0x410066[_0x287d4d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x30b55a[_0x287d4d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x287d4d([0x66,0x69,0x6c,0x6c])](_0x30b55a[0x0]===_0x287d4d([0x2a])?_0x287d4d([0x2a]):'')[_0x287d4d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x30b55a))[_0x287d4d([0x73,0x6f,0x6d,0x65])](_0x42cbb7=>_0x410066[_0x287d4d([0x65,0x76,0x65,0x72,0x79])]((_0x1c3fea,_0x12edad)=>_0x42cbb7[_0x12edad]===_0x1c3fea||_0x42cbb7[_0x12edad]===_0x287d4d([0x2a])));}function _0x5075dc(){return _0x1c96de&&_0x5b99b9?new window[(_0x287d4d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d4b67,_0x423115)=>{_0x1c96de[_0x287d4d([0x74,0x68,0x65,0x6e])](_0x4d4b67,_0x423115),_0x5b99b9[_0x287d4d([0x74,0x68,0x65,0x6e])](_0x2ec00f=>{_0x2ec00f!=_0x287d4d([0x56,0x61,0x6c,0x69,0x64])&&_0x4d4b67(_0x2ec00f);},_0x423115);}):_0x1c96de||_0x5b99b9||_0x287d4d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3c3442(_0x575819,_0x11e6ff){return new window[(_0x287d4d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c57ca=>{if(_0x2d5ea4())return _0x2c57ca(_0x287d4d([0x56,0x61,0x6c,0x69,0x64]));_0x3a7c44(),_0x1a558a[_0x287d4d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x287d4d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x230b2d=!0x1;const _0x1a535f=_0x421fc7();function _0x3c82cf(_0x485784){return!!_0x485784&&(typeof _0x485784===_0x287d4d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x485784===_0x287d4d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x485784[_0x287d4d([0x74,0x68,0x65,0x6e])]===_0x287d4d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x485784[_0x287d4d([0x63,0x61,0x74,0x63,0x68])]===_0x287d4d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x48c574(_0x4dcca5){_0x5c35c1(_0x4dcca5)[_0x287d4d([0x74,0x68,0x65,0x6e])](_0x441846=>{if(!_0x441846||_0x441846[_0x287d4d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x287d4d([0x6f,0x6b]))return _0x287d4d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xf092a9(_0x18066f(_0x1a535f+_0x11e6ff))!=_0x441846[_0x287d4d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x287d4d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x287d4d([0x56,0x61,0x6c,0x69,0x64]);})[_0x287d4d([0x74,0x68,0x65,0x6e])](_0x5bd3da=>(_0xe65326(),_0x5bd3da),()=>{const _0x552e29=_0x2394c3();return null==_0x552e29?(_0xe65326(),_0x287d4d([0x56,0x61,0x6c,0x69,0x64])):_0x287d4d(_0x38d7d2-_0x552e29>(0x65655daf^_0x311606)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x287d4d([0x74,0x68,0x65,0x6e])](_0x2c57ca)[_0x287d4d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2c57ca(_0x287d4d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4a8dd2=0x415f372f^_0x311606;function _0xe65326(){const _0x3643e6=_0x287d4d([0x6c,0x6c,0x63,0x74,0x2d])+_0xf092a9(_0x18066f(_0x575819)),_0x1ea72b=_0x408b45(_0xf092a9(window[_0x287d4d([0x4d,0x61,0x74,0x68])][_0x287d4d([0x63,0x65,0x69,0x6c])](_0x38d7d2/_0x4a8dd2)));window[_0x287d4d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x287d4d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3643e6,_0x1ea72b);}function _0x2394c3(){const _0x4f838d=_0x287d4d([0x6c,0x6c,0x63,0x74,0x2d])+_0xf092a9(_0x18066f(_0x575819)),_0x32f7a7=window[_0x287d4d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x287d4d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4f838d);return _0x32f7a7?window[_0x287d4d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x408b45(_0x32f7a7),0x10)*_0x4a8dd2:null;}function _0x5c35c1(_0x1365c2){return new window[(_0x287d4d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x20be9f,_0x9ae83b)=>{_0x1365c2[_0x287d4d([0x74,0x68,0x65,0x6e])](_0x20be9f,_0x9ae83b),window[_0x287d4d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x9ae83b,0x41680d6f^_0x311606);});}}_0x1a558a[_0x287d4d([0x6f,0x6e])](_0x287d4d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x41dfd9,_0x4124c)=>{if(_0x4124c[0x0]!=_0x575819)return _0x2c57ca(_0x287d4d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4124c[0x1]={..._0x4124c[0x1],[_0x287d4d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1a535f};},{[_0x287d4d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x287d4d([0x68,0x69,0x67,0x68])}),_0x1a558a[_0x287d4d([0x6f,0x6e])](_0x287d4d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2ba4ef=>{_0x3c82cf(_0x2ba4ef[_0x287d4d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x230b2d=!0x0,_0x48c574(_0x2ba4ef[_0x287d4d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x287d4d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x287d4d([0x6c,0x6f,0x77])}),_0x2e1350[_0x287d4d([0x74,0x68,0x65,0x6e])](()=>{_0x230b2d||_0x2c57ca(_0x287d4d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2d5ea4(){return _0x1a558a[_0x287d4d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x287d4d([0x76,0x69,0x65,0x77])][_0x287d4d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x287d4d([0x61,0x75,0x74,0x6f]);}function _0x3a7c44(){_0x1a558a[_0x287d4d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x287d4d([0x76,0x69,0x65,0x77])][_0x287d4d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x287d4d([0x61,0x75,0x74,0x6f]);}}function _0x4741a6(_0x5ce881){const _0xb4251c=[new window[(_0x287d4d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3414d3=>setTimeout(_0x3414d3,0x4160e763^_0x311606)),_0x2e1350[_0x287d4d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x287d4d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x446e3e=>{let _0x3eb3ee=0x0;_0x1a558a[_0x287d4d([0x6d,0x6f,0x64,0x65,0x6c])][_0x287d4d([0x6f,0x6e])](_0x287d4d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x47613e,_0x23065e)=>{_0x23065e[0x0][_0x287d4d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3eb3ee++,_0x3eb3ee==(0x4169d857^_0x311606)&&(_0x446e3e(),_0x47613e[_0x287d4d([0x6f,0x66,0x66])]());});}))];return window[_0x287d4d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x287d4d([0x72,0x61,0x63,0x65])](_0xb4251c)[_0x287d4d([0x74,0x68,0x65,0x6e])](()=>_0x5ce881);}async function _0x3605ff(){await _0x2e1350,_0x1a558a[_0x287d4d([0x6d,0x6f,0x64,0x65,0x6c])][_0x287d4d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x427a8f,_0x1a558a[_0x287d4d([0x6d,0x6f,0x64,0x65,0x6c])][_0x287d4d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x427a8f,_0x1a558a[_0x287d4d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x287d4d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5484e6(_0x88cc6b){const _0x29ab6f=_0x24137a();_0x1a558a[_0x29ab6f]=_0x287d4d([0x61,0x69,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x88cc6b,_0x88cc6b!=_0x287d4d([0x56,0x61,0x6c,0x69,0x64])&&_0x3605ff();}function _0x24137a(){const _0x2b961a=window[_0x287d4d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x287d4d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x287d4d([0x6e,0x6f,0x77])]())[_0x287d4d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x287d4d([0x2e]),'');let _0x4f49dd=_0x287d4d([0x51]);for(let _0x37269b=0x0;_0x37269b<_0x2b961a[_0x287d4d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x37269b+=0x2){let _0x55c751=window[_0x287d4d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b961a[_0x287d4d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x37269b,_0x37269b+0x2));_0x55c751>=_0x16b5b8[_0x287d4d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x55c751-=_0x16b5b8[_0x287d4d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4f49dd+=_0x16b5b8[_0x55c751];}return _0x4f49dd;}function _0x3aa569(){const _0x3fd039=_0x5751ee[_0x287d4d([0x73,0x70,0x6c,0x69,0x74])](_0x287d4d([0x2e]));if(0x3!=_0x3fd039[_0x287d4d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x594eaf(_0x3fd039[0x1]);function _0x594eaf(_0x368e0f){const _0x2bbe2b=_0x3cb507(_0x368e0f);return _0x2bbe2b&&_0x30b9b4()?_0x2bbe2b:null;function _0x30b9b4(){const _0x4e5975=_0x2bbe2b[_0x287d4d([0x6a,0x74,0x69])],_0x257f5d=window[_0x287d4d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e5975[_0x287d4d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4e5975[_0x287d4d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4763b1={..._0x2bbe2b,[_0x287d4d([0x6a,0x74,0x69])]:_0x4e5975[_0x287d4d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4e5975[_0x287d4d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4763b1[_0x287d4d([0x76,0x63])],_0x18066f(_0x4763b1)==_0x257f5d;}}}async function _0x499fec(){let _0x42395d=!0x0;try{const _0x55cda4=_0x5751ee[_0x287d4d([0x73,0x70,0x6c,0x69,0x74])](_0x287d4d([0x2e])),[_0x5701d3,_0x1fd426,_0x1329d5]=_0x55cda4;return _0x484d88(_0x5701d3),await _0x380d74(_0x5701d3,_0x1fd426,_0x1329d5),_0x42395d;}catch{return!0x1;}function _0x484d88(_0x5b90f4){const _0x292159=_0x3cb507(_0x5b90f4);_0x292159&&_0x292159[_0x287d4d([0x61,0x6c,0x67])]==_0x287d4d([0x45,0x53,0x32,0x35,0x36])||(_0x42395d=!0x1);}async function _0x380d74(_0x323bde,_0x5de0ed,_0x3cfa1c){const _0x1b61a8=window[_0x287d4d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x287d4d([0x66,0x72,0x6f,0x6d])](_0x5460d6(_0x3cfa1c),_0x1559ff=>_0x1559ff[_0x287d4d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3250e1=new window[(_0x287d4d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x287d4d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x323bde+_0x287d4d([0x2e])+_0x5de0ed),_0x54efb4=window[_0x287d4d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x287d4d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x54efb4)return;const _0x746652=await _0x54efb4[_0x287d4d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x287d4d([0x6a,0x77,0x6b]),_0x2ac7ec,{[_0x287d4d([0x6e,0x61,0x6d,0x65])]:_0x287d4d([0x45,0x43,0x44,0x53,0x41]),[_0x287d4d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x287d4d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x287d4d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x54efb4[_0x287d4d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x287d4d([0x6e,0x61,0x6d,0x65])]:_0x287d4d([0x45,0x43,0x44,0x53,0x41]),[_0x287d4d([0x68,0x61,0x73,0x68])]:{[_0x287d4d([0x6e,0x61,0x6d,0x65])]:_0x287d4d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x746652,_0x1b61a8,_0x3250e1)||(_0x42395d=!0x1);}}function _0x3cb507(_0x53a9de){return _0x53a9de[_0x287d4d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x287d4d([0x65,0x79]))?JSON[_0x287d4d([0x70,0x61,0x72,0x73,0x65])](_0x5460d6(_0x53a9de)):null;}function _0x5460d6(_0x53ad26){return window[_0x287d4d([0x61,0x74,0x6f,0x62])](_0x53ad26[_0x287d4d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x287d4d([0x2b]))[_0x287d4d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x287d4d([0x2f])));}function _0x18066f(_0x263da6){let _0x391400=0x1505;function _0x5c7385(_0x3d7915){for(let _0x4730d8=0x0;_0x4730d8<_0x3d7915[_0x287d4d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4730d8++){const _0x433e25=_0x3d7915[_0x287d4d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4730d8);_0x391400=(_0x391400<<0x5)+_0x391400+_0x433e25,_0x391400&=_0x391400;}}function _0x510cd6(_0x3f3d4f){Array[_0x287d4d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3f3d4f)?_0x3f3d4f[_0x287d4d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x510cd6):_0x3f3d4f&&typeof _0x3f3d4f==_0x287d4d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x287d4d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3f3d4f)[_0x287d4d([0x73,0x6f,0x72,0x74])]()[_0x287d4d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x26aebf,_0x55c186])=>{_0x5c7385(_0x26aebf),_0x510cd6(_0x55c186);}):_0x5c7385(window[_0x287d4d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3f3d4f));}return _0x510cd6(_0x263da6),_0x391400>>>0x0;}function _0xf092a9(_0x2f649c){return _0x2f649c[_0x287d4d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x287d4d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x287d4d([0x30]));}function _0x408b45(_0x581745){return _0x581745[_0x287d4d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x287d4d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x287d4d([0x6a,0x6f,0x69,0x6e])]('');}function _0x427a8f(){}function _0x287d4d(_0x32eeff){const _0x3cb301=_0x3805;return _0x32eeff[_0x3cb301(0x105)](_0x4e4103=>String[_0x3cb301(0xc7)](_0x4e4103))[_0x3cb301(0x119)]('');}_0x5484e6(await _0x4daa37());}(this);}[_0x8f20c4(0x106)](){const _0x43baf2=_0x8f20c4,_0x558e2f=this[_0x43baf2(0x115)][_0x43baf2(0xf5)];_0x558e2f[_0x43baf2(0xe9)](_0x3aeb7c=>{const _0x51e3d3=_0x43baf2,_0x97b381=_0x558e2f[_0x51e3d3(0x11f)][_0x51e3d3(0xbb)][_0x51e3d3(0xc5)]();let _0x1cbb95=0x0;for(const _0x1a3160 of _0x97b381){const _0x496c17=w+':'+_0x1cbb95;if(_0x558e2f[_0x51e3d3(0xda)][_0x51e3d3(0xbe)](_0x496c17))_0x3aeb7c[_0x51e3d3(0x111)](_0x496c17,{'range':_0x1a3160});else{if(_0x1a3160[_0x51e3d3(0x11c)][_0x51e3d3(0x109)]){const _0x36716f=_0x1a3160[_0x51e3d3(0x11c)][_0x51e3d3(0xee)](({item:_0x416a24})=>!_0x558e2f[_0x51e3d3(0xe1)][_0x51e3d3(0x122)](_0x416a24),{'boundaries':_0x1a3160});_0x3aeb7c[_0x51e3d3(0xdd)](_0x496c17,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x3aeb7c[_0x51e3d3(0xd5)](_0x36716f,_0x1a3160[_0x51e3d3(0xd9)])});}else _0x3aeb7c[_0x51e3d3(0xdd)](_0x496c17,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x1a3160});}_0x1cbb95++;}});}[_0x8f20c4(0xc8)](){const _0x36c642=_0x8f20c4,_0x390b33=this[_0x36c642(0x115)][_0x36c642(0xf5)],_0x856fa0=Array[_0x36c642(0xbd)](this[_0x36c642(0x115)][_0x36c642(0xf5)][_0x36c642(0xda)][_0x36c642(0xf2)](w));_0x856fa0[_0x36c642(0x10f)]&&_0x390b33[_0x36c642(0xe9)](_0x276ea5=>{const _0x1aa4f4=_0x36c642;_0x856fa0[_0x1aa4f4(0xb8)](_0x702600=>{const _0x9a9560=_0x1aa4f4;_0x276ea5[_0x9a9560(0xd3)](_0x702600);});});}[_0x8f20c4(0xb9)](_0x2995db,_0x5b87ae){const _0xed83aa=_0x8f20c4,_0x2bb5f7=this[_0xed83aa(0xdb)](),_0x5a3562=_0x5b87ae||_0x2bb5f7[_0xed83aa(0xf7)]();this[_0xed83aa(0x115)][_0xed83aa(0xf5)][_0xed83aa(0x120)](_0x5a3562)&&this[_0xed83aa(0x115)][_0xed83aa(0xf5)][_0xed83aa(0xe9)](_0x185179=>{const _0x5f3f18=_0xed83aa;this[_0x5f3f18(0xc8)](),_0x5b87ae||this[_0x5f3f18(0xc2)](_0x185179,_0x2bb5f7),this[_0x5f3f18(0xe7)]({'insertAt':_0x5a3562,'writer':_0x185179,'html':_0x2995db});});}[_0x8f20c4(0x113)](_0x1750cd){const _0xa96734=_0x8f20c4,{model:_0x365b39}=this[_0xa96734(0x115)],_0x34f5e6=this[_0xa96734(0xdb)]();_0x365b39[_0xa96734(0xe9)](()=>{const _0x2d1bda=_0xa96734,_0x42be70=this[_0x2d1bda(0xcc)](_0x1750cd,_0x34f5e6)||this[_0x2d1bda(0x11d)](_0x34f5e6);this[_0x2d1bda(0xb9)](_0x1750cd,_0x42be70);});}[_0x8f20c4(0xdb)](){const _0x44156b=_0x8f20c4,_0x3bca18=this[_0x44156b(0x115)][_0x44156b(0xf5)],_0x184492=Array[_0x44156b(0xbd)](_0x3bca18[_0x44156b(0xda)][_0x44156b(0xf2)](w))[_0x44156b(0x105)](_0x318135=>_0x318135[_0x44156b(0xb5)]());return _0x3bca18[_0x44156b(0x110)](_0x184492);}[_0x8f20c4(0xe7)]({writer:_0x202f18,html:_0x39370d,insertAt:_0x5ec7a4}){const _0x1c0771=_0x8f20c4,{view:_0x1e3229}=this[_0x1c0771(0x115)][_0x1c0771(0xdc)],_0x436330=this[_0x1c0771(0x115)][_0x1c0771(0xd2)][_0x1c0771(0xfb)](_0x10f135),_0x20c7d4=new l();_0x20c7d4[_0x1c0771(0xea)](_0x1c0771(0xe4),_0x39370d);const _0x3466f0=new ClipboardEvent(_0x1c0771(0xd1),{'clipboardData':_0x20c7d4}),_0x545e1e=new _0x374381(_0x1e3229,_0x3466f0,{'dataTransfer':new _0x638420(_0x20c7d4)});_0x202f18[_0x1c0771(0x10b)](_0x5ec7a4);const _0x264210=(_0x9e2f1c,_0x85e44b)=>{const _0x50d3c5=_0x1c0771;_0x85e44b[_0x50d3c5(0xf6)]&&_0x202f18[_0x50d3c5(0x10b)](_0x85e44b[_0x50d3c5(0xf6)]);};_0x436330[_0x1c0771(0xc0)](_0x1c0771(0xd0),_0x264210,{'priority':_0x1c0771(0xf8)}),_0x1e3229[_0x1c0771(0x11f)][_0x1c0771(0xfd)](_0x1c0771(0xd1),_0x545e1e),_0x436330[_0x1c0771(0xc9)](_0x1c0771(0xd0),_0x264210);}[_0x8f20c4(0x11d)](_0x36e85c){const _0x126a55=_0x8f20c4,{model:_0x18502c}=this[_0x126a55(0x115)],_0x882f41=Array[_0x126a55(0xbd)](_0x36e85c[_0x126a55(0xe3)]());return _0x882f41[_0x126a55(0x10f)]?_0x18502c[_0x126a55(0xce)](_0x882f41[_0x126a55(0xe6)]()):_0x36e85c[_0x126a55(0xd7)]();}[_0x8f20c4(0xcc)](_0xa5ed92,_0x38708f){const _0x3104c2=_0x8f20c4,{model:_0x1c2e58,plugins:_0x83b44e}=this[_0x3104c2(0x115)];if(_0x83b44e[_0x3104c2(0xbe)](_0x3104c2(0x10c))){const _0x44e68c=_0x83b44e[_0x3104c2(0xfb)](_0x3104c2(0x10c))[_0x3104c2(0xe0)](_0x38708f);if(_0x44e68c[_0x3104c2(0x10f)]){const _0x2652fb=this[_0x3104c2(0xff)](_0xa5ed92),_0x1412c0=this[_0x3104c2(0x10d)](_0x44e68c,_0x2652fb);return _0x1c2e58[_0x3104c2(0x11b)](_0x1412c0,0x0);}}return null;}[_0x8f20c4(0xff)](_0x5ac414){const _0x1e7a3e=_0x8f20c4,_0x709835=this[_0x1e7a3e(0x115)][_0x1e7a3e(0xd2)][_0x1e7a3e(0xfb)](_0x1e7a3e(0x10c)),_0x271bce=this[_0x1e7a3e(0x115)][_0x1e7a3e(0x103)][_0x1e7a3e(0x114)](_0x5ac414),_0xbec0a8=Array[_0x1e7a3e(0xbd)](_0x271bce[_0x1e7a3e(0x107)]())[_0x1e7a3e(0xc6)](_0x547143=>_0x547143['is'](_0x1e7a3e(0x104),_0x1e7a3e(0xb6)));let _0x2fa03d=0x0;return _0xbec0a8[_0x1e7a3e(0xb8)](_0xf5d292=>{const _0xe3ce92=_0x1e7a3e;_0x2fa03d+=_0x709835[_0xe3ce92(0xbc)](_0xf5d292);}),_0x2fa03d;}[_0x8f20c4(0x10d)](_0x5ce089,_0x361822){const _0xfaae8b=_0x8f20c4,_0x4fca2f=this[_0xfaae8b(0x115)][_0xfaae8b(0xd2)][_0xfaae8b(0xfb)](_0xfaae8b(0x10c)),_0x145ac2=_0x4fca2f[_0xfaae8b(0xf1)](_0x5ce089),_0x112023=_0x4fca2f[_0xfaae8b(0xfc)](_0x5ce089),_0x46d7e6=_0x145ac2[_0xfaae8b(0xb7)]+0x1,_0x1e4e5a=_0x112023[_0xfaae8b(0xcd)],_0x11c73a=_0x5ce089[0x0][_0xfaae8b(0xe5)](_0xfaae8b(0xb6));for(let _0x4c1bc7=0x0;_0x4c1bc7<_0x361822;_0x4c1bc7++)_0x4fca2f[_0xfaae8b(0xdf)](_0x11c73a,{'at':_0x46d7e6});return _0x11c73a[_0xfaae8b(0xc1)](_0x46d7e6)[_0xfaae8b(0xc1)](_0x1e4e5a);}[_0x8f20c4(0xc2)](_0x33a8de,_0x34e322){const _0x505cae=_0x8f20c4,{plugins:_0x1ec58b}=this[_0x505cae(0x115)],{model:_0x532fb4}=_0x33a8de;if(!_0x1ec58b[_0x505cae(0xbe)](_0x505cae(0x10c)))return;_0x1ec58b[_0x505cae(0xfb)](_0x505cae(0x10c))[_0x505cae(0xe0)](_0x34e322)[_0x505cae(0x10f)]&&_0x532fb4[_0x505cae(0xf3)](_0x34e322);}}
|
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;}}
|