@ckeditor/ckeditor5-ai 47.3.0-alpha.7 → 47.3.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 (123) 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/aiactionsinteraction.js +1 -1
  6. package/src/aiactions/model/aiactionsreply.js +1 -1
  7. package/src/aiassistant/adapters/aiadapter.js +1 -1
  8. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  9. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  10. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  11. package/src/aiassistant/aiassistant.js +1 -1
  12. package/src/aiassistant/aiassistantediting.js +1 -1
  13. package/src/aiassistant/aiassistantui.js +1 -1
  14. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  15. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  16. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  17. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  18. package/src/aiassistant/ui/form/aiformview.js +1 -1
  19. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  20. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  21. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  22. package/src/aiballoon/aiballoon.js +1 -1
  23. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  24. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  25. package/src/aiballoon/ui/aiballoonview.js +1 -1
  26. package/src/aichat/aichat.js +1 -1
  27. package/src/aichat/aichatcontroller.js +1 -1
  28. package/src/aichat/aichatui.js +1 -1
  29. package/src/aichat/model/aichatcontext.js +1 -1
  30. package/src/aichat/model/aichatconversation.js +1 -1
  31. package/src/aichat/model/aichatinteraction.js +1 -1
  32. package/src/aichat/model/aichatmodels.js +1 -1
  33. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  34. package/src/aichat/ui/aichatfeedview.js +1 -1
  35. package/src/aichat/ui/aichatheaderview.js +1 -1
  36. package/src/aichat/ui/aichatview.js +1 -1
  37. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  38. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  39. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  40. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  41. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  42. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  43. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  44. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  45. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  46. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  47. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  48. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  49. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  50. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  51. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  52. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  53. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  54. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  55. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  56. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  57. package/src/aichat/utils/eventnames.js +1 -1
  58. package/src/aichat/utils/promisequeue.js +1 -1
  59. package/src/aichathistory/aichathistory.js +1 -1
  60. package/src/aichathistory/aichathistorycontroller.js +1 -1
  61. package/src/aichathistory/aichathistoryui.js +1 -1
  62. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  63. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  64. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  65. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  66. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  67. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  68. package/src/aicore/aiconnector.js +1 -1
  69. package/src/aicore/aiediting.js +1 -1
  70. package/src/aicore/model/aicapabilities.js +1 -1
  71. package/src/aicore/model/aiinteraction.js +1 -1
  72. package/src/aicore/model/aimodels.js +1 -1
  73. package/src/aicore/model/aireply.js +1 -1
  74. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  75. package/src/aicore/pipeline/airesponseparser.js +2 -2
  76. package/src/aicore/ui/aidisclaimerview.js +1 -1
  77. package/src/aicore/ui/aiskeleton.js +1 -1
  78. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  79. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  80. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  81. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  82. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  83. package/src/aicore/utils/createresizebutton.js +1 -1
  84. package/src/aicore/utils/documentrange.js +1 -1
  85. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  86. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  87. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  88. package/src/aicore/utils/htmlparser.js +1 -1
  89. package/src/aicore/utils/htmlstreamer.js +1 -1
  90. package/src/aieditorintegration/aieditorintegration.js +1 -1
  91. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  92. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  93. package/src/aiquickactions/aiquickactions.js +1 -1
  94. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  95. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  96. package/src/aiquickactions/aiquickactionsui.js +1 -1
  97. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  98. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  99. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  100. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  101. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  102. package/src/aireviewmode/aireviewmode.js +1 -1
  103. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  104. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  105. package/src/aireviewmode/aireviewmodeui.js +1 -1
  106. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  107. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  108. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  109. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  110. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  111. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  112. package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
  113. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  114. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  115. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  116. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  117. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  118. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  119. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  120. package/src/aitabs/aitabs.js +1 -1
  121. package/src/aitabs/tabs/aitabsview.js +1 -1
  122. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  123. package/src/aitabs/tabs/tabpanelview.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-ai",
3
- "version": "47.3.0-alpha.7",
3
+ "version": "47.3.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.823.0",
32
- "@ckeditor/ckeditor5-clipboard": "47.3.0-alpha.7",
33
- "@ckeditor/ckeditor5-cloud-services": "47.3.0-alpha.7",
34
- "@ckeditor/ckeditor5-collaboration-core": "47.3.0-alpha.7",
35
- "@ckeditor/ckeditor5-core": "47.3.0-alpha.7",
36
- "@ckeditor/ckeditor5-engine": "47.3.0-alpha.7",
37
- "@ckeditor/ckeditor5-icons": "47.3.0-alpha.7",
38
- "@ckeditor/ckeditor5-markdown-gfm": "47.3.0-alpha.7",
39
- "@ckeditor/ckeditor5-table": "47.3.0-alpha.7",
40
- "@ckeditor/ckeditor5-theme-lark": "47.3.0-alpha.7",
41
- "@ckeditor/ckeditor5-ui": "47.3.0-alpha.7",
42
- "@ckeditor/ckeditor5-utils": "47.3.0-alpha.7",
43
- "@ckeditor/ckeditor5-real-time-collaboration": "47.3.0-alpha.7",
44
- "ckeditor5": "47.3.0-alpha.7",
45
- "ckeditor5-collaboration": "47.3.0-alpha.7",
32
+ "@ckeditor/ckeditor5-clipboard": "47.3.0",
33
+ "@ckeditor/ckeditor5-cloud-services": "47.3.0",
34
+ "@ckeditor/ckeditor5-collaboration-core": "47.3.0",
35
+ "@ckeditor/ckeditor5-core": "47.3.0",
36
+ "@ckeditor/ckeditor5-engine": "47.3.0",
37
+ "@ckeditor/ckeditor5-icons": "47.3.0",
38
+ "@ckeditor/ckeditor5-markdown-gfm": "47.3.0",
39
+ "@ckeditor/ckeditor5-table": "47.3.0",
40
+ "@ckeditor/ckeditor5-theme-lark": "47.3.0",
41
+ "@ckeditor/ckeditor5-ui": "47.3.0",
42
+ "@ckeditor/ckeditor5-utils": "47.3.0",
43
+ "@ckeditor/ckeditor5-real-time-collaboration": "47.3.0",
44
+ "ckeditor5": "47.3.0",
45
+ "ckeditor5-collaboration": "47.3.0",
46
46
  "es-toolkit": "1.39.5",
47
47
  "eventsource-parser": "3.0.2",
