@ckeditor/ckeditor5-ai 47.2.0-alpha.3 → 47.2.0-alpha.4

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 (128) 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/aiassistantcontroller.js +2 -2
  15. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  16. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  17. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  18. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  19. package/src/aiassistant/ui/form/aiformview.js +1 -1
  20. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  21. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  22. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  23. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  24. package/src/aiballoon/aiballoon.js +1 -1
  25. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  26. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  27. package/src/aiballoon/ui/aiballoonview.js +1 -1
  28. package/src/aichat/aichat.js +1 -1
  29. package/src/aichat/aichatcontroller.js +1 -1
  30. package/src/aichat/aichatui.js +1 -1
  31. package/src/aichat/model/aichatcontext.js +1 -1
  32. package/src/aichat/model/aichatconversation.js +1 -1
  33. package/src/aichat/model/aichatinteraction.js +1 -1
  34. package/src/aichat/model/aichatmodels.js +1 -1
  35. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  36. package/src/aichat/ui/aichatfeedview.js +1 -1
  37. package/src/aichat/ui/aichatheaderview.js +1 -1
  38. package/src/aichat/ui/aichatview.js +1 -1
  39. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  40. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  41. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  42. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  43. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  44. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  45. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  46. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  47. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  48. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  49. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  50. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  51. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  52. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  53. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  54. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  55. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  56. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  57. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  58. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  59. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  60. package/src/aichat/utils/eventnames.js +1 -1
  61. package/src/aichat/utils/promisequeue.js +1 -1
  62. package/src/aichat/utils/scrollmanager.js +1 -1
  63. package/src/aichathistory/aichathistory.js +1 -1
  64. package/src/aichathistory/aichathistorycontroller.js +1 -1
  65. package/src/aichathistory/aichathistoryui.js +1 -1
  66. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  67. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  68. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  69. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  70. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  71. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  72. package/src/aicore/aiconnector.js +1 -1
  73. package/src/aicore/aiediting.js +1 -1
  74. package/src/aicore/model/aicapabilities.js +1 -1
  75. package/src/aicore/model/aiinteraction.js +1 -1
  76. package/src/aicore/model/aimodels.js +1 -1
  77. package/src/aicore/model/aireply.js +1 -1
  78. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  79. package/src/aicore/pipeline/airesponseparser.js +2 -2
  80. package/src/aicore/ui/aidisclaimerview.js +1 -1
  81. package/src/aicore/ui/aiskeleton.js +1 -1
  82. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  83. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  84. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  85. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  86. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  87. package/src/aicore/utils/createresizebutton.js +1 -1
  88. package/src/aicore/utils/documentrange.js +1 -1
  89. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  90. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  91. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  92. package/src/aicore/utils/htmlparser.js +1 -1
  93. package/src/aicore/utils/htmlstreamer.js +1 -1
  94. package/src/aieditorintegration/aieditorintegration.js +1 -1
  95. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  96. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  97. package/src/aiquickactions/aiquickactions.js +1 -1
  98. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  99. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  100. package/src/aiquickactions/aiquickactionsui.js +1 -1
  101. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  102. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  103. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  104. package/src/aireviewmode/aireviewmode.js +1 -1
  105. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  106. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  107. package/src/aireviewmode/aireviewmodeui.js +1 -1
  108. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  109. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  110. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  111. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  112. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  113. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  114. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  115. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  116. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  117. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  118. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  119. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  120. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  121. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  122. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  123. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  124. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  125. package/src/aitabs/aitabs.js +1 -1
  126. package/src/aitabs/tabs/aitabsview.js +1 -1
  127. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  128. 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.2.0-alpha.3",
