@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-ai",
3
- "version": "0.0.0-nightly-20240319.1",
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-20240319.1",
27
- "ckeditor5-collaboration": "0.0.0-nightly-20240319.1",
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-20240319.1",
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
- function _0x5e3f(_0x2d3453,_0x2874fe){var _0x5807ae=_0x5807();return _0x5e3f=function(_0x5e3ff1,_0x38af45){_0x5e3ff1=_0x5e3ff1-0x196;var _0x225270=_0x5807ae[_0x5e3ff1];return _0x225270;},_0x5e3f(_0x2d3453,_0x2874fe);}function _0x5807(){var _0x151283=['name','2510205ksolaY','9nvjZqq','textAdapter','5952360MJXtHR','aiadapter-text-adapter-not-set','28620350uZwiMy','53410ZMtWPI','afterInit','AIRequestError','572iUmclO','6200CShgqa','525622oDxOkb','4312MLieaT','pluginName','AIAdapter','1058826XNRlcH'];_0x5807=function(){return _0x151283;};return _0x5807();}var _0x336acf=_0x5e3f;(function(_0x50333e,_0x1bae61){var _0x24942b=_0x5e3f,_0x15bc65=_0x50333e();while(!![]){try{var _0xfd470a=parseInt(_0x24942b(0x19f))/0x1+-parseInt(_0x24942b(0x1a3))/0x2+parseInt(_0x24942b(0x1a5))/0x3+-parseInt(_0x24942b(0x19d))/0x4*(-parseInt(_0x24942b(0x19a))/0x5)+parseInt(_0x24942b(0x197))/0x6+-parseInt(_0x24942b(0x1a0))/0x7*(-parseInt(_0x24942b(0x19e))/0x8)+-parseInt(_0x24942b(0x1a6))/0x9*(parseInt(_0x24942b(0x199))/0xa);if(_0xfd470a===_0x1bae61)break;else _0x15bc65['push'](_0x15bc65['shift']());}catch(_0x584c36){_0x15bc65['push'](_0x15bc65['shift']());}}}(_0x5807,0xec4d7));import{Plugin as _0x516279}from'ckeditor5/src/core.js';import{CKEditorError as _0x5142dd}from'ckeditor5/src/utils.js';export default class g extends _0x516279{static get[_0x336acf(0x1a1)](){var _0x2d4ab5=_0x336acf;return _0x2d4ab5(0x1a2);}[_0x336acf(0x19b)](){var _0x3bb364=_0x336acf;if(!this[_0x3bb364(0x196)])throw new _0x5142dd(_0x3bb364(0x198),null);}}export class AIRequestError extends Error{constructor(_0xb1c7c4){var _0x3a1548=_0x336acf;super(_0xb1c7c4),this[_0x3a1548(0x1a4)]=_0x3a1548(0x19c);}}
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 _0x9fcd1b=_0x4bac;function _0x3b70(){const _0x41a29b=['requires','348zqsnuy','makeRequest','AI_ERROR_GET_PARAMETERS','2908280XdJBJG','8rzleiC','681239hPlOLi','abort','signal','textAdapter','30mvksZG','get','AI_ERROR_GET_HEADERS','assign','3701401RQzsQi','aitextadapter-send-request-failed','450XnEKOw','18137dmSoOh','resolve','AbortError','application/json','589851wypSvt','object','sendRequest','error','aborted','editor','2fUlzZN','557629CrcKCI','_prepareRequestParameters','reject','_prepareRequestHeaders','locale','name','plugins','abortController','10YRVnYY','9056PJDYDF','catch','init'];_0x3b70=function(){return _0x41a29b;};return _0x3b70();}(function(_0x3c38b0,_0x232c95){const _0x2a70a6=_0x4bac,_0x1f6c6d=_0x3c38b0();while(!![]){try{const _0x31527a=-parseInt(_0x2a70a6(0x1e8))/0x1*(parseInt(_0x2a70a6(0x1e7))/0x2)+parseInt(_0x2a70a6(0x1dc))/0x3*(-parseInt(_0x2a70a6(0x1f1))/0x4)+-parseInt(_0x2a70a6(0x1f8))/0x5+-parseInt(_0x2a70a6(0x1d6))/0x6*(-parseInt(_0x2a70a6(0x1dd))/0x7)+parseInt(_0x2a70a6(0x1f9))/0x8*(-parseInt(_0x2a70a6(0x1e1))/0x9)+-parseInt(_0x2a70a6(0x1f0))/0xa*(-parseInt(_0x2a70a6(0x1da))/0xb)+-parseInt(_0x2a70a6(0x1f5))/0xc*(-parseInt(_0x2a70a6(0x1fa))/0xd);if(_0x31527a===_0x232c95)break;else _0x1f6c6d['push'](_0x1f6c6d['shift']());}catch(_0x25cf47){_0x1f6c6d['push'](_0x1f6c6d['shift']());}}}(_0x3b70,0x4f465));function _0x4bac(_0x491b74,_0x5e1223){const _0x3b7058=_0x3b70();return _0x4bac=function(_0x4bac0c,_0xa864e3){_0x4bac0c=_0x4bac0c-0x1d4;let _0xb06e7d=_0x3b7058[_0x4bac0c];return _0xb06e7d;},_0x4bac(_0x491b74,_0x5e1223);}import{Plugin as _0x2ba894}from'ckeditor5/src/core.js';import{CKEditorError as _0x255618}from'ckeditor5/src/utils.js';import{default as _0xfad540,AIRequestError as _0x4c408d}from'./aiadapter.js';import{getTranslation as _0x116901}from'../utils/common-translations.js';export default class _ extends _0x2ba894{static get[_0x9fcd1b(0x1f4)](){return[_0xfad540];}constructor(_0x5edc41){const _0x2cd397=_0x9fcd1b;super(_0x5edc41),this[_0x2cd397(0x1ef)]=new AbortController();}[_0x9fcd1b(0x1f3)](){const _0x1f73a0=_0x9fcd1b;this[_0x1f73a0(0x1e6)][_0x1f73a0(0x1ee)][_0x1f73a0(0x1d7)](_0xfad540)[_0x1f73a0(0x1d5)]=this;}[_0x9fcd1b(0x1fb)](){const _0x15c6d8=_0x9fcd1b;this[_0x15c6d8(0x1ef)][_0x15c6d8(0x1d4)][_0x15c6d8(0x1e5)]||(this[_0x15c6d8(0x1ef)][_0x15c6d8(0x1fb)](),this[_0x15c6d8(0x1ef)]=new AbortController());}async[_0x9fcd1b(0x1f6)](_0xda196d){const _0x52edeb=_0x9fcd1b;return this[_0x52edeb(0x1e3)](_0xda196d)[_0x52edeb(0x1f2)](_0x421dd8=>{const _0x85a8b2=_0x52edeb;if(_0x421dd8 instanceof _0x4c408d)return Promise[_0x85a8b2(0x1ea)](_0x421dd8);if(_0x85a8b2(0x1df)==_0x421dd8[_0x85a8b2(0x1ed)])return Promise[_0x85a8b2(0x1de)]();throw console[_0x85a8b2(0x1e4)](_0x421dd8),new _0x255618(_0x85a8b2(0x1db),null);});}async[_0x9fcd1b(0x1eb)](_0xa96ea2,_0x4eb6dc){const _0x550ea9=_0x9fcd1b,_0x58291f=this[_0x550ea9(0x1e6)][_0x550ea9(0x1ec)],_0x2848da={'Content-Type':_0x550ea9(0x1e0)};if(_0x550ea9(0x1e2)==typeof _0xa96ea2)Object[_0x550ea9(0x1d9)](_0x2848da,_0xa96ea2);else{if(_0xa96ea2)try{const _0x4ab7a5=await _0xa96ea2(_0x4eb6dc);Object[_0x550ea9(0x1d9)](_0x2848da,_0x4ab7a5);}catch(_0x3bf48e){return Promise[_0x550ea9(0x1ea)](new _0x4c408d(_0x116901(_0x58291f,_0x550ea9(0x1d8))));}}return _0x2848da;}async[_0x9fcd1b(0x1e9)](_0x3afd68,_0x59bbbc){const _0x4fc616=_0x9fcd1b,_0x179ed9=this[_0x4fc616(0x1e6)][_0x4fc616(0x1ec)];if(_0x4fc616(0x1e2)==typeof _0x3afd68)return _0x3afd68;try{return await _0x3afd68(_0x59bbbc);}catch(_0x74f259){return Promise[_0x4fc616(0x1ea)](new _0x4c408d(_0x116901(_0x179ed9,_0x4fc616(0x1f7))));}}}
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 _0x51702c=_0x3e2f;(function(_0x81c708,_0x1937eb){const _0x4bbecc=_0x3e2f,_0x5b1bd3=_0x81c708();while(!![]){try{const _0xa29b4c=-parseInt(_0x4bbecc(0x10f))/0x1+parseInt(_0x4bbecc(0xcb))/0x2*(parseInt(_0x4bbecc(0x10b))/0x3)+-parseInt(_0x4bbecc(0xde))/0x4*(-parseInt(_0x4bbecc(0x111))/0x5)+parseInt(_0x4bbecc(0xf1))/0x6*(parseInt(_0x4bbecc(0xf4))/0x7)+parseInt(_0x4bbecc(0x10e))/0x8*(-parseInt(_0x4bbecc(0xf7))/0x9)+parseInt(_0x4bbecc(0xcc))/0xa+parseInt(_0x4bbecc(0xf6))/0xb;if(_0xa29b4c===_0x1937eb)break;else _0x5b1bd3['push'](_0x5b1bd3['shift']());}catch(_0x51ffc9){_0x5b1bd3['push'](_0x5b1bd3['shift']());}}}(_0x2fbd,0xc0554));function _0x2fbd(){const _0x353768=['_readStaticResponse','ai.aws.apiUrl','bytes','stringify','generations','getModelFamily','ai.aws.bedrockClientConfig','send','anthropic.claude-v2','564YAlTKo','getReader','Instruction:\x0a','104293cIJIDY','sendRequest','447425CAHmVR','125802KsaYWA','config','_getGeneratedText','AI_ERROR_UNSUPPORTED_MODEL','<<SYS>>\x0a','split','editor','data','filter','body','application/json','meta.llama','_prepareRequestParameters','_prepareRequestHeaders','generation','text','resolve','test','utf8','toString','132HAqJVt','parse','_apiUrl','872sqHPzE','1106123zhgPlt','\x0a<</SYS>>\x0a[INST]\x0a','1808430dMbafu','\x0a[/INST]','ai21.j2','length','signal','POST','_requestHeaders','get','map','locale','abortController','ai.aws.requestParameters','cohere.command','_bedrockClientConfig','18146sXvoCt','1303840ngCmIM','chunk','completions','\x0a\x0aAssistant:','_requestParameters','_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.','AWSTextAdapter','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','read','preparePrompt','bedrock-2023-05-31','anthropic.claude','define','decode','completion','ai.aws.requestHeaders','join','16LVLddo','from','utf-8','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.','_processAWSRequest','pluginName','_processProxyRequest','json','_readAsyncIterableResponse','Human:\x0a'];_0x2fbd=function(){return _0x353768;};return _0x2fbd();}import{default as _0x1f72d4}from'./aitextadapter.js';import{AIRequestError as _0x1e7941}from'./aiadapter.js';import{BedrockRuntimeClient as _0x41a558,InvokeModelCommand as _0x5bba9f,InvokeModelWithResponseStreamCommand as _0x41a287}from'@aws-sdk/client-bedrock-runtime';function _0x3e2f(_0x154e9b,_0x199301){const _0x2fbd28=_0x2fbd();return _0x3e2f=function(_0x3e2fc5,_0x102c3c){_0x3e2fc5=_0x3e2fc5-0xca;let _0x51c8ed=_0x2fbd28[_0x3e2fc5];return _0x51c8ed;},_0x3e2f(_0x154e9b,_0x199301);}import{getTranslation as _0x5e6d03}from'../utils/common-translations.js';export default class q extends _0x1f72d4{static get[_0x51702c(0xe3)](){const _0x1cf22f=_0x51702c;return _0x1cf22f(0xd3);}constructor(_0x43d853){const _0x5a5398=_0x51702c;super(_0x43d853),_0x43d853[_0x5a5398(0xf8)][_0x5a5398(0x118)](_0x5a5398(0x11c))||_0x43d853[_0x5a5398(0xf8)][_0x5a5398(0xd9)](_0x5a5398(0x11c),{'model':_0x5a5398(0xf0),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x5a5398(0xd7),'stream':!0x0}),this[_0x5a5398(0x10d)]=_0x43d853[_0x5a5398(0xf8)][_0x5a5398(0x118)](_0x5a5398(0xe9)),this[_0x5a5398(0xca)]=_0x43d853[_0x5a5398(0xf8)][_0x5a5398(0x118)](_0x5a5398(0xee)),this[_0x5a5398(0x117)]=_0x43d853[_0x5a5398(0xf8)][_0x5a5398(0x118)](_0x5a5398(0xdc)),this[_0x5a5398(0xd0)]=_0x43d853[_0x5a5398(0xf8)][_0x5a5398(0x118)](_0x5a5398(0x11c));}async[_0x51702c(0xf5)]({query:_0x3b87ed,context:_0x535055,onData:_0x58ea6f,actionId:_0x4f387f}){const _0x5d2f7e=_0x51702c,{model:_0x11e5ff,stream:_0x250c4f,..._0x3181b0}=await this[_0x5d2f7e(0x103)](this[_0x5d2f7e(0xd0)],_0x4f387f),_0x19e39f={'prompt':await this[_0x5d2f7e(0xd6)](_0x3b87ed,_0x535055,_0x11e5ff,_0x4f387f),..._0x3181b0};this[_0x5d2f7e(0x10d)]?await this[_0x5d2f7e(0xe4)](_0x19e39f,_0x11e5ff,_0x250c4f,_0x58ea6f,_0x4f387f):await this[_0x5d2f7e(0xe2)](_0x19e39f,_0x11e5ff,_0x250c4f,_0x58ea6f);}async[_0x51702c(0xd6)](_0x193ca8,_0x142c51,_0xdf66fd,_0x53cc53){const _0x842f78=_0x51702c;let _0x1c5c7a,_0x855b57;return _0x142c51?(_0x1c5c7a=_0x842f78(0xe1),_0x855b57=_0x842f78(0xf3)+_0x193ca8+_0x842f78(0xd4)+_0x142c51):(_0x1c5c7a=_0x842f78(0xd2),_0x855b57=_0x193ca8),_0x842f78(0x102)==this[_0x842f78(0xed)](_0xdf66fd)?_0x842f78(0xfb)+_0x1c5c7a+_0x842f78(0x110)+_0x855b57+_0x842f78(0x112):_0x842f78(0xe7)+_0x1c5c7a+'\x0a'+_0x855b57+_0x842f78(0xcf);}[_0x51702c(0xed)](_0x4ed4d0){const _0x515a4e=_0x51702c;if(/^anthropic\.claude/[_0x515a4e(0x108)](_0x4ed4d0))return _0x515a4e(0xd8);if(/^ai21\.j2/[_0x515a4e(0x108)](_0x4ed4d0))return _0x515a4e(0x113);if(/^cohere\.command/[_0x515a4e(0x108)](_0x4ed4d0))return _0x515a4e(0x11d);if(/^meta\.llama/[_0x515a4e(0x108)](_0x4ed4d0))return _0x515a4e(0x102);throw new _0x1e7941(_0x5e6d03(this[_0x515a4e(0xfd)][_0x515a4e(0x11a)],_0x515a4e(0xfa),_0x4ed4d0));}async[_0x51702c(0xe4)](_0x1e49d9,_0x1183cb,_0x302f82,_0x2d405c,_0x348faa){const _0x58af2d=_0x51702c,_0x59cd45={'method':_0x58af2d(0x116),'headers':await this[_0x58af2d(0x104)](this[_0x58af2d(0x117)],_0x348faa),'body':JSON[_0x58af2d(0xeb)]({..._0x1e49d9,'model':_0x1183cb,'stream':_0x302f82}),'signal':this[_0x58af2d(0x11b)][_0x58af2d(0x115)]},_0x5c17f9=await fetch(this[_0x58af2d(0x10d)],_0x59cd45);_0x302f82?await this[_0x58af2d(0xd1)](_0x5c17f9,_0x1183cb,_0x2d405c):await this[_0x58af2d(0xe8)](_0x5c17f9,_0x1183cb,_0x2d405c);}async[_0x51702c(0xe2)](_0x37fc29,_0x345848,_0x5ceef2,_0x5b07d0){const _0xf7bd17=_0x51702c,_0x11cb43=new _0x41a558(this[_0xf7bd17(0xca)]),_0x5a63b2={'body':JSON[_0xf7bd17(0xeb)](_0x37fc29),'contentType':_0xf7bd17(0x101),'accept':_0xf7bd17(0x101),'modelId':_0x345848};let _0x5f280c;if(_0x5ceef2){const _0x54ce67=new _0x41a287(_0x5a63b2);_0x5f280c=await _0x11cb43[_0xf7bd17(0xef)](_0x54ce67,{'abortSignal':this[_0xf7bd17(0x11b)][_0xf7bd17(0x115)]}),await this[_0xf7bd17(0xe6)](_0x5f280c,_0x345848,_0x5b07d0);}else{const _0x4098d5=new _0x5bba9f(_0x5a63b2);_0x5f280c=await _0x11cb43[_0xf7bd17(0xef)](_0x4098d5,{'abortSignal':this[_0xf7bd17(0x11b)][_0xf7bd17(0x115)]}),await this[_0xf7bd17(0xe8)](_0x5f280c,_0x345848,_0x5b07d0);}}async[_0x51702c(0xe6)](_0x4a782d,_0x308fe1,_0x2e4a2c){const _0x1d2a45=_0x51702c,_0x3ada76=_0x4a782d[_0x1d2a45(0x100)],_0x4a09a3=new TextDecoder(_0x1d2a45(0xe0));let _0x2c8635='';for await(const _0x26205e of _0x3ada76)if(_0x26205e[_0x1d2a45(0xcd)]){const _0x347511=_0x4a09a3[_0x1d2a45(0xda)](_0x26205e[_0x1d2a45(0xcd)][_0x1d2a45(0xea)]),_0x2d02f3=JSON[_0x1d2a45(0x10c)](_0x347511);_0x2c8635+=this[_0x1d2a45(0xf9)](_0x2d02f3,_0x308fe1),_0x2e4a2c(_0x2c8635);}return Promise[_0x1d2a45(0x107)]();}async[_0x51702c(0xd1)](_0x381fe0,_0x59a0de,_0xf562a2){const _0x1ac5fb=_0x51702c,_0x574220=_0x381fe0[_0x1ac5fb(0x100)],_0x50bad3=new TextDecoder(_0x1ac5fb(0xe0)),_0x3ed9d5=_0x574220[_0x1ac5fb(0xf2)]();let _0x4804a4='',_0x4aabeb='',_0x2966e5=!0x1;for(;!_0x2966e5;){const {done:_0x30e717,value:_0x3d99c3}=await _0x3ed9d5[_0x1ac5fb(0xd5)]();if(_0x2966e5=_0x30e717,_0x2966e5)break;const _0x1e6d5b=(_0x4804a4+_0x50bad3[_0x1ac5fb(0xda)](_0x3d99c3))[_0x1ac5fb(0xfc)]('\x0a')[_0x1ac5fb(0x119)](_0x2c30f4=>{const _0x373492=_0x1ac5fb;try{return _0x4804a4='',JSON[_0x373492(0x10c)](_0x2c30f4);}catch(_0x493503){return _0x4804a4=_0x2c30f4,null;}})[_0x1ac5fb(0xff)](_0x5804bc=>null!==_0x5804bc);_0x1e6d5b[_0x1ac5fb(0x114)]&&(_0x4aabeb+=_0x1e6d5b[_0x1ac5fb(0x119)](_0x5f2d38=>this[_0x1ac5fb(0xf9)](_0x5f2d38,_0x59a0de))[_0x1ac5fb(0xdd)](''),_0xf562a2(_0x4aabeb));}return Promise[_0x1ac5fb(0x107)]();}async[_0x51702c(0xe8)](_0x5f0f48,_0x3b8c90,_0xdc1050){const _0x1cb79b=_0x51702c;let _0x326825;return _0x326825=_0x5f0f48 instanceof Response?await _0x5f0f48[_0x1cb79b(0xe5)]():JSON[_0x1cb79b(0x10c)](Buffer[_0x1cb79b(0xdf)](_0x5f0f48[_0x1cb79b(0x100)])[_0x1cb79b(0x10a)](_0x1cb79b(0x109))),(_0xdc1050(this[_0x1cb79b(0xf9)](_0x326825,_0x3b8c90)),Promise[_0x1cb79b(0x107)]());}[_0x51702c(0xf9)](_0x5c9a2c,_0x5d7ad7){const _0x4dd322=_0x51702c;switch(this[_0x4dd322(0xed)](_0x5d7ad7)){case _0x4dd322(0xd8):return _0x5c9a2c[_0x4dd322(0xdb)];case _0x4dd322(0x113):return _0x5c9a2c[_0x4dd322(0xce)][0x0][_0x4dd322(0xfe)][_0x4dd322(0x106)];case _0x4dd322(0x11d):return _0x5c9a2c[_0x4dd322(0xec)][0x0][_0x4dd322(0x106)];case _0x4dd322(0x102):return _0x5c9a2c[_0x4dd322(0x105)];}}}
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 _0x3733df=_0x54f9;function _0x5ee4(){const _0x57abc3=['message','2019245eNEeir','_requestHeaders','_prepareRequestParameters','stringify','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.','replace','5382pbBhsq','POST','choices','_prepareRequestHeaders','map','6098211sOviwp','_isBufferIncomplete','user','locale','signal','ai.openAI.requestHeaders','_readStreamableResponse','https://api.openai.com/v1/chat/completions','sendRequest','_cleanUpData','4OMRTnz','prepareMessages','4866813yOgFsw','reject','resolve','editor','[DONE]','data:\x20','8derseQ','includes','filter','decode','define','delta','ai.openAI.requestParameters','text','getReader','split','231VNzOpk','abortController','content','_requestParameters','config','gpt-3.5-turbo','_readStaticResponse','3771978qrQqLV','stream','length','body','join','Moderation','AI_ERROR_MODERATION','get','20374130hMwgWK','parse','OpenAITextAdapter','AI_ERROR_CONTEXT_LENGTH','pluginName','ai.openAI.apiUrl','_apiUrl','context_length_exceeded','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','system','json','read','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.','2779350EiFSBl','Instruction:\x0a'];_0x5ee4=function(){return _0x57abc3;};return _0x5ee4();}(function(_0x2204b2,_0x23369d){const _0x499c63=_0x54f9,_0x86c34b=_0x2204b2();while(!![]){try{const _0x934e4e=parseInt(_0x499c63(0x157))/0x1*(-parseInt(_0x499c63(0x17c))/0x2)+parseInt(_0x499c63(0x173))/0x3+-parseInt(_0x499c63(0x145))/0x4*(-parseInt(_0x499c63(0x176))/0x5)+-parseInt(_0x499c63(0x15e))/0x6+-parseInt(_0x499c63(0x13b))/0x7*(parseInt(_0x499c63(0x14d))/0x8)+-parseInt(_0x499c63(0x147))/0x9+parseInt(_0x499c63(0x166))/0xa;if(_0x934e4e===_0x23369d)break;else _0x86c34b['push'](_0x86c34b['shift']());}catch(_0x3a9fd4){_0x86c34b['push'](_0x86c34b['shift']());}}}(_0x5ee4,0xac3da));function _0x54f9(_0x122beb,_0x2f76ad){const _0x5ee4a6=_0x5ee4();return _0x54f9=function(_0x54f9cb,_0x17964f){_0x54f9cb=_0x54f9cb-0x137;let _0x473d01=_0x5ee4a6[_0x54f9cb];return _0x473d01;},_0x54f9(_0x122beb,_0x2f76ad);}import{default as _0x5854fc}from'./aitextadapter.js';import{AIRequestError as _0x9d088f}from'./aiadapter.js';import{getTranslation as _0x530bd0}from'../utils/common-translations.js';export default class M extends _0x5854fc{static get[_0x3733df(0x16a)](){const _0x10d468=_0x3733df;return _0x10d468(0x168);}constructor(_0x3173b7){const _0x3fa308=_0x3733df;super(_0x3173b7),_0x3173b7[_0x3fa308(0x15b)][_0x3fa308(0x151)](_0x3fa308(0x16b),_0x3fa308(0x142)),_0x3173b7[_0x3fa308(0x15b)][_0x3fa308(0x165)](_0x3fa308(0x153))||_0x3173b7[_0x3fa308(0x15b)][_0x3fa308(0x151)](_0x3fa308(0x153),{'model':_0x3fa308(0x15c),'max_tokens':0x7d0,'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x3fa308(0x16c)]=_0x3173b7[_0x3fa308(0x15b)][_0x3fa308(0x165)](_0x3fa308(0x16b)),this[_0x3fa308(0x177)]=_0x3173b7[_0x3fa308(0x15b)][_0x3fa308(0x165)](_0x3fa308(0x140))||{},this[_0x3fa308(0x15a)]=_0x3173b7[_0x3fa308(0x15b)][_0x3fa308(0x165)](_0x3fa308(0x153));}async[_0x3733df(0x143)]({query:_0x59d30e,context:_0x4a2d3b,onData:_0xbc0fe7,actionId:_0x11d93c}){const _0x1221e4=_0x3733df,_0x1344e2=this[_0x1221e4(0x14a)][_0x1221e4(0x13e)],_0xfe973a=await this[_0x1221e4(0x146)](_0x59d30e,_0x4a2d3b,_0x11d93c),_0x2c7858=await this[_0x1221e4(0x139)](this[_0x1221e4(0x177)],_0x11d93c),_0x563364=await this[_0x1221e4(0x178)](this[_0x1221e4(0x15a)],_0x11d93c),_0xba4dd5={'messages':_0xfe973a,..._0x563364},_0x2382fe={'method':_0x1221e4(0x137),'headers':_0x2c7858,'body':JSON[_0x1221e4(0x179)](_0xba4dd5),'signal':this[_0x1221e4(0x158)][_0x1221e4(0x13f)]},_0x211dfa=await fetch(this[_0x1221e4(0x16c)],_0x2382fe);if(_0x211dfa['ok'])return _0x563364[_0x1221e4(0x15f)]?await this[_0x1221e4(0x141)](_0x211dfa,_0xbc0fe7):await this[_0x1221e4(0x15d)](_0x211dfa,_0xbc0fe7),Promise[_0x1221e4(0x149)]();{const _0x1dd5e4=await _0x211dfa[_0x1221e4(0x154)]();return _0x1dd5e4[_0x1221e4(0x14e)](_0x1221e4(0x16d))?Promise[_0x1221e4(0x148)](new _0x9d088f(_0x530bd0(_0x1344e2,_0x1221e4(0x169)))):_0x1dd5e4[_0x1221e4(0x14e)](_0x1221e4(0x163))?Promise[_0x1221e4(0x148)](new _0x9d088f(_0x530bd0(_0x1344e2,_0x1221e4(0x164)))):Promise[_0x1221e4(0x148)](new Error(_0x1dd5e4));}}async[_0x3733df(0x146)](_0x48a02c,_0x2da995,_0x2bd847){const _0x229f84=_0x3733df;let _0x3e76f5,_0x5adf79;return _0x2da995?(_0x3e76f5=_0x229f84(0x172),_0x5adf79=_0x229f84(0x174)+_0x48a02c+_0x229f84(0x16e)+_0x2da995):(_0x3e76f5=_0x229f84(0x17a),_0x5adf79=_0x48a02c),[{'role':_0x229f84(0x16f),'content':_0x3e76f5},{'role':_0x229f84(0x13d),'content':_0x5adf79}];}async[_0x3733df(0x141)](_0x36eb76,_0x19bee9){const _0x3fd7aa=_0x3733df,_0x50ced2=_0x36eb76[_0x3fd7aa(0x161)][_0x3fd7aa(0x155)](),_0x57bf9a=new TextDecoder();let _0x18a542='',_0x220d86='',_0x20443d='',_0x177eb0=!0x1;for(;!_0x177eb0;){const {done:_0x2d3cd0,value:_0x3a64ea}=await _0x50ced2[_0x3fd7aa(0x171)](),_0x22ba9a=_0x18a542+_0x57bf9a[_0x3fd7aa(0x150)](_0x3a64ea);let _0xf77354='';_0x177eb0=_0x2d3cd0;try{_0xf77354=this[_0x3fd7aa(0x144)](_0x22ba9a),_0x18a542='';}catch(_0x1037e){_0x18a542=_0x22ba9a;continue;}_0x220d86+=_0xf77354,!_0x177eb0&&this[_0x3fd7aa(0x13c)](_0x220d86)||_0x220d86&&(_0x20443d+=_0x220d86,_0x220d86='',_0x19bee9(_0x20443d));}return Promise[_0x3fd7aa(0x149)]();}async[_0x3733df(0x15d)](_0x2405c5,_0x14af72){const _0x493f37=_0x3733df;return _0x14af72((await _0x2405c5[_0x493f37(0x170)]())[_0x493f37(0x138)][0x0][_0x493f37(0x175)][_0x493f37(0x159)]),Promise[_0x493f37(0x149)]();}[_0x3733df(0x13c)](_0x2048dd){const _0x782553=_0x3733df,_0x1856b3=_0x2048dd[_0x782553(0x156)]('<')[_0x782553(0x160)]!==_0x2048dd[_0x782553(0x156)]('>')[_0x782553(0x160)],_0x1b6ccc=_0x2048dd[_0x782553(0x160)]<0x1e;return _0x1856b3&&_0x1b6ccc;}[_0x3733df(0x144)](_0x2cc902){const _0x303c98=_0x3733df;return _0x2cc902[_0x303c98(0x156)](/\n(?![^{]*\})/g)[_0x303c98(0x13a)](_0x4cef05=>_0x4cef05[_0x303c98(0x17b)](_0x303c98(0x14c),''))[_0x303c98(0x14f)](_0xe1372a=>_0xe1372a&&_0xe1372a[_0x303c98(0x160)]>0x0&&_0x303c98(0x14b)!==_0xe1372a)[_0x303c98(0x13a)](_0x335d86=>{const _0x183cdd=_0x303c98,{choices:_0xb6650c}=JSON[_0x183cdd(0x167)](_0x335d86);if(_0xb6650c[0x0]&&_0xb6650c[0x0][_0x183cdd(0x152)]&&_0xb6650c[0x0][_0x183cdd(0x152)][_0x183cdd(0x159)])return _0xb6650c[0x0][_0x183cdd(0x152)][_0x183cdd(0x159)];})[_0x303c98(0x14f)](_0x48bde3=>_0x48bde3)[_0x303c98(0x162)]('');}}
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)]('');}}
@@ -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 _0x1978e5=_0x4c82;(function(_0x382fa1,_0xedf6be){const _0xa70791=_0x4c82,_0x50a7bc=_0x382fa1();while(!![]){try{const _0x425494=parseInt(_0xa70791(0x1f8))/0x1*(-parseInt(_0xa70791(0x1fd))/0x2)+-parseInt(_0xa70791(0x1f5))/0x3+-parseInt(_0xa70791(0x21f))/0x4*(-parseInt(_0xa70791(0x1fe))/0x5)+parseInt(_0xa70791(0x22e))/0x6+parseInt(_0xa70791(0x21a))/0x7*(-parseInt(_0xa70791(0x225))/0x8)+parseInt(_0xa70791(0x221))/0x9+parseInt(_0xa70791(0x20e))/0xa*(parseInt(_0xa70791(0x228))/0xb);if(_0x425494===_0xedf6be)break;else _0x50a7bc['push'](_0x50a7bc['shift']());}catch(_0x5ea6fa){_0x50a7bc['push'](_0x50a7bc['shift']());}}}(_0x1de9,0x668ba));import{Plugin as _0x174203}from'ckeditor5/src/core.js';import{ClipboardMarkersUtils as _0x20e32f}from'ckeditor5/src/clipboard.js';const c=_0x1978e5(0x1fa),l=_0x1978e5(0x20a);export default class i extends _0x174203{static get[_0x1978e5(0x202)](){const _0x33f28=_0x1978e5;return _0x33f28(0x224);}static get[_0x1978e5(0x206)](){return[_0x20e32f];}[_0x1978e5(0x1f1)](){const _0x3f4a3f=_0x1978e5,{editor:_0x5de8eb}=this,_0x21ee19=[_0x3f4a3f(0x1fc)];_0x5de8eb[_0x3f4a3f(0x226)][_0x3f4a3f(0x20c)](_0x3f4a3f(0x1fb))&&_0x21ee19[_0x3f4a3f(0x1f4)](_0x3f4a3f(0x21b)),_0x5de8eb[_0x3f4a3f(0x230)][_0x3f4a3f(0x1f7)](_0x3f4a3f(0x1f0))[_0x3f4a3f(0x22d)]({'model':c,'view':{'classes':_0x21ee19,'priority':0xc}}),_0x5de8eb[_0x3f4a3f(0x230)][_0x3f4a3f(0x1f7)](_0x3f4a3f(0x1f0))[_0x3f4a3f(0x215)]({'model':c,'view':{'name':_0x3f4a3f(0x219),'classes':[_0x3f4a3f(0x1fc),_0x3f4a3f(0x231)],'priority':0xc}}),_0x5de8eb[_0x3f4a3f(0x230)][_0x3f4a3f(0x1f7)](_0x3f4a3f(0x1f0))[_0x3f4a3f(0x22d)]({'model':l,'view':{'classes':[_0x3f4a3f(0x201)],'priority':0x19}}),_0x5de8eb[_0x3f4a3f(0x230)][_0x3f4a3f(0x1f7)](_0x3f4a3f(0x1f0))[_0x3f4a3f(0x215)]({'model':l,'view':{'name':_0x3f4a3f(0x219),'classes':[_0x3f4a3f(0x201),_0x3f4a3f(0x231)],'priority':0x19}});}[_0x1978e5(0x211)](_0x38afe5){const _0x25bf20=_0x1978e5,_0x4b61ff=this[_0x25bf20(0x209)][_0x25bf20(0x1ef)],_0x5d0aba=_0x38afe5?l:c;_0x4b61ff[_0x25bf20(0x22b)](_0x139241=>{const _0x1062b2=_0x25bf20,_0x5437fe=_0x4b61ff[_0x1062b2(0x1f2)][_0x1062b2(0x232)][_0x1062b2(0x208)]();if(_0x4b61ff[_0x1062b2(0x233)][_0x1062b2(0x216)](_0x5d0aba))_0x139241[_0x1062b2(0x1f3)](_0x5d0aba,{'range':_0x5437fe});else{if(_0x5437fe[_0x1062b2(0x220)][_0x1062b2(0x22f)]){const _0xfd9843=_0x5437fe[_0x1062b2(0x220)][_0x1062b2(0x22a)](({item:_0x460e03})=>!_0x4b61ff[_0x1062b2(0x203)][_0x1062b2(0x1f9)](_0x460e03),{'boundaries':_0x5437fe});_0x139241[_0x1062b2(0x21d)](_0x5d0aba,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x139241[_0x1062b2(0x20f)](_0xfd9843,_0x5437fe[_0x1062b2(0x204)])});}else _0x139241[_0x1062b2(0x21d)](_0x5d0aba,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x5437fe});}});}[_0x1978e5(0x218)](_0x401855){const _0x224f3f=_0x1978e5,_0x44983e=this[_0x224f3f(0x209)][_0x224f3f(0x1ef)],_0x45d910=_0x401855?l:c;_0x44983e[_0x224f3f(0x233)][_0x224f3f(0x216)](_0x45d910)&&_0x44983e[_0x224f3f(0x22b)](_0x549cba=>{const _0x3fb50b=_0x224f3f;_0x549cba[_0x3fb50b(0x20d)](_0x45d910);});}[_0x1978e5(0x207)](_0x46c739,_0x595ef5){const _0x5968ab=_0x1978e5,_0x244893=this[_0x5968ab(0x209)][_0x5968ab(0x1f6)][_0x5968ab(0x20c)](_0x20e32f),_0xa101f9=_0x595ef5||this[_0x5968ab(0x209)][_0x5968ab(0x1ef)][_0x5968ab(0x233)][_0x5968ab(0x20c)](c)[_0x5968ab(0x200)]();if(!this[_0x5968ab(0x209)][_0x5968ab(0x1ef)][_0x5968ab(0x227)](_0xa101f9))return;const _0x1eb305=this[_0x5968ab(0x209)][_0x5968ab(0x222)][_0x5968ab(0x213)][_0x5968ab(0x21c)](_0x46c739),_0x251a9e=this[_0x5968ab(0x209)][_0x5968ab(0x222)][_0x5968ab(0x212)](_0x1eb305);_0x244893[_0x5968ab(0x210)](_0x251a9e),this[_0x5968ab(0x209)][_0x5968ab(0x1ef)][_0x5968ab(0x22b)](_0x3f09bf=>{const _0x899beb=_0x5968ab;this[_0x899beb(0x218)]();const _0x36fcbe=this[_0x899beb(0x209)][_0x899beb(0x1ef)][_0x899beb(0x207)](_0x251a9e,_0xa101f9);_0x36fcbe&&_0x3f09bf[_0x899beb(0x214)](_0x36fcbe);});}[_0x1978e5(0x217)](_0x5c7f12){const _0x5634c8=_0x1978e5,{model:_0x298ca8}=this[_0x5634c8(0x209)],_0x3fc033=Array[_0x5634c8(0x223)](_0x298ca8[_0x5634c8(0x1ff)](this[_0x5634c8(0x209)][_0x5634c8(0x1ef)][_0x5634c8(0x233)][_0x5634c8(0x20c)](c)[_0x5634c8(0x200)]())[_0x5634c8(0x205)]()),_0x459799=_0x3fc033[_0x5634c8(0x21e)]?_0x298ca8[_0x5634c8(0x229)](_0x3fc033[_0x5634c8(0x20b)]()):_0x298ca8[_0x5634c8(0x1f2)][_0x5634c8(0x232)][_0x5634c8(0x22c)]();this[_0x5634c8(0x207)](_0x5c7f12,_0x459799);}}function _0x4c82(_0x2ed40b,_0x31453c){const _0x1de9af=_0x1de9();return _0x4c82=function(_0x4c82ee,_0x4a7743){_0x4c82ee=_0x4c82ee-0x1ef;let _0x333569=_0x1de9af[_0x4c82ee];return _0x333569;},_0x4c82(_0x2ed40b,_0x31453c);}function _0x1de9(){const _0x39c5be=['isContent','ai-ui','ai.useTheme','ck-fake-ai-selection','10lBIroT','295ZzuSMY','createSelection','getRange','ck-fake-ai-selection-candidate','pluginName','schema','end','getSelectedBlocks','requires','insertContent','getFirstRange','editor','ai-ui-candidate','pop','get','removeMarker','2011930HZcnUD','createRange','_setUniqueMarkerNamesInFragment','showFakeVisualSelection','toModel','processor','setSelection','markerToElement','has','insertContentBelow','hideFakeVisualSelection','span','1643061QrkauM','ck-ai-assistant-ui_theme','toView','addMarker','length','53268LDqgUY','start','3267432XUEZWd','data','from','AIAssistantEditing','8VWtHEs','config','canEditAt','22YYAoxg','createPositionAfter','getLastMatchingPosition','change','getLastPosition','markerToHighlight','94920IbqOFQ','isAtEnd','conversion','ck-fake-ai-selection_collapsed','selection','markers','model','editingDowncast','init','document','updateMarker','push','2050749kFzRPL','plugins','for','45725RETlzB'];_0x1de9=function(){return _0x39c5be;};return _0x1de9();}
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);}}