@ckeditor/ckeditor5-ai 0.0.0-nightly-20240421.0 → 0.0.0-nightly-20240423.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-20240423.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-20240423.0",
|
|
27
|
+
"ckeditor5-collaboration": "0.0.0-nightly-20240423.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-20240423.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
|
-
var
|
|
23
|
+
var _0xfce0ff=_0x53aa;function _0x1f63(){var _0x1467bd=['6wZTHUy','8tnGKeq','12319820TTJIgS','afterInit','aiadapter-text-adapter-not-set','9dILtcs','140518EoFhfS','275655txzvlO','name','43917180hEhadt','11ytYokk','549501syvVye','pluginName','AIRequestError','3269588HPoTja','AIAdapter','160ZWWNbo','textAdapter','7473135UPjTNd'];_0x1f63=function(){return _0x1467bd;};return _0x1f63();}(function(_0x33f3f3,_0x57a9d1){var _0x4f05a6=_0x53aa,_0x5cd716=_0x33f3f3();while(!![]){try{var _0x50b89f=-parseInt(_0x4f05a6(0x1ab))/0x1+parseInt(_0x4f05a6(0x1a5))/0x2*(parseInt(_0x4f05a6(0x19c))/0x3)+-parseInt(_0x4f05a6(0x19f))/0x4+parseInt(_0x4f05a6(0x1a3))/0x5*(-parseInt(_0x4f05a6(0x1a4))/0x6)+-parseInt(_0x4f05a6(0x1aa))/0x7*(-parseInt(_0x4f05a6(0x1a1))/0x8)+parseInt(_0x4f05a6(0x1a9))/0x9*(-parseInt(_0x4f05a6(0x1a6))/0xa)+parseInt(_0x4f05a6(0x19b))/0xb*(parseInt(_0x4f05a6(0x1ad))/0xc);if(_0x50b89f===_0x57a9d1)break;else _0x5cd716['push'](_0x5cd716['shift']());}catch(_0x1ec2d4){_0x5cd716['push'](_0x5cd716['shift']());}}}(_0x1f63,0xeddac));import{Plugin as _0x1b6f1d}from'ckeditor5/src/core.js';function _0x53aa(_0x514c31,_0x4737f6){var _0x1f6367=_0x1f63();return _0x53aa=function(_0x53aa64,_0x373093){_0x53aa64=_0x53aa64-0x19b;var _0x15ea40=_0x1f6367[_0x53aa64];return _0x15ea40;},_0x53aa(_0x514c31,_0x4737f6);}import{CKEditorError as _0x593c0a}from'ckeditor5/src/utils.js';export default class y extends _0x1b6f1d{static get[_0xfce0ff(0x19d)](){var _0x491f60=_0xfce0ff;return _0x491f60(0x1a0);}[_0xfce0ff(0x1a7)](){var _0x5e0d2d=_0xfce0ff;if(!this[_0x5e0d2d(0x1a2)])throw new _0x593c0a(_0x5e0d2d(0x1a8),null);}}export class AIRequestError extends Error{constructor(_0x3934a6){var _0x59c9eb=_0xfce0ff;super(_0x3934a6),this[_0x59c9eb(0x1ac)]=_0x59c9eb(0x19e);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x34d85b=_0x3309;function _0x3309(_0x138b49,_0x4fb580){const _0x4eb80e=_0x4eb8();return _0x3309=function(_0x330952,_0x4da091){_0x330952=_0x330952-0x1c9;let _0x47436f=_0x4eb80e[_0x330952];return _0x47436f;},_0x3309(_0x138b49,_0x4fb580);}(function(_0x402307,_0x1a24b9){const _0x51fcac=_0x3309,_0x38d111=_0x402307();while(!![]){try{const _0x573019=-parseInt(_0x51fcac(0x1c9))/0x1*(parseInt(_0x51fcac(0x1d3))/0x2)+parseInt(_0x51fcac(0x1eb))/0x3*(-parseInt(_0x51fcac(0x1ed))/0x4)+-parseInt(_0x51fcac(0x1d8))/0x5*(parseInt(_0x51fcac(0x1d4))/0x6)+-parseInt(_0x51fcac(0x1dd))/0x7*(parseInt(_0x51fcac(0x1d7))/0x8)+parseInt(_0x51fcac(0x1cf))/0x9*(parseInt(_0x51fcac(0x1cd))/0xa)+parseInt(_0x51fcac(0x1d2))/0xb+parseInt(_0x51fcac(0x1e9))/0xc;if(_0x573019===_0x1a24b9)break;else _0x38d111['push'](_0x38d111['shift']());}catch(_0x5791b8){_0x38d111['push'](_0x38d111['shift']());}}}(_0x4eb8,0x62a98));import{Plugin as _0x5224a4}from'ckeditor5/src/core.js';import{CKEditorError as _0x1ebd7c}from'ckeditor5/src/utils.js';function _0x4eb8(){const _0x144610=['9NtIpFb','plugins','abortController','5839658JwIbsy','1235402vrFWZS','60cErhgA','AI_ERROR_GET_PARAMETERS','aitextadapter-send-request-failed','8NogHCI','42070yOpNxO','locale','sendRequest','AI_ERROR_GET_HEADERS','_prepareRequestHeaders','2293361xcTiZV','signal','reject','error','resolve','application/json','abort','get','init','object','assign','editor','17014908yBusJI','catch','15qBJTwi','makeRequest','485788sbnYTq','aborted','name','1TbbDkO','requires','textAdapter','_prepareRequestParameters','920320YviWiJ','AbortError'];_0x4eb8=function(){return _0x144610;};return _0x4eb8();}import{default as _0x5f37ca,AIRequestError as _0x4102ae}from'./aiadapter.js';import{getTranslation as _0xb9888e}from'../utils/common-translations.js';export default class P extends _0x5224a4{static get[_0x34d85b(0x1ca)](){return[_0x5f37ca];}constructor(_0x4f7d4a){const _0x2b04f5=_0x34d85b;super(_0x4f7d4a),this[_0x2b04f5(0x1d1)]=new AbortController();}[_0x34d85b(0x1e5)](){const _0x314fde=_0x34d85b;this[_0x314fde(0x1e8)][_0x314fde(0x1d0)][_0x314fde(0x1e4)](_0x5f37ca)[_0x314fde(0x1cb)]=this;}[_0x34d85b(0x1e3)](){const _0x22d14f=_0x34d85b;this[_0x22d14f(0x1d1)][_0x22d14f(0x1de)][_0x22d14f(0x1ee)]||(this[_0x22d14f(0x1d1)][_0x22d14f(0x1e3)](),this[_0x22d14f(0x1d1)]=new AbortController());}async[_0x34d85b(0x1ec)](_0x305f7e){const _0x382eda=_0x34d85b;return this[_0x382eda(0x1da)](_0x305f7e)[_0x382eda(0x1ea)](_0x456a42=>{const _0x14092f=_0x382eda;if(_0x456a42 instanceof _0x4102ae)return Promise[_0x14092f(0x1df)](_0x456a42);if(_0x14092f(0x1ce)==_0x456a42[_0x14092f(0x1ef)])return Promise[_0x14092f(0x1e1)]();throw console[_0x14092f(0x1e0)](_0x456a42),new _0x1ebd7c(_0x14092f(0x1d6),null);});}async[_0x34d85b(0x1dc)](_0x419d4f,_0x399835){const _0x353f52=_0x34d85b,_0x3921b9=this[_0x353f52(0x1e8)][_0x353f52(0x1d9)],_0x3d87b8={'Content-Type':_0x353f52(0x1e2)};if(_0x353f52(0x1e6)==typeof _0x419d4f)Object[_0x353f52(0x1e7)](_0x3d87b8,_0x419d4f);else{if(_0x419d4f)try{const _0x43d50c=await _0x419d4f(_0x399835);Object[_0x353f52(0x1e7)](_0x3d87b8,_0x43d50c);}catch(_0x141a46){return Promise[_0x353f52(0x1df)](new _0x4102ae(_0xb9888e(_0x3921b9,_0x353f52(0x1db))));}}return _0x3d87b8;}async[_0x34d85b(0x1cc)](_0x58d7a1,_0x49abd4){const _0x4ef152=_0x34d85b,_0x33ac41=this[_0x4ef152(0x1e8)][_0x4ef152(0x1d9)];if(_0x4ef152(0x1e6)==typeof _0x58d7a1)return _0x58d7a1;try{return await _0x58d7a1(_0x49abd4);}catch(_0x5e4d25){return Promise[_0x4ef152(0x1df)](new _0x4102ae(_0xb9888e(_0x33ac41,_0x4ef152(0x1d5))));}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5de36d=_0x595e;function _0x595e(_0x10b3f8,_0x5bb2c0){const _0x3ea77f=_0x3ea7();return _0x595e=function(_0x595e0a,_0x59c6b1){_0x595e0a=_0x595e0a-0x150;let _0xc92821=_0x3ea77f[_0x595e0a];return _0xc92821;},_0x595e(_0x10b3f8,_0x5bb2c0);}(function(_0x4cd92c,_0x490a3f){const _0x130e04=_0x595e,_0x4e338e=_0x4cd92c();while(!![]){try{const _0x5d3240=-parseInt(_0x130e04(0x163))/0x1+-parseInt(_0x130e04(0x183))/0x2+parseInt(_0x130e04(0x176))/0x3*(-parseInt(_0x130e04(0x158))/0x4)+parseInt(_0x130e04(0x16d))/0x5*(-parseInt(_0x130e04(0x1a3))/0x6)+-parseInt(_0x130e04(0x15c))/0x7*(parseInt(_0x130e04(0x166))/0x8)+-parseInt(_0x130e04(0x195))/0x9*(-parseInt(_0x130e04(0x18c))/0xa)+parseInt(_0x130e04(0x185))/0xb;if(_0x5d3240===_0x490a3f)break;else _0x4e338e['push'](_0x4e338e['shift']());}catch(_0x27dbe8){_0x4e338e['push'](_0x4e338e['shift']());}}}(_0x3ea7,0x2eb1c));import{default as _0x3f7ed3}from'./aitextadapter.js';import{AIRequestError as _0x122201}from'./aiadapter.js';import{BedrockRuntimeClient as _0x50e8cd,InvokeModelCommand as _0x262e0a,InvokeModelWithResponseStreamCommand as _0x35c189}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0xf125b9}from'../utils/common-translations.js';export default class J extends _0x3f7ed3{static get[_0x5de36d(0x18e)](){const _0x218ac1=_0x5de36d;return _0x218ac1(0x172);}constructor(_0x38fc72){const _0x157470=_0x5de36d;super(_0x38fc72),_0x38fc72[_0x157470(0x16f)][_0x157470(0x164)](_0x157470(0x15e))||_0x38fc72[_0x157470(0x16f)][_0x157470(0x167)](_0x157470(0x15e),{'model':_0x157470(0x152),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x157470(0x155),'stream':!0x0}),this[_0x157470(0x192)]=_0x38fc72[_0x157470(0x16f)][_0x157470(0x164)](_0x157470(0x184)),this[_0x157470(0x150)]=_0x38fc72[_0x157470(0x16f)][_0x157470(0x164)](_0x157470(0x168)),this[_0x157470(0x151)]=_0x38fc72[_0x157470(0x16f)][_0x157470(0x164)](_0x157470(0x190)),this[_0x157470(0x196)]=_0x38fc72[_0x157470(0x16f)][_0x157470(0x164)](_0x157470(0x15e));}async[_0x5de36d(0x189)]({query:_0x2c37c7,context:_0x58654b,onData:_0x14a8fa,actionId:_0x147ff7}){const _0x434003=_0x5de36d,{model:_0x582e46,stream:_0xca9fd6,..._0x3f119b}=await this[_0x434003(0x181)](this[_0x434003(0x196)],_0x147ff7),_0x363b8e={'prompt':await this[_0x434003(0x169)](_0x2c37c7,_0x58654b,_0x582e46,_0x147ff7),..._0x3f119b};this[_0x434003(0x192)]?await this[_0x434003(0x18a)](_0x363b8e,_0x582e46,_0xca9fd6,_0x14a8fa,_0x147ff7):await this[_0x434003(0x19b)](_0x363b8e,_0x582e46,_0xca9fd6,_0x14a8fa);}async[_0x5de36d(0x169)](_0x2f8d46,_0x136089,_0x33537d,_0x4b546e){const _0xca647c=_0x5de36d;let _0x27c7b7,_0x9ecbeb;return _0x136089?(_0x27c7b7=_0xca647c(0x160),_0x9ecbeb=_0xca647c(0x19c)+_0x2f8d46+_0xca647c(0x15d)+_0x136089):(_0x27c7b7=_0xca647c(0x154),_0x9ecbeb=_0x2f8d46),_0xca647c(0x182)==this[_0xca647c(0x161)](_0x33537d)?_0xca647c(0x16a)+_0x27c7b7+_0xca647c(0x199)+_0x9ecbeb+_0xca647c(0x179):_0xca647c(0x175)+_0x27c7b7+'\x0a'+_0x9ecbeb+_0xca647c(0x180);}[_0x5de36d(0x161)](_0x545877){const _0x3bc158=_0x5de36d;if(/^anthropic\.claude/[_0x3bc158(0x19e)](_0x545877))return _0x3bc158(0x162);if(/^ai21\.j2/[_0x3bc158(0x19e)](_0x545877))return _0x3bc158(0x191);if(/^cohere\.command/[_0x3bc158(0x19e)](_0x545877))return _0x3bc158(0x18f);if(/^meta\.llama/[_0x3bc158(0x19e)](_0x545877))return _0x3bc158(0x182);throw new _0x122201(_0xf125b9(this[_0x3bc158(0x18b)][_0x3bc158(0x16c)],_0x3bc158(0x16e),_0x545877));}async[_0x5de36d(0x18a)](_0x5ed014,_0x449dc6,_0x1ce101,_0x26021e,_0x30fffb){const _0x52603c=_0x5de36d,_0x1dd98e={'method':_0x52603c(0x193),'headers':await this[_0x52603c(0x16b)](this[_0x52603c(0x151)],_0x30fffb),'body':JSON[_0x52603c(0x1a2)]({..._0x5ed014,'model':_0x449dc6,'stream':_0x1ce101}),'signal':this[_0x52603c(0x170)][_0x52603c(0x17b)]},_0x5f0c6a=await fetch(this[_0x52603c(0x192)],_0x1dd98e);_0x1ce101?await this[_0x52603c(0x153)](_0x5f0c6a,_0x449dc6,_0x26021e):await this[_0x52603c(0x171)](_0x5f0c6a,_0x449dc6,_0x26021e);}async[_0x5de36d(0x19b)](_0x580e39,_0x5d391a,_0x3faf59,_0x15c378){const _0xe256d2=_0x5de36d,_0x295750=new _0x50e8cd(this[_0xe256d2(0x150)]),_0x33c033={'body':JSON[_0xe256d2(0x1a2)](_0x580e39),'contentType':_0xe256d2(0x19d),'accept':_0xe256d2(0x19d),'modelId':_0x5d391a};let _0x1a9503;if(_0x3faf59){const _0x4a2fd6=new _0x35c189(_0x33c033);_0x1a9503=await _0x295750[_0xe256d2(0x17f)](_0x4a2fd6,{'abortSignal':this[_0xe256d2(0x170)][_0xe256d2(0x17b)]}),await this[_0xe256d2(0x159)](_0x1a9503,_0x5d391a,_0x15c378);}else{const _0x4a0d72=new _0x262e0a(_0x33c033);_0x1a9503=await _0x295750[_0xe256d2(0x17f)](_0x4a0d72,{'abortSignal':this[_0xe256d2(0x170)][_0xe256d2(0x17b)]}),await this[_0xe256d2(0x171)](_0x1a9503,_0x5d391a,_0x15c378);}}async[_0x5de36d(0x159)](_0x141d04,_0x39fd66,_0x243891){const _0x150858=_0x5de36d,_0x19502e=_0x141d04[_0x150858(0x194)],_0xc6366=new TextDecoder(_0x150858(0x1a0));let _0x23d40c='';for await(const _0x2e25e9 of _0x19502e)if(_0x2e25e9[_0x150858(0x17e)]){const _0xea44cc=_0xc6366[_0x150858(0x178)](_0x2e25e9[_0x150858(0x17e)][_0x150858(0x17c)]),_0x33323b=JSON[_0x150858(0x18d)](_0xea44cc);_0x23d40c+=this[_0x150858(0x1a1)](_0x33323b,_0x39fd66),_0x243891(_0x23d40c);}return Promise[_0x150858(0x197)]();}async[_0x5de36d(0x153)](_0x1df486,_0x36396d,_0x59dfc6){const _0x2ab150=_0x5de36d,_0x583973=_0x1df486[_0x2ab150(0x194)],_0x12bc98=new TextDecoder(_0x2ab150(0x1a0)),_0x37f669=_0x583973[_0x2ab150(0x15f)]();let _0x2e9672='',_0x18cbcb='',_0xd716da=!0x1;for(;!_0xd716da;){const {done:_0x1f2186,value:_0x57f657}=await _0x37f669[_0x2ab150(0x174)]();if(_0xd716da=_0x1f2186,_0xd716da)break;const _0x51a12c=(_0x2e9672+_0x12bc98[_0x2ab150(0x178)](_0x57f657))[_0x2ab150(0x177)]('\x0a')[_0x2ab150(0x157)](_0x1d9870=>{const _0x54cc22=_0x2ab150;try{return _0x2e9672='',JSON[_0x54cc22(0x18d)](_0x1d9870);}catch(_0x16ad5b){return _0x2e9672=_0x1d9870,null;}})[_0x2ab150(0x15a)](_0x2ff8c6=>null!==_0x2ff8c6);_0x51a12c[_0x2ab150(0x165)]&&(_0x18cbcb+=_0x51a12c[_0x2ab150(0x157)](_0x5d3bfb=>this[_0x2ab150(0x1a1)](_0x5d3bfb,_0x36396d))[_0x2ab150(0x188)](''),_0x59dfc6(_0x18cbcb));}return Promise[_0x2ab150(0x197)]();}async[_0x5de36d(0x171)](_0x5ea418,_0x42aa0f,_0x763e04){const _0x3ef45d=_0x5de36d;let _0x1141be;return _0x1141be=_0x5ea418 instanceof Response?await _0x5ea418[_0x3ef45d(0x17a)]():JSON[_0x3ef45d(0x18d)](Buffer[_0x3ef45d(0x186)](_0x5ea418[_0x3ef45d(0x194)])[_0x3ef45d(0x187)](_0x3ef45d(0x19f))),(_0x763e04(this[_0x3ef45d(0x1a1)](_0x1141be,_0x42aa0f)),Promise[_0x3ef45d(0x197)]());}[_0x5de36d(0x1a1)](_0x5a1d04,_0x14d1b5){const _0x5c4d50=_0x5de36d;switch(this[_0x5c4d50(0x161)](_0x14d1b5)){case _0x5c4d50(0x162):return _0x5a1d04[_0x5c4d50(0x19a)];case _0x5c4d50(0x191):return _0x5a1d04[_0x5c4d50(0x173)][0x0][_0x5c4d50(0x15b)][_0x5c4d50(0x156)];case _0x5c4d50(0x18f):return _0x5a1d04[_0x5c4d50(0x17d)][0x0][_0x5c4d50(0x156)];case _0x5c4d50(0x182):return _0x5a1d04[_0x5c4d50(0x198)];}}}function _0x3ea7(){const _0x25cbce=['_prepareRequestHeaders','locale','429665uqsZwC','AI_ERROR_UNSUPPORTED_MODEL','config','abortController','_readStaticResponse','AWSTextAdapter','completions','read','Human:\x0a','52305eqBmFr','split','decode','\x0a[/INST]','json','signal','bytes','generations','chunk','send','\x0a\x0aAssistant:','_prepareRequestParameters','meta.llama','522610uAZdAI','ai.aws.apiUrl','11260997hXqDLr','from','toString','join','sendRequest','_processProxyRequest','editor','130NfGVjc','parse','pluginName','cohere.command','ai.aws.requestHeaders','ai21.j2','_apiUrl','POST','body','139635MHBhXp','_requestParameters','resolve','generation','\x0a<</SYS>>\x0a[INST]\x0a','completion','_processAWSRequest','Instruction:\x0a','application/json','test','utf8','utf-8','_getGeneratedText','stringify','6yxmNah','_bedrockClientConfig','_requestHeaders','anthropic.claude-v2','_readStreamableResponse','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.','bedrock-2023-05-31','text','map','84IdRvqI','_readAsyncIterableResponse','filter','data','1365mrESfz','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','ai.aws.requestParameters','getReader','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.','getModelFamily','anthropic.claude','297389IHfkqZ','get','length','960RARDeV','define','ai.aws.bedrockClientConfig','preparePrompt','<<SYS>>\x0a'];_0x3ea7=function(){return _0x25cbce;};return _0x3ea7();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x1f72(){const _0x29c82c=['ai.openAI.apiUrl','_prepareRequestHeaders','split','includes','body','_apiUrl','OpenAITextAdapter','[DONE]','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','POST','554676AGfmcc','18911277bWUqDd','replace','Instruction:\x0a','https://api.openai.com/v1/chat/completions','_requestParameters','pluginName','define','read','253651blwLPD','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','_prepareRequestParameters','getReader','json','abortController','_isBufferIncomplete','system','filter','length','reject','sendRequest','message','locale','config','_readStreamableResponse','user','ai.openAI.requestHeaders','gpt-3.5-turbo','delta','94195ythdgX','_readStaticResponse','stringify','4597230KdkVGJ','AI_ERROR_CONTEXT_LENGTH','editor','stream','choices','signal','text','content','resolve','get','_cleanUpData','map','ai.openAI.requestParameters','parse','42FFqwXg','1178344YPNHjd','AI_ERROR_MODERATION','context_length_exceeded','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.','join','prepareMessages','2912163tqLOfX','Moderation','36nYytol','decode','data:\x20'];_0x1f72=function(){return _0x29c82c;};return _0x1f72();}const _0x124d30=_0x86b2;(function(_0x8c8637,_0x45d251){const _0x49f489=_0x86b2,_0x31842e=_0x8c8637();while(!![]){try{const _0xe32624=parseInt(_0x49f489(0x89))/0x1+-parseInt(_0x49f489(0x80))/0x2+-parseInt(_0x49f489(0xb6))/0x3+-parseInt(_0x49f489(0x73))/0x4*(parseInt(_0x49f489(0x9e))/0x5)+parseInt(_0x49f489(0xa1))/0x6+parseInt(_0x49f489(0xaf))/0x7*(-parseInt(_0x49f489(0xb0))/0x8)+parseInt(_0x49f489(0x81))/0x9;if(_0xe32624===_0x45d251)break;else _0x31842e['push'](_0x31842e['shift']());}catch(_0x5600c4){_0x31842e['push'](_0x31842e['shift']());}}}(_0x1f72,0xc821d));import{default as _0x54f6fb}from'./aitextadapter.js';function _0x86b2(_0x29e55e,_0x4c75df){const _0x1f723d=_0x1f72();return _0x86b2=function(_0x86b21e,_0x4fa3ea){_0x86b21e=_0x86b21e-0x72;let _0x5913b7=_0x1f723d[_0x86b21e];return _0x5913b7;},_0x86b2(_0x29e55e,_0x4c75df);}import{AIRequestError as _0x15fcfd}from'./aiadapter.js';import{getTranslation as _0xc3836e}from'../utils/common-translations.js';export default class F extends _0x54f6fb{static get[_0x124d30(0x86)](){const _0x78da64=_0x124d30;return _0x78da64(0x7c);}constructor(_0x48a416){const _0x555393=_0x124d30;super(_0x48a416),_0x48a416[_0x555393(0x98)][_0x555393(0x87)](_0x555393(0x76),_0x555393(0x84)),_0x48a416[_0x555393(0x98)][_0x555393(0xaa)](_0x555393(0xad))||_0x48a416[_0x555393(0x98)][_0x555393(0x87)](_0x555393(0xad),{'model':_0x555393(0x9c),'max_tokens':0x7d0,'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x555393(0x7b)]=_0x48a416[_0x555393(0x98)][_0x555393(0xaa)](_0x555393(0x76)),this[_0x555393(0x8b)]=_0x48a416[_0x555393(0x98)][_0x555393(0xaa)](_0x555393(0x9b))||{},this[_0x555393(0x85)]=_0x48a416[_0x555393(0x98)][_0x555393(0xaa)](_0x555393(0xad));}async[_0x124d30(0x95)]({query:_0x46c6bc,context:_0x5d2049,onData:_0x1fe347,actionId:_0x2ccc1b}){const _0x929619=_0x124d30,_0x4a45d8=this[_0x929619(0xa3)][_0x929619(0x97)],_0x1ca628=await this[_0x929619(0xb5)](_0x46c6bc,_0x5d2049,_0x2ccc1b),_0x31cdea=await this[_0x929619(0x77)](this[_0x929619(0x8b)],_0x2ccc1b),_0x4ff6a0=await this[_0x929619(0x8c)](this[_0x929619(0x85)],_0x2ccc1b),_0x4ef685={'messages':_0x1ca628,..._0x4ff6a0},_0x2be3d1={'method':_0x929619(0x7f),'headers':_0x31cdea,'body':JSON[_0x929619(0xa0)](_0x4ef685),'signal':this[_0x929619(0x8f)][_0x929619(0xa6)]},_0x32653c=await fetch(this[_0x929619(0x7b)],_0x2be3d1);if(_0x32653c['ok'])return _0x4ff6a0[_0x929619(0xa4)]?await this[_0x929619(0x99)](_0x32653c,_0x1fe347):await this[_0x929619(0x9f)](_0x32653c,_0x1fe347),Promise[_0x929619(0xa9)]();{const _0x4d53b2=await _0x32653c[_0x929619(0xa7)]();return _0x4d53b2[_0x929619(0x79)](_0x929619(0xb2))?Promise[_0x929619(0x94)](new _0x15fcfd(_0xc3836e(_0x4a45d8,_0x929619(0xa2)))):_0x4d53b2[_0x929619(0x79)](_0x929619(0x72))?Promise[_0x929619(0x94)](new _0x15fcfd(_0xc3836e(_0x4a45d8,_0x929619(0xb1)))):Promise[_0x929619(0x94)](new Error(_0x4d53b2));}}async[_0x124d30(0xb5)](_0x154d91,_0x2b7804,_0x46b036){const _0x52c4da=_0x124d30;let _0x25c98e,_0x427601;return _0x2b7804?(_0x25c98e=_0x52c4da(0xb3),_0x427601=_0x52c4da(0x83)+_0x154d91+_0x52c4da(0x7e)+_0x2b7804):(_0x25c98e=_0x52c4da(0x8a),_0x427601=_0x154d91),[{'role':_0x52c4da(0x91),'content':_0x25c98e},{'role':_0x52c4da(0x9a),'content':_0x427601}];}async[_0x124d30(0x99)](_0x2f1b5c,_0x23f265){const _0x5bbf7e=_0x124d30,_0x1d3311=_0x2f1b5c[_0x5bbf7e(0x7a)][_0x5bbf7e(0x8d)](),_0xd02b26=new TextDecoder();let _0x1d1857='',_0x50d9b7='',_0x2cf055='',_0x4f0094=!0x1;for(;!_0x4f0094;){const {done:_0x48697c,value:_0x156747}=await _0x1d3311[_0x5bbf7e(0x88)](),_0x52b75c=_0x1d1857+_0xd02b26[_0x5bbf7e(0x74)](_0x156747);let _0x318925='';_0x4f0094=_0x48697c;try{_0x318925=this[_0x5bbf7e(0xab)](_0x52b75c),_0x1d1857='';}catch(_0x57c702){_0x1d1857=_0x52b75c;continue;}_0x50d9b7+=_0x318925,!_0x4f0094&&this[_0x5bbf7e(0x90)](_0x50d9b7)||_0x50d9b7&&(_0x2cf055+=_0x50d9b7,_0x50d9b7='',_0x23f265(_0x2cf055));}return Promise[_0x5bbf7e(0xa9)]();}async[_0x124d30(0x9f)](_0x450acc,_0x189b76){const _0x3de6e8=_0x124d30;return _0x189b76((await _0x450acc[_0x3de6e8(0x8e)]())[_0x3de6e8(0xa5)][0x0][_0x3de6e8(0x96)][_0x3de6e8(0xa8)]),Promise[_0x3de6e8(0xa9)]();}[_0x124d30(0x90)](_0x4d3522){const _0x772200=_0x124d30,_0x508eff=_0x4d3522[_0x772200(0x78)]('<')[_0x772200(0x93)]!==_0x4d3522[_0x772200(0x78)]('>')[_0x772200(0x93)],_0x297af4=_0x4d3522[_0x772200(0x93)]<0x1e;return _0x508eff&&_0x297af4;}[_0x124d30(0xab)](_0xddce54){const _0x24b036=_0x124d30;return _0xddce54[_0x24b036(0x78)](/\n(?![^{]*\})/g)[_0x24b036(0xac)](_0x106594=>_0x106594[_0x24b036(0x82)](_0x24b036(0x75),''))[_0x24b036(0x92)](_0x5daa=>_0x5daa&&_0x5daa[_0x24b036(0x93)]>0x0&&_0x24b036(0x7d)!==_0x5daa)[_0x24b036(0xac)](_0x42596f=>{const _0x40a5eb=_0x24b036,{choices:_0x1f7d16}=JSON[_0x40a5eb(0xae)](_0x42596f);if(_0x1f7d16[0x0]&&_0x1f7d16[0x0][_0x40a5eb(0x9d)]&&_0x1f7d16[0x0][_0x40a5eb(0x9d)][_0x40a5eb(0xa8)])return _0x1f7d16[0x0][_0x40a5eb(0x9d)][_0x40a5eb(0xa8)];})[_0x24b036(0x92)](_0x28e96e=>_0x28e96e)[_0x24b036(0xb4)]('');}}
|
package/src/aiassistant.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
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)}]}];}
|
|
23
|
+
const _0x439aeb=_0x1de9;(function(_0x107cc6,_0x544296){const _0x1d043c=_0x1de9,_0x57975f=_0x107cc6();while(!![]){try{const _0x275de3=-parseInt(_0x1d043c(0x120))/0x1+-parseInt(_0x1d043c(0x15f))/0x2*(-parseInt(_0x1d043c(0x18e))/0x3)+-parseInt(_0x1d043c(0x171))/0x4*(parseInt(_0x1d043c(0x16b))/0x5)+-parseInt(_0x1d043c(0x128))/0x6+parseInt(_0x1d043c(0x169))/0x7*(parseInt(_0x1d043c(0x15e))/0x8)+-parseInt(_0x1d043c(0x11e))/0x9+-parseInt(_0x1d043c(0x11c))/0xa*(-parseInt(_0x1d043c(0x13c))/0xb);if(_0x275de3===_0x544296)break;else _0x57975f['push'](_0x57975f['shift']());}catch(_0x3aec7a){_0x57975f['push'](_0x57975f['shift']());}}}(_0x1b72,0x96009));import{CKEditorError as _0x171bba}from'ckeditor5/src/utils.js';import{Plugin as _0x15d239}from'ckeditor5/src/core.js';import _0x4223ca from'./aiassistantui.js';import _0x36aafc from'./aiassistantediting.js';import{getTranslation as _0x1d41fd}from'./utils/common-translations.js';function _0x1b72(){const _0x34a4d4=['1204jcEHUi','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','Translate\x20the\x20content\x20to\x20Hindi\x20language.','Professional','translatePortuguese','English','changeStyle','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','journalism','Translate','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','generate','get','_licenseKeyCheckInterval','continue','Arabic','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','casual','translateSpanish','Direct','Edit\x20or\x20review','licenseKey','Poetic','Translate\x20the\x20content\x20to\x20English\x20language.','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.','French','Legal','summarize','translateHindi','78xSorsX','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','improveWriting','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','find','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','aiLicenseKeyValid','Translate\x20the\x20content\x20to\x20Spanish\x20language.','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','4353990RHNqJd','German','9511110OQPmlR','Translate\x20the\x20content\x20to\x20French\x20language.','829103uYKWNk','pluginName','Simplified\x20Chinese','ai.aiAssistant.extraCommandGroups','locale','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','poetic','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','4257846VGlMad','translateEnglish','Make\x20shorter','aiLicenseKeyTrialLimit:operations','Change\x20style','define','makeShorter','Translate\x20to\x20%0','changeTone','editOrReview','ai.aiAssistant.commands','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','commands','ai-invalid-license-key','professional','direct','Friendly','business','Summarize','translateArabic','55hxtEtr','init','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','simplifyLanguage','groupId','concat','translateChinese','info','includes','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','ai.aiAssistant.removeCommands','translate','legal','Spanish','destroy','Generate\x20from\x20selection','Business','translateFrench','AIAssistant','Make\x20longer','Confident','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','editor','Casual','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','Journalism','translateGerman','requires','Improve\x20writing','ai-trial-license-key-reached-limit-changes','Translate\x20the\x20content\x20to\x20Arabic\x20language.','config','push','forEach','4847488tphmvL','39722dlpIWH','set','friendly','Continue','Portuguese','confident','Translate\x20the\x20content\x20to\x20German\x20language.','aiLicenseKeyInvalid','Hindi','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','14DUmuDP','Simplify\x20language','11550mBhyOs','filter','makeLonger','Change\x20tone','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','aiLicenseKeyTrial'];_0x1b72=function(){return _0x34a4d4;};return _0x1b72();}export default class r extends _0x15d239{static get[_0x439aeb(0x157)](){return[_0x4223ca,_0x36aafc];}static get[_0x439aeb(0x121)](){const _0x2d4e41=_0x439aeb;return _0x2d4e41(0x14e);}constructor(_0x35b938){const _0x7dd0e5=_0x439aeb;super(_0x35b938);const _0x55cc97=_0x35b938[_0x7dd0e5(0x15b)];_0x55cc97[_0x7dd0e5(0x12d)](_0x7dd0e5(0x132),getDefaultCommands(_0x35b938[_0x7dd0e5(0x124)])),_0x55cc97[_0x7dd0e5(0x12d)](_0x7dd0e5(0x123),[]),_0x55cc97[_0x7dd0e5(0x12d)](_0x7dd0e5(0x146),[]);const _0x593e09=_0x55cc97[_0x7dd0e5(0x17d)](_0x7dd0e5(0x132)),_0x1361ef=_0x55cc97[_0x7dd0e5(0x17d)](_0x7dd0e5(0x123)),_0x28360d=_0x55cc97[_0x7dd0e5(0x17d)](_0x7dd0e5(0x146));_0x1361ef[_0x7dd0e5(0x15d)](_0x562874=>{const _0xa82c90=_0x7dd0e5,_0x77240f=_0x593e09[_0xa82c90(0x117)](_0x8a699c=>_0x8a699c[_0xa82c90(0x140)]===_0x562874[_0xa82c90(0x140)]);_0x77240f?_0x77240f[_0xa82c90(0x134)]=_0x77240f[_0xa82c90(0x134)][_0xa82c90(0x141)](_0x562874[_0xa82c90(0x134)]):_0x593e09[_0xa82c90(0x15c)](_0x562874);}),_0x593e09[_0x7dd0e5(0x15d)](_0x4ecfd6=>{const _0x37c55c=_0x7dd0e5;_0x4ecfd6[_0x37c55c(0x134)]=_0x4ecfd6[_0x37c55c(0x134)][_0x37c55c(0x16c)](_0x9fb6b5=>!_0x28360d[_0x37c55c(0x144)](_0x9fb6b5['id']));}),_0x55cc97[_0x7dd0e5(0x160)](_0x7dd0e5(0x132),_0x593e09);}[_0x439aeb(0x13d)](){const _0x3856cd=_0x439aeb,_0x6a7829=this[_0x3856cd(0x152)];this[_0x3856cd(0x186)]=_0x6a7829[_0x3856cd(0x15b)][_0x3856cd(0x17d)](_0x3856cd(0x186)),this[_0x3856cd(0x17e)]=setInterval(()=>{const _0xb25dac=_0x3856cd;let _0x49eac0;for(const _0x29910b in _0x6a7829){const _0x2127e8=_0x29910b,_0x1f088c=_0x6a7829[_0x2127e8];if(_0xb25dac(0x170)===_0x1f088c||_0xb25dac(0x166)===_0x1f088c||_0xb25dac(0x119)===_0x1f088c||_0xb25dac(0x12b)===_0x1f088c){delete _0x6a7829[_0x2127e8],_0x49eac0=_0x1f088c;break;}}if(_0xb25dac(0x166)===_0x49eac0)throw clearInterval(this[_0xb25dac(0x17e)]),new _0x171bba(_0xb25dac(0x135),null);if(_0xb25dac(0x170)===_0x49eac0&&console[_0xb25dac(0x143)](_0xb25dac(0x189)),_0xb25dac(0x12b)===_0x49eac0)throw clearInterval(this[_0xb25dac(0x17e)]),new _0x171bba(_0xb25dac(0x159),null);_0xb25dac(0x119)===_0x49eac0&&clearInterval(this[_0xb25dac(0x17e)]);},0x3e8);}[_0x439aeb(0x14a)](){const _0x67946=_0x439aeb;this[_0x67946(0x17e)]&&clearInterval(this[_0x67946(0x17e)]);}}function _0x1de9(_0x414673,_0x5795eb){const _0x1b7213=_0x1b72();return _0x1de9=function(_0x1de9e7,_0x4f79f9){_0x1de9e7=_0x1de9e7-0x115;let _0x24c9fe=_0x1b7213[_0x1de9e7];return _0x24c9fe;},_0x1de9(_0x414673,_0x5795eb);}export function getDefaultCommands(_0x4b66dd){const _0xd1765f=_0x439aeb;return[{'groupId':_0xd1765f(0x131),'groupLabel':_0x1d41fd(_0x4b66dd,_0xd1765f(0x185)),'commands':[{'id':_0xd1765f(0x115),'label':_0x1d41fd(_0x4b66dd,_0xd1765f(0x158)),'prompt':_0xd1765f(0x133)},{'id':_0xd1765f(0x12e),'label':_0x1d41fd(_0x4b66dd,_0xd1765f(0x12a)),'prompt':_0xd1765f(0x172)},{'id':_0xd1765f(0x16d),'label':_0x1d41fd(_0x4b66dd,_0xd1765f(0x14f)),'prompt':_0xd1765f(0x168)},{'id':_0xd1765f(0x13f),'label':_0x1d41fd(_0x4b66dd,_0xd1765f(0x16a)),'prompt':_0xd1765f(0x118)}]},{'groupId':_0xd1765f(0x17c),'groupLabel':_0x1d41fd(_0x4b66dd,_0xd1765f(0x14b)),'commands':[{'id':_0xd1765f(0x18c),'label':_0x1d41fd(_0x4b66dd,_0xd1765f(0x13a)),'prompt':_0xd1765f(0x16f)},{'id':_0xd1765f(0x17f),'label':_0x1d41fd(_0x4b66dd,_0xd1765f(0x162)),'prompt':_0xd1765f(0x125)}]},{'groupId':_0xd1765f(0x130),'groupLabel':_0x1d41fd(_0x4b66dd,_0xd1765f(0x16e)),'commands':[{'id':_0xd1765f(0x136),'label':_0x1d41fd(_0x4b66dd,_0xd1765f(0x174)),'prompt':_0xd1765f(0x17b)},{'id':_0xd1765f(0x182),'label':_0x1d41fd(_0x4b66dd,_0xd1765f(0x153)),'prompt':_0xd1765f(0x11b)},{'id':_0xd1765f(0x137),'label':_0x1d41fd(_0x4b66dd,_0xd1765f(0x184)),'prompt':_0xd1765f(0x154)},{'id':_0xd1765f(0x164),'label':_0x1d41fd(_0x4b66dd,_0xd1765f(0x150)),'prompt':_0xd1765f(0x116)},{'id':_0xd1765f(0x161),'label':_0x1d41fd(_0x4b66dd,_0xd1765f(0x138)),'prompt':_0xd1765f(0x127)}]},{'groupId':_0xd1765f(0x177),'groupLabel':_0x1d41fd(_0x4b66dd,_0xd1765f(0x12c)),'commands':[{'id':_0xd1765f(0x139),'label':_0x1d41fd(_0x4b66dd,_0xd1765f(0x14c)),'prompt':_0xd1765f(0x181)},{'id':_0xd1765f(0x148),'label':_0x1d41fd(_0x4b66dd,_0xd1765f(0x18b)),'prompt':_0xd1765f(0x145)},{'id':_0xd1765f(0x179),'label':_0x1d41fd(_0x4b66dd,_0xd1765f(0x155)),'prompt':_0xd1765f(0x151)},{'id':_0xd1765f(0x126),'label':_0x1d41fd(_0x4b66dd,_0xd1765f(0x187)),'prompt':_0xd1765f(0x13e)}]},{'groupId':_0xd1765f(0x147),'groupLabel':_0x1d41fd(_0x4b66dd,_0xd1765f(0x17a)),'commands':[{'id':_0xd1765f(0x129),'label':_0x1d41fd(_0x4b66dd,_0xd1765f(0x12f),[_0x1d41fd(_0x4b66dd,_0xd1765f(0x176))]),'prompt':_0xd1765f(0x188)},{'id':_0xd1765f(0x183),'label':_0x1d41fd(_0x4b66dd,_0xd1765f(0x12f),[_0x1d41fd(_0x4b66dd,_0xd1765f(0x149))]),'prompt':_0xd1765f(0x11a)},{'id':_0xd1765f(0x175),'label':_0x1d41fd(_0x4b66dd,_0xd1765f(0x12f),[_0x1d41fd(_0x4b66dd,_0xd1765f(0x163))]),'prompt':_0xd1765f(0x18f)},{'id':_0xd1765f(0x156),'label':_0x1d41fd(_0x4b66dd,_0xd1765f(0x12f),[_0x1d41fd(_0x4b66dd,_0xd1765f(0x11d))]),'prompt':_0xd1765f(0x165)},{'id':_0xd1765f(0x14d),'label':_0x1d41fd(_0x4b66dd,_0xd1765f(0x12f),[_0x1d41fd(_0x4b66dd,_0xd1765f(0x18a))]),'prompt':_0xd1765f(0x11f)},{'id':_0xd1765f(0x142),'label':_0x1d41fd(_0x4b66dd,_0xd1765f(0x12f),[_0x1d41fd(_0x4b66dd,_0xd1765f(0x122))]),'prompt':_0xd1765f(0x178)},{'id':_0xd1765f(0x18d),'label':_0x1d41fd(_0x4b66dd,_0xd1765f(0x12f),[_0x1d41fd(_0x4b66dd,_0xd1765f(0x167))]),'prompt':_0xd1765f(0x173)},{'id':_0xd1765f(0x13b),'label':_0x1d41fd(_0x4b66dd,_0xd1765f(0x12f),[_0x1d41fd(_0x4b66dd,_0xd1765f(0x180))]),'prompt':_0xd1765f(0x15a)}]}];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x5d6dca=_0x5df1;(function(_0x2bd0d3,_0x3e935a){const _0x2d561e=_0x5df1,_0x2baba8=_0x2bd0d3();while(!![]){try{const _0x41f93b=-parseInt(_0x2d561e(0x1e1))/0x1*(-parseInt(_0x2d561e(0x1c1))/0x2)+-parseInt(_0x2d561e(0x1d0))/0x3*(-parseInt(_0x2d561e(0x1e0))/0x4)+-parseInt(_0x2d561e(0x1c2))/0x5+-parseInt(_0x2d561e(0x1e7))/0x6*(-parseInt(_0x2d561e(0x1d4))/0x7)+parseInt(_0x2d561e(0x201))/0x8*(parseInt(_0x2d561e(0x1cc))/0x9)+-parseInt(_0x2d561e(0x1fd))/0xa+-parseInt(_0x2d561e(0x1c3))/0xb;if(_0x41f93b===_0x3e935a)break;else _0x2baba8['push'](_0x2baba8['shift']());}catch(_0x533031){_0x2baba8['push'](_0x2baba8['shift']());}}}(_0x20fc,0x2b1f5));function _0x20fc(){const _0x491ac3=['AIAssistantEditing','ai-ui-candidate','hideFakeVisualSelection','showFakeVisualSelection','getLastMatchingPosition','selection','end','updateMarker','2981860XiaxJs','schema','isAtEnd','setSelection','2188016MTlxKE','model','4122PLvWhU','218055IAAIzT','1663695xflUiL','toView','isContent','editingDowncast','ck-fake-ai-selection-candidate','editor','start','toModel','getFirstRange','9Ydlbjb','push','ai-ui','createRange','54633rrVDmj','insertContent','config','span','7gGqCyo','length','for','ck-ai-assistant-ui_theme','has','change','get','createSelection','ai.useTheme','canEditAt','markerToElement','document','36MNnQtA','17kbDELW','getRange','removeMarker','insertContentBelow','markerToHighlight','pop','1183398BBysTR','createPositionAfter','processor','ck-fake-ai-selection_collapsed','markers','data','getLastPosition','init','getSelectedBlocks','from','pluginName','addMarker','conversion','ck-fake-ai-selection'];_0x20fc=function(){return _0x491ac3;};return _0x20fc();}import{Plugin as _0x26c3b4}from'ckeditor5/src/core.js';const s=_0x5d6dca(0x1ce),c=_0x5d6dca(0x1f6);function _0x5df1(_0x33f9fe,_0x5dec63){const _0x20fc26=_0x20fc();return _0x5df1=function(_0x5df135,_0x1dae3c){_0x5df135=_0x5df135-0x1c1;let _0x556d3d=_0x20fc26[_0x5df135];return _0x556d3d;},_0x5df1(_0x33f9fe,_0x5dec63);}export default class i extends _0x26c3b4{static get[_0x5d6dca(0x1f1)](){const _0x1576f3=_0x5d6dca;return _0x1576f3(0x1f5);}[_0x5d6dca(0x1ee)](){const _0x42e66d=_0x5d6dca,{editor:_0x5462fb}=this,_0x4d5cfd=[_0x42e66d(0x1f4)];_0x5462fb[_0x42e66d(0x1d2)][_0x42e66d(0x1da)](_0x42e66d(0x1dc))&&_0x4d5cfd[_0x42e66d(0x1cd)](_0x42e66d(0x1d7)),_0x5462fb[_0x42e66d(0x1f3)][_0x42e66d(0x1d6)](_0x42e66d(0x1c6))[_0x42e66d(0x1e5)]({'model':s,'view':{'classes':_0x4d5cfd,'priority':0xc}}),_0x5462fb[_0x42e66d(0x1f3)][_0x42e66d(0x1d6)](_0x42e66d(0x1c6))[_0x42e66d(0x1de)]({'model':s,'view':{'name':_0x42e66d(0x1d3),'classes':[_0x42e66d(0x1f4),_0x42e66d(0x1ea)],'priority':0xc}}),_0x5462fb[_0x42e66d(0x1f3)][_0x42e66d(0x1d6)](_0x42e66d(0x1c6))[_0x42e66d(0x1e5)]({'model':c,'view':{'classes':[_0x42e66d(0x1c7)],'priority':0x19}}),_0x5462fb[_0x42e66d(0x1f3)][_0x42e66d(0x1d6)](_0x42e66d(0x1c6))[_0x42e66d(0x1de)]({'model':c,'view':{'name':_0x42e66d(0x1d3),'classes':[_0x42e66d(0x1c7),_0x42e66d(0x1ea)],'priority':0x19}});}[_0x5d6dca(0x1f8)](_0x2a7e69){const _0x2e9965=_0x5d6dca,_0x916a03=this[_0x2e9965(0x1c8)][_0x2e9965(0x202)],_0x56721d=_0x2a7e69?c:s;_0x916a03[_0x2e9965(0x1d9)](_0x2a0b94=>{const _0x503b5e=_0x2e9965,_0x175ed8=_0x916a03[_0x503b5e(0x1df)][_0x503b5e(0x1fa)][_0x503b5e(0x1cb)]();if(_0x916a03[_0x503b5e(0x1eb)][_0x503b5e(0x1d8)](_0x56721d))_0x2a0b94[_0x503b5e(0x1fc)](_0x56721d,{'range':_0x175ed8});else{if(_0x175ed8[_0x503b5e(0x1c9)][_0x503b5e(0x1ff)]){const _0x49cd8d=_0x175ed8[_0x503b5e(0x1c9)][_0x503b5e(0x1f9)](({item:_0x859aad})=>!_0x916a03[_0x503b5e(0x1fe)][_0x503b5e(0x1c5)](_0x859aad),{'boundaries':_0x175ed8});_0x2a0b94[_0x503b5e(0x1f2)](_0x56721d,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x2a0b94[_0x503b5e(0x1cf)](_0x49cd8d,_0x175ed8[_0x503b5e(0x1fb)])});}else _0x2a0b94[_0x503b5e(0x1f2)](_0x56721d,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x175ed8});}});}[_0x5d6dca(0x1f7)](_0x570f86){const _0x4297ca=_0x5d6dca,_0x36173f=this[_0x4297ca(0x1c8)][_0x4297ca(0x202)],_0x645539=_0x570f86?c:s;_0x36173f[_0x4297ca(0x1eb)][_0x4297ca(0x1d8)](_0x645539)&&_0x36173f[_0x4297ca(0x1d9)](_0x35b280=>{const _0x106972=_0x4297ca;_0x35b280[_0x106972(0x1e3)](_0x645539);});}[_0x5d6dca(0x1d1)](_0x11d964,_0xa8f109){const _0x4889c5=_0x5d6dca,_0x53126a=_0xa8f109||this[_0x4889c5(0x1c8)][_0x4889c5(0x202)][_0x4889c5(0x1eb)][_0x4889c5(0x1da)](s)[_0x4889c5(0x1e2)]();if(!this[_0x4889c5(0x1c8)][_0x4889c5(0x202)][_0x4889c5(0x1dd)](_0x53126a))return;const _0x465c3e=this[_0x4889c5(0x1c8)][_0x4889c5(0x1ec)][_0x4889c5(0x1e9)][_0x4889c5(0x1c4)](_0x11d964),_0x1b31c7=this[_0x4889c5(0x1c8)][_0x4889c5(0x1ec)][_0x4889c5(0x1ca)](_0x465c3e);this[_0x4889c5(0x1c8)][_0x4889c5(0x202)][_0x4889c5(0x1d9)](_0x27e73b=>{const _0x2d653a=_0x4889c5;this[_0x2d653a(0x1f7)]();const _0x257712=this[_0x2d653a(0x1c8)][_0x2d653a(0x202)][_0x2d653a(0x1d1)](_0x1b31c7,_0x53126a);_0x257712&&_0x27e73b[_0x2d653a(0x200)](_0x257712);});}[_0x5d6dca(0x1e4)](_0x38fdc1){const _0x1c5927=_0x5d6dca,{model:_0x2e1c8f}=this[_0x1c5927(0x1c8)],_0x51bf2f=Array[_0x1c5927(0x1f0)](_0x2e1c8f[_0x1c5927(0x1db)](this[_0x1c5927(0x1c8)][_0x1c5927(0x202)][_0x1c5927(0x1eb)][_0x1c5927(0x1da)](s)[_0x1c5927(0x1e2)]())[_0x1c5927(0x1ef)]()),_0x967eab=_0x51bf2f[_0x1c5927(0x1d5)]?_0x2e1c8f[_0x1c5927(0x1e8)](_0x51bf2f[_0x1c5927(0x1e6)]()):_0x2e1c8f[_0x1c5927(0x1df)][_0x1c5927(0x1fa)][_0x1c5927(0x1ed)]();this[_0x1c5927(0x1d1)](_0x38fdc1,_0x967eab);}}
|