3
+ "version": "47.2.0-alpha.4",
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.2.0-alpha.3",
33
- "@ckeditor/ckeditor5-cloud-services": "47.2.0-alpha.3",
34
- "@ckeditor/ckeditor5-collaboration-core": "47.2.0-alpha.3",
35
- "@ckeditor/ckeditor5-core": "47.2.0-alpha.3",
36
- "@ckeditor/ckeditor5-engine": "47.2.0-alpha.3",
37
- "@ckeditor/ckeditor5-icons": "47.2.0-alpha.3",
38
- "@ckeditor/ckeditor5-markdown-gfm": "47.2.0-alpha.3",
39
- "@ckeditor/ckeditor5-table": "47.2.0-alpha.3",
40
- "@ckeditor/ckeditor5-theme-lark": "47.2.0-alpha.3",
41
- "@ckeditor/ckeditor5-ui": "47.2.0-alpha.3",
42
- "@ckeditor/ckeditor5-utils": "47.2.0-alpha.3",
43
- "@ckeditor/ckeditor5-real-time-collaboration": "47.2.0-alpha.3",
44
- "ckeditor5": "47.2.0-alpha.3",
45
- "ckeditor5-collaboration": "47.2.0-alpha.3",
32
+ "@ckeditor/ckeditor5-clipboard": "47.2.0-alpha.4",
33
+ "@ckeditor/ckeditor5-cloud-services": "47.2.0-alpha.4",
34
+ "@ckeditor/ckeditor5-collaboration-core": "47.2.0-alpha.4",
35
+ "@ckeditor/ckeditor5-core": "47.2.0-alpha.4",
36
+ "@ckeditor/ckeditor5-engine": "47.2.0-alpha.4",
37
+ "@ckeditor/ckeditor5-icons": "47.2.0-alpha.4",
38
+ "@ckeditor/ckeditor5-markdown-gfm": "47.2.0-alpha.4",
39
+ "@ckeditor/ckeditor5-table": "47.2.0-alpha.4",
40
+ "@ckeditor/ckeditor5-theme-lark": "47.2.0-alpha.4",
41
+ "@ckeditor/ckeditor5-ui": "47.2.0-alpha.4",
42
+ "@ckeditor/ckeditor5-utils": "47.2.0-alpha.4",
43
+ "@ckeditor/ckeditor5-real-time-collaboration": "47.2.0-alpha.4",
44
+ "ckeditor5": "47.2.0-alpha.4",
45
+ "ckeditor5-collaboration": "47.2.0-alpha.4",
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 _0x15bbf6=_0x441f;(function(_0x4f488e,_0x2ebbb8){const _0x4e3eaf=_0x441f,_0x4e6c7f=_0x4f488e();while(!![]){try{const _0x394c12=-parseInt(_0x4e3eaf(0x222))/0x1+parseInt(_0x4e3eaf(0x172))/0x2+parseInt(_0x4e3eaf(0x143))/0x3*(parseInt(_0x4e3eaf(0x148))/0x4)+parseInt(_0x4e3eaf(0x18b))/0x5*(-parseInt(_0x4e3eaf(0x1f1))/0x6)+parseInt(_0x4e3eaf(0x1d5))/0x7*(-parseInt(_0x4e3eaf(0x16d))/0x8)+-parseInt(_0x4e3eaf(0x209))/0x9*(parseInt(_0x4e3eaf(0x171))/0xa)+-parseInt(_0x4e3eaf(0x203))/0xb*(-parseInt(_0x4e3eaf(0x1b6))/0xc);if(_0x394c12===_0x2ebbb8)break;else _0x4e6c7f['push'](_0x4e6c7f['shift']());}catch(_0x59f28d){_0x4e6c7f['push'](_0x4e6c7f['shift']());}}}(_0x48b5,0x6e63a));import{Plugin as _0x3733fd}from'ckeditor5/src/core.js';import{AIConnector as _0x459b49}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x39b66c}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';function _0x48b5(){const _0x2f238c=['_wrapWithCommonAncestors','batch','$graveyard','isDocumentOperation','length','clearLoading','split','upsertAIActionRating','catch','_navigationNextButton','queueEmptyPromise','_clearErrorState','AIActions','replyChangeGroupStateUpdated','processor','open','126132KreOPl','editor','document','map','_isAbortError','_balloonShowDiff','_getExecuteDataRegular','removeNavigationItem','_currentInteractionIndex','nextSibling','textContent','bind','replyContentUpdated','_navigationCounter','merge','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','selection','_clearInteractionHistory','requires','getSelectionAsFragment','miniToolbarView','_clone','balloonView','type','reinsert','operationsA','_execute','showError','span','clone','ck-ai-navigation-button\x20ck-ai-previous-button','604212KFnGyi','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','AI_ACTIONS_PREVIOUS_INTERACTION','_clearSuggestionContent','AI_ACTIONS_GENERIC_ERROR','insertSuggestion','ai-request-aborted','showChangesButton','_appendChild','parent','_applyChanges','isLoading','addNavigationItem','getSelectedBlocks','applySuggestion','position','accepted','bodyView','documentFragment','error','actionCallId','close','schema','AIConnector','changeGroups','_stopInteraction','dialogClosed','config','414CFbHAO','_displayInteractionAtIndex','setLoading','signal','_customViews','mainView','ck-ai-navigation-button\x20ck-ai-next-button','nodeAfter','slice','startsWith','_navigateToNext','_setLoadingState','getSelectedContent','end','_interactionParams','path','ck-ai-custom-action-button','toggleSuggestionDisplayMode','2321kXTXZo','has','Error\x20updating\x20content\x20in\x20replyCreated:','insert','pluginName','documentContextContent','1017lFYOsm','_setErrorState','isEnabled','Error\x20refreshing\x20interaction:','rootName','_refreshInteraction','focus','aiBalloon','_createInteraction','isBusy','root','random','start','addOperation','setTemplate','move','forEach','areChangesVisible','static','toolbar','TrackChanges','_setupCustomViews','range','_getExecuteDataInTable','model','347276ULlqNz','set','message','getFirstRange','toData','_aiConnector','_clearLoadingState','_isNavigationNextButtonInView','add','3fkZkKk','isCollapsed','streaming','baseVersion','ai-no-track-changes','729472HXRTNC','getCommonAncestor','executeAction','ai.availableReplyActions','applyOperation','hasError','version','ck-ai-interaction-counter','getRanges','hasPendingParts','getChildAtOffset','replies','replyCreated','state','getDocumentContext','_promiseQueue','AI_ACTIONS_TRY_AGAIN','first','filter','clearErrorState','interactionFinished','1/1','element','createRange','_children','plugins','TrackChangesEditing','getOperations','sourcePosition','upsertCustomAIActionRating','_navigationPreviousButton','_interactions','stopInteraction','howMany','_isNavigationCounterInView','createPositionAt','push','72qGSQOC','showLoader','setErrorState','icon','25290ebFEcn','640582ToMKHu','hideError','history','isOfficialPlugin','change','setSelection','_applyOperationsAsSuggestions','stop','rejected','get','_isNavigationPreviousButtonInView','data','indexOf','execute','createPositionAfter','listenTo','getSelectedTableCells','locale','AI_ACTIONS_NEXT_INTERACTION','isPremiumPlugin','createPositionBefore','getRoot','actionName','stopListening','remove','62205ihUSky','_interaction','AIBalloon','_updateNavigationUI','setChangeGroupState','pending','enqueue','Error\x20updating\x20content\x20in\x20replyContentUpdated:','_filterOperationsOutsideRange','modelToViewWithIds','rename','hideLoader','Error\x20updating\x20content\x20during\x20navigation:','updateContent','getChild','_anchorOperation','getLimitElement','Attribute','selectionRemoved','abort','TableSelection','includes','stickiness','getAncestors','_disableCustomViews','_navigateToPrevious','_executeAction'];_0x48b5=function(){return _0x2f238c;};return _0x48b5();}import{Dialog as _0x1cdbef,ButtonView as _0x2af5e5,ViewCollection as _0x112915,View as _0xcc7ce9}from'ckeditor5/src/ui.js';import{AIEditing as _0x3dbf97}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x58173e}from'./model/aiactionsinteraction.js';import{CKEditorError as _0x10b568,first as _0x109b03}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x5aa519,IconRefresh as _0x3648f2,IconNextArrow as _0x34388e,IconPreviousArrow as _0x188ec3,IconShowChangesOff as _0x5c670e}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x39fd04}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x5b2433}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x197314}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x115773}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x1869dc}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x7d73c5,getOperationsFromReply as _0x2c2ac2}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x158839,ModelRange as _0x248325,ModelPosition as _0x5811ee,_DetachOperation as _0x3ca4bd,transformOperationSets as _0x55a5db}from'ckeditor5/src/engine.js';import{AI_REPLY_ACTIONS as _0xef571e}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';function _0x441f(_0x5c143e,_0x51ce4f){const _0x48b52d=_0x48b5();return _0x441f=function(_0x441fcb,_0x53f9b8){_0x441fcb=_0x441fcb-0x140;let _0x2a90b8=_0x48b52d[_0x441fcb];return _0x2a90b8;},_0x441f(_0x5c143e,_0x51ce4f);}export class AIActions extends _0x3733fd{static get[_0x15bbf6(0x1c8)](){return[_0x459b49,_0x1cdbef,_0x3dbf97,_0x39fd04,_0x1869dc];}static get[_0x15bbf6(0x207)](){const _0x3e1f5f=_0x15bbf6;return _0x3e1f5f(0x1b2);}static get[_0x15bbf6(0x175)](){return!0x0;}static get[_0x15bbf6(0x185)](){return!0x0;}[_0x15bbf6(0x227)];[_0x15bbf6(0x167)]=[];[_0x15bbf6(0x1be)]=0x0;[_0x15bbf6(0x1ff)];[_0x15bbf6(0x1bb)]=!0x1;[_0x15bbf6(0x1f5)]=new _0x112915();[_0x15bbf6(0x166)];[_0x15bbf6(0x1c3)];[_0x15bbf6(0x16a)]=!0x1;[_0x15bbf6(0x1af)];[_0x15bbf6(0x17c)]=!0x1;[_0x15bbf6(0x141)]=!0x1;[_0x15bbf6(0x157)];get[_0x15bbf6(0x18c)](){const _0x42eaba=_0x15bbf6;return this[_0x42eaba(0x167)][this[_0x42eaba(0x167)][_0x42eaba(0x1aa)]-0x1];}constructor(_0x2527f0){const _0x270093=_0x15bbf6;super(_0x2527f0),this[_0x270093(0x227)]=this[_0x270093(0x1b7)][_0x270093(0x161)][_0x270093(0x17b)](_0x270093(0x1ec)),this[_0x270093(0x223)](_0x270093(0x212),!0x1),this[_0x270093(0x157)]=new _0x5b2433(),this[_0x270093(0x21e)]();}[_0x15bbf6(0x168)](){const _0x505339=_0x15bbf6;this[_0x505339(0x1ee)]();}async[_0x15bbf6(0x14a)](_0x10a27d,_0x2dea65,_0x52fbcc){const _0xa2b3de=_0x15bbf6;if(this[_0xa2b3de(0x1b7)][_0xa2b3de(0x161)][_0xa2b3de(0x204)](_0xa2b3de(0x19f))){if(this[_0xa2b3de(0x1b7)][_0xa2b3de(0x161)][_0xa2b3de(0x17b)](_0xa2b3de(0x19f))[_0xa2b3de(0x182)]()){const {modelFragment:_0x40010d,anchorData:_0x1d3fc6}=this[_0xa2b3de(0x220)]();return this[_0xa2b3de(0x1a5)](_0x10a27d,_0x40010d,_0x1d3fc6,_0x2dea65,_0x52fbcc);}}const {modelFragment:_0x108fd3,anchorData:_0x400eab}=this[_0xa2b3de(0x1bc)]();return this[_0xa2b3de(0x1a5)](_0x10a27d,_0x108fd3,_0x400eab,_0x2dea65,_0x52fbcc);}[_0x15bbf6(0x1bc)](){const _0x200e2d=_0x15bbf6,_0x1b1b1b=this[_0x200e2d(0x1b7)][_0x200e2d(0x221)][_0x200e2d(0x1b8)][_0x200e2d(0x1c6)];if(_0x1b1b1b[_0x200e2d(0x144)]){const _0x589194=_0x109b03(_0x1b1b1b[_0x200e2d(0x1e2)]())||this[_0x200e2d(0x1b7)][_0x200e2d(0x221)][_0x200e2d(0x1eb)][_0x200e2d(0x19b)](_0x1b1b1b);this[_0x200e2d(0x1b7)][_0x200e2d(0x221)][_0x200e2d(0x176)](_0x3070b5=>{const _0x39889f=_0x200e2d;_0x3070b5[_0x39889f(0x177)](_0x589194,'in');});}const _0x27b87a=_0x1b1b1b[_0x200e2d(0x225)](),_0x441859=this[_0x200e2d(0x1a6)](this[_0x200e2d(0x1b7)][_0x200e2d(0x221)][_0x200e2d(0x1fd)](_0x1b1b1b),_0x27b87a[_0x200e2d(0x215)],_0x27b87a[_0x200e2d(0x1fe)]),_0x53ff26=_0x1b1b1b[_0x200e2d(0x225)]()[_0x200e2d(0x215)],_0x22db57=new Map();let _0x5b3025=_0x441859;for(let _0x2ef663=0x0;_0x2ef663<_0x53ff26[_0x200e2d(0x200)][_0x200e2d(0x1aa)];_0x2ef663++)_0x22db57[_0x200e2d(0x223)](_0x5b3025,_0x53ff26[_0x200e2d(0x200)][_0x2ef663]),_0x5b3025=_0x5b3025[_0x200e2d(0x199)](0x0);return{'modelFragment':_0x441859,'anchorData':_0x22db57};}[_0x15bbf6(0x220)](){const _0x540a06=_0x15bbf6,_0x590122=this[_0x540a06(0x1b7)][_0x540a06(0x221)][_0x540a06(0x1b8)][_0x540a06(0x1c6)],_0x2debb3=this[_0x540a06(0x1b7)][_0x540a06(0x161)][_0x540a06(0x17b)](_0x540a06(0x19f))[_0x540a06(0x1c9)](),_0x39f0a0=_0x590122[_0x540a06(0x225)]()[_0x540a06(0x215)][_0x540a06(0x1de)][_0x540a06(0x1de)],_0x3fa7ac=this[_0x540a06(0x1a6)](_0x2debb3,this[_0x540a06(0x1b7)][_0x540a06(0x221)][_0x540a06(0x186)](_0x39f0a0),this[_0x540a06(0x1b7)][_0x540a06(0x221)][_0x540a06(0x180)](_0x39f0a0)),_0xec9fe9=_0x590122[_0x540a06(0x225)]()[_0x540a06(0x215)],_0x309ff4=new Map();let _0x3b1014=_0x3fa7ac;for(let _0x23171a=0x0;_0x23171a<_0xec9fe9[_0x540a06(0x200)][_0x540a06(0x1aa)];_0x23171a++)if(_0x309ff4[_0x540a06(0x223)](_0x3b1014,_0xec9fe9[_0x540a06(0x200)][_0x23171a]),_0x23171a<_0xec9fe9[_0x540a06(0x200)][_0x540a06(0x1aa)]-0x1)_0x3b1014=_0x3b1014[_0x540a06(0x199)](0x0);else{let _0x5315ca=_0x3b1014[_0x540a06(0x1bf)];for(;_0x5315ca;)_0x309ff4[_0x540a06(0x223)](_0x5315ca,_0xec9fe9[_0x540a06(0x200)][_0x23171a]),_0x5315ca=_0x5315ca[_0x540a06(0x1bf)];}return{'modelFragment':_0x3fa7ac,'anchorData':_0x309ff4};}[_0x15bbf6(0x1a5)](_0x1a521a,_0x4df79a,_0x35b0a7,_0x5d27e7,_0x3b6a9e){const _0x5c8987=_0x15bbf6,_0x3ab826=this[_0x5c8987(0x1b7)][_0x5c8987(0x161)][_0x5c8987(0x17b)](_0x3dbf97),_0x2bc329=this[_0x5c8987(0x1b7)][_0x5c8987(0x161)][_0x5c8987(0x17b)](_0x39fd04),_0x125dee=this[_0x5c8987(0x1b7)][_0x5c8987(0x221)][_0x5c8987(0x1b8)][_0x5c8987(0x1c6)],_0x56f389=_0x3ab826[_0x5c8987(0x194)](_0x4df79a),_0x49f786=this[_0x5c8987(0x1b7)][_0x5c8987(0x17d)][_0x5c8987(0x1b4)][_0x5c8987(0x226)](_0x56f389),_0x51c503=this[_0x5c8987(0x1b7)][_0x5c8987(0x221)][_0x5c8987(0x1b8)][_0x5c8987(0x14e)],_0x149530=[..._0x125dee[_0x5c8987(0x150)]()];let _0xb7bbc9=this[_0x5c8987(0x1b7)][_0x5c8987(0x1f0)][_0x5c8987(0x17b)](_0x5c8987(0x14b))||[..._0xef571e];this[_0x5c8987(0x1b7)][_0x5c8987(0x161)][_0x5c8987(0x204)](_0x5c8987(0x21d))||(_0xb7bbc9=_0xb7bbc9[_0x5c8987(0x15a)](_0x2150be=>_0x5c8987(0x1da)!=_0x2150be));const _0x3382f1=new _0x39b66c(this[_0x5c8987(0x1b7)][_0x5c8987(0x183)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x5c8987(0x170),'customView':this[_0x5c8987(0x1f5)]},'showUnchangedParts':!0x0,'availableActions':_0xb7bbc9});return _0x2bc329[_0x5c8987(0x1b5)]({'index':0x3e8*Math[_0x5c8987(0x214)]()%0x3e8,'title':_0x5d27e7,'icon':_0x3b6a9e||_0x5aa519,'mainView':_0x3382f1,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':this[_0x5c8987(0x1b7)][_0x5c8987(0x161)][_0x5c8987(0x204)](_0x5c8987(0x21d)),'ranges':_0x149530}),this[_0x5c8987(0x1fc)](_0x3382f1,_0x2bc329),this[_0x5c8987(0x181)](_0x2bc329,_0x5c8987(0x1e3),()=>{const _0x27adef=_0x5c8987;this[_0x27adef(0x1df)](_0x4df79a,_0x35b0a7,!0x1);}),this[_0x5c8987(0x181)](_0x2bc329,_0x5c8987(0x1da),()=>{const _0x254a0b=_0x5c8987;this[_0x254a0b(0x1df)](_0x4df79a,_0x35b0a7,!0x0);}),this[_0x5c8987(0x181)](_0x2bc329,_0x5c8987(0x19d),()=>{const _0x503d02=_0x5c8987;this[_0x503d02(0x1ee)](),this[_0x503d02(0x1a3)]();}),this[_0x5c8987(0x181)](_0x2bc329,_0x5c8987(0x1ef),()=>{const _0x54c0fe=_0x5c8987;if(this[_0x54c0fe(0x18c)]&&this[_0x54c0fe(0x18c)][_0x54c0fe(0x153)][_0x54c0fe(0x1aa)]>0x0){const _0x18f34d=this[_0x54c0fe(0x18c)][_0x54c0fe(0x153)][this[_0x54c0fe(0x18c)][_0x54c0fe(0x153)][_0x54c0fe(0x1aa)]-0x1],_0x302404=_0x18f34d[_0x54c0fe(0x1ed)][0x0];_0x302404&&_0x54c0fe(0x190)===_0x302404[_0x54c0fe(0x155)]&&_0x18f34d[_0x54c0fe(0x18f)](0x0,_0x54c0fe(0x17a));}this[_0x54c0fe(0x1ee)](),this[_0x54c0fe(0x1c7)](),this[_0x54c0fe(0x189)](_0x2bc329);}),this[_0x5c8987(0x211)](_0x49f786,_0x51c503,_0x3382f1,_0x2bc329,_0x1a521a);}[_0x15bbf6(0x1a6)](_0xdb18d0,_0x21eb97,_0x179dea){const _0xee49a5=_0x15bbf6,_0x4294f5=this[_0xee49a5(0x1b7)][_0xee49a5(0x221)][_0xee49a5(0x15f)](_0x21eb97,_0x179dea)[_0xee49a5(0x149)](),_0x506412=_0x4294f5['is'](_0xee49a5(0x1e7))?[]:_0x4294f5[_0xee49a5(0x1a2)]({'includeSelf':!0x0})[_0xee49a5(0x1f9)](0x1);if(_0x506412[_0xee49a5(0x1aa)]){const _0x5bbbb9=_0x506412[_0xee49a5(0x1b9)](_0x36740d=>_0x36740d[_0xee49a5(0x1cb)](!0x1));for(let _0x8fd6c=0x1;_0x8fd6c<_0x5bbbb9[_0xee49a5(0x1aa)];_0x8fd6c++)_0x5bbbb9[_0x8fd6c-0x1][_0xee49a5(0x1dd)](_0x5bbbb9[_0x8fd6c]);return _0x5bbbb9[_0x5bbbb9[_0xee49a5(0x1aa)]-0x1][_0xee49a5(0x1dd)](_0xdb18d0),new _0x158839(_0x5bbbb9[0x0]);}return _0xdb18d0;}async[_0x15bbf6(0x211)](_0x256e5e,_0x599c7d,_0x1bbf2d,_0xa0ee09,_0x458c40){const _0x1cf1c3=_0x15bbf6,_0x2226fa=this[_0x1cf1c3(0x1b7)];this[_0x1cf1c3(0x1ff)]={'action':_0x458c40,'content':_0x256e5e,'version':_0x599c7d,'mainView':_0x1bbf2d,'aiBalloon':_0xa0ee09};const _0x1c3a2c=new _0x58173e({'connector':this[_0x1cf1c3(0x227)],'editor':_0x2226fa,'content':_0x256e5e,'version':_0x599c7d,..._0x458c40});this[_0x1cf1c3(0x167)][_0x1cf1c3(0x16c)](_0x1c3a2c),_0x1bbf2d[_0x1cf1c3(0x173)]();const _0x23f5d5=(_0x48eed5,_0x341532,_0x412151=!0x1,_0x4e33c7=_0x1cf1c3(0x145))=>this[_0x1cf1c3(0x157)][_0x1cf1c3(0x191)](async _0x24e1ef=>{const _0x4621cf=_0x1cf1c3;try{const _0x1d9fc0=_0x115773({'editor':_0x2226fa,'changeGroups':_0x48eed5[_0x4621cf(0x1ed)],'documentContextContent':_0x48eed5[_0x4621cf(0x208)],'showDiff':_0x412151,'trimUnchanged':!0x1});await _0x341532[_0x4621cf(0x198)]({'parts':_0x1d9fc0,'renderingStrategy':_0x4e33c7,'abortSignal':_0x24e1ef});}catch(_0x378bfd){if(this[_0x4621cf(0x1ba)](_0x378bfd))return;throw _0x378bfd;}});this[_0x1cf1c3(0x18c)]['on'](_0x1cf1c3(0x154),(_0x11c4a,_0x3fcc2d)=>{const _0x287dd6=_0x1cf1c3;_0x1bbf2d[_0x287dd6(0x196)](),_0x23f5d5(_0x3fcc2d,_0x1bbf2d)[_0x287dd6(0x1ae)](_0x4b2a9a=>{const _0x4ee6cd=_0x287dd6;this[_0x4ee6cd(0x1ba)](_0x4b2a9a)||(console[_0x4ee6cd(0x1e8)](_0x4ee6cd(0x205),_0x4b2a9a),this[_0x4ee6cd(0x20a)](_0x1c3a2c,_0x1bbf2d));});}),this[_0x1cf1c3(0x18c)]['on'](_0x1cf1c3(0x1c2),(_0x297c93,_0x332c75)=>{const _0x79718a=_0x1cf1c3;_0x23f5d5(_0x332c75,_0x1bbf2d)[_0x79718a(0x1ae)](_0x1d6c00=>{const _0x45ffda=_0x79718a;this[_0x45ffda(0x1ba)](_0x1d6c00)||(console[_0x45ffda(0x1e8)](_0x45ffda(0x192),_0x1d6c00),this[_0x45ffda(0x20a)](_0x1c3a2c,_0x1bbf2d));});}),this[_0x1cf1c3(0x18c)]['on'](_0x1cf1c3(0x15c),async()=>{const _0x40bcf2=_0x1cf1c3;try{await this[_0x40bcf2(0x140)](_0x1bbf2d,_0xa0ee09),this[_0x40bcf2(0x18e)]();}catch(_0x5324b3){this[_0x40bcf2(0x1ba)](_0x5324b3)||(console[_0x40bcf2(0x1e8)](_0x40bcf2(0x1d6),_0x5324b3),this[_0x40bcf2(0x20a)](_0x1c3a2c,_0x1bbf2d));}}),this[_0x1cf1c3(0x181)](_0x1bbf2d,_0x1cf1c3(0x202),(_0x49e5e3,{showDiff:_0xd46220})=>{const _0x9e9f79=_0x1cf1c3;this[_0x9e9f79(0x1bb)]=_0xd46220;const _0x4e0f04=this[_0x9e9f79(0x18c)][_0x9e9f79(0x153)][this[_0x9e9f79(0x18c)][_0x9e9f79(0x153)][_0x9e9f79(0x1aa)]-0x1];_0x4e0f04&&_0x23f5d5(_0x4e0f04,_0x1bbf2d,_0xd46220,_0x9e9f79(0x21b))[_0x9e9f79(0x1ae)](_0xbeec57=>{const _0x2a47ce=_0x9e9f79;this[_0x2a47ce(0x1ba)](_0xbeec57)||(console[_0x2a47ce(0x1e8)](_0x2a47ce(0x1c5),_0xbeec57),this[_0x2a47ce(0x20a)](_0x1c3a2c,_0x1bbf2d));});}),this[_0x1cf1c3(0x18c)]['on'](_0x1cf1c3(0x1b3),(_0x3b4e28,{reply:_0x55a905})=>{const _0x59003b=_0x1cf1c3,_0x58e979={'positiveCount':_0x55a905[_0x59003b(0x1ed)][_0x59003b(0x15a)](_0x4dbee8=>_0x59003b(0x1e5)===_0x4dbee8[_0x59003b(0x155)])[_0x59003b(0x1aa)],'totalCount':_0x55a905[_0x59003b(0x1ed)][_0x59003b(0x1aa)]},_0x1cdbd0=this[_0x59003b(0x18c)][_0x59003b(0x1e9)],_0x253109=this[_0x59003b(0x18c)][_0x59003b(0x188)];_0x253109?this[_0x59003b(0x227)][_0x59003b(0x1ad)](_0x253109,_0x1cdbd0,_0x58e979):this[_0x59003b(0x227)][_0x59003b(0x165)](_0x1cdbd0,_0x58e979);}),this[_0x1cf1c3(0x1fc)](_0x1bbf2d,_0xa0ee09);try{const _0x1318be=await this[_0x1cf1c3(0x18c)][_0x1cf1c3(0x215)]();return this[_0x1cf1c3(0x18e)](),_0x1318be;}catch(_0x26f30d){if(this[_0x1cf1c3(0x1ba)](_0x26f30d))return;_0x1bbf2d[_0x1cf1c3(0x196)](),this[_0x1cf1c3(0x20a)](_0x1c3a2c,_0x1bbf2d);}}[_0x15bbf6(0x1df)](_0x5ecad6,_0x15c58b,_0x39b027){const _0x5b546a=_0x15bbf6,_0x4c383f=this[_0x5b546a(0x1b7)];if(_0x39b027&&!_0x4c383f[_0x5b546a(0x161)][_0x5b546a(0x204)](_0x5b546a(0x21d)))throw new _0x10b568(_0x5b546a(0x147),null);const _0x444655=this[_0x5b546a(0x1b7)][_0x5b546a(0x161)][_0x5b546a(0x17b)](_0x1869dc),_0x4ab3fa=this[_0x5b546a(0x18c)],_0x1c9168=this[_0x5b546a(0x18c)][_0x5b546a(0x153)][this[_0x5b546a(0x18c)][_0x5b546a(0x153)][_0x5b546a(0x1aa)]-0x1],_0x451d41=_0x1c9168[_0x5b546a(0x1ed)];_0x1c9168[_0x5b546a(0x18f)](0x0,_0x5b546a(0x1e5));let _0x12fbc6=_0x2c2ac2({'editor':_0x4c383f,'reply':_0x1c9168,'interaction':_0x4ab3fa,'groups':_0x451d41,'transform':!0x1,'documentCompare':_0x444655,'documentCompareOptions':{'anchor':_0x4c383f[_0x5b546a(0x221)][_0x5b546a(0x16b)](_0x5ecad6,0x0),'markDeletions':_0x39b027}});_0x12fbc6=this[_0x5b546a(0x193)](_0x12fbc6,_0x15c58b);for(const _0x2350b4 of _0x12fbc6)this[_0x5b546a(0x19a)](_0x15c58b,_0x2350b4,_0x4c383f[_0x5b546a(0x221)][_0x5b546a(0x1b8)][_0x5b546a(0x187)]());const _0x3a0323=_0x4ab3fa[_0x5b546a(0x156)]()[_0x5b546a(0x14e)],_0x51f7db=_0x4c383f[_0x5b546a(0x221)][_0x5b546a(0x1b8)][_0x5b546a(0x174)][_0x5b546a(0x163)](_0x3a0323),_0xdcdc1f={'document':_0x4c383f[_0x5b546a(0x221)][_0x5b546a(0x1b8)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x1f4c08=_0x55a5db(_0x12fbc6,_0x51f7db,_0xdcdc1f)[_0x5b546a(0x1cf)];_0x4c383f[_0x5b546a(0x221)][_0x5b546a(0x176)](_0x59a51c=>{const _0x192957=_0x5b546a;if(_0x59a51c[_0x192957(0x177)](_0x4c383f[_0x192957(0x221)][_0x192957(0x1b8)][_0x192957(0x1c6)][_0x192957(0x20f)]),_0x39b027)_0x4c383f[_0x192957(0x161)][_0x192957(0x17b)](_0x192957(0x162))[_0x192957(0x178)](_0x1f4c08);else{for(const _0x439078 of _0x1f4c08)_0x439078[_0x192957(0x146)]=_0x4c383f[_0x192957(0x221)][_0x192957(0x1b8)][_0x192957(0x14e)],_0x7d73c5(_0x4c383f,_0x439078),_0x59a51c[_0x192957(0x1a7)][_0x192957(0x216)](_0x439078),_0x4c383f[_0x192957(0x221)][_0x192957(0x14c)](_0x439078);}}),this[_0x5b546a(0x1b7)][_0x5b546a(0x161)][_0x5b546a(0x17b)](_0x5b546a(0x18d))[_0x5b546a(0x1ea)]();}[_0x15bbf6(0x193)](_0x2ceced,_0x1b0a37){const _0xf4576b=_0x15bbf6;return _0x2ceced[_0xf4576b(0x15a)](_0x2f4868=>{const _0x33d1a4=_0xf4576b;if(_0x33d1a4(0x195)==_0x2f4868[_0x33d1a4(0x1cd)]){const _0x2e70ef=_0x2f4868[_0x33d1a4(0x1e4)][_0x33d1a4(0x1f8)];return!_0x1b0a37[_0x33d1a4(0x204)](_0x2e70ef);}if(_0x2f4868[_0x33d1a4(0x1cd)][_0x33d1a4(0x17e)](_0x33d1a4(0x19c))>-0x1){const _0xe5b17=_0x2f4868[_0x33d1a4(0x21f)][_0x33d1a4(0x215)][_0x33d1a4(0x1f8)];return!_0x1b0a37[_0x33d1a4(0x204)](_0xe5b17);}return!0x0;});}[_0x15bbf6(0x19a)](_0x24ebf9,_0x26b8f7,_0x27136c){const _0x5ab740=_0x15bbf6,_0x2274cc=_0x26b8f7[_0x5ab740(0x1d3)]();for(const _0x5df00d in _0x26b8f7){const _0x4a29ca=_0x26b8f7[_0x5df00d];_0x4a29ca instanceof _0x248325?_0x26b8f7[_0x5df00d]=new _0x248325(_0x5d0bee(_0x4a29ca[_0x5ab740(0x215)]),_0x5d0bee(_0x4a29ca[_0x5ab740(0x1fe)])):_0x4a29ca instanceof _0x5811ee&&(_0x26b8f7[_0x5df00d]=_0x5d0bee(_0x4a29ca));}if([_0x5ab740(0x206),_0x5ab740(0x218),_0x5ab740(0x18a),_0x5ab740(0x1ce),_0x5ab740(0x1ac),_0x5ab740(0x1c4)][_0x5ab740(0x1a0)](_0x2274cc[_0x5ab740(0x1cd)])){if(_0x2274cc[_0x5ab740(0x1a9)]=!0x1,_0x2274cc[_0x5ab740(0x146)]=null,_0x5ab740(0x18a)==_0x2274cc[_0x5ab740(0x1cd)]){const _0x17284f=_0x2274cc[_0x5ab740(0x164)],_0x2e18f2=_0x2274cc[_0x5ab740(0x169)];new _0x3ca4bd(_0x17284f,_0x2e18f2)[_0x5ab740(0x1d0)]();}else _0x2274cc[_0x5ab740(0x1d0)]();}function _0x5d0bee(_0x7f6194){const _0x2aeb9f=_0x5ab740;if(_0x2aeb9f(0x1a8)==_0x7f6194[_0x2aeb9f(0x213)][_0x2aeb9f(0x20d)])return _0x7f6194;const _0x4bc832=[];let _0xaef007=_0x7f6194[_0x2aeb9f(0x213)];for(let _0x1b0ceb=0x0;_0x1b0ceb<_0x7f6194[_0x2aeb9f(0x200)][_0x2aeb9f(0x1aa)];_0x1b0ceb++){const _0x5370df=_0x24ebf9[_0x2aeb9f(0x17b)](_0xaef007)||0x0;_0x4bc832[_0x1b0ceb]=_0x7f6194[_0x2aeb9f(0x200)][_0x1b0ceb]+_0x5370df,_0xaef007=_0xaef007[_0x2aeb9f(0x152)](_0x7f6194[_0x2aeb9f(0x200)][_0x1b0ceb]);}return new _0x5811ee(_0x27136c,_0x4bc832,_0x7f6194[_0x2aeb9f(0x1a1)]);}}[_0x15bbf6(0x20e)](){const _0x1e7523=_0x15bbf6;if(!this[_0x1e7523(0x1ff)])return;this[_0x1e7523(0x167)][_0x1e7523(0x1aa)]>0x0&&this[_0x1e7523(0x1ee)](),this[_0x1e7523(0x1be)]=0x0,this[_0x1e7523(0x1bb)]=!0x1;const {action:_0x23bd8f,content:_0x3970ba,version:_0x2934b1,mainView:_0x288cf4,aiBalloon:_0x1a2c74}=this[_0x1e7523(0x1ff)];_0x288cf4[_0x1e7523(0x21a)]=!0x1,_0x288cf4[_0x1e7523(0x173)](),this[_0x1e7523(0x1b1)](_0x288cf4,_0x1a2c74);const _0x1e5afd=_0x288cf4;_0x1e5afd[_0x1e7523(0x1ca)]&&_0x1e5afd[_0x1e7523(0x1ca)][_0x1e7523(0x1dc)]&&_0x1e5afd[_0x1e7523(0x1ca)][_0x1e7523(0x1dc)][_0x1e7523(0x223)]({'isOn':!0x1,'icon':_0x5c670e}),this[_0x1e7523(0x1d8)](_0x288cf4),_0x288cf4[_0x1e7523(0x16e)](),this[_0x1e7523(0x18e)](),this[_0x1e7523(0x211)](_0x3970ba,_0x2934b1,_0x288cf4,_0x1a2c74,_0x23bd8f)[_0x1e7523(0x1ae)](_0x2e2bb7=>{const _0x33f1de=_0x1e7523;this[_0x33f1de(0x1ba)](_0x2e2bb7)||console[_0x33f1de(0x1e8)](_0x33f1de(0x20c),_0x2e2bb7);});}[_0x15bbf6(0x1d8)](_0x4beb77){const _0x35c731=_0x15bbf6,_0x19055e=_0x4beb77[_0x35c731(0x1e6)][_0x35c731(0x160)];for(;_0x19055e[_0x35c731(0x1aa)]>0x0;)_0x19055e[_0x35c731(0x18a)](_0x19055e[_0x35c731(0x159)]);_0x4beb77[_0x35c731(0x1e6)][_0x35c731(0x151)]=!0x1;}[_0x15bbf6(0x1ba)](_0x37dc01){const _0xb7d2f3=_0x15bbf6;return!!_0x37dc01[_0xb7d2f3(0x224)]&&_0x37dc01[_0xb7d2f3(0x224)][_0xb7d2f3(0x1fa)](_0xb7d2f3(0x1db));}[_0x15bbf6(0x1c7)](){const _0x1b81f8=_0x15bbf6;this[_0x1b81f8(0x167)]=[],this[_0x1b81f8(0x1ff)]=void 0x0,this[_0x1b81f8(0x1be)]=0x0,this[_0x1b81f8(0x18e)]();}[_0x15bbf6(0x1ee)](){const _0x10b067=_0x15bbf6;this[_0x10b067(0x18c)]&&this[_0x10b067(0x18c)][_0x10b067(0x179)](),this[_0x10b067(0x157)][_0x10b067(0x19e)](),this[_0x10b067(0x212)]=!0x1;}[_0x15bbf6(0x21e)](){const _0x1147d8=_0x15bbf6,_0xc3054a=new _0x2af5e5(this[_0x1147d8(0x1b7)][_0x1147d8(0x183)]),_0x5148fe=new _0x2af5e5(this[_0x1147d8(0x1b7)][_0x1147d8(0x183)]),_0x518a92=new _0xcc7ce9(this[_0x1147d8(0x1b7)][_0x1147d8(0x183)]),_0x3b9e8f=new _0x2af5e5(this[_0x1147d8(0x1b7)][_0x1147d8(0x183)]);_0xc3054a[_0x1147d8(0x223)]({'icon':_0x3648f2,'label':_0x197314(this[_0x1147d8(0x1b7)][_0x1147d8(0x183)],_0x1147d8(0x158)),'tooltip':!0x0,'class':_0x1147d8(0x201)}),_0x5148fe[_0x1147d8(0x223)]({'icon':_0x188ec3,'tooltip':_0x197314(this[_0x1147d8(0x1b7)][_0x1147d8(0x183)],_0x1147d8(0x1d7)),'class':_0x1147d8(0x1d4)}),_0x518a92[_0x1147d8(0x217)]({'tag':_0x1147d8(0x1d2),'attributes':{'class':[_0x1147d8(0x14f)]},'children':[_0x1147d8(0x15d)]}),_0x3b9e8f[_0x1147d8(0x223)]({'icon':_0x34388e,'tooltip':_0x197314(this[_0x1147d8(0x1b7)][_0x1147d8(0x183)],_0x1147d8(0x184)),'class':_0x1147d8(0x1f7)}),_0xc3054a[_0x1147d8(0x1c1)](_0x1147d8(0x20b))['to'](this,_0x1147d8(0x212),_0x1def98=>!_0x1def98),_0xc3054a['on'](_0x1147d8(0x17f),()=>{const _0x3bd2ab=_0x1147d8;this[_0x3bd2ab(0x20e)]();}),_0x5148fe[_0x1147d8(0x1c1)](_0x1147d8(0x20b))['to'](this,_0x1147d8(0x212),_0x19a8dc=>!_0x19a8dc),_0x5148fe['on'](_0x1147d8(0x17f),()=>{const _0x15b52f=_0x1147d8;this[_0x15b52f(0x1a4)]();}),_0x3b9e8f[_0x1147d8(0x1c1)](_0x1147d8(0x20b))['to'](this,_0x1147d8(0x212),_0x10d5e0=>!_0x10d5e0),_0x3b9e8f['on'](_0x1147d8(0x17f),()=>{const _0xa21e25=_0x1147d8;this[_0xa21e25(0x1fb)]();}),this[_0x1147d8(0x166)]=_0x5148fe,this[_0x1147d8(0x1c3)]=_0x518a92,this[_0x1147d8(0x1af)]=_0x3b9e8f,this[_0x1147d8(0x1f5)][_0x1147d8(0x142)](_0xc3054a);}[_0x15bbf6(0x1a4)](){const _0x405704=_0x15bbf6,_0x5a7138=this[_0x405704(0x167)][_0x405704(0x1aa)];this[_0x405704(0x1be)]<_0x5a7138-0x1&&this[_0x405704(0x1f2)](this[_0x405704(0x1be)]+0x1);}[_0x15bbf6(0x1fb)](){const _0xf190b7=_0x15bbf6;this[_0xf190b7(0x1be)]>0x0&&this[_0xf190b7(0x1f2)](this[_0xf190b7(0x1be)]-0x1);}async[_0x15bbf6(0x1f2)](_0x223941){const _0x5acf42=_0x15bbf6;if(!this[_0x5acf42(0x1ff)])return;this[_0x5acf42(0x1be)]=_0x223941;const {mainView:_0x2ba48b}=this[_0x5acf42(0x1ff)],_0x4c0900=this[_0x5acf42(0x167)][this[_0x5acf42(0x167)][_0x5acf42(0x1aa)]-0x1-this[_0x5acf42(0x1be)]];if(!_0x4c0900)return;if(_0x4c0900[_0x5acf42(0x14d)])return this[_0x5acf42(0x20a)](_0x4c0900,_0x2ba48b),void this[_0x5acf42(0x18e)]();if(!_0x4c0900[_0x5acf42(0x153)][_0x5acf42(0x1aa)])return;_0x2ba48b[_0x5acf42(0x173)](),this[_0x5acf42(0x1ff)]&&this[_0x5acf42(0x1b1)](_0x2ba48b,this[_0x5acf42(0x1ff)][_0x5acf42(0x210)]);const _0x2a7744=_0x4c0900[_0x5acf42(0x153)][_0x4c0900[_0x5acf42(0x153)][_0x5acf42(0x1aa)]-0x1];if(_0x2a7744){const _0x2a087b=this[_0x5acf42(0x1b7)];this[_0x5acf42(0x1d8)](_0x2ba48b);try{const _0x4cea4a=_0x115773({'editor':_0x2a087b,'changeGroups':_0x2a7744[_0x5acf42(0x1ed)],'documentContextContent':_0x2a7744[_0x5acf42(0x208)],'showDiff':this[_0x5acf42(0x1bb)],'trimUnchanged':!0x1});this[_0x5acf42(0x1d8)](_0x2ba48b),await new Promise(_0xb07745=>setTimeout(_0xb07745,0x32)),await _0x2ba48b[_0x5acf42(0x198)]({'parts':_0x4cea4a,'renderingStrategy':_0x5acf42(0x21b),'abortSignal':new AbortController()[_0x5acf42(0x1f4)]});}catch(_0xbeaafa){this[_0x5acf42(0x1ba)](_0xbeaafa)||console[_0x5acf42(0x1e8)](_0x5acf42(0x197),_0xbeaafa);}}this[_0x5acf42(0x18e)]();}[_0x15bbf6(0x18e)](){const _0x56f18c=_0x15bbf6;if(!this[_0x56f18c(0x166)]||!this[_0x56f18c(0x1c3)]||!this[_0x56f18c(0x1af)])return;const _0x4a91a2=this[_0x56f18c(0x167)][_0x56f18c(0x1aa)],_0x9c9441=_0x4a91a2>0x1,_0x2827e8=this[_0x56f18c(0x1ff)]?.[_0x56f18c(0x1f6)];if(_0x9c9441){this[_0x56f18c(0x17c)]||this[_0x56f18c(0x16a)]||this[_0x56f18c(0x141)]||(this[_0x56f18c(0x1f5)][_0x56f18c(0x142)](this[_0x56f18c(0x166)]),_0x2827e8?.[_0x56f18c(0x1e1)](this[_0x56f18c(0x166)]),this[_0x56f18c(0x17c)]=!0x0,this[_0x56f18c(0x1f5)][_0x56f18c(0x142)](this[_0x56f18c(0x1c3)]),_0x2827e8?.[_0x56f18c(0x1e1)](this[_0x56f18c(0x1c3)]),this[_0x56f18c(0x16a)]=!0x0,this[_0x56f18c(0x1f5)][_0x56f18c(0x142)](this[_0x56f18c(0x1af)]),_0x2827e8?.[_0x56f18c(0x1e1)](this[_0x56f18c(0x1af)]),this[_0x56f18c(0x141)]=!0x0);const _0x5d97e1=_0x4a91a2-this[_0x56f18c(0x1be)];this[_0x56f18c(0x1c3)][_0x56f18c(0x15e)]&&(this[_0x56f18c(0x1c3)][_0x56f18c(0x15e)][_0x56f18c(0x1c0)]=_0x5d97e1+'/'+_0x4a91a2),this[_0x56f18c(0x166)][_0x56f18c(0x20b)]=this[_0x56f18c(0x1be)]<_0x4a91a2-0x1,this[_0x56f18c(0x1af)][_0x56f18c(0x20b)]=this[_0x56f18c(0x1be)]>0x0;}else(this[_0x56f18c(0x17c)]||this[_0x56f18c(0x16a)]||this[_0x56f18c(0x141)])&&(this[_0x56f18c(0x1f5)][_0x56f18c(0x18a)](this[_0x56f18c(0x166)]),_0x2827e8?.[_0x56f18c(0x1bd)](this[_0x56f18c(0x166)]),this[_0x56f18c(0x17c)]=!0x1,this[_0x56f18c(0x1f5)][_0x56f18c(0x18a)](this[_0x56f18c(0x1c3)]),_0x2827e8?.[_0x56f18c(0x1bd)](this[_0x56f18c(0x1c3)]),this[_0x56f18c(0x16a)]=!0x1,this[_0x56f18c(0x1f5)][_0x56f18c(0x18a)](this[_0x56f18c(0x1af)]),_0x2827e8?.[_0x56f18c(0x1bd)](this[_0x56f18c(0x1af)]),this[_0x56f18c(0x141)]=!0x1);}[_0x15bbf6(0x1fc)](_0x26b418,_0x45c143){const _0x2976ff=_0x15bbf6;_0x26b418[_0x2976ff(0x1f3)](),_0x45c143[_0x2976ff(0x1cc)][_0x2976ff(0x1f3)](),this[_0x2976ff(0x212)]=!0x0;}async[_0x15bbf6(0x20a)](_0x798759,_0x2bb053){const _0x517676=_0x15bbf6,_0x3074d7=_0x197314(this[_0x517676(0x1b7)][_0x517676(0x183)],_0x517676(0x1d9));_0x2bb053[_0x517676(0x1d1)](_0x3074d7),_0x798759[_0x517676(0x14d)]=!0x0,await this[_0x517676(0x157)][_0x517676(0x1b0)],_0x2bb053[_0x517676(0x16f)](),this[_0x517676(0x1ff)]?.[_0x517676(0x210)][_0x517676(0x1cc)][_0x517676(0x21c)]&&(this[_0x517676(0x1ff)][_0x517676(0x210)][_0x517676(0x1cc)][_0x517676(0x21c)][_0x517676(0x1e0)]=!0x0);}[_0x15bbf6(0x1b1)](_0x2396f5,_0x35adfe){const _0x409f69=_0x15bbf6;_0x2396f5[_0x409f69(0x15b)](),_0x35adfe[_0x409f69(0x1cc)][_0x409f69(0x21c)]&&(_0x35adfe[_0x409f69(0x1cc)][_0x409f69(0x21c)][_0x409f69(0x1e0)]=!0x1);}async[_0x15bbf6(0x140)](_0xadca25,_0x3c455c){const _0x88a45a=_0x15bbf6;await this[_0x88a45a(0x157)][_0x88a45a(0x1b0)],this[_0x88a45a(0x212)]=!0x1,_0xadca25[_0x88a45a(0x1ab)](),_0x3c455c[_0x88a45a(0x1cc)][_0x88a45a(0x1ab)]();}[_0x15bbf6(0x1a3)](){const _0x5eb722=_0x15bbf6;this[_0x5eb722(0x1f5)][_0x5eb722(0x219)](_0x154d97=>{const _0x49e365=_0x5eb722;_0x49e365(0x20b)in _0x154d97&&(_0x154d97[_0x49e365(0x20b)]=!0x1);});}}
23
+ function _0x21c2(){const _0x236c41=['_navigationPreviousButton','setLoading','_executeAction','_refreshInteraction','split','1/1','stickiness','streaming','changeGroups','random','getDocumentContext','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','document','isOfficialPlugin','_updateNavigationUI','error','documentContextContent','stop','setChangeGroupState','balloonView','replies','replyChangeGroupStateUpdated','actionName','history','first','AIBalloon','_interaction','path','getChildAtOffset','hideError','ck-ai-interaction-counter','clearLoading','showLoader','_isNavigationCounterInView','AI_ACTIONS_PREVIOUS_INTERACTION','editor','rootName','createPositionAfter','5436555TXKOfH','range','includes','parent','forEach','10HzbJxl','isBusy','getChild','data','_setLoadingState','_execute','Error\x20updating\x20content\x20in\x20replyCreated:','_displayInteractionAtIndex','close','getRanges','insertSuggestion','getSelectionAsFragment','ai-no-track-changes','aiBalloon','5315481VNTzVL','getLimitElement','applySuggestion','sourcePosition','catch','state','ck-ai-custom-action-button','222tQfVLl','get','_getExecuteDataInTable','slice','_clearSuggestionContent','_isNavigationPreviousButtonInView','pending','AIConnector','rename','bodyView','_customViews','replyContentUpdated','replyCreated','_anchorOperation','selectionRemoved','indexOf','icon','AI_ACTIONS_NEXT_INTERACTION','24537458kOVdlr','_navigationCounter','getOperations','start','getFirstRange','operationsA','rejected','requires','$graveyard','focus','showError','updateContent','isLoading','hasPendingParts','clearErrorState','upsertAIActionRating','schema','_promiseQueue','_currentInteractionIndex','dialogClosed','TrackChangesEditing','executeAction','map','batch','createPositionBefore','getSelectedContent','_setErrorState','version','2rgOqnu','_balloonShowDiff','open','reinsert','remove','_clearLoadingState','ck-ai-navigation-button\x20ck-ai-next-button','5205655dMHNYS','_disableCustomViews','Error\x20refreshing\x20interaction:','filter','enqueue','_interactionParams','merge','set','end','hasError','isEnabled','addOperation','_createInteraction','Error\x20updating\x20content\x20during\x20navigation:','18884wKrSBE','showChangesButton','isPremiumPlugin','has','execute','getSelectedTableCells','clone','isDocumentOperation','toData','_wrapWithCommonAncestors','setErrorState','root','length','_interactions','_setupCustomViews','ai-request-aborted','selection','type','958459BKCafb','position','change','areChangesVisible','addNavigationItem','getCommonAncestor','_navigationNextButton','upsertCustomAIActionRating','toggleSuggestionDisplayMode','AI_ACTIONS_GENERIC_ERROR','_isAbortError','_stopInteraction','TableSelection','abort','setTemplate','pluginName','getAncestors','nextSibling','_isNavigationNextButtonInView','mainView','stopListening','_aiConnector','miniToolbarView','_children','model','applyOperation','ck-ai-navigation-button\x20ck-ai-previous-button','message','plugins','_clearInteractionHistory','locale','_filterOperationsOutsideRange','ai.availableReplyActions','move','_appendChild','6JqtULN','nodeAfter','processor','Error\x20updating\x20content\x20in\x20replyContentUpdated:','modelToViewWithIds','add','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','_getExecuteDataRegular','AI_ACTIONS_TRY_AGAIN','getRoot','baseVersion','howMany','_clone','setSelection','createPositionAt','_applyChanges','removeNavigationItem','push','startsWith','TrackChanges','_navigateToNext','documentFragment','interactionFinished','getSelectedBlocks','actionCallId','toolbar','element','signal','isCollapsed','stopInteraction','insert','Attribute','textContent','_applyOperationsAsSuggestions','hideLoader','listenTo','_clearErrorState','_navigateToPrevious','bind','accepted','4349152iBToLh','span','createRange','queueEmptyPromise','static','AIActions','config'];_0x21c2=function(){return _0x236c41;};return _0x21c2();}function _0x41c4(_0x2fa534,_0x4a992b){const _0x21c27a=_0x21c2();return _0x41c4=function(_0x41c485,_0x37aed3){_0x41c485=_0x41c485-0x1cd;let _0x2216f9=_0x21c27a[_0x41c485];return _0x2216f9;},_0x41c4(_0x2fa534,_0x4a992b);}const _0x15b221=_0x41c4;(function(_0x1146cb,_0x45fa6d){const _0x17ea6c=_0x41c4,_0x26dc69=_0x1146cb();while(!![]){try{const _0x41cfc9=parseInt(_0x17ea6c(0x256))/0x1*(parseInt(_0x17ea6c(0x22f))/0x2)+-parseInt(_0x17ea6c(0x201))/0x3*(-parseInt(_0x17ea6c(0x244))/0x4)+-parseInt(_0x17ea6c(0x1e7))/0x5*(-parseInt(_0x17ea6c(0x279))/0x6)+-parseInt(_0x17ea6c(0x236))/0x7+parseInt(_0x17ea6c(0x2a1))/0x8+parseInt(_0x17ea6c(0x1fa))/0x9*(parseInt(_0x17ea6c(0x1ec))/0xa)+-parseInt(_0x17ea6c(0x213))/0xb;if(_0x41cfc9===_0x45fa6d)break;else _0x26dc69['push'](_0x26dc69['shift']());}catch(_0x3b13ee){_0x26dc69['push'](_0x26dc69['shift']());}}}(_0x21c2,0x8781a));import{Plugin as _0x1d8515}from'ckeditor5/src/core.js';import{AIConnector as _0x2ce82e}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x23c1c3}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x244630,ButtonView as _0x1e3f61,ViewCollection as _0x2a07aa,View as _0x143fbc}from'ckeditor5/src/ui.js';import{AIEditing as _0x429298}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x59c576}from'./model/aiactionsinteraction.js';import{CKEditorError as _0x4a76f8,first as _0x5415fc}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x388e77,IconRefresh as _0x1ae2ba,IconNextArrow as _0x1b1148,IconPreviousArrow as _0x382872,IconShowChangesOff as _0x2d0637}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x48db54}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x454032}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x21376e}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0xdf83de}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x1dc06f}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x482421,getOperationsFromReply as _0x1f7354}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x55cafd,ModelRange as _0x295190,ModelPosition as _0x21c5e8,_DetachOperation as _0x376295,transformOperationSets as _0x1e693f}from'ckeditor5/src/engine.js';import{AI_REPLY_ACTIONS as _0x243ca7}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIActions extends _0x1d8515{static get[_0x15b221(0x21a)](){return[_0x2ce82e,_0x244630,_0x429298,_0x48db54,_0x1dc06f];}static get[_0x15b221(0x265)](){const _0xa569cf=_0x15b221;return _0xa569cf(0x2a6);}static get[_0x15b221(0x1ce)](){return!0x0;}static get[_0x15b221(0x246)](){return!0x0;}[_0x15b221(0x26b)];[_0x15b221(0x251)]=[];[_0x15b221(0x225)]=0x0;[_0x15b221(0x23b)];[_0x15b221(0x230)]=!0x1;[_0x15b221(0x20b)]=new _0x2a07aa();[_0x15b221(0x2a8)];[_0x15b221(0x214)];[_0x15b221(0x1e2)]=!0x1;[_0x15b221(0x25c)];[_0x15b221(0x206)]=!0x1;[_0x15b221(0x268)]=!0x1;[_0x15b221(0x224)];get[_0x15b221(0x1db)](){const _0xd3b1a9=_0x15b221;return this[_0xd3b1a9(0x251)][this[_0xd3b1a9(0x251)][_0xd3b1a9(0x250)]-0x1];}constructor(_0x415054){const _0x196839=_0x15b221;super(_0x415054),this[_0x196839(0x26b)]=this[_0x196839(0x1e4)][_0x196839(0x272)][_0x196839(0x202)](_0x196839(0x208)),this[_0x196839(0x23d)](_0x196839(0x1ed),!0x1),this[_0x196839(0x224)]=new _0x454032(),this[_0x196839(0x252)]();}[_0x15b221(0x296)](){const _0x565c05=_0x15b221;this[_0x565c05(0x261)]();}async[_0x15b221(0x228)](_0x50412b,_0x2b5262,_0x7b1c52){const _0x538654=_0x15b221;if(this[_0x538654(0x1e4)][_0x538654(0x272)][_0x538654(0x247)](_0x538654(0x262))){if(this[_0x538654(0x1e4)][_0x538654(0x272)][_0x538654(0x202)](_0x538654(0x262))[_0x538654(0x249)]()){const {modelFragment:_0x6c4750,anchorData:_0x548b38}=this[_0x538654(0x203)]();return this[_0x538654(0x2aa)](_0x50412b,_0x6c4750,_0x548b38,_0x2b5262,_0x7b1c52);}}const {modelFragment:_0x950a3b,anchorData:_0x1a2ad1}=this[_0x538654(0x280)]();return this[_0x538654(0x2aa)](_0x50412b,_0x950a3b,_0x1a2ad1,_0x2b5262,_0x7b1c52);}[_0x15b221(0x280)](){const _0x56b7d5=_0x15b221,_0x43e459=this[_0x56b7d5(0x1e4)][_0x56b7d5(0x26e)][_0x56b7d5(0x1cd)][_0x56b7d5(0x254)];if(_0x43e459[_0x56b7d5(0x295)]){const _0x51098e=_0x5415fc(_0x43e459[_0x56b7d5(0x290)]())||this[_0x56b7d5(0x1e4)][_0x56b7d5(0x26e)][_0x56b7d5(0x223)][_0x56b7d5(0x1fb)](_0x43e459);this[_0x56b7d5(0x1e4)][_0x56b7d5(0x26e)][_0x56b7d5(0x258)](_0xbebb2e=>{const _0x92d8c8=_0x56b7d5;_0xbebb2e[_0x92d8c8(0x286)](_0x51098e,'in');});}const _0x2bc57a=_0x43e459[_0x56b7d5(0x217)](),_0x2edd58=this[_0x56b7d5(0x24d)](this[_0x56b7d5(0x1e4)][_0x56b7d5(0x26e)][_0x56b7d5(0x22c)](_0x43e459),_0x2bc57a[_0x56b7d5(0x216)],_0x2bc57a[_0x56b7d5(0x23e)]),_0xd1276d=_0x43e459[_0x56b7d5(0x217)]()[_0x56b7d5(0x216)],_0x2888bf=new Map();let _0x1c7872=_0x2edd58;for(let _0x513c55=0x0;_0x513c55<_0xd1276d[_0x56b7d5(0x1dc)][_0x56b7d5(0x250)];_0x513c55++)_0x2888bf[_0x56b7d5(0x23d)](_0x1c7872,_0xd1276d[_0x56b7d5(0x1dc)][_0x513c55]),_0x1c7872=_0x1c7872[_0x56b7d5(0x1ee)](0x0);return{'modelFragment':_0x2edd58,'anchorData':_0x2888bf};}[_0x15b221(0x203)](){const _0x2a5be3=_0x15b221,_0x1e55f0=this[_0x2a5be3(0x1e4)][_0x2a5be3(0x26e)][_0x2a5be3(0x1cd)][_0x2a5be3(0x254)],_0x47dada=this[_0x2a5be3(0x1e4)][_0x2a5be3(0x272)][_0x2a5be3(0x202)](_0x2a5be3(0x262))[_0x2a5be3(0x1f7)](),_0x13c007=_0x1e55f0[_0x2a5be3(0x217)]()[_0x2a5be3(0x216)][_0x2a5be3(0x1ea)][_0x2a5be3(0x1ea)],_0x44512e=this[_0x2a5be3(0x24d)](_0x47dada,this[_0x2a5be3(0x1e4)][_0x2a5be3(0x26e)][_0x2a5be3(0x22b)](_0x13c007),this[_0x2a5be3(0x1e4)][_0x2a5be3(0x26e)][_0x2a5be3(0x1e6)](_0x13c007)),_0x3fd679=_0x1e55f0[_0x2a5be3(0x217)]()[_0x2a5be3(0x216)],_0xadcafc=new Map();let _0x248fde=_0x44512e;for(let _0x3083fc=0x0;_0x3083fc<_0x3fd679[_0x2a5be3(0x1dc)][_0x2a5be3(0x250)];_0x3083fc++)if(_0xadcafc[_0x2a5be3(0x23d)](_0x248fde,_0x3fd679[_0x2a5be3(0x1dc)][_0x3083fc]),_0x3083fc<_0x3fd679[_0x2a5be3(0x1dc)][_0x2a5be3(0x250)]-0x1)_0x248fde=_0x248fde[_0x2a5be3(0x1ee)](0x0);else{let _0x36c066=_0x248fde[_0x2a5be3(0x267)];for(;_0x36c066;)_0xadcafc[_0x2a5be3(0x23d)](_0x36c066,_0x3fd679[_0x2a5be3(0x1dc)][_0x3083fc]),_0x36c066=_0x36c066[_0x2a5be3(0x267)];}return{'modelFragment':_0x44512e,'anchorData':_0xadcafc};}[_0x15b221(0x2aa)](_0x439128,_0x321a1b,_0x238e55,_0x38615d,_0x5aeb3e){const _0x15466c=_0x15b221,_0x2ce2ac=this[_0x15466c(0x1e4)][_0x15466c(0x272)][_0x15466c(0x202)](_0x429298),_0x1d6b63=this[_0x15466c(0x1e4)][_0x15466c(0x272)][_0x15466c(0x202)](_0x48db54),_0x33ec22=this[_0x15466c(0x1e4)][_0x15466c(0x26e)][_0x15466c(0x1cd)][_0x15466c(0x254)],_0x3b0e5e=_0x2ce2ac[_0x15466c(0x27d)](_0x321a1b),_0x430958=this[_0x15466c(0x1e4)][_0x15466c(0x1ef)][_0x15466c(0x27b)][_0x15466c(0x24c)](_0x3b0e5e),_0x44d7e=this[_0x15466c(0x1e4)][_0x15466c(0x26e)][_0x15466c(0x1cd)][_0x15466c(0x22e)],_0x291817=[..._0x33ec22[_0x15466c(0x1f5)]()];let _0x12e754=this[_0x15466c(0x1e4)][_0x15466c(0x2a7)][_0x15466c(0x202)](_0x15466c(0x276))||[..._0x243ca7];this[_0x15466c(0x1e4)][_0x15466c(0x272)][_0x15466c(0x247)](_0x15466c(0x28c))||(_0x12e754=_0x12e754[_0x15466c(0x239)](_0x49dbe5=>_0x15466c(0x1f6)!=_0x49dbe5));const _0x5262d0=new _0x23c1c3(this[_0x15466c(0x1e4)][_0x15466c(0x274)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x15466c(0x211),'customView':this[_0x15466c(0x20b)]},'showUnchangedParts':!0x0,'availableActions':_0x12e754});return _0x1d6b63[_0x15466c(0x231)]({'index':0x3e8*Math[_0x15466c(0x2b1)]()%0x3e8,'title':_0x38615d,'icon':_0x5aeb3e||_0x388e77,'mainView':_0x5262d0,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':this[_0x15466c(0x1e4)][_0x15466c(0x272)][_0x15466c(0x247)](_0x15466c(0x28c)),'ranges':_0x291817}),this[_0x15466c(0x1f0)](_0x5262d0,_0x1d6b63),this[_0x15466c(0x29c)](_0x1d6b63,_0x15466c(0x1fc),()=>{const _0x4ff3eb=_0x15466c;this[_0x4ff3eb(0x288)](_0x321a1b,_0x238e55,!0x1);}),this[_0x15466c(0x29c)](_0x1d6b63,_0x15466c(0x1f6),()=>{const _0x3d738b=_0x15466c;this[_0x3d738b(0x288)](_0x321a1b,_0x238e55,!0x0);}),this[_0x15466c(0x29c)](_0x1d6b63,_0x15466c(0x20f),()=>{const _0x4ea494=_0x15466c;this[_0x4ea494(0x261)](),this[_0x4ea494(0x237)]();}),this[_0x15466c(0x29c)](_0x1d6b63,_0x15466c(0x226),()=>{const _0x1e8c5c=_0x15466c;if(this[_0x1e8c5c(0x1db)]&&this[_0x1e8c5c(0x1db)][_0x1e8c5c(0x1d5)][_0x1e8c5c(0x250)]>0x0){const _0x518aee=this[_0x1e8c5c(0x1db)][_0x1e8c5c(0x1d5)][this[_0x1e8c5c(0x1db)][_0x1e8c5c(0x1d5)][_0x1e8c5c(0x250)]-0x1],_0x4cc9e4=_0x518aee[_0x1e8c5c(0x2b0)][0x0];_0x4cc9e4&&_0x1e8c5c(0x207)===_0x4cc9e4[_0x1e8c5c(0x1ff)]&&_0x518aee[_0x1e8c5c(0x1d3)](0x0,_0x1e8c5c(0x219));}this[_0x1e8c5c(0x261)](),this[_0x1e8c5c(0x273)](),this[_0x1e8c5c(0x26a)](_0x1d6b63);}),this[_0x15466c(0x242)](_0x430958,_0x44d7e,_0x5262d0,_0x1d6b63,_0x439128);}[_0x15b221(0x24d)](_0x2e8144,_0x2507d6,_0x2197a3){const _0x3f3d8e=_0x15b221,_0x1349bc=this[_0x3f3d8e(0x1e4)][_0x3f3d8e(0x26e)][_0x3f3d8e(0x2a3)](_0x2507d6,_0x2197a3)[_0x3f3d8e(0x25b)](),_0xd1e712=_0x1349bc['is'](_0x3f3d8e(0x28e))?[]:_0x1349bc[_0x3f3d8e(0x266)]({'includeSelf':!0x0})[_0x3f3d8e(0x204)](0x1);if(_0xd1e712[_0x3f3d8e(0x250)]){const _0x31d811=_0xd1e712[_0x3f3d8e(0x229)](_0x4187b2=>_0x4187b2[_0x3f3d8e(0x285)](!0x1));for(let _0x260cc6=0x1;_0x260cc6<_0x31d811[_0x3f3d8e(0x250)];_0x260cc6++)_0x31d811[_0x260cc6-0x1][_0x3f3d8e(0x278)](_0x31d811[_0x260cc6]);return _0x31d811[_0x31d811[_0x3f3d8e(0x250)]-0x1][_0x3f3d8e(0x278)](_0x2e8144),new _0x55cafd(_0x31d811[0x0]);}return _0x2e8144;}async[_0x15b221(0x242)](_0xc2afda,_0x581c21,_0x2815ea,_0x300709,_0x413ba6){const _0xc7bb8a=_0x15b221,_0x41ed16=this[_0xc7bb8a(0x1e4)];this[_0xc7bb8a(0x23b)]={'action':_0x413ba6,'content':_0xc2afda,'version':_0x581c21,'mainView':_0x2815ea,'aiBalloon':_0x300709};const _0x147658=new _0x59c576({'connector':this[_0xc7bb8a(0x26b)],'editor':_0x41ed16,'content':_0xc2afda,'version':_0x581c21,..._0x413ba6});this[_0xc7bb8a(0x251)][_0xc7bb8a(0x28a)](_0x147658),_0x2815ea[_0xc7bb8a(0x1de)]();const _0x2d547d=(_0xde1181,_0x27baa7,_0x604ed5=!0x1,_0x1ca8d=_0xc7bb8a(0x2af))=>this[_0xc7bb8a(0x224)][_0xc7bb8a(0x23a)](async _0xc93104=>{const _0x413a45=_0xc7bb8a;try{const _0xe0eebb=_0xdf83de({'editor':_0x41ed16,'changeGroups':_0xde1181[_0x413a45(0x2b0)],'documentContextContent':_0xde1181[_0x413a45(0x1d1)],'showDiff':_0x604ed5,'trimUnchanged':!0x1});await _0x27baa7[_0x413a45(0x21e)]({'parts':_0xe0eebb,'renderingStrategy':_0x1ca8d,'abortSignal':_0xc93104});}catch(_0x4452be){if(this[_0x413a45(0x260)](_0x4452be))return;throw _0x4452be;}});this[_0xc7bb8a(0x1db)]['on'](_0xc7bb8a(0x20d),(_0x28ba92,_0x5d61ec)=>{const _0x159578=_0xc7bb8a;_0x2815ea[_0x159578(0x29b)](),_0x2d547d(_0x5d61ec,_0x2815ea)[_0x159578(0x1fe)](_0x4e424c=>{const _0x1cb3c2=_0x159578;this[_0x1cb3c2(0x260)](_0x4e424c)||(console[_0x1cb3c2(0x1d0)](_0x1cb3c2(0x1f2),_0x4e424c),this[_0x1cb3c2(0x22d)](_0x147658,_0x2815ea));});}),this[_0xc7bb8a(0x1db)]['on'](_0xc7bb8a(0x20c),(_0x3c97ce,_0x1fd93d)=>{const _0x440e64=_0xc7bb8a;_0x2d547d(_0x1fd93d,_0x2815ea)[_0x440e64(0x1fe)](_0x3e339e=>{const _0x4ff252=_0x440e64;this[_0x4ff252(0x260)](_0x3e339e)||(console[_0x4ff252(0x1d0)](_0x4ff252(0x27c),_0x3e339e),this[_0x4ff252(0x22d)](_0x147658,_0x2815ea));});}),this[_0xc7bb8a(0x1db)]['on'](_0xc7bb8a(0x28f),async()=>{const _0x7d5a06=_0xc7bb8a;try{await this[_0x7d5a06(0x234)](_0x2815ea,_0x300709),this[_0x7d5a06(0x1cf)]();}catch(_0x24d535){this[_0x7d5a06(0x260)](_0x24d535)||(console[_0x7d5a06(0x1d0)](_0x7d5a06(0x2b3),_0x24d535),this[_0x7d5a06(0x22d)](_0x147658,_0x2815ea));}}),this[_0xc7bb8a(0x29c)](_0x2815ea,_0xc7bb8a(0x25e),(_0xcab395,{showDiff:_0x14d543})=>{const _0x21b558=_0xc7bb8a;this[_0x21b558(0x230)]=_0x14d543;const _0x33f27c=this[_0x21b558(0x1db)][_0x21b558(0x1d5)][this[_0x21b558(0x1db)][_0x21b558(0x1d5)][_0x21b558(0x250)]-0x1];_0x33f27c&&_0x2d547d(_0x33f27c,_0x2815ea,_0x14d543,_0x21b558(0x2a5))[_0x21b558(0x1fe)](_0x4590c7=>{const _0x50ff6d=_0x21b558;this[_0x50ff6d(0x260)](_0x4590c7)||(console[_0x50ff6d(0x1d0)](_0x50ff6d(0x27f),_0x4590c7),this[_0x50ff6d(0x22d)](_0x147658,_0x2815ea));});}),this[_0xc7bb8a(0x1db)]['on'](_0xc7bb8a(0x1d6),(_0x1fb6e2,{reply:_0x576c3b})=>{const _0x5c68a1=_0xc7bb8a,_0x392819={'positiveCount':_0x576c3b[_0x5c68a1(0x2b0)][_0x5c68a1(0x239)](_0xd3f9cd=>_0x5c68a1(0x2a0)===_0xd3f9cd[_0x5c68a1(0x1ff)])[_0x5c68a1(0x250)],'totalCount':_0x576c3b[_0x5c68a1(0x2b0)][_0x5c68a1(0x250)]},_0x3c3858=this[_0x5c68a1(0x1db)][_0x5c68a1(0x291)],_0x3a64f7=this[_0x5c68a1(0x1db)][_0x5c68a1(0x1d7)];_0x3a64f7?this[_0x5c68a1(0x26b)][_0x5c68a1(0x222)](_0x3a64f7,_0x3c3858,_0x392819):this[_0x5c68a1(0x26b)][_0x5c68a1(0x25d)](_0x3c3858,_0x392819);}),this[_0xc7bb8a(0x1f0)](_0x2815ea,_0x300709);try{const _0x4c34df=await this[_0xc7bb8a(0x1db)][_0xc7bb8a(0x216)]();return this[_0xc7bb8a(0x1cf)](),_0x4c34df;}catch(_0xe61c0){if(this[_0xc7bb8a(0x260)](_0xe61c0))return;_0x2815ea[_0xc7bb8a(0x29b)](),this[_0xc7bb8a(0x22d)](_0x147658,_0x2815ea);}}[_0x15b221(0x288)](_0x5dd2fc,_0xf2be8,_0x204362){const _0x580269=_0x15b221,_0x3caf7d=this[_0x580269(0x1e4)];if(_0x204362&&!_0x3caf7d[_0x580269(0x272)][_0x580269(0x247)](_0x580269(0x28c)))throw new _0x4a76f8(_0x580269(0x1f8),null);const _0x3a0a75=this[_0x580269(0x1e4)][_0x580269(0x272)][_0x580269(0x202)](_0x1dc06f),_0x4d1fd5=this[_0x580269(0x1db)],_0x6a9f5b=this[_0x580269(0x1db)][_0x580269(0x1d5)][this[_0x580269(0x1db)][_0x580269(0x1d5)][_0x580269(0x250)]-0x1],_0x225d92=_0x6a9f5b[_0x580269(0x2b0)];_0x6a9f5b[_0x580269(0x1d3)](0x0,_0x580269(0x2a0));let _0x150dbd=_0x1f7354({'editor':_0x3caf7d,'reply':_0x6a9f5b,'interaction':_0x4d1fd5,'groups':_0x225d92,'transform':!0x1,'documentCompare':_0x3a0a75,'documentCompareOptions':{'anchor':_0x3caf7d[_0x580269(0x26e)][_0x580269(0x287)](_0x5dd2fc,0x0),'markDeletions':_0x204362}});_0x150dbd=this[_0x580269(0x275)](_0x150dbd,_0xf2be8);for(const _0x4850d3 of _0x150dbd)this[_0x580269(0x20e)](_0xf2be8,_0x4850d3,_0x3caf7d[_0x580269(0x26e)][_0x580269(0x1cd)][_0x580269(0x282)]());const _0x231864=_0x4d1fd5[_0x580269(0x2b2)]()[_0x580269(0x22e)],_0xe32c8f=_0x3caf7d[_0x580269(0x26e)][_0x580269(0x1cd)][_0x580269(0x1d8)][_0x580269(0x215)](_0x231864),_0x260e8f={'document':_0x3caf7d[_0x580269(0x26e)][_0x580269(0x1cd)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x3f53cc=_0x1e693f(_0x150dbd,_0xe32c8f,_0x260e8f)[_0x580269(0x218)];_0x3caf7d[_0x580269(0x26e)][_0x580269(0x258)](_0x2e8656=>{const _0x7d776e=_0x580269;if(_0x2e8656[_0x7d776e(0x286)](_0x3caf7d[_0x7d776e(0x26e)][_0x7d776e(0x1cd)][_0x7d776e(0x254)][_0x7d776e(0x21c)]),_0x204362)_0x3caf7d[_0x7d776e(0x272)][_0x7d776e(0x202)](_0x7d776e(0x227))[_0x7d776e(0x29a)](_0x3f53cc);else{for(const _0x384b9d of _0x3f53cc)_0x384b9d[_0x7d776e(0x283)]=_0x3caf7d[_0x7d776e(0x26e)][_0x7d776e(0x1cd)][_0x7d776e(0x22e)],_0x482421(_0x3caf7d,_0x384b9d),_0x2e8656[_0x7d776e(0x22a)][_0x7d776e(0x241)](_0x384b9d),_0x3caf7d[_0x7d776e(0x26e)][_0x7d776e(0x26f)](_0x384b9d);}}),this[_0x580269(0x1e4)][_0x580269(0x272)][_0x580269(0x202)](_0x580269(0x1da))[_0x580269(0x1f4)]();}[_0x15b221(0x275)](_0x279398,_0x1f9e80){const _0x5e3ca2=_0x15b221;return _0x279398[_0x5e3ca2(0x239)](_0x38a81f=>{const _0x480a1c=_0x5e3ca2;if(_0x480a1c(0x209)==_0x38a81f[_0x480a1c(0x255)]){const _0x1ad3fa=_0x38a81f[_0x480a1c(0x257)][_0x480a1c(0x27a)];return!_0x1f9e80[_0x480a1c(0x247)](_0x1ad3fa);}if(_0x38a81f[_0x480a1c(0x255)][_0x480a1c(0x210)](_0x480a1c(0x298))>-0x1){const _0x4a5365=_0x38a81f[_0x480a1c(0x1e8)][_0x480a1c(0x216)][_0x480a1c(0x27a)];return!_0x1f9e80[_0x480a1c(0x247)](_0x4a5365);}return!0x0;});}[_0x15b221(0x20e)](_0x5cbd2e,_0x1f8937,_0x538833){const _0x30c760=_0x15b221,_0x3191f5=_0x1f8937[_0x30c760(0x24a)]();for(const _0x2b8213 in _0x1f8937){const _0x6e27b3=_0x1f8937[_0x2b8213];_0x6e27b3 instanceof _0x295190?_0x1f8937[_0x2b8213]=new _0x295190(_0x1c0eb2(_0x6e27b3[_0x30c760(0x216)]),_0x1c0eb2(_0x6e27b3[_0x30c760(0x23e)])):_0x6e27b3 instanceof _0x21c5e8&&(_0x1f8937[_0x2b8213]=_0x1c0eb2(_0x6e27b3));}if([_0x30c760(0x297),_0x30c760(0x277),_0x30c760(0x233),_0x30c760(0x232),_0x30c760(0x2ac),_0x30c760(0x23c)][_0x30c760(0x1e9)](_0x3191f5[_0x30c760(0x255)])){if(_0x3191f5[_0x30c760(0x24b)]=!0x1,_0x3191f5[_0x30c760(0x283)]=null,_0x30c760(0x233)==_0x3191f5[_0x30c760(0x255)]){const _0x433268=_0x3191f5[_0x30c760(0x1fd)],_0x4b5e5a=_0x3191f5[_0x30c760(0x284)];new _0x376295(_0x433268,_0x4b5e5a)[_0x30c760(0x1f1)]();}else _0x3191f5[_0x30c760(0x1f1)]();}function _0x1c0eb2(_0x484c57){const _0x22617e=_0x30c760;if(_0x22617e(0x21b)==_0x484c57[_0x22617e(0x24f)][_0x22617e(0x1e5)])return _0x484c57;const _0x1e338a=[];let _0x8c8ff2=_0x484c57[_0x22617e(0x24f)];for(let _0x2650db=0x0;_0x2650db<_0x484c57[_0x22617e(0x1dc)][_0x22617e(0x250)];_0x2650db++){const _0x4b0bdb=_0x5cbd2e[_0x22617e(0x202)](_0x8c8ff2)||0x0;_0x1e338a[_0x2650db]=_0x484c57[_0x22617e(0x1dc)][_0x2650db]+_0x4b0bdb,_0x8c8ff2=_0x8c8ff2[_0x22617e(0x1dd)](_0x484c57[_0x22617e(0x1dc)][_0x2650db]);}return new _0x21c5e8(_0x538833,_0x1e338a,_0x484c57[_0x22617e(0x2ae)]);}}[_0x15b221(0x2ab)](){const _0x31b4bc=_0x15b221;if(!this[_0x31b4bc(0x23b)])return;this[_0x31b4bc(0x251)][_0x31b4bc(0x250)]>0x0&&this[_0x31b4bc(0x261)](),this[_0x31b4bc(0x225)]=0x0,this[_0x31b4bc(0x230)]=!0x1;const {action:_0x2bd160,content:_0x4b52cd,version:_0x216192,mainView:_0x1c59f7,aiBalloon:_0x4df61c}=this[_0x31b4bc(0x23b)];_0x1c59f7[_0x31b4bc(0x259)]=!0x1,_0x1c59f7[_0x31b4bc(0x1de)](),this[_0x31b4bc(0x29d)](_0x1c59f7,_0x4df61c);const _0x24dc2e=_0x1c59f7;_0x24dc2e[_0x31b4bc(0x26c)]&&_0x24dc2e[_0x31b4bc(0x26c)][_0x31b4bc(0x245)]&&_0x24dc2e[_0x31b4bc(0x26c)][_0x31b4bc(0x245)][_0x31b4bc(0x23d)]({'isOn':!0x1,'icon':_0x2d0637}),this[_0x31b4bc(0x205)](_0x1c59f7),_0x1c59f7[_0x31b4bc(0x1e1)](),this[_0x31b4bc(0x1cf)](),this[_0x31b4bc(0x242)](_0x4b52cd,_0x216192,_0x1c59f7,_0x4df61c,_0x2bd160)[_0x31b4bc(0x1fe)](_0x3e6e37=>{const _0x10591f=_0x31b4bc;this[_0x10591f(0x260)](_0x3e6e37)||console[_0x10591f(0x1d0)](_0x10591f(0x238),_0x3e6e37);});}[_0x15b221(0x205)](_0x5ea807){const _0x351e9e=_0x15b221,_0x1a234f=_0x5ea807[_0x351e9e(0x20a)][_0x351e9e(0x26d)];for(;_0x1a234f[_0x351e9e(0x250)]>0x0;)_0x1a234f[_0x351e9e(0x233)](_0x1a234f[_0x351e9e(0x1d9)]);_0x5ea807[_0x351e9e(0x20a)][_0x351e9e(0x220)]=!0x1;}[_0x15b221(0x260)](_0x53f941){const _0x5ab5ab=_0x15b221;return!!_0x53f941[_0x5ab5ab(0x271)]&&_0x53f941[_0x5ab5ab(0x271)][_0x5ab5ab(0x28b)](_0x5ab5ab(0x253));}[_0x15b221(0x273)](){const _0x1c9859=_0x15b221;this[_0x1c9859(0x251)]=[],this[_0x1c9859(0x23b)]=void 0x0,this[_0x1c9859(0x225)]=0x0,this[_0x1c9859(0x1cf)]();}[_0x15b221(0x261)](){const _0x1a85f4=_0x15b221;this[_0x1a85f4(0x1db)]&&this[_0x1a85f4(0x1db)][_0x1a85f4(0x1d2)](),this[_0x1a85f4(0x224)][_0x1a85f4(0x263)](),this[_0x1a85f4(0x1ed)]=!0x1;}[_0x15b221(0x252)](){const _0x103064=_0x15b221,_0x4893d7=new _0x1e3f61(this[_0x103064(0x1e4)][_0x103064(0x274)]),_0x35a9c6=new _0x1e3f61(this[_0x103064(0x1e4)][_0x103064(0x274)]),_0x5312b2=new _0x143fbc(this[_0x103064(0x1e4)][_0x103064(0x274)]),_0x39d0d0=new _0x1e3f61(this[_0x103064(0x1e4)][_0x103064(0x274)]);_0x4893d7[_0x103064(0x23d)]({'icon':_0x1ae2ba,'label':_0x21376e(this[_0x103064(0x1e4)][_0x103064(0x274)],_0x103064(0x281)),'tooltip':!0x0,'class':_0x103064(0x200)}),_0x35a9c6[_0x103064(0x23d)]({'icon':_0x382872,'tooltip':_0x21376e(this[_0x103064(0x1e4)][_0x103064(0x274)],_0x103064(0x1e3)),'class':_0x103064(0x270)}),_0x5312b2[_0x103064(0x264)]({'tag':_0x103064(0x2a2),'attributes':{'class':[_0x103064(0x1df)]},'children':[_0x103064(0x2ad)]}),_0x39d0d0[_0x103064(0x23d)]({'icon':_0x1b1148,'tooltip':_0x21376e(this[_0x103064(0x1e4)][_0x103064(0x274)],_0x103064(0x212)),'class':_0x103064(0x235)}),_0x4893d7[_0x103064(0x29f)](_0x103064(0x240))['to'](this,_0x103064(0x1ed),_0x32f8c8=>!_0x32f8c8),_0x4893d7['on'](_0x103064(0x248),()=>{const _0x1834ff=_0x103064;this[_0x1834ff(0x2ab)]();}),_0x35a9c6[_0x103064(0x29f)](_0x103064(0x240))['to'](this,_0x103064(0x1ed),_0x33c7c0=>!_0x33c7c0),_0x35a9c6['on'](_0x103064(0x248),()=>{const _0x1ad1be=_0x103064;this[_0x1ad1be(0x29e)]();}),_0x39d0d0[_0x103064(0x29f)](_0x103064(0x240))['to'](this,_0x103064(0x1ed),_0x5524a2=>!_0x5524a2),_0x39d0d0['on'](_0x103064(0x248),()=>{const _0x3aae78=_0x103064;this[_0x3aae78(0x28d)]();}),this[_0x103064(0x2a8)]=_0x35a9c6,this[_0x103064(0x214)]=_0x5312b2,this[_0x103064(0x25c)]=_0x39d0d0,this[_0x103064(0x20b)][_0x103064(0x27e)](_0x4893d7);}[_0x15b221(0x29e)](){const _0x285755=_0x15b221,_0x1e4541=this[_0x285755(0x251)][_0x285755(0x250)];this[_0x285755(0x225)]<_0x1e4541-0x1&&this[_0x285755(0x1f3)](this[_0x285755(0x225)]+0x1);}[_0x15b221(0x28d)](){const _0x38f423=_0x15b221;this[_0x38f423(0x225)]>0x0&&this[_0x38f423(0x1f3)](this[_0x38f423(0x225)]-0x1);}async[_0x15b221(0x1f3)](_0x470fa3){const _0x2b1aff=_0x15b221;if(!this[_0x2b1aff(0x23b)])return;this[_0x2b1aff(0x225)]=_0x470fa3;const {mainView:_0x5cb462}=this[_0x2b1aff(0x23b)],_0x149cd0=this[_0x2b1aff(0x251)][this[_0x2b1aff(0x251)][_0x2b1aff(0x250)]-0x1-this[_0x2b1aff(0x225)]];if(!_0x149cd0)return;if(_0x149cd0[_0x2b1aff(0x23f)])return this[_0x2b1aff(0x22d)](_0x149cd0,_0x5cb462),void this[_0x2b1aff(0x1cf)]();if(!_0x149cd0[_0x2b1aff(0x1d5)][_0x2b1aff(0x250)])return;_0x5cb462[_0x2b1aff(0x1de)](),this[_0x2b1aff(0x23b)]&&this[_0x2b1aff(0x29d)](_0x5cb462,this[_0x2b1aff(0x23b)][_0x2b1aff(0x1f9)]);const _0x3afff1=_0x149cd0[_0x2b1aff(0x1d5)][_0x149cd0[_0x2b1aff(0x1d5)][_0x2b1aff(0x250)]-0x1];if(_0x3afff1){const _0x10ca38=this[_0x2b1aff(0x1e4)];this[_0x2b1aff(0x205)](_0x5cb462);try{const _0x1e3edf=_0xdf83de({'editor':_0x10ca38,'changeGroups':_0x3afff1[_0x2b1aff(0x2b0)],'documentContextContent':_0x3afff1[_0x2b1aff(0x1d1)],'showDiff':this[_0x2b1aff(0x230)],'trimUnchanged':!0x1});this[_0x2b1aff(0x205)](_0x5cb462),await new Promise(_0x52a1ec=>setTimeout(_0x52a1ec,0x32)),await _0x5cb462[_0x2b1aff(0x21e)]({'parts':_0x1e3edf,'renderingStrategy':_0x2b1aff(0x2a5),'abortSignal':new AbortController()[_0x2b1aff(0x294)]});}catch(_0x582916){this[_0x2b1aff(0x260)](_0x582916)||console[_0x2b1aff(0x1d0)](_0x2b1aff(0x243),_0x582916);}}this[_0x2b1aff(0x1cf)]();}[_0x15b221(0x1cf)](){const _0x2d5ed8=_0x15b221;if(!this[_0x2d5ed8(0x2a8)]||!this[_0x2d5ed8(0x214)]||!this[_0x2d5ed8(0x25c)])return;const _0x57565c=this[_0x2d5ed8(0x251)][_0x2d5ed8(0x250)],_0x5405c6=_0x57565c>0x1,_0xff35c4=this[_0x2d5ed8(0x23b)]?.[_0x2d5ed8(0x269)];if(_0x5405c6){this[_0x2d5ed8(0x206)]||this[_0x2d5ed8(0x1e2)]||this[_0x2d5ed8(0x268)]||(this[_0x2d5ed8(0x20b)][_0x2d5ed8(0x27e)](this[_0x2d5ed8(0x2a8)]),_0xff35c4?.[_0x2d5ed8(0x25a)](this[_0x2d5ed8(0x2a8)]),this[_0x2d5ed8(0x206)]=!0x0,this[_0x2d5ed8(0x20b)][_0x2d5ed8(0x27e)](this[_0x2d5ed8(0x214)]),_0xff35c4?.[_0x2d5ed8(0x25a)](this[_0x2d5ed8(0x214)]),this[_0x2d5ed8(0x1e2)]=!0x0,this[_0x2d5ed8(0x20b)][_0x2d5ed8(0x27e)](this[_0x2d5ed8(0x25c)]),_0xff35c4?.[_0x2d5ed8(0x25a)](this[_0x2d5ed8(0x25c)]),this[_0x2d5ed8(0x268)]=!0x0);const _0x239fed=_0x57565c-this[_0x2d5ed8(0x225)];this[_0x2d5ed8(0x214)][_0x2d5ed8(0x293)]&&(this[_0x2d5ed8(0x214)][_0x2d5ed8(0x293)][_0x2d5ed8(0x299)]=_0x239fed+'/'+_0x57565c),this[_0x2d5ed8(0x2a8)][_0x2d5ed8(0x240)]=this[_0x2d5ed8(0x225)]<_0x57565c-0x1,this[_0x2d5ed8(0x25c)][_0x2d5ed8(0x240)]=this[_0x2d5ed8(0x225)]>0x0;}else(this[_0x2d5ed8(0x206)]||this[_0x2d5ed8(0x1e2)]||this[_0x2d5ed8(0x268)])&&(this[_0x2d5ed8(0x20b)][_0x2d5ed8(0x233)](this[_0x2d5ed8(0x2a8)]),_0xff35c4?.[_0x2d5ed8(0x289)](this[_0x2d5ed8(0x2a8)]),this[_0x2d5ed8(0x206)]=!0x1,this[_0x2d5ed8(0x20b)][_0x2d5ed8(0x233)](this[_0x2d5ed8(0x214)]),_0xff35c4?.[_0x2d5ed8(0x289)](this[_0x2d5ed8(0x214)]),this[_0x2d5ed8(0x1e2)]=!0x1,this[_0x2d5ed8(0x20b)][_0x2d5ed8(0x233)](this[_0x2d5ed8(0x25c)]),_0xff35c4?.[_0x2d5ed8(0x289)](this[_0x2d5ed8(0x25c)]),this[_0x2d5ed8(0x268)]=!0x1);}[_0x15b221(0x1f0)](_0x4165ef,_0x4d0d1){const _0x4e440b=_0x15b221;_0x4165ef[_0x4e440b(0x2a9)](),_0x4d0d1[_0x4e440b(0x1d4)][_0x4e440b(0x2a9)](),this[_0x4e440b(0x1ed)]=!0x0;}async[_0x15b221(0x22d)](_0x2a3195,_0x182fec){const _0x4f340a=_0x15b221,_0xb1b15=_0x21376e(this[_0x4f340a(0x1e4)][_0x4f340a(0x274)],_0x4f340a(0x25f));_0x182fec[_0x4f340a(0x21d)](_0xb1b15),_0x2a3195[_0x4f340a(0x23f)]=!0x0,await this[_0x4f340a(0x224)][_0x4f340a(0x2a4)],_0x182fec[_0x4f340a(0x24e)](),this[_0x4f340a(0x23b)]?.[_0x4f340a(0x1f9)][_0x4f340a(0x1d4)][_0x4f340a(0x292)]&&(this[_0x4f340a(0x23b)][_0x4f340a(0x1f9)][_0x4f340a(0x1d4)][_0x4f340a(0x292)][_0x4f340a(0x21f)]=!0x0);}[_0x15b221(0x29d)](_0x888018,_0x211187){const _0x14b096=_0x15b221;_0x888018[_0x14b096(0x221)](),_0x211187[_0x14b096(0x1d4)][_0x14b096(0x292)]&&(_0x211187[_0x14b096(0x1d4)][_0x14b096(0x292)][_0x14b096(0x21f)]=!0x1);}async[_0x15b221(0x234)](_0x4df778,_0x64caf8){const _0x481287=_0x15b221;await this[_0x481287(0x224)][_0x481287(0x2a4)],this[_0x481287(0x1ed)]=!0x1,_0x4df778[_0x481287(0x1e0)](),_0x64caf8[_0x481287(0x1d4)][_0x481287(0x1e0)]();}[_0x15b221(0x237)](){const _0x3f6708=_0x15b221;this[_0x3f6708(0x20b)][_0x3f6708(0x1eb)](_0x543ad2=>{const _0xcb3f95=_0x3f6708;_0xcb3f95(0x240)in _0x543ad2&&(_0x543ad2[_0xcb3f95(0x240)]=!0x1);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x45146d=_0x388a;function _0x4bfa(){const _0x9d385b=['actionName','replies','args','createReply','replyCreated','679956cdhCji','175255fIXGMo','connector','4650464TGigZC','20KciqDd','fire','916920QzMtNQ','userMessage','executeAction','delegate','sendRequest','model','editor','executeCustomAction','TEXT','hasError','2871724GoOGSx','719526osfUyz','html','version','15885288HRiHXl','push','Current\x20document','4osjCgd','current-document','content','getDocumentContext'];_0x4bfa=function(){return _0x9d385b;};return _0x4bfa();}(function(_0x1058d9,_0xf6e433){const _0x3fcb02=_0x388a,_0x265d7a=_0x1058d9();while(!![]){try{const _0x24864e=-parseInt(_0x3fcb02(0x1b8))/0x1+parseInt(_0x3fcb02(0x1a7))/0x2+parseInt(_0x3fcb02(0x1b7))/0x3*(parseInt(_0x3fcb02(0x1ae))/0x4)+-parseInt(_0x3fcb02(0x1bb))/0x5*(-parseInt(_0x3fcb02(0x1a8))/0x6)+parseInt(_0x3fcb02(0x1ba))/0x7+parseInt(_0x3fcb02(0x1bd))/0x8+-parseInt(_0x3fcb02(0x1ab))/0x9;if(_0x24864e===_0xf6e433)break;else _0x265d7a['push'](_0x265d7a['shift']());}catch(_0x34d3f5){_0x265d7a['push'](_0x265d7a['shift']());}}}(_0x4bfa,0xef78e));import{AIInteraction as _0x3243b3,AI_MODEL_EVENT_NAMES as _0x395446}from'../../aicore/model/aiinteraction.js';function _0x388a(_0x32582b,_0x151ff6){const _0x4bfa65=_0x4bfa();return _0x388a=function(_0x388a5a,_0x10d821){_0x388a5a=_0x388a5a-0x1a1;let _0x92ece1=_0x4bfa65[_0x388a5a];return _0x92ece1;},_0x388a(_0x32582b,_0x151ff6);}import{AIContextItemType as _0x40fa98}from'../../aicore/model/aicontext.js';import{AIActionsReply as _0x456d0d}from'./aiactionsreply.js';export class AIActionsInteraction extends _0x3243b3{[_0x45146d(0x1b0)];[_0x45146d(0x1aa)];[_0x45146d(0x1b2)];[_0x45146d(0x1b4)];[_0x45146d(0x1be)];[_0x45146d(0x1a2)];[_0x45146d(0x1a6)]=!0x1;constructor(_0x348849){const _0x3ca383=_0x45146d;super(_0x348849),this[_0x3ca383(0x1b0)]=_0x348849[_0x3ca383(0x1b0)],this[_0x3ca383(0x1aa)]=_0x348849[_0x3ca383(0x1aa)],this[_0x3ca383(0x1b2)]=_0x348849[_0x3ca383(0x1b2)],this[_0x3ca383(0x1b4)]=_0x348849[_0x3ca383(0x1b4)],this[_0x3ca383(0x1be)]=_0x348849[_0x3ca383(0x1be)],this[_0x3ca383(0x1a2)]=_0x348849[_0x3ca383(0x1a2)];}async[_0x45146d(0x1a1)](){const _0xd03c43=_0x45146d;return this[_0xd03c43(0x1b2)]?this[_0xd03c43(0x1b9)][_0xd03c43(0x1bf)]({'content':this[_0xd03c43(0x1b0)],'actionName':this[_0xd03c43(0x1b2)],'args':this[_0xd03c43(0x1b4)]}):this[_0xd03c43(0x1b9)][_0xd03c43(0x1a4)]({'content':this[_0xd03c43(0x1b0)],'message':this[_0xd03c43(0x1be)],'model':this[_0xd03c43(0x1a2)],'outputFormat':_0xd03c43(0x1a9)});}[_0x45146d(0x1b1)](){const _0x56dd80=_0x45146d;return{'type':_0x40fa98[_0x56dd80(0x1a5)],'content':this[_0x56dd80(0x1b0)],'version':this[_0x56dd80(0x1aa)],'label':_0x56dd80(0x1ad),'uiId':_0x56dd80(0x1af)};}[_0x45146d(0x1b5)](_0x58dc38){const _0x4f8d11=_0x45146d,_0x407fe6=new _0x456d0d({'editor':this[_0x4f8d11(0x1a3)],'documentContextContent':this[_0x4f8d11(0x1b0)],..._0x58dc38});return this[_0x4f8d11(0x1b3)][_0x4f8d11(0x1ac)](_0x407fe6),_0x407fe6[_0x4f8d11(0x1c0)](..._0x395446)['to'](this),this[_0x4f8d11(0x1bc)](_0x4f8d11(0x1b6),_0x407fe6),_0x407fe6;}}
23
+ function _0x4f4e(_0x9ae8a9,_0x50069f){const _0x1bf867=_0x1bf8();return _0x4f4e=function(_0x4f4ede,_0x1a0ab7){_0x4f4ede=_0x4f4ede-0x1b2;let _0x194079=_0x1bf867[_0x4f4ede];return _0x194079;},_0x4f4e(_0x9ae8a9,_0x50069f);}const _0xea19cb=_0x4f4e;(function(_0x4f8343,_0x570588){const _0x55a90a=_0x4f4e,_0x4a3a9c=_0x4f8343();while(!![]){try{const _0x56bfcb=-parseInt(_0x55a90a(0x1cc))/0x1+parseInt(_0x55a90a(0x1b8))/0x2*(parseInt(_0x55a90a(0x1d0))/0x3)+parseInt(_0x55a90a(0x1ca))/0x4*(-parseInt(_0x55a90a(0x1b6))/0x5)+parseInt(_0x55a90a(0x1cd))/0x6*(-parseInt(_0x55a90a(0x1b5))/0x7)+parseInt(_0x55a90a(0x1b2))/0x8+-parseInt(_0x55a90a(0x1c5))/0x9+parseInt(_0x55a90a(0x1bb))/0xa;if(_0x56bfcb===_0x570588)break;else _0x4a3a9c['push'](_0x4a3a9c['shift']());}catch(_0x33f886){_0x4a3a9c['push'](_0x4a3a9c['shift']());}}}(_0x1bf8,0x9fce0));import{AIInteraction as _0xba0f32,AI_MODEL_EVENT_NAMES as _0x477059}from'../../aicore/model/aiinteraction.js';function _0x1bf8(){const _0x3209c3=['push','10674620zJyAfE','replyCreated','args','version','getDocumentContext','executeAction','content','current-document','hasError','fire','1053783IkppCk','createReply','userMessage','delegate','html','2379812aEierd','editor','518670knZtKn','66qLtXol','executeCustomAction','Current\x20document','15981zQRCZc','sendRequest','connector','6672192VGUWoH','replies','TEXT','20489qNviis','5ecZWvf','actionName','6FJreds','model'];_0x1bf8=function(){return _0x3209c3;};return _0x1bf8();}import{AIContextItemType as _0x2f5d57}from'../../aicore/model/aicontext.js';import{AIActionsReply as _0x508b7a}from'./aiactionsreply.js';export class AIActionsInteraction extends _0xba0f32{[_0xea19cb(0x1c1)];[_0xea19cb(0x1be)];[_0xea19cb(0x1b7)];[_0xea19cb(0x1bd)];[_0xea19cb(0x1c7)];[_0xea19cb(0x1b9)];[_0xea19cb(0x1c3)]=!0x1;constructor(_0x34250c){const _0x7ebabd=_0xea19cb;super(_0x34250c),this[_0x7ebabd(0x1c1)]=_0x34250c[_0x7ebabd(0x1c1)],this[_0x7ebabd(0x1be)]=_0x34250c[_0x7ebabd(0x1be)],this[_0x7ebabd(0x1b7)]=_0x34250c[_0x7ebabd(0x1b7)],this[_0x7ebabd(0x1bd)]=_0x34250c[_0x7ebabd(0x1bd)],this[_0x7ebabd(0x1c7)]=_0x34250c[_0x7ebabd(0x1c7)],this[_0x7ebabd(0x1b9)]=_0x34250c[_0x7ebabd(0x1b9)];}async[_0xea19cb(0x1d1)](){const _0x1be29d=_0xea19cb;return this[_0x1be29d(0x1b7)]?this[_0x1be29d(0x1d2)][_0x1be29d(0x1c0)]({'content':this[_0x1be29d(0x1c1)],'actionName':this[_0x1be29d(0x1b7)],'args':this[_0x1be29d(0x1bd)]}):this[_0x1be29d(0x1d2)][_0x1be29d(0x1ce)]({'content':this[_0x1be29d(0x1c1)],'message':this[_0x1be29d(0x1c7)],'model':this[_0x1be29d(0x1b9)],'outputFormat':_0x1be29d(0x1c9)});}[_0xea19cb(0x1bf)](){const _0x4dcce6=_0xea19cb;return{'type':_0x2f5d57[_0x4dcce6(0x1b4)],'content':this[_0x4dcce6(0x1c1)],'version':this[_0x4dcce6(0x1be)],'label':_0x4dcce6(0x1cf),'uiId':_0x4dcce6(0x1c2)};}[_0xea19cb(0x1c6)](_0x26255d){const _0x3b5ffa=_0xea19cb,_0x1004b3=new _0x508b7a({'editor':this[_0x3b5ffa(0x1cb)],'documentContextContent':this[_0x3b5ffa(0x1c1)],..._0x26255d});return this[_0x3b5ffa(0x1b3)][_0x3b5ffa(0x1ba)](_0x1004b3),_0x1004b3[_0x3b5ffa(0x1c8)](..._0x477059)['to'](this),this[_0x3b5ffa(0x1c4)](_0x3b5ffa(0x1bc),_0x1004b3),_0x1004b3;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1026b4=_0x436b;function _0x436b(_0x315c05,_0x2abe6a){const _0x3b4f70=_0x3b4f();return _0x436b=function(_0x436bef,_0x286d57){_0x436bef=_0x436bef-0xcf;let _0x1e867d=_0x3b4f70[_0x436bef];return _0x1e867d;},_0x436b(_0x315c05,_0x2abe6a);}(function(_0x2c0a26,_0x147513){const _0x17c0d1=_0x436b,_0xda083b=_0x2c0a26();while(!![]){try{const _0x3156a3=-parseInt(_0x17c0d1(0xd2))/0x1*(-parseInt(_0x17c0d1(0xd5))/0x2)+-parseInt(_0x17c0d1(0xcf))/0x3+-parseInt(_0x17c0d1(0xd8))/0x4+parseInt(_0x17c0d1(0xd7))/0x5+-parseInt(_0x17c0d1(0xd4))/0x6*(-parseInt(_0x17c0d1(0xe0))/0x7)+parseInt(_0x17c0d1(0xdd))/0x8*(-parseInt(_0x17c0d1(0xd6))/0x9)+parseInt(_0x17c0d1(0xe4))/0xa*(-parseInt(_0x17c0d1(0xe2))/0xb);if(_0x3156a3===_0x147513)break;else _0xda083b['push'](_0xda083b['shift']());}catch(_0xf358c5){_0xda083b['push'](_0xda083b['shift']());}}}(_0x3b4f,0xc2f83));import{AIReply as _0x3a3bfe}from'../../aicore/model/aireply.js';import{getAttribute as _0x2e86b5}from'../../aicore/utils/htmlparser.js';import{uid as _0x1d24b3}from'ckeditor5/src/utils.js';import{diffArrays as _0x397773}from'diff';export class AIActionsReply extends _0x3a3bfe{[_0x1026b4(0xde)](){const _0x38d8e6=_0x1026b4;if(this[_0x38d8e6(0xd3)]=this[_0x38d8e6(0xdf)][_0x38d8e6(0xeb)](!0x0),0x0==this[_0x38d8e6(0xd3)][_0x38d8e6(0xec)][_0x38d8e6(0xdb)])return void(this[_0x38d8e6(0xd0)]=[]);const _0x51d7db=this[_0x38d8e6(0xda)][_0x38d8e6(0xee)][_0x38d8e6(0xe3)](_0x5cfe7d=>({'node':_0x5cfe7d,'id':_0x2e86b5(_0x5cfe7d,_0x38d8e6(0xd1))})),_0x2ec2f9=this[_0x38d8e6(0xd3)][_0x38d8e6(0xee)][_0x38d8e6(0xe3)](_0x493c8a=>({'node':_0x493c8a,'id':_0x2e86b5(_0x493c8a,_0x38d8e6(0xd1))||_0x1d24b3()})),_0x5aa856=_0x397773(_0x51d7db,_0x2ec2f9,{'comparator':(_0x7520b,_0x114c5c)=>_0x7520b['id']==_0x114c5c['id'],'oneChangePerToken':!0x0});if(!this[_0x38d8e6(0xe6)]){for(;_0x5aa856[_0x38d8e6(0xdb)]&&_0x5aa856[_0x5aa856[_0x38d8e6(0xdb)]-0x1][_0x38d8e6(0xd9)];)_0x5aa856[_0x38d8e6(0xe7)]();}const _0x467865=_0x5aa856[_0x38d8e6(0xe3)](_0x45cf25=>{const _0x17cc7f=_0x38d8e6,_0x108a27=_0x45cf25[_0x17cc7f(0xe5)]?_0x17cc7f(0xea):_0x45cf25[_0x17cc7f(0xd9)]?_0x17cc7f(0xd9):_0x17cc7f(0xe9);return{'node':_0x45cf25[_0x17cc7f(0xe1)][0x0][_0x17cc7f(0xe8)],'type':_0x108a27,'id':_0x45cf25[_0x17cc7f(0xe1)][0x0]['id']};});this[_0x38d8e6(0xd0)]=[{'changes':_0x467865,'state':_0x38d8e6(0xdc),'index':0x0}];}[_0x1026b4(0xed)](_0x1281bf,_0x1d56de){return _0x1d56de;}}function _0x3b4f(){const _0x17a84a=['updateChangeGroups','parsedContent','7MrKWKS','value','121HPXqRM','map','1331530uObtZR','added','isDone','pop','node','modified','new','cloneNode','childNodes','_getDifferentChangeGroups','children','3731271FsesRg','changeGroups','data-id','787UUcPVk','parsedMergedContent','7613406BZiQFZ','4058LQMCre','362790rKenmj','4279655KmDlto','374760FhxfNv','removed','documentContextContent','length','pending','24GKFQDG'];_0x3b4f=function(){return _0x17a84a;};return _0x3b4f();}
23
+ const _0x3dd8f1=_0x2a43;(function(_0x4338d8,_0x581d3b){const _0x45f6ca=_0x2a43,_0x343ea2=_0x4338d8();while(!![]){try{const _0x3a2036=-parseInt(_0x45f6ca(0xf4))/0x1*(parseInt(_0x45f6ca(0xf7))/0x2)+parseInt(_0x45f6ca(0xf2))/0x3*(parseInt(_0x45f6ca(0xeb))/0x4)+parseInt(_0x45f6ca(0xee))/0x5+-parseInt(_0x45f6ca(0xe6))/0x6*(parseInt(_0x45f6ca(0xe7))/0x7)+parseInt(_0x45f6ca(0xe8))/0x8+-parseInt(_0x45f6ca(0xea))/0x9+-parseInt(_0x45f6ca(0xe0))/0xa*(-parseInt(_0x45f6ca(0xf6))/0xb);if(_0x3a2036===_0x581d3b)break;else _0x343ea2['push'](_0x343ea2['shift']());}catch(_0x41ea70){_0x343ea2['push'](_0x343ea2['shift']());}}}(_0x337e,0xe8b42));import{AIReply as _0x587a53}from'../../aicore/model/aireply.js';function _0x2a43(_0x11692b,_0xdfa3b3){const _0x337e3e=_0x337e();return _0x2a43=function(_0x2a4355,_0x450e9f){_0x2a4355=_0x2a4355-0xda;let _0x11c50a=_0x337e3e[_0x2a4355];return _0x11c50a;},_0x2a43(_0x11692b,_0xdfa3b3);}import{getAttribute as _0x297fe3}from'../../aicore/utils/htmlparser.js';import{uid as _0x27c870}from'ckeditor5/src/utils.js';import{diffArrays as _0x36c8b2}from'diff';export class AIActionsReply extends _0x587a53{[_0x3dd8f1(0xf5)](){const _0x5721ea=_0x3dd8f1;if(this[_0x5721ea(0xf8)]=this[_0x5721ea(0xda)][_0x5721ea(0xf3)](!0x0),0x0==this[_0x5721ea(0xf8)][_0x5721ea(0xef)][_0x5721ea(0xe9)])return void(this[_0x5721ea(0xdc)]=[]);const _0x5b5229=this[_0x5721ea(0xdd)][_0x5721ea(0xf9)][_0x5721ea(0xe3)](_0x3d2b53=>({'node':_0x3d2b53,'id':_0x297fe3(_0x3d2b53,_0x5721ea(0xdf))})),_0x377bad=this[_0x5721ea(0xf8)][_0x5721ea(0xf9)][_0x5721ea(0xe3)](_0x12f7bf=>({'node':_0x12f7bf,'id':_0x297fe3(_0x12f7bf,_0x5721ea(0xdf))||_0x27c870()})),_0x5caafa=_0x36c8b2(_0x5b5229,_0x377bad,{'comparator':(_0x2652ee,_0xb00a01)=>_0x2652ee['id']==_0xb00a01['id'],'oneChangePerToken':!0x0});if(!this[_0x5721ea(0xe5)]){for(;_0x5caafa[_0x5721ea(0xe9)]&&_0x5caafa[_0x5caafa[_0x5721ea(0xe9)]-0x1][_0x5721ea(0xe1)];)_0x5caafa[_0x5721ea(0xf0)]();}const _0xf8ff5f=_0x5caafa[_0x5721ea(0xe3)](_0x18490f=>{const _0x5f2c66=_0x5721ea,_0x56a537=_0x18490f[_0x5f2c66(0xdb)]?_0x5f2c66(0xf1):_0x18490f[_0x5f2c66(0xe1)]?_0x5f2c66(0xe1):_0x5f2c66(0xde);return{'node':_0x18490f[_0x5f2c66(0xe2)][0x0][_0x5f2c66(0xe4)],'type':_0x56a537,'id':_0x18490f[_0x5f2c66(0xe2)][0x0]['id']};});this[_0x5721ea(0xdc)]=[{'changes':_0xf8ff5f,'state':_0x5721ea(0xed),'index':0x0}];}[_0x3dd8f1(0xec)](_0x21f408,_0x497348){return _0x497348;}}function _0x337e(){const _0x520ddd=['7872360HKVmHp','childNodes','pop','new','20529mGiegO','cloneNode','1tLMCIO','updateChangeGroups','11EwYVxk','172644PaFgPr','parsedMergedContent','children','parsedContent','added','changeGroups','documentContextContent','modified','data-id','21742220NXensM','removed','value','map','node','isDone','8951862KazPIl','7NrTNWG','398152UYFwnj','length','17007507fkmwZK','364iWCbSJ','_getDifferentChangeGroups','pending'];_0x337e=function(){return _0x520ddd;};return _0x337e();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x47e167=_0xc192;function _0x4609(){var _0x4db4cb=['318xLMawY','isPremiumPlugin','textAdapter','1328153SbZdkn','112206UlnbZq','isOfficialPlugin','81AdScRB','name','4111248aRmGhD','805365PqRzDD','54gkinnz','pluginName','4157996ripmzh','afterInit','AIRequestError','38773yQicll','aiadapter-text-adapter-not-set','AIAdapter','3450890cRtjfR'];_0x4609=function(){return _0x4db4cb;};return _0x4609();}(function(_0x4e3440,_0x677c08){var _0x4fb5c3=_0xc192,_0x3df902=_0x4e3440();while(!![]){try{var _0x23c5e6=-parseInt(_0x4fb5c3(0x86))/0x1+-parseInt(_0x4fb5c3(0x87))/0x2*(parseInt(_0x4fb5c3(0x89))/0x3)+parseInt(_0x4fb5c3(0x8f))/0x4+-parseInt(_0x4fb5c3(0x8c))/0x5+parseInt(_0x4fb5c3(0x96))/0x6*(parseInt(_0x4fb5c3(0x92))/0x7)+parseInt(_0x4fb5c3(0x8b))/0x8+parseInt(_0x4fb5c3(0x8d))/0x9*(parseInt(_0x4fb5c3(0x95))/0xa);if(_0x23c5e6===_0x677c08)break;else _0x3df902['push'](_0x3df902['shift']());}catch(_0x396ffe){_0x3df902['push'](_0x3df902['shift']());}}}(_0x4609,0xdf05b));import{Plugin as _0x685e84}from'ckeditor5/src/core.js';function _0xc192(_0xab3c20,_0x11af4d){var _0x460986=_0x4609();return _0xc192=function(_0xc19271,_0x194aca){_0xc19271=_0xc19271-0x85;var _0x225c98=_0x460986[_0xc19271];return _0x225c98;},_0xc192(_0xab3c20,_0x11af4d);}import{CKEditorError as _0x2bfb2b}from'ckeditor5/src/utils.js';export class AIAdapter extends _0x685e84{static get[_0x47e167(0x8e)](){var _0x265e25=_0x47e167;return _0x265e25(0x94);}static get[_0x47e167(0x88)](){return!0x0;}static get[_0x47e167(0x97)](){return!0x0;}[_0x47e167(0x90)](){var _0x5e9485=_0x47e167;if(!this[_0x5e9485(0x85)])throw new _0x2bfb2b(_0x5e9485(0x93),null);}}export class AIRequestError extends Error{constructor(_0x5a60c4){var _0x397f52=_0x47e167;super(_0x5a60c4),this[_0x397f52(0x8a)]=_0x397f52(0x91);}}
23
+ var _0x1a4aff=_0x5b4f;(function(_0x4d1cbe,_0x3b7eec){var _0x1fa69a=_0x5b4f,_0x40a32c=_0x4d1cbe();while(!![]){try{var _0xc0c84a=parseInt(_0x1fa69a(0x78))/0x1+-parseInt(_0x1fa69a(0x7b))/0x2+-parseInt(_0x1fa69a(0x7f))/0x3*(-parseInt(_0x1fa69a(0x7e))/0x4)+parseInt(_0x1fa69a(0x7c))/0x5+-parseInt(_0x1fa69a(0x89))/0x6+-parseInt(_0x1fa69a(0x80))/0x7*(parseInt(_0x1fa69a(0x86))/0x8)+-parseInt(_0x1fa69a(0x79))/0x9*(-parseInt(_0x1fa69a(0x7a))/0xa);if(_0xc0c84a===_0x3b7eec)break;else _0x40a32c['push'](_0x40a32c['shift']());}catch(_0x166c16){_0x40a32c['push'](_0x40a32c['shift']());}}}(_0x4162,0xb8c0f));import{Plugin as _0x2abb8b}from'ckeditor5/src/core.js';import{CKEditorError as _0x342317}from'ckeditor5/src/utils.js';function _0x5b4f(_0x5e5da9,_0x7032f0){var _0x4162cc=_0x4162();return _0x5b4f=function(_0x5b4f07,_0x445297){_0x5b4f07=_0x5b4f07-0x77;var _0x5b181e=_0x4162cc[_0x5b4f07];return _0x5b181e;},_0x5b4f(_0x5e5da9,_0x7032f0);}function _0x4162(){var _0x54d71e=['afterInit','31448WWryBc','aiadapter-text-adapter-not-set','isPremiumPlugin','7831254gdSVQx','textAdapter','1276rNoSpm','1109151NqwXqe','210WEetQF','2097062IjPByA','4165125blxLPj','AIAdapter','64doSTan','212034IdzvMl','2569yBKXbG','isOfficialPlugin','pluginName','name','AIRequestError'];_0x4162=function(){return _0x54d71e;};return _0x4162();}export class AIAdapter extends _0x2abb8b{static get[_0x1a4aff(0x82)](){var _0xc70ee4=_0x1a4aff;return _0xc70ee4(0x7d);}static get[_0x1a4aff(0x81)](){return!0x0;}static get[_0x1a4aff(0x88)](){return!0x0;}[_0x1a4aff(0x85)](){var _0x51c1bd=_0x1a4aff;if(!this[_0x51c1bd(0x77)])throw new _0x342317(_0x51c1bd(0x87),null);}}export class AIRequestError extends Error{constructor(_0x533ad2){var _0x188a74=_0x1a4aff;super(_0x533ad2),this[_0x188a74(0x83)]=_0x188a74(0x84);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x242809=_0x6bd7;(function(_0x499f57,_0xe00ee2){const _0x4e8fb2=_0x6bd7,_0x4cffb2=_0x499f57();while(!![]){try{const _0x499720=-parseInt(_0x4e8fb2(0x123))/0x1*(-parseInt(_0x4e8fb2(0x121))/0x2)+-parseInt(_0x4e8fb2(0x130))/0x3*(-parseInt(_0x4e8fb2(0x13a))/0x4)+-parseInt(_0x4e8fb2(0x128))/0x5+parseInt(_0x4e8fb2(0x139))/0x6*(-parseInt(_0x4e8fb2(0x124))/0x7)+-parseInt(_0x4e8fb2(0x11f))/0x8+parseInt(_0x4e8fb2(0x127))/0x9+parseInt(_0x4e8fb2(0x137))/0xa;if(_0x499720===_0xe00ee2)break;else _0x4cffb2['push'](_0x4cffb2['shift']());}catch(_0x4738ce){_0x4cffb2['push'](_0x4cffb2['shift']());}}}(_0x40a4,0xbf777));import{Plugin as _0x49d9cb}from'ckeditor5/src/core.js';import{CKEditorError as _0x52f459}from'ckeditor5/src/utils.js';import{AIAdapter as _0xaca1ce,AIRequestError as _0x3a78c6}from'./aiadapter.js';function _0x40a4(){const _0x1c2cb9=['get','1ARVsuZ','7xcTbyA','sendRequest','init','1938591XWOWVK','5457305fuMSWQ','aborted','AI_ERROR_GET_PARAMETERS','locale','name','resolve','makeRequest','signal','3lZDYLh','AI_ERROR_GET_HEADERS','abort','error','textAdapter','reject','object','20706090OWidas','application/json','7253478aLXWDN','5899292docjTD','abortController','catch','editor','_prepareRequestParameters','aitextadapter-send-request-failed','AbortError','_prepareRequestHeaders','requires','assign','8718592fSAEOz','plugins','827228EUBNDl'];_0x40a4=function(){return _0x1c2cb9;};return _0x40a4();}import{getTranslation as _0x2afca2}from'../utils/common-translations.js';function _0x6bd7(_0x46684d,_0x4f6fd8){const _0x40a470=_0x40a4();return _0x6bd7=function(_0x6bd77,_0x347e9f){_0x6bd77=_0x6bd77-0x11c;let _0x1ff9d2=_0x40a470[_0x6bd77];return _0x1ff9d2;},_0x6bd7(_0x46684d,_0x4f6fd8);}export class AITextAdapter extends _0x49d9cb{[_0x242809(0x13b)];static get[_0x242809(0x11d)](){return[_0xaca1ce];}constructor(_0x482c5c){const _0x189310=_0x242809;super(_0x482c5c),this[_0x189310(0x13b)]=new AbortController();}[_0x242809(0x126)](){const _0x18c68e=_0x242809;this[_0x18c68e(0x13d)][_0x18c68e(0x120)][_0x18c68e(0x122)](_0xaca1ce)[_0x18c68e(0x134)]=this;}[_0x242809(0x132)](){const _0x1fce32=_0x242809;this[_0x1fce32(0x13b)][_0x1fce32(0x12f)][_0x1fce32(0x129)]||(this[_0x1fce32(0x13b)][_0x1fce32(0x132)](),this[_0x1fce32(0x13b)]=new AbortController());}async[_0x242809(0x12e)](_0x4943af){const _0x421d01=_0x242809;return this[_0x421d01(0x125)](_0x4943af)[_0x421d01(0x13c)](_0xa00bc8=>{const _0x36919b=_0x421d01;if(_0xa00bc8 instanceof _0x3a78c6)return Promise[_0x36919b(0x135)](_0xa00bc8);if(_0x36919b(0x140)==_0xa00bc8[_0x36919b(0x12c)])return Promise[_0x36919b(0x12d)]();throw console[_0x36919b(0x133)](_0xa00bc8),new _0x52f459(_0x36919b(0x13f),null);});}async[_0x242809(0x11c)](_0x4e7417,_0x3896b8){const _0x203383=_0x242809,_0x422743=this[_0x203383(0x13d)][_0x203383(0x12b)],_0x192e69={'Content-Type':_0x203383(0x138)};if(_0x203383(0x136)==typeof _0x4e7417)Object[_0x203383(0x11e)](_0x192e69,_0x4e7417);else{if(_0x4e7417)try{const _0x2b2a08=await _0x4e7417(_0x3896b8);Object[_0x203383(0x11e)](_0x192e69,_0x2b2a08);}catch{return Promise[_0x203383(0x135)](new _0x3a78c6(_0x2afca2(_0x422743,_0x203383(0x131))));}}return _0x192e69;}async[_0x242809(0x13e)](_0x5bbed4,_0x3853cb){const _0x22da74=_0x242809,_0x31d5b5=this[_0x22da74(0x13d)][_0x22da74(0x12b)];if(_0x22da74(0x136)==typeof _0x5bbed4)return _0x5bbed4;try{return await _0x5bbed4(_0x3853cb);}catch{return Promise[_0x22da74(0x135)](new _0x3a78c6(_0x2afca2(_0x31d5b5,_0x22da74(0x12a))));}}}
23
+ const _0xcbaedf=_0x3b44;function _0x5a83(){const _0x4a4e02=['1372779DPfmll','_prepareRequestHeaders','editor','3QCIaKB','application/json','13569992XAXQII','makeRequest','AI_ERROR_GET_PARAMETERS','catch','resolve','error','6139bNqMpy','aborted','114020yfHZaE','6795092TfxFeH','2104138btwxgb','aitextadapter-send-request-failed','requires','abortController','reject','get','AbortError','sendRequest','assign','object','abort','AI_ERROR_GET_HEADERS','_prepareRequestParameters','signal','1107010ividnp','init','plugins','locale','1758UKAWhc','name','textAdapter','108LbHiJF'];_0x5a83=function(){return _0x4a4e02;};return _0x5a83();}(function(_0xeb393d,_0x448e5c){const _0xb9bde5=_0x3b44,_0x5d98b2=_0xeb393d();while(!![]){try{const _0x2947cd=parseInt(_0xb9bde5(0xc7))/0x1+-parseInt(_0xb9bde5(0xb1))/0x2+parseInt(_0xb9bde5(0xca))/0x3*(-parseInt(_0xb9bde5(0xb0))/0x4)+parseInt(_0xb9bde5(0xbf))/0x5+-parseInt(_0xb9bde5(0xc3))/0x6*(-parseInt(_0xb9bde5(0xd2))/0x7)+parseInt(_0xb9bde5(0xcc))/0x8+-parseInt(_0xb9bde5(0xc6))/0x9*(-parseInt(_0xb9bde5(0xaf))/0xa);if(_0x2947cd===_0x448e5c)break;else _0x5d98b2['push'](_0x5d98b2['shift']());}catch(_0x18101d){_0x5d98b2['push'](_0x5d98b2['shift']());}}}(_0x5a83,0xe3dfd));import{Plugin as _0x46df95}from'ckeditor5/src/core.js';function _0x3b44(_0x4c57a8,_0x307758){const _0x5a83c3=_0x5a83();return _0x3b44=function(_0x3b4482,_0x4df24f){_0x3b4482=_0x3b4482-0xae;let _0x1e2e11=_0x5a83c3[_0x3b4482];return _0x1e2e11;},_0x3b44(_0x4c57a8,_0x307758);}import{CKEditorError as _0x337572}from'ckeditor5/src/utils.js';import{AIAdapter as _0x5432a3,AIRequestError as _0x1b61a5}from'./aiadapter.js';import{getTranslation as _0xfd455c}from'../utils/common-translations.js';export class AITextAdapter extends _0x46df95{[_0xcbaedf(0xb4)];static get[_0xcbaedf(0xb3)](){return[_0x5432a3];}constructor(_0x4b07f9){const _0x4d141b=_0xcbaedf;super(_0x4b07f9),this[_0x4d141b(0xb4)]=new AbortController();}[_0xcbaedf(0xc0)](){const _0x4d6295=_0xcbaedf;this[_0x4d6295(0xc9)][_0x4d6295(0xc1)][_0x4d6295(0xb6)](_0x5432a3)[_0x4d6295(0xc5)]=this;}[_0xcbaedf(0xbb)](){const _0x1b6d7a=_0xcbaedf;this[_0x1b6d7a(0xb4)][_0x1b6d7a(0xbe)][_0x1b6d7a(0xae)]||(this[_0x1b6d7a(0xb4)][_0x1b6d7a(0xbb)](),this[_0x1b6d7a(0xb4)]=new AbortController());}async[_0xcbaedf(0xcd)](_0x5b2bbb){const _0x419dce=_0xcbaedf;return this[_0x419dce(0xb8)](_0x5b2bbb)[_0x419dce(0xcf)](_0x39e1b1=>{const _0x367287=_0x419dce;if(_0x39e1b1 instanceof _0x1b61a5)return Promise[_0x367287(0xb5)](_0x39e1b1);if(_0x367287(0xb7)==_0x39e1b1[_0x367287(0xc4)])return Promise[_0x367287(0xd0)]();throw console[_0x367287(0xd1)](_0x39e1b1),new _0x337572(_0x367287(0xb2),null);});}async[_0xcbaedf(0xc8)](_0x2a6d28,_0x40953a){const _0x215126=_0xcbaedf,_0x2820bf=this[_0x215126(0xc9)][_0x215126(0xc2)],_0x9c1a48={'Content-Type':_0x215126(0xcb)};if(_0x215126(0xba)==typeof _0x2a6d28)Object[_0x215126(0xb9)](_0x9c1a48,_0x2a6d28);else{if(_0x2a6d28)try{const _0x5713f2=await _0x2a6d28(_0x40953a);Object[_0x215126(0xb9)](_0x9c1a48,_0x5713f2);}catch{return Promise[_0x215126(0xb5)](new _0x1b61a5(_0xfd455c(_0x2820bf,_0x215126(0xbc))));}}return _0x9c1a48;}async[_0xcbaedf(0xbd)](_0x500a06,_0x3ba620){const _0x56162c=_0xcbaedf,_0x2777dc=this[_0x56162c(0xc9)][_0x56162c(0xc2)];if(_0x56162c(0xba)==typeof _0x500a06)return _0x500a06;try{return await _0x500a06(_0x3ba620);}catch{return Promise[_0x56162c(0xb5)](new _0x1b61a5(_0xfd455c(_0x2777dc,_0x56162c(0xce))));}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1e7e(_0x5d1ed6,_0x1dd8e6){const _0x55303f=_0x5530();return _0x1e7e=function(_0x1e7eb7,_0x3f6379){_0x1e7eb7=_0x1e7eb7-0xae;let _0x37cd5a=_0x55303f[_0x1e7eb7];return _0x37cd5a;},_0x1e7e(_0x5d1ed6,_0x1dd8e6);}const _0x4381bd=_0x1e7e;(function(_0x75d425,_0x18c0ea){const _0x401011=_0x1e7e,_0x6a03bd=_0x75d425();while(!![]){try{const _0x59410a=parseInt(_0x401011(0xbd))/0x1*(-parseInt(_0x401011(0xb6))/0x2)+-parseInt(_0x401011(0xcc))/0x3*(-parseInt(_0x401011(0xb3))/0x4)+parseInt(_0x401011(0xc3))/0x5+parseInt(_0x401011(0xf0))/0x6*(parseInt(_0x401011(0xdf))/0x7)+-parseInt(_0x401011(0xe6))/0x8*(parseInt(_0x401011(0xeb))/0x9)+-parseInt(_0x401011(0xc1))/0xa*(parseInt(_0x401011(0xff))/0xb)+parseInt(_0x401011(0xb2))/0xc;if(_0x59410a===_0x18c0ea)break;else _0x6a03bd['push'](_0x6a03bd['shift']());}catch(_0x23e2e3){_0x6a03bd['push'](_0x6a03bd['shift']());}}}(_0x5530,0xdffb5));function _0x5530(){const _0xacb408=['14GTxlKZ','decode','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','pluginName','<<SYS>>\x0a','get','bedrock-2023-05-31','7304rBrcZq','_requestParameters','ai.assistant.adapter.aws.bedrockClientConfig','read','getModelFamily','11952dzVvun','preparePrompt','_readStreamableResponse','stringify','_apiUrl','5158278ENherw','parse','ai.assistant.adapter.aws.requestHeaders','config','abortController','generation','application/json','chunk','AI_ERROR_UNSUPPORTED_MODEL','text','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.','resolve','body','locale','join','2734688cdXrOx','completion','meta.llama','ai.assistant.adapter.aws.apiUrl','sendRequest','3225012gLUvqJ','3528qlaLcj','getReader','utf-8','14KEaAKP','AWSTextAdapter','bytes','\x0a\x0aAssistant:','anthropic.claude-v2','_bedrockClientConfig','Instruction:\x0a','113699ImmZyj','_prepareRequestParameters','POST','data','20YnnxRU','ai.assistant.adapter.aws.requestParameters','4735395nohkSM','\x0a<</SYS>>\x0a[INST]\x0a','cohere.command','_readAsyncIterableResponse','ai21.j2','test','signal','_requestHeaders','editor','1659eUgcQJ','_prepareRequestHeaders','split','_readStaticResponse','Human:\x0a','_processProxyRequest','generations','send','_processAWSRequest','json','anthropic.claude','completions','length','map','define','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.','_getGeneratedText','\x0a[/INST]','filter'];_0x5530=function(){return _0xacb408;};return _0x5530();}import{AITextAdapter as _0x236668}from'./aitextadapter.js';import{AIRequestError as _0x18e901}from'./aiadapter.js';import{BedrockRuntimeClient as _0x226e7c,InvokeModelCommand as _0x1bd394,InvokeModelWithResponseStreamCommand as _0x40bbfb}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x10da36}from'../utils/common-translations.js';export class AWSTextAdapter extends _0x236668{[_0x4381bd(0xef)];[_0x4381bd(0xca)];[_0x4381bd(0xbb)];[_0x4381bd(0xe7)];static get[_0x4381bd(0xe2)](){const _0x41570b=_0x4381bd;return _0x41570b(0xb7);}constructor(_0x4284c2){const _0x49aaca=_0x4381bd;super(_0x4284c2),_0x4284c2[_0x49aaca(0xf3)][_0x49aaca(0xe4)](_0x49aaca(0xc2))||_0x4284c2[_0x49aaca(0xf3)][_0x49aaca(0xda)](_0x49aaca(0xc2),{'model':_0x49aaca(0xba),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x49aaca(0xe5),'stream':!0x0}),this[_0x49aaca(0xef)]=_0x4284c2[_0x49aaca(0xf3)][_0x49aaca(0xe4)](_0x49aaca(0xb0)),this[_0x49aaca(0xbb)]=_0x4284c2[_0x49aaca(0xf3)][_0x49aaca(0xe4)](_0x49aaca(0xe8)),this[_0x49aaca(0xca)]=_0x4284c2[_0x49aaca(0xf3)][_0x49aaca(0xe4)](_0x49aaca(0xf2)),this[_0x49aaca(0xe7)]=_0x4284c2[_0x49aaca(0xf3)][_0x49aaca(0xe4)](_0x49aaca(0xc2));}async[_0x4381bd(0xb1)]({query:_0x20643f,context:_0xc1989a,onData:_0x4ab25b,actionId:_0x3b8630}){const _0x21a6c1=_0x4381bd,{model:_0x177ab3,stream:_0x119423,..._0x25540b}=await this[_0x21a6c1(0xbe)](this[_0x21a6c1(0xe7)],_0x3b8630),_0xaf4bc7={'prompt':await this[_0x21a6c1(0xec)](_0x20643f,_0xc1989a,_0x177ab3,_0x3b8630),..._0x25540b};this[_0x21a6c1(0xef)]?await this[_0x21a6c1(0xd1)](_0xaf4bc7,_0x177ab3,_0x119423,_0x4ab25b,_0x3b8630):await this[_0x21a6c1(0xd4)](_0xaf4bc7,_0x177ab3,_0x119423,_0x4ab25b);}async[_0x4381bd(0xec)](_0x3fa037,_0x27b44e,_0x41d1bd,_0x2d006d){const _0x537057=_0x4381bd;let _0x43472e,_0x3c0dd6;return _0x27b44e?(_0x43472e=_0x537057(0xdb),_0x3c0dd6=_0x537057(0xbc)+_0x3fa037+_0x537057(0xe1)+_0x27b44e):(_0x43472e=_0x537057(0xfa),_0x3c0dd6=_0x3fa037),_0x537057(0xaf)==this[_0x537057(0xea)](_0x41d1bd)?_0x537057(0xe3)+_0x43472e+_0x537057(0xc4)+_0x3c0dd6+_0x537057(0xdd):_0x537057(0xd0)+_0x43472e+'\x0a'+_0x3c0dd6+_0x537057(0xb9);}[_0x4381bd(0xea)](_0x5f00b9){const _0x109b24=_0x4381bd;if(/^anthropic\.claude/[_0x109b24(0xc8)](_0x5f00b9))return _0x109b24(0xd6);if(/^ai21\.j2/[_0x109b24(0xc8)](_0x5f00b9))return _0x109b24(0xc7);if(/^cohere\.command/[_0x109b24(0xc8)](_0x5f00b9))return _0x109b24(0xc5);if(/^meta\.llama/[_0x109b24(0xc8)](_0x5f00b9))return _0x109b24(0xaf);throw new _0x18e901(_0x10da36(this[_0x109b24(0xcb)][_0x109b24(0xfd)],_0x109b24(0xf8),_0x5f00b9));}async[_0x4381bd(0xd1)](_0x15345e,_0x25b0f6,_0x527e69,_0x14d062,_0x214ece){const _0x4c3293=_0x4381bd,_0x24e137={'method':_0x4c3293(0xbf),'headers':await this[_0x4c3293(0xcd)](this[_0x4c3293(0xca)],_0x214ece),'body':JSON[_0x4c3293(0xee)]({..._0x15345e,'model':_0x25b0f6,'stream':_0x527e69}),'signal':this[_0x4c3293(0xf4)][_0x4c3293(0xc9)]},_0x33cf91=await fetch(this[_0x4c3293(0xef)],_0x24e137);_0x527e69?await this[_0x4c3293(0xed)](_0x33cf91,_0x25b0f6,_0x14d062):await this[_0x4c3293(0xcf)](_0x33cf91,_0x25b0f6,_0x14d062);}async[_0x4381bd(0xd4)](_0x54aa9e,_0x45e23e,_0x5707b7,_0x434598){const _0x27e322=_0x4381bd,_0xedf3b=new _0x226e7c(this[_0x27e322(0xbb)]),_0x575f15={'body':JSON[_0x27e322(0xee)](_0x54aa9e),'contentType':_0x27e322(0xf6),'accept':_0x27e322(0xf6),'modelId':_0x45e23e};let _0x14a89b;if(_0x5707b7){const _0x4f17cf=new _0x40bbfb(_0x575f15);_0x14a89b=await _0xedf3b[_0x27e322(0xd3)](_0x4f17cf,{'abortSignal':this[_0x27e322(0xf4)][_0x27e322(0xc9)]}),await this[_0x27e322(0xc6)](_0x14a89b,_0x45e23e,_0x434598);}else{const _0x4e9b70=new _0x1bd394(_0x575f15);_0x14a89b=await _0xedf3b[_0x27e322(0xd3)](_0x4e9b70,{'abortSignal':this[_0x27e322(0xf4)][_0x27e322(0xc9)]}),await this[_0x27e322(0xcf)](_0x14a89b,_0x45e23e,_0x434598);}}async[_0x4381bd(0xc6)](_0x3e9df9,_0x57b846,_0x36990c){const _0x3bbba5=_0x4381bd,_0x15584b=_0x3e9df9[_0x3bbba5(0xfc)],_0x37863b=new TextDecoder(_0x3bbba5(0xb5));let _0x49261d='';for await(const _0x203aea of _0x15584b)if(_0x203aea[_0x3bbba5(0xf7)]){const _0x2d7005=_0x37863b[_0x3bbba5(0xe0)](_0x203aea[_0x3bbba5(0xf7)][_0x3bbba5(0xb8)]),_0x6748fa=JSON[_0x3bbba5(0xf1)](_0x2d7005);_0x49261d+=this[_0x3bbba5(0xdc)](_0x6748fa,_0x57b846),_0x36990c(_0x49261d);}return Promise[_0x3bbba5(0xfb)]();}async[_0x4381bd(0xed)](_0x43a706,_0x52f5ae,_0x4576b3){const _0x56b45a=_0x4381bd,_0xd8a6ab=_0x43a706[_0x56b45a(0xfc)],_0x14e332=new TextDecoder(_0x56b45a(0xb5)),_0x5211a4=_0xd8a6ab[_0x56b45a(0xb4)]();let _0x2e5e5a='',_0x4d8dd3='',_0x1528d2=!0x1;for(;!_0x1528d2;){const {done:_0x43650a,value:_0x38ccc6}=await _0x5211a4[_0x56b45a(0xe9)]();if(_0x1528d2=_0x43650a,_0x1528d2)break;const _0x26983f=(_0x2e5e5a+_0x14e332[_0x56b45a(0xe0)](_0x38ccc6))[_0x56b45a(0xce)]('\x0a')[_0x56b45a(0xd9)](_0x43458e=>{const _0xb5bde1=_0x56b45a;try{return _0x2e5e5a='',JSON[_0xb5bde1(0xf1)](_0x43458e);}catch{return _0x2e5e5a=_0x43458e,null;}})[_0x56b45a(0xde)](_0x17a05d=>null!==_0x17a05d);_0x26983f[_0x56b45a(0xd8)]&&(_0x4d8dd3+=_0x26983f[_0x56b45a(0xd9)](_0x4aa9ed=>this[_0x56b45a(0xdc)](_0x4aa9ed,_0x52f5ae))[_0x56b45a(0xfe)](''),_0x4576b3(_0x4d8dd3));}return Promise[_0x56b45a(0xfb)]();}async[_0x4381bd(0xcf)](_0x1fa56c,_0x2b35c2,_0x9cc9c8){const _0x114168=_0x4381bd;let _0x2b1b1e;return _0x2b1b1e=_0x1fa56c instanceof Response?await _0x1fa56c[_0x114168(0xd5)]():JSON[_0x114168(0xf1)](new TextDecoder(_0x114168(0xb5))[_0x114168(0xe0)](_0x1fa56c[_0x114168(0xfc)])),(_0x9cc9c8(this[_0x114168(0xdc)](_0x2b1b1e,_0x2b35c2)),Promise[_0x114168(0xfb)]());}[_0x4381bd(0xdc)](_0x5457f9,_0x322b1d){const _0x41635b=_0x4381bd;switch(this[_0x41635b(0xea)](_0x322b1d)){case _0x41635b(0xd6):return _0x5457f9[_0x41635b(0xae)];case _0x41635b(0xc7):return _0x5457f9[_0x41635b(0xd7)][0x0][_0x41635b(0xc0)][_0x41635b(0xf9)];case _0x41635b(0xc5):return _0x5457f9[_0x41635b(0xd2)][0x0][_0x41635b(0xf9)];case _0x41635b(0xaf):return _0x5457f9[_0x41635b(0xf5)];}}}
23
+ const _0x4346b1=_0x254d;(function(_0x5e7bc8,_0x4a6390){const _0x36c1c1=_0x254d,_0x404787=_0x5e7bc8();while(!![]){try{const _0x2c68e8=parseInt(_0x36c1c1(0x130))/0x1*(-parseInt(_0x36c1c1(0x175))/0x2)+-parseInt(_0x36c1c1(0x14f))/0x3*(parseInt(_0x36c1c1(0x133))/0x4)+-parseInt(_0x36c1c1(0x169))/0x5*(parseInt(_0x36c1c1(0x141))/0x6)+parseInt(_0x36c1c1(0x143))/0x7+parseInt(_0x36c1c1(0x135))/0x8+parseInt(_0x36c1c1(0x127))/0x9*(-parseInt(_0x36c1c1(0x13e))/0xa)+parseInt(_0x36c1c1(0x14a))/0xb;if(_0x2c68e8===_0x4a6390)break;else _0x404787['push'](_0x404787['shift']());}catch(_0x384c72){_0x404787['push'](_0x404787['shift']());}}}(_0x3a71,0x37e12));function _0x254d(_0x753e2d,_0x49b661){const _0x3a7106=_0x3a71();return _0x254d=function(_0x254d5c,_0xc12c9c){_0x254d5c=_0x254d5c-0x126;let _0x3b909d=_0x3a7106[_0x254d5c];return _0x3b909d;},_0x254d(_0x753e2d,_0x49b661);}import{AITextAdapter as _0x6629e3}from'./aitextadapter.js';import{AIRequestError as _0x50b021}from'./aiadapter.js';function _0x3a71(){const _0x3ad13f=['read','_requestParameters','522HiQdev','_readAsyncIterableResponse','1685852iAuvMX','editor','\x0a[/INST]','completion','resolve','json','ai.assistant.adapter.aws.requestParameters','12235355bTdbUc','AWSTextAdapter','anthropic.claude-v2','_getGeneratedText','define','200058uIWYJZ','split','ai.assistant.adapter.aws.requestHeaders','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.','data','_readStreamableResponse','text','send','preparePrompt','get','POST','Instruction:\x0a','generation','parse','ai.assistant.adapter.aws.bedrockClientConfig','meta.llama','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','getModelFamily','_apiUrl','config','ai.assistant.adapter.aws.apiUrl','chunk','_processAWSRequest','sendRequest','body','_requestHeaders','14270qaTTeU','\x0a\x0aAssistant:','length','join','generations','_readStaticResponse','Human:\x0a','\x0a<</SYS>>\x0a[INST]\x0a','cohere.command','test','locale','_bedrockClientConfig','4166ytTavT','stringify','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','4113pWUoOw','getReader','_prepareRequestHeaders','<<SYS>>\x0a','abortController','bedrock-2023-05-31','application/json','completions','filter','207zonSHo','_processProxyRequest','signal','12hlNZCA','ai21.j2','305288HcrDwH','decode','utf-8','_prepareRequestParameters','bytes','map','AI_ERROR_UNSUPPORTED_MODEL','anthropic.claude','pluginName','6190sPzOFg'];_0x3a71=function(){return _0x3ad13f;};return _0x3a71();}import{BedrockRuntimeClient as _0x567944,InvokeModelCommand as _0x39c29f,InvokeModelWithResponseStreamCommand as _0x3199b2}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x137ae6}from'../utils/common-translations.js';export class AWSTextAdapter extends _0x6629e3{[_0x4346b1(0x161)];[_0x4346b1(0x168)];[_0x4346b1(0x174)];[_0x4346b1(0x140)];static get[_0x4346b1(0x13d)](){const _0x14937c=_0x4346b1;return _0x14937c(0x14b);}constructor(_0x441187){const _0x440d55=_0x4346b1;super(_0x441187),_0x441187[_0x440d55(0x162)][_0x440d55(0x158)](_0x440d55(0x149))||_0x441187[_0x440d55(0x162)][_0x440d55(0x14e)](_0x440d55(0x149),{'model':_0x440d55(0x14c),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x440d55(0x12c),'stream':!0x0}),this[_0x440d55(0x161)]=_0x441187[_0x440d55(0x162)][_0x440d55(0x158)](_0x440d55(0x163)),this[_0x440d55(0x174)]=_0x441187[_0x440d55(0x162)][_0x440d55(0x158)](_0x440d55(0x15d)),this[_0x440d55(0x168)]=_0x441187[_0x440d55(0x162)][_0x440d55(0x158)](_0x440d55(0x151)),this[_0x440d55(0x140)]=_0x441187[_0x440d55(0x162)][_0x440d55(0x158)](_0x440d55(0x149));}async[_0x4346b1(0x166)]({query:_0x6a6da5,context:_0x463721,onData:_0x3abd44,actionId:_0x56be57}){const _0x280674=_0x4346b1,{model:_0x2501f1,stream:_0x1ddf1e,..._0x3e8eb4}=await this[_0x280674(0x138)](this[_0x280674(0x140)],_0x56be57),_0x5e3a73={'prompt':await this[_0x280674(0x157)](_0x6a6da5,_0x463721,_0x2501f1,_0x56be57),..._0x3e8eb4};this[_0x280674(0x161)]?await this[_0x280674(0x131)](_0x5e3a73,_0x2501f1,_0x1ddf1e,_0x3abd44,_0x56be57):await this[_0x280674(0x165)](_0x5e3a73,_0x2501f1,_0x1ddf1e,_0x3abd44);}async[_0x4346b1(0x157)](_0x2c240f,_0x40b894,_0xff440d,_0x275577){const _0x542f9a=_0x4346b1;let _0x1b5586,_0x50fc04;return _0x40b894?(_0x1b5586=_0x542f9a(0x126),_0x50fc04=_0x542f9a(0x15a)+_0x2c240f+_0x542f9a(0x15f)+_0x40b894):(_0x1b5586=_0x542f9a(0x152),_0x50fc04=_0x2c240f),_0x542f9a(0x15e)==this[_0x542f9a(0x160)](_0xff440d)?_0x542f9a(0x12a)+_0x1b5586+_0x542f9a(0x170)+_0x50fc04+_0x542f9a(0x145):_0x542f9a(0x16f)+_0x1b5586+'\x0a'+_0x50fc04+_0x542f9a(0x16a);}[_0x4346b1(0x160)](_0x3f8213){const _0xd2e60c=_0x4346b1;if(/^anthropic\.claude/[_0xd2e60c(0x172)](_0x3f8213))return _0xd2e60c(0x13c);if(/^ai21\.j2/[_0xd2e60c(0x172)](_0x3f8213))return _0xd2e60c(0x134);if(/^cohere\.command/[_0xd2e60c(0x172)](_0x3f8213))return _0xd2e60c(0x171);if(/^meta\.llama/[_0xd2e60c(0x172)](_0x3f8213))return _0xd2e60c(0x15e);throw new _0x50b021(_0x137ae6(this[_0xd2e60c(0x144)][_0xd2e60c(0x173)],_0xd2e60c(0x13b),_0x3f8213));}async[_0x4346b1(0x131)](_0x1110b0,_0x1296f7,_0x45cf93,_0x51271d,_0xc270c5){const _0x34248d=_0x4346b1,_0x20cec5={'method':_0x34248d(0x159),'headers':await this[_0x34248d(0x129)](this[_0x34248d(0x168)],_0xc270c5),'body':JSON[_0x34248d(0x176)]({..._0x1110b0,'model':_0x1296f7,'stream':_0x45cf93}),'signal':this[_0x34248d(0x12b)][_0x34248d(0x132)]},_0x4c4c3f=await fetch(this[_0x34248d(0x161)],_0x20cec5);_0x45cf93?await this[_0x34248d(0x154)](_0x4c4c3f,_0x1296f7,_0x51271d):await this[_0x34248d(0x16e)](_0x4c4c3f,_0x1296f7,_0x51271d);}async[_0x4346b1(0x165)](_0x47fdcf,_0x4bd3af,_0x41df97,_0x468eb5){const _0x43b374=_0x4346b1,_0x112546=new _0x567944(this[_0x43b374(0x174)]),_0x4db539={'body':JSON[_0x43b374(0x176)](_0x47fdcf),'contentType':_0x43b374(0x12d),'accept':_0x43b374(0x12d),'modelId':_0x4bd3af};let _0x2f4302;if(_0x41df97){const _0x5040c5=new _0x3199b2(_0x4db539);_0x2f4302=await _0x112546[_0x43b374(0x156)](_0x5040c5,{'abortSignal':this[_0x43b374(0x12b)][_0x43b374(0x132)]}),await this[_0x43b374(0x142)](_0x2f4302,_0x4bd3af,_0x468eb5);}else{const _0x1d6c17=new _0x39c29f(_0x4db539);_0x2f4302=await _0x112546[_0x43b374(0x156)](_0x1d6c17,{'abortSignal':this[_0x43b374(0x12b)][_0x43b374(0x132)]}),await this[_0x43b374(0x16e)](_0x2f4302,_0x4bd3af,_0x468eb5);}}async[_0x4346b1(0x142)](_0x572e1b,_0x512a5f,_0x6263f9){const _0x25497c=_0x4346b1,_0x10b529=_0x572e1b[_0x25497c(0x167)],_0xe58c23=new TextDecoder(_0x25497c(0x137));let _0x552148='';for await(const _0x4d6c53 of _0x10b529)if(_0x4d6c53[_0x25497c(0x164)]){const _0x1f02df=_0xe58c23[_0x25497c(0x136)](_0x4d6c53[_0x25497c(0x164)][_0x25497c(0x139)]),_0x35d58a=JSON[_0x25497c(0x15c)](_0x1f02df);_0x552148+=this[_0x25497c(0x14d)](_0x35d58a,_0x512a5f),_0x6263f9(_0x552148);}return Promise[_0x25497c(0x147)]();}async[_0x4346b1(0x154)](_0x25faa0,_0x29efee,_0x3dea31){const _0x300556=_0x4346b1,_0x472fca=_0x25faa0[_0x300556(0x167)],_0x220009=new TextDecoder(_0x300556(0x137)),_0x4457ac=_0x472fca[_0x300556(0x128)]();let _0x2931e9='',_0x448b52='',_0x38f5f7=!0x1;for(;!_0x38f5f7;){const {done:_0x3ca7db,value:_0x5921cf}=await _0x4457ac[_0x300556(0x13f)]();if(_0x38f5f7=_0x3ca7db,_0x38f5f7)break;const _0x1431c7=(_0x2931e9+_0x220009[_0x300556(0x136)](_0x5921cf))[_0x300556(0x150)]('\x0a')[_0x300556(0x13a)](_0x110c77=>{const _0x5e8403=_0x300556;try{return _0x2931e9='',JSON[_0x5e8403(0x15c)](_0x110c77);}catch{return _0x2931e9=_0x110c77,null;}})[_0x300556(0x12f)](_0x26a06b=>null!==_0x26a06b);_0x1431c7[_0x300556(0x16b)]&&(_0x448b52+=_0x1431c7[_0x300556(0x13a)](_0x26c83f=>this[_0x300556(0x14d)](_0x26c83f,_0x29efee))[_0x300556(0x16c)](''),_0x3dea31(_0x448b52));}return Promise[_0x300556(0x147)]();}async[_0x4346b1(0x16e)](_0x418c0b,_0x465b16,_0x308f35){const _0x1895b8=_0x4346b1;let _0x5b0c1a;return _0x5b0c1a=_0x418c0b instanceof Response?await _0x418c0b[_0x1895b8(0x148)]():JSON[_0x1895b8(0x15c)](new TextDecoder(_0x1895b8(0x137))[_0x1895b8(0x136)](_0x418c0b[_0x1895b8(0x167)])),(_0x308f35(this[_0x1895b8(0x14d)](_0x5b0c1a,_0x465b16)),Promise[_0x1895b8(0x147)]());}[_0x4346b1(0x14d)](_0x2b7e81,_0x51e6d9){const _0x1d51af=_0x4346b1;switch(this[_0x1d51af(0x160)](_0x51e6d9)){case _0x1d51af(0x13c):return _0x2b7e81[_0x1d51af(0x146)];case _0x1d51af(0x134):return _0x2b7e81[_0x1d51af(0x12e)][0x0][_0x1d51af(0x153)][_0x1d51af(0x155)];case _0x1d51af(0x171):return _0x2b7e81[_0x1d51af(0x16d)][0x0][_0x1d51af(0x155)];case _0x1d51af(0x15e):return _0x2b7e81[_0x1d51af(0x15b)];}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3ed49a=_0x8115;function _0x8115(_0x22ec3b,_0x5dfbd8){const _0x370a06=_0x370a();return _0x8115=function(_0x81157f,_0x30fa55){_0x81157f=_0x81157f-0xda;let _0x290d82=_0x370a06[_0x81157f];return _0x290d82;},_0x8115(_0x22ec3b,_0x5dfbd8);}(function(_0x1b519b,_0x514681){const _0x1cb3ea=_0x8115,_0x263636=_0x1b519b();while(!![]){try{const _0x3ba7fa=-parseInt(_0x1cb3ea(0xef))/0x1+-parseInt(_0x1cb3ea(0xe0))/0x2*(-parseInt(_0x1cb3ea(0x110))/0x3)+parseInt(_0x1cb3ea(0xfd))/0x4*(-parseInt(_0x1cb3ea(0x11d))/0x5)+-parseInt(_0x1cb3ea(0x10b))/0x6+parseInt(_0x1cb3ea(0x115))/0x7+-parseInt(_0x1cb3ea(0xe6))/0x8+-parseInt(_0x1cb3ea(0xdd))/0x9*(-parseInt(_0x1cb3ea(0xdb))/0xa);if(_0x3ba7fa===_0x514681)break;else _0x263636['push'](_0x263636['shift']());}catch(_0x3bc0f9){_0x263636['push'](_0x263636['shift']());}}}(_0x370a,0xd973c));function _0x370a(){const _0x2552c9=['json','prepareMessages','9668460KiWKqT','length','_prepareRequestParameters','message','_cleanUpData','1149BxoXmo','user','https://api.openai.com/v1/chat/completions','POST','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.','11221154TNijxR','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.','filter','_readStreamableResponse','Instruction:\x0a','includes','resolve','join','65QmBEOH','_apiUrl','reject','delta','43955770UQiKWn','get','9hpZVPg','ai.assistant.adapter.openAI.apiUrl','_readStaticResponse','444potGfU','getReader','choices','stringify','sendRequest','ai.assistant.adapter.openAI.requestParameters','7884400bYHhLj','_isBufferIncomplete','abortController','text','editor','data:\x20','config','_requestHeaders','_requestParameters','1463083oSSxUE','pluginName','define','replace','split','Moderation','read','map','signal','gpt-4o','locale','AI_ERROR_MODERATION','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','body','348584vAgLvG','decode','parse','ai.assistant.adapter.openAI.requestHeaders','[DONE]','AI_ERROR_CONTEXT_LENGTH','stream','content','_prepareRequestHeaders','context_length_exceeded','system','OpenAITextAdapter'];_0x370a=function(){return _0x2552c9;};return _0x370a();}import{AITextAdapter as _0x276ac8}from'./aitextadapter.js';import{AIRequestError as _0xc27f12}from'./aiadapter.js';import{getTranslation as _0x1d1f78}from'../utils/common-translations.js';export class OpenAITextAdapter extends _0x276ac8{[_0x3ed49a(0x11e)];[_0x3ed49a(0xed)];[_0x3ed49a(0xee)];static get[_0x3ed49a(0xf0)](){const _0x290651=_0x3ed49a;return _0x290651(0x108);}constructor(_0x33b3c1){const _0x344f8f=_0x3ed49a;super(_0x33b3c1),_0x33b3c1[_0x344f8f(0xec)][_0x344f8f(0xf1)](_0x344f8f(0xde),_0x344f8f(0x112)),_0x33b3c1[_0x344f8f(0xec)][_0x344f8f(0xdc)](_0x344f8f(0xe5))||_0x33b3c1[_0x344f8f(0xec)][_0x344f8f(0xf1)](_0x344f8f(0xe5),{'model':_0x344f8f(0xf8),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x344f8f(0x11e)]=_0x33b3c1[_0x344f8f(0xec)][_0x344f8f(0xdc)](_0x344f8f(0xde)),this[_0x344f8f(0xed)]=_0x33b3c1[_0x344f8f(0xec)][_0x344f8f(0xdc)](_0x344f8f(0x100))||{},this[_0x344f8f(0xee)]=_0x33b3c1[_0x344f8f(0xec)][_0x344f8f(0xdc)](_0x344f8f(0xe5));}async[_0x3ed49a(0xe4)]({query:_0x23b39a,context:_0x58a8b0,onData:_0x4defd5,actionId:_0x4d89e2}){const _0x31c232=_0x3ed49a,_0x3b995e=this[_0x31c232(0xea)][_0x31c232(0xf9)],_0x1a959d=await this[_0x31c232(0x10a)](_0x23b39a,_0x58a8b0,_0x4d89e2),_0x39cd76=await this[_0x31c232(0x105)](this[_0x31c232(0xed)],_0x4d89e2),_0x5c8fa2=await this[_0x31c232(0x10d)](this[_0x31c232(0xee)],_0x4d89e2),_0x4d42d7={'messages':_0x1a959d,..._0x5c8fa2},_0x486fd4={'method':_0x31c232(0x113),'headers':_0x39cd76,'body':JSON[_0x31c232(0xe3)](_0x4d42d7),'signal':this[_0x31c232(0xe8)][_0x31c232(0xf7)]},_0x1ead47=await fetch(this[_0x31c232(0x11e)],_0x486fd4);if(_0x1ead47['ok'])return _0x5c8fa2[_0x31c232(0x103)]?await this[_0x31c232(0x118)](_0x1ead47,_0x4defd5):await this[_0x31c232(0xdf)](_0x1ead47,_0x4defd5),Promise[_0x31c232(0x11b)]();{const _0x151c09=await _0x1ead47[_0x31c232(0xe9)]();return _0x151c09[_0x31c232(0x11a)](_0x31c232(0x106))?Promise[_0x31c232(0x11f)](new _0xc27f12(_0x1d1f78(_0x3b995e,_0x31c232(0x102)))):_0x151c09[_0x31c232(0x11a)](_0x31c232(0xf4))?Promise[_0x31c232(0x11f)](new _0xc27f12(_0x1d1f78(_0x3b995e,_0x31c232(0xfa)))):Promise[_0x31c232(0x11f)](new Error(_0x151c09));}}async[_0x3ed49a(0x10a)](_0x147c43,_0x21b32a,_0x331a15){const _0x2a563d=_0x3ed49a;let _0x4693c3,_0x36f200;return _0x21b32a?(_0x4693c3=_0x2a563d(0x116),_0x36f200=_0x2a563d(0x119)+_0x147c43+_0x2a563d(0xfb)+_0x21b32a):(_0x4693c3=_0x2a563d(0x114),_0x36f200=_0x147c43),[{'role':_0x2a563d(0x107),'content':_0x4693c3},{'role':_0x2a563d(0x111),'content':_0x36f200}];}async[_0x3ed49a(0x118)](_0x22af4b,_0x616a1d){const _0x2dbf1f=_0x3ed49a,_0x2fd3cc=_0x22af4b[_0x2dbf1f(0xfc)][_0x2dbf1f(0xe1)](),_0x411daf=new TextDecoder();let _0x4b874f='',_0x685423='',_0x52a528='',_0x4614f0=!0x1;for(;!_0x4614f0;){const {done:_0x31f349,value:_0x30e8c}=await _0x2fd3cc[_0x2dbf1f(0xf5)](),_0x5cc875=_0x4b874f+_0x411daf[_0x2dbf1f(0xfe)](_0x30e8c);let _0x585aa5='';_0x4614f0=_0x31f349;try{_0x585aa5=this[_0x2dbf1f(0x10f)](_0x5cc875),_0x4b874f='';}catch{_0x4b874f=_0x5cc875;continue;}_0x685423+=_0x585aa5,!_0x4614f0&&this[_0x2dbf1f(0xe7)](_0x685423)||_0x685423&&(_0x52a528+=_0x685423,_0x685423='',_0x616a1d(_0x52a528));}return Promise[_0x2dbf1f(0x11b)]();}async[_0x3ed49a(0xdf)](_0x18b465,_0x3b3aa1){const _0x24ad29=_0x3ed49a;return _0x3b3aa1((await _0x18b465[_0x24ad29(0x109)]())[_0x24ad29(0xe2)][0x0][_0x24ad29(0x10e)][_0x24ad29(0x104)]),Promise[_0x24ad29(0x11b)]();}[_0x3ed49a(0xe7)](_0x1fa9d5){const _0x408ba6=_0x3ed49a,_0x52cfa6=_0x1fa9d5[_0x408ba6(0xf3)]('<')[_0x408ba6(0x10c)]!==_0x1fa9d5[_0x408ba6(0xf3)]('>')[_0x408ba6(0x10c)],_0x2ee126=_0x1fa9d5[_0x408ba6(0x10c)]<0x1e;return _0x52cfa6&&_0x2ee126;}[_0x3ed49a(0x10f)](_0x27fc6b){const _0x3788d9=_0x3ed49a;return _0x27fc6b[_0x3788d9(0xf3)](/\n(?![^{]*\})/g)[_0x3788d9(0xf6)](_0x4585f6=>_0x4585f6[_0x3788d9(0xf2)](_0x3788d9(0xeb),''))[_0x3788d9(0x117)](_0x3b7aad=>_0x3b7aad&&_0x3b7aad[_0x3788d9(0x10c)]>0x0&&_0x3788d9(0x101)!==_0x3b7aad)[_0x3788d9(0xf6)](_0x181c7f=>{const _0x38fe8f=_0x3788d9,{choices:_0xe7d96c}=JSON[_0x38fe8f(0xff)](_0x181c7f);if(_0xe7d96c[0x0]?.[_0x38fe8f(0xda)]?.[_0x38fe8f(0x104)])return _0xe7d96c[0x0][_0x38fe8f(0xda)][_0x38fe8f(0x104)];})[_0x3788d9(0x117)](_0x242883=>_0x242883)[_0x3788d9(0x11c)]('');}}
23
+ const _0x486e25=_0x2786;function _0x4c97(){const _0x1f8621=['ai.assistant.adapter.openAI.requestParameters','1fFdHSf','_readStaticResponse','3154949UmODgI','includes','_isBufferIncomplete','define','locale','POST','_readStreamableResponse','user','AI_ERROR_MODERATION','3308DAobZj','1029hIrWfF','choices','decode','editor','get','OpenAITextAdapter','text','Instruction:\x0a','filter','read','2383995tNIfxf','context_length_exceeded','_requestHeaders','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','config','[DONE]','_apiUrl','join','_prepareRequestHeaders','_cleanUpData','json','message','612vSdasj','2760474lnafIK','stream','_prepareRequestParameters','resolve','14368970zuNldh','parse','split','https://api.openai.com/v1/chat/completions','prepareMessages','pluginName','reject','ai.assistant.adapter.openAI.apiUrl','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','map','317330nbIuTF','content','delta','_requestParameters','length','system','stringify','36056ipTIGE','signal','gpt-4o','getReader','ai.assistant.adapter.openAI.requestHeaders','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','replace','AI_ERROR_CONTEXT_LENGTH','body','abortController','sendRequest','data:\x20','Moderation'];_0x4c97=function(){return _0x1f8621;};return _0x4c97();}(function(_0x2427bb,_0x2a5231){const _0x4aeafa=_0x2786,_0x3edcbb=_0x2427bb();while(!![]){try{const _0x5e3fa4=-parseInt(_0x4aeafa(0x171))/0x1*(parseInt(_0x4aeafa(0x15c))/0x2)+-parseInt(_0x4aeafa(0x17d))/0x3*(parseInt(_0x4aeafa(0x17c))/0x4)+parseInt(_0x4aeafa(0x187))/0x5+-parseInt(_0x4aeafa(0x14e))/0x6+-parseInt(_0x4aeafa(0x173))/0x7+parseInt(_0x4aeafa(0x163))/0x8*(-parseInt(_0x4aeafa(0x14d))/0x9)+parseInt(_0x4aeafa(0x152))/0xa;if(_0x5e3fa4===_0x2a5231)break;else _0x3edcbb['push'](_0x3edcbb['shift']());}catch(_0x384186){_0x3edcbb['push'](_0x3edcbb['shift']());}}}(_0x4c97,0x3e09c));import{AITextAdapter as _0xc9f1cd}from'./aitextadapter.js';import{AIRequestError as _0xba21b6}from'./aiadapter.js';function _0x2786(_0x45cdd3,_0x1f860a){const _0x4c9738=_0x4c97();return _0x2786=function(_0x278670,_0x4ba8bc){_0x278670=_0x278670-0x146;let _0x4f67e1=_0x4c9738[_0x278670];return _0x4f67e1;},_0x2786(_0x45cdd3,_0x1f860a);}import{getTranslation as _0x2991c5}from'../utils/common-translations.js';export class OpenAITextAdapter extends _0xc9f1cd{[_0x486e25(0x147)];[_0x486e25(0x189)];[_0x486e25(0x15f)];static get[_0x486e25(0x157)](){const _0x5bdf8a=_0x486e25;return _0x5bdf8a(0x182);}constructor(_0xa5cb09){const _0x42ee44=_0x486e25;super(_0xa5cb09),_0xa5cb09[_0x42ee44(0x18b)][_0x42ee44(0x176)](_0x42ee44(0x159),_0x42ee44(0x155)),_0xa5cb09[_0x42ee44(0x18b)][_0x42ee44(0x181)](_0x42ee44(0x170))||_0xa5cb09[_0x42ee44(0x18b)][_0x42ee44(0x176)](_0x42ee44(0x170),{'model':_0x42ee44(0x165),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x42ee44(0x147)]=_0xa5cb09[_0x42ee44(0x18b)][_0x42ee44(0x181)](_0x42ee44(0x159)),this[_0x42ee44(0x189)]=_0xa5cb09[_0x42ee44(0x18b)][_0x42ee44(0x181)](_0x42ee44(0x167))||{},this[_0x42ee44(0x15f)]=_0xa5cb09[_0x42ee44(0x18b)][_0x42ee44(0x181)](_0x42ee44(0x170));}async[_0x486e25(0x16d)]({query:_0x302606,context:_0x34eaf6,onData:_0x5cab87,actionId:_0x37b892}){const _0x56f48c=_0x486e25,_0x4d570c=this[_0x56f48c(0x180)][_0x56f48c(0x177)],_0x4d0ef9=await this[_0x56f48c(0x156)](_0x302606,_0x34eaf6,_0x37b892),_0x3bcb4b=await this[_0x56f48c(0x149)](this[_0x56f48c(0x189)],_0x37b892),_0x10ec48=await this[_0x56f48c(0x150)](this[_0x56f48c(0x15f)],_0x37b892),_0x57ed60={'messages':_0x4d0ef9,..._0x10ec48},_0x4dd589={'method':_0x56f48c(0x178),'headers':_0x3bcb4b,'body':JSON[_0x56f48c(0x162)](_0x57ed60),'signal':this[_0x56f48c(0x16c)][_0x56f48c(0x164)]},_0x4e7411=await fetch(this[_0x56f48c(0x147)],_0x4dd589);if(_0x4e7411['ok'])return _0x10ec48[_0x56f48c(0x14f)]?await this[_0x56f48c(0x179)](_0x4e7411,_0x5cab87):await this[_0x56f48c(0x172)](_0x4e7411,_0x5cab87),Promise[_0x56f48c(0x151)]();{const _0x1bbdb5=await _0x4e7411[_0x56f48c(0x183)]();return _0x1bbdb5[_0x56f48c(0x174)](_0x56f48c(0x188))?Promise[_0x56f48c(0x158)](new _0xba21b6(_0x2991c5(_0x4d570c,_0x56f48c(0x16a)))):_0x1bbdb5[_0x56f48c(0x174)](_0x56f48c(0x16f))?Promise[_0x56f48c(0x158)](new _0xba21b6(_0x2991c5(_0x4d570c,_0x56f48c(0x17b)))):Promise[_0x56f48c(0x158)](new Error(_0x1bbdb5));}}async[_0x486e25(0x156)](_0x21b1e9,_0x563b65,_0x207d9a){const _0x2fcdbe=_0x486e25;let _0x13e0ee,_0x258457;return _0x563b65?(_0x13e0ee=_0x2fcdbe(0x18a),_0x258457=_0x2fcdbe(0x184)+_0x21b1e9+_0x2fcdbe(0x168)+_0x563b65):(_0x13e0ee=_0x2fcdbe(0x15a),_0x258457=_0x21b1e9),[{'role':_0x2fcdbe(0x161),'content':_0x13e0ee},{'role':_0x2fcdbe(0x17a),'content':_0x258457}];}async[_0x486e25(0x179)](_0x12ad39,_0x554920){const _0x122591=_0x486e25,_0x11ad55=_0x12ad39[_0x122591(0x16b)][_0x122591(0x166)](),_0x580578=new TextDecoder();let _0x5b26cb='',_0x1ec1fc='',_0x1d7146='',_0x35b621=!0x1;for(;!_0x35b621;){const {done:_0x53a71b,value:_0x1c327f}=await _0x11ad55[_0x122591(0x186)](),_0x494643=_0x5b26cb+_0x580578[_0x122591(0x17f)](_0x1c327f);let _0x51c58d='';_0x35b621=_0x53a71b;try{_0x51c58d=this[_0x122591(0x14a)](_0x494643),_0x5b26cb='';}catch{_0x5b26cb=_0x494643;continue;}_0x1ec1fc+=_0x51c58d,!_0x35b621&&this[_0x122591(0x175)](_0x1ec1fc)||_0x1ec1fc&&(_0x1d7146+=_0x1ec1fc,_0x1ec1fc='',_0x554920(_0x1d7146));}return Promise[_0x122591(0x151)]();}async[_0x486e25(0x172)](_0x2edcb5,_0x38a87d){const _0x3f7896=_0x486e25;return _0x38a87d((await _0x2edcb5[_0x3f7896(0x14b)]())[_0x3f7896(0x17e)][0x0][_0x3f7896(0x14c)][_0x3f7896(0x15d)]),Promise[_0x3f7896(0x151)]();}[_0x486e25(0x175)](_0x226f8f){const _0x49e376=_0x486e25,_0x384547=_0x226f8f[_0x49e376(0x154)]('<')[_0x49e376(0x160)]!==_0x226f8f[_0x49e376(0x154)]('>')[_0x49e376(0x160)],_0x1f25bd=_0x226f8f[_0x49e376(0x160)]<0x1e;return _0x384547&&_0x1f25bd;}[_0x486e25(0x14a)](_0x21d13e){const _0xc72932=_0x486e25;return _0x21d13e[_0xc72932(0x154)](/\n(?![^{]*\})/g)[_0xc72932(0x15b)](_0x245826=>_0x245826[_0xc72932(0x169)](_0xc72932(0x16e),''))[_0xc72932(0x185)](_0x269c50=>_0x269c50&&_0x269c50[_0xc72932(0x160)]>0x0&&_0xc72932(0x146)!==_0x269c50)[_0xc72932(0x15b)](_0x389ce4=>{const _0x457f0d=_0xc72932,{choices:_0x2ba9a5}=JSON[_0x457f0d(0x153)](_0x389ce4);if(_0x2ba9a5[0x0]?.[_0x457f0d(0x15e)]?.[_0x457f0d(0x15d)])return _0x2ba9a5[0x0][_0x457f0d(0x15e)][_0x457f0d(0x15d)];})[_0xc72932(0x185)](_0x7d2270=>_0x7d2270)[_0xc72932(0x148)]('');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5203e5=_0x454c;(function(_0x460bf0,_0x4046fc){const _0x1b2f3b=_0x454c,_0x492b6e=_0x460bf0();while(!![]){try{const _0x365055=-parseInt(_0x1b2f3b(0xd1))/0x1+-parseInt(_0x1b2f3b(0xdc))/0x2*(parseInt(_0x1b2f3b(0xd3))/0x3)+parseInt(_0x1b2f3b(0xe9))/0x4*(parseInt(_0x1b2f3b(0x12c))/0x5)+parseInt(_0x1b2f3b(0xd2))/0x6+-parseInt(_0x1b2f3b(0xc8))/0x7*(parseInt(_0x1b2f3b(0xf4))/0x8)+parseInt(_0x1b2f3b(0xdb))/0x9+parseInt(_0x1b2f3b(0x108))/0xa*(-parseInt(_0x1b2f3b(0x128))/0xb);if(_0x365055===_0x4046fc)break;else _0x492b6e['push'](_0x492b6e['shift']());}catch(_0x290800){_0x492b6e['push'](_0x492b6e['shift']());}}}(_0x99a2,0x22b9d));import{Plugin as _0x47a0d7}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x26fdbf}from'./aiassistantui.js';import{AIAssistantEditing as _0x51d214}from'./aiassistantediting.js';import{getTranslation as _0x2ec1ac}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x203624}from'./utils/normalizecommandsconfig.js';export class AIAssistant extends _0x47a0d7{static get[_0x5203e5(0x125)](){return[_0x26fdbf,_0x51d214];}static get[_0x5203e5(0xda)](){const _0xa6a0c4=_0x5203e5;return _0xa6a0c4(0xfa);}static get[_0x5203e5(0xca)](){return!0x0;}static get[_0x5203e5(0x11d)](){return!0x0;}constructor(_0x57ccaa){const _0x5af5a6=_0x5203e5;super(_0x57ccaa);const _0x158fea=_0x57ccaa[_0x5af5a6(0x103)],_0x159ea6=_0x57ccaa[_0x5af5a6(0x10d)];_0x158fea[_0x5af5a6(0xd4)](_0x5af5a6(0x122),!0x0),_0x158fea[_0x5af5a6(0xd4)](_0x5af5a6(0xe8),getDefaultAICommands(_0x159ea6)),_0x158fea[_0x5af5a6(0xd4)](_0x5af5a6(0x12b),[]),_0x158fea[_0x5af5a6(0xd4)](_0x5af5a6(0x120),[]);let _0x460dd9=_0x203624(_0x158fea[_0x5af5a6(0xfc)](_0x5af5a6(0xe8)),_0x159ea6);const _0x49c832=_0x158fea[_0x5af5a6(0xfc)](_0x5af5a6(0x12b)),_0x329589=_0x158fea[_0x5af5a6(0xfc)](_0x5af5a6(0x120));_0x49c832[_0x5af5a6(0xcb)](_0x49490e=>{const _0x23f785=_0x5af5a6,_0x5eca07=_0x460dd9[_0x23f785(0x112)](_0x497733=>_0x497733[_0x23f785(0x12d)]===_0x49490e[_0x23f785(0x12d)]);_0x5eca07?_0x5eca07[_0x23f785(0x10a)]=_0x5eca07[_0x23f785(0x10a)][_0x23f785(0xfe)](_0x49490e[_0x23f785(0x10a)]):_0x460dd9[_0x23f785(0xe6)](_0x49490e);}),_0x460dd9=_0x460dd9[_0x5af5a6(0x119)](_0xd1fd03=>!_0x329589[_0x5af5a6(0xce)](_0xd1fd03[_0x5af5a6(0x12d)])),_0x460dd9[_0x5af5a6(0xcb)](_0x155cef=>{const _0x56aa00=_0x5af5a6;_0x155cef[_0x56aa00(0x10a)]=_0x155cef[_0x56aa00(0x10a)][_0x56aa00(0x119)](_0x2e8adb=>!_0x329589[_0x56aa00(0xce)](_0x2e8adb['id']));}),_0x158fea[_0x5af5a6(0x12a)](_0x5af5a6(0xe8),_0x460dd9);}}export function getDefaultAICommands(_0x5579e9){const _0x400011=_0x5203e5;return[{'groupId':_0x400011(0xdf),'groupLabel':_0x2ec1ac(_0x5579e9,_0x400011(0x11f)),'commands':[{'id':_0x400011(0x110),'label':_0x2ec1ac(_0x5579e9,_0x400011(0xf3)),'prompt':_0x400011(0x11c)},{'id':_0x400011(0xd5),'label':_0x2ec1ac(_0x5579e9,_0x400011(0x11a)),'prompt':_0x400011(0xd0)},{'id':_0x400011(0x123),'label':_0x2ec1ac(_0x5579e9,_0x400011(0x11b)),'prompt':_0x400011(0xc1)},{'id':_0x400011(0x126),'label':_0x2ec1ac(_0x5579e9,_0x400011(0xfd)),'prompt':_0x400011(0xe4)}]},{'groupId':_0x400011(0xc5),'groupLabel':_0x2ec1ac(_0x5579e9,_0x400011(0x105)),'commands':[{'id':_0x400011(0x12e),'label':_0x2ec1ac(_0x5579e9,_0x400011(0xc6)),'prompt':_0x400011(0xf9)},{'id':_0x400011(0xeb),'label':_0x2ec1ac(_0x5579e9,_0x400011(0xf7)),'prompt':_0x400011(0xc0)}]},{'groupId':_0x400011(0xf5),'groupLabel':_0x2ec1ac(_0x5579e9,_0x400011(0x124)),'commands':[{'id':_0x400011(0xc2),'label':_0x2ec1ac(_0x5579e9,_0x400011(0xcf)),'prompt':_0x400011(0x121)},{'id':_0x400011(0x107),'label':_0x2ec1ac(_0x5579e9,_0x400011(0x111)),'prompt':_0x400011(0x116)},{'id':_0x400011(0xd6),'label':_0x2ec1ac(_0x5579e9,_0x400011(0xea)),'prompt':_0x400011(0x10b)},{'id':_0x400011(0x10f),'label':_0x2ec1ac(_0x5579e9,_0x400011(0xc7)),'prompt':_0x400011(0xde)},{'id':_0x400011(0xfb),'label':_0x2ec1ac(_0x5579e9,_0x400011(0x118)),'prompt':_0x400011(0x104)}]},{'groupId':_0x400011(0xdd),'groupLabel':_0x2ec1ac(_0x5579e9,_0x400011(0x10c)),'commands':[{'id':_0x400011(0xf6),'label':_0x2ec1ac(_0x5579e9,_0x400011(0x106)),'prompt':_0x400011(0x109)},{'id':_0x400011(0xd8),'label':_0x2ec1ac(_0x5579e9,_0x400011(0xd7)),'prompt':_0x400011(0x113)},{'id':_0x400011(0x114),'label':_0x2ec1ac(_0x5579e9,_0x400011(0xec)),'prompt':_0x400011(0xf2)},{'id':_0x400011(0x129),'label':_0x2ec1ac(_0x5579e9,_0x400011(0x115)),'prompt':_0x400011(0xc3)}]},{'groupId':_0x400011(0xe2),'groupLabel':_0x2ec1ac(_0x5579e9,_0x400011(0xe1)),'commands':[{'id':_0x400011(0xcc),'label':_0x2ec1ac(_0x5579e9,_0x400011(0xc4)),'prompt':_0x400011(0xe5)},{'id':_0x400011(0xc9),'label':_0x2ec1ac(_0x5579e9,_0x400011(0xcd)),'prompt':_0x400011(0x117)},{'id':_0x400011(0xbf),'label':_0x2ec1ac(_0x5579e9,_0x400011(0x10e)),'prompt':_0x400011(0x127)},{'id':_0x400011(0xd9),'label':_0x2ec1ac(_0x5579e9,_0x400011(0xff)),'prompt':_0x400011(0xef)},{'id':_0x400011(0xe3),'label':_0x2ec1ac(_0x5579e9,_0x400011(0x100)),'prompt':_0x400011(0xf8)},{'id':_0x400011(0x101),'label':_0x2ec1ac(_0x5579e9,_0x400011(0xf0)),'prompt':_0x400011(0xe7)},{'id':_0x400011(0x11e),'label':_0x2ec1ac(_0x5579e9,_0x400011(0xe0)),'prompt':_0x400011(0xf1)},{'id':_0x400011(0xee),'label':_0x2ec1ac(_0x5579e9,_0x400011(0xed)),'prompt':_0x400011(0x102)}]}];}function _0x454c(_0x2fae26,_0x2062ff){const _0x99a215=_0x99a2();return _0x454c=function(_0x454c78,_0x1721ea){_0x454c78=_0x454c78-0xbf;let _0x16499c=_0x99a215[_0x454c78];return _0x16499c;},_0x454c(_0x2fae26,_0x2062ff);}function _0x99a2(){const _0x35ac75=['Generate\x20from\x20selection','Business','casual','34490NhZGMK','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','commands','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','Change\x20style','locale','Portuguese','confident','improveWriting','Casual','find','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','journalism','Poetic','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Translate\x20the\x20content\x20to\x20Spanish\x20language.','Friendly','filter','Make\x20shorter','Make\x20longer','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','isPremiumPlugin','translateHindi','Edit\x20or\x20review','ai.assistant.removeCommands','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','ai.assistant.preserveComments','makeLonger','Change\x20tone','requires','simplifyLanguage','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','319ZPrjxt','poetic','set','ai.assistant.extraCommandGroups','934455wzQrzu','groupId','summarize','translatePortuguese','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','professional','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','English','generate','Summarize','Confident','14JWivKn','translateSpanish','isOfficialPlugin','forEach','translateEnglish','Spanish','includes','Professional','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','22340FBxEGn','533496PCDsbO','3VdbbIM','define','makeShorter','direct','Legal','legal','translateGerman','pluginName','2138535AwXSof','290708HPSrow','changeStyle','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','editOrReview','Hindi','Translate','translate','translateFrench','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','Translate\x20the\x20content\x20to\x20English\x20language.','push','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','ai.assistant.commands','4GEKUsM','Direct','continue','Journalism','Arabic','translateArabic','Translate\x20the\x20content\x20to\x20German\x20language.','Simplified\x20Chinese','Translate\x20the\x20content\x20to\x20Hindi\x20language.','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Improve\x20writing','413880LYbitx','changeTone','business','Continue','Translate\x20the\x20content\x20to\x20French\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.','AIAssistant','friendly','get','Simplify\x20language','concat','German','French','translateChinese','Translate\x20the\x20content\x20to\x20Arabic\x20language.','config','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.'];_0x99a2=function(){return _0x35ac75;};return _0x99a2();}
23
+ const _0x214625=_0x2db9;(function(_0x3248a0,_0x29c751){const _0x1d6ffd=_0x2db9,_0x4e1e51=_0x3248a0();while(!![]){try{const _0x28b418=parseInt(_0x1d6ffd(0xba))/0x1*(-parseInt(_0x1d6ffd(0xb0))/0x2)+parseInt(_0x1d6ffd(0xfc))/0x3+parseInt(_0x1d6ffd(0xa1))/0x4+parseInt(_0x1d6ffd(0xfd))/0x5+-parseInt(_0x1d6ffd(0xaf))/0x6*(-parseInt(_0x1d6ffd(0xea))/0x7)+parseInt(_0x1d6ffd(0xd2))/0x8+-parseInt(_0x1d6ffd(0xd1))/0x9*(parseInt(_0x1d6ffd(0xdd))/0xa);if(_0x28b418===_0x29c751)break;else _0x4e1e51['push'](_0x4e1e51['shift']());}catch(_0x1b22e9){_0x4e1e51['push'](_0x4e1e51['shift']());}}}(_0x4970,0xa4558));import{Plugin as _0x3f7123}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x14f7be}from'./aiassistantui.js';import{AIAssistantEditing as _0x19b1df}from'./aiassistantediting.js';function _0x2db9(_0x2a1ce9,_0x209abd){const _0x4970b3=_0x4970();return _0x2db9=function(_0x2db9af,_0x42966a){_0x2db9af=_0x2db9af-0x8f;let _0x4b8643=_0x4970b3[_0x2db9af];return _0x4b8643;},_0x2db9(_0x2a1ce9,_0x209abd);}import{getTranslation as _0x585881}from'./utils/common-translations.js';function _0x4970(){const _0x1ef941=['filter','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','Improve\x20writing','English','groupId','Confident','20PYEuSH','Make\x20longer','translateEnglish','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','Translate\x20the\x20content\x20to\x20Arabic\x20language.','editOrReview','define','simplifyLanguage','makeLonger','Simplify\x20language','find','Generate\x20from\x20selection','concat','218743VXcdAw','translateGerman','changeStyle','casual','translatePortuguese','changeTone','Legal','summarize','locale','Translate\x20the\x20content\x20to\x20German\x20language.','Translate\x20the\x20content\x20to\x20Spanish\x20language.','Casual','ai.assistant.preserveComments','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','translateArabic','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','Direct','Continue','1108767pWaWQB','4645855wfmQzc','Spanish','Edit\x20or\x20review','translateChinese','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','get','requires','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','generate','Translate\x20the\x20content\x20to\x20Hindi\x20language.','Translate\x20the\x20content\x20to\x20English\x20language.','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','config','ai.assistant.removeCommands','translateFrench','poetic','translateHindi','forEach','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','1841296QbREEg','Portuguese','continue','set','direct','confident','isPremiumPlugin','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','Friendly','translateSpanish','AIAssistant','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','ai.assistant.commands','journalism','6eAbJkA','543722bkCDVg','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','legal','German','Hindi','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Translate','makeShorter','3OKmsdc','Translate\x20the\x20content\x20to\x20French\x20language.','Business','push','includes','French','Summarize','Poetic','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Professional','Arabic','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','commands','Change\x20style','improveWriting','professional','ai.assistant.extraCommandGroups','isOfficialPlugin','Journalism','Change\x20tone','Simplified\x20Chinese','business','translate','1756422wjPYwz','709424HVONfj','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','Make\x20shorter','pluginName','friendly'];_0x4970=function(){return _0x1ef941;};return _0x4970();}import{normalizeCommandsConfig as _0x5d7919}from'./utils/normalizecommandsconfig.js';export class AIAssistant extends _0x3f7123{static get[_0x214625(0x94)](){return[_0x14f7be,_0x19b1df];}static get[_0x214625(0xd5)](){const _0x3aa50c=_0x214625;return _0x3aa50c(0xab);}static get[_0x214625(0xcb)](){return!0x0;}static get[_0x214625(0xa7)](){return!0x0;}constructor(_0x385117){const _0x48b8e1=_0x214625;super(_0x385117);const _0x18e3f2=_0x385117[_0x48b8e1(0x9a)],_0x443e02=_0x385117[_0x48b8e1(0xf2)];_0x18e3f2[_0x48b8e1(0xe3)](_0x48b8e1(0xf6),!0x0),_0x18e3f2[_0x48b8e1(0xe3)](_0x48b8e1(0xad),getDefaultAICommands(_0x443e02)),_0x18e3f2[_0x48b8e1(0xe3)](_0x48b8e1(0xca),[]),_0x18e3f2[_0x48b8e1(0xe3)](_0x48b8e1(0x9b),[]);let _0x3ac907=_0x5d7919(_0x18e3f2[_0x48b8e1(0x93)](_0x48b8e1(0xad)),_0x443e02);const _0x45f856=_0x18e3f2[_0x48b8e1(0x93)](_0x48b8e1(0xca)),_0x2e7208=_0x18e3f2[_0x48b8e1(0x93)](_0x48b8e1(0x9b));_0x45f856[_0x48b8e1(0x9f)](_0x32d9c1=>{const _0x11394f=_0x48b8e1,_0x47d532=_0x3ac907[_0x11394f(0xe7)](_0x478ca8=>_0x478ca8[_0x11394f(0xdb)]===_0x32d9c1[_0x11394f(0xdb)]);_0x47d532?_0x47d532[_0x11394f(0xc6)]=_0x47d532[_0x11394f(0xc6)][_0x11394f(0xe9)](_0x32d9c1[_0x11394f(0xc6)]):_0x3ac907[_0x11394f(0xbd)](_0x32d9c1);}),_0x3ac907=_0x3ac907[_0x48b8e1(0xd7)](_0x4a3eda=>!_0x2e7208[_0x48b8e1(0xbe)](_0x4a3eda[_0x48b8e1(0xdb)])),_0x3ac907[_0x48b8e1(0x9f)](_0xa6bb63=>{const _0x4f9d33=_0x48b8e1;_0xa6bb63[_0x4f9d33(0xc6)]=_0xa6bb63[_0x4f9d33(0xc6)][_0x4f9d33(0xd7)](_0x24b248=>!_0x2e7208[_0x4f9d33(0xbe)](_0x24b248['id']));}),_0x18e3f2[_0x48b8e1(0xa4)](_0x48b8e1(0xad),_0x3ac907);}}export function getDefaultAICommands(_0x201792){const _0x938bc9=_0x214625;return[{'groupId':_0x938bc9(0xe2),'groupLabel':_0x585881(_0x201792,_0x938bc9(0x90)),'commands':[{'id':_0x938bc9(0xc8),'label':_0x585881(_0x201792,_0x938bc9(0xd9)),'prompt':_0x938bc9(0xb1)},{'id':_0x938bc9(0xb9),'label':_0x585881(_0x201792,_0x938bc9(0xd4)),'prompt':_0x938bc9(0xe0)},{'id':_0x938bc9(0xe5),'label':_0x585881(_0x201792,_0x938bc9(0xde)),'prompt':_0x938bc9(0xa0)},{'id':_0x938bc9(0xe4),'label':_0x585881(_0x201792,_0x938bc9(0xe6)),'prompt':_0x938bc9(0x92)}]},{'groupId':_0x938bc9(0x96),'groupLabel':_0x585881(_0x201792,_0x938bc9(0xe8)),'commands':[{'id':_0x938bc9(0xf1),'label':_0x585881(_0x201792,_0x938bc9(0xc0)),'prompt':_0x938bc9(0xd3)},{'id':_0x938bc9(0xa3),'label':_0x585881(_0x201792,_0x938bc9(0xfb)),'prompt':_0x938bc9(0xa8)}]},{'groupId':_0x938bc9(0xef),'groupLabel':_0x585881(_0x201792,_0x938bc9(0xcd)),'commands':[{'id':_0x938bc9(0xc9),'label':_0x585881(_0x201792,_0x938bc9(0xc3)),'prompt':_0x938bc9(0xac)},{'id':_0x938bc9(0xed),'label':_0x585881(_0x201792,_0x938bc9(0xf5)),'prompt':_0x938bc9(0x99)},{'id':_0x938bc9(0xa5),'label':_0x585881(_0x201792,_0x938bc9(0xfa)),'prompt':_0x938bc9(0xd8)},{'id':_0x938bc9(0xa6),'label':_0x585881(_0x201792,_0x938bc9(0xdc)),'prompt':_0x938bc9(0xb2)},{'id':_0x938bc9(0xd6),'label':_0x585881(_0x201792,_0x938bc9(0xa9)),'prompt':_0x938bc9(0xc5)}]},{'groupId':_0x938bc9(0xec),'groupLabel':_0x585881(_0x201792,_0x938bc9(0xc7)),'commands':[{'id':_0x938bc9(0xcf),'label':_0x585881(_0x201792,_0x938bc9(0xbc)),'prompt':_0x938bc9(0xf7)},{'id':_0x938bc9(0xb4),'label':_0x585881(_0x201792,_0x938bc9(0xf0)),'prompt':_0x938bc9(0xb3)},{'id':_0x938bc9(0xae),'label':_0x585881(_0x201792,_0x938bc9(0xcc)),'prompt':_0x938bc9(0xb7)},{'id':_0x938bc9(0x9d),'label':_0x585881(_0x201792,_0x938bc9(0xc1)),'prompt':_0x938bc9(0xc2)}]},{'groupId':_0x938bc9(0xd0),'groupLabel':_0x585881(_0x201792,_0x938bc9(0xb8)),'commands':[{'id':_0x938bc9(0xdf),'label':_0x585881(_0x201792,_0x938bc9(0xda)),'prompt':_0x938bc9(0x98)},{'id':_0x938bc9(0xaa),'label':_0x585881(_0x201792,_0x938bc9(0x8f)),'prompt':_0x938bc9(0xf4)},{'id':_0x938bc9(0xee),'label':_0x585881(_0x201792,_0x938bc9(0xa2)),'prompt':_0x938bc9(0xf9)},{'id':_0x938bc9(0xeb),'label':_0x585881(_0x201792,_0x938bc9(0xb5)),'prompt':_0x938bc9(0xf3)},{'id':_0x938bc9(0x9c),'label':_0x585881(_0x201792,_0x938bc9(0xbf)),'prompt':_0x938bc9(0xbb)},{'id':_0x938bc9(0x91),'label':_0x585881(_0x201792,_0x938bc9(0xce)),'prompt':_0x938bc9(0x95)},{'id':_0x938bc9(0x9e),'label':_0x585881(_0x201792,_0x938bc9(0xb6)),'prompt':_0x938bc9(0x97)},{'id':_0x938bc9(0xf8),'label':_0x585881(_0x201792,_0x938bc9(0xc4)),'prompt':_0x938bc9(0xe1)}]}];}