@ckeditor/ckeditor5-ai 0.0.0-nightly-20240411.0 → 0.0.0-nightly-20240412.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-20240411.0",
3
+ "version": "0.0.0-nightly-20240412.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-20240411.0",
27
- "ckeditor5-collaboration": "0.0.0-nightly-20240411.0",
26
+ "ckeditor5": "0.0.0-nightly-20240412.0",
27
+ "ckeditor5-collaboration": "0.0.0-nightly-20240412.0",
28
28
  "@aws-sdk/client-bedrock-runtime": "3.470.0",
29
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20240411.0",
29
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20240412.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 _0xbc6c(_0x256c94,_0x349841){var _0x472f7f=_0x472f();return _0xbc6c=function(_0xbc6cd1,_0x585b12){_0xbc6cd1=_0xbc6cd1-0x135;var _0x3ee20b=_0x472f7f[_0xbc6cd1];return _0x3ee20b;},_0xbc6c(_0x256c94,_0x349841);}var _0x51400a=_0xbc6c;function _0x472f(){var _0xee590e=['afterInit','pluginName','1241694sYTAwy','2364pYZkcZ','AIAdapter','131065wIPkhe','name','AIRequestError','447TEjYvv','5715450KVPWlX','1563858KjVrhe','textAdapter','3112620fTNKUi','351992XTKXzH','24ADlZOF','aiadapter-text-adapter-not-set','42fybZUg'];_0x472f=function(){return _0xee590e;};return _0x472f();}(function(_0x1b6366,_0x4d8692){var _0x41fe26=_0xbc6c,_0x3252fc=_0x1b6366();while(!![]){try{var _0x30edee=parseInt(_0x41fe26(0x141))/0x1*(-parseInt(_0x41fe26(0x13c))/0x2)+parseInt(_0x41fe26(0x13b))/0x3+parseInt(_0x41fe26(0x135))/0x4+-parseInt(_0x41fe26(0x13e))/0x5*(parseInt(_0x41fe26(0x138))/0x6)+parseInt(_0x41fe26(0x145))/0x7+-parseInt(_0x41fe26(0x136))/0x8*(parseInt(_0x41fe26(0x143))/0x9)+parseInt(_0x41fe26(0x142))/0xa;if(_0x30edee===_0x4d8692)break;else _0x3252fc['push'](_0x3252fc['shift']());}catch(_0x120f0a){_0x3252fc['push'](_0x3252fc['shift']());}}}(_0x472f,0x4592a));import{Plugin as _0x28f143}from'ckeditor5/src/core.js';import{CKEditorError as _0x2061b4}from'ckeditor5/src/utils.js';export default class v extends _0x28f143{static get[_0x51400a(0x13a)](){var _0x4dd953=_0x51400a;return _0x4dd953(0x13d);}[_0x51400a(0x139)](){var _0x3c3199=_0x51400a;if(!this[_0x3c3199(0x144)])throw new _0x2061b4(_0x3c3199(0x137),null);}}export class AIRequestError extends Error{constructor(_0x9d903b){var _0x34ed5d=_0x51400a;super(_0x9d903b),this[_0x34ed5d(0x13f)]=_0x34ed5d(0x140);}}
23
+ var _0x5a80ff=_0x53f4;(function(_0x48c1ee,_0x52fea5){var _0xe507fe=_0x53f4,_0x510f81=_0x48c1ee();while(!![]){try{var _0x196b1c=parseInt(_0xe507fe(0x1a4))/0x1+parseInt(_0xe507fe(0x1a6))/0x2+-parseInt(_0xe507fe(0x1a0))/0x3+-parseInt(_0xe507fe(0x1a3))/0x4+-parseInt(_0xe507fe(0x1a9))/0x5*(-parseInt(_0xe507fe(0x19e))/0x6)+parseInt(_0xe507fe(0x19d))/0x7*(parseInt(_0xe507fe(0x1a8))/0x8)+-parseInt(_0xe507fe(0x1a5))/0x9*(-parseInt(_0xe507fe(0x19a))/0xa);if(_0x196b1c===_0x52fea5)break;else _0x510f81['push'](_0x510f81['shift']());}catch(_0x3b0b7d){_0x510f81['push'](_0x510f81['shift']());}}}(_0x4fa3,0x9dcbd));import{Plugin as _0x4a200c}from'ckeditor5/src/core.js';function _0x4fa3(){var _0x36af4e=['7tzmsDD','42kSXqXQ','AIRequestError','3578223BdlzjQ','afterInit','textAdapter','3859608dCPfXb','1105346bbYLbr','2623338ExTJnB','1412020hiiwyq','pluginName','5177288oIINVz','38555NPtfsy','name','10xmjkuQ','aiadapter-text-adapter-not-set','AIAdapter'];_0x4fa3=function(){return _0x36af4e;};return _0x4fa3();}function _0x53f4(_0x5600ea,_0x35f69f){var _0x4fa3f7=_0x4fa3();return _0x53f4=function(_0x53f4b1,_0x336c57){_0x53f4b1=_0x53f4b1-0x19a;var _0x1bd645=_0x4fa3f7[_0x53f4b1];return _0x1bd645;},_0x53f4(_0x5600ea,_0x35f69f);}import{CKEditorError as _0x5572c0}from'ckeditor5/src/utils.js';export default class v extends _0x4a200c{static get[_0x5a80ff(0x1a7)](){var _0x23befd=_0x5a80ff;return _0x23befd(0x19c);}[_0x5a80ff(0x1a1)](){var _0x1fb4b1=_0x5a80ff;if(!this[_0x1fb4b1(0x1a2)])throw new _0x5572c0(_0x1fb4b1(0x19b),null);}}export class AIRequestError extends Error{constructor(_0x3bf064){var _0x569c47=_0x5a80ff;super(_0x3bf064),this[_0x569c47(0x1aa)]=_0x569c47(0x19f);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x13e0e9=_0x5687;(function(_0x36e040,_0x6ea4f7){const _0x5457b7=_0x5687,_0x3f728d=_0x36e040();while(!![]){try{const _0x1d449e=parseInt(_0x5457b7(0x104))/0x1+parseInt(_0x5457b7(0xee))/0x2+parseInt(_0x5457b7(0x10a))/0x3*(-parseInt(_0x5457b7(0xf0))/0x4)+-parseInt(_0x5457b7(0xf8))/0x5+parseInt(_0x5457b7(0xf9))/0x6*(-parseInt(_0x5457b7(0x10b))/0x7)+-parseInt(_0x5457b7(0xf6))/0x8*(parseInt(_0x5457b7(0xf2))/0x9)+parseInt(_0x5457b7(0xff))/0xa;if(_0x1d449e===_0x6ea4f7)break;else _0x3f728d['push'](_0x3f728d['shift']());}catch(_0x17e074){_0x3f728d['push'](_0x3f728d['shift']());}}}(_0x273b,0x9478e));function _0x5687(_0x252f0c,_0x39ff48){const _0x273b90=_0x273b();return _0x5687=function(_0x568777,_0x3802ae){_0x568777=_0x568777-0xed;let _0x55c15d=_0x273b90[_0x568777];return _0x55c15d;},_0x5687(_0x252f0c,_0x39ff48);}import{Plugin as _0x4f1034}from'ckeditor5/src/core.js';import{CKEditorError as _0x402083}from'ckeditor5/src/utils.js';import{default as _0x5645b8,AIRequestError as _0x4a1832}from'./aiadapter.js';function _0x273b(){const _0x1a12a5=['object','name','textAdapter','application/json','463393iyrPPD','abort','error','makeRequest','aborted','signal','3kVYBDw','2105327BSNRzF','editor','assign','resolve','_prepareRequestHeaders','sendRequest','aitextadapter-send-request-failed','abortController','907232xvLyCs','plugins','860OqnUJE','reject','601767UaYlNm','get','requires','AI_ERROR_GET_PARAMETERS','16YhyzTt','locale','3565630RrBxgy','12MBLcdM','AbortError','init','AI_ERROR_GET_HEADERS','_prepareRequestParameters','catch','11397220LmOqFP'];_0x273b=function(){return _0x1a12a5;};return _0x273b();}import{getTranslation as _0x44b507}from'../utils/common-translations.js';export default class P extends _0x4f1034{static get[_0x13e0e9(0xf4)](){return[_0x5645b8];}constructor(_0x516d37){const _0x210311=_0x13e0e9;super(_0x516d37),this[_0x210311(0xed)]=new AbortController();}[_0x13e0e9(0xfb)](){const _0x2fba4d=_0x13e0e9;this[_0x2fba4d(0x10c)][_0x2fba4d(0xef)][_0x2fba4d(0xf3)](_0x5645b8)[_0x2fba4d(0x102)]=this;}[_0x13e0e9(0x105)](){const _0x39533c=_0x13e0e9;this[_0x39533c(0xed)][_0x39533c(0x109)][_0x39533c(0x108)]||(this[_0x39533c(0xed)][_0x39533c(0x105)](),this[_0x39533c(0xed)]=new AbortController());}async[_0x13e0e9(0x107)](_0x407c7c){const _0x20f326=_0x13e0e9;return this[_0x20f326(0x110)](_0x407c7c)[_0x20f326(0xfe)](_0x3f9693=>{const _0x3656bd=_0x20f326;if(_0x3f9693 instanceof _0x4a1832)return Promise[_0x3656bd(0xf1)](_0x3f9693);if(_0x3656bd(0xfa)==_0x3f9693[_0x3656bd(0x101)])return Promise[_0x3656bd(0x10e)]();throw console[_0x3656bd(0x106)](_0x3f9693),new _0x402083(_0x3656bd(0x111),null);});}async[_0x13e0e9(0x10f)](_0x28b33a,_0x43bc6d){const _0x3e6232=_0x13e0e9,_0x158a1a=this[_0x3e6232(0x10c)][_0x3e6232(0xf7)],_0x374c4c={'Content-Type':_0x3e6232(0x103)};if(_0x3e6232(0x100)==typeof _0x28b33a)Object[_0x3e6232(0x10d)](_0x374c4c,_0x28b33a);else{if(_0x28b33a)try{const _0x1ee4e8=await _0x28b33a(_0x43bc6d);Object[_0x3e6232(0x10d)](_0x374c4c,_0x1ee4e8);}catch(_0xddd54b){return Promise[_0x3e6232(0xf1)](new _0x4a1832(_0x44b507(_0x158a1a,_0x3e6232(0xfc))));}}return _0x374c4c;}async[_0x13e0e9(0xfd)](_0x8b0405,_0x516998){const _0x3efc27=_0x13e0e9,_0x5a7e53=this[_0x3efc27(0x10c)][_0x3efc27(0xf7)];if(_0x3efc27(0x100)==typeof _0x8b0405)return _0x8b0405;try{return await _0x8b0405(_0x516998);}catch(_0x13c3f7){return Promise[_0x3efc27(0xf1)](new _0x4a1832(_0x44b507(_0x5a7e53,_0x3efc27(0xf5))));}}}
23
+ function _0x1f9f(_0x565f3,_0x3265d6){const _0x134e2f=_0x134e();return _0x1f9f=function(_0x1f9fa0,_0x1ca787){_0x1f9fa0=_0x1f9fa0-0x123;let _0x208c9c=_0x134e2f[_0x1f9fa0];return _0x208c9c;},_0x1f9f(_0x565f3,_0x3265d6);}const _0x262355=_0x1f9f;(function(_0x108b21,_0x2b072f){const _0xa9bd4b=_0x1f9f,_0xcd5f96=_0x108b21();while(!![]){try{const _0x384cc1=parseInt(_0xa9bd4b(0x136))/0x1+-parseInt(_0xa9bd4b(0x141))/0x2+-parseInt(_0xa9bd4b(0x124))/0x3*(parseInt(_0xa9bd4b(0x12a))/0x4)+parseInt(_0xa9bd4b(0x130))/0x5*(parseInt(_0xa9bd4b(0x12c))/0x6)+parseInt(_0xa9bd4b(0x12d))/0x7*(-parseInt(_0xa9bd4b(0x137))/0x8)+parseInt(_0xa9bd4b(0x140))/0x9*(-parseInt(_0xa9bd4b(0x142))/0xa)+-parseInt(_0xa9bd4b(0x128))/0xb*(-parseInt(_0xa9bd4b(0x12e))/0xc);if(_0x384cc1===_0x2b072f)break;else _0xcd5f96['push'](_0xcd5f96['shift']());}catch(_0x174897){_0xcd5f96['push'](_0xcd5f96['shift']());}}}(_0x134e,0x63b12));import{Plugin as _0x409fe4}from'ckeditor5/src/core.js';import{CKEditorError as _0x40407d}from'ckeditor5/src/utils.js';import{default as _0x56b753,AIRequestError as _0x106711}from'./aiadapter.js';import{getTranslation as _0x4fec34}from'../utils/common-translations.js';export default class P extends _0x409fe4{static get[_0x262355(0x126)](){return[_0x56b753];}constructor(_0x38c7d0){const _0x4e6d0b=_0x262355;super(_0x38c7d0),this[_0x4e6d0b(0x129)]=new AbortController();}[_0x262355(0x12f)](){const _0x3dc99f=_0x262355;this[_0x3dc99f(0x147)][_0x3dc99f(0x132)][_0x3dc99f(0x134)](_0x56b753)[_0x3dc99f(0x135)]=this;}[_0x262355(0x13f)](){const _0x4fcc7d=_0x262355;this[_0x4fcc7d(0x129)][_0x4fcc7d(0x13d)][_0x4fcc7d(0x133)]||(this[_0x4fcc7d(0x129)][_0x4fcc7d(0x13f)](),this[_0x4fcc7d(0x129)]=new AbortController());}async[_0x262355(0x13a)](_0x2d4870){const _0x103e08=_0x262355;return this[_0x103e08(0x123)](_0x2d4870)[_0x103e08(0x139)](_0x43d02a=>{const _0x1872aa=_0x103e08;if(_0x43d02a instanceof _0x106711)return Promise[_0x1872aa(0x145)](_0x43d02a);if(_0x1872aa(0x12b)==_0x43d02a[_0x1872aa(0x125)])return Promise[_0x1872aa(0x149)]();throw console[_0x1872aa(0x148)](_0x43d02a),new _0x40407d(_0x1872aa(0x13b),null);});}async[_0x262355(0x13c)](_0x56e7b4,_0x83a5be){const _0x14121f=_0x262355,_0x3d5080=this[_0x14121f(0x147)][_0x14121f(0x131)],_0x18b1a1={'Content-Type':_0x14121f(0x146)};if(_0x14121f(0x127)==typeof _0x56e7b4)Object[_0x14121f(0x143)](_0x18b1a1,_0x56e7b4);else{if(_0x56e7b4)try{const _0x25a649=await _0x56e7b4(_0x83a5be);Object[_0x14121f(0x143)](_0x18b1a1,_0x25a649);}catch(_0x1f2ed2){return Promise[_0x14121f(0x145)](new _0x106711(_0x4fec34(_0x3d5080,_0x14121f(0x13e))));}}return _0x18b1a1;}async[_0x262355(0x144)](_0x40acef,_0x74a361){const _0x2ce376=_0x262355,_0x8253cc=this[_0x2ce376(0x147)][_0x2ce376(0x131)];if(_0x2ce376(0x127)==typeof _0x40acef)return _0x40acef;try{return await _0x40acef(_0x74a361);}catch(_0x5ed5c6){return Promise[_0x2ce376(0x145)](new _0x106711(_0x4fec34(_0x8253cc,_0x2ce376(0x138))));}}}function _0x134e(){const _0x59f357=['textAdapter','238541OKginE','1477704lSJsDh','AI_ERROR_GET_PARAMETERS','catch','makeRequest','aitextadapter-send-request-failed','_prepareRequestHeaders','signal','AI_ERROR_GET_HEADERS','abort','45BDSEnn','865866KsgGkW','925030ezXDKC','assign','_prepareRequestParameters','reject','application/json','editor','error','resolve','sendRequest','117LZzbbL','name','requires','object','16182694EzTlwA','abortController','57540NHUXDy','AbortError','2994GTWcYM','7pmYXro','12WANQsw','init','3405XcFeaf','locale','plugins','aborted','get'];_0x134e=function(){return _0x59f357;};return _0x134e();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1224d2=_0x1bde;(function(_0xcbf1cc,_0x35f0e9){const _0x5a71f6=_0x1bde,_0x14cf81=_0xcbf1cc();while(!![]){try{const _0x50731f=parseInt(_0x5a71f6(0x1cb))/0x1*(-parseInt(_0x5a71f6(0x1f3))/0x2)+parseInt(_0x5a71f6(0x1cd))/0x3+-parseInt(_0x5a71f6(0x1fb))/0x4*(parseInt(_0x5a71f6(0x203))/0x5)+-parseInt(_0x5a71f6(0x1eb))/0x6*(-parseInt(_0x5a71f6(0x210))/0x7)+parseInt(_0x5a71f6(0x20d))/0x8+parseInt(_0x5a71f6(0x1e7))/0x9+-parseInt(_0x5a71f6(0x1cc))/0xa;if(_0x50731f===_0x35f0e9)break;else _0x14cf81['push'](_0x14cf81['shift']());}catch(_0x160a3b){_0x14cf81['push'](_0x14cf81['shift']());}}}(_0x26f4,0x7bd01));import{default as _0x5f3d31}from'./aitextadapter.js';import{AIRequestError as _0x42cba4}from'./aiadapter.js';import{BedrockRuntimeClient as _0x10dce7,InvokeModelCommand as _0x3202e7,InvokeModelWithResponseStreamCommand as _0xd89001}from'@aws-sdk/client-bedrock-runtime';function _0x1bde(_0x5634,_0x56f5e0){const _0x26f4e5=_0x26f4();return _0x1bde=function(_0x1bde1c,_0x54484b){_0x1bde1c=_0x1bde1c-0x1c1;let _0x1b730e=_0x26f4e5[_0x1bde1c];return _0x1b730e;},_0x1bde(_0x5634,_0x56f5e0);}import{getTranslation as _0x2325e5}from'../utils/common-translations.js';export default class Y extends _0x5f3d31{static get[_0x1224d2(0x1da)](){const _0x2d6cd3=_0x1224d2;return _0x2d6cd3(0x1dd);}constructor(_0x1cef38){const _0x243326=_0x1224d2;super(_0x1cef38),_0x1cef38[_0x243326(0x1f8)][_0x243326(0x1d4)](_0x243326(0x206))||_0x1cef38[_0x243326(0x1f8)][_0x243326(0x1e1)](_0x243326(0x206),{'model':_0x243326(0x1cf),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x243326(0x1ec),'stream':!0x0}),this[_0x243326(0x1e4)]=_0x1cef38[_0x243326(0x1f8)][_0x243326(0x1d4)](_0x243326(0x20f)),this[_0x243326(0x1ea)]=_0x1cef38[_0x243326(0x1f8)][_0x243326(0x1d4)](_0x243326(0x204)),this[_0x243326(0x1d3)]=_0x1cef38[_0x243326(0x1f8)][_0x243326(0x1d4)](_0x243326(0x1ff)),this[_0x243326(0x1e0)]=_0x1cef38[_0x243326(0x1f8)][_0x243326(0x1d4)](_0x243326(0x206));}async[_0x1224d2(0x1c3)]({query:_0x39547f,context:_0x33eb28,onData:_0x6426c7,actionId:_0x503f16}){const _0x488703=_0x1224d2,{model:_0x3e3872,stream:_0x1d2534,..._0x336a10}=await this[_0x488703(0x1f6)](this[_0x488703(0x1e0)],_0x503f16),_0x48c9ae={'prompt':await this[_0x488703(0x1ce)](_0x39547f,_0x33eb28,_0x3e3872,_0x503f16),..._0x336a10};this[_0x488703(0x1e4)]?await this[_0x488703(0x202)](_0x48c9ae,_0x3e3872,_0x1d2534,_0x6426c7,_0x503f16):await this[_0x488703(0x212)](_0x48c9ae,_0x3e3872,_0x1d2534,_0x6426c7);}async[_0x1224d2(0x1ce)](_0x3e9d89,_0x40722c,_0x315b40,_0x57c905){const _0x3392ad=_0x1224d2;let _0x51adff,_0x559c5c;return _0x40722c?(_0x51adff=_0x3392ad(0x1f9),_0x559c5c=_0x3392ad(0x1e9)+_0x3e9d89+_0x3392ad(0x1c6)+_0x40722c):(_0x51adff=_0x3392ad(0x1f7),_0x559c5c=_0x3e9d89),_0x3392ad(0x20a)==this[_0x3392ad(0x200)](_0x315b40)?_0x3392ad(0x1d8)+_0x51adff+_0x3392ad(0x1c9)+_0x559c5c+_0x3392ad(0x1df):_0x3392ad(0x1f0)+_0x51adff+'\x0a'+_0x559c5c+_0x3392ad(0x1c2);}[_0x1224d2(0x200)](_0x440c9b){const _0x2a8249=_0x1224d2;if(/^anthropic\.claude/[_0x2a8249(0x1d7)](_0x440c9b))return _0x2a8249(0x1d2);if(/^ai21\.j2/[_0x2a8249(0x1d7)](_0x440c9b))return _0x2a8249(0x1ed);if(/^cohere\.command/[_0x2a8249(0x1d7)](_0x440c9b))return _0x2a8249(0x1ee);if(/^meta\.llama/[_0x2a8249(0x1d7)](_0x440c9b))return _0x2a8249(0x20a);throw new _0x42cba4(_0x2325e5(this[_0x2a8249(0x1f4)][_0x2a8249(0x1fd)],_0x2a8249(0x20e),_0x440c9b));}async[_0x1224d2(0x202)](_0x508439,_0x530c21,_0x59c85f,_0x2d15dc,_0x2fd2f3){const _0x303f7c=_0x1224d2,_0x1a2db6={'method':_0x303f7c(0x1f1),'headers':await this[_0x303f7c(0x1fc)](this[_0x303f7c(0x1d3)],_0x2fd2f3),'body':JSON[_0x303f7c(0x211)]({..._0x508439,'model':_0x530c21,'stream':_0x59c85f}),'signal':this[_0x303f7c(0x1c5)][_0x303f7c(0x20b)]},_0x1afe1b=await fetch(this[_0x303f7c(0x1e4)],_0x1a2db6);_0x59c85f?await this[_0x303f7c(0x1fe)](_0x1afe1b,_0x530c21,_0x2d15dc):await this[_0x303f7c(0x1ca)](_0x1afe1b,_0x530c21,_0x2d15dc);}async[_0x1224d2(0x212)](_0x174ec2,_0x248451,_0xd5af1f,_0xe83efa){const _0xcc9c7b=_0x1224d2,_0x137fde=new _0x10dce7(this[_0xcc9c7b(0x1ea)]),_0x127bba={'body':JSON[_0xcc9c7b(0x211)](_0x174ec2),'contentType':_0xcc9c7b(0x1e5),'accept':_0xcc9c7b(0x1e5),'modelId':_0x248451};let _0xfc0db0;if(_0xd5af1f){const _0x5d345f=new _0xd89001(_0x127bba);_0xfc0db0=await _0x137fde[_0xcc9c7b(0x1e6)](_0x5d345f,{'abortSignal':this[_0xcc9c7b(0x1c5)][_0xcc9c7b(0x20b)]}),await this[_0xcc9c7b(0x1f5)](_0xfc0db0,_0x248451,_0xe83efa);}else{const _0x143d7d=new _0x3202e7(_0x127bba);_0xfc0db0=await _0x137fde[_0xcc9c7b(0x1e6)](_0x143d7d,{'abortSignal':this[_0xcc9c7b(0x1c5)][_0xcc9c7b(0x20b)]}),await this[_0xcc9c7b(0x1ca)](_0xfc0db0,_0x248451,_0xe83efa);}}async[_0x1224d2(0x1f5)](_0x571b2f,_0x4daa6b,_0x33d2d4){const _0x4069a7=_0x1224d2,_0x249483=_0x571b2f[_0x4069a7(0x1d0)],_0x33c246=new TextDecoder(_0x4069a7(0x1c1));let _0x170c57='';for await(const _0x4a212d of _0x249483)if(_0x4a212d[_0x4069a7(0x1e3)]){const _0x5236b4=_0x33c246[_0x4069a7(0x205)](_0x4a212d[_0x4069a7(0x1e3)][_0x4069a7(0x1db)]),_0x209bf5=JSON[_0x4069a7(0x1fa)](_0x5236b4);_0x170c57+=this[_0x4069a7(0x208)](_0x209bf5,_0x4daa6b),_0x33d2d4(_0x170c57);}return Promise[_0x4069a7(0x201)]();}async[_0x1224d2(0x1fe)](_0x2fc6d1,_0x3a61db,_0x42da9c){const _0xa6652=_0x1224d2,_0x18cdf3=_0x2fc6d1[_0xa6652(0x1d0)],_0x36ab82=new TextDecoder(_0xa6652(0x1c1)),_0x3f394d=_0x18cdf3[_0xa6652(0x1d1)]();let _0x6e7fab='',_0x35d1eb='',_0x455a14=!0x1;for(;!_0x455a14;){const {done:_0xa08e0c,value:_0x186ac3}=await _0x3f394d[_0xa6652(0x1e2)]();if(_0x455a14=_0xa08e0c,_0x455a14)break;const _0x214423=(_0x6e7fab+_0x36ab82[_0xa6652(0x205)](_0x186ac3))[_0xa6652(0x20c)]('\x0a')[_0xa6652(0x209)](_0x1b6112=>{const _0x224cb8=_0xa6652;try{return _0x6e7fab='',JSON[_0x224cb8(0x1fa)](_0x1b6112);}catch(_0x774818){return _0x6e7fab=_0x1b6112,null;}})[_0xa6652(0x1f2)](_0x20dcfa=>null!==_0x20dcfa);_0x214423[_0xa6652(0x1d5)]&&(_0x35d1eb+=_0x214423[_0xa6652(0x209)](_0x5dc35b=>this[_0xa6652(0x208)](_0x5dc35b,_0x3a61db))[_0xa6652(0x213)](''),_0x42da9c(_0x35d1eb));}return Promise[_0xa6652(0x201)]();}async[_0x1224d2(0x1ca)](_0x15a951,_0x30f623,_0x5df1a3){const _0x543003=_0x1224d2;let _0x36e5fe;return _0x36e5fe=_0x15a951 instanceof Response?await _0x15a951[_0x543003(0x1d9)]():JSON[_0x543003(0x1fa)](Buffer[_0x543003(0x1c8)](_0x15a951[_0x543003(0x1d0)])[_0x543003(0x1d6)](_0x543003(0x1e8))),(_0x5df1a3(this[_0x543003(0x208)](_0x36e5fe,_0x30f623)),Promise[_0x543003(0x201)]());}[_0x1224d2(0x208)](_0x5b17ac,_0x1a88d5){const _0x240678=_0x1224d2;switch(this[_0x240678(0x200)](_0x1a88d5)){case _0x240678(0x1d2):return _0x5b17ac[_0x240678(0x1de)];case _0x240678(0x1ed):return _0x5b17ac[_0x240678(0x207)][0x0][_0x240678(0x1c4)][_0x240678(0x1c7)];case _0x240678(0x1ee):return _0x5b17ac[_0x240678(0x1dc)][0x0][_0x240678(0x1c7)];case _0x240678(0x20a):return _0x5b17ac[_0x240678(0x1ef)];}}}function _0x26f4(){const _0x580dda=['ai.aws.requestParameters','completions','_getGeneratedText','map','meta.llama','signal','split','3939152NSEqgy','AI_ERROR_UNSUPPORTED_MODEL','ai.aws.apiUrl','1332191kSujuP','stringify','_processAWSRequest','join','utf-8','\x0a\x0aAssistant:','sendRequest','data','abortController','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','text','from','\x0a<</SYS>>\x0a[INST]\x0a','_readStaticResponse','5jOrfgq','2606020CETvvX','1044747SBOcrR','preparePrompt','anthropic.claude-v2','body','getReader','anthropic.claude','_requestHeaders','get','length','toString','test','<<SYS>>\x0a','json','pluginName','bytes','generations','AWSTextAdapter','completion','\x0a[/INST]','_requestParameters','define','read','chunk','_apiUrl','application/json','send','2325555ugvRYl','utf8','Instruction:\x0a','_bedrockClientConfig','30REmCip','bedrock-2023-05-31','ai21.j2','cohere.command','generation','Human:\x0a','POST','filter','112118afZZEa','editor','_readAsyncIterableResponse','_prepareRequestParameters','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.','config','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.','parse','4ZxSsBB','_prepareRequestHeaders','locale','_readStreamableResponse','ai.aws.requestHeaders','getModelFamily','resolve','_processProxyRequest','5012845YRYJTu','ai.aws.bedrockClientConfig','decode'];_0x26f4=function(){return _0x580dda;};return _0x26f4();}
23
+ const _0x1cb1be=_0x56f4;(function(_0x3fe7ed,_0x4d95dd){const _0x3c6b20=_0x56f4,_0x53fc94=_0x3fe7ed();while(!![]){try{const _0x47d327=parseInt(_0x3c6b20(0x17c))/0x1+-parseInt(_0x3c6b20(0x161))/0x2+-parseInt(_0x3c6b20(0x152))/0x3*(parseInt(_0x3c6b20(0x168))/0x4)+-parseInt(_0x3c6b20(0x16c))/0x5*(-parseInt(_0x3c6b20(0x178))/0x6)+-parseInt(_0x3c6b20(0x15d))/0x7*(parseInt(_0x3c6b20(0x166))/0x8)+parseInt(_0x3c6b20(0x189))/0x9+parseInt(_0x3c6b20(0x163))/0xa*(-parseInt(_0x3c6b20(0x175))/0xb);if(_0x47d327===_0x4d95dd)break;else _0x53fc94['push'](_0x53fc94['shift']());}catch(_0x334bf5){_0x53fc94['push'](_0x53fc94['shift']());}}}(_0x57f9,0x2f931));import{default as _0x2031bb}from'./aitextadapter.js';function _0x57f9(){const _0x55677d=['307723BdzcLi','stringify','bytes','generations','send','_requestHeaders','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.','body','define','_apiUrl','_prepareRequestParameters','getModelFamily','\x0a<</SYS>>\x0a[INST]\x0a','3225780lJsReo','ai.aws.requestHeaders','completion','editor','ai.aws.apiUrl','_bedrockClientConfig','config','bedrock-2023-05-31','_readStreamableResponse','AWSTextAdapter','toString','_getGeneratedText','text','filter','length','_processAWSRequest','signal','_processProxyRequest','POST','test','join','preparePrompt','application/json','\x0a\x0aAssistant:','_readAsyncIterableResponse','chunk','ai21.j2','anthropic.claude','split','60qihbew','sendRequest','read','Human:\x0a','get','json','resolve','map','_prepareRequestHeaders','data','_readStaticResponse','3262niEWeA','abortController','utf-8','ai.aws.requestParameters','377132VvinNV','AI_ERROR_UNSUPPORTED_MODEL','3350420aoVGTd','anthropic.claude-v2','\x0a[/INST]','376wUFDLv','Instruction:\x0a','280NyBInY','from','meta.llama','locale','3260IhGFxG','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','_requestParameters','utf8','cohere.command','<<SYS>>\x0a','pluginName','parse','decode','11yntlhC','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.','ai.aws.bedrockClientConfig','696tjwBXh','generation','getReader','completions'];_0x57f9=function(){return _0x55677d;};return _0x57f9();}function _0x56f4(_0xf96fa6,_0x5eebda){const _0x57f9c2=_0x57f9();return _0x56f4=function(_0x56f4c7,_0x223d42){_0x56f4c7=_0x56f4c7-0x144;let _0x319529=_0x57f9c2[_0x56f4c7];return _0x319529;},_0x56f4(_0xf96fa6,_0x5eebda);}import{AIRequestError as _0x5ee3ef}from'./aiadapter.js';import{BedrockRuntimeClient as _0x52f23f,InvokeModelCommand as _0x39774c,InvokeModelWithResponseStreamCommand as _0x568fa2}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0xf7e75e}from'../utils/common-translations.js';export default class Y extends _0x2031bb{static get[_0x1cb1be(0x172)](){const _0x3fe92f=_0x1cb1be;return _0x3fe92f(0x192);}constructor(_0x81109a){const _0x4296f6=_0x1cb1be;super(_0x81109a),_0x81109a[_0x4296f6(0x18f)][_0x4296f6(0x156)](_0x4296f6(0x160))||_0x81109a[_0x4296f6(0x18f)][_0x4296f6(0x184)](_0x4296f6(0x160),{'model':_0x4296f6(0x164),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x4296f6(0x190),'stream':!0x0}),this[_0x4296f6(0x185)]=_0x81109a[_0x4296f6(0x18f)][_0x4296f6(0x156)](_0x4296f6(0x18d)),this[_0x4296f6(0x18e)]=_0x81109a[_0x4296f6(0x18f)][_0x4296f6(0x156)](_0x4296f6(0x177)),this[_0x4296f6(0x181)]=_0x81109a[_0x4296f6(0x18f)][_0x4296f6(0x156)](_0x4296f6(0x18a)),this[_0x4296f6(0x16e)]=_0x81109a[_0x4296f6(0x18f)][_0x4296f6(0x156)](_0x4296f6(0x160));}async[_0x1cb1be(0x153)]({query:_0x46c3eb,context:_0x1eeee1,onData:_0x1cdc0c,actionId:_0x28d185}){const _0x24d994=_0x1cb1be,{model:_0x2fc8fe,stream:_0x55e03a,..._0x2f3ae4}=await this[_0x24d994(0x186)](this[_0x24d994(0x16e)],_0x28d185),_0x50a2d9={'prompt':await this[_0x24d994(0x14a)](_0x46c3eb,_0x1eeee1,_0x2fc8fe,_0x28d185),..._0x2f3ae4};this[_0x24d994(0x185)]?await this[_0x24d994(0x146)](_0x50a2d9,_0x2fc8fe,_0x55e03a,_0x1cdc0c,_0x28d185):await this[_0x24d994(0x144)](_0x50a2d9,_0x2fc8fe,_0x55e03a,_0x1cdc0c);}async[_0x1cb1be(0x14a)](_0x457069,_0x577c19,_0x588cd8,_0xca6a28){const _0x41471f=_0x1cb1be;let _0x3e7c2d,_0x33c587;return _0x577c19?(_0x3e7c2d=_0x41471f(0x182),_0x33c587=_0x41471f(0x167)+_0x457069+_0x41471f(0x16d)+_0x577c19):(_0x3e7c2d=_0x41471f(0x176),_0x33c587=_0x457069),_0x41471f(0x16a)==this[_0x41471f(0x187)](_0x588cd8)?_0x41471f(0x171)+_0x3e7c2d+_0x41471f(0x188)+_0x33c587+_0x41471f(0x165):_0x41471f(0x155)+_0x3e7c2d+'\x0a'+_0x33c587+_0x41471f(0x14c);}[_0x1cb1be(0x187)](_0x15b1eb){const _0x2b8264=_0x1cb1be;if(/^anthropic\.claude/[_0x2b8264(0x148)](_0x15b1eb))return _0x2b8264(0x150);if(/^ai21\.j2/[_0x2b8264(0x148)](_0x15b1eb))return _0x2b8264(0x14f);if(/^cohere\.command/[_0x2b8264(0x148)](_0x15b1eb))return _0x2b8264(0x170);if(/^meta\.llama/[_0x2b8264(0x148)](_0x15b1eb))return _0x2b8264(0x16a);throw new _0x5ee3ef(_0xf7e75e(this[_0x2b8264(0x18c)][_0x2b8264(0x16b)],_0x2b8264(0x162),_0x15b1eb));}async[_0x1cb1be(0x146)](_0x3fe688,_0x52f6ee,_0x37fc4a,_0x49143d,_0xff6a57){const _0x48b073=_0x1cb1be,_0x319a27={'method':_0x48b073(0x147),'headers':await this[_0x48b073(0x15a)](this[_0x48b073(0x181)],_0xff6a57),'body':JSON[_0x48b073(0x17d)]({..._0x3fe688,'model':_0x52f6ee,'stream':_0x37fc4a}),'signal':this[_0x48b073(0x15e)][_0x48b073(0x145)]},_0x4b60f7=await fetch(this[_0x48b073(0x185)],_0x319a27);_0x37fc4a?await this[_0x48b073(0x191)](_0x4b60f7,_0x52f6ee,_0x49143d):await this[_0x48b073(0x15c)](_0x4b60f7,_0x52f6ee,_0x49143d);}async[_0x1cb1be(0x144)](_0x446677,_0x567fd4,_0x5112ce,_0x308e8d){const _0x251f3d=_0x1cb1be,_0x2424b0=new _0x52f23f(this[_0x251f3d(0x18e)]),_0x5e85a4={'body':JSON[_0x251f3d(0x17d)](_0x446677),'contentType':_0x251f3d(0x14b),'accept':_0x251f3d(0x14b),'modelId':_0x567fd4};let _0x3d8a44;if(_0x5112ce){const _0x5dc8d8=new _0x568fa2(_0x5e85a4);_0x3d8a44=await _0x2424b0[_0x251f3d(0x180)](_0x5dc8d8,{'abortSignal':this[_0x251f3d(0x15e)][_0x251f3d(0x145)]}),await this[_0x251f3d(0x14d)](_0x3d8a44,_0x567fd4,_0x308e8d);}else{const _0x4d4c5c=new _0x39774c(_0x5e85a4);_0x3d8a44=await _0x2424b0[_0x251f3d(0x180)](_0x4d4c5c,{'abortSignal':this[_0x251f3d(0x15e)][_0x251f3d(0x145)]}),await this[_0x251f3d(0x15c)](_0x3d8a44,_0x567fd4,_0x308e8d);}}async[_0x1cb1be(0x14d)](_0x1c153e,_0x544603,_0x51549a){const _0xf07c7a=_0x1cb1be,_0x2f8768=_0x1c153e[_0xf07c7a(0x183)],_0x4604d9=new TextDecoder(_0xf07c7a(0x15f));let _0x3ea28a='';for await(const _0xffe072 of _0x2f8768)if(_0xffe072[_0xf07c7a(0x14e)]){const _0x5f4f1f=_0x4604d9[_0xf07c7a(0x174)](_0xffe072[_0xf07c7a(0x14e)][_0xf07c7a(0x17e)]),_0x16001e=JSON[_0xf07c7a(0x173)](_0x5f4f1f);_0x3ea28a+=this[_0xf07c7a(0x194)](_0x16001e,_0x544603),_0x51549a(_0x3ea28a);}return Promise[_0xf07c7a(0x158)]();}async[_0x1cb1be(0x191)](_0x5c1ad4,_0x4c8b83,_0x49d4d9){const _0x457cbf=_0x1cb1be,_0x520b62=_0x5c1ad4[_0x457cbf(0x183)],_0x578eb3=new TextDecoder(_0x457cbf(0x15f)),_0x58f288=_0x520b62[_0x457cbf(0x17a)]();let _0x285d04='',_0x3840f5='',_0x34f46c=!0x1;for(;!_0x34f46c;){const {done:_0x5f06d5,value:_0x607e8d}=await _0x58f288[_0x457cbf(0x154)]();if(_0x34f46c=_0x5f06d5,_0x34f46c)break;const _0x12cbe5=(_0x285d04+_0x578eb3[_0x457cbf(0x174)](_0x607e8d))[_0x457cbf(0x151)]('\x0a')[_0x457cbf(0x159)](_0x587132=>{const _0x73a869=_0x457cbf;try{return _0x285d04='',JSON[_0x73a869(0x173)](_0x587132);}catch(_0x7fc46e){return _0x285d04=_0x587132,null;}})[_0x457cbf(0x196)](_0x5c560b=>null!==_0x5c560b);_0x12cbe5[_0x457cbf(0x197)]&&(_0x3840f5+=_0x12cbe5[_0x457cbf(0x159)](_0x160fa8=>this[_0x457cbf(0x194)](_0x160fa8,_0x4c8b83))[_0x457cbf(0x149)](''),_0x49d4d9(_0x3840f5));}return Promise[_0x457cbf(0x158)]();}async[_0x1cb1be(0x15c)](_0xece36e,_0x2e6d58,_0x20d6fd){const _0x6ecc7=_0x1cb1be;let _0xe8ab71;return _0xe8ab71=_0xece36e instanceof Response?await _0xece36e[_0x6ecc7(0x157)]():JSON[_0x6ecc7(0x173)](Buffer[_0x6ecc7(0x169)](_0xece36e[_0x6ecc7(0x183)])[_0x6ecc7(0x193)](_0x6ecc7(0x16f))),(_0x20d6fd(this[_0x6ecc7(0x194)](_0xe8ab71,_0x2e6d58)),Promise[_0x6ecc7(0x158)]());}[_0x1cb1be(0x194)](_0x168825,_0x6e4307){const _0x50e75b=_0x1cb1be;switch(this[_0x50e75b(0x187)](_0x6e4307)){case _0x50e75b(0x150):return _0x168825[_0x50e75b(0x18b)];case _0x50e75b(0x14f):return _0x168825[_0x50e75b(0x17b)][0x0][_0x50e75b(0x15b)][_0x50e75b(0x195)];case _0x50e75b(0x170):return _0x168825[_0x50e75b(0x17f)][0x0][_0x50e75b(0x195)];case _0x50e75b(0x16a):return _0x168825[_0x50e75b(0x179)];}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5635(_0x365b80,_0xf95649){const _0x3a29f7=_0x3a29();return _0x5635=function(_0x56359b,_0xb2b56a){_0x56359b=_0x56359b-0x74;let _0x497a6b=_0x3a29f7[_0x56359b];return _0x497a6b;},_0x5635(_0x365b80,_0xf95649);}const _0x2fc2f6=_0x5635;(function(_0x4b7bb7,_0x21aa03){const _0x1a9991=_0x5635,_0x218b00=_0x4b7bb7();while(!![]){try{const _0x42b323=-parseInt(_0x1a9991(0xaf))/0x1+parseInt(_0x1a9991(0xa9))/0x2+parseInt(_0x1a9991(0x8d))/0x3*(parseInt(_0x1a9991(0x91))/0x4)+-parseInt(_0x1a9991(0x9b))/0x5*(parseInt(_0x1a9991(0xb6))/0x6)+-parseInt(_0x1a9991(0x95))/0x7+parseInt(_0x1a9991(0x93))/0x8+-parseInt(_0x1a9991(0x79))/0x9*(-parseInt(_0x1a9991(0x98))/0xa);if(_0x42b323===_0x21aa03)break;else _0x218b00['push'](_0x218b00['shift']());}catch(_0x10de36){_0x218b00['push'](_0x218b00['shift']());}}}(_0x3a29,0x5f5ce));import{default as _0x36f11a}from'./aitextadapter.js';import{AIRequestError as _0x41cc33}from'./aiadapter.js';function _0x3a29(){const _0x42092f=['includes','_readStreamableResponse','2598aGkFOV','decode','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','ai.openAI.requestHeaders','568OMoyxR','_apiUrl','5574480HcVsPw','replace','1354409FuUdCY','stream','data:\x20','2890DmPFEj','_prepareRequestHeaders','sendRequest','109485tiAvFR','filter','Moderation','text','stringify','[DONE]','join','resolve','config','delta','get','_readStaticResponse','OpenAITextAdapter','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.','523962BUwLNO','_isBufferIncomplete','AI_ERROR_MODERATION','gpt-3.5-turbo','parse','context_length_exceeded','720698ROXUso','abortController','https://api.openai.com/v1/chat/completions','split','system','ai.openAI.requestParameters','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.','174nCuvGe','length','ai.openAI.apiUrl','getReader','_requestParameters','editor','message','Instruction:\x0a','prepareMessages','26721ffmYZl','map','body','POST','reject','choices','pluginName','_prepareRequestParameters','_requestHeaders','read','user','define','signal','content','locale','_cleanUpData','json','AI_ERROR_CONTEXT_LENGTH'];_0x3a29=function(){return _0x42092f;};return _0x3a29();}import{getTranslation as _0x596137}from'../utils/common-translations.js';export default class J extends _0x36f11a{static get[_0x2fc2f6(0x7f)](){const _0xb37e61=_0x2fc2f6;return _0xb37e61(0xa7);}constructor(_0x3cb0a0){const _0x3788bb=_0x2fc2f6;super(_0x3cb0a0),_0x3cb0a0[_0x3788bb(0xa3)][_0x3788bb(0x84)](_0x3788bb(0xb8),_0x3788bb(0xb1)),_0x3cb0a0[_0x3788bb(0xa3)][_0x3788bb(0xa5)](_0x3788bb(0xb4))||_0x3cb0a0[_0x3788bb(0xa3)][_0x3788bb(0x84)](_0x3788bb(0xb4),{'model':_0x3788bb(0xac),'max_tokens':0x7d0,'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x3788bb(0x92)]=_0x3cb0a0[_0x3788bb(0xa3)][_0x3788bb(0xa5)](_0x3788bb(0xb8)),this[_0x3788bb(0x81)]=_0x3cb0a0[_0x3788bb(0xa3)][_0x3788bb(0xa5)](_0x3788bb(0x90))||{},this[_0x3788bb(0x74)]=_0x3cb0a0[_0x3788bb(0xa3)][_0x3788bb(0xa5)](_0x3788bb(0xb4));}async[_0x2fc2f6(0x9a)]({query:_0x2f4024,context:_0x21dfbf,onData:_0x3826b2,actionId:_0x267537}){const _0x1be2f6=_0x2fc2f6,_0x13ef50=this[_0x1be2f6(0x75)][_0x1be2f6(0x87)],_0x2912f2=await this[_0x1be2f6(0x78)](_0x2f4024,_0x21dfbf,_0x267537),_0x2ca1cb=await this[_0x1be2f6(0x99)](this[_0x1be2f6(0x81)],_0x267537),_0x2e965b=await this[_0x1be2f6(0x80)](this[_0x1be2f6(0x74)],_0x267537),_0x59914b={'messages':_0x2912f2,..._0x2e965b},_0x68924={'method':_0x1be2f6(0x7c),'headers':_0x2ca1cb,'body':JSON[_0x1be2f6(0x9f)](_0x59914b),'signal':this[_0x1be2f6(0xb0)][_0x1be2f6(0x85)]},_0x1c95b9=await fetch(this[_0x1be2f6(0x92)],_0x68924);if(_0x1c95b9['ok'])return _0x2e965b[_0x1be2f6(0x96)]?await this[_0x1be2f6(0x8c)](_0x1c95b9,_0x3826b2):await this[_0x1be2f6(0xa6)](_0x1c95b9,_0x3826b2),Promise[_0x1be2f6(0xa2)]();{const _0x2f9697=await _0x1c95b9[_0x1be2f6(0x9e)]();return _0x2f9697[_0x1be2f6(0x8b)](_0x1be2f6(0xae))?Promise[_0x1be2f6(0x7d)](new _0x41cc33(_0x596137(_0x13ef50,_0x1be2f6(0x8a)))):_0x2f9697[_0x1be2f6(0x8b)](_0x1be2f6(0x9d))?Promise[_0x1be2f6(0x7d)](new _0x41cc33(_0x596137(_0x13ef50,_0x1be2f6(0xab)))):Promise[_0x1be2f6(0x7d)](new Error(_0x2f9697));}}async[_0x2fc2f6(0x78)](_0x212c6e,_0x3db8ed,_0x373aea){const _0x161b8e=_0x2fc2f6;let _0x53a36b,_0x36127b;return _0x3db8ed?(_0x53a36b=_0x161b8e(0xb5),_0x36127b=_0x161b8e(0x77)+_0x212c6e+_0x161b8e(0x8f)+_0x3db8ed):(_0x53a36b=_0x161b8e(0xa8),_0x36127b=_0x212c6e),[{'role':_0x161b8e(0xb3),'content':_0x53a36b},{'role':_0x161b8e(0x83),'content':_0x36127b}];}async[_0x2fc2f6(0x8c)](_0x30493d,_0xfcff74){const _0x5033a5=_0x2fc2f6,_0x20286b=_0x30493d[_0x5033a5(0x7b)][_0x5033a5(0xb9)](),_0x5c60a5=new TextDecoder();let _0x4264e7='',_0x2f1122='',_0x41707b='',_0x1fd1ce=!0x1;for(;!_0x1fd1ce;){const {done:_0x5e28ba,value:_0x4caff0}=await _0x20286b[_0x5033a5(0x82)](),_0x2f86f5=_0x4264e7+_0x5c60a5[_0x5033a5(0x8e)](_0x4caff0);let _0x29d687='';_0x1fd1ce=_0x5e28ba;try{_0x29d687=this[_0x5033a5(0x88)](_0x2f86f5),_0x4264e7='';}catch(_0x4fc3b0){_0x4264e7=_0x2f86f5;continue;}_0x2f1122+=_0x29d687,!_0x1fd1ce&&this[_0x5033a5(0xaa)](_0x2f1122)||_0x2f1122&&(_0x41707b+=_0x2f1122,_0x2f1122='',_0xfcff74(_0x41707b));}return Promise[_0x5033a5(0xa2)]();}async[_0x2fc2f6(0xa6)](_0x200b6,_0x28e945){const _0x219bfe=_0x2fc2f6;return _0x28e945((await _0x200b6[_0x219bfe(0x89)]())[_0x219bfe(0x7e)][0x0][_0x219bfe(0x76)][_0x219bfe(0x86)]),Promise[_0x219bfe(0xa2)]();}[_0x2fc2f6(0xaa)](_0x372840){const _0x264aea=_0x2fc2f6,_0x4131c7=_0x372840[_0x264aea(0xb2)]('<')[_0x264aea(0xb7)]!==_0x372840[_0x264aea(0xb2)]('>')[_0x264aea(0xb7)],_0x5da453=_0x372840[_0x264aea(0xb7)]<0x1e;return _0x4131c7&&_0x5da453;}[_0x2fc2f6(0x88)](_0x19c031){const _0x5e707b=_0x2fc2f6;return _0x19c031[_0x5e707b(0xb2)](/\n(?![^{]*\})/g)[_0x5e707b(0x7a)](_0xae0409=>_0xae0409[_0x5e707b(0x94)](_0x5e707b(0x97),''))[_0x5e707b(0x9c)](_0xe1f339=>_0xe1f339&&_0xe1f339[_0x5e707b(0xb7)]>0x0&&_0x5e707b(0xa0)!==_0xe1f339)[_0x5e707b(0x7a)](_0x3ea468=>{const _0xcfc64f=_0x5e707b,{choices:_0x36e6a6}=JSON[_0xcfc64f(0xad)](_0x3ea468);if(_0x36e6a6[0x0]&&_0x36e6a6[0x0][_0xcfc64f(0xa4)]&&_0x36e6a6[0x0][_0xcfc64f(0xa4)][_0xcfc64f(0x86)])return _0x36e6a6[0x0][_0xcfc64f(0xa4)][_0xcfc64f(0x86)];})[_0x5e707b(0x9c)](_0x3d4831=>_0x3d4831)[_0x5e707b(0xa1)]('');}}
23
+ const _0x356b01=_0x59c1;(function(_0x3ef405,_0x4e0b48){const _0x3fc462=_0x59c1,_0x34d501=_0x3ef405();while(!![]){try{const _0x1736b8=parseInt(_0x3fc462(0x1a3))/0x1*(-parseInt(_0x3fc462(0x196))/0x2)+parseInt(_0x3fc462(0x1a9))/0x3+parseInt(_0x3fc462(0x1b1))/0x4+parseInt(_0x3fc462(0x1bd))/0x5+-parseInt(_0x3fc462(0x1bb))/0x6+parseInt(_0x3fc462(0x179))/0x7*(parseInt(_0x3fc462(0x1b0))/0x8)+-parseInt(_0x3fc462(0x19d))/0x9;if(_0x1736b8===_0x4e0b48)break;else _0x34d501['push'](_0x34d501['shift']());}catch(_0x553bbf){_0x34d501['push'](_0x34d501['shift']());}}}(_0x2ffb,0x20a26));import{default as _0x485ceb}from'./aitextadapter.js';function _0x59c1(_0x5ce518,_0xa9f295){const _0x2ffbd1=_0x2ffb();return _0x59c1=function(_0x59c15a,_0x1a6bef){_0x59c15a=_0x59c15a-0x179;let _0x215456=_0x2ffbd1[_0x59c15a];return _0x215456;},_0x59c1(_0x5ce518,_0xa9f295);}import{AIRequestError as _0xa5598c}from'./aiadapter.js';import{getTranslation as _0x2753ba}from'../utils/common-translations.js';function _0x2ffb(){const _0x2b4726=['1433916uCYXxG','filter','258180szfknr','14flaHtp','_readStreamableResponse','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.','get','_readStaticResponse','OpenAITextAdapter','json','Instruction:\x0a','editor','gpt-3.5-turbo','_requestHeaders','parse','user','split','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.','_prepareRequestParameters','map','stream','AI_ERROR_MODERATION','ai.openAI.requestHeaders','signal','message','includes','content','text','body','_isBufferIncomplete','getReader','stringify','4612UeBmFY','AI_ERROR_CONTEXT_LENGTH','config','length','data:\x20','define','_apiUrl','398565qsustf','join','sendRequest','choices','reject','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','22OjSkkn','_requestParameters','prepareMessages','decode','resolve','_cleanUpData','234783lUGvTv','context_length_exceeded','pluginName','[DONE]','system','ai.openAI.apiUrl','locale','636176fljqRW','714928jADzJm','Moderation','delta','https://api.openai.com/v1/chat/completions','replace','abortController','ai.openAI.requestParameters','POST','_prepareRequestHeaders','read'];_0x2ffb=function(){return _0x2b4726;};return _0x2ffb();}export default class J extends _0x485ceb{static get[_0x356b01(0x1ab)](){const _0x450331=_0x356b01;return _0x450331(0x17e);}constructor(_0x299c61){const _0x1efc1c=_0x356b01;super(_0x299c61),_0x299c61[_0x1efc1c(0x198)][_0x1efc1c(0x19b)](_0x1efc1c(0x1ae),_0x1efc1c(0x1b4)),_0x299c61[_0x1efc1c(0x198)][_0x1efc1c(0x17c)](_0x1efc1c(0x1b7))||_0x299c61[_0x1efc1c(0x198)][_0x1efc1c(0x19b)](_0x1efc1c(0x1b7),{'model':_0x1efc1c(0x182),'max_tokens':0x7d0,'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x1efc1c(0x19c)]=_0x299c61[_0x1efc1c(0x198)][_0x1efc1c(0x17c)](_0x1efc1c(0x1ae)),this[_0x1efc1c(0x183)]=_0x299c61[_0x1efc1c(0x198)][_0x1efc1c(0x17c)](_0x1efc1c(0x18c))||{},this[_0x1efc1c(0x1a4)]=_0x299c61[_0x1efc1c(0x198)][_0x1efc1c(0x17c)](_0x1efc1c(0x1b7));}async[_0x356b01(0x19f)]({query:_0x9fdf0a,context:_0x4fec72,onData:_0x4956a7,actionId:_0x329f99}){const _0x1626a2=_0x356b01,_0x3522b6=this[_0x1626a2(0x181)][_0x1626a2(0x1af)],_0x1a7036=await this[_0x1626a2(0x1a5)](_0x9fdf0a,_0x4fec72,_0x329f99),_0x4332f9=await this[_0x1626a2(0x1b9)](this[_0x1626a2(0x183)],_0x329f99),_0x44d46f=await this[_0x1626a2(0x188)](this[_0x1626a2(0x1a4)],_0x329f99),_0xf6daa5={'messages':_0x1a7036,..._0x44d46f},_0x216ffb={'method':_0x1626a2(0x1b8),'headers':_0x4332f9,'body':JSON[_0x1626a2(0x195)](_0xf6daa5),'signal':this[_0x1626a2(0x1b6)][_0x1626a2(0x18d)]},_0x23597e=await fetch(this[_0x1626a2(0x19c)],_0x216ffb);if(_0x23597e['ok'])return _0x44d46f[_0x1626a2(0x18a)]?await this[_0x1626a2(0x17a)](_0x23597e,_0x4956a7):await this[_0x1626a2(0x17d)](_0x23597e,_0x4956a7),Promise[_0x1626a2(0x1a7)]();{const _0x1080f7=await _0x23597e[_0x1626a2(0x191)]();return _0x1080f7[_0x1626a2(0x18f)](_0x1626a2(0x1aa))?Promise[_0x1626a2(0x1a1)](new _0xa5598c(_0x2753ba(_0x3522b6,_0x1626a2(0x197)))):_0x1080f7[_0x1626a2(0x18f)](_0x1626a2(0x1b2))?Promise[_0x1626a2(0x1a1)](new _0xa5598c(_0x2753ba(_0x3522b6,_0x1626a2(0x18b)))):Promise[_0x1626a2(0x1a1)](new Error(_0x1080f7));}}async[_0x356b01(0x1a5)](_0x338682,_0x3de8a7,_0x4a6c0d){const _0x5a77b3=_0x356b01;let _0x5357e8,_0x107868;return _0x3de8a7?(_0x5357e8=_0x5a77b3(0x17b),_0x107868=_0x5a77b3(0x180)+_0x338682+_0x5a77b3(0x1a2)+_0x3de8a7):(_0x5357e8=_0x5a77b3(0x187),_0x107868=_0x338682),[{'role':_0x5a77b3(0x1ad),'content':_0x5357e8},{'role':_0x5a77b3(0x185),'content':_0x107868}];}async[_0x356b01(0x17a)](_0x509c65,_0x37382a){const _0x501f83=_0x356b01,_0xcdb650=_0x509c65[_0x501f83(0x192)][_0x501f83(0x194)](),_0x4f34af=new TextDecoder();let _0x24b7d0='',_0xc804f6='',_0x50701d='',_0x549890=!0x1;for(;!_0x549890;){const {done:_0x562817,value:_0x89783d}=await _0xcdb650[_0x501f83(0x1ba)](),_0x588e2d=_0x24b7d0+_0x4f34af[_0x501f83(0x1a6)](_0x89783d);let _0x4d551d='';_0x549890=_0x562817;try{_0x4d551d=this[_0x501f83(0x1a8)](_0x588e2d),_0x24b7d0='';}catch(_0x40b680){_0x24b7d0=_0x588e2d;continue;}_0xc804f6+=_0x4d551d,!_0x549890&&this[_0x501f83(0x193)](_0xc804f6)||_0xc804f6&&(_0x50701d+=_0xc804f6,_0xc804f6='',_0x37382a(_0x50701d));}return Promise[_0x501f83(0x1a7)]();}async[_0x356b01(0x17d)](_0x2b394b,_0x4bf3bd){const _0x1430b1=_0x356b01;return _0x4bf3bd((await _0x2b394b[_0x1430b1(0x17f)]())[_0x1430b1(0x1a0)][0x0][_0x1430b1(0x18e)][_0x1430b1(0x190)]),Promise[_0x1430b1(0x1a7)]();}[_0x356b01(0x193)](_0x31ace4){const _0x2fdd96=_0x356b01,_0x13777e=_0x31ace4[_0x2fdd96(0x186)]('<')[_0x2fdd96(0x199)]!==_0x31ace4[_0x2fdd96(0x186)]('>')[_0x2fdd96(0x199)],_0x40355d=_0x31ace4[_0x2fdd96(0x199)]<0x1e;return _0x13777e&&_0x40355d;}[_0x356b01(0x1a8)](_0x212110){const _0x4e23a2=_0x356b01;return _0x212110[_0x4e23a2(0x186)](/\n(?![^{]*\})/g)[_0x4e23a2(0x189)](_0x3c8016=>_0x3c8016[_0x4e23a2(0x1b5)](_0x4e23a2(0x19a),''))[_0x4e23a2(0x1bc)](_0x349415=>_0x349415&&_0x349415[_0x4e23a2(0x199)]>0x0&&_0x4e23a2(0x1ac)!==_0x349415)[_0x4e23a2(0x189)](_0x19ac2a=>{const _0x4816b8=_0x4e23a2,{choices:_0xc8946c}=JSON[_0x4816b8(0x184)](_0x19ac2a);if(_0xc8946c[0x0]&&_0xc8946c[0x0][_0x4816b8(0x1b3)]&&_0xc8946c[0x0][_0x4816b8(0x1b3)][_0x4816b8(0x190)])return _0xc8946c[0x0][_0x4816b8(0x1b3)][_0x4816b8(0x190)];})[_0x4e23a2(0x1bc)](_0x13564b=>_0x13564b)[_0x4e23a2(0x19e)]('');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3634(){const _0x1a4450=['_licenseKeyCheckInterval','translateHindi','translateChinese','ai-trial-license-key-reached-limit-changes','Journalism','set','push','Direct','English','destroy','Improve\x20writing','changeTone','groupId','5213625tSvdQM','casual','translateFrench','Arabic','poetic','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','8031141jRRIAV','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','init','7549297eVtBjs','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','162cKORBA','Make\x20shorter','4292EzdGKk','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','Simplified\x20Chinese','109900iNbgbb','journalism','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','Translate\x20the\x20content\x20to\x20Spanish\x20language.','Summarize','AIAssistant','Generate\x20from\x20selection','Continue','includes','French','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','pluginName','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','Change\x20style','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','ai.aiAssistant.commands','29320960pTNyHw','Hindi','makeLonger','translatePortuguese','business','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','licenseKey','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','3813440sZRrri','translateEnglish','continue','ai.aiAssistant.extraCommandGroups','improveWriting','requires','Edit\x20or\x20review','Translate\x20the\x20content\x20to\x20Hindi\x20language.','forEach','confident','ai.aiAssistant.removeCommands','translateGerman','translateArabic','aiLicenseKeyInvalid','Change\x20tone','info','summarize','Translate\x20the\x20content\x20to\x20English\x20language.','aiLicenseKeyTrialLimit:operations','Portuguese','6YTEGGi','Friendly','German','friendly','Business','Legal','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','simplifyLanguage','changeStyle','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','Professional','Translate','aiLicenseKeyValid','legal','concat','Translate\x20the\x20content\x20to\x20Arabic\x20language.','makeShorter','editor','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','editOrReview','Translate\x20the\x20content\x20to\x20German\x20language.','Translate\x20the\x20content\x20to\x20French\x20language.','122YnFGXD','generate','define','translate','aiLicenseKeyTrial','get','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','filter','ai-invalid-license-key','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.','Translate\x20to\x20%0','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','direct','find','translateSpanish','Simplify\x20language','professional','Confident','config','Make\x20longer','locale','Spanish','commands','Poetic','Casual','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.'];_0x3634=function(){return _0x1a4450;};return _0x3634();}const _0xd9c485=_0x350f;(function(_0x2bf3cb,_0x2c869c){const _0x1dfd3e=_0x350f,_0x3e3fd5=_0x2bf3cb();while(!![]){try{const _0x591cb2=-parseInt(_0x1dfd3e(0x11c))/0x1*(-parseInt(_0x1dfd3e(0xd6))/0x2)+-parseInt(_0x1dfd3e(0xd4))/0x3*(parseInt(_0x1dfd3e(0xd9))/0x4)+parseInt(_0x1dfd3e(0xc9))/0x5*(-parseInt(_0x1dfd3e(0x105))/0x6)+-parseInt(_0x1dfd3e(0xd2))/0x7+parseInt(_0x1dfd3e(0xf1))/0x8+parseInt(_0x1dfd3e(0xcf))/0x9+parseInt(_0x1dfd3e(0xe9))/0xa;if(_0x591cb2===_0x2c869c)break;else _0x3e3fd5['push'](_0x3e3fd5['shift']());}catch(_0x5f455b){_0x3e3fd5['push'](_0x3e3fd5['shift']());}}}(_0x3634,0xe9e8b));function _0x350f(_0x48bf5c,_0x137e39){const _0x363421=_0x3634();return _0x350f=function(_0x350fd4,_0x538139){_0x350fd4=_0x350fd4-0xc3;let _0x4a730e=_0x363421[_0x350fd4];return _0x4a730e;},_0x350f(_0x48bf5c,_0x137e39);}import{CKEditorError as _0x1234f9}from'ckeditor5/src/utils.js';import{Plugin as _0xd8c7a7}from'ckeditor5/src/core.js';import _0x451a2a from'./aiassistantui.js';import _0xef44a1 from'./aiassistantediting.js';import{getTranslation as _0x1d54fd}from'./utils/common-translations.js';export default class r extends _0xd8c7a7{static get[_0xd9c485(0xf6)](){return[_0x451a2a,_0xef44a1];}static get[_0xd9c485(0xe4)](){const _0x2d6ddc=_0xd9c485;return _0x2d6ddc(0xde);}constructor(_0x27dcf6){const _0x3b2f91=_0xd9c485;super(_0x27dcf6);const _0x5e2f6d=_0x27dcf6[_0x3b2f91(0x12e)];_0x5e2f6d[_0x3b2f91(0x11e)](_0x3b2f91(0xe8),getDefaultCommands(_0x27dcf6[_0x3b2f91(0x130)])),_0x5e2f6d[_0x3b2f91(0x11e)](_0x3b2f91(0xf4),[]),_0x5e2f6d[_0x3b2f91(0x11e)](_0x3b2f91(0xfb),[]);const _0x3cea89=_0x5e2f6d[_0x3b2f91(0x121)](_0x3b2f91(0xe8)),_0x564e7c=_0x5e2f6d[_0x3b2f91(0x121)](_0x3b2f91(0xf4)),_0x2bdede=_0x5e2f6d[_0x3b2f91(0x121)](_0x3b2f91(0xfb));_0x564e7c[_0x3b2f91(0xf9)](_0x5dc309=>{const _0x395cc4=_0x3b2f91,_0x1fbd87=_0x3cea89[_0x395cc4(0x129)](_0x4283f4=>_0x4283f4[_0x395cc4(0xc8)]===_0x5dc309[_0x395cc4(0xc8)]);_0x1fbd87?_0x1fbd87[_0x395cc4(0x132)]=_0x1fbd87[_0x395cc4(0x132)][_0x395cc4(0x114)](_0x5dc309[_0x395cc4(0x132)]):_0x3cea89[_0x395cc4(0x13c)](_0x5dc309);}),_0x3cea89[_0x3b2f91(0xf9)](_0x114172=>{const _0x541101=_0x3b2f91;_0x114172[_0x541101(0x132)]=_0x114172[_0x541101(0x132)][_0x541101(0x123)](_0x227d68=>!_0x2bdede[_0x541101(0xe1)](_0x227d68['id']));}),_0x5e2f6d[_0x3b2f91(0x13b)](_0x3b2f91(0xe8),_0x3cea89);}[_0xd9c485(0xd1)](){const _0x48656b=_0xd9c485,_0x3a08c5=this[_0x48656b(0x117)];this[_0x48656b(0xef)]=_0x3a08c5[_0x48656b(0x12e)][_0x48656b(0x121)](_0x48656b(0xef)),this[_0x48656b(0x136)]=setInterval(()=>{const _0x8c8d53=_0x48656b;let _0x4ab2e6;for(const _0x14f259 in _0x3a08c5){const _0x42bbe7=_0x14f259,_0x3af805=_0x3a08c5[_0x42bbe7];if(_0x8c8d53(0x120)===_0x3af805||_0x8c8d53(0xfe)===_0x3af805||_0x8c8d53(0x112)===_0x3af805||_0x8c8d53(0x103)===_0x3af805){delete _0x3a08c5[_0x42bbe7],_0x4ab2e6=_0x3af805;break;}}if(_0x8c8d53(0xfe)===_0x4ab2e6)throw clearInterval(this[_0x8c8d53(0x136)]),new _0x1234f9(_0x8c8d53(0x124),null);if(_0x8c8d53(0x120)===_0x4ab2e6&&console[_0x8c8d53(0x100)](_0x8c8d53(0x125)),_0x8c8d53(0x103)===_0x4ab2e6)throw clearInterval(this[_0x8c8d53(0x136)]),new _0x1234f9(_0x8c8d53(0x139),null);_0x8c8d53(0x112)===_0x4ab2e6&&clearInterval(this[_0x8c8d53(0x136)]);},0x3e8);}[_0xd9c485(0xc5)](){const _0x2e3e1b=_0xd9c485;this[_0x2e3e1b(0x136)]&&clearInterval(this[_0x2e3e1b(0x136)]);}}export function getDefaultCommands(_0x558e92){const _0x5a4f38=_0xd9c485;return[{'groupId':_0x5a4f38(0x119),'groupLabel':_0x1d54fd(_0x558e92,_0x5a4f38(0xf7)),'commands':[{'id':_0x5a4f38(0xf5),'label':_0x1d54fd(_0x558e92,_0x5a4f38(0xc6)),'prompt':_0x5a4f38(0x118)},{'id':_0x5a4f38(0x116),'label':_0x1d54fd(_0x558e92,_0x5a4f38(0xd5)),'prompt':_0x5a4f38(0xce)},{'id':_0x5a4f38(0xeb),'label':_0x1d54fd(_0x558e92,_0x5a4f38(0x12f)),'prompt':_0x5a4f38(0xe7)},{'id':_0x5a4f38(0x10d),'label':_0x1d54fd(_0x558e92,_0x5a4f38(0x12b)),'prompt':_0x5a4f38(0xee)}]},{'groupId':_0x5a4f38(0x11d),'groupLabel':_0x1d54fd(_0x558e92,_0x5a4f38(0xdf)),'commands':[{'id':_0x5a4f38(0x101),'label':_0x1d54fd(_0x558e92,_0x5a4f38(0xdd)),'prompt':_0x5a4f38(0xd0)},{'id':_0x5a4f38(0xf3),'label':_0x1d54fd(_0x558e92,_0x5a4f38(0xe0)),'prompt':_0x5a4f38(0x135)}]},{'groupId':_0x5a4f38(0xc7),'groupLabel':_0x1d54fd(_0x558e92,_0x5a4f38(0xff)),'commands':[{'id':_0x5a4f38(0x12c),'label':_0x1d54fd(_0x558e92,_0x5a4f38(0x110)),'prompt':_0x5a4f38(0x122)},{'id':_0x5a4f38(0xca),'label':_0x1d54fd(_0x558e92,_0x5a4f38(0x134)),'prompt':_0x5a4f38(0x10b)},{'id':_0x5a4f38(0x128),'label':_0x1d54fd(_0x558e92,_0x5a4f38(0xc3)),'prompt':_0x5a4f38(0xe5)},{'id':_0x5a4f38(0xfa),'label':_0x1d54fd(_0x558e92,_0x5a4f38(0x12d)),'prompt':_0x5a4f38(0x10f)},{'id':_0x5a4f38(0x108),'label':_0x1d54fd(_0x558e92,_0x5a4f38(0x106)),'prompt':_0x5a4f38(0x10c)}]},{'groupId':_0x5a4f38(0x10e),'groupLabel':_0x1d54fd(_0x558e92,_0x5a4f38(0xe6)),'commands':[{'id':_0x5a4f38(0xed),'label':_0x1d54fd(_0x558e92,_0x5a4f38(0x109)),'prompt':_0x5a4f38(0xf0)},{'id':_0x5a4f38(0x113),'label':_0x1d54fd(_0x558e92,_0x5a4f38(0x10a)),'prompt':_0x5a4f38(0x127)},{'id':_0x5a4f38(0xda),'label':_0x1d54fd(_0x558e92,_0x5a4f38(0x13a)),'prompt':_0x5a4f38(0xd3)},{'id':_0x5a4f38(0xcd),'label':_0x1d54fd(_0x558e92,_0x5a4f38(0x133)),'prompt':_0x5a4f38(0xe3)}]},{'groupId':_0x5a4f38(0x11f),'groupLabel':_0x1d54fd(_0x558e92,_0x5a4f38(0x111)),'commands':[{'id':_0x5a4f38(0xf2),'label':_0x1d54fd(_0x558e92,_0x5a4f38(0x126),[_0x1d54fd(_0x558e92,_0x5a4f38(0xc4))]),'prompt':_0x5a4f38(0x102)},{'id':_0x5a4f38(0x12a),'label':_0x1d54fd(_0x558e92,_0x5a4f38(0x126),[_0x1d54fd(_0x558e92,_0x5a4f38(0x131))]),'prompt':_0x5a4f38(0xdc)},{'id':_0x5a4f38(0xec),'label':_0x1d54fd(_0x558e92,_0x5a4f38(0x126),[_0x1d54fd(_0x558e92,_0x5a4f38(0x104))]),'prompt':_0x5a4f38(0xdb)},{'id':_0x5a4f38(0xfc),'label':_0x1d54fd(_0x558e92,_0x5a4f38(0x126),[_0x1d54fd(_0x558e92,_0x5a4f38(0x107))]),'prompt':_0x5a4f38(0x11a)},{'id':_0x5a4f38(0xcb),'label':_0x1d54fd(_0x558e92,_0x5a4f38(0x126),[_0x1d54fd(_0x558e92,_0x5a4f38(0xe2))]),'prompt':_0x5a4f38(0x11b)},{'id':_0x5a4f38(0x138),'label':_0x1d54fd(_0x558e92,_0x5a4f38(0x126),[_0x1d54fd(_0x558e92,_0x5a4f38(0xd8))]),'prompt':_0x5a4f38(0xd7)},{'id':_0x5a4f38(0x137),'label':_0x1d54fd(_0x558e92,_0x5a4f38(0x126),[_0x1d54fd(_0x558e92,_0x5a4f38(0xea))]),'prompt':_0x5a4f38(0xf8)},{'id':_0x5a4f38(0xfd),'label':_0x1d54fd(_0x558e92,_0x5a4f38(0x126),[_0x1d54fd(_0x558e92,_0x5a4f38(0xcc))]),'prompt':_0x5a4f38(0x115)}]}];}
23
+ const _0x4f56a5=_0x5521;function _0x2fae(){const _0x1566e4=['Business','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','20983730VFeVfr','Friendly','Translate\x20the\x20content\x20to\x20French\x20language.','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','Spanish','aiLicenseKeyValid','3968352RVwxos','AIAssistant','Casual','aiLicenseKeyTrial','translate','professional','commands','confident','direct','Direct','push','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.','translateEnglish','Continue','casual','get','Translate','_licenseKeyCheckInterval','config','Confident','Hindi','Translate\x20the\x20content\x20to\x20Arabic\x20language.','changeTone','editor','Legal','3320595avJdEt','417114wfEzIJ','info','Summarize','summarize','continue','set','changeStyle','Make\x20shorter','Professional','Change\x20tone','concat','includes','28SponUs','Edit\x20or\x20review','Simplify\x20language','translatePortuguese','aiLicenseKeyInvalid','groupId','translateSpanish','5gaOYSQ','translateHindi','Generate\x20from\x20selection','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','forEach','generate','ai.aiAssistant.commands','licenseKey','Journalism','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Change\x20style','find','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','Translate\x20the\x20content\x20to\x20German\x20language.','legal','French','Simplified\x20Chinese','makeShorter','ai.aiAssistant.removeCommands','ai-trial-license-key-reached-limit-changes','English','2251389pkuXvk','translateFrench','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','German','locale','requires','4MLHHbN','Improve\x20writing','ai.aiAssistant.extraCommandGroups','115904LkmvVs','friendly','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','filter','improveWriting','poetic','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','Arabic','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','Translate\x20the\x20content\x20to\x20Spanish\x20language.','destroy','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Translate\x20to\x20%0','simplifyLanguage','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','Portuguese','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','define','ai-invalid-license-key','editOrReview','230918EuMTXE','Make\x20longer','translateChinese','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','journalism','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','makeLonger','translateArabic','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','aiLicenseKeyTrialLimit:operations','init','business','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Translate\x20the\x20content\x20to\x20English\x20language.','Translate\x20the\x20content\x20to\x20Hindi\x20language.','translateGerman','pluginName','Poetic'];_0x2fae=function(){return _0x1566e4;};return _0x2fae();}(function(_0x12e51b,_0x145cab){const _0x44494c=_0x5521,_0x8358ca=_0x12e51b();while(!![]){try{const _0xc55652=parseInt(_0x44494c(0x178))/0x1*(-parseInt(_0x44494c(0x131))/0x2)+parseInt(_0x44494c(0x18d))/0x3*(-parseInt(_0x44494c(0x193))/0x4)+-parseInt(_0x44494c(0x164))/0x5+-parseInt(_0x44494c(0x165))/0x6+parseInt(_0x44494c(0x171))/0x7*(-parseInt(_0x44494c(0x196))/0x8)+parseInt(_0x44494c(0x14b))/0x9+parseInt(_0x44494c(0x145))/0xa;if(_0xc55652===_0x145cab)break;else _0x8358ca['push'](_0x8358ca['shift']());}catch(_0x5dc4d6){_0x8358ca['push'](_0x8358ca['shift']());}}}(_0x2fae,0x66871));import{CKEditorError as _0x452701}from'ckeditor5/src/utils.js';function _0x5521(_0x136508,_0x91dfdc){const _0x2fae98=_0x2fae();return _0x5521=function(_0x552187,_0x358a9f){_0x552187=_0x552187-0x12d;let _0x528b7a=_0x2fae98[_0x552187];return _0x528b7a;},_0x5521(_0x136508,_0x91dfdc);}import{Plugin as _0x53f54d}from'ckeditor5/src/core.js';import _0x14efc9 from'./aiassistantui.js';import _0x4367db from'./aiassistantediting.js';import{getTranslation as _0x1e4fd9}from'./utils/common-translations.js';export default class r extends _0x53f54d{static get[_0x4f56a5(0x192)](){return[_0x14efc9,_0x4367db];}static get[_0x4f56a5(0x141)](){const _0x2f4b37=_0x4f56a5;return _0x2f4b37(0x14c);}constructor(_0x4a4ada){const _0x568db0=_0x4f56a5;super(_0x4a4ada);const _0x11c63a=_0x4a4ada[_0x568db0(0x15d)];_0x11c63a[_0x568db0(0x12e)](_0x568db0(0x17e),getDefaultCommands(_0x4a4ada[_0x568db0(0x191)])),_0x11c63a[_0x568db0(0x12e)](_0x568db0(0x195),[]),_0x11c63a[_0x568db0(0x12e)](_0x568db0(0x18a),[]);const _0x5eb73d=_0x11c63a[_0x568db0(0x15a)](_0x568db0(0x17e)),_0x2789af=_0x11c63a[_0x568db0(0x15a)](_0x568db0(0x195)),_0x9a8b2e=_0x11c63a[_0x568db0(0x15a)](_0x568db0(0x18a));_0x2789af[_0x568db0(0x17c)](_0x5ecc84=>{const _0x3e6901=_0x568db0,_0x1ea9f5=_0x5eb73d[_0x3e6901(0x183)](_0x1a75e4=>_0x1a75e4[_0x3e6901(0x176)]===_0x5ecc84[_0x3e6901(0x176)]);_0x1ea9f5?_0x1ea9f5[_0x3e6901(0x151)]=_0x1ea9f5[_0x3e6901(0x151)][_0x3e6901(0x16f)](_0x5ecc84[_0x3e6901(0x151)]):_0x5eb73d[_0x3e6901(0x155)](_0x5ecc84);}),_0x5eb73d[_0x568db0(0x17c)](_0x187982=>{const _0x177d52=_0x568db0;_0x187982[_0x177d52(0x151)]=_0x187982[_0x177d52(0x151)][_0x177d52(0x199)](_0x10dd2d=>!_0x9a8b2e[_0x177d52(0x170)](_0x10dd2d['id']));}),_0x11c63a[_0x568db0(0x16a)](_0x568db0(0x17e),_0x5eb73d);}[_0x4f56a5(0x13b)](){const _0xda6f6=_0x4f56a5,_0x18f496=this[_0xda6f6(0x162)];this[_0xda6f6(0x17f)]=_0x18f496[_0xda6f6(0x15d)][_0xda6f6(0x15a)](_0xda6f6(0x17f)),this[_0xda6f6(0x15c)]=setInterval(()=>{const _0x2016b2=_0xda6f6;let _0x14cdb;for(const _0x41a756 in _0x18f496){const _0x24fb3d=_0x41a756,_0x75523d=_0x18f496[_0x24fb3d];if(_0x2016b2(0x14e)===_0x75523d||_0x2016b2(0x175)===_0x75523d||_0x2016b2(0x14a)===_0x75523d||_0x2016b2(0x13a)===_0x75523d){delete _0x18f496[_0x24fb3d],_0x14cdb=_0x75523d;break;}}if(_0x2016b2(0x175)===_0x14cdb)throw clearInterval(this[_0x2016b2(0x15c)]),new _0x452701(_0x2016b2(0x12f),null);if(_0x2016b2(0x14e)===_0x14cdb&&console[_0x2016b2(0x166)](_0x2016b2(0x156)),_0x2016b2(0x13a)===_0x14cdb)throw clearInterval(this[_0x2016b2(0x15c)]),new _0x452701(_0x2016b2(0x18b),null);_0x2016b2(0x14a)===_0x14cdb&&clearInterval(this[_0x2016b2(0x15c)]);},0x3e8);}[_0x4f56a5(0x1a0)](){const _0x55b1e8=_0x4f56a5;this[_0x55b1e8(0x15c)]&&clearInterval(this[_0x55b1e8(0x15c)]);}}export function getDefaultCommands(_0x5ea8c6){const _0xdd6bd0=_0x4f56a5;return[{'groupId':_0xdd6bd0(0x130),'groupLabel':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x172)),'commands':[{'id':_0xdd6bd0(0x19a),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x194)),'prompt':_0xdd6bd0(0x17b)},{'id':_0xdd6bd0(0x189),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x16c)),'prompt':_0xdd6bd0(0x19c)},{'id':_0xdd6bd0(0x137),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x132)),'prompt':_0xdd6bd0(0x181)},{'id':_0xdd6bd0(0x1a3),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x173)),'prompt':_0xdd6bd0(0x148)}]},{'groupId':_0xdd6bd0(0x17d),'groupLabel':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x17a)),'commands':[{'id':_0xdd6bd0(0x168),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x167)),'prompt':_0xdd6bd0(0x136)},{'id':_0xdd6bd0(0x169),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x158)),'prompt':_0xdd6bd0(0x184)}]},{'groupId':_0xdd6bd0(0x161),'groupLabel':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x16e)),'commands':[{'id':_0xdd6bd0(0x150),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x16d)),'prompt':_0xdd6bd0(0x134)},{'id':_0xdd6bd0(0x159),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x14d)),'prompt':_0xdd6bd0(0x13d)},{'id':_0xdd6bd0(0x153),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x154)),'prompt':_0xdd6bd0(0x1a4)},{'id':_0xdd6bd0(0x152),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x15e)),'prompt':_0xdd6bd0(0x12d)},{'id':_0xdd6bd0(0x197),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x146)),'prompt':_0xdd6bd0(0x1a5)}]},{'groupId':_0xdd6bd0(0x16b),'groupLabel':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x182)),'commands':[{'id':_0xdd6bd0(0x13c),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x143)),'prompt':_0xdd6bd0(0x19e)},{'id':_0xdd6bd0(0x186),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x163)),'prompt':_0xdd6bd0(0x144)},{'id':_0xdd6bd0(0x135),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x180)),'prompt':_0xdd6bd0(0x1a1)},{'id':_0xdd6bd0(0x19b),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x142)),'prompt':_0xdd6bd0(0x198)}]},{'groupId':_0xdd6bd0(0x14f),'groupLabel':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x15b)),'commands':[{'id':_0xdd6bd0(0x157),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x1a2),[_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x18c))]),'prompt':_0xdd6bd0(0x13e)},{'id':_0xdd6bd0(0x177),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x1a2),[_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x149))]),'prompt':_0xdd6bd0(0x19f)},{'id':_0xdd6bd0(0x174),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x1a2),[_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x1a6))]),'prompt':_0xdd6bd0(0x18f)},{'id':_0xdd6bd0(0x140),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x1a2),[_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x190))]),'prompt':_0xdd6bd0(0x185)},{'id':_0xdd6bd0(0x18e),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x1a2),[_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x187))]),'prompt':_0xdd6bd0(0x147)},{'id':_0xdd6bd0(0x133),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x1a2),[_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x188))]),'prompt':_0xdd6bd0(0x139)},{'id':_0xdd6bd0(0x179),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x1a2),[_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x15f))]),'prompt':_0xdd6bd0(0x13f)},{'id':_0xdd6bd0(0x138),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x1a2),[_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x19d))]),'prompt':_0xdd6bd0(0x160)}]}];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x539210=_0x4018;(function(_0x1ad901,_0x28eeb3){const _0x48277b=_0x4018,_0x2bd3af=_0x1ad901();while(!![]){try{const _0x4bc978=parseInt(_0x48277b(0x143))/0x1+parseInt(_0x48277b(0x13e))/0x2+parseInt(_0x48277b(0x15c))/0x3+parseInt(_0x48277b(0x16d))/0x4+parseInt(_0x48277b(0x14f))/0x5+-parseInt(_0x48277b(0x15e))/0x6+parseInt(_0x48277b(0x13c))/0x7*(-parseInt(_0x48277b(0x15b))/0x8);if(_0x4bc978===_0x28eeb3)break;else _0x2bd3af['push'](_0x2bd3af['shift']());}catch(_0x54775e){_0x2bd3af['push'](_0x2bd3af['shift']());}}}(_0x4661,0x7d758));function _0x4018(_0xe5198,_0x161ace){const _0x4661f7=_0x4661();return _0x4018=function(_0x4018bb,_0x41081a){_0x4018bb=_0x4018bb-0x131;let _0x353361=_0x4661f7[_0x4018bb];return _0x353361;},_0x4018(_0xe5198,_0x161ace);}import{Plugin as _0x4ef8f6}from'ckeditor5/src/core.js';const s=_0x539210(0x146),c=_0x539210(0x14b);function _0x4661(){const _0x3df8b3=['AIAssistantEditing','4466226ZrRXpo','get','length','start','hideFakeVisualSelection','getRange','model','markerToHighlight','updateMarker','markers','from','ck-ai-assistant-ui_theme','ck-fake-ai-selection-candidate','setSelection','end','3210268idxmhd','config','showFakeVisualSelection','processor','getLastMatchingPosition','change','data','ck-fake-ai-selection','toModel','getFirstRange','pop','createRange','removeMarker','selection','14AzcVcj','toView','1388574KIknKR','pluginName','getLastPosition','isContent','for','77064Qroznz','conversion','push','ai-ui','addMarker','markerToElement','insertContent','document','ai-ui-candidate','getSelectedBlocks','init','insertContentBelow','1905930FiIpqX','createPositionAfter','editor','ai.useTheme','isAtEnd','canEditAt','editingDowncast','has','createSelection','schema','span','ck-fake-ai-selection_collapsed','6121072EmKFOs','2500245lXMJxf'];_0x4661=function(){return _0x3df8b3;};return _0x4661();}export default class i extends _0x4ef8f6{static get[_0x539210(0x13f)](){const _0x41df97=_0x539210;return _0x41df97(0x15d);}[_0x539210(0x14d)](){const _0x56a7a1=_0x539210,{editor:_0x439f47}=this,_0x438b50=[_0x56a7a1(0x135)];_0x439f47[_0x56a7a1(0x16e)][_0x56a7a1(0x15f)](_0x56a7a1(0x152))&&_0x438b50[_0x56a7a1(0x145)](_0x56a7a1(0x169)),_0x439f47[_0x56a7a1(0x144)][_0x56a7a1(0x142)](_0x56a7a1(0x155))[_0x56a7a1(0x165)]({'model':s,'view':{'classes':_0x438b50,'priority':0xc}}),_0x439f47[_0x56a7a1(0x144)][_0x56a7a1(0x142)](_0x56a7a1(0x155))[_0x56a7a1(0x148)]({'model':s,'view':{'name':_0x56a7a1(0x159),'classes':[_0x56a7a1(0x135),_0x56a7a1(0x15a)],'priority':0xc}}),_0x439f47[_0x56a7a1(0x144)][_0x56a7a1(0x142)](_0x56a7a1(0x155))[_0x56a7a1(0x165)]({'model':c,'view':{'classes':[_0x56a7a1(0x16a)],'priority':0x19}}),_0x439f47[_0x56a7a1(0x144)][_0x56a7a1(0x142)](_0x56a7a1(0x155))[_0x56a7a1(0x148)]({'model':c,'view':{'name':_0x56a7a1(0x159),'classes':[_0x56a7a1(0x16a),_0x56a7a1(0x15a)],'priority':0x19}});}[_0x539210(0x16f)](_0x25252a){const _0x4b1764=_0x539210,_0x5b01b9=this[_0x4b1764(0x151)][_0x4b1764(0x164)],_0x37742f=_0x25252a?c:s;_0x5b01b9[_0x4b1764(0x133)](_0x587608=>{const _0x520b01=_0x4b1764,_0x213547=_0x5b01b9[_0x520b01(0x14a)][_0x520b01(0x13b)][_0x520b01(0x137)]();if(_0x5b01b9[_0x520b01(0x167)][_0x520b01(0x156)](_0x37742f))_0x587608[_0x520b01(0x166)](_0x37742f,{'range':_0x213547});else{if(_0x213547[_0x520b01(0x161)][_0x520b01(0x153)]){const _0x338db2=_0x213547[_0x520b01(0x161)][_0x520b01(0x132)](({item:_0xf2a132})=>!_0x5b01b9[_0x520b01(0x158)][_0x520b01(0x141)](_0xf2a132),{'boundaries':_0x213547});_0x587608[_0x520b01(0x147)](_0x37742f,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x587608[_0x520b01(0x139)](_0x338db2,_0x213547[_0x520b01(0x16c)])});}else _0x587608[_0x520b01(0x147)](_0x37742f,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x213547});}});}[_0x539210(0x162)](_0x1fabde){const _0x58eb44=_0x539210,_0xe81af8=this[_0x58eb44(0x151)][_0x58eb44(0x164)],_0x4a73d0=_0x1fabde?c:s;_0xe81af8[_0x58eb44(0x167)][_0x58eb44(0x156)](_0x4a73d0)&&_0xe81af8[_0x58eb44(0x133)](_0x3dda90=>{const _0x279fe4=_0x58eb44;_0x3dda90[_0x279fe4(0x13a)](_0x4a73d0);});}[_0x539210(0x149)](_0x23c355,_0x1327c0){const _0x11106c=_0x539210,_0xe65ad8=_0x1327c0||this[_0x11106c(0x151)][_0x11106c(0x164)][_0x11106c(0x167)][_0x11106c(0x15f)](s)[_0x11106c(0x163)]();if(!this[_0x11106c(0x151)][_0x11106c(0x164)][_0x11106c(0x154)](_0xe65ad8))return;const _0x567990=this[_0x11106c(0x151)][_0x11106c(0x134)][_0x11106c(0x131)][_0x11106c(0x13d)](_0x23c355),_0x2810cc=this[_0x11106c(0x151)][_0x11106c(0x134)][_0x11106c(0x136)](_0x567990);this[_0x11106c(0x151)][_0x11106c(0x164)][_0x11106c(0x133)](_0x5b792c=>{const _0x1966d1=_0x11106c;this[_0x1966d1(0x162)]();const _0x7eeeb4=this[_0x1966d1(0x151)][_0x1966d1(0x164)][_0x1966d1(0x149)](_0x2810cc,_0xe65ad8);_0x7eeeb4&&_0x5b792c[_0x1966d1(0x16b)](_0x7eeeb4);});}[_0x539210(0x14e)](_0x12e071){const _0x42424e=_0x539210,{model:_0x5bd3ee}=this[_0x42424e(0x151)],_0x2f5160=Array[_0x42424e(0x168)](_0x5bd3ee[_0x42424e(0x157)](this[_0x42424e(0x151)][_0x42424e(0x164)][_0x42424e(0x167)][_0x42424e(0x15f)](s)[_0x42424e(0x163)]())[_0x42424e(0x14c)]()),_0x13363c=_0x2f5160[_0x42424e(0x160)]?_0x5bd3ee[_0x42424e(0x150)](_0x2f5160[_0x42424e(0x138)]()):_0x5bd3ee[_0x42424e(0x14a)][_0x42424e(0x13b)][_0x42424e(0x140)]();this[_0x42424e(0x149)](_0x12e071,_0x13363c);}}
23
+ const _0x50a2d8=_0x3e59;function _0x3e59(_0x2cd0aa,_0x27e195){const _0x38fbbb=_0x38fb();return _0x3e59=function(_0x3e593d,_0x423e4c){_0x3e593d=_0x3e593d-0xcb;let _0x10704c=_0x38fbbb[_0x3e593d];return _0x10704c;},_0x3e59(_0x2cd0aa,_0x27e195);}(function(_0x3f23cc,_0x473fb8){const _0x35926c=_0x3e59,_0x1f920d=_0x3f23cc();while(!![]){try{const _0x158860=parseInt(_0x35926c(0xdd))/0x1+-parseInt(_0x35926c(0xd2))/0x2*(-parseInt(_0x35926c(0x104))/0x3)+-parseInt(_0x35926c(0x103))/0x4+-parseInt(_0x35926c(0xdb))/0x5*(parseInt(_0x35926c(0xfe))/0x6)+parseInt(_0x35926c(0xd5))/0x7+-parseInt(_0x35926c(0xf7))/0x8*(-parseInt(_0x35926c(0xd6))/0x9)+-parseInt(_0x35926c(0xea))/0xa;if(_0x158860===_0x473fb8)break;else _0x1f920d['push'](_0x1f920d['shift']());}catch(_0x1f721f){_0x1f920d['push'](_0x1f920d['shift']());}}}(_0x38fb,0x93275));import{Plugin as _0x15afc4}from'ckeditor5/src/core.js';const s=_0x50a2d8(0xd7),c=_0x50a2d8(0xf4);export default class i extends _0x15afc4{static get[_0x50a2d8(0x100)](){const _0x268bd3=_0x50a2d8;return _0x268bd3(0xcb);}[_0x50a2d8(0xef)](){const _0x3e9d2c=_0x50a2d8,{editor:_0x2ac594}=this,_0x50a832=[_0x3e9d2c(0xcc)];_0x2ac594[_0x3e9d2c(0xf6)][_0x3e9d2c(0xfd)](_0x3e9d2c(0x108))&&_0x50a832[_0x3e9d2c(0xd9)](_0x3e9d2c(0xd3)),_0x2ac594[_0x3e9d2c(0xf0)][_0x3e9d2c(0xf5)](_0x3e9d2c(0xf1))[_0x3e9d2c(0x105)]({'model':s,'view':{'classes':_0x50a832,'priority':0xc}}),_0x2ac594[_0x3e9d2c(0xf0)][_0x3e9d2c(0xf5)](_0x3e9d2c(0xf1))[_0x3e9d2c(0xff)]({'model':s,'view':{'name':_0x3e9d2c(0xee),'classes':[_0x3e9d2c(0xcc),_0x3e9d2c(0xec)],'priority':0xc}}),_0x2ac594[_0x3e9d2c(0xf0)][_0x3e9d2c(0xf5)](_0x3e9d2c(0xf1))[_0x3e9d2c(0x105)]({'model':c,'view':{'classes':[_0x3e9d2c(0xfb)],'priority':0x19}}),_0x2ac594[_0x3e9d2c(0xf0)][_0x3e9d2c(0xf5)](_0x3e9d2c(0xf1))[_0x3e9d2c(0xff)]({'model':c,'view':{'name':_0x3e9d2c(0xee),'classes':[_0x3e9d2c(0xfb),_0x3e9d2c(0xec)],'priority':0x19}});}[_0x50a2d8(0xd8)](_0x4ac066){const _0x187f06=_0x50a2d8,_0x208d46=this[_0x187f06(0x101)][_0x187f06(0xda)],_0x590b63=_0x4ac066?c:s;_0x208d46[_0x187f06(0xe6)](_0x1137ea=>{const _0x5c4c1a=_0x187f06,_0xe89b37=_0x208d46[_0x5c4c1a(0xd1)][_0x5c4c1a(0x102)][_0x5c4c1a(0xfc)]();if(_0x208d46[_0x5c4c1a(0x107)][_0x5c4c1a(0xe5)](_0x590b63))_0x1137ea[_0x5c4c1a(0xf8)](_0x590b63,{'range':_0xe89b37});else{if(_0xe89b37[_0x5c4c1a(0xde)][_0x5c4c1a(0xe2)]){const _0x474746=_0xe89b37[_0x5c4c1a(0xde)][_0x5c4c1a(0xe7)](({item:_0x2fba5d})=>!_0x208d46[_0x5c4c1a(0xe4)][_0x5c4c1a(0xcd)](_0x2fba5d),{'boundaries':_0xe89b37});_0x1137ea[_0x5c4c1a(0xd4)](_0x590b63,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x1137ea[_0x5c4c1a(0xe0)](_0x474746,_0xe89b37[_0x5c4c1a(0x106)])});}else _0x1137ea[_0x5c4c1a(0xd4)](_0x590b63,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0xe89b37});}});}[_0x50a2d8(0xf2)](_0x2cbc33){const _0x303db6=_0x50a2d8,_0x308eef=this[_0x303db6(0x101)][_0x303db6(0xda)],_0xd50b99=_0x2cbc33?c:s;_0x308eef[_0x303db6(0x107)][_0x303db6(0xe5)](_0xd50b99)&&_0x308eef[_0x303db6(0xe6)](_0xcd2416=>{const _0x24fff3=_0x303db6;_0xcd2416[_0x24fff3(0xed)](_0xd50b99);});}[_0x50a2d8(0x10b)](_0x49de0f,_0x45e512){const _0x21d789=_0x50a2d8,_0x190f5f=_0x45e512||this[_0x21d789(0x101)][_0x21d789(0xda)][_0x21d789(0x107)][_0x21d789(0xfd)](s)[_0x21d789(0x10a)]();if(!this[_0x21d789(0x101)][_0x21d789(0xda)][_0x21d789(0xf9)](_0x190f5f))return;const _0x1a4a18=this[_0x21d789(0x101)][_0x21d789(0xfa)][_0x21d789(0xeb)][_0x21d789(0xdf)](_0x49de0f),_0x32d578=this[_0x21d789(0x101)][_0x21d789(0xfa)][_0x21d789(0xcf)](_0x1a4a18);this[_0x21d789(0x101)][_0x21d789(0xda)][_0x21d789(0xe6)](_0x51d9ad=>{const _0x508dab=_0x21d789;this[_0x508dab(0xf2)]();const _0x1be557=this[_0x508dab(0x101)][_0x508dab(0xda)][_0x508dab(0x10b)](_0x32d578,_0x190f5f);_0x1be557&&_0x51d9ad[_0x508dab(0xdc)](_0x1be557);});}[_0x50a2d8(0xe9)](_0x1b3f1a){const _0x27b82f=_0x50a2d8,{model:_0x4e1da8}=this[_0x27b82f(0x101)],_0x4537fd=Array[_0x27b82f(0xe3)](_0x4e1da8[_0x27b82f(0x109)](this[_0x27b82f(0x101)][_0x27b82f(0xda)][_0x27b82f(0x107)][_0x27b82f(0xfd)](s)[_0x27b82f(0x10a)]())[_0x27b82f(0xe1)]()),_0x278402=_0x4537fd[_0x27b82f(0xce)]?_0x4e1da8[_0x27b82f(0xf3)](_0x4537fd[_0x27b82f(0xe8)]()):_0x4e1da8[_0x27b82f(0xd1)][_0x27b82f(0x102)][_0x27b82f(0xd0)]();this[_0x27b82f(0x10b)](_0x1b3f1a,_0x278402);}}function _0x38fb(){const _0x532ef4=['createSelection','getRange','insertContent','AIAssistantEditing','ck-fake-ai-selection','isContent','length','toModel','getLastPosition','document','139046RTzmiE','ck-ai-assistant-ui_theme','addMarker','1174523gzUgyk','9CNxqjr','ai-ui','showFakeVisualSelection','push','model','6565kpCNuB','setSelection','382234vbwPOI','start','toView','createRange','getSelectedBlocks','isAtEnd','from','schema','has','change','getLastMatchingPosition','pop','insertContentBelow','1427890dWcSWt','processor','ck-fake-ai-selection_collapsed','removeMarker','span','init','conversion','editingDowncast','hideFakeVisualSelection','createPositionAfter','ai-ui-candidate','for','config','3355448QHSLvU','updateMarker','canEditAt','data','ck-fake-ai-selection-candidate','getFirstRange','get','4854thsCKh','markerToElement','pluginName','editor','selection','1096300VTflxT','48gqEaEB','markerToHighlight','end','markers','ai.useTheme'];_0x38fb=function(){return _0x532ef4;};return _0x38fb();}