48
48
  "htmlparser2": "10.0.0",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x29b850=_0x12ff;(function(_0x4a895e,_0x16c879){const _0x2b1e3b=_0x12ff,_0x56905a=_0x4a895e();while(!![]){try{const _0x5a1860=-parseInt(_0x2b1e3b(0x234))/0x1*(-parseInt(_0x2b1e3b(0x1d6))/0x2)+parseInt(_0x2b1e3b(0x1e7))/0x3*(parseInt(_0x2b1e3b(0x22a))/0x4)+parseInt(_0x2b1e3b(0x262))/0x5*(-parseInt(_0x2b1e3b(0x223))/0x6)+parseInt(_0x2b1e3b(0x1c4))/0x7*(parseInt(_0x2b1e3b(0x275))/0x8)+-parseInt(_0x2b1e3b(0x1e2))/0x9+parseInt(_0x2b1e3b(0x1b4))/0xa*(-parseInt(_0x2b1e3b(0x1f0))/0xb)+parseInt(_0x2b1e3b(0x27c))/0xc;if(_0x5a1860===_0x16c879)break;else _0x56905a['push'](_0x56905a['shift']());}catch(_0x45766f){_0x56905a['push'](_0x56905a['shift']());}}}(_0x36e3,0xb93ef));import{Plugin as _0x809aed}from'ckeditor5/src/core.js';import{AIConnector as _0x4b8941}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x3fcdb2}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';function _0x36e3(){const _0x613cd8=['hideLoader','message','ai.availableReplyActions','error','slice','replies','1/1','_navigateToPrevious','startsWith','howMany','removeNavigationItem','_currentInteractionIndex','insert','Error\x20updating\x20content\x20during\x20navigation:','path','length','forEach','_clearLoadingState','pending','set','upsertAIActionRating','showLoader','interactionFinished','AI_ACTIONS_NEXT_INTERACTION','model','documentFragment','static','_customViews','_interactions','_interaction','stopInteraction','_createInteraction','nextSibling','has','locale','root','Attribute','_displayInteractionAtIndex','AI_ACTIONS_PREVIOUS_INTERACTION','isPremiumPlugin','ck-ai-interaction-counter','showChangesButton','getSelectedContent','isOfficialPlugin','position','getRanges','_getExecuteDataInTable','addNavigationItem','19692MFDtJz','getOperations','hasError','aiBalloon','applyOperation','end','operationsA','47524gGQKdS','getRoot','TrackChanges','parent','executeAction','balloonView','listenTo','$graveyard','getLimitElement','stopAutoScroll','15659EEQcrQ','_disableCustomViews','clone','includes','_interactionParams','close','getFirstRange','_refreshInteraction','map','Error\x20refreshing\x20interaction:','first','isEnabled','_children','random','_clearInteractionHistory','createPositionAt','setLoading','isDocumentOperation','element','createPositionBefore','_aiConnector','processor','abort','textContent','setTemplate','hasPendingParts','isBusy','getDocumentContext','_isNavigationPreviousButtonInView','_navigationPreviousButton','isCollapsed','_anchorOperation','history','stopListening','reinsert','getAncestors','_execute','split','TableSelection','_getExecuteDataRegular','span','mainView','Error\x20updating\x20content\x20in\x20replyContentUpdated:','requires','move','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','1005GolYKG','streaming','replyChangeGroupStateUpdated','nodeAfter','Error\x20updating\x20content\x20in\x20replyCreated:','filter','accepted','add','AIConnector','replyContentUpdated','getCommonAncestor','baseVersion','_appendChild','replyCreated','clearErrorState','showError','ck-ai-navigation-button\x20ck-ai-next-button','_isAbortError','_stopInteraction','8nBqxSL','selectionRemoved','getSelectionAsFragment','updateContent','stop','ck-ai-custom-action-button','toolbar','16320312DFXbZR','enqueue','range','plugins','_setErrorState','_clone','_applyChanges','_navigationCounter','rename','AIBalloon','get','indexOf','setErrorState','remove','_applyOperationsAsSuggestions','_executeAction','actionName','execute','AI_ACTIONS_GENERIC_ERROR','_clearSuggestionContent','type','editor','TrackChangesEditing','setSelection','queueEmptyPromise','data','change','rootName','_promiseQueue','start','merge','AIActions','_balloonShowDiff','selection','4510WPnzyY','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','_isNavigationCounterInView','open','miniToolbarView','_navigationNextButton','config','setChangeGroupState','sourcePosition','hideError','clearLoading','createPositionAfter','areChangesVisible','createRange','ai-request-aborted','icon','1701021mpxiGV','stickiness','state','changeGroups','applySuggestion','batch','_clearErrorState','getSelectedTableCells','isLoading','modelToViewWithIds','insertSuggestion','toData','bind','getChild','getChildAtOffset','_setLoadingState','_filterOperationsOutsideRange','toggleSuggestionDisplayMode','58YYfMVp','_wrapWithCommonAncestors','signal','bodyView','focus','catch','AI_ACTIONS_TRY_AGAIN','startAutoScroll','_isNavigationNextButtonInView','documentContextContent','_updateNavigationUI','_setupCustomViews','3475809GskqEj','version','upsertCustomAIActionRating','dialogClosed','ai-no-track-changes','45YqBBGN','push','actionCallId','ck-ai-navigation-button\x20ck-ai-previous-button','schema','getSelectedBlocks','_navigateToNext','rejected','pluginName','10505tCuwHi','addOperation','document'];_0x36e3=function(){return _0x613cd8;};return _0x36e3();}import{Dialog as _0x407cb2,ButtonView as _0x197995,ViewCollection as _0x11ec9e,View as _0x36dd8f}from'ckeditor5/src/ui.js';import{AIEditing as _0x4b4090}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x5df450}from'./model/aiactionsinteraction.js';import{CKEditorError as _0x25704a,first as _0x251ea3}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x4eb835,IconRefresh as _0x45f56f,IconNextArrow as _0x58f9c4,IconPreviousArrow as _0x5ddb6b,IconShowChangesOff as _0x4013b0}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x270f06}from'../aiballoon/aiballoon.js';function _0x12ff(_0xb56307,_0x2c788d){const _0x36e383=_0x36e3();return _0x12ff=function(_0x12ff4a,_0x2d12cc){_0x12ff4a=_0x12ff4a-0x1b3;let _0x23d7b9=_0x36e383[_0x12ff4a];return _0x23d7b9;},_0x12ff(_0xb56307,_0x2c788d);}import{PromiseQueue as _0x4f17b7}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x4f89fe}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x49ea10}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x3233b4}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0xf95b18,getOperationsFromReply as _0x3de8a7}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x5a7505,ModelRange as _0x19a245,ModelPosition as _0x41f1b2,_DetachOperation as _0x1e8805,transformOperationSets as _0x359e8b}from'ckeditor5/src/engine.js';import{AI_REPLY_ACTIONS as _0x83a4ce}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIActions extends _0x809aed{static get[_0x29b850(0x25f)](){return[_0x4b8941,_0x407cb2,_0x4b4090,_0x270f06,_0x3233b4];}static get[_0x29b850(0x1ef)](){const _0x385e3e=_0x29b850;return _0x385e3e(0x29b);}static get[_0x29b850(0x21e)](){return!0x0;}static get[_0x29b850(0x21a)](){return!0x0;}[_0x29b850(0x248)];[_0x29b850(0x20f)]=[];[_0x29b850(0x1fe)]=0x0;[_0x29b850(0x238)];[_0x29b850(0x29c)]=!0x1;[_0x29b850(0x20e)]=new _0x11ec9e();[_0x29b850(0x251)];[_0x29b850(0x283)];[_0x29b850(0x1b6)]=!0x1;[_0x29b850(0x1b9)];[_0x29b850(0x250)]=!0x1;[_0x29b850(0x1de)]=!0x1;[_0x29b850(0x298)];get[_0x29b850(0x210)](){const _0x5775ad=_0x29b850;return this[_0x5775ad(0x20f)][this[_0x5775ad(0x20f)][_0x5775ad(0x202)]-0x1];}constructor(_0x37a3a1){const _0x530ece=_0x29b850;super(_0x37a3a1),this[_0x530ece(0x248)]=this[_0x530ece(0x291)][_0x530ece(0x27f)][_0x530ece(0x286)](_0x530ece(0x26a)),this[_0x530ece(0x206)](_0x530ece(0x24e),!0x1),this[_0x530ece(0x298)]=new _0x4f17b7(),this[_0x530ece(0x1e1)]();}[_0x29b850(0x211)](){const _0x19641f=_0x29b850;this[_0x19641f(0x274)]();}async[_0x29b850(0x22e)](_0xffb427,_0x538e4e,_0x2ea5ba){const _0x1fc1be=_0x29b850;if(this[_0x1fc1be(0x291)][_0x1fc1be(0x27f)][_0x1fc1be(0x214)](_0x1fc1be(0x25a))){if(this[_0x1fc1be(0x291)][_0x1fc1be(0x27f)][_0x1fc1be(0x286)](_0x1fc1be(0x25a))[_0x1fc1be(0x1cb)]()){const {modelFragment:_0x2ca8bc,anchorData:_0x3033bb}=this[_0x1fc1be(0x221)]();return this[_0x1fc1be(0x28b)](_0xffb427,_0x2ca8bc,_0x3033bb,_0x538e4e,_0x2ea5ba);}}const {modelFragment:_0x4e9ab3,anchorData:_0x14be92}=this[_0x1fc1be(0x25b)]();return this[_0x1fc1be(0x28b)](_0xffb427,_0x4e9ab3,_0x14be92,_0x538e4e,_0x2ea5ba);}[_0x29b850(0x25b)](){const _0x100ecd=_0x29b850,_0x180763=this[_0x100ecd(0x291)][_0x100ecd(0x20b)][_0x100ecd(0x1f2)][_0x100ecd(0x1b3)];if(_0x180763[_0x100ecd(0x252)]){const _0x54af8b=_0x251ea3(_0x180763[_0x100ecd(0x1ec)]())||this[_0x100ecd(0x291)][_0x100ecd(0x20b)][_0x100ecd(0x1eb)][_0x100ecd(0x232)](_0x180763);this[_0x100ecd(0x291)][_0x100ecd(0x20b)][_0x100ecd(0x296)](_0x490f38=>{const _0x20b71f=_0x100ecd;_0x490f38[_0x20b71f(0x293)](_0x54af8b,'in');});}const _0x5a2044=_0x180763[_0x100ecd(0x23a)](),_0x38e721=this[_0x100ecd(0x1d7)](this[_0x100ecd(0x291)][_0x100ecd(0x20b)][_0x100ecd(0x21d)](_0x180763),_0x5a2044[_0x100ecd(0x299)],_0x5a2044[_0x100ecd(0x228)]),_0x16bbd4=_0x180763[_0x100ecd(0x23a)]()[_0x100ecd(0x299)],_0x16ea93=new Map();let _0x3bc6d9=_0x38e721;for(let _0x2d9241=0x0;_0x2d9241<_0x16bbd4[_0x100ecd(0x201)][_0x100ecd(0x202)];_0x2d9241++)_0x16ea93[_0x100ecd(0x206)](_0x3bc6d9,_0x16bbd4[_0x100ecd(0x201)][_0x2d9241]),_0x3bc6d9=_0x3bc6d9[_0x100ecd(0x1d1)](0x0);return{'modelFragment':_0x38e721,'anchorData':_0x16ea93};}[_0x29b850(0x221)](){const _0x385ed5=_0x29b850,_0xd46029=this[_0x385ed5(0x291)][_0x385ed5(0x20b)][_0x385ed5(0x1f2)][_0x385ed5(0x1b3)],_0x321ab1=this[_0x385ed5(0x291)][_0x385ed5(0x27f)][_0x385ed5(0x286)](_0x385ed5(0x25a))[_0x385ed5(0x277)](),_0x593b99=_0xd46029[_0x385ed5(0x23a)]()[_0x385ed5(0x299)][_0x385ed5(0x22d)][_0x385ed5(0x22d)],_0x210b9d=this[_0x385ed5(0x1d7)](_0x321ab1,this[_0x385ed5(0x291)][_0x385ed5(0x20b)][_0x385ed5(0x247)](_0x593b99),this[_0x385ed5(0x291)][_0x385ed5(0x20b)][_0x385ed5(0x1bf)](_0x593b99)),_0x4a403f=_0xd46029[_0x385ed5(0x23a)]()[_0x385ed5(0x299)],_0x470843=new Map();let _0x1ccb02=_0x210b9d;for(let _0xc48f9a=0x0;_0xc48f9a<_0x4a403f[_0x385ed5(0x201)][_0x385ed5(0x202)];_0xc48f9a++)if(_0x470843[_0x385ed5(0x206)](_0x1ccb02,_0x4a403f[_0x385ed5(0x201)][_0xc48f9a]),_0xc48f9a<_0x4a403f[_0x385ed5(0x201)][_0x385ed5(0x202)]-0x1)_0x1ccb02=_0x1ccb02[_0x385ed5(0x1d1)](0x0);else{let _0x2ad6a5=_0x1ccb02[_0x385ed5(0x213)];for(;_0x2ad6a5;)_0x470843[_0x385ed5(0x206)](_0x2ad6a5,_0x4a403f[_0x385ed5(0x201)][_0xc48f9a]),_0x2ad6a5=_0x2ad6a5[_0x385ed5(0x213)];}return{'modelFragment':_0x210b9d,'anchorData':_0x470843};}[_0x29b850(0x28b)](_0x3807e0,_0x542872,_0x93869,_0x169e61,_0x4d71ac){const _0x50eac5=_0x29b850,_0x575a31=this[_0x50eac5(0x291)][_0x50eac5(0x27f)][_0x50eac5(0x286)](_0x4b4090),_0x5b7ed0=this[_0x50eac5(0x291)][_0x50eac5(0x27f)][_0x50eac5(0x286)](_0x270f06),_0x17847f=this[_0x50eac5(0x291)][_0x50eac5(0x20b)][_0x50eac5(0x1f2)][_0x50eac5(0x1b3)],_0x5a49e1=_0x575a31[_0x50eac5(0x1cd)](_0x542872),_0x3c9834=this[_0x50eac5(0x291)][_0x50eac5(0x295)][_0x50eac5(0x249)][_0x50eac5(0x1cf)](_0x5a49e1),_0x20b7c6=this[_0x50eac5(0x291)][_0x50eac5(0x20b)][_0x50eac5(0x1f2)][_0x50eac5(0x1e3)],_0x1daf56=[..._0x17847f[_0x50eac5(0x220)]()];let _0x54d2b3=this[_0x50eac5(0x291)][_0x50eac5(0x1ba)][_0x50eac5(0x286)](_0x50eac5(0x1f5))||[..._0x83a4ce];this[_0x50eac5(0x291)][_0x50eac5(0x27f)][_0x50eac5(0x214)](_0x50eac5(0x22c))||(_0x54d2b3=_0x54d2b3[_0x50eac5(0x267)](_0x55f159=>_0x50eac5(0x1ce)!=_0x55f159));const _0x51acda=new _0x3fcdb2(this[_0x50eac5(0x291)][_0x50eac5(0x215)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x50eac5(0x1c3),'customView':this[_0x50eac5(0x20e)]},'showUnchangedParts':!0x0,'availableActions':_0x54d2b3});return _0x5b7ed0[_0x50eac5(0x1b7)]({'index':0x3e8*Math[_0x50eac5(0x241)]()%0x3e8,'title':_0x169e61,'icon':_0x4d71ac||_0x4eb835,'mainView':_0x51acda,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':this[_0x50eac5(0x291)][_0x50eac5(0x27f)][_0x50eac5(0x214)](_0x50eac5(0x22c)),'ranges':_0x1daf56}),this[_0x50eac5(0x1d3)](_0x51acda,_0x5b7ed0),this[_0x50eac5(0x230)](_0x5b7ed0,_0x50eac5(0x1c8),()=>{const _0x236a56=_0x50eac5;this[_0x236a56(0x282)](_0x542872,_0x93869,!0x1);}),this[_0x50eac5(0x230)](_0x5b7ed0,_0x50eac5(0x1ce),()=>{const _0x3608d2=_0x50eac5;this[_0x3608d2(0x282)](_0x542872,_0x93869,!0x0);}),this[_0x50eac5(0x230)](_0x5b7ed0,_0x50eac5(0x276),()=>{const _0x58e13e=_0x50eac5;this[_0x58e13e(0x274)](),this[_0x58e13e(0x235)]();}),this[_0x50eac5(0x230)](_0x5b7ed0,_0x50eac5(0x1e5),()=>{const _0xe41055=_0x50eac5;if(this[_0xe41055(0x210)]&&this[_0xe41055(0x210)][_0xe41055(0x1f8)][_0xe41055(0x202)]>0x0){const _0xd2ca37=this[_0xe41055(0x210)][_0xe41055(0x1f8)][this[_0xe41055(0x210)][_0xe41055(0x1f8)][_0xe41055(0x202)]-0x1],_0x3e7af1=_0xd2ca37[_0xe41055(0x1c7)][0x0];_0x3e7af1&&_0xe41055(0x205)===_0x3e7af1[_0xe41055(0x1c6)]&&_0xd2ca37[_0xe41055(0x1bb)](0x0,_0xe41055(0x1ee));}this[_0xe41055(0x274)](),this[_0xe41055(0x242)](),this[_0xe41055(0x255)](_0x5b7ed0);}),this[_0x50eac5(0x212)](_0x3c9834,_0x20b7c6,_0x51acda,_0x5b7ed0,_0x3807e0);}[_0x29b850(0x1d7)](_0x4d5560,_0x1cdb52,_0x4483d3){const _0x281304=_0x29b850,_0x2e701b=this[_0x281304(0x291)][_0x281304(0x20b)][_0x281304(0x1c1)](_0x1cdb52,_0x4483d3)[_0x281304(0x26c)](),_0x39bbdd=_0x2e701b['is'](_0x281304(0x20c))?[]:_0x2e701b[_0x281304(0x257)]({'includeSelf':!0x0})[_0x281304(0x1f7)](0x1);if(_0x39bbdd[_0x281304(0x202)]){const _0x1b9528=_0x39bbdd[_0x281304(0x23c)](_0x5e84d1=>_0x5e84d1[_0x281304(0x281)](!0x1));for(let _0x51553c=0x1;_0x51553c<_0x1b9528[_0x281304(0x202)];_0x51553c++)_0x1b9528[_0x51553c-0x1][_0x281304(0x26e)](_0x1b9528[_0x51553c]);return _0x1b9528[_0x1b9528[_0x281304(0x202)]-0x1][_0x281304(0x26e)](_0x4d5560),new _0x5a7505(_0x1b9528[0x0]);}return _0x4d5560;}async[_0x29b850(0x212)](_0x518538,_0x3a41a7,_0x32f9b5,_0x58b832,_0x1bcc90){const _0x4a29f6=_0x29b850,_0x436b70=this[_0x4a29f6(0x291)];this[_0x4a29f6(0x238)]={'action':_0x1bcc90,'content':_0x518538,'version':_0x3a41a7,'mainView':_0x32f9b5,'aiBalloon':_0x58b832};const _0x3c1617=new _0x5df450({'connector':this[_0x4a29f6(0x248)],'editor':_0x436b70,'content':_0x518538,'version':_0x3a41a7,..._0x1bcc90});this[_0x4a29f6(0x20f)][_0x4a29f6(0x1e8)](_0x3c1617),_0x32f9b5[_0x4a29f6(0x1bd)]();const _0x4e11b0=(_0xcd263b,_0x445a49,_0x16c90f=!0x1,_0x250569=_0x4a29f6(0x263))=>this[_0x4a29f6(0x298)][_0x4a29f6(0x27d)](async _0x2d153e=>{const _0x2735a3=_0x4a29f6;try{const _0x1dab75=_0x49ea10({'editor':_0x436b70,'changeGroups':_0xcd263b[_0x2735a3(0x1c7)],'documentContextContent':_0xcd263b[_0x2735a3(0x1df)],'showDiff':_0x16c90f,'trimUnchanged':!0x1});await _0x445a49[_0x2735a3(0x278)]({'parts':_0x1dab75,'renderingStrategy':_0x250569,'abortSignal':_0x2d153e});}catch(_0x59a2f8){if(this[_0x2735a3(0x273)](_0x59a2f8))return;throw _0x59a2f8;}});this[_0x4a29f6(0x210)]['on'](_0x4a29f6(0x26f),(_0x3cdf8c,_0x38ece3)=>{const _0x374719=_0x4a29f6;_0x32f9b5[_0x374719(0x1f3)](),_0x58b832[_0x374719(0x1dd)](),_0x4e11b0(_0x38ece3,_0x32f9b5)[_0x374719(0x1db)](_0x437d8c=>{const _0x25fb22=_0x374719;this[_0x25fb22(0x273)](_0x437d8c)||(console[_0x25fb22(0x1f6)](_0x25fb22(0x266),_0x437d8c),this[_0x25fb22(0x280)](_0x3c1617,_0x32f9b5));});}),this[_0x4a29f6(0x210)]['on'](_0x4a29f6(0x26b),(_0x58955b,_0x5e2b75)=>{const _0x48b0bd=_0x4a29f6;_0x4e11b0(_0x5e2b75,_0x32f9b5)[_0x48b0bd(0x1db)](_0x603999=>{const _0x47941e=_0x48b0bd;this[_0x47941e(0x273)](_0x603999)||(console[_0x47941e(0x1f6)](_0x47941e(0x25e),_0x603999),this[_0x47941e(0x280)](_0x3c1617,_0x32f9b5));});}),this[_0x4a29f6(0x210)]['on'](_0x4a29f6(0x209),async()=>{const _0x1d9eba=_0x4a29f6;try{await this[_0x1d9eba(0x204)](_0x32f9b5,_0x58b832),this[_0x1d9eba(0x1e0)](),await this[_0x1d9eba(0x298)][_0x1d9eba(0x294)];}catch(_0x416242){this[_0x1d9eba(0x273)](_0x416242)||(console[_0x1d9eba(0x1f6)](_0x1d9eba(0x1b5),_0x416242),this[_0x1d9eba(0x280)](_0x3c1617,_0x32f9b5));}finally{_0x58b832[_0x1d9eba(0x233)]();}}),this[_0x4a29f6(0x230)](_0x32f9b5,_0x4a29f6(0x1d5),async(_0x3ebbe9,{showDiff:_0xdb7ac3})=>{const _0x9898=_0x4a29f6;try{this[_0x9898(0x29c)]=_0xdb7ac3;const _0x422e50=this[_0x9898(0x210)][_0x9898(0x1f8)][this[_0x9898(0x210)][_0x9898(0x1f8)][_0x9898(0x202)]-0x1];_0x422e50&&await _0x4e11b0(_0x422e50,_0x32f9b5,_0xdb7ac3,_0x9898(0x20d));}catch(_0x5ebae){this[_0x9898(0x273)](_0x5ebae)||(console[_0x9898(0x1f6)](_0x9898(0x261),_0x5ebae),this[_0x9898(0x280)](_0x3c1617,_0x32f9b5));}}),this[_0x4a29f6(0x210)]['on'](_0x4a29f6(0x264),(_0x13e6de,{reply:_0x377275})=>{const _0x18b871=_0x4a29f6,_0x1d35e7={'positiveCount':_0x377275[_0x18b871(0x1c7)][_0x18b871(0x267)](_0xaeb5b4=>_0x18b871(0x268)===_0xaeb5b4[_0x18b871(0x1c6)])[_0x18b871(0x202)],'totalCount':_0x377275[_0x18b871(0x1c7)][_0x18b871(0x202)]},_0x669699=this[_0x18b871(0x210)][_0x18b871(0x1e9)],_0x5af7a8=this[_0x18b871(0x210)][_0x18b871(0x28c)];_0x5af7a8?this[_0x18b871(0x248)][_0x18b871(0x207)](_0x5af7a8,_0x669699,_0x1d35e7):this[_0x18b871(0x248)][_0x18b871(0x1e4)](_0x669699,_0x1d35e7);}),this[_0x4a29f6(0x1d3)](_0x32f9b5,_0x58b832);try{const _0x42ef6b=await this[_0x4a29f6(0x210)][_0x4a29f6(0x299)]();return this[_0x4a29f6(0x1e0)](),_0x42ef6b;}catch(_0x573ec4){if(this[_0x4a29f6(0x273)](_0x573ec4))return;_0x32f9b5[_0x4a29f6(0x1f3)](),this[_0x4a29f6(0x280)](_0x3c1617,_0x32f9b5);}}[_0x29b850(0x282)](_0x597d8e,_0x1b77ba,_0x4d60d9){const _0x559725=_0x29b850,_0x2fc8fe=this[_0x559725(0x291)];if(_0x4d60d9&&!_0x2fc8fe[_0x559725(0x27f)][_0x559725(0x214)](_0x559725(0x22c)))throw new _0x25704a(_0x559725(0x1e6),null);const _0xc7b72f=this[_0x559725(0x291)][_0x559725(0x27f)][_0x559725(0x286)](_0x3233b4),_0x38de5f=this[_0x559725(0x210)],_0x53eb20=this[_0x559725(0x210)][_0x559725(0x1f8)][this[_0x559725(0x210)][_0x559725(0x1f8)][_0x559725(0x202)]-0x1],_0x33e033=_0x53eb20[_0x559725(0x1c7)];_0x53eb20[_0x559725(0x1bb)](0x0,_0x559725(0x268));let _0x4f6242=_0x3de8a7({'editor':_0x2fc8fe,'reply':_0x53eb20,'interaction':_0x38de5f,'groups':_0x33e033,'transform':!0x1,'documentCompare':_0xc7b72f,'documentCompareOptions':{'anchor':_0x2fc8fe[_0x559725(0x20b)][_0x559725(0x243)](_0x597d8e,0x0),'markDeletions':_0x4d60d9}});_0x4f6242=this[_0x559725(0x1d4)](_0x4f6242,_0x1b77ba);for(const _0x34bcad of _0x4f6242)this[_0x559725(0x253)](_0x1b77ba,_0x34bcad,_0x2fc8fe[_0x559725(0x20b)][_0x559725(0x1f2)][_0x559725(0x22b)]());const _0x5ed7db=_0x38de5f[_0x559725(0x24f)]()[_0x559725(0x1e3)],_0x4a7b9a=_0x2fc8fe[_0x559725(0x20b)][_0x559725(0x1f2)][_0x559725(0x254)][_0x559725(0x224)](_0x5ed7db),_0x2dceff={'document':_0x2fc8fe[_0x559725(0x20b)][_0x559725(0x1f2)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x23a8b0=_0x359e8b(_0x4f6242,_0x4a7b9a,_0x2dceff)[_0x559725(0x229)];_0x2fc8fe[_0x559725(0x20b)][_0x559725(0x296)](_0x5815ae=>{const _0xa8162f=_0x559725;if(_0x5815ae[_0xa8162f(0x293)](_0x2fc8fe[_0xa8162f(0x20b)][_0xa8162f(0x1f2)][_0xa8162f(0x1b3)][_0xa8162f(0x1da)]),_0x4d60d9)_0x2fc8fe[_0xa8162f(0x27f)][_0xa8162f(0x286)](_0xa8162f(0x292))[_0xa8162f(0x28a)](_0x23a8b0);else{for(const _0x32d40f of _0x23a8b0)_0x32d40f[_0xa8162f(0x26d)]=_0x2fc8fe[_0xa8162f(0x20b)][_0xa8162f(0x1f2)][_0xa8162f(0x1e3)],_0xf95b18(_0x2fc8fe,_0x32d40f),_0x5815ae[_0xa8162f(0x1c9)][_0xa8162f(0x1f1)](_0x32d40f),_0x2fc8fe[_0xa8162f(0x20b)][_0xa8162f(0x227)](_0x32d40f);}}),this[_0x559725(0x291)][_0x559725(0x27f)][_0x559725(0x286)](_0x559725(0x285))[_0x559725(0x239)]();}[_0x29b850(0x1d4)](_0x17c3be,_0x12df39){const _0x57433e=_0x29b850;return _0x17c3be[_0x57433e(0x267)](_0x27c4ae=>{const _0x11d4b3=_0x57433e;if(_0x11d4b3(0x284)==_0x27c4ae[_0x11d4b3(0x290)]){const _0x3db492=_0x27c4ae[_0x11d4b3(0x21f)][_0x11d4b3(0x265)];return!_0x12df39[_0x11d4b3(0x214)](_0x3db492);}if(_0x27c4ae[_0x11d4b3(0x290)][_0x11d4b3(0x287)](_0x11d4b3(0x217))>-0x1){const _0x4ac251=_0x27c4ae[_0x11d4b3(0x27e)][_0x11d4b3(0x299)][_0x11d4b3(0x265)];return!_0x12df39[_0x11d4b3(0x214)](_0x4ac251);}return!0x0;});}[_0x29b850(0x253)](_0x3923e0,_0xd3cc9b,_0x505928){const _0x3268c9=_0x29b850,_0xfab994=_0xd3cc9b[_0x3268c9(0x236)]();for(const _0x44c0c6 in _0xd3cc9b){const _0x1d968f=_0xd3cc9b[_0x44c0c6];_0x1d968f instanceof _0x19a245?_0xd3cc9b[_0x44c0c6]=new _0x19a245(_0xaa654d(_0x1d968f[_0x3268c9(0x299)]),_0xaa654d(_0x1d968f[_0x3268c9(0x228)])):_0x1d968f instanceof _0x41f1b2&&(_0xd3cc9b[_0x44c0c6]=_0xaa654d(_0x1d968f));}if([_0x3268c9(0x1ff),_0x3268c9(0x260),_0x3268c9(0x289),_0x3268c9(0x256),_0x3268c9(0x259),_0x3268c9(0x29a)][_0x3268c9(0x237)](_0xfab994[_0x3268c9(0x290)])){if(_0xfab994[_0x3268c9(0x245)]=!0x1,_0xfab994[_0x3268c9(0x26d)]=null,_0x3268c9(0x289)==_0xfab994[_0x3268c9(0x290)]){const _0x400fed=_0xfab994[_0x3268c9(0x1bc)],_0x56116e=_0xfab994[_0x3268c9(0x1fc)];new _0x1e8805(_0x400fed,_0x56116e)[_0x3268c9(0x258)]();}else _0xfab994[_0x3268c9(0x258)]();}function _0xaa654d(_0x245b2b){const _0xfa37b1=_0x3268c9;if(_0xfa37b1(0x231)==_0x245b2b[_0xfa37b1(0x216)][_0xfa37b1(0x297)])return _0x245b2b;const _0x30efd6=[];let _0x1a4850=_0x245b2b[_0xfa37b1(0x216)];for(let _0x2b1643=0x0;_0x2b1643<_0x245b2b[_0xfa37b1(0x201)][_0xfa37b1(0x202)];_0x2b1643++){const _0x26e53f=_0x3923e0[_0xfa37b1(0x286)](_0x1a4850)||0x0;_0x30efd6[_0x2b1643]=_0x245b2b[_0xfa37b1(0x201)][_0x2b1643]+_0x26e53f,_0x1a4850=_0x1a4850[_0xfa37b1(0x1d2)](_0x245b2b[_0xfa37b1(0x201)][_0x2b1643]);}return new _0x41f1b2(_0x505928,_0x30efd6,_0x245b2b[_0xfa37b1(0x1c5)]);}}[_0x29b850(0x23b)](){const _0x1b6cba=_0x29b850;if(!this[_0x1b6cba(0x238)])return;this[_0x1b6cba(0x20f)][_0x1b6cba(0x202)]>0x0&&this[_0x1b6cba(0x274)](),this[_0x1b6cba(0x1fe)]=0x0,this[_0x1b6cba(0x29c)]=!0x1;const {action:_0x449efd,content:_0x1580ef,version:_0x2c7820,mainView:_0x1f3229,aiBalloon:_0x22b3d5}=this[_0x1b6cba(0x238)];_0x1f3229[_0x1b6cba(0x1c0)]=!0x1,_0x1f3229[_0x1b6cba(0x1bd)](),this[_0x1b6cba(0x1ca)](_0x1f3229,_0x22b3d5);const _0x568b7d=_0x1f3229;_0x568b7d[_0x1b6cba(0x1b8)]&&_0x568b7d[_0x1b6cba(0x1b8)][_0x1b6cba(0x21c)]&&_0x568b7d[_0x1b6cba(0x1b8)][_0x1b6cba(0x21c)][_0x1b6cba(0x206)]({'isOn':!0x1,'icon':_0x4013b0}),this[_0x1b6cba(0x28f)](_0x1f3229),_0x1f3229[_0x1b6cba(0x208)](),this[_0x1b6cba(0x1e0)](),this[_0x1b6cba(0x255)](_0x1f3229),this[_0x1b6cba(0x212)](_0x1580ef,_0x2c7820,_0x1f3229,_0x22b3d5,_0x449efd)[_0x1b6cba(0x1db)](_0x49b423=>{const _0x1df3a1=_0x1b6cba;this[_0x1df3a1(0x273)](_0x49b423)||console[_0x1df3a1(0x1f6)](_0x1df3a1(0x23d),_0x49b423);});}[_0x29b850(0x28f)](_0x2a2180){const _0x21bbf0=_0x29b850,_0xd99c3d=_0x2a2180[_0x21bbf0(0x1d9)][_0x21bbf0(0x240)];for(;_0xd99c3d[_0x21bbf0(0x202)]>0x0;)_0xd99c3d[_0x21bbf0(0x289)](_0xd99c3d[_0x21bbf0(0x23e)]);_0x2a2180[_0x21bbf0(0x1d9)][_0x21bbf0(0x24d)]=!0x1;}[_0x29b850(0x273)](_0x5515a8){const _0x4b1afc=_0x29b850;return!!_0x5515a8[_0x4b1afc(0x1f4)]&&_0x5515a8[_0x4b1afc(0x1f4)][_0x4b1afc(0x1fb)](_0x4b1afc(0x1c2));}[_0x29b850(0x242)](){const _0x5439f0=_0x29b850;this[_0x5439f0(0x20f)]=[],this[_0x5439f0(0x238)]=void 0x0,this[_0x5439f0(0x1fe)]=0x0,this[_0x5439f0(0x1e0)]();}[_0x29b850(0x274)](){const _0x29bd98=_0x29b850;this[_0x29bd98(0x210)]&&this[_0x29bd98(0x210)][_0x29bd98(0x279)](),this[_0x29bd98(0x298)][_0x29bd98(0x24a)](),this[_0x29bd98(0x24e)]=!0x1,this[_0x29bd98(0x238)]&&this[_0x29bd98(0x238)][_0x29bd98(0x226)][_0x29bd98(0x233)]();}[_0x29b850(0x1e1)](){const _0x58e232=_0x29b850,_0x42336c=new _0x197995(this[_0x58e232(0x291)][_0x58e232(0x215)]),_0x299494=new _0x197995(this[_0x58e232(0x291)][_0x58e232(0x215)]),_0x21210c=new _0x36dd8f(this[_0x58e232(0x291)][_0x58e232(0x215)]),_0x27ad4a=new _0x197995(this[_0x58e232(0x291)][_0x58e232(0x215)]);_0x42336c[_0x58e232(0x206)]({'icon':_0x45f56f,'label':_0x4f89fe(this[_0x58e232(0x291)][_0x58e232(0x215)],_0x58e232(0x1dc)),'tooltip':!0x0,'class':_0x58e232(0x27a)}),_0x299494[_0x58e232(0x206)]({'icon':_0x5ddb6b,'tooltip':_0x4f89fe(this[_0x58e232(0x291)][_0x58e232(0x215)],_0x58e232(0x219)),'class':_0x58e232(0x1ea)}),_0x21210c[_0x58e232(0x24c)]({'tag':_0x58e232(0x25c),'attributes':{'class':[_0x58e232(0x21b)]},'children':[_0x58e232(0x1f9)]}),_0x27ad4a[_0x58e232(0x206)]({'icon':_0x58f9c4,'tooltip':_0x4f89fe(this[_0x58e232(0x291)][_0x58e232(0x215)],_0x58e232(0x20a)),'class':_0x58e232(0x272)}),_0x42336c[_0x58e232(0x1d0)](_0x58e232(0x23f))['to'](this,_0x58e232(0x24e),_0x267083=>!_0x267083),_0x42336c['on'](_0x58e232(0x28d),()=>{const _0x5c359b=_0x58e232;this[_0x5c359b(0x23b)]();}),_0x299494[_0x58e232(0x1d0)](_0x58e232(0x23f))['to'](this,_0x58e232(0x24e),_0x57fbd9=>!_0x57fbd9),_0x299494['on'](_0x58e232(0x28d),()=>{const _0x419881=_0x58e232;this[_0x419881(0x1fa)]();}),_0x27ad4a[_0x58e232(0x1d0)](_0x58e232(0x23f))['to'](this,_0x58e232(0x24e),_0x2dd2b2=>!_0x2dd2b2),_0x27ad4a['on'](_0x58e232(0x28d),()=>{const _0x37b698=_0x58e232;this[_0x37b698(0x1ed)]();}),this[_0x58e232(0x251)]=_0x299494,this[_0x58e232(0x283)]=_0x21210c,this[_0x58e232(0x1b9)]=_0x27ad4a,this[_0x58e232(0x20e)][_0x58e232(0x269)](_0x42336c);}[_0x29b850(0x1fa)](){const _0x185ca6=_0x29b850,_0x34a1e3=this[_0x185ca6(0x20f)][_0x185ca6(0x202)];this[_0x185ca6(0x1fe)]<_0x34a1e3-0x1&&this[_0x185ca6(0x218)](this[_0x185ca6(0x1fe)]+0x1);}[_0x29b850(0x1ed)](){const _0x6878f6=_0x29b850;this[_0x6878f6(0x1fe)]>0x0&&this[_0x6878f6(0x218)](this[_0x6878f6(0x1fe)]-0x1);}async[_0x29b850(0x218)](_0x1bc63e){const _0x202800=_0x29b850;if(!this[_0x202800(0x238)])return;this[_0x202800(0x1fe)]=_0x1bc63e;const {mainView:_0x39f57f}=this[_0x202800(0x238)],_0xfb1144=this[_0x202800(0x20f)][this[_0x202800(0x20f)][_0x202800(0x202)]-0x1-this[_0x202800(0x1fe)]];if(!_0xfb1144)return;if(_0xfb1144[_0x202800(0x225)])return this[_0x202800(0x280)](_0xfb1144,_0x39f57f),void this[_0x202800(0x1e0)]();if(!_0xfb1144[_0x202800(0x1f8)][_0x202800(0x202)])return;_0x39f57f[_0x202800(0x1bd)](),this[_0x202800(0x238)]&&this[_0x202800(0x1ca)](_0x39f57f,this[_0x202800(0x238)][_0x202800(0x226)]);const _0x328522=_0xfb1144[_0x202800(0x1f8)][_0xfb1144[_0x202800(0x1f8)][_0x202800(0x202)]-0x1];if(_0x328522){const _0x2b94ad=this[_0x202800(0x291)];this[_0x202800(0x28f)](_0x39f57f);try{const _0x27cc36=_0x49ea10({'editor':_0x2b94ad,'changeGroups':_0x328522[_0x202800(0x1c7)],'documentContextContent':_0x328522[_0x202800(0x1df)],'showDiff':this[_0x202800(0x29c)],'trimUnchanged':!0x1});this[_0x202800(0x28f)](_0x39f57f),await new Promise(_0x5b1994=>setTimeout(_0x5b1994,0x32)),await _0x39f57f[_0x202800(0x278)]({'parts':_0x27cc36,'renderingStrategy':_0x202800(0x20d),'abortSignal':new AbortController()[_0x202800(0x1d8)]});}catch(_0x3403c6){this[_0x202800(0x273)](_0x3403c6)||console[_0x202800(0x1f6)](_0x202800(0x200),_0x3403c6);}}this[_0x202800(0x1e0)]();}[_0x29b850(0x1e0)](){const _0x26d2e9=_0x29b850;if(!this[_0x26d2e9(0x251)]||!this[_0x26d2e9(0x283)]||!this[_0x26d2e9(0x1b9)])return;const _0x4b4037=this[_0x26d2e9(0x20f)][_0x26d2e9(0x202)],_0x387fc2=_0x4b4037>0x1,_0x3d701f=this[_0x26d2e9(0x238)]?.[_0x26d2e9(0x25d)];if(_0x387fc2){this[_0x26d2e9(0x250)]||this[_0x26d2e9(0x1b6)]||this[_0x26d2e9(0x1de)]||(this[_0x26d2e9(0x20e)][_0x26d2e9(0x269)](this[_0x26d2e9(0x251)]),_0x3d701f?.[_0x26d2e9(0x222)](this[_0x26d2e9(0x251)]),this[_0x26d2e9(0x250)]=!0x0,this[_0x26d2e9(0x20e)][_0x26d2e9(0x269)](this[_0x26d2e9(0x283)]),_0x3d701f?.[_0x26d2e9(0x222)](this[_0x26d2e9(0x283)]),this[_0x26d2e9(0x1b6)]=!0x0,this[_0x26d2e9(0x20e)][_0x26d2e9(0x269)](this[_0x26d2e9(0x1b9)]),_0x3d701f?.[_0x26d2e9(0x222)](this[_0x26d2e9(0x1b9)]),this[_0x26d2e9(0x1de)]=!0x0);const _0x3eab40=_0x4b4037-this[_0x26d2e9(0x1fe)];this[_0x26d2e9(0x283)][_0x26d2e9(0x246)]&&(this[_0x26d2e9(0x283)][_0x26d2e9(0x246)][_0x26d2e9(0x24b)]=_0x3eab40+'/'+_0x4b4037),this[_0x26d2e9(0x251)][_0x26d2e9(0x23f)]=this[_0x26d2e9(0x1fe)]<_0x4b4037-0x1,this[_0x26d2e9(0x1b9)][_0x26d2e9(0x23f)]=this[_0x26d2e9(0x1fe)]>0x0;}else(this[_0x26d2e9(0x250)]||this[_0x26d2e9(0x1b6)]||this[_0x26d2e9(0x1de)])&&(this[_0x26d2e9(0x20e)][_0x26d2e9(0x289)](this[_0x26d2e9(0x251)]),_0x3d701f?.[_0x26d2e9(0x1fd)](this[_0x26d2e9(0x251)]),this[_0x26d2e9(0x250)]=!0x1,this[_0x26d2e9(0x20e)][_0x26d2e9(0x289)](this[_0x26d2e9(0x283)]),_0x3d701f?.[_0x26d2e9(0x1fd)](this[_0x26d2e9(0x283)]),this[_0x26d2e9(0x1b6)]=!0x1,this[_0x26d2e9(0x20e)][_0x26d2e9(0x289)](this[_0x26d2e9(0x1b9)]),_0x3d701f?.[_0x26d2e9(0x1fd)](this[_0x26d2e9(0x1b9)]),this[_0x26d2e9(0x1de)]=!0x1);}[_0x29b850(0x1d3)](_0x2e899d,_0x1ddfe4){const _0x551779=_0x29b850;_0x2e899d[_0x551779(0x244)](),_0x1ddfe4[_0x551779(0x22f)][_0x551779(0x244)](),this[_0x551779(0x24e)]=!0x0;}async[_0x29b850(0x280)](_0x4dd27c,_0x4742e2){const _0x45d80d=_0x29b850,_0x5f2686=_0x4f89fe(this[_0x45d80d(0x291)][_0x45d80d(0x215)],_0x45d80d(0x28e));_0x4742e2[_0x45d80d(0x271)](_0x5f2686),_0x4dd27c[_0x45d80d(0x225)]=!0x0,await this[_0x45d80d(0x298)][_0x45d80d(0x294)],_0x4742e2[_0x45d80d(0x288)](),this[_0x45d80d(0x238)]?.[_0x45d80d(0x226)][_0x45d80d(0x22f)][_0x45d80d(0x27b)]&&(this[_0x45d80d(0x238)][_0x45d80d(0x226)][_0x45d80d(0x22f)][_0x45d80d(0x27b)][_0x45d80d(0x1cc)]=!0x0);}[_0x29b850(0x1ca)](_0x4639b7,_0x4d3262){const _0x2f538e=_0x29b850;_0x4639b7[_0x2f538e(0x270)](),_0x4d3262[_0x2f538e(0x22f)][_0x2f538e(0x27b)]&&(_0x4d3262[_0x2f538e(0x22f)][_0x2f538e(0x27b)][_0x2f538e(0x1cc)]=!0x1);}async[_0x29b850(0x204)](_0x5a11e6,_0x4e4900){const _0x25e240=_0x29b850;await this[_0x25e240(0x298)][_0x25e240(0x294)],this[_0x25e240(0x24e)]=!0x1,_0x5a11e6[_0x25e240(0x1be)](),_0x4e4900[_0x25e240(0x22f)][_0x25e240(0x1be)]();}[_0x29b850(0x235)](){const _0x122843=_0x29b850;this[_0x122843(0x20e)][_0x122843(0x203)](_0x5b06b3=>{const _0x2b794e=_0x122843;_0x2b794e(0x23f)in _0x5b06b3&&(_0x5b06b3[_0x2b794e(0x23f)]=!0x1);});}}
23
+ function _0x9f90(){const _0x106f5c=['first','execute','position','getLimitElement','TrackChangesEditing','setErrorState','replies','TableSelection','focus','bind','batch','message','version','_clone','mainView','45WjKwCA','AIConnector','getAncestors','end','_createInteraction','$graveyard','showLoader','slice','isDocumentOperation','_displayInteractionAtIndex','history','_interactionParams','_balloonShowDiff','getOperations','areChangesVisible','isEnabled','735942QijEDw','isBusy','push','applySuggestion','editor','ck-ai-interaction-counter','createRange','_clearSuggestionContent','852490Emgnse','getRoot','createPositionAfter','data','actionName','processor','howMany','isLoading','miniToolbarView','remove','sourcePosition','rejected','state','42583892vDCLNJ','replyCreated','showError','8gzNWwJ','_isNavigationNextButtonInView','_navigationPreviousButton','_stopInteraction','addNavigationItem','listenTo','_getExecuteDataInTable','_anchorOperation','_isNavigationPreviousButtonInView','stickiness','_executeAction','includes','_updateNavigationUI','getSelectedBlocks','clearErrorState','_interaction','queueEmptyPromise','indexOf','_execute','catch','527628mFdmzB','type','194531PcDblj','ck-ai-navigation-button\x20ck-ai-next-button','rename','_clearErrorState','forEach','ck-ai-custom-action-button','reinsert','startAutoScroll','insertSuggestion','ck-ai-navigation-button\x20ck-ai-previous-button','AI_ACTIONS_PREVIOUS_INTERACTION','add','_applyChanges','Error\x20refreshing\x20interaction:','isOfficialPlugin','Error\x20updating\x20content\x20during\x20navigation:','6gPMAJU','isPremiumPlugin','root','model','_clearInteractionHistory','rootName','getChild','_isAbortError','merge','interactionFinished','locale','map','_setupCustomViews','Attribute','get','baseVersion','hideError','84472rOSDMO','textContent','close','hasError','executeAction','Error\x20updating\x20content\x20in\x20replyContentUpdated:','icon','_aiConnector','469gpQcTC','change','toolbar','modelToViewWithIds','setChangeGroupState','getFirstRange','AIBalloon','pending','_navigationNextButton','clone','aiBalloon','getRanges','hideLoader','element','clearLoading','enqueue','_interactions','nodeAfter','createPositionAt','length','addOperation','upsertAIActionRating','replyContentUpdated','path','documentFragment','_customViews','config','split','AI_ACTIONS_GENERIC_ERROR','_navigationCounter','actionCallId','_refreshInteraction','startsWith','requires','_setErrorState','range','getSelectionAsFragment','ai.availableReplyActions','parent','documentContextContent','TrackChanges','insert','accepted','nextSibling','selectionRemoved','AI_ACTIONS_TRY_AGAIN','start','document','random','_promiseQueue','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','applyOperation','schema','_currentInteractionIndex','723264DfHIeS','getChildAtOffset','_disableCustomViews','changeGroups','stopInteraction','toggleSuggestionDisplayMode','getDocumentContext','streaming','_filterOperationsOutsideRange','signal','open','110Tjfnar','getSelectedContent','createPositionBefore','_clearLoadingState','set','Error\x20updating\x20content\x20in\x20replyCreated:','_navigateToNext','_applyOperationsAsSuggestions','AIActions','getSelectedTableCells','static','balloonView','move','replyChangeGroupStateUpdated','_wrapWithCommonAncestors','35vlUDPo','dialogClosed','bodyView','pluginName','ai-request-aborted','error','_children','upsertCustomAIActionRating','abort','getCommonAncestor','_setLoadingState','updateContent','toData','stopAutoScroll','filter','AI_ACTIONS_NEXT_INTERACTION','isCollapsed','removeNavigationItem','selection','_getExecuteDataRegular','showChangesButton','hasPendingParts','span','_isNavigationCounterInView','_navigateToPrevious','ai-no-track-changes','setLoading','setSelection','1/1','stop','_appendChild','stopListening','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','setTemplate','plugins','operationsA','has'];_0x9f90=function(){return _0x106f5c;};return _0x9f90();}const _0x560db3=_0x1176;(function(_0x2d4673,_0x558328){const _0x40160c=_0x1176,_0x36fb28=_0x2d4673();while(!![]){try{const _0x46944a=-parseInt(_0x40160c(0x1b1))/0x1*(parseInt(_0x40160c(0x1c1))/0x2)+-parseInt(_0x40160c(0x1af))/0x3*(-parseInt(_0x40160c(0x19b))/0x4)+-parseInt(_0x40160c(0x13f))/0x5*(parseInt(_0x40160c(0x183))/0x6)+parseInt(_0x40160c(0xef))/0x7*(-parseInt(_0x40160c(0xe7))/0x8)+-parseInt(_0x40160c(0x173))/0x9*(parseInt(_0x40160c(0x18b))/0xa)+parseInt(_0x40160c(0x130))/0xb*(-parseInt(_0x40160c(0x125))/0xc)+parseInt(_0x40160c(0x198))/0xd;if(_0x46944a===_0x558328)break;else _0x36fb28['push'](_0x36fb28['shift']());}catch(_0x6d09c){_0x36fb28['push'](_0x36fb28['shift']());}}}(_0x9f90,0x6d93a));import{Plugin as _0x155a29}from'ckeditor5/src/core.js';import{AIConnector as _0x22fa35}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x1cc655}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x3ccbb4,ButtonView as _0x45fc67,ViewCollection as _0x4d9151,View as _0x2a0efa}from'ckeditor5/src/ui.js';import{AIEditing as _0x4fd8af}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x4e902f}from'./model/aiactionsinteraction.js';import{CKEditorError as _0x159e3f,first as _0xf706e5}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x512262,IconRefresh as _0x4b2471,IconNextArrow as _0x49f0b5,IconPreviousArrow as _0x561973,IconShowChangesOff as _0x1fa255}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x1b1b23}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x21a9e1}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x45d4d1}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x44374e}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x523407}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x342f4b,getOperationsFromReply as _0x24bfd0}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x5c421e,ModelRange as _0x1fbe8e,ModelPosition as _0x5ef448,_DetachOperation as _0x2f80fb,transformOperationSets as _0x249a0d}from'ckeditor5/src/engine.js';function _0x1176(_0x495fbd,_0x15731d){const _0x9f904e=_0x9f90();return _0x1176=function(_0x117628,_0x26db90){_0x117628=_0x117628-0xe6;let _0x1cf67c=_0x9f904e[_0x117628];return _0x1cf67c;},_0x1176(_0x495fbd,_0x15731d);}import{AI_REPLY_ACTIONS as _0x140a47}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIActions extends _0x155a29{static get[_0x560db3(0x110)](){return[_0x22fa35,_0x3ccbb4,_0x4fd8af,_0x1b1b23,_0x523407];}static get[_0x560db3(0x142)](){const _0x1271fa=_0x560db3;return _0x1271fa(0x138);}static get[_0x560db3(0x1bf)](){return!0x0;}static get[_0x560db3(0x1c2)](){return!0x0;}[_0x560db3(0xee)];[_0x560db3(0xff)]=[];[_0x560db3(0x124)]=0x0;[_0x560db3(0x17e)];[_0x560db3(0x17f)]=!0x1;[_0x560db3(0x108)]=new _0x4d9151();[_0x560db3(0x19d)];[_0x560db3(0x10c)];[_0x560db3(0x156)]=!0x1;[_0x560db3(0xf7)];[_0x560db3(0x1a3)]=!0x1;[_0x560db3(0x19c)]=!0x1;[_0x560db3(0x120)];get[_0x560db3(0x1aa)](){const _0x1749f2=_0x560db3;return this[_0x1749f2(0xff)][this[_0x1749f2(0xff)][_0x1749f2(0x102)]-0x1];}constructor(_0x2f4d68){const _0x4c880c=_0x560db3;super(_0x2f4d68),this[_0x4c880c(0xee)]=this[_0x4c880c(0x187)][_0x4c880c(0x161)][_0x4c880c(0x1cf)](_0x4c880c(0x174)),this[_0x4c880c(0x134)](_0x4c880c(0x184),!0x1),this[_0x4c880c(0x120)]=new _0x21a9e1(),this[_0x4c880c(0x1cd)]();}[_0x560db3(0x129)](){const _0x2ecba8=_0x560db3;this[_0x2ecba8(0x19e)]();}async[_0x560db3(0xeb)](_0x33607d,_0x569ece,_0x105b74){const _0xf76808=_0x560db3;if(this[_0xf76808(0x187)][_0xf76808(0x161)][_0xf76808(0x163)](_0xf76808(0x16b))){if(this[_0xf76808(0x187)][_0xf76808(0x161)][_0xf76808(0x1cf)](_0xf76808(0x16b))[_0xf76808(0x139)]()){const {modelFragment:_0x379380,anchorData:_0x5a9924}=this[_0xf76808(0x1a1)]();return this[_0xf76808(0x1a5)](_0x33607d,_0x379380,_0x5a9924,_0x569ece,_0x105b74);}}const {modelFragment:_0x1de179,anchorData:_0x2f0b08}=this[_0xf76808(0x152)]();return this[_0xf76808(0x1a5)](_0x33607d,_0x1de179,_0x2f0b08,_0x569ece,_0x105b74);}[_0x560db3(0x152)](){const _0x219931=_0x560db3,_0x4fb3d2=this[_0x219931(0x187)][_0x219931(0x1c4)][_0x219931(0x11e)][_0x219931(0x151)];if(_0x4fb3d2[_0x219931(0x14f)]){const _0x511adb=_0xf706e5(_0x4fb3d2[_0x219931(0x1a8)]())||this[_0x219931(0x187)][_0x219931(0x1c4)][_0x219931(0x123)][_0x219931(0x167)](_0x4fb3d2);this[_0x219931(0x187)][_0x219931(0x1c4)][_0x219931(0xf0)](_0x27ffb9=>{const _0x20c759=_0x219931;_0x27ffb9[_0x20c759(0x15a)](_0x511adb,'in');});}const _0x1037ad=_0x4fb3d2[_0x219931(0xf4)](),_0x11b693=this[_0x219931(0x13e)](this[_0x219931(0x187)][_0x219931(0x1c4)][_0x219931(0x131)](_0x4fb3d2),_0x1037ad[_0x219931(0x11d)],_0x1037ad[_0x219931(0x176)]),_0x370994=_0x4fb3d2[_0x219931(0xf4)]()[_0x219931(0x11d)],_0x329695=new Map();let _0x5df5bb=_0x11b693;for(let _0x3f0ff4=0x0;_0x3f0ff4<_0x370994[_0x219931(0x106)][_0x219931(0x102)];_0x3f0ff4++)_0x329695[_0x219931(0x134)](_0x5df5bb,_0x370994[_0x219931(0x106)][_0x3f0ff4]),_0x5df5bb=_0x5df5bb[_0x219931(0x1c7)](0x0);return{'modelFragment':_0x11b693,'anchorData':_0x329695};}[_0x560db3(0x1a1)](){const _0x16fc1c=_0x560db3,_0x230e8e=this[_0x16fc1c(0x187)][_0x16fc1c(0x1c4)][_0x16fc1c(0x11e)][_0x16fc1c(0x151)],_0x7c4b67=this[_0x16fc1c(0x187)][_0x16fc1c(0x161)][_0x16fc1c(0x1cf)](_0x16fc1c(0x16b))[_0x16fc1c(0x113)](),_0x2b6c96=_0x230e8e[_0x16fc1c(0xf4)]()[_0x16fc1c(0x11d)][_0x16fc1c(0x115)][_0x16fc1c(0x115)],_0x3f8361=this[_0x16fc1c(0x13e)](_0x7c4b67,this[_0x16fc1c(0x187)][_0x16fc1c(0x1c4)][_0x16fc1c(0x132)](_0x2b6c96),this[_0x16fc1c(0x187)][_0x16fc1c(0x1c4)][_0x16fc1c(0x18d)](_0x2b6c96)),_0x3f7832=_0x230e8e[_0x16fc1c(0xf4)]()[_0x16fc1c(0x11d)],_0x248d16=new Map();let _0x2b8add=_0x3f8361;for(let _0x574005=0x0;_0x574005<_0x3f7832[_0x16fc1c(0x106)][_0x16fc1c(0x102)];_0x574005++)if(_0x248d16[_0x16fc1c(0x134)](_0x2b8add,_0x3f7832[_0x16fc1c(0x106)][_0x574005]),_0x574005<_0x3f7832[_0x16fc1c(0x106)][_0x16fc1c(0x102)]-0x1)_0x2b8add=_0x2b8add[_0x16fc1c(0x1c7)](0x0);else{let _0x1a477f=_0x2b8add[_0x16fc1c(0x11a)];for(;_0x1a477f;)_0x248d16[_0x16fc1c(0x134)](_0x1a477f,_0x3f7832[_0x16fc1c(0x106)][_0x574005]),_0x1a477f=_0x1a477f[_0x16fc1c(0x11a)];}return{'modelFragment':_0x3f8361,'anchorData':_0x248d16};}[_0x560db3(0x1a5)](_0x5c896b,_0x5939b6,_0x5b64ed,_0x5e1bc5,_0xa0cce6){const _0x378b75=_0x560db3,_0x4bf18e=this[_0x378b75(0x187)][_0x378b75(0x161)][_0x378b75(0x1cf)](_0x4fd8af),_0x43e898=this[_0x378b75(0x187)][_0x378b75(0x161)][_0x378b75(0x1cf)](_0x1b1b23),_0x21d787=this[_0x378b75(0x187)][_0x378b75(0x1c4)][_0x378b75(0x11e)][_0x378b75(0x151)],_0x4e4e27=_0x4bf18e[_0x378b75(0xf2)](_0x5939b6),_0xa82277=this[_0x378b75(0x187)][_0x378b75(0x18e)][_0x378b75(0x190)][_0x378b75(0x14b)](_0x4e4e27),_0x13de40=this[_0x378b75(0x187)][_0x378b75(0x1c4)][_0x378b75(0x11e)][_0x378b75(0x170)],_0x5b8090=[..._0x21d787[_0x378b75(0xfa)]()];let _0x58abb7=this[_0x378b75(0x187)][_0x378b75(0x109)][_0x378b75(0x1cf)](_0x378b75(0x114))||[..._0x140a47];this[_0x378b75(0x187)][_0x378b75(0x161)][_0x378b75(0x163)](_0x378b75(0x117))||(_0x58abb7=_0x58abb7[_0x378b75(0x14d)](_0x22ca8c=>_0x378b75(0x1b9)!=_0x22ca8c));const _0x20d6a5=new _0x1cc655(this[_0x378b75(0x187)][_0x378b75(0x1cb)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x378b75(0xed),'customView':this[_0x378b75(0x108)]},'showUnchangedParts':!0x0,'availableActions':_0x58abb7});return _0x43e898[_0x378b75(0x12f)]({'index':0x3e8*Math[_0x378b75(0x11f)]()%0x3e8,'title':_0x5e1bc5,'icon':_0xa0cce6||_0x512262,'mainView':_0x20d6a5,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':this[_0x378b75(0x187)][_0x378b75(0x161)][_0x378b75(0x163)](_0x378b75(0x117)),'ranges':_0x5b8090}),this[_0x378b75(0x149)](_0x20d6a5,_0x43e898),this[_0x378b75(0x1a0)](_0x43e898,_0x378b75(0x186),()=>{const _0x10c755=_0x378b75;this[_0x10c755(0x1bd)](_0x5939b6,_0x5b64ed,!0x1);}),this[_0x378b75(0x1a0)](_0x43e898,_0x378b75(0x1b9),()=>{const _0x353030=_0x378b75;this[_0x353030(0x1bd)](_0x5939b6,_0x5b64ed,!0x0);}),this[_0x378b75(0x1a0)](_0x43e898,_0x378b75(0x11b),()=>{const _0x17363c=_0x378b75;this[_0x17363c(0x19e)](),this[_0x17363c(0x127)]();}),this[_0x378b75(0x1a0)](_0x43e898,_0x378b75(0x140),()=>{const _0x48f798=_0x378b75;if(this[_0x48f798(0x1aa)]&&this[_0x48f798(0x1aa)][_0x48f798(0x16a)][_0x48f798(0x102)]>0x0){const _0xd54cc0=this[_0x48f798(0x1aa)][_0x48f798(0x16a)][this[_0x48f798(0x1aa)][_0x48f798(0x16a)][_0x48f798(0x102)]-0x1],_0x1426a0=_0xd54cc0[_0x48f798(0x128)][0x0];_0x1426a0&&_0x48f798(0xf6)===_0x1426a0[_0x48f798(0x197)]&&_0xd54cc0[_0x48f798(0xf3)](0x0,_0x48f798(0x196));}this[_0x48f798(0x19e)](),this[_0x48f798(0x1c5)](),this[_0x48f798(0x15e)](_0x43e898);}),this[_0x378b75(0x177)](_0xa82277,_0x13de40,_0x20d6a5,_0x43e898,_0x5c896b);}[_0x560db3(0x13e)](_0x57b985,_0x30e578,_0x3c197f){const _0x1d7b5c=_0x560db3,_0xb7b8f4=this[_0x1d7b5c(0x187)][_0x1d7b5c(0x1c4)][_0x1d7b5c(0x189)](_0x30e578,_0x3c197f)[_0x1d7b5c(0x148)](),_0x4de996=_0xb7b8f4['is'](_0x1d7b5c(0x107))?[]:_0xb7b8f4[_0x1d7b5c(0x175)]({'includeSelf':!0x0})[_0x1d7b5c(0x17a)](0x1);if(_0x4de996[_0x1d7b5c(0x102)]){const _0x556756=_0x4de996[_0x1d7b5c(0x1cc)](_0x3f506b=>_0x3f506b[_0x1d7b5c(0x171)](!0x1));for(let _0x242336=0x1;_0x242336<_0x556756[_0x1d7b5c(0x102)];_0x242336++)_0x556756[_0x242336-0x1][_0x1d7b5c(0x15d)](_0x556756[_0x242336]);return _0x556756[_0x556756[_0x1d7b5c(0x102)]-0x1][_0x1d7b5c(0x15d)](_0x57b985),new _0x5c421e(_0x556756[0x0]);}return _0x57b985;}async[_0x560db3(0x177)](_0x253094,_0x46795a,_0x57cca5,_0x154fa6,_0x551eb4){const _0x30886d=_0x560db3,_0x347581=this[_0x30886d(0x187)];this[_0x30886d(0x17e)]={'action':_0x551eb4,'content':_0x253094,'version':_0x46795a,'mainView':_0x57cca5,'aiBalloon':_0x154fa6};const _0x2654bf=new _0x4e902f({'connector':this[_0x30886d(0xee)],'editor':_0x347581,'content':_0x253094,'version':_0x46795a,..._0x551eb4});this[_0x30886d(0xff)][_0x30886d(0x185)](_0x2654bf),_0x57cca5[_0x30886d(0xe6)]();const _0x1a2bc8=(_0x1e32e3,_0xcb3d1f,_0x18b2fd=!0x1,_0x479518=_0x30886d(0x12c))=>this[_0x30886d(0x120)][_0x30886d(0xfe)](async _0x4200b3=>{const _0x542ef8=_0x30886d;try{const _0x3ec8c5=_0x44374e({'editor':_0x347581,'changeGroups':_0x1e32e3[_0x542ef8(0x128)],'documentContextContent':_0x1e32e3[_0x542ef8(0x116)],'showDiff':_0x18b2fd,'trimUnchanged':!0x1});await _0xcb3d1f[_0x542ef8(0x14a)]({'parts':_0x3ec8c5,'renderingStrategy':_0x479518,'abortSignal':_0x4200b3});}catch(_0x282b30){if(this[_0x542ef8(0x1c8)](_0x282b30))return;throw _0x282b30;}});this[_0x30886d(0x1aa)]['on'](_0x30886d(0x199),(_0x4c8dd8,_0x1780dc)=>{const _0x5f3b1a=_0x30886d;_0x57cca5[_0x5f3b1a(0xfb)](),_0x154fa6[_0x5f3b1a(0x1b8)](),_0x1a2bc8(_0x1780dc,_0x57cca5)[_0x5f3b1a(0x1ae)](_0x108716=>{const _0x6235ce=_0x5f3b1a;this[_0x6235ce(0x1c8)](_0x108716)||(console[_0x6235ce(0x144)](_0x6235ce(0x135),_0x108716),this[_0x6235ce(0x111)](_0x2654bf,_0x57cca5));});}),this[_0x30886d(0x1aa)]['on'](_0x30886d(0x105),(_0x29926b,_0x232aaf)=>{const _0x1252cf=_0x30886d;_0x1a2bc8(_0x232aaf,_0x57cca5)[_0x1252cf(0x1ae)](_0x257f19=>{const _0x2d85b1=_0x1252cf;this[_0x2d85b1(0x1c8)](_0x257f19)||(console[_0x2d85b1(0x144)](_0x2d85b1(0xec),_0x257f19),this[_0x2d85b1(0x111)](_0x2654bf,_0x57cca5));});}),this[_0x30886d(0x1aa)]['on'](_0x30886d(0x1ca),async()=>{const _0x4e7352=_0x30886d;try{await this[_0x4e7352(0x133)](_0x57cca5,_0x154fa6),this[_0x4e7352(0x1a7)](),await this[_0x4e7352(0x120)][_0x4e7352(0x1ab)];}catch(_0x3ad823){this[_0x4e7352(0x1c8)](_0x3ad823)||(console[_0x4e7352(0x144)](_0x4e7352(0x121),_0x3ad823),this[_0x4e7352(0x111)](_0x2654bf,_0x57cca5));}finally{_0x154fa6[_0x4e7352(0x14c)]();}}),this[_0x30886d(0x1a0)](_0x57cca5,_0x30886d(0x12a),async(_0x17e1c8,{showDiff:_0x2f33c6})=>{const _0x5b73ac=_0x30886d;try{this[_0x5b73ac(0x17f)]=_0x2f33c6;const _0x90c3ec=this[_0x5b73ac(0x1aa)][_0x5b73ac(0x16a)][this[_0x5b73ac(0x1aa)][_0x5b73ac(0x16a)][_0x5b73ac(0x102)]-0x1];_0x90c3ec&&await _0x1a2bc8(_0x90c3ec,_0x57cca5,_0x2f33c6,_0x5b73ac(0x13a));}catch(_0x15df0a){this[_0x5b73ac(0x1c8)](_0x15df0a)||(console[_0x5b73ac(0x144)](_0x5b73ac(0x15f),_0x15df0a),this[_0x5b73ac(0x111)](_0x2654bf,_0x57cca5));}}),this[_0x30886d(0x1aa)]['on'](_0x30886d(0x13d),(_0x3362d7,{reply:_0x2aadbb})=>{const _0x5c85c8=_0x30886d,_0x5e3425={'positiveCount':_0x2aadbb[_0x5c85c8(0x128)][_0x5c85c8(0x14d)](_0xda5c54=>_0x5c85c8(0x119)===_0xda5c54[_0x5c85c8(0x197)])[_0x5c85c8(0x102)],'totalCount':_0x2aadbb[_0x5c85c8(0x128)][_0x5c85c8(0x102)]},_0x38e225=this[_0x5c85c8(0x1aa)][_0x5c85c8(0x10d)],_0x386f9c=this[_0x5c85c8(0x1aa)][_0x5c85c8(0x18f)];_0x386f9c?this[_0x5c85c8(0xee)][_0x5c85c8(0x104)](_0x386f9c,_0x38e225,_0x5e3425):this[_0x5c85c8(0xee)][_0x5c85c8(0x146)](_0x38e225,_0x5e3425);}),this[_0x30886d(0x149)](_0x57cca5,_0x154fa6);try{const _0x14e663=await this[_0x30886d(0x1aa)][_0x30886d(0x11d)]();return this[_0x30886d(0x1a7)](),_0x14e663;}catch(_0x4d1804){if(this[_0x30886d(0x1c8)](_0x4d1804))return;_0x57cca5[_0x30886d(0xfb)](),this[_0x30886d(0x111)](_0x2654bf,_0x57cca5);}}[_0x560db3(0x1bd)](_0x522d91,_0x38ff84,_0x56dc48){const _0x4f8f6a=_0x560db3,_0x3de26f=this[_0x4f8f6a(0x187)];if(_0x56dc48&&!_0x3de26f[_0x4f8f6a(0x161)][_0x4f8f6a(0x163)](_0x4f8f6a(0x117)))throw new _0x159e3f(_0x4f8f6a(0x158),null);const _0x1a5f70=this[_0x4f8f6a(0x187)][_0x4f8f6a(0x161)][_0x4f8f6a(0x1cf)](_0x523407),_0x3b6730=this[_0x4f8f6a(0x1aa)],_0x44fb69=this[_0x4f8f6a(0x1aa)][_0x4f8f6a(0x16a)][this[_0x4f8f6a(0x1aa)][_0x4f8f6a(0x16a)][_0x4f8f6a(0x102)]-0x1],_0x3d9599=_0x44fb69[_0x4f8f6a(0x128)];_0x44fb69[_0x4f8f6a(0xf3)](0x0,_0x4f8f6a(0x119));let _0x7050f9=_0x24bfd0({'editor':_0x3de26f,'reply':_0x44fb69,'interaction':_0x3b6730,'groups':_0x3d9599,'transform':!0x1,'documentCompare':_0x1a5f70,'documentCompareOptions':{'anchor':_0x3de26f[_0x4f8f6a(0x1c4)][_0x4f8f6a(0x101)](_0x522d91,0x0),'markDeletions':_0x56dc48}});_0x7050f9=this[_0x4f8f6a(0x12d)](_0x7050f9,_0x38ff84);for(const _0x543e37 of _0x7050f9)this[_0x4f8f6a(0x1a2)](_0x38ff84,_0x543e37,_0x3de26f[_0x4f8f6a(0x1c4)][_0x4f8f6a(0x11e)][_0x4f8f6a(0x18c)]());const _0xe5316d=_0x3b6730[_0x4f8f6a(0x12b)]()[_0x4f8f6a(0x170)],_0x10cd69=_0x3de26f[_0x4f8f6a(0x1c4)][_0x4f8f6a(0x11e)][_0x4f8f6a(0x17d)][_0x4f8f6a(0x180)](_0xe5316d),_0x5332d1={'document':_0x3de26f[_0x4f8f6a(0x1c4)][_0x4f8f6a(0x11e)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x970c01=_0x249a0d(_0x7050f9,_0x10cd69,_0x5332d1)[_0x4f8f6a(0x162)];_0x3de26f[_0x4f8f6a(0x1c4)][_0x4f8f6a(0xf0)](_0x5a8797=>{const _0x110fee=_0x4f8f6a;if(_0x5a8797[_0x110fee(0x15a)](_0x3de26f[_0x110fee(0x1c4)][_0x110fee(0x11e)][_0x110fee(0x151)][_0x110fee(0x16c)]),_0x56dc48)_0x3de26f[_0x110fee(0x161)][_0x110fee(0x1cf)](_0x110fee(0x168))[_0x110fee(0x137)](_0x970c01);else{for(const _0x4bef40 of _0x970c01)_0x4bef40[_0x110fee(0x1d0)]=_0x3de26f[_0x110fee(0x1c4)][_0x110fee(0x11e)][_0x110fee(0x170)],_0x342f4b(_0x3de26f,_0x4bef40),_0x5a8797[_0x110fee(0x16e)][_0x110fee(0x103)](_0x4bef40),_0x3de26f[_0x110fee(0x1c4)][_0x110fee(0x122)](_0x4bef40);}}),this[_0x4f8f6a(0x187)][_0x4f8f6a(0x161)][_0x4f8f6a(0x1cf)](_0x4f8f6a(0xf5))[_0x4f8f6a(0xe9)]();}[_0x560db3(0x12d)](_0x364130,_0x5a76fe){const _0x376620=_0x560db3;return _0x364130[_0x376620(0x14d)](_0x4be65e=>{const _0x20fc58=_0x376620;if(_0x20fc58(0x1b3)==_0x4be65e[_0x20fc58(0x1b0)]){const _0x102f0f=_0x4be65e[_0x20fc58(0x166)][_0x20fc58(0x100)];return!_0x5a76fe[_0x20fc58(0x163)](_0x102f0f);}if(_0x4be65e[_0x20fc58(0x1b0)][_0x20fc58(0x1ac)](_0x20fc58(0x1ce))>-0x1){const _0x3cc92d=_0x4be65e[_0x20fc58(0x112)][_0x20fc58(0x11d)][_0x20fc58(0x100)];return!_0x5a76fe[_0x20fc58(0x163)](_0x3cc92d);}return!0x0;});}[_0x560db3(0x1a2)](_0x424aab,_0x7935f4,_0x51938f){const _0x433aec=_0x560db3,_0x24d00d=_0x7935f4[_0x433aec(0xf8)]();for(const _0x1aa9a3 in _0x7935f4){const _0x16c272=_0x7935f4[_0x1aa9a3];_0x16c272 instanceof _0x1fbe8e?_0x7935f4[_0x1aa9a3]=new _0x1fbe8e(_0x5c9d59(_0x16c272[_0x433aec(0x11d)]),_0x5c9d59(_0x16c272[_0x433aec(0x176)])):_0x16c272 instanceof _0x5ef448&&(_0x7935f4[_0x1aa9a3]=_0x5c9d59(_0x16c272));}if([_0x433aec(0x118),_0x433aec(0x13c),_0x433aec(0x194),_0x433aec(0x1b7),_0x433aec(0x10a),_0x433aec(0x1c9)][_0x433aec(0x1a6)](_0x24d00d[_0x433aec(0x1b0)])){if(_0x24d00d[_0x433aec(0x17b)]=!0x1,_0x24d00d[_0x433aec(0x1d0)]=null,_0x433aec(0x194)==_0x24d00d[_0x433aec(0x1b0)]){const _0x2e347d=_0x24d00d[_0x433aec(0x195)],_0x28a016=_0x24d00d[_0x433aec(0x191)];new _0x2f80fb(_0x2e347d,_0x28a016)[_0x433aec(0x1ad)]();}else _0x24d00d[_0x433aec(0x1ad)]();}function _0x5c9d59(_0x26a6db){const _0x490a1e=_0x433aec;if(_0x490a1e(0x178)==_0x26a6db[_0x490a1e(0x1c3)][_0x490a1e(0x1c6)])return _0x26a6db;const _0x42292e=[];let _0x268c17=_0x26a6db[_0x490a1e(0x1c3)];for(let _0x35c874=0x0;_0x35c874<_0x26a6db[_0x490a1e(0x106)][_0x490a1e(0x102)];_0x35c874++){const _0x39bdc2=_0x424aab[_0x490a1e(0x1cf)](_0x268c17)||0x0;_0x42292e[_0x35c874]=_0x26a6db[_0x490a1e(0x106)][_0x35c874]+_0x39bdc2,_0x268c17=_0x268c17[_0x490a1e(0x126)](_0x26a6db[_0x490a1e(0x106)][_0x35c874]);}return new _0x5ef448(_0x51938f,_0x42292e,_0x26a6db[_0x490a1e(0x1a4)]);}}[_0x560db3(0x10e)](){const _0xf740e3=_0x560db3;if(!this[_0xf740e3(0x17e)])return;this[_0xf740e3(0xff)][_0xf740e3(0x102)]>0x0&&this[_0xf740e3(0x19e)](),this[_0xf740e3(0x124)]=0x0,this[_0xf740e3(0x17f)]=!0x1;const {action:_0x505b2c,content:_0x4f02fc,version:_0xf6c7d9,mainView:_0x2cab65,aiBalloon:_0x1d3369}=this[_0xf740e3(0x17e)];_0x2cab65[_0xf740e3(0x181)]=!0x1,_0x2cab65[_0xf740e3(0xe6)](),this[_0xf740e3(0x1b4)](_0x2cab65,_0x1d3369);const _0x63f64a=_0x2cab65;_0x63f64a[_0xf740e3(0x193)]&&_0x63f64a[_0xf740e3(0x193)][_0xf740e3(0x153)]&&_0x63f64a[_0xf740e3(0x193)][_0xf740e3(0x153)][_0xf740e3(0x134)]({'isOn':!0x1,'icon':_0x1fa255}),this[_0xf740e3(0x18a)](_0x2cab65),_0x2cab65[_0xf740e3(0x179)](),this[_0xf740e3(0x1a7)](),this[_0xf740e3(0x15e)](_0x2cab65),this[_0xf740e3(0x177)](_0x4f02fc,_0xf6c7d9,_0x2cab65,_0x1d3369,_0x505b2c)[_0xf740e3(0x1ae)](_0x20c73f=>{const _0x105e05=_0xf740e3;this[_0x105e05(0x1c8)](_0x20c73f)||console[_0x105e05(0x144)](_0x105e05(0x1be),_0x20c73f);});}[_0x560db3(0x18a)](_0x52a897){const _0x4f3d25=_0x560db3,_0x4a8e31=_0x52a897[_0x4f3d25(0x141)][_0x4f3d25(0x145)];for(;_0x4a8e31[_0x4f3d25(0x102)]>0x0;)_0x4a8e31[_0x4f3d25(0x194)](_0x4a8e31[_0x4f3d25(0x164)]);_0x52a897[_0x4f3d25(0x141)][_0x4f3d25(0x154)]=!0x1;}[_0x560db3(0x1c8)](_0x354c91){const _0x4611af=_0x560db3;return!!_0x354c91[_0x4611af(0x16f)]&&_0x354c91[_0x4611af(0x16f)][_0x4611af(0x10f)](_0x4611af(0x143));}[_0x560db3(0x1c5)](){const _0x38951c=_0x560db3;this[_0x38951c(0xff)]=[],this[_0x38951c(0x17e)]=void 0x0,this[_0x38951c(0x124)]=0x0,this[_0x38951c(0x1a7)]();}[_0x560db3(0x19e)](){const _0x2b3495=_0x560db3;this[_0x2b3495(0x1aa)]&&this[_0x2b3495(0x1aa)][_0x2b3495(0x15c)](),this[_0x2b3495(0x120)][_0x2b3495(0x147)](),this[_0x2b3495(0x184)]=!0x1,this[_0x2b3495(0x17e)]&&this[_0x2b3495(0x17e)][_0x2b3495(0xf9)][_0x2b3495(0x14c)]();}[_0x560db3(0x1cd)](){const _0x17b757=_0x560db3,_0x37e370=new _0x45fc67(this[_0x17b757(0x187)][_0x17b757(0x1cb)]),_0xd735f5=new _0x45fc67(this[_0x17b757(0x187)][_0x17b757(0x1cb)]),_0x22d912=new _0x2a0efa(this[_0x17b757(0x187)][_0x17b757(0x1cb)]),_0x5189ed=new _0x45fc67(this[_0x17b757(0x187)][_0x17b757(0x1cb)]);_0x37e370[_0x17b757(0x134)]({'icon':_0x4b2471,'label':_0x45d4d1(this[_0x17b757(0x187)][_0x17b757(0x1cb)],_0x17b757(0x11c)),'tooltip':!0x0,'class':_0x17b757(0x1b6)}),_0xd735f5[_0x17b757(0x134)]({'icon':_0x561973,'tooltip':_0x45d4d1(this[_0x17b757(0x187)][_0x17b757(0x1cb)],_0x17b757(0x1bb)),'class':_0x17b757(0x1ba)}),_0x22d912[_0x17b757(0x160)]({'tag':_0x17b757(0x155),'attributes':{'class':[_0x17b757(0x188)]},'children':[_0x17b757(0x15b)]}),_0x5189ed[_0x17b757(0x134)]({'icon':_0x49f0b5,'tooltip':_0x45d4d1(this[_0x17b757(0x187)][_0x17b757(0x1cb)],_0x17b757(0x14e)),'class':_0x17b757(0x1b2)}),_0x37e370[_0x17b757(0x16d)](_0x17b757(0x182))['to'](this,_0x17b757(0x184),_0x1feae3=>!_0x1feae3),_0x37e370['on'](_0x17b757(0x165),()=>{const _0x3f860c=_0x17b757;this[_0x3f860c(0x10e)]();}),_0xd735f5[_0x17b757(0x16d)](_0x17b757(0x182))['to'](this,_0x17b757(0x184),_0x4a8efd=>!_0x4a8efd),_0xd735f5['on'](_0x17b757(0x165),()=>{const _0x11a201=_0x17b757;this[_0x11a201(0x157)]();}),_0x5189ed[_0x17b757(0x16d)](_0x17b757(0x182))['to'](this,_0x17b757(0x184),_0x5f1b93=>!_0x5f1b93),_0x5189ed['on'](_0x17b757(0x165),()=>{const _0x176872=_0x17b757;this[_0x176872(0x136)]();}),this[_0x17b757(0x19d)]=_0xd735f5,this[_0x17b757(0x10c)]=_0x22d912,this[_0x17b757(0xf7)]=_0x5189ed,this[_0x17b757(0x108)][_0x17b757(0x1bc)](_0x37e370);}[_0x560db3(0x157)](){const _0x3aaacf=_0x560db3,_0x2d3182=this[_0x3aaacf(0xff)][_0x3aaacf(0x102)];this[_0x3aaacf(0x124)]<_0x2d3182-0x1&&this[_0x3aaacf(0x17c)](this[_0x3aaacf(0x124)]+0x1);}[_0x560db3(0x136)](){const _0x407e26=_0x560db3;this[_0x407e26(0x124)]>0x0&&this[_0x407e26(0x17c)](this[_0x407e26(0x124)]-0x1);}async[_0x560db3(0x17c)](_0x2248ae){const _0x430b8c=_0x560db3;if(!this[_0x430b8c(0x17e)])return;this[_0x430b8c(0x124)]=_0x2248ae;const {mainView:_0x1bc0d8}=this[_0x430b8c(0x17e)],_0x235c89=this[_0x430b8c(0xff)][this[_0x430b8c(0xff)][_0x430b8c(0x102)]-0x1-this[_0x430b8c(0x124)]];if(!_0x235c89)return;if(_0x235c89[_0x430b8c(0xea)])return this[_0x430b8c(0x111)](_0x235c89,_0x1bc0d8),void this[_0x430b8c(0x1a7)]();if(!_0x235c89[_0x430b8c(0x16a)][_0x430b8c(0x102)])return;_0x1bc0d8[_0x430b8c(0xe6)](),this[_0x430b8c(0x17e)]&&this[_0x430b8c(0x1b4)](_0x1bc0d8,this[_0x430b8c(0x17e)][_0x430b8c(0xf9)]);const _0x3a415a=_0x235c89[_0x430b8c(0x16a)][_0x235c89[_0x430b8c(0x16a)][_0x430b8c(0x102)]-0x1];if(_0x3a415a){const _0x30da4a=this[_0x430b8c(0x187)];this[_0x430b8c(0x18a)](_0x1bc0d8);try{const _0x6a392a=_0x44374e({'editor':_0x30da4a,'changeGroups':_0x3a415a[_0x430b8c(0x128)],'documentContextContent':_0x3a415a[_0x430b8c(0x116)],'showDiff':this[_0x430b8c(0x17f)],'trimUnchanged':!0x1});this[_0x430b8c(0x18a)](_0x1bc0d8),await new Promise(_0x204129=>setTimeout(_0x204129,0x32)),await _0x1bc0d8[_0x430b8c(0x14a)]({'parts':_0x6a392a,'renderingStrategy':_0x430b8c(0x13a),'abortSignal':new AbortController()[_0x430b8c(0x12e)]});}catch(_0x5b69ad){this[_0x430b8c(0x1c8)](_0x5b69ad)||console[_0x430b8c(0x144)](_0x430b8c(0x1c0),_0x5b69ad);}}this[_0x430b8c(0x1a7)]();}[_0x560db3(0x1a7)](){const _0x4201f3=_0x560db3;if(!this[_0x4201f3(0x19d)]||!this[_0x4201f3(0x10c)]||!this[_0x4201f3(0xf7)])return;const _0x417048=this[_0x4201f3(0xff)][_0x4201f3(0x102)],_0x45685d=_0x417048>0x1,_0x5ed0f2=this[_0x4201f3(0x17e)]?.[_0x4201f3(0x172)];if(_0x45685d){this[_0x4201f3(0x1a3)]||this[_0x4201f3(0x156)]||this[_0x4201f3(0x19c)]||(this[_0x4201f3(0x108)][_0x4201f3(0x1bc)](this[_0x4201f3(0x19d)]),_0x5ed0f2?.[_0x4201f3(0x19f)](this[_0x4201f3(0x19d)]),this[_0x4201f3(0x1a3)]=!0x0,this[_0x4201f3(0x108)][_0x4201f3(0x1bc)](this[_0x4201f3(0x10c)]),_0x5ed0f2?.[_0x4201f3(0x19f)](this[_0x4201f3(0x10c)]),this[_0x4201f3(0x156)]=!0x0,this[_0x4201f3(0x108)][_0x4201f3(0x1bc)](this[_0x4201f3(0xf7)]),_0x5ed0f2?.[_0x4201f3(0x19f)](this[_0x4201f3(0xf7)]),this[_0x4201f3(0x19c)]=!0x0);const _0x5c1370=_0x417048-this[_0x4201f3(0x124)];this[_0x4201f3(0x10c)][_0x4201f3(0xfc)]&&(this[_0x4201f3(0x10c)][_0x4201f3(0xfc)][_0x4201f3(0xe8)]=_0x5c1370+'/'+_0x417048),this[_0x4201f3(0x19d)][_0x4201f3(0x182)]=this[_0x4201f3(0x124)]<_0x417048-0x1,this[_0x4201f3(0xf7)][_0x4201f3(0x182)]=this[_0x4201f3(0x124)]>0x0;}else(this[_0x4201f3(0x1a3)]||this[_0x4201f3(0x156)]||this[_0x4201f3(0x19c)])&&(this[_0x4201f3(0x108)][_0x4201f3(0x194)](this[_0x4201f3(0x19d)]),_0x5ed0f2?.[_0x4201f3(0x150)](this[_0x4201f3(0x19d)]),this[_0x4201f3(0x1a3)]=!0x1,this[_0x4201f3(0x108)][_0x4201f3(0x194)](this[_0x4201f3(0x10c)]),_0x5ed0f2?.[_0x4201f3(0x150)](this[_0x4201f3(0x10c)]),this[_0x4201f3(0x156)]=!0x1,this[_0x4201f3(0x108)][_0x4201f3(0x194)](this[_0x4201f3(0xf7)]),_0x5ed0f2?.[_0x4201f3(0x150)](this[_0x4201f3(0xf7)]),this[_0x4201f3(0x19c)]=!0x1);}[_0x560db3(0x149)](_0x22ffd3,_0x2f3460){const _0x543293=_0x560db3;_0x22ffd3[_0x543293(0x159)](),_0x2f3460[_0x543293(0x13b)][_0x543293(0x159)](),this[_0x543293(0x184)]=!0x0;}async[_0x560db3(0x111)](_0x4d120d,_0x52e830){const _0x3f0ee8=_0x560db3,_0x1dae51=_0x45d4d1(this[_0x3f0ee8(0x187)][_0x3f0ee8(0x1cb)],_0x3f0ee8(0x10b));_0x52e830[_0x3f0ee8(0x19a)](_0x1dae51),_0x4d120d[_0x3f0ee8(0xea)]=!0x0,await this[_0x3f0ee8(0x120)][_0x3f0ee8(0x1ab)],_0x52e830[_0x3f0ee8(0x169)](),this[_0x3f0ee8(0x17e)]?.[_0x3f0ee8(0xf9)][_0x3f0ee8(0x13b)][_0x3f0ee8(0xf1)]&&(this[_0x3f0ee8(0x17e)][_0x3f0ee8(0xf9)][_0x3f0ee8(0x13b)][_0x3f0ee8(0xf1)][_0x3f0ee8(0x192)]=!0x0);}[_0x560db3(0x1b4)](_0x457fcb,_0x392fee){const _0x358620=_0x560db3;_0x457fcb[_0x358620(0x1a9)](),_0x392fee[_0x358620(0x13b)][_0x358620(0xf1)]&&(_0x392fee[_0x358620(0x13b)][_0x358620(0xf1)][_0x358620(0x192)]=!0x1);}async[_0x560db3(0x133)](_0x27828a,_0x6213c2){const _0x12c804=_0x560db3;await this[_0x12c804(0x120)][_0x12c804(0x1ab)],this[_0x12c804(0x184)]=!0x1,_0x27828a[_0x12c804(0xfd)](),_0x6213c2[_0x12c804(0x13b)][_0x12c804(0xfd)]();}[_0x560db3(0x127)](){const _0x569595=_0x560db3;this[_0x569595(0x108)][_0x569595(0x1b5)](_0x59014b=>{const _0x1216c7=_0x569595;_0x1216c7(0x182)in _0x59014b&&(_0x59014b[_0x1216c7(0x182)]=!0x1);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xb23c64=_0x50d4;function _0x50d4(_0x2c983a,_0x1afbca){const _0x4113a5=_0x4113();return _0x50d4=function(_0x50d48e,_0x6c22a){_0x50d48e=_0x50d48e-0xab;let _0x25ea13=_0x4113a5[_0x50d48e];return _0x25ea13;},_0x50d4(_0x2c983a,_0x1afbca);}(function(_0x2e14d9,_0x5c9bea){const _0x291a36=_0x50d4,_0x46c8d4=_0x2e14d9();while(!![]){try{const _0x581fe2=parseInt(_0x291a36(0xc3))/0x1*(-parseInt(_0x291a36(0xc4))/0x2)+-parseInt(_0x291a36(0xac))/0x3*(parseInt(_0x291a36(0xae))/0x4)+-parseInt(_0x291a36(0xca))/0x5*(parseInt(_0x291a36(0xbe))/0x6)+-parseInt(_0x291a36(0xb7))/0x7+parseInt(_0x291a36(0xb4))/0x8+-parseInt(_0x291a36(0xaf))/0x9*(parseInt(_0x291a36(0xbb))/0xa)+parseInt(_0x291a36(0xcc))/0xb;if(_0x581fe2===_0x5c9bea)break;else _0x46c8d4['push'](_0x46c8d4['shift']());}catch(_0x5d2150){_0x46c8d4['push'](_0x46c8d4['shift']());}}}(_0x4113,0x2f775));function _0x4113(){const _0x345647=['executeCustomAction','40xBOyKB','TEXT','content','12hxKeEB','Current\x20document','executeAction','createReply','delegate','3957KXJJrH','134eIzdSH','replyCreated','editor','replies','model','sendRequest','96095WJWova','args','6083341UOtRIY','current-document','5028PPEOHM','connector','284wMAKNS','317043zarznR','hasError','getDocumentContext','userMessage','html','2600656vvdRys','actionName','version','841617TmxzXN','fire','push'];_0x4113=function(){return _0x345647;};return _0x4113();}import{AIInteraction as _0x6a2d8b,AI_MODEL_EVENT_NAMES as _0xc89ae5}from'../../aicore/model/aiinteraction.js';import{AIContextItemType as _0x591768}from'../../aicore/model/aicontext.js';import{AIActionsReply as _0x17b693}from'./aiactionsreply.js';export class AIActionsInteraction extends _0x6a2d8b{[_0xb23c64(0xbd)];[_0xb23c64(0xb6)];[_0xb23c64(0xb5)];[_0xb23c64(0xcb)];[_0xb23c64(0xb2)];[_0xb23c64(0xc8)];[_0xb23c64(0xb0)]=!0x1;constructor(_0x450d08){const _0x34495c=_0xb23c64;super(_0x450d08),this[_0x34495c(0xbd)]=_0x450d08[_0x34495c(0xbd)],this[_0x34495c(0xb6)]=_0x450d08[_0x34495c(0xb6)],this[_0x34495c(0xb5)]=_0x450d08[_0x34495c(0xb5)],this[_0x34495c(0xcb)]=_0x450d08[_0x34495c(0xcb)],this[_0x34495c(0xb2)]=_0x450d08[_0x34495c(0xb2)],this[_0x34495c(0xc8)]=_0x450d08[_0x34495c(0xc8)];}async[_0xb23c64(0xc9)](){const _0x185464=_0xb23c64;return this[_0x185464(0xb5)]?this[_0x185464(0xad)][_0x185464(0xc0)]({'content':this[_0x185464(0xbd)],'actionName':this[_0x185464(0xb5)],'args':this[_0x185464(0xcb)]}):this[_0x185464(0xad)][_0x185464(0xba)]({'content':this[_0x185464(0xbd)],'message':this[_0x185464(0xb2)],'model':this[_0x185464(0xc8)],'outputFormat':_0x185464(0xb3)});}[_0xb23c64(0xb1)](){const _0x10fa39=_0xb23c64;return{'type':_0x591768[_0x10fa39(0xbc)],'content':this[_0x10fa39(0xbd)],'version':this[_0x10fa39(0xb6)],'label':_0x10fa39(0xbf),'uiId':_0x10fa39(0xab)};}[_0xb23c64(0xc1)](_0x43b214){const _0x240e89=_0xb23c64,_0x422f4f=new _0x17b693({'editor':this[_0x240e89(0xc6)],'documentContextContent':this[_0x240e89(0xbd)],..._0x43b214});return this[_0x240e89(0xc7)][_0x240e89(0xb9)](_0x422f4f),_0x422f4f[_0x240e89(0xc2)](..._0xc89ae5)['to'](this),this[_0x240e89(0xb8)](_0x240e89(0xc5),_0x422f4f),_0x422f4f;}}
23
+ const _0x39ccd2=_0x248a;function _0xee5a(){const _0x21f23c=['connector','84380QKpZXj','2111160XHbXpH','21foQONA','model','Current\x20document','83032pzRkAy','editor','1251CRHfeX','TEXT','hasError','4832135NRglst','1348460FqUPlZ','current-document','actionName','args','5772438FvvfNU','html','getDocumentContext','executeCustomAction','content','sendRequest','push','replies','executeAction','126772TDNOyl','replyCreated','userMessage','version','delegate','createReply','fire'];_0xee5a=function(){return _0x21f23c;};return _0xee5a();}(function(_0x4acd85,_0x1344b1){const _0x5e77b4=_0x248a,_0x3f54bf=_0x4acd85();while(!![]){try{const _0x26338d=-parseInt(_0x5e77b4(0xd2))/0x1+parseInt(_0x5e77b4(0xba))/0x2*(parseInt(_0x5e77b4(0xbc))/0x3)+parseInt(_0x5e77b4(0xbb))/0x4+-parseInt(_0x5e77b4(0xc5))/0x5+parseInt(_0x5e77b4(0xc9))/0x6+parseInt(_0x5e77b4(0xc4))/0x7+parseInt(_0x5e77b4(0xbf))/0x8*(-parseInt(_0x5e77b4(0xc1))/0x9);if(_0x26338d===_0x1344b1)break;else _0x3f54bf['push'](_0x3f54bf['shift']());}catch(_0x2e05a5){_0x3f54bf['push'](_0x3f54bf['shift']());}}}(_0xee5a,0x9b5c1));import{AIInteraction as _0x326939,AI_MODEL_EVENT_NAMES as _0x40dc8c}from'../../aicore/model/aiinteraction.js';import{AIContextItemType as _0x4ac8df}from'../../aicore/model/aicontext.js';import{AIActionsReply as _0x5da522}from'./aiactionsreply.js';function _0x248a(_0x15618f,_0x209dab){const _0xee5aba=_0xee5a();return _0x248a=function(_0x248a29,_0x40ac6a){_0x248a29=_0x248a29-0xb7;let _0x188a43=_0xee5aba[_0x248a29];return _0x188a43;},_0x248a(_0x15618f,_0x209dab);}export class AIActionsInteraction extends _0x326939{[_0x39ccd2(0xcd)];[_0x39ccd2(0xd5)];[_0x39ccd2(0xc7)];[_0x39ccd2(0xc8)];[_0x39ccd2(0xd4)];[_0x39ccd2(0xbd)];[_0x39ccd2(0xc3)]=!0x1;constructor(_0x37e629){const _0x172043=_0x39ccd2;super(_0x37e629),this[_0x172043(0xcd)]=_0x37e629[_0x172043(0xcd)],this[_0x172043(0xd5)]=_0x37e629[_0x172043(0xd5)],this[_0x172043(0xc7)]=_0x37e629[_0x172043(0xc7)],this[_0x172043(0xc8)]=_0x37e629[_0x172043(0xc8)],this[_0x172043(0xd4)]=_0x37e629[_0x172043(0xd4)],this[_0x172043(0xbd)]=_0x37e629[_0x172043(0xbd)];}async[_0x39ccd2(0xce)](){const _0x4d4fe5=_0x39ccd2;return this[_0x4d4fe5(0xc7)]?this[_0x4d4fe5(0xb9)][_0x4d4fe5(0xd1)]({'content':this[_0x4d4fe5(0xcd)],'actionName':this[_0x4d4fe5(0xc7)],'args':this[_0x4d4fe5(0xc8)]}):this[_0x4d4fe5(0xb9)][_0x4d4fe5(0xcc)]({'content':this[_0x4d4fe5(0xcd)],'message':this[_0x4d4fe5(0xd4)],'model':this[_0x4d4fe5(0xbd)],'outputFormat':_0x4d4fe5(0xca)});}[_0x39ccd2(0xcb)](){const _0x20b789=_0x39ccd2;return{'type':_0x4ac8df[_0x20b789(0xc2)],'content':this[_0x20b789(0xcd)],'version':this[_0x20b789(0xd5)],'label':_0x20b789(0xbe),'uiId':_0x20b789(0xc6)};}[_0x39ccd2(0xb7)](_0x5c0808){const _0x2c2b23=_0x39ccd2,_0x1a0198=new _0x5da522({'editor':this[_0x2c2b23(0xc0)],'documentContextContent':this[_0x2c2b23(0xcd)],..._0x5c0808});return this[_0x2c2b23(0xd0)][_0x2c2b23(0xcf)](_0x1a0198),_0x1a0198[_0x2c2b23(0xd6)](..._0x40dc8c)['to'](this),this[_0x2c2b23(0xb8)](_0x2c2b23(0xd3),_0x1a0198),_0x1a0198;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1ccd01=_0x113e;function _0x113e(_0x2786f2,_0x212605){const _0x85daa7=_0x85da();return _0x113e=function(_0x113e15,_0xec6257){_0x113e15=_0x113e15-0x15d;let _0x41216c=_0x85daa7[_0x113e15];return _0x41216c;},_0x113e(_0x2786f2,_0x212605);}(function(_0x32ea8a,_0x301250){const _0x136e35=_0x113e,_0x2af4e8=_0x32ea8a();while(!![]){try{const _0x1600a6=parseInt(_0x136e35(0x171))/0x1*(parseInt(_0x136e35(0x170))/0x2)+parseInt(_0x136e35(0x16d))/0x3*(parseInt(_0x136e35(0x168))/0x4)+parseInt(_0x136e35(0x15e))/0x5*(-parseInt(_0x136e35(0x160))/0x6)+parseInt(_0x136e35(0x17a))/0x7+parseInt(_0x136e35(0x178))/0x8*(parseInt(_0x136e35(0x166))/0x9)+parseInt(_0x136e35(0x174))/0xa+-parseInt(_0x136e35(0x172))/0xb*(parseInt(_0x136e35(0x164))/0xc);if(_0x1600a6===_0x301250)break;else _0x2af4e8['push'](_0x2af4e8['shift']());}catch(_0x27aad5){_0x2af4e8['push'](_0x2af4e8['shift']());}}}(_0x85da,0xc8d5b));import{AIReply as _0x113174}from'../../aicore/model/aireply.js';import{getAttribute as _0x5c91bf}from'../../aicore/utils/htmlparser.js';import{uid as _0x128a05}from'ckeditor5/src/utils.js';function _0x85da(){const _0x2e3f39=['updateChangeGroups','parsedContent','34792hKFByg','cloneNode','5379612nqDbSM','isDone','modified','data-id','parsedMergedContent','25yHcVhX','length','1920972AQtqfi','changeGroups','map','removed','12DrHjFu','node','3249ITXqIk','added','4766376YgHdxN','_getDifferentChangeGroups','childNodes','pop','value','3KOONXs','pending','new','501782OHXZgV','2ZHBbbn','25989062LGOfoh','children','7541900TnErAu','documentContextContent'];_0x85da=function(){return _0x2e3f39;};return _0x85da();}import{diffArrays as _0x171802}from'diff';export class AIActionsReply extends _0x113174{[_0x1ccd01(0x176)](){const _0x82cb81=_0x1ccd01;if(this[_0x82cb81(0x15d)]=this[_0x82cb81(0x177)][_0x82cb81(0x179)](!0x0),0x0==this[_0x82cb81(0x15d)][_0x82cb81(0x16a)][_0x82cb81(0x15f)])return void(this[_0x82cb81(0x161)]=[]);const _0x490744=this[_0x82cb81(0x175)][_0x82cb81(0x173)][_0x82cb81(0x162)](_0x4d589e=>({'node':_0x4d589e,'id':_0x5c91bf(_0x4d589e,_0x82cb81(0x17d))})),_0x3cc22f=this[_0x82cb81(0x15d)][_0x82cb81(0x173)][_0x82cb81(0x162)](_0x215160=>({'node':_0x215160,'id':_0x5c91bf(_0x215160,_0x82cb81(0x17d))||_0x128a05()})),_0x3abd10=_0x171802(_0x490744,_0x3cc22f,{'comparator':(_0x315201,_0x5bf377)=>_0x315201['id']==_0x5bf377['id'],'oneChangePerToken':!0x0});if(!this[_0x82cb81(0x17b)]){for(;_0x3abd10[_0x82cb81(0x15f)]&&_0x3abd10[_0x3abd10[_0x82cb81(0x15f)]-0x1][_0x82cb81(0x163)];)_0x3abd10[_0x82cb81(0x16b)]();}const _0x2ee217=_0x3abd10[_0x82cb81(0x162)](_0x4483b3=>{const _0x4b18d8=_0x82cb81,_0x4ba0a3=_0x4483b3[_0x4b18d8(0x167)]?_0x4b18d8(0x16f):_0x4483b3[_0x4b18d8(0x163)]?_0x4b18d8(0x163):_0x4b18d8(0x17c);return{'node':_0x4483b3[_0x4b18d8(0x16c)][0x0][_0x4b18d8(0x165)],'type':_0x4ba0a3,'id':_0x4483b3[_0x4b18d8(0x16c)][0x0]['id']};});this[_0x82cb81(0x161)]=[{'changes':_0x2ee217,'state':_0x82cb81(0x16e),'index':0x0}];}[_0x1ccd01(0x169)](_0x53b0e7,_0x6c3b0c){return _0x6c3b0c;}}
23
+ const _0x12df8c=_0x5574;(function(_0x17925f,_0x4a5a45){const _0x54a63f=_0x5574,_0x38fd35=_0x17925f();while(!![]){try{const _0x2a5965=parseInt(_0x54a63f(0x9f))/0x1*(parseInt(_0x54a63f(0xa1))/0x2)+parseInt(_0x54a63f(0xb0))/0x3+parseInt(_0x54a63f(0xa5))/0x4*(parseInt(_0x54a63f(0xb3))/0x5)+-parseInt(_0x54a63f(0x9c))/0x6+parseInt(_0x54a63f(0x98))/0x7*(parseInt(_0x54a63f(0xa2))/0x8)+parseInt(_0x54a63f(0xa3))/0x9+parseInt(_0x54a63f(0x9b))/0xa*(-parseInt(_0x54a63f(0x97))/0xb);if(_0x2a5965===_0x4a5a45)break;else _0x38fd35['push'](_0x38fd35['shift']());}catch(_0x50ee5e){_0x38fd35['push'](_0x38fd35['shift']());}}}(_0x28a2,0xd76de));import{AIReply as _0x10af95}from'../../aicore/model/aireply.js';function _0x5574(_0x5ab435,_0x4a5b15){const _0x28a25c=_0x28a2();return _0x5574=function(_0x55745f,_0x356c72){_0x55745f=_0x55745f-0x97;let _0x45487a=_0x28a25c[_0x55745f];return _0x45487a;},_0x5574(_0x5ab435,_0x4a5b15);}import{getAttribute as _0x36b44e}from'../../aicore/utils/htmlparser.js';import{uid as _0x4de7ab}from'ckeditor5/src/utils.js';function _0x28a2(){const _0x418fac=['pop','145050wWswPM','children','updateChangeGroups','77295uhkAqI','_getDifferentChangeGroups','parsedContent','documentContextContent','36361996MAToxZ','5784163AowZHx','node','added','10lROzbk','4731492uEfbQH','data-id','map','2073QFaVgu','parsedMergedContent','1594PgPjQo','8ITeSkU','14395779IUziWL','childNodes','220pMPQDj','new','length','cloneNode','isDone','changeGroups','value','pending','removed','modified'];_0x28a2=function(){return _0x418fac;};return _0x28a2();}import{diffArrays as _0xb2308b}from'diff';export class AIActionsReply extends _0x10af95{[_0x12df8c(0xb2)](){const _0x4ccf98=_0x12df8c;if(this[_0x4ccf98(0xa0)]=this[_0x4ccf98(0xb5)][_0x4ccf98(0xa8)](!0x0),0x0==this[_0x4ccf98(0xa0)][_0x4ccf98(0xa4)][_0x4ccf98(0xa7)])return void(this[_0x4ccf98(0xaa)]=[]);const _0x2ec9a7=this[_0x4ccf98(0xb6)][_0x4ccf98(0xb1)][_0x4ccf98(0x9e)](_0x3cfb0f=>({'node':_0x3cfb0f,'id':_0x36b44e(_0x3cfb0f,_0x4ccf98(0x9d))})),_0x6e729=this[_0x4ccf98(0xa0)][_0x4ccf98(0xb1)][_0x4ccf98(0x9e)](_0x5a09c=>({'node':_0x5a09c,'id':_0x36b44e(_0x5a09c,_0x4ccf98(0x9d))||_0x4de7ab()})),_0x3767ab=_0xb2308b(_0x2ec9a7,_0x6e729,{'comparator':(_0x4efd33,_0x54c66f)=>_0x4efd33['id']==_0x54c66f['id'],'oneChangePerToken':!0x0});if(!this[_0x4ccf98(0xa9)]){for(;_0x3767ab[_0x4ccf98(0xa7)]&&_0x3767ab[_0x3767ab[_0x4ccf98(0xa7)]-0x1][_0x4ccf98(0xad)];)_0x3767ab[_0x4ccf98(0xaf)]();}const _0x54dc2e=_0x3767ab[_0x4ccf98(0x9e)](_0x25d7e6=>{const _0x51bcae=_0x4ccf98,_0x2db012=_0x25d7e6[_0x51bcae(0x9a)]?_0x51bcae(0xa6):_0x25d7e6[_0x51bcae(0xad)]?_0x51bcae(0xad):_0x51bcae(0xae);return{'node':_0x25d7e6[_0x51bcae(0xab)][0x0][_0x51bcae(0x99)],'type':_0x2db012,'id':_0x25d7e6[_0x51bcae(0xab)][0x0]['id']};});this[_0x4ccf98(0xaa)]=[{'changes':_0x54dc2e,'state':_0x4ccf98(0xac),'index':0x0}];}[_0x12df8c(0xb4)](_0x475068,_0x993c1){return _0x993c1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3186(_0x1ce607,_0x1f216b){var _0x4777ec=_0x4777();return _0x3186=function(_0x318634,_0x303c53){_0x318634=_0x318634-0x183;var _0x56efad=_0x4777ec[_0x318634];return _0x56efad;},_0x3186(_0x1ce607,_0x1f216b);}var _0x4ef9bf=_0x3186;(function(_0x34d601,_0x537d52){var _0x521e1d=_0x3186,_0x13cf13=_0x34d601();while(!![]){try{var _0x2da665=-parseInt(_0x521e1d(0x186))/0x1*(parseInt(_0x521e1d(0x196))/0x2)+parseInt(_0x521e1d(0x193))/0x3*(-parseInt(_0x521e1d(0x189))/0x4)+parseInt(_0x521e1d(0x191))/0x5*(parseInt(_0x521e1d(0x190))/0x6)+parseInt(_0x521e1d(0x188))/0x7*(-parseInt(_0x521e1d(0x18b))/0x8)+-parseInt(_0x521e1d(0x18d))/0x9+-parseInt(_0x521e1d(0x18f))/0xa+parseInt(_0x521e1d(0x194))/0xb;if(_0x2da665===_0x537d52)break;else _0x13cf13['push'](_0x13cf13['shift']());}catch(_0xa5e6f1){_0x13cf13['push'](_0x13cf13['shift']());}}}(_0x4777,0x6eab9));import{Plugin as _0x363c6f}from'ckeditor5/src/core.js';import{CKEditorError as _0x57fe6e}from'ckeditor5/src/utils.js';export class AIAdapter extends _0x363c6f{static get[_0x4ef9bf(0x18a)](){var _0x4bf52a=_0x4ef9bf;return _0x4bf52a(0x185);}static get[_0x4ef9bf(0x184)](){return!0x0;}static get[_0x4ef9bf(0x183)](){return!0x0;}[_0x4ef9bf(0x18e)](){var _0x30e4d8=_0x4ef9bf;if(!this[_0x30e4d8(0x187)])throw new _0x57fe6e(_0x30e4d8(0x192),null);}}export class AIRequestError extends Error{constructor(_0x36abf9){var _0x1c71b2=_0x4ef9bf;super(_0x36abf9),this[_0x1c71b2(0x18c)]=_0x1c71b2(0x195);}}function _0x4777(){var _0x2505c2=['391120NWcVEj','1298874CoTpSJ','10znPDPX','aiadapter-text-adapter-not-set','1512uRnqdN','14071673pMjLUv','AIRequestError','4wzPELN','isPremiumPlugin','isOfficialPlugin','AIAdapter','100627EKVoVN','textAdapter','724283qwhOdk','1428pvWYrU','pluginName','40NeXGAo','name','2891313xQWMGk','afterInit'];_0x4777=function(){return _0x2505c2;};return _0x4777();}
23
+ var _0x42d897=_0x277d;(function(_0x2ce39a,_0x16c94b){var _0x1358f4=_0x277d,_0x58d4e0=_0x2ce39a();while(!![]){try{var _0x506bfd=-parseInt(_0x1358f4(0x161))/0x1+-parseInt(_0x1358f4(0x15f))/0x2+parseInt(_0x1358f4(0x15d))/0x3+-parseInt(_0x1358f4(0x162))/0x4*(parseInt(_0x1358f4(0x159))/0x5)+parseInt(_0x1358f4(0x160))/0x6*(parseInt(_0x1358f4(0x165))/0x7)+parseInt(_0x1358f4(0x154))/0x8+parseInt(_0x1358f4(0x15a))/0x9*(-parseInt(_0x1358f4(0x15e))/0xa);if(_0x506bfd===_0x16c94b)break;else _0x58d4e0['push'](_0x58d4e0['shift']());}catch(_0x542fef){_0x58d4e0['push'](_0x58d4e0['shift']());}}}(_0x1189,0xf2a00));function _0x1189(){var _0x2d970b=['490406GHrfwh','2190MDHYpR','654848xIjfoA','140jHNuLi','textAdapter','AIAdapter','12796Lwsmas','afterInit','14572936MByMvI','name','pluginName','isPremiumPlugin','isOfficialPlugin','123990XbrQKo','2481786SlUYro','aiadapter-text-adapter-not-set','AIRequestError','2473332VzLzGe','20DEBMGk'];_0x1189=function(){return _0x2d970b;};return _0x1189();}import{Plugin as _0x5378d0}from'ckeditor5/src/core.js';import{CKEditorError as _0x33c517}from'ckeditor5/src/utils.js';function _0x277d(_0x36ce40,_0x462e3f){var _0x11891f=_0x1189();return _0x277d=function(_0x277d58,_0x5b8fa7){_0x277d58=_0x277d58-0x154;var _0x61f5d7=_0x11891f[_0x277d58];return _0x61f5d7;},_0x277d(_0x36ce40,_0x462e3f);}export class AIAdapter extends _0x5378d0{static get[_0x42d897(0x156)](){var _0x1582ba=_0x42d897;return _0x1582ba(0x164);}static get[_0x42d897(0x158)](){return!0x0;}static get[_0x42d897(0x157)](){return!0x0;}[_0x42d897(0x166)](){var _0x548cae=_0x42d897;if(!this[_0x548cae(0x163)])throw new _0x33c517(_0x548cae(0x15b),null);}}export class AIRequestError extends Error{constructor(_0x4ef3e7){var _0xc519d0=_0x42d897;super(_0x4ef3e7),this[_0xc519d0(0x155)]=_0xc519d0(0x15c);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x29577e=_0xc087;(function(_0x919540,_0x8ba195){const _0xbea5f3=_0xc087,_0x2f766a=_0x919540();while(!![]){try{const _0x3f25fa=parseInt(_0xbea5f3(0x1ce))/0x1+-parseInt(_0xbea5f3(0x1d0))/0x2+parseInt(_0xbea5f3(0x1d8))/0x3+-parseInt(_0xbea5f3(0x1d6))/0x4*(-parseInt(_0xbea5f3(0x1cf))/0x5)+parseInt(_0xbea5f3(0x1da))/0x6+parseInt(_0xbea5f3(0x1d9))/0x7+parseInt(_0xbea5f3(0x1dd))/0x8*(-parseInt(_0xbea5f3(0x1e4))/0x9);if(_0x3f25fa===_0x8ba195)break;else _0x2f766a['push'](_0x2f766a['shift']());}catch(_0x290d67){_0x2f766a['push'](_0x2f766a['shift']());}}}(_0x30ef,0x73e8a));function _0x30ef(){const _0x55b25d=['_prepareRequestHeaders','locale','plugins','634372iyyxSM','17350SqyItR','1067194vlfRBE','resolve','abort','assign','abortController','get','376CKVxcs','catch','627339fWguJN','5080369NDPxGW','1427028bwAfya','error','init','243224NzxDgi','AI_ERROR_GET_PARAMETERS','requires','AbortError','object','editor','AI_ERROR_GET_HEADERS','333VKdrTQ','sendRequest','reject','_prepareRequestParameters','signal','application/json','aitextadapter-send-request-failed','textAdapter','name','aborted','makeRequest'];_0x30ef=function(){return _0x55b25d;};return _0x30ef();}import{Plugin as _0x41a1c6}from'ckeditor5/src/core.js';import{CKEditorError as _0x4cbf79}from'ckeditor5/src/utils.js';import{AIAdapter as _0x149510,AIRequestError as _0x587740}from'./aiadapter.js';function _0xc087(_0x2997c6,_0x11a3bc){const _0x30efb6=_0x30ef();return _0xc087=function(_0xc08717,_0xbfb1c){_0xc08717=_0xc08717-0x1c3;let _0x4c39c3=_0x30efb6[_0xc08717];return _0x4c39c3;},_0xc087(_0x2997c6,_0x11a3bc);}import{getTranslation as _0x1b7d7e}from'../utils/common-translations.js';export class AITextAdapter extends _0x41a1c6{[_0x29577e(0x1d4)];static get[_0x29577e(0x1df)](){return[_0x149510];}constructor(_0x162514){const _0x2435e6=_0x29577e;super(_0x162514),this[_0x2435e6(0x1d4)]=new AbortController();}[_0x29577e(0x1dc)](){const _0x44d9ff=_0x29577e;this[_0x44d9ff(0x1e2)][_0x44d9ff(0x1cd)][_0x44d9ff(0x1d5)](_0x149510)[_0x44d9ff(0x1c7)]=this;}[_0x29577e(0x1d2)](){const _0x2cf096=_0x29577e;this[_0x2cf096(0x1d4)][_0x2cf096(0x1c4)][_0x2cf096(0x1c9)]||(this[_0x2cf096(0x1d4)][_0x2cf096(0x1d2)](),this[_0x2cf096(0x1d4)]=new AbortController());}async[_0x29577e(0x1ca)](_0x17cc0d){const _0x30009b=_0x29577e;return this[_0x30009b(0x1e5)](_0x17cc0d)[_0x30009b(0x1d7)](_0x3b1738=>{const _0x45d847=_0x30009b;if(_0x3b1738 instanceof _0x587740)return Promise[_0x45d847(0x1e6)](_0x3b1738);if(_0x45d847(0x1e0)==_0x3b1738[_0x45d847(0x1c8)])return Promise[_0x45d847(0x1d1)]();throw console[_0x45d847(0x1db)](_0x3b1738),new _0x4cbf79(_0x45d847(0x1c6),null);});}async[_0x29577e(0x1cb)](_0x392db9,_0x3220d3){const _0x280b6a=_0x29577e,_0x1953bf=this[_0x280b6a(0x1e2)][_0x280b6a(0x1cc)],_0x4d10d9={'Content-Type':_0x280b6a(0x1c5)};if(_0x280b6a(0x1e1)==typeof _0x392db9)Object[_0x280b6a(0x1d3)](_0x4d10d9,_0x392db9);else{if(_0x392db9)try{const _0x4dd666=await _0x392db9(_0x3220d3);Object[_0x280b6a(0x1d3)](_0x4d10d9,_0x4dd666);}catch{return Promise[_0x280b6a(0x1e6)](new _0x587740(_0x1b7d7e(_0x1953bf,_0x280b6a(0x1e3))));}}return _0x4d10d9;}async[_0x29577e(0x1c3)](_0x3fe48c,_0xe24c52){const _0x203c65=_0x29577e,_0x32afaa=this[_0x203c65(0x1e2)][_0x203c65(0x1cc)];if(_0x203c65(0x1e1)==typeof _0x3fe48c)return _0x3fe48c;try{return await _0x3fe48c(_0xe24c52);}catch{return Promise[_0x203c65(0x1e6)](new _0x587740(_0x1b7d7e(_0x32afaa,_0x203c65(0x1de))));}}}
23
+ const _0x3c06f7=_0x2ef4;function _0x2ef4(_0x47099c,_0x1cce9e){const _0x21dbd5=_0x21db();return _0x2ef4=function(_0x2ef439,_0x2eda87){_0x2ef439=_0x2ef439-0x84;let _0x4a0e7c=_0x21dbd5[_0x2ef439];return _0x4a0e7c;},_0x2ef4(_0x47099c,_0x1cce9e);}(function(_0x5a6519,_0xcf4bca){const _0x2b0b93=_0x2ef4,_0xe9149a=_0x5a6519();while(!![]){try{const _0x351319=-parseInt(_0x2b0b93(0x85))/0x1+-parseInt(_0x2b0b93(0x84))/0x2+parseInt(_0x2b0b93(0xa5))/0x3*(-parseInt(_0x2b0b93(0x9a))/0x4)+-parseInt(_0x2b0b93(0x87))/0x5+-parseInt(_0x2b0b93(0xa4))/0x6+-parseInt(_0x2b0b93(0x8f))/0x7+-parseInt(_0x2b0b93(0x96))/0x8*(-parseInt(_0x2b0b93(0x9b))/0x9);if(_0x351319===_0xcf4bca)break;else _0xe9149a['push'](_0xe9149a['shift']());}catch(_0x248970){_0xe9149a['push'](_0xe9149a['shift']());}}}(_0x21db,0x52659));import{Plugin as _0x5b64a2}from'ckeditor5/src/core.js';import{CKEditorError as _0x466e38}from'ckeditor5/src/utils.js';function _0x21db(){const _0x33fb58=['AI_ERROR_GET_HEADERS','makeRequest','resolve','assign','catch','signal','3545654BvgFFQ','name','_prepareRequestParameters','plugins','aitextadapter-send-request-failed','object','requires','8PjzkVt','locale','error','get','528PRYexD','20985273lhfCSg','abort','_prepareRequestHeaders','application/json','abortController','init','AI_ERROR_GET_PARAMETERS','editor','textAdapter','3225318XsPZqp','1605iayhiV','reject','aborted','165764uKhmQa','556692UggJbf','AbortError','1199655ubfPTY','sendRequest'];_0x21db=function(){return _0x33fb58;};return _0x21db();}import{AIAdapter as _0x4c57fa,AIRequestError as _0x595db6}from'./aiadapter.js';import{getTranslation as _0x3348a5}from'../utils/common-translations.js';export class AITextAdapter extends _0x5b64a2{[_0x3c06f7(0x9f)];static get[_0x3c06f7(0x95)](){return[_0x4c57fa];}constructor(_0x421fc5){const _0x4c4ade=_0x3c06f7;super(_0x421fc5),this[_0x4c4ade(0x9f)]=new AbortController();}[_0x3c06f7(0xa0)](){const _0x409cfb=_0x3c06f7;this[_0x409cfb(0xa2)][_0x409cfb(0x92)][_0x409cfb(0x99)](_0x4c57fa)[_0x409cfb(0xa3)]=this;}[_0x3c06f7(0x9c)](){const _0x30f802=_0x3c06f7;this[_0x30f802(0x9f)][_0x30f802(0x8e)][_0x30f802(0xa7)]||(this[_0x30f802(0x9f)][_0x30f802(0x9c)](),this[_0x30f802(0x9f)]=new AbortController());}async[_0x3c06f7(0x8a)](_0x322a9b){const _0x19d1f0=_0x3c06f7;return this[_0x19d1f0(0x88)](_0x322a9b)[_0x19d1f0(0x8d)](_0x2d77da=>{const _0x488a32=_0x19d1f0;if(_0x2d77da instanceof _0x595db6)return Promise[_0x488a32(0xa6)](_0x2d77da);if(_0x488a32(0x86)==_0x2d77da[_0x488a32(0x90)])return Promise[_0x488a32(0x8b)]();throw console[_0x488a32(0x98)](_0x2d77da),new _0x466e38(_0x488a32(0x93),null);});}async[_0x3c06f7(0x9d)](_0x32fbb3,_0x1eb41e){const _0x31b533=_0x3c06f7,_0xd78a4a=this[_0x31b533(0xa2)][_0x31b533(0x97)],_0x56196e={'Content-Type':_0x31b533(0x9e)};if(_0x31b533(0x94)==typeof _0x32fbb3)Object[_0x31b533(0x8c)](_0x56196e,_0x32fbb3);else{if(_0x32fbb3)try{const _0x5427d9=await _0x32fbb3(_0x1eb41e);Object[_0x31b533(0x8c)](_0x56196e,_0x5427d9);}catch{return Promise[_0x31b533(0xa6)](new _0x595db6(_0x3348a5(_0xd78a4a,_0x31b533(0x89))));}}return _0x56196e;}async[_0x3c06f7(0x91)](_0x5161a8,_0x36f3a7){const _0x478832=_0x3c06f7,_0x5946d1=this[_0x478832(0xa2)][_0x478832(0x97)];if(_0x478832(0x94)==typeof _0x5161a8)return _0x5161a8;try{return await _0x5161a8(_0x36f3a7);}catch{return Promise[_0x478832(0xa6)](new _0x595db6(_0x3348a5(_0x5946d1,_0x478832(0xa1))));}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x7a809a=_0x200b;(function(_0x38a87b,_0x2c72cc){const _0x2aa817=_0x200b,_0x85f82a=_0x38a87b();while(!![]){try{const _0x231a50=-parseInt(_0x2aa817(0xab))/0x1+-parseInt(_0x2aa817(0x84))/0x2*(-parseInt(_0x2aa817(0x8a))/0x3)+parseInt(_0x2aa817(0xc6))/0x4+parseInt(_0x2aa817(0xc5))/0x5*(parseInt(_0x2aa817(0xbb))/0x6)+parseInt(_0x2aa817(0xb9))/0x7+parseInt(_0x2aa817(0xc3))/0x8+-parseInt(_0x2aa817(0x93))/0x9;if(_0x231a50===_0x2c72cc)break;else _0x85f82a['push'](_0x85f82a['shift']());}catch(_0x3e5f84){_0x85f82a['push'](_0x85f82a['shift']());}}}(_0x3102,0x51f34));import{AITextAdapter as _0x53f494}from'./aitextadapter.js';import{AIRequestError as _0xc73759}from'./aiadapter.js';import{BedrockRuntimeClient as _0x5105f5,InvokeModelCommand as _0x5b1565,InvokeModelWithResponseStreamCommand as _0x9a153}from'@aws-sdk/client-bedrock-runtime';function _0x200b(_0x570a6e,_0x9e49b5){const _0x310279=_0x3102();return _0x200b=function(_0x200b70,_0x5291a1){_0x200b70=_0x200b70-0x81;let _0x50ca78=_0x310279[_0x200b70];return _0x50ca78;},_0x200b(_0x570a6e,_0x9e49b5);}function _0x3102(){const _0x1aebc1=['_processAWSRequest','bedrock-2023-05-31','parse','Human:\x0a','_prepareRequestParameters','generations','get','7313337ctcrSx','generation','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.','editor','abortController','POST','ai.assistant.adapter.aws.apiUrl','Instruction:\x0a','_getGeneratedText','text','config','application/json','_bedrockClientConfig','meta.llama','ai.assistant.adapter.aws.requestParameters','define','chunk','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','anthropic.claude','completions','_requestParameters','_prepareRequestHeaders','\x0a<</SYS>>\x0a[INST]\x0a','bytes','329371pVbwPy','signal','json','split','utf-8','sendRequest','_readStaticResponse','getReader','send','map','\x0a\x0aAssistant:','ai.assistant.adapter.aws.bedrockClientConfig','ai21.j2','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.','3810478dIFpgq','completion','524670FvzXvQ','data','cohere.command','preparePrompt','join','\x0a[/INST]','_readAsyncIterableResponse','_processProxyRequest','2404232gIyPEv','test','35WBUzAY','71240DfawBP','body','_readStreamableResponse','_requestHeaders','AI_ERROR_UNSUPPORTED_MODEL','ai.assistant.adapter.aws.requestHeaders','decode','_apiUrl','anthropic.claude-v2','filter','AWSTextAdapter','stringify','<<SYS>>\x0a','5648lOkurr','resolve','pluginName','length','read','locale','3QXZmgu','getModelFamily'];_0x3102=function(){return _0x1aebc1;};return _0x3102();}import{getTranslation as _0x4230e9}from'../utils/common-translations.js';export class AWSTextAdapter extends _0x53f494{[_0x7a809a(0xcd)];[_0x7a809a(0xc9)];[_0x7a809a(0x9f)];[_0x7a809a(0xa7)];static get[_0x7a809a(0x86)](){const _0x4adabf=_0x7a809a;return _0x4adabf(0x81);}constructor(_0x5c7f40){const _0x59591a=_0x7a809a;super(_0x5c7f40),_0x5c7f40[_0x59591a(0x9d)][_0x59591a(0x92)](_0x59591a(0xa1))||_0x5c7f40[_0x59591a(0x9d)][_0x59591a(0xa2)](_0x59591a(0xa1),{'model':_0x59591a(0xce),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x59591a(0x8d),'stream':!0x0}),this[_0x59591a(0xcd)]=_0x5c7f40[_0x59591a(0x9d)][_0x59591a(0x92)](_0x59591a(0x99)),this[_0x59591a(0x9f)]=_0x5c7f40[_0x59591a(0x9d)][_0x59591a(0x92)](_0x59591a(0xb6)),this[_0x59591a(0xc9)]=_0x5c7f40[_0x59591a(0x9d)][_0x59591a(0x92)](_0x59591a(0xcb)),this[_0x59591a(0xa7)]=_0x5c7f40[_0x59591a(0x9d)][_0x59591a(0x92)](_0x59591a(0xa1));}async[_0x7a809a(0xb0)]({query:_0x5c6a13,context:_0x2546b6,onData:_0x2aa22e,actionId:_0x957b97}){const _0x45a50e=_0x7a809a,{model:_0x1cb1c2,stream:_0x3be488,..._0x120346}=await this[_0x45a50e(0x90)](this[_0x45a50e(0xa7)],_0x957b97),_0x244e58={'prompt':await this[_0x45a50e(0xbe)](_0x5c6a13,_0x2546b6,_0x1cb1c2,_0x957b97),..._0x120346};this[_0x45a50e(0xcd)]?await this[_0x45a50e(0xc2)](_0x244e58,_0x1cb1c2,_0x3be488,_0x2aa22e,_0x957b97):await this[_0x45a50e(0x8c)](_0x244e58,_0x1cb1c2,_0x3be488,_0x2aa22e);}async[_0x7a809a(0xbe)](_0x55f60a,_0x5f1fdc,_0x45f58b,_0x4e2864){const _0x5d33f5=_0x7a809a;let _0xa581a4,_0x272f38;return _0x5f1fdc?(_0xa581a4=_0x5d33f5(0x95),_0x272f38=_0x5d33f5(0x9a)+_0x55f60a+_0x5d33f5(0xa4)+_0x5f1fdc):(_0xa581a4=_0x5d33f5(0xb8),_0x272f38=_0x55f60a),_0x5d33f5(0xa0)==this[_0x5d33f5(0x8b)](_0x45f58b)?_0x5d33f5(0x83)+_0xa581a4+_0x5d33f5(0xa9)+_0x272f38+_0x5d33f5(0xc0):_0x5d33f5(0x8f)+_0xa581a4+'\x0a'+_0x272f38+_0x5d33f5(0xb5);}[_0x7a809a(0x8b)](_0x5eb3ff){const _0x4e6eb5=_0x7a809a;if(/^anthropic\.claude/[_0x4e6eb5(0xc4)](_0x5eb3ff))return _0x4e6eb5(0xa5);if(/^ai21\.j2/[_0x4e6eb5(0xc4)](_0x5eb3ff))return _0x4e6eb5(0xb7);if(/^cohere\.command/[_0x4e6eb5(0xc4)](_0x5eb3ff))return _0x4e6eb5(0xbd);if(/^meta\.llama/[_0x4e6eb5(0xc4)](_0x5eb3ff))return _0x4e6eb5(0xa0);throw new _0xc73759(_0x4230e9(this[_0x4e6eb5(0x96)][_0x4e6eb5(0x89)],_0x4e6eb5(0xca),_0x5eb3ff));}async[_0x7a809a(0xc2)](_0x4e4826,_0x37f183,_0x460c20,_0x2589ef,_0x34ff59){const _0x1902d1=_0x7a809a,_0xbb0d2a={'method':_0x1902d1(0x98),'headers':await this[_0x1902d1(0xa8)](this[_0x1902d1(0xc9)],_0x34ff59),'body':JSON[_0x1902d1(0x82)]({..._0x4e4826,'model':_0x37f183,'stream':_0x460c20}),'signal':this[_0x1902d1(0x97)][_0x1902d1(0xac)]},_0xd83714=await fetch(this[_0x1902d1(0xcd)],_0xbb0d2a);_0x460c20?await this[_0x1902d1(0xc8)](_0xd83714,_0x37f183,_0x2589ef):await this[_0x1902d1(0xb1)](_0xd83714,_0x37f183,_0x2589ef);}async[_0x7a809a(0x8c)](_0x3adca7,_0x186fdd,_0x154bd0,_0x3beac9){const _0x1116d1=_0x7a809a,_0xfdd549=new _0x5105f5(this[_0x1116d1(0x9f)]),_0xa0243d={'body':JSON[_0x1116d1(0x82)](_0x3adca7),'contentType':_0x1116d1(0x9e),'accept':_0x1116d1(0x9e),'modelId':_0x186fdd};let _0xdbe903;if(_0x154bd0){const _0x576fde=new _0x9a153(_0xa0243d);_0xdbe903=await _0xfdd549[_0x1116d1(0xb3)](_0x576fde,{'abortSignal':this[_0x1116d1(0x97)][_0x1116d1(0xac)]}),await this[_0x1116d1(0xc1)](_0xdbe903,_0x186fdd,_0x3beac9);}else{const _0x5f3454=new _0x5b1565(_0xa0243d);_0xdbe903=await _0xfdd549[_0x1116d1(0xb3)](_0x5f3454,{'abortSignal':this[_0x1116d1(0x97)][_0x1116d1(0xac)]}),await this[_0x1116d1(0xb1)](_0xdbe903,_0x186fdd,_0x3beac9);}}async[_0x7a809a(0xc1)](_0x5e9ad6,_0x3b6df6,_0x27cc4d){const _0x2cc3e1=_0x7a809a,_0x4598b3=_0x5e9ad6[_0x2cc3e1(0xc7)],_0x3fbb12=new TextDecoder(_0x2cc3e1(0xaf));let _0x3c35d0='';for await(const _0x14b943 of _0x4598b3)if(_0x14b943[_0x2cc3e1(0xa3)]){const _0x564e1f=_0x3fbb12[_0x2cc3e1(0xcc)](_0x14b943[_0x2cc3e1(0xa3)][_0x2cc3e1(0xaa)]),_0x5aa700=JSON[_0x2cc3e1(0x8e)](_0x564e1f);_0x3c35d0+=this[_0x2cc3e1(0x9b)](_0x5aa700,_0x3b6df6),_0x27cc4d(_0x3c35d0);}return Promise[_0x2cc3e1(0x85)]();}async[_0x7a809a(0xc8)](_0x3da7a2,_0x1fc7a7,_0x1387bf){const _0x32f941=_0x7a809a,_0x351516=_0x3da7a2[_0x32f941(0xc7)],_0x358861=new TextDecoder(_0x32f941(0xaf)),_0x33c930=_0x351516[_0x32f941(0xb2)]();let _0x1d6027='',_0x68c2c8='',_0x5632de=!0x1;for(;!_0x5632de;){const {done:_0x40efcf,value:_0x17bc83}=await _0x33c930[_0x32f941(0x88)]();if(_0x5632de=_0x40efcf,_0x5632de)break;const _0x412092=(_0x1d6027+_0x358861[_0x32f941(0xcc)](_0x17bc83))[_0x32f941(0xae)]('\x0a')[_0x32f941(0xb4)](_0x8665b2=>{const _0x489041=_0x32f941;try{return _0x1d6027='',JSON[_0x489041(0x8e)](_0x8665b2);}catch{return _0x1d6027=_0x8665b2,null;}})[_0x32f941(0xcf)](_0x56f90d=>null!==_0x56f90d);_0x412092[_0x32f941(0x87)]&&(_0x68c2c8+=_0x412092[_0x32f941(0xb4)](_0x2057f4=>this[_0x32f941(0x9b)](_0x2057f4,_0x1fc7a7))[_0x32f941(0xbf)](''),_0x1387bf(_0x68c2c8));}return Promise[_0x32f941(0x85)]();}async[_0x7a809a(0xb1)](_0x4cb014,_0x28d7ac,_0x51293a){const _0x5cc4b9=_0x7a809a;let _0x4a3da4;return _0x4a3da4=_0x4cb014 instanceof Response?await _0x4cb014[_0x5cc4b9(0xad)]():JSON[_0x5cc4b9(0x8e)](new TextDecoder(_0x5cc4b9(0xaf))[_0x5cc4b9(0xcc)](_0x4cb014[_0x5cc4b9(0xc7)])),(_0x51293a(this[_0x5cc4b9(0x9b)](_0x4a3da4,_0x28d7ac)),Promise[_0x5cc4b9(0x85)]());}[_0x7a809a(0x9b)](_0x491fd1,_0x23f003){const _0x377ce5=_0x7a809a;switch(this[_0x377ce5(0x8b)](_0x23f003)){case _0x377ce5(0xa5):return _0x491fd1[_0x377ce5(0xba)];case _0x377ce5(0xb7):return _0x491fd1[_0x377ce5(0xa6)][0x0][_0x377ce5(0xbc)][_0x377ce5(0x9c)];case _0x377ce5(0xbd):return _0x491fd1[_0x377ce5(0x91)][0x0][_0x377ce5(0x9c)];case _0x377ce5(0xa0):return _0x491fd1[_0x377ce5(0x94)];}}}
23
+ const _0x2bc041=_0x5a2b;(function(_0x5b0ec1,_0x47e9a8){const _0x28b6ba=_0x5a2b,_0x2ff03e=_0x5b0ec1();while(!![]){try{const _0x48d873=-parseInt(_0x28b6ba(0xfb))/0x1*(-parseInt(_0x28b6ba(0x129))/0x2)+parseInt(_0x28b6ba(0x10d))/0x3*(-parseInt(_0x28b6ba(0x127))/0x4)+-parseInt(_0x28b6ba(0x114))/0x5*(-parseInt(_0x28b6ba(0xda))/0x6)+parseInt(_0x28b6ba(0xde))/0x7*(-parseInt(_0x28b6ba(0x10a))/0x8)+parseInt(_0x28b6ba(0x108))/0x9*(-parseInt(_0x28b6ba(0x107))/0xa)+parseInt(_0x28b6ba(0x11c))/0xb*(parseInt(_0x28b6ba(0xe8))/0xc)+parseInt(_0x28b6ba(0xfc))/0xd;if(_0x48d873===_0x47e9a8)break;else _0x2ff03e['push'](_0x2ff03e['shift']());}catch(_0x2a60cf){_0x2ff03e['push'](_0x2ff03e['shift']());}}}(_0x1f03,0xe34ca));import{AITextAdapter as _0x13fcff}from'./aitextadapter.js';import{AIRequestError as _0x55b63a}from'./aiadapter.js';function _0x1f03(){const _0xd7faa1=['meta.llama','generations','decode','stringify','anthropic.claude','ai.assistant.adapter.aws.bedrockClientConfig','_readAsyncIterableResponse','locale','cohere.command','body','editor','get','read','1197305sXqErX','27733511ZpGppB','ai.assistant.adapter.aws.requestParameters','test','anthropic.claude-v2','_apiUrl','generation','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','getModelFamily','_processProxyRequest','getReader','completion','2042320vritXQ','72SPeXdx','resolve','56qDfLlA','parse','split','51933CXuZZG','filter','text','Human:\x0a','_requestParameters','_requestHeaders','application/json','7288475ayMIes','Instruction:\x0a','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','AWSTextAdapter','\x0a[/INST]','config','preparePrompt','_getGeneratedText','1596826oGJBAY','ai21.j2','json','_readStaticResponse','AI_ERROR_UNSUPPORTED_MODEL','bytes','ai.assistant.adapter.aws.apiUrl','_prepareRequestHeaders','signal','map','join','408WhQqwJ','send','2GxFUTM','_bedrockClientConfig','ai.assistant.adapter.aws.requestHeaders','utf-8','6kfowIO','\x0a<</SYS>>\x0a[INST]\x0a','POST','_readStreamableResponse','602917Vhizdq','_prepareRequestParameters','<<SYS>>\x0a','length','_processAWSRequest','pluginName','abortController','define','chunk','\x0a\x0aAssistant:','12DFrxLg','data','sendRequest','bedrock-2023-05-31','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.','completions'];_0x1f03=function(){return _0xd7faa1;};return _0x1f03();}import{BedrockRuntimeClient as _0x31d2f1,InvokeModelCommand as _0x24333e,InvokeModelWithResponseStreamCommand as _0x363e10}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x45b253}from'../utils/common-translations.js';function _0x5a2b(_0x540a48,_0x2a43df){const _0x1f03a9=_0x1f03();return _0x5a2b=function(_0x5a2b16,_0x2d7547){_0x5a2b16=_0x5a2b16-0xda;let _0x44a8b2=_0x1f03a9[_0x5a2b16];return _0x44a8b2;},_0x5a2b(_0x540a48,_0x2a43df);}export class AWSTextAdapter extends _0x13fcff{[_0x2bc041(0x100)];[_0x2bc041(0x112)];[_0x2bc041(0x12a)];[_0x2bc041(0x111)];static get[_0x2bc041(0xe3)](){const _0x3b3f15=_0x2bc041;return _0x3b3f15(0x117);}constructor(_0x44b1fc){const _0x3e0c2d=_0x2bc041;super(_0x44b1fc),_0x44b1fc[_0x3e0c2d(0x119)][_0x3e0c2d(0xf9)](_0x3e0c2d(0xfd))||_0x44b1fc[_0x3e0c2d(0x119)][_0x3e0c2d(0xe5)](_0x3e0c2d(0xfd),{'model':_0x3e0c2d(0xff),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x3e0c2d(0xeb),'stream':!0x0}),this[_0x3e0c2d(0x100)]=_0x44b1fc[_0x3e0c2d(0x119)][_0x3e0c2d(0xf9)](_0x3e0c2d(0x122)),this[_0x3e0c2d(0x12a)]=_0x44b1fc[_0x3e0c2d(0x119)][_0x3e0c2d(0xf9)](_0x3e0c2d(0xf3)),this[_0x3e0c2d(0x112)]=_0x44b1fc[_0x3e0c2d(0x119)][_0x3e0c2d(0xf9)](_0x3e0c2d(0x12b)),this[_0x3e0c2d(0x111)]=_0x44b1fc[_0x3e0c2d(0x119)][_0x3e0c2d(0xf9)](_0x3e0c2d(0xfd));}async[_0x2bc041(0xea)]({query:_0xcf9830,context:_0x9b37b7,onData:_0x48dd55,actionId:_0x45fa9d}){const _0x139408=_0x2bc041,{model:_0x2f8523,stream:_0x51e122,..._0x5c92cc}=await this[_0x139408(0xdf)](this[_0x139408(0x111)],_0x45fa9d),_0x51a951={'prompt':await this[_0x139408(0x11a)](_0xcf9830,_0x9b37b7,_0x2f8523,_0x45fa9d),..._0x5c92cc};this[_0x139408(0x100)]?await this[_0x139408(0x104)](_0x51a951,_0x2f8523,_0x51e122,_0x48dd55,_0x45fa9d):await this[_0x139408(0xe2)](_0x51a951,_0x2f8523,_0x51e122,_0x48dd55);}async[_0x2bc041(0x11a)](_0x14b6dd,_0x187cb2,_0x2c1cad,_0x58f0b5){const _0x41781e=_0x2bc041;let _0x4afbc4,_0x18faf0;return _0x187cb2?(_0x4afbc4=_0x41781e(0xec),_0x18faf0=_0x41781e(0x115)+_0x14b6dd+_0x41781e(0x102)+_0x187cb2):(_0x4afbc4=_0x41781e(0x116),_0x18faf0=_0x14b6dd),_0x41781e(0xee)==this[_0x41781e(0x103)](_0x2c1cad)?_0x41781e(0xe0)+_0x4afbc4+_0x41781e(0xdb)+_0x18faf0+_0x41781e(0x118):_0x41781e(0x110)+_0x4afbc4+'\x0a'+_0x18faf0+_0x41781e(0xe7);}[_0x2bc041(0x103)](_0x1c502c){const _0x48f937=_0x2bc041;if(/^anthropic\.claude/[_0x48f937(0xfe)](_0x1c502c))return _0x48f937(0xf2);if(/^ai21\.j2/[_0x48f937(0xfe)](_0x1c502c))return _0x48f937(0x11d);if(/^cohere\.command/[_0x48f937(0xfe)](_0x1c502c))return _0x48f937(0xf6);if(/^meta\.llama/[_0x48f937(0xfe)](_0x1c502c))return _0x48f937(0xee);throw new _0x55b63a(_0x45b253(this[_0x48f937(0xf8)][_0x48f937(0xf5)],_0x48f937(0x120),_0x1c502c));}async[_0x2bc041(0x104)](_0x1703ac,_0x58187b,_0x31845b,_0x1e6938,_0x479df4){const _0x321ab7=_0x2bc041,_0x2d9dc6={'method':_0x321ab7(0xdc),'headers':await this[_0x321ab7(0x123)](this[_0x321ab7(0x112)],_0x479df4),'body':JSON[_0x321ab7(0xf1)]({..._0x1703ac,'model':_0x58187b,'stream':_0x31845b}),'signal':this[_0x321ab7(0xe4)][_0x321ab7(0x124)]},_0x321edb=await fetch(this[_0x321ab7(0x100)],_0x2d9dc6);_0x31845b?await this[_0x321ab7(0xdd)](_0x321edb,_0x58187b,_0x1e6938):await this[_0x321ab7(0x11f)](_0x321edb,_0x58187b,_0x1e6938);}async[_0x2bc041(0xe2)](_0x35e6b1,_0x2c3d59,_0x1874af,_0x316f55){const _0x381eb3=_0x2bc041,_0x2327b7=new _0x31d2f1(this[_0x381eb3(0x12a)]),_0x252978={'body':JSON[_0x381eb3(0xf1)](_0x35e6b1),'contentType':_0x381eb3(0x113),'accept':_0x381eb3(0x113),'modelId':_0x2c3d59};let _0x8a79d3;if(_0x1874af){const _0x480cd3=new _0x363e10(_0x252978);_0x8a79d3=await _0x2327b7[_0x381eb3(0x128)](_0x480cd3,{'abortSignal':this[_0x381eb3(0xe4)][_0x381eb3(0x124)]}),await this[_0x381eb3(0xf4)](_0x8a79d3,_0x2c3d59,_0x316f55);}else{const _0x7dc49=new _0x24333e(_0x252978);_0x8a79d3=await _0x2327b7[_0x381eb3(0x128)](_0x7dc49,{'abortSignal':this[_0x381eb3(0xe4)][_0x381eb3(0x124)]}),await this[_0x381eb3(0x11f)](_0x8a79d3,_0x2c3d59,_0x316f55);}}async[_0x2bc041(0xf4)](_0x2e180a,_0x2c12f7,_0x16ac1d){const _0x48e927=_0x2bc041,_0x384137=_0x2e180a[_0x48e927(0xf7)],_0x3339d1=new TextDecoder(_0x48e927(0x12c));let _0x194bbe='';for await(const _0x5c6e0f of _0x384137)if(_0x5c6e0f[_0x48e927(0xe6)]){const _0x26aaa2=_0x3339d1[_0x48e927(0xf0)](_0x5c6e0f[_0x48e927(0xe6)][_0x48e927(0x121)]),_0x4854eb=JSON[_0x48e927(0x10b)](_0x26aaa2);_0x194bbe+=this[_0x48e927(0x11b)](_0x4854eb,_0x2c12f7),_0x16ac1d(_0x194bbe);}return Promise[_0x48e927(0x109)]();}async[_0x2bc041(0xdd)](_0x245d2e,_0x4b9dae,_0x267406){const _0x522e30=_0x2bc041,_0x228dff=_0x245d2e[_0x522e30(0xf7)],_0x34074c=new TextDecoder(_0x522e30(0x12c)),_0x355201=_0x228dff[_0x522e30(0x105)]();let _0x1c7bee='',_0x1918c8='',_0x5a4c83=!0x1;for(;!_0x5a4c83;){const {done:_0x11f309,value:_0x1e3151}=await _0x355201[_0x522e30(0xfa)]();if(_0x5a4c83=_0x11f309,_0x5a4c83)break;const _0x3bfe96=(_0x1c7bee+_0x34074c[_0x522e30(0xf0)](_0x1e3151))[_0x522e30(0x10c)]('\x0a')[_0x522e30(0x125)](_0x532068=>{const _0x35abe2=_0x522e30;try{return _0x1c7bee='',JSON[_0x35abe2(0x10b)](_0x532068);}catch{return _0x1c7bee=_0x532068,null;}})[_0x522e30(0x10e)](_0x138ea9=>null!==_0x138ea9);_0x3bfe96[_0x522e30(0xe1)]&&(_0x1918c8+=_0x3bfe96[_0x522e30(0x125)](_0x1a04bd=>this[_0x522e30(0x11b)](_0x1a04bd,_0x4b9dae))[_0x522e30(0x126)](''),_0x267406(_0x1918c8));}return Promise[_0x522e30(0x109)]();}async[_0x2bc041(0x11f)](_0x48d2f2,_0x4d2d1e,_0x44f26c){const _0x1f8dd6=_0x2bc041;let _0x4d31d5;return _0x4d31d5=_0x48d2f2 instanceof Response?await _0x48d2f2[_0x1f8dd6(0x11e)]():JSON[_0x1f8dd6(0x10b)](new TextDecoder(_0x1f8dd6(0x12c))[_0x1f8dd6(0xf0)](_0x48d2f2[_0x1f8dd6(0xf7)])),(_0x44f26c(this[_0x1f8dd6(0x11b)](_0x4d31d5,_0x4d2d1e)),Promise[_0x1f8dd6(0x109)]());}[_0x2bc041(0x11b)](_0x9b1131,_0x17e3b4){const _0x5c9c15=_0x2bc041;switch(this[_0x5c9c15(0x103)](_0x17e3b4)){case _0x5c9c15(0xf2):return _0x9b1131[_0x5c9c15(0x106)];case _0x5c9c15(0x11d):return _0x9b1131[_0x5c9c15(0xed)][0x0][_0x5c9c15(0xe9)][_0x5c9c15(0x10f)];case _0x5c9c15(0xf6):return _0x9b1131[_0x5c9c15(0xef)][0x0][_0x5c9c15(0x10f)];case _0x5c9c15(0xee):return _0x9b1131[_0x5c9c15(0x101)];}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3e6735=_0x5b92;function _0x46b8(){const _0x340998=['config','153coPmOp','_readStreamableResponse','ai.assistant.adapter.openAI.apiUrl','stringify','pluginName','ai.assistant.adapter.openAI.requestParameters','abortController','choices','decode','581848DRfHgY','1482807iQwBAW','split','5RaaUUl','_requestParameters','system','context_length_exceeded','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','86170BqyzNT','signal','Instruction:\x0a','resolve','parse','[DONE]','message','ai.assistant.adapter.openAI.requestHeaders','reject','body','https://api.openai.com/v1/chat/completions','POST','data:\x20','read','_prepareRequestParameters','AI_ERROR_CONTEXT_LENGTH','prepareMessages','getReader','_isBufferIncomplete','stream','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.','content','includes','AI_ERROR_MODERATION','replace','_requestHeaders','1069692fsJpvJ','Moderation','14wPbeMg','sendRequest','_prepareRequestHeaders','text','map','json','editor','get','filter','length','4002328JOXGgL','_readStaticResponse','OpenAITextAdapter','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','12gYLLfG','1675384gqRVZl','locale','_apiUrl','1YzDRUH','_cleanUpData','29018xYPhYW','delta','gpt-4o','join','define','user'];_0x46b8=function(){return _0x340998;};return _0x46b8();}(function(_0x5918e9,_0x20885f){const _0x366613=_0x5b92,_0x5e849a=_0x5918e9();while(!![]){try{const _0x41060e=-parseInt(_0x366613(0xb6))/0x1*(parseInt(_0x366613(0xc8))/0x2)+parseInt(_0x366613(0xc9))/0x3+-parseInt(_0x366613(0xb3))/0x4*(-parseInt(_0x366613(0xcb))/0x5)+-parseInt(_0x366613(0xa2))/0x6*(-parseInt(_0x366613(0xa4))/0x7)+-parseInt(_0x366613(0xae))/0x8+-parseInt(_0x366613(0xbf))/0x9*(parseInt(_0x366613(0xd0))/0xa)+-parseInt(_0x366613(0xb8))/0xb*(-parseInt(_0x366613(0xb2))/0xc);if(_0x41060e===_0x20885f)break;else _0x5e849a['push'](_0x5e849a['shift']());}catch(_0x3a51cc){_0x5e849a['push'](_0x5e849a['shift']());}}}(_0x46b8,0x51b15));function _0x5b92(_0x42cbe4,_0x5c81b3){const _0x46b806=_0x46b8();return _0x5b92=function(_0x5b9290,_0xb047d6){_0x5b9290=_0x5b9290-0x9f;let _0x3a98c5=_0x46b806[_0x5b9290];return _0x3a98c5;},_0x5b92(_0x42cbe4,_0x5c81b3);}import{AITextAdapter as _0x2ce9c5}from'./aitextadapter.js';import{AIRequestError as _0x518eb2}from'./aiadapter.js';import{getTranslation as _0xe4cf3d}from'../utils/common-translations.js';export class OpenAITextAdapter extends _0x2ce9c5{[_0x3e6735(0xb5)];[_0x3e6735(0xa1)];[_0x3e6735(0xcc)];static get[_0x3e6735(0xc3)](){const _0x305a25=_0x3e6735;return _0x305a25(0xb0);}constructor(_0x4fd9d0){const _0x4582f6=_0x3e6735;super(_0x4fd9d0),_0x4fd9d0[_0x4582f6(0xbe)][_0x4582f6(0xbc)](_0x4582f6(0xc1),_0x4582f6(0xda)),_0x4fd9d0[_0x4582f6(0xbe)][_0x4582f6(0xab)](_0x4582f6(0xc4))||_0x4fd9d0[_0x4582f6(0xbe)][_0x4582f6(0xbc)](_0x4582f6(0xc4),{'model':_0x4582f6(0xba),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x4582f6(0xb5)]=_0x4fd9d0[_0x4582f6(0xbe)][_0x4582f6(0xab)](_0x4582f6(0xc1)),this[_0x4582f6(0xa1)]=_0x4fd9d0[_0x4582f6(0xbe)][_0x4582f6(0xab)](_0x4582f6(0xd7))||{},this[_0x4582f6(0xcc)]=_0x4fd9d0[_0x4582f6(0xbe)][_0x4582f6(0xab)](_0x4582f6(0xc4));}async[_0x3e6735(0xa5)]({query:_0x876160,context:_0x36215d,onData:_0x18c3a3,actionId:_0x379d0d}){const _0x2667a3=_0x3e6735,_0x18a60a=this[_0x2667a3(0xaa)][_0x2667a3(0xb4)],_0x332708=await this[_0x2667a3(0xe0)](_0x876160,_0x36215d,_0x379d0d),_0x301f6a=await this[_0x2667a3(0xa6)](this[_0x2667a3(0xa1)],_0x379d0d),_0x434ddc=await this[_0x2667a3(0xde)](this[_0x2667a3(0xcc)],_0x379d0d),_0x4c062f={'messages':_0x332708,..._0x434ddc},_0x429a04={'method':_0x2667a3(0xdb),'headers':_0x301f6a,'body':JSON[_0x2667a3(0xc2)](_0x4c062f),'signal':this[_0x2667a3(0xc5)][_0x2667a3(0xd1)]},_0x15a92f=await fetch(this[_0x2667a3(0xb5)],_0x429a04);if(_0x15a92f['ok'])return _0x434ddc[_0x2667a3(0xe3)]?await this[_0x2667a3(0xc0)](_0x15a92f,_0x18c3a3):await this[_0x2667a3(0xaf)](_0x15a92f,_0x18c3a3),Promise[_0x2667a3(0xd3)]();{const _0x3dd1c0=await _0x15a92f[_0x2667a3(0xa7)]();return _0x3dd1c0[_0x2667a3(0xe6)](_0x2667a3(0xce))?Promise[_0x2667a3(0xd8)](new _0x518eb2(_0xe4cf3d(_0x18a60a,_0x2667a3(0xdf)))):_0x3dd1c0[_0x2667a3(0xe6)](_0x2667a3(0xa3))?Promise[_0x2667a3(0xd8)](new _0x518eb2(_0xe4cf3d(_0x18a60a,_0x2667a3(0x9f)))):Promise[_0x2667a3(0xd8)](new Error(_0x3dd1c0));}}async[_0x3e6735(0xe0)](_0xa5f114,_0x3f23a0,_0x4bd262){const _0x296237=_0x3e6735;let _0x2d7575,_0x28bc66;return _0x3f23a0?(_0x2d7575=_0x296237(0xe4),_0x28bc66=_0x296237(0xd2)+_0xa5f114+_0x296237(0xcf)+_0x3f23a0):(_0x2d7575=_0x296237(0xb1),_0x28bc66=_0xa5f114),[{'role':_0x296237(0xcd),'content':_0x2d7575},{'role':_0x296237(0xbd),'content':_0x28bc66}];}async[_0x3e6735(0xc0)](_0x9debce,_0x1377ae){const _0x2af0c9=_0x3e6735,_0x4796f4=_0x9debce[_0x2af0c9(0xd9)][_0x2af0c9(0xe1)](),_0x1d582c=new TextDecoder();let _0x3cd309='',_0x35e0d0='',_0x46aeb5='',_0x62c9b0=!0x1;for(;!_0x62c9b0;){const {done:_0x578999,value:_0xd407bc}=await _0x4796f4[_0x2af0c9(0xdd)](),_0x2709e8=_0x3cd309+_0x1d582c[_0x2af0c9(0xc7)](_0xd407bc);let _0x11f6d3='';_0x62c9b0=_0x578999;try{_0x11f6d3=this[_0x2af0c9(0xb7)](_0x2709e8),_0x3cd309='';}catch{_0x3cd309=_0x2709e8;continue;}_0x35e0d0+=_0x11f6d3,!_0x62c9b0&&this[_0x2af0c9(0xe2)](_0x35e0d0)||_0x35e0d0&&(_0x46aeb5+=_0x35e0d0,_0x35e0d0='',_0x1377ae(_0x46aeb5));}return Promise[_0x2af0c9(0xd3)]();}async[_0x3e6735(0xaf)](_0x46d403,_0x31aa5f){const _0x391b36=_0x3e6735;return _0x31aa5f((await _0x46d403[_0x391b36(0xa9)]())[_0x391b36(0xc6)][0x0][_0x391b36(0xd6)][_0x391b36(0xe5)]),Promise[_0x391b36(0xd3)]();}[_0x3e6735(0xe2)](_0x4e5633){const _0x3c0876=_0x3e6735,_0x12aa77=_0x4e5633[_0x3c0876(0xca)]('<')[_0x3c0876(0xad)]!==_0x4e5633[_0x3c0876(0xca)]('>')[_0x3c0876(0xad)],_0xaa2e10=_0x4e5633[_0x3c0876(0xad)]<0x1e;return _0x12aa77&&_0xaa2e10;}[_0x3e6735(0xb7)](_0x38513a){const _0x268038=_0x3e6735;return _0x38513a[_0x268038(0xca)](/\n(?![^{]*\})/g)[_0x268038(0xa8)](_0x48fdbd=>_0x48fdbd[_0x268038(0xa0)](_0x268038(0xdc),''))[_0x268038(0xac)](_0x30a539=>_0x30a539&&_0x30a539[_0x268038(0xad)]>0x0&&_0x268038(0xd5)!==_0x30a539)[_0x268038(0xa8)](_0x569671=>{const _0x5b24d2=_0x268038,{choices:_0x43cd6e}=JSON[_0x5b24d2(0xd4)](_0x569671);if(_0x43cd6e[0x0]?.[_0x5b24d2(0xb9)]?.[_0x5b24d2(0xe5)])return _0x43cd6e[0x0][_0x5b24d2(0xb9)][_0x5b24d2(0xe5)];})[_0x268038(0xac)](_0x12e089=>_0x12e089)[_0x268038(0xbb)]('');}}
23
+ const _0x4ee92e=_0x2835;(function(_0x326fee,_0x4f15d8){const _0xaf97a6=_0x2835,_0x34bff5=_0x326fee();while(!![]){try{const _0x4805df=-parseInt(_0xaf97a6(0xbc))/0x1*(parseInt(_0xaf97a6(0xe1))/0x2)+-parseInt(_0xaf97a6(0xe6))/0x3*(-parseInt(_0xaf97a6(0xc6))/0x4)+parseInt(_0xaf97a6(0xc8))/0x5*(parseInt(_0xaf97a6(0xb0))/0x6)+parseInt(_0xaf97a6(0xb8))/0x7*(parseInt(_0xaf97a6(0xf2))/0x8)+-parseInt(_0xaf97a6(0xbe))/0x9*(-parseInt(_0xaf97a6(0xc3))/0xa)+-parseInt(_0xaf97a6(0xbb))/0xb*(parseInt(_0xaf97a6(0xd5))/0xc)+parseInt(_0xaf97a6(0xe2))/0xd;if(_0x4805df===_0x4f15d8)break;else _0x34bff5['push'](_0x34bff5['shift']());}catch(_0x2cfb5b){_0x34bff5['push'](_0x34bff5['shift']());}}}(_0x2b2d,0xe9d6e));import{AITextAdapter as _0x1aeee1}from'./aitextadapter.js';function _0x2835(_0x2dff34,_0x4d71e7){const _0x2b2d7f=_0x2b2d();return _0x2835=function(_0x283541,_0x4eca0b){_0x283541=_0x283541-0xb0;let _0x17613c=_0x2b2d7f[_0x283541];return _0x17613c;},_0x2835(_0x2dff34,_0x4d71e7);}import{AIRequestError as _0x43adc0}from'./aiadapter.js';function _0x2b2d(){const _0x37cb73=['join','choices','gpt-4o','6vrAcUs','_readStaticResponse','https://api.openai.com/v1/chat/completions','abortController','split','parse','pluginName','_prepareRequestHeaders','1978151GFhGpI','data:\x20','stringify','1235179uyVqGx','1864orEevA','define','171duRVHm','body','Moderation','resolve','AI_ERROR_CONTEXT_LENGTH','760570WOYTws','content','reject','3184kzdvFD','_readStreamableResponse','6224505SFBCuN','read','signal','OpenAITextAdapter','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','get','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','getReader','decode','[DONE]','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.','_apiUrl','editor','204JcsHpP','context_length_exceeded','_cleanUpData','json','_prepareRequestParameters','stream','includes','_requestParameters','user','config','locale','ai.assistant.adapter.openAI.apiUrl','1052SShuCW','959790EbGhYB','POST','delta','system','3018vbkJcM','length','ai.assistant.adapter.openAI.requestHeaders','AI_ERROR_MODERATION','_requestHeaders','Instruction:\x0a','message','filter','ai.assistant.adapter.openAI.requestParameters','text','prepareMessages','replace','8gfwjma','map','_isBufferIncomplete','sendRequest'];_0x2b2d=function(){return _0x37cb73;};return _0x2b2d();}import{getTranslation as _0x28dba0}from'../utils/common-translations.js';export class OpenAITextAdapter extends _0x1aeee1{[_0x4ee92e(0xd3)];[_0x4ee92e(0xea)];[_0x4ee92e(0xdc)];static get[_0x4ee92e(0xb6)](){const _0x20a709=_0x4ee92e;return _0x20a709(0xcb);}constructor(_0x223afd){const _0x27d768=_0x4ee92e;super(_0x223afd),_0x223afd[_0x27d768(0xde)][_0x27d768(0xbd)](_0x27d768(0xe0),_0x27d768(0xb2)),_0x223afd[_0x27d768(0xde)][_0x27d768(0xcd)](_0x27d768(0xee))||_0x223afd[_0x27d768(0xde)][_0x27d768(0xbd)](_0x27d768(0xee),{'model':_0x27d768(0xf8),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x27d768(0xd3)]=_0x223afd[_0x27d768(0xde)][_0x27d768(0xcd)](_0x27d768(0xe0)),this[_0x27d768(0xea)]=_0x223afd[_0x27d768(0xde)][_0x27d768(0xcd)](_0x27d768(0xe8))||{},this[_0x27d768(0xdc)]=_0x223afd[_0x27d768(0xde)][_0x27d768(0xcd)](_0x27d768(0xee));}async[_0x4ee92e(0xf5)]({query:_0x42a337,context:_0x25ea8b,onData:_0x19ab93,actionId:_0x39278c}){const _0x2e819e=_0x4ee92e,_0x6d2a5c=this[_0x2e819e(0xd4)][_0x2e819e(0xdf)],_0x365397=await this[_0x2e819e(0xf0)](_0x42a337,_0x25ea8b,_0x39278c),_0x14b724=await this[_0x2e819e(0xb7)](this[_0x2e819e(0xea)],_0x39278c),_0x4c7def=await this[_0x2e819e(0xd9)](this[_0x2e819e(0xdc)],_0x39278c),_0x5f4b03={'messages':_0x365397,..._0x4c7def},_0xc846={'method':_0x2e819e(0xe3),'headers':_0x14b724,'body':JSON[_0x2e819e(0xba)](_0x5f4b03),'signal':this[_0x2e819e(0xb3)][_0x2e819e(0xca)]},_0x5eeaab=await fetch(this[_0x2e819e(0xd3)],_0xc846);if(_0x5eeaab['ok'])return _0x4c7def[_0x2e819e(0xda)]?await this[_0x2e819e(0xc7)](_0x5eeaab,_0x19ab93):await this[_0x2e819e(0xb1)](_0x5eeaab,_0x19ab93),Promise[_0x2e819e(0xc1)]();{const _0x4cbd91=await _0x5eeaab[_0x2e819e(0xef)]();return _0x4cbd91[_0x2e819e(0xdb)](_0x2e819e(0xd6))?Promise[_0x2e819e(0xc5)](new _0x43adc0(_0x28dba0(_0x6d2a5c,_0x2e819e(0xc2)))):_0x4cbd91[_0x2e819e(0xdb)](_0x2e819e(0xc0))?Promise[_0x2e819e(0xc5)](new _0x43adc0(_0x28dba0(_0x6d2a5c,_0x2e819e(0xe9)))):Promise[_0x2e819e(0xc5)](new Error(_0x4cbd91));}}async[_0x4ee92e(0xf0)](_0x11c0d5,_0x21070b,_0xc5ae7b){const _0x4c895c=_0x4ee92e;let _0x3b77a4,_0x24cc42;return _0x21070b?(_0x3b77a4=_0x4c895c(0xd2),_0x24cc42=_0x4c895c(0xeb)+_0x11c0d5+_0x4c895c(0xce)+_0x21070b):(_0x3b77a4=_0x4c895c(0xcc),_0x24cc42=_0x11c0d5),[{'role':_0x4c895c(0xe5),'content':_0x3b77a4},{'role':_0x4c895c(0xdd),'content':_0x24cc42}];}async[_0x4ee92e(0xc7)](_0x3a8511,_0x3d48d5){const _0x53dc92=_0x4ee92e,_0x4152e2=_0x3a8511[_0x53dc92(0xbf)][_0x53dc92(0xcf)](),_0x386838=new TextDecoder();let _0x624328='',_0xb3bb77='',_0x578abb='',_0x1a86e5=!0x1;for(;!_0x1a86e5;){const {done:_0x686f19,value:_0x24a6d6}=await _0x4152e2[_0x53dc92(0xc9)](),_0x261d2a=_0x624328+_0x386838[_0x53dc92(0xd0)](_0x24a6d6);let _0x1d589a='';_0x1a86e5=_0x686f19;try{_0x1d589a=this[_0x53dc92(0xd7)](_0x261d2a),_0x624328='';}catch{_0x624328=_0x261d2a;continue;}_0xb3bb77+=_0x1d589a,!_0x1a86e5&&this[_0x53dc92(0xf4)](_0xb3bb77)||_0xb3bb77&&(_0x578abb+=_0xb3bb77,_0xb3bb77='',_0x3d48d5(_0x578abb));}return Promise[_0x53dc92(0xc1)]();}async[_0x4ee92e(0xb1)](_0x3042d9,_0x26c179){const _0x2f82f0=_0x4ee92e;return _0x26c179((await _0x3042d9[_0x2f82f0(0xd8)]())[_0x2f82f0(0xf7)][0x0][_0x2f82f0(0xec)][_0x2f82f0(0xc4)]),Promise[_0x2f82f0(0xc1)]();}[_0x4ee92e(0xf4)](_0x393454){const _0x5ccbd6=_0x4ee92e,_0x4b22e6=_0x393454[_0x5ccbd6(0xb4)]('<')[_0x5ccbd6(0xe7)]!==_0x393454[_0x5ccbd6(0xb4)]('>')[_0x5ccbd6(0xe7)],_0x1b3f52=_0x393454[_0x5ccbd6(0xe7)]<0x1e;return _0x4b22e6&&_0x1b3f52;}[_0x4ee92e(0xd7)](_0x1d7408){const _0x4fe7f2=_0x4ee92e;return _0x1d7408[_0x4fe7f2(0xb4)](/\n(?![^{]*\})/g)[_0x4fe7f2(0xf3)](_0x25faf5=>_0x25faf5[_0x4fe7f2(0xf1)](_0x4fe7f2(0xb9),''))[_0x4fe7f2(0xed)](_0x921ccf=>_0x921ccf&&_0x921ccf[_0x4fe7f2(0xe7)]>0x0&&_0x4fe7f2(0xd1)!==_0x921ccf)[_0x4fe7f2(0xf3)](_0x351606=>{const _0x2878fc=_0x4fe7f2,{choices:_0x49d2d0}=JSON[_0x2878fc(0xb5)](_0x351606);if(_0x49d2d0[0x0]?.[_0x2878fc(0xe4)]?.[_0x2878fc(0xc4)])return _0x49d2d0[0x0][_0x2878fc(0xe4)][_0x2878fc(0xc4)];})[_0x4fe7f2(0xed)](_0x4f1862=>_0x4f1862)[_0x4fe7f2(0xf6)]('');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x10bd4e=_0x2a21;(function(_0x57838b,_0xc4c586){const _0x2a5333=_0x2a21,_0xc26f15=_0x57838b();while(!![]){try{const _0x39a4d5=-parseInt(_0x2a5333(0x126))/0x1*(parseInt(_0x2a5333(0x12e))/0x2)+parseInt(_0x2a5333(0x16b))/0x3*(-parseInt(_0x2a5333(0x152))/0x4)+parseInt(_0x2a5333(0x151))/0x5*(-parseInt(_0x2a5333(0x14f))/0x6)+parseInt(_0x2a5333(0x15f))/0x7*(-parseInt(_0x2a5333(0x16d))/0x8)+-parseInt(_0x2a5333(0x158))/0x9+parseInt(_0x2a5333(0x130))/0xa*(parseInt(_0x2a5333(0x156))/0xb)+parseInt(_0x2a5333(0x176))/0xc;if(_0x39a4d5===_0xc4c586)break;else _0xc26f15['push'](_0xc26f15['shift']());}catch(_0x1a643c){_0xc26f15['push'](_0xc26f15['shift']());}}}(_0x45e2,0x92f2a));import{Plugin as _0x1608c0}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x414b9e}from'./aiassistantui.js';import{AIAssistantEditing as _0x4ab2e3}from'./aiassistantediting.js';function _0x45e2(){const _0x3888aa=['Make\x20longer','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','Arabic','config','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','French','German','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Simplified\x20Chinese','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','makeLonger','business','friendly','Friendly','51EynBCg','isOfficialPlugin','translate','get','ai.assistant.preserveComments','improveWriting','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','ai.assistant.commands','13010OIkJaS','requires','10TmErmo','Simplify\x20language','translateArabic','Translate\x20the\x20content\x20to\x20Arabic\x20language.','concat','Continue','includes','confident','Portuguese','Improve\x20writing','commands','Confident','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Change\x20tone','poetic','AIAssistant','ai.assistant.extraCommandGroups','Summarize','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','casual','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','pluginName','locale','Generate\x20from\x20selection','Business','translateHindi','simplifyLanguage','Translate\x20the\x20content\x20to\x20Hindi\x20language.','Edit\x20or\x20review','groupId','48XmKAbE','Make\x20shorter','609415GyRvcv','4071388ENtFVd','Direct','translateEnglish','legal','2369037ZhxlNN','translateSpanish','9839169vaxwJy','Journalism','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Professional','find','changeStyle','Translate','196wwjACw','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','set','Spanish','Hindi','Casual','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','editOrReview','generate','translateChinese','translateFrench','push','3ywCKHN','Poetic','240040cPATzI','English','journalism','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','translateGerman','Translate\x20the\x20content\x20to\x20Spanish\x20language.','filter','ai.assistant.removeCommands','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','55734936JtyVoX','Change\x20style','continue','Translate\x20the\x20content\x20to\x20German\x20language.','changeTone','direct','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','define','Translate\x20the\x20content\x20to\x20French\x20language.','forEach','isPremiumPlugin','summarize','Legal','Translate\x20the\x20content\x20to\x20English\x20language.','professional','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','translatePortuguese','makeShorter'];_0x45e2=function(){return _0x3888aa;};return _0x45e2();}import{getTranslation as _0x22f55c}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x3daf1a}from'./utils/normalizecommandsconfig.js';function _0x2a21(_0x4e3094,_0x18d47b){const _0x45e262=_0x45e2();return _0x2a21=function(_0x2a2180,_0xcb0412){_0x2a2180=_0x2a2180-0x108;let _0x52d847=_0x45e262[_0x2a2180];return _0x52d847;},_0x2a21(_0x4e3094,_0x18d47b);}export class AIAssistant extends _0x1608c0{static get[_0x10bd4e(0x12f)](){return[_0x414b9e,_0x4ab2e3];}static get[_0x10bd4e(0x146)](){const _0x59fc74=_0x10bd4e;return _0x59fc74(0x13f);}static get[_0x10bd4e(0x127)](){return!0x0;}static get[_0x10bd4e(0x10f)](){return!0x0;}constructor(_0x10d6de){const _0x2daab8=_0x10bd4e;super(_0x10d6de);const _0x961ef6=_0x10d6de[_0x2daab8(0x11b)],_0x40f096=_0x10d6de[_0x2daab8(0x147)];_0x961ef6[_0x2daab8(0x10c)](_0x2daab8(0x12a),!0x0),_0x961ef6[_0x2daab8(0x10c)](_0x2daab8(0x12d),getDefaultAICommands(_0x40f096)),_0x961ef6[_0x2daab8(0x10c)](_0x2daab8(0x140),[]),_0x961ef6[_0x2daab8(0x10c)](_0x2daab8(0x174),[]);let _0x2d5b43=_0x3daf1a(_0x961ef6[_0x2daab8(0x129)](_0x2daab8(0x12d)),_0x40f096);const _0x9239df=_0x961ef6[_0x2daab8(0x129)](_0x2daab8(0x140)),_0x53ac6f=_0x961ef6[_0x2daab8(0x129)](_0x2daab8(0x174));_0x9239df[_0x2daab8(0x10e)](_0x1952a9=>{const _0x488475=_0x2daab8,_0x1f2582=_0x2d5b43[_0x488475(0x15c)](_0x1e59b5=>_0x1e59b5[_0x488475(0x14e)]===_0x1952a9[_0x488475(0x14e)]);_0x1f2582?_0x1f2582[_0x488475(0x13a)]=_0x1f2582[_0x488475(0x13a)][_0x488475(0x134)](_0x1952a9[_0x488475(0x13a)]):_0x2d5b43[_0x488475(0x16a)](_0x1952a9);}),_0x2d5b43=_0x2d5b43[_0x2daab8(0x173)](_0x281db1=>!_0x53ac6f[_0x2daab8(0x136)](_0x281db1[_0x2daab8(0x14e)])),_0x2d5b43[_0x2daab8(0x10e)](_0x1415b4=>{const _0x2cfb9c=_0x2daab8;_0x1415b4[_0x2cfb9c(0x13a)]=_0x1415b4[_0x2cfb9c(0x13a)][_0x2cfb9c(0x173)](_0x239109=>!_0x53ac6f[_0x2cfb9c(0x136)](_0x239109['id']));}),_0x961ef6[_0x2daab8(0x161)](_0x2daab8(0x12d),_0x2d5b43);}}export function getDefaultAICommands(_0x46ef1a){const _0x465709=_0x10bd4e;return[{'groupId':_0x465709(0x166),'groupLabel':_0x22f55c(_0x46ef1a,_0x465709(0x14d)),'commands':[{'id':_0x465709(0x12b),'label':_0x22f55c(_0x46ef1a,_0x465709(0x139)),'prompt':_0x465709(0x11f)},{'id':_0x465709(0x117),'label':_0x22f55c(_0x46ef1a,_0x465709(0x150)),'prompt':_0x465709(0x119)},{'id':_0x465709(0x122),'label':_0x22f55c(_0x46ef1a,_0x465709(0x118)),'prompt':_0x465709(0x13c)},{'id':_0x465709(0x14b),'label':_0x22f55c(_0x46ef1a,_0x465709(0x131)),'prompt':_0x465709(0x175)}]},{'groupId':_0x465709(0x167),'groupLabel':_0x22f55c(_0x46ef1a,_0x465709(0x148)),'commands':[{'id':_0x465709(0x110),'label':_0x22f55c(_0x46ef1a,_0x465709(0x141)),'prompt':_0x465709(0x115)},{'id':_0x465709(0x178),'label':_0x22f55c(_0x46ef1a,_0x465709(0x135)),'prompt':_0x465709(0x143)}]},{'groupId':_0x465709(0x109),'groupLabel':_0x22f55c(_0x46ef1a,_0x465709(0x13d)),'commands':[{'id':_0x465709(0x113),'label':_0x22f55c(_0x46ef1a,_0x465709(0x15b)),'prompt':_0x465709(0x121)},{'id':_0x465709(0x144),'label':_0x22f55c(_0x46ef1a,_0x465709(0x164)),'prompt':_0x465709(0x145)},{'id':_0x465709(0x10a),'label':_0x22f55c(_0x46ef1a,_0x465709(0x153)),'prompt':_0x465709(0x114)},{'id':_0x465709(0x137),'label':_0x22f55c(_0x46ef1a,_0x465709(0x13b)),'prompt':_0x465709(0x11c)},{'id':_0x465709(0x124),'label':_0x22f55c(_0x46ef1a,_0x465709(0x125)),'prompt':_0x465709(0x160)}]},{'groupId':_0x465709(0x15d),'groupLabel':_0x22f55c(_0x46ef1a,_0x465709(0x177)),'commands':[{'id':_0x465709(0x123),'label':_0x22f55c(_0x46ef1a,_0x465709(0x149)),'prompt':_0x465709(0x142)},{'id':_0x465709(0x155),'label':_0x22f55c(_0x46ef1a,_0x465709(0x111)),'prompt':_0x465709(0x165)},{'id':_0x465709(0x16f),'label':_0x22f55c(_0x46ef1a,_0x465709(0x159)),'prompt':_0x465709(0x15a)},{'id':_0x465709(0x13e),'label':_0x22f55c(_0x46ef1a,_0x465709(0x16c)),'prompt':_0x465709(0x170)}]},{'groupId':_0x465709(0x128),'groupLabel':_0x22f55c(_0x46ef1a,_0x465709(0x15e)),'commands':[{'id':_0x465709(0x154),'label':_0x22f55c(_0x46ef1a,_0x465709(0x16e)),'prompt':_0x465709(0x112)},{'id':_0x465709(0x157),'label':_0x22f55c(_0x46ef1a,_0x465709(0x162)),'prompt':_0x465709(0x172)},{'id':_0x465709(0x116),'label':_0x22f55c(_0x46ef1a,_0x465709(0x138)),'prompt':_0x465709(0x12c)},{'id':_0x465709(0x171),'label':_0x22f55c(_0x46ef1a,_0x465709(0x11e)),'prompt':_0x465709(0x108)},{'id':_0x465709(0x169),'label':_0x22f55c(_0x46ef1a,_0x465709(0x11d)),'prompt':_0x465709(0x10d)},{'id':_0x465709(0x168),'label':_0x22f55c(_0x46ef1a,_0x465709(0x120)),'prompt':_0x465709(0x10b)},{'id':_0x465709(0x14a),'label':_0x22f55c(_0x46ef1a,_0x465709(0x163)),'prompt':_0x465709(0x14c)},{'id':_0x465709(0x132),'label':_0x22f55c(_0x46ef1a,_0x465709(0x11a)),'prompt':_0x465709(0x133)}]}];}
23
+ const _0x7d0554=_0x4438;function _0x13cd(){const _0x256a8d=['Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Continue','Translate\x20the\x20content\x20to\x20French\x20language.','set','Edit\x20or\x20review','Change\x20tone','forEach','professional','translateChinese','concat','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','translatePortuguese','372956ZTibLa','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','ai.assistant.removeCommands','summarize','Friendly','Make\x20longer','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','translateHindi','Translate','translateGerman','simplifyLanguage','Arabic','Translate\x20the\x20content\x20to\x20Spanish\x20language.','translateFrench','Translate\x20the\x20content\x20to\x20English\x20language.','get','legal','generate','changeStyle','config','continue','685419SDgtza','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','French','Translate\x20the\x20content\x20to\x20German\x20language.','414qYNuAn','Hindi','groupId','Translate\x20the\x20content\x20to\x20Arabic\x20language.','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','business','ai.assistant.extraCommandGroups','2495850EKhIbU','Portuguese','define','ai.assistant.commands','Summarize','makeLonger','editOrReview','translateSpanish','Direct','improveWriting','push','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','direct','friendly','Improve\x20writing','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Simplify\x20language','246553OiZctA','requires','pluginName','8kuvgkG','locale','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','Confident','Legal','Casual','translateEnglish','isOfficialPlugin','Journalism','isPremiumPlugin','Generate\x20from\x20selection','changeTone','Simplified\x20Chinese','Change\x20style','German','filter','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Make\x20shorter','translateArabic','find','Spanish','ai.assistant.preserveComments','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','Professional','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','casual','makeShorter','Poetic','commands','confident','translate','26515XArCFi','394104azGEdn','Translate\x20the\x20content\x20to\x20Hindi\x20language.','AIAssistant','poetic','9UoWkMo','English','journalism','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','Business','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','includes','2411640QDJRvN'];_0x13cd=function(){return _0x256a8d;};return _0x13cd();}(function(_0x5d15c7,_0x5212c0){const _0x4549ef=_0x4438,_0x3f9b43=_0x5d15c7();while(!![]){try{const _0x4d71c8=parseInt(_0x4549ef(0x237))/0x1+parseInt(_0x4549ef(0x25a))/0x2+-parseInt(_0x4549ef(0x25e))/0x3*(parseInt(_0x4549ef(0x204))/0x4)+parseInt(_0x4549ef(0x259))/0x5*(-parseInt(_0x4549ef(0x21e))/0x6)+-parseInt(_0x4549ef(0x219))/0x7*(parseInt(_0x4549ef(0x23a))/0x8)+parseInt(_0x4549ef(0x1f6))/0x9+parseInt(_0x4549ef(0x226))/0xa;if(_0x4d71c8===_0x5212c0)break;else _0x3f9b43['push'](_0x3f9b43['shift']());}catch(_0x28cfda){_0x3f9b43['push'](_0x3f9b43['shift']());}}}(_0x13cd,0x35209));function _0x4438(_0x428c67,_0x28d98d){const _0x13cddf=_0x13cd();return _0x4438=function(_0x4438eb,_0x446f96){_0x4438eb=_0x4438eb-0x1f1;let _0x310ccd=_0x13cddf[_0x4438eb];return _0x310ccd;},_0x4438(_0x428c67,_0x28d98d);}import{Plugin as _0x4e9591}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x2ff8e5}from'./aiassistantui.js';import{AIAssistantEditing as _0x4c54d2}from'./aiassistantediting.js';import{getTranslation as _0xdd302}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x195ce3}from'./utils/normalizecommandsconfig.js';export class AIAssistant extends _0x4e9591{static get[_0x7d0554(0x238)](){return[_0x2ff8e5,_0x4c54d2];}static get[_0x7d0554(0x239)](){const _0x2d1a70=_0x7d0554;return _0x2d1a70(0x25c);}static get[_0x7d0554(0x241)](){return!0x0;}static get[_0x7d0554(0x243)](){return!0x0;}constructor(_0x26cdf9){const _0x581a74=_0x7d0554;super(_0x26cdf9);const _0x4e2027=_0x26cdf9[_0x581a74(0x217)],_0x455638=_0x26cdf9[_0x581a74(0x23b)];_0x4e2027[_0x581a74(0x228)](_0x581a74(0x24f),!0x0),_0x4e2027[_0x581a74(0x228)](_0x581a74(0x229),getDefaultAICommands(_0x455638)),_0x4e2027[_0x581a74(0x228)](_0x581a74(0x225),[]),_0x4e2027[_0x581a74(0x228)](_0x581a74(0x206),[]);let _0x4487af=_0x195ce3(_0x4e2027[_0x581a74(0x213)](_0x581a74(0x229)),_0x455638);const _0x16b2a4=_0x4e2027[_0x581a74(0x213)](_0x581a74(0x225)),_0x55279a=_0x4e2027[_0x581a74(0x213)](_0x581a74(0x206));_0x16b2a4[_0x581a74(0x1fd)](_0xfa7d5e=>{const _0xca7448=_0x581a74,_0x43f007=_0x4487af[_0xca7448(0x24d)](_0x2c176f=>_0x2c176f[_0xca7448(0x220)]===_0xfa7d5e[_0xca7448(0x220)]);_0x43f007?_0x43f007[_0xca7448(0x256)]=_0x43f007[_0xca7448(0x256)][_0xca7448(0x200)](_0xfa7d5e[_0xca7448(0x256)]):_0x4487af[_0xca7448(0x230)](_0xfa7d5e);}),_0x4487af=_0x4487af[_0x581a74(0x249)](_0x436509=>!_0x55279a[_0x581a74(0x1f5)](_0x436509[_0x581a74(0x220)])),_0x4487af[_0x581a74(0x1fd)](_0x14b201=>{const _0x25b83f=_0x581a74;_0x14b201[_0x25b83f(0x256)]=_0x14b201[_0x25b83f(0x256)][_0x25b83f(0x249)](_0x27d29b=>!_0x55279a[_0x25b83f(0x1f5)](_0x27d29b['id']));}),_0x4e2027[_0x581a74(0x1fa)](_0x581a74(0x229),_0x4487af);}}export function getDefaultAICommands(_0x45b729){const _0x5f2c40=_0x7d0554;return[{'groupId':_0x5f2c40(0x22c),'groupLabel':_0xdd302(_0x45b729,_0x5f2c40(0x1fb)),'commands':[{'id':_0x5f2c40(0x22f),'label':_0xdd302(_0x45b729,_0x5f2c40(0x234)),'prompt':_0x5f2c40(0x252)},{'id':_0x5f2c40(0x254),'label':_0xdd302(_0x45b729,_0x5f2c40(0x24b)),'prompt':_0x5f2c40(0x1f2)},{'id':_0x5f2c40(0x22b),'label':_0xdd302(_0x45b729,_0x5f2c40(0x209)),'prompt':_0x5f2c40(0x1f7)},{'id':_0x5f2c40(0x20e),'label':_0xdd302(_0x45b729,_0x5f2c40(0x236)),'prompt':_0x5f2c40(0x21b)}]},{'groupId':_0x5f2c40(0x215),'groupLabel':_0xdd302(_0x45b729,_0x5f2c40(0x244)),'commands':[{'id':_0x5f2c40(0x207),'label':_0xdd302(_0x45b729,_0x5f2c40(0x22a)),'prompt':_0x5f2c40(0x202)},{'id':_0x5f2c40(0x218),'label':_0xdd302(_0x45b729,_0x5f2c40(0x1f8)),'prompt':_0x5f2c40(0x21a)}]},{'groupId':_0x5f2c40(0x245),'groupLabel':_0xdd302(_0x45b729,_0x5f2c40(0x1fc)),'commands':[{'id':_0x5f2c40(0x1fe),'label':_0xdd302(_0x45b729,_0x5f2c40(0x251)),'prompt':_0x5f2c40(0x205)},{'id':_0x5f2c40(0x253),'label':_0xdd302(_0x45b729,_0x5f2c40(0x23f)),'prompt':_0x5f2c40(0x24a)},{'id':_0x5f2c40(0x232),'label':_0xdd302(_0x45b729,_0x5f2c40(0x22e)),'prompt':_0x5f2c40(0x250)},{'id':_0x5f2c40(0x257),'label':_0xdd302(_0x45b729,_0x5f2c40(0x23d)),'prompt':_0x5f2c40(0x1f4)},{'id':_0x5f2c40(0x233),'label':_0xdd302(_0x45b729,_0x5f2c40(0x208)),'prompt':_0x5f2c40(0x23c)}]},{'groupId':_0x5f2c40(0x216),'groupLabel':_0xdd302(_0x45b729,_0x5f2c40(0x247)),'commands':[{'id':_0x5f2c40(0x224),'label':_0xdd302(_0x45b729,_0x5f2c40(0x1f3)),'prompt':_0x5f2c40(0x222)},{'id':_0x5f2c40(0x214),'label':_0xdd302(_0x45b729,_0x5f2c40(0x23e)),'prompt':_0x5f2c40(0x231)},{'id':_0x5f2c40(0x1f1),'label':_0xdd302(_0x45b729,_0x5f2c40(0x242)),'prompt':_0x5f2c40(0x223)},{'id':_0x5f2c40(0x25d),'label':_0xdd302(_0x45b729,_0x5f2c40(0x255)),'prompt':_0x5f2c40(0x235)}]},{'groupId':_0x5f2c40(0x258),'groupLabel':_0xdd302(_0x45b729,_0x5f2c40(0x20c)),'commands':[{'id':_0x5f2c40(0x240),'label':_0xdd302(_0x45b729,_0x5f2c40(0x25f)),'prompt':_0x5f2c40(0x212)},{'id':_0x5f2c40(0x22d),'label':_0xdd302(_0x45b729,_0x5f2c40(0x24e)),'prompt':_0x5f2c40(0x210)},{'id':_0x5f2c40(0x203),'label':_0xdd302(_0x45b729,_0x5f2c40(0x227)),'prompt':_0x5f2c40(0x201)},{'id':_0x5f2c40(0x20d),'label':_0xdd302(_0x45b729,_0x5f2c40(0x248)),'prompt':_0x5f2c40(0x21d)},{'id':_0x5f2c40(0x211),'label':_0xdd302(_0x45b729,_0x5f2c40(0x21c)),'prompt':_0x5f2c40(0x1f9)},{'id':_0x5f2c40(0x1ff),'label':_0xdd302(_0x45b729,_0x5f2c40(0x246)),'prompt':_0x5f2c40(0x20a)},{'id':_0x5f2c40(0x20b),'label':_0xdd302(_0x45b729,_0x5f2c40(0x21f)),'prompt':_0x5f2c40(0x25b)},{'id':_0x5f2c40(0x24c),'label':_0xdd302(_0x45b729,_0x5f2c40(0x20f)),'prompt':_0x5f2c40(0x221)}]}];}