@ckeditor/ckeditor5-ai 47.6.0-alpha.9 → 47.6.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.
Files changed (98) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/package.json +15 -15
  4. package/src/aiactions/aiactions.js +1 -1
  5. package/src/aiactions/model/aiactionsreply.js +1 -1
  6. package/src/aiassistant/adapters/aiadapter.js +1 -1
  7. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  8. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  9. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  10. package/src/aiassistant/aiassistant.js +1 -1
  11. package/src/aiassistant/aiassistantediting.js +1 -1
  12. package/src/aiassistant/aiassistantui.js +1 -1
  13. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  14. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  15. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  16. package/src/aiassistant/ui/form/aiformview.js +1 -1
  17. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  18. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  19. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  20. package/src/aiballoon/aiballoon.js +1 -1
  21. package/src/aichat/aichat.js +1 -1
  22. package/src/aichat/aichatballoon.js +1 -1
  23. package/src/aichat/aichatcontroller.js +1 -1
  24. package/src/aichat/aichatui.js +1 -1
  25. package/src/aichat/model/aichatcontext.js +1 -1
  26. package/src/aichat/ui/aichatballoonview.js +1 -1
  27. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  28. package/src/aichat/ui/aichatheaderview.js +1 -1
  29. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  30. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  31. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  32. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  33. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  34. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  35. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  36. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  37. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  38. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  39. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  40. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  41. package/src/aichathistory/aichathistory.js +1 -1
  42. package/src/aichathistory/aichathistorycontroller.js +1 -1
  43. package/src/aichathistory/aichathistoryui.js +1 -1
  44. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  45. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  46. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  47. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  48. package/src/aicore/aiconnector.js +1 -1
  49. package/src/aicore/aiediting.js +1 -1
  50. package/src/aicore/model/aiinteraction.js +1 -1
  51. package/src/aicore/model/aimodels.js +1 -1
  52. package/src/aicore/model/aireply.js +1 -1
  53. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  54. package/src/aicore/ui/aidisclaimerview.js +1 -1
  55. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  56. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  57. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  58. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  59. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  60. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  61. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  62. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  63. package/src/aicore/utils/createresizebutton.js +1 -1
  64. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  65. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  66. package/src/aieditorintegration/aieditorintegration.js +1 -1
  67. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  68. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  69. package/src/aiquickactions/aiquickactions.js +1 -1
  70. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  71. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  72. package/src/aiquickactions/aiquickactionsui.js +1 -1
  73. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  74. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  75. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  76. package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
  77. package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
  78. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  79. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  80. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  81. package/src/aireviewcore/aireviewcoreui.js +1 -1
  82. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  83. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  84. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  85. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  86. package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
  87. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  88. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  89. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  90. package/src/aireviewmode/aireviewmode.js +1 -1
  91. package/src/aireviewmode/aireviewmodeui.js +1 -1
  92. package/src/aitabs/aitabs.js +1 -1
  93. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  94. package/src/aitranslate/aitranslate.js +1 -1
  95. package/src/aitranslate/aitranslatecontroller.js +1 -1
  96. package/src/aitranslate/aitranslateui.js +1 -1
  97. package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
  98. package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-ai",
3
- "version": "47.6.0-alpha.9",
3
+ "version": "47.6.0",
4
4
  "description": "AI features for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -29,20 +29,20 @@
29
29
  ],
