@ckeditor/ckeditor5-ai 0.0.0-nightly-20240417.0 → 0.0.0-nightly-20240419.0
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 +6 -6
- package/package.json +4 -4
- package/src/adapters/aiadapter.js +1 -1
- package/src/adapters/aitextadapter.js +1 -1
- package/src/adapters/awstextadapter.js +1 -1
- package/src/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant.js +1 -1
- package/src/aiassistantediting.js +1 -1
- package/src/aiassistantui.js +1 -1
- package/src/index.js +1 -1
- package/src/ui/aiassistantcontroller.js +1 -1
- package/src/ui/dropdown/aicommandslistview.js +1 -1
- package/src/ui/dropdown/buttonlabelwithhighlightview.js +1 -1
- package/src/ui/dropdown/labelwithhighlightview.js +1 -1
- 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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-ai",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20240419.0",
|
|
4
4
|
"description": "AI Assistant feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
"framework"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"ckeditor5": "0.0.0-nightly-
|
|
27
|
-
"ckeditor5-collaboration": "0.0.0-nightly-
|
|
26
|
+
"ckeditor5": "0.0.0-nightly-20240419.0",
|
|
27
|
+
"ckeditor5-collaboration": "0.0.0-nightly-20240419.0",
|
|
28
28
|
"@aws-sdk/client-bedrock-runtime": "3.470.0",
|
|
29
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-
|
|
29
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20240419.0",
|
|
30
30
|
"lodash-es": "4.17.21"
|
|
31
31
|
},
|
|
32
32
|
"type": "module",
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x284071=_0x1e26;(function(_0x470108,_0xc96ac7){var _0x4be9b2=_0x1e26,_0x1435f6=_0x470108();while(!![]){try{var _0x1838fe=parseInt(_0x4be9b2(0xd7))/0x1+parseInt(_0x4be9b2(0xdc))/0x2+-parseInt(_0x4be9b2(0xdb))/0x3+-parseInt(_0x4be9b2(0xd8))/0x4*(-parseInt(_0x4be9b2(0xe1))/0x5)+parseInt(_0x4be9b2(0xdd))/0x6+-parseInt(_0x4be9b2(0xdf))/0x7+-parseInt(_0x4be9b2(0xe2))/0x8;if(_0x1838fe===_0xc96ac7)break;else _0x1435f6['push'](_0x1435f6['shift']());}catch(_0x58f212){_0x1435f6['push'](_0x1435f6['shift']());}}}(_0x2e04,0xa8f90));import{Plugin as _0x1c92ad}from'ckeditor5/src/core.js';import{CKEditorError as _0x28e6b9}from'ckeditor5/src/utils.js';export default class y extends _0x1c92ad{static get[_0x284071(0xd5)](){var _0x1ec2bb=_0x284071;return _0x1ec2bb(0xda);}[_0x284071(0xd9)](){var _0x3380f4=_0x284071;if(!this[_0x3380f4(0xde)])throw new _0x28e6b9(_0x3380f4(0xe0),null);}}export class AIRequestError extends Error{constructor(_0xc4db8e){var _0x1a2e1f=_0x284071;super(_0xc4db8e),this[_0x1a2e1f(0xd4)]=_0x1a2e1f(0xd6);}}function _0x1e26(_0x36c7a6,_0x219f95){var _0x2e0426=_0x2e04();return _0x1e26=function(_0x1e264f,_0x440390){_0x1e264f=_0x1e264f-0xd4;var _0x276f3c=_0x2e0426[_0x1e264f];return _0x276f3c;},_0x1e26(_0x36c7a6,_0x219f95);}function _0x2e04(){var _0x26747d=['afterInit','AIAdapter','38454yIqFBY','2032932WSUjzf','7391256cvpyHy','textAdapter','7279503nMgZJC','aiadapter-text-adapter-not-set','15cOXsqU','12949288vRpiIy','name','pluginName','AIRequestError','996615PcqGlq','158084pHKNQR'];_0x2e04=function(){return _0x26747d;};return _0x2e04();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x2f4d(){const _0x18f691=['assign','2256485SEfomm','2290602zRtdXr','object','name','plugins','AI_ERROR_GET_HEADERS','signal','error','get','abort','editor','86945ydECQX','requires','locale','32340960eRibrN','reject','abortController','12184ccdrGA','application/json','init','47092cvURQJ','catch','AbortError','236AkJNWi','resolve','aborted','82056aeRUOl','_prepareRequestParameters','makeRequest','5643jmvfvv','AI_ERROR_GET_PARAMETERS','44xvkpMV','aitextadapter-send-request-failed','textAdapter','_prepareRequestHeaders','sendRequest'];_0x2f4d=function(){return _0x18f691;};return _0x2f4d();}const _0x306117=_0x5125;(function(_0x21156c,_0x443ceb){const _0x2055c0=_0x5125,_0x2f54e0=_0x21156c();while(!![]){try{const _0x5ef40a=-parseInt(_0x2055c0(0xfc))/0x1+parseInt(_0x2055c0(0x107))/0x2*(-parseInt(_0x2055c0(0x102))/0x3)+parseInt(_0x2055c0(0xff))/0x4*(-parseInt(_0x2055c0(0xf3))/0x5)+-parseInt(_0x2055c0(0x10e))/0x6+parseInt(_0x2055c0(0x10d))/0x7+parseInt(_0x2055c0(0xf9))/0x8*(-parseInt(_0x2055c0(0x105))/0x9)+parseInt(_0x2055c0(0xf6))/0xa;if(_0x5ef40a===_0x443ceb)break;else _0x2f54e0['push'](_0x2f54e0['shift']());}catch(_0xdbc0a7){_0x2f54e0['push'](_0x2f54e0['shift']());}}}(_0x2f4d,0x850d0));import{Plugin as _0x3b147f}from'ckeditor5/src/core.js';import{CKEditorError as _0x77d9da}from'ckeditor5/src/utils.js';function _0x5125(_0x8f88c,_0xfadba3){const _0x2f4d65=_0x2f4d();return _0x5125=function(_0x512588,_0x3ef555){_0x512588=_0x512588-0xf0;let _0x1e4b03=_0x2f4d65[_0x512588];return _0x1e4b03;},_0x5125(_0x8f88c,_0xfadba3);}import{default as _0x47e2ba,AIRequestError as _0x4da70a}from'./aiadapter.js';import{getTranslation as _0x3fe2d3}from'../utils/common-translations.js';export default class P extends _0x3b147f{static get[_0x306117(0xf4)](){return[_0x47e2ba];}constructor(_0x3b2d0d){const _0x5d5cd8=_0x306117;super(_0x3b2d0d),this[_0x5d5cd8(0xf8)]=new AbortController();}[_0x306117(0xfb)](){const _0x31ab67=_0x306117;this[_0x31ab67(0xf2)][_0x31ab67(0x111)][_0x31ab67(0xf0)](_0x47e2ba)[_0x31ab67(0x109)]=this;}[_0x306117(0xf1)](){const _0x3612c0=_0x306117;this[_0x3612c0(0xf8)][_0x3612c0(0x113)][_0x3612c0(0x101)]||(this[_0x3612c0(0xf8)][_0x3612c0(0xf1)](),this[_0x3612c0(0xf8)]=new AbortController());}async[_0x306117(0x104)](_0x3a76e4){const _0x577787=_0x306117;return this[_0x577787(0x10b)](_0x3a76e4)[_0x577787(0xfd)](_0x482b77=>{const _0xaecb40=_0x577787;if(_0x482b77 instanceof _0x4da70a)return Promise[_0xaecb40(0xf7)](_0x482b77);if(_0xaecb40(0xfe)==_0x482b77[_0xaecb40(0x110)])return Promise[_0xaecb40(0x100)]();throw console[_0xaecb40(0x114)](_0x482b77),new _0x77d9da(_0xaecb40(0x108),null);});}async[_0x306117(0x10a)](_0x235781,_0x544ead){const _0x3c00aa=_0x306117,_0x139b94=this[_0x3c00aa(0xf2)][_0x3c00aa(0xf5)],_0x3ed982={'Content-Type':_0x3c00aa(0xfa)};if(_0x3c00aa(0x10f)==typeof _0x235781)Object[_0x3c00aa(0x10c)](_0x3ed982,_0x235781);else{if(_0x235781)try{const _0x1f3da9=await _0x235781(_0x544ead);Object[_0x3c00aa(0x10c)](_0x3ed982,_0x1f3da9);}catch(_0x5b67c3){return Promise[_0x3c00aa(0xf7)](new _0x4da70a(_0x3fe2d3(_0x139b94,_0x3c00aa(0x112))));}}return _0x3ed982;}async[_0x306117(0x103)](_0x502d45,_0x4c8b59){const _0x1f2ca8=_0x306117,_0x1d1a7a=this[_0x1f2ca8(0xf2)][_0x1f2ca8(0xf5)];if(_0x1f2ca8(0x10f)==typeof _0x502d45)return _0x502d45;try{return await _0x502d45(_0x4c8b59);}catch(_0x545e4e){return Promise[_0x1f2ca8(0xf7)](new _0x4da70a(_0x3fe2d3(_0x1d1a7a,_0x1f2ca8(0x106))));}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1ed7f4=_0x11f8;(function(_0x1549f7,_0x2ca1f6){const _0x2b710c=_0x11f8,_0x5e1006=_0x1549f7();while(!![]){try{const _0x430829=-parseInt(_0x2b710c(0x16e))/0x1+parseInt(_0x2b710c(0x15e))/0x2+parseInt(_0x2b710c(0x15d))/0x3*(-parseInt(_0x2b710c(0x17e))/0x4)+parseInt(_0x2b710c(0x163))/0x5*(parseInt(_0x2b710c(0x1a0))/0x6)+parseInt(_0x2b710c(0x153))/0x7+-parseInt(_0x2b710c(0x180))/0x8+parseInt(_0x2b710c(0x156))/0x9*(parseInt(_0x2b710c(0x19c))/0xa);if(_0x430829===_0x2ca1f6)break;else _0x5e1006['push'](_0x5e1006['shift']());}catch(_0x1caee5){_0x5e1006['push'](_0x5e1006['shift']());}}}(_0x21be,0xd83af));import{default as _0x4fd31}from'./aitextadapter.js';function _0x11f8(_0x2d55ba,_0x4fed7c){const _0x21bef5=_0x21be();return _0x11f8=function(_0x11f86e,_0x1189ee){_0x11f86e=_0x11f86e-0x153;let _0x771b9a=_0x21bef5[_0x11f86e];return _0x771b9a;},_0x11f8(_0x2d55ba,_0x4fed7c);}function _0x21be(){const _0x72df55=['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.','Human:\x0a','ai.aws.apiUrl','ai.aws.requestHeaders','parse','locale','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.','_requestHeaders','editor','_getGeneratedText','length','sendRequest','<<SYS>>\x0a','map','stringify','config','AI_ERROR_UNSUPPORTED_MODEL','generations','_prepareRequestHeaders','filter','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','get','_processProxyRequest','ai.aws.bedrockClientConfig','170cFZTzM','_apiUrl','bytes','utf8','18bsPIiE','AWSTextAdapter','_prepareRequestParameters','pluginName','chunk','test','2208913YwdTHl','json','_processAWSRequest','1160802FUiqAU','completion','abortController','POST','text','split','cohere.command','124314rRLfrx','70958Cxkdsa','_requestParameters','body','getReader','send','2807235rWYOPF','generation','ai21.j2','_bedrockClientConfig','bedrock-2023-05-31','anthropic.claude-v2','data','signal','ai.aws.requestParameters','anthropic.claude','join','1068838iHlapQ','\x0a\x0aAssistant:','_readStreamableResponse','\x0a[/INST]','decode','read','application/json','meta.llama','completions','toString','getModelFamily','from','\x0a<</SYS>>\x0a[INST]\x0a','utf-8','define','_readAsyncIterableResponse','52SurIRW','Instruction:\x0a','13878352bkhrko','_readStaticResponse','preparePrompt','resolve'];_0x21be=function(){return _0x72df55;};return _0x21be();}import{AIRequestError as _0x12c6f7}from'./aiadapter.js';import{BedrockRuntimeClient as _0x55d27a,InvokeModelCommand as _0x43f0f6,InvokeModelWithResponseStreamCommand as _0x241649}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x5f3784}from'../utils/common-translations.js';export default class J extends _0x4fd31{static get[_0x1ed7f4(0x1a3)](){const _0x1d7fc4=_0x1ed7f4;return _0x1d7fc4(0x1a1);}constructor(_0x42fbdd){const _0x18594b=_0x1ed7f4;super(_0x42fbdd),_0x42fbdd[_0x18594b(0x193)][_0x18594b(0x199)](_0x18594b(0x16b))||_0x42fbdd[_0x18594b(0x193)][_0x18594b(0x17c)](_0x18594b(0x16b),{'model':_0x18594b(0x168),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x18594b(0x167),'stream':!0x0}),this[_0x18594b(0x19d)]=_0x42fbdd[_0x18594b(0x193)][_0x18594b(0x199)](_0x18594b(0x186)),this[_0x18594b(0x166)]=_0x42fbdd[_0x18594b(0x193)][_0x18594b(0x199)](_0x18594b(0x19b)),this[_0x18594b(0x18b)]=_0x42fbdd[_0x18594b(0x193)][_0x18594b(0x199)](_0x18594b(0x187)),this[_0x18594b(0x15f)]=_0x42fbdd[_0x18594b(0x193)][_0x18594b(0x199)](_0x18594b(0x16b));}async[_0x1ed7f4(0x18f)]({query:_0x4bec2c,context:_0x1e6cf6,onData:_0x475be9,actionId:_0x189520}){const _0x1b2c5b=_0x1ed7f4,{model:_0x2ae1cf,stream:_0x287ae1,..._0x19aad5}=await this[_0x1b2c5b(0x1a2)](this[_0x1b2c5b(0x15f)],_0x189520),_0x10e42b={'prompt':await this[_0x1b2c5b(0x182)](_0x4bec2c,_0x1e6cf6,_0x2ae1cf,_0x189520),..._0x19aad5};this[_0x1b2c5b(0x19d)]?await this[_0x1b2c5b(0x19a)](_0x10e42b,_0x2ae1cf,_0x287ae1,_0x475be9,_0x189520):await this[_0x1b2c5b(0x155)](_0x10e42b,_0x2ae1cf,_0x287ae1,_0x475be9);}async[_0x1ed7f4(0x182)](_0x32aca0,_0x57f7e5,_0x44b914,_0x5eae72){const _0x4ff636=_0x1ed7f4;let _0x24fa35,_0x2385ad;return _0x57f7e5?(_0x24fa35=_0x4ff636(0x184),_0x2385ad=_0x4ff636(0x17f)+_0x32aca0+_0x4ff636(0x198)+_0x57f7e5):(_0x24fa35=_0x4ff636(0x18a),_0x2385ad=_0x32aca0),_0x4ff636(0x175)==this[_0x4ff636(0x178)](_0x44b914)?_0x4ff636(0x190)+_0x24fa35+_0x4ff636(0x17a)+_0x2385ad+_0x4ff636(0x171):_0x4ff636(0x185)+_0x24fa35+'\x0a'+_0x2385ad+_0x4ff636(0x16f);}[_0x1ed7f4(0x178)](_0xc69ad8){const _0x49b86f=_0x1ed7f4;if(/^anthropic\.claude/[_0x49b86f(0x1a5)](_0xc69ad8))return _0x49b86f(0x16c);if(/^ai21\.j2/[_0x49b86f(0x1a5)](_0xc69ad8))return _0x49b86f(0x165);if(/^cohere\.command/[_0x49b86f(0x1a5)](_0xc69ad8))return _0x49b86f(0x15c);if(/^meta\.llama/[_0x49b86f(0x1a5)](_0xc69ad8))return _0x49b86f(0x175);throw new _0x12c6f7(_0x5f3784(this[_0x49b86f(0x18c)][_0x49b86f(0x189)],_0x49b86f(0x194),_0xc69ad8));}async[_0x1ed7f4(0x19a)](_0x462a61,_0x312824,_0x2c477f,_0x119749,_0x327351){const _0x2ba62d=_0x1ed7f4,_0x3bc241={'method':_0x2ba62d(0x159),'headers':await this[_0x2ba62d(0x196)](this[_0x2ba62d(0x18b)],_0x327351),'body':JSON[_0x2ba62d(0x192)]({..._0x462a61,'model':_0x312824,'stream':_0x2c477f}),'signal':this[_0x2ba62d(0x158)][_0x2ba62d(0x16a)]},_0x303076=await fetch(this[_0x2ba62d(0x19d)],_0x3bc241);_0x2c477f?await this[_0x2ba62d(0x170)](_0x303076,_0x312824,_0x119749):await this[_0x2ba62d(0x181)](_0x303076,_0x312824,_0x119749);}async[_0x1ed7f4(0x155)](_0x597d6d,_0x145976,_0x4aeb09,_0xd934ab){const _0x5f22a3=_0x1ed7f4,_0x29e56d=new _0x55d27a(this[_0x5f22a3(0x166)]),_0xe7bfdc={'body':JSON[_0x5f22a3(0x192)](_0x597d6d),'contentType':_0x5f22a3(0x174),'accept':_0x5f22a3(0x174),'modelId':_0x145976};let _0x5ade69;if(_0x4aeb09){const _0x272615=new _0x241649(_0xe7bfdc);_0x5ade69=await _0x29e56d[_0x5f22a3(0x162)](_0x272615,{'abortSignal':this[_0x5f22a3(0x158)][_0x5f22a3(0x16a)]}),await this[_0x5f22a3(0x17d)](_0x5ade69,_0x145976,_0xd934ab);}else{const _0x7f657e=new _0x43f0f6(_0xe7bfdc);_0x5ade69=await _0x29e56d[_0x5f22a3(0x162)](_0x7f657e,{'abortSignal':this[_0x5f22a3(0x158)][_0x5f22a3(0x16a)]}),await this[_0x5f22a3(0x181)](_0x5ade69,_0x145976,_0xd934ab);}}async[_0x1ed7f4(0x17d)](_0x3f6a41,_0x6d300d,_0x2e5f4a){const _0x14c3e3=_0x1ed7f4,_0x58cfb1=_0x3f6a41[_0x14c3e3(0x160)],_0x25152d=new TextDecoder(_0x14c3e3(0x17b));let _0x313263='';for await(const _0x2d615b of _0x58cfb1)if(_0x2d615b[_0x14c3e3(0x1a4)]){const _0x4ad62d=_0x25152d[_0x14c3e3(0x172)](_0x2d615b[_0x14c3e3(0x1a4)][_0x14c3e3(0x19e)]),_0x38ae48=JSON[_0x14c3e3(0x188)](_0x4ad62d);_0x313263+=this[_0x14c3e3(0x18d)](_0x38ae48,_0x6d300d),_0x2e5f4a(_0x313263);}return Promise[_0x14c3e3(0x183)]();}async[_0x1ed7f4(0x170)](_0x1af8b4,_0x59f710,_0x49141a){const _0x4d5232=_0x1ed7f4,_0x2dbf7e=_0x1af8b4[_0x4d5232(0x160)],_0xd183ad=new TextDecoder(_0x4d5232(0x17b)),_0x181296=_0x2dbf7e[_0x4d5232(0x161)]();let _0x1ae618='',_0x59414e='',_0x33f0d9=!0x1;for(;!_0x33f0d9;){const {done:_0x540f1b,value:_0x33e9ee}=await _0x181296[_0x4d5232(0x173)]();if(_0x33f0d9=_0x540f1b,_0x33f0d9)break;const _0x30f000=(_0x1ae618+_0xd183ad[_0x4d5232(0x172)](_0x33e9ee))[_0x4d5232(0x15b)]('\x0a')[_0x4d5232(0x191)](_0x311128=>{const _0x4c2640=_0x4d5232;try{return _0x1ae618='',JSON[_0x4c2640(0x188)](_0x311128);}catch(_0x44abe4){return _0x1ae618=_0x311128,null;}})[_0x4d5232(0x197)](_0x424193=>null!==_0x424193);_0x30f000[_0x4d5232(0x18e)]&&(_0x59414e+=_0x30f000[_0x4d5232(0x191)](_0x598e86=>this[_0x4d5232(0x18d)](_0x598e86,_0x59f710))[_0x4d5232(0x16d)](''),_0x49141a(_0x59414e));}return Promise[_0x4d5232(0x183)]();}async[_0x1ed7f4(0x181)](_0x52e12a,_0x46b812,_0x1ecead){const _0x3a4a0b=_0x1ed7f4;let _0x7d456e;return _0x7d456e=_0x52e12a instanceof Response?await _0x52e12a[_0x3a4a0b(0x154)]():JSON[_0x3a4a0b(0x188)](Buffer[_0x3a4a0b(0x179)](_0x52e12a[_0x3a4a0b(0x160)])[_0x3a4a0b(0x177)](_0x3a4a0b(0x19f))),(_0x1ecead(this[_0x3a4a0b(0x18d)](_0x7d456e,_0x46b812)),Promise[_0x3a4a0b(0x183)]());}[_0x1ed7f4(0x18d)](_0xac026d,_0x10b435){const _0xa4a0bf=_0x1ed7f4;switch(this[_0xa4a0bf(0x178)](_0x10b435)){case _0xa4a0bf(0x16c):return _0xac026d[_0xa4a0bf(0x157)];case _0xa4a0bf(0x165):return _0xac026d[_0xa4a0bf(0x176)][0x0][_0xa4a0bf(0x169)][_0xa4a0bf(0x15a)];case _0xa4a0bf(0x15c):return _0xac026d[_0xa4a0bf(0x195)][0x0][_0xa4a0bf(0x15a)];case _0xa4a0bf(0x175):return _0xac026d[_0xa4a0bf(0x164)];}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x589a66=_0x3f02;(function(_0x45f2af,_0x39f557){const _0x8c7490=_0x3f02,_0x4620b7=_0x45f2af();while(!![]){try{const _0x1cee48=parseInt(_0x8c7490(0xa1))/0x1+parseInt(_0x8c7490(0xdd))/0x2*(-parseInt(_0x8c7490(0xad))/0x3)+-parseInt(_0x8c7490(0xa3))/0x4*(parseInt(_0x8c7490(0xc6))/0x5)+-parseInt(_0x8c7490(0xd3))/0x6+-parseInt(_0x8c7490(0xb2))/0x7+-parseInt(_0x8c7490(0x9d))/0x8+-parseInt(_0x8c7490(0xcd))/0x9*(-parseInt(_0x8c7490(0xd0))/0xa);if(_0x1cee48===_0x39f557)break;else _0x4620b7['push'](_0x4620b7['shift']());}catch(_0x2abeb5){_0x4620b7['push'](_0x4620b7['shift']());}}}(_0x2fd0,0x4c34c));import{default as _0x145a31}from'./aitextadapter.js';import{AIRequestError as _0x316979}from'./aiadapter.js';function _0x2fd0(){const _0x4b5bc3=['config','resolve','abortController','stream','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.','_requestParameters','_readStreamableResponse','replace','589335MkaMRe','gpt-3.5-turbo','get','text','editor','OpenAITextAdapter','_prepareRequestParameters','6472737dkbkfS','json','_readStaticResponse','10cesDzr','user','ai.openAI.requestHeaders','935916mLIENp','filter','AI_ERROR_MODERATION','context_length_exceeded','decode','includes','read','reject','body','data:\x20','4742eOwVOX','sendRequest','delta','parse','AI_ERROR_CONTEXT_LENGTH','POST','214080PytLZe','_cleanUpData','_prepareRequestHeaders','length','461982BHjzhl','content','20GQPmmv','_isBufferIncomplete','stringify','[DONE]','Moderation','Instruction:\x0a','locale','ai.openAI.requestParameters','https://api.openai.com/v1/chat/completions','ai.openAI.apiUrl','9tFgJUT','define','choices','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','map','628887DlTzjT','system','getReader','pluginName','prepareMessages','split','signal','message','_requestHeaders','join','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.','_apiUrl'];_0x2fd0=function(){return _0x4b5bc3;};return _0x2fd0();}function _0x3f02(_0x4ff593,_0x1032f1){const _0x2fd0b4=_0x2fd0();return _0x3f02=function(_0x3f02f1,_0x10f53e){_0x3f02f1=_0x3f02f1-0x9c;let _0x2a08d4=_0x2fd0b4[_0x3f02f1];return _0x2a08d4;},_0x3f02(_0x4ff593,_0x1032f1);}import{getTranslation as _0x23d101}from'../utils/common-translations.js';export default class F extends _0x145a31{static get[_0x589a66(0xb5)](){const _0x458c7b=_0x589a66;return _0x458c7b(0xcb);}constructor(_0x4709ea){const _0x36e584=_0x589a66;super(_0x4709ea),_0x4709ea[_0x36e584(0xbe)][_0x36e584(0xae)](_0x36e584(0xac),_0x36e584(0xab)),_0x4709ea[_0x36e584(0xbe)][_0x36e584(0xc8)](_0x36e584(0xaa))||_0x4709ea[_0x36e584(0xbe)][_0x36e584(0xae)](_0x36e584(0xaa),{'model':_0x36e584(0xc7),'max_tokens':0x7d0,'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x36e584(0xbd)]=_0x4709ea[_0x36e584(0xbe)][_0x36e584(0xc8)](_0x36e584(0xac)),this[_0x36e584(0xba)]=_0x4709ea[_0x36e584(0xbe)][_0x36e584(0xc8)](_0x36e584(0xd2))||{},this[_0x36e584(0xc3)]=_0x4709ea[_0x36e584(0xbe)][_0x36e584(0xc8)](_0x36e584(0xaa));}async[_0x589a66(0xde)]({query:_0x34676a,context:_0x184809,onData:_0x1be902,actionId:_0x36d1be}){const _0x53777c=_0x589a66,_0x33eaab=this[_0x53777c(0xca)][_0x53777c(0xa9)],_0x4c4c39=await this[_0x53777c(0xb6)](_0x34676a,_0x184809,_0x36d1be),_0xe443cc=await this[_0x53777c(0x9f)](this[_0x53777c(0xba)],_0x36d1be),_0x183b84=await this[_0x53777c(0xcc)](this[_0x53777c(0xc3)],_0x36d1be),_0x3eb49d={'messages':_0x4c4c39,..._0x183b84},_0x374428={'method':_0x53777c(0x9c),'headers':_0xe443cc,'body':JSON[_0x53777c(0xa5)](_0x3eb49d),'signal':this[_0x53777c(0xc0)][_0x53777c(0xb8)]},_0x1920f0=await fetch(this[_0x53777c(0xbd)],_0x374428);if(_0x1920f0['ok'])return _0x183b84[_0x53777c(0xc1)]?await this[_0x53777c(0xc4)](_0x1920f0,_0x1be902):await this[_0x53777c(0xcf)](_0x1920f0,_0x1be902),Promise[_0x53777c(0xbf)]();{const _0x45fc74=await _0x1920f0[_0x53777c(0xc9)]();return _0x45fc74[_0x53777c(0xd8)](_0x53777c(0xd6))?Promise[_0x53777c(0xda)](new _0x316979(_0x23d101(_0x33eaab,_0x53777c(0xe1)))):_0x45fc74[_0x53777c(0xd8)](_0x53777c(0xa7))?Promise[_0x53777c(0xda)](new _0x316979(_0x23d101(_0x33eaab,_0x53777c(0xd5)))):Promise[_0x53777c(0xda)](new Error(_0x45fc74));}}async[_0x589a66(0xb6)](_0x1f667c,_0x33a8e7,_0x1bd994){const _0x348dba=_0x589a66;let _0xeb5dcf,_0x298d6e;return _0x33a8e7?(_0xeb5dcf=_0x348dba(0xc2),_0x298d6e=_0x348dba(0xa8)+_0x1f667c+_0x348dba(0xb0)+_0x33a8e7):(_0xeb5dcf=_0x348dba(0xbc),_0x298d6e=_0x1f667c),[{'role':_0x348dba(0xb3),'content':_0xeb5dcf},{'role':_0x348dba(0xd1),'content':_0x298d6e}];}async[_0x589a66(0xc4)](_0x496771,_0x1f045e){const _0x3b782f=_0x589a66,_0x2e28e3=_0x496771[_0x3b782f(0xdb)][_0x3b782f(0xb4)](),_0x3b26bc=new TextDecoder();let _0x470db3='',_0x166225='',_0x1bde13='',_0x545f31=!0x1;for(;!_0x545f31;){const {done:_0x2e499c,value:_0x42a94f}=await _0x2e28e3[_0x3b782f(0xd9)](),_0x45e3f1=_0x470db3+_0x3b26bc[_0x3b782f(0xd7)](_0x42a94f);let _0x12f473='';_0x545f31=_0x2e499c;try{_0x12f473=this[_0x3b782f(0x9e)](_0x45e3f1),_0x470db3='';}catch(_0x4e9658){_0x470db3=_0x45e3f1;continue;}_0x166225+=_0x12f473,!_0x545f31&&this[_0x3b782f(0xa4)](_0x166225)||_0x166225&&(_0x1bde13+=_0x166225,_0x166225='',_0x1f045e(_0x1bde13));}return Promise[_0x3b782f(0xbf)]();}async[_0x589a66(0xcf)](_0x43b67e,_0x50f824){const _0x20e63d=_0x589a66;return _0x50f824((await _0x43b67e[_0x20e63d(0xce)]())[_0x20e63d(0xaf)][0x0][_0x20e63d(0xb9)][_0x20e63d(0xa2)]),Promise[_0x20e63d(0xbf)]();}[_0x589a66(0xa4)](_0x27f205){const _0x4383b8=_0x589a66,_0x1cab53=_0x27f205[_0x4383b8(0xb7)]('<')[_0x4383b8(0xa0)]!==_0x27f205[_0x4383b8(0xb7)]('>')[_0x4383b8(0xa0)],_0x59f181=_0x27f205[_0x4383b8(0xa0)]<0x1e;return _0x1cab53&&_0x59f181;}[_0x589a66(0x9e)](_0x67ba76){const _0x385a4d=_0x589a66;return _0x67ba76[_0x385a4d(0xb7)](/\n(?![^{]*\})/g)[_0x385a4d(0xb1)](_0x11e058=>_0x11e058[_0x385a4d(0xc5)](_0x385a4d(0xdc),''))[_0x385a4d(0xd4)](_0x256047=>_0x256047&&_0x256047[_0x385a4d(0xa0)]>0x0&&_0x385a4d(0xa6)!==_0x256047)[_0x385a4d(0xb1)](_0x3009e1=>{const _0x4c7913=_0x385a4d,{choices:_0x328090}=JSON[_0x4c7913(0xe0)](_0x3009e1);if(_0x328090[0x0]&&_0x328090[0x0][_0x4c7913(0xdf)]&&_0x328090[0x0][_0x4c7913(0xdf)][_0x4c7913(0xa2)])return _0x328090[0x0][_0x4c7913(0xdf)][_0x4c7913(0xa2)];})[_0x385a4d(0xd4)](_0x247db1=>_0x247db1)[_0x385a4d(0xbb)]('');}}
|
package/src/aiassistant.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x7947(){const _0x4b7d46=['Summarize','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','Change\x20style','licenseKey','ai-invalid-license-key','continue','translatePortuguese','Generate\x20from\x20selection','Legal','Change\x20tone','config','ai.aiAssistant.commands','Translate\x20to\x20%0','Simplified\x20Chinese','push','937879jwtnkr','Translate\x20the\x20content\x20to\x20Spanish\x20language.','init','11OPKdpd','27272400uAMUuF','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','2274PxPkjY','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Poetic','Translate\x20the\x20content\x20to\x20French\x20language.','improveWriting','casual','editor','changeTone','aiLicenseKeyTrial','Casual','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','translateArabic','concat','Journalism','Hindi','Spanish','Business','2289216ZdILnx','18851BbSFPM','makeLonger','journalism','Friendly','Continue','Professional','187320LrqyQt','Simplify\x20language','Improve\x20writing','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','ai.aiAssistant.extraCommandGroups','editOrReview','translateHindi','commands','pluginName','Direct','direct','aiLicenseKeyTrialLimit:operations','forEach','Arabic','find','groupId','aiLicenseKeyValid','You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20ai\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','includes','changeStyle','Translate\x20the\x20content\x20to\x20German\x20language.','English','legal','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','get','translateChinese','Make\x20shorter','Edit\x20or\x20review','18auOxDE','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','French','friendly','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','translate','professional','define','confident','ai.aiAssistant.removeCommands','aiLicenseKeyInvalid','simplifyLanguage','Confident','summarize','info','requires','Translate','ai-trial-license-key-reached-limit-changes','translateGerman','business','poetic','Translate\x20the\x20content\x20to\x20English\x20language.','generate','Translate\x20the\x20content\x20to\x20Hindi\x20language.','1385340qNKydY','translateFrench','5419545ONelKT','Translate\x20the\x20content\x20to\x20Arabic\x20language.','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','locale','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','German','destroy','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','_licenseKeyCheckInterval','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','makeShorter','AIAssistant','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','set','Portuguese','2YwnlHA','translateEnglish','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','translateSpanish','Make\x20longer','filter'];_0x7947=function(){return _0x4b7d46;};return _0x7947();}const _0x484715=_0x4f32;(function(_0x4621c5,_0x2ecc9d){const _0x4d10f9=_0x4f32,_0x2029db=_0x4621c5();while(!![]){try{const _0x3bf061=parseInt(_0x4d10f9(0x9c))/0x1+-parseInt(_0x4d10f9(0x87))/0x2*(parseInt(_0x4d10f9(0xf1))/0x3)+-parseInt(_0x4d10f9(0xb3))/0x4+-parseInt(_0x4d10f9(0xf3))/0x5+-parseInt(_0x4d10f9(0xa2))/0x6*(parseInt(_0x4d10f9(0xb4))/0x7)+parseInt(_0x4d10f9(0xba))/0x8*(parseInt(_0x4d10f9(0xd9))/0x9)+parseInt(_0x4d10f9(0xa0))/0xa*(parseInt(_0x4d10f9(0x9f))/0xb);if(_0x3bf061===_0x2ecc9d)break;else _0x2029db['push'](_0x2029db['shift']());}catch(_0x4c9e05){_0x2029db['push'](_0x2029db['shift']());}}}(_0x7947,0x8bf7d));function _0x4f32(_0xea2dd2,_0x10075e){const _0x794789=_0x7947();return _0x4f32=function(_0x4f326f,_0x4894da){_0x4f326f=_0x4f326f-0x84;let _0x599386=_0x794789[_0x4f326f];return _0x599386;},_0x4f32(_0xea2dd2,_0x10075e);}import{CKEditorError as _0x505917}from'ckeditor5/src/utils.js';import{Plugin as _0x13c53a}from'ckeditor5/src/core.js';import _0x111ebf from'./aiassistantui.js';import _0x3e3e72 from'./aiassistantediting.js';import{getTranslation as _0x29025e}from'./utils/common-translations.js';export default class r extends _0x13c53a{static get[_0x484715(0xe8)](){return[_0x111ebf,_0x3e3e72];}static get[_0x484715(0xc2)](){const _0x1e1c95=_0x484715;return _0x1e1c95(0xfe);}constructor(_0x2be393){const _0x16d034=_0x484715;super(_0x2be393);const _0x4ece92=_0x2be393[_0x16d034(0x97)];_0x4ece92[_0x16d034(0xe0)](_0x16d034(0x98),getDefaultCommands(_0x2be393[_0x16d034(0xf6)])),_0x4ece92[_0x16d034(0xe0)](_0x16d034(0xbe),[]),_0x4ece92[_0x16d034(0xe0)](_0x16d034(0xe2),[]);const _0x1e7916=_0x4ece92[_0x16d034(0xd5)](_0x16d034(0x98)),_0x37d632=_0x4ece92[_0x16d034(0xd5)](_0x16d034(0xbe)),_0x33996e=_0x4ece92[_0x16d034(0xd5)](_0x16d034(0xe2));_0x37d632[_0x16d034(0xc6)](_0x510da0=>{const _0x20ed28=_0x16d034,_0x435922=_0x1e7916[_0x20ed28(0xc8)](_0x33b3d7=>_0x33b3d7[_0x20ed28(0xc9)]===_0x510da0[_0x20ed28(0xc9)]);_0x435922?_0x435922[_0x20ed28(0xc1)]=_0x435922[_0x20ed28(0xc1)][_0x20ed28(0xae)](_0x510da0[_0x20ed28(0xc1)]):_0x1e7916[_0x20ed28(0x9b)](_0x510da0);}),_0x1e7916[_0x16d034(0xc6)](_0x53ae18=>{const _0x2e076d=_0x16d034;_0x53ae18[_0x2e076d(0xc1)]=_0x53ae18[_0x2e076d(0xc1)][_0x2e076d(0x8c)](_0x874bcb=>!_0x33996e[_0x2e076d(0xce)](_0x874bcb['id']));}),_0x4ece92[_0x16d034(0x85)](_0x16d034(0x98),_0x1e7916);}[_0x484715(0x9e)](){const _0x553d30=_0x484715,_0x13adc0=this[_0x553d30(0xa8)];this[_0x553d30(0x90)]=_0x13adc0[_0x553d30(0x97)][_0x553d30(0xd5)](_0x553d30(0x90)),this[_0x553d30(0xfb)]=setInterval(()=>{const _0x311fb9=_0x553d30;let _0x172466;for(const _0x4e6acd in _0x13adc0){const _0x2d0f92=_0x4e6acd,_0x400521=_0x13adc0[_0x2d0f92];if(_0x311fb9(0xaa)===_0x400521||_0x311fb9(0xe3)===_0x400521||_0x311fb9(0xca)===_0x400521||_0x311fb9(0xc5)===_0x400521){delete _0x13adc0[_0x2d0f92],_0x172466=_0x400521;break;}}if(_0x311fb9(0xe3)===_0x172466)throw clearInterval(this[_0x311fb9(0xfb)]),new _0x505917(_0x311fb9(0x91),null);if(_0x311fb9(0xaa)===_0x172466&&console[_0x311fb9(0xe7)](_0x311fb9(0xcb)),_0x311fb9(0xc5)===_0x172466)throw clearInterval(this[_0x311fb9(0xfb)]),new _0x505917(_0x311fb9(0xea),null);_0x311fb9(0xca)===_0x172466&&clearInterval(this[_0x311fb9(0xfb)]);},0x3e8);}[_0x484715(0xf9)](){const _0x314f76=_0x484715;this[_0x314f76(0xfb)]&&clearInterval(this[_0x314f76(0xfb)]);}}export function getDefaultCommands(_0xcadfc5){const _0x1692d3=_0x484715;return[{'groupId':_0x1692d3(0xbf),'groupLabel':_0x29025e(_0xcadfc5,_0x1692d3(0xd8)),'commands':[{'id':_0x1692d3(0xa6),'label':_0x29025e(_0xcadfc5,_0x1692d3(0xbc)),'prompt':_0x1692d3(0xa3)},{'id':_0x1692d3(0xfd),'label':_0x29025e(_0xcadfc5,_0x1692d3(0xd7)),'prompt':_0x1692d3(0xbd)},{'id':_0x1692d3(0xb5),'label':_0x29025e(_0xcadfc5,_0x1692d3(0x8b)),'prompt':_0x1692d3(0xd3)},{'id':_0x1692d3(0xe4),'label':_0x29025e(_0xcadfc5,_0x1692d3(0xbb)),'prompt':_0x1692d3(0xa1)}]},{'groupId':_0x1692d3(0xef),'groupLabel':_0x29025e(_0xcadfc5,_0x1692d3(0x94)),'commands':[{'id':_0x1692d3(0xe6),'label':_0x29025e(_0xcadfc5,_0x1692d3(0x8d)),'prompt':_0x1692d3(0x8e)},{'id':_0x1692d3(0x92),'label':_0x29025e(_0xcadfc5,_0x1692d3(0xb8)),'prompt':_0x1692d3(0xac)}]},{'groupId':_0x1692d3(0xa9),'groupLabel':_0x29025e(_0xcadfc5,_0x1692d3(0x96)),'commands':[{'id':_0x1692d3(0xdf),'label':_0x29025e(_0xcadfc5,_0x1692d3(0xb9)),'prompt':_0x1692d3(0xf5)},{'id':_0x1692d3(0xa7),'label':_0x29025e(_0xcadfc5,_0x1692d3(0xab)),'prompt':_0x1692d3(0xda)},{'id':_0x1692d3(0xc4),'label':_0x29025e(_0xcadfc5,_0x1692d3(0xc3)),'prompt':_0x1692d3(0xfa)},{'id':_0x1692d3(0xe1),'label':_0x29025e(_0xcadfc5,_0x1692d3(0xe5)),'prompt':_0x1692d3(0xcd)},{'id':_0x1692d3(0xdc),'label':_0x29025e(_0xcadfc5,_0x1692d3(0xb7)),'prompt':_0x1692d3(0x84)}]},{'groupId':_0x1692d3(0xcf),'groupLabel':_0x29025e(_0xcadfc5,_0x1692d3(0x8f)),'commands':[{'id':_0x1692d3(0xec),'label':_0x29025e(_0xcadfc5,_0x1692d3(0xb2)),'prompt':_0x1692d3(0xfc)},{'id':_0x1692d3(0xd2),'label':_0x29025e(_0xcadfc5,_0x1692d3(0x95)),'prompt':_0x1692d3(0xd4)},{'id':_0x1692d3(0xb6),'label':_0x29025e(_0xcadfc5,_0x1692d3(0xaf)),'prompt':_0x1692d3(0x89)},{'id':_0x1692d3(0xed),'label':_0x29025e(_0xcadfc5,_0x1692d3(0xa4)),'prompt':_0x1692d3(0xcc)}]},{'groupId':_0x1692d3(0xde),'groupLabel':_0x29025e(_0xcadfc5,_0x1692d3(0xe9)),'commands':[{'id':_0x1692d3(0x88),'label':_0x29025e(_0xcadfc5,_0x1692d3(0x99),[_0x29025e(_0xcadfc5,_0x1692d3(0xd1))]),'prompt':_0x1692d3(0xee)},{'id':_0x1692d3(0x8a),'label':_0x29025e(_0xcadfc5,_0x1692d3(0x99),[_0x29025e(_0xcadfc5,_0x1692d3(0xb1))]),'prompt':_0x1692d3(0x9d)},{'id':_0x1692d3(0x93),'label':_0x29025e(_0xcadfc5,_0x1692d3(0x99),[_0x29025e(_0xcadfc5,_0x1692d3(0x86))]),'prompt':_0x1692d3(0xdd)},{'id':_0x1692d3(0xeb),'label':_0x29025e(_0xcadfc5,_0x1692d3(0x99),[_0x29025e(_0xcadfc5,_0x1692d3(0xf8))]),'prompt':_0x1692d3(0xd0)},{'id':_0x1692d3(0xf2),'label':_0x29025e(_0xcadfc5,_0x1692d3(0x99),[_0x29025e(_0xcadfc5,_0x1692d3(0xdb))]),'prompt':_0x1692d3(0xa5)},{'id':_0x1692d3(0xd6),'label':_0x29025e(_0xcadfc5,_0x1692d3(0x99),[_0x29025e(_0xcadfc5,_0x1692d3(0x9a))]),'prompt':_0x1692d3(0xf7)},{'id':_0x1692d3(0xc0),'label':_0x29025e(_0xcadfc5,_0x1692d3(0x99),[_0x29025e(_0xcadfc5,_0x1692d3(0xb0))]),'prompt':_0x1692d3(0xf0)},{'id':_0x1692d3(0xad),'label':_0x29025e(_0xcadfc5,_0x1692d3(0x99),[_0x29025e(_0xcadfc5,_0x1692d3(0xc7))]),'prompt':_0x1692d3(0xf4)}]}];}
|
|
23
|
+
const _0x58a5ff=_0x27ac;(function(_0x4050ee,_0x359747){const _0x286320=_0x27ac,_0x6e6426=_0x4050ee();while(!![]){try{const _0x2a214a=-parseInt(_0x286320(0x22c))/0x1+-parseInt(_0x286320(0x1f5))/0x2+parseInt(_0x286320(0x1f3))/0x3*(parseInt(_0x286320(0x239))/0x4)+parseInt(_0x286320(0x22e))/0x5+parseInt(_0x286320(0x20e))/0x6*(parseInt(_0x286320(0x21d))/0x7)+parseInt(_0x286320(0x225))/0x8*(parseInt(_0x286320(0x232))/0x9)+-parseInt(_0x286320(0x1de))/0xa*(parseInt(_0x286320(0x1fb))/0xb);if(_0x2a214a===_0x359747)break;else _0x6e6426['push'](_0x6e6426['shift']());}catch(_0x17797f){_0x6e6426['push'](_0x6e6426['shift']());}}}(_0x5ae8,0xa762b));function _0x27ac(_0x2c603f,_0x22df28){const _0x5ae8e8=_0x5ae8();return _0x27ac=function(_0x27ac1b,_0x3eafc1){_0x27ac1b=_0x27ac1b-0x1d2;let _0x1c8a83=_0x5ae8e8[_0x27ac1b];return _0x1c8a83;},_0x27ac(_0x2c603f,_0x22df28);}function _0x5ae8(){const _0x2a3fb5=['Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','translateChinese','requires','continue','Professional','find','French','20gQFwfk','aiLicenseKeyValid','translateArabic','aiLicenseKeyTrial','translateSpanish','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','Direct','ai-invalid-license-key','Translate','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','Poetic','legal','Translate\x20the\x20content\x20to\x20Arabic\x20language.','confident','Simplified\x20Chinese','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','English','Legal','info','aiLicenseKeyTrialLimit:operations','66HVeIaU','Journalism','732524TqCDeI','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','Translate\x20the\x20content\x20to\x20English\x20language.','Change\x20style','translateEnglish','business','1111286flrKsN','friendly','Portuguese','translatePortuguese','Translate\x20the\x20content\x20to\x20Hindi\x20language.','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','ai.aiAssistant.commands','pluginName','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','config','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Confident','Hindi','aiLicenseKeyInvalid','Translate\x20the\x20content\x20to\x20French\x20language.','changeTone','Generate\x20from\x20selection','simplifyLanguage','translateGerman','44502fAtnNe','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','professional','improveWriting','Improve\x20writing','Translate\x20the\x20content\x20to\x20German\x20language.','German','filter','commands','editor','makeLonger','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','editOrReview','concat','destroy','301YNoINv','poetic','licenseKey','_licenseKeyCheckInterval','ai.aiAssistant.extraCommandGroups','push','Translate\x20the\x20content\x20to\x20Spanish\x20language.','generate','711888LZJHQj','You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20ai\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.','forEach','AIAssistant','changeStyle','Make\x20longer','locale','547697CzxdPd','get','673045VZlNrR','define','Change\x20tone','translate','126ewJbIv','ai-trial-license-key-reached-limit-changes','Business','translateHindi','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','init','18596pVILXM','casual','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Casual','Simplify\x20language','Continue','Translate\x20to\x20%0','translateFrench','Make\x20shorter','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','Summarize','Friendly','direct','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','groupId','Edit\x20or\x20review','Arabic','Spanish','summarize','makeShorter','journalism','includes','ai.aiAssistant.removeCommands','set'];_0x5ae8=function(){return _0x2a3fb5;};return _0x5ae8();}import{CKEditorError as _0x1b2877}from'ckeditor5/src/utils.js';import{Plugin as _0x1cf647}from'ckeditor5/src/core.js';import _0x1fb744 from'./aiassistantui.js';import _0x3bf569 from'./aiassistantediting.js';import{getTranslation as _0x2c6bb5}from'./utils/common-translations.js';export default class r extends _0x1cf647{static get[_0x58a5ff(0x1d9)](){return[_0x1fb744,_0x3bf569];}static get[_0x58a5ff(0x202)](){const _0x495352=_0x58a5ff;return _0x495352(0x228);}constructor(_0x16d51c){const _0x472e11=_0x58a5ff;super(_0x16d51c);const _0x105196=_0x16d51c[_0x472e11(0x204)];_0x105196[_0x472e11(0x22f)](_0x472e11(0x201),getDefaultCommands(_0x16d51c[_0x472e11(0x22b)])),_0x105196[_0x472e11(0x22f)](_0x472e11(0x221),[]),_0x105196[_0x472e11(0x22f)](_0x472e11(0x1d5),[]);const _0x451ba4=_0x105196[_0x472e11(0x22d)](_0x472e11(0x201)),_0x27032c=_0x105196[_0x472e11(0x22d)](_0x472e11(0x221)),_0x5343a4=_0x105196[_0x472e11(0x22d)](_0x472e11(0x1d5));_0x27032c[_0x472e11(0x227)](_0x150a40=>{const _0x2a8ebf=_0x472e11,_0xd7d527=_0x451ba4[_0x2a8ebf(0x1dc)](_0x25363c=>_0x25363c[_0x2a8ebf(0x248)]===_0x150a40[_0x2a8ebf(0x248)]);_0xd7d527?_0xd7d527[_0x2a8ebf(0x216)]=_0xd7d527[_0x2a8ebf(0x216)][_0x2a8ebf(0x21b)](_0x150a40[_0x2a8ebf(0x216)]):_0x451ba4[_0x2a8ebf(0x222)](_0x150a40);}),_0x451ba4[_0x472e11(0x227)](_0x1ffc9c=>{const _0x567a7e=_0x472e11;_0x1ffc9c[_0x567a7e(0x216)]=_0x1ffc9c[_0x567a7e(0x216)][_0x567a7e(0x215)](_0x38eb6c=>!_0x5343a4[_0x567a7e(0x1d4)](_0x38eb6c['id']));}),_0x105196[_0x472e11(0x1d6)](_0x472e11(0x201),_0x451ba4);}[_0x58a5ff(0x238)](){const _0x49e9a8=_0x58a5ff,_0x27744f=this[_0x49e9a8(0x217)];this[_0x49e9a8(0x21f)]=_0x27744f[_0x49e9a8(0x204)][_0x49e9a8(0x22d)](_0x49e9a8(0x21f)),this[_0x49e9a8(0x220)]=setInterval(()=>{const _0x5d4f26=_0x49e9a8;let _0x5e01eb;for(const _0x5cb777 in _0x27744f){const _0x2c4a97=_0x5cb777,_0x2c77d7=_0x27744f[_0x2c4a97];if(_0x5d4f26(0x1e1)===_0x2c77d7||_0x5d4f26(0x208)===_0x2c77d7||_0x5d4f26(0x1df)===_0x2c77d7||_0x5d4f26(0x1f2)===_0x2c77d7){delete _0x27744f[_0x2c4a97],_0x5e01eb=_0x2c77d7;break;}}if(_0x5d4f26(0x208)===_0x5e01eb)throw clearInterval(this[_0x5d4f26(0x220)]),new _0x1b2877(_0x5d4f26(0x1e5),null);if(_0x5d4f26(0x1e1)===_0x5e01eb&&console[_0x5d4f26(0x1f1)](_0x5d4f26(0x226)),_0x5d4f26(0x1f2)===_0x5e01eb)throw clearInterval(this[_0x5d4f26(0x220)]),new _0x1b2877(_0x5d4f26(0x233),null);_0x5d4f26(0x1df)===_0x5e01eb&&clearInterval(this[_0x5d4f26(0x220)]);},0x3e8);}[_0x58a5ff(0x21c)](){const _0x4a307d=_0x58a5ff;this[_0x4a307d(0x220)]&&clearInterval(this[_0x4a307d(0x220)]);}}export function getDefaultCommands(_0xa3b77b){const _0x57ace8=_0x58a5ff;return[{'groupId':_0x57ace8(0x21a),'groupLabel':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x249)),'commands':[{'id':_0x57ace8(0x211),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x212)),'prompt':_0x57ace8(0x203)},{'id':_0x57ace8(0x1d2),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x242)),'prompt':_0x57ace8(0x243)},{'id':_0x57ace8(0x218),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x22a)),'prompt':_0x57ace8(0x236)},{'id':_0x57ace8(0x20c),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x23e)),'prompt':_0x57ace8(0x237)}]},{'groupId':_0x57ace8(0x224),'groupLabel':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x20b)),'commands':[{'id':_0x57ace8(0x24c),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x244)),'prompt':_0x57ace8(0x200)},{'id':_0x57ace8(0x1da),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x23f)),'prompt':_0x57ace8(0x23b)}]},{'groupId':_0x57ace8(0x20a),'groupLabel':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x230)),'commands':[{'id':_0x57ace8(0x210),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x1db)),'prompt':_0x57ace8(0x247)},{'id':_0x57ace8(0x23a),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x23d)),'prompt':_0x57ace8(0x1d7)},{'id':_0x57ace8(0x246),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x1e4)),'prompt':_0x57ace8(0x1ee)},{'id':_0x57ace8(0x1eb),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x206)),'prompt':_0x57ace8(0x1e3)},{'id':_0x57ace8(0x1fc),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x245)),'prompt':_0x57ace8(0x1ed)}]},{'groupId':_0x57ace8(0x229),'groupLabel':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x1f8)),'commands':[{'id':_0x57ace8(0x1fa),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x234)),'prompt':_0x57ace8(0x1e7)},{'id':_0x57ace8(0x1e9),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x1f0)),'prompt':_0x57ace8(0x1f6)},{'id':_0x57ace8(0x1d3),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x1f4)),'prompt':_0x57ace8(0x205)},{'id':_0x57ace8(0x21e),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x1e8)),'prompt':_0x57ace8(0x23c)}]},{'groupId':_0x57ace8(0x231),'groupLabel':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x1e6)),'commands':[{'id':_0x57ace8(0x1f9),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x240),[_0x2c6bb5(_0xa3b77b,_0x57ace8(0x1ef))]),'prompt':_0x57ace8(0x1f7)},{'id':_0x57ace8(0x1e2),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x240),[_0x2c6bb5(_0xa3b77b,_0x57ace8(0x24b))]),'prompt':_0x57ace8(0x223)},{'id':_0x57ace8(0x1fe),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x240),[_0x2c6bb5(_0xa3b77b,_0x57ace8(0x1fd))]),'prompt':_0x57ace8(0x219)},{'id':_0x57ace8(0x20d),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x240),[_0x2c6bb5(_0xa3b77b,_0x57ace8(0x214))]),'prompt':_0x57ace8(0x213)},{'id':_0x57ace8(0x241),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x240),[_0x2c6bb5(_0xa3b77b,_0x57ace8(0x1dd))]),'prompt':_0x57ace8(0x209)},{'id':_0x57ace8(0x1d8),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x240),[_0x2c6bb5(_0xa3b77b,_0x57ace8(0x1ec))]),'prompt':_0x57ace8(0x20f)},{'id':_0x57ace8(0x235),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x240),[_0x2c6bb5(_0xa3b77b,_0x57ace8(0x207))]),'prompt':_0x57ace8(0x1ff)},{'id':_0x57ace8(0x1e0),'label':_0x2c6bb5(_0xa3b77b,_0x57ace8(0x240),[_0x2c6bb5(_0xa3b77b,_0x57ace8(0x24a))]),'prompt':_0x57ace8(0x1ea)}]}];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x45a3(){const _0x124981=['from','editingDowncast','init','start','toModel','addMarker','canEditAt','12064217QHXStk','94lmUknq','ai.useTheme','ck-fake-ai-selection_collapsed','ck-ai-assistant-ui_theme','length','ai-ui-candidate','end','77272kqqgBF','ai-ui','span','getLastPosition','42CLBVEe','ck-fake-ai-selection','createRange','removeMarker','change','selection','push','markers','966965lxMeER','data','get','insertContentBelow','processor','has','720474CnUtwd','ck-fake-ai-selection-candidate','489486CPPvlF','hideFakeVisualSelection','getRange','schema','insertContent','pluginName','getSelectedBlocks','24JDAhVB','updateMarker','config','1080bSpoIM','pop','isContent','conversion','toView','getLastMatchingPosition','document','markerToHighlight','createSelection','11441930FkWLjV','markerToElement','setSelection','20799uVpuHS','for','isAtEnd','showFakeVisualSelection','editor','getFirstRange','model','AIAssistantEditing','12zSIkul','createPositionAfter'];_0x45a3=function(){return _0x124981;};return _0x45a3();}const _0xd85f82=_0x2402;function _0x2402(_0x1f8fdb,_0xd88c8d){const _0x45a370=_0x45a3();return _0x2402=function(_0x24022f,_0x32ef36){_0x24022f=_0x24022f-0x1e7;let _0x3a2591=_0x45a370[_0x24022f];return _0x3a2591;},_0x2402(_0x1f8fdb,_0xd88c8d);}(function(_0x246fc8,_0x16b6e9){const _0x533a47=_0x2402,_0x7e5d22=_0x246fc8();while(!![]){try{const _0x4233c9=-parseInt(_0x533a47(0x20e))/0x1+-parseInt(_0x533a47(0x1f3))/0x2*(parseInt(_0x533a47(0x224))/0x3)+-parseInt(_0x533a47(0x215))/0x4*(-parseInt(_0x533a47(0x206))/0x5)+parseInt(_0x533a47(0x20c))/0x6*(-parseInt(_0x533a47(0x1fe))/0x7)+-parseInt(_0x533a47(0x1fa))/0x8*(-parseInt(_0x533a47(0x218))/0x9)+parseInt(_0x533a47(0x221))/0xa+-parseInt(_0x533a47(0x1f2))/0xb*(parseInt(_0x533a47(0x1e9))/0xc);if(_0x4233c9===_0x16b6e9)break;else _0x7e5d22['push'](_0x7e5d22['shift']());}catch(_0x5c44c8){_0x7e5d22['push'](_0x7e5d22['shift']());}}}(_0x45a3,0xcae61));import{Plugin as _0x105ae9}from'ckeditor5/src/core.js';const s=_0xd85f82(0x1fb),c=_0xd85f82(0x1f8);export default class i extends _0x105ae9{static get[_0xd85f82(0x213)](){const _0x23cbcf=_0xd85f82;return _0x23cbcf(0x1e8);}[_0xd85f82(0x1ed)](){const _0x194260=_0xd85f82,{editor:_0x49a324}=this,_0x4e4cda=[_0x194260(0x1ff)];_0x49a324[_0x194260(0x217)][_0x194260(0x208)](_0x194260(0x1f4))&&_0x4e4cda[_0x194260(0x204)](_0x194260(0x1f6)),_0x49a324[_0x194260(0x21b)][_0x194260(0x225)](_0x194260(0x1ec))[_0x194260(0x21f)]({'model':s,'view':{'classes':_0x4e4cda,'priority':0xc}}),_0x49a324[_0x194260(0x21b)][_0x194260(0x225)](_0x194260(0x1ec))[_0x194260(0x222)]({'model':s,'view':{'name':_0x194260(0x1fc),'classes':[_0x194260(0x1ff),_0x194260(0x1f5)],'priority':0xc}}),_0x49a324[_0x194260(0x21b)][_0x194260(0x225)](_0x194260(0x1ec))[_0x194260(0x21f)]({'model':c,'view':{'classes':[_0x194260(0x20d)],'priority':0x19}}),_0x49a324[_0x194260(0x21b)][_0x194260(0x225)](_0x194260(0x1ec))[_0x194260(0x222)]({'model':c,'view':{'name':_0x194260(0x1fc),'classes':[_0x194260(0x20d),_0x194260(0x1f5)],'priority':0x19}});}[_0xd85f82(0x227)](_0x56b32a){const _0x38a7cb=_0xd85f82,_0x8906dd=this[_0x38a7cb(0x228)][_0x38a7cb(0x1e7)],_0x36da1a=_0x56b32a?c:s;_0x8906dd[_0x38a7cb(0x202)](_0x8ea6a0=>{const _0xa122e8=_0x38a7cb,_0x446523=_0x8906dd[_0xa122e8(0x21e)][_0xa122e8(0x203)][_0xa122e8(0x229)]();if(_0x8906dd[_0xa122e8(0x205)][_0xa122e8(0x20b)](_0x36da1a))_0x8ea6a0[_0xa122e8(0x216)](_0x36da1a,{'range':_0x446523});else{if(_0x446523[_0xa122e8(0x1ee)][_0xa122e8(0x226)]){const _0x26b98c=_0x446523[_0xa122e8(0x1ee)][_0xa122e8(0x21d)](({item:_0x437733})=>!_0x8906dd[_0xa122e8(0x211)][_0xa122e8(0x21a)](_0x437733),{'boundaries':_0x446523});_0x8ea6a0[_0xa122e8(0x1f0)](_0x36da1a,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x8ea6a0[_0xa122e8(0x200)](_0x26b98c,_0x446523[_0xa122e8(0x1f9)])});}else _0x8ea6a0[_0xa122e8(0x1f0)](_0x36da1a,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x446523});}});}[_0xd85f82(0x20f)](_0x2a0c5f){const _0x1b9844=_0xd85f82,_0x2d4c37=this[_0x1b9844(0x228)][_0x1b9844(0x1e7)],_0xa2ce47=_0x2a0c5f?c:s;_0x2d4c37[_0x1b9844(0x205)][_0x1b9844(0x20b)](_0xa2ce47)&&_0x2d4c37[_0x1b9844(0x202)](_0x3b827b=>{const _0xa54be6=_0x1b9844;_0x3b827b[_0xa54be6(0x201)](_0xa2ce47);});}[_0xd85f82(0x212)](_0x5c5d18,_0x239997){const _0x5cbaca=_0xd85f82,_0x570547=_0x239997||this[_0x5cbaca(0x228)][_0x5cbaca(0x1e7)][_0x5cbaca(0x205)][_0x5cbaca(0x208)](s)[_0x5cbaca(0x210)]();if(!this[_0x5cbaca(0x228)][_0x5cbaca(0x1e7)][_0x5cbaca(0x1f1)](_0x570547))return;const _0xe7f91=this[_0x5cbaca(0x228)][_0x5cbaca(0x207)][_0x5cbaca(0x20a)][_0x5cbaca(0x21c)](_0x5c5d18),_0x5e0813=this[_0x5cbaca(0x228)][_0x5cbaca(0x207)][_0x5cbaca(0x1ef)](_0xe7f91);this[_0x5cbaca(0x228)][_0x5cbaca(0x1e7)][_0x5cbaca(0x202)](_0x2b55d8=>{const _0x5f325c=_0x5cbaca;this[_0x5f325c(0x20f)]();const _0x41b1c3=this[_0x5f325c(0x228)][_0x5f325c(0x1e7)][_0x5f325c(0x212)](_0x5e0813,_0x570547);_0x41b1c3&&_0x2b55d8[_0x5f325c(0x223)](_0x41b1c3);});}[_0xd85f82(0x209)](_0x382e9d){const _0x4b4d96=_0xd85f82,{model:_0x328848}=this[_0x4b4d96(0x228)],_0x4f8811=Array[_0x4b4d96(0x1eb)](_0x328848[_0x4b4d96(0x220)](this[_0x4b4d96(0x228)][_0x4b4d96(0x1e7)][_0x4b4d96(0x205)][_0x4b4d96(0x208)](s)[_0x4b4d96(0x210)]())[_0x4b4d96(0x214)]()),_0x371e7b=_0x4f8811[_0x4b4d96(0x1f7)]?_0x328848[_0x4b4d96(0x1ea)](_0x4f8811[_0x4b4d96(0x219)]()):_0x328848[_0x4b4d96(0x21e)][_0x4b4d96(0x203)][_0x4b4d96(0x1fd)]();this[_0x4b4d96(0x212)](_0x382e9d,_0x371e7b);}}
|