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

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 (129) 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/aispinner.js +1 -1
  83. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  84. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  85. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  86. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  87. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  88. package/src/aicore/utils/createresizebutton.js +1 -1
  89. package/src/aicore/utils/documentrange.js +1 -1
  90. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  91. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  92. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  93. package/src/aicore/utils/htmlparser.js +1 -1
  94. package/src/aicore/utils/htmlstreamer.js +1 -1
  95. package/src/aieditorintegration/aieditorintegration.js +1 -1
  96. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  97. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  98. package/src/aiquickactions/aiquickactions.js +1 -1
  99. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  100. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  101. package/src/aiquickactions/aiquickactionsui.js +1 -1
  102. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  103. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  104. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  105. package/src/aireviewmode/aireviewmode.js +1 -1
  106. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  107. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  108. package/src/aireviewmode/aireviewmodeui.js +1 -1
  109. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  110. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  111. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  112. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  113. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  114. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  115. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  116. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  117. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  118. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  119. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  120. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  121. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  122. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  123. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  124. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  125. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  126. package/src/aitabs/aitabs.js +1 -1
  127. package/src/aitabs/tabs/aitabsview.js +1 -1
  128. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  129. 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.5",
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.5",
33
+ "@ckeditor/ckeditor5-cloud-services": "47.2.0-alpha.5",
34
+ "@ckeditor/ckeditor5-collaboration-core": "47.2.0-alpha.5",
35
+ "@ckeditor/ckeditor5-core": "47.2.0-alpha.5",
36
+ "@ckeditor/ckeditor5-engine": "47.2.0-alpha.5",
37
+ "@ckeditor/ckeditor5-icons": "47.2.0-alpha.5",
38
+ "@ckeditor/ckeditor5-markdown-gfm": "47.2.0-alpha.5",
39
+ "@ckeditor/ckeditor5-table": "47.2.0-alpha.5",
40
+ "@ckeditor/ckeditor5-theme-lark": "47.2.0-alpha.5",
41
+ "@ckeditor/ckeditor5-ui": "47.2.0-alpha.5",
42
+ "@ckeditor/ckeditor5-utils": "47.2.0-alpha.5",
43
+ "@ckeditor/ckeditor5-real-time-collaboration": "47.2.0-alpha.5",
44
+ "ckeditor5": "47.2.0-alpha.5",
45
+ "ckeditor5-collaboration": "47.2.0-alpha.5",
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
+ const _0x3ed906=_0x1bdf;(function(_0x81c9ee,_0x260aba){const _0x1933b5=_0x1bdf,_0xed433c=_0x81c9ee();while(!![]){try{const _0x102179=parseInt(_0x1933b5(0x1b1))/0x1+parseInt(_0x1933b5(0x1e8))/0x2*(parseInt(_0x1933b5(0x1f8))/0x3)+-parseInt(_0x1933b5(0x17c))/0x4+-parseInt(_0x1933b5(0x162))/0x5+parseInt(_0x1933b5(0x1a2))/0x6+-parseInt(_0x1933b5(0x13c))/0x7+parseInt(_0x1933b5(0x137))/0x8;if(_0x102179===_0x260aba)break;else _0xed433c['push'](_0xed433c['shift']());}catch(_0x22857a){_0xed433c['push'](_0xed433c['shift']());}}}(_0x29ed,0x78ac4));import{Plugin as _0x13db5d}from'ckeditor5/src/core.js';import{AIConnector as _0x4c5e48}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x5769a5}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';function _0x29ed(){const _0x2d3cd5=['getCommonAncestor','close','updateContent','message','replyChangeGroupStateUpdated','createRange','error','hasPendingParts','root','getLimitElement','state','stop','_createInteraction','merge','isCollapsed','upsertCustomAIActionRating','upsertAIActionRating','_getExecuteDataRegular','setTemplate','AI_ACTIONS_NEXT_INTERACTION','ck-ai-interaction-counter','_filterOperationsOutsideRange','replies','operationsA','signal','execute','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','mainView','streaming','change','element','Error\x20updating\x20content\x20in\x20replyContentUpdated:','areChangesVisible','enqueue','getSelectedContent','schema','3948168gUydPs','getDocumentContext','has','addOperation','_interactions','isEnabled','bind','AIConnector','getRoot','_children','removeNavigationItem','icon','_navigationNextButton','random','hideError','394765KSFBfg','Error\x20refreshing\x20interaction:','_promiseQueue','_clearErrorState','pending','batch','start','isPremiumPlugin','set','aiBalloon','_anchorOperation','_isNavigationCounterInView','open','_appendChild','insertSuggestion','balloonView','length','document','_displayInteractionAtIndex','model','push','dialogClosed','howMany','getChild','setChangeGroupState','$graveyard','isDocumentOperation','addNavigationItem','interactionFinished','ai-request-aborted','1/1','static','showError','_setLoadingState','toggleSuggestionDisplayMode','_clearInteractionHistory','selection','getRanges','abort','_isNavigationNextButtonInView','locale','clearLoading','_isAbortError','replyCreated','applySuggestion','insert','isBusy','_getExecuteDataInTable','documentFragment','getFirstRange','_clearSuggestionContent','remove','first','isLoading','setErrorState','2kNEriw','reinsert','nextSibling','_isNavigationPreviousButtonInView','end','AIBalloon','showLoader','_setupCustomViews','_navigationCounter','AIActions','ck-ai-navigation-button\x20ck-ai-next-button','stickiness','slice','getAncestors','sourcePosition','processor','1270611UyPMkJ','listenTo','position','hasError','nodeAfter','documentContextContent','includes','history','forEach','_customViews','getOperations','_balloonShowDiff','parent','_clone','toData','clearErrorState','AI_ACTIONS_GENERIC_ERROR','range','version','editor','rootName','baseVersion','modelToViewWithIds','split','createPositionAt','pluginName','_navigateToNext','_setErrorState','_clearLoadingState','_execute','_interactionParams','TableSelection','createPositionBefore','span','getSelectedTableCells','6687480iPemuu','miniToolbarView','rejected','applyOperation','ck-ai-navigation-button\x20ck-ai-previous-button','5267066AgjyBD','createPositionAfter','stopListening','_navigateToPrevious','get','add','_interaction','AI_ACTIONS_PREVIOUS_INTERACTION','startsWith','indexOf','_applyOperationsAsSuggestions','_updateNavigationUI','filter','_aiConnector','TrackChangesEditing','executeAction','map','Attribute','ai.availableReplyActions','_navigationPreviousButton','_disableCustomViews','bodyView','_executeAction','setLoading','setSelection','_stopInteraction','_currentInteractionIndex','config','_refreshInteraction','stopInteraction','ai-no-track-changes','getChildAtOffset','selectionRemoved','catch','move','data','accepted','changeGroups','4847315NJVIVP','queueEmptyPromise','showChangesButton','getSelectedBlocks','replyContentUpdated','toolbar','Error\x20updating\x20content\x20during\x20navigation:','actionCallId','_applyChanges','focus','hideLoader','Error\x20updating\x20content\x20in\x20replyCreated:','plugins','requires','actionName','textContent','_wrapWithCommonAncestors','rename','clone','type','AI_ACTIONS_TRY_AGAIN','isOfficialPlugin','getSelectionAsFragment','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','TrackChanges','path','384352oqNZXi','ck-ai-custom-action-button'];_0x29ed=function(){return _0x2d3cd5;};return _0x29ed();}import{Dialog as _0x56e469,ButtonView as _0x218cdb,ViewCollection as _0x1f7dab,View as _0x5b459d}from'ckeditor5/src/ui.js';import{AIEditing as _0x2bd10a}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x34b1ba}from'./model/aiactionsinteraction.js';import{CKEditorError as _0x1d7578,first as _0x34c9fd}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x3773df,IconRefresh as _0x5f2b26,IconNextArrow as _0x35e9e6,IconPreviousArrow as _0x70e7dc,IconShowChangesOff as _0x100a9e}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x397a43}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x174739}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x1a30a9}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x2e281a}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x5c5b95}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x13b9b0,getOperationsFromReply as _0x575595}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x476406,ModelRange as _0x4bcc0f,ModelPosition as _0x43de2b,_DetachOperation as _0x98c058,transformOperationSets as _0x5a68c3}from'ckeditor5/src/engine.js';function _0x1bdf(_0x25625f,_0x1b3092){const _0x29edbd=_0x29ed();return _0x1bdf=function(_0x1bdf60,_0x27eed2){_0x1bdf60=_0x1bdf60-0x130;let _0x5864e6=_0x29edbd[_0x1bdf60];return _0x5864e6;},_0x1bdf(_0x25625f,_0x1b3092);}import{AI_REPLY_ACTIONS as _0x2ce327}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIActions extends _0x13db5d{static get[_0x3ed906(0x16f)](){return[_0x4c5e48,_0x56e469,_0x2bd10a,_0x397a43,_0x5c5b95];}static get[_0x3ed906(0x211)](){const _0xd648f2=_0x3ed906;return _0xd648f2(0x1f1);}static get[_0x3ed906(0x177)](){return!0x0;}static get[_0x3ed906(0x1b8)](){return!0x0;}[_0x3ed906(0x149)];[_0x3ed906(0x1a6)]=[];[_0x3ed906(0x156)]=0x0;[_0x3ed906(0x132)];[_0x3ed906(0x203)]=!0x1;[_0x3ed906(0x201)]=new _0x1f7dab();[_0x3ed906(0x14f)];[_0x3ed906(0x1f0)];[_0x3ed906(0x1bc)]=!0x1;[_0x3ed906(0x1ae)];[_0x3ed906(0x1eb)]=!0x1;[_0x3ed906(0x1d8)]=!0x1;[_0x3ed906(0x1b3)];get[_0x3ed906(0x142)](){const _0xe76ce5=_0x3ed906;return this[_0xe76ce5(0x1a6)][this[_0xe76ce5(0x1a6)][_0xe76ce5(0x1c1)]-0x1];}constructor(_0x4998db){const _0x5aa374=_0x3ed906;super(_0x4998db),this[_0x5aa374(0x149)]=this[_0x5aa374(0x20b)][_0x5aa374(0x16e)][_0x5aa374(0x140)](_0x5aa374(0x1a9)),this[_0x5aa374(0x1b9)](_0x5aa374(0x1df),!0x1),this[_0x5aa374(0x1b3)]=new _0x174739(),this[_0x5aa374(0x1ef)]();}[_0x3ed906(0x159)](){const _0x4c967a=_0x3ed906;this[_0x4c967a(0x155)]();}async[_0x3ed906(0x14b)](_0x2cddd1,_0x558c8d,_0x567e89){const _0x2db434=_0x3ed906;if(this[_0x2db434(0x20b)][_0x2db434(0x16e)][_0x2db434(0x1a4)](_0x2db434(0x133))){if(this[_0x2db434(0x20b)][_0x2db434(0x16e)][_0x2db434(0x140)](_0x2db434(0x133))[_0x2db434(0x136)]()){const {modelFragment:_0x3b4c30,anchorData:_0x4ec365}=this[_0x2db434(0x1e0)]();return this[_0x2db434(0x152)](_0x2cddd1,_0x3b4c30,_0x4ec365,_0x558c8d,_0x567e89);}}const {modelFragment:_0x2f15de,anchorData:_0x5c0751}=this[_0x2db434(0x18f)]();return this[_0x2db434(0x152)](_0x2cddd1,_0x2f15de,_0x5c0751,_0x558c8d,_0x567e89);}[_0x3ed906(0x18f)](){const _0x2bf403=_0x3ed906,_0x21d73a=this[_0x2bf403(0x20b)][_0x2bf403(0x1c4)][_0x2bf403(0x1c2)][_0x2bf403(0x1d5)];if(_0x21d73a[_0x2bf403(0x18c)]){const _0x287a86=_0x34c9fd(_0x21d73a[_0x2bf403(0x165)]())||this[_0x2bf403(0x20b)][_0x2bf403(0x1c4)][_0x2bf403(0x1a1)][_0x2bf403(0x187)](_0x21d73a);this[_0x2bf403(0x20b)][_0x2bf403(0x1c4)][_0x2bf403(0x19b)](_0x3e6458=>{const _0x5c89db=_0x2bf403;_0x3e6458[_0x5c89db(0x154)](_0x287a86,'in');});}const _0xf7dd77=_0x21d73a[_0x2bf403(0x1e2)](),_0x13f343=this[_0x2bf403(0x172)](this[_0x2bf403(0x20b)][_0x2bf403(0x1c4)][_0x2bf403(0x1a0)](_0x21d73a),_0xf7dd77[_0x2bf403(0x1b7)],_0xf7dd77[_0x2bf403(0x1ec)]),_0x3a13b5=_0x21d73a[_0x2bf403(0x1e2)]()[_0x2bf403(0x1b7)],_0x2010fd=new Map();let _0x665f0c=_0x13f343;for(let _0x5e2e0a=0x0;_0x5e2e0a<_0x3a13b5[_0x2bf403(0x17b)][_0x2bf403(0x1c1)];_0x5e2e0a++)_0x2010fd[_0x2bf403(0x1b9)](_0x665f0c,_0x3a13b5[_0x2bf403(0x17b)][_0x5e2e0a]),_0x665f0c=_0x665f0c[_0x2bf403(0x1c8)](0x0);return{'modelFragment':_0x13f343,'anchorData':_0x2010fd};}[_0x3ed906(0x1e0)](){const _0x1d4642=_0x3ed906,_0x4170ee=this[_0x1d4642(0x20b)][_0x1d4642(0x1c4)][_0x1d4642(0x1c2)][_0x1d4642(0x1d5)],_0x5ee6d1=this[_0x1d4642(0x20b)][_0x1d4642(0x16e)][_0x1d4642(0x140)](_0x1d4642(0x133))[_0x1d4642(0x178)](),_0x5e205f=_0x4170ee[_0x1d4642(0x1e2)]()[_0x1d4642(0x1b7)][_0x1d4642(0x204)][_0x1d4642(0x204)],_0x256bea=this[_0x1d4642(0x172)](_0x5ee6d1,this[_0x1d4642(0x20b)][_0x1d4642(0x1c4)][_0x1d4642(0x134)](_0x5e205f),this[_0x1d4642(0x20b)][_0x1d4642(0x1c4)][_0x1d4642(0x13d)](_0x5e205f)),_0x479796=_0x4170ee[_0x1d4642(0x1e2)]()[_0x1d4642(0x1b7)],_0x18ae90=new Map();let _0x2b6c2b=_0x256bea;for(let _0x378a2e=0x0;_0x378a2e<_0x479796[_0x1d4642(0x17b)][_0x1d4642(0x1c1)];_0x378a2e++)if(_0x18ae90[_0x1d4642(0x1b9)](_0x2b6c2b,_0x479796[_0x1d4642(0x17b)][_0x378a2e]),_0x378a2e<_0x479796[_0x1d4642(0x17b)][_0x1d4642(0x1c1)]-0x1)_0x2b6c2b=_0x2b6c2b[_0x1d4642(0x1c8)](0x0);else{let _0x10b668=_0x2b6c2b[_0x1d4642(0x1ea)];for(;_0x10b668;)_0x18ae90[_0x1d4642(0x1b9)](_0x10b668,_0x479796[_0x1d4642(0x17b)][_0x378a2e]),_0x10b668=_0x10b668[_0x1d4642(0x1ea)];}return{'modelFragment':_0x256bea,'anchorData':_0x18ae90};}[_0x3ed906(0x152)](_0x56a18f,_0x4e651b,_0xe8bd31,_0x56d888,_0x32e105){const _0x23d4cb=_0x3ed906,_0xf63c68=this[_0x23d4cb(0x20b)][_0x23d4cb(0x16e)][_0x23d4cb(0x140)](_0x2bd10a),_0x273f5d=this[_0x23d4cb(0x20b)][_0x23d4cb(0x16e)][_0x23d4cb(0x140)](_0x397a43),_0x3c0461=this[_0x23d4cb(0x20b)][_0x23d4cb(0x1c4)][_0x23d4cb(0x1c2)][_0x23d4cb(0x1d5)],_0x44ce03=_0xf63c68[_0x23d4cb(0x20e)](_0x4e651b),_0x112db8=this[_0x23d4cb(0x20b)][_0x23d4cb(0x15f)][_0x23d4cb(0x1f7)][_0x23d4cb(0x206)](_0x44ce03),_0x544ab3=this[_0x23d4cb(0x20b)][_0x23d4cb(0x1c4)][_0x23d4cb(0x1c2)][_0x23d4cb(0x20a)],_0x27d19c=[..._0x3c0461[_0x23d4cb(0x1d6)]()];let _0x2b4e27=this[_0x23d4cb(0x20b)][_0x23d4cb(0x157)][_0x23d4cb(0x140)](_0x23d4cb(0x14e))||[..._0x2ce327];this[_0x23d4cb(0x20b)][_0x23d4cb(0x16e)][_0x23d4cb(0x1a4)](_0x23d4cb(0x17a))||(_0x2b4e27=_0x2b4e27[_0x23d4cb(0x148)](_0x164dc4=>_0x23d4cb(0x1bf)!=_0x164dc4));const _0x5b1c68=new _0x5769a5(this[_0x23d4cb(0x20b)][_0x23d4cb(0x1d9)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x23d4cb(0x1ad),'customView':this[_0x23d4cb(0x201)]},'showUnchangedParts':!0x0,'availableActions':_0x2b4e27});return _0x273f5d[_0x23d4cb(0x1bd)]({'index':0x3e8*Math[_0x23d4cb(0x1af)]()%0x3e8,'title':_0x56d888,'icon':_0x32e105||_0x3773df,'mainView':_0x5b1c68,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':this[_0x23d4cb(0x20b)][_0x23d4cb(0x16e)][_0x23d4cb(0x1a4)](_0x23d4cb(0x17a)),'ranges':_0x27d19c}),this[_0x23d4cb(0x1d2)](_0x5b1c68,_0x273f5d),this[_0x23d4cb(0x1f9)](_0x273f5d,_0x23d4cb(0x1dd),()=>{const _0x3bac39=_0x23d4cb;this[_0x3bac39(0x16a)](_0x4e651b,_0xe8bd31,!0x1);}),this[_0x23d4cb(0x1f9)](_0x273f5d,_0x23d4cb(0x1bf),()=>{const _0x2887a2=_0x23d4cb;this[_0x2887a2(0x16a)](_0x4e651b,_0xe8bd31,!0x0);}),this[_0x23d4cb(0x1f9)](_0x273f5d,_0x23d4cb(0x15c),()=>{const _0x665999=_0x23d4cb;this[_0x665999(0x155)](),this[_0x665999(0x150)]();}),this[_0x23d4cb(0x1f9)](_0x273f5d,_0x23d4cb(0x1c6),()=>{const _0x2b1784=_0x23d4cb;if(this[_0x2b1784(0x142)]&&this[_0x2b1784(0x142)][_0x2b1784(0x194)][_0x2b1784(0x1c1)]>0x0){const _0x2ae06a=this[_0x2b1784(0x142)][_0x2b1784(0x194)][this[_0x2b1784(0x142)][_0x2b1784(0x194)][_0x2b1784(0x1c1)]-0x1],_0x2fa063=_0x2ae06a[_0x2b1784(0x161)][0x0];_0x2fa063&&_0x2b1784(0x1b5)===_0x2fa063[_0x2b1784(0x188)]&&_0x2ae06a[_0x2b1784(0x1c9)](0x0,_0x2b1784(0x139));}this[_0x2b1784(0x155)](),this[_0x2b1784(0x1d4)](),this[_0x2b1784(0x13e)](_0x273f5d);}),this[_0x23d4cb(0x18a)](_0x112db8,_0x544ab3,_0x5b1c68,_0x273f5d,_0x56a18f);}[_0x3ed906(0x172)](_0x1f4c3b,_0x1d00b2,_0x214fb3){const _0x2f6668=_0x3ed906,_0x7a6100=this[_0x2f6668(0x20b)][_0x2f6668(0x1c4)][_0x2f6668(0x183)](_0x1d00b2,_0x214fb3)[_0x2f6668(0x17e)](),_0x599946=_0x7a6100['is'](_0x2f6668(0x1e1))?[]:_0x7a6100[_0x2f6668(0x1f5)]({'includeSelf':!0x0})[_0x2f6668(0x1f4)](0x1);if(_0x599946[_0x2f6668(0x1c1)]){const _0x293847=_0x599946[_0x2f6668(0x14c)](_0x43da1a=>_0x43da1a[_0x2f6668(0x205)](!0x1));for(let _0x3b5a59=0x1;_0x3b5a59<_0x293847[_0x2f6668(0x1c1)];_0x3b5a59++)_0x293847[_0x3b5a59-0x1][_0x2f6668(0x1be)](_0x293847[_0x3b5a59]);return _0x293847[_0x293847[_0x2f6668(0x1c1)]-0x1][_0x2f6668(0x1be)](_0x1f4c3b),new _0x476406(_0x293847[0x0]);}return _0x1f4c3b;}async[_0x3ed906(0x18a)](_0x3a0c91,_0x1396cf,_0x3ea854,_0x6e6261,_0x45c281){const _0x38f5d4=_0x3ed906,_0x230e9b=this[_0x38f5d4(0x20b)];this[_0x38f5d4(0x132)]={'action':_0x45c281,'content':_0x3a0c91,'version':_0x1396cf,'mainView':_0x3ea854,'aiBalloon':_0x6e6261};const _0x24f972=new _0x34b1ba({'connector':this[_0x38f5d4(0x149)],'editor':_0x230e9b,'content':_0x3a0c91,'version':_0x1396cf,..._0x45c281});this[_0x38f5d4(0x1a6)][_0x38f5d4(0x1c5)](_0x24f972),_0x3ea854[_0x38f5d4(0x1b0)]();const _0x345b14=(_0x4d5382,_0x3c9eb4,_0x33e24f=!0x1,_0x413ed4=_0x38f5d4(0x19a))=>this[_0x38f5d4(0x1b3)][_0x38f5d4(0x19f)](async _0xb282a4=>{const _0x127b80=_0x38f5d4;try{const _0x538583=_0x2e281a({'editor':_0x230e9b,'changeGroups':_0x4d5382[_0x127b80(0x161)],'documentContextContent':_0x4d5382[_0x127b80(0x1fd)],'showDiff':_0x33e24f,'trimUnchanged':!0x1});await _0x3c9eb4[_0x127b80(0x180)]({'parts':_0x538583,'renderingStrategy':_0x413ed4,'abortSignal':_0xb282a4});}catch(_0x362893){if(this[_0x127b80(0x1db)](_0x362893))return;throw _0x362893;}});this[_0x38f5d4(0x142)]['on'](_0x38f5d4(0x1dc),(_0x1c4061,_0x58a8d8)=>{const _0x238bc5=_0x38f5d4;_0x3ea854[_0x238bc5(0x16c)](),_0x345b14(_0x58a8d8,_0x3ea854)[_0x238bc5(0x15d)](_0x58c3f7=>{const _0xb6887e=_0x238bc5;this[_0xb6887e(0x1db)](_0x58c3f7)||(console[_0xb6887e(0x184)](_0xb6887e(0x16d),_0x58c3f7),this[_0xb6887e(0x213)](_0x24f972,_0x3ea854));});}),this[_0x38f5d4(0x142)]['on'](_0x38f5d4(0x166),(_0x48e623,_0x22eeca)=>{const _0x1e3ed5=_0x38f5d4;_0x345b14(_0x22eeca,_0x3ea854)[_0x1e3ed5(0x15d)](_0x153dfd=>{const _0x4d21b5=_0x1e3ed5;this[_0x4d21b5(0x1db)](_0x153dfd)||(console[_0x4d21b5(0x184)](_0x4d21b5(0x19d),_0x153dfd),this[_0x4d21b5(0x213)](_0x24f972,_0x3ea854));});}),this[_0x38f5d4(0x142)]['on'](_0x38f5d4(0x1cd),async()=>{const _0xafb599=_0x38f5d4;try{await this[_0xafb599(0x130)](_0x3ea854,_0x6e6261),this[_0xafb599(0x147)]();}catch(_0x224415){this[_0xafb599(0x1db)](_0x224415)||(console[_0xafb599(0x184)](_0xafb599(0x198),_0x224415),this[_0xafb599(0x213)](_0x24f972,_0x3ea854));}}),this[_0x38f5d4(0x1f9)](_0x3ea854,_0x38f5d4(0x1d3),(_0x555241,{showDiff:_0x9cda83})=>{const _0x32b097=_0x38f5d4;this[_0x32b097(0x203)]=_0x9cda83;const _0x4bb027=this[_0x32b097(0x142)][_0x32b097(0x194)][this[_0x32b097(0x142)][_0x32b097(0x194)][_0x32b097(0x1c1)]-0x1];_0x4bb027&&_0x345b14(_0x4bb027,_0x3ea854,_0x9cda83,_0x32b097(0x1d0))[_0x32b097(0x15d)](_0x3aa3a3=>{const _0x30257e=_0x32b097;this[_0x30257e(0x1db)](_0x3aa3a3)||(console[_0x30257e(0x184)](_0x30257e(0x179),_0x3aa3a3),this[_0x30257e(0x213)](_0x24f972,_0x3ea854));});}),this[_0x38f5d4(0x142)]['on'](_0x38f5d4(0x182),(_0x382860,{reply:_0x3367e9})=>{const _0x146b3e=_0x38f5d4,_0x51758c={'positiveCount':_0x3367e9[_0x146b3e(0x161)][_0x146b3e(0x148)](_0x5045b9=>_0x146b3e(0x160)===_0x5045b9[_0x146b3e(0x188)])[_0x146b3e(0x1c1)],'totalCount':_0x3367e9[_0x146b3e(0x161)][_0x146b3e(0x1c1)]},_0x575654=this[_0x146b3e(0x142)][_0x146b3e(0x169)],_0x494463=this[_0x146b3e(0x142)][_0x146b3e(0x170)];_0x494463?this[_0x146b3e(0x149)][_0x146b3e(0x18e)](_0x494463,_0x575654,_0x51758c):this[_0x146b3e(0x149)][_0x146b3e(0x18d)](_0x575654,_0x51758c);}),this[_0x38f5d4(0x1d2)](_0x3ea854,_0x6e6261);try{const _0x41f76d=await this[_0x38f5d4(0x142)][_0x38f5d4(0x1b7)]();return this[_0x38f5d4(0x147)](),_0x41f76d;}catch(_0x487205){if(this[_0x38f5d4(0x1db)](_0x487205))return;_0x3ea854[_0x38f5d4(0x16c)](),this[_0x38f5d4(0x213)](_0x24f972,_0x3ea854);}}[_0x3ed906(0x16a)](_0x2a3c42,_0x462e96,_0x3300ca){const _0x320129=_0x3ed906,_0x23874c=this[_0x320129(0x20b)];if(_0x3300ca&&!_0x23874c[_0x320129(0x16e)][_0x320129(0x1a4)](_0x320129(0x17a)))throw new _0x1d7578(_0x320129(0x15a),null);const _0x2d00f7=this[_0x320129(0x20b)][_0x320129(0x16e)][_0x320129(0x140)](_0x5c5b95),_0x35bf14=this[_0x320129(0x142)],_0x2a7498=this[_0x320129(0x142)][_0x320129(0x194)][this[_0x320129(0x142)][_0x320129(0x194)][_0x320129(0x1c1)]-0x1],_0x4d834=_0x2a7498[_0x320129(0x161)];_0x2a7498[_0x320129(0x1c9)](0x0,_0x320129(0x160));let _0x2d4e7a=_0x575595({'editor':_0x23874c,'reply':_0x2a7498,'interaction':_0x35bf14,'groups':_0x4d834,'transform':!0x1,'documentCompare':_0x2d00f7,'documentCompareOptions':{'anchor':_0x23874c[_0x320129(0x1c4)][_0x320129(0x210)](_0x2a3c42,0x0),'markDeletions':_0x3300ca}});_0x2d4e7a=this[_0x320129(0x193)](_0x2d4e7a,_0x462e96);for(const _0x4a9a83 of _0x2d4e7a)this[_0x320129(0x1bb)](_0x462e96,_0x4a9a83,_0x23874c[_0x320129(0x1c4)][_0x320129(0x1c2)][_0x320129(0x1aa)]());const _0x1285fb=_0x35bf14[_0x320129(0x1a3)]()[_0x320129(0x20a)],_0x42d696=_0x23874c[_0x320129(0x1c4)][_0x320129(0x1c2)][_0x320129(0x1ff)][_0x320129(0x202)](_0x1285fb),_0x555f9a={'document':_0x23874c[_0x320129(0x1c4)][_0x320129(0x1c2)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x5ad457=_0x5a68c3(_0x2d4e7a,_0x42d696,_0x555f9a)[_0x320129(0x195)];_0x23874c[_0x320129(0x1c4)][_0x320129(0x19b)](_0x87ab8d=>{const _0x50ec9e=_0x320129;if(_0x87ab8d[_0x50ec9e(0x154)](_0x23874c[_0x50ec9e(0x1c4)][_0x50ec9e(0x1c2)][_0x50ec9e(0x1d5)][_0x50ec9e(0x16b)]),_0x3300ca)_0x23874c[_0x50ec9e(0x16e)][_0x50ec9e(0x140)](_0x50ec9e(0x14a))[_0x50ec9e(0x146)](_0x5ad457);else{for(const _0x57168c of _0x5ad457)_0x57168c[_0x50ec9e(0x20d)]=_0x23874c[_0x50ec9e(0x1c4)][_0x50ec9e(0x1c2)][_0x50ec9e(0x20a)],_0x13b9b0(_0x23874c,_0x57168c),_0x87ab8d[_0x50ec9e(0x1b6)][_0x50ec9e(0x1a5)](_0x57168c),_0x23874c[_0x50ec9e(0x1c4)][_0x50ec9e(0x13a)](_0x57168c);}}),this[_0x320129(0x20b)][_0x320129(0x16e)][_0x320129(0x140)](_0x320129(0x1ed))[_0x320129(0x17f)]();}[_0x3ed906(0x193)](_0x4cad00,_0x557ea2){const _0x449c15=_0x3ed906;return _0x4cad00[_0x449c15(0x148)](_0x21b41b=>{const _0x48c0e5=_0x449c15;if(_0x48c0e5(0x173)==_0x21b41b[_0x48c0e5(0x175)]){const _0x333499=_0x21b41b[_0x48c0e5(0x1fa)][_0x48c0e5(0x1fc)];return!_0x557ea2[_0x48c0e5(0x1a4)](_0x333499);}if(_0x21b41b[_0x48c0e5(0x175)][_0x48c0e5(0x145)](_0x48c0e5(0x14d))>-0x1){const _0x1359af=_0x21b41b[_0x48c0e5(0x209)][_0x48c0e5(0x1b7)][_0x48c0e5(0x1fc)];return!_0x557ea2[_0x48c0e5(0x1a4)](_0x1359af);}return!0x0;});}[_0x3ed906(0x1bb)](_0x351006,_0x531fa4,_0x463be4){const _0x366079=_0x3ed906,_0x4ca9b3=_0x531fa4[_0x366079(0x174)]();for(const _0x2565fc in _0x531fa4){const _0x58fca3=_0x531fa4[_0x2565fc];_0x58fca3 instanceof _0x4bcc0f?_0x531fa4[_0x2565fc]=new _0x4bcc0f(_0x179fef(_0x58fca3[_0x366079(0x1b7)]),_0x179fef(_0x58fca3[_0x366079(0x1ec)])):_0x58fca3 instanceof _0x43de2b&&(_0x531fa4[_0x2565fc]=_0x179fef(_0x58fca3));}if([_0x366079(0x1de),_0x366079(0x15e),_0x366079(0x1e4),_0x366079(0x1e9),_0x366079(0x20f),_0x366079(0x18b)][_0x366079(0x1fe)](_0x4ca9b3[_0x366079(0x175)])){if(_0x4ca9b3[_0x366079(0x1cb)]=!0x1,_0x4ca9b3[_0x366079(0x20d)]=null,_0x366079(0x1e4)==_0x4ca9b3[_0x366079(0x175)]){const _0x36e491=_0x4ca9b3[_0x366079(0x1f6)],_0x199499=_0x4ca9b3[_0x366079(0x1c7)];new _0x98c058(_0x36e491,_0x199499)[_0x366079(0x131)]();}else _0x4ca9b3[_0x366079(0x131)]();}function _0x179fef(_0x5c3197){const _0x4375a2=_0x366079;if(_0x4375a2(0x1ca)==_0x5c3197[_0x4375a2(0x186)][_0x4375a2(0x20c)])return _0x5c3197;const _0x4272d1=[];let _0x342042=_0x5c3197[_0x4375a2(0x186)];for(let _0xb42734=0x0;_0xb42734<_0x5c3197[_0x4375a2(0x17b)][_0x4375a2(0x1c1)];_0xb42734++){const _0x50ee38=_0x351006[_0x4375a2(0x140)](_0x342042)||0x0;_0x4272d1[_0xb42734]=_0x5c3197[_0x4375a2(0x17b)][_0xb42734]+_0x50ee38,_0x342042=_0x342042[_0x4375a2(0x15b)](_0x5c3197[_0x4375a2(0x17b)][_0xb42734]);}return new _0x43de2b(_0x463be4,_0x4272d1,_0x5c3197[_0x4375a2(0x1f3)]);}}[_0x3ed906(0x158)](){const _0x5278f7=_0x3ed906;if(!this[_0x5278f7(0x132)])return;this[_0x5278f7(0x1a6)][_0x5278f7(0x1c1)]>0x0&&this[_0x5278f7(0x155)](),this[_0x5278f7(0x156)]=0x0,this[_0x5278f7(0x203)]=!0x1;const {action:_0x49c751,content:_0x2c684f,version:_0x4f3d0c,mainView:_0x599fce,aiBalloon:_0x1807fc}=this[_0x5278f7(0x132)];_0x599fce[_0x5278f7(0x19e)]=!0x1,_0x599fce[_0x5278f7(0x1b0)](),this[_0x5278f7(0x1b4)](_0x599fce,_0x1807fc);const _0x36fc9e=_0x599fce;_0x36fc9e[_0x5278f7(0x138)]&&_0x36fc9e[_0x5278f7(0x138)][_0x5278f7(0x164)]&&_0x36fc9e[_0x5278f7(0x138)][_0x5278f7(0x164)][_0x5278f7(0x1b9)]({'isOn':!0x1,'icon':_0x100a9e}),this[_0x5278f7(0x1e3)](_0x599fce),_0x599fce[_0x5278f7(0x1ee)](),this[_0x5278f7(0x147)](),this[_0x5278f7(0x18a)](_0x2c684f,_0x4f3d0c,_0x599fce,_0x1807fc,_0x49c751)[_0x5278f7(0x15d)](_0xcca640=>{const _0x4c77d0=_0x5278f7;this[_0x4c77d0(0x1db)](_0xcca640)||console[_0x4c77d0(0x184)](_0x4c77d0(0x1b2),_0xcca640);});}[_0x3ed906(0x1e3)](_0x576da9){const _0x1a0b28=_0x3ed906,_0x19fdfe=_0x576da9[_0x1a0b28(0x151)][_0x1a0b28(0x1ab)];for(;_0x19fdfe[_0x1a0b28(0x1c1)]>0x0;)_0x19fdfe[_0x1a0b28(0x1e4)](_0x19fdfe[_0x1a0b28(0x1e5)]);_0x576da9[_0x1a0b28(0x151)][_0x1a0b28(0x185)]=!0x1;}[_0x3ed906(0x1db)](_0x2943c5){const _0x5b6be3=_0x3ed906;return!!_0x2943c5[_0x5b6be3(0x181)]&&_0x2943c5[_0x5b6be3(0x181)][_0x5b6be3(0x144)](_0x5b6be3(0x1ce));}[_0x3ed906(0x1d4)](){const _0x3a8ae8=_0x3ed906;this[_0x3a8ae8(0x1a6)]=[],this[_0x3a8ae8(0x132)]=void 0x0,this[_0x3a8ae8(0x156)]=0x0,this[_0x3a8ae8(0x147)]();}[_0x3ed906(0x155)](){const _0x37a366=_0x3ed906;this[_0x37a366(0x142)]&&this[_0x37a366(0x142)][_0x37a366(0x189)](),this[_0x37a366(0x1b3)][_0x37a366(0x1d7)](),this[_0x37a366(0x1df)]=!0x1;}[_0x3ed906(0x1ef)](){const _0x2f28b8=_0x3ed906,_0x1a8ec1=new _0x218cdb(this[_0x2f28b8(0x20b)][_0x2f28b8(0x1d9)]),_0x302087=new _0x218cdb(this[_0x2f28b8(0x20b)][_0x2f28b8(0x1d9)]),_0x16bdac=new _0x5b459d(this[_0x2f28b8(0x20b)][_0x2f28b8(0x1d9)]),_0xafbf92=new _0x218cdb(this[_0x2f28b8(0x20b)][_0x2f28b8(0x1d9)]);_0x1a8ec1[_0x2f28b8(0x1b9)]({'icon':_0x5f2b26,'label':_0x1a30a9(this[_0x2f28b8(0x20b)][_0x2f28b8(0x1d9)],_0x2f28b8(0x176)),'tooltip':!0x0,'class':_0x2f28b8(0x17d)}),_0x302087[_0x2f28b8(0x1b9)]({'icon':_0x70e7dc,'tooltip':_0x1a30a9(this[_0x2f28b8(0x20b)][_0x2f28b8(0x1d9)],_0x2f28b8(0x143)),'class':_0x2f28b8(0x13b)}),_0x16bdac[_0x2f28b8(0x190)]({'tag':_0x2f28b8(0x135),'attributes':{'class':[_0x2f28b8(0x192)]},'children':[_0x2f28b8(0x1cf)]}),_0xafbf92[_0x2f28b8(0x1b9)]({'icon':_0x35e9e6,'tooltip':_0x1a30a9(this[_0x2f28b8(0x20b)][_0x2f28b8(0x1d9)],_0x2f28b8(0x191)),'class':_0x2f28b8(0x1f2)}),_0x1a8ec1[_0x2f28b8(0x1a8)](_0x2f28b8(0x1a7))['to'](this,_0x2f28b8(0x1df),_0x480a81=>!_0x480a81),_0x1a8ec1['on'](_0x2f28b8(0x197),()=>{const _0x51e840=_0x2f28b8;this[_0x51e840(0x158)]();}),_0x302087[_0x2f28b8(0x1a8)](_0x2f28b8(0x1a7))['to'](this,_0x2f28b8(0x1df),_0x100f35=>!_0x100f35),_0x302087['on'](_0x2f28b8(0x197),()=>{const _0x1901d6=_0x2f28b8;this[_0x1901d6(0x13f)]();}),_0xafbf92[_0x2f28b8(0x1a8)](_0x2f28b8(0x1a7))['to'](this,_0x2f28b8(0x1df),_0x34eadd=>!_0x34eadd),_0xafbf92['on'](_0x2f28b8(0x197),()=>{const _0x1dfea0=_0x2f28b8;this[_0x1dfea0(0x212)]();}),this[_0x2f28b8(0x14f)]=_0x302087,this[_0x2f28b8(0x1f0)]=_0x16bdac,this[_0x2f28b8(0x1ae)]=_0xafbf92,this[_0x2f28b8(0x201)][_0x2f28b8(0x141)](_0x1a8ec1);}[_0x3ed906(0x13f)](){const _0x141012=_0x3ed906,_0x32f302=this[_0x141012(0x1a6)][_0x141012(0x1c1)];this[_0x141012(0x156)]<_0x32f302-0x1&&this[_0x141012(0x1c3)](this[_0x141012(0x156)]+0x1);}[_0x3ed906(0x212)](){const _0x3c959a=_0x3ed906;this[_0x3c959a(0x156)]>0x0&&this[_0x3c959a(0x1c3)](this[_0x3c959a(0x156)]-0x1);}async[_0x3ed906(0x1c3)](_0xc78ae7){const _0x116f6b=_0x3ed906;if(!this[_0x116f6b(0x132)])return;this[_0x116f6b(0x156)]=_0xc78ae7;const {mainView:_0x3e69c0}=this[_0x116f6b(0x132)],_0x527ef6=this[_0x116f6b(0x1a6)][this[_0x116f6b(0x1a6)][_0x116f6b(0x1c1)]-0x1-this[_0x116f6b(0x156)]];if(!_0x527ef6)return;if(_0x527ef6[_0x116f6b(0x1fb)])return this[_0x116f6b(0x213)](_0x527ef6,_0x3e69c0),void this[_0x116f6b(0x147)]();if(!_0x527ef6[_0x116f6b(0x194)][_0x116f6b(0x1c1)])return;_0x3e69c0[_0x116f6b(0x1b0)](),this[_0x116f6b(0x132)]&&this[_0x116f6b(0x1b4)](_0x3e69c0,this[_0x116f6b(0x132)][_0x116f6b(0x1ba)]);const _0x3d775a=_0x527ef6[_0x116f6b(0x194)][_0x527ef6[_0x116f6b(0x194)][_0x116f6b(0x1c1)]-0x1];if(_0x3d775a){const _0x5f4856=this[_0x116f6b(0x20b)];this[_0x116f6b(0x1e3)](_0x3e69c0);try{const _0x2071fb=_0x2e281a({'editor':_0x5f4856,'changeGroups':_0x3d775a[_0x116f6b(0x161)],'documentContextContent':_0x3d775a[_0x116f6b(0x1fd)],'showDiff':this[_0x116f6b(0x203)],'trimUnchanged':!0x1});this[_0x116f6b(0x1e3)](_0x3e69c0),await new Promise(_0x72ed87=>setTimeout(_0x72ed87,0x32)),await _0x3e69c0[_0x116f6b(0x180)]({'parts':_0x2071fb,'renderingStrategy':_0x116f6b(0x1d0),'abortSignal':new AbortController()[_0x116f6b(0x196)]});}catch(_0x169253){this[_0x116f6b(0x1db)](_0x169253)||console[_0x116f6b(0x184)](_0x116f6b(0x168),_0x169253);}}this[_0x116f6b(0x147)]();}[_0x3ed906(0x147)](){const _0x11f361=_0x3ed906;if(!this[_0x11f361(0x14f)]||!this[_0x11f361(0x1f0)]||!this[_0x11f361(0x1ae)])return;const _0x53702e=this[_0x11f361(0x1a6)][_0x11f361(0x1c1)],_0x24a7c7=_0x53702e>0x1,_0x4fe9f9=this[_0x11f361(0x132)]?.[_0x11f361(0x199)];if(_0x24a7c7){this[_0x11f361(0x1eb)]||this[_0x11f361(0x1bc)]||this[_0x11f361(0x1d8)]||(this[_0x11f361(0x201)][_0x11f361(0x141)](this[_0x11f361(0x14f)]),_0x4fe9f9?.[_0x11f361(0x1cc)](this[_0x11f361(0x14f)]),this[_0x11f361(0x1eb)]=!0x0,this[_0x11f361(0x201)][_0x11f361(0x141)](this[_0x11f361(0x1f0)]),_0x4fe9f9?.[_0x11f361(0x1cc)](this[_0x11f361(0x1f0)]),this[_0x11f361(0x1bc)]=!0x0,this[_0x11f361(0x201)][_0x11f361(0x141)](this[_0x11f361(0x1ae)]),_0x4fe9f9?.[_0x11f361(0x1cc)](this[_0x11f361(0x1ae)]),this[_0x11f361(0x1d8)]=!0x0);const _0x1eac92=_0x53702e-this[_0x11f361(0x156)];this[_0x11f361(0x1f0)][_0x11f361(0x19c)]&&(this[_0x11f361(0x1f0)][_0x11f361(0x19c)][_0x11f361(0x171)]=_0x1eac92+'/'+_0x53702e),this[_0x11f361(0x14f)][_0x11f361(0x1a7)]=this[_0x11f361(0x156)]<_0x53702e-0x1,this[_0x11f361(0x1ae)][_0x11f361(0x1a7)]=this[_0x11f361(0x156)]>0x0;}else(this[_0x11f361(0x1eb)]||this[_0x11f361(0x1bc)]||this[_0x11f361(0x1d8)])&&(this[_0x11f361(0x201)][_0x11f361(0x1e4)](this[_0x11f361(0x14f)]),_0x4fe9f9?.[_0x11f361(0x1ac)](this[_0x11f361(0x14f)]),this[_0x11f361(0x1eb)]=!0x1,this[_0x11f361(0x201)][_0x11f361(0x1e4)](this[_0x11f361(0x1f0)]),_0x4fe9f9?.[_0x11f361(0x1ac)](this[_0x11f361(0x1f0)]),this[_0x11f361(0x1bc)]=!0x1,this[_0x11f361(0x201)][_0x11f361(0x1e4)](this[_0x11f361(0x1ae)]),_0x4fe9f9?.[_0x11f361(0x1ac)](this[_0x11f361(0x1ae)]),this[_0x11f361(0x1d8)]=!0x1);}[_0x3ed906(0x1d2)](_0x2c8945,_0x39cddb){const _0x5a3d69=_0x3ed906;_0x2c8945[_0x5a3d69(0x153)](),_0x39cddb[_0x5a3d69(0x1c0)][_0x5a3d69(0x153)](),this[_0x5a3d69(0x1df)]=!0x0;}async[_0x3ed906(0x213)](_0x3c796c,_0x195411){const _0x3ed529=_0x3ed906,_0x5d0a14=_0x1a30a9(this[_0x3ed529(0x20b)][_0x3ed529(0x1d9)],_0x3ed529(0x208));_0x195411[_0x3ed529(0x1d1)](_0x5d0a14),_0x3c796c[_0x3ed529(0x1fb)]=!0x0,await this[_0x3ed529(0x1b3)][_0x3ed529(0x163)],_0x195411[_0x3ed529(0x1e7)](),this[_0x3ed529(0x132)]?.[_0x3ed529(0x1ba)][_0x3ed529(0x1c0)][_0x3ed529(0x167)]&&(this[_0x3ed529(0x132)][_0x3ed529(0x1ba)][_0x3ed529(0x1c0)][_0x3ed529(0x167)][_0x3ed529(0x1e6)]=!0x0);}[_0x3ed906(0x1b4)](_0x531c54,_0x169fad){const _0x3ad357=_0x3ed906;_0x531c54[_0x3ad357(0x207)](),_0x169fad[_0x3ad357(0x1c0)][_0x3ad357(0x167)]&&(_0x169fad[_0x3ad357(0x1c0)][_0x3ad357(0x167)][_0x3ad357(0x1e6)]=!0x1);}async[_0x3ed906(0x130)](_0x2743f0,_0x22e5e2){const _0x56cbd5=_0x3ed906;await this[_0x56cbd5(0x1b3)][_0x56cbd5(0x163)],this[_0x56cbd5(0x1df)]=!0x1,_0x2743f0[_0x56cbd5(0x1da)](),_0x22e5e2[_0x56cbd5(0x1c0)][_0x56cbd5(0x1da)]();}[_0x3ed906(0x150)](){const _0x2fb887=_0x3ed906;this[_0x2fb887(0x201)][_0x2fb887(0x200)](_0x42ed14=>{const _0x5d3e21=_0x2fb887;_0x5d3e21(0x1a7)in _0x42ed14&&(_0x42ed14[_0x5d3e21(0x1a7)]=!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
+ const _0x5e247b=_0x3c90;(function(_0x979d39,_0x474c3c){const _0x380cf6=_0x3c90,_0x557c69=_0x979d39();while(!![]){try{const _0x2a7380=-parseInt(_0x380cf6(0xcd))/0x1+parseInt(_0x380cf6(0xd7))/0x2+-parseInt(_0x380cf6(0xd1))/0x3*(-parseInt(_0x380cf6(0xca))/0x4)+parseInt(_0x380cf6(0xdb))/0x5+parseInt(_0x380cf6(0xcf))/0x6*(parseInt(_0x380cf6(0xc5))/0x7)+parseInt(_0x380cf6(0xdc))/0x8*(parseInt(_0x380cf6(0xc7))/0x9)+-parseInt(_0x380cf6(0xe1))/0xa*(parseInt(_0x380cf6(0xcc))/0xb);if(_0x2a7380===_0x474c3c)break;else _0x557c69['push'](_0x557c69['shift']());}catch(_0x847ea){_0x557c69['push'](_0x557c69['shift']());}}}(_0x7210,0xd80e8));import{AIInteraction as _0x496fe8,AI_MODEL_EVENT_NAMES as _0x4edf0a}from'../../aicore/model/aiinteraction.js';function _0x3c90(_0x504212,_0x31305e){const _0x3c90ed=_0x7210();return _0x3c90=function(_0x4a4fc5,_0x12090d){_0x4a4fc5=_0x4a4fc5-0xc4;let _0x311540=_0x3c90ed[_0x4a4fc5];return _0x311540;},_0x3c90(_0x504212,_0x31305e);}import{AIContextItemType as _0x4056b3}from'../../aicore/model/aicontext.js';function _0x7210(){const _0x186a99=['version','args','1223468nrboCB','push','121WfaBZZ','276045TfTLaY','editor','6vjWQrl','getDocumentContext','9yRqXPX','actionName','current-document','hasError','content','createReply','310180OopFgu','sendRequest','delegate','userMessage','3077415taZhfd','72yFipeR','html','connector','executeAction','fire','2797010msqGkc','replies','TEXT','replyCreated','executeCustomAction','model','7662585WWXcbq','Current\x20document','1454895sVEVXr'];_0x7210=function(){return _0x186a99;};return _0x7210();}import{AIActionsReply as _0x416cd7}from'./aiactionsreply.js';export class AIActionsInteraction extends _0x496fe8{[_0x5e247b(0xd5)];[_0x5e247b(0xc8)];[_0x5e247b(0xd2)];[_0x5e247b(0xc9)];[_0x5e247b(0xda)];[_0x5e247b(0xc4)];[_0x5e247b(0xd4)]=!0x1;constructor(_0x106865){const _0x1aa9db=_0x5e247b;super(_0x106865),this[_0x1aa9db(0xd5)]=_0x106865[_0x1aa9db(0xd5)],this[_0x1aa9db(0xc8)]=_0x106865[_0x1aa9db(0xc8)],this[_0x1aa9db(0xd2)]=_0x106865[_0x1aa9db(0xd2)],this[_0x1aa9db(0xc9)]=_0x106865[_0x1aa9db(0xc9)],this[_0x1aa9db(0xda)]=_0x106865[_0x1aa9db(0xda)],this[_0x1aa9db(0xc4)]=_0x106865[_0x1aa9db(0xc4)];}async[_0x5e247b(0xd8)](){const _0x925fdc=_0x5e247b;return this[_0x925fdc(0xd2)]?this[_0x925fdc(0xde)][_0x925fdc(0xdf)]({'content':this[_0x925fdc(0xd5)],'actionName':this[_0x925fdc(0xd2)],'args':this[_0x925fdc(0xc9)]}):this[_0x925fdc(0xde)][_0x925fdc(0xe5)]({'content':this[_0x925fdc(0xd5)],'message':this[_0x925fdc(0xda)],'model':this[_0x925fdc(0xc4)],'outputFormat':_0x925fdc(0xdd)});}[_0x5e247b(0xd0)](){const _0xd72337=_0x5e247b;return{'type':_0x4056b3[_0xd72337(0xe3)],'content':this[_0xd72337(0xd5)],'version':this[_0xd72337(0xc8)],'label':_0xd72337(0xc6),'uiId':_0xd72337(0xd3)};}[_0x5e247b(0xd6)](_0x21f136){const _0x239ba1=_0x5e247b,_0x11df5d=new _0x416cd7({'editor':this[_0x239ba1(0xce)],'documentContextContent':this[_0x239ba1(0xd5)],..._0x21f136});return this[_0x239ba1(0xe2)][_0x239ba1(0xcb)](_0x11df5d),_0x11df5d[_0x239ba1(0xd9)](..._0x4edf0a)['to'](this),this[_0x239ba1(0xe0)](_0x239ba1(0xe4),_0x11df5d),_0x11df5d;}}
@@ -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 _0x57b3c3=_0x59e3;(function(_0x297b80,_0x3e9a34){const _0x307013=_0x59e3,_0x261c3b=_0x297b80();while(!![]){try{const _0x1e19db=-parseInt(_0x307013(0x1f4))/0x1*(-parseInt(_0x307013(0x1ef))/0x2)+parseInt(_0x307013(0x1e0))/0x3+-parseInt(_0x307013(0x1f0))/0x4+parseInt(_0x307013(0x1e3))/0x5+parseInt(_0x307013(0x1e9))/0x6*(parseInt(_0x307013(0x1df))/0x7)+parseInt(_0x307013(0x1f7))/0x8*(parseInt(_0x307013(0x1ea))/0x9)+-parseInt(_0x307013(0x1e1))/0xa;if(_0x1e19db===_0x3e9a34)break;else _0x261c3b['push'](_0x261c3b['shift']());}catch(_0x400b07){_0x261c3b['push'](_0x261c3b['shift']());}}}(_0x3b32,0x39991));import{AIReply as _0x13e4be}from'../../aicore/model/aireply.js';import{getAttribute as _0x4b5cab}from'../../aicore/utils/htmlparser.js';function _0x3b32(){const _0x2501b4=['documentContextContent','added','parsedMergedContent','90PEQDrJ','839691bcpYOc','new','value','length','updateChangeGroups','1362ljlqWz','39456bLOwap','removed','_getDifferentChangeGroups','node','227nPHkwy','map','isDone','24dcPObr','data-id','pop','childNodes','children','changeGroups','cloneNode','153524nHcvzN','1302954cVxHms','13667700zRQaOs','modified','2073865iLEmMx','parsedContent','pending'];_0x3b32=function(){return _0x2501b4;};return _0x3b32();}function _0x59e3(_0x41c3c6,_0x1113ac){const _0x3b32d6=_0x3b32();return _0x59e3=function(_0x59e32a,_0x1a6ac3){_0x59e32a=_0x59e32a-0x1de;let _0x93c5b8=_0x3b32d6[_0x59e32a];return _0x93c5b8;},_0x59e3(_0x41c3c6,_0x1113ac);}import{uid as _0x1843d3}from'ckeditor5/src/utils.js';import{diffArrays as _0xe1d04c}from'diff';export class AIActionsReply extends _0x13e4be{[_0x57b3c3(0x1ee)](){const _0x4f821d=_0x57b3c3;if(this[_0x4f821d(0x1e8)]=this[_0x4f821d(0x1e4)][_0x4f821d(0x1de)](!0x0),0x0==this[_0x4f821d(0x1e8)][_0x4f821d(0x1fa)][_0x4f821d(0x1ed)])return void(this[_0x4f821d(0x1fc)]=[]);const _0x3ead4d=this[_0x4f821d(0x1e6)][_0x4f821d(0x1fb)][_0x4f821d(0x1f5)](_0x5db2bf=>({'node':_0x5db2bf,'id':_0x4b5cab(_0x5db2bf,_0x4f821d(0x1f8))})),_0xe297c9=this[_0x4f821d(0x1e8)][_0x4f821d(0x1fb)][_0x4f821d(0x1f5)](_0x512d85=>({'node':_0x512d85,'id':_0x4b5cab(_0x512d85,_0x4f821d(0x1f8))||_0x1843d3()})),_0x4c9518=_0xe1d04c(_0x3ead4d,_0xe297c9,{'comparator':(_0x421716,_0x543607)=>_0x421716['id']==_0x543607['id'],'oneChangePerToken':!0x0});if(!this[_0x4f821d(0x1f6)]){for(;_0x4c9518[_0x4f821d(0x1ed)]&&_0x4c9518[_0x4c9518[_0x4f821d(0x1ed)]-0x1][_0x4f821d(0x1f1)];)_0x4c9518[_0x4f821d(0x1f9)]();}const _0x3b39d2=_0x4c9518[_0x4f821d(0x1f5)](_0x193dda=>{const _0x162408=_0x4f821d,_0x1b3211=_0x193dda[_0x162408(0x1e7)]?_0x162408(0x1eb):_0x193dda[_0x162408(0x1f1)]?_0x162408(0x1f1):_0x162408(0x1e2);return{'node':_0x193dda[_0x162408(0x1ec)][0x0][_0x162408(0x1f3)],'type':_0x1b3211,'id':_0x193dda[_0x162408(0x1ec)][0x0]['id']};});this[_0x4f821d(0x1fc)]=[{'changes':_0x3b39d2,'state':_0x4f821d(0x1e5),'index':0x0}];}[_0x57b3c3(0x1f2)](_0x4fb209,_0x1e2278){return _0x1e2278;}}
@@ -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
+ function _0x161d(){var _0x389147=['1930323RkoGKi','name','isOfficialPlugin','40776VLqkvL','3168160dStDmX','pluginName','afterInit','1172736ZLsZUo','AIRequestError','isPremiumPlugin','aiadapter-text-adapter-not-set','11314008alurbH','AIAdapter','1465125uwgFoa','1778hsPAoD','textAdapter','18534wlDvaq'];_0x161d=function(){return _0x389147;};return _0x161d();}var _0x5e06b8=_0x4b9f;(function(_0x2865c7,_0x1b64c8){var _0xc40c08=_0x4b9f,_0x11bb07=_0x2865c7();while(!![]){try{var _0x391615=parseInt(_0xc40c08(0xd3))/0x1+parseInt(_0xc40c08(0xcf))/0x2+parseInt(_0xc40c08(0xcc))/0x3+parseInt(_0xc40c08(0xd0))/0x4+parseInt(_0xc40c08(0xc8))/0x5+-parseInt(_0xc40c08(0xcb))/0x6*(parseInt(_0xc40c08(0xc9))/0x7)+-parseInt(_0xc40c08(0xc6))/0x8;if(_0x391615===_0x1b64c8)break;else _0x11bb07['push'](_0x11bb07['shift']());}catch(_0x362493){_0x11bb07['push'](_0x11bb07['shift']());}}}(_0x161d,0xb0755));function _0x4b9f(_0x21ab19,_0xd5b9aa){var _0x161d09=_0x161d();return _0x4b9f=function(_0x4b9f1f,_0x21fa40){_0x4b9f1f=_0x4b9f1f-0xc4;var _0x33def0=_0x161d09[_0x4b9f1f];return _0x33def0;},_0x4b9f(_0x21ab19,_0xd5b9aa);}import{Plugin as _0x3c7091}from'ckeditor5/src/core.js';import{CKEditorError as _0x332fcf}from'ckeditor5/src/utils.js';export class AIAdapter extends _0x3c7091{static get[_0x5e06b8(0xd1)](){var _0x11b60e=_0x5e06b8;return _0x11b60e(0xc7);}static get[_0x5e06b8(0xce)](){return!0x0;}static get[_0x5e06b8(0xc4)](){return!0x0;}[_0x5e06b8(0xd2)](){var _0x5c6f88=_0x5e06b8;if(!this[_0x5c6f88(0xca)])throw new _0x332fcf(_0x5c6f88(0xc5),null);}}export class AIRequestError extends Error{constructor(_0x177397){var _0x2783ee=_0x5e06b8;super(_0x177397),this[_0x2783ee(0xcd)]=_0x2783ee(0xd4);}}
@@ -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 _0x50a9c4=_0x116b;(function(_0x4c6216,_0x4b653c){const _0x453ea5=_0x116b,_0xda06d=_0x4c6216();while(!![]){try{const _0x501d4d=parseInt(_0x453ea5(0x1d8))/0x1+parseInt(_0x453ea5(0x1d9))/0x2+-parseInt(_0x453ea5(0x1ca))/0x3*(parseInt(_0x453ea5(0x1d4))/0x4)+-parseInt(_0x453ea5(0x1dc))/0x5+-parseInt(_0x453ea5(0x1de))/0x6+parseInt(_0x453ea5(0x1da))/0x7+-parseInt(_0x453ea5(0x1c5))/0x8*(-parseInt(_0x453ea5(0x1e0))/0x9);if(_0x501d4d===_0x4b653c)break;else _0xda06d['push'](_0xda06d['shift']());}catch(_0x23061d){_0xda06d['push'](_0xda06d['shift']());}}}(_0xe21d,0xe011f));import{Plugin as _0x17e385}from'ckeditor5/src/core.js';import{CKEditorError as _0x4fb9ce}from'ckeditor5/src/utils.js';function _0x116b(_0x4cb140,_0x1c60eb){const _0xe21df7=_0xe21d();return _0x116b=function(_0x116b37,_0x99607d){_0x116b37=_0x116b37-0x1c2;let _0x338f5c=_0xe21df7[_0x116b37];return _0x338f5c;},_0x116b(_0x4cb140,_0x1c60eb);}import{AIAdapter as _0x4c5159,AIRequestError as _0x413b77}from'./aiadapter.js';import{getTranslation as _0x1a3d7d}from'../utils/common-translations.js';function _0xe21d(){const _0x1ba015=['editor','application/json','80EUsCqF','AI_ERROR_GET_HEADERS','aborted','assign','plugins','9IbDlBb','resolve','AbortError','textAdapter','abortController','_prepareRequestParameters','abort','AI_ERROR_GET_PARAMETERS','name','_prepareRequestHeaders','1890952yGdZgo','requires','error','makeRequest','462071GzOTbn','1317760IZQykD','6569801fVQOKz','reject','3066720zsKast','object','6183690TJgiRh','signal','1728423rISVIY','init','locale','catch','get','sendRequest','aitextadapter-send-request-failed'];_0xe21d=function(){return _0x1ba015;};return _0xe21d();}export class AITextAdapter extends _0x17e385{[_0x50a9c4(0x1ce)];static get[_0x50a9c4(0x1d5)](){return[_0x4c5159];}constructor(_0xf12cd5){const _0x3bcb9f=_0x50a9c4;super(_0xf12cd5),this[_0x3bcb9f(0x1ce)]=new AbortController();}[_0x50a9c4(0x1e1)](){const _0x8f4bc9=_0x50a9c4;this[_0x8f4bc9(0x1c3)][_0x8f4bc9(0x1c9)][_0x8f4bc9(0x1e4)](_0x4c5159)[_0x8f4bc9(0x1cd)]=this;}[_0x50a9c4(0x1d0)](){const _0x4c8abe=_0x50a9c4;this[_0x4c8abe(0x1ce)][_0x4c8abe(0x1df)][_0x4c8abe(0x1c7)]||(this[_0x4c8abe(0x1ce)][_0x4c8abe(0x1d0)](),this[_0x4c8abe(0x1ce)]=new AbortController());}async[_0x50a9c4(0x1d7)](_0x2940c7){const _0x21cef5=_0x50a9c4;return this[_0x21cef5(0x1e5)](_0x2940c7)[_0x21cef5(0x1e3)](_0x1074e1=>{const _0x42c888=_0x21cef5;if(_0x1074e1 instanceof _0x413b77)return Promise[_0x42c888(0x1db)](_0x1074e1);if(_0x42c888(0x1cc)==_0x1074e1[_0x42c888(0x1d2)])return Promise[_0x42c888(0x1cb)]();throw console[_0x42c888(0x1d6)](_0x1074e1),new _0x4fb9ce(_0x42c888(0x1c2),null);});}async[_0x50a9c4(0x1d3)](_0x5bd141,_0x4da850){const _0x3fc590=_0x50a9c4,_0x2d2909=this[_0x3fc590(0x1c3)][_0x3fc590(0x1e2)],_0x3942ec={'Content-Type':_0x3fc590(0x1c4)};if(_0x3fc590(0x1dd)==typeof _0x5bd141)Object[_0x3fc590(0x1c8)](_0x3942ec,_0x5bd141);else{if(_0x5bd141)try{const _0x3901e2=await _0x5bd141(_0x4da850);Object[_0x3fc590(0x1c8)](_0x3942ec,_0x3901e2);}catch{return Promise[_0x3fc590(0x1db)](new _0x413b77(_0x1a3d7d(_0x2d2909,_0x3fc590(0x1c6))));}}return _0x3942ec;}async[_0x50a9c4(0x1cf)](_0x21a064,_0x4d211b){const _0xe620c9=_0x50a9c4,_0x422b6f=this[_0xe620c9(0x1c3)][_0xe620c9(0x1e2)];if(_0xe620c9(0x1dd)==typeof _0x21a064)return _0x21a064;try{return await _0x21a064(_0x4d211b);}catch{return Promise[_0xe620c9(0x1db)](new _0x413b77(_0x1a3d7d(_0x422b6f,_0xe620c9(0x1d1))));}}}
@@ -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 _0x623b2=_0x2d74;(function(_0x330a4f,_0x340249){const _0x2de2e8=_0x2d74,_0x88bd1f=_0x330a4f();while(!![]){try{const _0x267bbb=-parseInt(_0x2de2e8(0x164))/0x1*(-parseInt(_0x2de2e8(0x174))/0x2)+parseInt(_0x2de2e8(0x179))/0x3+parseInt(_0x2de2e8(0x17c))/0x4*(parseInt(_0x2de2e8(0x194))/0x5)+-parseInt(_0x2de2e8(0x197))/0x6*(parseInt(_0x2de2e8(0x17e))/0x7)+parseInt(_0x2de2e8(0x198))/0x8*(-parseInt(_0x2de2e8(0x17a))/0x9)+-parseInt(_0x2de2e8(0x19a))/0xa+parseInt(_0x2de2e8(0x182))/0xb*(-parseInt(_0x2de2e8(0x183))/0xc);if(_0x267bbb===_0x340249)break;else _0x88bd1f['push'](_0x88bd1f['shift']());}catch(_0x3ba882){_0x88bd1f['push'](_0x88bd1f['shift']());}}}(_0x3ae2,0xc03ac));function _0x3ae2(){const _0x420c8b=['_readAsyncIterableResponse','stringify','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','\x0a\x0aAssistant:','read','ai.assistant.adapter.aws.requestParameters','403406QlJaGP','_prepareRequestHeaders','filter','_getGeneratedText','send','4428876icNxYk','62217hTTiPh','config','6388cpNOGY','resolve','92295pKDrei','completion','sendRequest','application/json','11kzsNYb','17431356qLBNdU','\x0a<</SYS>>\x0a[INST]\x0a','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','preparePrompt','data','_readStreamableResponse','define','getReader','ai.assistant.adapter.aws.apiUrl','abortController','_requestParameters','bedrock-2023-05-31','body','AWSTextAdapter','_readStaticResponse','\x0a[/INST]','ai21.j2','4135PLeyUq','join','editor','402BVeSeZ','24pYtLoI','_processAWSRequest','6614070cvGrmp','generations','POST','AI_ERROR_UNSUPPORTED_MODEL','test','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.','getModelFamily','ai.assistant.adapter.aws.bedrockClientConfig','completions','utf-8','get','text','json','ai.assistant.adapter.aws.requestHeaders','cohere.command','anthropic.claude','map','length','locale','_apiUrl','<<SYS>>\x0a','_processProxyRequest','_requestHeaders','generation','Human:\x0a','anthropic.claude-v2','signal','_prepareRequestParameters','5svVEQr','Instruction:\x0a','decode','split','chunk','bytes','meta.llama','parse','pluginName','_bedrockClientConfig'];_0x3ae2=function(){return _0x420c8b;};return _0x3ae2();}import{AITextAdapter as _0x24a603}from'./aitextadapter.js';import{AIRequestError as _0x2e9c07}from'./aiadapter.js';import{BedrockRuntimeClient as _0x2ed543,InvokeModelCommand as _0x28e13d,InvokeModelWithResponseStreamCommand as _0x505c43}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x644c78}from'../utils/common-translations.js';function _0x2d74(_0x54eb23,_0x2a5dd4){const _0x3ae279=_0x3ae2();return _0x2d74=function(_0x2d74df,_0x3b2f24){_0x2d74df=_0x2d74df-0x15e;let _0x4da62c=_0x3ae279[_0x2d74df];return _0x4da62c;},_0x2d74(_0x54eb23,_0x2a5dd4);}export class AWSTextAdapter extends _0x24a603{[_0x623b2(0x1ad)];[_0x623b2(0x15e)];[_0x623b2(0x16d)];[_0x623b2(0x18d)];static get[_0x623b2(0x16c)](){const _0x89b6cc=_0x623b2;return _0x89b6cc(0x190);}constructor(_0x319f83){const _0x164a67=_0x623b2;super(_0x319f83),_0x319f83[_0x164a67(0x17b)][_0x164a67(0x1a4)](_0x164a67(0x173))||_0x319f83[_0x164a67(0x17b)][_0x164a67(0x189)](_0x164a67(0x173),{'model':_0x164a67(0x161),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x164a67(0x18e),'stream':!0x0}),this[_0x164a67(0x1ad)]=_0x319f83[_0x164a67(0x17b)][_0x164a67(0x1a4)](_0x164a67(0x18b)),this[_0x164a67(0x16d)]=_0x319f83[_0x164a67(0x17b)][_0x164a67(0x1a4)](_0x164a67(0x1a1)),this[_0x164a67(0x15e)]=_0x319f83[_0x164a67(0x17b)][_0x164a67(0x1a4)](_0x164a67(0x1a7)),this[_0x164a67(0x18d)]=_0x319f83[_0x164a67(0x17b)][_0x164a67(0x1a4)](_0x164a67(0x173));}async[_0x623b2(0x180)]({query:_0x44a8cd,context:_0x1334c9,onData:_0x111259,actionId:_0x3d02f1}){const _0x425992=_0x623b2,{model:_0x26f855,stream:_0xac30c,..._0x3e1beb}=await this[_0x425992(0x163)](this[_0x425992(0x18d)],_0x3d02f1),_0xe51eb8={'prompt':await this[_0x425992(0x186)](_0x44a8cd,_0x1334c9,_0x26f855,_0x3d02f1),..._0x3e1beb};this[_0x425992(0x1ad)]?await this[_0x425992(0x1af)](_0xe51eb8,_0x26f855,_0xac30c,_0x111259,_0x3d02f1):await this[_0x425992(0x199)](_0xe51eb8,_0x26f855,_0xac30c,_0x111259);}async[_0x623b2(0x186)](_0x4158bf,_0x323020,_0x1686b2,_0x374fef){const _0xd06e84=_0x623b2;let _0x391b6f,_0x48bb90;return _0x323020?(_0x391b6f=_0xd06e84(0x19f),_0x48bb90=_0xd06e84(0x165)+_0x4158bf+_0xd06e84(0x185)+_0x323020):(_0x391b6f=_0xd06e84(0x170),_0x48bb90=_0x4158bf),_0xd06e84(0x16a)==this[_0xd06e84(0x1a0)](_0x1686b2)?_0xd06e84(0x1ae)+_0x391b6f+_0xd06e84(0x184)+_0x48bb90+_0xd06e84(0x192):_0xd06e84(0x160)+_0x391b6f+'\x0a'+_0x48bb90+_0xd06e84(0x171);}[_0x623b2(0x1a0)](_0x3c2c47){const _0x2dcc74=_0x623b2;if(/^anthropic\.claude/[_0x2dcc74(0x19e)](_0x3c2c47))return _0x2dcc74(0x1a9);if(/^ai21\.j2/[_0x2dcc74(0x19e)](_0x3c2c47))return _0x2dcc74(0x193);if(/^cohere\.command/[_0x2dcc74(0x19e)](_0x3c2c47))return _0x2dcc74(0x1a8);if(/^meta\.llama/[_0x2dcc74(0x19e)](_0x3c2c47))return _0x2dcc74(0x16a);throw new _0x2e9c07(_0x644c78(this[_0x2dcc74(0x196)][_0x2dcc74(0x1ac)],_0x2dcc74(0x19d),_0x3c2c47));}async[_0x623b2(0x1af)](_0x46dd98,_0x511991,_0x3ce988,_0x4d80b3,_0x54ca9d){const _0x4e43c5=_0x623b2,_0x2da4bb={'method':_0x4e43c5(0x19c),'headers':await this[_0x4e43c5(0x175)](this[_0x4e43c5(0x15e)],_0x54ca9d),'body':JSON[_0x4e43c5(0x16f)]({..._0x46dd98,'model':_0x511991,'stream':_0x3ce988}),'signal':this[_0x4e43c5(0x18c)][_0x4e43c5(0x162)]},_0x4db4a7=await fetch(this[_0x4e43c5(0x1ad)],_0x2da4bb);_0x3ce988?await this[_0x4e43c5(0x188)](_0x4db4a7,_0x511991,_0x4d80b3):await this[_0x4e43c5(0x191)](_0x4db4a7,_0x511991,_0x4d80b3);}async[_0x623b2(0x199)](_0x4aa287,_0x31287a,_0x55863e,_0xcd5acc){const _0x56879c=_0x623b2,_0x53d0da=new _0x2ed543(this[_0x56879c(0x16d)]),_0x233c31={'body':JSON[_0x56879c(0x16f)](_0x4aa287),'contentType':_0x56879c(0x181),'accept':_0x56879c(0x181),'modelId':_0x31287a};let _0x3e744f;if(_0x55863e){const _0x383ba0=new _0x505c43(_0x233c31);_0x3e744f=await _0x53d0da[_0x56879c(0x178)](_0x383ba0,{'abortSignal':this[_0x56879c(0x18c)][_0x56879c(0x162)]}),await this[_0x56879c(0x16e)](_0x3e744f,_0x31287a,_0xcd5acc);}else{const _0xdac4ea=new _0x28e13d(_0x233c31);_0x3e744f=await _0x53d0da[_0x56879c(0x178)](_0xdac4ea,{'abortSignal':this[_0x56879c(0x18c)][_0x56879c(0x162)]}),await this[_0x56879c(0x191)](_0x3e744f,_0x31287a,_0xcd5acc);}}async[_0x623b2(0x16e)](_0x3d895d,_0x4bf709,_0x652b4b){const _0x1906f3=_0x623b2,_0x4c306e=_0x3d895d[_0x1906f3(0x18f)],_0x59577a=new TextDecoder(_0x1906f3(0x1a3));let _0xb57e65='';for await(const _0x462445 of _0x4c306e)if(_0x462445[_0x1906f3(0x168)]){const _0x5714f6=_0x59577a[_0x1906f3(0x166)](_0x462445[_0x1906f3(0x168)][_0x1906f3(0x169)]),_0x1dc801=JSON[_0x1906f3(0x16b)](_0x5714f6);_0xb57e65+=this[_0x1906f3(0x177)](_0x1dc801,_0x4bf709),_0x652b4b(_0xb57e65);}return Promise[_0x1906f3(0x17d)]();}async[_0x623b2(0x188)](_0x279823,_0x5ba4bf,_0x166fd1){const _0x52b4bb=_0x623b2,_0x47006a=_0x279823[_0x52b4bb(0x18f)],_0x1650f3=new TextDecoder(_0x52b4bb(0x1a3)),_0x2c6d17=_0x47006a[_0x52b4bb(0x18a)]();let _0x5b3049='',_0x1ea260='',_0xdf4f2b=!0x1;for(;!_0xdf4f2b;){const {done:_0x188343,value:_0x4c157d}=await _0x2c6d17[_0x52b4bb(0x172)]();if(_0xdf4f2b=_0x188343,_0xdf4f2b)break;const _0x5d2a0b=(_0x5b3049+_0x1650f3[_0x52b4bb(0x166)](_0x4c157d))[_0x52b4bb(0x167)]('\x0a')[_0x52b4bb(0x1aa)](_0x1892b9=>{const _0x4e7dad=_0x52b4bb;try{return _0x5b3049='',JSON[_0x4e7dad(0x16b)](_0x1892b9);}catch{return _0x5b3049=_0x1892b9,null;}})[_0x52b4bb(0x176)](_0x24690c=>null!==_0x24690c);_0x5d2a0b[_0x52b4bb(0x1ab)]&&(_0x1ea260+=_0x5d2a0b[_0x52b4bb(0x1aa)](_0x2ef661=>this[_0x52b4bb(0x177)](_0x2ef661,_0x5ba4bf))[_0x52b4bb(0x195)](''),_0x166fd1(_0x1ea260));}return Promise[_0x52b4bb(0x17d)]();}async[_0x623b2(0x191)](_0x18133a,_0x5d0e68,_0xdb2f47){const _0x434bab=_0x623b2;let _0x5de4bd;return _0x5de4bd=_0x18133a instanceof Response?await _0x18133a[_0x434bab(0x1a6)]():JSON[_0x434bab(0x16b)](new TextDecoder(_0x434bab(0x1a3))[_0x434bab(0x166)](_0x18133a[_0x434bab(0x18f)])),(_0xdb2f47(this[_0x434bab(0x177)](_0x5de4bd,_0x5d0e68)),Promise[_0x434bab(0x17d)]());}[_0x623b2(0x177)](_0xc94dfa,_0x2e282e){const _0x260ff5=_0x623b2;switch(this[_0x260ff5(0x1a0)](_0x2e282e)){case _0x260ff5(0x1a9):return _0xc94dfa[_0x260ff5(0x17f)];case _0x260ff5(0x193):return _0xc94dfa[_0x260ff5(0x1a2)][0x0][_0x260ff5(0x187)][_0x260ff5(0x1a5)];case _0x260ff5(0x1a8):return _0xc94dfa[_0x260ff5(0x19b)][0x0][_0x260ff5(0x1a5)];case _0x260ff5(0x16a):return _0xc94dfa[_0x260ff5(0x15f)];}}}
@@ -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 _0x35463c=_0x1caf;(function(_0x5cc4da,_0x323a90){const _0x2eea6c=_0x1caf,_0x3b95d3=_0x5cc4da();while(!![]){try{const _0xeba595=-parseInt(_0x2eea6c(0xcb))/0x1+-parseInt(_0x2eea6c(0xc0))/0x2*(parseInt(_0x2eea6c(0xd1))/0x3)+-parseInt(_0x2eea6c(0xc5))/0x4*(parseInt(_0x2eea6c(0xd7))/0x5)+parseInt(_0x2eea6c(0xbe))/0x6*(parseInt(_0x2eea6c(0xd8))/0x7)+-parseInt(_0x2eea6c(0xd2))/0x8+-parseInt(_0x2eea6c(0xd0))/0x9+parseInt(_0x2eea6c(0xba))/0xa;if(_0xeba595===_0x323a90)break;else _0x3b95d3['push'](_0x3b95d3['shift']());}catch(_0xd899af){_0x3b95d3['push'](_0x3b95d3['shift']());}}}(_0x5b05,0xf0a01));import{AITextAdapter as _0x55a6ae}from'./aitextadapter.js';import{AIRequestError as _0x5c5d42}from'./aiadapter.js';import{getTranslation as _0x1d4bd8}from'../utils/common-translations.js';function _0x5b05(){const _0x3ad0aa=['ai.assistant.adapter.openAI.requestParameters','_prepareRequestHeaders','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.','delta','join','reject','sendRequest','signal','POST','Instruction:\x0a','gpt-4o','define','getReader','https://api.openai.com/v1/chat/completions','prepareMessages','length','json','AI_ERROR_CONTEXT_LENGTH','content','system','_cleanUpData','replace','_requestParameters','body','user','_requestHeaders','_isBufferIncomplete','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.','message','OpenAITextAdapter','_apiUrl','_prepareRequestParameters','ai.assistant.adapter.openAI.requestHeaders','editor','63176950GUxulX','get','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','decode','2994FIuOpj','_readStaticResponse','464562NVFIPc','[DONE]','stream','text','ai.assistant.adapter.openAI.apiUrl','2259332RlkILi','locale','context_length_exceeded','parse','split','resolve','1015005ljKcYm','Moderation','_readStreamableResponse','config','includes','12591351oEMhfh','21rOWQgy','12504600axvkYB','choices','data:\x20','map','abortController','5AUeOcK','11725cLCyaw','filter','read','pluginName','AI_ERROR_MODERATION','stringify'];_0x5b05=function(){return _0x3ad0aa;};return _0x5b05();}function _0x1caf(_0x3d6c0e,_0x389693){const _0x5b055c=_0x5b05();return _0x1caf=function(_0x1caf4f,_0x5ee8f3){_0x1caf4f=_0x1caf4f-0x95;let _0x31e524=_0x5b055c[_0x1caf4f];return _0x31e524;},_0x1caf(_0x3d6c0e,_0x389693);}export class OpenAITextAdapter extends _0x55a6ae{[_0x35463c(0xb6)];[_0x35463c(0xb1)];[_0x35463c(0xae)];static get[_0x35463c(0x95)](){const _0x86b317=_0x35463c;return _0x86b317(0xb5);}constructor(_0x4156ae){const _0x1b1870=_0x35463c;super(_0x4156ae),_0x4156ae[_0x1b1870(0xce)][_0x1b1870(0xa3)](_0x1b1870(0xc4),_0x1b1870(0xa5)),_0x4156ae[_0x1b1870(0xce)][_0x1b1870(0xbb)](_0x1b1870(0x98))||_0x4156ae[_0x1b1870(0xce)][_0x1b1870(0xa3)](_0x1b1870(0x98),{'model':_0x1b1870(0xa2),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x1b1870(0xb6)]=_0x4156ae[_0x1b1870(0xce)][_0x1b1870(0xbb)](_0x1b1870(0xc4)),this[_0x1b1870(0xb1)]=_0x4156ae[_0x1b1870(0xce)][_0x1b1870(0xbb)](_0x1b1870(0xb8))||{},this[_0x1b1870(0xae)]=_0x4156ae[_0x1b1870(0xce)][_0x1b1870(0xbb)](_0x1b1870(0x98));}async[_0x35463c(0x9e)]({query:_0x50177d,context:_0x211d61,onData:_0x347833,actionId:_0x5d7adf}){const _0x50f6f8=_0x35463c,_0x1ff8c2=this[_0x50f6f8(0xb9)][_0x50f6f8(0xc6)],_0x2a6d2f=await this[_0x50f6f8(0xa6)](_0x50177d,_0x211d61,_0x5d7adf),_0x55dea8=await this[_0x50f6f8(0x99)](this[_0x50f6f8(0xb1)],_0x5d7adf),_0x416d84=await this[_0x50f6f8(0xb7)](this[_0x50f6f8(0xae)],_0x5d7adf),_0x47a486={'messages':_0x2a6d2f,..._0x416d84},_0x10a438={'method':_0x50f6f8(0xa0),'headers':_0x55dea8,'body':JSON[_0x50f6f8(0x97)](_0x47a486),'signal':this[_0x50f6f8(0xd6)][_0x50f6f8(0x9f)]},_0x362798=await fetch(this[_0x50f6f8(0xb6)],_0x10a438);if(_0x362798['ok'])return _0x416d84[_0x50f6f8(0xc2)]?await this[_0x50f6f8(0xcd)](_0x362798,_0x347833):await this[_0x50f6f8(0xbf)](_0x362798,_0x347833),Promise[_0x50f6f8(0xca)]();{const _0x48c025=await _0x362798[_0x50f6f8(0xc3)]();return _0x48c025[_0x50f6f8(0xcf)](_0x50f6f8(0xc7))?Promise[_0x50f6f8(0x9d)](new _0x5c5d42(_0x1d4bd8(_0x1ff8c2,_0x50f6f8(0xa9)))):_0x48c025[_0x50f6f8(0xcf)](_0x50f6f8(0xcc))?Promise[_0x50f6f8(0x9d)](new _0x5c5d42(_0x1d4bd8(_0x1ff8c2,_0x50f6f8(0x96)))):Promise[_0x50f6f8(0x9d)](new Error(_0x48c025));}}async[_0x35463c(0xa6)](_0x54e075,_0x648653,_0x247f1f){const _0x3e261b=_0x35463c;let _0x164681,_0x184fda;return _0x648653?(_0x164681=_0x3e261b(0x9a),_0x184fda=_0x3e261b(0xa1)+_0x54e075+_0x3e261b(0xbc)+_0x648653):(_0x164681=_0x3e261b(0xb3),_0x184fda=_0x54e075),[{'role':_0x3e261b(0xab),'content':_0x164681},{'role':_0x3e261b(0xb0),'content':_0x184fda}];}async[_0x35463c(0xcd)](_0x2f5ec1,_0x21b82e){const _0x8dd0b9=_0x35463c,_0x4907bf=_0x2f5ec1[_0x8dd0b9(0xaf)][_0x8dd0b9(0xa4)](),_0x1fbf07=new TextDecoder();let _0x11db17='',_0x1958b1='',_0x47903a='',_0x46bd5e=!0x1;for(;!_0x46bd5e;){const {done:_0x2771e7,value:_0x32cf98}=await _0x4907bf[_0x8dd0b9(0xda)](),_0x177085=_0x11db17+_0x1fbf07[_0x8dd0b9(0xbd)](_0x32cf98);let _0x115a2c='';_0x46bd5e=_0x2771e7;try{_0x115a2c=this[_0x8dd0b9(0xac)](_0x177085),_0x11db17='';}catch{_0x11db17=_0x177085;continue;}_0x1958b1+=_0x115a2c,!_0x46bd5e&&this[_0x8dd0b9(0xb2)](_0x1958b1)||_0x1958b1&&(_0x47903a+=_0x1958b1,_0x1958b1='',_0x21b82e(_0x47903a));}return Promise[_0x8dd0b9(0xca)]();}async[_0x35463c(0xbf)](_0x29f83b,_0xc0f43f){const _0x1d3a38=_0x35463c;return _0xc0f43f((await _0x29f83b[_0x1d3a38(0xa8)]())[_0x1d3a38(0xd3)][0x0][_0x1d3a38(0xb4)][_0x1d3a38(0xaa)]),Promise[_0x1d3a38(0xca)]();}[_0x35463c(0xb2)](_0xe460c5){const _0x49fee7=_0x35463c,_0x452d40=_0xe460c5[_0x49fee7(0xc9)]('<')[_0x49fee7(0xa7)]!==_0xe460c5[_0x49fee7(0xc9)]('>')[_0x49fee7(0xa7)],_0x48993e=_0xe460c5[_0x49fee7(0xa7)]<0x1e;return _0x452d40&&_0x48993e;}[_0x35463c(0xac)](_0x53e159){const _0x414f8b=_0x35463c;return _0x53e159[_0x414f8b(0xc9)](/\n(?![^{]*\})/g)[_0x414f8b(0xd5)](_0x1cd333=>_0x1cd333[_0x414f8b(0xad)](_0x414f8b(0xd4),''))[_0x414f8b(0xd9)](_0x4c3681=>_0x4c3681&&_0x4c3681[_0x414f8b(0xa7)]>0x0&&_0x414f8b(0xc1)!==_0x4c3681)[_0x414f8b(0xd5)](_0x223144=>{const _0x14780f=_0x414f8b,{choices:_0x213a90}=JSON[_0x14780f(0xc8)](_0x223144);if(_0x213a90[0x0]?.[_0x14780f(0x9b)]?.[_0x14780f(0xaa)])return _0x213a90[0x0][_0x14780f(0x9b)][_0x14780f(0xaa)];})[_0x414f8b(0xd9)](_0x1f2713=>_0x1f2713)[_0x414f8b(0x9c)]('');}}
@@ -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
+ function _0x3c29(){const _0x1d2a2a=['poetic','4873400CLtsVs','simplifyLanguage','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','business','4953462XWSNVE','3736620VFFTHZ','Make\x20shorter','Translate','commands','Translate\x20the\x20content\x20to\x20German\x20language.','ai.assistant.removeCommands','Journalism','Portuguese','French','casual','locale','7bkjJio','direct','continue','Poetic','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','changeStyle','English','Direct','Edit\x20or\x20review','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','get','ai.assistant.commands','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','config','translateArabic','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','Casual','Summarize','translatePortuguese','makeLonger','friendly','define','ai.assistant.preserveComments','1604TDHSPz','pluginName','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','summarize','Change\x20tone','Spanish','includes','translateEnglish','changeTone','generate','Translate\x20the\x20content\x20to\x20French\x20language.','Translate\x20the\x20content\x20to\x20Arabic\x20language.','1512417mevDRz','push','groupId','Continue','professional','improveWriting','filter','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Simplify\x20language','Friendly','Legal','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','Simplified\x20Chinese','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','Make\x20longer','forEach','editOrReview','AIAssistant','isPremiumPlugin','concat','translateChinese','84JtVsir','translateSpanish','Translate\x20the\x20content\x20to\x20Hindi\x20language.','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Improve\x20writing','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','Confident','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','3944145EtJUuI','Professional','confident','9pIoOdg','German','set','isOfficialPlugin','translateFrench','Translate\x20the\x20content\x20to\x20Spanish\x20language.','4YMNVcU','requires','makeShorter','Generate\x20from\x20selection','Translate\x20the\x20content\x20to\x20English\x20language.','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','ai.assistant.extraCommandGroups','find','Hindi','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','journalism','legal','translateHindi','Arabic','Change\x20style','translateGerman','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','translate','5809199PvgmcB','Business','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.'];_0x3c29=function(){return _0x1d2a2a;};return _0x3c29();}const _0x406286=_0x35ad;(function(_0x57ba0b,_0x5ee8f3){const _0x341ee3=_0x35ad,_0x188326=_0x57ba0b();while(!![]){try{const _0x10406a=parseInt(_0x341ee3(0x89))/0x1*(parseInt(_0x341ee3(0xaa))/0x2)+parseInt(_0x341ee3(0x95))/0x3*(parseInt(_0x341ee3(0xbb))/0x4)+-parseInt(_0x341ee3(0xb2))/0x5+parseInt(_0x341ee3(0xd5))/0x6*(-parseInt(_0x341ee3(0x71))/0x7)+parseInt(_0x341ee3(0xd1))/0x8+parseInt(_0x341ee3(0xb5))/0x9*(parseInt(_0x341ee3(0xd6))/0xa)+parseInt(_0x341ee3(0xcd))/0xb;if(_0x10406a===_0x5ee8f3)break;else _0x188326['push'](_0x188326['shift']());}catch(_0x3363c9){_0x188326['push'](_0x188326['shift']());}}}(_0x3c29,0x7244f));import{Plugin as _0x42617b}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x530bd1}from'./aiassistantui.js';function _0x35ad(_0x3cad6b,_0x3381f5){const _0x3c2943=_0x3c29();return _0x35ad=function(_0x35adb9,_0x5a8131){_0x35adb9=_0x35adb9-0x6a;let _0x4c2b54=_0x3c2943[_0x35adb9];return _0x4c2b54;},_0x35ad(_0x3cad6b,_0x3381f5);}import{AIAssistantEditing as _0x3256ee}from'./aiassistantediting.js';import{getTranslation as _0x3b728a}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x1c6767}from'./utils/normalizecommandsconfig.js';export class AIAssistant extends _0x42617b{static get[_0x406286(0xbc)](){return[_0x530bd1,_0x3256ee];}static get[_0x406286(0x8a)](){const _0x5766ce=_0x406286;return _0x5766ce(0xa6);}static get[_0x406286(0xb8)](){return!0x0;}static get[_0x406286(0xa7)](){return!0x0;}constructor(_0x338d57){const _0x1f9730=_0x406286;super(_0x338d57);const _0x5f0e0=_0x338d57[_0x1f9730(0x7e)],_0x28e42c=_0x338d57[_0x1f9730(0x70)];_0x5f0e0[_0x1f9730(0x87)](_0x1f9730(0x88),!0x0),_0x5f0e0[_0x1f9730(0x87)](_0x1f9730(0x7c),getDefaultAICommands(_0x28e42c)),_0x5f0e0[_0x1f9730(0x87)](_0x1f9730(0xc1),[]),_0x5f0e0[_0x1f9730(0x87)](_0x1f9730(0x6b),[]);let _0x2bff91=_0x1c6767(_0x5f0e0[_0x1f9730(0x7b)](_0x1f9730(0x7c)),_0x28e42c);const _0x33d2bc=_0x5f0e0[_0x1f9730(0x7b)](_0x1f9730(0xc1)),_0x43006a=_0x5f0e0[_0x1f9730(0x7b)](_0x1f9730(0x6b));_0x33d2bc[_0x1f9730(0xa4)](_0x1dc906=>{const _0x148d57=_0x1f9730,_0x395ccc=_0x2bff91[_0x148d57(0xc2)](_0x306a0a=>_0x306a0a[_0x148d57(0x97)]===_0x1dc906[_0x148d57(0x97)]);_0x395ccc?_0x395ccc[_0x148d57(0xd9)]=_0x395ccc[_0x148d57(0xd9)][_0x148d57(0xa8)](_0x1dc906[_0x148d57(0xd9)]):_0x2bff91[_0x148d57(0x96)](_0x1dc906);}),_0x2bff91=_0x2bff91[_0x1f9730(0x9b)](_0x19e388=>!_0x43006a[_0x1f9730(0x8f)](_0x19e388[_0x1f9730(0x97)])),_0x2bff91[_0x1f9730(0xa4)](_0x477133=>{const _0x3edd04=_0x1f9730;_0x477133[_0x3edd04(0xd9)]=_0x477133[_0x3edd04(0xd9)][_0x3edd04(0x9b)](_0x8fc6a7=>!_0x43006a[_0x3edd04(0x8f)](_0x8fc6a7['id']));}),_0x5f0e0[_0x1f9730(0xb7)](_0x1f9730(0x7c),_0x2bff91);}}export function getDefaultAICommands(_0xfff621){const _0x238dcc=_0x406286;return[{'groupId':_0x238dcc(0xa5),'groupLabel':_0x3b728a(_0xfff621,_0x238dcc(0x79)),'commands':[{'id':_0x238dcc(0x9a),'label':_0x3b728a(_0xfff621,_0x238dcc(0xae)),'prompt':_0x238dcc(0x9c)},{'id':_0x238dcc(0xbd),'label':_0x3b728a(_0xfff621,_0x238dcc(0xd7)),'prompt':_0x238dcc(0xaf)},{'id':_0x238dcc(0x85),'label':_0x3b728a(_0xfff621,_0x238dcc(0xa3)),'prompt':_0x238dcc(0x8b)},{'id':_0x238dcc(0xd2),'label':_0x3b728a(_0xfff621,_0x238dcc(0x9d)),'prompt':_0x238dcc(0xcf)}]},{'groupId':_0x238dcc(0x92),'groupLabel':_0x3b728a(_0xfff621,_0x238dcc(0xbe)),'commands':[{'id':_0x238dcc(0x8c),'label':_0x3b728a(_0xfff621,_0x238dcc(0x83)),'prompt':_0x238dcc(0xa0)},{'id':_0x238dcc(0x73),'label':_0x3b728a(_0xfff621,_0x238dcc(0x98)),'prompt':_0x238dcc(0xcb)}]},{'groupId':_0x238dcc(0x91),'groupLabel':_0x3b728a(_0xfff621,_0x238dcc(0x8d)),'commands':[{'id':_0x238dcc(0x99),'label':_0x3b728a(_0xfff621,_0x238dcc(0xb3)),'prompt':_0x238dcc(0xb1)},{'id':_0x238dcc(0x6f),'label':_0x3b728a(_0xfff621,_0x238dcc(0x82)),'prompt':_0x238dcc(0xad)},{'id':_0x238dcc(0x72),'label':_0x3b728a(_0xfff621,_0x238dcc(0x78)),'prompt':_0x238dcc(0x7d)},{'id':_0x238dcc(0xb4),'label':_0x3b728a(_0xfff621,_0x238dcc(0xb0)),'prompt':_0x238dcc(0x7a)},{'id':_0x238dcc(0x86),'label':_0x3b728a(_0xfff621,_0x238dcc(0x9e)),'prompt':_0x238dcc(0xc0)}]},{'groupId':_0x238dcc(0x76),'groupLabel':_0x3b728a(_0xfff621,_0x238dcc(0xc9)),'commands':[{'id':_0x238dcc(0xd4),'label':_0x3b728a(_0xfff621,_0x238dcc(0xce)),'prompt':_0x238dcc(0xd3)},{'id':_0x238dcc(0xc6),'label':_0x3b728a(_0xfff621,_0x238dcc(0x9f)),'prompt':_0x238dcc(0xc4)},{'id':_0x238dcc(0xc5),'label':_0x3b728a(_0xfff621,_0x238dcc(0x6c)),'prompt':_0x238dcc(0x80)},{'id':_0x238dcc(0xd0),'label':_0x3b728a(_0xfff621,_0x238dcc(0x74)),'prompt':_0x238dcc(0x75)}]},{'groupId':_0x238dcc(0xcc),'groupLabel':_0x3b728a(_0xfff621,_0x238dcc(0xd8)),'commands':[{'id':_0x238dcc(0x90),'label':_0x3b728a(_0xfff621,_0x238dcc(0x77)),'prompt':_0x238dcc(0xbf)},{'id':_0x238dcc(0xab),'label':_0x3b728a(_0xfff621,_0x238dcc(0x8e)),'prompt':_0x238dcc(0xba)},{'id':_0x238dcc(0x84),'label':_0x3b728a(_0xfff621,_0x238dcc(0x6d)),'prompt':_0x238dcc(0xa2)},{'id':_0x238dcc(0xca),'label':_0x3b728a(_0xfff621,_0x238dcc(0xb6)),'prompt':_0x238dcc(0x6a)},{'id':_0x238dcc(0xb9),'label':_0x3b728a(_0xfff621,_0x238dcc(0x6e)),'prompt':_0x238dcc(0x93)},{'id':_0x238dcc(0xa9),'label':_0x3b728a(_0xfff621,_0x238dcc(0xa1)),'prompt':_0x238dcc(0x81)},{'id':_0x238dcc(0xc7),'label':_0x3b728a(_0xfff621,_0x238dcc(0xc3)),'prompt':_0x238dcc(0xac)},{'id':_0x238dcc(0x7f),'label':_0x3b728a(_0xfff621,_0x238dcc(0xc8)),'prompt':_0x238dcc(0x94)}]}];}