30
30
  "dependencies": {
31
31
  "@aws-sdk/client-bedrock-runtime": "3.994.0",
32
- "@ckeditor/ckeditor5-clipboard": "47.6.0-alpha.9",
33
- "@ckeditor/ckeditor5-cloud-services": "47.6.0-alpha.9",
34
- "@ckeditor/ckeditor5-collaboration-core": "47.6.0-alpha.9",
35
- "@ckeditor/ckeditor5-core": "47.6.0-alpha.9",
36
- "@ckeditor/ckeditor5-engine": "47.6.0-alpha.9",
37
- "@ckeditor/ckeditor5-icons": "47.6.0-alpha.9",
38
- "@ckeditor/ckeditor5-markdown-gfm": "47.6.0-alpha.9",
39
- "@ckeditor/ckeditor5-real-time-collaboration": "47.6.0-alpha.9",
40
- "@ckeditor/ckeditor5-table": "47.6.0-alpha.9",
41
- "@ckeditor/ckeditor5-theme-lark": "47.6.0-alpha.9",
42
- "@ckeditor/ckeditor5-ui": "47.6.0-alpha.9",
43
- "@ckeditor/ckeditor5-utils": "47.6.0-alpha.9",
44
- "ckeditor5": "47.6.0-alpha.9",
45
- "ckeditor5-collaboration": "47.6.0-alpha.9",
32
+ "@ckeditor/ckeditor5-clipboard": "47.6.0",
33
+ "@ckeditor/ckeditor5-cloud-services": "47.6.0",
34
+ "@ckeditor/ckeditor5-collaboration-core": "47.6.0",
35
+ "@ckeditor/ckeditor5-core": "47.6.0",
36
+ "@ckeditor/ckeditor5-engine": "47.6.0",
37
+ "@ckeditor/ckeditor5-icons": "47.6.0",
38
+ "@ckeditor/ckeditor5-markdown-gfm": "47.6.0",
39
+ "@ckeditor/ckeditor5-real-time-collaboration": "47.6.0",
40
+ "@ckeditor/ckeditor5-table": "47.6.0",
41
+ "@ckeditor/ckeditor5-theme-lark": "47.6.0",
42
+ "@ckeditor/ckeditor5-ui": "47.6.0",
43
+ "@ckeditor/ckeditor5-utils": "47.6.0",
44
+ "ckeditor5": "47.6.0",
45
+ "ckeditor5-collaboration": "47.6.0",
46
46
  "diff": "8.0.3",
47
47
  "dom-serializer": "2.0.0",
48
48
  "domhandler": "5.0.3",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5cfc26=_0x392d;(function(_0x45f8da,_0x4baa7d){const _0xc2115e=_0x392d,_0x34085e=_0x45f8da();while(!![]){try{const _0xee007f=parseInt(_0xc2115e(0x1eb))/0x1*(-parseInt(_0xc2115e(0x299))/0x2)+-parseInt(_0xc2115e(0x23e))/0x3*(parseInt(_0xc2115e(0x224))/0x4)+-parseInt(_0xc2115e(0x2b5))/0x5*(-parseInt(_0xc2115e(0x258))/0x6)+-parseInt(_0xc2115e(0x233))/0x7+-parseInt(_0xc2115e(0x287))/0x8+parseInt(_0xc2115e(0x235))/0x9+-parseInt(_0xc2115e(0x250))/0xa*(-parseInt(_0xc2115e(0x22f))/0xb);if(_0xee007f===_0x4baa7d)break;else _0x34085e['push'](_0x34085e['shift']());}catch(_0x269907){_0x34085e['push'](_0x34085e['shift']());}}}(_0x10f6,0x9ec21));import{Plugin as _0x5e7972}from'ckeditor5/src/core.js';import{AIConnector as _0x3d5607}from'../aicore/aiconnector.js';import{Dialog as _0x25ee3d,BodyCollection as _0x2eb232}from'ckeditor5/src/ui.js';import{AIEditing as _0x483e06,AI_VISUAL_SELECTION_MARKER_NAME as _0x5c0b98}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x503b92}from'./model/aiactionsinteraction.js';import{CKEditorError as _0x1945f5,first as _0x5332f7}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x3e29ac}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x454f09}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x205df3}from'../aichat/utils/promisequeue.js';function _0x392d(_0x1ce09e,_0x4f505e){const _0x10f6d0=_0x10f6();return _0x392d=function(_0x392d81,_0x5b7ec9){_0x392d81=_0x392d81-0x1dc;let _0x60a775=_0x10f6d0[_0x392d81];return _0x60a775;},_0x392d(_0x1ce09e,_0x4f505e);}import{getTranslation as _0x5bf298}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x46948e}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x5a13d1}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x2713bb,getOperationsFromReply as _0x346ae8}from'../aicore/utils/getoperationsfromreply.js';function _0x10f6(){const _0x4717d9=['icon','insert','_setErrorState','containsRange','set','_balloonShowDiff','queueEmptyPromise','length','_appendChild','locale','stopListening','_execute','_getExecuteDataInTable','catch','merge','sourcePosition','replies','editor','getSelectionAsFragment','get','start','getFirstRange','showError','clone','open','395BSlHlF','document','move','_clearInteractionHistory','_navigateToPrevious','stop','AIBalloon','close','enqueue','abort','startAutoScroll','documentFragment','interactionFinished','showLoader','getRange','Error\x20updating\x20content\x20during\x20navigation:','max','message','_promiseQueue','3017hYbTfO','range','AIConnector','showPrevious','destroy','_clearErrorState','actionCallId','AI_ACTIONS_GENERIC_ERROR','parent','replyCreated','attachToDom','operationsA','isPremiumPlugin','stickiness','isBusy','_createActionsBalloonView','getChild','upsertCustomAIActionRating','Attribute','reinsert','plugins','modelToDataWithIds','Error\x20updating\x20content\x20in\x20replyContentUpdated:','changeGroups','streaming','documentContextContent','isDocumentOperation','createPositionBefore','tryAgain','startsWith','history','from','replyChangeGroupStateUpdated','_currentInteractionIndex','_displayInteractionAtIndex','disableMiniToolbarButtons','TrackChanges','_executeAction','rename','value','error','isEqual','setIsLoading','_actionsBalloonView','executeAction','commands','state','getAncestors','_anchorOperation','_clone','type','showNext','getSelectedBlocks','_refreshInteraction','detachFromDom','_setLoadingState','_interactionParams','1749484EhRHcU','listenTo','signal','ai-no-track-changes','nodeAfter','pending','root','remove','resetShowChangesButton','createPositionFromPath','actionName','828993PTAQKi','path','_getExecuteDataRegular','requires','6436619beXWOe','split','10093563uHcpIO','setErrorState','_aiConnector','version','pluginName','bind','rootName','config','_createInteraction','3XsIaKg','getSelectedContent','indexOf','getSelectedTableCells','updateMiniToolbarButtons','getLimitElement','createRange','nextSibling','_clearLoadingState','isTableSelection','upsertAIActionRating','setChangeGroupState','includes','name','toggleSuggestionDisplayMode','getCommonAncestor','markers','Error\x20updating\x20content\x20in\x20replyCreated:','220UTteiT','_isAbortError','hasError','isTrackChangesOn','map','isOfficialPlugin','toggleIsLoading','has','5358MCBXnj','end','selectionRemoved','addOperation','baseVersion','selection','some','TableSelection','_applyChanges','_interaction','_stopInteraction','updateContent','ai-request-aborted','change','getRanges','AIActions','stopInteraction','slice','insertSuggestion','filter','_navigateToNext','getRoot','_wrapWithCommonAncestors','hideError','ai.availableReplyActions','applyOperation','random','dialogClosed','trackChanges','rejected','createPositionAfter','focus','getOperations','static','position','schema','push','isCollapsed','getChildAtOffset','setSelection','stopAutoScroll','_filterOperationsOutsideRange','_applyOperationsAsSuggestions','hideLoader','model','_copyMarkersToFragment','affectsData','1553792SBMrMB','_regularCalculateMarkerPath','getDocumentContext','Error\x20refreshing\x20interaction:','aiActionsBalloon','_setupApplyListeners','applySuggestion','createPositionAt','batch','accepted','howMany','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','_interactions','$graveyard','clearContent','replyContentUpdated','ck-ai-actions-balloon','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','430cASpiQ','TrackChangesEditing','_bodyCollection'];_0x10f6=function(){return _0x4717d9;};return _0x10f6();}import{ModelDocumentFragment as _0x336ce9,ModelRange as _0x5543ae,ModelPosition as _0x5b60d5,_DetachOperation as _0x143084,transformOperationSets as _0x580695}from'ckeditor5/src/engine.js';import{AI_REPLY_ACTIONS as _0x23369f}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIActionsBalloonView as _0x6e6e77}from'../aiquickactions/ui/balloon/aiactionsballoonview.js';export class AIActions extends _0x5e7972{static get[_0x5cfc26(0x232)](){return[_0x3d5607,_0x25ee3d,_0x483e06,_0x454f09,_0x5a13d1];}static get[_0x5cfc26(0x239)](){const _0x296edf=_0x5cfc26;return _0x296edf(0x267);}static get[_0x5cfc26(0x255)](){return!0x0;}static get[_0x5cfc26(0x1f7)](){return!0x0;}[_0x5cfc26(0x237)];[_0x5cfc26(0x293)]=[];[_0x5cfc26(0x20c)]=0x0;[_0x5cfc26(0x223)];[_0x5cfc26(0x2a1)]=!0x1;[_0x5cfc26(0x1ea)];[_0x5cfc26(0x29b)];get[_0x5cfc26(0x261)](){const _0x5070fc=_0x5cfc26;return this[_0x5070fc(0x293)][this[_0x5070fc(0x293)][_0x5070fc(0x2a3)]-0x1];}[_0x5cfc26(0x216)];constructor(_0x14fb6e){const _0x9d16d0=_0x5cfc26;super(_0x14fb6e),this[_0x9d16d0(0x29b)]=new _0x2eb232(this[_0x9d16d0(0x2ad)][_0x9d16d0(0x2a5)]),this[_0x9d16d0(0x29b)][_0x9d16d0(0x1f5)](),this[_0x9d16d0(0x237)]=this[_0x9d16d0(0x2ad)][_0x9d16d0(0x1ff)][_0x9d16d0(0x2af)](_0x9d16d0(0x1ed)),this[_0x9d16d0(0x2a0)](_0x9d16d0(0x1f9),!0x1),this[_0x9d16d0(0x1ea)]=new _0x205df3();}[_0x5cfc26(0x268)](){const _0x4b8352=_0x5cfc26;this[_0x4b8352(0x262)]();}async[_0x5cfc26(0x217)](_0x85abaf,_0x135811,_0xb05143){const _0x54cc97=_0x5cfc26;if(this[_0x54cc97(0x262)](),this[_0x54cc97(0x2ad)][_0x54cc97(0x1ff)][_0x54cc97(0x257)](_0x54cc97(0x25f))){if(this[_0x54cc97(0x2ad)][_0x54cc97(0x1ff)][_0x54cc97(0x2af)](_0x54cc97(0x25f))[_0x54cc97(0x241)]()){const {modelFragment:_0x2b0a05,anchorData:_0x328076}=this[_0x54cc97(0x2a8)]();return this[_0x54cc97(0x210)](_0x85abaf,_0x2b0a05,_0x328076,_0x135811,_0xb05143);}}const {modelFragment:_0x2e6add,anchorData:_0x5a420b}=this[_0x54cc97(0x231)]();return this[_0x54cc97(0x210)](_0x85abaf,_0x2e6add,_0x5a420b,_0x135811,_0xb05143);}async[_0x5cfc26(0x1ef)](){const _0x5825ec=_0x5cfc26;return this[_0x5825ec(0x262)](),this[_0x5825ec(0x29b)][_0x5825ec(0x221)](),super[_0x5825ec(0x1ef)]();}[_0x5cfc26(0x1fa)](){const _0x489df6=_0x5cfc26,_0x593809=this[_0x489df6(0x2ad)][_0x489df6(0x1ff)][_0x489df6(0x257)](_0x489df6(0x20f));let _0xd0d37d=this[_0x489df6(0x2ad)][_0x489df6(0x23c)][_0x489df6(0x2af)](_0x489df6(0x270))||[..._0x23369f];_0x593809||(_0xd0d37d=_0xd0d37d[_0x489df6(0x26b)](_0x157341=>_0x489df6(0x26a)!=_0x157341));const _0x2158c7=this[_0x489df6(0x2ad)][_0x489df6(0x218)][_0x489df6(0x2af)](_0x489df6(0x274)),_0x142403=new _0x6e6e77(this[_0x489df6(0x2ad)][_0x489df6(0x2a5)],{'showApplyButton':!0x0,'showSuggestButton':_0x593809,'miniToolbarConfig':{'showChanges':_0x489df6(0x29c)},'availableActions':_0xd0d37d});return _0x142403[_0x489df6(0x23a)](_0x489df6(0x1f9))['to'](this),_0x2158c7&&_0x142403[_0x489df6(0x23a)](_0x489df6(0x253))['to'](_0x2158c7,_0x489df6(0x212)),_0x142403['on'](_0x489df6(0x207),()=>{const _0xd551d4=_0x489df6;this[_0xd551d4(0x220)]();}),_0x142403['on'](_0x489df6(0x1ee),()=>{const _0x48abe5=_0x489df6;this[_0x48abe5(0x1dc)]();}),_0x142403['on'](_0x489df6(0x21e),()=>{const _0x3737ed=_0x489df6;this[_0x3737ed(0x26c)]();}),_0x142403;}[_0x5cfc26(0x231)](){const _0x4c3055=_0x5cfc26,_0x3c34d8=this[_0x4c3055(0x2ad)][_0x4c3055(0x284)][_0x4c3055(0x2b6)][_0x4c3055(0x25d)];if(_0x3c34d8[_0x4c3055(0x27d)]){const _0x48417f=_0x5332f7(_0x3c34d8[_0x4c3055(0x21f)]())||this[_0x4c3055(0x2ad)][_0x4c3055(0x284)][_0x4c3055(0x27b)][_0x4c3055(0x243)](_0x3c34d8);this[_0x4c3055(0x2ad)][_0x4c3055(0x284)][_0x4c3055(0x265)](_0x20b829=>{const _0x416bd6=_0x4c3055;_0x20b829[_0x416bd6(0x27f)](_0x48417f,'in');});}const _0x3bcd25=_0x3c34d8[_0x4c3055(0x2b1)](),_0x29bdaf=this[_0x4c3055(0x26e)](this[_0x4c3055(0x2ad)][_0x4c3055(0x284)][_0x4c3055(0x23f)](_0x3c34d8),_0x3bcd25[_0x4c3055(0x2b0)],_0x3bcd25[_0x4c3055(0x259)]);this[_0x4c3055(0x285)](_0x29bdaf,_0x3c34d8,{'isTableSelection':!0x1});const _0x4db3e5=_0x3c34d8[_0x4c3055(0x2b1)]()[_0x4c3055(0x2b0)],_0x547d39=new Map();let _0x481038=_0x29bdaf;for(let _0x4dc9f0=0x0;_0x4dc9f0<_0x4db3e5[_0x4c3055(0x230)][_0x4c3055(0x2a3)];_0x4dc9f0++)_0x547d39[_0x4c3055(0x2a0)](_0x481038,_0x4db3e5[_0x4c3055(0x230)][_0x4dc9f0]),_0x481038=_0x481038[_0x4c3055(0x1fb)](0x0);return{'modelFragment':_0x29bdaf,'anchorData':_0x547d39};}[_0x5cfc26(0x2a8)](){const _0x2e6701=_0x5cfc26,_0x16d83e=this[_0x2e6701(0x2ad)][_0x2e6701(0x284)][_0x2e6701(0x2b6)][_0x2e6701(0x25d)],_0x1cfc47=this[_0x2e6701(0x2ad)][_0x2e6701(0x1ff)][_0x2e6701(0x2af)](_0x2e6701(0x25f))[_0x2e6701(0x2ae)](),_0x2ba10f=_0x16d83e[_0x2e6701(0x2b1)]()[_0x2e6701(0x2b0)][_0x2e6701(0x1f3)][_0x2e6701(0x1f3)],_0x1bd74f=this[_0x2e6701(0x2ad)][_0x2e6701(0x284)][_0x2e6701(0x244)](this[_0x2e6701(0x2ad)][_0x2e6701(0x284)][_0x2e6701(0x206)](_0x2ba10f),this[_0x2e6701(0x2ad)][_0x2e6701(0x284)][_0x2e6701(0x276)](_0x2ba10f)),_0x15c948=this[_0x2e6701(0x26e)](_0x1cfc47,_0x1bd74f[_0x2e6701(0x2b0)],_0x1bd74f[_0x2e6701(0x259)]);this[_0x2e6701(0x285)](_0x15c948,_0x16d83e,{'isTableSelection':!0x0});const _0x875c47=_0x16d83e[_0x2e6701(0x2b1)]()[_0x2e6701(0x2b0)],_0x1d5651=new Map();let _0x527df8=_0x15c948;for(let _0x27e57d=0x0;_0x27e57d<_0x875c47[_0x2e6701(0x230)][_0x2e6701(0x2a3)];_0x27e57d++)if(_0x1d5651[_0x2e6701(0x2a0)](_0x527df8,_0x875c47[_0x2e6701(0x230)][_0x27e57d]),_0x27e57d<_0x875c47[_0x2e6701(0x230)][_0x2e6701(0x2a3)]-0x1)_0x527df8=_0x527df8[_0x2e6701(0x1fb)](0x0);else{let _0x29f2d2=_0x527df8[_0x2e6701(0x245)];for(;_0x29f2d2;)_0x1d5651[_0x2e6701(0x2a0)](_0x29f2d2,_0x875c47[_0x2e6701(0x230)][_0x27e57d]),_0x29f2d2=_0x29f2d2[_0x2e6701(0x245)];}return{'modelFragment':_0x15c948,'anchorData':_0x1d5651};}async[_0x5cfc26(0x210)](_0xeaf517,_0x21f310,_0x5f543c,_0x591fd2,_0x515e8b){const _0x4cf02d=_0x5cfc26,_0x2a7066=this[_0x4cf02d(0x2ad)][_0x4cf02d(0x1ff)][_0x4cf02d(0x2af)](_0x483e06),_0x14f62d=this[_0x4cf02d(0x2ad)][_0x4cf02d(0x1ff)][_0x4cf02d(0x2af)](_0x454f09),_0x3ce179=this[_0x4cf02d(0x2ad)][_0x4cf02d(0x284)][_0x4cf02d(0x2b6)][_0x4cf02d(0x25d)],_0x131d8a=await _0x2a7066[_0x4cf02d(0x200)](_0x21f310),_0x32f6de=this[_0x4cf02d(0x2ad)][_0x4cf02d(0x284)][_0x4cf02d(0x2b6)][_0x4cf02d(0x238)],_0x5d1a67=[..._0x3ce179[_0x4cf02d(0x266)]()];return this[_0x4cf02d(0x216)]||(this[_0x4cf02d(0x216)]=this[_0x4cf02d(0x1fa)]()),this[_0x4cf02d(0x2b8)](),this[_0x4cf02d(0x1f0)](),this[_0x4cf02d(0x216)][_0x4cf02d(0x295)](),_0x14f62d[_0x4cf02d(0x2b4)]({'index':0x3e8*Math[_0x4cf02d(0x272)]()%0x3e8,'title':_0x591fd2,'icon':_0x515e8b||_0x3e29ac,'mainView':this[_0x4cf02d(0x216)],'class':_0x4cf02d(0x297),'ranges':_0x5d1a67,'id':_0x4cf02d(0x28b)}),this[_0x4cf02d(0x222)](),this[_0x4cf02d(0x2a6)](this[_0x4cf02d(0x216)]),this[_0x4cf02d(0x2a6)](_0x14f62d),this[_0x4cf02d(0x223)]={'action':_0xeaf517,'content':_0x131d8a,'version':_0x32f6de,'aiBalloon':_0x14f62d,'modelFragment':_0x21f310,'anchorData':_0x5f543c},this[_0x4cf02d(0x28c)](),this[_0x4cf02d(0x225)](_0x14f62d,_0x4cf02d(0x25a),()=>{const _0x2727e4=_0x4cf02d;this[_0x2727e4(0x262)](),this[_0x2727e4(0x216)][_0x2727e4(0x20e)]();}),this[_0x4cf02d(0x225)](_0x14f62d,_0x4cf02d(0x273),(_0x4669d1,{id:_0x23c35a})=>{const _0x3070f4=_0x4cf02d;if(_0x3070f4(0x28b)===_0x23c35a){if(this[_0x3070f4(0x261)]&&this[_0x3070f4(0x261)][_0x3070f4(0x2ac)][_0x3070f4(0x2a3)]>0x0){const _0xfe72cf=this[_0x3070f4(0x261)][_0x3070f4(0x2ac)][this[_0x3070f4(0x261)][_0x3070f4(0x2ac)][_0x3070f4(0x2a3)]-0x1],_0x3f20c1=_0xfe72cf[_0x3070f4(0x202)][0x0];_0x3f20c1&&_0x3070f4(0x229)===_0x3f20c1[_0x3070f4(0x219)]&&_0xfe72cf[_0x3070f4(0x249)](0x0,_0x3070f4(0x275));}this[_0x3070f4(0x262)](),this[_0x3070f4(0x2b8)](),this[_0x3070f4(0x2a6)](this[_0x3070f4(0x216)]),this[_0x3070f4(0x2a6)](_0x14f62d);}}),this[_0x4cf02d(0x23d)](_0x131d8a,_0x32f6de,_0x14f62d,_0xeaf517);}[_0x5cfc26(0x28c)](){const _0x18b1ec=_0x5cfc26;if(!this[_0x18b1ec(0x223)])return;const {modelFragment:_0x16076b,anchorData:_0x142940}=this[_0x18b1ec(0x223)];this[_0x18b1ec(0x225)](this[_0x18b1ec(0x216)],_0x18b1ec(0x28d),()=>{const _0x174387=_0x18b1ec;this[_0x174387(0x260)](_0x16076b,_0x142940,!0x1);}),this[_0x18b1ec(0x225)](this[_0x18b1ec(0x216)],_0x18b1ec(0x26a),()=>{const _0x570dec=_0x18b1ec;this[_0x570dec(0x260)](_0x16076b,_0x142940,!0x0);});}[_0x5cfc26(0x26e)](_0x5349ca,_0x2c400f,_0x910a08){const _0x3c608f=_0x5cfc26,_0x342894=this[_0x3c608f(0x2ad)][_0x3c608f(0x284)][_0x3c608f(0x244)](_0x2c400f,_0x910a08)[_0x3c608f(0x24d)](),_0x183e74=_0x342894['is'](_0x3c608f(0x1e3))?[]:_0x342894[_0x3c608f(0x21a)]({'includeSelf':!0x0})[_0x3c608f(0x269)](0x1);if(_0x183e74[_0x3c608f(0x2a3)]){const _0x2db872=_0x183e74[_0x3c608f(0x254)](_0x15b775=>_0x15b775[_0x3c608f(0x21c)](!0x1));for(let _0x247ea5=0x1;_0x247ea5<_0x2db872[_0x3c608f(0x2a3)];_0x247ea5++)_0x2db872[_0x247ea5-0x1][_0x3c608f(0x2a4)](_0x2db872[_0x247ea5]);return _0x2db872[_0x2db872[_0x3c608f(0x2a3)]-0x1][_0x3c608f(0x2a4)](_0x5349ca),new _0x336ce9(_0x2db872[0x0]);}return _0x5349ca;}[_0x5cfc26(0x285)](_0x9ad8af,_0x4f5a74,_0x2d74e0={'isTableSelection':!0x1}){const _0x5d4d9a=_0x5cfc26,_0x3ebefe=this[_0x5d4d9a(0x2ad)][_0x5d4d9a(0x284)],_0x33d47d=Array[_0x5d4d9a(0x20a)](_0x4f5a74[_0x5d4d9a(0x266)]()),_0x511449=_0x4f5a74[_0x5d4d9a(0x2b1)]()[_0x5d4d9a(0x2b0)];for(const _0xdadcbd of _0x3ebefe[_0x5d4d9a(0x24e)]){if(_0xdadcbd[_0x5d4d9a(0x24b)][_0x5d4d9a(0x208)](_0x5c0b98)||!_0xdadcbd[_0x5d4d9a(0x286)])continue;const _0xa98e68=_0xdadcbd[_0x5d4d9a(0x1e6)]();if(!_0x33d47d[_0x5d4d9a(0x25e)](_0x2b8fe6=>_0x2b8fe6[_0x5d4d9a(0x29f)](_0xa98e68,!0x0)))continue;const _0x459b2c=this[_0x5d4d9a(0x288)](_0xa98e68[_0x5d4d9a(0x2b0)],_0x511449,_0x2d74e0[_0x5d4d9a(0x247)]),_0x3f3227=this[_0x5d4d9a(0x288)](_0xa98e68[_0x5d4d9a(0x259)],_0x511449,_0x2d74e0[_0x5d4d9a(0x247)]),_0x26ed0=_0x3ebefe[_0x5d4d9a(0x22d)](_0x9ad8af,_0x459b2c),_0x725d33=_0x3ebefe[_0x5d4d9a(0x22d)](_0x9ad8af,_0x3f3227);if(!_0x26ed0[_0x5d4d9a(0x214)](_0x725d33)){const _0x58add2=_0x3ebefe[_0x5d4d9a(0x244)](_0x26ed0,_0x725d33);_0x9ad8af[_0x5d4d9a(0x24e)][_0x5d4d9a(0x2a0)](_0xdadcbd[_0x5d4d9a(0x24b)],_0x58add2);}}}[_0x5cfc26(0x288)](_0x1eeba1,_0x1a94bc,_0xaa94b8=!0x1){const _0x3a72db=_0x5cfc26,_0x496031=[..._0x1eeba1[_0x3a72db(0x230)][_0x3a72db(0x269)]()];for(let _0x1a4589=0x0;_0x1a4589<Math[_0x3a72db(0x1e8)](_0x1a94bc[_0x3a72db(0x230)][_0x3a72db(0x2a3)],_0x1eeba1[_0x3a72db(0x230)][_0x3a72db(0x2a3)]);_0x1a4589++){const _0x2cbb8a=_0x1a94bc[_0x3a72db(0x230)][_0x1a4589]||0x0,_0x55976e=(_0x1eeba1[_0x3a72db(0x230)][_0x1a4589]||0x0)-_0x2cbb8a;if(_0x496031[_0x1a4589]=_0x55976e,0x0!==_0x55976e&&!_0xaa94b8)break;}return _0x496031;}async[_0x5cfc26(0x23d)](_0x2a10a8,_0x2e5a4b,_0x460559,_0x2e255a){const _0x40b989=_0x5cfc26,_0x260b45=this[_0x40b989(0x2ad)];this[_0x40b989(0x223)]||(this[_0x40b989(0x223)]={'action':_0x2e255a,'content':_0x2a10a8,'version':_0x2e5a4b,'aiBalloon':_0x460559,'modelFragment':this[_0x40b989(0x2ad)][_0x40b989(0x284)][_0x40b989(0x23f)](this[_0x40b989(0x2ad)][_0x40b989(0x284)][_0x40b989(0x2b6)][_0x40b989(0x25d)]),'anchorData':new Map()});const _0x4f129c=new _0x503b92({'connector':this[_0x40b989(0x237)],'editor':_0x260b45,'content':_0x2a10a8,'version':_0x2e5a4b,..._0x2e255a});this[_0x40b989(0x293)][_0x40b989(0x27c)](_0x4f129c);const _0x38c9c0=(_0x479afb,_0x2147b6=!0x1,_0x162b70=_0x40b989(0x203))=>this[_0x40b989(0x1ea)][_0x40b989(0x1e0)](async _0xa76af2=>{const _0x2d1878=_0x40b989;try{const _0x11b964=_0x46948e({'editor':_0x260b45,'changeGroups':_0x479afb[_0x2d1878(0x202)],'documentContextContent':_0x479afb[_0x2d1878(0x204)],'showDiff':_0x2147b6,'trimUnchanged':!0x1});_0x11b964[_0x2d1878(0x2a3)]&&await this[_0x2d1878(0x216)][_0x2d1878(0x263)]({'part':_0x11b964[0x0],'renderingStrategy':_0x162b70,'abortSignal':_0xa76af2});}catch(_0x2f58c){if(this[_0x2d1878(0x251)](_0x2f58c))return;throw _0x2f58c;}});this[_0x40b989(0x261)]['on'](_0x40b989(0x1f4),(_0x4e74d1,_0x56f90a)=>{const _0x3cd29a=_0x40b989;this[_0x3cd29a(0x216)][_0x3cd29a(0x283)](),this[_0x3cd29a(0x216)][_0x3cd29a(0x1e2)](),_0x38c9c0(_0x56f90a)[_0x3cd29a(0x2a9)](_0x200d67=>{const _0xa99061=_0x3cd29a;this[_0xa99061(0x251)](_0x200d67)||(console[_0xa99061(0x213)](_0xa99061(0x24f),_0x200d67),this[_0xa99061(0x29e)](_0x4f129c));});}),this[_0x40b989(0x261)]['on'](_0x40b989(0x296),(_0xd4bbb1,_0x6630b1)=>{const _0x2ba67b=_0x40b989;_0x38c9c0(_0x6630b1)[_0x2ba67b(0x2a9)](_0x5d89aa=>{const _0x1ab9a9=_0x2ba67b;this[_0x1ab9a9(0x251)](_0x5d89aa)||(console[_0x1ab9a9(0x213)](_0x1ab9a9(0x201),_0x5d89aa),this[_0x1ab9a9(0x29e)](_0x4f129c));});}),this[_0x40b989(0x261)]['on'](_0x40b989(0x1e4),async()=>{const _0x10b3ef=_0x40b989;try{await this[_0x10b3ef(0x246)](),this[_0x10b3ef(0x216)][_0x10b3ef(0x242)](this[_0x10b3ef(0x293)][_0x10b3ef(0x2a3)],this[_0x10b3ef(0x20c)]),await this[_0x10b3ef(0x1ea)][_0x10b3ef(0x2a2)];}catch(_0x484e6d){this[_0x10b3ef(0x251)](_0x484e6d)||(console[_0x10b3ef(0x213)](_0x10b3ef(0x298),_0x484e6d),this[_0x10b3ef(0x29e)](_0x4f129c));}finally{this[_0x10b3ef(0x216)][_0x10b3ef(0x280)]();}}),this[_0x40b989(0x225)](this[_0x40b989(0x216)],_0x40b989(0x24c),async(_0x269803,{showDiff:_0xc18c08})=>{const _0xa6e5af=_0x40b989;try{this[_0xa6e5af(0x2a1)]=_0xc18c08;const _0x4b037d=this[_0xa6e5af(0x261)][_0xa6e5af(0x2ac)][this[_0xa6e5af(0x261)][_0xa6e5af(0x2ac)][_0xa6e5af(0x2a3)]-0x1];_0x4b037d&&await _0x38c9c0(_0x4b037d,_0xc18c08,_0xa6e5af(0x279));}catch(_0x494c12){this[_0xa6e5af(0x251)](_0x494c12)||(console[_0xa6e5af(0x213)](_0xa6e5af(0x292),_0x494c12),this[_0xa6e5af(0x29e)](_0x4f129c));}}),this[_0x40b989(0x261)]['on'](_0x40b989(0x20b),(_0x39ace8,{reply:_0x18fdc1})=>{const _0xef8c41=_0x40b989,_0x228f6e={'positiveCount':_0x18fdc1[_0xef8c41(0x202)][_0xef8c41(0x26b)](_0x2db0c6=>_0xef8c41(0x290)===_0x2db0c6[_0xef8c41(0x219)])[_0xef8c41(0x2a3)],'totalCount':_0x18fdc1[_0xef8c41(0x202)][_0xef8c41(0x2a3)]},_0x4144be=this[_0xef8c41(0x261)][_0xef8c41(0x1f1)],_0x142769=this[_0xef8c41(0x261)][_0xef8c41(0x22e)];_0x142769?this[_0xef8c41(0x237)][_0xef8c41(0x248)](_0x142769,_0x4144be,_0x228f6e):this[_0xef8c41(0x237)][_0xef8c41(0x1fc)](_0x4144be,_0x228f6e);}),this[_0x40b989(0x222)]();try{const _0x5172fa=await this[_0x40b989(0x261)][_0x40b989(0x2b0)]();return this[_0x40b989(0x216)][_0x40b989(0x242)](this[_0x40b989(0x293)][_0x40b989(0x2a3)],this[_0x40b989(0x20c)]),_0x5172fa;}catch(_0x510034){if(this[_0x40b989(0x251)](_0x510034))return;this[_0x40b989(0x216)][_0x40b989(0x283)](),this[_0x40b989(0x29e)](_0x4f129c);}}[_0x5cfc26(0x260)](_0x11a5fd,_0x3db485,_0x46b580){const _0xadd9ff=_0x5cfc26,_0x5bfe10=this[_0xadd9ff(0x2ad)];if(_0x46b580&&!_0x5bfe10[_0xadd9ff(0x1ff)][_0xadd9ff(0x257)](_0xadd9ff(0x20f)))throw new _0x1945f5(_0xadd9ff(0x227),null);const _0x536642=this[_0xadd9ff(0x2ad)][_0xadd9ff(0x1ff)][_0xadd9ff(0x2af)](_0x5a13d1),_0x580ce3=this[_0xadd9ff(0x293)][this[_0xadd9ff(0x293)][_0xadd9ff(0x2a3)]-0x1-this[_0xadd9ff(0x20c)]];if(!_0x580ce3||!_0x580ce3[_0xadd9ff(0x2ac)][_0xadd9ff(0x2a3)])return;const _0x3aa4b3=_0x580ce3[_0xadd9ff(0x2ac)][_0x580ce3[_0xadd9ff(0x2ac)][_0xadd9ff(0x2a3)]-0x1],_0x573c51=_0x3aa4b3[_0xadd9ff(0x202)];_0x3aa4b3[_0xadd9ff(0x249)](0x0,_0xadd9ff(0x290));let _0x2a501b=_0x346ae8({'editor':_0x5bfe10,'reply':_0x3aa4b3,'interaction':_0x580ce3,'groups':_0x573c51,'transform':!0x1,'documentCompare':_0x536642,'documentCompareOptions':{'anchor':_0x5bfe10[_0xadd9ff(0x284)][_0xadd9ff(0x28e)](_0x11a5fd,0x0),'markDeletions':_0x46b580}});_0x2a501b=this[_0xadd9ff(0x281)](_0x2a501b,_0x3db485);for(const _0x370532 of _0x2a501b)this[_0xadd9ff(0x21b)](_0x3db485,_0x370532,_0x5bfe10[_0xadd9ff(0x284)][_0xadd9ff(0x2b6)][_0xadd9ff(0x26d)]());const _0x28535f=_0x580ce3[_0xadd9ff(0x289)]()[_0xadd9ff(0x238)],_0x3723ff=_0x5bfe10[_0xadd9ff(0x284)][_0xadd9ff(0x2b6)][_0xadd9ff(0x209)][_0xadd9ff(0x278)](_0x28535f),_0x489b71={'document':_0x5bfe10[_0xadd9ff(0x284)][_0xadd9ff(0x2b6)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x5c63ed=_0x580695(_0x2a501b,_0x3723ff,_0x489b71)[_0xadd9ff(0x1f6)];_0x5bfe10[_0xadd9ff(0x284)][_0xadd9ff(0x265)](_0x429655=>{const _0x36216c=_0xadd9ff;if(_0x429655[_0x36216c(0x27f)](_0x5bfe10[_0x36216c(0x284)][_0x36216c(0x2b6)][_0x36216c(0x25d)][_0x36216c(0x277)]),_0x46b580)_0x5bfe10[_0x36216c(0x1ff)][_0x36216c(0x2af)](_0x36216c(0x29a))[_0x36216c(0x282)](_0x5c63ed);else{for(const _0x58216d of _0x5c63ed)_0x58216d[_0x36216c(0x25c)]=_0x5bfe10[_0x36216c(0x284)][_0x36216c(0x2b6)][_0x36216c(0x238)],_0x2713bb(_0x5bfe10,_0x58216d),_0x429655[_0x36216c(0x28f)][_0x36216c(0x25b)](_0x58216d),_0x5bfe10[_0x36216c(0x284)][_0x36216c(0x271)](_0x58216d);}}),this[_0xadd9ff(0x2ad)][_0xadd9ff(0x1ff)][_0xadd9ff(0x2af)](_0xadd9ff(0x1de))[_0xadd9ff(0x1df)]();}[_0x5cfc26(0x281)](_0x54f7bd,_0x2c752a){const _0x38d831=_0x5cfc26;return _0x54f7bd[_0x38d831(0x26b)](_0x5b2e1a=>{const _0x246459=_0x38d831;if(_0x246459(0x211)==_0x5b2e1a[_0x246459(0x21d)]){const _0x1205c4=_0x5b2e1a[_0x246459(0x27a)][_0x246459(0x228)];return!_0x2c752a[_0x246459(0x257)](_0x1205c4);}if(_0x5b2e1a[_0x246459(0x21d)][_0x246459(0x240)](_0x246459(0x1fd))>-0x1){const _0x284844=_0x5b2e1a[_0x246459(0x1ec)][_0x246459(0x2b0)][_0x246459(0x228)];return!_0x2c752a[_0x246459(0x257)](_0x284844);}return!0x0;});}[_0x5cfc26(0x21b)](_0x3659e4,_0x2edbc0,_0xe36f7a){const _0x390d93=_0x5cfc26,_0x21693b=_0x2edbc0[_0x390d93(0x2b3)]();for(const _0x59e6eb in _0x2edbc0){const _0x491f70=_0x2edbc0[_0x59e6eb];_0x491f70 instanceof _0x5543ae?_0x2edbc0[_0x59e6eb]=new _0x5543ae(_0x469638(_0x491f70[_0x390d93(0x2b0)]),_0x469638(_0x491f70[_0x390d93(0x259)])):_0x491f70 instanceof _0x5b60d5&&(_0x2edbc0[_0x59e6eb]=_0x469638(_0x491f70));}if([_0x390d93(0x29d),_0x390d93(0x2b7),_0x390d93(0x22b),_0x390d93(0x1fe),_0x390d93(0x234),_0x390d93(0x2aa)][_0x390d93(0x24a)](_0x21693b[_0x390d93(0x21d)])){if(_0x21693b[_0x390d93(0x205)]=!0x1,_0x21693b[_0x390d93(0x25c)]=null,_0x390d93(0x22b)==_0x21693b[_0x390d93(0x21d)]){const _0x127ced=_0x21693b[_0x390d93(0x2ab)],_0x367278=_0x21693b[_0x390d93(0x291)];new _0x143084(_0x127ced,_0x367278)[_0x390d93(0x2a7)]();}else _0x21693b[_0x390d93(0x2a7)]();}function _0x469638(_0x19d4e3){const _0x1fcc3b=_0x390d93;if(_0x1fcc3b(0x294)==_0x19d4e3[_0x1fcc3b(0x22a)][_0x1fcc3b(0x23b)])return _0x19d4e3;const _0x416bc5=[];let _0x5c2ebc=_0x19d4e3[_0x1fcc3b(0x22a)];for(let _0x499729=0x0;_0x499729<_0x19d4e3[_0x1fcc3b(0x230)][_0x1fcc3b(0x2a3)];_0x499729++){const _0xd0946e=_0x3659e4[_0x1fcc3b(0x2af)](_0x5c2ebc)||0x0;_0x416bc5[_0x499729]=_0x19d4e3[_0x1fcc3b(0x230)][_0x499729]+_0xd0946e,_0x5c2ebc=_0x5c2ebc[_0x1fcc3b(0x27e)](_0x19d4e3[_0x1fcc3b(0x230)][_0x499729]);}return new _0x5b60d5(_0xe36f7a,_0x416bc5,_0x19d4e3[_0x1fcc3b(0x1f8)]);}}[_0x5cfc26(0x220)](){const _0x353cd3=_0x5cfc26;if(!this[_0x353cd3(0x223)])return;this[_0x353cd3(0x293)][_0x353cd3(0x2a3)]>0x0&&this[_0x353cd3(0x262)](),this[_0x353cd3(0x20c)]=0x0,this[_0x353cd3(0x2a1)]=!0x1;const {action:_0x176e51,content:_0x1249c2,version:_0x3ffd81,aiBalloon:_0x189fd7}=this[_0x353cd3(0x223)];this[_0x353cd3(0x1f0)](),this[_0x353cd3(0x216)][_0x353cd3(0x295)](),this[_0x353cd3(0x216)][_0x353cd3(0x1e5)](),this[_0x353cd3(0x216)][_0x353cd3(0x22c)](),this[_0x353cd3(0x216)][_0x353cd3(0x242)](this[_0x353cd3(0x293)][_0x353cd3(0x2a3)],this[_0x353cd3(0x20c)]),this[_0x353cd3(0x2a6)](this[_0x353cd3(0x216)]),this[_0x353cd3(0x28c)](),this[_0x353cd3(0x23d)](_0x1249c2,_0x3ffd81,_0x189fd7,_0x176e51)[_0x353cd3(0x2a9)](_0x3c3bc8=>{const _0x25e094=_0x353cd3;this[_0x25e094(0x251)](_0x3c3bc8)||console[_0x25e094(0x213)](_0x25e094(0x28a),_0x3c3bc8);});}[_0x5cfc26(0x251)](_0x35b77c){const _0x39b68a=_0x5cfc26;return!!_0x35b77c[_0x39b68a(0x1e9)]&&_0x35b77c[_0x39b68a(0x1e9)][_0x39b68a(0x208)](_0x39b68a(0x264));}[_0x5cfc26(0x2b8)](){const _0x1b7ff5=_0x5cfc26;this[_0x1b7ff5(0x293)]=[],this[_0x1b7ff5(0x223)]=void 0x0,this[_0x1b7ff5(0x20c)]=0x0,this[_0x1b7ff5(0x216)][_0x1b7ff5(0x242)](this[_0x1b7ff5(0x293)][_0x1b7ff5(0x2a3)],this[_0x1b7ff5(0x20c)]);}[_0x5cfc26(0x262)](){const _0x289c91=_0x5cfc26;this[_0x289c91(0x261)]&&this[_0x289c91(0x261)][_0x289c91(0x1dd)](),this[_0x289c91(0x1ea)][_0x289c91(0x1e1)](),this[_0x289c91(0x1f9)]=!0x1,this[_0x289c91(0x223)]&&this[_0x289c91(0x216)][_0x289c91(0x280)]();}[_0x5cfc26(0x1dc)](){const _0x28847b=_0x5cfc26,_0x22ec14=this[_0x28847b(0x293)][_0x28847b(0x2a3)];this[_0x28847b(0x20c)]<_0x22ec14-0x1&&this[_0x28847b(0x20d)](this[_0x28847b(0x20c)]+0x1);}[_0x5cfc26(0x26c)](){const _0x55e9bc=_0x5cfc26;this[_0x55e9bc(0x20c)]>0x0&&this[_0x55e9bc(0x20d)](this[_0x55e9bc(0x20c)]-0x1);}async[_0x5cfc26(0x20d)](_0x11e078){const _0x320d2f=_0x5cfc26;if(!this[_0x320d2f(0x223)])return;this[_0x320d2f(0x20c)]=_0x11e078;const _0x54130f=this[_0x320d2f(0x293)][this[_0x320d2f(0x293)][_0x320d2f(0x2a3)]-0x1-this[_0x320d2f(0x20c)]];if(!_0x54130f)return;if(_0x54130f[_0x320d2f(0x252)])return this[_0x320d2f(0x29e)](_0x54130f),void this[_0x320d2f(0x216)][_0x320d2f(0x242)](this[_0x320d2f(0x293)][_0x320d2f(0x2a3)],this[_0x320d2f(0x20c)]);if(!_0x54130f[_0x320d2f(0x2ac)][_0x320d2f(0x2a3)])return;this[_0x320d2f(0x216)][_0x320d2f(0x26f)](),this[_0x320d2f(0x223)]&&this[_0x320d2f(0x1f0)]();const _0x44dc36=_0x54130f[_0x320d2f(0x2ac)][_0x54130f[_0x320d2f(0x2ac)][_0x320d2f(0x2a3)]-0x1];if(_0x44dc36){const _0x4e409e=this[_0x320d2f(0x2ad)];try{const _0x35e6b9=_0x46948e({'editor':_0x4e409e,'changeGroups':_0x44dc36[_0x320d2f(0x202)],'documentContextContent':_0x44dc36[_0x320d2f(0x204)],'showDiff':this[_0x320d2f(0x2a1)],'trimUnchanged':!0x1});await new Promise(_0x3d846e=>setTimeout(_0x3d846e,0x32)),await this[_0x320d2f(0x216)][_0x320d2f(0x263)]({'part':_0x35e6b9[0x0],'renderingStrategy':_0x320d2f(0x279),'abortSignal':new AbortController()[_0x320d2f(0x226)]});}catch(_0x3c673f){this[_0x320d2f(0x251)](_0x3c673f)||console[_0x320d2f(0x213)](_0x320d2f(0x1e7),_0x3c673f);}}this[_0x320d2f(0x216)][_0x320d2f(0x242)](this[_0x320d2f(0x293)][_0x320d2f(0x2a3)],this[_0x320d2f(0x20c)]);}[_0x5cfc26(0x222)](){const _0x10caeb=_0x5cfc26;this[_0x10caeb(0x216)][_0x10caeb(0x215)](!0x0),this[_0x10caeb(0x1f9)]=!0x0;}async[_0x5cfc26(0x29e)](_0x2b8a8c){const _0x3881f2=_0x5cfc26,_0x261416=_0x5bf298(this[_0x3881f2(0x2ad)][_0x3881f2(0x2a5)],_0x3881f2(0x1f2));this[_0x3881f2(0x216)][_0x3881f2(0x2b2)](_0x261416),_0x2b8a8c[_0x3881f2(0x252)]=!0x0,await this[_0x3881f2(0x1ea)][_0x3881f2(0x2a2)],this[_0x3881f2(0x216)][_0x3881f2(0x236)](),this[_0x3881f2(0x216)][_0x3881f2(0x256)](!0x0);}[_0x5cfc26(0x1f0)](){const _0x177b46=_0x5cfc26;this[_0x177b46(0x216)][_0x177b46(0x26f)](),this[_0x177b46(0x216)][_0x177b46(0x256)](!0x1);}async[_0x5cfc26(0x246)](){const _0x805d2c=_0x5cfc26;await this[_0x805d2c(0x1ea)][_0x805d2c(0x2a2)],this[_0x805d2c(0x1f9)]=!0x1,this[_0x805d2c(0x216)][_0x805d2c(0x215)](!0x1);}}
23
+ const _0x59a3a4=_0x1f6e;(function(_0x53c508,_0x554a72){const _0x4fe6db=_0x1f6e,_0x4ac924=_0x53c508();while(!![]){try{const _0x47ebe7=parseInt(_0x4fe6db(0x28d))/0x1*(parseInt(_0x4fe6db(0x2ae))/0x2)+-parseInt(_0x4fe6db(0x21d))/0x3*(-parseInt(_0x4fe6db(0x2b6))/0x4)+parseInt(_0x4fe6db(0x1f5))/0x5*(parseInt(_0x4fe6db(0x270))/0x6)+parseInt(_0x4fe6db(0x22e))/0x7*(parseInt(_0x4fe6db(0x235))/0x8)+-parseInt(_0x4fe6db(0x2a3))/0x9*(parseInt(_0x4fe6db(0x2c6))/0xa)+-parseInt(_0x4fe6db(0x288))/0xb+-parseInt(_0x4fe6db(0x2c4))/0xc;if(_0x47ebe7===_0x554a72)break;else _0x4ac924['push'](_0x4ac924['shift']());}catch(_0x1800fa){_0x4ac924['push'](_0x4ac924['shift']());}}}(_0x1f58,0xd81c4));import{Plugin as _0x5e7529}from'ckeditor5/src/core.js';import{AIConnector as _0x35bd51}from'../aicore/aiconnector.js';import{Dialog as _0x374bef,BodyCollection as _0x47b23e}from'ckeditor5/src/ui.js';import{AIEditing as _0x2f613d,AI_VISUAL_SELECTION_MARKER_NAME as _0xc1265e}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x3b85ba}from'./model/aiactionsinteraction.js';import{CKEditorError as _0x48a733,first as _0x57fb3c}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x51e2b5}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x59e78e}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x399f6d}from'../aichat/utils/promisequeue.js';function _0x1f58(){const _0x36b296=['AI_ACTIONS_GENERIC_ERROR','static','TableSelection','setChangeGroupState','createPositionAfter','getSelectedContent','_balloonShowDiff','showNext','showError','commands','2WclEFm','updateMiniToolbarButtons','getOperations','_copyMarkersToFragment','_interactionParams','Error\x20refreshing\x20interaction:','_navigateToPrevious','_applyOperationsAsSuggestions','4cxbhQv','executeAction','random','_executeAction','pluginName','isTrackChangesOn','max','upsertCustomAIActionRating','path','_actionsBalloonView','_isAbortError','start','operationsA','startsWith','7201176mUmaTw','position','10HCqwKo','push','get','attachToDom','queueEmptyPromise','isTableSelection','isPremiumPlugin','error','_execute','toggleSuggestionDisplayMode','hideError','getSelectionAsFragment','isBusy','55ZuxQgn','setSelection','getFirstRange','detachFromDom','getAncestors','stop','icon','version','set','focus','changeGroups','isOfficialPlugin','interactionFinished','getChild','dialogClosed','Error\x20updating\x20content\x20in\x20replyCreated:','pending','_stopInteraction','enqueue','_setLoadingState','disableMiniToolbarButtons','tryAgain','slice','batch','_displayInteractionAtIndex','Error\x20updating\x20content\x20during\x20navigation:','from','documentContextContent','name','_aiConnector','message','documentFragment','_setErrorState','Error\x20updating\x20content\x20in\x20replyContentUpdated:','merge','replyChangeGroupStateUpdated','plugins','selection','updateContent','_getExecuteDataRegular','2763135QNNSKx','stopInteraction','parent','_appendChild','getSelectedTableCells','showPrevious','stopAutoScroll','_bodyCollection','some','createPositionFromPath','_clearLoadingState','modelToDataWithIds','aiActionsBalloon','stopListening','_interaction','getDocumentContext','history','2206981DymMzD','accepted','howMany','end','close','baseVersion','TrackChanges','16AOdPjR','isEqual','trackChanges','hideLoader','rename','AIConnector','insertSuggestion','schema','indexOf','addOperation','resetShowChangesButton','AIActions','nodeAfter','change','ai.availableReplyActions','getChildAtOffset','getSelectedBlocks','affectsData','catch','length','_clearErrorState','ai-no-track-changes','move','markers','ck-ai-actions-balloon','containsRange','stickiness','AIBalloon','createRange','isDocumentOperation','value','editor','$graveyard','createPositionBefore','_regularCalculateMarkerPath','state','sourcePosition','streaming','nextSibling','_navigateToNext','reinsert','selectionRemoved','_promiseQueue','Attribute','_refreshInteraction','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','getLimitElement','replyCreated','ai-request-aborted','replies','showLoader','has','applyOperation','_setupApplyListeners','_filterOperationsOutsideRange','split','isCollapsed','rootName','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','580098zkqHhi','filter','_getExecuteDataInTable','range','_interactions','TrackChangesEditing','clearContent','remove','_anchorOperation','map','clone','getRange','open','_clone','upsertAIActionRating','includes','model','_wrapWithCommonAncestors','setIsLoading','hasError','_createActionsBalloonView','listenTo','_createInteraction','applySuggestion','3173104nGKszm','getCommonAncestor','actionName','rejected','insert','327867SyWjpz','destroy','type','locale','document','requires','getRanges','bind','abort','getRoot','_clearInteractionHistory','actionCallId','root','setErrorState','config','replyContentUpdated','toggleIsLoading','signal','startAutoScroll','_currentInteractionIndex','createPositionAt','_applyChanges','10523169ccQAmE'];_0x1f58=function(){return _0x36b296;};return _0x1f58();}import{getTranslation as _0xdb97bd}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x1e82e1}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x31f6da}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x4ccf13,getOperationsFromReply as _0x111e58}from'../aicore/utils/getoperationsfromreply.js';function _0x1f6e(_0x531605,_0x27897c){const _0x1f586f=_0x1f58();return _0x1f6e=function(_0x1f6e76,_0x4e69f9){_0x1f6e76=_0x1f6e76-0x1ea;let _0x39d977=_0x1f586f[_0x1f6e76];return _0x39d977;},_0x1f6e(_0x531605,_0x27897c);}import{ModelDocumentFragment as _0x40677c,ModelRange as _0x10d1c5,ModelPosition as _0x1e5e9f,_DetachOperation as _0x30569f,transformOperationSets as _0xe67dfb}from'ckeditor5/src/engine.js';import{AI_REPLY_ACTIONS as _0x5f150a}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIActionsBalloonView as _0x5569ea}from'../aiquickactions/ui/balloon/aiactionsballoonview.js';export class AIActions extends _0x5e7529{static get[_0x59a3a4(0x292)](){return[_0x35bd51,_0x374bef,_0x2f613d,_0x59e78e,_0x31f6da];}static get[_0x59a3a4(0x2ba)](){const _0x547869=_0x59a3a4;return _0x547869(0x240);}static get[_0x59a3a4(0x200)](){return!0x0;}static get[_0x59a3a4(0x1ee)](){return!0x0;}[_0x59a3a4(0x212)];[_0x59a3a4(0x274)]=[];[_0x59a3a4(0x2a0)]=0x0;[_0x59a3a4(0x2b2)];[_0x59a3a4(0x2aa)]=!0x1;[_0x59a3a4(0x25f)];[_0x59a3a4(0x224)];get[_0x59a3a4(0x22b)](){const _0x2d671c=_0x59a3a4;return this[_0x2d671c(0x274)][this[_0x2d671c(0x274)][_0x2d671c(0x248)]-0x1];}[_0x59a3a4(0x2bf)];constructor(_0x1cf6c2){const _0x52c6f2=_0x59a3a4;super(_0x1cf6c2),this[_0x52c6f2(0x224)]=new _0x47b23e(this[_0x52c6f2(0x254)][_0x52c6f2(0x290)]),this[_0x52c6f2(0x224)][_0x52c6f2(0x1eb)](),this[_0x52c6f2(0x212)]=this[_0x52c6f2(0x254)][_0x52c6f2(0x219)][_0x52c6f2(0x1ea)](_0x52c6f2(0x23a)),this[_0x52c6f2(0x1fd)](_0x52c6f2(0x1f4),!0x1),this[_0x52c6f2(0x25f)]=new _0x399f6d();}[_0x59a3a4(0x21e)](){const _0x36027c=_0x59a3a4;this[_0x36027c(0x206)]();}async[_0x59a3a4(0x2b7)](_0x2c09f1,_0x5a7441,_0x2e430c){const _0x1adc9c=_0x59a3a4;if(this[_0x1adc9c(0x206)](),this[_0x1adc9c(0x254)][_0x1adc9c(0x219)][_0x1adc9c(0x268)](_0x1adc9c(0x2a6))){if(this[_0x1adc9c(0x254)][_0x1adc9c(0x219)][_0x1adc9c(0x1ea)](_0x1adc9c(0x2a6))[_0x1adc9c(0x221)]()){const {modelFragment:_0x4cf43a,anchorData:_0x2f08e3}=this[_0x1adc9c(0x272)]();return this[_0x1adc9c(0x2b9)](_0x2c09f1,_0x4cf43a,_0x2f08e3,_0x5a7441,_0x2e430c);}}const {modelFragment:_0x2a9e05,anchorData:_0x3a4a7b}=this[_0x1adc9c(0x21c)]();return this[_0x1adc9c(0x2b9)](_0x2c09f1,_0x2a9e05,_0x3a4a7b,_0x5a7441,_0x2e430c);}async[_0x59a3a4(0x28e)](){const _0x4c84a8=_0x59a3a4;return this[_0x4c84a8(0x206)](),this[_0x4c84a8(0x224)][_0x4c84a8(0x1f8)](),super[_0x4c84a8(0x28e)]();}[_0x59a3a4(0x284)](){const _0x4217ef=_0x59a3a4,_0x31244d=this[_0x4217ef(0x254)][_0x4217ef(0x219)][_0x4217ef(0x268)](_0x4217ef(0x234));let _0x1d4362=this[_0x4217ef(0x254)][_0x4217ef(0x29b)][_0x4217ef(0x1ea)](_0x4217ef(0x243))||[..._0x5f150a];_0x31244d||(_0x1d4362=_0x1d4362[_0x4217ef(0x271)](_0x11eb85=>_0x4217ef(0x23b)!=_0x11eb85));const _0x27b70a=this[_0x4217ef(0x254)][_0x4217ef(0x2ad)][_0x4217ef(0x1ea)](_0x4217ef(0x237)),_0x5642f9=new _0x5569ea(this[_0x4217ef(0x254)][_0x4217ef(0x290)],{'showApplyButton':!0x0,'showSuggestButton':_0x31244d,'miniToolbarConfig':{'showChanges':_0x4217ef(0x1fb)},'availableActions':_0x1d4362});return _0x5642f9[_0x4217ef(0x294)](_0x4217ef(0x1f4))['to'](this),_0x27b70a&&_0x5642f9[_0x4217ef(0x294)](_0x4217ef(0x2bb))['to'](_0x27b70a,_0x4217ef(0x253)),_0x5642f9['on'](_0x4217ef(0x20a),()=>{const _0xe685a=_0x4217ef;this[_0xe685a(0x261)]();}),_0x5642f9['on'](_0x4217ef(0x222),()=>{const _0x1b41e2=_0x4217ef;this[_0x1b41e2(0x2b4)]();}),_0x5642f9['on'](_0x4217ef(0x2ab),()=>{const _0x1ebe73=_0x4217ef;this[_0x1ebe73(0x25c)]();}),_0x5642f9;}[_0x59a3a4(0x21c)](){const _0xb7f5b9=_0x59a3a4,_0x45b30b=this[_0xb7f5b9(0x254)][_0xb7f5b9(0x280)][_0xb7f5b9(0x291)][_0xb7f5b9(0x21a)];if(_0x45b30b[_0xb7f5b9(0x26d)]){const _0x43eaec=_0x57fb3c(_0x45b30b[_0xb7f5b9(0x245)]())||this[_0xb7f5b9(0x254)][_0xb7f5b9(0x280)][_0xb7f5b9(0x23c)][_0xb7f5b9(0x263)](_0x45b30b);this[_0xb7f5b9(0x254)][_0xb7f5b9(0x280)][_0xb7f5b9(0x242)](_0x5bd999=>{const _0x5ccdc1=_0xb7f5b9;_0x5bd999[_0x5ccdc1(0x1f6)](_0x43eaec,'in');});}const _0x2760aa=_0x45b30b[_0xb7f5b9(0x1f7)](),_0x4d5175=this[_0xb7f5b9(0x281)](this[_0xb7f5b9(0x254)][_0xb7f5b9(0x280)][_0xb7f5b9(0x2a9)](_0x45b30b),_0x2760aa[_0xb7f5b9(0x2c1)],_0x2760aa[_0xb7f5b9(0x231)]);this[_0xb7f5b9(0x2b1)](_0x4d5175,_0x45b30b,{'isTableSelection':!0x1});const _0x41e827=_0x45b30b[_0xb7f5b9(0x1f7)]()[_0xb7f5b9(0x2c1)],_0x1eb94a=new Map();let _0xff155f=_0x4d5175;for(let _0x39e697=0x0;_0x39e697<_0x41e827[_0xb7f5b9(0x2be)][_0xb7f5b9(0x248)];_0x39e697++)_0x1eb94a[_0xb7f5b9(0x1fd)](_0xff155f,_0x41e827[_0xb7f5b9(0x2be)][_0x39e697]),_0xff155f=_0xff155f[_0xb7f5b9(0x202)](0x0);return{'modelFragment':_0x4d5175,'anchorData':_0x1eb94a};}[_0x59a3a4(0x272)](){const _0x24accf=_0x59a3a4,_0x4b90ab=this[_0x24accf(0x254)][_0x24accf(0x280)][_0x24accf(0x291)][_0x24accf(0x21a)],_0x252620=this[_0x24accf(0x254)][_0x24accf(0x219)][_0x24accf(0x1ea)](_0x24accf(0x2a6))[_0x24accf(0x1f3)](),_0x2dd111=_0x4b90ab[_0x24accf(0x1f7)]()[_0x24accf(0x2c1)][_0x24accf(0x21f)][_0x24accf(0x21f)],_0x57572d=this[_0x24accf(0x254)][_0x24accf(0x280)][_0x24accf(0x251)](this[_0x24accf(0x254)][_0x24accf(0x280)][_0x24accf(0x256)](_0x2dd111),this[_0x24accf(0x254)][_0x24accf(0x280)][_0x24accf(0x2a8)](_0x2dd111)),_0x172201=this[_0x24accf(0x281)](_0x252620,_0x57572d[_0x24accf(0x2c1)],_0x57572d[_0x24accf(0x231)]);this[_0x24accf(0x2b1)](_0x172201,_0x4b90ab,{'isTableSelection':!0x0});const _0x516eb5=_0x4b90ab[_0x24accf(0x1f7)]()[_0x24accf(0x2c1)],_0x1d30c9=new Map();let _0x3c44e4=_0x172201;for(let _0x2eb75d=0x0;_0x2eb75d<_0x516eb5[_0x24accf(0x2be)][_0x24accf(0x248)];_0x2eb75d++)if(_0x1d30c9[_0x24accf(0x1fd)](_0x3c44e4,_0x516eb5[_0x24accf(0x2be)][_0x2eb75d]),_0x2eb75d<_0x516eb5[_0x24accf(0x2be)][_0x24accf(0x248)]-0x1)_0x3c44e4=_0x3c44e4[_0x24accf(0x202)](0x0);else{let _0x480125=_0x3c44e4[_0x24accf(0x25b)];for(;_0x480125;)_0x1d30c9[_0x24accf(0x1fd)](_0x480125,_0x516eb5[_0x24accf(0x2be)][_0x2eb75d]),_0x480125=_0x480125[_0x24accf(0x25b)];}return{'modelFragment':_0x172201,'anchorData':_0x1d30c9};}async[_0x59a3a4(0x2b9)](_0xb27424,_0x331414,_0x3d0764,_0x7ffdd3,_0x3f3332){const _0x161de9=_0x59a3a4,_0x3bda87=this[_0x161de9(0x254)][_0x161de9(0x219)][_0x161de9(0x1ea)](_0x2f613d),_0xf72e03=this[_0x161de9(0x254)][_0x161de9(0x219)][_0x161de9(0x1ea)](_0x59e78e),_0x28a407=this[_0x161de9(0x254)][_0x161de9(0x280)][_0x161de9(0x291)][_0x161de9(0x21a)],_0x519b52=await _0x3bda87[_0x161de9(0x228)](_0x331414),_0x151396=this[_0x161de9(0x254)][_0x161de9(0x280)][_0x161de9(0x291)][_0x161de9(0x1fc)],_0xa68a5a=[..._0x28a407[_0x161de9(0x293)]()];return this[_0x161de9(0x2bf)]||(this[_0x161de9(0x2bf)]=this[_0x161de9(0x284)]()),this[_0x161de9(0x297)](),this[_0x161de9(0x249)](),this[_0x161de9(0x2bf)][_0x161de9(0x276)](),_0xf72e03[_0x161de9(0x27c)]({'index':0x3e8*Math[_0x161de9(0x2b8)]()%0x3e8,'title':_0x7ffdd3,'icon':_0x3f3332||_0x51e2b5,'mainView':this[_0x161de9(0x2bf)],'class':_0x161de9(0x24d),'ranges':_0xa68a5a,'id':_0x161de9(0x229)}),this[_0x161de9(0x208)](),this[_0x161de9(0x22a)](this[_0x161de9(0x2bf)]),this[_0x161de9(0x22a)](_0xf72e03),this[_0x161de9(0x2b2)]={'action':_0xb27424,'content':_0x519b52,'version':_0x151396,'aiBalloon':_0xf72e03,'modelFragment':_0x331414,'anchorData':_0x3d0764},this[_0x161de9(0x26a)](),this[_0x161de9(0x285)](_0xf72e03,_0x161de9(0x25e),()=>{const _0x4f35bb=_0x161de9;this[_0x4f35bb(0x206)](),this[_0x4f35bb(0x2bf)][_0x4f35bb(0x209)]();}),this[_0x161de9(0x285)](_0xf72e03,_0x161de9(0x203),(_0x53dd38,{id:_0x461602})=>{const _0x57852a=_0x161de9;if(_0x57852a(0x229)===_0x461602){if(this[_0x57852a(0x22b)]&&this[_0x57852a(0x22b)][_0x57852a(0x266)][_0x57852a(0x248)]>0x0){const _0x3025bc=this[_0x57852a(0x22b)][_0x57852a(0x266)][this[_0x57852a(0x22b)][_0x57852a(0x266)][_0x57852a(0x248)]-0x1],_0x19e00f=_0x3025bc[_0x57852a(0x1ff)][0x0];_0x19e00f&&_0x57852a(0x205)===_0x19e00f[_0x57852a(0x258)]&&_0x3025bc[_0x57852a(0x2a7)](0x0,_0x57852a(0x28b));}this[_0x57852a(0x206)](),this[_0x57852a(0x297)](),this[_0x57852a(0x22a)](this[_0x57852a(0x2bf)]),this[_0x57852a(0x22a)](_0xf72e03);}}),this[_0x161de9(0x286)](_0x519b52,_0x151396,_0xf72e03,_0xb27424);}[_0x59a3a4(0x26a)](){const _0x17f25a=_0x59a3a4;if(!this[_0x17f25a(0x2b2)])return;const {modelFragment:_0x52fc6f,anchorData:_0xcb331b}=this[_0x17f25a(0x2b2)];this[_0x17f25a(0x285)](this[_0x17f25a(0x2bf)],_0x17f25a(0x287),()=>{const _0x149af3=_0x17f25a;this[_0x149af3(0x2a2)](_0x52fc6f,_0xcb331b,!0x1);}),this[_0x17f25a(0x285)](this[_0x17f25a(0x2bf)],_0x17f25a(0x23b),()=>{const _0x4fe3d8=_0x17f25a;this[_0x4fe3d8(0x2a2)](_0x52fc6f,_0xcb331b,!0x0);});}[_0x59a3a4(0x281)](_0x10da3d,_0x429325,_0xdde132){const _0x425be6=_0x59a3a4,_0x49cfed=this[_0x425be6(0x254)][_0x425be6(0x280)][_0x425be6(0x251)](_0x429325,_0xdde132)[_0x425be6(0x289)](),_0x2411a6=_0x49cfed['is'](_0x425be6(0x214))?[]:_0x49cfed[_0x425be6(0x1f9)]({'includeSelf':!0x0})[_0x425be6(0x20b)](0x1);if(_0x2411a6[_0x425be6(0x248)]){const _0x52c03a=_0x2411a6[_0x425be6(0x279)](_0x3d2514=>_0x3d2514[_0x425be6(0x27d)](!0x1));for(let _0x5503b7=0x1;_0x5503b7<_0x52c03a[_0x425be6(0x248)];_0x5503b7++)_0x52c03a[_0x5503b7-0x1][_0x425be6(0x220)](_0x52c03a[_0x5503b7]);return _0x52c03a[_0x52c03a[_0x425be6(0x248)]-0x1][_0x425be6(0x220)](_0x10da3d),new _0x40677c(_0x52c03a[0x0]);}return _0x10da3d;}[_0x59a3a4(0x2b1)](_0x321385,_0x2a9749,_0x5daf30={'isTableSelection':!0x1}){const _0xeb9ca4=_0x59a3a4,_0x197d82=this[_0xeb9ca4(0x254)][_0xeb9ca4(0x280)],_0x4df483=Array[_0xeb9ca4(0x20f)](_0x2a9749[_0xeb9ca4(0x293)]()),_0x29e726=_0x2a9749[_0xeb9ca4(0x1f7)]()[_0xeb9ca4(0x2c1)];for(const _0x1e8a73 of _0x197d82[_0xeb9ca4(0x24c)]){if(_0x1e8a73[_0xeb9ca4(0x211)][_0xeb9ca4(0x2c3)](_0xc1265e)||!_0x1e8a73[_0xeb9ca4(0x246)])continue;const _0x240711=_0x1e8a73[_0xeb9ca4(0x27b)]();if(!_0x4df483[_0xeb9ca4(0x225)](_0x410241=>_0x410241[_0xeb9ca4(0x24e)](_0x240711,!0x0)))continue;const _0x3983b3=this[_0xeb9ca4(0x257)](_0x240711[_0xeb9ca4(0x2c1)],_0x29e726,_0x5daf30[_0xeb9ca4(0x1ed)]),_0x59ba37=this[_0xeb9ca4(0x257)](_0x240711[_0xeb9ca4(0x231)],_0x29e726,_0x5daf30[_0xeb9ca4(0x1ed)]),_0x1f8b5f=_0x197d82[_0xeb9ca4(0x226)](_0x321385,_0x3983b3),_0xd7089e=_0x197d82[_0xeb9ca4(0x226)](_0x321385,_0x59ba37);if(!_0x1f8b5f[_0xeb9ca4(0x236)](_0xd7089e)){const _0x57fb84=_0x197d82[_0xeb9ca4(0x251)](_0x1f8b5f,_0xd7089e);_0x321385[_0xeb9ca4(0x24c)][_0xeb9ca4(0x1fd)](_0x1e8a73[_0xeb9ca4(0x211)],_0x57fb84);}}}[_0x59a3a4(0x257)](_0x4ad68a,_0x4af4cf,_0x5aba3c=!0x1){const _0x593321=_0x59a3a4,_0x86031a=[..._0x4ad68a[_0x593321(0x2be)][_0x593321(0x20b)]()];for(let _0x30e22e=0x0;_0x30e22e<Math[_0x593321(0x2bc)](_0x4af4cf[_0x593321(0x2be)][_0x593321(0x248)],_0x4ad68a[_0x593321(0x2be)][_0x593321(0x248)]);_0x30e22e++){const _0x186f80=_0x4af4cf[_0x593321(0x2be)][_0x30e22e]||0x0,_0x972bbe=(_0x4ad68a[_0x593321(0x2be)][_0x30e22e]||0x0)-_0x186f80;if(_0x86031a[_0x30e22e]=_0x972bbe,0x0!==_0x972bbe&&!_0x5aba3c)break;}return _0x86031a;}async[_0x59a3a4(0x286)](_0x5448e5,_0x19f472,_0x58d843,_0xffac24){const _0x4ac5c2=_0x59a3a4,_0x283b1b=this[_0x4ac5c2(0x254)];this[_0x4ac5c2(0x2b2)]||(this[_0x4ac5c2(0x2b2)]={'action':_0xffac24,'content':_0x5448e5,'version':_0x19f472,'aiBalloon':_0x58d843,'modelFragment':this[_0x4ac5c2(0x254)][_0x4ac5c2(0x280)][_0x4ac5c2(0x2a9)](this[_0x4ac5c2(0x254)][_0x4ac5c2(0x280)][_0x4ac5c2(0x291)][_0x4ac5c2(0x21a)]),'anchorData':new Map()});const _0x25cc02=new _0x3b85ba({'connector':this[_0x4ac5c2(0x212)],'editor':_0x283b1b,'content':_0x5448e5,'version':_0x19f472,..._0xffac24});this[_0x4ac5c2(0x274)][_0x4ac5c2(0x2c7)](_0x25cc02);const _0x3cc051=(_0xd7ae9f,_0x52d678=!0x1,_0x1d5d0a=_0x4ac5c2(0x25a))=>this[_0x4ac5c2(0x25f)][_0x4ac5c2(0x207)](async _0x2af2d8=>{const _0x66e2d=_0x4ac5c2;try{const _0x46a735=_0x1e82e1({'editor':_0x283b1b,'changeGroups':_0xd7ae9f[_0x66e2d(0x1ff)],'documentContextContent':_0xd7ae9f[_0x66e2d(0x210)],'showDiff':_0x52d678,'trimUnchanged':!0x1});_0x46a735[_0x66e2d(0x248)]&&await this[_0x66e2d(0x2bf)][_0x66e2d(0x21b)]({'part':_0x46a735[0x0],'renderingStrategy':_0x1d5d0a,'abortSignal':_0x2af2d8});}catch(_0x322509){if(this[_0x66e2d(0x2c0)](_0x322509))return;throw _0x322509;}});this[_0x4ac5c2(0x22b)]['on'](_0x4ac5c2(0x264),(_0xc0fdbc,_0x47b5e4)=>{const _0x2ba4ed=_0x4ac5c2;this[_0x2ba4ed(0x2bf)][_0x2ba4ed(0x238)](),this[_0x2ba4ed(0x2bf)][_0x2ba4ed(0x29f)](),_0x3cc051(_0x47b5e4)[_0x2ba4ed(0x247)](_0x260618=>{const _0x2219c1=_0x2ba4ed;this[_0x2219c1(0x2c0)](_0x260618)||(console[_0x2219c1(0x1ef)](_0x2219c1(0x204),_0x260618),this[_0x2219c1(0x215)](_0x25cc02));});}),this[_0x4ac5c2(0x22b)]['on'](_0x4ac5c2(0x29c),(_0x12534c,_0x38ce9a)=>{const _0x26ae48=_0x4ac5c2;_0x3cc051(_0x38ce9a)[_0x26ae48(0x247)](_0x243b38=>{const _0x260171=_0x26ae48;this[_0x260171(0x2c0)](_0x243b38)||(console[_0x260171(0x1ef)](_0x260171(0x216),_0x243b38),this[_0x260171(0x215)](_0x25cc02));});}),this[_0x4ac5c2(0x22b)]['on'](_0x4ac5c2(0x201),async()=>{const _0xcdc22b=_0x4ac5c2;try{await this[_0xcdc22b(0x227)](),this[_0xcdc22b(0x2bf)][_0xcdc22b(0x2af)](this[_0xcdc22b(0x274)][_0xcdc22b(0x248)],this[_0xcdc22b(0x2a0)]),await this[_0xcdc22b(0x25f)][_0xcdc22b(0x1ec)];}catch(_0x458352){this[_0xcdc22b(0x2c0)](_0x458352)||(console[_0xcdc22b(0x1ef)](_0xcdc22b(0x26f),_0x458352),this[_0xcdc22b(0x215)](_0x25cc02));}finally{this[_0xcdc22b(0x2bf)][_0xcdc22b(0x223)]();}}),this[_0x4ac5c2(0x285)](this[_0x4ac5c2(0x2bf)],_0x4ac5c2(0x1f1),async(_0x35107c,{showDiff:_0x51ced6})=>{const _0x5d2333=_0x4ac5c2;try{this[_0x5d2333(0x2aa)]=_0x51ced6;const _0x2da1f9=this[_0x5d2333(0x22b)][_0x5d2333(0x266)][this[_0x5d2333(0x22b)][_0x5d2333(0x266)][_0x5d2333(0x248)]-0x1];_0x2da1f9&&await _0x3cc051(_0x2da1f9,_0x51ced6,_0x5d2333(0x2a5));}catch(_0x3b8931){this[_0x5d2333(0x2c0)](_0x3b8931)||(console[_0x5d2333(0x1ef)](_0x5d2333(0x262),_0x3b8931),this[_0x5d2333(0x215)](_0x25cc02));}}),this[_0x4ac5c2(0x22b)]['on'](_0x4ac5c2(0x218),(_0x4a580e,{reply:_0x5c904f})=>{const _0x415e43=_0x4ac5c2,_0x2f8ed0={'positiveCount':_0x5c904f[_0x415e43(0x1ff)][_0x415e43(0x271)](_0x46c302=>_0x415e43(0x22f)===_0x46c302[_0x415e43(0x258)])[_0x415e43(0x248)],'totalCount':_0x5c904f[_0x415e43(0x1ff)][_0x415e43(0x248)]},_0x2319a4=this[_0x415e43(0x22b)][_0x415e43(0x298)],_0x573e1c=this[_0x415e43(0x22b)][_0x415e43(0x28a)];_0x573e1c?this[_0x415e43(0x212)][_0x415e43(0x27e)](_0x573e1c,_0x2319a4,_0x2f8ed0):this[_0x415e43(0x212)][_0x415e43(0x2bd)](_0x2319a4,_0x2f8ed0);}),this[_0x4ac5c2(0x208)]();try{const _0x404296=await this[_0x4ac5c2(0x22b)][_0x4ac5c2(0x2c1)]();return this[_0x4ac5c2(0x2bf)][_0x4ac5c2(0x2af)](this[_0x4ac5c2(0x274)][_0x4ac5c2(0x248)],this[_0x4ac5c2(0x2a0)]),_0x404296;}catch(_0xb8f92a){if(this[_0x4ac5c2(0x2c0)](_0xb8f92a))return;this[_0x4ac5c2(0x2bf)][_0x4ac5c2(0x238)](),this[_0x4ac5c2(0x215)](_0x25cc02);}}[_0x59a3a4(0x2a2)](_0x16908a,_0x58e443,_0x52d59f){const _0x20938b=_0x59a3a4,_0x421ab7=this[_0x20938b(0x254)];if(_0x52d59f&&!_0x421ab7[_0x20938b(0x219)][_0x20938b(0x268)](_0x20938b(0x234)))throw new _0x48a733(_0x20938b(0x24a),null);const _0x35796d=this[_0x20938b(0x254)][_0x20938b(0x219)][_0x20938b(0x1ea)](_0x31f6da),_0x3710ad=this[_0x20938b(0x274)][this[_0x20938b(0x274)][_0x20938b(0x248)]-0x1-this[_0x20938b(0x2a0)]];if(!_0x3710ad||!_0x3710ad[_0x20938b(0x266)][_0x20938b(0x248)])return;const _0x4c22c7=_0x3710ad[_0x20938b(0x266)][_0x3710ad[_0x20938b(0x266)][_0x20938b(0x248)]-0x1],_0x807590=_0x4c22c7[_0x20938b(0x1ff)];_0x4c22c7[_0x20938b(0x2a7)](0x0,_0x20938b(0x22f));let _0x34070b=_0x111e58({'editor':_0x421ab7,'reply':_0x4c22c7,'interaction':_0x3710ad,'groups':_0x807590,'transform':!0x1,'documentCompare':_0x35796d,'documentCompareOptions':{'anchor':_0x421ab7[_0x20938b(0x280)][_0x20938b(0x2a1)](_0x16908a,0x0),'markDeletions':_0x52d59f}});_0x34070b=this[_0x20938b(0x26b)](_0x34070b,_0x58e443);for(const _0x4224fb of _0x34070b)this[_0x20938b(0x278)](_0x58e443,_0x4224fb,_0x421ab7[_0x20938b(0x280)][_0x20938b(0x291)][_0x20938b(0x296)]());const _0x1bd1ec=_0x3710ad[_0x20938b(0x22c)]()[_0x20938b(0x1fc)],_0x5b01b7=_0x421ab7[_0x20938b(0x280)][_0x20938b(0x291)][_0x20938b(0x22d)][_0x20938b(0x2b0)](_0x1bd1ec),_0x501418={'document':_0x421ab7[_0x20938b(0x280)][_0x20938b(0x291)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x14a52d=_0xe67dfb(_0x34070b,_0x5b01b7,_0x501418)[_0x20938b(0x2c2)];_0x421ab7[_0x20938b(0x280)][_0x20938b(0x242)](_0x1adf9f=>{const _0x57f8a6=_0x20938b;if(_0x1adf9f[_0x57f8a6(0x1f6)](_0x421ab7[_0x57f8a6(0x280)][_0x57f8a6(0x291)][_0x57f8a6(0x21a)][_0x57f8a6(0x1fe)]),_0x52d59f)_0x421ab7[_0x57f8a6(0x219)][_0x57f8a6(0x1ea)](_0x57f8a6(0x275))[_0x57f8a6(0x2b5)](_0x14a52d);else{for(const _0x305a8c of _0x14a52d)_0x305a8c[_0x57f8a6(0x233)]=_0x421ab7[_0x57f8a6(0x280)][_0x57f8a6(0x291)][_0x57f8a6(0x1fc)],_0x4ccf13(_0x421ab7,_0x305a8c),_0x1adf9f[_0x57f8a6(0x20c)][_0x57f8a6(0x23e)](_0x305a8c),_0x421ab7[_0x57f8a6(0x280)][_0x57f8a6(0x269)](_0x305a8c);}}),this[_0x20938b(0x254)][_0x20938b(0x219)][_0x20938b(0x1ea)](_0x20938b(0x250))[_0x20938b(0x232)]();}[_0x59a3a4(0x26b)](_0x2615ac,_0x28ba07){const _0x28566b=_0x59a3a4;return _0x2615ac[_0x28566b(0x271)](_0x336045=>{const _0x1c36af=_0x28566b;if(_0x1c36af(0x239)==_0x336045[_0x1c36af(0x28f)]){const _0x2b22d9=_0x336045[_0x1c36af(0x2c5)][_0x1c36af(0x241)];return!_0x28ba07[_0x1c36af(0x268)](_0x2b22d9);}if(_0x336045[_0x1c36af(0x28f)][_0x1c36af(0x23d)](_0x1c36af(0x260))>-0x1){const _0x28cc48=_0x336045[_0x1c36af(0x273)][_0x1c36af(0x2c1)][_0x1c36af(0x241)];return!_0x28ba07[_0x1c36af(0x268)](_0x28cc48);}return!0x0;});}[_0x59a3a4(0x278)](_0x58ac38,_0xdb1752,_0x4bf09c){const _0x1c0da6=_0x59a3a4,_0x203489=_0xdb1752[_0x1c0da6(0x27a)]();for(const _0x26b1c3 in _0xdb1752){const _0x482af3=_0xdb1752[_0x26b1c3];_0x482af3 instanceof _0x10d1c5?_0xdb1752[_0x26b1c3]=new _0x10d1c5(_0x26f01d(_0x482af3[_0x1c0da6(0x2c1)]),_0x26f01d(_0x482af3[_0x1c0da6(0x231)])):_0x482af3 instanceof _0x1e5e9f&&(_0xdb1752[_0x26b1c3]=_0x26f01d(_0x482af3));}if([_0x1c0da6(0x28c),_0x1c0da6(0x24b),_0x1c0da6(0x277),_0x1c0da6(0x25d),_0x1c0da6(0x26c),_0x1c0da6(0x217)][_0x1c0da6(0x27f)](_0x203489[_0x1c0da6(0x28f)])){if(_0x203489[_0x1c0da6(0x252)]=!0x1,_0x203489[_0x1c0da6(0x233)]=null,_0x1c0da6(0x277)==_0x203489[_0x1c0da6(0x28f)]){const _0x29d086=_0x203489[_0x1c0da6(0x259)],_0x568019=_0x203489[_0x1c0da6(0x230)];new _0x30569f(_0x29d086,_0x568019)[_0x1c0da6(0x1f0)]();}else _0x203489[_0x1c0da6(0x1f0)]();}function _0x26f01d(_0x2cd402){const _0x1989d1=_0x1c0da6;if(_0x1989d1(0x255)==_0x2cd402[_0x1989d1(0x299)][_0x1989d1(0x26e)])return _0x2cd402;const _0x53b069=[];let _0x33d3ff=_0x2cd402[_0x1989d1(0x299)];for(let _0x4a6170=0x0;_0x4a6170<_0x2cd402[_0x1989d1(0x2be)][_0x1989d1(0x248)];_0x4a6170++){const _0x599504=_0x58ac38[_0x1989d1(0x1ea)](_0x33d3ff)||0x0;_0x53b069[_0x4a6170]=_0x2cd402[_0x1989d1(0x2be)][_0x4a6170]+_0x599504,_0x33d3ff=_0x33d3ff[_0x1989d1(0x244)](_0x2cd402[_0x1989d1(0x2be)][_0x4a6170]);}return new _0x1e5e9f(_0x4bf09c,_0x53b069,_0x2cd402[_0x1989d1(0x24f)]);}}[_0x59a3a4(0x261)](){const _0x1fa241=_0x59a3a4;if(!this[_0x1fa241(0x2b2)])return;this[_0x1fa241(0x274)][_0x1fa241(0x248)]>0x0&&this[_0x1fa241(0x206)](),this[_0x1fa241(0x2a0)]=0x0,this[_0x1fa241(0x2aa)]=!0x1;const {action:_0x4535d3,content:_0x50d355,version:_0x4d3f56,aiBalloon:_0x4f19bb}=this[_0x1fa241(0x2b2)];this[_0x1fa241(0x249)](),this[_0x1fa241(0x2bf)][_0x1fa241(0x276)](),this[_0x1fa241(0x2bf)][_0x1fa241(0x267)](),this[_0x1fa241(0x2bf)][_0x1fa241(0x23f)](),this[_0x1fa241(0x2bf)][_0x1fa241(0x2af)](this[_0x1fa241(0x274)][_0x1fa241(0x248)],this[_0x1fa241(0x2a0)]),this[_0x1fa241(0x22a)](this[_0x1fa241(0x2bf)]),this[_0x1fa241(0x26a)](),this[_0x1fa241(0x286)](_0x50d355,_0x4d3f56,_0x4f19bb,_0x4535d3)[_0x1fa241(0x247)](_0x2d3cd7=>{const _0x286a72=_0x1fa241;this[_0x286a72(0x2c0)](_0x2d3cd7)||console[_0x286a72(0x1ef)](_0x286a72(0x2b3),_0x2d3cd7);});}[_0x59a3a4(0x2c0)](_0x32773c){const _0x411c85=_0x59a3a4;return!!_0x32773c[_0x411c85(0x213)]&&_0x32773c[_0x411c85(0x213)][_0x411c85(0x2c3)](_0x411c85(0x265));}[_0x59a3a4(0x297)](){const _0x288626=_0x59a3a4;this[_0x288626(0x274)]=[],this[_0x288626(0x2b2)]=void 0x0,this[_0x288626(0x2a0)]=0x0,this[_0x288626(0x2bf)][_0x288626(0x2af)](this[_0x288626(0x274)][_0x288626(0x248)],this[_0x288626(0x2a0)]);}[_0x59a3a4(0x206)](){const _0x462396=_0x59a3a4;this[_0x462396(0x22b)]&&this[_0x462396(0x22b)][_0x462396(0x1fa)](),this[_0x462396(0x25f)][_0x462396(0x295)](),this[_0x462396(0x1f4)]=!0x1,this[_0x462396(0x2b2)]&&this[_0x462396(0x2bf)][_0x462396(0x223)]();}[_0x59a3a4(0x2b4)](){const _0x213eec=_0x59a3a4,_0x456cdd=this[_0x213eec(0x274)][_0x213eec(0x248)];this[_0x213eec(0x2a0)]<_0x456cdd-0x1&&this[_0x213eec(0x20d)](this[_0x213eec(0x2a0)]+0x1);}[_0x59a3a4(0x25c)](){const _0x3e3379=_0x59a3a4;this[_0x3e3379(0x2a0)]>0x0&&this[_0x3e3379(0x20d)](this[_0x3e3379(0x2a0)]-0x1);}async[_0x59a3a4(0x20d)](_0x3d045d){const _0x244c13=_0x59a3a4;if(!this[_0x244c13(0x2b2)])return;this[_0x244c13(0x2a0)]=_0x3d045d;const _0x25a8bb=this[_0x244c13(0x274)][this[_0x244c13(0x274)][_0x244c13(0x248)]-0x1-this[_0x244c13(0x2a0)]];if(!_0x25a8bb)return;if(_0x25a8bb[_0x244c13(0x283)])return this[_0x244c13(0x215)](_0x25a8bb),void this[_0x244c13(0x2bf)][_0x244c13(0x2af)](this[_0x244c13(0x274)][_0x244c13(0x248)],this[_0x244c13(0x2a0)]);if(!_0x25a8bb[_0x244c13(0x266)][_0x244c13(0x248)])return;this[_0x244c13(0x2bf)][_0x244c13(0x1f2)](),this[_0x244c13(0x2b2)]&&this[_0x244c13(0x249)]();const _0x395e77=_0x25a8bb[_0x244c13(0x266)][_0x25a8bb[_0x244c13(0x266)][_0x244c13(0x248)]-0x1];if(_0x395e77){const _0x220abf=this[_0x244c13(0x254)];try{const _0x21b46f=_0x1e82e1({'editor':_0x220abf,'changeGroups':_0x395e77[_0x244c13(0x1ff)],'documentContextContent':_0x395e77[_0x244c13(0x210)],'showDiff':this[_0x244c13(0x2aa)],'trimUnchanged':!0x1});await new Promise(_0x5b057a=>setTimeout(_0x5b057a,0x32)),await this[_0x244c13(0x2bf)][_0x244c13(0x21b)]({'part':_0x21b46f[0x0],'renderingStrategy':_0x244c13(0x2a5),'abortSignal':new AbortController()[_0x244c13(0x29e)]});}catch(_0x37fe61){this[_0x244c13(0x2c0)](_0x37fe61)||console[_0x244c13(0x1ef)](_0x244c13(0x20e),_0x37fe61);}}this[_0x244c13(0x2bf)][_0x244c13(0x2af)](this[_0x244c13(0x274)][_0x244c13(0x248)],this[_0x244c13(0x2a0)]);}[_0x59a3a4(0x208)](){const _0x16154b=_0x59a3a4;this[_0x16154b(0x2bf)][_0x16154b(0x282)](!0x0),this[_0x16154b(0x1f4)]=!0x0;}async[_0x59a3a4(0x215)](_0x5b54d2){const _0x59b0ae=_0x59a3a4,_0x437a9e=_0xdb97bd(this[_0x59b0ae(0x254)][_0x59b0ae(0x290)],_0x59b0ae(0x2a4));this[_0x59b0ae(0x2bf)][_0x59b0ae(0x2ac)](_0x437a9e),_0x5b54d2[_0x59b0ae(0x283)]=!0x0,await this[_0x59b0ae(0x25f)][_0x59b0ae(0x1ec)],this[_0x59b0ae(0x2bf)][_0x59b0ae(0x29a)](),this[_0x59b0ae(0x2bf)][_0x59b0ae(0x29d)](!0x0);}[_0x59a3a4(0x249)](){const _0x260254=_0x59a3a4;this[_0x260254(0x2bf)][_0x260254(0x1f2)](),this[_0x260254(0x2bf)][_0x260254(0x29d)](!0x1);}async[_0x59a3a4(0x227)](){const _0x3c1c38=_0x59a3a4;await this[_0x3c1c38(0x25f)][_0x3c1c38(0x1ec)],this[_0x3c1c38(0x1f4)]=!0x1,this[_0x3c1c38(0x2bf)][_0x3c1c38(0x282)](!0x1);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xe66a22=_0x5deb;(function(_0x2270c5,_0xaed128){const _0x24d25a=_0x5deb,_0x36b963=_0x2270c5();while(!![]){try{const _0x17d5c4=-parseInt(_0x24d25a(0xd6))/0x1*(-parseInt(_0x24d25a(0xeb))/0x2)+-parseInt(_0x24d25a(0xde))/0x3*(parseInt(_0x24d25a(0xda))/0x4)+parseInt(_0x24d25a(0xdc))/0x5*(-parseInt(_0x24d25a(0xef))/0x6)+-parseInt(_0x24d25a(0xd3))/0x7*(parseInt(_0x24d25a(0xea))/0x8)+parseInt(_0x24d25a(0xd5))/0x9+-parseInt(_0x24d25a(0xed))/0xa+parseInt(_0x24d25a(0xd2))/0xb*(parseInt(_0x24d25a(0xd7))/0xc);if(_0x17d5c4===_0xaed128)break;else _0x36b963['push'](_0x36b963['shift']());}catch(_0xe4257c){_0x36b963['push'](_0x36b963['shift']());}}}(_0x5d94,0x3f37e));function _0x5deb(_0x1af03f,_0x47c3a4){const _0x5d9477=_0x5d94();return _0x5deb=function(_0x5debbf,_0x2e0ccf){_0x5debbf=_0x5debbf-0xd2;let _0xb6cbfc=_0x5d9477[_0x5debbf];return _0xb6cbfc;},_0x5deb(_0x1af03f,_0x47c3a4);}import{AIReply as _0x5ac97e}from'../../aicore/model/aireply.js';import{getAttribute as _0x4f6539}from'../../aicore/utils/htmlparser.js';import{uid as _0x212a6a}from'ckeditor5/src/utils.js';import{diffArrays as _0x143be6}from'diff';export class AIActionsReply extends _0x5ac97e{[_0xe66a22(0xdb)](){const _0x28ffe4=_0xe66a22;if(this[_0x28ffe4(0xe5)]=this[_0x28ffe4(0xd4)][_0x28ffe4(0xec)](!0x0),0x0==this[_0x28ffe4(0xe5)][_0x28ffe4(0xe2)][_0x28ffe4(0xf2)])return void(this[_0x28ffe4(0xe9)]=[]);const _0x1fc8db=this[_0x28ffe4(0xdd)][_0x28ffe4(0xe6)][_0x28ffe4(0xe7)](_0x4bec5c=>({'node':_0x4bec5c,'id':_0x4f6539(_0x4bec5c,_0x28ffe4(0xe1))})),_0x35fcb8=this[_0x28ffe4(0xe5)][_0x28ffe4(0xe6)][_0x28ffe4(0xe7)](_0x5775b5=>({'node':_0x5775b5,'id':_0x4f6539(_0x5775b5,_0x28ffe4(0xe1))||_0x212a6a()})),_0x1ee516=_0x143be6(_0x1fc8db,_0x35fcb8,{'comparator':(_0x31cbc7,_0x208dc6)=>_0x31cbc7['id']==_0x208dc6['id'],'oneChangePerToken':!0x0});if(!this[_0x28ffe4(0xd8)]){for(;_0x1ee516[_0x28ffe4(0xf2)]&&_0x1ee516[_0x1ee516[_0x28ffe4(0xf2)]-0x1][_0x28ffe4(0xf1)];)_0x1ee516[_0x28ffe4(0xd9)]();}const _0x8feeea=_0x1ee516[_0x28ffe4(0xe7)](_0x3a5a9d=>{const _0x670c5f=_0x28ffe4,_0x35cdef=_0x3a5a9d[_0x670c5f(0xe4)]?_0x670c5f(0xe3):_0x3a5a9d[_0x670c5f(0xf1)]?_0x670c5f(0xf1):_0x670c5f(0xdf);return{'node':_0x3a5a9d[_0x670c5f(0xee)][0x0][_0x670c5f(0xf0)],'type':_0x35cdef,'id':_0x3a5a9d[_0x670c5f(0xee)][0x0]['id']};});this[_0x28ffe4(0xe9)]=[{'changes':_0x8feeea,'state':_0x28ffe4(0xe8),'index':0x0}];}[_0xe66a22(0xe0)](_0x26b54e,_0x2b1931){return _0x2b1931;}}function _0x5d94(){const _0x227103=['30iiBbOx','node','removed','length','66oZGMDO','18137DUXsMZ','parsedContent','446076YLJcnu','231683KZCFTt','1813824ULFgAj','isDone','pop','1780iLlgGZ','updateChangeGroups','6205wIQebh','documentContextContent','2649pZglew','modified','_getDifferentChangeGroups','data-id','childNodes','new','added','parsedMergedContent','children','map','pending','changeGroups','848sLLfox','2ISaVsG','cloneNode','2554310KNosKH','value'];_0x5d94=function(){return _0x227103;};return _0x5d94();}
23
+ const _0x399d13=_0x33b7;(function(_0x28f9e2,_0x57b204){const _0x4624a9=_0x33b7,_0xe6ff1b=_0x28f9e2();while(!![]){try{const _0x167618=parseInt(_0x4624a9(0xb4))/0x1*(parseInt(_0x4624a9(0xaf))/0x2)+parseInt(_0x4624a9(0xbf))/0x3*(-parseInt(_0x4624a9(0xac))/0x4)+-parseInt(_0x4624a9(0xc3))/0x5+-parseInt(_0x4624a9(0xbd))/0x6+parseInt(_0x4624a9(0xc5))/0x7*(parseInt(_0x4624a9(0xad))/0x8)+parseInt(_0x4624a9(0xaa))/0x9+-parseInt(_0x4624a9(0xb8))/0xa*(-parseInt(_0x4624a9(0xc6))/0xb);if(_0x167618===_0x57b204)break;else _0xe6ff1b['push'](_0xe6ff1b['shift']());}catch(_0x26abb1){_0xe6ff1b['push'](_0xe6ff1b['shift']());}}}(_0x5431,0xc21ec));import{AIReply as _0x254f7f}from'../../aicore/model/aireply.js';import{getAttribute as _0x22a7a0}from'../../aicore/utils/htmlparser.js';import{uid as _0x580231}from'ckeditor5/src/utils.js';function _0x33b7(_0x35d5a6,_0x48a13c){const _0x54318e=_0x5431();return _0x33b7=function(_0x33b726,_0x3a8f4f){_0x33b726=_0x33b726-0xa7;let _0x3bd81c=_0x54318e[_0x33b726];return _0x3bd81c;},_0x33b7(_0x35d5a6,_0x48a13c);}import{diffArrays as _0xaf6a51}from'diff';export class AIActionsReply extends _0x254f7f{[_0x399d13(0xba)](){const _0x180610=_0x399d13;if(this[_0x180610(0xb3)]=this[_0x180610(0xc0)][_0x180610(0xb6)](!0x0),0x0==this[_0x180610(0xb3)][_0x180610(0xbb)][_0x180610(0xa7)])return void(this[_0x180610(0xbc)]=[]);const _0x294d0b=this[_0x180610(0xb0)][_0x180610(0xb5)][_0x180610(0xae)](_0x145959=>({'node':_0x145959,'id':_0x22a7a0(_0x145959,_0x180610(0xb2))})),_0x465846=this[_0x180610(0xb3)][_0x180610(0xb5)][_0x180610(0xae)](_0x2dc7c2=>({'node':_0x2dc7c2,'id':_0x22a7a0(_0x2dc7c2,_0x180610(0xb2))||_0x580231()})),_0x139d80=_0xaf6a51(_0x294d0b,_0x465846,{'comparator':(_0x4f0dda,_0x216c73)=>_0x4f0dda['id']==_0x216c73['id'],'oneChangePerToken':!0x0});if(!this[_0x180610(0xc2)]){for(;_0x139d80[_0x180610(0xa7)]&&_0x139d80[_0x139d80[_0x180610(0xa7)]-0x1][_0x180610(0xc1)];)_0x139d80[_0x180610(0xa8)]();}const _0x2b13bd=_0x139d80[_0x180610(0xae)](_0x341222=>{const _0x345628=_0x180610,_0x37342e=_0x341222[_0x345628(0xab)]?_0x345628(0xc4):_0x341222[_0x345628(0xc1)]?_0x345628(0xc1):_0x345628(0xb9);return{'node':_0x341222[_0x345628(0xa9)][0x0][_0x345628(0xb7)],'type':_0x37342e,'id':_0x341222[_0x345628(0xa9)][0x0]['id']};});this[_0x180610(0xbc)]=[{'changes':_0x2b13bd,'state':_0x180610(0xbe),'index':0x0}];}[_0x399d13(0xb1)](_0x479efb,_0x55ca81){return _0x55ca81;}}function _0x5431(){const _0x285809=['208061AxpXcz','385bnujQr','length','pop','value','3905856JYFJWu','added','3120hEHDGT','392kdvlwu','map','587734syfiTz','documentContextContent','_getDifferentChangeGroups','data-id','parsedMergedContent','2aUBlPM','children','cloneNode','node','491430yPdDzU','modified','updateChangeGroups','childNodes','changeGroups','9482286slEzoP','pending','2781RHCuhw','parsedContent','removed','isDone','5497965tRYrpo','new'];_0x5431=function(){return _0x285809;};return _0x5431();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x31d1b9=_0x5ee4;(function(_0x280d92,_0x394891){var _0x378e2d=_0x5ee4,_0x4c69fd=_0x280d92();while(!![]){try{var _0x321e16=-parseInt(_0x378e2d(0xc0))/0x1*(-parseInt(_0x378e2d(0xc7))/0x2)+parseInt(_0x378e2d(0xba))/0x3+-parseInt(_0x378e2d(0xc6))/0x4+-parseInt(_0x378e2d(0xc1))/0x5+-parseInt(_0x378e2d(0xcb))/0x6*(-parseInt(_0x378e2d(0xb9))/0x7)+parseInt(_0x378e2d(0xc3))/0x8*(-parseInt(_0x378e2d(0xbf))/0x9)+parseInt(_0x378e2d(0xc2))/0xa*(parseInt(_0x378e2d(0xc9))/0xb);if(_0x321e16===_0x394891)break;else _0x4c69fd['push'](_0x4c69fd['shift']());}catch(_0x441fee){_0x4c69fd['push'](_0x4c69fd['shift']());}}}(_0x56a7,0x5d3d1));import{Plugin as _0x4cea81}from'ckeditor5/src/core.js';function _0x5ee4(_0x357c76,_0x4402a2){var _0x56a77b=_0x56a7();return _0x5ee4=function(_0x5ee486,_0x4cb18a){_0x5ee486=_0x5ee486-0xb8;var _0x393bbf=_0x56a77b[_0x5ee486];return _0x393bbf;},_0x5ee4(_0x357c76,_0x4402a2);}import{CKEditorError as _0x51365e}from'ckeditor5/src/utils.js';export class AIAdapter extends _0x4cea81{static get[_0x31d1b9(0xbc)](){var _0x362cd0=_0x31d1b9;return _0x362cd0(0xbe);}static get[_0x31d1b9(0xc4)](){return!0x0;}static get[_0x31d1b9(0xc8)](){return!0x0;}[_0x31d1b9(0xbd)](){var _0xff0f2d=_0x31d1b9;if(!this[_0xff0f2d(0xc5)])throw new _0x51365e(_0xff0f2d(0xb8),null);}}function _0x56a7(){var _0x1476b6=['102MOrWtb','aiadapter-text-adapter-not-set','61873nvibsA','2011431qkfQgG','name','pluginName','afterInit','AIAdapter','180GnWGjV','6157oqnCLM','992110fGqeAQ','1300uGIqNH','111952Acwsmu','isOfficialPlugin','textAdapter','2556052twLzbi','100SmIgtQ','isPremiumPlugin','31361ysxttX','AIRequestError'];_0x56a7=function(){return _0x1476b6;};return _0x56a7();}export class AIRequestError extends Error{constructor(_0x4af974){var _0x659086=_0x31d1b9;super(_0x4af974),this[_0x659086(0xbb)]=_0x659086(0xca);}}
23
+ function _0x5cb4(){var _0x58052b=['15069610HcCnWr','isPremiumPlugin','isOfficialPlugin','aiadapter-text-adapter-not-set','7oNcMHK','afterInit','textAdapter','5404064oAPHEe','2419860MJStrd','167209wCUkZB','pluginName','6CNrJkc','3554604dMtqnK','4548eLdSzu','AIRequestError','name','AIAdapter','2116feTsmn','7816716qcXcsI'];_0x5cb4=function(){return _0x58052b;};return _0x5cb4();}function _0x48e4(_0x16bddd,_0x3aab9a){var _0x5cb4ad=_0x5cb4();return _0x48e4=function(_0x48e478,_0x3093e2){_0x48e478=_0x48e478-0x1b1;var _0x2b80a8=_0x5cb4ad[_0x48e478];return _0x2b80a8;},_0x48e4(_0x16bddd,_0x3aab9a);}var _0x1013e8=_0x48e4;(function(_0x338965,_0x1278f4){var _0x58d32f=_0x48e4,_0x1bbcc3=_0x338965();while(!![]){try{var _0x3d4f27=parseInt(_0x58d32f(0x1bd))/0x1*(-parseInt(_0x58d32f(0x1bf))/0x2)+-parseInt(_0x58d32f(0x1c1))/0x3*(-parseInt(_0x58d32f(0x1b2))/0x4)+-parseInt(_0x58d32f(0x1bc))/0x5+parseInt(_0x58d32f(0x1c0))/0x6+parseInt(_0x58d32f(0x1b8))/0x7*(parseInt(_0x58d32f(0x1bb))/0x8)+parseInt(_0x58d32f(0x1b3))/0x9+-parseInt(_0x58d32f(0x1b4))/0xa;if(_0x3d4f27===_0x1278f4)break;else _0x1bbcc3['push'](_0x1bbcc3['shift']());}catch(_0x2bd210){_0x1bbcc3['push'](_0x1bbcc3['shift']());}}}(_0x5cb4,0x6cdae));import{Plugin as _0x31fbeb}from'ckeditor5/src/core.js';import{CKEditorError as _0x5cf47c}from'ckeditor5/src/utils.js';export class AIAdapter extends _0x31fbeb{static get[_0x1013e8(0x1be)](){var _0x32869f=_0x1013e8;return _0x32869f(0x1b1);}static get[_0x1013e8(0x1b6)](){return!0x0;}static get[_0x1013e8(0x1b5)](){return!0x0;}[_0x1013e8(0x1b9)](){var _0x51d571=_0x1013e8;if(!this[_0x51d571(0x1ba)])throw new _0x5cf47c(_0x51d571(0x1b7),null);}}export class AIRequestError extends Error{constructor(_0x4dcbe0){var _0x2bcd5c=_0x1013e8;super(_0x4dcbe0),this[_0x2bcd5c(0x1c3)]=_0x2bcd5c(0x1c2);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x51ff44=_0x48f7;(function(_0x275d24,_0x8e3a1b){const _0x3c468e=_0x48f7,_0x5f0cc7=_0x275d24();while(!![]){try{const _0xa1d912=-parseInt(_0x3c468e(0xfa))/0x1+-parseInt(_0x3c468e(0x113))/0x2+-parseInt(_0x3c468e(0x11b))/0x3*(-parseInt(_0x3c468e(0x108))/0x4)+-parseInt(_0x3c468e(0xff))/0x5*(parseInt(_0x3c468e(0x10c))/0x6)+parseInt(_0x3c468e(0xfd))/0x7+parseInt(_0x3c468e(0x10f))/0x8*(parseInt(_0x3c468e(0x117))/0x9)+-parseInt(_0x3c468e(0xf9))/0xa*(-parseInt(_0x3c468e(0x114))/0xb);if(_0xa1d912===_0x8e3a1b)break;else _0x5f0cc7['push'](_0x5f0cc7['shift']());}catch(_0x2cbf6d){_0x5f0cc7['push'](_0x5f0cc7['shift']());}}}(_0x5054,0xd5a8f));import{Plugin as _0x2a1b0f}from'ckeditor5/src/core.js';function _0x48f7(_0xdf7046,_0x32df62){const _0x50540f=_0x5054();return _0x48f7=function(_0x48f733,_0x3326c4){_0x48f733=_0x48f733-0xf6;let _0x1830a7=_0x50540f[_0x48f733];return _0x1830a7;},_0x48f7(_0xdf7046,_0x32df62);}import{CKEditorError as _0x517834}from'ckeditor5/src/utils.js';import{AIAdapter as _0x2d9c6e,AIRequestError as _0x55f909}from'./aiadapter.js';function _0x5054(){const _0x1fe143=['24uTevNe','application/json','AI_ERROR_GET_HEADERS','reject','853084cTqpHE','65021lVHWqd','signal','object','109935bZYxig','AbortError','textAdapter','makeRequest','412155xXqqVF','plugins','locale','abortController','4790EhJpqV','1417531kXbdIh','requires','abort','3552885YDNjdV','aitextadapter-send-request-failed','25KvlPwB','assign','get','name','AI_ERROR_GET_PARAMETERS','_prepareRequestHeaders','_prepareRequestParameters','aborted','catch','20ORzvbO','sendRequest','init','resolve','1611924budeYb','editor','error'];_0x5054=function(){return _0x1fe143;};return _0x5054();}import{getTranslation as _0x30d1db}from'../utils/common-translations.js';export class AITextAdapter extends _0x2a1b0f{[_0x51ff44(0xf8)];static get[_0x51ff44(0xfb)](){return[_0x2d9c6e];}constructor(_0x2f4aa3){const _0x10a0a8=_0x51ff44;super(_0x2f4aa3),this[_0x10a0a8(0xf8)]=new AbortController();}[_0x51ff44(0x10a)](){const _0x48c846=_0x51ff44;this[_0x48c846(0x10d)][_0x48c846(0xf6)][_0x48c846(0x101)](_0x2d9c6e)[_0x48c846(0x119)]=this;}[_0x51ff44(0xfc)](){const _0x4a036e=_0x51ff44;this[_0x4a036e(0xf8)][_0x4a036e(0x115)][_0x4a036e(0x106)]||(this[_0x4a036e(0xf8)][_0x4a036e(0xfc)](),this[_0x4a036e(0xf8)]=new AbortController());}async[_0x51ff44(0x11a)](_0x578530){const _0xbeea84=_0x51ff44;return this[_0xbeea84(0x109)](_0x578530)[_0xbeea84(0x107)](_0x43c6c6=>{const _0x5786dc=_0xbeea84;if(_0x43c6c6 instanceof _0x55f909)return Promise[_0x5786dc(0x112)](_0x43c6c6);if(_0x5786dc(0x118)==_0x43c6c6[_0x5786dc(0x102)])return Promise[_0x5786dc(0x10b)]();throw console[_0x5786dc(0x10e)](_0x43c6c6),new _0x517834(_0x5786dc(0xfe),null);});}async[_0x51ff44(0x104)](_0x4ea5cc,_0x503926){const _0x38d21d=_0x51ff44,_0x26be26=this[_0x38d21d(0x10d)][_0x38d21d(0xf7)],_0x3de93a={'Content-Type':_0x38d21d(0x110)};if(_0x38d21d(0x116)==typeof _0x4ea5cc)Object[_0x38d21d(0x100)](_0x3de93a,_0x4ea5cc);else{if(_0x4ea5cc)try{const _0x2e239b=await _0x4ea5cc(_0x503926);Object[_0x38d21d(0x100)](_0x3de93a,_0x2e239b);}catch{return Promise[_0x38d21d(0x112)](new _0x55f909(_0x30d1db(_0x26be26,_0x38d21d(0x111))));}}return _0x3de93a;}async[_0x51ff44(0x105)](_0x1d01a0,_0xb5736c){const _0x415cab=_0x51ff44,_0x44a41f=this[_0x415cab(0x10d)][_0x415cab(0xf7)];if(_0x415cab(0x116)==typeof _0x1d01a0)return _0x1d01a0;try{return await _0x1d01a0(_0xb5736c);}catch{return Promise[_0x415cab(0x112)](new _0x55f909(_0x30d1db(_0x44a41f,_0x415cab(0x103))));}}}
23
+ function _0x35db(){const _0x55cd75=['aitextadapter-send-request-failed','_prepareRequestParameters','aborted','requires','abortController','object','1234852QmvDMf','AbortError','5552028QomTUn','assign','30EcMPIx','AI_ERROR_GET_HEADERS','8JlzJAI','editor','abort','sendRequest','1992770JXJxdP','name','textAdapter','2172636ZXugZW','locale','234699djWVPU','application/json','reject','init','129912tipBNi','resolve','AI_ERROR_GET_PARAMETERS','get','539rilJqo','makeRequest','216334ODgeOg','error','signal','plugins','catch','_prepareRequestHeaders'];_0x35db=function(){return _0x55cd75;};return _0x35db();}const _0x1b79f6=_0x5ac4;(function(_0x4f3fb2,_0x5cdb42){const _0x4d273e=_0x5ac4,_0x3bf912=_0x4f3fb2();while(!![]){try{const _0x10dc4b=-parseInt(_0x4d273e(0xab))/0x1*(parseInt(_0x4d273e(0xbd))/0x2)+parseInt(_0x4d273e(0xc6))/0x3+-parseInt(_0x4d273e(0xb7))/0x4+parseInt(_0x4d273e(0xc1))/0x5+parseInt(_0x4d273e(0xb9))/0x6+-parseInt(_0x4d273e(0xa9))/0x7*(-parseInt(_0x4d273e(0xa5))/0x8)+-parseInt(_0x4d273e(0xc4))/0x9*(parseInt(_0x4d273e(0xbb))/0xa);if(_0x10dc4b===_0x5cdb42)break;else _0x3bf912['push'](_0x3bf912['shift']());}catch(_0x48de8b){_0x3bf912['push'](_0x3bf912['shift']());}}}(_0x35db,0xb825b));function _0x5ac4(_0x57211b,_0x486b66){const _0x35dbd5=_0x35db();return _0x5ac4=function(_0x5ac4b4,_0x189dca){_0x5ac4b4=_0x5ac4b4-0xa4;let _0x5d09ed=_0x35dbd5[_0x5ac4b4];return _0x5d09ed;},_0x5ac4(_0x57211b,_0x486b66);}import{Plugin as _0x146f04}from'ckeditor5/src/core.js';import{CKEditorError as _0x1df7f7}from'ckeditor5/src/utils.js';import{AIAdapter as _0x37c3c0,AIRequestError as _0x3342de}from'./aiadapter.js';import{getTranslation as _0x483c7b}from'../utils/common-translations.js';export class AITextAdapter extends _0x146f04{[_0x1b79f6(0xb5)];static get[_0x1b79f6(0xb4)](){return[_0x37c3c0];}constructor(_0x423b1f){const _0x4201b4=_0x1b79f6;super(_0x423b1f),this[_0x4201b4(0xb5)]=new AbortController();}[_0x1b79f6(0xa4)](){const _0x1c0b51=_0x1b79f6;this[_0x1c0b51(0xbe)][_0x1c0b51(0xae)][_0x1c0b51(0xa8)](_0x37c3c0)[_0x1c0b51(0xc3)]=this;}[_0x1b79f6(0xbf)](){const _0x25cfe5=_0x1b79f6;this[_0x25cfe5(0xb5)][_0x25cfe5(0xad)][_0x25cfe5(0xb3)]||(this[_0x25cfe5(0xb5)][_0x25cfe5(0xbf)](),this[_0x25cfe5(0xb5)]=new AbortController());}async[_0x1b79f6(0xaa)](_0x353af8){const _0xf037d0=_0x1b79f6;return this[_0xf037d0(0xc0)](_0x353af8)[_0xf037d0(0xaf)](_0x52c02c=>{const _0x2cd043=_0xf037d0;if(_0x52c02c instanceof _0x3342de)return Promise[_0x2cd043(0xc8)](_0x52c02c);if(_0x2cd043(0xb8)==_0x52c02c[_0x2cd043(0xc2)])return Promise[_0x2cd043(0xa6)]();throw console[_0x2cd043(0xac)](_0x52c02c),new _0x1df7f7(_0x2cd043(0xb1),null);});}async[_0x1b79f6(0xb0)](_0x25cd46,_0x1e4946){const _0x4ae6c8=_0x1b79f6,_0x430d8a=this[_0x4ae6c8(0xbe)][_0x4ae6c8(0xc5)],_0x5f2167={'Content-Type':_0x4ae6c8(0xc7)};if(_0x4ae6c8(0xb6)==typeof _0x25cd46)Object[_0x4ae6c8(0xba)](_0x5f2167,_0x25cd46);else{if(_0x25cd46)try{const _0x179c8e=await _0x25cd46(_0x1e4946);Object[_0x4ae6c8(0xba)](_0x5f2167,_0x179c8e);}catch{return Promise[_0x4ae6c8(0xc8)](new _0x3342de(_0x483c7b(_0x430d8a,_0x4ae6c8(0xbc))));}}return _0x5f2167;}async[_0x1b79f6(0xb2)](_0x3e26b8,_0x504a3e){const _0x50ebd8=_0x1b79f6,_0x393dbe=this[_0x50ebd8(0xbe)][_0x50ebd8(0xc5)];if(_0x50ebd8(0xb6)==typeof _0x3e26b8)return _0x3e26b8;try{return await _0x3e26b8(_0x504a3e);}catch{return Promise[_0x50ebd8(0xc8)](new _0x3342de(_0x483c7b(_0x393dbe,_0x50ebd8(0xa7))));}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x38a7(_0x59b4bc,_0x3e697a){const _0x35514d=_0x3551();return _0x38a7=function(_0x38a737,_0x32b173){_0x38a737=_0x38a737-0x142;let _0x5accad=_0x35514d[_0x38a737];return _0x5accad;},_0x38a7(_0x59b4bc,_0x3e697a);}const _0x4e0ce9=_0x38a7;(function(_0x4edf56,_0x2b9421){const _0x10aae7=_0x38a7,_0x28821b=_0x4edf56();while(!![]){try{const _0x11c789=parseInt(_0x10aae7(0x15f))/0x1*(parseInt(_0x10aae7(0x154))/0x2)+-parseInt(_0x10aae7(0x17c))/0x3*(parseInt(_0x10aae7(0x172))/0x4)+parseInt(_0x10aae7(0x162))/0x5*(parseInt(_0x10aae7(0x183))/0x6)+-parseInt(_0x10aae7(0x177))/0x7*(-parseInt(_0x10aae7(0x14a))/0x8)+parseInt(_0x10aae7(0x191))/0x9+-parseInt(_0x10aae7(0x158))/0xa*(parseInt(_0x10aae7(0x16d))/0xb)+-parseInt(_0x10aae7(0x174))/0xc;if(_0x11c789===_0x2b9421)break;else _0x28821b['push'](_0x28821b['shift']());}catch(_0x2ee89c){_0x28821b['push'](_0x28821b['shift']());}}}(_0x3551,0x3afcf));import{AITextAdapter as _0x401510}from'./aitextadapter.js';import{AIRequestError as _0x1bbb57}from'./aiadapter.js';import{BedrockRuntimeClient as _0x20c795,InvokeModelCommand as _0x106dd8,InvokeModelWithResponseStreamCommand as _0xca8d7f}from'@aws-sdk/client-bedrock-runtime';function _0x3551(){const _0x2b5b2c=['_bedrockClientConfig','decode','Instruction:\x0a','3004524vwuzGQ','get','sendRequest','ai21.j2','_getGeneratedText','resolve','_prepareRequestParameters','bedrock-2023-05-31','getReader','getModelFamily','bytes','1360dxQWPy','preparePrompt','test','AI_ERROR_UNSUPPORTED_MODEL','data','ai.assistant.adapter.aws.requestParameters','cohere.command','application/json','config','split','2906nzQtZr','abortController','_processProxyRequest','generation','250cpyJOW','stringify','completions','AWSTextAdapter','_apiUrl','_prepareRequestHeaders','\x0a<</SYS>>\x0a[INST]\x0a','53djMmwB','editor','json','30jgrEbQ','completion','_requestParameters','Human:\x0a','chunk','utf-8','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.','\x0a[/INST]','ai.assistant.adapter.aws.apiUrl','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','\x0a\x0aAssistant:','123618ABbQBM','ai.assistant.adapter.aws.bedrockClientConfig','_readStreamableResponse','anthropic.claude-v2','length','8488KKjlIe','_readStaticResponse','136800JtYIKC','text','_processAWSRequest','6587SEzefP','parse','_readAsyncIterableResponse','<<SYS>>\x0a','send','678HSqVYU','filter','read','generations','body','join','define','442722yOztMS','meta.llama','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.','anthropic.claude','signal','_requestHeaders','pluginName','ai.assistant.adapter.aws.requestHeaders','map','locale','POST'];_0x3551=function(){return _0x2b5b2c;};return _0x3551();}import{getTranslation as _0x39edbb}from'../utils/common-translations.js';export class AWSTextAdapter extends _0x401510{[_0x4e0ce9(0x15c)];[_0x4e0ce9(0x188)];[_0x4e0ce9(0x18e)];[_0x4e0ce9(0x164)];static get[_0x4e0ce9(0x189)](){const _0x3d0305=_0x4e0ce9;return _0x3d0305(0x15b);}constructor(_0x7986ab){const _0x3ac54a=_0x4e0ce9;super(_0x7986ab),_0x7986ab[_0x3ac54a(0x152)][_0x3ac54a(0x192)](_0x3ac54a(0x14f))||_0x7986ab[_0x3ac54a(0x152)][_0x3ac54a(0x182)](_0x3ac54a(0x14f),{'model':_0x3ac54a(0x170),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x3ac54a(0x146),'stream':!0x0}),this[_0x3ac54a(0x15c)]=_0x7986ab[_0x3ac54a(0x152)][_0x3ac54a(0x192)](_0x3ac54a(0x16a)),this[_0x3ac54a(0x18e)]=_0x7986ab[_0x3ac54a(0x152)][_0x3ac54a(0x192)](_0x3ac54a(0x16e)),this[_0x3ac54a(0x188)]=_0x7986ab[_0x3ac54a(0x152)][_0x3ac54a(0x192)](_0x3ac54a(0x18a)),this[_0x3ac54a(0x164)]=_0x7986ab[_0x3ac54a(0x152)][_0x3ac54a(0x192)](_0x3ac54a(0x14f));}async[_0x4e0ce9(0x193)]({query:_0x2a69b8,context:_0x298643,onData:_0x1c62c6,actionId:_0x2f8798}){const _0x19d17b=_0x4e0ce9,{model:_0x10d713,stream:_0x2fc036,..._0x483b61}=await this[_0x19d17b(0x145)](this[_0x19d17b(0x164)],_0x2f8798),_0x58092d={'prompt':await this[_0x19d17b(0x14b)](_0x2a69b8,_0x298643,_0x10d713,_0x2f8798),..._0x483b61};this[_0x19d17b(0x15c)]?await this[_0x19d17b(0x156)](_0x58092d,_0x10d713,_0x2fc036,_0x1c62c6,_0x2f8798):await this[_0x19d17b(0x176)](_0x58092d,_0x10d713,_0x2fc036,_0x1c62c6);}async[_0x4e0ce9(0x14b)](_0x3ab9e0,_0x20ca79,_0x3d333b,_0x2a8eef){const _0x13b5cd=_0x4e0ce9;let _0x3c827f,_0x45e639;return _0x20ca79?(_0x3c827f=_0x13b5cd(0x185),_0x45e639=_0x13b5cd(0x190)+_0x3ab9e0+_0x13b5cd(0x16b)+_0x20ca79):(_0x3c827f=_0x13b5cd(0x168),_0x45e639=_0x3ab9e0),_0x13b5cd(0x184)==this[_0x13b5cd(0x148)](_0x3d333b)?_0x13b5cd(0x17a)+_0x3c827f+_0x13b5cd(0x15e)+_0x45e639+_0x13b5cd(0x169):_0x13b5cd(0x165)+_0x3c827f+'\x0a'+_0x45e639+_0x13b5cd(0x16c);}[_0x4e0ce9(0x148)](_0x6ef84a){const _0xcfc058=_0x4e0ce9;if(/^anthropic\.claude/[_0xcfc058(0x14c)](_0x6ef84a))return _0xcfc058(0x186);if(/^ai21\.j2/[_0xcfc058(0x14c)](_0x6ef84a))return _0xcfc058(0x142);if(/^cohere\.command/[_0xcfc058(0x14c)](_0x6ef84a))return _0xcfc058(0x150);if(/^meta\.llama/[_0xcfc058(0x14c)](_0x6ef84a))return _0xcfc058(0x184);throw new _0x1bbb57(_0x39edbb(this[_0xcfc058(0x160)][_0xcfc058(0x18c)],_0xcfc058(0x14d),_0x6ef84a));}async[_0x4e0ce9(0x156)](_0x58feaa,_0x5af785,_0x44931e,_0x40626c,_0x3bc88a){const _0x5de57d=_0x4e0ce9,_0x14a673={'method':_0x5de57d(0x18d),'headers':await this[_0x5de57d(0x15d)](this[_0x5de57d(0x188)],_0x3bc88a),'body':JSON[_0x5de57d(0x159)]({..._0x58feaa,'model':_0x5af785,'stream':_0x44931e}),'signal':this[_0x5de57d(0x155)][_0x5de57d(0x187)]},_0x5e2961=await fetch(this[_0x5de57d(0x15c)],_0x14a673);_0x44931e?await this[_0x5de57d(0x16f)](_0x5e2961,_0x5af785,_0x40626c):await this[_0x5de57d(0x173)](_0x5e2961,_0x5af785,_0x40626c);}async[_0x4e0ce9(0x176)](_0x4f89fb,_0x4a1a9c,_0x5bd11e,_0x52283f){const _0x3d987a=_0x4e0ce9,_0x4e708e=new _0x20c795(this[_0x3d987a(0x18e)]),_0x7fe69f={'body':JSON[_0x3d987a(0x159)](_0x4f89fb),'contentType':_0x3d987a(0x151),'accept':_0x3d987a(0x151),'modelId':_0x4a1a9c};let _0x57d043;if(_0x5bd11e){const _0x2e29dd=new _0xca8d7f(_0x7fe69f);_0x57d043=await _0x4e708e[_0x3d987a(0x17b)](_0x2e29dd,{'abortSignal':this[_0x3d987a(0x155)][_0x3d987a(0x187)]}),await this[_0x3d987a(0x179)](_0x57d043,_0x4a1a9c,_0x52283f);}else{const _0xde9d31=new _0x106dd8(_0x7fe69f);_0x57d043=await _0x4e708e[_0x3d987a(0x17b)](_0xde9d31,{'abortSignal':this[_0x3d987a(0x155)][_0x3d987a(0x187)]}),await this[_0x3d987a(0x173)](_0x57d043,_0x4a1a9c,_0x52283f);}}async[_0x4e0ce9(0x179)](_0x321ce8,_0x57f60c,_0x43149c){const _0x23d6d8=_0x4e0ce9,_0x39958e=_0x321ce8[_0x23d6d8(0x180)],_0x34d40b=new TextDecoder(_0x23d6d8(0x167));let _0x554194='';for await(const _0x4a4d5d of _0x39958e)if(_0x4a4d5d[_0x23d6d8(0x166)]){const _0x351ef4=_0x34d40b[_0x23d6d8(0x18f)](_0x4a4d5d[_0x23d6d8(0x166)][_0x23d6d8(0x149)]),_0x15e76f=JSON[_0x23d6d8(0x178)](_0x351ef4);_0x554194+=this[_0x23d6d8(0x143)](_0x15e76f,_0x57f60c),_0x43149c(_0x554194);}return Promise[_0x23d6d8(0x144)]();}async[_0x4e0ce9(0x16f)](_0x896dc8,_0x21baff,_0x53381c){const _0x3cd27e=_0x4e0ce9,_0x500ab7=_0x896dc8[_0x3cd27e(0x180)],_0x10d519=new TextDecoder(_0x3cd27e(0x167)),_0x3fdacc=_0x500ab7[_0x3cd27e(0x147)]();let _0x808e20='',_0x4abeba='',_0x493319=!0x1;for(;!_0x493319;){const {done:_0x5b2695,value:_0x1a073f}=await _0x3fdacc[_0x3cd27e(0x17e)]();if(_0x493319=_0x5b2695,_0x493319)break;const _0x3a4a80=(_0x808e20+_0x10d519[_0x3cd27e(0x18f)](_0x1a073f))[_0x3cd27e(0x153)]('\x0a')[_0x3cd27e(0x18b)](_0x4b0a64=>{const _0x50efe7=_0x3cd27e;try{return _0x808e20='',JSON[_0x50efe7(0x178)](_0x4b0a64);}catch{return _0x808e20=_0x4b0a64,null;}})[_0x3cd27e(0x17d)](_0x5ebeed=>null!==_0x5ebeed);_0x3a4a80[_0x3cd27e(0x171)]&&(_0x4abeba+=_0x3a4a80[_0x3cd27e(0x18b)](_0x3a01d9=>this[_0x3cd27e(0x143)](_0x3a01d9,_0x21baff))[_0x3cd27e(0x181)](''),_0x53381c(_0x4abeba));}return Promise[_0x3cd27e(0x144)]();}async[_0x4e0ce9(0x173)](_0x1c967c,_0x320560,_0x5425d9){const _0x40317d=_0x4e0ce9;let _0x36f600;return _0x36f600=_0x1c967c instanceof Response?await _0x1c967c[_0x40317d(0x161)]():JSON[_0x40317d(0x178)](new TextDecoder(_0x40317d(0x167))[_0x40317d(0x18f)](_0x1c967c[_0x40317d(0x180)])),(_0x5425d9(this[_0x40317d(0x143)](_0x36f600,_0x320560)),Promise[_0x40317d(0x144)]());}[_0x4e0ce9(0x143)](_0x21a326,_0x1ab4dc){const _0x4251f7=_0x4e0ce9;switch(this[_0x4251f7(0x148)](_0x1ab4dc)){case _0x4251f7(0x186):return _0x21a326[_0x4251f7(0x163)];case _0x4251f7(0x142):return _0x21a326[_0x4251f7(0x15a)][0x0][_0x4251f7(0x14e)][_0x4251f7(0x175)];case _0x4251f7(0x150):return _0x21a326[_0x4251f7(0x17f)][0x0][_0x4251f7(0x175)];case _0x4251f7(0x184):return _0x21a326[_0x4251f7(0x157)];}}}
23
+ function _0x4709(_0x1b9b8d,_0x26e6e4){const _0x4c5931=_0x4c59();return _0x4709=function(_0x4709c9,_0x143ef3){_0x4709c9=_0x4709c9-0x106;let _0x5aa122=_0x4c5931[_0x4709c9];return _0x5aa122;},_0x4709(_0x1b9b8d,_0x26e6e4);}const _0x4430c0=_0x4709;(function(_0x2474f5,_0x33adf7){const _0x2146c3=_0x4709,_0x4cf140=_0x2474f5();while(!![]){try{const _0x52aae0=parseInt(_0x2146c3(0x134))/0x1*(-parseInt(_0x2146c3(0x148))/0x2)+-parseInt(_0x2146c3(0x129))/0x3*(-parseInt(_0x2146c3(0x106))/0x4)+parseInt(_0x2146c3(0x10a))/0x5+-parseInt(_0x2146c3(0x126))/0x6*(parseInt(_0x2146c3(0x13c))/0x7)+-parseInt(_0x2146c3(0x128))/0x8*(parseInt(_0x2146c3(0x11a))/0x9)+-parseInt(_0x2146c3(0x150))/0xa*(parseInt(_0x2146c3(0x149))/0xb)+-parseInt(_0x2146c3(0x12e))/0xc*(-parseInt(_0x2146c3(0x11d))/0xd);if(_0x52aae0===_0x33adf7)break;else _0x4cf140['push'](_0x4cf140['shift']());}catch(_0x807777){_0x4cf140['push'](_0x4cf140['shift']());}}}(_0x4c59,0x7e543));function _0x4c59(){const _0x129fcd=['ai21.j2','generation','resolve','POST','getReader','filter','16OfaEeN','pluginName','_readAsyncIterableResponse','test','1285500yYRnum','_prepareRequestParameters','_readStreamableResponse','preparePrompt','chunk','send','get','locale','editor','completion','application/json','ai.assistant.adapter.aws.requestParameters','ai.assistant.adapter.aws.bedrockClientConfig','abortController','Instruction:\x0a','completions','207RRSKOy','generations','\x0a[/INST]','12017252jEAAnv','utf-8','_processProxyRequest','\x0a\x0aAssistant:','sendRequest','split','define','data','parse','4212102boRiVD','_getGeneratedText','175928uLJDGV','707367qxNhmr','read','anthropic.claude-v2','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_ERROR_UNSUPPORTED_MODEL','24zqDnyR','bytes','ai.assistant.adapter.aws.apiUrl','ai.assistant.adapter.aws.requestHeaders','decode','json','6ijpqxa','<<SYS>>\x0a','cohere.command','_apiUrl','Human:\x0a','text','_prepareRequestHeaders','\x0a<</SYS>>\x0a[INST]\x0a','7uGCilr','join','AWSTextAdapter','getModelFamily','config','_bedrockClientConfig','stringify','length','_processAWSRequest','anthropic.claude','_requestParameters','bedrock-2023-05-31','230662OuhaVr','278003ThpvEf','_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.','map','_readStaticResponse','body','meta.llama','250iiudaf','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','signal'];_0x4c59=function(){return _0x129fcd;};return _0x4c59();}import{AITextAdapter as _0x26a6c5}from'./aitextadapter.js';import{AIRequestError as _0x45be77}from'./aiadapter.js';import{BedrockRuntimeClient as _0x196fd6,InvokeModelCommand as _0x8db204,InvokeModelWithResponseStreamCommand as _0x184775}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x470101}from'../utils/common-translations.js';export class AWSTextAdapter extends _0x26a6c5{[_0x4430c0(0x137)];[_0x4430c0(0x14a)];[_0x4430c0(0x141)];[_0x4430c0(0x146)];static get[_0x4430c0(0x107)](){const _0x4b54a3=_0x4430c0;return _0x4b54a3(0x13e);}constructor(_0x28c15e){const _0x39e3a8=_0x4430c0;super(_0x28c15e),_0x28c15e[_0x39e3a8(0x140)][_0x39e3a8(0x110)](_0x39e3a8(0x115))||_0x28c15e[_0x39e3a8(0x140)][_0x39e3a8(0x123)](_0x39e3a8(0x115),{'model':_0x39e3a8(0x12b),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x39e3a8(0x147),'stream':!0x0}),this[_0x39e3a8(0x137)]=_0x28c15e[_0x39e3a8(0x140)][_0x39e3a8(0x110)](_0x39e3a8(0x130)),this[_0x39e3a8(0x141)]=_0x28c15e[_0x39e3a8(0x140)][_0x39e3a8(0x110)](_0x39e3a8(0x116)),this[_0x39e3a8(0x14a)]=_0x28c15e[_0x39e3a8(0x140)][_0x39e3a8(0x110)](_0x39e3a8(0x131)),this[_0x39e3a8(0x146)]=_0x28c15e[_0x39e3a8(0x140)][_0x39e3a8(0x110)](_0x39e3a8(0x115));}async[_0x4430c0(0x121)]({query:_0x13995f,context:_0x55a0fc,onData:_0x4bb00d,actionId:_0x4851e8}){const _0x350a79=_0x4430c0,{model:_0x536ba5,stream:_0x50ce1b,..._0x3de595}=await this[_0x350a79(0x10b)](this[_0x350a79(0x146)],_0x4851e8),_0x5adfcb={'prompt':await this[_0x350a79(0x10d)](_0x13995f,_0x55a0fc,_0x536ba5,_0x4851e8),..._0x3de595};this[_0x350a79(0x137)]?await this[_0x350a79(0x11f)](_0x5adfcb,_0x536ba5,_0x50ce1b,_0x4bb00d,_0x4851e8):await this[_0x350a79(0x144)](_0x5adfcb,_0x536ba5,_0x50ce1b,_0x4bb00d);}async[_0x4430c0(0x10d)](_0x2d279b,_0x4cd486,_0x353796,_0x31c1b0){const _0x3631f6=_0x4430c0;let _0x284eb1,_0x52c314;return _0x4cd486?(_0x284eb1=_0x3631f6(0x14b),_0x52c314=_0x3631f6(0x118)+_0x2d279b+_0x3631f6(0x151)+_0x4cd486):(_0x284eb1=_0x3631f6(0x12c),_0x52c314=_0x2d279b),_0x3631f6(0x14f)==this[_0x3631f6(0x13f)](_0x353796)?_0x3631f6(0x135)+_0x284eb1+_0x3631f6(0x13b)+_0x52c314+_0x3631f6(0x11c):_0x3631f6(0x138)+_0x284eb1+'\x0a'+_0x52c314+_0x3631f6(0x120);}[_0x4430c0(0x13f)](_0x142c59){const _0x377a95=_0x4430c0;if(/^anthropic\.claude/[_0x377a95(0x109)](_0x142c59))return _0x377a95(0x145);if(/^ai21\.j2/[_0x377a95(0x109)](_0x142c59))return _0x377a95(0x153);if(/^cohere\.command/[_0x377a95(0x109)](_0x142c59))return _0x377a95(0x136);if(/^meta\.llama/[_0x377a95(0x109)](_0x142c59))return _0x377a95(0x14f);throw new _0x45be77(_0x470101(this[_0x377a95(0x112)][_0x377a95(0x111)],_0x377a95(0x12d),_0x142c59));}async[_0x4430c0(0x11f)](_0x53a337,_0xbba6b4,_0x3779b2,_0x35d4a7,_0x36826c){const _0x792c6c=_0x4430c0,_0x4732ea={'method':_0x792c6c(0x156),'headers':await this[_0x792c6c(0x13a)](this[_0x792c6c(0x14a)],_0x36826c),'body':JSON[_0x792c6c(0x142)]({..._0x53a337,'model':_0xbba6b4,'stream':_0x3779b2}),'signal':this[_0x792c6c(0x117)][_0x792c6c(0x152)]},_0x9b50ab=await fetch(this[_0x792c6c(0x137)],_0x4732ea);_0x3779b2?await this[_0x792c6c(0x10c)](_0x9b50ab,_0xbba6b4,_0x35d4a7):await this[_0x792c6c(0x14d)](_0x9b50ab,_0xbba6b4,_0x35d4a7);}async[_0x4430c0(0x144)](_0x14a487,_0x5a673f,_0x461c2c,_0x214f55){const _0x1b489f=_0x4430c0,_0x3714a8=new _0x196fd6(this[_0x1b489f(0x141)]),_0x3b3493={'body':JSON[_0x1b489f(0x142)](_0x14a487),'contentType':_0x1b489f(0x114),'accept':_0x1b489f(0x114),'modelId':_0x5a673f};let _0x5bda98;if(_0x461c2c){const _0x44bac0=new _0x184775(_0x3b3493);_0x5bda98=await _0x3714a8[_0x1b489f(0x10f)](_0x44bac0,{'abortSignal':this[_0x1b489f(0x117)][_0x1b489f(0x152)]}),await this[_0x1b489f(0x108)](_0x5bda98,_0x5a673f,_0x214f55);}else{const _0x41e8f2=new _0x8db204(_0x3b3493);_0x5bda98=await _0x3714a8[_0x1b489f(0x10f)](_0x41e8f2,{'abortSignal':this[_0x1b489f(0x117)][_0x1b489f(0x152)]}),await this[_0x1b489f(0x14d)](_0x5bda98,_0x5a673f,_0x214f55);}}async[_0x4430c0(0x108)](_0x5f5b1a,_0x241e36,_0x1151fc){const _0x6838f8=_0x4430c0,_0x2ce003=_0x5f5b1a[_0x6838f8(0x14e)],_0x49f360=new TextDecoder(_0x6838f8(0x11e));let _0x59b2df='';for await(const _0x23c2e9 of _0x2ce003)if(_0x23c2e9[_0x6838f8(0x10e)]){const _0x3a7b24=_0x49f360[_0x6838f8(0x132)](_0x23c2e9[_0x6838f8(0x10e)][_0x6838f8(0x12f)]),_0x590df6=JSON[_0x6838f8(0x125)](_0x3a7b24);_0x59b2df+=this[_0x6838f8(0x127)](_0x590df6,_0x241e36),_0x1151fc(_0x59b2df);}return Promise[_0x6838f8(0x155)]();}async[_0x4430c0(0x10c)](_0x21f2ea,_0x1594db,_0x456d91){const _0x19654b=_0x4430c0,_0x5159d7=_0x21f2ea[_0x19654b(0x14e)],_0x23d6b5=new TextDecoder(_0x19654b(0x11e)),_0x6e6f24=_0x5159d7[_0x19654b(0x157)]();let _0x3254d9='',_0x597b5f='',_0x142cb9=!0x1;for(;!_0x142cb9;){const {done:_0x1c550a,value:_0x5208ff}=await _0x6e6f24[_0x19654b(0x12a)]();if(_0x142cb9=_0x1c550a,_0x142cb9)break;const _0x4621da=(_0x3254d9+_0x23d6b5[_0x19654b(0x132)](_0x5208ff))[_0x19654b(0x122)]('\x0a')[_0x19654b(0x14c)](_0x2e1557=>{const _0x554dd6=_0x19654b;try{return _0x3254d9='',JSON[_0x554dd6(0x125)](_0x2e1557);}catch{return _0x3254d9=_0x2e1557,null;}})[_0x19654b(0x158)](_0x1b770d=>null!==_0x1b770d);_0x4621da[_0x19654b(0x143)]&&(_0x597b5f+=_0x4621da[_0x19654b(0x14c)](_0x1ac2a5=>this[_0x19654b(0x127)](_0x1ac2a5,_0x1594db))[_0x19654b(0x13d)](''),_0x456d91(_0x597b5f));}return Promise[_0x19654b(0x155)]();}async[_0x4430c0(0x14d)](_0x1a5d41,_0x4ec9d4,_0x5eaa40){const _0x14a3a8=_0x4430c0;let _0x4fe350;return _0x4fe350=_0x1a5d41 instanceof Response?await _0x1a5d41[_0x14a3a8(0x133)]():JSON[_0x14a3a8(0x125)](new TextDecoder(_0x14a3a8(0x11e))[_0x14a3a8(0x132)](_0x1a5d41[_0x14a3a8(0x14e)])),(_0x5eaa40(this[_0x14a3a8(0x127)](_0x4fe350,_0x4ec9d4)),Promise[_0x14a3a8(0x155)]());}[_0x4430c0(0x127)](_0x22c720,_0x741f53){const _0xb1e53a=_0x4430c0;switch(this[_0xb1e53a(0x13f)](_0x741f53)){case _0xb1e53a(0x145):return _0x22c720[_0xb1e53a(0x113)];case _0xb1e53a(0x153):return _0x22c720[_0xb1e53a(0x119)][0x0][_0xb1e53a(0x124)][_0xb1e53a(0x139)];case _0xb1e53a(0x136):return _0x22c720[_0xb1e53a(0x11b)][0x0][_0xb1e53a(0x139)];case _0xb1e53a(0x14f):return _0x22c720[_0xb1e53a(0x154)];}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3f2aef=_0x4acb;(function(_0x108928,_0x967a8){const _0x43ea67=_0x4acb,_0x1267a3=_0x108928();while(!![]){try{const _0xbcccb0=-parseInt(_0x43ea67(0x1d4))/0x1*(-parseInt(_0x43ea67(0x1ad))/0x2)+-parseInt(_0x43ea67(0x197))/0x3*(parseInt(_0x43ea67(0x1ac))/0x4)+-parseInt(_0x43ea67(0x1c8))/0x5*(-parseInt(_0x43ea67(0x1a1))/0x6)+-parseInt(_0x43ea67(0x1bc))/0x7*(-parseInt(_0x43ea67(0x1a0))/0x8)+-parseInt(_0x43ea67(0x19b))/0x9*(-parseInt(_0x43ea67(0x19a))/0xa)+-parseInt(_0x43ea67(0x1a3))/0xb+-parseInt(_0x43ea67(0x1b0))/0xc*(-parseInt(_0x43ea67(0x1c3))/0xd);if(_0xbcccb0===_0x967a8)break;else _0x1267a3['push'](_0x1267a3['shift']());}catch(_0x1e64d0){_0x1267a3['push'](_0x1267a3['shift']());}}}(_0x5ad0,0x42db9));import{AITextAdapter as _0x6430c3}from'./aitextadapter.js';import{AIRequestError as _0x12ed54}from'./aiadapter.js';import{getTranslation as _0xfc4b9a}from'../utils/common-translations.js';function _0x4acb(_0x55b74c,_0x19f03e){const _0x5ad008=_0x5ad0();return _0x4acb=function(_0x4acb28,_0x520fc4){_0x4acb28=_0x4acb28-0x196;let _0x3e1b3d=_0x5ad008[_0x4acb28];return _0x3e1b3d;},_0x4acb(_0x55b74c,_0x19f03e);}export class OpenAITextAdapter extends _0x6430c3{[_0x3f2aef(0x1cf)];[_0x3f2aef(0x1ce)];[_0x3f2aef(0x1be)];static get[_0x3f2aef(0x1cd)](){const _0x390e66=_0x3f2aef;return _0x390e66(0x1b4);}constructor(_0x42f71f){const _0x5170f3=_0x3f2aef;super(_0x42f71f),_0x42f71f[_0x5170f3(0x1bd)][_0x5170f3(0x1d2)](_0x5170f3(0x1a2),_0x5170f3(0x1ab)),_0x42f71f[_0x5170f3(0x1bd)][_0x5170f3(0x1c4)](_0x5170f3(0x1d3))||_0x42f71f[_0x5170f3(0x1bd)][_0x5170f3(0x1d2)](_0x5170f3(0x1d3),{'model':_0x5170f3(0x1dd),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x5170f3(0x1cf)]=_0x42f71f[_0x5170f3(0x1bd)][_0x5170f3(0x1c4)](_0x5170f3(0x1a2)),this[_0x5170f3(0x1ce)]=_0x42f71f[_0x5170f3(0x1bd)][_0x5170f3(0x1c4)](_0x5170f3(0x1ca))||{},this[_0x5170f3(0x1be)]=_0x42f71f[_0x5170f3(0x1bd)][_0x5170f3(0x1c4)](_0x5170f3(0x1d3));}async[_0x3f2aef(0x1dc)]({query:_0x86c740,context:_0x3b59e6,onData:_0x179be5,actionId:_0x3249e3}){const _0x1dbb60=_0x3f2aef,_0x32c516=this[_0x1dbb60(0x198)][_0x1dbb60(0x1c0)],_0x2ce019=await this[_0x1dbb60(0x1d5)](_0x86c740,_0x3b59e6,_0x3249e3),_0x37407a=await this[_0x1dbb60(0x1b7)](this[_0x1dbb60(0x1ce)],_0x3249e3),_0x31adb0=await this[_0x1dbb60(0x1b5)](this[_0x1dbb60(0x1be)],_0x3249e3),_0x32b685={'messages':_0x2ce019,..._0x31adb0},_0x1db30f={'method':_0x1dbb60(0x1a9),'headers':_0x37407a,'body':JSON[_0x1dbb60(0x1a5)](_0x32b685),'signal':this[_0x1dbb60(0x19f)][_0x1dbb60(0x199)]},_0x4e680d=await fetch(this[_0x1dbb60(0x1cf)],_0x1db30f);if(_0x4e680d['ok'])return _0x31adb0[_0x1dbb60(0x1ae)]?await this[_0x1dbb60(0x1d7)](_0x4e680d,_0x179be5):await this[_0x1dbb60(0x1de)](_0x4e680d,_0x179be5),Promise[_0x1dbb60(0x1c5)]();{const _0x2d8c7e=await _0x4e680d[_0x1dbb60(0x1aa)]();return _0x2d8c7e[_0x1dbb60(0x1db)](_0x1dbb60(0x1a8))?Promise[_0x1dbb60(0x1b6)](new _0x12ed54(_0xfc4b9a(_0x32c516,_0x1dbb60(0x196)))):_0x2d8c7e[_0x1dbb60(0x1db)](_0x1dbb60(0x1c1))?Promise[_0x1dbb60(0x1b6)](new _0x12ed54(_0xfc4b9a(_0x32c516,_0x1dbb60(0x1bf)))):Promise[_0x1dbb60(0x1b6)](new Error(_0x2d8c7e));}}async[_0x3f2aef(0x1d5)](_0x3ebb74,_0x21dd12,_0x2191b5){const _0x46fe0f=_0x3f2aef;let _0x1e977f,_0x20c7fc;return _0x21dd12?(_0x1e977f=_0x46fe0f(0x1ba),_0x20c7fc=_0x46fe0f(0x1bb)+_0x3ebb74+_0x46fe0f(0x1d6)+_0x21dd12):(_0x1e977f=_0x46fe0f(0x1b3),_0x20c7fc=_0x3ebb74),[{'role':_0x46fe0f(0x1cb),'content':_0x1e977f},{'role':_0x46fe0f(0x1cc),'content':_0x20c7fc}];}async[_0x3f2aef(0x1d7)](_0x3d788d,_0x3542e9){const _0x2b4fd5=_0x3f2aef,_0x196d64=_0x3d788d[_0x2b4fd5(0x1da)][_0x2b4fd5(0x19d)](),_0x452676=new TextDecoder();let _0x447337='',_0x474437='',_0x467492='',_0x107856=!0x1;for(;!_0x107856;){const {done:_0x17cfa5,value:_0x461810}=await _0x196d64[_0x2b4fd5(0x1b9)](),_0x5271ee=_0x447337+_0x452676[_0x2b4fd5(0x1b1)](_0x461810);let _0x5f23b3='';_0x107856=_0x17cfa5;try{_0x5f23b3=this[_0x2b4fd5(0x1c7)](_0x5271ee),_0x447337='';}catch{_0x447337=_0x5271ee;continue;}_0x474437+=_0x5f23b3,!_0x107856&&this[_0x2b4fd5(0x1c2)](_0x474437)||_0x474437&&(_0x467492+=_0x474437,_0x474437='',_0x3542e9(_0x467492));}return Promise[_0x2b4fd5(0x1c5)]();}async[_0x3f2aef(0x1de)](_0x3be48e,_0x18dfd4){const _0x2a76dc=_0x3f2aef;return _0x18dfd4((await _0x3be48e[_0x2a76dc(0x1d0)]())[_0x2a76dc(0x1b2)][0x0][_0x2a76dc(0x1d9)][_0x2a76dc(0x19e)]),Promise[_0x2a76dc(0x1c5)]();}[_0x3f2aef(0x1c2)](_0xc8b906){const _0x5e1ad0=_0x3f2aef,_0x237e2f=_0xc8b906[_0x5e1ad0(0x1a6)]('<')[_0x5e1ad0(0x1a4)]!==_0xc8b906[_0x5e1ad0(0x1a6)]('>')[_0x5e1ad0(0x1a4)],_0x198e81=_0xc8b906[_0x5e1ad0(0x1a4)]<0x1e;return _0x237e2f&&_0x198e81;}[_0x3f2aef(0x1c7)](_0x39fe94){const _0xdcef63=_0x3f2aef;return _0x39fe94[_0xdcef63(0x1a6)](/\n(?![^{]*\})/g)[_0xdcef63(0x1b8)](_0x5efe56=>_0x5efe56[_0xdcef63(0x1c6)](_0xdcef63(0x1c9),''))[_0xdcef63(0x1d1)](_0x5115d1=>_0x5115d1&&_0x5115d1[_0xdcef63(0x1a4)]>0x0&&_0xdcef63(0x1a7)!==_0x5115d1)[_0xdcef63(0x1b8)](_0x2f19fa=>{const _0x86e598=_0xdcef63,{choices:_0x2a3b28}=JSON[_0x86e598(0x1af)](_0x2f19fa);if(_0x2a3b28[0x0]?.[_0x86e598(0x1d8)]?.[_0x86e598(0x19e)])return _0x2a3b28[0x0][_0x86e598(0x1d8)][_0x86e598(0x19e)];})[_0xdcef63(0x1d1)](_0xc350f=>_0xc350f)[_0xdcef63(0x19c)]('');}}function _0x5ad0(){const _0x104032=['Instruction:\x0a','264754uWQSdg','config','_requestParameters','AI_ERROR_MODERATION','locale','Moderation','_isBufferIncomplete','3419273hAfNbf','get','resolve','replace','_cleanUpData','31075ZpIFxX','data:\x20','ai.assistant.adapter.openAI.requestHeaders','system','user','pluginName','_requestHeaders','_apiUrl','json','filter','define','ai.assistant.adapter.openAI.requestParameters','751OzRDYw','prepareMessages','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','_readStreamableResponse','delta','message','body','includes','sendRequest','gpt-4o','_readStaticResponse','AI_ERROR_CONTEXT_LENGTH','15FoyOvD','editor','signal','10bxBSbG','19953TwvYax','join','getReader','content','abortController','48UfnTsd','354XBEfpd','ai.assistant.adapter.openAI.apiUrl','2553936rysfJe','length','stringify','split','[DONE]','context_length_exceeded','POST','text','https://api.openai.com/v1/chat/completions','381396GSUVnC','330IIWlQR','stream','parse','12mYUtzn','decode','choices','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.','OpenAITextAdapter','_prepareRequestParameters','reject','_prepareRequestHeaders','map','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.'];_0x5ad0=function(){return _0x104032;};return _0x5ad0();}
23
+ const _0xa3e6f2=_0x5af7;function _0x5af7(_0x2dfaa3,_0x3fe823){const _0xa272a1=_0xa272();return _0x5af7=function(_0x5af712,_0x2829dc){_0x5af712=_0x5af712-0x124;let _0x21549d=_0xa272a1[_0x5af712];return _0x21549d;},_0x5af7(_0x2dfaa3,_0x3fe823);}(function(_0x1a93fe,_0x4dd47c){const _0x323f32=_0x5af7,_0x5e650f=_0x1a93fe();while(!![]){try{const _0x42d4f0=parseInt(_0x323f32(0x15e))/0x1+-parseInt(_0x323f32(0x16a))/0x2+parseInt(_0x323f32(0x147))/0x3*(-parseInt(_0x323f32(0x156))/0x4)+parseInt(_0x323f32(0x131))/0x5*(-parseInt(_0x323f32(0x145))/0x6)+-parseInt(_0x323f32(0x154))/0x7*(-parseInt(_0x323f32(0x152))/0x8)+parseInt(_0x323f32(0x163))/0x9*(parseInt(_0x323f32(0x12f))/0xa)+-parseInt(_0x323f32(0x140))/0xb*(-parseInt(_0x323f32(0x162))/0xc);if(_0x42d4f0===_0x4dd47c)break;else _0x5e650f['push'](_0x5e650f['shift']());}catch(_0x5f084c){_0x5e650f['push'](_0x5e650f['shift']());}}}(_0xa272,0x780c3));import{AITextAdapter as _0x2ad2c9}from'./aitextadapter.js';import{AIRequestError as _0xa0ab8d}from'./aiadapter.js';function _0xa272(){const _0x22e746=['_requestHeaders','filter','Instruction:\x0a','delta','reject','33CjjRcN','choices','split','parse','locale','19254nThEnY','resolve','3IfGnoy','_cleanUpData','ai.assistant.adapter.openAI.requestHeaders','_readStaticResponse','ai.assistant.adapter.openAI.apiUrl','https://api.openai.com/v1/chat/completions','system','OpenAITextAdapter','data:\x20','POST','getReader','75080MDCJKU','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','553QEnPWo','content','3353264MqyAnu','abortController','message','_prepareRequestParameters','join','read','_requestParameters','_readStreamableResponse','116878ZmPaco','_prepareRequestHeaders','stringify','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.','4832556QRxQZp','9873trRXBM','text','get','signal','context_length_exceeded','editor','decode','1450260nSHVez','_apiUrl','AI_ERROR_MODERATION','user','length','config','replace','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.','map','sendRequest','stream','pluginName','AI_ERROR_CONTEXT_LENGTH','5660oPSvAB','prepareMessages','985NeYzQp','define','[DONE]','_isBufferIncomplete','Moderation','ai.assistant.adapter.openAI.requestParameters','body','json','includes','gpt-4o'];_0xa272=function(){return _0x22e746;};return _0xa272();}import{getTranslation as _0x58d3fe}from'../utils/common-translations.js';export class OpenAITextAdapter extends _0x2ad2c9{[_0xa3e6f2(0x16b)];[_0xa3e6f2(0x13b)];[_0xa3e6f2(0x15c)];static get[_0xa3e6f2(0x12d)](){const _0x579f15=_0xa3e6f2;return _0x579f15(0x14e);}constructor(_0x3bd11f){const _0x5cdd0f=_0xa3e6f2;super(_0x3bd11f),_0x3bd11f[_0x5cdd0f(0x127)][_0x5cdd0f(0x132)](_0x5cdd0f(0x14b),_0x5cdd0f(0x14c)),_0x3bd11f[_0x5cdd0f(0x127)][_0x5cdd0f(0x165)](_0x5cdd0f(0x136))||_0x3bd11f[_0x5cdd0f(0x127)][_0x5cdd0f(0x132)](_0x5cdd0f(0x136),{'model':_0x5cdd0f(0x13a),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x5cdd0f(0x16b)]=_0x3bd11f[_0x5cdd0f(0x127)][_0x5cdd0f(0x165)](_0x5cdd0f(0x14b)),this[_0x5cdd0f(0x13b)]=_0x3bd11f[_0x5cdd0f(0x127)][_0x5cdd0f(0x165)](_0x5cdd0f(0x149))||{},this[_0x5cdd0f(0x15c)]=_0x3bd11f[_0x5cdd0f(0x127)][_0x5cdd0f(0x165)](_0x5cdd0f(0x136));}async[_0xa3e6f2(0x12b)]({query:_0x3741b9,context:_0x15d9ad,onData:_0x173f50,actionId:_0x2d76c2}){const _0x25eb8f=_0xa3e6f2,_0x479cbd=this[_0x25eb8f(0x168)][_0x25eb8f(0x144)],_0x3d0dd0=await this[_0x25eb8f(0x130)](_0x3741b9,_0x15d9ad,_0x2d76c2),_0x53b885=await this[_0x25eb8f(0x15f)](this[_0x25eb8f(0x13b)],_0x2d76c2),_0x5a2bbc=await this[_0x25eb8f(0x159)](this[_0x25eb8f(0x15c)],_0x2d76c2),_0x11b859={'messages':_0x3d0dd0,..._0x5a2bbc},_0x42740d={'method':_0x25eb8f(0x150),'headers':_0x53b885,'body':JSON[_0x25eb8f(0x160)](_0x11b859),'signal':this[_0x25eb8f(0x157)][_0x25eb8f(0x166)]},_0x5a7e53=await fetch(this[_0x25eb8f(0x16b)],_0x42740d);if(_0x5a7e53['ok'])return _0x5a2bbc[_0x25eb8f(0x12c)]?await this[_0x25eb8f(0x15d)](_0x5a7e53,_0x173f50):await this[_0x25eb8f(0x14a)](_0x5a7e53,_0x173f50),Promise[_0x25eb8f(0x146)]();{const _0x5b2e38=await _0x5a7e53[_0x25eb8f(0x164)]();return _0x5b2e38[_0x25eb8f(0x139)](_0x25eb8f(0x167))?Promise[_0x25eb8f(0x13f)](new _0xa0ab8d(_0x58d3fe(_0x479cbd,_0x25eb8f(0x12e)))):_0x5b2e38[_0x25eb8f(0x139)](_0x25eb8f(0x135))?Promise[_0x25eb8f(0x13f)](new _0xa0ab8d(_0x58d3fe(_0x479cbd,_0x25eb8f(0x124)))):Promise[_0x25eb8f(0x13f)](new Error(_0x5b2e38));}}async[_0xa3e6f2(0x130)](_0x4c8c63,_0x3103a3,_0x27f9b6){const _0x1e09e4=_0xa3e6f2;let _0xd33df0,_0x40daeb;return _0x3103a3?(_0xd33df0=_0x1e09e4(0x161),_0x40daeb=_0x1e09e4(0x13d)+_0x4c8c63+_0x1e09e4(0x153)+_0x3103a3):(_0xd33df0=_0x1e09e4(0x129),_0x40daeb=_0x4c8c63),[{'role':_0x1e09e4(0x14d),'content':_0xd33df0},{'role':_0x1e09e4(0x125),'content':_0x40daeb}];}async[_0xa3e6f2(0x15d)](_0x176e36,_0x402da6){const _0x324c48=_0xa3e6f2,_0x1b769a=_0x176e36[_0x324c48(0x137)][_0x324c48(0x151)](),_0x5464e6=new TextDecoder();let _0x4f41db='',_0x19da45='',_0x454714='',_0x43a0d4=!0x1;for(;!_0x43a0d4;){const {done:_0x3aa70c,value:_0x5525ee}=await _0x1b769a[_0x324c48(0x15b)](),_0x353cff=_0x4f41db+_0x5464e6[_0x324c48(0x169)](_0x5525ee);let _0x45a290='';_0x43a0d4=_0x3aa70c;try{_0x45a290=this[_0x324c48(0x148)](_0x353cff),_0x4f41db='';}catch{_0x4f41db=_0x353cff;continue;}_0x19da45+=_0x45a290,!_0x43a0d4&&this[_0x324c48(0x134)](_0x19da45)||_0x19da45&&(_0x454714+=_0x19da45,_0x19da45='',_0x402da6(_0x454714));}return Promise[_0x324c48(0x146)]();}async[_0xa3e6f2(0x14a)](_0x17c505,_0x1502c3){const _0x448783=_0xa3e6f2;return _0x1502c3((await _0x17c505[_0x448783(0x138)]())[_0x448783(0x141)][0x0][_0x448783(0x158)][_0x448783(0x155)]),Promise[_0x448783(0x146)]();}[_0xa3e6f2(0x134)](_0x5ce4e3){const _0x3472cd=_0xa3e6f2,_0x435fd3=_0x5ce4e3[_0x3472cd(0x142)]('<')[_0x3472cd(0x126)]!==_0x5ce4e3[_0x3472cd(0x142)]('>')[_0x3472cd(0x126)],_0x4e5a53=_0x5ce4e3[_0x3472cd(0x126)]<0x1e;return _0x435fd3&&_0x4e5a53;}[_0xa3e6f2(0x148)](_0xf13ff6){const _0xc17b9b=_0xa3e6f2;return _0xf13ff6[_0xc17b9b(0x142)](/\n(?![^{]*\})/g)[_0xc17b9b(0x12a)](_0x3a7c44=>_0x3a7c44[_0xc17b9b(0x128)](_0xc17b9b(0x14f),''))[_0xc17b9b(0x13c)](_0x1e996d=>_0x1e996d&&_0x1e996d[_0xc17b9b(0x126)]>0x0&&_0xc17b9b(0x133)!==_0x1e996d)[_0xc17b9b(0x12a)](_0x3eff3b=>{const _0x3c9ca1=_0xc17b9b,{choices:_0x6dc88f}=JSON[_0x3c9ca1(0x143)](_0x3eff3b);if(_0x6dc88f[0x0]?.[_0x3c9ca1(0x13e)]?.[_0x3c9ca1(0x155)])return _0x6dc88f[0x0][_0x3c9ca1(0x13e)][_0x3c9ca1(0x155)];})[_0xc17b9b(0x13c)](_0x514844=>_0x514844)[_0xc17b9b(0x15a)]('');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x352efe=_0x2db3;function _0x2db3(_0x40e416,_0x5d3beb){const _0x508cc5=_0x508c();return _0x2db3=function(_0x2db3e1,_0x38f3f7){_0x2db3e1=_0x2db3e1-0x190;let _0x4ed0ce=_0x508cc5[_0x2db3e1];return _0x4ed0ce;},_0x2db3(_0x40e416,_0x5d3beb);}function _0x508c(){const _0x2b1e85=['Casual','Summarize','define','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.','direct','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','groupId','Generate\x20from\x20selection','Translate\x20the\x20content\x20to\x20Spanish\x20language.','Direct','Translate','makeLonger','push','translateHindi','changeStyle','config','improveWriting','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','ai.assistant.preserveComments','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','translateFrench','Simplify\x20language','Spanish','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Make\x20shorter','translateArabic','2427948KPcpRt','German','set','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','Professional','Edit\x20or\x20review','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','Translate\x20the\x20content\x20to\x20French\x20language.','1iPPruI','find','changeTone','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','makeShorter','Friendly','journalism','friendly','forEach','confident','Simplified\x20Chinese','ai.assistant.extraCommandGroups','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','casual','French','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','simplifyLanguage','Make\x20longer','continue','28960PsuxAQ','isPremiumPlugin','ai.assistant.commands','commands','translatePortuguese','translateSpanish','Portuguese','2539875oUetZg','Poetic','191960yLHrqM','Translate\x20the\x20content\x20to\x20Hindi\x20language.','requires','get','Journalism','translateEnglish','Improve\x20writing','translate','includes','ai.assistant.removeCommands','5xqtqKJ','editOrReview','filter','AIAssistant','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Legal','professional','Change\x20tone','summarize','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','translateGerman','1890765CxHpJs','Translate\x20the\x20content\x20to\x20English\x20language.','English','147PUgOMz','Arabic','locale','Translate\x20the\x20content\x20to\x20German\x20language.','1144TDILUm','concat','pluginName','poetic','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Confident','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','isOfficialPlugin','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','Hindi','Business','Translate\x20the\x20content\x20to\x20Arabic\x20language.','899742xbxKGO','business','506014VaMefQ','Change\x20style','generate','translateChinese','legal'];_0x508c=function(){return _0x2b1e85;};return _0x508c();}(function(_0x303166,_0x421011){const _0x2ca402=_0x2db3,_0x4c3148=_0x303166();while(!![]){try{const _0x4c9373=-parseInt(_0x2ca402(0x195))/0x1*(parseInt(_0x2ca402(0x1dc))/0x2)+-parseInt(_0x2ca402(0x1af))/0x3+-parseInt(_0x2ca402(0x1fd))/0x4+-parseInt(_0x2ca402(0x1bb))/0x5*(-parseInt(_0x2ca402(0x1da))/0x6)+-parseInt(_0x2ca402(0x1c9))/0x7*(parseInt(_0x2ca402(0x1a8))/0x8)+parseInt(_0x2ca402(0x1c6))/0x9+-parseInt(_0x2ca402(0x1b1))/0xa*(-parseInt(_0x2ca402(0x1cd))/0xb);if(_0x4c9373===_0x421011)break;else _0x4c3148['push'](_0x4c3148['shift']());}catch(_0x17c7d5){_0x4c3148['push'](_0x4c3148['shift']());}}}(_0x508c,0x8c15b));import{Plugin as _0x1e0d45}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x29aba1}from'./aiassistantui.js';import{AIAssistantEditing as _0x4e4f87}from'./aiassistantediting.js';import{getTranslation as _0x15dcb5}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x50d19b}from'./utils/normalizecommandsconfig.js';export class AIAssistant extends _0x1e0d45{static get[_0x352efe(0x1b3)](){return[_0x29aba1,_0x4e4f87];}static get[_0x352efe(0x1cf)](){const _0x5c95dd=_0x352efe;return _0x5c95dd(0x1be);}static get[_0x352efe(0x1d4)](){return!0x0;}static get[_0x352efe(0x1a9)](){return!0x0;}constructor(_0x3363db){const _0x2ddf3f=_0x352efe;super(_0x3363db);const _0x5e245c=_0x3363db[_0x2ddf3f(0x1f1)],_0x2d52ab=_0x3363db[_0x2ddf3f(0x1cb)];_0x5e245c[_0x2ddf3f(0x1e3)](_0x2ddf3f(0x1f5),!0x0),_0x5e245c[_0x2ddf3f(0x1e3)](_0x2ddf3f(0x1aa),getDefaultAICommands(_0x2d52ab)),_0x5e245c[_0x2ddf3f(0x1e3)](_0x2ddf3f(0x1a0),[]),_0x5e245c[_0x2ddf3f(0x1e3)](_0x2ddf3f(0x1ba),[]);let _0x223f8b=_0x50d19b(_0x5e245c[_0x2ddf3f(0x1b4)](_0x2ddf3f(0x1aa)),_0x2d52ab);const _0x23c76f=_0x5e245c[_0x2ddf3f(0x1b4)](_0x2ddf3f(0x1a0)),_0x383770=_0x5e245c[_0x2ddf3f(0x1b4)](_0x2ddf3f(0x1ba));_0x23c76f[_0x2ddf3f(0x19d)](_0x543afc=>{const _0x1808d4=_0x2ddf3f,_0x412274=_0x223f8b[_0x1808d4(0x196)](_0x2a640f=>_0x2a640f[_0x1808d4(0x1e8)]===_0x543afc[_0x1808d4(0x1e8)]);_0x412274?_0x412274[_0x1808d4(0x1ab)]=_0x412274[_0x1808d4(0x1ab)][_0x1808d4(0x1ce)](_0x543afc[_0x1808d4(0x1ab)]):_0x223f8b[_0x1808d4(0x1ee)](_0x543afc);}),_0x223f8b=_0x223f8b[_0x2ddf3f(0x1bd)](_0x1f6ce8=>!_0x383770[_0x2ddf3f(0x1b9)](_0x1f6ce8[_0x2ddf3f(0x1e8)])),_0x223f8b[_0x2ddf3f(0x19d)](_0x28a060=>{const _0x5dd3e0=_0x2ddf3f;_0x28a060[_0x5dd3e0(0x1ab)]=_0x28a060[_0x5dd3e0(0x1ab)][_0x5dd3e0(0x1bd)](_0x382d66=>!_0x383770[_0x5dd3e0(0x1b9)](_0x382d66['id']));}),_0x5e245c[_0x2ddf3f(0x1ff)](_0x2ddf3f(0x1aa),_0x223f8b);}}export function getDefaultAICommands(_0x39e7b5){const _0x2cceb1=_0x352efe;return[{'groupId':_0x2cceb1(0x1bc),'groupLabel':_0x15dcb5(_0x39e7b5,_0x2cceb1(0x192)),'commands':[{'id':_0x2cceb1(0x1f2),'label':_0x15dcb5(_0x39e7b5,_0x2cceb1(0x1b7)),'prompt':_0x2cceb1(0x1fa)},{'id':_0x2cceb1(0x199),'label':_0x15dcb5(_0x39e7b5,_0x2cceb1(0x1fb)),'prompt':_0x2cceb1(0x1a4)},{'id':_0x2cceb1(0x1ed),'label':_0x15dcb5(_0x39e7b5,_0x2cceb1(0x1a6)),'prompt':_0x2cceb1(0x1f6)},{'id':_0x2cceb1(0x1a5),'label':_0x15dcb5(_0x39e7b5,_0x2cceb1(0x1f8)),'prompt':_0x2cceb1(0x1f4)}]},{'groupId':_0x2cceb1(0x1de),'groupLabel':_0x15dcb5(_0x39e7b5,_0x2cceb1(0x1e9)),'commands':[{'id':_0x2cceb1(0x1c3),'label':_0x15dcb5(_0x39e7b5,_0x2cceb1(0x1e2)),'prompt':_0x2cceb1(0x1e5)},{'id':_0x2cceb1(0x1a7),'label':_0x15dcb5(_0x39e7b5,_0x2cceb1(0x1e4)),'prompt':_0x2cceb1(0x1d5)}]},{'groupId':_0x2cceb1(0x197),'groupLabel':_0x15dcb5(_0x39e7b5,_0x2cceb1(0x1c2)),'commands':[{'id':_0x2cceb1(0x1c1),'label':_0x15dcb5(_0x39e7b5,_0x2cceb1(0x191)),'prompt':_0x2cceb1(0x198)},{'id':_0x2cceb1(0x1a2),'label':_0x15dcb5(_0x39e7b5,_0x2cceb1(0x1e1)),'prompt':_0x2cceb1(0x1d1)},{'id':_0x2cceb1(0x1e6),'label':_0x15dcb5(_0x39e7b5,_0x2cceb1(0x1eb)),'prompt':_0x2cceb1(0x1e7)},{'id':_0x2cceb1(0x19e),'label':_0x15dcb5(_0x39e7b5,_0x2cceb1(0x1d2)),'prompt':_0x2cceb1(0x1f3)},{'id':_0x2cceb1(0x19c),'label':_0x15dcb5(_0x39e7b5,_0x2cceb1(0x19a)),'prompt':_0x2cceb1(0x190)}]},{'groupId':_0x2cceb1(0x1f0),'groupLabel':_0x15dcb5(_0x39e7b5,_0x2cceb1(0x1dd)),'commands':[{'id':_0x2cceb1(0x1db),'label':_0x15dcb5(_0x39e7b5,_0x2cceb1(0x1d8)),'prompt':_0x2cceb1(0x1d3)},{'id':_0x2cceb1(0x1e0),'label':_0x15dcb5(_0x39e7b5,_0x2cceb1(0x1c0)),'prompt':_0x2cceb1(0x1c4)},{'id':_0x2cceb1(0x19b),'label':_0x15dcb5(_0x39e7b5,_0x2cceb1(0x1b5)),'prompt':_0x2cceb1(0x1bf)},{'id':_0x2cceb1(0x1d0),'label':_0x15dcb5(_0x39e7b5,_0x2cceb1(0x1b0)),'prompt':_0x2cceb1(0x1a1)}]},{'groupId':_0x2cceb1(0x1b8),'groupLabel':_0x15dcb5(_0x39e7b5,_0x2cceb1(0x1ec)),'commands':[{'id':_0x2cceb1(0x1b6),'label':_0x15dcb5(_0x39e7b5,_0x2cceb1(0x1c8)),'prompt':_0x2cceb1(0x1c7)},{'id':_0x2cceb1(0x1ad),'label':_0x15dcb5(_0x39e7b5,_0x2cceb1(0x1f9)),'prompt':_0x2cceb1(0x1ea)},{'id':_0x2cceb1(0x1ac),'label':_0x15dcb5(_0x39e7b5,_0x2cceb1(0x1ae)),'prompt':_0x2cceb1(0x193)},{'id':_0x2cceb1(0x1c5),'label':_0x15dcb5(_0x39e7b5,_0x2cceb1(0x1fe)),'prompt':_0x2cceb1(0x1cc)},{'id':_0x2cceb1(0x1f7),'label':_0x15dcb5(_0x39e7b5,_0x2cceb1(0x1a3)),'prompt':_0x2cceb1(0x194)},{'id':_0x2cceb1(0x1df),'label':_0x15dcb5(_0x39e7b5,_0x2cceb1(0x19f)),'prompt':_0x2cceb1(0x1d6)},{'id':_0x2cceb1(0x1ef),'label':_0x15dcb5(_0x39e7b5,_0x2cceb1(0x1d7)),'prompt':_0x2cceb1(0x1b2)},{'id':_0x2cceb1(0x1fc),'label':_0x15dcb5(_0x39e7b5,_0x2cceb1(0x1ca)),'prompt':_0x2cceb1(0x1d9)}]}];}
23
+ const _0x5e9a80=_0x2007;(function(_0x1f839e,_0x22c2e0){const _0x4d5b29=_0x2007,_0x3a709e=_0x1f839e();while(!![]){try{const _0x3c903d=-parseInt(_0x4d5b29(0x24c))/0x1+-parseInt(_0x4d5b29(0x1f8))/0x2*(-parseInt(_0x4d5b29(0x23b))/0x3)+parseInt(_0x4d5b29(0x217))/0x4+-parseInt(_0x4d5b29(0x234))/0x5+-parseInt(_0x4d5b29(0x255))/0x6*(-parseInt(_0x4d5b29(0x254))/0x7)+parseInt(_0x4d5b29(0x1ee))/0x8*(parseInt(_0x4d5b29(0x213))/0x9)+-parseInt(_0x4d5b29(0x21b))/0xa;if(_0x3c903d===_0x22c2e0)break;else _0x3a709e['push'](_0x3a709e['shift']());}catch(_0x459d47){_0x3a709e['push'](_0x3a709e['shift']());}}}(_0x5a1f,0xbaddd));function _0x5a1f(){const _0xa7d30f=['simplifyLanguage','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','translate','ai.assistant.commands','continue','requires','Arabic','set','forEach','54365ourAyk','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','includes','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','translateHindi','confident','Casual','ai.assistant.extraCommandGroups','63BvrIVT','820464JaEcJk','Continue','translateSpanish','Friendly','Portuguese','makeLonger','ai.assistant.preserveComments','changeTone','13840Tqrxur','groupId','locale','push','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','pluginName','generate','Poetic','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','Translate\x20the\x20content\x20to\x20Arabic\x20language.','6fjNvrs','editOrReview','friendly','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Spanish','Translate\x20the\x20content\x20to\x20German\x20language.','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','Journalism','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Legal','isPremiumPlugin','French','casual','define','changeStyle','get','AIAssistant','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','Hindi','isOfficialPlugin','ai.assistant.removeCommands','Translate\x20the\x20content\x20to\x20Hindi\x20language.','professional','Make\x20longer','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','Translate\x20the\x20content\x20to\x20English\x20language.','Improve\x20writing','1035gDynNv','Translate','Simplified\x20Chinese','English','3212208FwTuPg','makeShorter','Translate\x20the\x20content\x20to\x20French\x20language.','Edit\x20or\x20review','19655370wyaxFF','filter','translateArabic','Change\x20style','journalism','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','Generate\x20from\x20selection','summarize','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','improveWriting','Confident','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','translateFrench','translateGerman','Translate\x20the\x20content\x20to\x20Spanish\x20language.','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','Make\x20shorter','Direct','translatePortuguese','translateChinese','concat','Summarize','config','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','find','4141800nWZeqr','legal','Professional','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','German','commands','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','1380969vpoKon','business','Business','Change\x20tone','poetic','direct','translateEnglish','Simplify\x20language'];_0x5a1f=function(){return _0xa7d30f;};return _0x5a1f();}import{Plugin as _0x121a26}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x3d8a64}from'./aiassistantui.js';function _0x2007(_0x25e3e0,_0x53321d){const _0x5a1fd4=_0x5a1f();return _0x2007=function(_0x2007d4,_0x4555a8){_0x2007d4=_0x2007d4-0x1ed;let _0x5b2e62=_0x5a1fd4[_0x2007d4];return _0x5b2e62;},_0x2007(_0x25e3e0,_0x53321d);}import{AIAssistantEditing as _0x29ed2e}from'./aiassistantediting.js';import{getTranslation as _0x4b6f1e}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x5b6aaa}from'./utils/normalizecommandsconfig.js';export class AIAssistant extends _0x121a26{static get[_0x5e9a80(0x248)](){return[_0x3d8a64,_0x29ed2e];}static get[_0x5e9a80(0x1f3)](){const _0x29613c=_0x5e9a80;return _0x29613c(0x208);}static get[_0x5e9a80(0x20b)](){return!0x0;}static get[_0x5e9a80(0x202)](){return!0x0;}constructor(_0x540c28){const _0x3a8d0c=_0x5e9a80;super(_0x540c28);const _0x4d4f4a=_0x540c28[_0x3a8d0c(0x231)],_0x48b6a9=_0x540c28[_0x3a8d0c(0x1f0)];_0x4d4f4a[_0x3a8d0c(0x205)](_0x3a8d0c(0x25b),!0x0),_0x4d4f4a[_0x3a8d0c(0x205)](_0x3a8d0c(0x246),getDefaultAICommands(_0x48b6a9)),_0x4d4f4a[_0x3a8d0c(0x205)](_0x3a8d0c(0x253),[]),_0x4d4f4a[_0x3a8d0c(0x205)](_0x3a8d0c(0x20c),[]);let _0x507795=_0x5b6aaa(_0x4d4f4a[_0x3a8d0c(0x207)](_0x3a8d0c(0x246)),_0x48b6a9);const _0x385dab=_0x4d4f4a[_0x3a8d0c(0x207)](_0x3a8d0c(0x253)),_0xaaf62e=_0x4d4f4a[_0x3a8d0c(0x207)](_0x3a8d0c(0x20c));_0x385dab[_0x3a8d0c(0x24b)](_0x45d017=>{const _0x3d402a=_0x3a8d0c,_0x2d21ea=_0x507795[_0x3d402a(0x233)](_0xc42acf=>_0xc42acf[_0x3d402a(0x1ef)]===_0x45d017[_0x3d402a(0x1ef)]);_0x2d21ea?_0x2d21ea[_0x3d402a(0x239)]=_0x2d21ea[_0x3d402a(0x239)][_0x3d402a(0x22f)](_0x45d017[_0x3d402a(0x239)]):_0x507795[_0x3d402a(0x1f1)](_0x45d017);}),_0x507795=_0x507795[_0x3a8d0c(0x21c)](_0x491c42=>!_0xaaf62e[_0x3a8d0c(0x24e)](_0x491c42[_0x3a8d0c(0x1ef)])),_0x507795[_0x3a8d0c(0x24b)](_0x2fa0b1=>{const _0x38167b=_0x3a8d0c;_0x2fa0b1[_0x38167b(0x239)]=_0x2fa0b1[_0x38167b(0x239)][_0x38167b(0x21c)](_0x163ac9=>!_0xaaf62e[_0x38167b(0x24e)](_0x163ac9['id']));}),_0x4d4f4a[_0x3a8d0c(0x24a)](_0x3a8d0c(0x246),_0x507795);}}export function getDefaultAICommands(_0x39993e){const _0x42a500=_0x5e9a80;return[{'groupId':_0x42a500(0x1f9),'groupLabel':_0x4b6f1e(_0x39993e,_0x42a500(0x21a)),'commands':[{'id':_0x42a500(0x224),'label':_0x4b6f1e(_0x39993e,_0x42a500(0x212)),'prompt':_0x42a500(0x200)},{'id':_0x42a500(0x218),'label':_0x4b6f1e(_0x39993e,_0x42a500(0x22b)),'prompt':_0x42a500(0x1fe)},{'id':_0x42a500(0x25a),'label':_0x4b6f1e(_0x39993e,_0x42a500(0x20f)),'prompt':_0x42a500(0x232)},{'id':_0x42a500(0x243),'label':_0x4b6f1e(_0x39993e,_0x42a500(0x242)),'prompt':_0x42a500(0x244)}]},{'groupId':_0x42a500(0x1f4),'groupLabel':_0x4b6f1e(_0x39993e,_0x42a500(0x221)),'commands':[{'id':_0x42a500(0x222),'label':_0x4b6f1e(_0x39993e,_0x42a500(0x230)),'prompt':_0x42a500(0x1f6)},{'id':_0x42a500(0x247),'label':_0x4b6f1e(_0x39993e,_0x42a500(0x256)),'prompt':_0x42a500(0x210)}]},{'groupId':_0x42a500(0x1ed),'groupLabel':_0x4b6f1e(_0x39993e,_0x42a500(0x23e)),'commands':[{'id':_0x42a500(0x20e),'label':_0x4b6f1e(_0x39993e,_0x42a500(0x236)),'prompt':_0x42a500(0x209)},{'id':_0x42a500(0x204),'label':_0x4b6f1e(_0x39993e,_0x42a500(0x252)),'prompt':_0x42a500(0x237)},{'id':_0x42a500(0x240),'label':_0x4b6f1e(_0x39993e,_0x42a500(0x22c)),'prompt':_0x42a500(0x23a)},{'id':_0x42a500(0x251),'label':_0x4b6f1e(_0x39993e,_0x42a500(0x225)),'prompt':_0x42a500(0x226)},{'id':_0x42a500(0x1fa),'label':_0x4b6f1e(_0x39993e,_0x42a500(0x258)),'prompt':_0x42a500(0x22a)}]},{'groupId':_0x42a500(0x206),'groupLabel':_0x4b6f1e(_0x39993e,_0x42a500(0x21e)),'commands':[{'id':_0x42a500(0x23c),'label':_0x4b6f1e(_0x39993e,_0x42a500(0x23d)),'prompt':_0x42a500(0x24d)},{'id':_0x42a500(0x235),'label':_0x4b6f1e(_0x39993e,_0x42a500(0x201)),'prompt':_0x42a500(0x220)},{'id':_0x42a500(0x21f),'label':_0x4b6f1e(_0x39993e,_0x42a500(0x1ff)),'prompt':_0x42a500(0x24f)},{'id':_0x42a500(0x23f),'label':_0x4b6f1e(_0x39993e,_0x42a500(0x1f5)),'prompt':_0x42a500(0x1fb)}]},{'groupId':_0x42a500(0x245),'groupLabel':_0x4b6f1e(_0x39993e,_0x42a500(0x214)),'commands':[{'id':_0x42a500(0x241),'label':_0x4b6f1e(_0x39993e,_0x42a500(0x216)),'prompt':_0x42a500(0x211)},{'id':_0x42a500(0x257),'label':_0x4b6f1e(_0x39993e,_0x42a500(0x1fc)),'prompt':_0x42a500(0x229)},{'id':_0x42a500(0x22d),'label':_0x4b6f1e(_0x39993e,_0x42a500(0x259)),'prompt':_0x42a500(0x223)},{'id':_0x42a500(0x228),'label':_0x4b6f1e(_0x39993e,_0x42a500(0x238)),'prompt':_0x42a500(0x1fd)},{'id':_0x42a500(0x227),'label':_0x4b6f1e(_0x39993e,_0x42a500(0x203)),'prompt':_0x42a500(0x219)},{'id':_0x42a500(0x22e),'label':_0x4b6f1e(_0x39993e,_0x42a500(0x215)),'prompt':_0x42a500(0x1f2)},{'id':_0x42a500(0x250),'label':_0x4b6f1e(_0x39993e,_0x42a500(0x20a)),'prompt':_0x42a500(0x20d)},{'id':_0x42a500(0x21d),'label':_0x4b6f1e(_0x39993e,_0x42a500(0x249)),'prompt':_0x42a500(0x1f7)}]}];}