@ckeditor/ckeditor5-ai 46.0.0-alpha.1 → 46.0.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- 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.d.ts +1 -2
- 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
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x455c86=_0x47e3;function _0x96ed(){const _0x48fc6a=['Moderation','map','content','4smaHUu','_prepareRequestParameters','getReader','data:\x20','replace','context_length_exceeded','sendRequest','reject','1838035rZHwxj','user','785058lTCcqY','_requestHeaders','body','7065832QSVjCs','9OfSvZr','570305IUkddM','1973526wMAnHa','parse','_isBufferIncomplete','_cleanUpData','stream','join','json','OpenAITextAdapter','AI_ERROR_CONTEXT_LENGTH','text','get','_apiUrl','https://api.openai.com/v1/chat/completions','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.','length','ai.openAI.apiUrl','prepareMessages','choices','_prepareRequestHeaders','_readStaticResponse','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','decode','resolve','1063206qKveBk','message','abortController','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','pluginName','define','_requestParameters','[DONE]','delta','stringify','signal','split','AI_ERROR_MODERATION','POST','_readStreamableResponse','ai.openAI.requestHeaders','gpt-4o','system','ai.openAI.requestParameters','Instruction:\x0a','config','read','1975715QpARyS','editor','locale','filter','includes'];_0x96ed=function(){return _0x48fc6a;};return _0x96ed();}function _0x47e3(_0x4ed041,_0xd19410){const _0x96ed89=_0x96ed();return _0x47e3=function(_0x47e3de,_0x3ca513){_0x47e3de=_0x47e3de-0x1d1;let _0x5f5179=_0x96ed89[_0x47e3de];return _0x5f5179;},_0x47e3(_0x4ed041,_0xd19410);}(function(_0xf00cea,_0xc78023){const _0x16ecf6=_0x47e3,_0xf44d86=_0xf00cea();while(!![]){try{const _0x8c1586=-parseInt(_0x16ecf6(0x1f8))/0x1+-parseInt(_0x16ecf6(0x210))/0x2+-parseInt(_0x16ecf6(0x1f3))/0x3*(-parseInt(_0x16ecf6(0x1e9))/0x4)+-parseInt(_0x16ecf6(0x1f1))/0x5+parseInt(_0x16ecf6(0x1f9))/0x6+parseInt(_0x16ecf6(0x1e1))/0x7+-parseInt(_0x16ecf6(0x1f6))/0x8*(-parseInt(_0x16ecf6(0x1f7))/0x9);if(_0x8c1586===_0xc78023)break;else _0xf44d86['push'](_0xf44d86['shift']());}catch(_0x5d6cf1){_0xf44d86['push'](_0xf44d86['shift']());}}}(_0x96ed,0x45f66));import{AITextAdapter as _0x50d779}from'./aitextadapter.js';import{AIRequestError as _0x32e924}from'./aiadapter.js';import{getTranslation as _0x34456f}from'../utils/common-translations.js';export class OpenAITextAdapter extends _0x50d779{[_0x455c86(0x204)];[_0x455c86(0x1f4)];[_0x455c86(0x1d1)];static get[_0x455c86(0x214)](){const _0x2e5695=_0x455c86;return _0x2e5695(0x200);}constructor(_0x5d7fd8){const _0x594fff=_0x455c86;super(_0x5d7fd8),_0x5d7fd8[_0x594fff(0x1df)][_0x594fff(0x215)](_0x594fff(0x208),_0x594fff(0x205)),_0x5d7fd8[_0x594fff(0x1df)][_0x594fff(0x203)](_0x594fff(0x1dd))||_0x5d7fd8[_0x594fff(0x1df)][_0x594fff(0x215)](_0x594fff(0x1dd),{'model':_0x594fff(0x1db),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x594fff(0x204)]=_0x5d7fd8[_0x594fff(0x1df)][_0x594fff(0x203)](_0x594fff(0x208)),this[_0x594fff(0x1f4)]=_0x5d7fd8[_0x594fff(0x1df)][_0x594fff(0x203)](_0x594fff(0x1da))||{},this[_0x594fff(0x1d1)]=_0x5d7fd8[_0x594fff(0x1df)][_0x594fff(0x203)](_0x594fff(0x1dd));}async[_0x455c86(0x1ef)]({query:_0x9ae584,context:_0x16590c,onData:_0x262407,actionId:_0x145238}){const _0x4052b2=_0x455c86,_0x587ae3=this[_0x4052b2(0x1e2)][_0x4052b2(0x1e3)],_0x11f2c9=await this[_0x4052b2(0x209)](_0x9ae584,_0x16590c,_0x145238),_0x1044f0=await this[_0x4052b2(0x20b)](this[_0x4052b2(0x1f4)],_0x145238),_0x292259=await this[_0x4052b2(0x1ea)](this[_0x4052b2(0x1d1)],_0x145238),_0x52e7d1={'messages':_0x11f2c9,..._0x292259},_0x337edf={'method':_0x4052b2(0x1d8),'headers':_0x1044f0,'body':JSON[_0x4052b2(0x1d4)](_0x52e7d1),'signal':this[_0x4052b2(0x212)][_0x4052b2(0x1d5)]},_0x33b105=await fetch(this[_0x4052b2(0x204)],_0x337edf);if(_0x33b105['ok'])return _0x292259[_0x4052b2(0x1fd)]?await this[_0x4052b2(0x1d9)](_0x33b105,_0x262407):await this[_0x4052b2(0x20c)](_0x33b105,_0x262407),Promise[_0x4052b2(0x20f)]();{const _0x26ef63=await _0x33b105[_0x4052b2(0x202)]();return _0x26ef63[_0x4052b2(0x1e5)](_0x4052b2(0x1ee))?Promise[_0x4052b2(0x1f0)](new _0x32e924(_0x34456f(_0x587ae3,_0x4052b2(0x201)))):_0x26ef63[_0x4052b2(0x1e5)](_0x4052b2(0x1e6))?Promise[_0x4052b2(0x1f0)](new _0x32e924(_0x34456f(_0x587ae3,_0x4052b2(0x1d7)))):Promise[_0x4052b2(0x1f0)](new Error(_0x26ef63));}}async[_0x455c86(0x209)](_0x2b8443,_0x6d348b,_0x533204){const _0x23db44=_0x455c86;let _0x5b03cf,_0x3064b7;return _0x6d348b?(_0x5b03cf=_0x23db44(0x206),_0x3064b7=_0x23db44(0x1de)+_0x2b8443+_0x23db44(0x20d)+_0x6d348b):(_0x5b03cf=_0x23db44(0x213),_0x3064b7=_0x2b8443),[{'role':_0x23db44(0x1dc),'content':_0x5b03cf},{'role':_0x23db44(0x1f2),'content':_0x3064b7}];}async[_0x455c86(0x1d9)](_0x11e496,_0xadf22a){const _0x3da609=_0x455c86,_0xe4da1c=_0x11e496[_0x3da609(0x1f5)][_0x3da609(0x1eb)](),_0x4475de=new TextDecoder();let _0x4f8c24='',_0x31d230='',_0x16801f='',_0x5a418d=!0x1;for(;!_0x5a418d;){const {done:_0x2e1b13,value:_0xad7c4d}=await _0xe4da1c[_0x3da609(0x1e0)](),_0x124ec0=_0x4f8c24+_0x4475de[_0x3da609(0x20e)](_0xad7c4d);let _0x5c5ac4='';_0x5a418d=_0x2e1b13;try{_0x5c5ac4=this[_0x3da609(0x1fc)](_0x124ec0),_0x4f8c24='';}catch{_0x4f8c24=_0x124ec0;continue;}_0x31d230+=_0x5c5ac4,!_0x5a418d&&this[_0x3da609(0x1fb)](_0x31d230)||_0x31d230&&(_0x16801f+=_0x31d230,_0x31d230='',_0xadf22a(_0x16801f));}return Promise[_0x3da609(0x20f)]();}async[_0x455c86(0x20c)](_0x54cf99,_0x3889ad){const _0x4dd810=_0x455c86;return _0x3889ad((await _0x54cf99[_0x4dd810(0x1ff)]())[_0x4dd810(0x20a)][0x0][_0x4dd810(0x211)][_0x4dd810(0x1e8)]),Promise[_0x4dd810(0x20f)]();}[_0x455c86(0x1fb)](_0x467da7){const _0x3cf263=_0x455c86,_0x6e885=_0x467da7[_0x3cf263(0x1d6)]('<')[_0x3cf263(0x207)]!==_0x467da7[_0x3cf263(0x1d6)]('>')[_0x3cf263(0x207)],_0xea6a10=_0x467da7[_0x3cf263(0x207)]<0x1e;return _0x6e885&&_0xea6a10;}[_0x455c86(0x1fc)](_0x6efc79){const _0x5072fa=_0x455c86;return _0x6efc79[_0x5072fa(0x1d6)](/\n(?![^{]*\})/g)[_0x5072fa(0x1e7)](_0x35a1b0=>_0x35a1b0[_0x5072fa(0x1ed)](_0x5072fa(0x1ec),''))[_0x5072fa(0x1e4)](_0x1693f0=>_0x1693f0&&_0x1693f0[_0x5072fa(0x207)]>0x0&&_0x5072fa(0x1d2)!==_0x1693f0)[_0x5072fa(0x1e7)](_0x17cb7a=>{const _0x2f0ec7=_0x5072fa,{choices:_0x1c6ec5}=JSON[_0x2f0ec7(0x1fa)](_0x17cb7a);if(_0x1c6ec5[0x0]?.[_0x2f0ec7(0x1d3)]?.[_0x2f0ec7(0x1e8)])return _0x1c6ec5[0x0][_0x2f0ec7(0x1d3)][_0x2f0ec7(0x1e8)];})[_0x5072fa(0x1e4)](_0x44bff4=>_0x44bff4)[_0x5072fa(0x1fe)]('');}}
|
package/src/aiassistant.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x22890e=_0x7a49;(function(_0x19b230,_0x3e2abf){const _0x2ddcaa=_0x7a49,_0x579e0c=_0x19b230();while(!![]){try{const _0x16471a=-parseInt(_0x2ddcaa(0x1ef))/0x1+parseInt(_0x2ddcaa(0x218))/0x2*(parseInt(_0x2ddcaa(0x226))/0x3)+-parseInt(_0x2ddcaa(0x1ec))/0x4+parseInt(_0x2ddcaa(0x1f0))/0x5*(-parseInt(_0x2ddcaa(0x224))/0x6)+parseInt(_0x2ddcaa(0x22c))/0x7+parseInt(_0x2ddcaa(0x1be))/0x8*(parseInt(_0x2ddcaa(0x1c9))/0x9)+-parseInt(_0x2ddcaa(0x1c0))/0xa*(-parseInt(_0x2ddcaa(0x1e8))/0xb);if(_0x16471a===_0x3e2abf)break;else _0x579e0c['push'](_0x579e0c['shift']());}catch(_0x5762d5){_0x579e0c['push'](_0x579e0c['shift']());}}}(_0x14ab,0x6733e));function _0x14ab(){const _0x17be91=['continue','English','translatePortuguese','translateSpanish','Translate\x20the\x20content\x20to\x20Spanish\x20language.','makeShorter','isOfficialPlugin','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Casual','Simplify\x20language','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','pluginName','Simplified\x20Chinese','ai.aiAssistant.removeCommands','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','Generate\x20from\x20selection','Translate\x20the\x20content\x20to\x20English\x20language.','Portuguese','Continue','Direct','Arabic','Professional','Legal','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','Summarize','14vWaZjZ','locale','Change\x20style','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','translateEnglish','Hindi','business','filter','legal','set','Friendly','6MCKiZG','forEach','177186RKfQla','journalism','includes','simplifyLanguage','casual','Translate\x20the\x20content\x20to\x20French\x20language.','2798964kPYJcZ','ai.aiAssistant.commands','1192ZjKaVC','find','10sXhwze','define','makeLonger','Translate','isPremiumPlugin','translateGerman','Confident','Spanish','AIAssistant','6309sNFLvN','editOrReview','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','translateFrench','confident','translate','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','Make\x20longer','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','Poetic','professional','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','ai.aiAssistant.preserveComments','Make\x20shorter','changeStyle','concat','Translate\x20the\x20content\x20to\x20Hindi\x20language.','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','Improve\x20writing','requires','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','Edit\x20or\x20review','improveWriting','get','Business','Translate\x20the\x20content\x20to\x20German\x20language.','translateArabic','translateChinese','summarize','friendly','5305894NZllBh','direct','groupId','generate','2993008MXVjaS','Journalism','poetic','181888kpjbMa','236155DXjAwL','German','changeTone','ai.aiAssistant.extraCommandGroups','Change\x20tone','config','push','French','translateHindi','commands','Translate\x20the\x20content\x20to\x20Arabic\x20language.'];_0x14ab=function(){return _0x17be91;};return _0x14ab();}import{Plugin as _0x106f7c}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x5448bd}from'./aiassistantui.js';import{AIAssistantEditing as _0x4c8a91}from'./aiassistantediting.js';import{getTranslation as _0x1429e0}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x147f3f}from'./utils/normalizecommandsconfig.js';export class AIAssistant extends _0x106f7c{static get[_0x22890e(0x1dd)](){return[_0x5448bd,_0x4c8a91];}static get[_0x22890e(0x207)](){const _0x376218=_0x22890e;return _0x376218(0x1c8);}static get[_0x22890e(0x201)](){return!0x0;}static get[_0x22890e(0x1c4)](){return!0x0;}constructor(_0x571b4e){const _0xed0f00=_0x22890e;super(_0x571b4e);const _0x5f3458=_0x571b4e[_0xed0f00(0x1f5)],_0x3887bd=_0x571b4e[_0xed0f00(0x219)];_0x5f3458[_0xed0f00(0x1c1)](_0xed0f00(0x1d5),!0x0),_0x5f3458[_0xed0f00(0x1c1)](_0xed0f00(0x1bd),getDefaultAICommands(_0x3887bd)),_0x5f3458[_0xed0f00(0x1c1)](_0xed0f00(0x1f3),[]),_0x5f3458[_0xed0f00(0x1c1)](_0xed0f00(0x209),[]);let _0x10c7e1=_0x147f3f(_0x5f3458[_0xed0f00(0x1e1)](_0xed0f00(0x1bd)),_0x3887bd);const _0x44037a=_0x5f3458[_0xed0f00(0x1e1)](_0xed0f00(0x1f3)),_0x42a16b=_0x5f3458[_0xed0f00(0x1e1)](_0xed0f00(0x209));_0x44037a[_0xed0f00(0x225)](_0x19820e=>{const _0x4642e5=_0xed0f00,_0xbfc15f=_0x10c7e1[_0x4642e5(0x1bf)](_0x12e187=>_0x12e187[_0x4642e5(0x1ea)]===_0x19820e[_0x4642e5(0x1ea)]);_0xbfc15f?_0xbfc15f[_0x4642e5(0x1f9)]=_0xbfc15f[_0x4642e5(0x1f9)][_0x4642e5(0x1d8)](_0x19820e[_0x4642e5(0x1f9)]):_0x10c7e1[_0x4642e5(0x1f6)](_0x19820e);}),_0x10c7e1=_0x10c7e1[_0xed0f00(0x220)](_0x3b8d68=>!_0x42a16b[_0xed0f00(0x228)](_0x3b8d68[_0xed0f00(0x1ea)])),_0x10c7e1[_0xed0f00(0x225)](_0xd3866b=>{const _0x320e4a=_0xed0f00;_0xd3866b[_0x320e4a(0x1f9)]=_0xd3866b[_0x320e4a(0x1f9)][_0x320e4a(0x220)](_0x115f75=>!_0x42a16b[_0x320e4a(0x228)](_0x115f75['id']));}),_0x5f3458[_0xed0f00(0x222)](_0xed0f00(0x1bd),_0x10c7e1);}}function _0x7a49(_0x24a2c5,_0x5ee0a3){const _0x14ab9b=_0x14ab();return _0x7a49=function(_0x7a492,_0x13431a){_0x7a492=_0x7a492-0x1bd;let _0xad3d38=_0x14ab9b[_0x7a492];return _0xad3d38;},_0x7a49(_0x24a2c5,_0x5ee0a3);}export function getDefaultAICommands(_0x216932){const _0x9a3def=_0x22890e;return[{'groupId':_0x9a3def(0x1ca),'groupLabel':_0x1429e0(_0x216932,_0x9a3def(0x1df)),'commands':[{'id':_0x9a3def(0x1e0),'label':_0x1429e0(_0x216932,_0x9a3def(0x1dc)),'prompt':_0x9a3def(0x21b)},{'id':_0x9a3def(0x200),'label':_0x1429e0(_0x216932,_0x9a3def(0x1d6)),'prompt':_0x9a3def(0x1da)},{'id':_0x9a3def(0x1c2),'label':_0x1429e0(_0x216932,_0x9a3def(0x1d0)),'prompt':_0x9a3def(0x202)},{'id':_0x9a3def(0x229),'label':_0x1429e0(_0x216932,_0x9a3def(0x205)),'prompt':_0x9a3def(0x1d4)}]},{'groupId':_0x9a3def(0x1eb),'groupLabel':_0x1429e0(_0x216932,_0x9a3def(0x20b)),'commands':[{'id':_0x9a3def(0x1e6),'label':_0x1429e0(_0x216932,_0x9a3def(0x217)),'prompt':_0x9a3def(0x215)},{'id':_0x9a3def(0x1fb),'label':_0x1429e0(_0x216932,_0x9a3def(0x20e)),'prompt':_0x9a3def(0x1db)}]},{'groupId':_0x9a3def(0x1f2),'groupLabel':_0x1429e0(_0x216932,_0x9a3def(0x1f4)),'commands':[{'id':_0x9a3def(0x1d3),'label':_0x1429e0(_0x216932,_0x9a3def(0x211)),'prompt':_0x9a3def(0x20a)},{'id':_0x9a3def(0x22a),'label':_0x1429e0(_0x216932,_0x9a3def(0x204)),'prompt':_0x9a3def(0x213)},{'id':_0x9a3def(0x1e9),'label':_0x1429e0(_0x216932,_0x9a3def(0x20f)),'prompt':_0x9a3def(0x21c)},{'id':_0x9a3def(0x1cd),'label':_0x1429e0(_0x216932,_0x9a3def(0x1c6)),'prompt':_0x9a3def(0x1d1)},{'id':_0x9a3def(0x1e7),'label':_0x1429e0(_0x216932,_0x9a3def(0x223)),'prompt':_0x9a3def(0x214)}]},{'groupId':_0x9a3def(0x1d7),'groupLabel':_0x1429e0(_0x216932,_0x9a3def(0x21a)),'commands':[{'id':_0x9a3def(0x21f),'label':_0x1429e0(_0x216932,_0x9a3def(0x1e2)),'prompt':_0x9a3def(0x1de)},{'id':_0x9a3def(0x221),'label':_0x1429e0(_0x216932,_0x9a3def(0x212)),'prompt':_0x9a3def(0x1cb)},{'id':_0x9a3def(0x227),'label':_0x1429e0(_0x216932,_0x9a3def(0x1ed)),'prompt':_0x9a3def(0x206)},{'id':_0x9a3def(0x1ee),'label':_0x1429e0(_0x216932,_0x9a3def(0x1d2)),'prompt':_0x9a3def(0x203)}]},{'groupId':_0x9a3def(0x1ce),'groupLabel':_0x1429e0(_0x216932,_0x9a3def(0x1c3)),'commands':[{'id':_0x9a3def(0x21d),'label':_0x1429e0(_0x216932,_0x9a3def(0x1fc)),'prompt':_0x9a3def(0x20c)},{'id':_0x9a3def(0x1fe),'label':_0x1429e0(_0x216932,_0x9a3def(0x1c7)),'prompt':_0x9a3def(0x1ff)},{'id':_0x9a3def(0x1fd),'label':_0x1429e0(_0x216932,_0x9a3def(0x20d)),'prompt':_0x9a3def(0x1cf)},{'id':_0x9a3def(0x1c5),'label':_0x1429e0(_0x216932,_0x9a3def(0x1f1)),'prompt':_0x9a3def(0x1e3)},{'id':_0x9a3def(0x1cc),'label':_0x1429e0(_0x216932,_0x9a3def(0x1f7)),'prompt':_0x9a3def(0x22b)},{'id':_0x9a3def(0x1e5),'label':_0x1429e0(_0x216932,_0x9a3def(0x208)),'prompt':_0x9a3def(0x216)},{'id':_0x9a3def(0x1f8),'label':_0x1429e0(_0x216932,_0x9a3def(0x21e)),'prompt':_0x9a3def(0x1d9)},{'id':_0x9a3def(0x1e4),'label':_0x1429e0(_0x216932,_0x9a3def(0x210)),'prompt':_0x9a3def(0x1fa)}]}];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x25da33=_0x5010;function _0x302f(){const _0x28403a=['deleteContent','markerRange','pop','ck-ai-assistant-ui_theme','last','_getDefaultInsertBelowPosition','data','join','ai-ui','getColumnIndexes','resultRange','isOfficialPlugin','push','first','length','element','parse','from','fire','filter','editing','getLastMatchingPosition','getMarkersGroup','afterInit','103956YyVGSa','_getAISelection','_pasteHTMLUsingClipboard','addClass','has','once','setSelection','isPremiumPlugin','lowest','getChildren','isAtEnd','off','insertContent','getRange','model','editor','for','table','_createEmptyTableRows','AIAssistantEditing','pluginName','getRanges','getRows','getFirstRange','getChild','change','insertRows','createUIElement','DataTransfer','markerToElement','href','createRange','updateMarker','map','1676409fJpeUl','createPositionAfter','addMarker','getLastPosition','paste','init','TableUtils','hideFakeVisualSelection','2553622oztoQQ','27580JJAqUq','ck-fake-ai-selection','isCollapsed','256326gmcqYn','start','fromCharCode','_resetContentOfSelectedTableCells','ai.useTheme','15230INlFYs','showFakeVisualSelection','contentInsertion','_getTableRowCountFromContent','schema','setData','ck-fake-ai-selection_collapsed','removeMarker','isContent','text/html','forEach','getSelectedBlocks','config','canEditAt','createPositionAt','span','117XllDMF','plugins','2123gBAnSD','document','get','createSelection','conversion','40xRhTNJ','215aCsHxi','selection','insertContentBelow','_prepareTableInsertBelowPosition','end','getRowIndexes','3mGNvsi','editingDowncast','markers','getSelectedTableCells','findAncestor','3070914LAybip','markerToHighlight'];_0x302f=function(){return _0x28403a;};return _0x302f();}(function(_0x14694c,_0x50b534){const _0x1cde86=_0x5010,_0x1d64d1=_0x14694c();while(!![]){try{const _0x3b45b2=-parseInt(_0x1cde86(0x177))/0x1+-parseInt(_0x1cde86(0x173))/0x2*(-parseInt(_0x1cde86(0x19a))/0x3)+-parseInt(_0x1cde86(0x174))/0x4*(parseInt(_0x1cde86(0x194))/0x5)+-parseInt(_0x1cde86(0x19f))/0x6+parseInt(_0x1cde86(0x16b))/0x7*(-parseInt(_0x1cde86(0x193))/0x8)+-parseInt(_0x1cde86(0x18c))/0x9*(parseInt(_0x1cde86(0x17c))/0xa)+parseInt(_0x1cde86(0x18e))/0xb*(parseInt(_0x1cde86(0x149))/0xc);if(_0x3b45b2===_0x50b534)break;else _0x1d64d1['push'](_0x1d64d1['shift']());}catch(_0x334691){_0x1d64d1['push'](_0x1d64d1['shift']());}}}(_0x302f,0xa2d1a));import{uid as _0x5b409d}from'ckeditor5/src/utils.js';import{Plugin as _0xcafad8}from'ckeditor5/src/core.js';import{ClipboardPipeline as _0x2133d5}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0xbf3f4f,ViewDataTransfer as _0x41c805}from'ckeditor5/src/engine.js';const l=globalThis[_0x25da33(0x165)],w=_0x25da33(0x1a9);function _0x5010(_0xe206fd,_0x58c5c8){const _0x302f8c=_0x302f();return _0x5010=function(_0x501076,_0x4bc4ae){_0x501076=_0x501076-0x143;let _0x3511ea=_0x302f8c[_0x501076];return _0x3511ea;},_0x5010(_0xe206fd,_0x58c5c8);}export class AIAssistantEditing extends _0xcafad8{static get[_0x25da33(0x15d)](){const _0x10a23a=_0x25da33;return _0x10a23a(0x15c);}static get[_0x25da33(0x1ac)](){return!0x0;}static get[_0x25da33(0x150)](){return!0x0;}[_0x25da33(0x170)](){const _0x1414d4=_0x25da33,{editor:_0x2ee535}=this,_0x2bb5b5=[_0x1414d4(0x175)];_0x2ee535[_0x1414d4(0x188)][_0x1414d4(0x190)](_0x1414d4(0x17b))&&_0x2bb5b5[_0x1414d4(0x1ad)](_0x1414d4(0x1a4)),_0x2ee535[_0x1414d4(0x192)][_0x1414d4(0x159)](_0x1414d4(0x19b))[_0x1414d4(0x1a0)]({'model':w,'view':{'classes':_0x2bb5b5,'priority':0xc}}),_0x2ee535[_0x1414d4(0x192)][_0x1414d4(0x159)](_0x1414d4(0x19b))[_0x1414d4(0x166)]({'model':w,'view':(_0x1884ec,{writer:_0x4b8841})=>{const _0x2f0b3f=_0x1414d4;if(!_0x1884ec[_0x2f0b3f(0x1a2)][_0x2f0b3f(0x176)])return null;const _0x21bd3b=_0x4b8841[_0x2f0b3f(0x164)](_0x2f0b3f(0x18b));return _0x4b8841[_0x2f0b3f(0x14c)]([_0x2f0b3f(0x175),_0x2f0b3f(0x182)],_0x21bd3b),_0x21bd3b;}});}[_0x25da33(0x148)](){!async function(_0x1bdaa3){const _0x1295dc=_0x7cc9d3([0x6e,0x49,0x4a,0x57,0x37,0x41,0x64,0x4b,0x35,0x66,0x76,0x56,0x78,0x61,0x48,0x34,0x68,0x62,0x67,0x31,0x6b,0x5a,0x7a,0x6a,0x43,0x6c,0x45,0x47,0x69,0x52,0x55,0x77,0x54,0x39,0x74,0x73,0x4f,0x38,0x32,0x4e,0x4d,0x50,0x51,0x70,0x53,0x65,0x4c,0x72,0x63,0x71,0x6d,0x44,0x33,0x79,0x36,0x46,0x42,0x30,0x58,0x59,0x75,0x6f]),_0x39d42a=0x67d50d11,_0x5b4ca2=0x67d26179^_0x39d42a,_0x94b126=window[_0x7cc9d3([0x44,0x61,0x74,0x65])][_0x7cc9d3([0x6e,0x6f,0x77])](),_0x5fe8fc=_0x1bdaa3[_0x7cc9d3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x210743=new window[(_0x7cc9d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ccdef=>{_0x5fe8fc[_0x7cc9d3([0x6f,0x6e,0x63,0x65])](_0x7cc9d3([0x72,0x65,0x61,0x64,0x79]),_0x2ccdef);}),_0x2b4e64={[_0x7cc9d3([0x6b,0x74,0x79])]:_0x7cc9d3([0x45,0x43]),[_0x7cc9d3([0x75,0x73,0x65])]:_0x7cc9d3([0x73,0x69,0x67]),[_0x7cc9d3([0x63,0x72,0x76])]:_0x7cc9d3([0x50,0x2d,0x32,0x35,0x36]),[_0x7cc9d3([0x78])]:_0x7cc9d3([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]),[_0x7cc9d3([0x79])]:_0x7cc9d3([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]),[_0x7cc9d3([0x61,0x6c,0x67])]:_0x7cc9d3([0x45,0x53,0x32,0x35,0x36])},_0x2b7dec=_0x5fe8fc[_0x7cc9d3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x7cc9d3([0x67,0x65,0x74])](_0x7cc9d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1da0b8(){let _0x324feb,_0x470640=null,_0xd239c8=null;try{if(_0x2b7dec==_0x7cc9d3([0x47,0x50,0x4c]))return _0x7cc9d3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x324feb=_0x1e6779(),!_0x324feb)return _0x7cc9d3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x324feb[_0x7cc9d3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xd239c8=_0x5e5828(_0x324feb[_0x7cc9d3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x324feb[_0x7cc9d3([0x6a,0x74,0x69])])),await _0x3c88e9()?_0x2c652a()?_0x2ddf29()?_0x7cc9d3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4e470d()?(_0x324feb[_0x7cc9d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x7cc9d3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x470640=_0x2ea06c(_0x7cc9d3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x324feb[_0x7cc9d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x7cc9d3([0x74,0x72,0x69,0x61,0x6c])&&(_0x470640=_0x2ea06c(_0x7cc9d3([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1337f9()):_0x7cc9d3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x7cc9d3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x7cc9d3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x7cc9d3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2ddf29(){const _0x6b97dd=[_0x7cc9d3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x7cc9d3([0x74,0x72,0x69,0x61,0x6c])][_0x7cc9d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x324feb[_0x7cc9d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x94b126/0x3e8:0xe10*_0x5b4ca2;return _0x324feb[_0x7cc9d3([0x65,0x78,0x70])]<_0x6b97dd;}function _0x2c652a(){const _0x57cd29=_0x324feb[_0x7cc9d3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x57cd29&&(!!_0x57cd29[_0x7cc9d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7cc9d3([0x2a]))||!!_0x57cd29[_0x7cc9d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7cc9d3([0x41,0x49])));}function _0x4e470d(){const _0x3c65d1=_0x5010,_0x441f49=_0x324feb[_0x7cc9d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x441f49||0x0==_0x441f49[_0x7cc9d3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x30d3ab}=new URL(window[_0x7cc9d3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x3c65d1(0x167)]);if(_0x441f49[_0x7cc9d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30d3ab))return!0x0;const _0x4f9cb6=_0x30d3ab[_0x7cc9d3([0x73,0x70,0x6c,0x69,0x74])](_0x7cc9d3([0x2e]));return _0x441f49[_0x7cc9d3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xc35058=>_0xc35058[_0x7cc9d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7cc9d3([0x2a])))[_0x7cc9d3([0x6d,0x61,0x70])](_0x5d738d=>_0x5d738d[_0x7cc9d3([0x73,0x70,0x6c,0x69,0x74])](_0x7cc9d3([0x2e])))[_0x7cc9d3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xd77841=>_0xd77841[_0x7cc9d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4f9cb6[_0x7cc9d3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x7cc9d3([0x6d,0x61,0x70])](_0xf7b095=>Array(_0x4f9cb6[_0x7cc9d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xf7b095[_0x7cc9d3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x7cc9d3([0x66,0x69,0x6c,0x6c])](_0xf7b095[0x0]===_0x7cc9d3([0x2a])?_0x7cc9d3([0x2a]):'')[_0x7cc9d3([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xf7b095))[_0x7cc9d3([0x73,0x6f,0x6d,0x65])](_0x28874c=>_0x4f9cb6[_0x7cc9d3([0x65,0x76,0x65,0x72,0x79])]((_0x4d47d5,_0x35447f)=>_0x28874c[_0x35447f]===_0x4d47d5||_0x28874c[_0x35447f]===_0x7cc9d3([0x2a])));}function _0x1337f9(){return _0x470640&&_0xd239c8?new window[(_0x7cc9d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x57d617,_0x2263f0)=>{_0x470640[_0x7cc9d3([0x74,0x68,0x65,0x6e])](_0x57d617,_0x2263f0),_0xd239c8[_0x7cc9d3([0x74,0x68,0x65,0x6e])](_0x1d65ca=>{_0x1d65ca!=_0x7cc9d3([0x56,0x61,0x6c,0x69,0x64])&&_0x57d617(_0x1d65ca);},_0x2263f0);}):_0x470640||_0xd239c8||_0x7cc9d3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5e5828(_0x5d05b7,_0x49994c){return new window[(_0x7cc9d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b70cc=>{if(_0x40e910())return _0x4b70cc(_0x7cc9d3([0x56,0x61,0x6c,0x69,0x64]));_0x3f6833(),_0x5fe8fc[_0x7cc9d3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x7cc9d3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x97cbb8=!0x1;const _0x4b3d83=_0x5b409d();function _0x3bc5d8(_0x18b82c){return!!_0x18b82c&&(typeof _0x18b82c===_0x7cc9d3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x18b82c===_0x7cc9d3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x18b82c[_0x7cc9d3([0x74,0x68,0x65,0x6e])]===_0x7cc9d3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x18b82c[_0x7cc9d3([0x63,0x61,0x74,0x63,0x68])]===_0x7cc9d3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1126ee(_0x615ffd){_0x27128f(_0x615ffd)[_0x7cc9d3([0x74,0x68,0x65,0x6e])](_0x267c29=>{if(!_0x267c29||_0x267c29[_0x7cc9d3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x7cc9d3([0x6f,0x6b]))return _0x7cc9d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x28217f(_0x11f413(_0x4b3d83+_0x49994c))!=_0x267c29[_0x7cc9d3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x7cc9d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x7cc9d3([0x56,0x61,0x6c,0x69,0x64]);})[_0x7cc9d3([0x74,0x68,0x65,0x6e])](_0x38705b=>(_0x37bac8(),_0x38705b),()=>{const _0x571bcc=_0x4dbd03();return null==_0x571bcc?(_0x37bac8(),_0x7cc9d3([0x56,0x61,0x6c,0x69,0x64])):_0x7cc9d3(_0x94b126-_0x571bcc>(0x43d98911^_0x39d42a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x7cc9d3([0x74,0x68,0x65,0x6e])](_0x4b70cc)[_0x7cc9d3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4b70cc(_0x7cc9d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x16ec72=0x67e3e391^_0x39d42a;function _0x37bac8(){const _0x20f8c5=_0x7cc9d3([0x6c,0x6c,0x63,0x74,0x2d])+_0x28217f(_0x11f413(_0x5d05b7)),_0x5b3867=_0x3d3705(_0x28217f(window[_0x7cc9d3([0x4d,0x61,0x74,0x68])][_0x7cc9d3([0x63,0x65,0x69,0x6c])](_0x94b126/_0x16ec72)));window[_0x7cc9d3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x7cc9d3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x20f8c5,_0x5b3867);}function _0x4dbd03(){const _0x5905cc=_0x7cc9d3([0x6c,0x6c,0x63,0x74,0x2d])+_0x28217f(_0x11f413(_0x5d05b7)),_0x22326e=window[_0x7cc9d3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x7cc9d3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5905cc);return _0x22326e?window[_0x7cc9d3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3d3705(_0x22326e),0x10)*_0x16ec72:null;}function _0x27128f(_0x3e9fd7){return new window[(_0x7cc9d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x272d10,_0x134e63)=>{_0x3e9fd7[_0x7cc9d3([0x74,0x68,0x65,0x6e])](_0x272d10,_0x134e63),window[_0x7cc9d3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x134e63,0x67d4d9d1^_0x39d42a);});}}_0x5fe8fc[_0x7cc9d3([0x6f,0x6e])](_0x7cc9d3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1edbd6,_0x2ca549)=>{if(_0x2ca549[0x0]!=_0x5d05b7)return _0x4b70cc(_0x7cc9d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2ca549[0x1]={..._0x2ca549[0x1],[_0x7cc9d3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4b3d83};},{[_0x7cc9d3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x7cc9d3([0x68,0x69,0x67,0x68])}),_0x5fe8fc[_0x7cc9d3([0x6f,0x6e])](_0x7cc9d3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5f1ed3=>{_0x3bc5d8(_0x5f1ed3[_0x7cc9d3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x97cbb8=!0x0,_0x1126ee(_0x5f1ed3[_0x7cc9d3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x7cc9d3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x7cc9d3([0x6c,0x6f,0x77])}),_0x210743[_0x7cc9d3([0x74,0x68,0x65,0x6e])](()=>{_0x97cbb8||_0x4b70cc(_0x7cc9d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x40e910(){return _0x5fe8fc[_0x7cc9d3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x7cc9d3([0x76,0x69,0x65,0x77])][_0x7cc9d3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x7cc9d3([0x61,0x75,0x74,0x6f]);}function _0x3f6833(){_0x5fe8fc[_0x7cc9d3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x7cc9d3([0x76,0x69,0x65,0x77])][_0x7cc9d3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x7cc9d3([0x61,0x75,0x74,0x6f]);}}function _0x2ea06c(_0x4466a9){const _0x54b8ab=[new window[(_0x7cc9d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x396fe8=>setTimeout(_0x396fe8,0x67dc33dd^_0x39d42a)),_0x210743[_0x7cc9d3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x7cc9d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xdad75a=>{let _0x436815=0x0;_0x5fe8fc[_0x7cc9d3([0x6d,0x6f,0x64,0x65,0x6c])][_0x7cc9d3([0x6f,0x6e])](_0x7cc9d3([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5e7d05,_0x84d16e)=>{_0x84d16e[0x0][_0x7cc9d3([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x436815++,_0x436815==(0x67d50ce9^_0x39d42a)&&(_0xdad75a(),_0x5e7d05[_0x7cc9d3([0x6f,0x66,0x66])]());});}))];return window[_0x7cc9d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x7cc9d3([0x72,0x61,0x63,0x65])](_0x54b8ab)[_0x7cc9d3([0x74,0x68,0x65,0x6e])](()=>_0x4466a9);}async function _0x352da9(){await _0x210743,_0x5fe8fc[_0x7cc9d3([0x6d,0x6f,0x64,0x65,0x6c])][_0x7cc9d3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5302e3,_0x5fe8fc[_0x7cc9d3([0x6d,0x6f,0x64,0x65,0x6c])][_0x7cc9d3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5302e3,_0x5fe8fc[_0x7cc9d3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x7cc9d3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x50b874(_0x4ddd9d){const _0x556ffe=_0xc852cf();_0x5fe8fc[_0x556ffe]=_0x7cc9d3([0x61,0x69,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4ddd9d,_0x4ddd9d!=_0x7cc9d3([0x56,0x61,0x6c,0x69,0x64])&&_0x352da9();}function _0xc852cf(){const _0x2a2297=window[_0x7cc9d3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x7cc9d3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x7cc9d3([0x6e,0x6f,0x77])]())[_0x7cc9d3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x7cc9d3([0x2e]),'');let _0x5a557f=_0x7cc9d3([0x6e]);for(let _0x540d39=0x0;_0x540d39<_0x2a2297[_0x7cc9d3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x540d39+=0x2){let _0x3f45c7=window[_0x7cc9d3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a2297[_0x7cc9d3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x540d39,_0x540d39+0x2));_0x3f45c7>=_0x1295dc[_0x7cc9d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3f45c7-=_0x1295dc[_0x7cc9d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5a557f+=_0x1295dc[_0x3f45c7];}return _0x5a557f;}function _0x1e6779(){const _0x3eeacc=_0x2b7dec[_0x7cc9d3([0x73,0x70,0x6c,0x69,0x74])](_0x7cc9d3([0x2e]));if(0x3!=_0x3eeacc[_0x7cc9d3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4f47c5(_0x3eeacc[0x1]);function _0x4f47c5(_0x1552a3){const _0x357b0a=_0x493f32(_0x1552a3);return _0x357b0a&&_0x47cee5()?_0x357b0a:null;function _0x47cee5(){const _0x3bf418=_0x357b0a[_0x7cc9d3([0x6a,0x74,0x69])],_0x3adac3=window[_0x7cc9d3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3bf418[_0x7cc9d3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3bf418[_0x7cc9d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x11308a={..._0x357b0a,[_0x7cc9d3([0x6a,0x74,0x69])]:_0x3bf418[_0x7cc9d3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3bf418[_0x7cc9d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x11308a[_0x7cc9d3([0x76,0x63])],_0x11f413(_0x11308a)==_0x3adac3;}}}async function _0x3c88e9(){let _0x2d34a=!0x0;try{const _0x13ee25=_0x2b7dec[_0x7cc9d3([0x73,0x70,0x6c,0x69,0x74])](_0x7cc9d3([0x2e])),[_0x5584da,_0x2f4860,_0x410646]=_0x13ee25;return _0x47ac85(_0x5584da),await _0x114043(_0x5584da,_0x2f4860,_0x410646),_0x2d34a;}catch{return!0x1;}function _0x47ac85(_0x165535){const _0xd0150=_0x493f32(_0x165535);_0xd0150&&_0xd0150[_0x7cc9d3([0x61,0x6c,0x67])]==_0x7cc9d3([0x45,0x53,0x32,0x35,0x36])||(_0x2d34a=!0x1);}async function _0x114043(_0x4d5d5e,_0x5e6370,_0x33c52d){const _0x25f52b=window[_0x7cc9d3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x7cc9d3([0x66,0x72,0x6f,0x6d])](_0x7aceed(_0x33c52d),_0xaf647c=>_0xaf647c[_0x7cc9d3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x180c45=new window[(_0x7cc9d3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x7cc9d3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4d5d5e+_0x7cc9d3([0x2e])+_0x5e6370),_0x466b1b=window[_0x7cc9d3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x7cc9d3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x466b1b)return;const _0xa1b86f=await _0x466b1b[_0x7cc9d3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x7cc9d3([0x6a,0x77,0x6b]),_0x2b4e64,{[_0x7cc9d3([0x6e,0x61,0x6d,0x65])]:_0x7cc9d3([0x45,0x43,0x44,0x53,0x41]),[_0x7cc9d3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x7cc9d3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x7cc9d3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x466b1b[_0x7cc9d3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x7cc9d3([0x6e,0x61,0x6d,0x65])]:_0x7cc9d3([0x45,0x43,0x44,0x53,0x41]),[_0x7cc9d3([0x68,0x61,0x73,0x68])]:{[_0x7cc9d3([0x6e,0x61,0x6d,0x65])]:_0x7cc9d3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xa1b86f,_0x25f52b,_0x180c45)||(_0x2d34a=!0x1);}}function _0x493f32(_0x369280){return _0x369280[_0x7cc9d3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x7cc9d3([0x65,0x79]))?JSON[_0x7cc9d3([0x70,0x61,0x72,0x73,0x65])](_0x7aceed(_0x369280)):null;}function _0x7aceed(_0xaa7030){return window[_0x7cc9d3([0x61,0x74,0x6f,0x62])](_0xaa7030[_0x7cc9d3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x7cc9d3([0x2b]))[_0x7cc9d3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x7cc9d3([0x2f])));}function _0x11f413(_0xb1d34f){let _0x33cfa5=0x1505;function _0xb723a3(_0x549da2){for(let _0x218431=0x0;_0x218431<_0x549da2[_0x7cc9d3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x218431++){const _0x23edb3=_0x549da2[_0x7cc9d3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x218431);_0x33cfa5=(_0x33cfa5<<0x5)+_0x33cfa5+_0x23edb3,_0x33cfa5&=_0x33cfa5;}}function _0x363f8c(_0x34d4c9){Array[_0x7cc9d3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x34d4c9)?_0x34d4c9[_0x7cc9d3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x363f8c):_0x34d4c9&&typeof _0x34d4c9==_0x7cc9d3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x7cc9d3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x34d4c9)[_0x7cc9d3([0x73,0x6f,0x72,0x74])]()[_0x7cc9d3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1cb5e6,_0x1c4519])=>{_0xb723a3(_0x1cb5e6),_0x363f8c(_0x1c4519);}):_0xb723a3(window[_0x7cc9d3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x34d4c9));}return _0x363f8c(_0xb1d34f),_0x33cfa5>>>0x0;}function _0x28217f(_0xe0acc){return _0xe0acc[_0x7cc9d3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x7cc9d3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x7cc9d3([0x30]));}function _0x3d3705(_0x4fcbe6){return _0x4fcbe6[_0x7cc9d3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x7cc9d3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x7cc9d3([0x6a,0x6f,0x69,0x6e])]('');}function _0x5302e3(){}function _0x7cc9d3(_0x536b94){const _0x305657=_0x5010;return _0x536b94[_0x305657(0x16a)](_0x3f564d=>String[_0x305657(0x179)](_0x3f564d))[_0x305657(0x1a8)]('');}_0x50b874(await _0x1da0b8());}(this);}[_0x25da33(0x17d)](){const _0x101f0a=_0x25da33,_0xe3a45f=this[_0x101f0a(0x158)][_0x101f0a(0x157)];_0xe3a45f[_0x101f0a(0x162)](_0x226639=>{const _0x1aab98=_0x101f0a,_0x2a7996=_0xe3a45f[_0x1aab98(0x18f)][_0x1aab98(0x195)][_0x1aab98(0x15e)]();let _0x692c0f=0x0;for(const _0x5d834c of _0x2a7996){const _0xcc7981=w+':'+_0x692c0f;if(_0xe3a45f[_0x1aab98(0x19c)][_0x1aab98(0x14d)](_0xcc7981))_0x226639[_0x1aab98(0x169)](_0xcc7981,{'range':_0x5d834c});else{if(_0x5d834c[_0x1aab98(0x178)][_0x1aab98(0x153)]){const _0x299628=_0x5d834c[_0x1aab98(0x178)][_0x1aab98(0x146)](({item:_0xd4a752})=>!_0xe3a45f[_0x1aab98(0x180)][_0x1aab98(0x184)](_0xd4a752),{'boundaries':_0x5d834c});_0x226639[_0x1aab98(0x16d)](_0xcc7981,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x226639[_0x1aab98(0x168)](_0x299628,_0x5d834c[_0x1aab98(0x198)])});}else _0x226639[_0x1aab98(0x16d)](_0xcc7981,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x5d834c});}_0x692c0f++;}});}[_0x25da33(0x172)](){const _0x35cbe9=_0x25da33,_0x1e5d3c=this[_0x35cbe9(0x158)][_0x35cbe9(0x157)],_0xf466bc=Array[_0x35cbe9(0x1b2)](this[_0x35cbe9(0x158)][_0x35cbe9(0x157)][_0x35cbe9(0x19c)][_0x35cbe9(0x147)](w));_0xf466bc[_0x35cbe9(0x1af)]&&_0x1e5d3c[_0x35cbe9(0x162)](_0xdf79e1=>{const _0x222f6b=_0x35cbe9;_0xf466bc[_0x222f6b(0x186)](_0x3566a3=>{const _0x1397e2=_0x222f6b;_0xdf79e1[_0x1397e2(0x183)](_0x3566a3);});});}[_0x25da33(0x155)](_0x39e356,_0x2a20e7){const _0x2ad046=_0x25da33,_0x1df681=this[_0x2ad046(0x14a)](),_0x3f3be1=_0x2a20e7||_0x1df681[_0x2ad046(0x160)]();this[_0x2ad046(0x158)][_0x2ad046(0x157)][_0x2ad046(0x189)](_0x3f3be1)&&this[_0x2ad046(0x158)][_0x2ad046(0x157)][_0x2ad046(0x162)](_0x4e3a10=>{const _0x50442d=_0x2ad046;this[_0x50442d(0x172)](),_0x2a20e7||this[_0x50442d(0x17a)](_0x4e3a10,_0x1df681),this[_0x50442d(0x14b)]({'insertAt':_0x3f3be1,'writer':_0x4e3a10,'html':_0x39e356});});}[_0x25da33(0x196)](_0x7935b6){const _0x904265=_0x25da33,{model:_0x558adf}=this[_0x904265(0x158)],_0x39fa24=this[_0x904265(0x14a)]();_0x558adf[_0x904265(0x162)](()=>{const _0x49f893=_0x904265,_0x256912=this[_0x49f893(0x197)](_0x7935b6,_0x39fa24)||this[_0x49f893(0x1a6)](_0x39fa24);this[_0x49f893(0x155)](_0x7935b6,_0x256912);});}[_0x25da33(0x14a)](){const _0x441bae=_0x25da33,_0x462c85=this[_0x441bae(0x158)][_0x441bae(0x157)],_0xc7c90=Array[_0x441bae(0x1b2)](_0x462c85[_0x441bae(0x19c)][_0x441bae(0x147)](w))[_0x441bae(0x16a)](_0x5108ef=>_0x5108ef[_0x441bae(0x156)]());return _0x462c85[_0x441bae(0x191)](_0xc7c90);}[_0x25da33(0x14b)]({writer:_0x4d4970,html:_0x1c5bb1,insertAt:_0x2a12f0}){const _0x1c3c44=_0x25da33,{view:_0x526726}=this[_0x1c3c44(0x158)][_0x1c3c44(0x145)],_0x146f38=this[_0x1c3c44(0x158)][_0x1c3c44(0x18d)][_0x1c3c44(0x190)](_0x2133d5),_0x24cd8c=new l();_0x24cd8c[_0x1c3c44(0x181)](_0x1c3c44(0x185),_0x1c5bb1);const _0x4b170b=new ClipboardEvent(_0x1c3c44(0x16f),{'clipboardData':_0x24cd8c}),_0x127da6=new _0xbf3f4f(_0x526726,_0x4b170b,{'dataTransfer':new _0x41c805(_0x24cd8c)});_0x4d4970[_0x1c3c44(0x14f)](_0x2a12f0);const _0x1f6da9=(_0x37ae8e,_0x43165a)=>{const _0x1ba48c=_0x1c3c44;_0x43165a[_0x1ba48c(0x1ab)]&&_0x4d4970[_0x1ba48c(0x14f)](_0x43165a[_0x1ba48c(0x1ab)]);};_0x146f38[_0x1c3c44(0x14e)](_0x1c3c44(0x17e),_0x1f6da9,{'priority':_0x1c3c44(0x151)}),_0x526726[_0x1c3c44(0x18f)][_0x1c3c44(0x143)](_0x1c3c44(0x16f),_0x127da6),_0x146f38[_0x1c3c44(0x154)](_0x1c3c44(0x17e),_0x1f6da9);}[_0x25da33(0x1a6)](_0x17a930){const _0x589ff6=_0x25da33,{model:_0x236fff}=this[_0x589ff6(0x158)],_0x13b945=Array[_0x589ff6(0x1b2)](_0x17a930[_0x589ff6(0x187)]());return _0x13b945[_0x589ff6(0x1af)]?_0x236fff[_0x589ff6(0x16c)](_0x13b945[_0x589ff6(0x1a3)]()):_0x17a930[_0x589ff6(0x16e)]();}[_0x25da33(0x197)](_0x115eb3,_0x47a066){const _0x2249cc=_0x25da33,{model:_0x2973b4,plugins:_0x5496ea}=this[_0x2249cc(0x158)];if(_0x5496ea[_0x2249cc(0x14d)](_0x2249cc(0x171))){const _0x4f641d=_0x5496ea[_0x2249cc(0x190)](_0x2249cc(0x171))[_0x2249cc(0x19d)](_0x47a066);if(_0x4f641d[_0x2249cc(0x1af)]){const _0x4dee78=this[_0x2249cc(0x17f)](_0x115eb3),_0x12c082=this[_0x2249cc(0x15b)](_0x4f641d,_0x4dee78);return _0x2973b4[_0x2249cc(0x18a)](_0x12c082,0x0);}}return null;}[_0x25da33(0x17f)](_0x5c7bb0){const _0xb5d70f=_0x25da33,_0x55e9e9=this[_0xb5d70f(0x158)][_0xb5d70f(0x18d)][_0xb5d70f(0x190)](_0xb5d70f(0x171)),_0x5f484f=this[_0xb5d70f(0x158)][_0xb5d70f(0x1a7)][_0xb5d70f(0x1b1)](_0x5c7bb0),_0x2c5c5b=Array[_0xb5d70f(0x1b2)](_0x5f484f[_0xb5d70f(0x152)]())[_0xb5d70f(0x144)](_0x5b4a02=>_0x5b4a02['is'](_0xb5d70f(0x1b0),_0xb5d70f(0x15a)));let _0x43cd9f=0x0;return _0x2c5c5b[_0xb5d70f(0x186)](_0xd1a185=>{const _0x576abb=_0xb5d70f;_0x43cd9f+=_0x55e9e9[_0x576abb(0x15f)](_0xd1a185);}),_0x43cd9f;}[_0x25da33(0x15b)](_0x200a51,_0x29d5fd){const _0x18b580=_0x25da33,_0x523344=this[_0x18b580(0x158)][_0x18b580(0x18d)][_0x18b580(0x190)](_0x18b580(0x171)),_0x37ec39=_0x523344[_0x18b580(0x199)](_0x200a51),_0x56df0d=_0x523344[_0x18b580(0x1aa)](_0x200a51),_0x305d9c=_0x37ec39[_0x18b580(0x1a5)]+0x1,_0x428c4a=_0x56df0d[_0x18b580(0x1ae)],_0x44d189=_0x200a51[0x0][_0x18b580(0x19e)](_0x18b580(0x15a));for(let _0x522d38=0x0;_0x522d38<_0x29d5fd;_0x522d38++)_0x523344[_0x18b580(0x163)](_0x44d189,{'at':_0x305d9c});return _0x44d189[_0x18b580(0x161)](_0x305d9c)[_0x18b580(0x161)](_0x428c4a);}[_0x25da33(0x17a)](_0x2e45d4,_0x192ad6){const _0x1dc093=_0x25da33,{plugins:_0x33d5b2}=this[_0x1dc093(0x158)],{model:_0x41b544}=_0x2e45d4;if(!_0x33d5b2[_0x1dc093(0x14d)](_0x1dc093(0x171)))return;_0x33d5b2[_0x1dc093(0x190)](_0x1dc093(0x171))[_0x1dc093(0x19d)](_0x192ad6)[_0x1dc093(0x1af)]&&_0x41b544[_0x1dc093(0x1a1)](_0x192ad6);}}
|
|
23
|
+
const _0x1797cb=_0x3989;(function(_0x4288ce,_0x30eca7){const _0x2f984c=_0x3989,_0x5d8810=_0x4288ce();while(!![]){try{const _0x28f979=-parseInt(_0x2f984c(0x1d0))/0x1+-parseInt(_0x2f984c(0x191))/0x2+-parseInt(_0x2f984c(0x19d))/0x3*(parseInt(_0x2f984c(0x1d7))/0x4)+parseInt(_0x2f984c(0x1c4))/0x5*(parseInt(_0x2f984c(0x1ca))/0x6)+-parseInt(_0x2f984c(0x1f0))/0x7+-parseInt(_0x2f984c(0x1c7))/0x8*(-parseInt(_0x2f984c(0x1cc))/0x9)+parseInt(_0x2f984c(0x1fb))/0xa*(parseInt(_0x2f984c(0x1a6))/0xb);if(_0x28f979===_0x30eca7)break;else _0x5d8810['push'](_0x5d8810['shift']());}catch(_0x12a546){_0x5d8810['push'](_0x5d8810['shift']());}}}(_0x4603,0x5943b));import{uid as _0x4df640}from'ckeditor5/src/utils.js';import{Plugin as _0x51d6ee}from'ckeditor5/src/core.js';import{ClipboardPipeline as _0x2a3197}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0x18e0bb,ViewDataTransfer as _0x408146}from'ckeditor5/src/engine.js';const l=globalThis[_0x1797cb(0x1bc)],w=_0x1797cb(0x19f);function _0x3989(_0x383a03,_0x481bff){const _0x4603e9=_0x4603();return _0x3989=function(_0x39895f,_0x2f46a9){_0x39895f=_0x39895f-0x191;let _0x4472ad=_0x4603e9[_0x39895f];return _0x4472ad;},_0x3989(_0x383a03,_0x481bff);}export class AIAssistantEditing extends _0x51d6ee{static get[_0x1797cb(0x197)](){const _0x550ae8=_0x1797cb;return _0x550ae8(0x1e9);}static get[_0x1797cb(0x1aa)](){return!0x0;}static get[_0x1797cb(0x1e3)](){return!0x0;}[_0x1797cb(0x1f8)](){const _0x2b7ce7=_0x1797cb,{editor:_0xc42fe1}=this,_0x476983=[_0x2b7ce7(0x1cf)];_0xc42fe1[_0x2b7ce7(0x1b4)][_0x2b7ce7(0x1af)](_0x2b7ce7(0x195))&&_0x476983[_0x2b7ce7(0x1e5)](_0x2b7ce7(0x1eb)),_0xc42fe1[_0x2b7ce7(0x1a4)][_0x2b7ce7(0x19b)](_0x2b7ce7(0x1bb))[_0x2b7ce7(0x1da)]({'model':w,'view':{'classes':_0x476983,'priority':0xc}}),_0xc42fe1[_0x2b7ce7(0x1a4)][_0x2b7ce7(0x19b)](_0x2b7ce7(0x1bb))[_0x2b7ce7(0x1bf)]({'model':w,'view':(_0x37c64c,{writer:_0x14ec61})=>{const _0x3c42e9=_0x2b7ce7;if(!_0x37c64c[_0x3c42e9(0x1cd)][_0x3c42e9(0x1c6)])return null;const _0x447d84=_0x14ec61[_0x3c42e9(0x1c5)](_0x3c42e9(0x1ad));return _0x14ec61[_0x3c42e9(0x1ff)]([_0x3c42e9(0x1cf),_0x3c42e9(0x1b3)],_0x447d84),_0x447d84;}});}[_0x1797cb(0x1f5)](){!async function(_0x4bb82f){const _0x5bc916=_0x30ef08([0x55,0x34,0x47,0x4f,0x61,0x46,0x77,0x45,0x70,0x66,0x41,0x49,0x6c,0x79,0x78,0x63,0x58,0x7a,0x48,0x31,0x32,0x51,0x50,0x57,0x62,0x69,0x64,0x6f,0x30,0x71,0x54,0x36,0x59,0x52,0x42,0x73,0x4e,0x53,0x68,0x6d,0x65,0x4c,0x6b,0x6e,0x4a,0x75,0x4b,0x5a,0x35,0x43,0x67,0x74,0x56,0x38,0x76,0x33,0x37,0x72,0x44,0x6a,0x39,0x4d]),_0xc4072=0x4f1abb9c,_0x502c9c=0x4f1dd704^_0xc4072,_0x108cd6=window[_0x30ef08([0x44,0x61,0x74,0x65])][_0x30ef08([0x6e,0x6f,0x77])](),_0x426987=_0x4bb82f[_0x30ef08([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1c0cbb=new window[(_0x30ef08([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19a8e8=>{_0x426987[_0x30ef08([0x6f,0x6e,0x63,0x65])](_0x30ef08([0x72,0x65,0x61,0x64,0x79]),_0x19a8e8);}),_0x1dd610={[_0x30ef08([0x6b,0x74,0x79])]:_0x30ef08([0x45,0x43]),[_0x30ef08([0x75,0x73,0x65])]:_0x30ef08([0x73,0x69,0x67]),[_0x30ef08([0x63,0x72,0x76])]:_0x30ef08([0x50,0x2d,0x32,0x35,0x36]),[_0x30ef08([0x78])]:_0x30ef08([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]),[_0x30ef08([0x79])]:_0x30ef08([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]),[_0x30ef08([0x61,0x6c,0x67])]:_0x30ef08([0x45,0x53,0x32,0x35,0x36])},_0x191001=_0x426987[_0x30ef08([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x30ef08([0x67,0x65,0x74])](_0x30ef08([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x12ab20(){let _0x2c00dd,_0x58b1c1=null,_0x309302=null;try{if(_0x191001==_0x30ef08([0x47,0x50,0x4c]))return _0x30ef08([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2c00dd=_0x4a404f(),!_0x2c00dd)return _0x30ef08([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2c00dd[_0x30ef08([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x309302=_0x32f7da(_0x2c00dd[_0x30ef08([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2c00dd[_0x30ef08([0x6a,0x74,0x69])])),await _0x357028()?_0x388ed8()?_0x3ed9f0()?_0x30ef08([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xa2b9b6()?(_0x2c00dd[_0x30ef08([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x30ef08([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x58b1c1=_0x11219a(_0x30ef08([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2c00dd[_0x30ef08([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x30ef08([0x74,0x72,0x69,0x61,0x6c])&&(_0x58b1c1=_0x11219a(_0x30ef08([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x26ea8b()):_0x30ef08([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x30ef08([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x30ef08([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x30ef08([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3ed9f0(){const _0x2ef1d9=[_0x30ef08([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x30ef08([0x74,0x72,0x69,0x61,0x6c])][_0x30ef08([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c00dd[_0x30ef08([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x108cd6/0x3e8:0xe10*_0x502c9c;return _0x2c00dd[_0x30ef08([0x65,0x78,0x70])]<_0x2ef1d9;}function _0x388ed8(){const _0x2a6213=_0x2c00dd[_0x30ef08([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2a6213&&(!!_0x2a6213[_0x30ef08([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30ef08([0x2a]))||!!_0x2a6213[_0x30ef08([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30ef08([0x41,0x49])));}function _0xa2b9b6(){const _0x2ba953=_0x3989,_0x13cf10=_0x2c00dd[_0x30ef08([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x13cf10||0x0==_0x13cf10[_0x30ef08([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4cc104}=new URL(window[_0x30ef08([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2ba953(0x1f1)]);if(_0x13cf10[_0x30ef08([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4cc104))return!0x0;const _0x5a79b2=_0x4cc104[_0x30ef08([0x73,0x70,0x6c,0x69,0x74])](_0x30ef08([0x2e]));return _0x13cf10[_0x30ef08([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xc15121=>_0xc15121[_0x30ef08([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30ef08([0x2a])))[_0x30ef08([0x6d,0x61,0x70])](_0x4206fe=>_0x4206fe[_0x30ef08([0x73,0x70,0x6c,0x69,0x74])](_0x30ef08([0x2e])))[_0x30ef08([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x510d4d=>_0x510d4d[_0x30ef08([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5a79b2[_0x30ef08([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x30ef08([0x6d,0x61,0x70])](_0x23ddec=>Array(_0x5a79b2[_0x30ef08([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x23ddec[_0x30ef08([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x30ef08([0x66,0x69,0x6c,0x6c])](_0x23ddec[0x0]===_0x30ef08([0x2a])?_0x30ef08([0x2a]):'')[_0x30ef08([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x23ddec))[_0x30ef08([0x73,0x6f,0x6d,0x65])](_0x5d6df7=>_0x5a79b2[_0x30ef08([0x65,0x76,0x65,0x72,0x79])]((_0xdbdf10,_0x222edb)=>_0x5d6df7[_0x222edb]===_0xdbdf10||_0x5d6df7[_0x222edb]===_0x30ef08([0x2a])));}function _0x26ea8b(){return _0x58b1c1&&_0x309302?new window[(_0x30ef08([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1e643c,_0x54c145)=>{_0x58b1c1[_0x30ef08([0x74,0x68,0x65,0x6e])](_0x1e643c,_0x54c145),_0x309302[_0x30ef08([0x74,0x68,0x65,0x6e])](_0x47ec2c=>{_0x47ec2c!=_0x30ef08([0x56,0x61,0x6c,0x69,0x64])&&_0x1e643c(_0x47ec2c);},_0x54c145);}):_0x58b1c1||_0x309302||_0x30ef08([0x56,0x61,0x6c,0x69,0x64]);}}function _0x32f7da(_0x3acb9f,_0x5aea79){return new window[(_0x30ef08([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x534d19=>{if(_0x3fe99f())return _0x534d19(_0x30ef08([0x56,0x61,0x6c,0x69,0x64]));_0x37e67f(),_0x426987[_0x30ef08([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x30ef08([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5f3032=!0x1;const _0x894c55=_0x4df640();function _0x2e6580(_0x5f4ea8){return!!_0x5f4ea8&&(typeof _0x5f4ea8===_0x30ef08([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5f4ea8===_0x30ef08([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5f4ea8[_0x30ef08([0x74,0x68,0x65,0x6e])]===_0x30ef08([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5f4ea8[_0x30ef08([0x63,0x61,0x74,0x63,0x68])]===_0x30ef08([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xa48c0b(_0x3f97ef){_0x2cf357(_0x3f97ef)[_0x30ef08([0x74,0x68,0x65,0x6e])](_0x294b43=>{if(!_0x294b43||_0x294b43[_0x30ef08([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x30ef08([0x6f,0x6b]))return _0x30ef08([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x24fc99(_0x47bf66(_0x894c55+_0x5aea79))!=_0x294b43[_0x30ef08([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x30ef08([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x30ef08([0x56,0x61,0x6c,0x69,0x64]);})[_0x30ef08([0x74,0x68,0x65,0x6e])](_0x28413f=>(_0x7aaa4(),_0x28413f),()=>{const _0x149e34=_0x1caad9();return null==_0x149e34?(_0x7aaa4(),_0x30ef08([0x56,0x61,0x6c,0x69,0x64])):_0x30ef08(_0x108cd6-_0x149e34>(0x6b163f9c^_0xc4072)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x30ef08([0x74,0x68,0x65,0x6e])](_0x534d19)[_0x30ef08([0x63,0x61,0x74,0x63,0x68])](()=>{_0x534d19(_0x30ef08([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x268d3e=0x4f2c551c^_0xc4072;function _0x7aaa4(){const _0x36e27a=_0x30ef08([0x6c,0x6c,0x63,0x74,0x2d])+_0x24fc99(_0x47bf66(_0x3acb9f)),_0x2e34d7=_0x497d51(_0x24fc99(window[_0x30ef08([0x4d,0x61,0x74,0x68])][_0x30ef08([0x63,0x65,0x69,0x6c])](_0x108cd6/_0x268d3e)));window[_0x30ef08([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x30ef08([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x36e27a,_0x2e34d7);}function _0x1caad9(){const _0x291545=_0x30ef08([0x6c,0x6c,0x63,0x74,0x2d])+_0x24fc99(_0x47bf66(_0x3acb9f)),_0x2f3740=window[_0x30ef08([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x30ef08([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x291545);return _0x2f3740?window[_0x30ef08([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x497d51(_0x2f3740),0x10)*_0x268d3e:null;}function _0x2cf357(_0x583c47){return new window[(_0x30ef08([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x11ee6c,_0x9a4e8f)=>{_0x583c47[_0x30ef08([0x74,0x68,0x65,0x6e])](_0x11ee6c,_0x9a4e8f),window[_0x30ef08([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x9a4e8f,0x4f1b6f5c^_0xc4072);});}}_0x426987[_0x30ef08([0x6f,0x6e])](_0x30ef08([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x360595,_0x1b2bb3)=>{if(_0x1b2bb3[0x0]!=_0x3acb9f)return _0x534d19(_0x30ef08([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1b2bb3[0x1]={..._0x1b2bb3[0x1],[_0x30ef08([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x894c55};},{[_0x30ef08([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x30ef08([0x68,0x69,0x67,0x68])}),_0x426987[_0x30ef08([0x6f,0x6e])](_0x30ef08([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1df437=>{_0x2e6580(_0x1df437[_0x30ef08([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5f3032=!0x0,_0xa48c0b(_0x1df437[_0x30ef08([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x30ef08([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x30ef08([0x6c,0x6f,0x77])}),_0x1c0cbb[_0x30ef08([0x74,0x68,0x65,0x6e])](()=>{_0x5f3032||_0x534d19(_0x30ef08([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3fe99f(){return _0x426987[_0x30ef08([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x30ef08([0x76,0x69,0x65,0x77])][_0x30ef08([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x30ef08([0x61,0x75,0x74,0x6f]);}function _0x37e67f(){_0x426987[_0x30ef08([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x30ef08([0x76,0x69,0x65,0x77])][_0x30ef08([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x30ef08([0x61,0x75,0x74,0x6f]);}}function _0x11219a(_0x297992){const _0x1bd92e=[new window[(_0x30ef08([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x14b73d=>setTimeout(_0x14b73d,0x4f138550^_0xc4072)),_0x1c0cbb[_0x30ef08([0x74,0x68,0x65,0x6e])](()=>new window[(_0x30ef08([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x168488=>{let _0x54395b=0x0;_0x426987[_0x30ef08([0x6d,0x6f,0x64,0x65,0x6c])][_0x30ef08([0x6f,0x6e])](_0x30ef08([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2766f0,_0x41a1a0)=>{_0x41a1a0[0x0][_0x30ef08([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x54395b++,_0x54395b==(0x4f1aba64^_0xc4072)&&(_0x168488(),_0x2766f0[_0x30ef08([0x6f,0x66,0x66])]());});}))];return window[_0x30ef08([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x30ef08([0x72,0x61,0x63,0x65])](_0x1bd92e)[_0x30ef08([0x74,0x68,0x65,0x6e])](()=>_0x297992);}async function _0x56c94e(){await _0x1c0cbb,_0x426987[_0x30ef08([0x6d,0x6f,0x64,0x65,0x6c])][_0x30ef08([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2ee668,_0x426987[_0x30ef08([0x6d,0x6f,0x64,0x65,0x6c])][_0x30ef08([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2ee668,_0x426987[_0x30ef08([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x30ef08([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x48d7dc(_0x22d093){const _0x26541c=_0x165e87();_0x426987[_0x26541c]=_0x30ef08([0x61,0x69,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x22d093,_0x22d093!=_0x30ef08([0x56,0x61,0x6c,0x69,0x64])&&_0x56c94e();}function _0x165e87(){const _0x26f400=window[_0x30ef08([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x30ef08([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x30ef08([0x6e,0x6f,0x77])]())[_0x30ef08([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x30ef08([0x2e]),'');let _0x424963=_0x30ef08([0x55]);for(let _0x1b2c59=0x0;_0x1b2c59<_0x26f400[_0x30ef08([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1b2c59+=0x2){let _0x2904cd=window[_0x30ef08([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x26f400[_0x30ef08([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1b2c59,_0x1b2c59+0x2));_0x2904cd>=_0x5bc916[_0x30ef08([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2904cd-=_0x5bc916[_0x30ef08([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x424963+=_0x5bc916[_0x2904cd];}return _0x424963;}function _0x4a404f(){const _0xbdef56=_0x191001[_0x30ef08([0x73,0x70,0x6c,0x69,0x74])](_0x30ef08([0x2e]));if(0x3!=_0xbdef56[_0x30ef08([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x363d7a(_0xbdef56[0x1]);function _0x363d7a(_0x184eb1){const _0x3a48af=_0x4aa8c7(_0x184eb1);return _0x3a48af&&_0x2ed394()?_0x3a48af:null;function _0x2ed394(){const _0x573b13=_0x3a48af[_0x30ef08([0x6a,0x74,0x69])],_0x400bd9=window[_0x30ef08([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x573b13[_0x30ef08([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x573b13[_0x30ef08([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x478ac5={..._0x3a48af,[_0x30ef08([0x6a,0x74,0x69])]:_0x573b13[_0x30ef08([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x573b13[_0x30ef08([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x478ac5[_0x30ef08([0x76,0x63])],_0x47bf66(_0x478ac5)==_0x400bd9;}}}async function _0x357028(){let _0x3af6d7=!0x0;try{const _0x53e138=_0x191001[_0x30ef08([0x73,0x70,0x6c,0x69,0x74])](_0x30ef08([0x2e])),[_0x1950d7,_0x1bd569,_0x4bff14]=_0x53e138;return _0x1ab0a5(_0x1950d7),await _0x42c406(_0x1950d7,_0x1bd569,_0x4bff14),_0x3af6d7;}catch{return!0x1;}function _0x1ab0a5(_0x33f72b){const _0x431803=_0x4aa8c7(_0x33f72b);_0x431803&&_0x431803[_0x30ef08([0x61,0x6c,0x67])]==_0x30ef08([0x45,0x53,0x32,0x35,0x36])||(_0x3af6d7=!0x1);}async function _0x42c406(_0x1bdb8a,_0xe23fdb,_0x5072d3){const _0x10a7b5=window[_0x30ef08([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x30ef08([0x66,0x72,0x6f,0x6d])](_0x563d72(_0x5072d3),_0x49260b=>_0x49260b[_0x30ef08([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4e5449=new window[(_0x30ef08([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x30ef08([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1bdb8a+_0x30ef08([0x2e])+_0xe23fdb),_0x37e17c=window[_0x30ef08([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x30ef08([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x37e17c)return;const _0x1f9141=await _0x37e17c[_0x30ef08([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x30ef08([0x6a,0x77,0x6b]),_0x1dd610,{[_0x30ef08([0x6e,0x61,0x6d,0x65])]:_0x30ef08([0x45,0x43,0x44,0x53,0x41]),[_0x30ef08([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x30ef08([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x30ef08([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x37e17c[_0x30ef08([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x30ef08([0x6e,0x61,0x6d,0x65])]:_0x30ef08([0x45,0x43,0x44,0x53,0x41]),[_0x30ef08([0x68,0x61,0x73,0x68])]:{[_0x30ef08([0x6e,0x61,0x6d,0x65])]:_0x30ef08([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1f9141,_0x10a7b5,_0x4e5449)||(_0x3af6d7=!0x1);}}function _0x4aa8c7(_0x2ed7e5){return _0x2ed7e5[_0x30ef08([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x30ef08([0x65,0x79]))?JSON[_0x30ef08([0x70,0x61,0x72,0x73,0x65])](_0x563d72(_0x2ed7e5)):null;}function _0x563d72(_0x94d507){return window[_0x30ef08([0x61,0x74,0x6f,0x62])](_0x94d507[_0x30ef08([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x30ef08([0x2b]))[_0x30ef08([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x30ef08([0x2f])));}function _0x47bf66(_0x2ce8a5){let _0x55e966=0x1505;function _0x411efe(_0x346731){for(let _0x3a445c=0x0;_0x3a445c<_0x346731[_0x30ef08([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3a445c++){const _0x4205e9=_0x346731[_0x30ef08([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3a445c);_0x55e966=(_0x55e966<<0x5)+_0x55e966+_0x4205e9,_0x55e966&=_0x55e966;}}function _0x2a5567(_0x392e57){Array[_0x30ef08([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x392e57)?_0x392e57[_0x30ef08([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2a5567):_0x392e57&&typeof _0x392e57==_0x30ef08([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x30ef08([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x392e57)[_0x30ef08([0x73,0x6f,0x72,0x74])]()[_0x30ef08([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x540188,_0x54cac4])=>{_0x411efe(_0x540188),_0x2a5567(_0x54cac4);}):_0x411efe(window[_0x30ef08([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x392e57));}return _0x2a5567(_0x2ce8a5),_0x55e966>>>0x0;}function _0x24fc99(_0x57ba20){return _0x57ba20[_0x30ef08([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x30ef08([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x30ef08([0x30]));}function _0x497d51(_0x1dcaed){return _0x1dcaed[_0x30ef08([0x73,0x70,0x6c,0x69,0x74])]('')[_0x30ef08([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x30ef08([0x6a,0x6f,0x69,0x6e])]('');}function _0x2ee668(){}function _0x30ef08(_0x14fbb9){const _0x3a5e31=_0x3989;return _0x14fbb9[_0x3a5e31(0x1ea)](_0x260f8f=>String[_0x3a5e31(0x1ed)](_0x260f8f))[_0x3a5e31(0x1d3)]('');}_0x48d7dc(await _0x12ab20());}(this);}[_0x1797cb(0x1d9)](){const _0x26774d=_0x1797cb,_0x1d40c3=this[_0x26774d(0x193)][_0x26774d(0x1a7)];_0x1d40c3[_0x26774d(0x1a9)](_0x252458=>{const _0x2785e7=_0x26774d,_0xa1df2d=_0x1d40c3[_0x2785e7(0x1c8)][_0x2785e7(0x1b1)][_0x2785e7(0x1bd)]();let _0x37b5b1=0x0;for(const _0x433bf3 of _0xa1df2d){const _0x1a6342=w+':'+_0x37b5b1;if(_0x1d40c3[_0x2785e7(0x1b6)][_0x2785e7(0x1db)](_0x1a6342))_0x252458[_0x2785e7(0x19c)](_0x1a6342,{'range':_0x433bf3});else{if(_0x433bf3[_0x2785e7(0x1ec)][_0x2785e7(0x1c2)]){const _0x5159ff=_0x433bf3[_0x2785e7(0x1ec)][_0x2785e7(0x196)](({item:_0x4fed44})=>!_0x1d40c3[_0x2785e7(0x1b8)][_0x2785e7(0x1ba)](_0x4fed44),{'boundaries':_0x433bf3});_0x252458[_0x2785e7(0x1a3)](_0x1a6342,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x252458[_0x2785e7(0x1b2)](_0x5159ff,_0x433bf3[_0x2785e7(0x1b0)])});}else _0x252458[_0x2785e7(0x1a3)](_0x1a6342,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x433bf3});}_0x37b5b1++;}});}[_0x1797cb(0x1a2)](){const _0xd82bb9=_0x1797cb,_0x39906d=this[_0xd82bb9(0x193)][_0xd82bb9(0x1a7)],_0x2bb07a=Array[_0xd82bb9(0x1de)](this[_0xd82bb9(0x193)][_0xd82bb9(0x1a7)][_0xd82bb9(0x1b6)][_0xd82bb9(0x1fe)](w));_0x2bb07a[_0xd82bb9(0x1b7)]&&_0x39906d[_0xd82bb9(0x1a9)](_0x3d4fd1=>{const _0x1c033f=_0xd82bb9;_0x2bb07a[_0x1c033f(0x1f4)](_0x900977=>{const _0x41bb92=_0x1c033f;_0x3d4fd1[_0x41bb92(0x1f7)](_0x900977);});});}[_0x1797cb(0x1b5)](_0x2a3b6c,_0x1ba59d){const _0x102bab=_0x1797cb,_0x5728a1=this[_0x102bab(0x192)](),_0x4cfbdb=_0x1ba59d||_0x5728a1[_0x102bab(0x198)]();this[_0x102bab(0x193)][_0x102bab(0x1a7)][_0x102bab(0x1d2)](_0x4cfbdb)&&this[_0x102bab(0x193)][_0x102bab(0x1a7)][_0x102bab(0x1a9)](_0x32b9d6=>{const _0x16a648=_0x102bab;this[_0x16a648(0x1a2)](),_0x1ba59d||this[_0x16a648(0x1c0)](_0x32b9d6,_0x5728a1),this[_0x16a648(0x1f3)]({'insertAt':_0x4cfbdb,'writer':_0x32b9d6,'html':_0x2a3b6c});});}[_0x1797cb(0x1d4)](_0x474793){const _0x29868d=_0x1797cb,{model:_0x5bce3d}=this[_0x29868d(0x193)],_0x279e50=this[_0x29868d(0x192)]();_0x5bce3d[_0x29868d(0x1a9)](()=>{const _0x123c1e=_0x29868d,_0x189c11=this[_0x123c1e(0x1df)](_0x474793,_0x279e50)||this[_0x123c1e(0x1e2)](_0x279e50);this[_0x123c1e(0x1b5)](_0x474793,_0x189c11);});}[_0x1797cb(0x192)](){const _0x2442e0=_0x1797cb,_0x171fe2=this[_0x2442e0(0x193)][_0x2442e0(0x1a7)],_0x52a1d3=Array[_0x2442e0(0x1de)](_0x171fe2[_0x2442e0(0x1b6)][_0x2442e0(0x1fe)](w))[_0x2442e0(0x1ea)](_0x24c82f=>_0x24c82f[_0x2442e0(0x1dd)]());return _0x171fe2[_0x2442e0(0x1e4)](_0x52a1d3);}[_0x1797cb(0x1f3)]({writer:_0x51fee6,html:_0x15d025,insertAt:_0x3f24a3}){const _0x585443=_0x1797cb,{view:_0x46ff18}=this[_0x585443(0x193)][_0x585443(0x1ac)],_0x128470=this[_0x585443(0x193)][_0x585443(0x1e7)][_0x585443(0x1af)](_0x2a3197),_0x137610=new l();_0x137610[_0x585443(0x1ae)](_0x585443(0x1a1),_0x15d025);const _0x5dfc35=new ClipboardEvent(_0x585443(0x19a),{'clipboardData':_0x137610}),_0x682016=new _0x18e0bb(_0x46ff18,_0x5dfc35,{'dataTransfer':new _0x408146(_0x137610)});_0x51fee6[_0x585443(0x1fc)](_0x3f24a3);const _0x768ff2=(_0x3e9556,_0x3c86ab)=>{const _0x8e77e4=_0x585443;_0x3c86ab[_0x8e77e4(0x1c9)]&&_0x51fee6[_0x8e77e4(0x1fc)](_0x3c86ab[_0x8e77e4(0x1c9)]);};_0x128470[_0x585443(0x1ee)](_0x585443(0x1e0),_0x768ff2,{'priority':_0x585443(0x1dc)}),_0x46ff18[_0x585443(0x1c8)][_0x585443(0x1a5)](_0x585443(0x19a),_0x682016),_0x128470[_0x585443(0x1ab)](_0x585443(0x1e0),_0x768ff2);}[_0x1797cb(0x1e2)](_0x52bccf){const _0x17bf5a=_0x1797cb,{model:_0x473870}=this[_0x17bf5a(0x193)],_0x23ec63=Array[_0x17bf5a(0x1de)](_0x52bccf[_0x17bf5a(0x1ce)]());return _0x23ec63[_0x17bf5a(0x1b7)]?_0x473870[_0x17bf5a(0x19e)](_0x23ec63[_0x17bf5a(0x1a0)]()):_0x52bccf[_0x17bf5a(0x1e1)]();}[_0x1797cb(0x1df)](_0x55e92a,_0x4cc4bd){const _0x44217a=_0x1797cb,{model:_0x2a6271,plugins:_0x2ff48b}=this[_0x44217a(0x193)];if(_0x2ff48b[_0x44217a(0x1db)](_0x44217a(0x1ef))){const _0x46cde0=_0x2ff48b[_0x44217a(0x1af)](_0x44217a(0x1ef))[_0x44217a(0x1d8)](_0x4cc4bd);if(_0x46cde0[_0x44217a(0x1b7)]){const _0x2f7cb0=this[_0x44217a(0x1d6)](_0x55e92a),_0x24b0ee=this[_0x44217a(0x1e6)](_0x46cde0,_0x2f7cb0);return _0x2a6271[_0x44217a(0x1b9)](_0x24b0ee,0x0);}}return null;}[_0x1797cb(0x1d6)](_0x22234f){const _0x4a53db=_0x1797cb,_0x1f9040=this[_0x4a53db(0x193)][_0x4a53db(0x1e7)][_0x4a53db(0x1af)](_0x4a53db(0x1ef)),_0x61ad5e=this[_0x4a53db(0x193)][_0x4a53db(0x1f9)][_0x4a53db(0x194)](_0x22234f),_0x40e8fa=Array[_0x4a53db(0x1de)](_0x61ad5e[_0x4a53db(0x1f6)]())[_0x4a53db(0x1fa)](_0x31fa5b=>_0x31fa5b['is'](_0x4a53db(0x1d1),_0x4a53db(0x1fd)));let _0x62128f=0x0;return _0x40e8fa[_0x4a53db(0x1f4)](_0x8ba265=>{const _0xc13f7b=_0x4a53db;_0x62128f+=_0x1f9040[_0xc13f7b(0x1a8)](_0x8ba265);}),_0x62128f;}[_0x1797cb(0x1e6)](_0x5707e7,_0x3e8138){const _0x39d1be=_0x1797cb,_0x5ee69f=this[_0x39d1be(0x193)][_0x39d1be(0x1e7)][_0x39d1be(0x1af)](_0x39d1be(0x1ef)),_0x31c9ba=_0x5ee69f[_0x39d1be(0x1c1)](_0x5707e7),_0x826a8=_0x5ee69f[_0x39d1be(0x199)](_0x5707e7),_0x167ee6=_0x31c9ba[_0x39d1be(0x1cb)]+0x1,_0x3d86e9=_0x826a8[_0x39d1be(0x1e8)],_0x341f31=_0x5707e7[0x0][_0x39d1be(0x1d5)](_0x39d1be(0x1fd));for(let _0x164e22=0x0;_0x164e22<_0x3e8138;_0x164e22++)_0x5ee69f[_0x39d1be(0x1f2)](_0x341f31,{'at':_0x167ee6});return _0x341f31[_0x39d1be(0x1c3)](_0x167ee6)[_0x39d1be(0x1c3)](_0x3d86e9);}[_0x1797cb(0x1c0)](_0x3dcc9c,_0x3e3657){const _0x526f53=_0x1797cb,{plugins:_0x1f3626}=this[_0x526f53(0x193)],{model:_0x5c4c54}=_0x3dcc9c;if(!_0x1f3626[_0x526f53(0x1db)](_0x526f53(0x1ef)))return;_0x1f3626[_0x526f53(0x1af)](_0x526f53(0x1ef))[_0x526f53(0x1d8)](_0x3e3657)[_0x526f53(0x1b7)]&&_0x5c4c54[_0x526f53(0x1be)](_0x3e3657);}}function _0x4603(){const _0x284e35=['plugins','first','AIAssistantEditing','map','ck-ai-assistant-ui_theme','start','fromCharCode','once','TableUtils','4677631GCwWeT','href','insertRows','_pasteHTMLUsingClipboard','forEach','afterInit','getChildren','removeMarker','init','data','filter','1130KIlisI','setSelection','table','getMarkersGroup','addClass','691824jNOGiv','_getAISelection','editor','parse','ai.useTheme','getLastMatchingPosition','pluginName','getFirstRange','getColumnIndexes','paste','for','updateMarker','22893VGEHkv','createPositionAfter','ai-ui','pop','text/html','hideFakeVisualSelection','addMarker','conversion','fire','152911QWWzMR','model','getRows','change','isOfficialPlugin','off','editing','span','setData','get','end','selection','createRange','ck-fake-ai-selection_collapsed','config','insertContent','markers','length','schema','createPositionAt','isContent','editingDowncast','DataTransfer','getRanges','deleteContent','markerToElement','_resetContentOfSelectedTableCells','getRowIndexes','isAtEnd','getChild','85EZZmlO','createUIElement','isCollapsed','124448NmQTQK','document','resultRange','70602DdVekf','last','252EARoAN','markerRange','getSelectedBlocks','ck-fake-ai-selection','147489PnscCm','element','canEditAt','join','insertContentBelow','findAncestor','_getTableRowCountFromContent','356GrMnJk','getSelectedTableCells','showFakeVisualSelection','markerToHighlight','has','lowest','getRange','from','_prepareTableInsertBelowPosition','contentInsertion','getLastPosition','_getDefaultInsertBelowPosition','isPremiumPlugin','createSelection','push','_createEmptyTableRows'];_0x4603=function(){return _0x284e35;};return _0x4603();}
|
package/src/aiassistantui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xb7aa97=_0x30b8;(function(_0x5acbc4,_0x2c5c14){const _0x3798f1=_0x30b8,_0x2694ca=_0x5acbc4();while(!![]){try{const _0x29715b=parseInt(_0x3798f1(0x152))/0x1*(-parseInt(_0x3798f1(0x142))/0x2)+parseInt(_0x3798f1(0x186))/0x3+-parseInt(_0x3798f1(0x183))/0x4*(-parseInt(_0x3798f1(0x175))/0x5)+parseInt(_0x3798f1(0x1a8))/0x6*(-parseInt(_0x3798f1(0x14a))/0x7)+parseInt(_0x3798f1(0x154))/0x8*(parseInt(_0x3798f1(0x181))/0x9)+-parseInt(_0x3798f1(0x17c))/0xa*(-parseInt(_0x3798f1(0x177))/0xb)+-parseInt(_0x3798f1(0x16e))/0xc;if(_0x29715b===_0x2c5c14)break;else _0x2694ca['push'](_0x2694ca['shift']());}catch(_0x322137){_0x2694ca['push'](_0x2694ca['shift']());}}}(_0x251e,0x64610));function _0x251e(){const _0x5c4d00=['currentContext','ai.aiAssistant.commands','ai.useTheme','reset','Error\x20during\x20AI\x20content\x20generation:\x20%0','5zViBtl','promptView','4779654tLZEJr','map','includes','EDITOR_TOP_SIDE','hide','10vjBMrn','change:value','change:enabledCommandsIds','isCollapsed','aiLicenseKeyUsageLimit','771048kcwLyH','panelView','1535036MsxIPQ','queryView','media','2419035hcdLni','aiLicenseKeyTrialLimit','update','ai.aiAssistant.contentAreaCssClass','destroy','showAIAssistant','REPLACE','focus','tableOfContents','menuitemcheckbox','textAdapter','requiresContent','aiLicenseKeyInvalid','ck-ai-assistant-ui','aiLicenseKeyNotAllowed','evaluationLimit','ai.aiAssistant.disabledElements','custom','insertContentBelow','aiLicenseKeyExpired','forEach','showUI','from','commands','_commandDefinitions','children','init','sort','buttonView','execute','menuBar:aiAssistant','hideUI','body','push','3760086wZGjjw','contentArea','_uiCssClasses','replace','aiLicenseKeyDomainLimit','showFakeVisualSelection','isOn','label','\x20ck-ai-assistant-ui_theme','polite','wasMoved','addMany','length','_getResolvedCommandsDefinitions','_licenseKeyCheckInterval','groupId','config','AIAssistantUI','fieldView','_formView','schema','_aiAssistantController','updatePosition','setSelection','command:','AI\x20is\x20writing','copy','change:isError','isOfficialPlugin','define','show','AI\x20Commands','</p>','_createAIAssistantUIButton','listenTo','getLimitElement','enabledCommandsIds','locale','menuBar:aiCommands','domainLimit','AI\x20Assistant','change','ai-commands-config-order-collision','text/html','getSelectedBlocks','items','trim','_showLicenseError','<p>','Generated\x20content:\x20%0','_getMenuBarGroupButtons','editor','getSelectedElement','insertContent','editing','_populateMenuBarMenu','INSERT','comment','buttons','announce','featureNotAllowed','ck-ai-assistant-button\x20','selection','set','document','ck-ai-commands-dropdown\x20','expired','view','text','DataTransfer','source','_forceMarkersCopy','getRanges','splice','updateView','aiLicenseKeyEvaluationLimit','24758czgrpv','requires','getData','menuView','aiAssistant','order','filter','_dialog','7UqepIj','trialLimit','componentFactory','menuPanelClass','_initView','replaceContent','aiCommands','pluginName','51bXGEff','values','8STwmtD','licenseKey','delegate','plugins','errorView','_onExecute','render','_aiAdapter','once','rawHtml','hideFakeVisualSelection','isPremiumPlugin','get','bind','_initAriaAiStatusChangeAnnouncements','change:isProcessing','usageLimit','isFlat','invalid','add','fire','isEnabled','groupLabel','AIAssistant','prompt','model','493536vCqKqT','aiLicenseKeyValid'];_0x251e=function(){return _0x5c4d00;};return _0x251e();}import{Plugin as _0xf4ff84}from'ckeditor5/src/core.js';import{IconMagicWand as _0x1e530b,IconRobotPencil as _0x5189ed}from'ckeditor5/src/icons.js';import{first as _0x58105c,CKEditorError as _0x44a22b}from'ckeditor5/src/utils.js';import{createDropdown as _0xb55e52,addMenuToDropdown as _0x3a7ad3,ButtonView as _0x3269bb,MenuBarMenuListItemButtonView as _0x3d1839,Dialog as _0x10ca95,DialogViewPosition as _0x485275,MenuBarMenuView as _0x2d0f4a,MenuBarMenuListView as _0x36f9d9,MenuBarMenuListItemView as _0x472308}from'ckeditor5/src/ui.js';import{normalizeCommandsConfig as _0x39a7da,UNGROUPED_COMMANDS_GROUP_ID as _0x4c3d68}from'./utils/normalizecommandsconfig.js';import{AIAssistantEditing as _0x3b0fc0}from'./aiassistantediting.js';import{AIAdapter as _0x1b9736}from'./adapters/aiadapter.js';import{getTranslation as _0x4822fd}from'./utils/common-translations.js';import{ShowAIAssistantCommand as _0x48ce6a}from'./ui/showaiassistantcommand.js';import{AIAssistantController as _0x5142d2}from'./ui/aiassistantcontroller.js';import{AIFormView as _0x4013c9}from'./ui/form/aiformview.js';import{AIFormToolbarViewMainActionLabel as _0x7680e8}from'./ui/form/aiformtoolbarview.js';import'../theme/ai.css';import'../theme/ai-dropdown.css';import'../theme/ai-form.css';const l=globalThis[_0xb7aa97(0x13b)];import{ClipboardMarkersUtils as _0x52f59d}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0x1ac5ff,ViewDataTransfer as _0x2394c1}from'ckeditor5/src/engine.js';function _0x30b8(_0x1a8893,_0x489719){const _0x251e6e=_0x251e();return _0x30b8=function(_0x30b891,_0x1751a3){_0x30b891=_0x30b891-0x110;let _0x233c92=_0x251e6e[_0x30b891];return _0x233c92;},_0x30b8(_0x1a8893,_0x489719);}export class AIAssistantUI extends _0xf4ff84{[_0xb7aa97(0x155)];[_0xb7aa97(0x1b6)];[_0xb7aa97(0x149)];[_0xb7aa97(0x1bb)];[_0xb7aa97(0x15b)];[_0xb7aa97(0x1bd)];[_0xb7aa97(0x1aa)]='';static get[_0xb7aa97(0x151)](){const _0x1a624f=_0xb7aa97;return _0x1a624f(0x1b9);}static get[_0xb7aa97(0x112)](){return!0x0;}static get[_0xb7aa97(0x15f)](){return!0x0;}static get[_0xb7aa97(0x143)](){return[_0x52f59d,_0x3b0fc0,_0x1b9736,_0x10ca95];}constructor(_0x294567){const _0x3672bf=_0xb7aa97;super(_0x294567),_0x294567[_0x3672bf(0x1b8)][_0x3672bf(0x113)](_0x3672bf(0x196),[_0x3672bf(0x185),_0x3672bf(0x15d),_0x3672bf(0x18e)]),_0x294567[_0x3672bf(0x1b8)][_0x3672bf(0x113)](_0x3672bf(0x189),''),_0x294567[_0x3672bf(0x1b8)][_0x3672bf(0x113)](_0x3672bf(0x172),!0x0),this[_0x3672bf(0x1aa)]=_0x3672bf(0x193)+(_0x294567[_0x3672bf(0x1b8)][_0x3672bf(0x160)](_0x3672bf(0x172))?_0x3672bf(0x1b0):'');}[_0xb7aa97(0x1a0)](){const _0x3f5fe1=_0xb7aa97,{editor:_0x395128}=this;this[_0x3f5fe1(0x15b)]=_0x395128[_0x3f5fe1(0x157)][_0x3f5fe1(0x160)](_0x1b9736),this[_0x3f5fe1(0x149)]=_0x395128[_0x3f5fe1(0x157)][_0x3f5fe1(0x160)](_0x10ca95),this[_0x3f5fe1(0x1bb)]=null,this[_0x3f5fe1(0x19e)]=this[_0x3f5fe1(0x1b5)]();const _0x218454=new _0x48ce6a(_0x395128,Array[_0x3f5fe1(0x19c)](this[_0x3f5fe1(0x19e)][_0x3f5fe1(0x153)]()));_0x395128[_0x3f5fe1(0x19d)][_0x3f5fe1(0x167)](_0x3f5fe1(0x18b),_0x218454),_0x395128['ui'][_0x3f5fe1(0x14c)][_0x3f5fe1(0x167)](_0x3f5fe1(0x150),_0x4d7b00=>{const _0x1a5257=_0x3f5fe1,_0x53bed7=_0xb55e52(_0x4d7b00);return _0x53bed7[_0x1a5257(0x135)]({'class':_0x1a5257(0x137)+this[_0x1a5257(0x1aa)]}),_0x53bed7[_0x1a5257(0x1a2)][_0x1a5257(0x135)]({'label':_0x4822fd(_0x4d7b00,_0x1a5257(0x115)),'icon':_0x1e530b,'tooltip':!0x0}),_0x53bed7['on'](_0x1a5257(0x1a3),_0x104a62=>this[_0x1a5257(0x159)](_0x104a62[_0x1a5257(0x13c)]['id'])),_0x3a7ad3(_0x53bed7,_0x395128['ui'][_0x1a5257(0x139)][_0x1a5257(0x1a6)],function(_0x417f85){const _0x154c51=_0x1a5257,_0x4a658d=_0x39a7da(_0x417f85[_0x154c51(0x1b8)][_0x154c51(0x160)](_0x154c51(0x171)),_0x417f85[_0x154c51(0x11b)]),_0x4a01f=U(_0x417f85,_0x4a658d)[_0x154c51(0x148)](_0x3b0336=>_0x3b0336[_0x154c51(0x19d)][_0x154c51(0x1b4)]);if(0x1===_0x4a01f[_0x154c51(0x1b4)])return U(_0x417f85,_0x4a01f[0x0][_0x154c51(0x19d)])[_0x154c51(0x178)](_0x49c261=>({'id':_0x49c261['id'],'label':_0x49c261[_0x154c51(0x1af)]}));return _0x4a01f[_0x154c51(0x178)](_0x24046e=>{const _0x4cb52e=_0x154c51,{groupId:_0x45b777,groupLabel:_0x2583ee,commands:_0x16857c}=_0x24046e,_0x2e7d9b=U(_0x417f85,_0x16857c)[_0x4cb52e(0x178)](_0x44f420=>({'id':_0x44f420['id'],'label':_0x44f420[_0x4cb52e(0x1af)]}));return{'id':_0x45b777,'menu':_0x2583ee||_0x45b777,'children':_0x2e7d9b};});}(_0x395128),{'ariaLabel':_0x4822fd(_0x4d7b00,_0x1a5257(0x115))}),_0x53bed7[_0x1a5257(0x145)][_0x1a5257(0x14d)]=_0x1a5257(0x137)+this[_0x1a5257(0x1aa)],_0x218454['on'](_0x1a5257(0x17e),_0x156cd4),_0x53bed7[_0x1a5257(0x145)][_0x1a5257(0x15c)](_0x1a5257(0x15a),_0x156cd4),_0x53bed7;function _0x156cd4(){const _0x57004e=_0x1a5257;_0x53bed7[_0x57004e(0x169)]=_0x218454[_0x57004e(0x11a)][_0x57004e(0x1b4)]>0x0;for(const _0x3105eb of _0x53bed7[_0x57004e(0x145)][_0x57004e(0x130)])_0x3105eb[_0x57004e(0x169)]=_0x218454[_0x57004e(0x11a)][_0x57004e(0x179)](_0x3105eb['id']);}}),_0x395128['ui'][_0x3f5fe1(0x14c)][_0x3f5fe1(0x167)](_0x3f5fe1(0x11c),_0x5d9e7a=>{const _0x5ade2d=_0x3f5fe1,_0x5e7963=new _0x2d0f4a(_0x5d9e7a);_0x5e7963[_0x5ade2d(0x1a2)][_0x5ade2d(0x135)]({'label':_0x4822fd(_0x5d9e7a,_0x5ade2d(0x115)),'icon':_0x1e530b}),_0x5e7963[_0x5ade2d(0x161)](_0x5ade2d(0x169))['to'](_0x218454,_0x5ade2d(0x11a),_0x411b63=>_0x411b63[_0x5ade2d(0x1b4)]>0x0);const _0x31bcf5=_0x39a7da(_0x395128[_0x5ade2d(0x1b8)][_0x5ade2d(0x160)](_0x5ade2d(0x171)),_0x5d9e7a);return this[_0x5ade2d(0x12d)](_0x218454,_0x5e7963,_0x31bcf5,_0x26797e=>this[_0x5ade2d(0x159)](_0x26797e)),_0x5e7963;}),_0x395128['ui'][_0x3f5fe1(0x14c)][_0x3f5fe1(0x167)](_0x3f5fe1(0x146),()=>{const _0x195ff6=_0x3f5fe1,_0x18482b=this[_0x195ff6(0x117)](_0x3269bb);return _0x18482b[_0x195ff6(0x135)]({'tooltip':!0x0,'class':_0x195ff6(0x133)+this[_0x195ff6(0x1aa)]}),_0x18482b;}),_0x395128['ui'][_0x3f5fe1(0x14c)][_0x3f5fe1(0x167)](_0x3f5fe1(0x1a4),()=>{const _0x49e160=_0x3f5fe1,_0x18094b=this[_0x49e160(0x117)](_0x3d1839);return _0x18094b[_0x49e160(0x135)]({'role':_0x49e160(0x18f)}),_0x18094b;}),this[_0x3f5fe1(0x155)]=this[_0x3f5fe1(0x129)][_0x3f5fe1(0x1b8)][_0x3f5fe1(0x160)](_0x3f5fe1(0x155));const _0x2c16c3=this[_0x3f5fe1(0x129)];this[_0x3f5fe1(0x1b6)]=setInterval(()=>{const _0x4c30ea=_0x3f5fe1;let _0x481810;for(const _0x314877 in _0x2c16c3){const _0x2d1e45=_0x314877,_0x2a5202=_0x2c16c3[_0x2d1e45];if(_0x4c30ea(0x16f)==_0x2a5202||_0x4c30ea(0x192)==_0x2a5202||_0x4c30ea(0x199)==_0x2a5202||_0x4c30ea(0x1ac)==_0x2a5202||_0x4c30ea(0x194)==_0x2a5202||_0x4c30ea(0x141)==_0x2a5202||_0x4c30ea(0x187)==_0x2a5202||_0x4c30ea(0x180)==_0x2a5202){delete _0x2c16c3[_0x2d1e45],_0x481810=_0x2a5202,clearInterval(this[_0x4c30ea(0x1b6)]),this[_0x4c30ea(0x1b6)]=void 0x0;break;}}_0x4c30ea(0x192)==_0x481810&&_0x2c16c3[_0x4c30ea(0x125)](_0x4c30ea(0x166)),_0x4c30ea(0x199)==_0x481810&&_0x2c16c3[_0x4c30ea(0x125)](_0x4c30ea(0x138)),_0x4c30ea(0x1ac)==_0x481810&&_0x2c16c3[_0x4c30ea(0x125)](_0x4c30ea(0x11d)),_0x4c30ea(0x194)==_0x481810&&_0x2c16c3[_0x4c30ea(0x125)](_0x4c30ea(0x132),_0x4c30ea(0x16b)),_0x4c30ea(0x141)==_0x481810&&_0x2c16c3[_0x4c30ea(0x125)](_0x4c30ea(0x195)),_0x4c30ea(0x187)==_0x481810&&_0x2c16c3[_0x4c30ea(0x125)](_0x4c30ea(0x14b)),_0x4c30ea(0x180)==_0x481810&&_0x2c16c3[_0x4c30ea(0x125)](_0x4c30ea(0x164));},0x3e8);}[_0xb7aa97(0x18a)](){const _0x14f478=_0xb7aa97;super[_0x14f478(0x18a)](),this[_0x14f478(0x1b6)]&&clearInterval(this[_0x14f478(0x1b6)]);}[_0xb7aa97(0x19b)](_0x5685a7='',_0x5daf10='',_0x2adcfe=_0xb7aa97(0x197)){const _0x240a3b=_0xb7aa97,_0x469706=this[_0x240a3b(0x129)],_0x9ec8f3=_0x469706[_0x240a3b(0x12c)][_0x240a3b(0x139)],_0x21e3ee=_0x469706[_0x240a3b(0x157)][_0x240a3b(0x160)](_0x3b0fc0),_0xe79e51=_0x469706[_0x240a3b(0x157)][_0x240a3b(0x160)](_0x52f59d);_0x21e3ee[_0x240a3b(0x1ad)]();const _0x19e18e=new l(),_0x4873ae=new ClipboardEvent(_0x240a3b(0x110),{'clipboardData':_0x19e18e}),_0x4efef2=new _0x2394c1(_0x19e18e),_0x282dee=new _0x1ac5ff(_0x9ec8f3,_0x4873ae,{'dataTransfer':_0x4efef2});_0xe79e51[_0x240a3b(0x13d)](_0x240a3b(0x12f),()=>{const _0x1bc981=_0x240a3b;_0x9ec8f3[_0x1bc981(0x136)][_0x1bc981(0x168)](_0x1bc981(0x110),_0x282dee);}),this[_0x240a3b(0x1bb)]||(this[_0x240a3b(0x14e)](),this[_0x240a3b(0x1bd)]=new _0x5142d2(_0x469706,this[_0x240a3b(0x15b)][_0x240a3b(0x190)],this[_0x240a3b(0x1bb)]));let _0x5300b=_0x4efef2[_0x240a3b(0x144)](_0x240a3b(0x121));const _0x39e9c5=_0x469706[_0x240a3b(0x16d)][_0x240a3b(0x136)][_0x240a3b(0x134)],_0x5410ca=Array[_0x240a3b(0x19c)](_0x39e9c5[_0x240a3b(0x13e)]());0x1===_0x5410ca[_0x240a3b(0x1b4)]&&_0x5410ca[0x0][_0x240a3b(0x165)]&&!_0x39e9c5[_0x240a3b(0x12a)]()&&''!==_0x5300b[_0x240a3b(0x1ab)](/ /g,'')[_0x240a3b(0x124)]()&&(_0x5300b=_0x240a3b(0x126)+_0x5300b+_0x240a3b(0x116)),this[_0x240a3b(0x1bd)][_0x240a3b(0x140)]({'actionId':_0x2adcfe,'query':_0x5685a7,'htmlContent':_0x5300b,'label':_0x5daf10,'mainActionLabel':_0x7680e8[_0x469706[_0x240a3b(0x16d)][_0x240a3b(0x136)][_0x240a3b(0x134)][_0x240a3b(0x17f)]?_0x240a3b(0x12e):_0x240a3b(0x18c)]}),_0x240a3b(0x146)!==this[_0x240a3b(0x149)]['id']?this[_0x240a3b(0x149)][_0x240a3b(0x114)]({'id':_0x240a3b(0x146),'icon':_0x5189ed,'title':_0x4822fd(this[_0x240a3b(0x129)][_0x240a3b(0x11b)],_0x240a3b(0x11e)),'content':this[_0x240a3b(0x1bb)],'position':_0x485275[_0x240a3b(0x17a)],'onShow':()=>{const _0x360484=_0x240a3b;this[_0x360484(0x1bb)][_0x360484(0x18d)]();},'onHide':()=>{const _0x4f36f7=_0x240a3b;this[_0x4f36f7(0x1bd)][_0x4f36f7(0x173)](),_0x21e3ee[_0x4f36f7(0x15e)]();}}):this[_0x240a3b(0x149)][_0x240a3b(0x139)][_0x240a3b(0x1b2)]||this[_0x240a3b(0x149)][_0x240a3b(0x139)][_0x240a3b(0x1be)]();}[_0xb7aa97(0x1a5)](){const _0x3cf688=_0xb7aa97;this[_0x3cf688(0x149)][_0x3cf688(0x17b)]();}[_0xb7aa97(0x1b5)](){const _0x2cd110=_0xb7aa97,_0x43f46c=new Map(),_0x44d72d=_0x39a7da(this[_0x2cd110(0x129)][_0x2cd110(0x1b8)][_0x2cd110(0x160)](_0x2cd110(0x171)),this[_0x2cd110(0x129)][_0x2cd110(0x11b)]);for(const _0x604c06 of _0x44d72d)for(const _0x317e0c of _0x604c06[_0x2cd110(0x19d)])_0x43f46c[_0x2cd110(0x135)](_0x317e0c['id'],{..._0x317e0c,'groupId':_0x604c06[_0x2cd110(0x1b7)],'groupLabel':_0x604c06[_0x2cd110(0x16a)]||_0x604c06[_0x2cd110(0x1b7)]});return _0x43f46c;}[_0xb7aa97(0x117)](_0x398eca){const _0x226208=_0xb7aa97,_0x52ce85=this[_0x226208(0x129)],_0x30fdcc=_0x52ce85[_0x226208(0x19d)][_0x226208(0x160)](_0x226208(0x18b)),_0x19136c=new _0x398eca(_0x52ce85[_0x226208(0x11b)]);return _0x19136c[_0x226208(0x135)]({'label':_0x4822fd(_0x52ce85[_0x226208(0x11b)],_0x226208(0x11e)),'icon':_0x5189ed,'isToggleable':!0x0}),_0x19136c[_0x226208(0x161)](_0x226208(0x169))['to'](_0x30fdcc),_0x19136c[_0x226208(0x161)](_0x226208(0x1ae))['to'](this[_0x226208(0x149)],'id',_0xe9c514=>_0x226208(0x146)===_0xe9c514),this[_0x226208(0x118)](_0x19136c,_0x226208(0x1a3),()=>{const _0x16366e=_0x226208;_0x19136c[_0x16366e(0x1ae)]?this[_0x16366e(0x1a5)]():_0x30fdcc[_0x16366e(0x1a3)]();}),_0x19136c;}[_0xb7aa97(0x14e)](){const _0x4c7f01=_0xb7aa97,_0x396c6c=this[_0x4c7f01(0x129)][_0x4c7f01(0x157)][_0x4c7f01(0x160)](_0x3b0fc0);this[_0x4c7f01(0x1bb)]=new _0x4013c9(this[_0x4c7f01(0x129)][_0x4c7f01(0x11b)],this[_0x4c7f01(0x1aa)],this[_0x4c7f01(0x129)][_0x4c7f01(0x1b8)][_0x4c7f01(0x160)](_0x4c7f01(0x189))),this[_0x4c7f01(0x1bb)]['on'](_0x4c7f01(0x17d),()=>{const _0x35c5d0=_0x4c7f01;this[_0x35c5d0(0x149)][_0x35c5d0(0x139)][_0x35c5d0(0x1b2)]||this[_0x35c5d0(0x149)][_0x35c5d0(0x139)][_0x35c5d0(0x1be)]();}),this[_0x4c7f01(0x1bb)][_0x4c7f01(0x176)][_0x4c7f01(0x184)][_0x4c7f01(0x1ba)]['on'](_0x4c7f01(0x188),()=>{const _0x5b06d0=_0x4c7f01;this[_0x5b06d0(0x149)][_0x5b06d0(0x139)][_0x5b06d0(0x1b2)]||this[_0x5b06d0(0x149)][_0x5b06d0(0x139)][_0x5b06d0(0x1be)]();}),this[_0x4c7f01(0x118)](this[_0x4c7f01(0x1bb)],_0x4c7f01(0x14f),()=>{const _0x3039a7=_0x4c7f01;_0x396c6c[_0x3039a7(0x12b)](this[_0x3039a7(0x1bd)][_0x3039a7(0x170)]),this[_0x3039a7(0x1a5)]();}),this[_0x4c7f01(0x118)](this[_0x4c7f01(0x1bb)],_0x4c7f01(0x198),()=>{const _0x4ffbbc=_0x4c7f01;_0x396c6c[_0x4ffbbc(0x198)](this[_0x4ffbbc(0x1bd)][_0x4ffbbc(0x170)]),this[_0x4ffbbc(0x1a5)]();}),this[_0x4c7f01(0x162)]();}[_0xb7aa97(0x162)](){const _0x1dc90c=_0xb7aa97,{locale:_0x2d0d9b,ui:{ariaLiveAnnouncer:_0x27f0d6}}=this[_0x1dc90c(0x129)];this[_0x1dc90c(0x1bb)][_0x1dc90c(0x1a9)]['on'](_0x1dc90c(0x163),(_0x3ce50d,_0x29bbbc,_0x4ba131)=>{const _0x105951=_0x1dc90c,_0x6a2d30=this[_0x105951(0x1bd)][_0x105951(0x170)];_0x4ba131?_0x27f0d6[_0x105951(0x131)](_0x4822fd(_0x2d0d9b,_0x105951(0x1c1))):_0x6a2d30&&_0x27f0d6[_0x105951(0x131)](_0x4822fd(_0x2d0d9b,_0x105951(0x127),_0x6a2d30),{'politeness':_0x105951(0x1b1),'isUnsafeHTML':!0x0});}),this[_0x1dc90c(0x1bb)]['on'](_0x1dc90c(0x111),(_0x499d58,_0x5bbf7f,_0x3f4d29)=>{const _0xb103a9=_0x1dc90c;if(_0x3f4d29){const _0xc4acdc=this[_0xb103a9(0x1bb)][_0xb103a9(0x158)][_0xb103a9(0x13a)];_0x27f0d6[_0xb103a9(0x131)](_0x4822fd(_0x2d0d9b,_0xb103a9(0x174),_0xc4acdc));}});}[_0xb7aa97(0x159)](_0x23586a){const _0x57c3e2=_0xb7aa97,_0x28cc51=this[_0x57c3e2(0x19e)][_0x57c3e2(0x160)](_0x23586a),_0x48e180=this[_0x57c3e2(0x129)],_0xc29975=_0x48e180[_0x57c3e2(0x16d)][_0x57c3e2(0x136)][_0x57c3e2(0x134)],_0x2d0b96=_0x48e180[_0x57c3e2(0x19d)][_0x57c3e2(0x160)](_0x57c3e2(0x18b)),_0x247c3d=_0x48e180[_0x57c3e2(0x157)][_0x57c3e2(0x160)](_0x3b0fc0),_0xb1c96=''+(_0x28cc51[_0x57c3e2(0x1b7)]!==_0x4c3d68?_0x28cc51[_0x57c3e2(0x16a)]+':\x20':'')+_0x28cc51[_0x57c3e2(0x1af)];if(!0x1!==_0x28cc51[_0x57c3e2(0x191)]&&_0xc29975[_0x57c3e2(0x17f)]){const _0x556f51=_0x58105c(_0xc29975[_0x57c3e2(0x122)]())||_0x48e180[_0x57c3e2(0x16d)][_0x57c3e2(0x1bc)][_0x57c3e2(0x119)](_0xc29975);_0x48e180[_0x57c3e2(0x16d)][_0x57c3e2(0x11f)](_0x410bb5=>{const _0x44b4c6=_0x57c3e2;_0x410bb5[_0x44b4c6(0x1bf)](_0x556f51,'in');});}_0x247c3d[_0x57c3e2(0x1ad)](),_0x2d0b96[_0x57c3e2(0x1a3)](_0x28cc51[_0x57c3e2(0x16c)],_0xb1c96,_0x57c3e2(0x1c0)+_0x23586a);}[_0xb7aa97(0x12d)](_0x19ae36,_0x66e281,_0x3371ad,_0x44d828){const _0x311a1a=_0xb7aa97,_0x35126f=this[_0x311a1a(0x129)],_0x4643b0=_0x35126f[_0x311a1a(0x11b)],_0x47c414=new _0x36f9d9(_0x4643b0),_0x122562=U(_0x35126f,_0x3371ad)[_0x311a1a(0x148)](_0x3c624f=>_0x3c624f[_0x311a1a(0x19d)][_0x311a1a(0x1b4)]);0x1===_0x122562[_0x311a1a(0x1b4)]?this[_0x311a1a(0x128)]({'command':_0x19ae36,'commands':_0x122562[0x0][_0x311a1a(0x19d)],'parentMenuView':_0x66e281,'onExecute':_0x44d828})[_0x311a1a(0x19a)](_0xc476e3=>_0x47c414[_0x311a1a(0x123)][_0x311a1a(0x167)](_0xc476e3)):_0x122562[_0x311a1a(0x19a)](({groupId:_0x587555,groupLabel:_0x4304e9,commands:_0x554972})=>{const _0x574afb=_0x311a1a,_0x4af0c5=new _0x472308(_0x4643b0,_0x66e281),_0x1b2c6c=new _0x2d0f4a(_0x4643b0),_0x1675b0=new _0x36f9d9(_0x4643b0),_0x57de89=this[_0x574afb(0x128)]({'command':_0x19ae36,'commands':_0x554972,'parentMenuView':_0x1b2c6c,'onExecute':_0x44d828});_0x1b2c6c[_0x574afb(0x1a2)][_0x574afb(0x135)]({'label':_0x4304e9||_0x587555}),_0x1b2c6c[_0x574afb(0x156)](_0x574afb(0x1a3))['to'](_0x66e281),_0x1675b0[_0x574afb(0x123)][_0x574afb(0x1b3)](_0x57de89),_0x1b2c6c[_0x574afb(0x182)][_0x574afb(0x19f)][_0x574afb(0x167)](_0x1675b0),_0x4af0c5[_0x574afb(0x19f)][_0x574afb(0x167)](_0x1b2c6c),_0x47c414[_0x574afb(0x123)][_0x574afb(0x167)](_0x4af0c5);}),_0x66e281[_0x311a1a(0x182)][_0x311a1a(0x19f)][_0x311a1a(0x167)](_0x47c414);}[_0xb7aa97(0x128)]({command:_0x497a32,commands:_0x582204,parentMenuView:_0x4f74d4,onExecute:_0x1d57ae}){const _0x427d97=_0xb7aa97,_0x1ccbe2=this[_0x427d97(0x129)],_0x1abee9=_0x1ccbe2[_0x427d97(0x11b)];return U(_0x1ccbe2,_0x582204)[_0x427d97(0x178)](_0xca609c=>{const _0x2b4e93=_0x427d97,_0x2b73ba=new _0x472308(_0x1abee9,_0x4f74d4),_0xa65ee=new _0x3d1839(_0x1abee9);return _0xa65ee[_0x2b4e93(0x135)]({'label':_0xca609c[_0x2b4e93(0x1af)]}),_0xa65ee[_0x2b4e93(0x156)](_0x2b4e93(0x1a3))['to'](_0x4f74d4),_0xa65ee['on'](_0x2b4e93(0x1a3),()=>_0x1d57ae(_0xca609c['id'])),_0xa65ee[_0x2b4e93(0x161)](_0x2b4e93(0x169))['to'](_0x497a32,_0x2b4e93(0x11a),_0x146b47=>_0x146b47[_0x2b4e93(0x179)](_0xca609c['id'])),_0x2b73ba[_0x2b4e93(0x19f)][_0x2b4e93(0x167)](_0xa65ee),_0x2b73ba;});}}function T(_0x26e777,_0xe18f46){const _0x260245=_0xb7aa97;return void 0x0!==_0x26e777[_0x260245(0x147)]&&void 0x0===_0xe18f46[_0x260245(0x147)]?0x1:void 0x0===_0x26e777[_0x260245(0x147)]&&void 0x0!==_0xe18f46[_0x260245(0x147)]?-0x1:void 0x0!==_0x26e777[_0x260245(0x147)]&&void 0x0!==_0xe18f46[_0x260245(0x147)]?_0x26e777[_0x260245(0x147)]-_0xe18f46[_0x260245(0x147)]:0x0;}function U(_0x2e4d20,_0x5cff8c){const _0x2cdf1b=_0xb7aa97;_0x5cff8c[_0x2cdf1b(0x1a1)](T);const _0x12bbbd={},_0x288ebb=[];for(const _0x1ceb77 of _0x5cff8c)if(void 0x0!==_0x1ceb77[_0x2cdf1b(0x147)]){if(_0x1ceb77[_0x2cdf1b(0x147)]in _0x12bbbd)throw new _0x44a22b(_0x2cdf1b(0x120),_0x2e4d20,{'conflictingDefinitions':[_0x1ceb77,_0x12bbbd[_0x1ceb77[_0x2cdf1b(0x147)]]]});_0x12bbbd[_0x1ceb77[_0x2cdf1b(0x147)]]=_0x1ceb77,_0x288ebb[_0x2cdf1b(0x13f)](_0x1ceb77[_0x2cdf1b(0x147)],0x0,_0x1ceb77);}else _0x288ebb[_0x2cdf1b(0x1a7)](_0x1ceb77);return _0x288ebb;}
|
|
23
|
+
const _0x42e3f1=_0x45b8;(function(_0x8d0a15,_0x4731da){const _0x5ca212=_0x45b8,_0x465386=_0x8d0a15();while(!![]){try{const _0x15603f=-parseInt(_0x5ca212(0x108))/0x1+parseInt(_0x5ca212(0xe9))/0x2+parseInt(_0x5ca212(0xff))/0x3+-parseInt(_0x5ca212(0x144))/0x4*(-parseInt(_0x5ca212(0xe1))/0x5)+parseInt(_0x5ca212(0x160))/0x6+-parseInt(_0x5ca212(0x14e))/0x7+-parseInt(_0x5ca212(0x164))/0x8*(-parseInt(_0x5ca212(0x14d))/0x9);if(_0x15603f===_0x4731da)break;else _0x465386['push'](_0x465386['shift']());}catch(_0x4e3166){_0x465386['push'](_0x465386['shift']());}}}(_0x4afa,0xb0bff));import{Plugin as _0x3977f8}from'ckeditor5/src/core.js';import{IconMagicWand as _0x32dc4c,IconRobotPencil as _0x241782}from'ckeditor5/src/icons.js';function _0x4afa(){const _0x56ac79=['hideUI','reset','contentArea','menuBar:aiAssistant','custom','1071885OkBaUE','aiLicenseKeyTrialLimit','define','execute','requiresContent','\x20ck-ai-assistant-ui_theme','DataTransfer','rawHtml','once','pluginName','label','_dialog','featureNotAllowed','replaceContent','ai.aiAssistant.disabledElements','values','prompt','isOn','updateView','init','usageLimit','showAIAssistant','splice','setSelection','groupId','menuView','trim','listenTo','</p>','Error\x20during\x20AI\x20content\x20generation:\x20%0','showUI','addMany','groupLabel','ck-ai-assistant-ui','_commandDefinitions','getSelectedElement','EDITOR_TOP_SIDE','updatePosition','buttons','focus','set','tableOfContents','announce','_formView','menuPanelClass','invalid','menuBar:aiCommands','ck-ai-commands-dropdown\x20','insertContent','fire','push','aiCommands','map','text/html','view','queryView','ai.aiAssistant.contentAreaCssClass','_initAriaAiStatusChangeAnnouncements','isCollapsed','AIAssistant','2896fbknPH','polite','getData','ai.useTheme','change:isProcessing','currentContext','show','_aiAdapter','aiLicenseKeyExpired','40077iJpsoO','9104844mVEVaZ','update','_onExecute','commands','aiLicenseKeyDomainLimit','length','isOfficialPlugin','comment','getLimitElement','selection','source','INSERT','aiAssistant','replace','_forceMarkersCopy','text','showFakeVisualSelection','Generated\x20content:\x20%0','4832148qhxfht','evaluationLimit','items','isPremiumPlugin','1528tKnfKT','promptView','delegate','order','change:isError','AIAssistantUI','_populateMenuBarMenu','change','sort','REPLACE','change:enabledCommandsIds','hideFakeVisualSelection','textAdapter','fieldView','panelView','AI\x20is\x20writing','command:','_showLicenseError','AI\x20Commands','get','componentFactory','isEnabled','from','licenseKey','<p>','ck-ai-assistant-button\x20','children','change:value','buttonView','render','aiLicenseKeyNotAllowed','ai-commands-config-order-collision','aiLicenseKeyValid','locale','destroy','editor','insertContentBelow','aiLicenseKeyInvalid','plugins','enabledCommandsIds','expired','_aiAssistantController','editing','copy','2920WFJzKC','trialLimit','aiLicenseKeyEvaluationLimit','media','_uiCssClasses','hide','aiLicenseKeyUsageLimit','getRanges','213552rAhnda','_initView','_getResolvedCommandsDefinitions','getSelectedBlocks','requires','domainLimit','includes','ai.aiAssistant.commands','schema','_getMenuBarGroupButtons','isFlat','add','wasMoved','forEach','errorView','_createAIAssistantUIButton','filter','bind','config','body','menuitemcheckbox','model','2733213OZJCsP','AI\x20Assistant','document','_licenseKeyCheckInterval'];_0x4afa=function(){return _0x56ac79;};return _0x4afa();}import{first as _0x28db92,CKEditorError as _0x5946eb}from'ckeditor5/src/utils.js';import{createDropdown as _0x4610fc,addMenuToDropdown as _0x5d8d3c,ButtonView as _0x2525da,MenuBarMenuListItemButtonView as _0x4d869a,Dialog as _0x254010,DialogViewPosition as _0xd4f87b,MenuBarMenuView as _0x59ecd6,MenuBarMenuListView as _0x1c64c3,MenuBarMenuListItemView as _0x396b62}from'ckeditor5/src/ui.js';import{normalizeCommandsConfig as _0x30c39d,UNGROUPED_COMMANDS_GROUP_ID as _0x32df77}from'./utils/normalizecommandsconfig.js';import{AIAssistantEditing as _0x5c966d}from'./aiassistantediting.js';import{AIAdapter as _0xb9f37f}from'./adapters/aiadapter.js';import{getTranslation as _0x59b6ac}from'./utils/common-translations.js';import{ShowAIAssistantCommand as _0x41018a}from'./ui/showaiassistantcommand.js';import{AIAssistantController as _0x478af7}from'./ui/aiassistantcontroller.js';import{AIFormView as _0x2dc277}from'./ui/form/aiformview.js';function _0x45b8(_0x2ef0e8,_0x2a4714){const _0x4afab3=_0x4afa();return _0x45b8=function(_0x45b83c,_0x530d1c){_0x45b83c=_0x45b83c-0xd6;let _0x37355d=_0x4afab3[_0x45b83c];return _0x37355d;},_0x45b8(_0x2ef0e8,_0x2a4714);}import{AIFormToolbarViewMainActionLabel as _0x45d3df}from'./ui/form/aiformtoolbarview.js';import'../theme/ai.css';import'../theme/ai-dropdown.css';import'../theme/ai-form.css';const l=globalThis[_0x42e3f1(0x10e)];import{ClipboardMarkersUtils as _0x2a73f7}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0x32d08d,ViewDataTransfer as _0x501343}from'ckeditor5/src/engine.js';export class AIAssistantUI extends _0x3977f8{[_0x42e3f1(0x17b)];[_0x42e3f1(0x102)];[_0x42e3f1(0x113)];[_0x42e3f1(0x133)];[_0x42e3f1(0x14b)];[_0x42e3f1(0xde)];[_0x42e3f1(0xe5)]='';static get[_0x42e3f1(0x111)](){const _0x47fb8c=_0x42e3f1;return _0x47fb8c(0x169);}static get[_0x42e3f1(0x154)](){return!0x0;}static get[_0x42e3f1(0x163)](){return!0x0;}static get[_0x42e3f1(0xed)](){return[_0x2a73f7,_0x5c966d,_0xb9f37f,_0x254010];}constructor(_0x4a8188){const _0x332815=_0x42e3f1;super(_0x4a8188),_0x4a8188[_0x332815(0xfb)][_0x332815(0x10a)](_0x332815(0x116),[_0x332815(0xe4),_0x332815(0x10f),_0x332815(0x131)]),_0x4a8188[_0x332815(0xfb)][_0x332815(0x10a)](_0x332815(0x140),''),_0x4a8188[_0x332815(0xfb)][_0x332815(0x10a)](_0x332815(0x147),!0x0),this[_0x332815(0xe5)]=_0x332815(0x129)+(_0x4a8188[_0x332815(0xfb)][_0x332815(0x177)](_0x332815(0x147))?_0x332815(0x10d):'');}[_0x42e3f1(0x11b)](){const _0x1b188f=_0x42e3f1,{editor:_0x20fdeb}=this;this[_0x1b188f(0x14b)]=_0x20fdeb[_0x1b188f(0xdb)][_0x1b188f(0x177)](_0xb9f37f),this[_0x1b188f(0x113)]=_0x20fdeb[_0x1b188f(0xdb)][_0x1b188f(0x177)](_0x254010),this[_0x1b188f(0x133)]=null,this[_0x1b188f(0x12a)]=this[_0x1b188f(0xeb)]();const _0x28e707=new _0x41018a(_0x20fdeb,Array[_0x1b188f(0x17a)](this[_0x1b188f(0x12a)][_0x1b188f(0x117)]()));_0x20fdeb[_0x1b188f(0x151)][_0x1b188f(0xf4)](_0x1b188f(0x11d),_0x28e707),_0x20fdeb['ui'][_0x1b188f(0x178)][_0x1b188f(0xf4)](_0x1b188f(0x13b),_0x4e1336=>{const _0x5448da=_0x1b188f,_0x4fa01d=_0x4610fc(_0x4e1336);return _0x4fa01d[_0x5448da(0x130)]({'class':_0x5448da(0x137)+this[_0x5448da(0xe5)]}),_0x4fa01d[_0x5448da(0x180)][_0x5448da(0x130)]({'label':_0x59b6ac(_0x4e1336,_0x5448da(0x176)),'icon':_0x32dc4c,'tooltip':!0x0}),_0x4fa01d['on'](_0x5448da(0x10b),_0x9394d6=>this[_0x5448da(0x150)](_0x9394d6[_0x5448da(0x158)]['id'])),_0x5d8d3c(_0x4fa01d,_0x20fdeb['ui'][_0x5448da(0x13e)][_0x5448da(0xfc)],function(_0x58feb1){const _0x5141c5=_0x5448da,_0x259046=_0x30c39d(_0x58feb1[_0x5141c5(0xfb)][_0x5141c5(0x177)](_0x5141c5(0xf0)),_0x58feb1[_0x5141c5(0xd6)]),_0x55aa37=U(_0x58feb1,_0x259046)[_0x5141c5(0xf9)](_0x5748e0=>_0x5748e0[_0x5141c5(0x151)][_0x5141c5(0x153)]);if(0x1===_0x55aa37[_0x5141c5(0x153)])return U(_0x58feb1,_0x55aa37[0x0][_0x5141c5(0x151)])[_0x5141c5(0x13c)](_0xcf369f=>({'id':_0xcf369f['id'],'label':_0xcf369f[_0x5141c5(0x112)]}));return _0x55aa37[_0x5141c5(0x13c)](_0x51dc6e=>{const _0x1bbbfb=_0x5141c5,{groupId:_0x322fc6,groupLabel:_0x430a1f,commands:_0x3b7bda}=_0x51dc6e,_0x2895ba=U(_0x58feb1,_0x3b7bda)[_0x1bbbfb(0x13c)](_0x257a8b=>({'id':_0x257a8b['id'],'label':_0x257a8b[_0x1bbbfb(0x112)]}));return{'id':_0x322fc6,'menu':_0x430a1f||_0x322fc6,'children':_0x2895ba};});}(_0x20fdeb),{'ariaLabel':_0x59b6ac(_0x4e1336,_0x5448da(0x176))}),_0x4fa01d[_0x5448da(0x121)][_0x5448da(0x134)]=_0x5448da(0x137)+this[_0x5448da(0xe5)],_0x28e707['on'](_0x5448da(0x16e),_0x4086ff),_0x4fa01d[_0x5448da(0x121)][_0x5448da(0x110)](_0x5448da(0x181),_0x4086ff),_0x4fa01d;function _0x4086ff(){const _0xed5b8=_0x5448da;_0x4fa01d[_0xed5b8(0x179)]=_0x28e707[_0xed5b8(0xdc)][_0xed5b8(0x153)]>0x0;for(const _0x4ce1f2 of _0x4fa01d[_0xed5b8(0x121)][_0xed5b8(0x12e)])_0x4ce1f2[_0xed5b8(0x179)]=_0x28e707[_0xed5b8(0xdc)][_0xed5b8(0xef)](_0x4ce1f2['id']);}}),_0x20fdeb['ui'][_0x1b188f(0x178)][_0x1b188f(0xf4)](_0x1b188f(0x136),_0x10ce88=>{const _0x3203b1=_0x1b188f,_0x18319d=new _0x59ecd6(_0x10ce88);_0x18319d[_0x3203b1(0x180)][_0x3203b1(0x130)]({'label':_0x59b6ac(_0x10ce88,_0x3203b1(0x176)),'icon':_0x32dc4c}),_0x18319d[_0x3203b1(0xfa)](_0x3203b1(0x179))['to'](_0x28e707,_0x3203b1(0xdc),_0x325801=>_0x325801[_0x3203b1(0x153)]>0x0);const _0xef723b=_0x30c39d(_0x20fdeb[_0x3203b1(0xfb)][_0x3203b1(0x177)](_0x3203b1(0xf0)),_0x10ce88);return this[_0x3203b1(0x16a)](_0x28e707,_0x18319d,_0xef723b,_0x59207b=>this[_0x3203b1(0x150)](_0x59207b)),_0x18319d;}),_0x20fdeb['ui'][_0x1b188f(0x178)][_0x1b188f(0xf4)](_0x1b188f(0x15a),()=>{const _0xa10d50=_0x1b188f,_0x450dfe=this[_0xa10d50(0xf8)](_0x2525da);return _0x450dfe[_0xa10d50(0x130)]({'tooltip':!0x0,'class':_0xa10d50(0x17d)+this[_0xa10d50(0xe5)]}),_0x450dfe;}),_0x20fdeb['ui'][_0x1b188f(0x178)][_0x1b188f(0xf4)](_0x1b188f(0x106),()=>{const _0x3ddba8=_0x1b188f,_0x33f99b=this[_0x3ddba8(0xf8)](_0x4d869a);return _0x33f99b[_0x3ddba8(0x130)]({'role':_0x3ddba8(0xfd)}),_0x33f99b;}),this[_0x1b188f(0x17b)]=this[_0x1b188f(0xd8)][_0x1b188f(0xfb)][_0x1b188f(0x177)](_0x1b188f(0x17b));const _0x10d426=this[_0x1b188f(0xd8)];this[_0x1b188f(0x102)]=setInterval(()=>{const _0x35bb8f=_0x1b188f;let _0x2fca2b;for(const _0x42e783 in _0x10d426){const _0x376a31=_0x42e783,_0x3c658e=_0x10d426[_0x376a31];if(_0x35bb8f(0x184)==_0x3c658e||_0x35bb8f(0xda)==_0x3c658e||_0x35bb8f(0x14c)==_0x3c658e||_0x35bb8f(0x152)==_0x3c658e||_0x35bb8f(0x182)==_0x3c658e||_0x35bb8f(0xe3)==_0x3c658e||_0x35bb8f(0x109)==_0x3c658e||_0x35bb8f(0xe7)==_0x3c658e){delete _0x10d426[_0x376a31],_0x2fca2b=_0x3c658e,clearInterval(this[_0x35bb8f(0x102)]),this[_0x35bb8f(0x102)]=void 0x0;break;}}_0x35bb8f(0xda)==_0x2fca2b&&_0x10d426[_0x35bb8f(0x175)](_0x35bb8f(0x135)),_0x35bb8f(0x14c)==_0x2fca2b&&_0x10d426[_0x35bb8f(0x175)](_0x35bb8f(0xdd)),_0x35bb8f(0x152)==_0x2fca2b&&_0x10d426[_0x35bb8f(0x175)](_0x35bb8f(0xee)),_0x35bb8f(0x182)==_0x2fca2b&&_0x10d426[_0x35bb8f(0x175)](_0x35bb8f(0x114),_0x35bb8f(0x143)),_0x35bb8f(0xe3)==_0x2fca2b&&_0x10d426[_0x35bb8f(0x175)](_0x35bb8f(0x161)),_0x35bb8f(0x109)==_0x2fca2b&&_0x10d426[_0x35bb8f(0x175)](_0x35bb8f(0xe2)),_0x35bb8f(0xe7)==_0x2fca2b&&_0x10d426[_0x35bb8f(0x175)](_0x35bb8f(0x11c));},0x3e8);}[_0x42e3f1(0xd7)](){const _0x233925=_0x42e3f1;super[_0x233925(0xd7)](),this[_0x233925(0x102)]&&clearInterval(this[_0x233925(0x102)]);}[_0x42e3f1(0x126)](_0x235f47='',_0x401564='',_0xb8d564=_0x42e3f1(0x107)){const _0x4efd21=_0x42e3f1,_0x1b5509=this[_0x4efd21(0xd8)],_0x25c89a=_0x1b5509[_0x4efd21(0xdf)][_0x4efd21(0x13e)],_0x4ed39e=_0x1b5509[_0x4efd21(0xdb)][_0x4efd21(0x177)](_0x5c966d),_0x308a0f=_0x1b5509[_0x4efd21(0xdb)][_0x4efd21(0x177)](_0x2a73f7);_0x4ed39e[_0x4efd21(0x15e)]();const _0x4937d1=new l(),_0x310edc=new ClipboardEvent(_0x4efd21(0xe0),{'clipboardData':_0x4937d1}),_0x4f9da8=new _0x501343(_0x4937d1),_0x4385bd=new _0x32d08d(_0x25c89a,_0x310edc,{'dataTransfer':_0x4f9da8});_0x308a0f[_0x4efd21(0x15c)](_0x4efd21(0x155),()=>{const _0x4abdae=_0x4efd21;_0x25c89a[_0x4abdae(0x101)][_0x4abdae(0x139)](_0x4abdae(0xe0),_0x4385bd);}),this[_0x4efd21(0x133)]||(this[_0x4efd21(0xea)](),this[_0x4efd21(0xde)]=new _0x478af7(_0x1b5509,this[_0x4efd21(0x14b)][_0x4efd21(0x170)],this[_0x4efd21(0x133)]));let _0x52ad47=_0x4f9da8[_0x4efd21(0x146)](_0x4efd21(0x13d));const _0x3854c4=_0x1b5509[_0x4efd21(0xfe)][_0x4efd21(0x101)][_0x4efd21(0x157)],_0xfbd1c4=Array[_0x4efd21(0x17a)](_0x3854c4[_0x4efd21(0xe8)]());0x1===_0xfbd1c4[_0x4efd21(0x153)]&&_0xfbd1c4[0x0][_0x4efd21(0xf3)]&&!_0x3854c4[_0x4efd21(0x12b)]()&&''!==_0x52ad47[_0x4efd21(0x15b)](/ /g,'')[_0x4efd21(0x122)]()&&(_0x52ad47=_0x4efd21(0x17c)+_0x52ad47+_0x4efd21(0x124)),this[_0x4efd21(0xde)][_0x4efd21(0x11a)]({'actionId':_0xb8d564,'query':_0x235f47,'htmlContent':_0x52ad47,'label':_0x401564,'mainActionLabel':_0x45d3df[_0x1b5509[_0x4efd21(0xfe)][_0x4efd21(0x101)][_0x4efd21(0x157)][_0x4efd21(0x142)]?_0x4efd21(0x159):_0x4efd21(0x16d)]}),_0x4efd21(0x15a)!==this[_0x4efd21(0x113)]['id']?this[_0x4efd21(0x113)][_0x4efd21(0x14a)]({'id':_0x4efd21(0x15a),'icon':_0x241782,'title':_0x59b6ac(this[_0x4efd21(0xd8)][_0x4efd21(0xd6)],_0x4efd21(0x100)),'content':this[_0x4efd21(0x133)],'position':_0xd4f87b[_0x4efd21(0x12c)],'onShow':()=>{const _0xd95852=_0x4efd21;this[_0xd95852(0x133)][_0xd95852(0x12f)]();},'onHide':()=>{const _0x1e9424=_0x4efd21;this[_0x1e9424(0xde)][_0x1e9424(0x104)](),_0x4ed39e[_0x1e9424(0x16f)]();}}):this[_0x4efd21(0x113)][_0x4efd21(0x13e)][_0x4efd21(0xf5)]||this[_0x4efd21(0x113)][_0x4efd21(0x13e)][_0x4efd21(0x12d)]();}[_0x42e3f1(0x103)](){const _0x25c792=_0x42e3f1;this[_0x25c792(0x113)][_0x25c792(0xe6)]();}[_0x42e3f1(0xeb)](){const _0x587b3d=_0x42e3f1,_0x55d053=new Map(),_0x2eebce=_0x30c39d(this[_0x587b3d(0xd8)][_0x587b3d(0xfb)][_0x587b3d(0x177)](_0x587b3d(0xf0)),this[_0x587b3d(0xd8)][_0x587b3d(0xd6)]);for(const _0x27b9ed of _0x2eebce)for(const _0x38b6dd of _0x27b9ed[_0x587b3d(0x151)])_0x55d053[_0x587b3d(0x130)](_0x38b6dd['id'],{..._0x38b6dd,'groupId':_0x27b9ed[_0x587b3d(0x120)],'groupLabel':_0x27b9ed[_0x587b3d(0x128)]||_0x27b9ed[_0x587b3d(0x120)]});return _0x55d053;}[_0x42e3f1(0xf8)](_0x3bc730){const _0x24034b=_0x42e3f1,_0x5f018d=this[_0x24034b(0xd8)],_0x15c0a3=_0x5f018d[_0x24034b(0x151)][_0x24034b(0x177)](_0x24034b(0x11d)),_0x55f0bb=new _0x3bc730(_0x5f018d[_0x24034b(0xd6)]);return _0x55f0bb[_0x24034b(0x130)]({'label':_0x59b6ac(_0x5f018d[_0x24034b(0xd6)],_0x24034b(0x100)),'icon':_0x241782,'isToggleable':!0x0}),_0x55f0bb[_0x24034b(0xfa)](_0x24034b(0x179))['to'](_0x15c0a3),_0x55f0bb[_0x24034b(0xfa)](_0x24034b(0x119))['to'](this[_0x24034b(0x113)],'id',_0x388012=>_0x24034b(0x15a)===_0x388012),this[_0x24034b(0x123)](_0x55f0bb,_0x24034b(0x10b),()=>{const _0x25101d=_0x24034b;_0x55f0bb[_0x25101d(0x119)]?this[_0x25101d(0x103)]():_0x15c0a3[_0x25101d(0x10b)]();}),_0x55f0bb;}[_0x42e3f1(0xea)](){const _0x30811d=_0x42e3f1,_0x2a190e=this[_0x30811d(0xd8)][_0x30811d(0xdb)][_0x30811d(0x177)](_0x5c966d);this[_0x30811d(0x133)]=new _0x2dc277(this[_0x30811d(0xd8)][_0x30811d(0xd6)],this[_0x30811d(0xe5)],this[_0x30811d(0xd8)][_0x30811d(0xfb)][_0x30811d(0x177)](_0x30811d(0x140))),this[_0x30811d(0x133)]['on'](_0x30811d(0x17f),()=>{const _0x3f8cd3=_0x30811d;this[_0x3f8cd3(0x113)][_0x3f8cd3(0x13e)][_0x3f8cd3(0xf5)]||this[_0x3f8cd3(0x113)][_0x3f8cd3(0x13e)][_0x3f8cd3(0x12d)]();}),this[_0x30811d(0x133)][_0x30811d(0x165)][_0x30811d(0x13f)][_0x30811d(0x171)]['on'](_0x30811d(0x14f),()=>{const _0x44f0c2=_0x30811d;this[_0x44f0c2(0x113)][_0x44f0c2(0x13e)][_0x44f0c2(0xf5)]||this[_0x44f0c2(0x113)][_0x44f0c2(0x13e)][_0x44f0c2(0x12d)]();}),this[_0x30811d(0x123)](this[_0x30811d(0x133)],_0x30811d(0x115),()=>{const _0x5e99e3=_0x30811d;_0x2a190e[_0x5e99e3(0x138)](this[_0x5e99e3(0xde)][_0x5e99e3(0x149)]),this[_0x5e99e3(0x103)]();}),this[_0x30811d(0x123)](this[_0x30811d(0x133)],_0x30811d(0xd9),()=>{const _0x4e5dea=_0x30811d;_0x2a190e[_0x4e5dea(0xd9)](this[_0x4e5dea(0xde)][_0x4e5dea(0x149)]),this[_0x4e5dea(0x103)]();}),this[_0x30811d(0x141)]();}[_0x42e3f1(0x141)](){const _0x990076=_0x42e3f1,{locale:_0x3bd3bd,ui:{ariaLiveAnnouncer:_0x13941a}}=this[_0x990076(0xd8)];this[_0x990076(0x133)][_0x990076(0x105)]['on'](_0x990076(0x148),(_0x5ec5a4,_0x5d1a54,_0x589f82)=>{const _0x22ad4a=_0x990076,_0x164999=this[_0x22ad4a(0xde)][_0x22ad4a(0x149)];_0x589f82?_0x13941a[_0x22ad4a(0x132)](_0x59b6ac(_0x3bd3bd,_0x22ad4a(0x173))):_0x164999&&_0x13941a[_0x22ad4a(0x132)](_0x59b6ac(_0x3bd3bd,_0x22ad4a(0x15f),_0x164999),{'politeness':_0x22ad4a(0x145),'isUnsafeHTML':!0x0});}),this[_0x990076(0x133)]['on'](_0x990076(0x168),(_0x2ab3ba,_0x18d62,_0xe17cb0)=>{const _0x2478b5=_0x990076;if(_0xe17cb0){const _0x15f4e0=this[_0x2478b5(0x133)][_0x2478b5(0xf7)][_0x2478b5(0x15d)];_0x13941a[_0x2478b5(0x132)](_0x59b6ac(_0x3bd3bd,_0x2478b5(0x125),_0x15f4e0));}});}[_0x42e3f1(0x150)](_0x2566c9){const _0x18b0fc=_0x42e3f1,_0x443954=this[_0x18b0fc(0x12a)][_0x18b0fc(0x177)](_0x2566c9),_0x43ac84=this[_0x18b0fc(0xd8)],_0x52fb4e=_0x43ac84[_0x18b0fc(0xfe)][_0x18b0fc(0x101)][_0x18b0fc(0x157)],_0x314893=_0x43ac84[_0x18b0fc(0x151)][_0x18b0fc(0x177)](_0x18b0fc(0x11d)),_0x362cd7=_0x43ac84[_0x18b0fc(0xdb)][_0x18b0fc(0x177)](_0x5c966d),_0x2bff44=''+(_0x443954[_0x18b0fc(0x120)]!==_0x32df77?_0x443954[_0x18b0fc(0x128)]+':\x20':'')+_0x443954[_0x18b0fc(0x112)];if(!0x1!==_0x443954[_0x18b0fc(0x10c)]&&_0x52fb4e[_0x18b0fc(0x142)]){const _0x7689ab=_0x28db92(_0x52fb4e[_0x18b0fc(0xec)]())||_0x43ac84[_0x18b0fc(0xfe)][_0x18b0fc(0xf1)][_0x18b0fc(0x156)](_0x52fb4e);_0x43ac84[_0x18b0fc(0xfe)][_0x18b0fc(0x16b)](_0x226876=>{const _0x275f2e=_0x18b0fc;_0x226876[_0x275f2e(0x11f)](_0x7689ab,'in');});}_0x362cd7[_0x18b0fc(0x15e)](),_0x314893[_0x18b0fc(0x10b)](_0x443954[_0x18b0fc(0x118)],_0x2bff44,_0x18b0fc(0x174)+_0x2566c9);}[_0x42e3f1(0x16a)](_0x2a8fe3,_0x423790,_0x2344aa,_0x595bb5){const _0x561bb8=_0x42e3f1,_0x1c14cc=this[_0x561bb8(0xd8)],_0x1adf3d=_0x1c14cc[_0x561bb8(0xd6)],_0x416c69=new _0x1c64c3(_0x1adf3d),_0x54a588=U(_0x1c14cc,_0x2344aa)[_0x561bb8(0xf9)](_0xb6746e=>_0xb6746e[_0x561bb8(0x151)][_0x561bb8(0x153)]);0x1===_0x54a588[_0x561bb8(0x153)]?this[_0x561bb8(0xf2)]({'command':_0x2a8fe3,'commands':_0x54a588[0x0][_0x561bb8(0x151)],'parentMenuView':_0x423790,'onExecute':_0x595bb5})[_0x561bb8(0xf6)](_0x20a8a9=>_0x416c69[_0x561bb8(0x162)][_0x561bb8(0xf4)](_0x20a8a9)):_0x54a588[_0x561bb8(0xf6)](({groupId:_0x3f83fb,groupLabel:_0x59550a,commands:_0x105394})=>{const _0xc4e351=_0x561bb8,_0x29f7b7=new _0x396b62(_0x1adf3d,_0x423790),_0x4e6e74=new _0x59ecd6(_0x1adf3d),_0x817aa0=new _0x1c64c3(_0x1adf3d),_0x1c7e6e=this[_0xc4e351(0xf2)]({'command':_0x2a8fe3,'commands':_0x105394,'parentMenuView':_0x4e6e74,'onExecute':_0x595bb5});_0x4e6e74[_0xc4e351(0x180)][_0xc4e351(0x130)]({'label':_0x59550a||_0x3f83fb}),_0x4e6e74[_0xc4e351(0x166)](_0xc4e351(0x10b))['to'](_0x423790),_0x817aa0[_0xc4e351(0x162)][_0xc4e351(0x127)](_0x1c7e6e),_0x4e6e74[_0xc4e351(0x172)][_0xc4e351(0x17e)][_0xc4e351(0xf4)](_0x817aa0),_0x29f7b7[_0xc4e351(0x17e)][_0xc4e351(0xf4)](_0x4e6e74),_0x416c69[_0xc4e351(0x162)][_0xc4e351(0xf4)](_0x29f7b7);}),_0x423790[_0x561bb8(0x172)][_0x561bb8(0x17e)][_0x561bb8(0xf4)](_0x416c69);}[_0x42e3f1(0xf2)]({command:_0x3a9dd4,commands:_0x46cb96,parentMenuView:_0x183df1,onExecute:_0x416e65}){const _0x451ca0=_0x42e3f1,_0x2bad7a=this[_0x451ca0(0xd8)],_0x45cb62=_0x2bad7a[_0x451ca0(0xd6)];return U(_0x2bad7a,_0x46cb96)[_0x451ca0(0x13c)](_0x4e59d5=>{const _0x5ee12c=_0x451ca0,_0x5d4e28=new _0x396b62(_0x45cb62,_0x183df1),_0x32a736=new _0x4d869a(_0x45cb62);return _0x32a736[_0x5ee12c(0x130)]({'label':_0x4e59d5[_0x5ee12c(0x112)]}),_0x32a736[_0x5ee12c(0x166)](_0x5ee12c(0x10b))['to'](_0x183df1),_0x32a736['on'](_0x5ee12c(0x10b),()=>_0x416e65(_0x4e59d5['id'])),_0x32a736[_0x5ee12c(0xfa)](_0x5ee12c(0x179))['to'](_0x3a9dd4,_0x5ee12c(0xdc),_0x39d593=>_0x39d593[_0x5ee12c(0xef)](_0x4e59d5['id'])),_0x5d4e28[_0x5ee12c(0x17e)][_0x5ee12c(0xf4)](_0x32a736),_0x5d4e28;});}}function T(_0x50bf90,_0x365c0e){const _0x2b87f6=_0x42e3f1;return void 0x0!==_0x50bf90[_0x2b87f6(0x167)]&&void 0x0===_0x365c0e[_0x2b87f6(0x167)]?0x1:void 0x0===_0x50bf90[_0x2b87f6(0x167)]&&void 0x0!==_0x365c0e[_0x2b87f6(0x167)]?-0x1:void 0x0!==_0x50bf90[_0x2b87f6(0x167)]&&void 0x0!==_0x365c0e[_0x2b87f6(0x167)]?_0x50bf90[_0x2b87f6(0x167)]-_0x365c0e[_0x2b87f6(0x167)]:0x0;}function U(_0x1a9d5d,_0x1e1e6e){const _0x512057=_0x42e3f1;_0x1e1e6e[_0x512057(0x16c)](T);const _0x25eaa7={},_0x50a960=[];for(const _0x453b5e of _0x1e1e6e)if(void 0x0!==_0x453b5e[_0x512057(0x167)]){if(_0x453b5e[_0x512057(0x167)]in _0x25eaa7)throw new _0x5946eb(_0x512057(0x183),_0x1a9d5d,{'conflictingDefinitions':[_0x453b5e,_0x25eaa7[_0x453b5e[_0x512057(0x167)]]]});_0x25eaa7[_0x453b5e[_0x512057(0x167)]]=_0x453b5e,_0x50a960[_0x512057(0x11e)](_0x453b5e[_0x512057(0x167)],0x0,_0x453b5e);}else _0x50a960[_0x512057(0x13a)](_0x453b5e);return _0x50a960;}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x458322,_0x58c2ca){var _0x387fe7=_0x3267,_0x679505=_0x458322();while(!![]){try{var _0x27e3d9=-parseInt(_0x387fe7(0x1d5))/0x1*(parseInt(_0x387fe7(0x1cf))/0x2)+parseInt(_0x387fe7(0x1d2))/0x3*(-parseInt(_0x387fe7(0x1d1))/0x4)+-parseInt(_0x387fe7(0x1d8))/0x5+parseInt(_0x387fe7(0x1d0))/0x6+-parseInt(_0x387fe7(0x1d7))/0x7*(parseInt(_0x387fe7(0x1d6))/0x8)+-parseInt(_0x387fe7(0x1d4))/0x9+parseInt(_0x387fe7(0x1d3))/0xa;if(_0x27e3d9===_0x58c2ca)break;else _0x679505['push'](_0x679505['shift']());}catch(_0x896ac0){_0x679505['push'](_0x679505['shift']());}}}(_0x1ab1,0xcbf3f));function _0x1ab1(){var _0x372e74=['728014vfzlyn','7033560BUyoKP','130waslSc','6843186tnsYsH','58404hyRkbd','135DhcdEu','44854440JPcoky','9092088cJFfFj','18409YOQdxh','40BrpNyt'];_0x1ab1=function(){return _0x372e74;};return _0x1ab1();}export{AIAssistant,getDefaultAICommands}from'./aiassistant.js';export{AIAssistantUI}from'./aiassistantui.js';export{AIAdapter,AIRequestError}from'./adapters/aiadapter.js';export{AITextAdapter}from'./adapters/aitextadapter.js';function _0x3267(_0x2a5e1c,_0x1684fb){var _0x1ab1b1=_0x1ab1();return _0x3267=function(_0x3267e7,_0x5460be){_0x3267e7=_0x3267e7-0x1cf;var _0x391ff8=_0x1ab1b1[_0x3267e7];return _0x391ff8;},_0x3267(_0x2a5e1c,_0x1684fb);}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
|
-
(function(
|
|
23
|
+
(function(_0x1c2f43,_0x3aae2e){var _0x558a1b=_0x320d,_0x1cde9d=_0x1c2f43();while(!![]){try{var _0x295b2a=parseInt(_0x558a1b(0x1e7))/0x1+parseInt(_0x558a1b(0x1e4))/0x2+-parseInt(_0x558a1b(0x1e5))/0x3*(parseInt(_0x558a1b(0x1e8))/0x4)+parseInt(_0x558a1b(0x1ea))/0x5+-parseInt(_0x558a1b(0x1e9))/0x6+parseInt(_0x558a1b(0x1eb))/0x7+-parseInt(_0x558a1b(0x1e6))/0x8;if(_0x295b2a===_0x3aae2e)break;else _0x1cde9d['push'](_0x1cde9d['shift']());}catch(_0x250c24){_0x1cde9d['push'](_0x1cde9d['shift']());}}}(_0x5ec9,0x5040d));function _0x320d(_0x15f721,_0xb86e42){var _0x5ec906=_0x5ec9();return _0x320d=function(_0x320d58,_0xd44b16){_0x320d58=_0x320d58-0x1e4;var _0x1d9913=_0x5ec906[_0x320d58];return _0x1d9913;},_0x320d(_0x15f721,_0xb86e42);}import{CKEditorError as _0x338375}from'ckeditor5/src/utils.js';function _0x5ec9(){var _0x2629c1=['4JjhTuJ','1836510rufVMM','2300235zVEuFn','4376939FrHRqE','428748oqGnEE','1397244kBxdOr','3688256lKOHdM','261884zdtwuA'];_0x5ec9=function(){return _0x2629c1;};return _0x5ec9();}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
24
|
-
|
|
23
|
+
function _0x31c1(_0x5ecd0e,_0x4bee99){const _0x323f80=_0x323f();return _0x31c1=function(_0x31c198,_0x53cc4c){_0x31c198=_0x31c198-0x127;let _0x3e42c7=_0x323f80[_0x31c198];return _0x3e42c7;},_0x31c1(_0x5ecd0e,_0x4bee99);}const _0x12104f=_0x31c1;(function(_0x25c5ff,_0x4f6919){const _0x178505=_0x31c1,_0x329867=_0x25c5ff();while(!![]){try{const _0xb24633=parseInt(_0x178505(0x127))/0x1+parseInt(_0x178505(0x150))/0x2+-parseInt(_0x178505(0x158))/0x3*(-parseInt(_0x178505(0x135))/0x4)+parseInt(_0x178505(0x164))/0x5*(-parseInt(_0x178505(0x16b))/0x6)+parseInt(_0x178505(0x13e))/0x7+parseInt(_0x178505(0x145))/0x8+-parseInt(_0x178505(0x182))/0x9*(parseInt(_0x178505(0x13b))/0xa);if(_0xb24633===_0x4f6919)break;else _0x329867['push'](_0x329867['shift']());}catch(_0x3e3424){_0x329867['push'](_0x329867['shift']());}}}(_0x323f,0x91a21));import{ObservableMixin as _0x5b810f}from'ckeditor5/src/utils.js';function _0x323f(){const _0x139b4c=['finally','destroy','initialContext','element','543252EhqiYw','endsWith','abort','```','previousQuery','setContentOf','323950gzUuSU','querySelector','_handleQuery','7787822enwHID','updateView','viewToDom','currentResponse','reverse','htmlProcessor','_stripMarkdownSyntax','6823840uDlzFV','_sanitizationContainer','previousLabel','childNodes','set','serializeToString','markers','value','stopListening','nodeType','editor','150484VrncEE','rename','previousActionId','submitPrompt','textAdapter','body','tryAgainEvent','currentContext','3rBYqei','toView','processor','mainAction','match','remove','listenTo','text/html','push','_isH1TagSupportEnabled','createElement','catch','5DpjuEZ','custom','startProcessing','get','ELEMENT_NODE','render','_sanitizeHTML','3315846bEhcXR','exec','_parseAndNormalizeContent','once','<h1></h1>','length','then','data','stopProcessing','makeRequest','_normalizeResponseHeadings','document','message','editing','```html','config','name','toModel','previousContext','_xmlSerializer','substring','isProcessing','div','477iOPipr','reset','handleError','set:currentContext','clear','parseFromString','finishProcessing','view','_domParser','689508qSDXIG','ai.aiAssistant.preserveComments','startsWith','domConverter','isRendered','from','prompt','stringify','trim','innerHTML'];_0x323f=function(){return _0x139b4c;};return _0x323f();}import{AIRequestError as _0x31eecd}from'../adapters/aiadapter.js';import{Matcher as _0x4ec632,ViewUpcastWriter as _0x5b792b}from'ckeditor5/src/engine.js';const Q=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');export class AIAssistantController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5b810f(){[_0x12104f(0x14f)];[_0x12104f(0x154)];[_0x12104f(0x189)];[_0x12104f(0x146)];[_0x12104f(0x18a)];[_0x12104f(0x17e)];constructor(_0x4aab2c,_0x402014,_0x47ee0c){const _0x5c9f73=_0x12104f;super(),this[_0x5c9f73(0x14f)]=_0x4aab2c,this[_0x5c9f73(0x154)]=_0x402014,this[_0x5c9f73(0x146)]=document[_0x5c9f73(0x162)](_0x5c9f73(0x181)),this[_0x5c9f73(0x18a)]=new DOMParser(),this[_0x5c9f73(0x17e)]=new XMLSerializer(),this[_0x5c9f73(0x189)]=_0x47ee0c,this[_0x5c9f73(0x149)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x5c9f73(0x185),(_0x2871b3,_0x127f4f,_0x54d035)=>{const _0x3c8a43=_0x5c9f73;this[_0x3c8a43(0x189)][_0x3c8a43(0x14c)]=this[_0x3c8a43(0x16a)](_0x54d035);}),this[_0x5c9f73(0x15e)](this[_0x5c9f73(0x189)],_0x5c9f73(0x153),(_0x3ce3d8,_0x402684)=>{const _0xaf722c=_0x5c9f73,_0x4fce7d=this[_0xaf722c(0x157)]||this[_0xaf722c(0x133)];this[_0xaf722c(0x13d)](_0x402684,_0x4fce7d,_0xaf722c(0x165));}),this[_0x5c9f73(0x15e)](this[_0x5c9f73(0x189)],_0x5c9f73(0x156),()=>{const _0x57bb28=_0x5c9f73;this[_0x57bb28(0x189)][_0x57bb28(0x12d)]=this[_0x57bb28(0x147)],this[_0x57bb28(0x13d)](this[_0x57bb28(0x139)],this[_0x57bb28(0x17d)],this[_0x57bb28(0x152)],this[_0x57bb28(0x147)]);}),this[_0x5c9f73(0x15e)](this[_0x5c9f73(0x189)],_0x5c9f73(0x173),()=>{const _0x4bdf68=_0x5c9f73;this[_0x4bdf68(0x173)]();});}[_0x12104f(0x132)](){const _0x171806=_0x12104f;this[_0x171806(0x14d)]();}async[_0x12104f(0x13f)]({actionId:_0x599462,query:_0x55ecd5,htmlContent:_0x22d75b,label:_0x167aa8,mainActionLabel:_0x3ec5e1}){const _0x14cc3c=_0x12104f;this[_0x14cc3c(0x189)][_0x14cc3c(0x12d)]=_0x167aa8,this[_0x14cc3c(0x189)][_0x14cc3c(0x15b)]=_0x3ec5e1,this[_0x14cc3c(0x133)]=_0x22d75b,_0x55ecd5&&(this[_0x14cc3c(0x189)][_0x14cc3c(0x12b)]?this[_0x14cc3c(0x13d)](_0x55ecd5,_0x22d75b,_0x599462,_0x167aa8):this[_0x14cc3c(0x189)][_0x14cc3c(0x16e)](_0x14cc3c(0x169),()=>{const _0x26bc59=_0x14cc3c;this[_0x26bc59(0x13d)](_0x55ecd5,_0x22d75b,_0x599462,_0x167aa8);}));}[_0x12104f(0x173)](){const _0x598fcf=_0x12104f;this[_0x598fcf(0x180)]&&(this[_0x598fcf(0x180)]=!0x1,this[_0x598fcf(0x189)][_0x598fcf(0x188)](),this[_0x598fcf(0x154)][_0x598fcf(0x137)]());}[_0x12104f(0x183)](){const _0x2a5490=_0x12104f;this[_0x2a5490(0x133)]='',this[_0x2a5490(0x157)]='',this[_0x2a5490(0x141)]='',this[_0x2a5490(0x17d)]='',this[_0x2a5490(0x139)]='',this[_0x2a5490(0x147)]='',this[_0x2a5490(0x152)]=void 0x0,this[_0x2a5490(0x189)][_0x2a5490(0x183)](),this[_0x2a5490(0x173)]();}async[_0x12104f(0x13d)](_0x2e37cb,_0x5162c8,_0x452b51,_0x20fcb6){const _0x325983=_0x12104f;return this[_0x325983(0x180)]=!0x0,this[_0x325983(0x189)][_0x325983(0x166)](),this[_0x325983(0x17d)]=_0x5162c8,this[_0x325983(0x139)]=_0x2e37cb,this[_0x325983(0x147)]=_0x20fcb6||_0x2e37cb,this[_0x325983(0x152)]=_0x452b51,new Promise(_0x1b17b6=>{const _0x58feea=_0x325983;this[_0x58feea(0x154)][_0x58feea(0x174)]({'query':_0x2e37cb,'context':_0x5162c8,'onData':_0x4411ce=>{const _0x441eb8=_0x58feea;this[_0x441eb8(0x141)]=_0x4411ce,this[_0x441eb8(0x157)]=this[_0x441eb8(0x16d)](this[_0x441eb8(0x141)]);},'actionId':_0x452b51})[_0x58feea(0x171)](()=>{const _0x560c6e=_0x58feea;!this[_0x560c6e(0x157)]&&this[_0x560c6e(0x141)]&&(this[_0x560c6e(0x157)]=this[_0x560c6e(0x16d)](this[_0x560c6e(0x141)],!0x0));})[_0x58feea(0x163)](_0x29d9cc=>{const _0x4fcc91=_0x58feea;_0x29d9cc instanceof _0x31eecd?this[_0x4fcc91(0x189)][_0x4fcc91(0x184)](_0x29d9cc[_0x4fcc91(0x177)]):this[_0x4fcc91(0x189)][_0x4fcc91(0x184)](),_0x1b17b6();})[_0x58feea(0x131)](()=>{const _0x532714=_0x58feea;this[_0x532714(0x173)](),_0x1b17b6();});});}[_0x12104f(0x16d)](_0x591544,_0x335485=!0x1){const _0x1fe766=_0x12104f,_0x42e0a0=Q[_0x1fe766(0x16c)](_0x591544);_0x591544=_0x42e0a0?_0x591544[_0x1fe766(0x17f)](_0x42e0a0[0x1][_0x1fe766(0x170)]):_0x591544[_0x1fe766(0x170)]<0x64&&!_0x335485?'':this[_0x1fe766(0x144)](_0x591544);const _0x5804bf=this[_0x1fe766(0x18a)][_0x1fe766(0x187)](_0x591544,_0x1fe766(0x15f));if(_0x42e0a0){const _0x12dc32=Array[_0x1fe766(0x12c)](_0x5804bf[_0x1fe766(0x155)][_0x1fe766(0x148)]);_0x12dc32[_0x1fe766(0x142)]();for(const _0x4f4cbe of _0x12dc32){if(_0x4f4cbe[_0x1fe766(0x14e)]==Node[_0x1fe766(0x168)])break;_0x4f4cbe[_0x1fe766(0x15d)]();}}const _0x1f382d=this[_0x1fe766(0x14f)][_0x1fe766(0x172)][_0x1fe766(0x15a)][_0x1fe766(0x159)](this[_0x1fe766(0x17e)][_0x1fe766(0x14a)](_0x5804bf[_0x1fe766(0x155)]));this[_0x1fe766(0x161)]()||this[_0x1fe766(0x175)](_0x1f382d);const _0x2cb9ac=this[_0x1fe766(0x14f)][_0x1fe766(0x17a)][_0x1fe766(0x167)](_0x1fe766(0x128)),_0x56225f=this[_0x1fe766(0x14f)][_0x1fe766(0x172)][_0x1fe766(0x17c)](_0x1f382d);return _0x2cb9ac||_0x56225f[_0x1fe766(0x14b)][_0x1fe766(0x186)](),this[_0x1fe766(0x14f)][_0x1fe766(0x172)][_0x1fe766(0x12e)](_0x56225f);}[_0x12104f(0x175)](_0x219168){const _0x545de9=_0x12104f,_0x118131=new _0x5b792b(this[_0x545de9(0x14f)][_0x545de9(0x178)][_0x545de9(0x189)][_0x545de9(0x176)]),_0x232dcf=new _0x4ec632({'name':/^h[1-5]$/}),_0x2e407c=[];let _0x269497=!0x1;for(const _0x2b4f3f of _0x219168)_0x2b4f3f['is'](_0x545de9(0x134))&&_0x232dcf[_0x545de9(0x15c)](_0x2b4f3f)&&(_0x2e407c[_0x545de9(0x160)](_0x2b4f3f),'h1'==_0x2b4f3f[_0x545de9(0x17b)]&&(_0x269497=!0x0));if(_0x269497){for(const _0x22af65 of _0x2e407c)_0x118131[_0x545de9(0x151)]('h'+(parseInt(_0x22af65[_0x545de9(0x17b)][0x1])+0x1),_0x22af65);}}[_0x12104f(0x161)](){const _0x27d688=_0x12104f,{data:_0x436e71,editing:_0x2fe5c7}=this[_0x27d688(0x14f)],_0x4b090d=_0x436e71[_0x27d688(0x143)][_0x27d688(0x159)](_0x27d688(0x16f)),_0x157423=_0x436e71[_0x27d688(0x159)](_0x436e71[_0x27d688(0x17c)](_0x4b090d));return!!_0x2fe5c7[_0x27d688(0x189)][_0x27d688(0x12a)][_0x27d688(0x140)](_0x157423)[_0x27d688(0x13c)]('h1');}[_0x12104f(0x16a)](_0x7e4106){const _0x4db0ed=_0x12104f;return this[_0x4db0ed(0x14f)][_0x4db0ed(0x178)][_0x4db0ed(0x189)][_0x4db0ed(0x12a)][_0x4db0ed(0x13a)](this[_0x4db0ed(0x146)],_0x7e4106),this[_0x4db0ed(0x146)][_0x4db0ed(0x130)];}[_0x12104f(0x144)](_0x4b3fcb){const _0x131f85=_0x12104f,_0x108eca=_0x4b3fcb[_0x131f85(0x12f)]();return _0x108eca[_0x131f85(0x129)](_0x131f85(0x179))?_0x108eca[_0x131f85(0x136)](_0x131f85(0x138))?_0x108eca[_0x131f85(0x17f)](0x7,_0x108eca[_0x131f85(0x170)]-0x3):_0x108eca[_0x131f85(0x17f)](0x7):_0x4b3fcb;}}
|