@ckeditor/ckeditor5-ai 0.0.0-nightly-20240319.1 → 0.0.0-nightly-20240321.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 +1 -1
- 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-20240321.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-20240321.0",
|
|
27
|
+
"ckeditor5-collaboration": "0.0.0-nightly-20240321.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-20240321.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 _0x1d01ab=_0x5ee3;(function(_0x25caf6,_0x397e7a){var _0x495a12=_0x5ee3,_0x2085dc=_0x25caf6();while(!![]){try{var _0x402e1f=-parseInt(_0x495a12(0x143))/0x1+-parseInt(_0x495a12(0x13d))/0x2+parseInt(_0x495a12(0x144))/0x3*(parseInt(_0x495a12(0x148))/0x4)+parseInt(_0x495a12(0x146))/0x5+-parseInt(_0x495a12(0x145))/0x6+-parseInt(_0x495a12(0x147))/0x7+parseInt(_0x495a12(0x142))/0x8*(parseInt(_0x495a12(0x140))/0x9);if(_0x402e1f===_0x397e7a)break;else _0x2085dc['push'](_0x2085dc['shift']());}catch(_0x516bbe){_0x2085dc['push'](_0x2085dc['shift']());}}}(_0xb31c,0x2c9cf));import{Plugin as _0x1c3b99}from'ckeditor5/src/core.js';function _0x5ee3(_0x22e93d,_0x5243bb){var _0xb31cbd=_0xb31c();return _0x5ee3=function(_0x5ee3a7,_0x1c569c){_0x5ee3a7=_0x5ee3a7-0x13d;var _0xf9ed99=_0xb31cbd[_0x5ee3a7];return _0xf9ed99;},_0x5ee3(_0x22e93d,_0x5243bb);}function _0xb31c(){var _0x1e3ee1=['AIRequestError','aiadapter-text-adapter-not-set','afterInit','403528RFSmIw','name','textAdapter','18qNuxjS','pluginName','2473656lRMVJS','195883DjnsHy','27jPMJwW','1936302PqjHhU','210175FJkPpU','794675JPfuLp','158300MVwAzl','AIAdapter'];_0xb31c=function(){return _0x1e3ee1;};return _0xb31c();}import{CKEditorError as _0x53bf23}from'ckeditor5/src/utils.js';export default class g extends _0x1c3b99{static get[_0x1d01ab(0x141)](){var _0x553d38=_0x1d01ab;return _0x553d38(0x149);}[_0x1d01ab(0x14c)](){var _0x20daa7=_0x1d01ab;if(!this[_0x20daa7(0x13f)])throw new _0x53bf23(_0x20daa7(0x14b),null);}}export class AIRequestError extends Error{constructor(_0x4f3e06){var _0xb9c553=_0x1d01ab;super(_0x4f3e06),this[_0xb9c553(0x13e)]=_0xb9c553(0x14a);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x57c319=_0x57d5;(function(_0x2046af,_0x460f23){const _0x35bbd9=_0x57d5,_0x25867e=_0x2046af();while(!![]){try{const _0x38f885=parseInt(_0x35bbd9(0x81))/0x1+parseInt(_0x35bbd9(0x69))/0x2+parseInt(_0x35bbd9(0x89))/0x3+-parseInt(_0x35bbd9(0x72))/0x4+-parseInt(_0x35bbd9(0x6d))/0x5*(parseInt(_0x35bbd9(0x83))/0x6)+parseInt(_0x35bbd9(0x7b))/0x7*(-parseInt(_0x35bbd9(0x86))/0x8)+-parseInt(_0x35bbd9(0x7f))/0x9*(-parseInt(_0x35bbd9(0x74))/0xa);if(_0x38f885===_0x460f23)break;else _0x25867e['push'](_0x25867e['shift']());}catch(_0x26b30b){_0x25867e['push'](_0x25867e['shift']());}}}(_0x3724,0x2555d));import{Plugin as _0x174d26}from'ckeditor5/src/core.js';function _0x3724(){const _0x42eb84=['sendRequest','8IuYYwF','textAdapter','catch','599382fdPKvj','_prepareRequestParameters','AI_ERROR_GET_HEADERS','aitextadapter-send-request-failed','aborted','343724QyhdMH','requires','AbortError','abortController','357405lNIlNc','plugins','AI_ERROR_GET_PARAMETERS','abort','resolve','1142528ntUXuu','reject','10tDDSRr','assign','signal','init','error','editor','_prepareRequestHeaders','2038610CLPHRs','application/json','get','name','4337451DNAHbM','makeRequest','90635opaLfZ','locale','18dIgEBn','object'];_0x3724=function(){return _0x42eb84;};return _0x3724();}import{CKEditorError as _0x31d766}from'ckeditor5/src/utils.js';function _0x57d5(_0x296738,_0x450044){const _0x372457=_0x3724();return _0x57d5=function(_0x57d57a,_0x3f306c){_0x57d57a=_0x57d57a-0x68;let _0x2fb4c6=_0x372457[_0x57d57a];return _0x2fb4c6;},_0x57d5(_0x296738,_0x450044);}import{default as _0x4aab40,AIRequestError as _0x37b6c1}from'./aiadapter.js';import{getTranslation as _0x518fca}from'../utils/common-translations.js';export default class _ extends _0x174d26{static get[_0x57c319(0x6a)](){return[_0x4aab40];}constructor(_0x1d7304){const _0x51cefa=_0x57c319;super(_0x1d7304),this[_0x51cefa(0x6c)]=new AbortController();}[_0x57c319(0x77)](){const _0x3819b4=_0x57c319;this[_0x3819b4(0x79)][_0x3819b4(0x6e)][_0x3819b4(0x7d)](_0x4aab40)[_0x3819b4(0x87)]=this;}[_0x57c319(0x70)](){const _0x15734f=_0x57c319;this[_0x15734f(0x6c)][_0x15734f(0x76)][_0x15734f(0x68)]||(this[_0x15734f(0x6c)][_0x15734f(0x70)](),this[_0x15734f(0x6c)]=new AbortController());}async[_0x57c319(0x80)](_0x54211c){const _0x50a81d=_0x57c319;return this[_0x50a81d(0x85)](_0x54211c)[_0x50a81d(0x88)](_0x4be18c=>{const _0x4b20b9=_0x50a81d;if(_0x4be18c instanceof _0x37b6c1)return Promise[_0x4b20b9(0x73)](_0x4be18c);if(_0x4b20b9(0x6b)==_0x4be18c[_0x4b20b9(0x7e)])return Promise[_0x4b20b9(0x71)]();throw console[_0x4b20b9(0x78)](_0x4be18c),new _0x31d766(_0x4b20b9(0x8c),null);});}async[_0x57c319(0x7a)](_0x4d6263,_0xe2ef8b){const _0x4efdac=_0x57c319,_0x57427d=this[_0x4efdac(0x79)][_0x4efdac(0x82)],_0x1ccb6c={'Content-Type':_0x4efdac(0x7c)};if(_0x4efdac(0x84)==typeof _0x4d6263)Object[_0x4efdac(0x75)](_0x1ccb6c,_0x4d6263);else{if(_0x4d6263)try{const _0x5943b1=await _0x4d6263(_0xe2ef8b);Object[_0x4efdac(0x75)](_0x1ccb6c,_0x5943b1);}catch(_0x26ebf9){return Promise[_0x4efdac(0x73)](new _0x37b6c1(_0x518fca(_0x57427d,_0x4efdac(0x8b))));}}return _0x1ccb6c;}async[_0x57c319(0x8a)](_0x3920c1,_0x2f8ec3){const _0x2fc3d8=_0x57c319,_0x5586a3=this[_0x2fc3d8(0x79)][_0x2fc3d8(0x82)];if(_0x2fc3d8(0x84)==typeof _0x3920c1)return _0x3920c1;try{return await _0x3920c1(_0x2f8ec3);}catch(_0x43cef2){return Promise[_0x2fc3d8(0x73)](new _0x37b6c1(_0x518fca(_0x5586a3,_0x2fc3d8(0x6f))));}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x49d2d7=_0xd57a;(function(_0x1a739e,_0x13f640){const _0x55f600=_0xd57a,_0x1370ab=_0x1a739e();while(!![]){try{const _0xe265d8=-parseInt(_0x55f600(0xba))/0x1*(parseInt(_0x55f600(0xbc))/0x2)+parseInt(_0x55f600(0xbd))/0x3*(-parseInt(_0x55f600(0xb6))/0x4)+-parseInt(_0x55f600(0xbf))/0x5+parseInt(_0x55f600(0xa8))/0x6*(parseInt(_0x55f600(0xb4))/0x7)+-parseInt(_0x55f600(0xdf))/0x8*(parseInt(_0x55f600(0xbb))/0x9)+parseInt(_0x55f600(0xb7))/0xa*(-parseInt(_0x55f600(0x9e))/0xb)+-parseInt(_0x55f600(0xd8))/0xc*(-parseInt(_0x55f600(0xc8))/0xd);if(_0xe265d8===_0x13f640)break;else _0x1370ab['push'](_0x1370ab['shift']());}catch(_0x506a47){_0x1370ab['push'](_0x1370ab['shift']());}}}(_0x3ec7,0x47a2c));import{default as _0x3e7f59}from'./aitextadapter.js';import{AIRequestError as _0x57d851}from'./aiadapter.js';function _0xd57a(_0x11d5d0,_0x595ee5){const _0x3ec714=_0x3ec7();return _0xd57a=function(_0xd57abf,_0x16399d){_0xd57abf=_0xd57abf-0x96;let _0x204081=_0x3ec714[_0xd57abf];return _0x204081;},_0xd57a(_0x11d5d0,_0x595ee5);}import{BedrockRuntimeClient as _0x5dfb3a,InvokeModelCommand as _0x1fe9b1,InvokeModelWithResponseStreamCommand as _0x31ec51}from'@aws-sdk/client-bedrock-runtime';function _0x3ec7(){const _0x40e8be=['signal','_prepareRequestParameters','2482640IRTpoz','json','\x0a[/INST]','completion','define','from','editor','_requestParameters','POST','ai.aws.bedrockClientConfig','config','_processProxyRequest','Instruction:\x0a','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.','send','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','bedrock-2023-05-31','stringify','utf8','preparePrompt','completions','14872SCSGFE','cohere.command','\x0a\x0aAssistant:','toString','parse','bytes','abortController','_getGeneratedText','ai.aws.requestParameters','AWSTextAdapter','722346GdcxnQ','_bedrockClientConfig','_readStreamableResponse','text','pluginName','filter','test','body','generations','join','anthropic.claude-v2','utf-8','14pBhRlb','decode','2169564AVMDvG','700IBasZn','ai.aws.apiUrl','_readStaticResponse','2411FgYXQi','9ZlqZCO','408gFfOsJ','3swXiLy','resolve','2887805UAuRyq','split','data','anthropic.claude','ai21.j2','_processAWSRequest','getModelFamily','application/json','<<SYS>>\x0a','988PryzyS','_requestHeaders','locale','map','getReader','_readAsyncIterableResponse','\x0a<</SYS>>\x0a[INST]\x0a','get','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.','ai.aws.requestHeaders','Human:\x0a','_apiUrl','length','read','AI_ERROR_UNSUPPORTED_MODEL','generation','326748qWQJNj','meta.llama','sendRequest','chunk','_prepareRequestHeaders'];_0x3ec7=function(){return _0x40e8be;};return _0x3ec7();}import{getTranslation as _0x5094db}from'../utils/common-translations.js';export default class q extends _0x3e7f59{static get[_0x49d2d7(0xac)](){const _0x565847=_0x49d2d7;return _0x565847(0xa7);}constructor(_0x1238e4){const _0xf475eb=_0x49d2d7;super(_0x1238e4),_0x1238e4[_0xf475eb(0xe9)][_0xf475eb(0xcf)](_0xf475eb(0xa6))||_0x1238e4[_0xf475eb(0xe9)][_0xf475eb(0xe3)](_0xf475eb(0xa6),{'model':_0xf475eb(0xb2),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0xf475eb(0x99),'stream':!0x0}),this[_0xf475eb(0xd3)]=_0x1238e4[_0xf475eb(0xe9)][_0xf475eb(0xcf)](_0xf475eb(0xb8)),this[_0xf475eb(0xa9)]=_0x1238e4[_0xf475eb(0xe9)][_0xf475eb(0xcf)](_0xf475eb(0xe8)),this[_0xf475eb(0xc9)]=_0x1238e4[_0xf475eb(0xe9)][_0xf475eb(0xcf)](_0xf475eb(0xd1)),this[_0xf475eb(0xe6)]=_0x1238e4[_0xf475eb(0xe9)][_0xf475eb(0xcf)](_0xf475eb(0xa6));}async[_0x49d2d7(0xda)]({query:_0x4aa3b1,context:_0x54fc70,onData:_0x3a42bc,actionId:_0x46b850}){const _0x2bc66a=_0x49d2d7,{model:_0x9d67ce,stream:_0xc8d59,..._0x1bc858}=await this[_0x2bc66a(0xde)](this[_0x2bc66a(0xe6)],_0x46b850),_0x3f66f1={'prompt':await this[_0x2bc66a(0x9c)](_0x4aa3b1,_0x54fc70,_0x9d67ce,_0x46b850),..._0x1bc858};this[_0x2bc66a(0xd3)]?await this[_0x2bc66a(0xea)](_0x3f66f1,_0x9d67ce,_0xc8d59,_0x3a42bc,_0x46b850):await this[_0x2bc66a(0xc4)](_0x3f66f1,_0x9d67ce,_0xc8d59,_0x3a42bc);}async[_0x49d2d7(0x9c)](_0x1293a9,_0x4d7cdd,_0x29a4bf,_0x47cdcc){const _0xd3d552=_0x49d2d7;let _0x2602b0,_0x268f26;return _0x4d7cdd?(_0x2602b0=_0xd3d552(0xd0),_0x268f26=_0xd3d552(0xeb)+_0x1293a9+_0xd3d552(0x98)+_0x4d7cdd):(_0x2602b0=_0xd3d552(0x96),_0x268f26=_0x1293a9),_0xd3d552(0xd9)==this[_0xd3d552(0xc5)](_0x29a4bf)?_0xd3d552(0xc7)+_0x2602b0+_0xd3d552(0xce)+_0x268f26+_0xd3d552(0xe1):_0xd3d552(0xd2)+_0x2602b0+'\x0a'+_0x268f26+_0xd3d552(0xa0);}[_0x49d2d7(0xc5)](_0x498c46){const _0xd84b95=_0x49d2d7;if(/^anthropic\.claude/[_0xd84b95(0xae)](_0x498c46))return _0xd84b95(0xc2);if(/^ai21\.j2/[_0xd84b95(0xae)](_0x498c46))return _0xd84b95(0xc3);if(/^cohere\.command/[_0xd84b95(0xae)](_0x498c46))return _0xd84b95(0x9f);if(/^meta\.llama/[_0xd84b95(0xae)](_0x498c46))return _0xd84b95(0xd9);throw new _0x57d851(_0x5094db(this[_0xd84b95(0xe5)][_0xd84b95(0xca)],_0xd84b95(0xd6),_0x498c46));}async[_0x49d2d7(0xea)](_0x25c7eb,_0x4ecb22,_0x59f9bd,_0x40042f,_0x1aedde){const _0x574af7=_0x49d2d7,_0x11b07b={'method':_0x574af7(0xe7),'headers':await this[_0x574af7(0xdc)](this[_0x574af7(0xc9)],_0x1aedde),'body':JSON[_0x574af7(0x9a)]({..._0x25c7eb,'model':_0x4ecb22,'stream':_0x59f9bd}),'signal':this[_0x574af7(0xa4)][_0x574af7(0xdd)]},_0x48c979=await fetch(this[_0x574af7(0xd3)],_0x11b07b);_0x59f9bd?await this[_0x574af7(0xaa)](_0x48c979,_0x4ecb22,_0x40042f):await this[_0x574af7(0xb9)](_0x48c979,_0x4ecb22,_0x40042f);}async[_0x49d2d7(0xc4)](_0x2cec0f,_0x39755f,_0x2c772b,_0x4ef789){const _0x2cbc96=_0x49d2d7,_0x69a4db=new _0x5dfb3a(this[_0x2cbc96(0xa9)]),_0x2e613f={'body':JSON[_0x2cbc96(0x9a)](_0x2cec0f),'contentType':_0x2cbc96(0xc6),'accept':_0x2cbc96(0xc6),'modelId':_0x39755f};let _0x421b98;if(_0x2c772b){const _0x1233e1=new _0x31ec51(_0x2e613f);_0x421b98=await _0x69a4db[_0x2cbc96(0x97)](_0x1233e1,{'abortSignal':this[_0x2cbc96(0xa4)][_0x2cbc96(0xdd)]}),await this[_0x2cbc96(0xcd)](_0x421b98,_0x39755f,_0x4ef789);}else{const _0x7213b5=new _0x1fe9b1(_0x2e613f);_0x421b98=await _0x69a4db[_0x2cbc96(0x97)](_0x7213b5,{'abortSignal':this[_0x2cbc96(0xa4)][_0x2cbc96(0xdd)]}),await this[_0x2cbc96(0xb9)](_0x421b98,_0x39755f,_0x4ef789);}}async[_0x49d2d7(0xcd)](_0x41c20d,_0x47e471,_0x4dc924){const _0x1db732=_0x49d2d7,_0x368102=_0x41c20d[_0x1db732(0xaf)],_0x2b9e2d=new TextDecoder(_0x1db732(0xb3));let _0x1d7143='';for await(const _0x245eb7 of _0x368102)if(_0x245eb7[_0x1db732(0xdb)]){const _0xf4a28c=_0x2b9e2d[_0x1db732(0xb5)](_0x245eb7[_0x1db732(0xdb)][_0x1db732(0xa3)]),_0x284d01=JSON[_0x1db732(0xa2)](_0xf4a28c);_0x1d7143+=this[_0x1db732(0xa5)](_0x284d01,_0x47e471),_0x4dc924(_0x1d7143);}return Promise[_0x1db732(0xbe)]();}async[_0x49d2d7(0xaa)](_0x448960,_0x5ce638,_0x2bb0fe){const _0x4e9150=_0x49d2d7,_0xee5108=_0x448960[_0x4e9150(0xaf)],_0x40048d=new TextDecoder(_0x4e9150(0xb3)),_0x1c292d=_0xee5108[_0x4e9150(0xcc)]();let _0xac7410='',_0xf3b38e='',_0x2a5266=!0x1;for(;!_0x2a5266;){const {done:_0x56e9dc,value:_0x46f407}=await _0x1c292d[_0x4e9150(0xd5)]();if(_0x2a5266=_0x56e9dc,_0x2a5266)break;const _0x5b7642=(_0xac7410+_0x40048d[_0x4e9150(0xb5)](_0x46f407))[_0x4e9150(0xc0)]('\x0a')[_0x4e9150(0xcb)](_0x5b4e48=>{const _0x4b0cc6=_0x4e9150;try{return _0xac7410='',JSON[_0x4b0cc6(0xa2)](_0x5b4e48);}catch(_0x22a396){return _0xac7410=_0x5b4e48,null;}})[_0x4e9150(0xad)](_0x1a2189=>null!==_0x1a2189);_0x5b7642[_0x4e9150(0xd4)]&&(_0xf3b38e+=_0x5b7642[_0x4e9150(0xcb)](_0x287fe5=>this[_0x4e9150(0xa5)](_0x287fe5,_0x5ce638))[_0x4e9150(0xb1)](''),_0x2bb0fe(_0xf3b38e));}return Promise[_0x4e9150(0xbe)]();}async[_0x49d2d7(0xb9)](_0x582bbd,_0x26b487,_0x1abcf1){const _0x499562=_0x49d2d7;let _0x1d8803;return _0x1d8803=_0x582bbd instanceof Response?await _0x582bbd[_0x499562(0xe0)]():JSON[_0x499562(0xa2)](Buffer[_0x499562(0xe4)](_0x582bbd[_0x499562(0xaf)])[_0x499562(0xa1)](_0x499562(0x9b))),(_0x1abcf1(this[_0x499562(0xa5)](_0x1d8803,_0x26b487)),Promise[_0x499562(0xbe)]());}[_0x49d2d7(0xa5)](_0x31a9a4,_0x4dff1f){const _0x21087b=_0x49d2d7;switch(this[_0x21087b(0xc5)](_0x4dff1f)){case _0x21087b(0xc2):return _0x31a9a4[_0x21087b(0xe2)];case _0x21087b(0xc3):return _0x31a9a4[_0x21087b(0x9d)][0x0][_0x21087b(0xc1)][_0x21087b(0xab)];case _0x21087b(0x9f):return _0x31a9a4[_0x21087b(0xb0)][0x0][_0x21087b(0xab)];case _0x21087b(0xd9):return _0x31a9a4[_0x21087b(0xd7)];}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x52d75f=_0x19b1;(function(_0x44df87,_0x2a4351){const _0x1e0f1e=_0x19b1,_0x2d1cc9=_0x44df87();while(!![]){try{const _0x439c9a=-parseInt(_0x1e0f1e(0x1eb))/0x1*(-parseInt(_0x1e0f1e(0x1df))/0x2)+-parseInt(_0x1e0f1e(0x1d6))/0x3*(-parseInt(_0x1e0f1e(0x20e))/0x4)+parseInt(_0x1e0f1e(0x1db))/0x5+-parseInt(_0x1e0f1e(0x1f8))/0x6+parseInt(_0x1e0f1e(0x1f5))/0x7+-parseInt(_0x1e0f1e(0x1d9))/0x8*(-parseInt(_0x1e0f1e(0x1e1))/0x9)+-parseInt(_0x1e0f1e(0x1ff))/0xa*(parseInt(_0x1e0f1e(0x211))/0xb);if(_0x439c9a===_0x2a4351)break;else _0x2d1cc9['push'](_0x2d1cc9['shift']());}catch(_0x4cfbe1){_0x2d1cc9['push'](_0x2d1cc9['shift']());}}}(_0x215d,0x4ed72));import{default as _0x1abded}from'./aitextadapter.js';function _0x215d(){const _0x2dc097=['_requestHeaders','_apiUrl','_readStaticResponse','5iGwvME','message','AI_ERROR_MODERATION','_prepareRequestParameters','getReader','content','data:\x20','https://api.openai.com/v1/chat/completions','body','[DONE]','1054375OnDWUK','delta','filter','3068934XuRyjl','define','replace','map','abortController','_isBufferIncomplete','stringify','29000jMsMbg','ai.openAI.requestHeaders','Moderation','resolve','parse','ai.openAI.requestParameters','join','choices','signal','ai.openAI.apiUrl','_requestParameters','gpt-3.5-turbo','context_length_exceeded','sendRequest','read','12wHaiik','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','_readStreamableResponse','11efrfBa','split','Instruction:\x0a','OpenAITextAdapter','POST','_prepareRequestHeaders','AI_ERROR_CONTEXT_LENGTH','decode','editor','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.','reject','prepareMessages','390777yXVWRw','length','includes','7208emgUkz','stream','265960GkUrom','config','json','locale','95288IKkFxV','system','45GWtKtR','user','get','pluginName','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.','text','_cleanUpData'];_0x215d=function(){return _0x2dc097;};return _0x215d();}import{AIRequestError as _0x50816e}from'./aiadapter.js';function _0x19b1(_0x2a9d02,_0x2769a9){const _0x215d14=_0x215d();return _0x19b1=function(_0x19b1ee,_0x3b8078){_0x19b1ee=_0x19b1ee-0x1ce;let _0x26071a=_0x215d14[_0x19b1ee];return _0x26071a;},_0x19b1(_0x2a9d02,_0x2769a9);}import{getTranslation as _0x3665bf}from'../utils/common-translations.js';export default class M extends _0x1abded{static get[_0x52d75f(0x1e4)](){const _0x5747a4=_0x52d75f;return _0x5747a4(0x214);}constructor(_0x411563){const _0x4cbed1=_0x52d75f;super(_0x411563),_0x411563[_0x4cbed1(0x1dc)][_0x4cbed1(0x1f9)](_0x4cbed1(0x208),_0x4cbed1(0x1f2)),_0x411563[_0x4cbed1(0x1dc)][_0x4cbed1(0x1e3)](_0x4cbed1(0x204))||_0x411563[_0x4cbed1(0x1dc)][_0x4cbed1(0x1f9)](_0x4cbed1(0x204),{'model':_0x4cbed1(0x20a),'max_tokens':0x7d0,'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x4cbed1(0x1e9)]=_0x411563[_0x4cbed1(0x1dc)][_0x4cbed1(0x1e3)](_0x4cbed1(0x208)),this[_0x4cbed1(0x1e8)]=_0x411563[_0x4cbed1(0x1dc)][_0x4cbed1(0x1e3)](_0x4cbed1(0x200))||{},this[_0x4cbed1(0x209)]=_0x411563[_0x4cbed1(0x1dc)][_0x4cbed1(0x1e3)](_0x4cbed1(0x204));}async[_0x52d75f(0x20c)]({query:_0x2cbb84,context:_0x3fa036,onData:_0x5fe1f0,actionId:_0x23206c}){const _0x45a229=_0x52d75f,_0x5a25a7=this[_0x45a229(0x1d2)][_0x45a229(0x1de)],_0x3af61c=await this[_0x45a229(0x1d5)](_0x2cbb84,_0x3fa036,_0x23206c),_0x4534c9=await this[_0x45a229(0x1cf)](this[_0x45a229(0x1e8)],_0x23206c),_0x40ed54=await this[_0x45a229(0x1ee)](this[_0x45a229(0x209)],_0x23206c),_0x28fee6={'messages':_0x3af61c,..._0x40ed54},_0x543ba3={'method':_0x45a229(0x1ce),'headers':_0x4534c9,'body':JSON[_0x45a229(0x1fe)](_0x28fee6),'signal':this[_0x45a229(0x1fc)][_0x45a229(0x207)]},_0x4f3a7c=await fetch(this[_0x45a229(0x1e9)],_0x543ba3);if(_0x4f3a7c['ok'])return _0x40ed54[_0x45a229(0x1da)]?await this[_0x45a229(0x210)](_0x4f3a7c,_0x5fe1f0):await this[_0x45a229(0x1ea)](_0x4f3a7c,_0x5fe1f0),Promise[_0x45a229(0x202)]();{const _0x58c8f3=await _0x4f3a7c[_0x45a229(0x1e6)]();return _0x58c8f3[_0x45a229(0x1d8)](_0x45a229(0x20b))?Promise[_0x45a229(0x1d4)](new _0x50816e(_0x3665bf(_0x5a25a7,_0x45a229(0x1d0)))):_0x58c8f3[_0x45a229(0x1d8)](_0x45a229(0x201))?Promise[_0x45a229(0x1d4)](new _0x50816e(_0x3665bf(_0x5a25a7,_0x45a229(0x1ed)))):Promise[_0x45a229(0x1d4)](new Error(_0x58c8f3));}}async[_0x52d75f(0x1d5)](_0x570ab0,_0x283467,_0x5a09fd){const _0x28d566=_0x52d75f;let _0x3aae29,_0x9f6abf;return _0x283467?(_0x3aae29=_0x28d566(0x1e5),_0x9f6abf=_0x28d566(0x213)+_0x570ab0+_0x28d566(0x20f)+_0x283467):(_0x3aae29=_0x28d566(0x1d3),_0x9f6abf=_0x570ab0),[{'role':_0x28d566(0x1e0),'content':_0x3aae29},{'role':_0x28d566(0x1e2),'content':_0x9f6abf}];}async[_0x52d75f(0x210)](_0x4c89c7,_0x475714){const _0x3f0d4e=_0x52d75f,_0x18debc=_0x4c89c7[_0x3f0d4e(0x1f3)][_0x3f0d4e(0x1ef)](),_0x326289=new TextDecoder();let _0x545ab3='',_0x5a2a72='',_0x472f3e='',_0x393379=!0x1;for(;!_0x393379;){const {done:_0x58c57e,value:_0x822fef}=await _0x18debc[_0x3f0d4e(0x20d)](),_0x21e581=_0x545ab3+_0x326289[_0x3f0d4e(0x1d1)](_0x822fef);let _0x5d6400='';_0x393379=_0x58c57e;try{_0x5d6400=this[_0x3f0d4e(0x1e7)](_0x21e581),_0x545ab3='';}catch(_0x2aa786){_0x545ab3=_0x21e581;continue;}_0x5a2a72+=_0x5d6400,!_0x393379&&this[_0x3f0d4e(0x1fd)](_0x5a2a72)||_0x5a2a72&&(_0x472f3e+=_0x5a2a72,_0x5a2a72='',_0x475714(_0x472f3e));}return Promise[_0x3f0d4e(0x202)]();}async[_0x52d75f(0x1ea)](_0x5a75e4,_0x1edab9){const _0x2a1edf=_0x52d75f;return _0x1edab9((await _0x5a75e4[_0x2a1edf(0x1dd)]())[_0x2a1edf(0x206)][0x0][_0x2a1edf(0x1ec)][_0x2a1edf(0x1f0)]),Promise[_0x2a1edf(0x202)]();}[_0x52d75f(0x1fd)](_0x418740){const _0x190dfd=_0x52d75f,_0x3d7109=_0x418740[_0x190dfd(0x212)]('<')[_0x190dfd(0x1d7)]!==_0x418740[_0x190dfd(0x212)]('>')[_0x190dfd(0x1d7)],_0x4998c7=_0x418740[_0x190dfd(0x1d7)]<0x1e;return _0x3d7109&&_0x4998c7;}[_0x52d75f(0x1e7)](_0x4e0e7f){const _0x42d450=_0x52d75f;return _0x4e0e7f[_0x42d450(0x212)](/\n(?![^{]*\})/g)[_0x42d450(0x1fb)](_0x5d5553=>_0x5d5553[_0x42d450(0x1fa)](_0x42d450(0x1f1),''))[_0x42d450(0x1f7)](_0x12f38d=>_0x12f38d&&_0x12f38d[_0x42d450(0x1d7)]>0x0&&_0x42d450(0x1f4)!==_0x12f38d)[_0x42d450(0x1fb)](_0x32bae7=>{const _0x3c2e2b=_0x42d450,{choices:_0x191ba9}=JSON[_0x3c2e2b(0x203)](_0x32bae7);if(_0x191ba9[0x0]&&_0x191ba9[0x0][_0x3c2e2b(0x1f6)]&&_0x191ba9[0x0][_0x3c2e2b(0x1f6)][_0x3c2e2b(0x1f0)])return _0x191ba9[0x0][_0x3c2e2b(0x1f6)][_0x3c2e2b(0x1f0)];})[_0x42d450(0x1f7)](_0x51687a=>_0x51687a)[_0x42d450(0x205)]('');}}
|
package/src/aiassistant.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x34f95d=_0x5471;(function(_0x13fd8f,_0x5cdaf3){const _0x450658=_0x5471,_0x535448=_0x13fd8f();while(!![]){try{const _0x2443cb=-parseInt(_0x450658(0x1c0))/0x1*(parseInt(_0x450658(0x1e6))/0x2)+-parseInt(_0x450658(0x1a9))/0x3*(-parseInt(_0x450658(0x201))/0x4)+parseInt(_0x450658(0x1ed))/0x5+-parseInt(_0x450658(0x1fb))/0x6*(-parseInt(_0x450658(0x1ea))/0x7)+parseInt(_0x450658(0x1da))/0x8*(-parseInt(_0x450658(0x1a2))/0x9)+-parseInt(_0x450658(0x20e))/0xa+parseInt(_0x450658(0x1ac))/0xb*(-parseInt(_0x450658(0x1c6))/0xc);if(_0x2443cb===_0x5cdaf3)break;else _0x535448['push'](_0x535448['shift']());}catch(_0x2c443a){_0x535448['push'](_0x535448['shift']());}}}(_0x34c7,0x398b7));import{CKEditorError as _0x292c3e}from'ckeditor5/src/utils.js';function _0x5471(_0x12036d,_0x4cf1dc){const _0x34c746=_0x34c7();return _0x5471=function(_0x5471e3,_0x2c861f){_0x5471e3=_0x5471e3-0x195;let _0x139c9=_0x34c746[_0x5471e3];return _0x139c9;},_0x5471(_0x12036d,_0x4cf1dc);}function _0x34c7(){const _0x3bac33=['translateArabic','translateSpanish','confident','aiLicenseKeyInvalid','Simplify\x20language','_licenseKeyCheckInterval','direct','continue','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','Improve\x20writing','casual','makeShorter','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','requires','Translate\x20the\x20content\x20to\x20Spanish\x20language.','Journalism','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','6RAwjop','pluginName','includes','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','Translate\x20the\x20content\x20to\x20Hindi\x20language.','config','899964FwCSlX','German','Business','Summarize','Make\x20longer','Poetic','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','Translate','translatePortuguese','Direct','professional','simplifyLanguage','Translate\x20the\x20content\x20to\x20German\x20language.','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','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.','Change\x20tone','translateHindi','aiLicenseKeyTrialLimit:operations','friendly','Confident','138392Xoqlcz','poetic','French','groupId','summarize','find','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','ai-trial-license-key-reached-limit-changes','set','Legal','legal','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','35680XDLxOQ','define','ai.aiAssistant.removeCommands','Generate\x20from\x20selection','70kUJBoH','Portuguese','Continue','997430DWorje','editOrReview','ai.aiAssistant.extraCommandGroups','get','Friendly','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','Translate\x20the\x20content\x20to\x20Arabic\x20language.','Translate\x20to\x20%0','Spanish','generate','editor','Arabic','Translate\x20the\x20content\x20to\x20French\x20language.','Edit\x20or\x20review','237246krSguu','journalism','destroy','aiLicenseKeyValid','changeTone','licenseKey','541864KIVUuV','push','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','forEach','ai.aiAssistant.commands','Translate\x20the\x20content\x20to\x20English\x20language.','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','changeStyle','translateFrench','business','info','translate','translateGerman','819340eCYfJt','concat','filter','init','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','English','Change\x20style','Casual','AIAssistant','ai-invalid-license-key','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','Hindi','translateEnglish','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Make\x20shorter','81PvVjLa','aiLicenseKeyTrial','locale','commands','makeLonger','translateChinese','improveWriting','3lvcZuT','Professional','Simplified\x20Chinese','22IrJfnb','Translate\x20the\x20content\x20to\x20Portuguese\x20language.'];_0x34c7=function(){return _0x3bac33;};return _0x34c7();}import{Plugin as _0xa2b1e0}from'ckeditor5/src/core.js';import _0x5df56e from'./aiassistantui.js';import _0x3dac2d from'./aiassistantediting.js';import{getTranslation as _0x4e0847}from'./utils/common-translations.js';export default class r extends _0xa2b1e0{static get[_0x34f95d(0x1bc)](){return[_0x5df56e,_0x3dac2d];}static get[_0x34f95d(0x1c1)](){const _0x5a385a=_0x34f95d;return _0x5a385a(0x19a);}constructor(_0x247bc8){const _0x48d71e=_0x34f95d;super(_0x247bc8);const _0x480b84=_0x247bc8[_0x48d71e(0x1c5)];_0x480b84[_0x48d71e(0x1e7)](_0x48d71e(0x205),getDefaultCommands(_0x247bc8[_0x48d71e(0x1a4)])),_0x480b84[_0x48d71e(0x1e7)](_0x48d71e(0x1ef),[]),_0x480b84[_0x48d71e(0x1e7)](_0x48d71e(0x1e8),[]);const _0x536d1a=_0x480b84[_0x48d71e(0x1f0)](_0x48d71e(0x205)),_0x303906=_0x480b84[_0x48d71e(0x1f0)](_0x48d71e(0x1ef)),_0x7fc6d2=_0x480b84[_0x48d71e(0x1f0)](_0x48d71e(0x1e8));_0x303906[_0x48d71e(0x204)](_0x3d364f=>{const _0x2eee5a=_0x48d71e,_0x3c2a1a=_0x536d1a[_0x2eee5a(0x1df)](_0x2ef861=>_0x2ef861[_0x2eee5a(0x1dd)]===_0x3d364f[_0x2eee5a(0x1dd)]);_0x3c2a1a?_0x3c2a1a[_0x2eee5a(0x1a5)]=_0x3c2a1a[_0x2eee5a(0x1a5)][_0x2eee5a(0x20f)](_0x3d364f[_0x2eee5a(0x1a5)]):_0x536d1a[_0x2eee5a(0x202)](_0x3d364f);}),_0x536d1a[_0x48d71e(0x204)](_0x3c0365=>{const _0x2c1509=_0x48d71e;_0x3c0365[_0x2c1509(0x1a5)]=_0x3c0365[_0x2c1509(0x1a5)][_0x2c1509(0x210)](_0x940ea4=>!_0x7fc6d2[_0x2c1509(0x1c2)](_0x940ea4['id']));}),_0x480b84[_0x48d71e(0x1e2)](_0x48d71e(0x205),_0x536d1a);}[_0x34f95d(0x195)](){const _0x53da8a=_0x34f95d,_0x189744=this[_0x53da8a(0x1f7)];this[_0x53da8a(0x200)]=_0x189744[_0x53da8a(0x1c5)][_0x53da8a(0x1f0)](_0x53da8a(0x200)),this[_0x53da8a(0x1b3)]=setInterval(()=>{const _0xd931d7=_0x53da8a;let _0x2ddc7e;for(const _0x13f94b in _0x189744){const _0x3ac914=_0x13f94b,_0x50be53=_0x189744[_0x3ac914];if(_0xd931d7(0x1a3)===_0x50be53||_0xd931d7(0x1b1)===_0x50be53||_0xd931d7(0x1fe)===_0x50be53||_0xd931d7(0x1d7)===_0x50be53){delete _0x189744[_0x3ac914],_0x2ddc7e=_0x50be53;break;}}if(_0xd931d7(0x1b1)===_0x2ddc7e)throw clearInterval(this[_0xd931d7(0x1b3)]),new _0x292c3e(_0xd931d7(0x19b),null);if(_0xd931d7(0x1a3)===_0x2ddc7e&&console[_0xd931d7(0x20b)](_0xd931d7(0x1d4)),_0xd931d7(0x1d7)===_0x2ddc7e)throw clearInterval(this[_0xd931d7(0x1b3)]),new _0x292c3e(_0xd931d7(0x1e1),null);_0xd931d7(0x1fe)===_0x2ddc7e&&clearInterval(this[_0xd931d7(0x1b3)]);},0x3e8);}[_0x34f95d(0x1fd)](){const _0x42bb6e=_0x34f95d;this[_0x42bb6e(0x1b3)]&&clearInterval(this[_0x42bb6e(0x1b3)]);}}export function getDefaultCommands(_0x2639b4){const _0x40e581=_0x34f95d;return[{'groupId':_0x40e581(0x1ee),'groupLabel':_0x4e0847(_0x2639b4,_0x40e581(0x1fa)),'commands':[{'id':_0x40e581(0x1a8),'label':_0x4e0847(_0x2639b4,_0x40e581(0x1b8)),'prompt':_0x40e581(0x1bf)},{'id':_0x40e581(0x1ba),'label':_0x4e0847(_0x2639b4,_0x40e581(0x1a1)),'prompt':_0x40e581(0x1b7)},{'id':_0x40e581(0x1a6),'label':_0x4e0847(_0x2639b4,_0x40e581(0x1ca)),'prompt':_0x40e581(0x19c)},{'id':_0x40e581(0x1d1),'label':_0x4e0847(_0x2639b4,_0x40e581(0x1b2)),'prompt':_0x40e581(0x1bb)}]},{'groupId':_0x40e581(0x1f6),'groupLabel':_0x4e0847(_0x2639b4,_0x40e581(0x1e9)),'commands':[{'id':_0x40e581(0x1de),'label':_0x4e0847(_0x2639b4,_0x40e581(0x1c9)),'prompt':_0x40e581(0x1b6)},{'id':_0x40e581(0x1b5),'label':_0x4e0847(_0x2639b4,_0x40e581(0x1ec)),'prompt':_0x40e581(0x1c3)}]},{'groupId':_0x40e581(0x1ff),'groupLabel':_0x4e0847(_0x2639b4,_0x40e581(0x1d5)),'commands':[{'id':_0x40e581(0x1d0),'label':_0x4e0847(_0x2639b4,_0x40e581(0x1aa)),'prompt':_0x40e581(0x19d)},{'id':_0x40e581(0x1b9),'label':_0x4e0847(_0x2639b4,_0x40e581(0x199)),'prompt':_0x40e581(0x1d3)},{'id':_0x40e581(0x1b4),'label':_0x4e0847(_0x2639b4,_0x40e581(0x1cf)),'prompt':_0x40e581(0x207)},{'id':_0x40e581(0x1b0),'label':_0x4e0847(_0x2639b4,_0x40e581(0x1d9)),'prompt':_0x40e581(0x196)},{'id':_0x40e581(0x1d8),'label':_0x4e0847(_0x2639b4,_0x40e581(0x1f1)),'prompt':_0x40e581(0x1f2)}]},{'groupId':_0x40e581(0x208),'groupLabel':_0x4e0847(_0x2639b4,_0x40e581(0x198)),'commands':[{'id':_0x40e581(0x20a),'label':_0x4e0847(_0x2639b4,_0x40e581(0x1c8)),'prompt':_0x40e581(0x1cc)},{'id':_0x40e581(0x1e4),'label':_0x4e0847(_0x2639b4,_0x40e581(0x1e3)),'prompt':_0x40e581(0x1e0)},{'id':_0x40e581(0x1fc),'label':_0x4e0847(_0x2639b4,_0x40e581(0x1be)),'prompt':_0x40e581(0x1a0)},{'id':_0x40e581(0x1db),'label':_0x4e0847(_0x2639b4,_0x40e581(0x1cb)),'prompt':_0x40e581(0x1e5)}]},{'groupId':_0x40e581(0x20c),'groupLabel':_0x4e0847(_0x2639b4,_0x40e581(0x1cd)),'commands':[{'id':_0x40e581(0x19f),'label':_0x4e0847(_0x2639b4,_0x40e581(0x1f4),[_0x4e0847(_0x2639b4,_0x40e581(0x197))]),'prompt':_0x40e581(0x206)},{'id':_0x40e581(0x1af),'label':_0x4e0847(_0x2639b4,_0x40e581(0x1f4),[_0x4e0847(_0x2639b4,_0x40e581(0x1f5))]),'prompt':_0x40e581(0x1bd)},{'id':_0x40e581(0x1ce),'label':_0x4e0847(_0x2639b4,_0x40e581(0x1f4),[_0x4e0847(_0x2639b4,_0x40e581(0x1eb))]),'prompt':_0x40e581(0x1ad)},{'id':_0x40e581(0x20d),'label':_0x4e0847(_0x2639b4,_0x40e581(0x1f4),[_0x4e0847(_0x2639b4,_0x40e581(0x1c7))]),'prompt':_0x40e581(0x1d2)},{'id':_0x40e581(0x209),'label':_0x4e0847(_0x2639b4,_0x40e581(0x1f4),[_0x4e0847(_0x2639b4,_0x40e581(0x1dc))]),'prompt':_0x40e581(0x1f9)},{'id':_0x40e581(0x1a7),'label':_0x4e0847(_0x2639b4,_0x40e581(0x1f4),[_0x4e0847(_0x2639b4,_0x40e581(0x1ab))]),'prompt':_0x40e581(0x203)},{'id':_0x40e581(0x1d6),'label':_0x4e0847(_0x2639b4,_0x40e581(0x1f4),[_0x4e0847(_0x2639b4,_0x40e581(0x19e))]),'prompt':_0x40e581(0x1c4)},{'id':_0x40e581(0x1ae),'label':_0x4e0847(_0x2639b4,_0x40e581(0x1f4),[_0x4e0847(_0x2639b4,_0x40e581(0x1f8))]),'prompt':_0x40e581(0x1f3)}]}];}
|
|
23
|
+
const _0x32e058=_0xa676;function _0xa676(_0x3ce31a,_0x19cc85){const _0x1fab8b=_0x1fab();return _0xa676=function(_0xa67636,_0x4e8dbb){_0xa67636=_0xa67636-0x10d;let _0x2951e6=_0x1fab8b[_0xa67636];return _0x2951e6;},_0xa676(_0x3ce31a,_0x19cc85);}(function(_0x3a3c28,_0x67f167){const _0x127ca8=_0xa676,_0x1d8162=_0x3a3c28();while(!![]){try{const _0x5ec7c=parseInt(_0x127ca8(0x122))/0x1*(parseInt(_0x127ca8(0x121))/0x2)+-parseInt(_0x127ca8(0x177))/0x3+parseInt(_0x127ca8(0x13a))/0x4*(-parseInt(_0x127ca8(0x16a))/0x5)+-parseInt(_0x127ca8(0x160))/0x6*(-parseInt(_0x127ca8(0x11d))/0x7)+-parseInt(_0x127ca8(0x11b))/0x8*(-parseInt(_0x127ca8(0x157))/0x9)+-parseInt(_0x127ca8(0x114))/0xa+parseInt(_0x127ca8(0x15f))/0xb;if(_0x5ec7c===_0x67f167)break;else _0x1d8162['push'](_0x1d8162['shift']());}catch(_0x4bebb4){_0x1d8162['push'](_0x1d8162['shift']());}}}(_0x1fab,0x90c1d));import{CKEditorError as _0x5d42e3}from'ckeditor5/src/utils.js';import{Plugin as _0x312ad4}from'ckeditor5/src/core.js';import _0x323e29 from'./aiassistantui.js';import _0x1074a2 from'./aiassistantediting.js';import{getTranslation as _0x40865e}from'./utils/common-translations.js';export default class r extends _0x312ad4{static get[_0x32e058(0x15a)](){return[_0x323e29,_0x1074a2];}static get[_0x32e058(0x14d)](){const _0x3ffdcf=_0x32e058;return _0x3ffdcf(0x162);}constructor(_0x4dd817){const _0x1f2792=_0x32e058;super(_0x4dd817);const _0x292b98=_0x4dd817[_0x1f2792(0x133)];_0x292b98[_0x1f2792(0x161)](_0x1f2792(0x147),getDefaultCommands(_0x4dd817[_0x1f2792(0x12b)])),_0x292b98[_0x1f2792(0x161)](_0x1f2792(0x13e),[]),_0x292b98[_0x1f2792(0x161)](_0x1f2792(0x125),[]);const _0x405912=_0x292b98[_0x1f2792(0x13f)](_0x1f2792(0x147)),_0x33d4d6=_0x292b98[_0x1f2792(0x13f)](_0x1f2792(0x13e)),_0x1560ae=_0x292b98[_0x1f2792(0x13f)](_0x1f2792(0x125));_0x33d4d6[_0x1f2792(0x136)](_0x13d6ed=>{const _0x3137cb=_0x1f2792,_0x510e60=_0x405912[_0x3137cb(0x11f)](_0x4cb7ca=>_0x4cb7ca[_0x3137cb(0x17a)]===_0x13d6ed[_0x3137cb(0x17a)]);_0x510e60?_0x510e60[_0x3137cb(0x115)]=_0x510e60[_0x3137cb(0x115)][_0x3137cb(0x13d)](_0x13d6ed[_0x3137cb(0x115)]):_0x405912[_0x3137cb(0x150)](_0x13d6ed);}),_0x405912[_0x1f2792(0x136)](_0x19d2da=>{const _0x3108ac=_0x1f2792;_0x19d2da[_0x3108ac(0x115)]=_0x19d2da[_0x3108ac(0x115)][_0x3108ac(0x13c)](_0x457deb=>!_0x1560ae[_0x3108ac(0x159)](_0x457deb['id']));}),_0x292b98[_0x1f2792(0x134)](_0x1f2792(0x147),_0x405912);}[_0x32e058(0x14a)](){const _0x1dd121=_0x32e058,_0x546603=this[_0x1dd121(0x132)];this[_0x1dd121(0x144)]=_0x546603[_0x1dd121(0x133)][_0x1dd121(0x13f)](_0x1dd121(0x144)),this[_0x1dd121(0x130)]=setInterval(()=>{const _0x2296a7=_0x1dd121;let _0x464175;for(const _0x3d8345 in _0x546603){const _0x572ad1=_0x3d8345,_0x398ce0=_0x546603[_0x572ad1];if(_0x2296a7(0x14e)===_0x398ce0||_0x2296a7(0x145)===_0x398ce0||_0x2296a7(0x17b)===_0x398ce0||_0x2296a7(0x118)===_0x398ce0){delete _0x546603[_0x572ad1],_0x464175=_0x398ce0;break;}}if(_0x2296a7(0x145)===_0x464175)throw clearInterval(this[_0x2296a7(0x130)]),new _0x5d42e3(_0x2296a7(0x16d),null);if(_0x2296a7(0x14e)===_0x464175&&console[_0x2296a7(0x178)](_0x2296a7(0x180)),_0x2296a7(0x118)===_0x464175)throw clearInterval(this[_0x2296a7(0x130)]),new _0x5d42e3(_0x2296a7(0x182),null);_0x2296a7(0x17b)===_0x464175&&clearInterval(this[_0x2296a7(0x130)]);},0x3e8);}[_0x32e058(0x174)](){const _0x1dea0b=_0x32e058;this[_0x1dea0b(0x130)]&&clearInterval(this[_0x1dea0b(0x130)]);}}export function getDefaultCommands(_0x2c915d){const _0x57943f=_0x32e058;return[{'groupId':_0x57943f(0x112),'groupLabel':_0x40865e(_0x2c915d,_0x57943f(0x156)),'commands':[{'id':_0x57943f(0x137),'label':_0x40865e(_0x2c915d,_0x57943f(0x168)),'prompt':_0x57943f(0x11e)},{'id':_0x57943f(0x140),'label':_0x40865e(_0x2c915d,_0x57943f(0x15e)),'prompt':_0x57943f(0x167)},{'id':_0x57943f(0x17d),'label':_0x40865e(_0x2c915d,_0x57943f(0x13b)),'prompt':_0x57943f(0x153)},{'id':_0x57943f(0x181),'label':_0x40865e(_0x2c915d,_0x57943f(0x12e)),'prompt':_0x57943f(0x123)}]},{'groupId':_0x57943f(0x166),'groupLabel':_0x40865e(_0x2c915d,_0x57943f(0x175)),'commands':[{'id':_0x57943f(0x152),'label':_0x40865e(_0x2c915d,_0x57943f(0x14f)),'prompt':_0x57943f(0x15d)},{'id':_0x57943f(0x158),'label':_0x40865e(_0x2c915d,_0x57943f(0x138)),'prompt':_0x57943f(0x11c)}]},{'groupId':_0x57943f(0x110),'groupLabel':_0x40865e(_0x2c915d,_0x57943f(0x187)),'commands':[{'id':_0x57943f(0x165),'label':_0x40865e(_0x2c915d,_0x57943f(0x12d)),'prompt':_0x57943f(0x14c)},{'id':_0x57943f(0x12a),'label':_0x40865e(_0x2c915d,_0x57943f(0x183)),'prompt':_0x57943f(0x16c)},{'id':_0x57943f(0x17f),'label':_0x40865e(_0x2c915d,_0x57943f(0x142)),'prompt':_0x57943f(0x10e)},{'id':_0x57943f(0x16f),'label':_0x40865e(_0x2c915d,_0x57943f(0x163)),'prompt':_0x57943f(0x15b)},{'id':_0x57943f(0x17c),'label':_0x40865e(_0x2c915d,_0x57943f(0x135)),'prompt':_0x57943f(0x173)}]},{'groupId':_0x57943f(0x124),'groupLabel':_0x40865e(_0x2c915d,_0x57943f(0x129)),'commands':[{'id':_0x57943f(0x15c),'label':_0x40865e(_0x2c915d,_0x57943f(0x186)),'prompt':_0x57943f(0x169)},{'id':_0x57943f(0x16e),'label':_0x40865e(_0x2c915d,_0x57943f(0x148)),'prompt':_0x57943f(0x128)},{'id':_0x57943f(0x184),'label':_0x40865e(_0x2c915d,_0x57943f(0x12c)),'prompt':_0x57943f(0x14b)},{'id':_0x57943f(0x155),'label':_0x40865e(_0x2c915d,_0x57943f(0x164)),'prompt':_0x57943f(0x151)}]},{'groupId':_0x57943f(0x170),'groupLabel':_0x40865e(_0x2c915d,_0x57943f(0x172)),'commands':[{'id':_0x57943f(0x113),'label':_0x40865e(_0x2c915d,_0x57943f(0x154),[_0x40865e(_0x2c915d,_0x57943f(0x11a))]),'prompt':_0x57943f(0x139)},{'id':_0x57943f(0x120),'label':_0x40865e(_0x2c915d,_0x57943f(0x154),[_0x40865e(_0x2c915d,_0x57943f(0x171))]),'prompt':_0x57943f(0x149)},{'id':_0x57943f(0x146),'label':_0x40865e(_0x2c915d,_0x57943f(0x154),[_0x40865e(_0x2c915d,_0x57943f(0x111))]),'prompt':_0x57943f(0x176)},{'id':_0x57943f(0x119),'label':_0x40865e(_0x2c915d,_0x57943f(0x154),[_0x40865e(_0x2c915d,_0x57943f(0x127))]),'prompt':_0x57943f(0x16b)},{'id':_0x57943f(0x116),'label':_0x40865e(_0x2c915d,_0x57943f(0x154),[_0x40865e(_0x2c915d,_0x57943f(0x179))]),'prompt':_0x57943f(0x17e)},{'id':_0x57943f(0x10f),'label':_0x40865e(_0x2c915d,_0x57943f(0x154),[_0x40865e(_0x2c915d,_0x57943f(0x185))]),'prompt':_0x57943f(0x117)},{'id':_0x57943f(0x143),'label':_0x40865e(_0x2c915d,_0x57943f(0x154),[_0x40865e(_0x2c915d,_0x57943f(0x141))]),'prompt':_0x57943f(0x126)},{'id':_0x57943f(0x12f),'label':_0x40865e(_0x2c915d,_0x57943f(0x154),[_0x40865e(_0x2c915d,_0x57943f(0x10d))]),'prompt':_0x57943f(0x131)}]}];}function _0x1fab(){const _0x5d7aee=['Make\x20longer','filter','concat','ai.aiAssistant.extraCommandGroups','get','makeShorter','Hindi','Direct','translateHindi','licenseKey','aiLicenseKeyInvalid','translatePortuguese','ai.aiAssistant.commands','Legal','Translate\x20the\x20content\x20to\x20Spanish\x20language.','init','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','pluginName','aiLicenseKeyTrial','Summarize','push','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','summarize','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Translate\x20to\x20%0','poetic','Edit\x20or\x20review','11754RlKXWT','continue','includes','requires','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','business','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','Make\x20shorter','8737399ycqduH','366cWlwuE','define','AIAssistant','Confident','Poetic','professional','generate','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','Improve\x20writing','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','46645bJwbKJ','Translate\x20the\x20content\x20to\x20German\x20language.','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','ai-invalid-license-key','legal','confident','translate','Spanish','Translate','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','destroy','Generate\x20from\x20selection','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','1369461VjZnab','info','French','groupId','aiLicenseKeyValid','friendly','makeLonger','Translate\x20the\x20content\x20to\x20French\x20language.','direct','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.','simplifyLanguage','ai-trial-license-key-reached-limit-changes','Casual','journalism','Simplified\x20Chinese','Business','Change\x20tone','Arabic','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','translateChinese','changeTone','Portuguese','editOrReview','translateEnglish','8473170xoNfZw','commands','translateFrench','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','aiLicenseKeyTrialLimit:operations','translateGerman','English','4544Gzdrpt','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','74697mkHrBb','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','find','translateSpanish','52dlwuZt','3545IsMuZg','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','changeStyle','ai.aiAssistant.removeCommands','Translate\x20the\x20content\x20to\x20Hindi\x20language.','German','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','Change\x20style','casual','locale','Journalism','Professional','Simplify\x20language','translateArabic','_licenseKeyCheckInterval','Translate\x20the\x20content\x20to\x20Arabic\x20language.','editor','config','set','Friendly','forEach','improveWriting','Continue','Translate\x20the\x20content\x20to\x20English\x20language.','164lDeCzG'];_0x1fab=function(){return _0x5d7aee;};return _0x1fab();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x16ff(){const _0x533b6f=['updateMarker','setSelection','getLastMatchingPosition','ck-fake-ai-selection_collapsed','AIAssistantEditing','pop','editingDowncast','ai.useTheme','toModel','insertContent','1526730mdBLkj','toView','markerToHighlight','ck-fake-ai-selection','createSelection','14eteeiB','ck-fake-ai-selection-candidate','data','for','2jXJIIC','selection','config','init','has','markers','from','pluginName','10JTtGkh','schema','span','model','isContent','removeMarker','length','getRange','ai-ui','markerToElement','4422087jDNqlt','getFirstRange','10rClLOS','addMarker','plugins','push','ai-ui-candidate','document','getSelectedBlocks','2783ukfWsw','end','createRange','canEditAt','createPositionAfter','2220ljJTOa','1112YQAMqE','showFakeVisualSelection','editor','isAtEnd','8CeaHJW','1749HMTEGt','getLastPosition','5886361zKQrTG','conversion','requires','change','insertContentBelow','hideFakeVisualSelection','start','ck-ai-assistant-ui_theme','processor','_setUniqueMarkerNamesInFragment','get','1023981nCdOjS','823304HnWXJP'];_0x16ff=function(){return _0x533b6f;};return _0x16ff();}const _0x23bcfb=_0x479c;function _0x479c(_0x409d3e,_0x5a14ba){const _0x16ffda=_0x16ff();return _0x479c=function(_0x479ce0,_0x5e1db4){_0x479ce0=_0x479ce0-0xd9;let _0x106e80=_0x16ffda[_0x479ce0];return _0x106e80;},_0x479c(_0x409d3e,_0x5a14ba);}(function(_0x1f0a58,_0x201528){const _0x56d099=_0x479c,_0x21bd83=_0x1f0a58();while(!![]){try{const _0x35cd66=parseInt(_0x56d099(0xf0))/0x1*(parseInt(_0x56d099(0x104))/0x2)+-parseInt(_0x56d099(0xe2))/0x3*(parseInt(_0x56d099(0xdd))/0x4)+parseInt(_0x56d099(0x118))/0x5*(parseInt(_0x56d099(0xfb))/0x6)+-parseInt(_0x56d099(0xef))/0x7*(-parseInt(_0x56d099(0xe1))/0x8)+parseInt(_0x56d099(0x116))/0x9*(-parseInt(_0x56d099(0x10c))/0xa)+-parseInt(_0x56d099(0x11f))/0xb*(-parseInt(_0x56d099(0xdc))/0xc)+-parseInt(_0x56d099(0xe4))/0xd*(parseInt(_0x56d099(0x100))/0xe);if(_0x35cd66===_0x201528)break;else _0x21bd83['push'](_0x21bd83['shift']());}catch(_0x10d36d){_0x21bd83['push'](_0x21bd83['shift']());}}}(_0x16ff,0x66510));import{Plugin as _0x490ca4}from'ckeditor5/src/core.js';import{ClipboardMarkersUtils as _0x5d02d4}from'ckeditor5/src/clipboard.js';const c=_0x23bcfb(0x114),l=_0x23bcfb(0x11c);export default class i extends _0x490ca4{static get[_0x23bcfb(0x10b)](){const _0xf7767d=_0x23bcfb;return _0xf7767d(0xf5);}static get[_0x23bcfb(0xe6)](){return[_0x5d02d4];}[_0x23bcfb(0x107)](){const _0x2cf64c=_0x23bcfb,{editor:_0x20660d}=this,_0xb23157=[_0x2cf64c(0xfe)];_0x20660d[_0x2cf64c(0x106)][_0x2cf64c(0xee)](_0x2cf64c(0xf8))&&_0xb23157[_0x2cf64c(0x11b)](_0x2cf64c(0xeb)),_0x20660d[_0x2cf64c(0xe5)][_0x2cf64c(0x103)](_0x2cf64c(0xf7))[_0x2cf64c(0xfd)]({'model':c,'view':{'classes':_0xb23157,'priority':0xc}}),_0x20660d[_0x2cf64c(0xe5)][_0x2cf64c(0x103)](_0x2cf64c(0xf7))[_0x2cf64c(0x115)]({'model':c,'view':{'name':_0x2cf64c(0x10e),'classes':[_0x2cf64c(0xfe),_0x2cf64c(0xf4)],'priority':0xc}}),_0x20660d[_0x2cf64c(0xe5)][_0x2cf64c(0x103)](_0x2cf64c(0xf7))[_0x2cf64c(0xfd)]({'model':l,'view':{'classes':[_0x2cf64c(0x101)],'priority':0x19}}),_0x20660d[_0x2cf64c(0xe5)][_0x2cf64c(0x103)](_0x2cf64c(0xf7))[_0x2cf64c(0x115)]({'model':l,'view':{'name':_0x2cf64c(0x10e),'classes':[_0x2cf64c(0x101),_0x2cf64c(0xf4)],'priority':0x19}});}[_0x23bcfb(0xde)](_0x288449){const _0x4727e0=_0x23bcfb,_0x1c6420=this[_0x4727e0(0xdf)][_0x4727e0(0x10f)],_0x53a72e=_0x288449?l:c;_0x1c6420[_0x4727e0(0xe7)](_0x16ddec=>{const _0x37bb25=_0x4727e0,_0x496c48=_0x1c6420[_0x37bb25(0x11d)][_0x37bb25(0x105)][_0x37bb25(0x117)]();if(_0x1c6420[_0x37bb25(0x109)][_0x37bb25(0x108)](_0x53a72e))_0x16ddec[_0x37bb25(0xf1)](_0x53a72e,{'range':_0x496c48});else{if(_0x496c48[_0x37bb25(0xea)][_0x37bb25(0xe0)]){const _0x132edd=_0x496c48[_0x37bb25(0xea)][_0x37bb25(0xf3)](({item:_0x4777f0})=>!_0x1c6420[_0x37bb25(0x10d)][_0x37bb25(0x110)](_0x4777f0),{'boundaries':_0x496c48});_0x16ddec[_0x37bb25(0x119)](_0x53a72e,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x16ddec[_0x37bb25(0xd9)](_0x132edd,_0x496c48[_0x37bb25(0x120)])});}else _0x16ddec[_0x37bb25(0x119)](_0x53a72e,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x496c48});}});}[_0x23bcfb(0xe9)](_0x3b7165){const _0x3a778f=_0x23bcfb,_0x4c8d5c=this[_0x3a778f(0xdf)][_0x3a778f(0x10f)],_0x545993=_0x3b7165?l:c;_0x4c8d5c[_0x3a778f(0x109)][_0x3a778f(0x108)](_0x545993)&&_0x4c8d5c[_0x3a778f(0xe7)](_0x9a1921=>{const _0x692e76=_0x3a778f;_0x9a1921[_0x692e76(0x111)](_0x545993);});}[_0x23bcfb(0xfa)](_0x9ea4,_0x4f9065){const _0x17c9bf=_0x23bcfb,_0x5f1eb1=this[_0x17c9bf(0xdf)][_0x17c9bf(0x11a)][_0x17c9bf(0xee)](_0x5d02d4),_0x42e85c=_0x4f9065||this[_0x17c9bf(0xdf)][_0x17c9bf(0x10f)][_0x17c9bf(0x109)][_0x17c9bf(0xee)](c)[_0x17c9bf(0x113)]();if(!this[_0x17c9bf(0xdf)][_0x17c9bf(0x10f)][_0x17c9bf(0xda)](_0x42e85c))return;const _0x577a75=this[_0x17c9bf(0xdf)][_0x17c9bf(0x102)][_0x17c9bf(0xec)][_0x17c9bf(0xfc)](_0x9ea4),_0x525b21=this[_0x17c9bf(0xdf)][_0x17c9bf(0x102)][_0x17c9bf(0xf9)](_0x577a75);_0x5f1eb1[_0x17c9bf(0xed)](_0x525b21),this[_0x17c9bf(0xdf)][_0x17c9bf(0x10f)][_0x17c9bf(0xe7)](_0x30b4b4=>{const _0x4e4556=_0x17c9bf;this[_0x4e4556(0xe9)]();const _0x529c69=this[_0x4e4556(0xdf)][_0x4e4556(0x10f)][_0x4e4556(0xfa)](_0x525b21,_0x42e85c);_0x529c69&&_0x30b4b4[_0x4e4556(0xf2)](_0x529c69);});}[_0x23bcfb(0xe8)](_0x372f34){const _0x262a74=_0x23bcfb,{model:_0x106df8}=this[_0x262a74(0xdf)],_0x1f913e=Array[_0x262a74(0x10a)](_0x106df8[_0x262a74(0xff)](this[_0x262a74(0xdf)][_0x262a74(0x10f)][_0x262a74(0x109)][_0x262a74(0xee)](c)[_0x262a74(0x113)]())[_0x262a74(0x11e)]()),_0x3705ee=_0x1f913e[_0x262a74(0x112)]?_0x106df8[_0x262a74(0xdb)](_0x1f913e[_0x262a74(0xf6)]()):_0x106df8[_0x262a74(0x11d)][_0x262a74(0x105)][_0x262a74(0xe3)]();this[_0x262a74(0xfa)](_0x372f34,_0x3705ee);}}
|