@ckeditor/ckeditor5-ai 46.0.1-alpha.4 → 46.0.1-alpha.6
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
|
-
const
|
|
23
|
+
const _0xd05251=_0x5d0f;function _0x5d0f(_0xf755a,_0x2b970a){const _0x5466f7=_0x5466();return _0x5d0f=function(_0x5d0feb,_0x2278bd){_0x5d0feb=_0x5d0feb-0x10a;let _0x41eb37=_0x5466f7[_0x5d0feb];return _0x41eb37;},_0x5d0f(_0xf755a,_0x2b970a);}(function(_0x115860,_0x44fef4){const _0x17ab70=_0x5d0f,_0x10df90=_0x115860();while(!![]){try{const _0x4bf047=-parseInt(_0x17ab70(0x13d))/0x1+parseInt(_0x17ab70(0x127))/0x2*(-parseInt(_0x17ab70(0x136))/0x3)+parseInt(_0x17ab70(0x128))/0x4*(parseInt(_0x17ab70(0x10c))/0x5)+-parseInt(_0x17ab70(0x13c))/0x6*(-parseInt(_0x17ab70(0x141))/0x7)+-parseInt(_0x17ab70(0x114))/0x8*(parseInt(_0x17ab70(0x13b))/0x9)+parseInt(_0x17ab70(0x12a))/0xa*(parseInt(_0x17ab70(0x117))/0xb)+-parseInt(_0x17ab70(0x12d))/0xc*(-parseInt(_0x17ab70(0x137))/0xd);if(_0x4bf047===_0x44fef4)break;else _0x10df90['push'](_0x10df90['shift']());}catch(_0x5972f1){_0x10df90['push'](_0x10df90['shift']());}}}(_0x5466,0x4ee9a));import{AITextAdapter as _0x385a66}from'./aitextadapter.js';function _0x5466(){const _0x3bb7f8=['stream','3033173tCoSKy','_apiUrl','_prepareRequestHeaders','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.','abortController','prepareMessages','signal','choices','stringify','ai.openAI.apiUrl','parse','pluginName','reject','locale','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','resolve','2YTjguG','28104wWOyTB','config','10wxCzIL','POST','ai.openAI.requestParameters','48luaYUH','_cleanUpData','Instruction:\x0a','includes','content','data:\x20','read','_prepareRequestParameters','https://api.openai.com/v1/chat/completions','633813wHARBx','2662829SVatVG','AI_ERROR_CONTEXT_LENGTH','[DONE]','ai.openAI.requestHeaders','9MobnqA','11742VcAucb','248894XBPibS','message','body','_requestParameters','581bAnDeN','decode','get','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.','_readStreamableResponse','length','delta','AI_ERROR_MODERATION','_isBufferIncomplete','context_length_exceeded','replace','editor','split','user','filter','map','Moderation','join','sendRequest','text','35ALcTwY','system','_readStaticResponse','gpt-4o','getReader','_requestHeaders','json','OpenAITextAdapter','4186376AhnlFN','define'];_0x5466=function(){return _0x3bb7f8;};return _0x5466();}import{AIRequestError as _0x3ace8f}from'./aiadapter.js';import{getTranslation as _0x54e3e3}from'../utils/common-translations.js';export class OpenAITextAdapter extends _0x385a66{[_0xd05251(0x118)];[_0xd05251(0x111)];[_0xd05251(0x140)];static get[_0xd05251(0x122)](){const _0x27e688=_0xd05251;return _0x27e688(0x113);}constructor(_0x2acd41){const _0x478ef9=_0xd05251;super(_0x2acd41),_0x2acd41[_0x478ef9(0x129)][_0x478ef9(0x115)](_0x478ef9(0x120),_0x478ef9(0x135)),_0x2acd41[_0x478ef9(0x129)][_0x478ef9(0x143)](_0x478ef9(0x12c))||_0x2acd41[_0x478ef9(0x129)][_0x478ef9(0x115)](_0x478ef9(0x12c),{'model':_0x478ef9(0x10f),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x478ef9(0x118)]=_0x2acd41[_0x478ef9(0x129)][_0x478ef9(0x143)](_0x478ef9(0x120)),this[_0x478ef9(0x111)]=_0x2acd41[_0x478ef9(0x129)][_0x478ef9(0x143)](_0x478ef9(0x13a))||{},this[_0x478ef9(0x140)]=_0x2acd41[_0x478ef9(0x129)][_0x478ef9(0x143)](_0x478ef9(0x12c));}async[_0xd05251(0x10a)]({query:_0x53d354,context:_0x3cfce6,onData:_0x4eabc2,actionId:_0x33311b}){const _0x1f9992=_0xd05251,_0x446237=this[_0x1f9992(0x14c)][_0x1f9992(0x124)],_0x3b1881=await this[_0x1f9992(0x11c)](_0x53d354,_0x3cfce6,_0x33311b),_0x19cb70=await this[_0x1f9992(0x119)](this[_0x1f9992(0x111)],_0x33311b),_0x4c3a76=await this[_0x1f9992(0x134)](this[_0x1f9992(0x140)],_0x33311b),_0x3f7f25={'messages':_0x3b1881,..._0x4c3a76},_0x150da8={'method':_0x1f9992(0x12b),'headers':_0x19cb70,'body':JSON[_0x1f9992(0x11f)](_0x3f7f25),'signal':this[_0x1f9992(0x11b)][_0x1f9992(0x11d)]},_0x16fa4b=await fetch(this[_0x1f9992(0x118)],_0x150da8);if(_0x16fa4b['ok'])return _0x4c3a76[_0x1f9992(0x116)]?await this[_0x1f9992(0x145)](_0x16fa4b,_0x4eabc2):await this[_0x1f9992(0x10e)](_0x16fa4b,_0x4eabc2),Promise[_0x1f9992(0x126)]();{const _0x4bdc82=await _0x16fa4b[_0x1f9992(0x10b)]();return _0x4bdc82[_0x1f9992(0x130)](_0x1f9992(0x14a))?Promise[_0x1f9992(0x123)](new _0x3ace8f(_0x54e3e3(_0x446237,_0x1f9992(0x138)))):_0x4bdc82[_0x1f9992(0x130)](_0x1f9992(0x151))?Promise[_0x1f9992(0x123)](new _0x3ace8f(_0x54e3e3(_0x446237,_0x1f9992(0x148)))):Promise[_0x1f9992(0x123)](new Error(_0x4bdc82));}}async[_0xd05251(0x11c)](_0x2083c5,_0x4dc535,_0x3e4949){const _0x16bf0c=_0xd05251;let _0x54b544,_0x56ac50;return _0x4dc535?(_0x54b544=_0x16bf0c(0x11a),_0x56ac50=_0x16bf0c(0x12f)+_0x2083c5+_0x16bf0c(0x125)+_0x4dc535):(_0x54b544=_0x16bf0c(0x144),_0x56ac50=_0x2083c5),[{'role':_0x16bf0c(0x10d),'content':_0x54b544},{'role':_0x16bf0c(0x14e),'content':_0x56ac50}];}async[_0xd05251(0x145)](_0x5049dc,_0x1f703f){const _0x5c54b6=_0xd05251,_0x1416b7=_0x5049dc[_0x5c54b6(0x13f)][_0x5c54b6(0x110)](),_0x5de1bf=new TextDecoder();let _0x32c97d='',_0x1e92ed='',_0x81f340='',_0xa7d771=!0x1;for(;!_0xa7d771;){const {done:_0x2bde06,value:_0x1daf06}=await _0x1416b7[_0x5c54b6(0x133)](),_0x6196fc=_0x32c97d+_0x5de1bf[_0x5c54b6(0x142)](_0x1daf06);let _0x7aa6e6='';_0xa7d771=_0x2bde06;try{_0x7aa6e6=this[_0x5c54b6(0x12e)](_0x6196fc),_0x32c97d='';}catch{_0x32c97d=_0x6196fc;continue;}_0x1e92ed+=_0x7aa6e6,!_0xa7d771&&this[_0x5c54b6(0x149)](_0x1e92ed)||_0x1e92ed&&(_0x81f340+=_0x1e92ed,_0x1e92ed='',_0x1f703f(_0x81f340));}return Promise[_0x5c54b6(0x126)]();}async[_0xd05251(0x10e)](_0x418fed,_0x516ccd){const _0x41adb3=_0xd05251;return _0x516ccd((await _0x418fed[_0x41adb3(0x112)]())[_0x41adb3(0x11e)][0x0][_0x41adb3(0x13e)][_0x41adb3(0x131)]),Promise[_0x41adb3(0x126)]();}[_0xd05251(0x149)](_0x1384a0){const _0x334b1a=_0xd05251,_0x79cfe4=_0x1384a0[_0x334b1a(0x14d)]('<')[_0x334b1a(0x146)]!==_0x1384a0[_0x334b1a(0x14d)]('>')[_0x334b1a(0x146)],_0x3e70be=_0x1384a0[_0x334b1a(0x146)]<0x1e;return _0x79cfe4&&_0x3e70be;}[_0xd05251(0x12e)](_0x101762){const _0x5108c9=_0xd05251;return _0x101762[_0x5108c9(0x14d)](/\n(?![^{]*\})/g)[_0x5108c9(0x150)](_0x31282d=>_0x31282d[_0x5108c9(0x14b)](_0x5108c9(0x132),''))[_0x5108c9(0x14f)](_0x3b2e9e=>_0x3b2e9e&&_0x3b2e9e[_0x5108c9(0x146)]>0x0&&_0x5108c9(0x139)!==_0x3b2e9e)[_0x5108c9(0x150)](_0x1cec0c=>{const _0x176eb3=_0x5108c9,{choices:_0x3afe17}=JSON[_0x176eb3(0x121)](_0x1cec0c);if(_0x3afe17[0x0]?.[_0x176eb3(0x147)]?.[_0x176eb3(0x131)])return _0x3afe17[0x0][_0x176eb3(0x147)][_0x176eb3(0x131)];})[_0x5108c9(0x14f)](_0x1c26e3=>_0x1c26e3)[_0x5108c9(0x152)]('');}}
|
package/src/aiassistant.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x30d874=_0x5bde;(function(_0x37b53a,_0x42d061){const _0x4a9bc1=_0x5bde,_0x35aa15=_0x37b53a();while(!![]){try{const _0x3b0962=parseInt(_0x4a9bc1(0x1d8))/0x1+-parseInt(_0x4a9bc1(0x22b))/0x2+parseInt(_0x4a9bc1(0x1f4))/0x3*(parseInt(_0x4a9bc1(0x210))/0x4)+-parseInt(_0x4a9bc1(0x233))/0x5+parseInt(_0x4a9bc1(0x230))/0x6*(-parseInt(_0x4a9bc1(0x1ef))/0x7)+parseInt(_0x4a9bc1(0x21d))/0x8*(parseInt(_0x4a9bc1(0x212))/0x9)+parseInt(_0x4a9bc1(0x221))/0xa*(parseInt(_0x4a9bc1(0x1d3))/0xb);if(_0x3b0962===_0x42d061)break;else _0x35aa15['push'](_0x35aa15['shift']());}catch(_0x2afc62){_0x35aa15['push'](_0x35aa15['shift']());}}}(_0x6c7e,0x65080));function _0x5bde(_0x446675,_0x240815){const _0x6c7e73=_0x6c7e();return _0x5bde=function(_0x5bde66,_0x3d7755){_0x5bde66=_0x5bde66-0x1d3;let _0x1f1ef6=_0x6c7e73[_0x5bde66];return _0x1f1ef6;},_0x5bde(_0x446675,_0x240815);}import{Plugin as _0x2ef7a4}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x42740f}from'./aiassistantui.js';import{AIAssistantEditing as _0x1b009b}from'./aiassistantediting.js';import{getTranslation as _0x222e32}from'./utils/common-translations.js';function _0x6c7e(){const _0x7edeba=['simplifyLanguage','40707GHsrqd','Arabic','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','Confident','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','locale','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','changeStyle','filter','Simplify\x20language','344usdDTD','Spanish','English','Translate','1340zWzLZp','set','push','isPremiumPlugin','German','includes','French','Generate\x20from\x20selection','translateFrench','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','405520asizIt','Direct','forEach','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Change\x20style','385716TIFgMR','Journalism','Portuguese','2522755lLVUvO','translateSpanish','AIAssistant','Translate\x20the\x20content\x20to\x20German\x20language.','professional','Poetic','define','Continue','generate','Hindi','changeTone','confident','ai.aiAssistant.preserveComments','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','friendly','requires','98219QJSiOT','translatePortuguese','get','config','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','205437QgQYoI','commands','concat','makeLonger','Friendly','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','Professional','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','Translate\x20the\x20content\x20to\x20Spanish\x20language.','Simplified\x20Chinese','business','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','ai.aiAssistant.removeCommands','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','translateHindi','Business','Translate\x20the\x20content\x20to\x20English\x20language.','translateArabic','casual','translateChinese','Legal','Translate\x20the\x20content\x20to\x20Arabic\x20language.','70SEsGLW','translateGerman','ai.aiAssistant.extraCommandGroups','groupId','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','502749eQScUb','Improve\x20writing','Summarize','makeShorter','find','direct','ai.aiAssistant.commands','continue','translateEnglish','Translate\x20the\x20content\x20to\x20Hindi\x20language.','Make\x20longer','Make\x20shorter','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','translate','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Casual','legal','journalism','editOrReview','Edit\x20or\x20review','summarize','pluginName','poetic','improveWriting','Translate\x20the\x20content\x20to\x20French\x20language.','isOfficialPlugin','Change\x20tone','4UjOVwc'];_0x6c7e=function(){return _0x7edeba;};return _0x6c7e();}import{normalizeCommandsConfig as _0x47fb6f}from'./utils/normalizecommandsconfig.js';export class AIAssistant extends _0x2ef7a4{static get[_0x30d874(0x242)](){return[_0x42740f,_0x1b009b];}static get[_0x30d874(0x20a)](){const _0x3b52fc=_0x30d874;return _0x3b52fc(0x235);}static get[_0x30d874(0x20e)](){return!0x0;}static get[_0x30d874(0x224)](){return!0x0;}constructor(_0x2303f1){const _0x4c9002=_0x30d874;super(_0x2303f1);const _0x190c6f=_0x2303f1[_0x4c9002(0x1d6)],_0x5d009d=_0x2303f1[_0x4c9002(0x218)];_0x190c6f[_0x4c9002(0x239)](_0x4c9002(0x23f),!0x0),_0x190c6f[_0x4c9002(0x239)](_0x4c9002(0x1fa),getDefaultAICommands(_0x5d009d)),_0x190c6f[_0x4c9002(0x239)](_0x4c9002(0x1f1),[]),_0x190c6f[_0x4c9002(0x239)](_0x4c9002(0x1e5),[]);let _0x27af61=_0x47fb6f(_0x190c6f[_0x4c9002(0x1d5)](_0x4c9002(0x1fa)),_0x5d009d);const _0x5c3fba=_0x190c6f[_0x4c9002(0x1d5)](_0x4c9002(0x1f1)),_0x1bbd88=_0x190c6f[_0x4c9002(0x1d5)](_0x4c9002(0x1e5));_0x5c3fba[_0x4c9002(0x22d)](_0xb7c5af=>{const _0x30ed75=_0x4c9002,_0x4a7096=_0x27af61[_0x30ed75(0x1f8)](_0x2c4c21=>_0x2c4c21[_0x30ed75(0x1f2)]===_0xb7c5af[_0x30ed75(0x1f2)]);_0x4a7096?_0x4a7096[_0x30ed75(0x1d9)]=_0x4a7096[_0x30ed75(0x1d9)][_0x30ed75(0x1da)](_0xb7c5af[_0x30ed75(0x1d9)]):_0x27af61[_0x30ed75(0x223)](_0xb7c5af);}),_0x27af61=_0x27af61[_0x4c9002(0x21b)](_0x1b908e=>!_0x1bbd88[_0x4c9002(0x226)](_0x1b908e[_0x4c9002(0x1f2)])),_0x27af61[_0x4c9002(0x22d)](_0x512e63=>{const _0x52541a=_0x4c9002;_0x512e63[_0x52541a(0x1d9)]=_0x512e63[_0x52541a(0x1d9)][_0x52541a(0x21b)](_0x299164=>!_0x1bbd88[_0x52541a(0x226)](_0x299164['id']));}),_0x190c6f[_0x4c9002(0x222)](_0x4c9002(0x1fa),_0x27af61);}}export function getDefaultAICommands(_0x2e070b){const _0x5e7f69=_0x30d874;return[{'groupId':_0x5e7f69(0x207),'groupLabel':_0x222e32(_0x2e070b,_0x5e7f69(0x208)),'commands':[{'id':_0x5e7f69(0x20c),'label':_0x222e32(_0x2e070b,_0x5e7f69(0x1f5)),'prompt':_0x5e7f69(0x1e6)},{'id':_0x5e7f69(0x1f7),'label':_0x222e32(_0x2e070b,_0x5e7f69(0x1ff)),'prompt':_0x5e7f69(0x1f3)},{'id':_0x5e7f69(0x1db),'label':_0x222e32(_0x2e070b,_0x5e7f69(0x1fe)),'prompt':_0x5e7f69(0x22e)},{'id':_0x5e7f69(0x211),'label':_0x222e32(_0x2e070b,_0x5e7f69(0x21c)),'prompt':_0x5e7f69(0x1e0)}]},{'groupId':_0x5e7f69(0x23b),'groupLabel':_0x222e32(_0x2e070b,_0x5e7f69(0x228)),'commands':[{'id':_0x5e7f69(0x209),'label':_0x222e32(_0x2e070b,_0x5e7f69(0x1f6)),'prompt':_0x5e7f69(0x240)},{'id':_0x5e7f69(0x1fb),'label':_0x222e32(_0x2e070b,_0x5e7f69(0x23a)),'prompt':_0x5e7f69(0x214)}]},{'groupId':_0x5e7f69(0x23d),'groupLabel':_0x222e32(_0x2e070b,_0x5e7f69(0x20f)),'commands':[{'id':_0x5e7f69(0x237),'label':_0x222e32(_0x2e070b,_0x5e7f69(0x1df)),'prompt':_0x5e7f69(0x1de)},{'id':_0x5e7f69(0x1eb),'label':_0x222e32(_0x2e070b,_0x5e7f69(0x204)),'prompt':_0x5e7f69(0x203)},{'id':_0x5e7f69(0x1f9),'label':_0x222e32(_0x2e070b,_0x5e7f69(0x22c)),'prompt':_0x5e7f69(0x200)},{'id':_0x5e7f69(0x23e),'label':_0x222e32(_0x2e070b,_0x5e7f69(0x215)),'prompt':_0x5e7f69(0x1d7)},{'id':_0x5e7f69(0x241),'label':_0x222e32(_0x2e070b,_0x5e7f69(0x1dc)),'prompt':_0x5e7f69(0x201)}]},{'groupId':_0x5e7f69(0x21a),'groupLabel':_0x222e32(_0x2e070b,_0x5e7f69(0x22f)),'commands':[{'id':_0x5e7f69(0x1e3),'label':_0x222e32(_0x2e070b,_0x5e7f69(0x1e8)),'prompt':_0x5e7f69(0x219)},{'id':_0x5e7f69(0x205),'label':_0x222e32(_0x2e070b,_0x5e7f69(0x1ed)),'prompt':_0x5e7f69(0x1dd)},{'id':_0x5e7f69(0x206),'label':_0x222e32(_0x2e070b,_0x5e7f69(0x231)),'prompt':_0x5e7f69(0x217)},{'id':_0x5e7f69(0x20b),'label':_0x222e32(_0x2e070b,_0x5e7f69(0x238)),'prompt':_0x5e7f69(0x1e4)}]},{'groupId':_0x5e7f69(0x202),'groupLabel':_0x222e32(_0x2e070b,_0x5e7f69(0x220)),'commands':[{'id':_0x5e7f69(0x1fc),'label':_0x222e32(_0x2e070b,_0x5e7f69(0x21f)),'prompt':_0x5e7f69(0x1e9)},{'id':_0x5e7f69(0x234),'label':_0x222e32(_0x2e070b,_0x5e7f69(0x21e)),'prompt':_0x5e7f69(0x1e1)},{'id':_0x5e7f69(0x1d4),'label':_0x222e32(_0x2e070b,_0x5e7f69(0x232)),'prompt':_0x5e7f69(0x22a)},{'id':_0x5e7f69(0x1f0),'label':_0x222e32(_0x2e070b,_0x5e7f69(0x225)),'prompt':_0x5e7f69(0x236)},{'id':_0x5e7f69(0x229),'label':_0x222e32(_0x2e070b,_0x5e7f69(0x227)),'prompt':_0x5e7f69(0x20d)},{'id':_0x5e7f69(0x1ec),'label':_0x222e32(_0x2e070b,_0x5e7f69(0x1e2)),'prompt':_0x5e7f69(0x216)},{'id':_0x5e7f69(0x1e7),'label':_0x222e32(_0x2e070b,_0x5e7f69(0x23c)),'prompt':_0x5e7f69(0x1fd)},{'id':_0x5e7f69(0x1ea),'label':_0x222e32(_0x2e070b,_0x5e7f69(0x213)),'prompt':_0x5e7f69(0x1ee)}]}];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x53bfc3=_0x12a3;function _0x5e3b(){const _0x15d260=['306YxIlkO','plugins','createUIElement','parse','canEditAt','8521551IEMcSN','document','markerToElement','push','392ccTWgY','212535ITJAKs','has','getLastMatchingPosition','isAtEnd','getFirstRange','markerToHighlight','204372ZfaPHe','showFakeVisualSelection','insertContentBelow','text/html','getMarkersGroup','getRowIndexes','isContent','model','findAncestor','off','createSelection','ck-ai-assistant-ui_theme','href','_createEmptyTableRows','hideFakeVisualSelection','getLastPosition','last','once','schema','setData','setSelection','for','editing','10pYmrAn','75865OyasdW','from','paste','pop','_pasteHTMLUsingClipboard','2373hOyYaK','ai-ui','fromCharCode','_getDefaultInsertBelowPosition','getRows','length','ck-fake-ai-selection_collapsed','_prepareTableInsertBelowPosition','isCollapsed','getSelectedTableCells','AIAssistantEditing','element','conversion','removeMarker','TableUtils','join','ck-fake-ai-selection','addClass','updateMarker','markers','insertContent','_resetContentOfSelectedTableCells','span','contentInsertion','_getTableRowCountFromContent','689949dPqPkb','getChildren','getRanges','map','table','createRange','createPositionAt','_getAISelection','editingDowncast','getSelectedBlocks','getColumnIndexes','filter','markerRange','getRange','createPositionAfter','insertRows','isPremiumPlugin','get','resultRange','isOfficialPlugin','fire','addMarker','afterInit','editor','init','data','start','config','deleteContent','change','getChild','selection','end','first','515044toFDVK','lowest','pluginName','DataTransfer','ai.useTheme','forEach'];_0x5e3b=function(){return _0x15d260;};return _0x5e3b();}(function(_0x3e3a48,_0x2e8a45){const _0x5c6bae=_0x12a3,_0x578a22=_0x3e3a48();while(!![]){try{const _0x36183c=parseInt(_0x5c6bae(0x1ca))/0x1+parseInt(_0x5c6bae(0x1d0))/0x2+-parseInt(_0x5c6bae(0x206))/0x3+parseInt(_0x5c6bae(0x1ba))/0x4+parseInt(_0x5c6bae(0x1e8))/0x5*(-parseInt(_0x5c6bae(0x1c0))/0x6)+-parseInt(_0x5c6bae(0x1ed))/0x7*(-parseInt(_0x5c6bae(0x1c9))/0x8)+parseInt(_0x5c6bae(0x1c5))/0x9*(parseInt(_0x5c6bae(0x1e7))/0xa);if(_0x36183c===_0x2e8a45)break;else _0x578a22['push'](_0x578a22['shift']());}catch(_0x5085f4){_0x578a22['push'](_0x578a22['shift']());}}}(_0x5e3b,0x626b6));import{uid as _0x28a1c8}from'ckeditor5/src/utils.js';import{Plugin as _0x2a0c5c}from'ckeditor5/src/core.js';import{ClipboardPipeline as _0x4fdbe4}from'ckeditor5/src/clipboard.js';function _0x12a3(_0x3dd6e7,_0x2db995){const _0x5e3bf9=_0x5e3b();return _0x12a3=function(_0x12a3a6,_0xcb001b){_0x12a3a6=_0x12a3a6-0x1b7;let _0x58a517=_0x5e3bf9[_0x12a3a6];return _0x58a517;},_0x12a3(_0x3dd6e7,_0x2db995);}import{ViewDocumentDomEventData as _0x1e6b20,ViewDataTransfer as _0xa724c}from'ckeditor5/src/engine.js';const l=globalThis[_0x53bfc3(0x1bd)],w=_0x53bfc3(0x1ee);export class AIAssistantEditing extends _0x2a0c5c{static get[_0x53bfc3(0x1bc)](){const _0x3d9ce8=_0x53bfc3;return _0x3d9ce8(0x1f7);}static get[_0x53bfc3(0x219)](){return!0x0;}static get[_0x53bfc3(0x216)](){return!0x0;}[_0x53bfc3(0x21e)](){const _0x46727b=_0x53bfc3,{editor:_0x4f50de}=this,_0x91ab4d=[_0x46727b(0x1fd)];_0x4f50de[_0x46727b(0x221)][_0x46727b(0x217)](_0x46727b(0x1be))&&_0x91ab4d[_0x46727b(0x1c8)](_0x46727b(0x1db)),_0x4f50de[_0x46727b(0x1f9)][_0x46727b(0x1e5)](_0x46727b(0x20e))[_0x46727b(0x1cf)]({'model':w,'view':{'classes':_0x91ab4d,'priority':0xc}}),_0x4f50de[_0x46727b(0x1f9)][_0x46727b(0x1e5)](_0x46727b(0x20e))[_0x46727b(0x1c7)]({'model':w,'view':(_0x34fff9,{writer:_0x25311c})=>{const _0x26fb48=_0x46727b;if(!_0x34fff9[_0x26fb48(0x212)][_0x26fb48(0x1f5)])return null;const _0x9ecd18=_0x25311c[_0x26fb48(0x1c2)](_0x26fb48(0x203));return _0x25311c[_0x26fb48(0x1fe)]([_0x26fb48(0x1fd),_0x26fb48(0x1f3)],_0x9ecd18),_0x9ecd18;}});}[_0x53bfc3(0x21c)](){!async function(_0x1d61b0){const _0x510305=_0x1eeb67([0x37,0x72,0x32,0x6d,0x66,0x4d,0x70,0x39,0x6e,0x59,0x41,0x64,0x47,0x35,0x33,0x57,0x4f,0x7a,0x53,0x42,0x49,0x54,0x61,0x63,0x58,0x4a,0x65,0x78,0x51,0x4e,0x55,0x34,0x36,0x46,0x45,0x69,0x77,0x44,0x5a,0x6b,0x43,0x4b,0x75,0x79,0x31,0x38,0x74,0x68,0x71,0x50,0x52,0x48,0x67,0x73,0x6f,0x6c,0x62,0x4c,0x76,0x6a,0x30,0x56]),_0x10b77f=0x60240aac,_0x287368=0x602365c4^_0x10b77f,_0x339361=window[_0x1eeb67([0x44,0x61,0x74,0x65])][_0x1eeb67([0x6e,0x6f,0x77])](),_0x13691c=_0x1d61b0[_0x1eeb67([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2100d7=new window[(_0x1eeb67([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f3e33=>{_0x13691c[_0x1eeb67([0x6f,0x6e,0x63,0x65])](_0x1eeb67([0x72,0x65,0x61,0x64,0x79]),_0x5f3e33);}),_0x47a263={[_0x1eeb67([0x6b,0x74,0x79])]:_0x1eeb67([0x45,0x43]),[_0x1eeb67([0x75,0x73,0x65])]:_0x1eeb67([0x73,0x69,0x67]),[_0x1eeb67([0x63,0x72,0x76])]:_0x1eeb67([0x50,0x2d,0x32,0x35,0x36]),[_0x1eeb67([0x78])]:_0x1eeb67([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]),[_0x1eeb67([0x79])]:_0x1eeb67([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]),[_0x1eeb67([0x61,0x6c,0x67])]:_0x1eeb67([0x45,0x53,0x32,0x35,0x36])},_0x48f4a7=_0x13691c[_0x1eeb67([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1eeb67([0x67,0x65,0x74])](_0x1eeb67([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3419a1(){let _0x79722c,_0x2853ef=null,_0x3bcdc0=null;try{if(_0x48f4a7==_0x1eeb67([0x47,0x50,0x4c]))return _0x1eeb67([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x79722c=_0x39633d(),!_0x79722c)return _0x1eeb67([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x79722c[_0x1eeb67([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3bcdc0=_0x28b317(_0x79722c[_0x1eeb67([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x79722c[_0x1eeb67([0x6a,0x74,0x69])])),await _0x4013ed()?_0x49dbfe()?_0x5045eb()?_0x1eeb67([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x31057d()?(_0x79722c[_0x1eeb67([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1eeb67([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2853ef=_0x2b7a31(_0x1eeb67([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x79722c[_0x1eeb67([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1eeb67([0x74,0x72,0x69,0x61,0x6c])&&(_0x2853ef=_0x2b7a31(_0x1eeb67([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x11aed7()):_0x1eeb67([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1eeb67([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1eeb67([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1eeb67([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5045eb(){const _0x5bfdc6=[_0x1eeb67([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1eeb67([0x74,0x72,0x69,0x61,0x6c])][_0x1eeb67([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x79722c[_0x1eeb67([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x339361/0x3e8:0xe10*_0x287368;return _0x79722c[_0x1eeb67([0x65,0x78,0x70])]<_0x5bfdc6;}function _0x49dbfe(){const _0x639471=_0x79722c[_0x1eeb67([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x639471&&(!!_0x639471[_0x1eeb67([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1eeb67([0x2a]))||!!_0x639471[_0x1eeb67([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1eeb67([0x41,0x49])));}function _0x31057d(){const _0x494642=_0x12a3,_0x3730b2=_0x79722c[_0x1eeb67([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3730b2||0x0==_0x3730b2[_0x1eeb67([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3f4914}=new URL(window[_0x1eeb67([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x494642(0x1dc)]);if(_0x3730b2[_0x1eeb67([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f4914))return!0x0;const _0x3a7acd=_0x3f4914[_0x1eeb67([0x73,0x70,0x6c,0x69,0x74])](_0x1eeb67([0x2e]));return _0x3730b2[_0x1eeb67([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3d9bd5=>_0x3d9bd5[_0x1eeb67([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1eeb67([0x2a])))[_0x1eeb67([0x6d,0x61,0x70])](_0x147663=>_0x147663[_0x1eeb67([0x73,0x70,0x6c,0x69,0x74])](_0x1eeb67([0x2e])))[_0x1eeb67([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5056d8=>_0x5056d8[_0x1eeb67([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3a7acd[_0x1eeb67([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1eeb67([0x6d,0x61,0x70])](_0x54aff6=>Array(_0x3a7acd[_0x1eeb67([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x54aff6[_0x1eeb67([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1eeb67([0x66,0x69,0x6c,0x6c])](_0x54aff6[0x0]===_0x1eeb67([0x2a])?_0x1eeb67([0x2a]):'')[_0x1eeb67([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x54aff6))[_0x1eeb67([0x73,0x6f,0x6d,0x65])](_0x1fea41=>_0x3a7acd[_0x1eeb67([0x65,0x76,0x65,0x72,0x79])]((_0x17e87e,_0x2e9a6c)=>_0x1fea41[_0x2e9a6c]===_0x17e87e||_0x1fea41[_0x2e9a6c]===_0x1eeb67([0x2a])));}function _0x11aed7(){return _0x2853ef&&_0x3bcdc0?new window[(_0x1eeb67([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4f2d96,_0x237e23)=>{_0x2853ef[_0x1eeb67([0x74,0x68,0x65,0x6e])](_0x4f2d96,_0x237e23),_0x3bcdc0[_0x1eeb67([0x74,0x68,0x65,0x6e])](_0x853aaf=>{_0x853aaf!=_0x1eeb67([0x56,0x61,0x6c,0x69,0x64])&&_0x4f2d96(_0x853aaf);},_0x237e23);}):_0x2853ef||_0x3bcdc0||_0x1eeb67([0x56,0x61,0x6c,0x69,0x64]);}}function _0x28b317(_0x166263,_0x5510b0){return new window[(_0x1eeb67([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17508d=>{if(_0x13fc6a())return _0x17508d(_0x1eeb67([0x56,0x61,0x6c,0x69,0x64]));_0x47fa36(),_0x13691c[_0x1eeb67([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1eeb67([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x248fcc=!0x1;const _0x37e17a=_0x28a1c8();function _0x25cb9f(_0x3393a1){return!!_0x3393a1&&(typeof _0x3393a1===_0x1eeb67([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3393a1===_0x1eeb67([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3393a1[_0x1eeb67([0x74,0x68,0x65,0x6e])]===_0x1eeb67([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3393a1[_0x1eeb67([0x63,0x61,0x74,0x63,0x68])]===_0x1eeb67([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x40d062(_0x366eb3){_0x197adf(_0x366eb3)[_0x1eeb67([0x74,0x68,0x65,0x6e])](_0x275cd0=>{if(!_0x275cd0||_0x275cd0[_0x1eeb67([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1eeb67([0x6f,0x6b]))return _0x1eeb67([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1f0f88(_0x1a07aa(_0x37e17a+_0x5510b0))!=_0x275cd0[_0x1eeb67([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1eeb67([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1eeb67([0x56,0x61,0x6c,0x69,0x64]);})[_0x1eeb67([0x74,0x68,0x65,0x6e])](_0x261031=>(_0x438cbc(),_0x261031),()=>{const _0x1913c5=_0x2a0177();return null==_0x1913c5?(_0x438cbc(),_0x1eeb67([0x56,0x61,0x6c,0x69,0x64])):_0x1eeb67(_0x339361-_0x1913c5>(0x44288eac^_0x10b77f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1eeb67([0x74,0x68,0x65,0x6e])](_0x17508d)[_0x1eeb67([0x63,0x61,0x74,0x63,0x68])](()=>{_0x17508d(_0x1eeb67([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x57d57d=0x6012e42c^_0x10b77f;function _0x438cbc(){const _0x4d83cd=_0x1eeb67([0x6c,0x6c,0x63,0x74,0x2d])+_0x1f0f88(_0x1a07aa(_0x166263)),_0x42c880=_0x1c2be0(_0x1f0f88(window[_0x1eeb67([0x4d,0x61,0x74,0x68])][_0x1eeb67([0x63,0x65,0x69,0x6c])](_0x339361/_0x57d57d)));window[_0x1eeb67([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1eeb67([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4d83cd,_0x42c880);}function _0x2a0177(){const _0x4b21bc=_0x1eeb67([0x6c,0x6c,0x63,0x74,0x2d])+_0x1f0f88(_0x1a07aa(_0x166263)),_0x202eb3=window[_0x1eeb67([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1eeb67([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4b21bc);return _0x202eb3?window[_0x1eeb67([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1c2be0(_0x202eb3),0x10)*_0x57d57d:null;}function _0x197adf(_0x56ec66){return new window[(_0x1eeb67([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x19fa2c,_0x22e3b7)=>{_0x56ec66[_0x1eeb67([0x74,0x68,0x65,0x6e])](_0x19fa2c,_0x22e3b7),window[_0x1eeb67([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x22e3b7,0x6025de6c^_0x10b77f);});}}_0x13691c[_0x1eeb67([0x6f,0x6e])](_0x1eeb67([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5b5c1c,_0x4bf16b)=>{if(_0x4bf16b[0x0]!=_0x166263)return _0x17508d(_0x1eeb67([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4bf16b[0x1]={..._0x4bf16b[0x1],[_0x1eeb67([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x37e17a};},{[_0x1eeb67([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1eeb67([0x68,0x69,0x67,0x68])}),_0x13691c[_0x1eeb67([0x6f,0x6e])](_0x1eeb67([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x42e5de=>{_0x25cb9f(_0x42e5de[_0x1eeb67([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x248fcc=!0x0,_0x40d062(_0x42e5de[_0x1eeb67([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1eeb67([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1eeb67([0x6c,0x6f,0x77])}),_0x2100d7[_0x1eeb67([0x74,0x68,0x65,0x6e])](()=>{_0x248fcc||_0x17508d(_0x1eeb67([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x13fc6a(){return _0x13691c[_0x1eeb67([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1eeb67([0x76,0x69,0x65,0x77])][_0x1eeb67([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1eeb67([0x61,0x75,0x74,0x6f]);}function _0x47fa36(){_0x13691c[_0x1eeb67([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1eeb67([0x76,0x69,0x65,0x77])][_0x1eeb67([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1eeb67([0x61,0x75,0x74,0x6f]);}}function _0x2b7a31(_0x3b9b75){const _0x49a9ec=[new window[(_0x1eeb67([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x312662=>setTimeout(_0x312662,0x602d3460^_0x10b77f)),_0x2100d7[_0x1eeb67([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1eeb67([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ff046=>{let _0x4d84f5=0x0;_0x13691c[_0x1eeb67([0x6d,0x6f,0x64,0x65,0x6c])][_0x1eeb67([0x6f,0x6e])](_0x1eeb67([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x396a59,_0x1bc4d9)=>{_0x1bc4d9[0x0][_0x1eeb67([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4d84f5++,_0x4d84f5==(0x60240b54^_0x10b77f)&&(_0x2ff046(),_0x396a59[_0x1eeb67([0x6f,0x66,0x66])]());});}))];return window[_0x1eeb67([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1eeb67([0x72,0x61,0x63,0x65])](_0x49a9ec)[_0x1eeb67([0x74,0x68,0x65,0x6e])](()=>_0x3b9b75);}async function _0x55cf90(){await _0x2100d7,_0x13691c[_0x1eeb67([0x6d,0x6f,0x64,0x65,0x6c])][_0x1eeb67([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x564395,_0x13691c[_0x1eeb67([0x6d,0x6f,0x64,0x65,0x6c])][_0x1eeb67([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x564395,_0x13691c[_0x1eeb67([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1eeb67([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xfa6181(_0x54c364){const _0x41525d=_0x3a3f81();_0x13691c[_0x41525d]=_0x1eeb67([0x61,0x69,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x54c364,_0x54c364!=_0x1eeb67([0x56,0x61,0x6c,0x69,0x64])&&_0x55cf90();}function _0x3a3f81(){const _0x4563af=window[_0x1eeb67([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1eeb67([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1eeb67([0x6e,0x6f,0x77])]())[_0x1eeb67([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1eeb67([0x2e]),'');let _0xf41307=_0x1eeb67([0x72]);for(let _0x3b6f48=0x0;_0x3b6f48<_0x4563af[_0x1eeb67([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b6f48+=0x2){let _0x2dd285=window[_0x1eeb67([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4563af[_0x1eeb67([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b6f48,_0x3b6f48+0x2));_0x2dd285>=_0x510305[_0x1eeb67([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2dd285-=_0x510305[_0x1eeb67([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xf41307+=_0x510305[_0x2dd285];}return _0xf41307;}function _0x39633d(){const _0x4064e9=_0x48f4a7[_0x1eeb67([0x73,0x70,0x6c,0x69,0x74])](_0x1eeb67([0x2e]));if(0x3!=_0x4064e9[_0x1eeb67([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x53ee75(_0x4064e9[0x1]);function _0x53ee75(_0x320ac3){const _0x2ada75=_0x69c99e(_0x320ac3);return _0x2ada75&&_0x288d5b()?_0x2ada75:null;function _0x288d5b(){const _0x3cb873=_0x2ada75[_0x1eeb67([0x6a,0x74,0x69])],_0x217926=window[_0x1eeb67([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3cb873[_0x1eeb67([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3cb873[_0x1eeb67([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x465d03={..._0x2ada75,[_0x1eeb67([0x6a,0x74,0x69])]:_0x3cb873[_0x1eeb67([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3cb873[_0x1eeb67([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x465d03[_0x1eeb67([0x76,0x63])],_0x1a07aa(_0x465d03)==_0x217926;}}}async function _0x4013ed(){let _0x3d1c7c=!0x0;try{const _0x32f5a1=_0x48f4a7[_0x1eeb67([0x73,0x70,0x6c,0x69,0x74])](_0x1eeb67([0x2e])),[_0x1a0a03,_0x172f6b,_0x204e16]=_0x32f5a1;return _0x553968(_0x1a0a03),await _0x1748eb(_0x1a0a03,_0x172f6b,_0x204e16),_0x3d1c7c;}catch{return!0x1;}function _0x553968(_0x56b3fc){const _0x402a15=_0x69c99e(_0x56b3fc);_0x402a15&&_0x402a15[_0x1eeb67([0x61,0x6c,0x67])]==_0x1eeb67([0x45,0x53,0x32,0x35,0x36])||(_0x3d1c7c=!0x1);}async function _0x1748eb(_0x39e0de,_0x585f1b,_0x2b2ed0){const _0x20b15a=window[_0x1eeb67([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1eeb67([0x66,0x72,0x6f,0x6d])](_0xef9d0e(_0x2b2ed0),_0x2b85a6=>_0x2b85a6[_0x1eeb67([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x51f98f=new window[(_0x1eeb67([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1eeb67([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x39e0de+_0x1eeb67([0x2e])+_0x585f1b),_0x4bca0e=window[_0x1eeb67([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1eeb67([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4bca0e)return;const _0x1d8d69=await _0x4bca0e[_0x1eeb67([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1eeb67([0x6a,0x77,0x6b]),_0x47a263,{[_0x1eeb67([0x6e,0x61,0x6d,0x65])]:_0x1eeb67([0x45,0x43,0x44,0x53,0x41]),[_0x1eeb67([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1eeb67([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1eeb67([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4bca0e[_0x1eeb67([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1eeb67([0x6e,0x61,0x6d,0x65])]:_0x1eeb67([0x45,0x43,0x44,0x53,0x41]),[_0x1eeb67([0x68,0x61,0x73,0x68])]:{[_0x1eeb67([0x6e,0x61,0x6d,0x65])]:_0x1eeb67([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1d8d69,_0x20b15a,_0x51f98f)||(_0x3d1c7c=!0x1);}}function _0x69c99e(_0x315af7){return _0x315af7[_0x1eeb67([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1eeb67([0x65,0x79]))?JSON[_0x1eeb67([0x70,0x61,0x72,0x73,0x65])](_0xef9d0e(_0x315af7)):null;}function _0xef9d0e(_0x2b0729){return window[_0x1eeb67([0x61,0x74,0x6f,0x62])](_0x2b0729[_0x1eeb67([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1eeb67([0x2b]))[_0x1eeb67([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1eeb67([0x2f])));}function _0x1a07aa(_0xa0b020){let _0x36dd37=0x1505;function _0x226f29(_0x4de830){for(let _0x224b25=0x0;_0x224b25<_0x4de830[_0x1eeb67([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x224b25++){const _0x49beb1=_0x4de830[_0x1eeb67([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x224b25);_0x36dd37=(_0x36dd37<<0x5)+_0x36dd37+_0x49beb1,_0x36dd37&=_0x36dd37;}}function _0x322a9d(_0x250a72){Array[_0x1eeb67([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x250a72)?_0x250a72[_0x1eeb67([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x322a9d):_0x250a72&&typeof _0x250a72==_0x1eeb67([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1eeb67([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x250a72)[_0x1eeb67([0x73,0x6f,0x72,0x74])]()[_0x1eeb67([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x24cd56,_0x23aac9])=>{_0x226f29(_0x24cd56),_0x322a9d(_0x23aac9);}):_0x226f29(window[_0x1eeb67([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x250a72));}return _0x322a9d(_0xa0b020),_0x36dd37>>>0x0;}function _0x1f0f88(_0x5ebc6e){return _0x5ebc6e[_0x1eeb67([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1eeb67([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1eeb67([0x30]));}function _0x1c2be0(_0x23d75f){return _0x23d75f[_0x1eeb67([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1eeb67([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1eeb67([0x6a,0x6f,0x69,0x6e])]('');}function _0x564395(){}function _0x1eeb67(_0x2f3647){const _0x2aa12a=_0x12a3;return _0x2f3647[_0x2aa12a(0x209)](_0x51c86a=>String[_0x2aa12a(0x1ef)](_0x51c86a))[_0x2aa12a(0x1fc)]('');}_0xfa6181(await _0x3419a1());}(this);}[_0x53bfc3(0x1d1)](){const _0xbc916a=_0x53bfc3,_0x80dde2=this[_0xbc916a(0x21d)][_0xbc916a(0x1d7)];_0x80dde2[_0xbc916a(0x223)](_0x3a256b=>{const _0x5df92c=_0xbc916a,_0x307b6b=_0x80dde2[_0x5df92c(0x1c6)][_0x5df92c(0x1b7)][_0x5df92c(0x208)]();let _0x36421d=0x0;for(const _0x3b60b9 of _0x307b6b){const _0x458101=w+':'+_0x36421d;if(_0x80dde2[_0x5df92c(0x200)][_0x5df92c(0x1cb)](_0x458101))_0x3a256b[_0x5df92c(0x1ff)](_0x458101,{'range':_0x3b60b9});else{if(_0x3b60b9[_0x5df92c(0x220)][_0x5df92c(0x1cd)]){const _0x38cedf=_0x3b60b9[_0x5df92c(0x220)][_0x5df92c(0x1cc)](({item:_0x37a04c})=>!_0x80dde2[_0x5df92c(0x1e2)][_0x5df92c(0x1d6)](_0x37a04c),{'boundaries':_0x3b60b9});_0x3a256b[_0x5df92c(0x21b)](_0x458101,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x3a256b[_0x5df92c(0x20b)](_0x38cedf,_0x3b60b9[_0x5df92c(0x1b8)])});}else _0x3a256b[_0x5df92c(0x21b)](_0x458101,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x3b60b9});}_0x36421d++;}});}[_0x53bfc3(0x1de)](){const _0x2e5415=_0x53bfc3,_0x126229=this[_0x2e5415(0x21d)][_0x2e5415(0x1d7)],_0x4382b1=Array[_0x2e5415(0x1e9)](this[_0x2e5415(0x21d)][_0x2e5415(0x1d7)][_0x2e5415(0x200)][_0x2e5415(0x1d4)](w));_0x4382b1[_0x2e5415(0x1f2)]&&_0x126229[_0x2e5415(0x223)](_0x3ea6d5=>{const _0x580a63=_0x2e5415;_0x4382b1[_0x580a63(0x1bf)](_0x5d52d1=>{const _0x127911=_0x580a63;_0x3ea6d5[_0x127911(0x1fa)](_0x5d52d1);});});}[_0x53bfc3(0x201)](_0xdeeb44,_0x1167cd){const _0x53630c=_0x53bfc3,_0x559796=this[_0x53630c(0x20d)](),_0x4693bd=_0x1167cd||_0x559796[_0x53630c(0x1ce)]();this[_0x53630c(0x21d)][_0x53630c(0x1d7)][_0x53630c(0x1c4)](_0x4693bd)&&this[_0x53630c(0x21d)][_0x53630c(0x1d7)][_0x53630c(0x223)](_0x46f3dc=>{const _0x1c8b59=_0x53630c;this[_0x1c8b59(0x1de)](),_0x1167cd||this[_0x1c8b59(0x202)](_0x46f3dc,_0x559796),this[_0x1c8b59(0x1ec)]({'insertAt':_0x4693bd,'writer':_0x46f3dc,'html':_0xdeeb44});});}[_0x53bfc3(0x1d2)](_0x21f49c){const _0x4351dc=_0x53bfc3,{model:_0x4455a0}=this[_0x4351dc(0x21d)],_0x3016b8=this[_0x4351dc(0x20d)]();_0x4455a0[_0x4351dc(0x223)](()=>{const _0x15ee8e=_0x4351dc,_0x1e2d15=this[_0x15ee8e(0x1f4)](_0x21f49c,_0x3016b8)||this[_0x15ee8e(0x1f0)](_0x3016b8);this[_0x15ee8e(0x201)](_0x21f49c,_0x1e2d15);});}[_0x53bfc3(0x20d)](){const _0x259c42=_0x53bfc3,_0x557410=this[_0x259c42(0x21d)][_0x259c42(0x1d7)],_0x16a526=Array[_0x259c42(0x1e9)](_0x557410[_0x259c42(0x200)][_0x259c42(0x1d4)](w))[_0x259c42(0x209)](_0x540f99=>_0x540f99[_0x259c42(0x213)]());return _0x557410[_0x259c42(0x1da)](_0x16a526);}[_0x53bfc3(0x1ec)]({writer:_0x454290,html:_0x1a6490,insertAt:_0x521080}){const _0x4b0deb=_0x53bfc3,{view:_0x4cbc25}=this[_0x4b0deb(0x21d)][_0x4b0deb(0x1e6)],_0x28ef9c=this[_0x4b0deb(0x21d)][_0x4b0deb(0x1c1)][_0x4b0deb(0x217)](_0x4fdbe4),_0x27147c=new l();_0x27147c[_0x4b0deb(0x1e3)](_0x4b0deb(0x1d3),_0x1a6490);const _0x168cfc=new ClipboardEvent(_0x4b0deb(0x1ea),{'clipboardData':_0x27147c}),_0x1b4f03=new _0x1e6b20(_0x4cbc25,_0x168cfc,{'dataTransfer':new _0xa724c(_0x27147c)});_0x454290[_0x4b0deb(0x1e4)](_0x521080);const _0x18dc8e=(_0x36355e,_0x3b8b5d)=>{const _0x1d99fd=_0x4b0deb;_0x3b8b5d[_0x1d99fd(0x218)]&&_0x454290[_0x1d99fd(0x1e4)](_0x3b8b5d[_0x1d99fd(0x218)]);};_0x28ef9c[_0x4b0deb(0x1e1)](_0x4b0deb(0x204),_0x18dc8e,{'priority':_0x4b0deb(0x1bb)}),_0x4cbc25[_0x4b0deb(0x1c6)][_0x4b0deb(0x21a)](_0x4b0deb(0x1ea),_0x1b4f03),_0x28ef9c[_0x4b0deb(0x1d9)](_0x4b0deb(0x204),_0x18dc8e);}[_0x53bfc3(0x1f0)](_0x19a95c){const _0x4e06ae=_0x53bfc3,{model:_0x1e449d}=this[_0x4e06ae(0x21d)],_0x21d4b8=Array[_0x4e06ae(0x1e9)](_0x19a95c[_0x4e06ae(0x20f)]());return _0x21d4b8[_0x4e06ae(0x1f2)]?_0x1e449d[_0x4e06ae(0x214)](_0x21d4b8[_0x4e06ae(0x1eb)]()):_0x19a95c[_0x4e06ae(0x1df)]();}[_0x53bfc3(0x1f4)](_0x307177,_0x10b2c7){const _0xd7afdc=_0x53bfc3,{model:_0x1b4521,plugins:_0x1106e4}=this[_0xd7afdc(0x21d)];if(_0x1106e4[_0xd7afdc(0x1cb)](_0xd7afdc(0x1fb))){const _0x5daa3b=_0x1106e4[_0xd7afdc(0x217)](_0xd7afdc(0x1fb))[_0xd7afdc(0x1f6)](_0x10b2c7);if(_0x5daa3b[_0xd7afdc(0x1f2)]){const _0x13a656=this[_0xd7afdc(0x205)](_0x307177),_0x22e719=this[_0xd7afdc(0x1dd)](_0x5daa3b,_0x13a656);return _0x1b4521[_0xd7afdc(0x20c)](_0x22e719,0x0);}}return null;}[_0x53bfc3(0x205)](_0x110f90){const _0x3fb031=_0x53bfc3,_0x598554=this[_0x3fb031(0x21d)][_0x3fb031(0x1c1)][_0x3fb031(0x217)](_0x3fb031(0x1fb)),_0x369681=this[_0x3fb031(0x21d)][_0x3fb031(0x21f)][_0x3fb031(0x1c3)](_0x110f90),_0x10fe61=Array[_0x3fb031(0x1e9)](_0x369681[_0x3fb031(0x207)]())[_0x3fb031(0x211)](_0x4b2d1a=>_0x4b2d1a['is'](_0x3fb031(0x1f8),_0x3fb031(0x20a)));let _0x2d539c=0x0;return _0x10fe61[_0x3fb031(0x1bf)](_0x409741=>{const _0x5efc53=_0x3fb031;_0x2d539c+=_0x598554[_0x5efc53(0x1f1)](_0x409741);}),_0x2d539c;}[_0x53bfc3(0x1dd)](_0x120589,_0x3a2030){const _0x5491e0=_0x53bfc3,_0xb07b29=this[_0x5491e0(0x21d)][_0x5491e0(0x1c1)][_0x5491e0(0x217)](_0x5491e0(0x1fb)),_0x545b1a=_0xb07b29[_0x5491e0(0x1d5)](_0x120589),_0x467c28=_0xb07b29[_0x5491e0(0x210)](_0x120589),_0x14b2a=_0x545b1a[_0x5491e0(0x1e0)]+0x1,_0x177f0f=_0x467c28[_0x5491e0(0x1b9)],_0x369363=_0x120589[0x0][_0x5491e0(0x1d8)](_0x5491e0(0x20a));for(let _0x22a093=0x0;_0x22a093<_0x3a2030;_0x22a093++)_0xb07b29[_0x5491e0(0x215)](_0x369363,{'at':_0x14b2a});return _0x369363[_0x5491e0(0x224)](_0x14b2a)[_0x5491e0(0x224)](_0x177f0f);}[_0x53bfc3(0x202)](_0x264b4e,_0x4ef4a4){const _0xdb72a6=_0x53bfc3,{plugins:_0x15f76d}=this[_0xdb72a6(0x21d)],{model:_0x45bd36}=_0x264b4e;if(!_0x15f76d[_0xdb72a6(0x1cb)](_0xdb72a6(0x1fb)))return;_0x15f76d[_0xdb72a6(0x217)](_0xdb72a6(0x1fb))[_0xdb72a6(0x1f6)](_0x4ef4a4)[_0xdb72a6(0x1f2)]&&_0x45bd36[_0xdb72a6(0x222)](_0x4ef4a4);}}
|
|
23
|
+
const _0x271ddd=_0x3c14;(function(_0x4aecd9,_0x215c33){const _0x5e89a7=_0x3c14,_0x386361=_0x4aecd9();while(!![]){try{const _0x2d24b4=parseInt(_0x5e89a7(0x1d0))/0x1+parseInt(_0x5e89a7(0x1d7))/0x2+parseInt(_0x5e89a7(0x1e6))/0x3+-parseInt(_0x5e89a7(0x1cf))/0x4+-parseInt(_0x5e89a7(0x1bb))/0x5*(-parseInt(_0x5e89a7(0x1d8))/0x6)+-parseInt(_0x5e89a7(0x1f1))/0x7*(-parseInt(_0x5e89a7(0x194))/0x8)+-parseInt(_0x5e89a7(0x1ad))/0x9;if(_0x2d24b4===_0x215c33)break;else _0x386361['push'](_0x386361['shift']());}catch(_0x21ca34){_0x386361['push'](_0x386361['shift']());}}}(_0x4e4d,0xbf111));import{uid as _0x4a02f4}from'ckeditor5/src/utils.js';import{Plugin as _0x1c6eb9}from'ckeditor5/src/core.js';import{ClipboardPipeline as _0x557364}from'ckeditor5/src/clipboard.js';function _0x3c14(_0x260463,_0x2c4f35){const _0x4e4dec=_0x4e4d();return _0x3c14=function(_0x3c14af,_0x149a1e){_0x3c14af=_0x3c14af-0x18a;let _0x3e8f41=_0x4e4dec[_0x3c14af];return _0x3e8f41;},_0x3c14(_0x260463,_0x2c4f35);}function _0x4e4d(){const _0xe8da1f=['join','href','_resetContentOfSelectedTableCells','element','getColumnIndexes','getLastMatchingPosition','schema','has','createUIElement','ck-fake-ai-selection_collapsed','58648ajvFiH','fire','getSelectedTableCells','deleteContent','createSelection','getRange','AIAssistantEditing','conversion','length','end','getSelectedBlocks','lowest','resultRange','push','getChild','table','insertRows','from','getLastPosition','model','markerToHighlight','markerRange','paste','get','afterInit','34316505eRXZXX','markers','removeMarker','_prepareTableInsertBelowPosition','getFirstRange','map','canEditAt','isPremiumPlugin','getRows','span','start','TableUtils','markerToElement','editing','114630HiuKwO','_createEmptyTableRows','createRange','_getDefaultInsertBelowPosition','for','selection','setData','_pasteHTMLUsingClipboard','off','config','editingDowncast','showFakeVisualSelection','document','last','insertContent','getChildren','first','createPositionAt','once','ck-ai-assistant-ui_theme','687160GJXgSn','1277951rLnyKp','pluginName','ai-ui','isContent','data','setSelection','contentInsertion','1083270vyDysc','348UhxXZA','isCollapsed','_getAISelection','ck-fake-ai-selection','DataTransfer','getRanges','findAncestor','plugins','change','filter','ai.useTheme','parse','getMarkersGroup','_getTableRowCountFromContent','2149011wzSNSK','updateMarker','addClass','editor','init','createPositionAfter','getRowIndexes','text/html','isOfficialPlugin','pop','hideFakeVisualSelection','861GPRHZv','fromCharCode','isAtEnd','forEach','addMarker','insertContentBelow'];_0x4e4d=function(){return _0xe8da1f;};return _0x4e4d();}import{ViewDocumentDomEventData as _0x42b6e9,ViewDataTransfer as _0x8ac092}from'ckeditor5/src/engine.js';const l=globalThis[_0x271ddd(0x1dc)],w=_0x271ddd(0x1d2);export class AIAssistantEditing extends _0x1c6eb9{static get[_0x271ddd(0x1d1)](){const _0x2ef0bd=_0x271ddd;return _0x2ef0bd(0x19a);}static get[_0x271ddd(0x1ee)](){return!0x0;}static get[_0x271ddd(0x1b4)](){return!0x0;}[_0x271ddd(0x1ea)](){const _0x3565f6=_0x271ddd,{editor:_0x59323e}=this,_0x598613=[_0x3565f6(0x1db)];_0x59323e[_0x3565f6(0x1c4)][_0x3565f6(0x1ab)](_0x3565f6(0x1e2))&&_0x598613[_0x3565f6(0x1a1)](_0x3565f6(0x1ce)),_0x59323e[_0x3565f6(0x19b)][_0x3565f6(0x1bf)](_0x3565f6(0x1c5))[_0x3565f6(0x1a8)]({'model':w,'view':{'classes':_0x598613,'priority':0xc}}),_0x59323e[_0x3565f6(0x19b)][_0x3565f6(0x1bf)](_0x3565f6(0x1c5))[_0x3565f6(0x1b9)]({'model':w,'view':(_0x1968e0,{writer:_0x4f5160})=>{const _0x1f8cf3=_0x3565f6;if(!_0x1968e0[_0x1f8cf3(0x1a9)][_0x1f8cf3(0x1d9)])return null;const _0x5d0a73=_0x4f5160[_0x1f8cf3(0x192)](_0x1f8cf3(0x1b6));return _0x4f5160[_0x1f8cf3(0x1e8)]([_0x1f8cf3(0x1db),_0x1f8cf3(0x193)],_0x5d0a73),_0x5d0a73;}});}[_0x271ddd(0x1ac)](){!async function(_0x424b72){const _0x47eec9=_0x2c4e77([0x76,0x4b,0x45,0x56,0x6f,0x64,0x46,0x61,0x72,0x53,0x70,0x38,0x42,0x77,0x6d,0x6b,0x48,0x49,0x43,0x6e,0x79,0x69,0x6a,0x33,0x39,0x37,0x32,0x73,0x6c,0x35,0x65,0x4e,0x4c,0x63,0x4f,0x52,0x55,0x75,0x7a,0x68,0x44,0x54,0x67,0x41,0x47,0x57,0x51,0x5a,0x36,0x58,0x31,0x71,0x34,0x4a,0x59,0x50,0x78,0x62,0x66,0x30,0x4d,0x74]),_0x206a82=0x50ed7bca,_0x4151c5=0x50ea1452^_0x206a82,_0x2fd738=window[_0x2c4e77([0x44,0x61,0x74,0x65])][_0x2c4e77([0x6e,0x6f,0x77])](),_0x56633e=_0x424b72[_0x2c4e77([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x7256c4=new window[(_0x2c4e77([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ff356=>{_0x56633e[_0x2c4e77([0x6f,0x6e,0x63,0x65])](_0x2c4e77([0x72,0x65,0x61,0x64,0x79]),_0x4ff356);}),_0x574232={[_0x2c4e77([0x6b,0x74,0x79])]:_0x2c4e77([0x45,0x43]),[_0x2c4e77([0x75,0x73,0x65])]:_0x2c4e77([0x73,0x69,0x67]),[_0x2c4e77([0x63,0x72,0x76])]:_0x2c4e77([0x50,0x2d,0x32,0x35,0x36]),[_0x2c4e77([0x78])]:_0x2c4e77([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]),[_0x2c4e77([0x79])]:_0x2c4e77([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]),[_0x2c4e77([0x61,0x6c,0x67])]:_0x2c4e77([0x45,0x53,0x32,0x35,0x36])},_0x5555ce=_0x56633e[_0x2c4e77([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2c4e77([0x67,0x65,0x74])](_0x2c4e77([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1d49af(){let _0x4bf894,_0x242e81=null,_0x307cab=null;try{if(_0x5555ce==_0x2c4e77([0x47,0x50,0x4c]))return _0x2c4e77([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4bf894=_0x452e53(),!_0x4bf894)return _0x2c4e77([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4bf894[_0x2c4e77([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x307cab=_0x571b81(_0x4bf894[_0x2c4e77([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4bf894[_0x2c4e77([0x6a,0x74,0x69])])),await _0x5c0bd4()?_0x29c6e3()?_0x23716d()?_0x2c4e77([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1150df()?(_0x4bf894[_0x2c4e77([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2c4e77([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x242e81=_0x4e23ba(_0x2c4e77([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4bf894[_0x2c4e77([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2c4e77([0x74,0x72,0x69,0x61,0x6c])&&(_0x242e81=_0x4e23ba(_0x2c4e77([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4571c1()):_0x2c4e77([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2c4e77([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2c4e77([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2c4e77([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x23716d(){const _0x2af34c=[_0x2c4e77([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2c4e77([0x74,0x72,0x69,0x61,0x6c])][_0x2c4e77([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4bf894[_0x2c4e77([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2fd738/0x3e8:0xe10*_0x4151c5;return _0x4bf894[_0x2c4e77([0x65,0x78,0x70])]<_0x2af34c;}function _0x29c6e3(){const _0x3b67a5=_0x4bf894[_0x2c4e77([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3b67a5&&(!!_0x3b67a5[_0x2c4e77([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c4e77([0x2a]))||!!_0x3b67a5[_0x2c4e77([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c4e77([0x41,0x49])));}function _0x1150df(){const _0x36bfb7=_0x3c14,_0x564269=_0x4bf894[_0x2c4e77([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x564269||0x0==_0x564269[_0x2c4e77([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x59984b}=new URL(window[_0x2c4e77([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x36bfb7(0x18b)]);if(_0x564269[_0x2c4e77([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59984b))return!0x0;const _0x343ae=_0x59984b[_0x2c4e77([0x73,0x70,0x6c,0x69,0x74])](_0x2c4e77([0x2e]));return _0x564269[_0x2c4e77([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x12f9dc=>_0x12f9dc[_0x2c4e77([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c4e77([0x2a])))[_0x2c4e77([0x6d,0x61,0x70])](_0x5c31c7=>_0x5c31c7[_0x2c4e77([0x73,0x70,0x6c,0x69,0x74])](_0x2c4e77([0x2e])))[_0x2c4e77([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x371afa=>_0x371afa[_0x2c4e77([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x343ae[_0x2c4e77([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2c4e77([0x6d,0x61,0x70])](_0x3d6aaa=>Array(_0x343ae[_0x2c4e77([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3d6aaa[_0x2c4e77([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2c4e77([0x66,0x69,0x6c,0x6c])](_0x3d6aaa[0x0]===_0x2c4e77([0x2a])?_0x2c4e77([0x2a]):'')[_0x2c4e77([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3d6aaa))[_0x2c4e77([0x73,0x6f,0x6d,0x65])](_0xff3754=>_0x343ae[_0x2c4e77([0x65,0x76,0x65,0x72,0x79])]((_0x175f44,_0x28491c)=>_0xff3754[_0x28491c]===_0x175f44||_0xff3754[_0x28491c]===_0x2c4e77([0x2a])));}function _0x4571c1(){return _0x242e81&&_0x307cab?new window[(_0x2c4e77([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5a301b,_0xabce04)=>{_0x242e81[_0x2c4e77([0x74,0x68,0x65,0x6e])](_0x5a301b,_0xabce04),_0x307cab[_0x2c4e77([0x74,0x68,0x65,0x6e])](_0x1003a7=>{_0x1003a7!=_0x2c4e77([0x56,0x61,0x6c,0x69,0x64])&&_0x5a301b(_0x1003a7);},_0xabce04);}):_0x242e81||_0x307cab||_0x2c4e77([0x56,0x61,0x6c,0x69,0x64]);}}function _0x571b81(_0x3eb4d5,_0x1475f8){return new window[(_0x2c4e77([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25b6f6=>{if(_0xa13500())return _0x25b6f6(_0x2c4e77([0x56,0x61,0x6c,0x69,0x64]));_0x455673(),_0x56633e[_0x2c4e77([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2c4e77([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5205a3=!0x1;const _0x111113=_0x4a02f4();function _0x10e833(_0x1d0e4c){return!!_0x1d0e4c&&(typeof _0x1d0e4c===_0x2c4e77([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1d0e4c===_0x2c4e77([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1d0e4c[_0x2c4e77([0x74,0x68,0x65,0x6e])]===_0x2c4e77([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1d0e4c[_0x2c4e77([0x63,0x61,0x74,0x63,0x68])]===_0x2c4e77([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2d8e69(_0xe75595){_0x239e13(_0xe75595)[_0x2c4e77([0x74,0x68,0x65,0x6e])](_0x21e46b=>{if(!_0x21e46b||_0x21e46b[_0x2c4e77([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2c4e77([0x6f,0x6b]))return _0x2c4e77([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3830bd(_0x5986a5(_0x111113+_0x1475f8))!=_0x21e46b[_0x2c4e77([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2c4e77([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2c4e77([0x56,0x61,0x6c,0x69,0x64]);})[_0x2c4e77([0x74,0x68,0x65,0x6e])](_0x1b235e=>(_0x2240aa(),_0x1b235e),()=>{const _0x563b7a=_0x31529c();return null==_0x563b7a?(_0x2240aa(),_0x2c4e77([0x56,0x61,0x6c,0x69,0x64])):_0x2c4e77(_0x2fd738-_0x563b7a>(0x74e1ffca^_0x206a82)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2c4e77([0x74,0x68,0x65,0x6e])](_0x25b6f6)[_0x2c4e77([0x63,0x61,0x74,0x63,0x68])](()=>{_0x25b6f6(_0x2c4e77([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x587488=0x50db954a^_0x206a82;function _0x2240aa(){const _0x422341=_0x2c4e77([0x6c,0x6c,0x63,0x74,0x2d])+_0x3830bd(_0x5986a5(_0x3eb4d5)),_0xe5dba2=_0x3818f1(_0x3830bd(window[_0x2c4e77([0x4d,0x61,0x74,0x68])][_0x2c4e77([0x63,0x65,0x69,0x6c])](_0x2fd738/_0x587488)));window[_0x2c4e77([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2c4e77([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x422341,_0xe5dba2);}function _0x31529c(){const _0x59569b=_0x2c4e77([0x6c,0x6c,0x63,0x74,0x2d])+_0x3830bd(_0x5986a5(_0x3eb4d5)),_0xfe5fdb=window[_0x2c4e77([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2c4e77([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x59569b);return _0xfe5fdb?window[_0x2c4e77([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3818f1(_0xfe5fdb),0x10)*_0x587488:null;}function _0x239e13(_0x7e9f8){return new window[(_0x2c4e77([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x463f04,_0x16ed57)=>{_0x7e9f8[_0x2c4e77([0x74,0x68,0x65,0x6e])](_0x463f04,_0x16ed57),window[_0x2c4e77([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x16ed57,0x50ecaf0a^_0x206a82);});}}_0x56633e[_0x2c4e77([0x6f,0x6e])](_0x2c4e77([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5e4162,_0x14dabe)=>{if(_0x14dabe[0x0]!=_0x3eb4d5)return _0x25b6f6(_0x2c4e77([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x14dabe[0x1]={..._0x14dabe[0x1],[_0x2c4e77([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x111113};},{[_0x2c4e77([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2c4e77([0x68,0x69,0x67,0x68])}),_0x56633e[_0x2c4e77([0x6f,0x6e])](_0x2c4e77([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4544a3=>{_0x10e833(_0x4544a3[_0x2c4e77([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5205a3=!0x0,_0x2d8e69(_0x4544a3[_0x2c4e77([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2c4e77([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2c4e77([0x6c,0x6f,0x77])}),_0x7256c4[_0x2c4e77([0x74,0x68,0x65,0x6e])](()=>{_0x5205a3||_0x25b6f6(_0x2c4e77([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xa13500(){return _0x56633e[_0x2c4e77([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c4e77([0x76,0x69,0x65,0x77])][_0x2c4e77([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2c4e77([0x61,0x75,0x74,0x6f]);}function _0x455673(){_0x56633e[_0x2c4e77([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c4e77([0x76,0x69,0x65,0x77])][_0x2c4e77([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2c4e77([0x61,0x75,0x74,0x6f]);}}function _0x4e23ba(_0x49263b){const _0x2e9bd5=[new window[(_0x2c4e77([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f1232=>setTimeout(_0x5f1232,0x50e44506^_0x206a82)),_0x7256c4[_0x2c4e77([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2c4e77([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x381a7a=>{let _0x2f37dd=0x0;_0x56633e[_0x2c4e77([0x6d,0x6f,0x64,0x65,0x6c])][_0x2c4e77([0x6f,0x6e])](_0x2c4e77([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x7ebc31,_0x4c5e91)=>{_0x4c5e91[0x0][_0x2c4e77([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2f37dd++,_0x2f37dd==(0x50ed7a32^_0x206a82)&&(_0x381a7a(),_0x7ebc31[_0x2c4e77([0x6f,0x66,0x66])]());});}))];return window[_0x2c4e77([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2c4e77([0x72,0x61,0x63,0x65])](_0x2e9bd5)[_0x2c4e77([0x74,0x68,0x65,0x6e])](()=>_0x49263b);}async function _0x18cecf(){await _0x7256c4,_0x56633e[_0x2c4e77([0x6d,0x6f,0x64,0x65,0x6c])][_0x2c4e77([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3cce38,_0x56633e[_0x2c4e77([0x6d,0x6f,0x64,0x65,0x6c])][_0x2c4e77([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3cce38,_0x56633e[_0x2c4e77([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2c4e77([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x35d373(_0x220e37){const _0x26268b=_0x574092();_0x56633e[_0x26268b]=_0x2c4e77([0x61,0x69,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x220e37,_0x220e37!=_0x2c4e77([0x56,0x61,0x6c,0x69,0x64])&&_0x18cecf();}function _0x574092(){const _0x1e21bd=window[_0x2c4e77([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2c4e77([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2c4e77([0x6e,0x6f,0x77])]())[_0x2c4e77([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2c4e77([0x2e]),'');let _0x415907=_0x2c4e77([0x76]);for(let _0x297142=0x0;_0x297142<_0x1e21bd[_0x2c4e77([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x297142+=0x2){let _0x2bafcd=window[_0x2c4e77([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e21bd[_0x2c4e77([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x297142,_0x297142+0x2));_0x2bafcd>=_0x47eec9[_0x2c4e77([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2bafcd-=_0x47eec9[_0x2c4e77([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x415907+=_0x47eec9[_0x2bafcd];}return _0x415907;}function _0x452e53(){const _0x59cbad=_0x5555ce[_0x2c4e77([0x73,0x70,0x6c,0x69,0x74])](_0x2c4e77([0x2e]));if(0x3!=_0x59cbad[_0x2c4e77([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xc2ba5d(_0x59cbad[0x1]);function _0xc2ba5d(_0x2144d0){const _0xd01293=_0x26a5d0(_0x2144d0);return _0xd01293&&_0x21a142()?_0xd01293:null;function _0x21a142(){const _0xfea951=_0xd01293[_0x2c4e77([0x6a,0x74,0x69])],_0x364adb=window[_0x2c4e77([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xfea951[_0x2c4e77([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xfea951[_0x2c4e77([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x202d30={..._0xd01293,[_0x2c4e77([0x6a,0x74,0x69])]:_0xfea951[_0x2c4e77([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xfea951[_0x2c4e77([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x202d30[_0x2c4e77([0x76,0x63])],_0x5986a5(_0x202d30)==_0x364adb;}}}async function _0x5c0bd4(){let _0x4e5700=!0x0;try{const _0x18bcf4=_0x5555ce[_0x2c4e77([0x73,0x70,0x6c,0x69,0x74])](_0x2c4e77([0x2e])),[_0x1e9bca,_0x5303d4,_0x215cae]=_0x18bcf4;return _0x3700a8(_0x1e9bca),await _0x344728(_0x1e9bca,_0x5303d4,_0x215cae),_0x4e5700;}catch{return!0x1;}function _0x3700a8(_0x51ef77){const _0x5f3cae=_0x26a5d0(_0x51ef77);_0x5f3cae&&_0x5f3cae[_0x2c4e77([0x61,0x6c,0x67])]==_0x2c4e77([0x45,0x53,0x32,0x35,0x36])||(_0x4e5700=!0x1);}async function _0x344728(_0x4730ec,_0x3731f0,_0x54e5fc){const _0x593d1b=window[_0x2c4e77([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2c4e77([0x66,0x72,0x6f,0x6d])](_0x5356fb(_0x54e5fc),_0xdcafe1=>_0xdcafe1[_0x2c4e77([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xfbf073=new window[(_0x2c4e77([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2c4e77([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4730ec+_0x2c4e77([0x2e])+_0x3731f0),_0x128b0a=window[_0x2c4e77([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2c4e77([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x128b0a)return;const _0x1c560d=await _0x128b0a[_0x2c4e77([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2c4e77([0x6a,0x77,0x6b]),_0x574232,{[_0x2c4e77([0x6e,0x61,0x6d,0x65])]:_0x2c4e77([0x45,0x43,0x44,0x53,0x41]),[_0x2c4e77([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2c4e77([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2c4e77([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x128b0a[_0x2c4e77([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2c4e77([0x6e,0x61,0x6d,0x65])]:_0x2c4e77([0x45,0x43,0x44,0x53,0x41]),[_0x2c4e77([0x68,0x61,0x73,0x68])]:{[_0x2c4e77([0x6e,0x61,0x6d,0x65])]:_0x2c4e77([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1c560d,_0x593d1b,_0xfbf073)||(_0x4e5700=!0x1);}}function _0x26a5d0(_0xe9b157){return _0xe9b157[_0x2c4e77([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2c4e77([0x65,0x79]))?JSON[_0x2c4e77([0x70,0x61,0x72,0x73,0x65])](_0x5356fb(_0xe9b157)):null;}function _0x5356fb(_0x746630){return window[_0x2c4e77([0x61,0x74,0x6f,0x62])](_0x746630[_0x2c4e77([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2c4e77([0x2b]))[_0x2c4e77([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2c4e77([0x2f])));}function _0x5986a5(_0x4edf5d){let _0x9606c3=0x1505;function _0x11993c(_0x601831){for(let _0x2321af=0x0;_0x2321af<_0x601831[_0x2c4e77([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2321af++){const _0x52429a=_0x601831[_0x2c4e77([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2321af);_0x9606c3=(_0x9606c3<<0x5)+_0x9606c3+_0x52429a,_0x9606c3&=_0x9606c3;}}function _0x3b30ed(_0x160403){Array[_0x2c4e77([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x160403)?_0x160403[_0x2c4e77([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3b30ed):_0x160403&&typeof _0x160403==_0x2c4e77([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2c4e77([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x160403)[_0x2c4e77([0x73,0x6f,0x72,0x74])]()[_0x2c4e77([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x31b0bc,_0x3dfed9])=>{_0x11993c(_0x31b0bc),_0x3b30ed(_0x3dfed9);}):_0x11993c(window[_0x2c4e77([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x160403));}return _0x3b30ed(_0x4edf5d),_0x9606c3>>>0x0;}function _0x3830bd(_0x67d11f){return _0x67d11f[_0x2c4e77([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2c4e77([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2c4e77([0x30]));}function _0x3818f1(_0x8d957){return _0x8d957[_0x2c4e77([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2c4e77([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2c4e77([0x6a,0x6f,0x69,0x6e])]('');}function _0x3cce38(){}function _0x2c4e77(_0x5369c7){const _0x27849b=_0x3c14;return _0x5369c7[_0x27849b(0x1b2)](_0x9e1cc7=>String[_0x27849b(0x1f2)](_0x9e1cc7))[_0x27849b(0x18a)]('');}_0x35d373(await _0x1d49af());}(this);}[_0x271ddd(0x1c6)](){const _0x5a5bfe=_0x271ddd,_0x47bca3=this[_0x5a5bfe(0x1e9)][_0x5a5bfe(0x1a7)];_0x47bca3[_0x5a5bfe(0x1e0)](_0x326340=>{const _0x4128e2=_0x5a5bfe,_0x4b2ce4=_0x47bca3[_0x4128e2(0x1c7)][_0x4128e2(0x1c0)][_0x4128e2(0x1dd)]();let _0x59ab47=0x0;for(const _0x36d7f0 of _0x4b2ce4){const _0xc9b2fc=w+':'+_0x59ab47;if(_0x47bca3[_0x4128e2(0x1ae)][_0x4128e2(0x191)](_0xc9b2fc))_0x326340[_0x4128e2(0x1e7)](_0xc9b2fc,{'range':_0x36d7f0});else{if(_0x36d7f0[_0x4128e2(0x1b7)][_0x4128e2(0x1f3)]){const _0x3a3427=_0x36d7f0[_0x4128e2(0x1b7)][_0x4128e2(0x18f)](({item:_0x3c7a83})=>!_0x47bca3[_0x4128e2(0x190)][_0x4128e2(0x1d3)](_0x3c7a83),{'boundaries':_0x36d7f0});_0x326340[_0x4128e2(0x1f5)](_0xc9b2fc,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x326340[_0x4128e2(0x1bd)](_0x3a3427,_0x36d7f0[_0x4128e2(0x19d)])});}else _0x326340[_0x4128e2(0x1f5)](_0xc9b2fc,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x36d7f0});}_0x59ab47++;}});}[_0x271ddd(0x1f0)](){const _0x9fd9eb=_0x271ddd,_0x11a5ad=this[_0x9fd9eb(0x1e9)][_0x9fd9eb(0x1a7)],_0xbb24e3=Array[_0x9fd9eb(0x1a5)](this[_0x9fd9eb(0x1e9)][_0x9fd9eb(0x1a7)][_0x9fd9eb(0x1ae)][_0x9fd9eb(0x1e4)](w));_0xbb24e3[_0x9fd9eb(0x19c)]&&_0x11a5ad[_0x9fd9eb(0x1e0)](_0x554cec=>{const _0x4bc666=_0x9fd9eb;_0xbb24e3[_0x4bc666(0x1f4)](_0x12c479=>{const _0x44ea2c=_0x4bc666;_0x554cec[_0x44ea2c(0x1af)](_0x12c479);});});}[_0x271ddd(0x1c9)](_0x155110,_0x468048){const _0x3ae565=_0x271ddd,_0x125c84=this[_0x3ae565(0x1da)](),_0x34532a=_0x468048||_0x125c84[_0x3ae565(0x1b1)]();this[_0x3ae565(0x1e9)][_0x3ae565(0x1a7)][_0x3ae565(0x1b3)](_0x34532a)&&this[_0x3ae565(0x1e9)][_0x3ae565(0x1a7)][_0x3ae565(0x1e0)](_0x1f6454=>{const _0x32ee3d=_0x3ae565;this[_0x32ee3d(0x1f0)](),_0x468048||this[_0x32ee3d(0x18c)](_0x1f6454,_0x125c84),this[_0x32ee3d(0x1c2)]({'insertAt':_0x34532a,'writer':_0x1f6454,'html':_0x155110});});}[_0x271ddd(0x1f6)](_0x599cd9){const _0x36517c=_0x271ddd,{model:_0x152d11}=this[_0x36517c(0x1e9)],_0x5abd4f=this[_0x36517c(0x1da)]();_0x152d11[_0x36517c(0x1e0)](()=>{const _0x25a0c2=_0x36517c,_0x5186b0=this[_0x25a0c2(0x1b0)](_0x599cd9,_0x5abd4f)||this[_0x25a0c2(0x1be)](_0x5abd4f);this[_0x25a0c2(0x1c9)](_0x599cd9,_0x5186b0);});}[_0x271ddd(0x1da)](){const _0x57ea95=_0x271ddd,_0x4f3ea2=this[_0x57ea95(0x1e9)][_0x57ea95(0x1a7)],_0x1d64d3=Array[_0x57ea95(0x1a5)](_0x4f3ea2[_0x57ea95(0x1ae)][_0x57ea95(0x1e4)](w))[_0x57ea95(0x1b2)](_0x3c8ee4=>_0x3c8ee4[_0x57ea95(0x199)]());return _0x4f3ea2[_0x57ea95(0x198)](_0x1d64d3);}[_0x271ddd(0x1c2)]({writer:_0x54ca01,html:_0x395c26,insertAt:_0x137d96}){const _0x56384f=_0x271ddd,{view:_0x39a3fd}=this[_0x56384f(0x1e9)][_0x56384f(0x1ba)],_0x2e64a4=this[_0x56384f(0x1e9)][_0x56384f(0x1df)][_0x56384f(0x1ab)](_0x557364),_0x186a3e=new l();_0x186a3e[_0x56384f(0x1c1)](_0x56384f(0x1ed),_0x395c26);const _0x31ccfd=new ClipboardEvent(_0x56384f(0x1aa),{'clipboardData':_0x186a3e}),_0x44e4c1=new _0x42b6e9(_0x39a3fd,_0x31ccfd,{'dataTransfer':new _0x8ac092(_0x186a3e)});_0x54ca01[_0x56384f(0x1d5)](_0x137d96);const _0x245acb=(_0x812b31,_0x321a37)=>{const _0x4b5040=_0x56384f;_0x321a37[_0x4b5040(0x1a0)]&&_0x54ca01[_0x4b5040(0x1d5)](_0x321a37[_0x4b5040(0x1a0)]);};_0x2e64a4[_0x56384f(0x1cd)](_0x56384f(0x1d6),_0x245acb,{'priority':_0x56384f(0x19f)}),_0x39a3fd[_0x56384f(0x1c7)][_0x56384f(0x195)](_0x56384f(0x1aa),_0x44e4c1),_0x2e64a4[_0x56384f(0x1c3)](_0x56384f(0x1d6),_0x245acb);}[_0x271ddd(0x1be)](_0x5c25da){const _0x42c412=_0x271ddd,{model:_0x5540d0}=this[_0x42c412(0x1e9)],_0x2b9c53=Array[_0x42c412(0x1a5)](_0x5c25da[_0x42c412(0x19e)]());return _0x2b9c53[_0x42c412(0x19c)]?_0x5540d0[_0x42c412(0x1eb)](_0x2b9c53[_0x42c412(0x1ef)]()):_0x5c25da[_0x42c412(0x1a6)]();}[_0x271ddd(0x1b0)](_0x5001cc,_0x7d3df8){const _0x4ad3d7=_0x271ddd,{model:_0x276160,plugins:_0x3c8366}=this[_0x4ad3d7(0x1e9)];if(_0x3c8366[_0x4ad3d7(0x191)](_0x4ad3d7(0x1b8))){const _0x51add9=_0x3c8366[_0x4ad3d7(0x1ab)](_0x4ad3d7(0x1b8))[_0x4ad3d7(0x196)](_0x7d3df8);if(_0x51add9[_0x4ad3d7(0x19c)]){const _0x40b27d=this[_0x4ad3d7(0x1e5)](_0x5001cc),_0xf92f50=this[_0x4ad3d7(0x1bc)](_0x51add9,_0x40b27d);return _0x276160[_0x4ad3d7(0x1cc)](_0xf92f50,0x0);}}return null;}[_0x271ddd(0x1e5)](_0x228026){const _0x490d4c=_0x271ddd,_0x401aba=this[_0x490d4c(0x1e9)][_0x490d4c(0x1df)][_0x490d4c(0x1ab)](_0x490d4c(0x1b8)),_0x549a0e=this[_0x490d4c(0x1e9)][_0x490d4c(0x1d4)][_0x490d4c(0x1e3)](_0x228026),_0x3a48ba=Array[_0x490d4c(0x1a5)](_0x549a0e[_0x490d4c(0x1ca)]())[_0x490d4c(0x1e1)](_0x4bff5d=>_0x4bff5d['is'](_0x490d4c(0x18d),_0x490d4c(0x1a3)));let _0x28ffb1=0x0;return _0x3a48ba[_0x490d4c(0x1f4)](_0x4794ef=>{const _0x42ebdf=_0x490d4c;_0x28ffb1+=_0x401aba[_0x42ebdf(0x1b5)](_0x4794ef);}),_0x28ffb1;}[_0x271ddd(0x1bc)](_0x1fcf92,_0x52c2f8){const _0x5ab2ed=_0x271ddd,_0x14bc77=this[_0x5ab2ed(0x1e9)][_0x5ab2ed(0x1df)][_0x5ab2ed(0x1ab)](_0x5ab2ed(0x1b8)),_0x1f0624=_0x14bc77[_0x5ab2ed(0x1ec)](_0x1fcf92),_0x12afd6=_0x14bc77[_0x5ab2ed(0x18e)](_0x1fcf92),_0xbe0789=_0x1f0624[_0x5ab2ed(0x1c8)]+0x1,_0x334557=_0x12afd6[_0x5ab2ed(0x1cb)],_0xeb5ea0=_0x1fcf92[0x0][_0x5ab2ed(0x1de)](_0x5ab2ed(0x1a3));for(let _0x4583b2=0x0;_0x4583b2<_0x52c2f8;_0x4583b2++)_0x14bc77[_0x5ab2ed(0x1a4)](_0xeb5ea0,{'at':_0xbe0789});return _0xeb5ea0[_0x5ab2ed(0x1a2)](_0xbe0789)[_0x5ab2ed(0x1a2)](_0x334557);}[_0x271ddd(0x18c)](_0x1349d0,_0x4d5b0c){const _0x482469=_0x271ddd,{plugins:_0x2948e6}=this[_0x482469(0x1e9)],{model:_0x1fa99b}=_0x1349d0;if(!_0x2948e6[_0x482469(0x191)](_0x482469(0x1b8)))return;_0x2948e6[_0x482469(0x1ab)](_0x482469(0x1b8))[_0x482469(0x196)](_0x4d5b0c)[_0x482469(0x19c)]&&_0x1fa99b[_0x482469(0x197)](_0x4d5b0c);}}
|
package/src/aiassistantui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x21de4d=_0x394a;(function(_0x5b1109,_0x3fe819){const _0x4a24ca=_0x394a,_0x1dd5ee=_0x5b1109();while(!![]){try{const _0x2e0bf8=parseInt(_0x4a24ca(0x185))/0x1+parseInt(_0x4a24ca(0x1f9))/0x2+parseInt(_0x4a24ca(0x1f0))/0x3*(parseInt(_0x4a24ca(0x1c0))/0x4)+parseInt(_0x4a24ca(0x1d6))/0x5+parseInt(_0x4a24ca(0x19a))/0x6*(parseInt(_0x4a24ca(0x1fa))/0x7)+-parseInt(_0x4a24ca(0x1a0))/0x8+-parseInt(_0x4a24ca(0x204))/0x9;if(_0x2e0bf8===_0x3fe819)break;else _0x1dd5ee['push'](_0x1dd5ee['shift']());}catch(_0x5acd0b){_0x1dd5ee['push'](_0x1dd5ee['shift']());}}}(_0x1871,0x82af0));import{Plugin as _0x2cad0c}from'ckeditor5/src/core.js';import{IconMagicWand as _0xac9af7,IconRobotPencil as _0x2f3791}from'ckeditor5/src/icons.js';import{first as _0x40877a,CKEditorError as _0x3c735c}from'ckeditor5/src/utils.js';import{createDropdown as _0x3968c9,addMenuToDropdown as _0x3187c8,ButtonView as _0x398569,MenuBarMenuListItemButtonView as _0x47c470,Dialog as _0x4db3ef,DialogViewPosition as _0x3db220,MenuBarMenuView as _0x34336f,MenuBarMenuListView as _0x5dda8c,MenuBarMenuListItemView as _0x1e96c4}from'ckeditor5/src/ui.js';function _0x394a(_0x130055,_0x4fd5ad){const _0x18718d=_0x1871();return _0x394a=function(_0x394a3d,_0x4ecb53){_0x394a3d=_0x394a3d-0x15d;let _0x57f6b0=_0x18718d[_0x394a3d];return _0x57f6b0;},_0x394a(_0x130055,_0x4fd5ad);}function _0x1871(){const _0x931c3b=['body','updatePosition','aiCommands','errorView','ck-ai-assistant-ui','expired','destroy','ai.useTheme','updateView','order','getData','buttonView','buttons','prompt','<p>','isCollapsed','reset','isOn','3583155ukLTFn','hideUI','aiLicenseKeyInvalid','commands','trim','text','sort','requiresContent','init','change:value','menuBar:aiAssistant','change:isError','promptView','invalid','_formView','editor','config','isFlat','copy','_commandDefinitions','splice','showFakeVisualSelection','_uiCssClasses','menuView','_onExecute','groupId','489uOzBqv','render','get','delegate','ck-ai-commands-dropdown\x20','includes','panelView','isOfficialPlugin','push','123812fZnGrK','1981uApeyT','wasMoved','label','filter','model','change:isProcessing','groupLabel','set','\x20ck-ai-assistant-ui_theme','getSelectedElement','4105170xasaYr','componentFactory','requires','editing','aiLicenseKeyUsageLimit','once','_getResolvedCommandsDefinitions','rawHtml','change','values','ai.aiAssistant.contentAreaCssClass','AIAssistant','_createAIAssistantUIButton','children','trialLimit','addMany','fire','items','setSelection','ck-ai-assistant-button\x20','_getMenuBarGroupButtons','</p>','source','AI\x20Commands','execute','INSERT','Error\x20during\x20AI\x20content\x20generation:\x20%0','REPLACE','Generated\x20content:\x20%0','view','menuBar:aiCommands','getSelectedBlocks','command:','_dialog','aiLicenseKeyValid','polite','hideFakeVisualSelection','getRanges','menuPanelClass','selection','isPremiumPlugin','hide','enabledCommandsIds','length','_showLicenseError','media','aiLicenseKeyDomainLimit','_initAriaAiStatusChangeAnnouncements','115188WZEFui','aiLicenseKeyNotAllowed','showUI','AI\x20is\x20writing','replace','_populateMenuBarMenu','usageLimit','locale','domainLimit','pluginName','_forceMarkersCopy','featureNotAllowed','schema','AI\x20Assistant','evaluationLimit','queryView','aiAssistant','AIAssistantUI','comment','show','custom','2838CukwaI','ai.aiAssistant.commands','contentArea','insertContent','add','aiLicenseKeyEvaluationLimit','6901976Vbnlid','ai-commands-config-order-collision','_aiAdapter','document','map','listenTo','isEnabled','tableOfContents','aiLicenseKeyTrialLimit','licenseKey','focus','text/html','define','announce','getLimitElement','update','ai.aiAssistant.disabledElements','menuitemcheckbox','aiLicenseKeyExpired','textAdapter','insertContentBelow','EDITOR_TOP_SIDE','forEach','change:enabledCommandsIds','showAIAssistant','_initView','from','_licenseKeyCheckInterval','DataTransfer','fieldView','plugins','_aiAssistantController','20284TCHhWh','replaceContent','bind','currentContext'];_0x1871=function(){return _0x931c3b;};return _0x1871();}import{normalizeCommandsConfig as _0x1a7514,UNGROUPED_COMMANDS_GROUP_ID as _0x2bae50}from'./utils/normalizecommandsconfig.js';import{AIAssistantEditing as _0x16b024}from'./aiassistantediting.js';import{AIAdapter as _0xfb7711}from'./adapters/aiadapter.js';import{getTranslation as _0x4adc2e}from'./utils/common-translations.js';import{ShowAIAssistantCommand as _0x4442eb}from'./ui/showaiassistantcommand.js';import{AIAssistantController as _0xd4d117}from'./ui/aiassistantcontroller.js';import{AIFormView as _0x4a08c}from'./ui/form/aiformview.js';import{AIFormToolbarViewMainActionLabel as _0x40d97f}from'./ui/form/aiformtoolbarview.js';import'../theme/ai.css';import'../theme/ai-dropdown.css';import'../theme/ai-form.css';const l=globalThis[_0x21de4d(0x1bc)];import{ClipboardMarkersUtils as _0x5329c1}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0x3a3b4a,ViewDataTransfer as _0x40b34f}from'ckeditor5/src/engine.js';export class AIAssistantUI extends _0x2cad0c{[_0x21de4d(0x1a9)];[_0x21de4d(0x1bb)];[_0x21de4d(0x176)];[_0x21de4d(0x1e4)];[_0x21de4d(0x1a2)];[_0x21de4d(0x1bf)];[_0x21de4d(0x1ec)]='';static get[_0x21de4d(0x18e)](){const _0xabc1aa=_0x21de4d;return _0xabc1aa(0x196);}static get[_0x21de4d(0x1f7)](){return!0x0;}static get[_0x21de4d(0x17d)](){return!0x0;}static get[_0x21de4d(0x206)](){return[_0x5329c1,_0x16b024,_0xfb7711,_0x4db3ef];}constructor(_0xb28e00){const _0x1a53d9=_0x21de4d;super(_0xb28e00),_0xb28e00[_0x1a53d9(0x1e6)][_0x1a53d9(0x1ac)](_0x1a53d9(0x1b0),[_0x1a53d9(0x182),_0x1a53d9(0x20b),_0x1a53d9(0x1a7)]),_0xb28e00[_0x1a53d9(0x1e6)][_0x1a53d9(0x1ac)](_0x1a53d9(0x15f),''),_0xb28e00[_0x1a53d9(0x1e6)][_0x1a53d9(0x1ac)](_0x1a53d9(0x1cb),!0x0),this[_0x1a53d9(0x1ec)]=_0x1a53d9(0x1c8)+(_0xb28e00[_0x1a53d9(0x1e6)][_0x1a53d9(0x1f2)](_0x1a53d9(0x1cb))?_0x1a53d9(0x202):'');}[_0x21de4d(0x1de)](){const _0xbfb8a2=_0x21de4d,{editor:_0x35cbb5}=this;this[_0xbfb8a2(0x1a2)]=_0x35cbb5[_0xbfb8a2(0x1be)][_0xbfb8a2(0x1f2)](_0xfb7711),this[_0xbfb8a2(0x176)]=_0x35cbb5[_0xbfb8a2(0x1be)][_0xbfb8a2(0x1f2)](_0x4db3ef),this[_0xbfb8a2(0x1e4)]=null,this[_0xbfb8a2(0x1e9)]=this[_0xbfb8a2(0x20a)]();const _0x4acf63=new _0x4442eb(_0x35cbb5,Array[_0xbfb8a2(0x1ba)](this[_0xbfb8a2(0x1e9)][_0xbfb8a2(0x15e)]()));_0x35cbb5[_0xbfb8a2(0x1d9)][_0xbfb8a2(0x19e)](_0xbfb8a2(0x1b8),_0x4acf63),_0x35cbb5['ui'][_0xbfb8a2(0x205)][_0xbfb8a2(0x19e)](_0xbfb8a2(0x1c6),_0xba35b7=>{const _0x45ea4a=_0xbfb8a2,_0x9e1aa8=_0x3968c9(_0xba35b7);return _0x9e1aa8[_0x45ea4a(0x201)]({'class':_0x45ea4a(0x1f4)+this[_0x45ea4a(0x1ec)]}),_0x9e1aa8[_0x45ea4a(0x1cf)][_0x45ea4a(0x201)]({'label':_0x4adc2e(_0xba35b7,_0x45ea4a(0x16c)),'icon':_0xac9af7,'tooltip':!0x0}),_0x9e1aa8['on'](_0x45ea4a(0x16d),_0x1588e6=>this[_0x45ea4a(0x1ee)](_0x1588e6[_0x45ea4a(0x16b)]['id'])),_0x3187c8(_0x9e1aa8,_0x35cbb5['ui'][_0x45ea4a(0x172)][_0x45ea4a(0x1c4)],function(_0x39e305){const _0x5d897e=_0x45ea4a,_0x3cac06=_0x1a7514(_0x39e305[_0x5d897e(0x1e6)][_0x5d897e(0x1f2)](_0x5d897e(0x19b)),_0x39e305[_0x5d897e(0x18c)]),_0xb6c165=U(_0x39e305,_0x3cac06)[_0x5d897e(0x1fd)](_0x41ada2=>_0x41ada2[_0x5d897e(0x1d9)][_0x5d897e(0x180)]);if(0x1===_0xb6c165[_0x5d897e(0x180)])return U(_0x39e305,_0xb6c165[0x0][_0x5d897e(0x1d9)])[_0x5d897e(0x1a4)](_0x11291a=>({'id':_0x11291a['id'],'label':_0x11291a[_0x5d897e(0x1fc)]}));return _0xb6c165[_0x5d897e(0x1a4)](_0x2ceb6f=>{const _0x1acf11=_0x5d897e,{groupId:_0xdb7f66,groupLabel:_0x3f4c73,commands:_0x214475}=_0x2ceb6f,_0x21379b=U(_0x39e305,_0x214475)[_0x1acf11(0x1a4)](_0x58d4ae=>({'id':_0x58d4ae['id'],'label':_0x58d4ae[_0x1acf11(0x1fc)]}));return{'id':_0xdb7f66,'menu':_0x3f4c73||_0xdb7f66,'children':_0x21379b};});}(_0x35cbb5),{'ariaLabel':_0x4adc2e(_0xba35b7,_0x45ea4a(0x16c))}),_0x9e1aa8[_0x45ea4a(0x1ed)][_0x45ea4a(0x17b)]=_0x45ea4a(0x1f4)+this[_0x45ea4a(0x1ec)],_0x4acf63['on'](_0x45ea4a(0x1b7),_0x230343),_0x9e1aa8[_0x45ea4a(0x1ed)][_0x45ea4a(0x209)](_0x45ea4a(0x1f1),_0x230343),_0x9e1aa8;function _0x230343(){const _0x1c9e3d=_0x45ea4a;_0x9e1aa8[_0x1c9e3d(0x1a6)]=_0x4acf63[_0x1c9e3d(0x17f)][_0x1c9e3d(0x180)]>0x0;for(const _0xd318b2 of _0x9e1aa8[_0x1c9e3d(0x1ed)][_0x1c9e3d(0x1d0)])_0xd318b2[_0x1c9e3d(0x1a6)]=_0x4acf63[_0x1c9e3d(0x17f)][_0x1c9e3d(0x1f5)](_0xd318b2['id']);}}),_0x35cbb5['ui'][_0xbfb8a2(0x205)][_0xbfb8a2(0x19e)](_0xbfb8a2(0x173),_0x3848f7=>{const _0x86e515=_0xbfb8a2,_0x1c71ba=new _0x34336f(_0x3848f7);_0x1c71ba[_0x86e515(0x1cf)][_0x86e515(0x201)]({'label':_0x4adc2e(_0x3848f7,_0x86e515(0x16c)),'icon':_0xac9af7}),_0x1c71ba[_0x86e515(0x1c2)](_0x86e515(0x1a6))['to'](_0x4acf63,_0x86e515(0x17f),_0x91dadc=>_0x91dadc[_0x86e515(0x180)]>0x0);const _0x1f11bc=_0x1a7514(_0x35cbb5[_0x86e515(0x1e6)][_0x86e515(0x1f2)](_0x86e515(0x19b)),_0x3848f7);return this[_0x86e515(0x18a)](_0x4acf63,_0x1c71ba,_0x1f11bc,_0xc1270c=>this[_0x86e515(0x1ee)](_0xc1270c)),_0x1c71ba;}),_0x35cbb5['ui'][_0xbfb8a2(0x205)][_0xbfb8a2(0x19e)](_0xbfb8a2(0x195),()=>{const _0x3947ac=_0xbfb8a2,_0x466e77=this[_0x3947ac(0x161)](_0x398569);return _0x466e77[_0x3947ac(0x201)]({'tooltip':!0x0,'class':_0x3947ac(0x168)+this[_0x3947ac(0x1ec)]}),_0x466e77;}),_0x35cbb5['ui'][_0xbfb8a2(0x205)][_0xbfb8a2(0x19e)](_0xbfb8a2(0x1e0),()=>{const _0x54cfb2=_0xbfb8a2,_0xe92fc6=this[_0x54cfb2(0x161)](_0x47c470);return _0xe92fc6[_0x54cfb2(0x201)]({'role':_0x54cfb2(0x1b1)}),_0xe92fc6;}),this[_0xbfb8a2(0x1a9)]=this[_0xbfb8a2(0x1e5)][_0xbfb8a2(0x1e6)][_0xbfb8a2(0x1f2)](_0xbfb8a2(0x1a9));const _0x241a9c=this[_0xbfb8a2(0x1e5)];this[_0xbfb8a2(0x1bb)]=setInterval(()=>{const _0x202aec=_0xbfb8a2;let _0x22f653;for(const _0x41806e in _0x241a9c){const _0x7e75a7=_0x41806e,_0x52ef6f=_0x241a9c[_0x7e75a7];if(_0x202aec(0x177)==_0x52ef6f||_0x202aec(0x1d8)==_0x52ef6f||_0x202aec(0x1b2)==_0x52ef6f||_0x202aec(0x183)==_0x52ef6f||_0x202aec(0x186)==_0x52ef6f||_0x202aec(0x19f)==_0x52ef6f||_0x202aec(0x1a8)==_0x52ef6f||_0x202aec(0x208)==_0x52ef6f){delete _0x241a9c[_0x7e75a7],_0x22f653=_0x52ef6f,clearInterval(this[_0x202aec(0x1bb)]),this[_0x202aec(0x1bb)]=void 0x0;break;}}_0x202aec(0x1d8)==_0x22f653&&_0x241a9c[_0x202aec(0x181)](_0x202aec(0x1e3)),_0x202aec(0x1b2)==_0x22f653&&_0x241a9c[_0x202aec(0x181)](_0x202aec(0x1c9)),_0x202aec(0x183)==_0x22f653&&_0x241a9c[_0x202aec(0x181)](_0x202aec(0x18d)),_0x202aec(0x186)==_0x22f653&&_0x241a9c[_0x202aec(0x181)](_0x202aec(0x190),_0x202aec(0x160)),_0x202aec(0x19f)==_0x22f653&&_0x241a9c[_0x202aec(0x181)](_0x202aec(0x193)),_0x202aec(0x1a8)==_0x22f653&&_0x241a9c[_0x202aec(0x181)](_0x202aec(0x163)),_0x202aec(0x208)==_0x22f653&&_0x241a9c[_0x202aec(0x181)](_0x202aec(0x18b));},0x3e8);}[_0x21de4d(0x1ca)](){const _0x53edf1=_0x21de4d;super[_0x53edf1(0x1ca)](),this[_0x53edf1(0x1bb)]&&clearInterval(this[_0x53edf1(0x1bb)]);}[_0x21de4d(0x187)](_0x1c9615='',_0x370282='',_0x350a23=_0x21de4d(0x199)){const _0x5bc4dd=_0x21de4d,_0x13d9ea=this[_0x5bc4dd(0x1e5)],_0xb32eb0=_0x13d9ea[_0x5bc4dd(0x207)][_0x5bc4dd(0x172)],_0x47f87e=_0x13d9ea[_0x5bc4dd(0x1be)][_0x5bc4dd(0x1f2)](_0x16b024),_0x503e31=_0x13d9ea[_0x5bc4dd(0x1be)][_0x5bc4dd(0x1f2)](_0x5329c1);_0x47f87e[_0x5bc4dd(0x1eb)]();const _0xc81e95=new l(),_0x224686=new ClipboardEvent(_0x5bc4dd(0x1e8),{'clipboardData':_0xc81e95}),_0x1a99a9=new _0x40b34f(_0xc81e95),_0x348b35=new _0x3a3b4a(_0xb32eb0,_0x224686,{'dataTransfer':_0x1a99a9});_0x503e31[_0x5bc4dd(0x18f)](_0x5bc4dd(0x197),()=>{const _0x35ef7f=_0x5bc4dd;_0xb32eb0[_0x35ef7f(0x1a3)][_0x35ef7f(0x165)](_0x35ef7f(0x1e8),_0x348b35);}),this[_0x5bc4dd(0x1e4)]||(this[_0x5bc4dd(0x1b9)](),this[_0x5bc4dd(0x1bf)]=new _0xd4d117(_0x13d9ea,this[_0x5bc4dd(0x1a2)][_0x5bc4dd(0x1b3)],this[_0x5bc4dd(0x1e4)]));let _0x452877=_0x1a99a9[_0x5bc4dd(0x1ce)](_0x5bc4dd(0x1ab));const _0x3c14a4=_0x13d9ea[_0x5bc4dd(0x1fe)][_0x5bc4dd(0x1a3)][_0x5bc4dd(0x17c)],_0xc76511=Array[_0x5bc4dd(0x1ba)](_0x3c14a4[_0x5bc4dd(0x17a)]());0x1===_0xc76511[_0x5bc4dd(0x180)]&&_0xc76511[0x0][_0x5bc4dd(0x1e7)]&&!_0x3c14a4[_0x5bc4dd(0x203)]()&&''!==_0x452877[_0x5bc4dd(0x189)](/ /g,'')[_0x5bc4dd(0x1da)]()&&(_0x452877=_0x5bc4dd(0x1d2)+_0x452877+_0x5bc4dd(0x16a)),this[_0x5bc4dd(0x1bf)][_0x5bc4dd(0x1cc)]({'actionId':_0x350a23,'query':_0x1c9615,'htmlContent':_0x452877,'label':_0x370282,'mainActionLabel':_0x40d97f[_0x13d9ea[_0x5bc4dd(0x1fe)][_0x5bc4dd(0x1a3)][_0x5bc4dd(0x17c)][_0x5bc4dd(0x1d3)]?_0x5bc4dd(0x16e):_0x5bc4dd(0x170)]}),_0x5bc4dd(0x195)!==this[_0x5bc4dd(0x176)]['id']?this[_0x5bc4dd(0x176)][_0x5bc4dd(0x198)]({'id':_0x5bc4dd(0x195),'icon':_0x2f3791,'title':_0x4adc2e(this[_0x5bc4dd(0x1e5)][_0x5bc4dd(0x18c)],_0x5bc4dd(0x192)),'content':this[_0x5bc4dd(0x1e4)],'position':_0x3db220[_0x5bc4dd(0x1b5)],'onShow':()=>{const _0x1bbbaa=_0x5bc4dd;this[_0x1bbbaa(0x1e4)][_0x1bbbaa(0x1aa)]();},'onHide':()=>{const _0x519a80=_0x5bc4dd;this[_0x519a80(0x1bf)][_0x519a80(0x1d4)](),_0x47f87e[_0x519a80(0x179)]();}}):this[_0x5bc4dd(0x176)][_0x5bc4dd(0x172)][_0x5bc4dd(0x1fb)]||this[_0x5bc4dd(0x176)][_0x5bc4dd(0x172)][_0x5bc4dd(0x1c5)]();}[_0x21de4d(0x1d7)](){const _0x976e58=_0x21de4d;this[_0x976e58(0x176)][_0x976e58(0x17e)]();}[_0x21de4d(0x20a)](){const _0x13c878=_0x21de4d,_0x529e02=new Map(),_0x244ced=_0x1a7514(this[_0x13c878(0x1e5)][_0x13c878(0x1e6)][_0x13c878(0x1f2)](_0x13c878(0x19b)),this[_0x13c878(0x1e5)][_0x13c878(0x18c)]);for(const _0x57a74a of _0x244ced)for(const _0x1f6a56 of _0x57a74a[_0x13c878(0x1d9)])_0x529e02[_0x13c878(0x201)](_0x1f6a56['id'],{..._0x1f6a56,'groupId':_0x57a74a[_0x13c878(0x1ef)],'groupLabel':_0x57a74a[_0x13c878(0x200)]||_0x57a74a[_0x13c878(0x1ef)]});return _0x529e02;}[_0x21de4d(0x161)](_0x3fb675){const _0x1f191a=_0x21de4d,_0x31aed0=this[_0x1f191a(0x1e5)],_0x2897e2=_0x31aed0[_0x1f191a(0x1d9)][_0x1f191a(0x1f2)](_0x1f191a(0x1b8)),_0x3b588d=new _0x3fb675(_0x31aed0[_0x1f191a(0x18c)]);return _0x3b588d[_0x1f191a(0x201)]({'label':_0x4adc2e(_0x31aed0[_0x1f191a(0x18c)],_0x1f191a(0x192)),'icon':_0x2f3791,'isToggleable':!0x0}),_0x3b588d[_0x1f191a(0x1c2)](_0x1f191a(0x1a6))['to'](_0x2897e2),_0x3b588d[_0x1f191a(0x1c2)](_0x1f191a(0x1d5))['to'](this[_0x1f191a(0x176)],'id',_0x289b1f=>_0x1f191a(0x195)===_0x289b1f),this[_0x1f191a(0x1a5)](_0x3b588d,_0x1f191a(0x16d),()=>{const _0x28afd1=_0x1f191a;_0x3b588d[_0x28afd1(0x1d5)]?this[_0x28afd1(0x1d7)]():_0x2897e2[_0x28afd1(0x16d)]();}),_0x3b588d;}[_0x21de4d(0x1b9)](){const _0x5818bc=_0x21de4d,_0x97ff7a=this[_0x5818bc(0x1e5)][_0x5818bc(0x1be)][_0x5818bc(0x1f2)](_0x16b024);this[_0x5818bc(0x1e4)]=new _0x4a08c(this[_0x5818bc(0x1e5)][_0x5818bc(0x18c)],this[_0x5818bc(0x1ec)],this[_0x5818bc(0x1e5)][_0x5818bc(0x1e6)][_0x5818bc(0x1f2)](_0x5818bc(0x15f))),this[_0x5818bc(0x1e4)]['on'](_0x5818bc(0x1df),()=>{const _0x41eebd=_0x5818bc;this[_0x41eebd(0x176)][_0x41eebd(0x172)][_0x41eebd(0x1fb)]||this[_0x41eebd(0x176)][_0x41eebd(0x172)][_0x41eebd(0x1c5)]();}),this[_0x5818bc(0x1e4)][_0x5818bc(0x1e2)][_0x5818bc(0x194)][_0x5818bc(0x1bd)]['on'](_0x5818bc(0x1af),()=>{const _0x180bc1=_0x5818bc;this[_0x180bc1(0x176)][_0x180bc1(0x172)][_0x180bc1(0x1fb)]||this[_0x180bc1(0x176)][_0x180bc1(0x172)][_0x180bc1(0x1c5)]();}),this[_0x5818bc(0x1a5)](this[_0x5818bc(0x1e4)],_0x5818bc(0x1c1),()=>{const _0x1c72b6=_0x5818bc;_0x97ff7a[_0x1c72b6(0x19d)](this[_0x1c72b6(0x1bf)][_0x1c72b6(0x1c3)]),this[_0x1c72b6(0x1d7)]();}),this[_0x5818bc(0x1a5)](this[_0x5818bc(0x1e4)],_0x5818bc(0x1b4),()=>{const _0x237b08=_0x5818bc;_0x97ff7a[_0x237b08(0x1b4)](this[_0x237b08(0x1bf)][_0x237b08(0x1c3)]),this[_0x237b08(0x1d7)]();}),this[_0x5818bc(0x184)]();}[_0x21de4d(0x184)](){const _0x35b689=_0x21de4d,{locale:_0x28d0e4,ui:{ariaLiveAnnouncer:_0x534874}}=this[_0x35b689(0x1e5)];this[_0x35b689(0x1e4)][_0x35b689(0x19c)]['on'](_0x35b689(0x1ff),(_0x5ad3e6,_0x4c9df9,_0x8744fd)=>{const _0x22c6be=_0x35b689,_0xfcf878=this[_0x22c6be(0x1bf)][_0x22c6be(0x1c3)];_0x8744fd?_0x534874[_0x22c6be(0x1ad)](_0x4adc2e(_0x28d0e4,_0x22c6be(0x188))):_0xfcf878&&_0x534874[_0x22c6be(0x1ad)](_0x4adc2e(_0x28d0e4,_0x22c6be(0x171),_0xfcf878),{'politeness':_0x22c6be(0x178),'isUnsafeHTML':!0x0});}),this[_0x35b689(0x1e4)]['on'](_0x35b689(0x1e1),(_0x5af19e,_0x3739e0,_0x496542)=>{const _0x55f50e=_0x35b689;if(_0x496542){const _0x172d46=this[_0x55f50e(0x1e4)][_0x55f50e(0x1c7)][_0x55f50e(0x1db)];_0x534874[_0x55f50e(0x1ad)](_0x4adc2e(_0x28d0e4,_0x55f50e(0x16f),_0x172d46));}});}[_0x21de4d(0x1ee)](_0x5f2e66){const _0x5e2590=_0x21de4d,_0x47de4c=this[_0x5e2590(0x1e9)][_0x5e2590(0x1f2)](_0x5f2e66),_0x1c7842=this[_0x5e2590(0x1e5)],_0x3e9036=_0x1c7842[_0x5e2590(0x1fe)][_0x5e2590(0x1a3)][_0x5e2590(0x17c)],_0x45169c=_0x1c7842[_0x5e2590(0x1d9)][_0x5e2590(0x1f2)](_0x5e2590(0x1b8)),_0xde7aa0=_0x1c7842[_0x5e2590(0x1be)][_0x5e2590(0x1f2)](_0x16b024),_0xa14109=''+(_0x47de4c[_0x5e2590(0x1ef)]!==_0x2bae50?_0x47de4c[_0x5e2590(0x200)]+':\x20':'')+_0x47de4c[_0x5e2590(0x1fc)];if(!0x1!==_0x47de4c[_0x5e2590(0x1dd)]&&_0x3e9036[_0x5e2590(0x1d3)]){const _0x575e80=_0x40877a(_0x3e9036[_0x5e2590(0x174)]())||_0x1c7842[_0x5e2590(0x1fe)][_0x5e2590(0x191)][_0x5e2590(0x1ae)](_0x3e9036);_0x1c7842[_0x5e2590(0x1fe)][_0x5e2590(0x15d)](_0x6104a9=>{const _0x4ac378=_0x5e2590;_0x6104a9[_0x4ac378(0x167)](_0x575e80,'in');});}_0xde7aa0[_0x5e2590(0x1eb)](),_0x45169c[_0x5e2590(0x16d)](_0x47de4c[_0x5e2590(0x1d1)],_0xa14109,_0x5e2590(0x175)+_0x5f2e66);}[_0x21de4d(0x18a)](_0x44f103,_0x374400,_0x323451,_0x33d0ad){const _0x3aa20e=_0x21de4d,_0x2f1d0e=this[_0x3aa20e(0x1e5)],_0x413cd5=_0x2f1d0e[_0x3aa20e(0x18c)],_0x1394d4=new _0x5dda8c(_0x413cd5),_0x904f2f=U(_0x2f1d0e,_0x323451)[_0x3aa20e(0x1fd)](_0x6154d1=>_0x6154d1[_0x3aa20e(0x1d9)][_0x3aa20e(0x180)]);0x1===_0x904f2f[_0x3aa20e(0x180)]?this[_0x3aa20e(0x169)]({'command':_0x44f103,'commands':_0x904f2f[0x0][_0x3aa20e(0x1d9)],'parentMenuView':_0x374400,'onExecute':_0x33d0ad})[_0x3aa20e(0x1b6)](_0x28cacf=>_0x1394d4[_0x3aa20e(0x166)][_0x3aa20e(0x19e)](_0x28cacf)):_0x904f2f[_0x3aa20e(0x1b6)](({groupId:_0x512fe5,groupLabel:_0x4e110d,commands:_0x4fab63})=>{const _0x23460e=_0x3aa20e,_0x59ac36=new _0x1e96c4(_0x413cd5,_0x374400),_0xbd8946=new _0x34336f(_0x413cd5),_0x4c3df7=new _0x5dda8c(_0x413cd5),_0xee9617=this[_0x23460e(0x169)]({'command':_0x44f103,'commands':_0x4fab63,'parentMenuView':_0xbd8946,'onExecute':_0x33d0ad});_0xbd8946[_0x23460e(0x1cf)][_0x23460e(0x201)]({'label':_0x4e110d||_0x512fe5}),_0xbd8946[_0x23460e(0x1f3)](_0x23460e(0x16d))['to'](_0x374400),_0x4c3df7[_0x23460e(0x166)][_0x23460e(0x164)](_0xee9617),_0xbd8946[_0x23460e(0x1f6)][_0x23460e(0x162)][_0x23460e(0x19e)](_0x4c3df7),_0x59ac36[_0x23460e(0x162)][_0x23460e(0x19e)](_0xbd8946),_0x1394d4[_0x23460e(0x166)][_0x23460e(0x19e)](_0x59ac36);}),_0x374400[_0x3aa20e(0x1f6)][_0x3aa20e(0x162)][_0x3aa20e(0x19e)](_0x1394d4);}[_0x21de4d(0x169)]({command:_0x2dd25a,commands:_0xa633b2,parentMenuView:_0x5d8bb3,onExecute:_0x25b673}){const _0x386f34=_0x21de4d,_0x1ceca3=this[_0x386f34(0x1e5)],_0x1bf164=_0x1ceca3[_0x386f34(0x18c)];return U(_0x1ceca3,_0xa633b2)[_0x386f34(0x1a4)](_0x2ebea1=>{const _0x5ba5b6=_0x386f34,_0x2e09e3=new _0x1e96c4(_0x1bf164,_0x5d8bb3),_0xbf170=new _0x47c470(_0x1bf164);return _0xbf170[_0x5ba5b6(0x201)]({'label':_0x2ebea1[_0x5ba5b6(0x1fc)]}),_0xbf170[_0x5ba5b6(0x1f3)](_0x5ba5b6(0x16d))['to'](_0x5d8bb3),_0xbf170['on'](_0x5ba5b6(0x16d),()=>_0x25b673(_0x2ebea1['id'])),_0xbf170[_0x5ba5b6(0x1c2)](_0x5ba5b6(0x1a6))['to'](_0x2dd25a,_0x5ba5b6(0x17f),_0xd64b03=>_0xd64b03[_0x5ba5b6(0x1f5)](_0x2ebea1['id'])),_0x2e09e3[_0x5ba5b6(0x162)][_0x5ba5b6(0x19e)](_0xbf170),_0x2e09e3;});}}function T(_0x18a23e,_0xfb79f2){const _0x24b74a=_0x21de4d;return void 0x0!==_0x18a23e[_0x24b74a(0x1cd)]&&void 0x0===_0xfb79f2[_0x24b74a(0x1cd)]?0x1:void 0x0===_0x18a23e[_0x24b74a(0x1cd)]&&void 0x0!==_0xfb79f2[_0x24b74a(0x1cd)]?-0x1:void 0x0!==_0x18a23e[_0x24b74a(0x1cd)]&&void 0x0!==_0xfb79f2[_0x24b74a(0x1cd)]?_0x18a23e[_0x24b74a(0x1cd)]-_0xfb79f2[_0x24b74a(0x1cd)]:0x0;}function U(_0x45845d,_0x15229d){const _0x5e49b3=_0x21de4d;_0x15229d[_0x5e49b3(0x1dc)](T);const _0xaf7f31={},_0x2675e1=[];for(const _0x392662 of _0x15229d)if(void 0x0!==_0x392662[_0x5e49b3(0x1cd)]){if(_0x392662[_0x5e49b3(0x1cd)]in _0xaf7f31)throw new _0x3c735c(_0x5e49b3(0x1a1),_0x45845d,{'conflictingDefinitions':[_0x392662,_0xaf7f31[_0x392662[_0x5e49b3(0x1cd)]]]});_0xaf7f31[_0x392662[_0x5e49b3(0x1cd)]]=_0x392662,_0x2675e1[_0x5e49b3(0x1ea)](_0x392662[_0x5e49b3(0x1cd)],0x0,_0x392662);}else _0x2675e1[_0x5e49b3(0x1f8)](_0x392662);return _0x2675e1;}
|
|
23
|
+
const _0x2d9d6a=_0x1035;(function(_0x23fc0b,_0x55284e){const _0x365199=_0x1035,_0x44adf3=_0x23fc0b();while(!![]){try{const _0x268134=parseInt(_0x365199(0x1c0))/0x1*(parseInt(_0x365199(0x1fc))/0x2)+parseInt(_0x365199(0x1f6))/0x3+parseInt(_0x365199(0x1da))/0x4*(-parseInt(_0x365199(0x222))/0x5)+-parseInt(_0x365199(0x217))/0x6*(parseInt(_0x365199(0x25d))/0x7)+parseInt(_0x365199(0x1d5))/0x8+-parseInt(_0x365199(0x1eb))/0x9*(parseInt(_0x365199(0x255))/0xa)+parseInt(_0x365199(0x1c5))/0xb;if(_0x268134===_0x55284e)break;else _0x44adf3['push'](_0x44adf3['shift']());}catch(_0x23e21c){_0x44adf3['push'](_0x44adf3['shift']());}}}(_0x1c41,0xa0e9f));import{Plugin as _0x110cea}from'ckeditor5/src/core.js';import{IconMagicWand as _0x10a388,IconRobotPencil as _0x539285}from'ckeditor5/src/icons.js';import{first as _0x41d666,CKEditorError as _0x364de0}from'ckeditor5/src/utils.js';function _0x1c41(){const _0x26b482=['usageLimit','plugins','_dialog','469hasEnJ','evaluationLimit','view','_formView','media','isEnabled','commands','selection','_aiAdapter','hideFakeVisualSelection','ai.aiAssistant.disabledElements','render','prompt','replace','text/html','trim','ck-ai-assistant-button\x20','</p>','ck-ai-assistant-ui','errorView','602dCTFhs','copy','includes','promptView','show','13599201bYhMHl','componentFactory','setSelection','tableOfContents','announce','change','focus','bind','aiLicenseKeyDomainLimit','aiLicenseKeyExpired','expired','menuView','<p>','add','isOfficialPlugin','map','3209552xSPdwW','AI\x20Assistant','_forceMarkersCopy','showFakeVisualSelection','invalid','127164QnfYJx','change:isProcessing','source','set','_uiCssClasses','hideUI','filter','menuPanelClass','document','change:enabledCommandsIds','insertContentBelow','values','locale','Generated\x20content:\x20%0','aiLicenseKeyNotAllowed','aiCommands','groupLabel','29898ToMfyp','getSelectedBlocks','Error\x20during\x20AI\x20content\x20generation:\x20%0','isFlat','init','AI\x20Commands','INSERT','once','body','menuBar:aiAssistant','execute','2617779LuKoDq','aiLicenseKeyTrialLimit','ai.aiAssistant.commands','isCollapsed','queryView','buttons','1594OWcdTA','comment','ai-commands-config-order-collision','getLimitElement','updateView','aiLicenseKeyEvaluationLimit','get','_createAIAssistantUIButton','isOn','_getResolvedCommandsDefinitions','editor','panelView','currentContext','trialLimit','schema','aiLicenseKeyUsageLimit','groupId','delegate','from','textAdapter','aiLicenseKeyValid','pluginName','menuBar:aiCommands','splice','order','forEach','command:','112092bnTwEi','ai.aiAssistant.contentAreaCssClass','_onExecute','change:value','EDITOR_TOP_SIDE','aiLicenseKeyInvalid','\x20ck-ai-assistant-ui_theme','rawHtml','contentArea','editing','insertContent','95FAZPpB','fire','AIAssistant','change:isError','custom','menuitemcheckbox','_showLicenseError','showUI','DataTransfer','children','_initView','length','destroy','licenseKey','getRanges','requires','text','_initAriaAiStatusChangeAnnouncements','reset','featureNotAllowed','_commandDefinitions','updatePosition','getSelectedElement','_licenseKeyCheckInterval','listenTo','getData','fieldView','ai.useTheme','define','AIAssistantUI','hide','isPremiumPlugin','model','replaceContent','enabledCommandsIds','update','polite','aiAssistant','sort','push','label','requiresContent','showAIAssistant','AI\x20is\x20writing','_aiAssistantController','items','_populateMenuBarMenu','wasMoved','domainLimit','addMany','_getMenuBarGroupButtons','1430mLyLNJ','REPLACE','buttonView','config','ck-ai-commands-dropdown\x20'];_0x1c41=function(){return _0x26b482;};return _0x1c41();}import{createDropdown as _0x36c4b7,addMenuToDropdown as _0x1c730d,ButtonView as _0x548581,MenuBarMenuListItemButtonView as _0x48159d,Dialog as _0x30f18e,DialogViewPosition as _0x49053f,MenuBarMenuView as _0x2ba8be,MenuBarMenuListView as _0x19285e,MenuBarMenuListItemView as _0x7156dc}from'ckeditor5/src/ui.js';import{normalizeCommandsConfig as _0x37804b,UNGROUPED_COMMANDS_GROUP_ID as _0x43bc13}from'./utils/normalizecommandsconfig.js';import{AIAssistantEditing as _0x414ed2}from'./aiassistantediting.js';import{AIAdapter as _0x1030cd}from'./adapters/aiadapter.js';import{getTranslation as _0x3e13aa}from'./utils/common-translations.js';import{ShowAIAssistantCommand as _0xcb9901}from'./ui/showaiassistantcommand.js';import{AIAssistantController as _0x33f3dd}from'./ui/aiassistantcontroller.js';import{AIFormView as _0x22370f}from'./ui/form/aiformview.js';import{AIFormToolbarViewMainActionLabel as _0x2bfde2}from'./ui/form/aiformtoolbarview.js';import'../theme/ai.css';import'../theme/ai-dropdown.css';import'../theme/ai-form.css';const l=globalThis[_0x2d9d6a(0x22a)];import{ClipboardMarkersUtils as _0x19081c}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0x219a49,ViewDataTransfer as _0x1a53e2}from'ckeditor5/src/engine.js';export class AIAssistantUI extends _0x110cea{[_0x2d9d6a(0x22f)];[_0x2d9d6a(0x239)];[_0x2d9d6a(0x25c)];[_0x2d9d6a(0x260)];[_0x2d9d6a(0x265)];[_0x2d9d6a(0x24e)];[_0x2d9d6a(0x1de)]='';static get[_0x2d9d6a(0x211)](){const _0x18c3f7=_0x2d9d6a;return _0x18c3f7(0x23f);}static get[_0x2d9d6a(0x1d3)](){return!0x0;}static get[_0x2d9d6a(0x241)](){return!0x0;}static get[_0x2d9d6a(0x231)](){return[_0x19081c,_0x414ed2,_0x1030cd,_0x30f18e];}constructor(_0x5f203b){const _0x574d86=_0x2d9d6a;super(_0x5f203b),_0x5f203b[_0x574d86(0x258)][_0x574d86(0x23e)](_0x574d86(0x267),[_0x574d86(0x261),_0x574d86(0x21e),_0x574d86(0x1c8)]),_0x5f203b[_0x574d86(0x258)][_0x574d86(0x23e)](_0x574d86(0x218),''),_0x5f203b[_0x574d86(0x258)][_0x574d86(0x23e)](_0x574d86(0x23d),!0x0),this[_0x574d86(0x1de)]=_0x574d86(0x26f)+(_0x5f203b[_0x574d86(0x258)][_0x574d86(0x202)](_0x574d86(0x23d))?_0x574d86(0x21d):'');}[_0x2d9d6a(0x1ef)](){const _0x5faf38=_0x2d9d6a,{editor:_0x503824}=this;this[_0x5faf38(0x265)]=_0x503824[_0x5faf38(0x25b)][_0x5faf38(0x202)](_0x1030cd),this[_0x5faf38(0x25c)]=_0x503824[_0x5faf38(0x25b)][_0x5faf38(0x202)](_0x30f18e),this[_0x5faf38(0x260)]=null,this[_0x5faf38(0x236)]=this[_0x5faf38(0x205)]();const _0x2f852e=new _0xcb9901(_0x503824,Array[_0x5faf38(0x20e)](this[_0x5faf38(0x236)][_0x5faf38(0x1e5)]()));_0x503824[_0x5faf38(0x263)][_0x5faf38(0x1d2)](_0x5faf38(0x24c),_0x2f852e),_0x503824['ui'][_0x5faf38(0x1c6)][_0x5faf38(0x1d2)](_0x5faf38(0x1e9),_0x505b7e=>{const _0x435b55=_0x5faf38,_0x47e314=_0x36c4b7(_0x505b7e);return _0x47e314[_0x435b55(0x1dd)]({'class':_0x435b55(0x259)+this[_0x435b55(0x1de)]}),_0x47e314[_0x435b55(0x257)][_0x435b55(0x1dd)]({'label':_0x3e13aa(_0x505b7e,_0x435b55(0x1f0)),'icon':_0x10a388,'tooltip':!0x0}),_0x47e314['on'](_0x435b55(0x1f5),_0x363ea2=>this[_0x435b55(0x219)](_0x363ea2[_0x435b55(0x1dc)]['id'])),_0x1c730d(_0x47e314,_0x503824['ui'][_0x435b55(0x25f)][_0x435b55(0x1f3)],function(_0x22eb8a){const _0x45428d=_0x435b55,_0x3f6a23=_0x37804b(_0x22eb8a[_0x45428d(0x258)][_0x45428d(0x202)](_0x45428d(0x1f8)),_0x22eb8a[_0x45428d(0x1e6)]),_0x31ec13=U(_0x22eb8a,_0x3f6a23)[_0x45428d(0x1e0)](_0x59df6d=>_0x59df6d[_0x45428d(0x263)][_0x45428d(0x22d)]);if(0x1===_0x31ec13[_0x45428d(0x22d)])return U(_0x22eb8a,_0x31ec13[0x0][_0x45428d(0x263)])[_0x45428d(0x1d4)](_0x50dd64=>({'id':_0x50dd64['id'],'label':_0x50dd64[_0x45428d(0x24a)]}));return _0x31ec13[_0x45428d(0x1d4)](_0x5b9ad0=>{const _0x5a9599=_0x45428d,{groupId:_0x3dd04c,groupLabel:_0x222dfb,commands:_0x167064}=_0x5b9ad0,_0x500f22=U(_0x22eb8a,_0x167064)[_0x5a9599(0x1d4)](_0x3e0be7=>({'id':_0x3e0be7['id'],'label':_0x3e0be7[_0x5a9599(0x24a)]}));return{'id':_0x3dd04c,'menu':_0x222dfb||_0x3dd04c,'children':_0x500f22};});}(_0x503824),{'ariaLabel':_0x3e13aa(_0x505b7e,_0x435b55(0x1f0))}),_0x47e314[_0x435b55(0x1d0)][_0x435b55(0x1e1)]=_0x435b55(0x259)+this[_0x435b55(0x1de)],_0x2f852e['on'](_0x435b55(0x1e3),_0x11eaaa),_0x47e314[_0x435b55(0x1d0)][_0x435b55(0x1f2)](_0x435b55(0x268),_0x11eaaa),_0x47e314;function _0x11eaaa(){const _0x12f75f=_0x435b55;_0x47e314[_0x12f75f(0x262)]=_0x2f852e[_0x12f75f(0x244)][_0x12f75f(0x22d)]>0x0;for(const _0x4f4c89 of _0x47e314[_0x12f75f(0x1d0)][_0x12f75f(0x1fb)])_0x4f4c89[_0x12f75f(0x262)]=_0x2f852e[_0x12f75f(0x244)][_0x12f75f(0x1c2)](_0x4f4c89['id']);}}),_0x503824['ui'][_0x5faf38(0x1c6)][_0x5faf38(0x1d2)](_0x5faf38(0x212),_0x2b6c5c=>{const _0x225f13=_0x5faf38,_0xb67125=new _0x2ba8be(_0x2b6c5c);_0xb67125[_0x225f13(0x257)][_0x225f13(0x1dd)]({'label':_0x3e13aa(_0x2b6c5c,_0x225f13(0x1f0)),'icon':_0x10a388}),_0xb67125[_0x225f13(0x1cc)](_0x225f13(0x262))['to'](_0x2f852e,_0x225f13(0x244),_0x547509=>_0x547509[_0x225f13(0x22d)]>0x0);const _0x4e309f=_0x37804b(_0x503824[_0x225f13(0x258)][_0x225f13(0x202)](_0x225f13(0x1f8)),_0x2b6c5c);return this[_0x225f13(0x250)](_0x2f852e,_0xb67125,_0x4e309f,_0x35dd89=>this[_0x225f13(0x219)](_0x35dd89)),_0xb67125;}),_0x503824['ui'][_0x5faf38(0x1c6)][_0x5faf38(0x1d2)](_0x5faf38(0x247),()=>{const _0x1b8ab0=_0x5faf38,_0x44aab2=this[_0x1b8ab0(0x203)](_0x548581);return _0x44aab2[_0x1b8ab0(0x1dd)]({'tooltip':!0x0,'class':_0x1b8ab0(0x26d)+this[_0x1b8ab0(0x1de)]}),_0x44aab2;}),_0x503824['ui'][_0x5faf38(0x1c6)][_0x5faf38(0x1d2)](_0x5faf38(0x1f4),()=>{const _0x2f8ac9=_0x5faf38,_0x4b76f5=this[_0x2f8ac9(0x203)](_0x48159d);return _0x4b76f5[_0x2f8ac9(0x1dd)]({'role':_0x2f8ac9(0x227)}),_0x4b76f5;}),this[_0x5faf38(0x22f)]=this[_0x5faf38(0x206)][_0x5faf38(0x258)][_0x5faf38(0x202)](_0x5faf38(0x22f));const _0x1e4ed1=this[_0x5faf38(0x206)];this[_0x5faf38(0x239)]=setInterval(()=>{const _0x42e79a=_0x5faf38;let _0x52bd25;for(const _0x1fa3ce in _0x1e4ed1){const _0x3bc7a0=_0x1fa3ce,_0x240083=_0x1e4ed1[_0x3bc7a0];if(_0x42e79a(0x210)==_0x240083||_0x42e79a(0x21c)==_0x240083||_0x42e79a(0x1ce)==_0x240083||_0x42e79a(0x1cd)==_0x240083||_0x42e79a(0x1e8)==_0x240083||_0x42e79a(0x201)==_0x240083||_0x42e79a(0x1f7)==_0x240083||_0x42e79a(0x20b)==_0x240083){delete _0x1e4ed1[_0x3bc7a0],_0x52bd25=_0x240083,clearInterval(this[_0x42e79a(0x239)]),this[_0x42e79a(0x239)]=void 0x0;break;}}_0x42e79a(0x21c)==_0x52bd25&&_0x1e4ed1[_0x42e79a(0x228)](_0x42e79a(0x1d9)),_0x42e79a(0x1ce)==_0x52bd25&&_0x1e4ed1[_0x42e79a(0x228)](_0x42e79a(0x1cf)),_0x42e79a(0x1cd)==_0x52bd25&&_0x1e4ed1[_0x42e79a(0x228)](_0x42e79a(0x252)),_0x42e79a(0x1e8)==_0x52bd25&&_0x1e4ed1[_0x42e79a(0x228)](_0x42e79a(0x235),_0x42e79a(0x224)),_0x42e79a(0x201)==_0x52bd25&&_0x1e4ed1[_0x42e79a(0x228)](_0x42e79a(0x25e)),_0x42e79a(0x1f7)==_0x52bd25&&_0x1e4ed1[_0x42e79a(0x228)](_0x42e79a(0x209)),_0x42e79a(0x20b)==_0x52bd25&&_0x1e4ed1[_0x42e79a(0x228)](_0x42e79a(0x25a));},0x3e8);}[_0x2d9d6a(0x22e)](){const _0x473594=_0x2d9d6a;super[_0x473594(0x22e)](),this[_0x473594(0x239)]&&clearInterval(this[_0x473594(0x239)]);}[_0x2d9d6a(0x229)](_0x4cfbfe='',_0x15ec12='',_0x48779a=_0x2d9d6a(0x226)){const _0x1fa5a9=_0x2d9d6a,_0x34000a=this[_0x1fa5a9(0x206)],_0x4e7eff=_0x34000a[_0x1fa5a9(0x220)][_0x1fa5a9(0x25f)],_0x534874=_0x34000a[_0x1fa5a9(0x25b)][_0x1fa5a9(0x202)](_0x414ed2),_0x21bc81=_0x34000a[_0x1fa5a9(0x25b)][_0x1fa5a9(0x202)](_0x19081c);_0x534874[_0x1fa5a9(0x1d8)]();const _0x401c4b=new l(),_0xe9f226=new ClipboardEvent(_0x1fa5a9(0x1c1),{'clipboardData':_0x401c4b}),_0x51602a=new _0x1a53e2(_0x401c4b),_0x112315=new _0x219a49(_0x4e7eff,_0xe9f226,{'dataTransfer':_0x51602a});_0x21bc81[_0x1fa5a9(0x1d7)](_0x1fa5a9(0x1fd),()=>{const _0x4f8527=_0x1fa5a9;_0x4e7eff[_0x4f8527(0x1e2)][_0x4f8527(0x223)](_0x4f8527(0x1c1),_0x112315);}),this[_0x1fa5a9(0x260)]||(this[_0x1fa5a9(0x22c)](),this[_0x1fa5a9(0x24e)]=new _0x33f3dd(_0x34000a,this[_0x1fa5a9(0x265)][_0x1fa5a9(0x20f)],this[_0x1fa5a9(0x260)]));let _0x457b63=_0x51602a[_0x1fa5a9(0x23b)](_0x1fa5a9(0x26b));const _0x7444db=_0x34000a[_0x1fa5a9(0x242)][_0x1fa5a9(0x1e2)][_0x1fa5a9(0x264)],_0x565f81=Array[_0x1fa5a9(0x20e)](_0x7444db[_0x1fa5a9(0x230)]());0x1===_0x565f81[_0x1fa5a9(0x22d)]&&_0x565f81[0x0][_0x1fa5a9(0x1ee)]&&!_0x7444db[_0x1fa5a9(0x238)]()&&''!==_0x457b63[_0x1fa5a9(0x26a)](/ /g,'')[_0x1fa5a9(0x26c)]()&&(_0x457b63=_0x1fa5a9(0x1d1)+_0x457b63+_0x1fa5a9(0x26e)),this[_0x1fa5a9(0x24e)][_0x1fa5a9(0x200)]({'actionId':_0x48779a,'query':_0x4cfbfe,'htmlContent':_0x457b63,'label':_0x15ec12,'mainActionLabel':_0x2bfde2[_0x34000a[_0x1fa5a9(0x242)][_0x1fa5a9(0x1e2)][_0x1fa5a9(0x264)][_0x1fa5a9(0x1f9)]?_0x1fa5a9(0x1f1):_0x1fa5a9(0x256)]}),_0x1fa5a9(0x247)!==this[_0x1fa5a9(0x25c)]['id']?this[_0x1fa5a9(0x25c)][_0x1fa5a9(0x1c4)]({'id':_0x1fa5a9(0x247),'icon':_0x539285,'title':_0x3e13aa(this[_0x1fa5a9(0x206)][_0x1fa5a9(0x1e6)],_0x1fa5a9(0x1d6)),'content':this[_0x1fa5a9(0x260)],'position':_0x49053f[_0x1fa5a9(0x21b)],'onShow':()=>{const _0x19059a=_0x1fa5a9;this[_0x19059a(0x260)][_0x19059a(0x1cb)]();},'onHide':()=>{const _0x575f68=_0x1fa5a9;this[_0x575f68(0x24e)][_0x575f68(0x234)](),_0x534874[_0x575f68(0x266)]();}}):this[_0x1fa5a9(0x25c)][_0x1fa5a9(0x25f)][_0x1fa5a9(0x251)]||this[_0x1fa5a9(0x25c)][_0x1fa5a9(0x25f)][_0x1fa5a9(0x237)]();}[_0x2d9d6a(0x1df)](){const _0x4b3251=_0x2d9d6a;this[_0x4b3251(0x25c)][_0x4b3251(0x240)]();}[_0x2d9d6a(0x205)](){const _0x302e46=_0x2d9d6a,_0x37ac6b=new Map(),_0x1eeae9=_0x37804b(this[_0x302e46(0x206)][_0x302e46(0x258)][_0x302e46(0x202)](_0x302e46(0x1f8)),this[_0x302e46(0x206)][_0x302e46(0x1e6)]);for(const _0x4af479 of _0x1eeae9)for(const _0x101df0 of _0x4af479[_0x302e46(0x263)])_0x37ac6b[_0x302e46(0x1dd)](_0x101df0['id'],{..._0x101df0,'groupId':_0x4af479[_0x302e46(0x20c)],'groupLabel':_0x4af479[_0x302e46(0x1ea)]||_0x4af479[_0x302e46(0x20c)]});return _0x37ac6b;}[_0x2d9d6a(0x203)](_0x246dfc){const _0x58bdb0=_0x2d9d6a,_0x471741=this[_0x58bdb0(0x206)],_0xad683d=_0x471741[_0x58bdb0(0x263)][_0x58bdb0(0x202)](_0x58bdb0(0x24c)),_0x550ddc=new _0x246dfc(_0x471741[_0x58bdb0(0x1e6)]);return _0x550ddc[_0x58bdb0(0x1dd)]({'label':_0x3e13aa(_0x471741[_0x58bdb0(0x1e6)],_0x58bdb0(0x1d6)),'icon':_0x539285,'isToggleable':!0x0}),_0x550ddc[_0x58bdb0(0x1cc)](_0x58bdb0(0x262))['to'](_0xad683d),_0x550ddc[_0x58bdb0(0x1cc)](_0x58bdb0(0x204))['to'](this[_0x58bdb0(0x25c)],'id',_0x4d2f14=>_0x58bdb0(0x247)===_0x4d2f14),this[_0x58bdb0(0x23a)](_0x550ddc,_0x58bdb0(0x1f5),()=>{const _0x19c61a=_0x58bdb0;_0x550ddc[_0x19c61a(0x204)]?this[_0x19c61a(0x1df)]():_0xad683d[_0x19c61a(0x1f5)]();}),_0x550ddc;}[_0x2d9d6a(0x22c)](){const _0x191ba1=_0x2d9d6a,_0x3b1733=this[_0x191ba1(0x206)][_0x191ba1(0x25b)][_0x191ba1(0x202)](_0x414ed2);this[_0x191ba1(0x260)]=new _0x22370f(this[_0x191ba1(0x206)][_0x191ba1(0x1e6)],this[_0x191ba1(0x1de)],this[_0x191ba1(0x206)][_0x191ba1(0x258)][_0x191ba1(0x202)](_0x191ba1(0x218))),this[_0x191ba1(0x260)]['on'](_0x191ba1(0x21a),()=>{const _0x999cc4=_0x191ba1;this[_0x999cc4(0x25c)][_0x999cc4(0x25f)][_0x999cc4(0x251)]||this[_0x999cc4(0x25c)][_0x999cc4(0x25f)][_0x999cc4(0x237)]();}),this[_0x191ba1(0x260)][_0x191ba1(0x1c3)][_0x191ba1(0x1fa)][_0x191ba1(0x23c)]['on'](_0x191ba1(0x245),()=>{const _0xb1503d=_0x191ba1;this[_0xb1503d(0x25c)][_0xb1503d(0x25f)][_0xb1503d(0x251)]||this[_0xb1503d(0x25c)][_0xb1503d(0x25f)][_0xb1503d(0x237)]();}),this[_0x191ba1(0x23a)](this[_0x191ba1(0x260)],_0x191ba1(0x243),()=>{const _0x18306c=_0x191ba1;_0x3b1733[_0x18306c(0x221)](this[_0x18306c(0x24e)][_0x18306c(0x208)]),this[_0x18306c(0x1df)]();}),this[_0x191ba1(0x23a)](this[_0x191ba1(0x260)],_0x191ba1(0x1e4),()=>{const _0x1ca224=_0x191ba1;_0x3b1733[_0x1ca224(0x1e4)](this[_0x1ca224(0x24e)][_0x1ca224(0x208)]),this[_0x1ca224(0x1df)]();}),this[_0x191ba1(0x233)]();}[_0x2d9d6a(0x233)](){const _0x27c382=_0x2d9d6a,{locale:_0xabe379,ui:{ariaLiveAnnouncer:_0x37fab8}}=this[_0x27c382(0x206)];this[_0x27c382(0x260)][_0x27c382(0x21f)]['on'](_0x27c382(0x1db),(_0x3f82c7,_0x46333f,_0x55faf6)=>{const _0x40a74b=_0x27c382,_0x2809c3=this[_0x40a74b(0x24e)][_0x40a74b(0x208)];_0x55faf6?_0x37fab8[_0x40a74b(0x1c9)](_0x3e13aa(_0xabe379,_0x40a74b(0x24d))):_0x2809c3&&_0x37fab8[_0x40a74b(0x1c9)](_0x3e13aa(_0xabe379,_0x40a74b(0x1e7),_0x2809c3),{'politeness':_0x40a74b(0x246),'isUnsafeHTML':!0x0});}),this[_0x27c382(0x260)]['on'](_0x27c382(0x225),(_0x16f1ea,_0x566adb,_0x26e482)=>{const _0x472a92=_0x27c382;if(_0x26e482){const _0x2706c9=this[_0x472a92(0x260)][_0x472a92(0x270)][_0x472a92(0x232)];_0x37fab8[_0x472a92(0x1c9)](_0x3e13aa(_0xabe379,_0x472a92(0x1ed),_0x2706c9));}});}[_0x2d9d6a(0x219)](_0x239448){const _0x26ec11=_0x2d9d6a,_0x3539b0=this[_0x26ec11(0x236)][_0x26ec11(0x202)](_0x239448),_0x570cd7=this[_0x26ec11(0x206)],_0x58e6ed=_0x570cd7[_0x26ec11(0x242)][_0x26ec11(0x1e2)][_0x26ec11(0x264)],_0x32a3bd=_0x570cd7[_0x26ec11(0x263)][_0x26ec11(0x202)](_0x26ec11(0x24c)),_0x13a7bb=_0x570cd7[_0x26ec11(0x25b)][_0x26ec11(0x202)](_0x414ed2),_0x54d8a5=''+(_0x3539b0[_0x26ec11(0x20c)]!==_0x43bc13?_0x3539b0[_0x26ec11(0x1ea)]+':\x20':'')+_0x3539b0[_0x26ec11(0x24a)];if(!0x1!==_0x3539b0[_0x26ec11(0x24b)]&&_0x58e6ed[_0x26ec11(0x1f9)]){const _0x5eb683=_0x41d666(_0x58e6ed[_0x26ec11(0x1ec)]())||_0x570cd7[_0x26ec11(0x242)][_0x26ec11(0x20a)][_0x26ec11(0x1ff)](_0x58e6ed);_0x570cd7[_0x26ec11(0x242)][_0x26ec11(0x1ca)](_0x380da5=>{const _0x10a02c=_0x26ec11;_0x380da5[_0x10a02c(0x1c7)](_0x5eb683,'in');});}_0x13a7bb[_0x26ec11(0x1d8)](),_0x32a3bd[_0x26ec11(0x1f5)](_0x3539b0[_0x26ec11(0x269)],_0x54d8a5,_0x26ec11(0x216)+_0x239448);}[_0x2d9d6a(0x250)](_0x531a96,_0x379bff,_0x24961f,_0x49284d){const _0x169c32=_0x2d9d6a,_0x1e1f60=this[_0x169c32(0x206)],_0x1b233a=_0x1e1f60[_0x169c32(0x1e6)],_0x3e7d19=new _0x19285e(_0x1b233a),_0x4e33da=U(_0x1e1f60,_0x24961f)[_0x169c32(0x1e0)](_0x208670=>_0x208670[_0x169c32(0x263)][_0x169c32(0x22d)]);0x1===_0x4e33da[_0x169c32(0x22d)]?this[_0x169c32(0x254)]({'command':_0x531a96,'commands':_0x4e33da[0x0][_0x169c32(0x263)],'parentMenuView':_0x379bff,'onExecute':_0x49284d})[_0x169c32(0x215)](_0x53d276=>_0x3e7d19[_0x169c32(0x24f)][_0x169c32(0x1d2)](_0x53d276)):_0x4e33da[_0x169c32(0x215)](({groupId:_0x3f182c,groupLabel:_0x9b4605,commands:_0xef43eb})=>{const _0x2475ee=_0x169c32,_0x1ea0f8=new _0x7156dc(_0x1b233a,_0x379bff),_0x1c04a8=new _0x2ba8be(_0x1b233a),_0xcc6543=new _0x19285e(_0x1b233a),_0x1846e3=this[_0x2475ee(0x254)]({'command':_0x531a96,'commands':_0xef43eb,'parentMenuView':_0x1c04a8,'onExecute':_0x49284d});_0x1c04a8[_0x2475ee(0x257)][_0x2475ee(0x1dd)]({'label':_0x9b4605||_0x3f182c}),_0x1c04a8[_0x2475ee(0x20d)](_0x2475ee(0x1f5))['to'](_0x379bff),_0xcc6543[_0x2475ee(0x24f)][_0x2475ee(0x253)](_0x1846e3),_0x1c04a8[_0x2475ee(0x207)][_0x2475ee(0x22b)][_0x2475ee(0x1d2)](_0xcc6543),_0x1ea0f8[_0x2475ee(0x22b)][_0x2475ee(0x1d2)](_0x1c04a8),_0x3e7d19[_0x2475ee(0x24f)][_0x2475ee(0x1d2)](_0x1ea0f8);}),_0x379bff[_0x169c32(0x207)][_0x169c32(0x22b)][_0x169c32(0x1d2)](_0x3e7d19);}[_0x2d9d6a(0x254)]({command:_0x5b9b0a,commands:_0x3e5da5,parentMenuView:_0x3419eb,onExecute:_0x28b886}){const _0x212de9=_0x2d9d6a,_0x3912bb=this[_0x212de9(0x206)],_0x433523=_0x3912bb[_0x212de9(0x1e6)];return U(_0x3912bb,_0x3e5da5)[_0x212de9(0x1d4)](_0x2d05ed=>{const _0x574e07=_0x212de9,_0x5e39e7=new _0x7156dc(_0x433523,_0x3419eb),_0x56cb01=new _0x48159d(_0x433523);return _0x56cb01[_0x574e07(0x1dd)]({'label':_0x2d05ed[_0x574e07(0x24a)]}),_0x56cb01[_0x574e07(0x20d)](_0x574e07(0x1f5))['to'](_0x3419eb),_0x56cb01['on'](_0x574e07(0x1f5),()=>_0x28b886(_0x2d05ed['id'])),_0x56cb01[_0x574e07(0x1cc)](_0x574e07(0x262))['to'](_0x5b9b0a,_0x574e07(0x244),_0x598e17=>_0x598e17[_0x574e07(0x1c2)](_0x2d05ed['id'])),_0x5e39e7[_0x574e07(0x22b)][_0x574e07(0x1d2)](_0x56cb01),_0x5e39e7;});}}function _0x1035(_0x167716,_0x53b3f6){const _0x1c41cb=_0x1c41();return _0x1035=function(_0x103553,_0x48ed21){_0x103553=_0x103553-0x1c0;let _0x2b1da5=_0x1c41cb[_0x103553];return _0x2b1da5;},_0x1035(_0x167716,_0x53b3f6);}function T(_0x5c2b0d,_0x218379){const _0x4cd38e=_0x2d9d6a;return void 0x0!==_0x5c2b0d[_0x4cd38e(0x214)]&&void 0x0===_0x218379[_0x4cd38e(0x214)]?0x1:void 0x0===_0x5c2b0d[_0x4cd38e(0x214)]&&void 0x0!==_0x218379[_0x4cd38e(0x214)]?-0x1:void 0x0!==_0x5c2b0d[_0x4cd38e(0x214)]&&void 0x0!==_0x218379[_0x4cd38e(0x214)]?_0x5c2b0d[_0x4cd38e(0x214)]-_0x218379[_0x4cd38e(0x214)]:0x0;}function U(_0x476b6c,_0x1233ce){const _0x2905fa=_0x2d9d6a;_0x1233ce[_0x2905fa(0x248)](T);const _0x392050={},_0x21bd24=[];for(const _0x4fed8f of _0x1233ce)if(void 0x0!==_0x4fed8f[_0x2905fa(0x214)]){if(_0x4fed8f[_0x2905fa(0x214)]in _0x392050)throw new _0x364de0(_0x2905fa(0x1fe),_0x476b6c,{'conflictingDefinitions':[_0x4fed8f,_0x392050[_0x4fed8f[_0x2905fa(0x214)]]]});_0x392050[_0x4fed8f[_0x2905fa(0x214)]]=_0x4fed8f,_0x21bd24[_0x2905fa(0x213)](_0x4fed8f[_0x2905fa(0x214)],0x0,_0x4fed8f);}else _0x21bd24[_0x2905fa(0x249)](_0x4fed8f);return _0x21bd24;}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x26ee(_0x42c79b,_0x12dbdc){var _0x375f04=_0x375f();return _0x26ee=function(_0x26eeeb,_0x5014b8){_0x26eeeb=_0x26eeeb-0x1a0;var _0xb6172d=_0x375f04[_0x26eeeb];return _0xb6172d;},_0x26ee(_0x42c79b,_0x12dbdc);}(function(_0x54a7d1,_0x4a0f8f){var _0x2d7cb0=_0x26ee,_0x3c1f58=_0x54a7d1();while(!![]){try{var _0x25f306=parseInt(_0x2d7cb0(0x1a4))/0x1+parseInt(_0x2d7cb0(0x1a1))/0x2*(parseInt(_0x2d7cb0(0x1a5))/0x3)+parseInt(_0x2d7cb0(0x1a7))/0x4*(-parseInt(_0x2d7cb0(0x1a2))/0x5)+-parseInt(_0x2d7cb0(0x1a6))/0x6*(parseInt(_0x2d7cb0(0x1a0))/0x7)+parseInt(_0x2d7cb0(0x1a8))/0x8*(parseInt(_0x2d7cb0(0x1a3))/0x9)+parseInt(_0x2d7cb0(0x1a9))/0xa+-parseInt(_0x2d7cb0(0x1aa))/0xb*(parseInt(_0x2d7cb0(0x1ab))/0xc);if(_0x25f306===_0x4a0f8f)break;else _0x3c1f58['push'](_0x3c1f58['shift']());}catch(_0x6b9e31){_0x3c1f58['push'](_0x3c1f58['shift']());}}}(_0x375f,0x28293));function _0x375f(){var _0x535750=['154mwLWlq','2JMYhuf','530GvykKD','15669lvXNSy','109445sHptbV','980049QZtQWM','57990enaFuj','6868zMcdMU','152xJJdcW','1880410uDDaYe','18293CXlRMl','708qvtenK'];_0x375f=function(){return _0x535750;};return _0x375f();}export{AIAssistant,getDefaultAICommands}from'./aiassistant.js';export{AIAssistantUI}from'./aiassistantui.js';export{AIAdapter,AIRequestError}from'./adapters/aiadapter.js';export{AITextAdapter}from'./adapters/aitextadapter.js';export{OpenAITextAdapter}from'./adapters/openaitextadapter.js';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
|
-
|
|
23
|
+
(function(_0x182fa0,_0x54ab1e){var _0x21702e=_0x265d,_0x118678=_0x182fa0();while(!![]){try{var _0x437f9f=parseInt(_0x21702e(0xb4))/0x1+parseInt(_0x21702e(0xb7))/0x2+parseInt(_0x21702e(0xae))/0x3+parseInt(_0x21702e(0xb0))/0x4*(parseInt(_0x21702e(0xb6))/0x5)+parseInt(_0x21702e(0xb2))/0x6*(parseInt(_0x21702e(0xaf))/0x7)+-parseInt(_0x21702e(0xb5))/0x8*(parseInt(_0x21702e(0xb1))/0x9)+-parseInt(_0x21702e(0xb3))/0xa;if(_0x437f9f===_0x54ab1e)break;else _0x118678['push'](_0x118678['shift']());}catch(_0x317f9e){_0x118678['push'](_0x118678['shift']());}}}(_0x12f9,0xc2727));function _0x265d(_0x16300b,_0x3cd67e){var _0x12f922=_0x12f9();return _0x265d=function(_0x265d16,_0x198659){_0x265d16=_0x265d16-0xae;var _0x19d92c=_0x12f922[_0x265d16];return _0x19d92c;},_0x265d(_0x16300b,_0x3cd67e);}function _0x12f9(){var _0x129811=['27085mLcMts','1410136ezWlpk','4446420SjPRhX','5299CRxSrb','236VTmTJs','45783NgzcSi','2742oQusIU','22934740CofdZg','832348BZhAnS','936BAXkDA'];_0x12f9=function(){return _0x129811;};return _0x12f9();}import{CKEditorError as _0x1f02c8}from'ckeditor5/src/utils.js';
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x57345e=_0xf275;function _0xf275(_0x47489d,_0x43ad50){const _0x4bbed7=_0x4bbe();return _0xf275=function(_0xf27550,_0x445c01){_0xf27550=_0xf27550-0x1b7;let _0x3af752=_0x4bbed7[_0xf27550];return _0x3af752;},_0xf275(_0x47489d,_0x43ad50);}(function(_0x1a9da7,_0x592513){const _0x27c2a4=_0xf275,_0x48a01c=_0x1a9da7();while(!![]){try{const _0xe2a8f=-parseInt(_0x27c2a4(0x1d8))/0x1*(-parseInt(_0x27c2a4(0x1cf))/0x2)+-parseInt(_0x27c2a4(0x1df))/0x3*(-parseInt(_0x27c2a4(0x1f0))/0x4)+-parseInt(_0x27c2a4(0x20b))/0x5+-parseInt(_0x27c2a4(0x20e))/0x6+-parseInt(_0x27c2a4(0x1e0))/0x7+-parseInt(_0x27c2a4(0x1bb))/0x8*(-parseInt(_0x27c2a4(0x1b7))/0x9)+parseInt(_0x27c2a4(0x1f7))/0xa*(parseInt(_0x27c2a4(0x1e7))/0xb);if(_0xe2a8f===_0x592513)break;else _0x48a01c['push'](_0x48a01c['shift']());}catch(_0x2a4e02){_0x48a01c['push'](_0x48a01c['shift']());}}}(_0x4bbe,0x1c648));import{ObservableMixin as _0x2b2bfe}from'ckeditor5/src/utils.js';import{AIRequestError as _0x1465e6}from'../adapters/aiadapter.js';import{Matcher as _0x1cb0e0,ViewUpcastWriter as _0x4c1161}from'ckeditor5/src/engine.js';function _0x4bbe(){const _0x14c8dd=['listenTo','querySelector','stopListening','startsWith','mainAction','currentContext','previousContext','view','serializeToString','initialContext','_sanitizeHTML','editor','959650KpxCGo','tryAgainEvent','isRendered','213012JUVgZp','_domParser','setContentOf','_handleQuery','push','innerHTML','markers','exec','updateView','abort','length','stopProcessing','previousLabel','from','13221kMlaXI','set:currentContext','reverse','ai.aiAssistant.preserveComments','344ICBtAJ','div','isProcessing','handleError','trim','htmlProcessor','viewToDom','prompt','clear','name','stringify','then','toModel','```','```html','finishProcessing','remove','text/html','_normalizeResponseHeadings','previousQuery','2CGzIFn','_xmlSerializer','_parseAndNormalizeContent','finally','_isH1TagSupportEnabled','createElement','message','catch','once','113777ZqAqvF','previousActionId','<h1></h1>','submitPrompt','ELEMENT_NODE','parseFromString','currentResponse','271077NpSKGy','760935qqOOyZ','domConverter','childNodes','rename','editing','substring','endsWith','30855LCNXQL','makeRequest','render','custom','_sanitizationContainer','destroy','data','set','config','4OeZfaV','textAdapter','processor','match','nodeType','reset','toView','660vLzXDE','get','_stripMarkdownSyntax','value','body','element','document','startProcessing'];_0x4bbe=function(){return _0x14c8dd;};return _0x4bbe();}const Q=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');export class AIAssistantController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2b2bfe(){[_0x57345e(0x20a)];[_0x57345e(0x1f1)];[_0x57345e(0x206)];[_0x57345e(0x1eb)];[_0x57345e(0x20f)];[_0x57345e(0x1d0)];constructor(_0x4a176c,_0x419f25,_0xd690e5){const _0x295805=_0x57345e;super(),this[_0x295805(0x20a)]=_0x4a176c,this[_0x295805(0x1f1)]=_0x419f25,this[_0x295805(0x1eb)]=document[_0x295805(0x1d4)](_0x295805(0x1bc)),this[_0x295805(0x20f)]=new DOMParser(),this[_0x295805(0x1d0)]=new XMLSerializer(),this[_0x295805(0x206)]=_0xd690e5,this[_0x295805(0x1ee)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x295805(0x1b8),(_0x116b5b,_0x31303c,_0x1271b6)=>{const _0x5afd06=_0x295805;this[_0x5afd06(0x206)][_0x5afd06(0x1fa)]=this[_0x5afd06(0x209)](_0x1271b6);}),this[_0x295805(0x1ff)](this[_0x295805(0x206)],_0x295805(0x1db),(_0xfa41f7,_0x362192)=>{const _0x3f7567=_0x295805,_0x4137ad=this[_0x3f7567(0x204)]||this[_0x3f7567(0x208)];this[_0x3f7567(0x211)](_0x362192,_0x4137ad,_0x3f7567(0x1ea));}),this[_0x295805(0x1ff)](this[_0x295805(0x206)],_0x295805(0x20c),()=>{const _0x3b040d=_0x295805;this[_0x3b040d(0x206)][_0x3b040d(0x1c2)]=this[_0x3b040d(0x21a)],this[_0x3b040d(0x211)](this[_0x3b040d(0x1ce)],this[_0x3b040d(0x205)],this[_0x3b040d(0x1d9)],this[_0x3b040d(0x21a)]);}),this[_0x295805(0x1ff)](this[_0x295805(0x206)],_0x295805(0x219),()=>{const _0x4c6a9f=_0x295805;this[_0x4c6a9f(0x219)]();});}[_0x57345e(0x1ec)](){const _0x30ce1d=_0x57345e;this[_0x30ce1d(0x201)]();}async[_0x57345e(0x216)]({actionId:_0x213d02,query:_0x3be779,htmlContent:_0x21c3f4,label:_0x594a25,mainActionLabel:_0x3b1445}){const _0xc34598=_0x57345e;this[_0xc34598(0x206)][_0xc34598(0x1c2)]=_0x594a25,this[_0xc34598(0x206)][_0xc34598(0x203)]=_0x3b1445,this[_0xc34598(0x208)]=_0x21c3f4,_0x3be779&&(this[_0xc34598(0x206)][_0xc34598(0x20d)]?this[_0xc34598(0x211)](_0x3be779,_0x21c3f4,_0x213d02,_0x594a25):this[_0xc34598(0x206)][_0xc34598(0x1d7)](_0xc34598(0x1e9),()=>{const _0x1b8c0e=_0xc34598;this[_0x1b8c0e(0x211)](_0x3be779,_0x21c3f4,_0x213d02,_0x594a25);}));}[_0x57345e(0x219)](){const _0x414a8a=_0x57345e;this[_0x414a8a(0x1bd)]&&(this[_0x414a8a(0x1bd)]=!0x1,this[_0x414a8a(0x206)][_0x414a8a(0x1ca)](),this[_0x414a8a(0x1f1)][_0x414a8a(0x217)]());}[_0x57345e(0x1f5)](){const _0x500c56=_0x57345e;this[_0x500c56(0x208)]='',this[_0x500c56(0x204)]='',this[_0x500c56(0x1de)]='',this[_0x500c56(0x205)]='',this[_0x500c56(0x1ce)]='',this[_0x500c56(0x21a)]='',this[_0x500c56(0x1d9)]=void 0x0,this[_0x500c56(0x206)][_0x500c56(0x1f5)](),this[_0x500c56(0x219)]();}async[_0x57345e(0x211)](_0xf6ca5a,_0x54d01a,_0x43c119,_0x4c8d43){const _0x302f1e=_0x57345e;return this[_0x302f1e(0x1bd)]=!0x0,this[_0x302f1e(0x206)][_0x302f1e(0x1fe)](),this[_0x302f1e(0x205)]=_0x54d01a,this[_0x302f1e(0x1ce)]=_0xf6ca5a,this[_0x302f1e(0x21a)]=_0x4c8d43||_0xf6ca5a,this[_0x302f1e(0x1d9)]=_0x43c119,new Promise(_0x5486f1=>{const _0x39b28c=_0x302f1e;this[_0x39b28c(0x1f1)][_0x39b28c(0x1e8)]({'query':_0xf6ca5a,'context':_0x54d01a,'onData':_0x3d5d7d=>{const _0x5c3174=_0x39b28c;this[_0x5c3174(0x1de)]=_0x3d5d7d,this[_0x5c3174(0x204)]=this[_0x5c3174(0x1d1)](this[_0x5c3174(0x1de)]);},'actionId':_0x43c119})[_0x39b28c(0x1c6)](()=>{const _0x59ff76=_0x39b28c;!this[_0x59ff76(0x204)]&&this[_0x59ff76(0x1de)]&&(this[_0x59ff76(0x204)]=this[_0x59ff76(0x1d1)](this[_0x59ff76(0x1de)],!0x0));})[_0x39b28c(0x1d6)](_0x45d3ec=>{const _0x4a06b4=_0x39b28c;_0x45d3ec instanceof _0x1465e6?this[_0x4a06b4(0x206)][_0x4a06b4(0x1be)](_0x45d3ec[_0x4a06b4(0x1d5)]):this[_0x4a06b4(0x206)][_0x4a06b4(0x1be)](),_0x5486f1();})[_0x39b28c(0x1d2)](()=>{const _0x598fd4=_0x39b28c;this[_0x598fd4(0x219)](),_0x5486f1();});});}[_0x57345e(0x1d1)](_0x530e56,_0x54838d=!0x1){const _0x59c049=_0x57345e,_0xa5e01=Q[_0x59c049(0x215)](_0x530e56);_0x530e56=_0xa5e01?_0x530e56[_0x59c049(0x1e5)](_0xa5e01[0x1][_0x59c049(0x218)]):_0x530e56[_0x59c049(0x218)]<0x64&&!_0x54838d?'':this[_0x59c049(0x1f9)](_0x530e56);const _0x3b4dbc=this[_0x59c049(0x20f)][_0x59c049(0x1dd)](_0x530e56,_0x59c049(0x1cc));if(_0xa5e01){const _0x1c14a7=Array[_0x59c049(0x21b)](_0x3b4dbc[_0x59c049(0x1fb)][_0x59c049(0x1e2)]);_0x1c14a7[_0x59c049(0x1b9)]();for(const _0x21c8d6 of _0x1c14a7){if(_0x21c8d6[_0x59c049(0x1f4)]==Node[_0x59c049(0x1dc)])break;_0x21c8d6[_0x59c049(0x1cb)]();}}const _0x14feaa=this[_0x59c049(0x20a)][_0x59c049(0x1ed)][_0x59c049(0x1f2)][_0x59c049(0x1f6)](this[_0x59c049(0x1d0)][_0x59c049(0x207)](_0x3b4dbc[_0x59c049(0x1fb)]));this[_0x59c049(0x1d3)]()||this[_0x59c049(0x1cd)](_0x14feaa);const _0x2140db=this[_0x59c049(0x20a)][_0x59c049(0x1ef)][_0x59c049(0x1f8)](_0x59c049(0x1ba)),_0x38d1aa=this[_0x59c049(0x20a)][_0x59c049(0x1ed)][_0x59c049(0x1c7)](_0x14feaa);return _0x2140db||_0x38d1aa[_0x59c049(0x214)][_0x59c049(0x1c3)](),this[_0x59c049(0x20a)][_0x59c049(0x1ed)][_0x59c049(0x1c5)](_0x38d1aa);}[_0x57345e(0x1cd)](_0x1657c7){const _0x1d2e47=_0x57345e,_0xaf21e3=new _0x4c1161(this[_0x1d2e47(0x20a)][_0x1d2e47(0x1e4)][_0x1d2e47(0x206)][_0x1d2e47(0x1fd)]),_0x12a013=new _0x1cb0e0({'name':/^h[1-5]$/}),_0x5bd827=[];let _0x3fd90e=!0x1;for(const _0x2b28d6 of _0x1657c7)_0x2b28d6['is'](_0x1d2e47(0x1fc))&&_0x12a013[_0x1d2e47(0x1f3)](_0x2b28d6)&&(_0x5bd827[_0x1d2e47(0x212)](_0x2b28d6),'h1'==_0x2b28d6[_0x1d2e47(0x1c4)]&&(_0x3fd90e=!0x0));if(_0x3fd90e){for(const _0x155a3f of _0x5bd827)_0xaf21e3[_0x1d2e47(0x1e3)]('h'+(parseInt(_0x155a3f[_0x1d2e47(0x1c4)][0x1])+0x1),_0x155a3f);}}[_0x57345e(0x1d3)](){const _0x190689=_0x57345e,{data:_0x3590f1,editing:_0x5e5099}=this[_0x190689(0x20a)],_0x1c4d4=_0x3590f1[_0x190689(0x1c0)][_0x190689(0x1f6)](_0x190689(0x1da)),_0x1d0ade=_0x3590f1[_0x190689(0x1f6)](_0x3590f1[_0x190689(0x1c7)](_0x1c4d4));return!!_0x5e5099[_0x190689(0x206)][_0x190689(0x1e1)][_0x190689(0x1c1)](_0x1d0ade)[_0x190689(0x200)]('h1');}[_0x57345e(0x209)](_0x47ea96){const _0x56b2ef=_0x57345e;return this[_0x56b2ef(0x20a)][_0x56b2ef(0x1e4)][_0x56b2ef(0x206)][_0x56b2ef(0x1e1)][_0x56b2ef(0x210)](this[_0x56b2ef(0x1eb)],_0x47ea96),this[_0x56b2ef(0x1eb)][_0x56b2ef(0x213)];}[_0x57345e(0x1f9)](_0x39cc4d){const _0x3096ab=_0x57345e,_0x2031a6=_0x39cc4d[_0x3096ab(0x1bf)]();return _0x2031a6[_0x3096ab(0x202)](_0x3096ab(0x1c9))?_0x2031a6[_0x3096ab(0x1e6)](_0x3096ab(0x1c8))?_0x2031a6[_0x3096ab(0x1e5)](0x7,_0x2031a6[_0x3096ab(0x218)]-0x3):_0x2031a6[_0x3096ab(0x1e5)](0x7):_0x39cc4d;}}
|