@ckeditor/ckeditor5-ai 47.1.0-alpha.0 → 47.1.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x151398=_0x5190;(function(_0x481c9d,_0x459351){const _0x35d8e9=_0x5190,_0x2d649c=_0x481c9d();while(!![]){try{const _0xeb1264=-parseInt(_0x35d8e9(0x1bb))/0x1+parseInt(_0x35d8e9(0x1fb))/0x2*(-parseInt(_0x35d8e9(0x234))/0x3)+parseInt(_0x35d8e9(0x1db))/0x4+-parseInt(_0x35d8e9(0x223))/0x5*(parseInt(_0x35d8e9(0x1ab))/0x6)+-parseInt(_0x35d8e9(0x1eb))/0x7+parseInt(_0x35d8e9(0x1c7))/0x8+-parseInt(_0x35d8e9(0x218))/0x9*(-parseInt(_0x35d8e9(0x1cc))/0xa);if(_0xeb1264===_0x459351)break;else _0x2d649c['push'](_0x2d649c['shift']());}catch(_0x37654d){_0x2d649c['push'](_0x2d649c['shift']());}}}(_0x510e,0x989ff));import{IconAIAdjustLength as _0x29d754,IconAIAskAI as _0x4d51de,IconAIChangeTone as _0x4eeeea,IconAIChatCommands as _0x3e566e,IconAIContinueWriting as _0x5e9582,IconAIGrammarCheck as _0xf5af29,IconAIImproveWriting as _0x4f7796,IconAIOther as _0xcc8f9f,IconAIQuickActions as _0x504ab7,IconAITranslate as _0x41ce61}from'@ckeditor/ckeditor5-icons';function _0x510e(){const _0x1a14e3=['AI_QUICK_ACTIONS_SUMMARIZE','AI_QUICK_ACTIONS_ASK_AI','<task>For\x20the\x20given\x20selected\x20part\x20of\x20an\x20HTML\x20document\x20you\x20must\x20extract\x20and\x20present\x20the\x20key\x20points\x20from\x20its\x20content.</task><rules>1.\x20Present\x20the\x20output\x20as\x20a\x20clear,\x20structured\x20list\x20(bullets\x20or\x20numbered).-\x20Each\x20point\x20should\x20be\x20concise\x20(one\x20sentence\x20or\x20less).-\x20Do\x20not\x20merge\x20distinct\x20ideas\x20into\x20one\x20bullet.2.\x20Identify\x20what\x20type\x20of\x20text\x20it\x20is\x20and\x20adapt\x20the\x20extraction\x20style:-\x20If\x20it\x20is\x20descriptive\x20capture\x20the\x20main\x20attributes\x20or\x20features.-\x20If\x20it\x20is\x20argumentative\x20extract\x20the\x20main\x20claim\x20and\x20supporting\x20reasons\x20separately.-\x20If\x20it\x20is\x20narrative/story-like\x20extract\x20the\x20main\x20events\x20in\x20chronological\x20order.-\x20If\x20it\x20is\x20data-driven\x20(stats,\x20figures,\x20facts)\x20highlight\x20the\x20most\x20important\x20facts\x20or\x20numbers.-\x20If\x20it\x20is\x20instructional\x20list\x20the\x20steps\x20or\x20main\x20actions\x20in\x20simplified\x20form.-\x20If\x20it\x20provides\x20comparisons\x20extract\x20the\x20contrasted\x20items\x20and\x20their\x20differences/similarities.-\x20If\x20it\x20does\x20not\x20fit\x20any\x20category\x20above\x20extract\x20the\x20main\x20ideas\x20in\x20plain,\x20short\x20statements.3.\x20Keep\x20the\x20list\x20between\x203–7\x20items\x20where\x20possible.-\x20If\x20the\x20text\x20is\x20very\x20short,\x20fewer\x20items\x20are\x20fine.-\x20If\x20it\x20is\x20very\x20long,\x20focus\x20on\x20the\x20most\x20important\x20ideas\x20only.4.\x20Do\x20not\x20copy\x20long\x20text\x20fragments\x20—\x20restate\x20in\x20simple\x20words.5.\x20Do\x20not\x20add\x20interpretation,\x20evaluation,\x20or\x20commentary\x20beyond\x20the\x20text.6.\x20Ensure\x20the\x20list\x20can\x20stand\x20alone\x20without\x20requiring\x20the\x20reader\x20to\x20see\x20the\x20original\x20document.7.\x20Use\x20the\x20context\x20of\x20the\x20whole\x20document,\x20but\x20focus\x20on\x20the\x20selected\x20part\x20when\x20creating\x20your\x20key\x20points.8.\x20Your\x20key\x20points\x20should\x20be\x20written\x20in\x20%0\x20language.</rules><constraints>1.\x20You\x20MUST\x20NOT\x20perform\x20any\x20edits\x20or\x20modifications\x20on\x20the\x20provided\x20document.2.\x20You\x20MUST\x20NOT\x20include\x20document\x20modifications\x20in\x20your\x20response.3.\x20Your\x20message\x20should\x20only\x20include\x20the\x20extracted\x20key\x20points.\x20Do\x20not\x20add\x20any\x20additional\x20text,\x20flattery,\x20questions\x20or\x20followup\x20suggestions.</constraints>','icon','AI_QUICK_ACTIONS_TRANSLATE_SPANISH','menu','AI_QUICK_ACTIONS_FIX_GRAMMAR_SPELLING','config','french','japanese','panelView','732072vhvtiG','ask-ai','English','AI_QUICK_ACTIONS_IMPROVE_WRITING','requires','10VOriKO','_initializeQuickActionsDropdown','AI_QUICK_ACTIONS_TRANSLATE_PORTUGUESE','language','make-tone-confident','map','aiQuickActions','translate-to-japanese','translate-to-spanish','view','_initializeQuickActionsComponents','includes','make-longer','values','spanish','2091632bnClen','adjust-length','AI_QUICK_ACTIONS_MORE_DIRECT','ACTION','highlight-key-points','label','_getDefaultAndCustomActions','translate-to-english','_shouldIncludeAction','isOfficialPlugin','translate-to-russian','translate-to-portuguese','translate-to-french','buttonView','focus','actions','4610410NqVYMF','get','AI_QUICK_ACTIONS_TRANSLATE_KOREAN','german','AI_QUICK_ACTIONS_MORE_FRIENDLY','AI_QUICK_ACTIONS_TRANSLATE_GERMAN','filter','korean','menuitem','AI_QUICK_ACTIONS_MAKE_SHORTER','make-tone-friendly','translate','length','AI_QUICK_ACTIONS_CHANGE_TONE','AI_QUICK_ACTIONS_MAKE_LONGER','locale','1529962HbPylv','children','_initializeQuickActionsMenuBar','editing','improve-writing','displayedPrompt','fix-grammar','replace','delegate','italian','make-tone-direct','pluginName','componentFactory','commands','russian','init','aiQuickAction','portuguese','AI_QUICK_ACTIONS_TRANSLATE_FRENCH','AIReviewMode','uiLanguage','AI_QUICK_ACTIONS_TRANSLATE_ITALIAN','AI_QUICK_ACTIONS_CONTINUE_WRITING','explain','AI_QUICK_ACTIONS_MORE_PROFESSIONAL','<task>For\x20given\x20selected\x20part\x20of\x20HTML\x20document\x20you\x20must\x20explain\x20the\x20meaning\x20of\x20it\x27s\x20content\x20clearly\x20and\x20in\x20plain\x20language.</task><rules>1.\x20Identify\x20what\x20type\x20of\x20text\x20it\x20is:-\x20If\x20it\x20looks\x20like\x20a\x20definition\x20explain\x20the\x20concept\x20in\x20simple\x20terms.-\x20If\x20it\x20looks\x20like\x20a\x20description\x20clarify\x20what\x20it\x20is\x20describing\x20and\x20why\x20it\x20matters.-\x20If\x20it\x20contains\x20technical\x20terms\x20or\x20jargon\x20break\x20them\x20down\x20into\x20everyday\x20language.-\x20If\x20it\x20looks\x20instructional\x20restate\x20as\x20clear\x20steps\x20someone\x20can\x20follow.-\x20If\x20it\x20provides\x20examples\x20explain\x20what\x20the\x20example\x20shows\x20and\x20why\x20it\x27s\x20relevant.-\x20If\x20it\x20presents\x20an\x20argument\x20or\x20claim\x20restate\x20the\x20claim\x20neutrally\x20and\x20explain\x20its\x20purpose.-\x20If\x20it\x20is\x20narrative/story-like\x20explain\x20what\x20event\x20or\x20situation\x20is\x20being\x20described.-\x20If\x20it\x20is\x20data-driven\x20(stats,\x20figures,\x20facts)\x20explain\x20what\x20the\x20data\x20indicates.-\x20If\x20it\x20is\x20a\x20quotation\x20explain\x20the\x20meaning\x20of\x20the\x20quote\x20in\x20context.-\x20If\x20it\x20compares/contrasts\x20things\x20explain\x20the\x20key\x20differences\x20or\x20similarities\x20simply.-\x20If\x20it\x20does\x20not\x20fit\x20any\x20of\x20the\x20categories\x20above\x20give\x20a\x20clear,\x20plain-language\x20explanation\x20of\x20its\x20meaning,\x20focusing\x20on\x20usefulness.2.\x20Provide\x20context\x20if\x20the\x20meaning\x20could\x20be\x20unclear\x20without\x20it.\x20(e.g.,\x20explain\x20where\x20such\x20a\x20term\x20might\x20be\x20used,\x20or\x20why\x20it\x20is\x20important).3.\x20Keep\x20the\x20explanation\x20short\x20but\x20complete\x20(2–5\x20sentences).Avoid\x20overly\x20technical\x20detail\x20unless\x20it\x20is\x20necessary\x20for\x20understanding.4.\x20Do\x20not\x20simply\x20repeat\x20the\x20original\x20text\x20—\x20restate\x20and\x20expand\x20it\x20in\x20plain\x20words.5.\x20If\x20possible,\x20add\x20a\x20short\x20example\x20or\x20analogy\x20to\x20make\x20it\x20easier\x20to\x20understand.6.\x20Use\x20the\x20context\x20of\x20the\x20whole\x20document,\x20but\x20focus\x20on\x20the\x20selected\x20part\x20when\x20creating\x20your\x20explanation.7.\x20Your\x20explanation\x20should\x20be\x20written\x20in\x20%0\x20language.</rules><constraints>1.\x20You\x20MUST\x20NOT\x20perform\x20any\x20edits\x20or\x20modifications\x20on\x20provided\x20document.2.\x20You\x20MUST\x20NOT\x20include\x20document\x20modifications\x20in\x20your\x20response.3.\x20Your\x20message\x20should\x20only\x20include\x20explanation.\x20Do\x20not\x20add\x20any\x20additional\x20text,\x20flattery,\x20questions\x20or\x20followup\x20suggestions.</constraints>','AI_QUICK_ACTIONS_HEADING','_prepareQuickActionsDefinition','set','23750289PFLEBO','_quickActionsDefinition','chat-commands','has','attachToDom','DisplayNames','add','chinese','_executeQuickAction','translate-to-chinese','getDefaultQuickActions','45tZrIEb','continue','items','ai.quickActions.removeCommands','AI_QUICK_ACTIONS_TRANSLATE_CHINESE','AI_QUICK_ACTIONS_TRANSLATE','AI_QUICK_ACTIONS_CHAT_COMMANDS','english','some','editor','make-shorter','change-tone','execute','_initializeQuickActionsComponentsAndCommands','AI_QUICK_ACTIONS_TRANSLATE_RUSSIAN','AI_QUICK_ACTIONS_ADJUST_LENGTH','AIActions','3mdSmKi','translate-to-italian','AIChat','push','other','translate-to-korean','forEach','close','<task>For\x20the\x20given\x20selected\x20part\x20of\x20an\x20HTML\x20document\x20you\x20must\x20summarize\x20its\x20content\x20in\x20a\x20few\x20sentences,\x20keeping\x20only\x20the\x20essential\x20meaning.</task><rules>1.\x20Your\x20summary\x20should\x20be\x20short\x20and\x20clear:-\x20Aim\x20for\x202–4\x20sentences\x20unless\x20the\x20text\x20is\x20extremely\x20short.-\x20Focus\x20on\x20capturing\x20the\x20main\x20idea(s)\x20without\x20unnecessary\x20detail.2.\x20Identify\x20what\x20type\x20of\x20text\x20it\x20is\x20and\x20adapt\x20the\x20summary\x20style:-\x20If\x20it\x20is\x20descriptive\x20condense\x20the\x20description\x20into\x20its\x20core\x20idea.-\x20If\x20it\x20is\x20argumentative\x20or\x20opinion-based\x20summarize\x20the\x20main\x20claim\x20and\x20reasoning\x20neutrally.-\x20If\x20it\x20is\x20narrative/story-like\x20capture\x20the\x20main\x20event\x20or\x20outcome\x20without\x20side\x20details.-\x20If\x20it\x20is\x20data-driven\x20(stats,\x20figures,\x20facts)\x20summarize\x20what\x20the\x20data\x20shows\x20in\x20plain\x20language.-\x20If\x20it\x20is\x20instructional\x20restate\x20the\x20overall\x20purpose\x20of\x20the\x20steps\x20without\x20listing\x20every\x20step.-\x20If\x20it\x20does\x20not\x20fit\x20any\x20of\x20the\x20categories\x20above\x20provide\x20a\x20general\x20concise\x20summary.3.\x20Provide\x20context\x20if\x20necessary\x20for\x20clarity:-\x20Mention\x20the\x20subject\x20or\x20topic\x20explicitly\x20so\x20the\x20summary\x20can\x20stand\x20alone.4.\x20Do\x20not\x20simply\x20copy\x20sentences\x20from\x20the\x20original\x20text\x20—\x20rephrase\x20in\x20plain\x20language.5.\x20Avoid\x20adding\x20new\x20information\x20or\x20interpretation\x20not\x20present\x20in\x20the\x20text.6.\x20Summarize\x20in\x20a\x20way\x20that\x20would\x20make\x20sense\x20to\x20someone\x20who\x20has\x20not\x20read\x20the\x20original\x20text.7.\x20Use\x20the\x20context\x20of\x20the\x20whole\x20document,\x20but\x20focus\x20on\x20the\x20selected\x20part\x20when\x20creating\x20your\x20summary.8.\x20Your\x20summary\x20should\x20be\x20written\x20in\x20%0\x20language.</rules><constraints>1.\x20You\x20MUST\x20NOT\x20perform\x20any\x20edits\x20or\x20modifications\x20on\x20the\x20provided\x20document.2.\x20You\x20MUST\x20NOT\x20include\x20document\x20modifications\x20in\x20your\x20response.3.\x20Your\x20message\x20should\x20only\x20include\x20the\x20summary.\x20Do\x20not\x20add\x20any\x20additional\x20text,\x20flattery,\x20questions\x20or\x20followup\x20suggestions.</constraints>','AI_QUICK_ACTIONS_MORE_CONFIDENT','type','plugins','menuBar:aiQuickActions','AI_QUICK_ACTIONS_OTHER','summarize','576210nnmftM','AIQuickActionsUI','AI_QUICK_ACTIONS_TRANSLATE_ENGLISH','REVIEW','AI_QUICK_ACTIONS_TRANSLATE_JAPANESE','ai.quickActions.extraCommands','make-tone-professional','find','make-tone-casual','menuBarView','AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS','CHAT','AI_QUICK_ACTIONS_MORE_CASUAL','AI_QUICK_ACTIONS_EXPLAIN','isPremiumPlugin','translate-to-german','340261nwVVMi'];_0x510e=function(){return _0x1a14e3;};return _0x510e();}import{Plugin as _0x4a7df5}from'ckeditor5/src/core.js';import{getTranslation as _0x370370}from'../aicore/utils/common-translations.js';import{aiQuickActionsDropdownCreator as _0x28c9a1}from'./ui/aiquickactionsdropdowncreator.js';import{aiQuickActionsButtonCreator as _0x1964cd}from'./ui/aiquickactionsbuttoncreator.js';import{BodyCollection as _0x42ef4c,BalloonToolbar as _0x26354e,MenuBarMenuView as _0x58ccf3,MenuBarMenuListView as _0x526598,MenuBarMenuListItemView as _0x1015e2,MenuBarMenuListItemButtonView as _0x58963d}from'ckeditor5/src/ui.js';import'../../theme/aiquickactions/aiquickactions.css';const Jt=_0x151398(0x214),Vt=_0x151398(0x23c),Xt=_0x151398(0x1be);export var AIQuickActionType;!function(_0x3591af){const _0x17fe37=_0x151398;_0x3591af[_0x17fe37(0x1b6)]=_0x17fe37(0x1b6),_0x3591af[_0x17fe37(0x1de)]=_0x17fe37(0x1de),_0x3591af[_0x17fe37(0x1ae)]=_0x17fe37(0x1ae);}(AIQuickActionType||(AIQuickActionType={}));export var AIQuickActionTypeToPluginName;function _0x5190(_0xb5e85a,_0x13bfb0){const _0x510eaf=_0x510e();return _0x5190=function(_0x51901d,_0x135c4f){_0x51901d=_0x51901d-0x1a8;let _0x25d545=_0x510eaf[_0x51901d];return _0x25d545;},_0x5190(_0xb5e85a,_0x13bfb0);}!function(_0x57392c){const _0x39a504=_0x151398;_0x57392c[_0x39a504(0x1b6)]=_0x39a504(0x236),_0x57392c[_0x39a504(0x1de)]=_0x39a504(0x233),_0x57392c[_0x39a504(0x1ae)]=_0x39a504(0x20e);}(AIQuickActionTypeToPluginName||(AIQuickActionTypeToPluginName={}));export class AIQuickActionsUI extends _0x4a7df5{static get[_0x151398(0x1cb)](){return[_0x26354e];}static get[_0x151398(0x206)](){const _0x16f755=_0x151398;return _0x16f755(0x1ac);}static get[_0x151398(0x1e4)](){return!0x0;}static get[_0x151398(0x1b9)](){return!0x0;}[_0x151398(0x20a)](){const _0x345cd1=_0x151398;this[_0x345cd1(0x216)](this[_0x345cd1(0x1e1)]()),this[_0x345cd1(0x230)]();}static[_0x151398(0x222)](_0x4abc20){return function(_0x48ab26){const _0x489c86=_0x5190,_0x31a6e6=new Intl[(_0x489c86(0x21d))](['en'],{'type':_0x489c86(0x1cf)})['of'](_0x48ab26[_0x489c86(0x20f)]),_0x2643fc=_0x31a6e6||_0x489c86(0x1c9),_0x1ba8eb=[{'id':_0x489c86(0x1c8),'displayedPrompt':_0x370370(_0x48ab26,_0x489c86(0x1bd)),'type':AIQuickActionType[_0x489c86(0x1b6)],'icon':_0x4d51de},{'id':_0x489c86(0x21a),'label':_0x370370(_0x48ab26,_0x489c86(0x229)),'icon':_0x3e566e,'actions':[{'id':_0x489c86(0x212),'displayedPrompt':_0x370370(_0x48ab26,_0x489c86(0x1b8)),'prompt':Jt[_0x489c86(0x202)]('%0',_0x2643fc),'type':AIQuickActionType[_0x489c86(0x1b6)]},{'id':_0x489c86(0x1aa),'displayedPrompt':_0x370370(_0x48ab26,_0x489c86(0x1bc)),'prompt':Vt[_0x489c86(0x202)]('%0',_0x2643fc),'type':AIQuickActionType[_0x489c86(0x1b6)]},{'id':_0x489c86(0x1df),'displayedPrompt':_0x370370(_0x48ab26,_0x489c86(0x1b5)),'prompt':Xt[_0x489c86(0x202)]('%0',_0x2643fc),'type':AIQuickActionType[_0x489c86(0x1b6)]}]},{'id':_0x489c86(0x1ff),'displayedPrompt':_0x370370(_0x48ab26,_0x489c86(0x1ca)),'type':AIQuickActionType[_0x489c86(0x1de)],'icon':_0x4f7796},{'id':_0x489c86(0x224),'displayedPrompt':_0x370370(_0x48ab26,_0x489c86(0x211)),'type':AIQuickActionType[_0x489c86(0x1de)],'icon':_0x5e9582},{'id':_0x489c86(0x201),'displayedPrompt':_0x370370(_0x48ab26,_0x489c86(0x1c2)),'type':AIQuickActionType[_0x489c86(0x1de)],'icon':_0xf5af29},{'id':_0x489c86(0x1dc),'label':_0x370370(_0x48ab26,_0x489c86(0x232)),'icon':_0x29d754,'actions':[{'id':_0x489c86(0x22d),'displayedPrompt':_0x370370(_0x48ab26,_0x489c86(0x1f4)),'type':AIQuickActionType[_0x489c86(0x1de)]},{'id':_0x489c86(0x1d8),'displayedPrompt':_0x370370(_0x48ab26,_0x489c86(0x1f9)),'type':AIQuickActionType[_0x489c86(0x1de)]}]},{'id':_0x489c86(0x22e),'label':_0x370370(_0x48ab26,_0x489c86(0x1f8)),'icon':_0x4eeeea,'actions':[{'id':_0x489c86(0x1b3),'displayedPrompt':_0x370370(_0x48ab26,_0x489c86(0x1b7)),'type':AIQuickActionType[_0x489c86(0x1de)]},{'id':_0x489c86(0x205),'displayedPrompt':_0x370370(_0x48ab26,_0x489c86(0x1dd)),'type':AIQuickActionType[_0x489c86(0x1de)]},{'id':_0x489c86(0x1f5),'displayedPrompt':_0x370370(_0x48ab26,_0x489c86(0x1ef)),'type':AIQuickActionType[_0x489c86(0x1de)]},{'id':_0x489c86(0x1d0),'displayedPrompt':_0x370370(_0x48ab26,_0x489c86(0x23d)),'type':AIQuickActionType[_0x489c86(0x1de)]},{'id':_0x489c86(0x1b1),'displayedPrompt':_0x370370(_0x48ab26,_0x489c86(0x213)),'type':AIQuickActionType[_0x489c86(0x1de)]}]},{'id':_0x489c86(0x1f6),'label':_0x370370(_0x48ab26,_0x489c86(0x228)),'icon':_0x41ce61,'actions':[{'id':_0x489c86(0x1e2),'displayedPrompt':_0x370370(_0x48ab26,_0x489c86(0x1ad)),'type':AIQuickActionType[_0x489c86(0x1de)],'actionName':_0x489c86(0x1f6),'args':{'language':_0x489c86(0x22a)}},{'id':_0x489c86(0x221),'displayedPrompt':_0x370370(_0x48ab26,_0x489c86(0x227)),'type':AIQuickActionType[_0x489c86(0x1de)],'actionName':_0x489c86(0x1f6),'args':{'language':_0x489c86(0x21f)}},{'id':_0x489c86(0x1d4),'displayedPrompt':_0x370370(_0x48ab26,_0x489c86(0x1c0)),'type':AIQuickActionType[_0x489c86(0x1de)],'actionName':_0x489c86(0x1f6),'args':{'language':_0x489c86(0x1da)}},{'id':_0x489c86(0x1ba),'displayedPrompt':_0x370370(_0x48ab26,_0x489c86(0x1f0)),'type':AIQuickActionType[_0x489c86(0x1de)],'actionName':_0x489c86(0x1f6),'args':{'language':_0x489c86(0x1ee)}},{'id':_0x489c86(0x1e7),'displayedPrompt':_0x370370(_0x48ab26,_0x489c86(0x20d)),'type':AIQuickActionType[_0x489c86(0x1de)],'actionName':_0x489c86(0x1f6),'args':{'language':_0x489c86(0x1c4)}},{'id':_0x489c86(0x1d3),'displayedPrompt':_0x370370(_0x48ab26,_0x489c86(0x1af)),'type':AIQuickActionType[_0x489c86(0x1de)],'actionName':_0x489c86(0x1f6),'args':{'language':_0x489c86(0x1c5)}},{'id':_0x489c86(0x1e6),'displayedPrompt':_0x370370(_0x48ab26,_0x489c86(0x1ce)),'type':AIQuickActionType[_0x489c86(0x1de)],'actionName':_0x489c86(0x1f6),'args':{'language':_0x489c86(0x20c)}},{'id':_0x489c86(0x239),'displayedPrompt':_0x370370(_0x48ab26,_0x489c86(0x1ed)),'type':AIQuickActionType[_0x489c86(0x1de)],'actionName':_0x489c86(0x1f6),'args':{'language':_0x489c86(0x1f2)}},{'id':_0x489c86(0x235),'displayedPrompt':_0x370370(_0x48ab26,_0x489c86(0x210)),'type':AIQuickActionType[_0x489c86(0x1de)],'actionName':_0x489c86(0x1f6),'args':{'language':_0x489c86(0x204)}},{'id':_0x489c86(0x1e5),'displayedPrompt':_0x370370(_0x48ab26,_0x489c86(0x231)),'type':AIQuickActionType[_0x489c86(0x1de)],'actionName':_0x489c86(0x1f6),'args':{'language':_0x489c86(0x209)}}]},{'id':_0x489c86(0x238),'label':_0x370370(_0x48ab26,_0x489c86(0x1a9)),'icon':_0xcc8f9f,'actions':[]}];return _0x1ba8eb;}(_0x4abc20);}[_0x151398(0x1e1)](){const _0x2638e6=_0x151398,_0x173ef6=AIQuickActionsUI[_0x2638e6(0x222)](this[_0x2638e6(0x22c)][_0x2638e6(0x1fa)]),_0x26a4f5=(this[_0x2638e6(0x22c)][_0x2638e6(0x1c3)][_0x2638e6(0x1ec)](_0x2638e6(0x1b0))||[])[_0x2638e6(0x1d1)](_0x669ba2=>({..._0x669ba2,'icon':void 0x0}));return _0x173ef6[_0x2638e6(0x1b2)](_0x2dfe88=>_0x2638e6(0x238)===_0x2dfe88['id'])[_0x2638e6(0x1ea)][_0x2638e6(0x237)](..._0x26a4f5),_0x173ef6;}[_0x151398(0x230)](){const _0x4a1dc9=_0x151398,_0x2edb46=new _0x42ef4c(this[_0x4a1dc9(0x22c)][_0x4a1dc9(0x1fa)]);_0x2edb46[_0x4a1dc9(0x21c)](),this[_0x4a1dc9(0x1cd)](_0x2edb46),this[_0x4a1dc9(0x1fd)](),this[_0x4a1dc9(0x1d6)](_0x2edb46);}[_0x151398(0x1cd)](_0x230cd5){const _0x29710d=_0x151398;this[_0x29710d(0x22c)]['ui'][_0x29710d(0x207)][_0x29710d(0x21e)](_0x29710d(0x1d2),_0x28c9a1(this[_0x29710d(0x22c)],this[_0x29710d(0x219)],{'icon':_0x504ab7,'label':_0x370370(this[_0x29710d(0x22c)][_0x29710d(0x1fa)],_0x29710d(0x215))},_0x230cd5));}[_0x151398(0x216)](_0x19192f){const _0x519fc7=_0x151398;this[_0x519fc7(0x219)]=_0x19192f[_0x519fc7(0x1d1)](_0x559199=>{const _0x594be2=_0x519fc7;if(_0x594be2(0x1ea)in _0x559199){const _0x11e24b=_0x559199;return{..._0x11e24b,'actions':_0x11e24b[_0x594be2(0x1ea)][_0x594be2(0x1d1)](_0x32294d=>{const {actions:_0x4ce801,..._0x8f91c4}=_0x11e24b;return{..._0x32294d,'parent':_0x8f91c4};})[_0x594be2(0x1f1)](_0x15fd4e=>this[_0x594be2(0x1e3)](_0x15fd4e))};}return _0x559199;})[_0x519fc7(0x1f1)](_0x28415f=>_0x519fc7(0x1ea)in _0x28415f?_0x28415f[_0x519fc7(0x1ea)][_0x519fc7(0x1f7)]>0x0:this[_0x519fc7(0x1e3)](_0x28415f));}[_0x151398(0x1e3)](_0x57a5b8){const _0x5823b6=_0x151398,_0x4ffe24=this[_0x5823b6(0x22c)][_0x5823b6(0x1c3)][_0x5823b6(0x1ec)](_0x5823b6(0x226))||[];return this[_0x5823b6(0x22c)][_0x5823b6(0x23f)][_0x5823b6(0x21b)](AIQuickActionTypeToPluginName[_0x57a5b8[_0x5823b6(0x23e)]])&&!_0x4ffe24[_0x5823b6(0x1d7)](_0x57a5b8['id']);}[_0x151398(0x1d6)](_0x328b75){const _0xd111a5=_0x151398;this[_0xd111a5(0x219)][_0xd111a5(0x23a)](_0x454789=>{const _0x349ca3=_0xd111a5;if(_0x349ca3(0x1ea)in _0x454789){const _0x25f44b=_0x28c9a1(this[_0x349ca3(0x22c)],_0x454789[_0x349ca3(0x1ea)],_0x454789,_0x328b75);this[_0x349ca3(0x22c)]['ui'][_0x349ca3(0x207)][_0x349ca3(0x21e)](_0x454789['id'],_0x25f44b),_0x454789[_0x349ca3(0x1ea)][_0x349ca3(0x23a)](_0x16abc2=>{const _0x143db4=_0x349ca3,_0x52e877=_0x1964cd(this[_0x143db4(0x22c)],_0x16abc2);this[_0x143db4(0x22c)]['ui'][_0x143db4(0x207)][_0x143db4(0x21e)](_0x16abc2['id'],_0x52e877);});}else{const _0x2fcb51=_0x1964cd(this[_0x349ca3(0x22c)],_0x454789,!0x1,!0x0,!0x1);this[_0x349ca3(0x22c)]['ui'][_0x349ca3(0x207)][_0x349ca3(0x21e)](_0x454789['id'],_0x2fcb51);}});}[_0x151398(0x1fd)](){const _0x4270f4=_0x151398;this[_0x4270f4(0x22c)]['ui'][_0x4270f4(0x207)][_0x4270f4(0x21e)](_0x4270f4(0x1a8),_0x5d32bb=>{const _0x367ca4=_0x4270f4,_0x5ac13b=new _0x58ccf3(_0x5d32bb),_0x462d41=_0x370370(_0x5d32bb,_0x367ca4(0x215));_0x5ac13b[_0x367ca4(0x1e8)][_0x367ca4(0x217)]({'label':_0x462d41,'icon':_0x504ab7});const _0x3b238d=new _0x526598(_0x5d32bb);_0x3b238d[_0x367ca4(0x217)]({'ariaLabel':_0x462d41,'role':_0x367ca4(0x1c1)}),this[_0x367ca4(0x219)][_0x367ca4(0x23a)](_0x25258c=>{const _0x3ce7d8=_0x367ca4;if(_0x3ce7d8(0x1ea)in _0x25258c){const _0x473b36=_0x25258c,_0x5bb4b6=new _0x1015e2(_0x5d32bb,_0x5ac13b),_0x3865c7=new _0x58ccf3(_0x5d32bb),_0x1f3d49=new _0x526598(_0x5d32bb);_0x3865c7[_0x3ce7d8(0x1e8)][_0x3ce7d8(0x217)]({'label':_0x473b36[_0x3ce7d8(0x1e0)],'icon':_0x473b36[_0x3ce7d8(0x1bf)]}),_0x473b36[_0x3ce7d8(0x1ea)][_0x3ce7d8(0x23a)](_0x2010dc=>{const _0x224e4e=_0x3ce7d8,_0x108925=new _0x1015e2(_0x5d32bb,_0x3865c7),_0x391734=new _0x58963d(_0x5d32bb);_0x391734[_0x224e4e(0x217)]({'label':_0x2010dc[_0x224e4e(0x200)],'icon':_0x2010dc[_0x224e4e(0x1bf)],'role':_0x224e4e(0x1f3)}),_0x391734['on'](_0x224e4e(0x22f),()=>{const _0x1179e0=_0x224e4e;this[_0x1179e0(0x220)](_0x2010dc);}),_0x391734[_0x224e4e(0x203)](_0x224e4e(0x22f))['to'](_0x3865c7),_0x108925[_0x224e4e(0x1fc)][_0x224e4e(0x21e)](_0x391734),_0x1f3d49[_0x224e4e(0x225)][_0x224e4e(0x21e)](_0x108925);}),_0x3865c7[_0x3ce7d8(0x1c6)][_0x3ce7d8(0x1fc)][_0x3ce7d8(0x21e)](_0x1f3d49),_0x5bb4b6[_0x3ce7d8(0x1fc)][_0x3ce7d8(0x21e)](_0x3865c7),_0x3b238d[_0x3ce7d8(0x225)][_0x3ce7d8(0x21e)](_0x5bb4b6);}else{const _0x3832ae=_0x25258c,_0x4edfcd=new _0x1015e2(_0x5d32bb,_0x5ac13b),_0x3d29c6=new _0x58963d(_0x5d32bb);_0x3d29c6[_0x3ce7d8(0x217)]({'label':_0x3832ae[_0x3ce7d8(0x200)],'icon':_0x3832ae[_0x3ce7d8(0x1bf)],'role':_0x3ce7d8(0x1f3)}),_0x3d29c6['on'](_0x3ce7d8(0x22f),()=>{const _0x9a6a53=_0x3ce7d8;this[_0x9a6a53(0x220)](_0x3832ae);}),_0x3d29c6[_0x3ce7d8(0x203)](_0x3ce7d8(0x22f))['to'](_0x5ac13b),_0x4edfcd[_0x3ce7d8(0x1fc)][_0x3ce7d8(0x21e)](_0x3d29c6),_0x3b238d[_0x3ce7d8(0x225)][_0x3ce7d8(0x21e)](_0x4edfcd);}});const _0x594a1c=Object[_0x367ca4(0x1d9)](AIQuickActionTypeToPluginName)[_0x367ca4(0x22b)](_0x6b1474=>this[_0x367ca4(0x22c)][_0x367ca4(0x23f)][_0x367ca4(0x21b)](_0x6b1474));return _0x5ac13b[_0x367ca4(0x217)]({'isEnabled':_0x594a1c}),_0x5ac13b[_0x367ca4(0x1c6)][_0x367ca4(0x1fc)][_0x367ca4(0x21e)](_0x3b238d),_0x5ac13b;});}[_0x151398(0x220)](_0xd4c046){const _0x1ff3e7=_0x151398,_0x26a22d=this[_0x1ff3e7(0x22c)];_0x26a22d[_0x1ff3e7(0x1fe)][_0x1ff3e7(0x1d5)][_0x1ff3e7(0x1e9)](),_0x26a22d[_0x1ff3e7(0x208)][_0x1ff3e7(0x22f)](_0x1ff3e7(0x20b),_0xd4c046);const _0x24fde6=_0x26a22d['ui'][_0x1ff3e7(0x1d5)][_0x1ff3e7(0x1b4)];_0x24fde6&&_0x24fde6[_0x1ff3e7(0x23b)]&&_0x24fde6[_0x1ff3e7(0x23b)]();}}
|
|
23
|
+
const _0x3d938d=_0x5d21;(function(_0x360cce,_0x13cce2){const _0x257e75=_0x5d21,_0x1b0efd=_0x360cce();while(!![]){try{const _0x5480d8=-parseInt(_0x257e75(0x1ab))/0x1*(parseInt(_0x257e75(0x1cb))/0x2)+parseInt(_0x257e75(0x1eb))/0x3+parseInt(_0x257e75(0x215))/0x4+parseInt(_0x257e75(0x1e9))/0x5*(parseInt(_0x257e75(0x1a8))/0x6)+-parseInt(_0x257e75(0x1d0))/0x7*(parseInt(_0x257e75(0x19f))/0x8)+-parseInt(_0x257e75(0x1aa))/0x9+parseInt(_0x257e75(0x211))/0xa;if(_0x5480d8===_0x13cce2)break;else _0x1b0efd['push'](_0x1b0efd['shift']());}catch(_0x451180){_0x1b0efd['push'](_0x1b0efd['shift']());}}}(_0x2dbe,0x9b7a7));import{IconAIAdjustLength as _0x11157a,IconAIAskAI as _0x3a87db,IconAIChangeTone as _0x54a18c,IconAIChatCommands as _0x52c66c,IconAIContinueWriting as _0x457147,IconAIGrammarCheck as _0x73d73e,IconAIImproveWriting as _0x46204a,IconAIOther as _0x180529,IconAIQuickActions as _0x17fc05,IconAITranslate as _0x330b45}from'@ckeditor/ckeditor5-icons';import{Plugin as _0x2770df}from'ckeditor5/src/core.js';import{getTranslation as _0x1374e8}from'../aicore/utils/common-translations.js';import{aiQuickActionsDropdownCreator as _0xba5f5}from'./ui/aiquickactionsdropdowncreator.js';function _0x5d21(_0x4fb507,_0x229b2){const _0x2dbe93=_0x2dbe();return _0x5d21=function(_0x5d2160,_0x218581){_0x5d2160=_0x5d2160-0x193;let _0x208e86=_0x2dbe93[_0x5d2160];return _0x208e86;},_0x5d21(_0x4fb507,_0x229b2);}import{aiQuickActionsButtonCreator as _0x59e8e9}from'./ui/aiquickactionsbuttoncreator.js';import{BodyCollection as _0x393ded,BalloonToolbar as _0x550800,MenuBarMenuView as _0x17d780,MenuBarMenuListView as _0x10e156,MenuBarMenuListItemView as _0x31edee,MenuBarMenuListItemButtonView as _0x3819da}from'ckeditor5/src/ui.js';import'../../theme/aiquickactions/aiquickactions.css';function _0x2dbe(){const _0x48c372=['some','AIActions','AI_QUICK_ACTIONS_IMPROVE_WRITING','includes','displayedPrompt','panelView','menu','chinese','delegate','AI_QUICK_ACTIONS_TRANSLATE_JAPANESE','CHAT','AI_QUICK_ACTIONS_HEADING','AI_QUICK_ACTIONS_CHAT_COMMANDS','continue','AI_QUICK_ACTIONS_TRANSLATE_FRENCH','forEach','get','AI_QUICK_ACTIONS_MORE_CONFIDENT','plugins','fix-grammar','362144CdSVOB','ai.quickActions.extraCommands','values','commands','make-tone-direct','explain','AI_QUICK_ACTIONS_SUMMARIZE','translate-to-english','replace','12IruUky','aiQuickAction','11135844ykLkGA','1VzInRW','focus','AIChat','_initializeQuickActionsDropdown','make-longer','pluginName','ask-ai','spanish','AI_QUICK_ACTIONS_CONTINUE_WRITING','AI_QUICK_ACTIONS_TRANSLATE_ENGLISH','make-tone-casual','items','type','length','uiLanguage','REVIEW','isOfficialPlugin','AI_QUICK_ACTIONS_MORE_CASUAL','getDefaultQuickActions','translate-to-french','highlight-key-points','AI_QUICK_ACTIONS_TRANSLATE_KOREAN','make-tone-confident','isPremiumPlugin','AI_QUICK_ACTIONS_MORE_PROFESSIONAL','translate-to-spanish','AI_QUICK_ACTIONS_MORE_FRIENDLY','_initializeQuickActionsMenuBar','russian','translate-to-german','requires','icon','2150238spaOnM','make-tone-friendly','summarize','translate-to-italian','translate-to-chinese','84myZCra','AI_QUICK_ACTIONS_TRANSLATE_SPANISH','AI_QUICK_ACTIONS_CHANGE_TONE','translate-to-portuguese','_executeQuickAction','korean','AIReviewMode','menuBar:aiQuickActions','filter','french','AI_QUICK_ACTIONS_FIX_GRAMMAR_SPELLING','portuguese','editing','adjust-length','AI_QUICK_ACTIONS_TRANSLATE_CHINESE','AI_QUICK_ACTIONS_TRANSLATE','_quickActionsDefinition','AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS','_prepareQuickActionsDefinition','_getDefaultAndCustomActions','locale','menuitem','<task>For\x20given\x20selected\x20part\x20of\x20HTML\x20document\x20you\x20must\x20explain\x20the\x20meaning\x20of\x20it\x27s\x20content\x20clearly\x20and\x20in\x20plain\x20language.</task><rules>1.\x20Identify\x20what\x20type\x20of\x20text\x20it\x20is:-\x20If\x20it\x20looks\x20like\x20a\x20definition\x20explain\x20the\x20concept\x20in\x20simple\x20terms.-\x20If\x20it\x20looks\x20like\x20a\x20description\x20clarify\x20what\x20it\x20is\x20describing\x20and\x20why\x20it\x20matters.-\x20If\x20it\x20contains\x20technical\x20terms\x20or\x20jargon\x20break\x20them\x20down\x20into\x20everyday\x20language.-\x20If\x20it\x20looks\x20instructional\x20restate\x20as\x20clear\x20steps\x20someone\x20can\x20follow.-\x20If\x20it\x20provides\x20examples\x20explain\x20what\x20the\x20example\x20shows\x20and\x20why\x20it\x27s\x20relevant.-\x20If\x20it\x20presents\x20an\x20argument\x20or\x20claim\x20restate\x20the\x20claim\x20neutrally\x20and\x20explain\x20its\x20purpose.-\x20If\x20it\x20is\x20narrative/story-like\x20explain\x20what\x20event\x20or\x20situation\x20is\x20being\x20described.-\x20If\x20it\x20is\x20data-driven\x20(stats,\x20figures,\x20facts)\x20explain\x20what\x20the\x20data\x20indicates.-\x20If\x20it\x20is\x20a\x20quotation\x20explain\x20the\x20meaning\x20of\x20the\x20quote\x20in\x20context.-\x20If\x20it\x20compares/contrasts\x20things\x20explain\x20the\x20key\x20differences\x20or\x20similarities\x20simply.-\x20If\x20it\x20does\x20not\x20fit\x20any\x20of\x20the\x20categories\x20above\x20give\x20a\x20clear,\x20plain-language\x20explanation\x20of\x20its\x20meaning,\x20focusing\x20on\x20usefulness.2.\x20Provide\x20context\x20if\x20the\x20meaning\x20could\x20be\x20unclear\x20without\x20it.\x20(e.g.,\x20explain\x20where\x20such\x20a\x20term\x20might\x20be\x20used,\x20or\x20why\x20it\x20is\x20important).3.\x20Keep\x20the\x20explanation\x20short\x20but\x20complete\x20(2–5\x20sentences).Avoid\x20overly\x20technical\x20detail\x20unless\x20it\x20is\x20necessary\x20for\x20understanding.4.\x20Do\x20not\x20simply\x20repeat\x20the\x20original\x20text\x20—\x20restate\x20and\x20expand\x20it\x20in\x20plain\x20words.5.\x20If\x20possible,\x20add\x20a\x20short\x20example\x20or\x20analogy\x20to\x20make\x20it\x20easier\x20to\x20understand.6.\x20Use\x20the\x20context\x20of\x20the\x20whole\x20document,\x20but\x20focus\x20on\x20the\x20selected\x20part\x20when\x20creating\x20your\x20explanation.7.\x20Your\x20explanation\x20should\x20be\x20written\x20in\x20%0\x20language.</rules><constraints>1.\x20You\x20MUST\x20NOT\x20perform\x20any\x20edits\x20or\x20modifications\x20on\x20provided\x20document.2.\x20You\x20MUST\x20NOT\x20include\x20document\x20modifications\x20in\x20your\x20response.3.\x20Your\x20message\x20should\x20only\x20include\x20explanation.\x20Do\x20not\x20add\x20any\x20additional\x20text,\x20flattery,\x20questions\x20or\x20followup\x20suggestions.</constraints>','german','chat-commands','1980215MtHrwT','AI_QUICK_ACTIONS_TRANSLATE_PORTUGUESE','3654288XSnDoS','AI_QUICK_ACTIONS_MORE_DIRECT','English','AI_QUICK_ACTIONS_MAKE_SHORTER','map','ACTION','label','actions','push','italian','AIQuickActionsUI','improve-writing','other','children','AI_QUICK_ACTIONS_OTHER','_initializeQuickActionsComponents','attachToDom','translate-to-korean','change-tone','_initializeQuickActionsComponentsAndCommands','japanese','ai.quickActions.removeCommands','english','<task>For\x20the\x20given\x20selected\x20part\x20of\x20an\x20HTML\x20document\x20you\x20must\x20extract\x20and\x20present\x20the\x20key\x20points\x20from\x20its\x20content.</task><rules>1.\x20Present\x20the\x20output\x20as\x20a\x20clear,\x20structured\x20list\x20(bullets\x20or\x20numbered).-\x20Each\x20point\x20should\x20be\x20concise\x20(one\x20sentence\x20or\x20less).-\x20Do\x20not\x20merge\x20distinct\x20ideas\x20into\x20one\x20bullet.2.\x20Identify\x20what\x20type\x20of\x20text\x20it\x20is\x20and\x20adapt\x20the\x20extraction\x20style:-\x20If\x20it\x20is\x20descriptive\x20capture\x20the\x20main\x20attributes\x20or\x20features.-\x20If\x20it\x20is\x20argumentative\x20extract\x20the\x20main\x20claim\x20and\x20supporting\x20reasons\x20separately.-\x20If\x20it\x20is\x20narrative/story-like\x20extract\x20the\x20main\x20events\x20in\x20chronological\x20order.-\x20If\x20it\x20is\x20data-driven\x20(stats,\x20figures,\x20facts)\x20highlight\x20the\x20most\x20important\x20facts\x20or\x20numbers.-\x20If\x20it\x20is\x20instructional\x20list\x20the\x20steps\x20or\x20main\x20actions\x20in\x20simplified\x20form.-\x20If\x20it\x20provides\x20comparisons\x20extract\x20the\x20contrasted\x20items\x20and\x20their\x20differences/similarities.-\x20If\x20it\x20does\x20not\x20fit\x20any\x20category\x20above\x20extract\x20the\x20main\x20ideas\x20in\x20plain,\x20short\x20statements.3.\x20Keep\x20the\x20list\x20between\x203–7\x20items\x20where\x20possible.-\x20If\x20the\x20text\x20is\x20very\x20short,\x20fewer\x20items\x20are\x20fine.-\x20If\x20it\x20is\x20very\x20long,\x20focus\x20on\x20the\x20most\x20important\x20ideas\x20only.4.\x20Do\x20not\x20copy\x20long\x20text\x20fragments\x20—\x20restate\x20in\x20simple\x20words.5.\x20Do\x20not\x20add\x20interpretation,\x20evaluation,\x20or\x20commentary\x20beyond\x20the\x20text.6.\x20Ensure\x20the\x20list\x20can\x20stand\x20alone\x20without\x20requiring\x20the\x20reader\x20to\x20see\x20the\x20original\x20document.7.\x20Use\x20the\x20context\x20of\x20the\x20whole\x20document,\x20but\x20focus\x20on\x20the\x20selected\x20part\x20when\x20creating\x20your\x20key\x20points.8.\x20Your\x20key\x20points\x20should\x20be\x20written\x20in\x20%0\x20language.</rules><constraints>1.\x20You\x20MUST\x20NOT\x20perform\x20any\x20edits\x20or\x20modifications\x20on\x20the\x20provided\x20document.2.\x20You\x20MUST\x20NOT\x20include\x20document\x20modifications\x20in\x20your\x20response.3.\x20Your\x20message\x20should\x20only\x20include\x20the\x20extracted\x20key\x20points.\x20Do\x20not\x20add\x20any\x20additional\x20text,\x20flattery,\x20questions\x20or\x20followup\x20suggestions.</constraints>','AI_QUICK_ACTIONS_EXPLAIN','<task>For\x20the\x20given\x20selected\x20part\x20of\x20an\x20HTML\x20document\x20you\x20must\x20summarize\x20its\x20content\x20in\x20a\x20few\x20sentences,\x20keeping\x20only\x20the\x20essential\x20meaning.</task><rules>1.\x20Your\x20summary\x20should\x20be\x20short\x20and\x20clear:-\x20Aim\x20for\x202–4\x20sentences\x20unless\x20the\x20text\x20is\x20extremely\x20short.-\x20Focus\x20on\x20capturing\x20the\x20main\x20idea(s)\x20without\x20unnecessary\x20detail.2.\x20Identify\x20what\x20type\x20of\x20text\x20it\x20is\x20and\x20adapt\x20the\x20summary\x20style:-\x20If\x20it\x20is\x20descriptive\x20condense\x20the\x20description\x20into\x20its\x20core\x20idea.-\x20If\x20it\x20is\x20argumentative\x20or\x20opinion-based\x20summarize\x20the\x20main\x20claim\x20and\x20reasoning\x20neutrally.-\x20If\x20it\x20is\x20narrative/story-like\x20capture\x20the\x20main\x20event\x20or\x20outcome\x20without\x20side\x20details.-\x20If\x20it\x20is\x20data-driven\x20(stats,\x20figures,\x20facts)\x20summarize\x20what\x20the\x20data\x20shows\x20in\x20plain\x20language.-\x20If\x20it\x20is\x20instructional\x20restate\x20the\x20overall\x20purpose\x20of\x20the\x20steps\x20without\x20listing\x20every\x20step.-\x20If\x20it\x20does\x20not\x20fit\x20any\x20of\x20the\x20categories\x20above\x20provide\x20a\x20general\x20concise\x20summary.3.\x20Provide\x20context\x20if\x20necessary\x20for\x20clarity:-\x20Mention\x20the\x20subject\x20or\x20topic\x20explicitly\x20so\x20the\x20summary\x20can\x20stand\x20alone.4.\x20Do\x20not\x20simply\x20copy\x20sentences\x20from\x20the\x20original\x20text\x20—\x20rephrase\x20in\x20plain\x20language.5.\x20Avoid\x20adding\x20new\x20information\x20or\x20interpretation\x20not\x20present\x20in\x20the\x20text.6.\x20Summarize\x20in\x20a\x20way\x20that\x20would\x20make\x20sense\x20to\x20someone\x20who\x20has\x20not\x20read\x20the\x20original\x20text.7.\x20Use\x20the\x20context\x20of\x20the\x20whole\x20document,\x20but\x20focus\x20on\x20the\x20selected\x20part\x20when\x20creating\x20your\x20summary.8.\x20Your\x20summary\x20should\x20be\x20written\x20in\x20%0\x20language.</rules><constraints>1.\x20You\x20MUST\x20NOT\x20perform\x20any\x20edits\x20or\x20modifications\x20on\x20the\x20provided\x20document.2.\x20You\x20MUST\x20NOT\x20include\x20document\x20modifications\x20in\x20your\x20response.3.\x20Your\x20message\x20should\x20only\x20include\x20the\x20summary.\x20Do\x20not\x20add\x20any\x20additional\x20text,\x20flattery,\x20questions\x20or\x20followup\x20suggestions.</constraints>','add','close','find','aiQuickActions','buttonView','menuBarView','translate','has','editor','DisplayNames','AI_QUICK_ACTIONS_MAKE_LONGER','view','11326770OVwayX','AI_QUICK_ACTIONS_TRANSLATE_GERMAN','language','execute','1398524zGNqAU','set','AI_QUICK_ACTIONS_ADJUST_LENGTH','translate-to-japanese','AI_QUICK_ACTIONS_TRANSLATE_ITALIAN','translate-to-russian','AI_QUICK_ACTIONS_TRANSLATE_RUSSIAN','config','init','AI_QUICK_ACTIONS_ASK_AI','make-tone-professional','make-shorter','componentFactory','_shouldIncludeAction'];_0x2dbe=function(){return _0x48c372;};return _0x2dbe();}const te=_0x3d938d(0x1e6),ee=_0x3d938d(0x204),ie=_0x3d938d(0x202);export var AIQuickActionType;!function(_0x319df8){const _0x47b0a4=_0x3d938d;_0x319df8[_0x47b0a4(0x195)]=_0x47b0a4(0x195),_0x319df8[_0x47b0a4(0x1f0)]=_0x47b0a4(0x1f0),_0x319df8[_0x47b0a4(0x1ba)]=_0x47b0a4(0x1ba);}(AIQuickActionType||(AIQuickActionType={}));export var AIQuickActionTypeToPluginName;!function(_0x1b80d7){const _0x27c076=_0x3d938d;_0x1b80d7[_0x27c076(0x195)]=_0x27c076(0x1ad),_0x1b80d7[_0x27c076(0x1f0)]=_0x27c076(0x224),_0x1b80d7[_0x27c076(0x1ba)]=_0x27c076(0x1d6);}(AIQuickActionTypeToPluginName||(AIQuickActionTypeToPluginName={}));export class AIQuickActionsUI extends _0x2770df{static get[_0x3d938d(0x1c9)](){return[_0x550800];}static get[_0x3d938d(0x1b0)](){const _0x3eb1ac=_0x3d938d;return _0x3eb1ac(0x1f5);}static get[_0x3d938d(0x1bb)](){return!0x0;}static get[_0x3d938d(0x1c2)](){return!0x0;}[_0x3d938d(0x21d)](){const _0x31c361=_0x3d938d;this[_0x31c361(0x1e2)](this[_0x31c361(0x1e3)]()),this[_0x31c361(0x1fe)]();}static[_0x3d938d(0x1bd)](_0x2aae96){return function(_0x206590){const _0x15892c=_0x5d21,_0x435ecf=new Intl[(_0x15892c(0x20e))](['en'],{'type':_0x15892c(0x213)})['of'](_0x206590[_0x15892c(0x1b9)]),_0x3b8a13=_0x435ecf||_0x15892c(0x1ed),_0xa92289=[{'id':_0x15892c(0x1b1),'displayedPrompt':_0x1374e8(_0x206590,_0x15892c(0x21e)),'type':AIQuickActionType[_0x15892c(0x195)],'icon':_0x3a87db},{'id':_0x15892c(0x1e8),'label':_0x1374e8(_0x206590,_0x15892c(0x197)),'icon':_0x52c66c,'actions':[{'id':_0x15892c(0x1a4),'displayedPrompt':_0x1374e8(_0x206590,_0x15892c(0x203)),'prompt':te[_0x15892c(0x1a7)]('%0',_0x3b8a13),'type':AIQuickActionType[_0x15892c(0x195)]},{'id':_0x15892c(0x1cd),'displayedPrompt':_0x1374e8(_0x206590,_0x15892c(0x1a5)),'prompt':ee[_0x15892c(0x1a7)]('%0',_0x3b8a13),'type':AIQuickActionType[_0x15892c(0x195)]},{'id':_0x15892c(0x1bf),'displayedPrompt':_0x1374e8(_0x206590,_0x15892c(0x1e1)),'prompt':ie[_0x15892c(0x1a7)]('%0',_0x3b8a13),'type':AIQuickActionType[_0x15892c(0x195)]}]},{'id':_0x15892c(0x1f6),'displayedPrompt':_0x1374e8(_0x206590,_0x15892c(0x225)),'type':AIQuickActionType[_0x15892c(0x1f0)],'icon':_0x46204a},{'id':_0x15892c(0x198),'displayedPrompt':_0x1374e8(_0x206590,_0x15892c(0x1b3)),'type':AIQuickActionType[_0x15892c(0x1f0)],'icon':_0x457147},{'id':_0x15892c(0x19e),'displayedPrompt':_0x1374e8(_0x206590,_0x15892c(0x1da)),'type':AIQuickActionType[_0x15892c(0x1f0)],'icon':_0x73d73e},{'id':_0x15892c(0x1dd),'label':_0x1374e8(_0x206590,_0x15892c(0x217)),'icon':_0x11157a,'actions':[{'id':_0x15892c(0x220),'displayedPrompt':_0x1374e8(_0x206590,_0x15892c(0x1ee)),'type':AIQuickActionType[_0x15892c(0x1f0)]},{'id':_0x15892c(0x1af),'displayedPrompt':_0x1374e8(_0x206590,_0x15892c(0x20f)),'type':AIQuickActionType[_0x15892c(0x1f0)]}]},{'id':_0x15892c(0x1fd),'label':_0x1374e8(_0x206590,_0x15892c(0x1d2)),'icon':_0x54a18c,'actions':[{'id':_0x15892c(0x1b5),'displayedPrompt':_0x1374e8(_0x206590,_0x15892c(0x1bc)),'type':AIQuickActionType[_0x15892c(0x1f0)]},{'id':_0x15892c(0x1a3),'displayedPrompt':_0x1374e8(_0x206590,_0x15892c(0x1ec)),'type':AIQuickActionType[_0x15892c(0x1f0)]},{'id':_0x15892c(0x1cc),'displayedPrompt':_0x1374e8(_0x206590,_0x15892c(0x1c5)),'type':AIQuickActionType[_0x15892c(0x1f0)]},{'id':_0x15892c(0x1c1),'displayedPrompt':_0x1374e8(_0x206590,_0x15892c(0x19c)),'type':AIQuickActionType[_0x15892c(0x1f0)]},{'id':_0x15892c(0x21f),'displayedPrompt':_0x1374e8(_0x206590,_0x15892c(0x1c3)),'type':AIQuickActionType[_0x15892c(0x1f0)]}]},{'id':_0x15892c(0x20b),'label':_0x1374e8(_0x206590,_0x15892c(0x1df)),'icon':_0x330b45,'actions':[{'id':_0x15892c(0x1a6),'displayedPrompt':_0x1374e8(_0x206590,_0x15892c(0x1b4)),'type':AIQuickActionType[_0x15892c(0x1f0)],'actionName':_0x15892c(0x20b),'args':{'language':_0x15892c(0x201)}},{'id':_0x15892c(0x1cf),'displayedPrompt':_0x1374e8(_0x206590,_0x15892c(0x1de)),'type':AIQuickActionType[_0x15892c(0x1f0)],'actionName':_0x15892c(0x20b),'args':{'language':_0x15892c(0x22a)}},{'id':_0x15892c(0x1c4),'displayedPrompt':_0x1374e8(_0x206590,_0x15892c(0x1d1)),'type':AIQuickActionType[_0x15892c(0x1f0)],'actionName':_0x15892c(0x20b),'args':{'language':_0x15892c(0x1b2)}},{'id':_0x15892c(0x1c8),'displayedPrompt':_0x1374e8(_0x206590,_0x15892c(0x212)),'type':AIQuickActionType[_0x15892c(0x1f0)],'actionName':_0x15892c(0x20b),'args':{'language':_0x15892c(0x1e7)}},{'id':_0x15892c(0x1be),'displayedPrompt':_0x1374e8(_0x206590,_0x15892c(0x199)),'type':AIQuickActionType[_0x15892c(0x1f0)],'actionName':_0x15892c(0x20b),'args':{'language':_0x15892c(0x1d9)}},{'id':_0x15892c(0x218),'displayedPrompt':_0x1374e8(_0x206590,_0x15892c(0x194)),'type':AIQuickActionType[_0x15892c(0x1f0)],'actionName':_0x15892c(0x20b),'args':{'language':_0x15892c(0x1ff)}},{'id':_0x15892c(0x1d3),'displayedPrompt':_0x1374e8(_0x206590,_0x15892c(0x1ea)),'type':AIQuickActionType[_0x15892c(0x1f0)],'actionName':_0x15892c(0x20b),'args':{'language':_0x15892c(0x1db)}},{'id':_0x15892c(0x1fc),'displayedPrompt':_0x1374e8(_0x206590,_0x15892c(0x1c0)),'type':AIQuickActionType[_0x15892c(0x1f0)],'actionName':_0x15892c(0x20b),'args':{'language':_0x15892c(0x1d5)}},{'id':_0x15892c(0x1ce),'displayedPrompt':_0x1374e8(_0x206590,_0x15892c(0x219)),'type':AIQuickActionType[_0x15892c(0x1f0)],'actionName':_0x15892c(0x20b),'args':{'language':_0x15892c(0x1f4)}},{'id':_0x15892c(0x21a),'displayedPrompt':_0x1374e8(_0x206590,_0x15892c(0x21b)),'type':AIQuickActionType[_0x15892c(0x1f0)],'actionName':_0x15892c(0x20b),'args':{'language':_0x15892c(0x1c7)}}]},{'id':_0x15892c(0x1f7),'label':_0x1374e8(_0x206590,_0x15892c(0x1f9)),'icon':_0x180529,'actions':[]}];return _0xa92289;}(_0x2aae96);}[_0x3d938d(0x1e3)](){const _0x1bbb63=_0x3d938d,_0x2f38d3=AIQuickActionsUI[_0x1bbb63(0x1bd)](this[_0x1bbb63(0x20d)][_0x1bbb63(0x1e4)]),_0x50e85e=(this[_0x1bbb63(0x20d)][_0x1bbb63(0x21c)][_0x1bbb63(0x19b)](_0x1bbb63(0x1a0))||[])[_0x1bbb63(0x1ef)](_0x5970a5=>({..._0x5970a5,'icon':void 0x0}));return _0x2f38d3[_0x1bbb63(0x207)](_0x327da0=>_0x1bbb63(0x1f7)===_0x327da0['id'])[_0x1bbb63(0x1f2)][_0x1bbb63(0x1f3)](..._0x50e85e),_0x2f38d3;}[_0x3d938d(0x1fe)](){const _0x273c8e=_0x3d938d,_0x2c9197=new _0x393ded(this[_0x273c8e(0x20d)][_0x273c8e(0x1e4)]);_0x2c9197[_0x273c8e(0x1fb)](),this[_0x273c8e(0x1ae)](_0x2c9197),this[_0x273c8e(0x1c6)](),this[_0x273c8e(0x1fa)](_0x2c9197);}[_0x3d938d(0x1ae)](_0x1674ed){const _0x5bd083=_0x3d938d;this[_0x5bd083(0x20d)]['ui'][_0x5bd083(0x221)][_0x5bd083(0x205)](_0x5bd083(0x208),_0xba5f5(this[_0x5bd083(0x20d)],this[_0x5bd083(0x1e0)],{'icon':_0x17fc05,'label':_0x1374e8(this[_0x5bd083(0x20d)][_0x5bd083(0x1e4)],_0x5bd083(0x196))},_0x1674ed));}[_0x3d938d(0x1e2)](_0x234568){const _0x24ebb7=_0x3d938d;this[_0x24ebb7(0x1e0)]=_0x234568[_0x24ebb7(0x1ef)](_0x3828a7=>{const _0x6978a9=_0x24ebb7;if(_0x6978a9(0x1f2)in _0x3828a7){const _0x288e63=_0x3828a7;return{..._0x288e63,'actions':_0x288e63[_0x6978a9(0x1f2)][_0x6978a9(0x1ef)](_0x30e334=>{const {actions:_0x4d9fb7,..._0x4e64fb}=_0x288e63;return{..._0x30e334,'parent':_0x4e64fb};})[_0x6978a9(0x1d8)](_0x1d0248=>this[_0x6978a9(0x222)](_0x1d0248))};}return _0x3828a7;})[_0x24ebb7(0x1d8)](_0x26be04=>_0x24ebb7(0x1f2)in _0x26be04?_0x26be04[_0x24ebb7(0x1f2)][_0x24ebb7(0x1b8)]>0x0:this[_0x24ebb7(0x222)](_0x26be04));}[_0x3d938d(0x222)](_0x332d73){const _0x138ee0=_0x3d938d,_0x3de413=this[_0x138ee0(0x20d)][_0x138ee0(0x21c)][_0x138ee0(0x19b)](_0x138ee0(0x200))||[];return this[_0x138ee0(0x20d)][_0x138ee0(0x19d)][_0x138ee0(0x20c)](AIQuickActionTypeToPluginName[_0x332d73[_0x138ee0(0x1b7)]])&&!_0x3de413[_0x138ee0(0x226)](_0x332d73['id']);}[_0x3d938d(0x1fa)](_0xbbb7f8){const _0x1d0eb6=_0x3d938d;this[_0x1d0eb6(0x1e0)][_0x1d0eb6(0x19a)](_0x1bd76b=>{const _0x1f978a=_0x1d0eb6;if(_0x1f978a(0x1f2)in _0x1bd76b){const _0x5c94f6=_0xba5f5(this[_0x1f978a(0x20d)],_0x1bd76b[_0x1f978a(0x1f2)],_0x1bd76b,_0xbbb7f8);this[_0x1f978a(0x20d)]['ui'][_0x1f978a(0x221)][_0x1f978a(0x205)](_0x1bd76b['id'],_0x5c94f6),_0x1bd76b[_0x1f978a(0x1f2)][_0x1f978a(0x19a)](_0x4bdac5=>{const _0x2c7a4b=_0x1f978a,_0x11933f=_0x59e8e9(this[_0x2c7a4b(0x20d)],_0x4bdac5);this[_0x2c7a4b(0x20d)]['ui'][_0x2c7a4b(0x221)][_0x2c7a4b(0x205)](_0x4bdac5['id'],_0x11933f);});}else{const _0x1ef57e=_0x59e8e9(this[_0x1f978a(0x20d)],_0x1bd76b,!0x1,!0x0,!0x1);this[_0x1f978a(0x20d)]['ui'][_0x1f978a(0x221)][_0x1f978a(0x205)](_0x1bd76b['id'],_0x1ef57e);}});}[_0x3d938d(0x1c6)](){const _0x5ab39e=_0x3d938d;this[_0x5ab39e(0x20d)]['ui'][_0x5ab39e(0x221)][_0x5ab39e(0x205)](_0x5ab39e(0x1d7),_0x300f49=>{const _0x2791e=_0x5ab39e,_0x21df35=new _0x17d780(_0x300f49),_0x1e4354=_0x1374e8(_0x300f49,_0x2791e(0x196));_0x21df35[_0x2791e(0x209)][_0x2791e(0x216)]({'label':_0x1e4354,'icon':_0x17fc05});const _0x9b3d39=new _0x10e156(_0x300f49);_0x9b3d39[_0x2791e(0x216)]({'ariaLabel':_0x1e4354,'role':_0x2791e(0x229)}),this[_0x2791e(0x1e0)][_0x2791e(0x19a)](_0x5d6203=>{const _0x30474e=_0x2791e;if(_0x30474e(0x1f2)in _0x5d6203){const _0x51bd9d=_0x5d6203,_0x1c80d0=new _0x31edee(_0x300f49,_0x21df35),_0x41db21=new _0x17d780(_0x300f49),_0x1d8976=new _0x10e156(_0x300f49);_0x41db21[_0x30474e(0x209)][_0x30474e(0x216)]({'label':_0x51bd9d[_0x30474e(0x1f1)],'icon':_0x51bd9d[_0x30474e(0x1ca)]}),_0x51bd9d[_0x30474e(0x1f2)][_0x30474e(0x19a)](_0x20aac3=>{const _0x55b515=_0x30474e,_0x26dfcf=new _0x31edee(_0x300f49,_0x41db21),_0x12830f=new _0x3819da(_0x300f49);_0x12830f[_0x55b515(0x216)]({'label':_0x20aac3[_0x55b515(0x227)],'icon':_0x20aac3[_0x55b515(0x1ca)],'role':_0x55b515(0x1e5)}),_0x12830f['on'](_0x55b515(0x214),()=>{const _0x4a1aef=_0x55b515;this[_0x4a1aef(0x1d4)](_0x20aac3);}),_0x12830f[_0x55b515(0x193)](_0x55b515(0x214))['to'](_0x41db21),_0x26dfcf[_0x55b515(0x1f8)][_0x55b515(0x205)](_0x12830f),_0x1d8976[_0x55b515(0x1b6)][_0x55b515(0x205)](_0x26dfcf);}),_0x41db21[_0x30474e(0x228)][_0x30474e(0x1f8)][_0x30474e(0x205)](_0x1d8976),_0x1c80d0[_0x30474e(0x1f8)][_0x30474e(0x205)](_0x41db21),_0x9b3d39[_0x30474e(0x1b6)][_0x30474e(0x205)](_0x1c80d0);}else{const _0xba632d=_0x5d6203,_0x386a30=new _0x31edee(_0x300f49,_0x21df35),_0x4a41f8=new _0x3819da(_0x300f49);_0x4a41f8[_0x30474e(0x216)]({'label':_0xba632d[_0x30474e(0x227)],'icon':_0xba632d[_0x30474e(0x1ca)],'role':_0x30474e(0x1e5)}),_0x4a41f8['on'](_0x30474e(0x214),()=>{const _0x61bbfb=_0x30474e;this[_0x61bbfb(0x1d4)](_0xba632d);}),_0x4a41f8[_0x30474e(0x193)](_0x30474e(0x214))['to'](_0x21df35),_0x386a30[_0x30474e(0x1f8)][_0x30474e(0x205)](_0x4a41f8),_0x9b3d39[_0x30474e(0x1b6)][_0x30474e(0x205)](_0x386a30);}});const _0x3f4930=Object[_0x2791e(0x1a1)](AIQuickActionTypeToPluginName)[_0x2791e(0x223)](_0x16752e=>this[_0x2791e(0x20d)][_0x2791e(0x19d)][_0x2791e(0x20c)](_0x16752e));return _0x21df35[_0x2791e(0x216)]({'isEnabled':_0x3f4930}),_0x21df35[_0x2791e(0x228)][_0x2791e(0x1f8)][_0x2791e(0x205)](_0x9b3d39),_0x21df35;});}[_0x3d938d(0x1d4)](_0x54e943){const _0x27ce38=_0x3d938d,_0x437f1d=this[_0x27ce38(0x20d)];_0x437f1d[_0x27ce38(0x1dc)][_0x27ce38(0x210)][_0x27ce38(0x1ac)](),_0x437f1d[_0x27ce38(0x1a2)][_0x27ce38(0x214)](_0x27ce38(0x1a9),_0x54e943);const _0x372d17=_0x437f1d['ui'][_0x27ce38(0x210)][_0x27ce38(0x20a)];_0x372d17&&_0x372d17[_0x27ce38(0x206)]&&_0x372d17[_0x27ce38(0x206)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x12a8a9,_0x46ccf8){const _0x5a499c=_0x5b5d,_0x3009c6=_0x12a8a9();while(!![]){try{const _0x10a776=-parseInt(_0x5a499c(0x115))/0x1*(parseInt(_0x5a499c(0x11a))/0x2)+-parseInt(_0x5a499c(0x109))/0x3*(parseInt(_0x5a499c(0x113))/0x4)+-parseInt(_0x5a499c(0x110))/0x5*(-parseInt(_0x5a499c(0x123))/0x6)+-parseInt(_0x5a499c(0x11e))/0x7*(parseInt(_0x5a499c(0x111))/0x8)+parseInt(_0x5a499c(0x122))/0x9*(-parseInt(_0x5a499c(0x121))/0xa)+parseInt(_0x5a499c(0x120))/0xb*(parseInt(_0x5a499c(0x11c))/0xc)+parseInt(_0x5a499c(0x116))/0xd;if(_0x10a776===_0x46ccf8)break;else _0x3009c6['push'](_0x3009c6['shift']());}catch(_0x4de591){_0x3009c6['push'](_0x3009c6['shift']());}}}(_0x5763,0x5f65b));import{ButtonView as _0x16423b}from'ckeditor5/src/ui.js';import{IconAIQuickActions as _0x2ba2ce}from'@ckeditor/ckeditor5-icons';function _0x5b5d(_0x10b187,_0x3ce993){const _0x57632f=_0x5763();return _0x5b5d=function(_0x5b5d26,_0x16303c){_0x5b5d26=_0x5b5d26-0x109;let _0x456734=_0x57632f[_0x5b5d26];return _0x456734;},_0x5b5d(_0x10b187,_0x3ce993);}export function aiQuickActionsButtonCreator(_0x140d09,_0xe81f71,_0x65398b=!0x1,_0x139c7b=!0x0,_0x56e57b=!0x0){return()=>{const _0x5cd27c=_0x5b5d,_0x2faf6f=_0x140d09[_0x5cd27c(0x112)],_0x52a422=new _0x16423b(_0x2faf6f),_0x47560f=_0x52a422[_0x5cd27c(0x11d)];_0x56e57b&&_0x52a422[_0x5cd27c(0x114)]({'on':{'mouseenter':_0x47560f['to'](()=>{const _0x30c237=_0x5cd27c;_0x52a422[_0x30c237(0x10d)]();})}});const _0xb42d26=_0xe81f71[_0x5cd27c(0x10b)]??_0xe81f71[_0x5cd27c(0x11f)]?.[_0x5cd27c(0x10b)];return _0x52a422[_0x5cd27c(0x10c)]({'label':_0xe81f71[_0x5cd27c(0x10e)],'withText':_0x65398b,'role':_0x5cd27c(0x117),'icon':_0x139c7b?_0xb42d26??_0x2ba2ce:void 0x0,'tooltip':!_0x65398b,'class':_0x5cd27c(0x10f)}),_0x52a422['on'](_0x5cd27c(0x119),()=>{const _0x122396=_0x5cd27c;_0x140d09[_0x122396(0x124)][_0x122396(0x11b)][_0x122396(0x10d)](),_0x140d09[_0x122396(0x118)][_0x122396(0x119)](_0x122396(0x10a),_0xe81f71);}),_0x52a422;};}function _0x5763(){const _0xf819a2=['3751974emWLgf','30KnyAHd','editing','1042395siWflw','aiQuickAction','icon','set','focus','displayedPrompt','ck-ai-quick-actions-button','472495ZMAchA','368DDUPBw','locale','4AsttvE','extendTemplate','535810Djlrzd','24409710fvxUdl','menuitem','commands','execute','2wabKws','view','106452HOzvQP','bindTemplate','115171FZovef','parent','121CbAsJg','10eQzrRD'];_0x5763=function(){return _0xf819a2;};return _0x5763();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x33887d=_0x562c;(function(_0x4528a5,_0x4e0577){const _0x1bc01a=_0x562c,_0x37e98a=_0x4528a5();while(!![]){try{const _0xdb16e2=-parseInt(_0x1bc01a(0x208))/0x1*(-parseInt(_0x1bc01a(0x21e))/0x2)+-parseInt(_0x1bc01a(0x200))/0x3+parseInt(_0x1bc01a(0x1f6))/0x4*(parseInt(_0x1bc01a(0x213))/0x5)+parseInt(_0x1bc01a(0x20c))/0x6*(parseInt(_0x1bc01a(0x20b))/0x7)+parseInt(_0x1bc01a(0x21b))/0x8+-parseInt(_0x1bc01a(0x1f7))/0x9*(-parseInt(_0x1bc01a(0x1e3))/0xa)+parseInt(_0x1bc01a(0x22a))/0xb*(-parseInt(_0x1bc01a(0x1e6))/0xc);if(_0xdb16e2===_0x4e0577)break;else _0x37e98a['push'](_0x37e98a['shift']());}catch(_0x494944){_0x37e98a['push'](_0x37e98a['shift']());}}}(_0x19f1,0x19f6c));import{View as _0x44f5a7,ListItemView as _0x131325,ListView as _0x5ac113,BalloonPanelView as _0x220413,DropdownMenuPanelPositioningFunctions as _0x37eaab,DropdownMenuButtonView as _0xe2b6e7,ViewCollection as _0xb6773f,FocusCycler as _0x4fe42a}from'ckeditor5/src/ui.js';import{IconAIQuickActions as _0xd5097c}from'@ckeditor/ckeditor5-icons';import{FocusTracker as _0x240d8d,KeystrokeHandler as _0x445e52}from'ckeditor5/src/utils.js';function _0x19f1(){const _0x5eb7b2=['delete','763nwojUX','5766mSpuvI','_bodyCollection','mouseleave','uiLanguageDirection','_setupGroupMenuBehavior','_createListItems','set','2195LsEjPZ','keystrokes','_hideNestedPanel','add','focusCycler','bindTemplate','rtl','addEventListener','711640akxXar','isOn','menuitem','2SzQNxP','_openNestedPanels','hide','ck-rounded-corners','_createGroupActionsList','content','_createActionGroupButton','ck-ai-quick-actions-group-panel','forEach','eastSouth','closest','.ck-ai-quick-actions-group-panel','88TLiCZk','_isMovingToNestedMenu','div','.ck-ai-quick-actions-group-list','ck-ai-quick-actions-group-list','role','detachFromDom','_focusables','focus','ck-dropdown-menu__nested-menu__panel','_showNestedPanel','10hqpRqi','bind','ArrowRight','703608UXQzcd','ck-ai-quick-actions','key','focusTracker','pin','label','clear','isVisible','ck-reset_all','extendTemplate','locale','relatedTarget','items','destroy','icon','contains','1644dzFnNr','152253qjbTYZ','optionsListView','get','.ck-ai-quick-actions-group-button','element','setTemplate','_createActionButton','menu','render','57567MjlEIg','ck-dropdown-menu-list','ck-ai-quick-actions-group-button','children','actions','show','_hideAllNestedPanels','addMany','203559HKrTNf','ArrowLeft'];_0x19f1=function(){return _0x5eb7b2;};return _0x19f1();}import{aiQuickActionsButtonCreator as _0xa6092f}from'./aiquickactionsbuttoncreator.js';const Ls=_0x33887d(0x1fe),Ns=_0x33887d(0x21d);function _0x562c(_0x125385,_0x1c71f0){const _0x19f10c=_0x19f1();return _0x562c=function(_0x562caf,_0x43e524){_0x562caf=_0x562caf-0x1df;let _0x41b0d3=_0x19f10c[_0x562caf];return _0x41b0d3;},_0x562c(_0x125385,_0x1c71f0);}export class AIQuickActionsDropdownContentView extends _0x44f5a7{[_0x33887d(0x20d)];[_0x33887d(0x1f8)];[_0x33887d(0x1e9)];[_0x33887d(0x214)];[_0x33887d(0x1df)];[_0x33887d(0x217)];[_0x33887d(0x21f)]=new Set();constructor(_0x25516b,_0x47e4bc,_0x59e578,_0x3bb9ca){const _0x1ec02b=_0x33887d,_0x54d7a3=_0x25516b[_0x1ec02b(0x1f0)];super(_0x54d7a3),this[_0x1ec02b(0x20d)]=_0x3bb9ca;const _0x59b602=this[_0x1ec02b(0x211)](_0x25516b,_0x47e4bc,_0x59e578);this[_0x1ec02b(0x1f8)]=new _0x5ac113(_0x54d7a3),this[_0x1ec02b(0x1f8)][_0x1ec02b(0x22f)]=Ls,this[_0x1ec02b(0x1f8)][_0x1ec02b(0x1f2)][_0x1ec02b(0x207)](_0x59b602),this[_0x1ec02b(0x1e9)]=new _0x240d8d(),this[_0x1ec02b(0x214)]=new _0x445e52(),this[_0x1ec02b(0x1df)]=_0x59b602,this[_0x1ec02b(0x217)]=new _0x4fe42a({'focusables':this[_0x1ec02b(0x1df)],'focusTracker':this[_0x1ec02b(0x1e9)],'keystrokeHandler':this[_0x1ec02b(0x214)]}),this[_0x1ec02b(0x1fc)]({'tag':_0x1ec02b(0x22c),'attributes':{'class':['ck',_0x1ec02b(0x1ee),_0x1ec02b(0x1e7),_0x1ec02b(0x221)],'dir':_0x54d7a3[_0x1ec02b(0x20f)]},'children':[this[_0x1ec02b(0x1f8)]]});}[_0x33887d(0x211)](_0x12c22f,_0x1e5ceb,_0x2be9ac){const _0x1b8b0f=_0x33887d,_0x5bea74=new _0xb6773f();return _0x1e5ceb[_0x1b8b0f(0x226)](_0x13dbed=>{const _0x57426a=_0x1b8b0f;_0x57426a(0x204)in _0x13dbed?_0x5bea74[_0x57426a(0x216)](this[_0x57426a(0x224)](_0x12c22f,_0x13dbed,_0x2be9ac)):_0x5bea74[_0x57426a(0x216)](this[_0x57426a(0x1fd)](_0x12c22f,_0x13dbed));}),_0x5bea74;}[_0x33887d(0x1fd)](_0x2237d7,_0x57e10c){const _0x137cc6=_0x33887d,_0x17afdb=new _0x131325(this[_0x137cc6(0x1f0)]),_0x59abac=_0xa6092f(_0x2237d7,_0x57e10c,!0x0,void 0x0!==_0x57e10c[_0x137cc6(0x1f4)])();return _0x17afdb[_0x137cc6(0x203)][_0x137cc6(0x216)](_0x59abac),_0x17afdb;}[_0x33887d(0x224)](_0x49617a,_0x5863bc,_0x45ed2b){const _0x3d8c74=_0x33887d,_0x3c5305=new _0x131325(this[_0x3d8c74(0x1f0)]),_0x3ca20c=new _0xe2b6e7(this[_0x3d8c74(0x1f0)]),_0x2a135d=_0x3ca20c[_0x3d8c74(0x218)],_0x5af1bd=_0x3d8c74(0x219)===_0x45ed2b[_0x3d8c74(0x1f0)][_0x3d8c74(0x20f)]?_0x3d8c74(0x1e5):_0x3d8c74(0x209),_0x19da66=this[_0x3d8c74(0x222)](_0x49617a,_0x5863bc[_0x3d8c74(0x204)],_0x45ed2b);_0x3ca20c[_0x3d8c74(0x212)]({'label':_0x5863bc[_0x3d8c74(0x1eb)],'withText':!0x0,'role':Ns,'icon':_0x5863bc[_0x3d8c74(0x1f4)]??_0xd5097c}),_0x3ca20c[_0x3d8c74(0x1ef)]({'on':{'mouseenter':_0x2a135d['to'](()=>{const _0x251ec8=_0x3d8c74;_0x3ca20c[_0x251ec8(0x1e0)]();})}});const _0x284d72=new _0x220413(this[_0x3d8c74(0x1f0)]);return _0x284d72[_0x3d8c74(0x1ef)]({'attributes':{'class':['ck',_0x3d8c74(0x1ee),_0x3d8c74(0x225),_0x3d8c74(0x1e1)]},'on':{'keydown':_0x2a135d['to'](_0x506dc7=>{const _0x1615d9=_0x3d8c74;_0x506dc7[_0x1615d9(0x1e8)]==_0x5af1bd&&(_0x3ca20c[_0x1615d9(0x1e0)](),this[_0x1615d9(0x215)](_0x284d72));})}}),_0x3ca20c[_0x3d8c74(0x1e4)](_0x3d8c74(0x21c))['to'](_0x284d72,_0x3d8c74(0x1ed)),this[_0x3d8c74(0x20d)][_0x3d8c74(0x216)](_0x284d72),_0x284d72[_0x3d8c74(0x223)][_0x3d8c74(0x216)](_0x19da66),this[_0x3d8c74(0x210)](_0x3ca20c,_0x284d72),_0x3c5305[_0x3d8c74(0x203)][_0x3d8c74(0x216)](_0x3ca20c),_0x3c5305;}[_0x33887d(0x222)](_0x4550fc,_0x34b370,_0x4c38ae){const _0x298b3b=_0x33887d,_0x4c79e6=new _0x5ac113(this[_0x298b3b(0x1f0)]);return _0x4c79e6[_0x298b3b(0x1ef)]({'attributes':{'class':['ck',_0x298b3b(0x1ee),_0x298b3b(0x22e),_0x298b3b(0x201)]}}),_0x34b370[_0x298b3b(0x226)](_0x2dcd1b=>{const _0x54da51=_0x298b3b,_0x119e6b=new _0x131325(this[_0x54da51(0x1f0)]),_0x34b838=_0xa6092f(_0x4550fc,_0x2dcd1b,!0x0,!0x1)();_0x119e6b[_0x54da51(0x203)][_0x54da51(0x216)](_0x34b838),_0x4c38ae[_0x54da51(0x1e9)][_0x54da51(0x216)](_0x34b838),_0x4c79e6[_0x54da51(0x1f2)][_0x54da51(0x216)](_0x119e6b);}),_0x4c79e6;}[_0x33887d(0x210)](_0x502ce2,_0x1b9cf9){const _0x1c343f=_0x33887d,_0x344128=_0x502ce2[_0x1c343f(0x218)],_0x24c8dd=_0x1c343f(0x219)===_0x502ce2[_0x1c343f(0x1f0)][_0x1c343f(0x20f)]?_0x1c343f(0x209):_0x1c343f(0x1e5);_0x502ce2[_0x1c343f(0x1ef)]({'attributes':{'class':[_0x1c343f(0x202)]},'on':{'mouseenter':_0x344128['to'](()=>{const _0x4fa7de=_0x1c343f;this[_0x4fa7de(0x1e2)](_0x1b9cf9,_0x502ce2);}),'mouseleave':_0x344128['to'](_0x88bfc9=>{const _0x290362=_0x1c343f,_0x4a2358=_0x88bfc9[_0x290362(0x1f1)];this[_0x290362(0x22b)](_0x4a2358,_0x1b9cf9)||this[_0x290362(0x215)](_0x1b9cf9);}),'keydown':_0x344128['to'](_0x20797d=>{const _0x4e1aaa=_0x1c343f;_0x20797d[_0x4e1aaa(0x1e8)]==_0x24c8dd&&(this[_0x4e1aaa(0x1e2)](_0x1b9cf9,_0x502ce2),_0x1b9cf9[_0x4e1aaa(0x223)][_0x4e1aaa(0x1f9)](0x0)[_0x4e1aaa(0x1e0)]());})}}),_0x1b9cf9['on'](_0x1c343f(0x1ff),()=>{const _0x4175b0=_0x1c343f;_0x1b9cf9[_0x4175b0(0x1fb)]?.[_0x4175b0(0x21a)](_0x4175b0(0x20e),_0x2cdca1=>{const _0x5a2778=_0x4175b0,_0x2d17d4=_0x2cdca1[_0x5a2778(0x1f1)];_0x502ce2[_0x5a2778(0x1fb)]?.[_0x5a2778(0x1f5)](_0x2d17d4)||this[_0x5a2778(0x22b)](_0x2d17d4,_0x1b9cf9)||this[_0x5a2778(0x215)](_0x1b9cf9);});});}[_0x33887d(0x1e2)](_0x5e286b,_0x24ea9f){const _0xb13b51=_0x33887d;this[_0xb13b51(0x21f)][_0xb13b51(0x226)](_0x2b91f4=>{const _0x31ca0e=_0xb13b51;_0x2b91f4!==_0x5e286b&&_0x2b91f4[_0x31ca0e(0x1ed)]&&_0x2b91f4[_0x31ca0e(0x220)]();}),_0x5e286b[_0xb13b51(0x205)](),_0x5e286b[_0xb13b51(0x1ea)]({'positions':[_0x37eaab[_0xb13b51(0x227)]],'target':_0x24ea9f[_0xb13b51(0x1fb)],'fitInViewport':!0x0}),this[_0xb13b51(0x21f)][_0xb13b51(0x216)](_0x5e286b);}[_0x33887d(0x215)](_0x55631b){const _0x5eb4bf=_0x33887d;_0x55631b[_0x5eb4bf(0x220)](),this[_0x5eb4bf(0x21f)][_0x5eb4bf(0x20a)](_0x55631b);}[_0x33887d(0x206)](){const _0x13f3d4=_0x33887d;this[_0x13f3d4(0x21f)][_0x13f3d4(0x226)](_0x340e81=>_0x340e81[_0x13f3d4(0x220)]()),this[_0x13f3d4(0x21f)][_0x13f3d4(0x1ec)]();}[_0x33887d(0x22b)](_0x37f98b,_0x5101e9){const _0x48f47b=_0x33887d;if(!_0x37f98b)return!0x1;if(_0x5101e9[_0x48f47b(0x1fb)]?.[_0x48f47b(0x1f5)](_0x37f98b))return!0x0;const _0x193707=_0x37f98b;return _0x193707[_0x48f47b(0x228)]&&(null!==_0x193707[_0x48f47b(0x228)](_0x48f47b(0x229))||null!==_0x193707[_0x48f47b(0x228)](_0x48f47b(0x22d))||null!==_0x193707[_0x48f47b(0x228)](_0x48f47b(0x1fa)));}[_0x33887d(0x1f3)](){const _0x530511=_0x33887d;this[_0x530511(0x206)](),this[_0x530511(0x20d)][_0x530511(0x230)](),super[_0x530511(0x1f3)]();}[_0x33887d(0x1e0)](){const _0x46589d=_0x33887d;this[_0x46589d(0x1f8)][_0x46589d(0x1e0)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x34385b,_0x186072){const _0x2eea84=_0x58fb,_0x29e743=_0x34385b();while(!![]){try{const _0x1dcf0e=parseInt(_0x2eea84(0x98))/0x1*(-parseInt(_0x2eea84(0xa6))/0x2)+parseInt(_0x2eea84(0x9c))/0x3+-parseInt(_0x2eea84(0x97))/0x4*(-parseInt(_0x2eea84(0x9f))/0x5)+parseInt(_0x2eea84(0xa1))/0x6*(-parseInt(_0x2eea84(0xa2))/0x7)+-parseInt(_0x2eea84(0xa8))/0x8+parseInt(_0x2eea84(0x9a))/0x9+-parseInt(_0x2eea84(0x9e))/0xa*(-parseInt(_0x2eea84(0xa7))/0xb);if(_0x1dcf0e===_0x186072)break;else _0x29e743['push'](_0x29e743['shift']());}catch(_0x542151){_0x29e743['push'](_0x29e743['shift']());}}}(_0x2d1c,0xe56f5));function _0x58fb(_0x3155c,_0x4fbace){const _0x2d1c9a=_0x2d1c();return _0x58fb=function(_0x58fb40,_0x41a638){_0x58fb40=_0x58fb40-0x97;let _0x117a95=_0x2d1c9a[_0x58fb40];return _0x117a95;},_0x58fb(_0x3155c,_0x4fbace);}import{createDropdown as _0xca619e}from'ckeditor5/src/ui.js';import{IconAIQuickActions as _0x4fc030}from'@ckeditor/ckeditor5-icons';import{AIQuickActionsDropdownContentView as _0x2635d8}from'./aiquickactionsdropdowncontentview.js';function _0x2d1c(){const _0x31dbfa=['add','280TQQkKI','2425tczFeY','ck-ai-quick-actions-dropdown','159714lfZNJa','287hgNNmd','panelView','children','buttonView','615046WcCIve','1006148iuyiXt','13727136PeEPvP','locale','icon','10104SsWRgr','6dOVEtc','set','3397896EhHIvc','label','4285248NlxxtU'];_0x2d1c=function(){return _0x31dbfa;};return _0x2d1c();}export function aiQuickActionsDropdownCreator(_0x3394a5,_0x455c8b,_0x4338cf,_0x1dac37){return()=>{const _0x1d6fd8=_0x58fb,_0x5f1266=_0x3394a5[_0x1d6fd8(0xa9)],_0x3957aa=_0xca619e(_0x5f1266);_0x3957aa[_0x1d6fd8(0xa5)][_0x1d6fd8(0x99)]({'icon':_0x4338cf[_0x1d6fd8(0xaa)]??_0x4fc030,'label':_0x4338cf[_0x1d6fd8(0x9b)],'tooltip':!0x0}),_0x3957aa[_0x1d6fd8(0x99)]({'class':_0x1d6fd8(0xa0)});const _0x4581c6=new _0x2635d8(_0x3394a5,_0x455c8b,_0x3957aa,_0x1dac37);return _0x3957aa[_0x1d6fd8(0xa3)][_0x1d6fd8(0xa4)][_0x1d6fd8(0x9d)](_0x4581c6),_0x3957aa;};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x44db3c=_0x5d94;(function(_0x17ff20,_0x4004db){var _0x4366f6=_0x5d94,_0x3faa2d=_0x17ff20();while(!![]){try{var _0x4cdf86=parseInt(_0x4366f6(0x11f))/0x1+parseInt(_0x4366f6(0x126))/0x2*(parseInt(_0x4366f6(0x12b))/0x3)+parseInt(_0x4366f6(0x120))/0x4*(-parseInt(_0x4366f6(0x123))/0x5)+parseInt(_0x4366f6(0x11e))/0x6*(-parseInt(_0x4366f6(0x12a))/0x7)+parseInt(_0x4366f6(0x121))/0x8+parseInt(_0x4366f6(0x122))/0x9+-parseInt(_0x4366f6(0x11c))/0xa*(parseInt(_0x4366f6(0x125))/0xb);if(_0x4cdf86===_0x4004db)break;else _0x3faa2d['push'](_0x3faa2d['shift']());}catch(_0x4dfde7){_0x3faa2d['push'](_0x3faa2d['shift']());}}}(_0x57e0,0x729d8));import{ContextPlugin as _0x1a9fc5}from'ckeditor5/src/core.js';function _0x57e0(){var _0x5bc296=['6620170AhVkyY','isPremiumPlugin','114mDmzJY','929560XunsvP','567628mEQcUP','2399104hTSIQT','6570846dYePUn','5xivxOT','pluginName','33XfAaIB','10AOgMrn','AIReviewMode','requires','isOfficialPlugin','28910sQUhSr','429810zOREvs'];_0x57e0=function(){return _0x5bc296;};return _0x57e0();}import{AIReviewModeController as _0x37a814}from'./aireviewmodecontroller.js';import{AIReviewModeUI as _0x2a9809}from'./aireviewmodeui.js';function _0x5d94(_0xac87b7,_0x5a6358){var _0x57e06e=_0x57e0();return _0x5d94=function(_0x5d9486,_0x5c5b37){_0x5d9486=_0x5d9486-0x11c;var _0x953ce5=_0x57e06e[_0x5d9486];return _0x953ce5;},_0x5d94(_0xac87b7,_0x5a6358);}import{AIReviewModeEditing as _0x3d0bca}from'./aireviewmodeediting.js';export class AIReviewMode extends _0x1a9fc5{static get[_0x44db3c(0x128)](){return[_0x37a814,_0x2a9809,_0x3d0bca];}static get[_0x44db3c(0x124)](){var _0x4a7b35=_0x44db3c;return _0x4a7b35(0x127);}static get[_0x44db3c(0x129)](){return!0x0;}static get[_0x44db3c(0x11d)](){return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2748bb=_0x1224;(function(_0x4edaf8,_0x3a6c2d){const _0x2b8f5c=_0x1224,_0x1d69f9=_0x4edaf8();while(!![]){try{const _0x555bcd=parseInt(_0x2b8f5c(0x126))/0x1+parseInt(_0x2b8f5c(0x125))/0x2*(-parseInt(_0x2b8f5c(0xd7))/0x3)+parseInt(_0x2b8f5c(0xe4))/0x4+parseInt(_0x2b8f5c(0xe0))/0x5+parseInt(_0x2b8f5c(0x15d))/0x6+parseInt(_0x2b8f5c(0x13c))/0x7+-parseInt(_0x2b8f5c(0x109))/0x8*(parseInt(_0x2b8f5c(0x150))/0x9);if(_0x555bcd===_0x3a6c2d)break;else _0x1d69f9['push'](_0x1d69f9['shift']());}catch(_0x44b22a){_0x1d69f9['push'](_0x1d69f9['shift']());}}}(_0x4c74,0xf0212));import{ContextPlugin as _0x1a8b5f}from'ckeditor5/src/core.js';import{CKEditorError as _0x316ead,logError as _0x40ad5d,scrollAncestorsToShowTarget as _0x3fd812,scrollViewportToShowTarget as _0x4fedac}from'ckeditor5/src/utils.js';function _0x1224(_0x435ae4,_0x22d0de){const _0x4c7480=_0x4c74();return _0x1224=function(_0x1224e4,_0x20434c){_0x1224e4=_0x1224e4-0xd1;let _0x229324=_0x4c7480[_0x1224e4];return _0x229324;},_0x1224(_0x435ae4,_0x22d0de);}import{AIConnector as _0x9373e1}from'../aicore/aiconnector.js';import{AIReviewCheckList as _0x298c0d}from'./model/aireviewchecklist.js';import{AIReviewSystemCheckRun as _0x46612c}from'./model/aireviewsystemcheckrun.js';function _0x4c74(){const _0x197a35=['showCheckRunResult','context','abortReviewStream','isOfficialPlugin','hideDiffInBalloon','reviewCheckResultReady','get','AI_MODEL_DESCRIPTION_','ai.reviewMode.translations','_aiConnector','init','find','getMarkerElementForChange','params','retryReview','_changeActivationSource','source','title','setAvailableChecks','13824168OKcfYA','switchToEdit','config','error-chunk','_TITLE','map','deactivateChange','content','AIReviewModeController','includes','sendRating','removeClass','reviewCheckRunUpdated','start','changeMarkerClick','isCustom','data','reviewCheckResultDeactivated','showDiffInBalloon','model','showReviewCompletedView','showNoChangesView','restart','view','showCheckRunResults','result','AIReviewModeUI','processedResultsCount','968XVZiYW','626065ScjaQg','changeId','getDocumentData','reviewCheckResultActivated','toggleDiff','replaceAll','activateChange','_aiReviewModeUi','AIReviewModeEditing','emitter','custom','getActiveChanges','acceptAllChanges','panel','ai-review-mode-check-run-failed','addClass','changes','unmodified','isPremiumPlugin','reviewCheckResultAdded','aborted','ck-ai-review-mode-highlights','5652290tWGRGU','getEditor','getRoot','setActiveStateInResults','updateChangeState','hasModifications','markAllChangesAsAccepted','loading','_DESCRIPTION','forceReadyState','_aiReviewModeEditing','getCheckById','getAll','_OPTIONS_DATA_','AI_REVIEW_CHECK_','locale','_isDiffOn','options','error-general','clearAllMarkers','9OUtXyP','acceptChange','label','leaveReviewMode','_currentReviewCheckRun','_OPTIONS_LABEL','diffContent','description','_onReviewModeRunLeave','markChangePositionInEditorContent','args','documentData','applyChange','7170oPjtdG','message','markChangeAsRejected','document','showActionsWhenResultIsReady','abort','ready','length','getChangeElement','_logError','showChunkErrorView','isChangeActive','setCheckResultTitle','translate','AIConnector','stopListening','status','pluginName','_getTranslationWithDefault','models','domElement','leaveReviewModeResultList','reviewCheckResultRejected','requires','subTitle','.ck-ai-review-mode__check-run-result','listenTo','finishReview','_translateReviewChecks','ai-review-mode-no-current-check-run','addResultChanges','finished','6027TsatQd','accepted','editing','ck-ai-review-mode-diff','contentInitial','checks','change','contentNew','showGeneralErrorView','3106410iquNJr','toUpperCase','prompt','rejected','6511740cRwcpA','showReviewCheckList','ai-request-aborted','resetActiveStateInResults','closest','switchToReadOnly','showChangeBalloon','runReviewCheck','_onDiffChange','reviewCheckResultAccepted','ai-review-mode-source-check-not-found','markChangeAsAccepted','getReviewCheckList','rejectChange','_aiReviewCheckList','plugins','dismissChange','hideChangeBalloon'];_0x4c74=function(){return _0x197a35;};return _0x4c74();}import{AIReviewCustomCheckRun as _0x3589b4}from'./model/aireviewcustomcheckrun.js';import{AIReviewModels as _0x512e68}from'./model/aireviewmodels.js';import{AI_REVIEW_CHECKS as _0x38c917}from'./aireviewcheckdefinitions.js';import{getTranslation as _0x289bd0}from'../aicore/utils/common-translations.js';export class AIReviewModeController extends _0x1a8b5f{[_0x2748bb(0xff)];[_0x2748bb(0x12d)];[_0x2748bb(0x146)];[_0x2748bb(0xf2)];[_0x2748bb(0x154)];[_0x2748bb(0x14c)]=!0x1;[_0x2748bb(0x105)]=null;static get[_0x2748bb(0x174)](){return[_0x9373e1];}static get[_0x2748bb(0x16e)](){const _0x400662=_0x2748bb;return _0x400662(0x111);}static get[_0x2748bb(0xf9)](){return!0x0;}static get[_0x2748bb(0x138)](){return!0x0;}async[_0x2748bb(0x100)](){const _0x409734=_0x2748bb;this[_0x409734(0xff)]=this[_0x409734(0xf7)][_0x409734(0xf3)][_0x409734(0xfc)](_0x409734(0x16b)),this[_0x409734(0x12d)]=this[_0x409734(0xf7)][_0x409734(0xf3)][_0x409734(0xfc)](_0x409734(0x123)),this[_0x409734(0x146)]=this[_0x409734(0xf7)][_0x409734(0xf3)][_0x409734(0xfc)](_0x409734(0x12e));const _0x1214ab=this[_0x409734(0xf7)][_0x409734(0x10b)][_0x409734(0xfc)](_0x409734(0xfe));if(_0x1214ab){for(const _0x403a8a of _0x38c917)_0x409734(0x16a)===_0x403a8a['id']&&(_0x403a8a[_0x409734(0x14d)][0x0][_0x409734(0x119)]=_0x1214ab);}const _0x590b17=this[_0x409734(0xd3)](_0x38c917);this[_0x409734(0xf2)]=new _0x298c0d(_0x590b17);const _0x334303=this[_0x409734(0xf2)][_0x409734(0xdc)][_0x409734(0x101)](_0x510788=>_0x409734(0x130)===_0x510788['id']);if(_0x334303){const _0x13f04a=await new _0x512e68({'connector':this[_0x409734(0xff)]})[_0x409734(0x148)]();_0x334303[_0x409734(0x170)]=_0x13f04a[_0x409734(0x10e)](_0x130db4=>({..._0x130db4,'description':this[_0x409734(0x16f)](_0x409734(0xfd)+_0x130db4['id'][_0x409734(0xe1)](),_0x130db4[_0x409734(0x157)])}));}this[_0x409734(0xd1)](this[_0x409734(0x12d)],_0x409734(0xf0),()=>{const _0x5dde77=_0x409734;this[_0x5dde77(0x12d)][_0x5dde77(0x108)](this[_0x5dde77(0xf2)][_0x5dde77(0xdc)]);}),this[_0x409734(0xd1)](this[_0x409734(0x12d)],_0x409734(0xeb),async(_0x4a1507,_0x5a17cd)=>{const _0x2833ca=_0x409734,_0x5d7b03=this[_0x2833ca(0xf2)][_0x2833ca(0x147)](_0x5a17cd['id']);if(_0x5d7b03){this[_0x2833ca(0xec)](this[_0x2833ca(0x14c)]),_0x5a17cd[_0x2833ca(0x118)]?this[_0x2833ca(0x154)]=new _0x3589b4(_0x5a17cd[_0x2833ca(0x15a)][_0x2833ca(0xe2)],_0x5a17cd[_0x2833ca(0x15a)][_0x2833ca(0x11c)],this[_0x2833ca(0x146)][_0x2833ca(0x128)](),_0x5d7b03,this[_0x2833ca(0xff)]):this[_0x2833ca(0x154)]=new _0x46612c(this[_0x2833ca(0x146)][_0x2833ca(0x128)](),_0x5d7b03,this[_0x2833ca(0xff)],_0x5a17cd[_0x2833ca(0x103)],_0x5a17cd[_0x2833ca(0x15a)]),this[_0x2833ca(0x12d)][_0x2833ca(0x169)](this[_0x2833ca(0x154)][_0x2833ca(0x107)],this[_0x2833ca(0x154)][_0x2833ca(0x175)]),this[_0x2833ca(0x154)]['on'](_0x2833ca(0x115),(_0x1387ff,_0x4d7c1c)=>{const _0x554302=_0x2833ca;_0x554302(0x119)===_0x4d7c1c[_0x554302(0x16d)]||_0x554302(0x143)===_0x4d7c1c[_0x554302(0x16d)]?(this[_0x554302(0x146)][_0x554302(0xe9)](),this[_0x554302(0x12d)][_0x554302(0x121)](_0x4d7c1c)):_0x554302(0xd6)===_0x4d7c1c[_0x554302(0x16d)]?this[_0x554302(0x12d)][_0x554302(0x11d)]():_0x554302(0x163)===_0x4d7c1c[_0x554302(0x16d)]?this[_0x554302(0x12d)][_0x554302(0x161)]():_0x554302(0x137)===_0x4d7c1c[_0x554302(0x16d)]?this[_0x554302(0x12d)][_0x554302(0x11e)]():_0x554302(0x14e)===_0x4d7c1c[_0x554302(0x16d)]?this[_0x554302(0x12d)][_0x554302(0xdf)]():_0x554302(0x10c)===_0x4d7c1c[_0x554302(0x16d)]?this[_0x554302(0x12d)][_0x554302(0x167)]():_0x554302(0x13a)===_0x4d7c1c[_0x554302(0x16d)]&&(this[_0x554302(0x154)]&&this[_0x554302(0x154)][_0x554302(0x124)]>0x0?setTimeout(()=>{const _0x139d18=_0x554302;this[_0x139d18(0x154)]?.[_0x139d18(0x145)]();},0x0):this[_0x554302(0x158)](!0x0)),_0x554302(0x163)!==_0x4d7c1c[_0x554302(0x16d)]&&_0x554302(0x10c)!==_0x4d7c1c[_0x554302(0x16d)]&&_0x554302(0x14e)!==_0x4d7c1c[_0x554302(0x16d)]||this[_0x554302(0x154)]?.[_0x554302(0x113)]();}),this[_0x2833ca(0x154)]['on'](_0x2833ca(0x139),(_0x28913e,_0x361474)=>{const _0x37f2d2=_0x2833ca;if(!this[_0x37f2d2(0x154)])throw new _0x316ead(_0x37f2d2(0xd4),this);const _0x1aea3b=this[_0x37f2d2(0x146)][_0x37f2d2(0x156)](_0x361474[_0x37f2d2(0x122)][_0x37f2d2(0xdb)],_0x361474[_0x37f2d2(0x122)][_0x37f2d2(0xde)]);_0x361474[_0x37f2d2(0x106)][_0x37f2d2(0xd5)](_0x361474[_0x37f2d2(0x122)]['id'],_0x1aea3b);}),this[_0x2833ca(0x154)]['on'](_0x2833ca(0xfb),(_0x184a1b,_0x26114b)=>{const _0x7017e2=_0x2833ca;for(const _0x13acd2 of _0x26114b[_0x7017e2(0x136)])this[_0x7017e2(0x12d)][_0x7017e2(0xf6)](_0x13acd2);this[_0x7017e2(0x146)][_0x7017e2(0x159)](_0x26114b[_0x7017e2(0x136)],_0x26114b[_0x7017e2(0x106)][_0x7017e2(0x15b)]);}),this[_0x2833ca(0x154)]['on'](_0x2833ca(0xed),(_0x34979b,_0x37cf7c)=>{const _0x4ba84c=_0x2833ca;this[_0x4ba84c(0x12d)][_0x4ba84c(0x140)](_0x37cf7c[_0x4ba84c(0xdd)]['id'],_0x4ba84c(0xd8));}),this[_0x2833ca(0x154)]['on'](_0x2833ca(0x173),(_0x5bad9b,_0x5bc37b)=>{const _0x339bce=_0x2833ca;this[_0x339bce(0x12d)][_0x339bce(0x140)](_0x5bc37b[_0x339bce(0xdd)]['id'],_0x339bce(0xe3));}),this[_0x2833ca(0x154)]['on'](_0x2833ca(0x129),(_0x4682e3,_0x3fcdb3)=>{const _0x22cf85=_0x2833ca;this[_0x22cf85(0x12d)][_0x22cf85(0x13f)](_0x3fcdb3[_0x22cf85(0xdd)]['id']);const _0x34fc13=this[_0x22cf85(0x146)][_0x22cf85(0x102)](_0x3fcdb3[_0x22cf85(0xdd)]['id']);if(_0x34fc13){if(_0x22cf85(0x110)===this[_0x22cf85(0x105)]){const _0x2327e9=this[_0x22cf85(0x12d)][_0x22cf85(0x165)](_0x3fcdb3[_0x22cf85(0xdd)]['id']);_0x2327e9&&_0x3fd812(_0x2327e9[_0x22cf85(0xe8)](_0x22cf85(0x176))||_0x2327e9);}else{if(_0x22cf85(0x133)===this[_0x22cf85(0x105)]){const _0x108d1c={'target':_0x34fc13[_0x22cf85(0x171)],'viewportOffset':{'top':0x55,'left':0x0,'bottom':0x0,'right':0x0},'ancestorOffset':0x14,'alignToTop':!0x0};_0x4fedac(_0x108d1c);}}this[_0x22cf85(0x12d)][_0x22cf85(0xea)](_0x3fcdb3[_0x22cf85(0xdd)],_0x34fc13[_0x22cf85(0x171)]);}}),this[_0x2833ca(0x154)]['on'](_0x2833ca(0x11a),()=>{const _0x5932dd=_0x2833ca;this[_0x5932dd(0x12d)][_0x5932dd(0xe7)]();});try{await this[_0x2833ca(0x154)][_0x2833ca(0x116)]();}catch(_0x3d13fd){_0x3d13fd instanceof Error&&_0x3d13fd[_0x2833ca(0x15e)][_0x2833ca(0x112)](_0x2833ca(0xe6))||(_0x3d13fd instanceof _0x316ead?this[_0x2833ca(0x166)](_0x3d13fd):this[_0x2833ca(0x166)](new _0x316ead(_0x2833ca(0x134),this,{'error':_0x3d13fd})));}}else this[_0x2833ca(0x166)](new _0x316ead(_0x2833ca(0xee),this,{'checkId':_0x5a17cd['id']}));}),this[_0x409734(0xd1)](this[_0x409734(0x12d)],_0x409734(0x153),()=>{const _0x5767be=_0x409734;this[_0x5767be(0x158)]();}),this[_0x409734(0xd1)](this[_0x409734(0x12d)],_0x409734(0x172),()=>{const _0x3e29c4=_0x409734;this[_0x3e29c4(0x158)](!0x0);}),this[_0x409734(0xd1)](this[_0x409734(0x12d)],_0x409734(0xf8),()=>{const _0x339cab=_0x409734;this[_0x339cab(0x154)]&&this[_0x339cab(0x154)][_0x339cab(0x162)]();}),this[_0x409734(0xd1)](this[_0x409734(0x12d)],_0x409734(0xd2),()=>{const _0x66ba6=_0x409734;this[_0x66ba6(0x158)](!0x0);}),this[_0x409734(0xd1)](this[_0x409734(0x12d)],_0x409734(0x132),()=>{const _0x5cfb6e=_0x409734;if(!this[_0x5cfb6e(0x154)])return;const _0x48b891=this[_0x5cfb6e(0x154)][_0x5cfb6e(0x131)]();_0x48b891[_0x5cfb6e(0x164)]&&(this[_0x5cfb6e(0x146)][_0x5cfb6e(0x15c)](_0x48b891[_0x5cfb6e(0x10e)](_0x3d0b20=>_0x3d0b20['id'])),this[_0x5cfb6e(0x154)][_0x5cfb6e(0x142)](),this[_0x5cfb6e(0x154)][_0x5cfb6e(0x113)]());}),this[_0x409734(0xd1)](this[_0x409734(0x12d)],_0x409734(0x151),(_0xadee5f,_0x1232dd)=>{const _0x2d11dd=_0x409734;this[_0x2d11dd(0x154)]&&this[_0x2d11dd(0x154)][_0x2d11dd(0x168)](_0x1232dd['id'])&&(this[_0x2d11dd(0x146)][_0x2d11dd(0x15c)]([_0x1232dd['id']]),this[_0x2d11dd(0x154)][_0x2d11dd(0xef)](_0x1232dd['id']),this[_0x2d11dd(0x12d)][_0x2d11dd(0xf5)](),this[_0x2d11dd(0x154)][_0x2d11dd(0x113)](_0x1232dd['id']));}),this[_0x409734(0xd1)](this[_0x409734(0x12d)],_0x409734(0xf4),(_0x4872f3,_0x2cf149)=>{const _0x581dba=_0x409734;this[_0x581dba(0x154)]&&this[_0x581dba(0x154)][_0x581dba(0x168)](_0x2cf149['id'])&&(this[_0x581dba(0x146)][_0x581dba(0xf1)](_0x2cf149['id']),this[_0x581dba(0x154)][_0x581dba(0x15f)](_0x2cf149['id']),this[_0x581dba(0x12d)][_0x581dba(0xf5)](),this[_0x581dba(0x154)][_0x581dba(0x113)](_0x2cf149['id']));}),this[_0x409734(0xd1)](this[_0x409734(0x12d)],_0x409734(0x12a),(_0x57394a,_0x8ce857)=>{const _0x3cbe40=_0x409734;this[_0x3cbe40(0x14c)]=_0x8ce857['on'],this[_0x3cbe40(0xec)](this[_0x3cbe40(0x14c)]);}),this[_0x409734(0xd1)](this[_0x409734(0x12d)],_0x409734(0x104),async()=>{const _0x17cc87=_0x409734;this[_0x17cc87(0x154)]&&await this[_0x17cc87(0x154)][_0x17cc87(0x11f)]();}),this[_0x409734(0xd1)](this[_0x409734(0x12d)],_0x409734(0x12c),(_0x302fcf,_0x28be97)=>{const _0x1c270e=_0x409734;this[_0x1c270e(0x154)]&&(this[_0x1c270e(0x105)]=_0x1c270e(0x133),this[_0x1c270e(0x154)][_0x1c270e(0x12c)](_0x28be97['id']));}),this[_0x409734(0xd1)](this[_0x409734(0x12d)],_0x409734(0x10f),()=>{const _0x340f9f=_0x409734;this[_0x340f9f(0x154)]&&this[_0x340f9f(0x154)][_0x340f9f(0x10f)]();}),this[_0x409734(0xd1)](this[_0x409734(0x146)][_0x409734(0x12f)],_0x409734(0x117),(_0x2454e7,_0x1abb8d)=>{const _0x41b2ca=_0x409734;this[_0x41b2ca(0x154)]&&(this[_0x41b2ca(0x105)]=_0x41b2ca(0x110),this[_0x41b2ca(0x154)][_0x41b2ca(0x12c)](_0x1abb8d[_0x41b2ca(0x127)]));});}[_0x2748bb(0x158)](_0x1cb816=!0x1){const _0x9c4294=_0x2748bb;this[_0x9c4294(0x154)]&&(this[_0x9c4294(0x154)][_0x9c4294(0x141)]||this[_0x9c4294(0x154)][_0x9c4294(0x113)](),this[_0x9c4294(0x154)][_0x9c4294(0x162)](),this[_0x9c4294(0x154)][_0x9c4294(0x16c)](),this[_0x9c4294(0x154)]=void 0x0),_0x1cb816&&this[_0x9c4294(0x12d)][_0x9c4294(0xe5)](),this[_0x9c4294(0x146)][_0x9c4294(0x14f)](),this[_0x9c4294(0x146)][_0x9c4294(0x10a)](),this[_0x9c4294(0x105)]=null;const _0x5041a9=this[_0x9c4294(0x146)][_0x9c4294(0x13d)]();_0x5041a9&&_0x5041a9[_0x9c4294(0xd9)][_0x9c4294(0x120)][_0x9c4294(0xdd)](_0x58c070=>{const _0x5c9352=_0x9c4294,_0x3fd39f=_0x5041a9[_0x5c9352(0xd9)][_0x5c9352(0x120)][_0x5c9352(0x160)][_0x5c9352(0x13e)]();_0x58c070[_0x5c9352(0x114)](_0x5c9352(0xda),_0x3fd39f),_0x58c070[_0x5c9352(0x114)](_0x5c9352(0x13b),_0x3fd39f);});}[_0x2748bb(0xec)](_0x2cdbba){const _0x107692=_0x2748bb,_0x344fc8=this[_0x107692(0x146)][_0x107692(0x13d)]();_0x2cdbba?this[_0x107692(0x12d)][_0x107692(0xfa)]():this[_0x107692(0x12d)][_0x107692(0x11b)](),_0x344fc8&&_0x344fc8[_0x107692(0xd9)][_0x107692(0x120)][_0x107692(0xdd)](_0x4ace91=>{const _0x585474=_0x107692,_0x3394e2=_0x344fc8[_0x585474(0xd9)][_0x585474(0x120)][_0x585474(0x160)][_0x585474(0x13e)]();_0x4ace91[_0x585474(0x114)](_0x585474(0xda),_0x3394e2),_0x4ace91[_0x585474(0x114)](_0x585474(0x13b),_0x3394e2),_0x4ace91[_0x585474(0x135)](_0x2cdbba?_0x585474(0xda):_0x585474(0x13b),_0x3394e2);});}[_0x2748bb(0xd3)](_0x58754d){const _0x4be755=_0x2748bb;return _0x58754d[_0x4be755(0x10e)](_0xa2c8ec=>{const _0x175e86=_0x4be755,_0x1fd4ad=_0x175e86(0x14a)+_0xa2c8ec['id'][_0x175e86(0xe1)]()[_0x175e86(0x12b)]('-','_'),_0x21e928={..._0xa2c8ec,'title':this[_0x175e86(0x16f)](_0x1fd4ad+_0x175e86(0x10d),_0xa2c8ec[_0x175e86(0x107)]),'description':this[_0x175e86(0x16f)](_0x1fd4ad+_0x175e86(0x144),_0xa2c8ec[_0x175e86(0x157)])};return _0xa2c8ec[_0x175e86(0x14d)]&&(_0x21e928[_0x175e86(0x14d)]=_0xa2c8ec[_0x175e86(0x14d)][_0x175e86(0x10e)](_0x486d50=>({..._0x486d50,'label':this[_0x175e86(0x16f)](_0x1fd4ad+_0x175e86(0x155),_0x486d50[_0x175e86(0x152)]||''),'data':_0x486d50[_0x175e86(0x119)]?_0x486d50[_0x175e86(0x119)][_0x175e86(0x10e)](_0x3bcf12=>({..._0x3bcf12,'label':this[_0x175e86(0x16f)](_0x1fd4ad+_0x175e86(0x149)+_0x3bcf12['id'][_0x175e86(0xe1)](),_0x3bcf12[_0x175e86(0x152)])})):void 0x0}))),_0x21e928;});}[_0x2748bb(0x16f)](_0x5096b4,_0x3e8364){const _0x3cea0c=_0x2748bb,_0x286c0e=this[_0x3cea0c(0xf7)][_0x3cea0c(0x14b)],_0x5ef58a=_0x289bd0(_0x286c0e,_0x5096b4);return _0x5ef58a===_0x5096b4?_0x3e8364:_0x5ef58a;}[_0x2748bb(0x166)](_0xcce46c){const _0x5814ed=_0x2748bb;_0x40ad5d(_0xcce46c[_0x5814ed(0x15e)]),this[_0x5814ed(0x12d)][_0x5814ed(0xdf)]();}}
|
|
23
|
+
function _0x5467(_0x3c7fe4,_0x23265a){const _0x587fbf=_0x587f();return _0x5467=function(_0x54671a,_0x5ae6ce){_0x54671a=_0x54671a-0xbd;let _0x2c51f5=_0x587fbf[_0x54671a];return _0x2c51f5;},_0x5467(_0x3c7fe4,_0x23265a);}const _0x54c19f=_0x5467;(function(_0x3491bb,_0x31ae88){const _0x3bea46=_0x5467,_0x26ad44=_0x3491bb();while(!![]){try{const _0x19c050=parseInt(_0x3bea46(0x129))/0x1+-parseInt(_0x3bea46(0x11e))/0x2+-parseInt(_0x3bea46(0x145))/0x3*(-parseInt(_0x3bea46(0x14f))/0x4)+-parseInt(_0x3bea46(0x112))/0x5*(parseInt(_0x3bea46(0xc9))/0x6)+-parseInt(_0x3bea46(0x114))/0x7*(-parseInt(_0x3bea46(0xe8))/0x8)+-parseInt(_0x3bea46(0x15a))/0x9+parseInt(_0x3bea46(0x11c))/0xa;if(_0x19c050===_0x31ae88)break;else _0x26ad44['push'](_0x26ad44['shift']());}catch(_0x229ecf){_0x26ad44['push'](_0x26ad44['shift']());}}}(_0x587f,0xd3c64));import{ContextPlugin as _0x98f038}from'ckeditor5/src/core.js';import{CKEditorError as _0x3a05a7,logError as _0x23d975,scrollAncestorsToShowTarget as _0x202e55,scrollViewportToShowTarget as _0x536c5a}from'ckeditor5/src/utils.js';import{AIConnector as _0x4cb807}from'../aicore/aiconnector.js';import{AIReviewCheckList as _0x4ae012}from'./model/aireviewchecklist.js';import{AIReviewSystemCheckRun as _0x5dec4e}from'./model/aireviewsystemcheckrun.js';import{AIReviewCustomCheckRun as _0x29c7f6}from'./model/aireviewcustomcheckrun.js';import{AIReviewModels as _0xc89551}from'./model/aireviewmodels.js';import{AI_REVIEW_CHECKS as _0x175bca}from'./aireviewcheckdefinitions.js';function _0x587f(){const _0x434724=['contentInitial','abortReviewStream','AIReviewModeController','showChunkErrorView','16658760snZoWI','reviewCheckResultRejected','1667572QyVXDX','ai-review-mode-source-check-not-found','length','reviewCheckResultDeactivated','reviewCheckResultActivated','AIReviewModeEditing','documentData','emitter','aborted','addResultChanges','getRoot','294638mJBBYu','changes','getMarkerElementForChange','reviewCheckResultAdded','_isDiffOn','editing','content','deactivateChange','_OPTIONS_LABEL','_OPTIONS_DATA_','hasModifications','_aiReviewCheckList','result','source','ai-request-aborted','options','leaveReviewMode','listenTo','showCheckRunResult','isOfficialPlugin','markAllChangesAsAccepted','getChangeElement','showReviewCheckList','removeClass','loading','_onReviewModeRunLeave','includes','message','3xvXFSP','plugins','hideChangeBalloon','abort','toggleDiff','accepted','restart','panel','showActionsWhenResultIsReady','sendRating','2580756pwJXFr','toUpperCase','_TITLE','model','locale','requires','stopListening','label','error-chunk','leaveReviewModeResultList','prompt','15234183GKVzQI','custom','getDocumentData','setAvailableChecks','dismissChange','reviewCheckRunUpdated','showDiffInBalloon','AIReviewModeUI','AIConnector','_getTranslationWithDefault','context','retryReview','setActiveStateInResults','changeMarkerClick','ready','ai-review-mode-check-run-failed','rejectChange','view','start','diffContent','_aiReviewModeEditing','reviewCheckResultReady','3886410ixXOkv','isChangeActive','AI_REVIEW_CHECK_','addClass','setCheckResultTitle','pluginName','reviewCheckResultAccepted','getCheckById','ai-review-mode-no-current-check-run','.ck-ai-review-mode__check-run-result','acceptAllChanges','get','showCheckRunResults','clearAllMarkers','_currentReviewCheckRun','hideDiffInBalloon','switchToReadOnly','subTitle','change','unmodified','getEditor','config','isPremiumPlugin','acceptChange','init','markChangePositionInEditorContent','domElement','_aiConnector','_DESCRIPTION','_changeActivationSource','_translateReviewChecks','310472knmRwq','showGeneralErrorView','markChangeAsAccepted','_onDiffChange','replaceAll','showChangeBalloon','showReviewCompletedView','_aiReviewModeUi','finishReview','finished','rejected','models','activateChange','ai.reviewMode.translations','contentNew','markChangeAsRejected','applyChange','status','_logError','runReviewCheck','description','translate','checks','changeId','switchToEdit','data','resetActiveStateInResults','isCustom','map','getReviewCheckList','ck-ai-review-mode-diff','updateChangeState','getActiveChanges','AI_MODEL_DESCRIPTION_','error-general','closest','showNoChangesView','params','getAll','ck-ai-review-mode-highlights','find','forceReadyState','5TcfZlV','processedResultsCount','259QODDgR','title','args','document'];_0x587f=function(){return _0x434724;};return _0x587f();}import{getTranslation as _0x169053}from'../aicore/utils/common-translations.js';export class AIReviewModeController extends _0x98f038{[_0x54c19f(0xe4)];[_0x54c19f(0xef)];[_0x54c19f(0xc7)];[_0x54c19f(0x134)];[_0x54c19f(0xd7)];[_0x54c19f(0x12d)]=!0x1;[_0x54c19f(0xe6)]=null;static get[_0x54c19f(0x154)](){return[_0x4cb807];}static get[_0x54c19f(0xce)](){const _0x1084a8=_0x54c19f;return _0x1084a8(0x11a);}static get[_0x54c19f(0x13c)](){return!0x0;}static get[_0x54c19f(0xdf)](){return!0x0;}async[_0x54c19f(0xe1)](){const _0x501f4a=_0x54c19f;this[_0x501f4a(0xe4)]=this[_0x501f4a(0xbd)][_0x501f4a(0x146)][_0x501f4a(0xd4)](_0x501f4a(0x162)),this[_0x501f4a(0xef)]=this[_0x501f4a(0xbd)][_0x501f4a(0x146)][_0x501f4a(0xd4)](_0x501f4a(0x161)),this[_0x501f4a(0xc7)]=this[_0x501f4a(0xbd)][_0x501f4a(0x146)][_0x501f4a(0xd4)](_0x501f4a(0x123));const _0x42e066=this[_0x501f4a(0xbd)][_0x501f4a(0xde)][_0x501f4a(0xd4)](_0x501f4a(0xf5));if(_0x42e066){for(const _0x18899d of _0x175bca)_0x501f4a(0xfd)===_0x18899d['id']&&(_0x18899d[_0x501f4a(0x138)][0x0][_0x501f4a(0x101)]=_0x42e066);}const _0x1630be=this[_0x501f4a(0xe7)](_0x175bca);this[_0x501f4a(0x134)]=new _0x4ae012(_0x1630be);const _0xbeb58a=this[_0x501f4a(0x134)][_0x501f4a(0xfe)][_0x501f4a(0x110)](_0x21cc41=>_0x501f4a(0x15b)===_0x21cc41['id']);if(_0xbeb58a){const _0x4da091=await new _0xc89551({'connector':this[_0x501f4a(0xe4)]})[_0x501f4a(0x10e)]();_0xbeb58a[_0x501f4a(0xf3)]=_0x4da091[_0x501f4a(0x104)](_0x97869f=>({..._0x97869f,'description':this[_0x501f4a(0x163)](_0x501f4a(0x109)+_0x97869f['id'][_0x501f4a(0x150)](),_0x97869f[_0x501f4a(0xfc)])}));}this[_0x501f4a(0x13a)](this[_0x501f4a(0xef)],_0x501f4a(0x105),()=>{const _0x3d2625=_0x501f4a;this[_0x3d2625(0xef)][_0x3d2625(0x15d)](this[_0x3d2625(0x134)][_0x3d2625(0xfe)]);}),this[_0x501f4a(0x13a)](this[_0x501f4a(0xef)],_0x501f4a(0xfb),async(_0x1d7649,_0x42c22c)=>{const _0x399374=_0x501f4a,_0xdbe5a3=this[_0x399374(0x134)][_0x399374(0xd0)](_0x42c22c['id']);if(_0xdbe5a3){this[_0x399374(0xeb)](this[_0x399374(0x12d)]),_0x42c22c[_0x399374(0x103)]?this[_0x399374(0xd7)]=new _0x29c7f6(_0x42c22c[_0x399374(0x116)][_0x399374(0x159)],_0x42c22c[_0x399374(0x116)][_0x399374(0x152)],this[_0x399374(0xc7)][_0x399374(0x15c)](),_0xdbe5a3,this[_0x399374(0xe4)]):this[_0x399374(0xd7)]=new _0x5dec4e(this[_0x399374(0xc7)][_0x399374(0x15c)](),_0xdbe5a3,this[_0x399374(0xe4)],_0x42c22c[_0x399374(0x10d)],_0x42c22c[_0x399374(0x116)]),this[_0x399374(0xef)][_0x399374(0xcd)](this[_0x399374(0xd7)][_0x399374(0x115)],this[_0x399374(0xd7)][_0x399374(0xda)]),this[_0x399374(0xd7)]['on'](_0x399374(0x15f),(_0x4036d3,_0xf2a78c)=>{const _0x34f2d9=_0x399374;_0x34f2d9(0x101)===_0xf2a78c[_0x34f2d9(0xf9)]||_0x34f2d9(0x141)===_0xf2a78c[_0x34f2d9(0xf9)]?(this[_0x34f2d9(0xc7)][_0x34f2d9(0xd9)](),this[_0x34f2d9(0xef)][_0x34f2d9(0xd5)](_0xf2a78c)):_0x34f2d9(0xf1)===_0xf2a78c[_0x34f2d9(0xf9)]?this[_0x34f2d9(0xef)][_0x34f2d9(0xee)]():_0x34f2d9(0xc1)===_0xf2a78c[_0x34f2d9(0xf9)]?this[_0x34f2d9(0xef)][_0x34f2d9(0x14d)]():_0x34f2d9(0xdc)===_0xf2a78c[_0x34f2d9(0xf9)]?this[_0x34f2d9(0xef)][_0x34f2d9(0x10c)]():_0x34f2d9(0x10a)===_0xf2a78c[_0x34f2d9(0xf9)]?this[_0x34f2d9(0xef)][_0x34f2d9(0xe9)]():_0x34f2d9(0x157)===_0xf2a78c[_0x34f2d9(0xf9)]?this[_0x34f2d9(0xef)][_0x34f2d9(0x11b)]():_0x34f2d9(0x126)===_0xf2a78c[_0x34f2d9(0xf9)]&&(this[_0x34f2d9(0xd7)]&&this[_0x34f2d9(0xd7)][_0x34f2d9(0x113)]>0x0?setTimeout(()=>{const _0x2030d5=_0x34f2d9;this[_0x2030d5(0xd7)]?.[_0x2030d5(0x111)]();},0x0):this[_0x34f2d9(0x142)](!0x0)),_0x34f2d9(0xc1)!==_0xf2a78c[_0x34f2d9(0xf9)]&&_0x34f2d9(0x157)!==_0xf2a78c[_0x34f2d9(0xf9)]&&_0x34f2d9(0x10a)!==_0xf2a78c[_0x34f2d9(0xf9)]||this[_0x34f2d9(0xd7)]?.[_0x34f2d9(0x14e)]();}),this[_0x399374(0xd7)]['on'](_0x399374(0x12c),(_0x34be71,_0xeff915)=>{const _0x560590=_0x399374;if(!this[_0x560590(0xd7)])throw new _0x3a05a7(_0x560590(0xd1),this);const _0x3dfed7=this[_0x560590(0xc7)][_0x560590(0xc6)](_0xeff915[_0x560590(0x135)][_0x560590(0x118)],_0xeff915[_0x560590(0x135)][_0x560590(0xf6)]);_0xeff915[_0x560590(0x136)][_0x560590(0x127)](_0xeff915[_0x560590(0x135)]['id'],_0x3dfed7);}),this[_0x399374(0xd7)]['on'](_0x399374(0xc8),(_0x492ec2,_0x273079)=>{const _0x555593=_0x399374;for(const _0x3add01 of _0x273079[_0x555593(0x12a)])this[_0x555593(0xef)][_0x555593(0x13b)](_0x3add01);this[_0x555593(0xc7)][_0x555593(0xe2)](_0x273079[_0x555593(0x12a)],_0x273079[_0x555593(0x136)][_0x555593(0x124)]);}),this[_0x399374(0xd7)]['on'](_0x399374(0xcf),(_0x520868,_0x27ed6e)=>{const _0x2003fb=_0x399374;this[_0x2003fb(0xef)][_0x2003fb(0x107)](_0x27ed6e[_0x2003fb(0xdb)]['id'],_0x2003fb(0x14a));}),this[_0x399374(0xd7)]['on'](_0x399374(0x11d),(_0x256e38,_0x1bf6dd)=>{const _0x1bf7b3=_0x399374;this[_0x1bf7b3(0xef)][_0x1bf7b3(0x107)](_0x1bf6dd[_0x1bf7b3(0xdb)]['id'],_0x1bf7b3(0xf2));}),this[_0x399374(0xd7)]['on'](_0x399374(0x122),(_0x426b0d,_0x5d7e4f)=>{const _0x5e6fd3=_0x399374;this[_0x5e6fd3(0xef)][_0x5e6fd3(0xbf)](_0x5d7e4f[_0x5e6fd3(0xdb)]['id']);const _0x4985e4=this[_0x5e6fd3(0xc7)][_0x5e6fd3(0x12b)](_0x5d7e4f[_0x5e6fd3(0xdb)]['id']);if(_0x4985e4){if(_0x5e6fd3(0x12f)===this[_0x5e6fd3(0xe6)]){const _0x14785f=this[_0x5e6fd3(0xef)][_0x5e6fd3(0x13e)](_0x5d7e4f[_0x5e6fd3(0xdb)]['id']);_0x14785f&&_0x202e55(_0x14785f[_0x5e6fd3(0x10b)](_0x5e6fd3(0xd2))||_0x14785f);}else{if(_0x5e6fd3(0x14c)===this[_0x5e6fd3(0xe6)]){const _0x5ba88b={'target':_0x4985e4[_0x5e6fd3(0xe3)],'viewportOffset':{'top':0x55,'left':0x0,'bottom':0x0,'right':0x0},'ancestorOffset':0x14,'alignToTop':!0x0};_0x536c5a(_0x5ba88b);}}this[_0x5e6fd3(0xef)][_0x5e6fd3(0xed)](_0x5d7e4f[_0x5e6fd3(0xdb)],_0x4985e4[_0x5e6fd3(0xe3)]);}}),this[_0x399374(0xd7)]['on'](_0x399374(0x121),()=>{const _0x503bf1=_0x399374;this[_0x503bf1(0xef)][_0x503bf1(0x102)]();});try{await this[_0x399374(0xd7)][_0x399374(0xc5)]();}catch(_0x27a45b){_0x27a45b instanceof Error&&_0x27a45b[_0x399374(0x144)][_0x399374(0x143)](_0x399374(0x137))||(_0x27a45b instanceof _0x3a05a7?this[_0x399374(0xfa)](_0x27a45b):this[_0x399374(0xfa)](new _0x3a05a7(_0x399374(0xc2),this,{'error':_0x27a45b})));}}else this[_0x399374(0xfa)](new _0x3a05a7(_0x399374(0x11f),this,{'checkId':_0x42c22c['id']}));}),this[_0x501f4a(0x13a)](this[_0x501f4a(0xef)],_0x501f4a(0x139),()=>{const _0x15bd4d=_0x501f4a;this[_0x15bd4d(0x142)]();}),this[_0x501f4a(0x13a)](this[_0x501f4a(0xef)],_0x501f4a(0x158),()=>{const _0x38bf65=_0x501f4a;this[_0x38bf65(0x142)](!0x0);}),this[_0x501f4a(0x13a)](this[_0x501f4a(0xef)],_0x501f4a(0x119),()=>{const _0x149167=_0x501f4a;this[_0x149167(0xd7)]&&this[_0x149167(0xd7)][_0x149167(0x148)]();}),this[_0x501f4a(0x13a)](this[_0x501f4a(0xef)],_0x501f4a(0xf0),()=>{const _0x30f889=_0x501f4a;this[_0x30f889(0x142)](!0x0);}),this[_0x501f4a(0x13a)](this[_0x501f4a(0xef)],_0x501f4a(0xd3),()=>{const _0xb2f695=_0x501f4a;if(!this[_0xb2f695(0xd7)])return;const _0x30e6e0=this[_0xb2f695(0xd7)][_0xb2f695(0x108)]();_0x30e6e0[_0xb2f695(0x120)]&&(this[_0xb2f695(0xc7)][_0xb2f695(0xf8)](_0x30e6e0[_0xb2f695(0x104)](_0xfb55f0=>_0xfb55f0['id'])),this[_0xb2f695(0xd7)][_0xb2f695(0x13d)](),this[_0xb2f695(0xd7)][_0xb2f695(0x14e)]());}),this[_0x501f4a(0x13a)](this[_0x501f4a(0xef)],_0x501f4a(0xe0),(_0x8f774d,_0x515eb6)=>{const _0x3832e2=_0x501f4a;this[_0x3832e2(0xd7)]&&this[_0x3832e2(0xd7)][_0x3832e2(0xca)](_0x515eb6['id'])&&(this[_0x3832e2(0xc7)][_0x3832e2(0xf8)]([_0x515eb6['id']]),this[_0x3832e2(0xd7)][_0x3832e2(0xea)](_0x515eb6['id']),this[_0x3832e2(0xef)][_0x3832e2(0x147)](),this[_0x3832e2(0xd7)][_0x3832e2(0x14e)](_0x515eb6['id']));}),this[_0x501f4a(0x13a)](this[_0x501f4a(0xef)],_0x501f4a(0x15e),(_0x3cce34,_0x1aa2a7)=>{const _0x121ca8=_0x501f4a;this[_0x121ca8(0xd7)]&&this[_0x121ca8(0xd7)][_0x121ca8(0xca)](_0x1aa2a7['id'])&&(this[_0x121ca8(0xc7)][_0x121ca8(0xc3)](_0x1aa2a7['id']),this[_0x121ca8(0xd7)][_0x121ca8(0xf7)](_0x1aa2a7['id']),this[_0x121ca8(0xef)][_0x121ca8(0x147)](),this[_0x121ca8(0xd7)][_0x121ca8(0x14e)](_0x1aa2a7['id']));}),this[_0x501f4a(0x13a)](this[_0x501f4a(0xef)],_0x501f4a(0x149),(_0x48a95b,_0x5cd681)=>{const _0x43f5e6=_0x501f4a;this[_0x43f5e6(0x12d)]=_0x5cd681['on'],this[_0x43f5e6(0xeb)](this[_0x43f5e6(0x12d)]);}),this[_0x501f4a(0x13a)](this[_0x501f4a(0xef)],_0x501f4a(0xbe),async()=>{const _0x54d87d=_0x501f4a;this[_0x54d87d(0xd7)]&&await this[_0x54d87d(0xd7)][_0x54d87d(0x14b)]();}),this[_0x501f4a(0x13a)](this[_0x501f4a(0xef)],_0x501f4a(0xf4),(_0x2c505f,_0x52e40e)=>{const _0x3c8cb2=_0x501f4a;this[_0x3c8cb2(0xd7)]&&(this[_0x3c8cb2(0xe6)]=_0x3c8cb2(0x14c),this[_0x3c8cb2(0xd7)][_0x3c8cb2(0xf4)](_0x52e40e['id']));}),this[_0x501f4a(0x13a)](this[_0x501f4a(0xef)],_0x501f4a(0x130),()=>{const _0x92dfc2=_0x501f4a;this[_0x92dfc2(0xd7)]&&this[_0x92dfc2(0xd7)][_0x92dfc2(0x130)]();}),this[_0x501f4a(0x13a)](this[_0x501f4a(0xc7)][_0x501f4a(0x125)],_0x501f4a(0xc0),(_0x2f839b,_0x481743)=>{const _0x19a181=_0x501f4a;this[_0x19a181(0xd7)]&&(this[_0x19a181(0xe6)]=_0x19a181(0x12f),this[_0x19a181(0xd7)][_0x19a181(0xf4)](_0x481743[_0x19a181(0xff)]));});}[_0x54c19f(0x142)](_0x3baf04=!0x1){const _0x837b8=_0x54c19f;this[_0x837b8(0xd7)]&&(this[_0x837b8(0xd7)][_0x837b8(0x133)]||this[_0x837b8(0xd7)][_0x837b8(0x14e)](),this[_0x837b8(0xd7)][_0x837b8(0x148)](),this[_0x837b8(0xd7)][_0x837b8(0x155)](),this[_0x837b8(0xd7)]=void 0x0),_0x3baf04&&this[_0x837b8(0xef)][_0x837b8(0x13f)](),this[_0x837b8(0xc7)][_0x837b8(0xd6)](),this[_0x837b8(0xc7)][_0x837b8(0x100)](),this[_0x837b8(0xe6)]=null;const _0x5c1b5d=this[_0x837b8(0xc7)][_0x837b8(0xdd)]();_0x5c1b5d&&_0x5c1b5d[_0x837b8(0x12e)][_0x837b8(0xc4)][_0x837b8(0xdb)](_0x2b2fdf=>{const _0x1890aa=_0x837b8,_0x1f3ac1=_0x5c1b5d[_0x1890aa(0x12e)][_0x1890aa(0xc4)][_0x1890aa(0x117)][_0x1890aa(0x128)]();_0x2b2fdf[_0x1890aa(0x140)](_0x1890aa(0x106),_0x1f3ac1),_0x2b2fdf[_0x1890aa(0x140)](_0x1890aa(0x10f),_0x1f3ac1);});}[_0x54c19f(0xeb)](_0x2f50fe){const _0x1de61c=_0x54c19f,_0x1b2930=this[_0x1de61c(0xc7)][_0x1de61c(0xdd)]();_0x2f50fe?this[_0x1de61c(0xef)][_0x1de61c(0xd8)]():this[_0x1de61c(0xef)][_0x1de61c(0x160)](),_0x1b2930&&_0x1b2930[_0x1de61c(0x12e)][_0x1de61c(0xc4)][_0x1de61c(0xdb)](_0x1722bf=>{const _0xc0f922=_0x1de61c,_0x2c9406=_0x1b2930[_0xc0f922(0x12e)][_0xc0f922(0xc4)][_0xc0f922(0x117)][_0xc0f922(0x128)]();_0x1722bf[_0xc0f922(0x140)](_0xc0f922(0x106),_0x2c9406),_0x1722bf[_0xc0f922(0x140)](_0xc0f922(0x10f),_0x2c9406),_0x1722bf[_0xc0f922(0xcc)](_0x2f50fe?_0xc0f922(0x106):_0xc0f922(0x10f),_0x2c9406);});}[_0x54c19f(0xe7)](_0x766561){const _0x207584=_0x54c19f;return _0x766561[_0x207584(0x104)](_0x9a8ee4=>{const _0x3cc1f4=_0x207584,_0x5207b6=_0x3cc1f4(0xcb)+_0x9a8ee4['id'][_0x3cc1f4(0x150)]()[_0x3cc1f4(0xec)]('-','_'),_0x5ac777={..._0x9a8ee4,'title':this[_0x3cc1f4(0x163)](_0x5207b6+_0x3cc1f4(0x151),_0x9a8ee4[_0x3cc1f4(0x115)]),'description':this[_0x3cc1f4(0x163)](_0x5207b6+_0x3cc1f4(0xe5),_0x9a8ee4[_0x3cc1f4(0xfc)])};return _0x9a8ee4[_0x3cc1f4(0x138)]&&(_0x5ac777[_0x3cc1f4(0x138)]=_0x9a8ee4[_0x3cc1f4(0x138)][_0x3cc1f4(0x104)](_0x3a79cf=>({..._0x3a79cf,'label':this[_0x3cc1f4(0x163)](_0x5207b6+_0x3cc1f4(0x131),_0x3a79cf[_0x3cc1f4(0x156)]||''),'data':_0x3a79cf[_0x3cc1f4(0x101)]?_0x3a79cf[_0x3cc1f4(0x101)][_0x3cc1f4(0x104)](_0x7472eb=>({..._0x7472eb,'label':this[_0x3cc1f4(0x163)](_0x5207b6+_0x3cc1f4(0x132)+_0x7472eb['id'][_0x3cc1f4(0x150)](),_0x7472eb[_0x3cc1f4(0x156)])})):void 0x0}))),_0x5ac777;});}[_0x54c19f(0x163)](_0x1575f1,_0x29e2b7){const _0x3295b3=_0x54c19f,_0x55f5e8=this[_0x3295b3(0xbd)][_0x3295b3(0x153)],_0x47995e=_0x169053(_0x55f5e8,_0x1575f1);return _0x47995e===_0x1575f1?_0x29e2b7:_0x47995e;}[_0x54c19f(0xfa)](_0x42a424){const _0x2f1f3b=_0x54c19f;_0x23d975(_0x42a424[_0x2f1f3b(0x144)]),this[_0x2f1f3b(0xef)][_0x2f1f3b(0xe9)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3fe4f6=_0x595c;(function(_0x187fda,_0x363e86){const _0x1aea45=_0x595c,_0x28b295=_0x187fda();while(!![]){try{const _0x5f00d7=-parseInt(_0x1aea45(0x104))/0x1+parseInt(_0x1aea45(0xb3))/0x2+-parseInt(_0x1aea45(0x11c))/0x3*(parseInt(_0x1aea45(0xfa))/0x4)+-parseInt(_0x1aea45(0x116))/0x5*(parseInt(_0x1aea45(0xfc))/0x6)+-parseInt(_0x1aea45(0x83))/0x7*(-parseInt(_0x1aea45(0x98))/0x8)+-parseInt(_0x1aea45(0x148))/0x9*(parseInt(_0x1aea45(0x90))/0xa)+parseInt(_0x1aea45(0xc1))/0xb*(parseInt(_0x1aea45(0xe9))/0xc);if(_0x5f00d7===_0x363e86)break;else _0x28b295['push'](_0x28b295['shift']());}catch(_0x5e1489){_0x28b295['push'](_0x28b295['shift']());}}}(_0x4f61,0x36a3b));import{InsertOperation as _0x45d087,MarkerOperation as _0x1892dc,ModelDocumentFragment as _0x33afe0,ModelPosition as _0x5d4b2f,ModelRange as _0x2ea32e,ModelTreeWalker as _0x47e8ed,transformOperationSets as _0x25af43}from'ckeditor5/src/engine.js';import{DomEmitterMixin as _0x40fd5d,EmitterMixin as _0x4ec5c9}from'ckeditor5/src/utils.js';import{ContextPlugin as _0xe18ca9}from'ckeditor5/src/core.js';import{DocumentCompare as _0x57c3da,DATA_ID_MODEL_ATTRIBUTE as _0x494f8c,DATA_ID_VIEW_ATTRIBUTE as _0x28a690}from'ckeditor5-collaboration/src/collaboration-core.js';import{getEditorFromContext as _0x5b0a84}from'../aicore/utils/geteditorfromcontext.js';function _0x4f61(){const _0xc92c83=['parent','36zkcFno','name','createUIElement','_appendChild','documentFragment','isAtStart','_changeOperationOwnerDocument','enableReadOnlyMode','199016OzlgGT','add','isInline','_changeRangeOwnerDocument','addMarker','_groupAdjacentOperations','every','parse','_getMarkersDataForGroup','conversion','get','baseVersion','DocumentCompare','flat','No\x20element\x20found\x20for\x20ID:\x20','insertContent','editing','suggestion:insertion:id:authorId:','187470UkdWHY','startsWith','markerToHighlight','stringify','getRoots','ck-ai_review-mode-marker_context-','9cvwYHh','_changePositionOwnerDocument','createPositionAt','createPositionAfter','createDocumentFragment','isPremiumPlugin','toView','_changePosition','markerToElement','createText','target','push','isOpening','isAtEnd','AIReviewModeEditing','_changeRange','remove-context','AIEditing','clearAllMarkers','delete','_eventEmitter','pluginName','offset','values','_setAttribute','_domEmitter','[data-marker-id=\x22','batch','toData','outerHTML','innerHTML','_getOperationStart','offsetSize','remove-text','ck-ai_review-mode-marker_hide','ck-ai_review-mode-marker_add','remove-only','$documentFragment','schema','_createGetContentUsingDataIdFn','requires','createRange','elements','getShiftedBy','3297744YaBQwB','split','pop','getChildren','index','getRange','data','_removeChildren','className','listenTo','dataDowncast','set','childCount','map','length','append','isOfficialPlugin','keys','_markers','switchToReadOnly','for','querySelector','document','56cwWFzp','hasContentBefore','ck-ai_review-mode-marker_underline','caption','hasClass','getDocumentData','clear','ck-ai_review-mode-marker_strikethrough','filter','_createGetContextFn','removeMarker','sort','view','10RntoIc','domConverter','hasContentAfter','howMany','element','getEditor','_getOperationEnd','insert','112960FWDAFh','changeMarkerClick','addOperation','_findMarkerElement','nodes','[data-id=\x22','end','groupId','disableReadOnlyMode','start','getDomRoot','oldRange','isTouching','ellipsisBefore','span','afterInit','jumpTo','createSelection','ck-ai_review-mode-marker_context-start','text','emitter','toDomElement','clone','_insertMarkers','path','ellipsisAfter','_clone','710212XcXRta','viewToDom','fire','applyOperation','marker','context','markers','concat','change','position','operationsA','htmlProcessor','operationsIsolated','ck-ai_review-mode-marker_','11ITZbPd','downcast','getRoot','_removeAttribute','forward','getAttribute','version','diffContent','markChangePositionInEditorContent','ck-ai_review-mode-marker_context-end','model:$text','model','suggestion-context','attributeToAttribute','editingDowncast','type','_findAdjacentContextDistance','suggestion:deletion:id:authorId:','htmlWriter','getOperations','from','includes','createRawElement','switchToEdit','click','newRange','affectsData','getChild','getPath','reviewmode-','warn','_sortMarkers','$textProxy','exec','data-marker-id','_shiftOperation','ai-review-mode','isDocumentOperation','history','processor','10659288zlTWbo','backward','hasAttribute','_nextDataId','deleteContent','_getChangeContext','applyChange','_createGetContentFn','plugins','getMarkerElementForChange','parentElement','rejectChange','_translateOperationToEditorContent','getDiff','getHtml','markerName','$markedRemove','456188zSmZhb'];_0x4f61=function(){return _0xc92c83;};return _0x4f61();}import{AIEditing as _0x1c9927}from'../aicore/aiediting.js';function _0x595c(_0x44b9df,_0x1aec67){const _0x4f610f=_0x4f61();return _0x595c=function(_0x595cc9,_0x1f672c){_0x595cc9=_0x595cc9-0x83;let _0x45350a=_0x4f610f[_0x595cc9];return _0x45350a;},_0x595c(_0x44b9df,_0x1aec67);}const ae=_0x3fe4f6(0xde);export class AIReviewModeEditing extends _0xe18ca9{static get[_0x3fe4f6(0x131)](){const _0x5198f2=_0x3fe4f6;return _0x5198f2(0x12a);}static get[_0x3fe4f6(0x144)](){return[_0x57c3da,_0x1c9927];}static get[_0x3fe4f6(0x158)](){return!0x0;}static get[_0x3fe4f6(0x121)](){return!0x0;}[_0x3fe4f6(0x15a)]=new Map();[_0x3fe4f6(0x135)];[_0x3fe4f6(0x130)];constructor(_0x1a4676){const _0x1b9306=_0x3fe4f6;super(_0x1a4676),this[_0x1b9306(0x135)]=new(_0x40fd5d())(),this[_0x1b9306(0x130)]=new(_0x4ec5c9())();}get[_0x3fe4f6(0xac)](){const _0x7ef37f=_0x3fe4f6;return this[_0x7ef37f(0x130)];}[_0x3fe4f6(0xa7)](){const _0x141689=_0x3fe4f6,_0x470c81=_0x5b0a84(this[_0x141689(0xb8)]);_0x470c81[_0x141689(0x10d)][_0x141689(0x15c)](_0x141689(0xcf))[_0x141689(0x124)]({'model':ae+_0x141689(0x97),'view':(_0x2790fe,{writer:_0x192a9a})=>{const _0x403d03=_0x141689,_0x1f5fec=this[_0x403d03(0x15a)][_0x403d03(0x10e)](_0x2790fe[_0x403d03(0xf8)]),_0x3a69c6={'class':_0x403d03(0x13f),'data-marker-id':_0x2790fe[_0x403d03(0xf8)]};return _0x192a9a[_0x403d03(0xfe)](_0x403d03(0xa6),_0x3a69c6,function(_0x164e6a){const _0x1c1d41=_0x403d03,_0xf0410f=this[_0x1c1d41(0xad)](_0x164e6a);return _0xf0410f[_0x1c1d41(0x13a)]=_0x1f5fec?.[_0x1c1d41(0xab)]||'',_0xf0410f;});}}),_0x470c81[_0x141689(0x10d)][_0x141689(0x15c)](_0x141689(0xcf))[_0x141689(0x118)]({'model':ae+_0x141689(0x140),'view':_0x23a231=>({'classes':_0x141689(0x8a),'attributes':{'data-marker-id':_0x23a231[_0x141689(0xf8)]}})}),_0x470c81[_0x141689(0x10d)][_0x141689(0x15c)](_0x141689(0xcf))[_0x141689(0x118)]({'model':ae+_0x141689(0x12c),'view':_0x4faa62=>({'classes':_0x141689(0x85),'attributes':{'data-marker-id':_0x4faa62[_0x141689(0xf8)]}})}),_0x470c81[_0x141689(0x10d)][_0x141689(0x15c)](_0x141689(0xcf))[_0x141689(0x118)]({'model':ae+_0x141689(0x13d),'view':_0x65117a=>({'classes':_0x141689(0x13e),'attributes':{'data-marker-id':_0x65117a[_0x141689(0xf8)]}})}),_0x470c81[_0x141689(0x10d)][_0x141689(0x15c)](_0x141689(0x152))[_0x141689(0x124)]({'model':ae+_0x141689(0xcd),'view':(_0x1ba834,{writer:_0x4c0f16})=>_0x4c0f16[_0x141689(0xd7)](_0x141689(0xa6),{'class':_0x141689(0x11b)+(_0x1ba834[_0x141689(0x128)]?_0x141689(0xa1):_0x141689(0x9e))})}),_0x470c81[_0x141689(0x10d)][_0x141689(0x15c)](_0x141689(0xc2))[_0x141689(0xce)]({'model':_0x494f8c,'view':_0x28a690}),this[_0x141689(0x135)][_0x141689(0x151)](document,_0x141689(0xd9),(_0xdbd8ed,_0x318caf)=>{const _0x5ea45c=_0x141689,_0xbd4bc6=_0x318caf[_0x5ea45c(0x126)],_0x562160=this[_0x5ea45c(0x9b)](_0xbd4bc6);if(!_0x562160)return;const _0x4a8421=_0x562160[_0x5ea45c(0xc6)](_0x5ea45c(0xe3)),_0x13b2f0=_0x4a8421[_0x5ea45c(0x149)](':')[_0x5ea45c(0x14a)]()?.[_0x5ea45c(0x149)]('_')[0x0];this[_0x5ea45c(0x130)][_0x5ea45c(0xb5)](_0x5ea45c(0x99),{'markerId':_0x4a8421,'changeId':_0x13b2f0});});}[_0x3fe4f6(0x88)](){const _0x4edde1=_0x3fe4f6,_0x44c9b3=this[_0x4edde1(0xb8)][_0x4edde1(0xf1)][_0x4edde1(0x10e)](_0x4edde1(0x12d)),_0x2058ed=_0x5b0a84(this[_0x4edde1(0xb8)]),_0x2c54d9=_0x2058ed[_0x4edde1(0xcc)],_0x522865=new _0x33afe0();for(const _0x11c11d of _0x2c54d9[_0x4edde1(0x15e)][_0x4edde1(0xc3)]()[_0x4edde1(0x14b)]()){const _0x16e821=_0x11c11d[_0x4edde1(0xb2)](!0x0);_0x522865[_0x4edde1(0xff)](_0x16e821);}for(const _0x4a7a60 of _0x2c54d9[_0x4edde1(0xb9)])_0x522865[_0x4edde1(0xb9)][_0x4edde1(0x153)](_0x4a7a60[_0x4edde1(0xfd)],this[_0x4edde1(0x107)](_0x4a7a60[_0x4edde1(0x14d)]()[_0x4edde1(0xae)](),_0x522865));const _0x175e40=new _0x47e8ed({'ignoreElementEnd':!0x0,'startPosition':_0x2c54d9[_0x4edde1(0x11e)](_0x522865,0x0)}),_0x5e4898=new Set(),_0x3bce35=new Map();for(const {item:_0x5e9b41}of _0x175e40){if(!_0x5e9b41['is'](_0x4edde1(0xe1)))continue;const _0x32c409=_0x5e9b41[_0x4edde1(0xfb)];if((!_0x32c409||!_0x32c409['is'](_0x4edde1(0x94),_0x4edde1(0x86)))&&(_0x32c409&&_0x32c409['is'](_0x4edde1(0x94)))){let _0x3863ae=_0x32c409[_0x4edde1(0xc6)](_0x494f8c);_0x3863ae||(_0x3863ae=_0x44c9b3[_0x4edde1(0xec)](_0x5e4898),_0x32c409[_0x4edde1(0x134)](_0x494f8c,_0x3863ae)),_0x5e4898[_0x4edde1(0x105)](_0x3863ae);let _0xe00b3a=_0x32c409;for(;_0xe00b3a[_0x4edde1(0xfb)]&&!_0xe00b3a[_0x4edde1(0xfb)]['is'](_0x4edde1(0x100));)_0xe00b3a=_0xe00b3a[_0x4edde1(0xfb)],_0xe00b3a[_0x4edde1(0xeb)](_0x494f8c)&&_0xe00b3a[_0x4edde1(0xc4)](_0x494f8c);_0x3bce35[_0x4edde1(0x153)](_0x3863ae,{'path':_0x32c409[_0x4edde1(0xdd)](),'getContent':this[_0x4edde1(0x143)](_0xe00b3a[_0x4edde1(0xb2)](!0x0),_0x3863ae,_0x2058ed[_0x4edde1(0x14e)])}),_0x175e40[_0x4edde1(0xa8)](_0x2c54d9[_0x4edde1(0x11f)](_0x32c409));}}return{'content':_0x2058ed[_0x4edde1(0x14e)][_0x4edde1(0xe8)][_0x4edde1(0x138)](_0x2058ed[_0x4edde1(0x14e)][_0x4edde1(0x122)](_0x522865)),'version':_0x2058ed[_0x4edde1(0xcc)][_0x4edde1(0x15e)][_0x4edde1(0xc7)],'elements':_0x3bce35};}[_0x3fe4f6(0xc8)](_0x1d5a94,_0x5bf4af){const _0x16c680=_0x3fe4f6,_0x56d71f=_0x5b0a84(this[_0x16c680(0xb8)]),_0x2f884c=_0x56d71f[_0x16c680(0x14e)][_0x16c680(0x10b)](_0x1d5a94,_0x16c680(0x141)),_0x347422=_0x56d71f[_0x16c680(0xcc)][_0x16c680(0x11e)](_0x2f884c,0x0),_0x431cdf=this[_0x16c680(0xb8)][_0x16c680(0xf1)][_0x16c680(0x10e)](_0x16c680(0x110))[_0x16c680(0xf6)](_0x1d5a94,_0x5bf4af,{'anchor':_0x347422,'markDeletions':!0x0})[_0x16c680(0xd4)]()[_0x16c680(0x8b)](_0x60b48e=>_0x16c680(0x97)===_0x60b48e[_0x16c680(0xd0)]||_0x16c680(0xb7)===_0x60b48e[_0x16c680(0xd0)]&&_0x60b48e[_0x16c680(0xfd)][_0x16c680(0x117)](_0x16c680(0xf9))),_0x16a854=this[_0x16c680(0x109)](_0x431cdf),_0x1fb34f=[];let _0x5306bd=0x0;return _0x56d71f[_0x16c680(0xcc)][_0x16c680(0xbb)](_0x44d36b=>{const _0x56e70f=_0x16c680;for(let _0x45d745=0x0;_0x45d745<_0x16a854[_0x56e70f(0x156)];_0x45d745++){const _0x69bd1d=_0x16a854[_0x45d745],_0x5ea24e=_0x44d36b[_0x56e70f(0x120)]();for(const _0x1a0cfa of _0x2f884c[_0x56e70f(0x14b)]())_0x44d36b[_0x56e70f(0x157)](_0x1a0cfa[_0x56e70f(0xb2)](!0x0),_0x5ea24e);for(const _0x161f18 of _0x69bd1d[_0x56e70f(0xbf)])if(_0x56e70f(0x97)===_0x161f18[_0x56e70f(0xd0)]){const _0x5b05a2=_0x161f18;_0x5b05a2[_0x56e70f(0x10f)]=null,_0x5b05a2[_0x56e70f(0xe6)]=!0x1,this[_0x56e70f(0x102)](_0x5b05a2,_0x5ea24e),_0x44d36b[_0x56e70f(0x137)][_0x56e70f(0x9a)](_0x161f18),_0x56d71f[_0x56e70f(0xcc)][_0x56e70f(0xb6)](_0x161f18);const _0x2aba70=_0x56e70f(0x115)+_0x5306bd++,_0x45d883=_0x56d71f[_0x56e70f(0xcc)][_0x56e70f(0x145)](_0x5b05a2[_0x56e70f(0xbc)],_0x5b05a2[_0x56e70f(0xbc)][_0x56e70f(0x147)](_0x5b05a2[_0x56e70f(0x93)]));_0x5ea24e[_0x56e70f(0xb9)][_0x56e70f(0x153)](_0x2aba70,_0x45d883);}else{if(_0x56e70f(0xb7)===_0x161f18[_0x56e70f(0xd0)]&&_0x161f18[_0x56e70f(0xfd)][_0x56e70f(0x117)](_0x56e70f(0xf9))){const _0x25d09e=_0x161f18,_0x37bbe5=_0x56e70f(0xd2)+_0x5306bd++;this[_0x56e70f(0x102)](_0x25d09e,_0x5ea24e),_0x5ea24e[_0x56e70f(0xb9)][_0x56e70f(0x153)](_0x37bbe5,_0x25d09e[_0x56e70f(0xda)]);}}const _0x5767a3=this[_0x56e70f(0xee)](this[_0x56e70f(0x11d)](this[_0x56e70f(0x13b)](_0x69bd1d[_0x56e70f(0xbf)][0x0]),_0x5ea24e),this[_0x56e70f(0x11d)](this[_0x56e70f(0x96)](_0x69bd1d[_0x56e70f(0xbf)][_0x69bd1d[_0x56e70f(0xbf)][_0x56e70f(0x156)]-0x1]),_0x5ea24e));_0x5ea24e[_0x56e70f(0xb9)][_0x56e70f(0x153)](ae+_0x56e70f(0xcd),new _0x2ea32e(_0x5767a3[_0x56e70f(0xa1)],_0x5767a3[_0x56e70f(0x9e)])),_0x1fb34f[_0x56e70f(0x127)]({..._0x69bd1d,'context':this[_0x56e70f(0x8c)](_0x5ea24e,_0x56d71f[_0x56e70f(0x14e)],{'ellipsisBefore':_0x5767a3[_0x56e70f(0x84)],'ellipsisAfter':_0x5767a3[_0x56e70f(0x92)]}),'content':this[_0x56e70f(0xf0)](_0x5ea24e,_0x56d71f[_0x56e70f(0x14e)])});}}),_0x1fb34f;}[_0x3fe4f6(0xc9)](_0x2a0bc2,_0x28cc9f){const _0x54279d=_0x3fe4f6,_0x16f3be=_0x2a0bc2[0x0][_0x54279d(0xfb)]['id'],_0x46c3b2=_0x28cc9f[_0x54279d(0x146)][_0x54279d(0x10e)](_0x16f3be);if(!_0x46c3b2)return void console[_0x54279d(0xdf)](_0x54279d(0x112)+_0x16f3be);const _0x3391dc=_0x46c3b2[_0x54279d(0xb0)],_0xfcfcbb=_0x5b0a84(this[_0x54279d(0xb8)]),_0x1c4812=_0xfcfcbb[_0x54279d(0xcc)][_0x54279d(0x15e)][_0x54279d(0xe7)][_0x54279d(0xd4)](_0x28cc9f[_0x54279d(0xc7)]),_0x3da8a3=[];for(const _0x1d4865 of _0x2a0bc2){const _0x3ff99d=_0x1d4865[_0x54279d(0xbf)][_0x54279d(0x155)](_0x14ab28=>this[_0x54279d(0xf5)](_0x14ab28,_0x3391dc,_0xfcfcbb[_0x54279d(0xcc)][_0x54279d(0x15e)][_0x54279d(0x11a)]()[0x0]));if(!_0x3ff99d||!_0x3ff99d[_0x54279d(0x156)])continue;const _0x32ba7e=_0x3ff99d[_0x54279d(0x10a)](_0x1f1ca3=>_0x54279d(0xb7)===_0x1f1ca3[_0x54279d(0xd0)]&&_0x1f1ca3[_0x54279d(0xfd)][_0x54279d(0x117)](_0x54279d(0xf9))),_0x5b726b={'document':_0xfcfcbb[_0x54279d(0xcc)][_0x54279d(0x15e)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x565d3c=_0x25af43(_0x3ff99d,_0x1c4812,_0x5b726b)[_0x54279d(0xbd)];for(const _0x6c9943 of _0x565d3c)if(_0x54279d(0x97)===_0x6c9943[_0x54279d(0xd0)]){const _0x508628=_0x6c9943,_0x2d1ce8=_0x508628[_0x54279d(0x9c)];let _0x9cceaa='';for(const _0x48a30a of _0x2d1ce8)_0x48a30a&&_0x48a30a['is'](_0x54279d(0xcb))&&(_0x9cceaa+=_0x48a30a[_0x54279d(0x14e)]);_0x3da8a3[_0x54279d(0x127)]({'start':_0x508628[_0x54279d(0xbc)],'end':_0x508628[_0x54279d(0xbc)],'type':_0x54279d(0x97),'groupId':_0x1d4865['id'],'text':_0x9cceaa});}else{if(_0x54279d(0xb7)===_0x6c9943[_0x54279d(0xd0)]&&_0x6c9943[_0x54279d(0xfd)][_0x54279d(0x117)](_0x54279d(0xf9))){const _0x18fbcb=_0x6c9943;let _0x2b16c4=_0x54279d(0x13d);if(_0x32ba7e){const _0x5e98a2=this[_0x54279d(0xd1)](_0x18fbcb[_0x54279d(0xda)][_0x54279d(0xa1)],_0x54279d(0xea),_0xfcfcbb[_0x54279d(0xcc)][_0x54279d(0x142)]),_0xddee5a=this[_0x54279d(0xd1)](_0x18fbcb[_0x54279d(0xda)][_0x54279d(0x9e)],_0x54279d(0xc5),_0xfcfcbb[_0x54279d(0xcc)][_0x54279d(0x142)]);if(_0x5e98a2||_0xddee5a){const _0x2b3150=_0x18fbcb[_0x54279d(0xda)][_0x54279d(0xa1)][_0x54279d(0x147)](-_0x5e98a2),_0x11df76=_0x18fbcb[_0x54279d(0xda)][_0x54279d(0x9e)][_0x54279d(0x147)](_0xddee5a);_0x3da8a3[_0x54279d(0x127)]({'start':_0x2b3150,'end':_0x11df76,'groupId':_0x1d4865['id'],'type':_0x54279d(0x12c)});}else _0x2b16c4=_0x54279d(0x140);}_0x3da8a3[_0x54279d(0x127)]({'start':_0x18fbcb[_0x54279d(0xda)][_0x54279d(0xa1)],'end':_0x18fbcb[_0x54279d(0xda)][_0x54279d(0x9e)],'groupId':_0x1d4865['id'],'type':_0x2b16c4});}}}this[_0x54279d(0xaf)](_0x3da8a3);}[_0x3fe4f6(0x12e)](){const _0x896650=_0x3fe4f6;_0x5b0a84(this[_0x896650(0xb8)])[_0x896650(0xcc)][_0x896650(0xbb)](_0x473d68=>{const _0x38097c=_0x896650;for(const _0x9ab4f1 of this[_0x38097c(0x15a)][_0x38097c(0x159)]())_0x473d68[_0x38097c(0x8d)](_0x9ab4f1);}),this[_0x896650(0x15a)][_0x896650(0x89)]();}[_0x3fe4f6(0x15b)](){const _0x3ffbea=_0x3fe4f6;_0x5b0a84(this[_0x3ffbea(0xb8)])[_0x3ffbea(0x103)](_0x3ffbea(0xe5));}[_0x3fe4f6(0xd8)](){const _0x599d78=_0x3fe4f6;_0x5b0a84(this[_0x599d78(0xb8)])[_0x599d78(0xa0)](_0x599d78(0xe5));}[_0x3fe4f6(0xef)](_0x40e3b0){const _0x1ef65f=_0x3fe4f6,_0x2e207c=_0x5b0a84(this[_0x1ef65f(0xb8)]),_0xdac449=_0x2e207c[_0x1ef65f(0xcc)],_0x2ee28d=_0x40e3b0[_0x1ef65f(0x155)](_0x391836=>this[_0x1ef65f(0x10c)](_0x391836))[_0x1ef65f(0x111)]();_0xdac449[_0x1ef65f(0xbb)](_0x32af94=>{const _0x23e74c=_0x1ef65f;for(const _0x332500 of _0x2ee28d){const _0x37a739=_0x2e207c[_0x23e74c(0xcc)][_0x23e74c(0xb9)][_0x23e74c(0x10e)](_0x332500['id']);_0x37a739&&(_0x23e74c(0x97)===_0x332500[_0x23e74c(0xd0)]?_0xdac449[_0x23e74c(0x113)](_0x32af94[_0x23e74c(0x125)](_0x332500[_0x23e74c(0xab)]||''),_0x37a739[_0x23e74c(0x14d)]()[_0x23e74c(0xa1)]):_0x23e74c(0x13d)!==_0x332500[_0x23e74c(0xd0)]&&_0x23e74c(0x140)!==_0x332500[_0x23e74c(0xd0)]||_0xdac449[_0x23e74c(0xed)](_0xdac449[_0x23e74c(0xa9)](_0x37a739[_0x23e74c(0x14d)]())),_0x32af94[_0x23e74c(0x8d)](_0x332500['id']),this[_0x23e74c(0x15a)][_0x23e74c(0x12f)](_0x332500['id']));}});}[_0x3fe4f6(0xf4)](_0x49b951){const _0xf5fe6c=_0x3fe4f6,_0x342367=_0x5b0a84(this[_0xf5fe6c(0xb8)]),_0x4e3ab4=this[_0xf5fe6c(0x10c)](_0x49b951);_0x342367[_0xf5fe6c(0xcc)][_0xf5fe6c(0xbb)](_0x3a0ad0=>{const _0x1403bf=_0xf5fe6c;for(const _0xd72dba of _0x4e3ab4)_0x3a0ad0[_0x1403bf(0x8d)](_0xd72dba['id']),this[_0x1403bf(0x15a)][_0x1403bf(0x12f)](_0xd72dba['id']);});}[_0x3fe4f6(0x95)](){const _0x22cf8c=_0x3fe4f6;return _0x5b0a84(this[_0x22cf8c(0xb8)]);}[_0x3fe4f6(0xf2)](_0x3cc7bc){const _0x4ecf3d=_0x3fe4f6,_0x430933=Array[_0x4ecf3d(0xd5)](this[_0x4ecf3d(0x15a)][_0x4ecf3d(0x133)]())[_0x4ecf3d(0x8b)](_0x44bf82=>_0x44bf82[_0x4ecf3d(0x9f)]===_0x3cc7bc);if(!_0x430933[_0x4ecf3d(0x156)])return null;const _0x374cac=0x1===_0x430933[_0x4ecf3d(0x156)]?_0x430933[0x0]:this[_0x4ecf3d(0xe0)](_0x430933)[0x0],_0x3cb3e9=_0x5b0a84(this[_0x4ecf3d(0xb8)]),_0x403b5c=_0x3cb3e9[_0x4ecf3d(0xcc)][_0x4ecf3d(0xb9)][_0x4ecf3d(0x10e)](_0x374cac['id']);if(!_0x403b5c)return null;const _0x499866=_0x403b5c[_0x4ecf3d(0x14d)](),_0x431b4e=_0x3cb3e9[_0x4ecf3d(0x114)][_0x4ecf3d(0x8f)][_0x4ecf3d(0xa2)]();if(!_0x431b4e||!_0x499866)return null;const _0x29e2d6=_0x431b4e[_0x4ecf3d(0x15d)](_0x4ecf3d(0x136)+_0x374cac['id']+'\x22]');return _0x29e2d6?{'modelRange':_0x499866,'domElement':_0x29e2d6}:null;}[_0x3fe4f6(0xf5)](_0x32f0a6,_0x3966d9,_0x5c3c47){const _0x132510=_0x3fe4f6;if(_0x132510(0x97)===_0x32f0a6[_0x132510(0xd0)]){const _0x1f5d4a=_0x32f0a6;return new _0x45d087(this[_0x132510(0x123)](_0x1f5d4a[_0x132510(0xbc)],_0x3966d9[_0x132510(0xba)](_0x1f5d4a[_0x132510(0xbc)][_0x132510(0x132)]),_0x5c3c47),_0x1f5d4a[_0x132510(0x9c)],_0x1f5d4a[_0x132510(0x10f)]);}if(_0x132510(0xb7)===_0x32f0a6[_0x132510(0xd0)]&&_0x32f0a6[_0x132510(0xfd)][_0x132510(0x117)](_0x132510(0xf9))){const _0x1eebb5=_0x32f0a6;return new _0x1892dc(_0x1eebb5[_0x132510(0xfd)],_0x1eebb5[_0x132510(0xa3)],this[_0x132510(0x12b)](_0x1eebb5[_0x132510(0xda)],_0x3966d9[_0x132510(0xba)](_0x1eebb5[_0x132510(0xda)][_0x132510(0xa1)][_0x132510(0x132)]),_0x3966d9[_0x132510(0xba)](_0x1eebb5[_0x132510(0xda)][_0x132510(0x9e)][_0x132510(0x132)]),_0x5c3c47),_0x1eebb5[_0x132510(0x15a)],_0x1eebb5[_0x132510(0xdb)],_0x1eebb5[_0x132510(0x10f)]);}return _0x32f0a6;}[_0x3fe4f6(0x109)](_0x32d40c){const _0x35c4b9=_0x3fe4f6;if(!_0x32d40c[_0x35c4b9(0x156)])return[];const _0x41477a=[];let _0x16726b=0x0,_0x50e634=0x0,_0x404d69=[];for(let _0x198f0d=0x0;_0x198f0d<=_0x32d40c[_0x35c4b9(0x156)];_0x198f0d++){const _0x2a46f4=_0x32d40c[_0x198f0d],_0x5b6ada=_0x32d40c[_0x198f0d-0x1];!_0x2a46f4||_0x5b6ada&&!this[_0x35c4b9(0x96)](_0x5b6ada)[_0x35c4b9(0xa4)](this[_0x35c4b9(0x13b)](_0x2a46f4))?(_0x41477a[_0x35c4b9(0x127)]({'operations':_0x404d69,'operationsIsolated':_0x404d69[_0x35c4b9(0x155)](_0x3e5310=>this[_0x35c4b9(0xe4)](_0x3e5310[_0x35c4b9(0xae)](),-_0x50e634)),'groupOffset':_0x16726b}),_0x404d69=_0x2a46f4?[_0x2a46f4]:[],_0x50e634+=_0x16726b,_0x16726b=0x0):_0x404d69[_0x35c4b9(0x127)](_0x2a46f4),_0x2a46f4&&_0x35c4b9(0x97)===_0x2a46f4[_0x35c4b9(0xd0)]&&(_0x16726b+=_0x2a46f4[_0x35c4b9(0x93)]);}return _0x41477a;}[_0x3fe4f6(0xd1)](_0x1740e6,_0x160513,_0x17ab82,_0x10337d=0x1){const _0x28e6d4=_0x3fe4f6,_0x37c2c2=new _0x47e8ed({'startPosition':_0x1740e6,'direction':_0x160513});let _0x163287=0x0;for(let _0x2bcbaf=0x0;_0x2bcbaf<_0x10337d;_0x2bcbaf++){let _0x74bde0=0x0,_0x195b6e=!0x1,_0x497409=_0x28e6d4(0xc5)===_0x160513?/^\W*\w+/:/\w+\W*$/;for(const {item:_0x5db49e}of _0x37c2c2)if(_0x5db49e['is'](_0x28e6d4(0xe1))){const _0x5d8cbd=_0x497409[_0x28e6d4(0xe2)](_0x5db49e[_0x28e6d4(0x14e)]);if(_0x5d8cbd&&_0x5d8cbd[_0x28e6d4(0x156)]){if(_0x74bde0+=_0x28e6d4(0xc5)===_0x160513?_0x5d8cbd[_0x28e6d4(0x14c)]+_0x5d8cbd[0x0][_0x28e6d4(0x156)]:_0x5db49e[_0x28e6d4(0x14e)][_0x28e6d4(0x156)]-_0x5d8cbd[_0x28e6d4(0x14c)],_0x5d8cbd[0x0][_0x28e6d4(0x156)]!==_0x5db49e[_0x28e6d4(0x14e)][_0x28e6d4(0x156)])break;_0x195b6e=!0x0,_0x497409=_0x28e6d4(0xc5)===_0x160513?/^\w+/:/\w+$/;}else{if(_0x195b6e)break;_0x74bde0+=_0x5db49e[_0x28e6d4(0x13c)];}}else{if(_0x5db49e['is'](_0x28e6d4(0x94))){_0x17ab82[_0x28e6d4(0x106)](_0x5db49e)&&!_0x195b6e&&(_0x74bde0+=0x1);break;}}_0x163287+=_0x74bde0,_0x37c2c2[_0x28e6d4(0xa8)](_0x1740e6[_0x28e6d4(0x147)](_0x28e6d4(0xc5)===_0x160513?_0x163287:-_0x163287));}return _0x163287;}[_0x3fe4f6(0xee)](_0x2e7919,_0x5e9e7a){const _0x46c60a=_0x3fe4f6,_0x2cca9b=_0x5b0a84(this[_0x46c60a(0xb8)])[_0x46c60a(0xcc)][_0x46c60a(0x142)],_0x2f1823=this[_0x46c60a(0xd1)](_0x2e7919,_0x46c60a(0xea),_0x2cca9b,0x6),_0x499dd7=this[_0x46c60a(0xd1)](_0x5e9e7a,_0x46c60a(0xc5),_0x2cca9b,0x6),_0x2d0670=_0x2e7919[_0x46c60a(0x147)](-_0x2f1823),_0x440ee0=_0x5e9e7a[_0x46c60a(0x147)](_0x499dd7);return{'start':_0x2d0670,'end':_0x440ee0,'hasContentBefore':!_0x2d0670[_0x46c60a(0x101)],'hasContentAfter':!_0x440ee0[_0x46c60a(0x129)]};}[_0x3fe4f6(0xaf)](_0x13c8f5){const _0x4420ec=_0x3fe4f6,_0x15c063=this[_0x4420ec(0xb8)][_0x4420ec(0xf1)][_0x4420ec(0x10e)](_0x4420ec(0x12d)),_0x5874cc=new Set();_0x5b0a84(this[_0x4420ec(0xb8)])[_0x4420ec(0xcc)][_0x4420ec(0xbb)](_0x215ceb=>{const _0x148833=_0x4420ec;for(const _0x4d4202 of _0x13c8f5){const _0x2c3cb9=''+ae+_0x4d4202[_0x148833(0xd0)]+':'+_0x4d4202[_0x148833(0x9f)]+'_'+_0x15c063[_0x148833(0xec)](_0x5874cc);this[_0x148833(0x15a)][_0x148833(0x153)](_0x2c3cb9,{'id':_0x2c3cb9,'groupId':_0x4d4202[_0x148833(0x9f)],'type':_0x4d4202[_0x148833(0xd0)],'text':_0x4d4202[_0x148833(0xab)]}),_0x215ceb[_0x148833(0x108)](_0x2c3cb9,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x215ceb[_0x148833(0x145)](_0x4d4202[_0x148833(0xa1)],_0x4d4202[_0x148833(0x9e)])});}});}[_0x3fe4f6(0x8c)](_0x2f28b0,_0x407503,_0x2e2f94){let _0x24830b='';return()=>{const _0x57f9b2=_0x595c;if(!_0x24830b){const _0x2b1c57=_0x407503[_0x57f9b2(0x122)](_0x2f28b0,{'showSuggestionHighlights':!0x0}),_0x42c72a=_0x2b1c57[_0x57f9b2(0xdc)](0x0);if(!_0x42c72a)return'';let _0x43b4ad=!0x1;const _0x1eca89=[];for(const _0x1488a2 of _0x42c72a[_0x57f9b2(0x14b)]())_0x1488a2['is'](_0x57f9b2(0x94),_0x57f9b2(0xa6))&&_0x1488a2[_0x57f9b2(0x87)](_0x57f9b2(0xca))&&(_0x43b4ad=!0x1),_0x43b4ad&&_0x1eca89[_0x57f9b2(0x127)](_0x1488a2),_0x1488a2['is'](_0x57f9b2(0x94),_0x57f9b2(0xa6))&&_0x1488a2[_0x57f9b2(0x87)](_0x57f9b2(0xaa))&&(_0x43b4ad=!0x0);_0x42c72a[_0x57f9b2(0x14f)](0x0,_0x42c72a[_0x57f9b2(0x154)]),_0x2e2f94?.[_0x57f9b2(0xa5)]&&_0x42c72a[_0x57f9b2(0xff)]('…'),_0x42c72a[_0x57f9b2(0xff)](_0x1eca89),_0x2e2f94?.[_0x57f9b2(0xb1)]&&_0x42c72a[_0x57f9b2(0xff)]('…');const _0xeaa543=_0x407503[_0x57f9b2(0xbe)][_0x57f9b2(0x91)][_0x57f9b2(0xb4)](_0x2b1c57),_0x15f98b=_0x407503[_0x57f9b2(0xbe)][_0x57f9b2(0xd3)][_0x57f9b2(0xf7)](_0xeaa543);_0x24830b=_0x15f98b;}return _0x24830b;};}[_0x3fe4f6(0xf0)](_0x429c1f,_0x31b283){const _0x2bc699=_0x3fe4f6;let _0x307669='';return()=>(_0x307669||(_0x307669=_0x31b283[_0x2bc699(0x119)](_0x429c1f,{'showSuggestionHighlights':!0x0})),_0x307669);}[_0x3fe4f6(0x143)](_0xeac566,_0x4ba036,_0x5c0c6a){let _0x38f3e8='';return()=>{const _0x27a3ef=_0x595c;if(!_0x38f3e8){const _0x202d8f=_0x5c0c6a[_0x27a3ef(0x122)](new _0x33afe0(_0xeac566)),_0x5b032a=_0x5c0c6a[_0x27a3ef(0xbe)][_0x27a3ef(0x91)][_0x27a3ef(0xb4)](_0x202d8f)[_0x27a3ef(0x15d)](_0x27a3ef(0x9d)+_0x4ba036+'\x22]');_0x38f3e8=_0x5b032a?.[_0x27a3ef(0x139)]||'';}return _0x38f3e8;};}[_0x3fe4f6(0x9b)](_0x54e21f,_0x2943f9=0x5){const _0x4fd915=_0x3fe4f6;let _0x396038=_0x54e21f,_0x399187=null;for(let _0x10b667=0x0;_0x10b667<_0x2943f9&&_0x396038;_0x10b667++){if(!_0x396038[_0x4fd915(0x150)]){_0x396038=_0x396038[_0x4fd915(0xf3)];continue;}if(!(''+_0x396038[_0x4fd915(0x150)])[_0x4fd915(0xd6)](_0x4fd915(0xc0))){_0x396038=_0x396038[_0x4fd915(0xf3)];continue;}if(!_0x396038[_0x4fd915(0xc6)](_0x4fd915(0xe3)))break;_0x399187=_0x396038;break;}return _0x399187;}[_0x3fe4f6(0x10c)](_0x43d179){const _0x5d1f3f=_0x3fe4f6;return Array[_0x5d1f3f(0xd5)](this[_0x5d1f3f(0x15a)][_0x5d1f3f(0x133)]())[_0x5d1f3f(0x8b)](_0x3998c2=>_0x3998c2[_0x5d1f3f(0x9f)]===_0x43d179);}[_0x3fe4f6(0x13b)](_0x1b00ee){const _0x34d5ce=_0x3fe4f6;return _0x34d5ce(0x97)===_0x1b00ee[_0x34d5ce(0xd0)]?_0x1b00ee[_0x34d5ce(0xbc)]:_0x1b00ee[_0x34d5ce(0xda)][_0x34d5ce(0xa1)];}[_0x3fe4f6(0x96)](_0x39899d,_0xda90e4=!0x1){const _0x4b096f=_0x3fe4f6;return _0x4b096f(0x97)===_0x39899d[_0x4b096f(0xd0)]?_0xda90e4?_0x39899d[_0x4b096f(0xbc)]:_0x39899d[_0x4b096f(0xbc)][_0x4b096f(0x147)](_0x39899d[_0x4b096f(0x93)]):_0x39899d[_0x4b096f(0xda)][_0x4b096f(0x9e)];}[_0x3fe4f6(0xe4)](_0xb92e04,_0x58501f){const _0x2e1e2b=_0x3fe4f6;return _0x2e1e2b(0x97)===_0xb92e04[_0x2e1e2b(0xd0)]?_0xb92e04[_0x2e1e2b(0xbc)]=_0xb92e04[_0x2e1e2b(0xbc)][_0x2e1e2b(0x147)](_0x58501f):_0x2e1e2b(0xb7)===_0xb92e04[_0x2e1e2b(0xd0)]&&_0xb92e04[_0x2e1e2b(0xda)]&&(_0xb92e04[_0x2e1e2b(0xda)]=new _0x2ea32e(_0xb92e04[_0x2e1e2b(0xda)][_0x2e1e2b(0xa1)][_0x2e1e2b(0x147)](_0x58501f),_0xb92e04[_0x2e1e2b(0xda)][_0x2e1e2b(0x9e)][_0x2e1e2b(0x147)](_0x58501f))),_0xb92e04;}[_0x3fe4f6(0x102)](_0x52018b,_0x56683a){const _0x48fa19=_0x3fe4f6;_0x48fa19(0x97)===_0x52018b[_0x48fa19(0xd0)]?_0x52018b[_0x48fa19(0xbc)]=this[_0x48fa19(0x11d)](_0x52018b[_0x48fa19(0xbc)],_0x56683a):_0x48fa19(0xb7)===_0x52018b[_0x48fa19(0xd0)]&&_0x52018b[_0x48fa19(0xda)]&&(_0x52018b[_0x48fa19(0xda)]=this[_0x48fa19(0x107)](_0x52018b[_0x48fa19(0xda)],_0x56683a));}[_0x3fe4f6(0x11d)](_0x2a5b9e,_0x5d8644){const _0x465d41=_0x3fe4f6;return new _0x5d4b2f(_0x5d8644,_0x2a5b9e[_0x465d41(0xb0)]);}[_0x3fe4f6(0x107)](_0x40d629,_0x36cad1){const _0x5efe7a=_0x3fe4f6;return new _0x2ea32e(this[_0x5efe7a(0x11d)](_0x40d629[_0x5efe7a(0xa1)],_0x36cad1),this[_0x5efe7a(0x11d)](_0x40d629[_0x5efe7a(0x9e)],_0x36cad1));}[_0x3fe4f6(0x123)](_0x3dd63,_0x25cf25,_0x2b1005){return new _0x5d4b2f(_0x2b1005,[..._0x25cf25]);}[_0x3fe4f6(0x12b)](_0x2d4108,_0x41e688,_0x21b513,_0x450114){const _0x327437=_0x3fe4f6;return new _0x2ea32e(this[_0x327437(0x123)](_0x2d4108[_0x327437(0xa1)],_0x41e688,_0x450114),this[_0x327437(0x123)](_0x2d4108[_0x327437(0x9e)],_0x21b513,_0x450114));}[_0x3fe4f6(0xe0)](_0x572546){const _0x5562d4=_0x3fe4f6,_0x462452=_0x361f6c=>{const _0x31216e=_0x595c;switch(_0x361f6c){case _0x31216e(0x97):return 0x1;case _0x31216e(0x12c):return 0x2;case _0x31216e(0x140):return 0x3;case _0x31216e(0x13d):return 0x4;}};return _0x572546[_0x5562d4(0x8e)]((_0x17027c,_0x45a816)=>_0x462452(_0x17027c[_0x5562d4(0xd0)])-_0x462452(_0x45a816[_0x5562d4(0xd0)]));}}
|
|
23
|
+
const _0x4a17a9=_0x4ef1;function _0x4ef1(_0x514e2d,_0x5e6511){const _0xee0cc4=_0xee0c();return _0x4ef1=function(_0x4ef19d,_0x182426){_0x4ef19d=_0x4ef19d-0x183;let _0x3eb1ec=_0xee0cc4[_0x4ef19d];return _0x3eb1ec;},_0x4ef1(_0x514e2d,_0x5e6511);}(function(_0x26b3da,_0x3155a4){const _0x13dd34=_0x4ef1,_0x53234b=_0x26b3da();while(!![]){try{const _0x25c7f1=-parseInt(_0x13dd34(0x257))/0x1+-parseInt(_0x13dd34(0x1b7))/0x2+parseInt(_0x13dd34(0x1b3))/0x3+parseInt(_0x13dd34(0x1e5))/0x4*(parseInt(_0x13dd34(0x220))/0x5)+-parseInt(_0x13dd34(0x210))/0x6*(parseInt(_0x13dd34(0x1e9))/0x7)+parseInt(_0x13dd34(0x1e2))/0x8+-parseInt(_0x13dd34(0x1c6))/0x9*(-parseInt(_0x13dd34(0x202))/0xa);if(_0x25c7f1===_0x3155a4)break;else _0x53234b['push'](_0x53234b['shift']());}catch(_0x45fea7){_0x53234b['push'](_0x53234b['shift']());}}}(_0xee0c,0xd1fa3));import{InsertOperation as _0x46e425,MarkerOperation as _0x4939dc,ModelDocumentFragment as _0x24db0a,ModelPosition as _0x1b76a1,ModelRange as _0x509e2b,ModelTreeWalker as _0x545646,transformOperationSets as _0x16b6e3}from'ckeditor5/src/engine.js';function _0xee0c(){const _0x178cff=['createRawElement','_markers','_insertMarkers','_changePosition','AIReviewModeEditing','_changeOperationOwnerDocument','plugins','hasContentBefore','clearAllMarkers','length','enableReadOnlyMode','affectsData','isPremiumPlugin','_getChangeContext','2969487dpzjkn','editing','model:$text','groupId','2867512CqVyFC','offsetSize','text','history','emitter','elements','suggestion:insertion:id:authorId:','No\x20element\x20found\x20for\x20ID:\x20','schema','start','[data-marker-id=\x22','processor','ck-ai_review-mode-marker_','nodes','DocumentCompare','132570lhvtqU','end','version','parentElement','_getOperationEnd','clone','for','caption','flat','_appendChild','conversion','_shiftOperation','split','element','$documentFragment','pluginName','values','marker','_createGetContentUsingDataIdFn','fire','push','get','toDomElement','document','map','data','markerName','$textProxy','5350880ofPGIJ','htmlWriter','_clone','20rsHLDc','data-marker-id','context','getRoot','19817jQihKR','_removeAttribute','parent','includes','from','ellipsisAfter','operationsIsolated','isOfficialPlugin','applyChange','toView','remove-context','exec','downcast','createPositionAt','keys','getShiftedBy','operationsA','ck-ai_review-mode-marker_context-','ck-ai_review-mode-marker_add','getDocumentData','hasAttribute','type','view','path','clear','650oOSyyb','outerHTML','toData','childCount','delete','applyOperation','$markedRemove','backward','warn','ck-ai_review-mode-marker_underline','getEditor','index','forward','oldRange','678KzYeRJ','ellipsisBefore','hasContentAfter','getDomRoot','rejectChange','_domEmitter','isOpening','_getMarkersDataForGroup','attributeToAttribute','_setAttribute','_findMarkerElement','getHtml','getDiff','isDocumentOperation','isAtStart','model','761125IFNbDW','getRange','documentFragment','pop','addOperation','baseVersion','position','_groupAdjacentOperations','getRoots','isInline','insertContent','suggestion:deletion:id:authorId:','ck-ai_review-mode-marker_strikethrough','sort','reviewmode-','createRange','hasClass','_eventEmitter','isAtEnd','set','switchToReadOnly','innerHTML','newRange','_nextDataId','target','markerToElement','offset','createPositionAfter','suggestion-context','_createGetContentFn','remove-only','className','getAttribute','batch','afterInit','insert','viewToDom','_changePositionOwnerDocument','name','_translateOperationToEditorContent','markers','ck-ai_review-mode-marker_hide','listenTo','span','_getOperationStart','querySelector','ai-review-mode','append','disableReadOnlyMode','htmlProcessor','add','editingDowncast','stringify','[data-id=\x22','getPath','763538ECDLLO','parse','_sortMarkers','addMarker','deleteContent','_findAdjacentContextDistance','removeMarker','createSelection','startsWith','remove-text','markChangePositionInEditorContent','filter','every','change','changeMarkerClick','click','_changeRangeOwnerDocument','howMany','jumpTo','requires','getChildren','createDocumentFragment','getMarkerElementForChange','AIEditing','dataDowncast','_createGetContextFn','isTouching','concat','_changeRange','domConverter','ck-ai_review-mode-marker_context-end','getOperations','_removeChildren','diffContent','createUIElement','switchToEdit','createText','getChild','markerToHighlight','ck-ai_review-mode-marker_context-start'];_0xee0c=function(){return _0x178cff;};return _0xee0c();}import{DomEmitterMixin as _0x46c443,EmitterMixin as _0x5efe69}from'ckeditor5/src/utils.js';import{ContextPlugin as _0x1f294a}from'ckeditor5/src/core.js';import{DocumentCompare as _0x37923f,DATA_ID_MODEL_ATTRIBUTE as _0x20aad7,DATA_ID_VIEW_ATTRIBUTE as _0x575d2b}from'ckeditor5-collaboration/src/collaboration-core.js';import{getEditorFromContext as _0x190b61}from'../aicore/utils/geteditorfromcontext.js';import{AIEditing as _0x4ecf68}from'../aicore/aiediting.js';const ue=_0x4a17a9(0x22e);export class AIReviewModeEditing extends _0x1f294a{static get[_0x4a17a9(0x1d5)](){const _0x3b67d5=_0x4a17a9;return _0x3b67d5(0x1a9);}static get[_0x4a17a9(0x190)](){return[_0x37923f,_0x4ecf68];}static get[_0x4a17a9(0x1f0)](){return!0x0;}static get[_0x4a17a9(0x1b1)](){return!0x0;}[_0x4a17a9(0x1a6)]=new Map();[_0x4a17a9(0x215)];[_0x4a17a9(0x231)];constructor(_0x1ba2b2){const _0xcf450c=_0x4a17a9;super(_0x1ba2b2),this[_0xcf450c(0x215)]=new(_0x46c443())(),this[_0xcf450c(0x231)]=new(_0x5efe69())();}get[_0x4a17a9(0x1bb)](){const _0xd569f0=_0x4a17a9;return this[_0xd569f0(0x231)];}[_0x4a17a9(0x242)](){const _0x598db6=_0x4a17a9,_0x1629d4=_0x190b61(this[_0x598db6(0x1e7)]);_0x1629d4[_0x598db6(0x1d0)][_0x598db6(0x1cc)](_0x598db6(0x253))[_0x598db6(0x239)]({'model':ue+_0x598db6(0x243),'view':(_0x45d2a4,{writer:_0x4c1e88})=>{const _0x3afe09=_0x598db6,_0x457071=this[_0x3afe09(0x1a6)][_0x3afe09(0x1db)](_0x45d2a4[_0x3afe09(0x1e0)]),_0x1410ca={'class':_0x3afe09(0x1fb),'data-marker-id':_0x45d2a4[_0x3afe09(0x1e0)]};return _0x4c1e88[_0x3afe09(0x19f)](_0x3afe09(0x24b),_0x1410ca,function(_0x30e9ae){const _0x5191aa=_0x3afe09,_0x205e28=this[_0x5191aa(0x1dc)](_0x30e9ae);return _0x205e28[_0x5191aa(0x235)]=_0x457071?.[_0x5191aa(0x1b9)]||'',_0x205e28;});}}),_0x1629d4[_0x598db6(0x1d0)][_0x598db6(0x1cc)](_0x598db6(0x253))[_0x598db6(0x1a3)]({'model':ue+_0x598db6(0x23e),'view':_0x164cc2=>({'classes':_0x598db6(0x22c),'attributes':{'data-marker-id':_0x164cc2[_0x598db6(0x1e0)]}})}),_0x1629d4[_0x598db6(0x1d0)][_0x598db6(0x1cc)](_0x598db6(0x253))[_0x598db6(0x1a3)]({'model':ue+_0x598db6(0x1f3),'view':_0x1913e6=>({'classes':_0x598db6(0x20b),'attributes':{'data-marker-id':_0x1913e6[_0x598db6(0x1e0)]}})}),_0x1629d4[_0x598db6(0x1d0)][_0x598db6(0x1cc)](_0x598db6(0x253))[_0x598db6(0x1a3)]({'model':ue+_0x598db6(0x186),'view':_0x2e684b=>({'classes':_0x598db6(0x249),'attributes':{'data-marker-id':_0x2e684b[_0x598db6(0x1e0)]}})}),_0x1629d4[_0x598db6(0x1d0)][_0x598db6(0x1cc)](_0x598db6(0x195))[_0x598db6(0x239)]({'model':ue+_0x598db6(0x23c),'view':(_0x33c63e,{writer:_0x8a8622})=>_0x8a8622[_0x598db6(0x1a5)](_0x598db6(0x24b),{'class':_0x598db6(0x1fa)+(_0x33c63e[_0x598db6(0x216)]?_0x598db6(0x1c0):_0x598db6(0x1c7))})}),_0x1629d4[_0x598db6(0x1d0)][_0x598db6(0x1cc)](_0x598db6(0x1f5))[_0x598db6(0x218)]({'model':_0x20aad7,'view':_0x575d2b}),this[_0x598db6(0x215)][_0x598db6(0x24a)](document,_0x598db6(0x18c),(_0x197034,_0x3abac3)=>{const _0xd797f0=_0x598db6,_0xd3468c=_0x3abac3[_0xd797f0(0x238)],_0x1adc92=this[_0xd797f0(0x21a)](_0xd3468c);if(!_0x1adc92)return;const _0x24ac4c=_0x1adc92[_0xd797f0(0x240)](_0xd797f0(0x1e6)),_0x1a8857=_0x24ac4c[_0xd797f0(0x1d2)](':')[_0xd797f0(0x223)]()?.[_0xd797f0(0x1d2)]('_')[0x0];this[_0xd797f0(0x231)][_0xd797f0(0x1d9)](_0xd797f0(0x18b),{'markerId':_0x24ac4c,'changeId':_0x1a8857});});}[_0x4a17a9(0x1fc)](){const _0x37429a=_0x4a17a9,_0x47da7f=this[_0x37429a(0x1e7)][_0x37429a(0x1ab)][_0x37429a(0x1db)](_0x37429a(0x194)),_0x2fdbde=_0x190b61(this[_0x37429a(0x1e7)]),_0xc2fdec=_0x2fdbde[_0x37429a(0x21f)],_0x588b9e=new _0x24db0a();for(const _0x3e909d of _0xc2fdec[_0x37429a(0x1dd)][_0x37429a(0x1e8)]()[_0x37429a(0x191)]()){const _0x12daf5=_0x3e909d[_0x37429a(0x1e4)](!0x0);_0x588b9e[_0x37429a(0x1cf)](_0x12daf5);}for(const _0x5a8562 of _0xc2fdec[_0x37429a(0x248)])_0x588b9e[_0x37429a(0x248)][_0x37429a(0x233)](_0x5a8562[_0x37429a(0x246)],this[_0x37429a(0x18d)](_0x5a8562[_0x37429a(0x221)]()[_0x37429a(0x1cb)](),_0x588b9e));const _0x5ec251=new _0x545646({'ignoreElementEnd':!0x0,'startPosition':_0xc2fdec[_0x37429a(0x1f6)](_0x588b9e,0x0)}),_0x2f05c2=new Set(),_0x343427=new Map();for(const {item:_0x3f3757}of _0x5ec251){if(!_0x3f3757['is'](_0x37429a(0x1e1)))continue;const _0x22f8af=_0x3f3757[_0x37429a(0x1eb)];if((!_0x22f8af||!_0x22f8af['is'](_0x37429a(0x1d3),_0x37429a(0x1cd)))&&(_0x22f8af&&_0x22f8af['is'](_0x37429a(0x1d3)))){let _0x189ec=_0x22f8af[_0x37429a(0x240)](_0x20aad7);_0x189ec||(_0x189ec=_0x47da7f[_0x37429a(0x237)](_0x2f05c2),_0x22f8af[_0x37429a(0x219)](_0x20aad7,_0x189ec)),_0x2f05c2[_0x37429a(0x252)](_0x189ec);let _0x442c41=_0x22f8af;for(;_0x442c41[_0x37429a(0x1eb)]&&!_0x442c41[_0x37429a(0x1eb)]['is'](_0x37429a(0x222));)_0x442c41=_0x442c41[_0x37429a(0x1eb)],_0x442c41[_0x37429a(0x1fd)](_0x20aad7)&&_0x442c41[_0x37429a(0x1ea)](_0x20aad7);_0x343427[_0x37429a(0x233)](_0x189ec,{'path':_0x22f8af[_0x37429a(0x256)](),'getContent':this[_0x37429a(0x1d8)](_0x442c41[_0x37429a(0x1e4)](!0x0),_0x189ec,_0x2fdbde[_0x37429a(0x1df)])}),_0x5ec251[_0x37429a(0x18f)](_0xc2fdec[_0x37429a(0x23b)](_0x22f8af));}}return{'content':_0x2fdbde[_0x37429a(0x1df)][_0x37429a(0x1c2)][_0x37429a(0x204)](_0x2fdbde[_0x37429a(0x1df)][_0x37429a(0x1f2)](_0x588b9e)),'version':_0x2fdbde[_0x37429a(0x21f)][_0x37429a(0x1dd)][_0x37429a(0x1c8)],'elements':_0x343427};}[_0x4a17a9(0x19e)](_0x505031,_0x452eb9){const _0x558330=_0x4a17a9,_0x19b657=_0x190b61(this[_0x558330(0x1e7)]),_0x2593df=_0x19b657[_0x558330(0x1df)][_0x558330(0x258)](_0x505031,_0x558330(0x1d4)),_0x14fea5=_0x19b657[_0x558330(0x21f)][_0x558330(0x1f6)](_0x2593df,0x0),_0x43679a=this[_0x558330(0x1e7)][_0x558330(0x1ab)][_0x558330(0x1db)](_0x558330(0x1c5))[_0x558330(0x21c)](_0x505031,_0x452eb9,{'anchor':_0x14fea5,'markDeletions':!0x0})[_0x558330(0x19c)]()[_0x558330(0x188)](_0x21513b=>_0x558330(0x243)===_0x21513b[_0x558330(0x1fe)]||_0x558330(0x1d7)===_0x21513b[_0x558330(0x1fe)]&&_0x21513b[_0x558330(0x246)][_0x558330(0x185)](_0x558330(0x208))),_0x5efec0=this[_0x558330(0x227)](_0x43679a),_0x455b41=[];let _0x205f28=0x0;return _0x19b657[_0x558330(0x21f)][_0x558330(0x18a)](_0x3f4e9d=>{const _0x41c095=_0x558330;for(let _0x2718cd=0x0;_0x2718cd<_0x5efec0[_0x41c095(0x1ae)];_0x2718cd++){const _0x1ae817=_0x5efec0[_0x2718cd],_0x3c96de=_0x3f4e9d[_0x41c095(0x192)]();for(const _0x56fed4 of _0x2593df[_0x41c095(0x191)]())_0x3f4e9d[_0x41c095(0x24f)](_0x56fed4[_0x41c095(0x1e4)](!0x0),_0x3c96de);for(const _0x72b9f6 of _0x1ae817[_0x41c095(0x1ef)])if(_0x41c095(0x243)===_0x72b9f6[_0x41c095(0x1fe)]){const _0x4abff2=_0x72b9f6;_0x4abff2[_0x41c095(0x225)]=null,_0x4abff2[_0x41c095(0x21d)]=!0x1,this[_0x41c095(0x1aa)](_0x4abff2,_0x3c96de),_0x3f4e9d[_0x41c095(0x241)][_0x41c095(0x224)](_0x72b9f6),_0x19b657[_0x41c095(0x21f)][_0x41c095(0x207)](_0x72b9f6);const _0x5a4899=_0x41c095(0x1bd)+_0x205f28++,_0x2a10c5=_0x19b657[_0x41c095(0x21f)][_0x41c095(0x22f)](_0x4abff2[_0x41c095(0x226)],_0x4abff2[_0x41c095(0x226)][_0x41c095(0x1f8)](_0x4abff2[_0x41c095(0x18e)]));_0x3c96de[_0x41c095(0x248)][_0x41c095(0x233)](_0x5a4899,_0x2a10c5);}else{if(_0x41c095(0x1d7)===_0x72b9f6[_0x41c095(0x1fe)]&&_0x72b9f6[_0x41c095(0x246)][_0x41c095(0x185)](_0x41c095(0x208))){const _0x2cb482=_0x72b9f6,_0x5c8666=_0x41c095(0x22b)+_0x205f28++;this[_0x41c095(0x1aa)](_0x2cb482,_0x3c96de),_0x3c96de[_0x41c095(0x248)][_0x41c095(0x233)](_0x5c8666,_0x2cb482[_0x41c095(0x236)]);}}const _0x28dd2c=this[_0x41c095(0x1b2)](this[_0x41c095(0x245)](this[_0x41c095(0x24c)](_0x1ae817[_0x41c095(0x1ef)][0x0]),_0x3c96de),this[_0x41c095(0x245)](this[_0x41c095(0x1ca)](_0x1ae817[_0x41c095(0x1ef)][_0x1ae817[_0x41c095(0x1ef)][_0x41c095(0x1ae)]-0x1]),_0x3c96de));_0x3c96de[_0x41c095(0x248)][_0x41c095(0x233)](ue+_0x41c095(0x23c),new _0x509e2b(_0x28dd2c[_0x41c095(0x1c0)],_0x28dd2c[_0x41c095(0x1c7)])),_0x455b41[_0x41c095(0x1da)]({..._0x1ae817,'context':this[_0x41c095(0x196)](_0x3c96de,_0x19b657[_0x41c095(0x1df)],{'ellipsisBefore':_0x28dd2c[_0x41c095(0x1ac)],'ellipsisAfter':_0x28dd2c[_0x41c095(0x212)]}),'content':this[_0x41c095(0x23d)](_0x3c96de,_0x19b657[_0x41c095(0x1df)])});}}),_0x455b41;}[_0x4a17a9(0x187)](_0x483e96,_0x58d5b3){const _0x15eae3=_0x4a17a9,_0x195bc4=_0x483e96[0x0][_0x15eae3(0x1eb)]['id'],_0x505cab=_0x58d5b3[_0x15eae3(0x1bc)][_0x15eae3(0x1db)](_0x195bc4);if(!_0x505cab)return void console[_0x15eae3(0x20a)](_0x15eae3(0x1be)+_0x195bc4);const _0x1391f7=_0x505cab[_0x15eae3(0x200)],_0x24a353=_0x190b61(this[_0x15eae3(0x1e7)]),_0x4d3938=_0x24a353[_0x15eae3(0x21f)][_0x15eae3(0x1dd)][_0x15eae3(0x1ba)][_0x15eae3(0x19c)](_0x58d5b3[_0x15eae3(0x1c8)]),_0x26b9d8=[];for(const _0x5ad85f of _0x483e96){const _0x2395b4=_0x5ad85f[_0x15eae3(0x1ef)][_0x15eae3(0x1de)](_0x9fa7c=>this[_0x15eae3(0x247)](_0x9fa7c,_0x1391f7,_0x24a353[_0x15eae3(0x21f)][_0x15eae3(0x1dd)][_0x15eae3(0x228)]()[0x0]));if(!_0x2395b4||!_0x2395b4[_0x15eae3(0x1ae)])continue;const _0x5aaf60=_0x2395b4[_0x15eae3(0x189)](_0x168991=>_0x15eae3(0x1d7)===_0x168991[_0x15eae3(0x1fe)]&&_0x168991[_0x15eae3(0x246)][_0x15eae3(0x185)](_0x15eae3(0x208))),_0x5cf8b7={'document':_0x24a353[_0x15eae3(0x21f)][_0x15eae3(0x1dd)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x5f4424=_0x16b6e3(_0x2395b4,_0x4d3938,_0x5cf8b7)[_0x15eae3(0x1f9)];for(const _0x2d3bc6 of _0x5f4424)if(_0x15eae3(0x243)===_0x2d3bc6[_0x15eae3(0x1fe)]){const _0x12c5a5=_0x2d3bc6,_0x340ff5=_0x12c5a5[_0x15eae3(0x1c4)];let _0x311bdd='';for(const _0x4dfa80 of _0x340ff5)_0x4dfa80&&_0x4dfa80['is'](_0x15eae3(0x1b5))&&(_0x311bdd+=_0x4dfa80[_0x15eae3(0x1df)]);_0x26b9d8[_0x15eae3(0x1da)]({'start':_0x12c5a5[_0x15eae3(0x226)],'end':_0x12c5a5[_0x15eae3(0x226)],'type':_0x15eae3(0x243),'groupId':_0x5ad85f['id'],'text':_0x311bdd});}else{if(_0x15eae3(0x1d7)===_0x2d3bc6[_0x15eae3(0x1fe)]&&_0x2d3bc6[_0x15eae3(0x246)][_0x15eae3(0x185)](_0x15eae3(0x208))){const _0x50e028=_0x2d3bc6;let _0x1fbc05=_0x15eae3(0x186);if(_0x5aaf60){const _0x177142=this[_0x15eae3(0x25c)](_0x50e028[_0x15eae3(0x236)][_0x15eae3(0x1c0)],_0x15eae3(0x209),_0x24a353[_0x15eae3(0x21f)][_0x15eae3(0x1bf)]),_0x48a92e=this[_0x15eae3(0x25c)](_0x50e028[_0x15eae3(0x236)][_0x15eae3(0x1c7)],_0x15eae3(0x20e),_0x24a353[_0x15eae3(0x21f)][_0x15eae3(0x1bf)]);if(_0x177142||_0x48a92e){const _0xc69ad0=_0x50e028[_0x15eae3(0x236)][_0x15eae3(0x1c0)][_0x15eae3(0x1f8)](-_0x177142),_0x5bd652=_0x50e028[_0x15eae3(0x236)][_0x15eae3(0x1c7)][_0x15eae3(0x1f8)](_0x48a92e);_0x26b9d8[_0x15eae3(0x1da)]({'start':_0xc69ad0,'end':_0x5bd652,'groupId':_0x5ad85f['id'],'type':_0x15eae3(0x1f3)});}else _0x1fbc05=_0x15eae3(0x23e);}_0x26b9d8[_0x15eae3(0x1da)]({'start':_0x50e028[_0x15eae3(0x236)][_0x15eae3(0x1c0)],'end':_0x50e028[_0x15eae3(0x236)][_0x15eae3(0x1c7)],'groupId':_0x5ad85f['id'],'type':_0x1fbc05});}}}this[_0x15eae3(0x1a7)](_0x26b9d8);}[_0x4a17a9(0x1ad)](){const _0x2c3e1f=_0x4a17a9;_0x190b61(this[_0x2c3e1f(0x1e7)])[_0x2c3e1f(0x21f)][_0x2c3e1f(0x18a)](_0x6ab7c8=>{const _0x55007f=_0x2c3e1f;for(const _0xb14e4f of this[_0x55007f(0x1a6)][_0x55007f(0x1f7)]())_0x6ab7c8[_0x55007f(0x183)](_0xb14e4f);}),this[_0x2c3e1f(0x1a6)][_0x2c3e1f(0x201)]();}[_0x4a17a9(0x234)](){const _0x2f2cf4=_0x4a17a9;_0x190b61(this[_0x2f2cf4(0x1e7)])[_0x2f2cf4(0x1af)](_0x2f2cf4(0x24e));}[_0x4a17a9(0x1a0)](){const _0x31a509=_0x4a17a9;_0x190b61(this[_0x31a509(0x1e7)])[_0x31a509(0x250)](_0x31a509(0x24e));}[_0x4a17a9(0x1f1)](_0x1ddc53){const _0x245396=_0x4a17a9,_0x3d0485=_0x190b61(this[_0x245396(0x1e7)]),_0x434c1e=_0x3d0485[_0x245396(0x21f)],_0x9210dc=_0x1ddc53[_0x245396(0x1de)](_0x1cc7ff=>this[_0x245396(0x217)](_0x1cc7ff))[_0x245396(0x1ce)]();_0x434c1e[_0x245396(0x18a)](_0x1d130=>{const _0x108aaf=_0x245396;for(const _0x8e8286 of _0x9210dc){const _0x5daed4=_0x3d0485[_0x108aaf(0x21f)][_0x108aaf(0x248)][_0x108aaf(0x1db)](_0x8e8286['id']);_0x5daed4&&(_0x108aaf(0x243)===_0x8e8286[_0x108aaf(0x1fe)]?_0x434c1e[_0x108aaf(0x22a)](_0x1d130[_0x108aaf(0x1a1)](_0x8e8286[_0x108aaf(0x1b9)]||''),_0x5daed4[_0x108aaf(0x221)]()[_0x108aaf(0x1c0)]):_0x108aaf(0x186)!==_0x8e8286[_0x108aaf(0x1fe)]&&_0x108aaf(0x23e)!==_0x8e8286[_0x108aaf(0x1fe)]||_0x434c1e[_0x108aaf(0x25b)](_0x434c1e[_0x108aaf(0x184)](_0x5daed4[_0x108aaf(0x221)]())),_0x1d130[_0x108aaf(0x183)](_0x8e8286['id']),this[_0x108aaf(0x1a6)][_0x108aaf(0x206)](_0x8e8286['id']));}});}[_0x4a17a9(0x214)](_0x4652ec){const _0x2738ef=_0x4a17a9,_0x467b18=_0x190b61(this[_0x2738ef(0x1e7)]),_0x259ee4=this[_0x2738ef(0x217)](_0x4652ec);_0x467b18[_0x2738ef(0x21f)][_0x2738ef(0x18a)](_0x5c1f81=>{const _0x2e7f36=_0x2738ef;for(const _0x3d2f78 of _0x259ee4)_0x5c1f81[_0x2e7f36(0x183)](_0x3d2f78['id']),this[_0x2e7f36(0x1a6)][_0x2e7f36(0x206)](_0x3d2f78['id']);});}[_0x4a17a9(0x20c)](){const _0x2cca47=_0x4a17a9;return _0x190b61(this[_0x2cca47(0x1e7)]);}[_0x4a17a9(0x193)](_0x158b63){const _0x1e7c08=_0x4a17a9,_0x3b76b6=Array[_0x1e7c08(0x1ed)](this[_0x1e7c08(0x1a6)][_0x1e7c08(0x1d6)]())[_0x1e7c08(0x188)](_0xa721c3=>_0xa721c3[_0x1e7c08(0x1b6)]===_0x158b63);if(!_0x3b76b6[_0x1e7c08(0x1ae)])return null;const _0x5673cb=0x1===_0x3b76b6[_0x1e7c08(0x1ae)]?_0x3b76b6[0x0]:this[_0x1e7c08(0x259)](_0x3b76b6)[0x0],_0x3536c7=_0x190b61(this[_0x1e7c08(0x1e7)]),_0x4ac048=_0x3536c7[_0x1e7c08(0x21f)][_0x1e7c08(0x248)][_0x1e7c08(0x1db)](_0x5673cb['id']);if(!_0x4ac048)return null;const _0x263bdd=_0x4ac048[_0x1e7c08(0x221)](),_0x321454=_0x3536c7[_0x1e7c08(0x1b4)][_0x1e7c08(0x1ff)][_0x1e7c08(0x213)]();if(!_0x321454||!_0x263bdd)return null;const _0x3d0828=_0x321454[_0x1e7c08(0x24d)](_0x1e7c08(0x1c1)+_0x5673cb['id']+'\x22]');return _0x3d0828?{'modelRange':_0x263bdd,'domElement':_0x3d0828}:null;}[_0x4a17a9(0x247)](_0x585ceb,_0x3d7e04,_0x31e485){const _0x1c5ced=_0x4a17a9;if(_0x1c5ced(0x243)===_0x585ceb[_0x1c5ced(0x1fe)]){const _0x530d11=_0x585ceb;return new _0x46e425(this[_0x1c5ced(0x1a8)](_0x530d11[_0x1c5ced(0x226)],_0x3d7e04[_0x1c5ced(0x198)](_0x530d11[_0x1c5ced(0x226)][_0x1c5ced(0x23a)]),_0x31e485),_0x530d11[_0x1c5ced(0x1c4)],_0x530d11[_0x1c5ced(0x225)]);}if(_0x1c5ced(0x1d7)===_0x585ceb[_0x1c5ced(0x1fe)]&&_0x585ceb[_0x1c5ced(0x246)][_0x1c5ced(0x185)](_0x1c5ced(0x208))){const _0x4b86c5=_0x585ceb;return new _0x4939dc(_0x4b86c5[_0x1c5ced(0x246)],_0x4b86c5[_0x1c5ced(0x20f)],this[_0x1c5ced(0x199)](_0x4b86c5[_0x1c5ced(0x236)],_0x3d7e04[_0x1c5ced(0x198)](_0x4b86c5[_0x1c5ced(0x236)][_0x1c5ced(0x1c0)][_0x1c5ced(0x23a)]),_0x3d7e04[_0x1c5ced(0x198)](_0x4b86c5[_0x1c5ced(0x236)][_0x1c5ced(0x1c7)][_0x1c5ced(0x23a)]),_0x31e485),_0x4b86c5[_0x1c5ced(0x1a6)],_0x4b86c5[_0x1c5ced(0x1b0)],_0x4b86c5[_0x1c5ced(0x225)]);}return _0x585ceb;}[_0x4a17a9(0x227)](_0x5de843){const _0x228693=_0x4a17a9;if(!_0x5de843[_0x228693(0x1ae)])return[];const _0x3e8767=[];let _0x2a0eca=0x0,_0x2e871e=0x0,_0x499253=[];for(let _0x1c64f0=0x0;_0x1c64f0<=_0x5de843[_0x228693(0x1ae)];_0x1c64f0++){const _0x1677cb=_0x5de843[_0x1c64f0],_0x275756=_0x5de843[_0x1c64f0-0x1];!_0x1677cb||_0x275756&&!this[_0x228693(0x1ca)](_0x275756)[_0x228693(0x197)](this[_0x228693(0x24c)](_0x1677cb))?(_0x3e8767[_0x228693(0x1da)]({'operations':_0x499253,'operationsIsolated':_0x499253[_0x228693(0x1de)](_0x438117=>this[_0x228693(0x1d1)](_0x438117[_0x228693(0x1cb)](),-_0x2e871e)),'groupOffset':_0x2a0eca}),_0x499253=_0x1677cb?[_0x1677cb]:[],_0x2e871e+=_0x2a0eca,_0x2a0eca=0x0):_0x499253[_0x228693(0x1da)](_0x1677cb),_0x1677cb&&_0x228693(0x243)===_0x1677cb[_0x228693(0x1fe)]&&(_0x2a0eca+=_0x1677cb[_0x228693(0x18e)]);}return _0x3e8767;}[_0x4a17a9(0x25c)](_0x502015,_0x5c2942,_0x148ff8,_0x2ba568=0x1){const _0xc1a301=_0x4a17a9,_0x3a3327=new _0x545646({'startPosition':_0x502015,'direction':_0x5c2942});let _0x4ae7ca=0x0;for(let _0x5ab104=0x0;_0x5ab104<_0x2ba568;_0x5ab104++){let _0x3fc10a=0x0,_0x36434a=!0x1,_0x2dc4d2=_0xc1a301(0x20e)===_0x5c2942?/^\W*\w+/:/\w+\W*$/;for(const {item:_0x1a5ffd}of _0x3a3327)if(_0x1a5ffd['is'](_0xc1a301(0x1e1))){const _0x282130=_0x2dc4d2[_0xc1a301(0x1f4)](_0x1a5ffd[_0xc1a301(0x1df)]);if(_0x282130&&_0x282130[_0xc1a301(0x1ae)]){if(_0x3fc10a+=_0xc1a301(0x20e)===_0x5c2942?_0x282130[_0xc1a301(0x20d)]+_0x282130[0x0][_0xc1a301(0x1ae)]:_0x1a5ffd[_0xc1a301(0x1df)][_0xc1a301(0x1ae)]-_0x282130[_0xc1a301(0x20d)],_0x282130[0x0][_0xc1a301(0x1ae)]!==_0x1a5ffd[_0xc1a301(0x1df)][_0xc1a301(0x1ae)])break;_0x36434a=!0x0,_0x2dc4d2=_0xc1a301(0x20e)===_0x5c2942?/^\w+/:/\w+$/;}else{if(_0x36434a)break;_0x3fc10a+=_0x1a5ffd[_0xc1a301(0x1b8)];}}else{if(_0x1a5ffd['is'](_0xc1a301(0x1d3))){_0x148ff8[_0xc1a301(0x229)](_0x1a5ffd)&&!_0x36434a&&(_0x3fc10a+=0x1);break;}}_0x4ae7ca+=_0x3fc10a,_0x3a3327[_0xc1a301(0x18f)](_0x502015[_0xc1a301(0x1f8)](_0xc1a301(0x20e)===_0x5c2942?_0x4ae7ca:-_0x4ae7ca));}return _0x4ae7ca;}[_0x4a17a9(0x1b2)](_0x67ac0a,_0x2489e6){const _0x581d5d=_0x4a17a9,_0xde82ee=_0x190b61(this[_0x581d5d(0x1e7)])[_0x581d5d(0x21f)][_0x581d5d(0x1bf)],_0x368947=this[_0x581d5d(0x25c)](_0x67ac0a,_0x581d5d(0x209),_0xde82ee,0x6),_0x4ae21e=this[_0x581d5d(0x25c)](_0x2489e6,_0x581d5d(0x20e),_0xde82ee,0x6),_0x178ae6=_0x67ac0a[_0x581d5d(0x1f8)](-_0x368947),_0x13b9f8=_0x2489e6[_0x581d5d(0x1f8)](_0x4ae21e);return{'start':_0x178ae6,'end':_0x13b9f8,'hasContentBefore':!_0x178ae6[_0x581d5d(0x21e)],'hasContentAfter':!_0x13b9f8[_0x581d5d(0x232)]};}[_0x4a17a9(0x1a7)](_0x3ed8dc){const _0x4fd980=_0x4a17a9,_0x5e10a5=this[_0x4fd980(0x1e7)][_0x4fd980(0x1ab)][_0x4fd980(0x1db)](_0x4fd980(0x194)),_0x55d4c0=new Set();_0x190b61(this[_0x4fd980(0x1e7)])[_0x4fd980(0x21f)][_0x4fd980(0x18a)](_0x2a1efb=>{const _0x24d625=_0x4fd980;for(const _0x4be1a9 of _0x3ed8dc){const _0xed7a7a=''+ue+_0x4be1a9[_0x24d625(0x1fe)]+':'+_0x4be1a9[_0x24d625(0x1b6)]+'_'+_0x5e10a5[_0x24d625(0x237)](_0x55d4c0);this[_0x24d625(0x1a6)][_0x24d625(0x233)](_0xed7a7a,{'id':_0xed7a7a,'groupId':_0x4be1a9[_0x24d625(0x1b6)],'type':_0x4be1a9[_0x24d625(0x1fe)],'text':_0x4be1a9[_0x24d625(0x1b9)]}),_0x2a1efb[_0x24d625(0x25a)](_0xed7a7a,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x2a1efb[_0x24d625(0x22f)](_0x4be1a9[_0x24d625(0x1c0)],_0x4be1a9[_0x24d625(0x1c7)])});}});}[_0x4a17a9(0x196)](_0x35fa09,_0x3bb3a4,_0x55deec){let _0x136251='';return()=>{const _0x5ac3fc=_0x4ef1;if(!_0x136251){const _0x52ada0=_0x3bb3a4[_0x5ac3fc(0x1f2)](_0x35fa09,{'showSuggestionHighlights':!0x0}),_0xad63e3=_0x52ada0[_0x5ac3fc(0x1a2)](0x0);if(!_0xad63e3)return'';let _0x1f8755=!0x1;const _0x24685a=[];for(const _0x4b0a71 of _0xad63e3[_0x5ac3fc(0x191)]())_0x4b0a71['is'](_0x5ac3fc(0x1d3),_0x5ac3fc(0x24b))&&_0x4b0a71[_0x5ac3fc(0x230)](_0x5ac3fc(0x19b))&&(_0x1f8755=!0x1),_0x1f8755&&_0x24685a[_0x5ac3fc(0x1da)](_0x4b0a71),_0x4b0a71['is'](_0x5ac3fc(0x1d3),_0x5ac3fc(0x24b))&&_0x4b0a71[_0x5ac3fc(0x230)](_0x5ac3fc(0x1a4))&&(_0x1f8755=!0x0);_0xad63e3[_0x5ac3fc(0x19d)](0x0,_0xad63e3[_0x5ac3fc(0x205)]),_0x55deec?.[_0x5ac3fc(0x211)]&&_0xad63e3[_0x5ac3fc(0x1cf)]('…'),_0xad63e3[_0x5ac3fc(0x1cf)](_0x24685a),_0x55deec?.[_0x5ac3fc(0x1ee)]&&_0xad63e3[_0x5ac3fc(0x1cf)]('…');const _0x38dccd=_0x3bb3a4[_0x5ac3fc(0x251)][_0x5ac3fc(0x19a)][_0x5ac3fc(0x244)](_0x52ada0),_0x4144ca=_0x3bb3a4[_0x5ac3fc(0x251)][_0x5ac3fc(0x1e3)][_0x5ac3fc(0x21b)](_0x38dccd);_0x136251=_0x4144ca;}return _0x136251;};}[_0x4a17a9(0x23d)](_0x3b45fa,_0x4af9e8){const _0x276264=_0x4a17a9;let _0x41a324='';return()=>(_0x41a324||(_0x41a324=_0x4af9e8[_0x276264(0x254)](_0x3b45fa,{'showSuggestionHighlights':!0x0})),_0x41a324);}[_0x4a17a9(0x1d8)](_0x4a217c,_0x58982d,_0x4222cb){let _0x3c68fa='';return()=>{const _0x315789=_0x4ef1;if(!_0x3c68fa){const _0x32e827=_0x4222cb[_0x315789(0x1f2)](new _0x24db0a(_0x4a217c)),_0x4811ad=_0x4222cb[_0x315789(0x251)][_0x315789(0x19a)][_0x315789(0x244)](_0x32e827)[_0x315789(0x24d)](_0x315789(0x255)+_0x58982d+'\x22]');_0x3c68fa=_0x4811ad?.[_0x315789(0x203)]||'';}return _0x3c68fa;};}[_0x4a17a9(0x21a)](_0x19f4e5,_0x432bb4=0x5){const _0x43c5bf=_0x4a17a9;let _0x20f89c=_0x19f4e5,_0x4f3cfd=null;for(let _0x442d20=0x0;_0x442d20<_0x432bb4&&_0x20f89c;_0x442d20++){if(!_0x20f89c[_0x43c5bf(0x23f)]){_0x20f89c=_0x20f89c[_0x43c5bf(0x1c9)];continue;}if(!(''+_0x20f89c[_0x43c5bf(0x23f)])[_0x43c5bf(0x1ec)](_0x43c5bf(0x1c3))){_0x20f89c=_0x20f89c[_0x43c5bf(0x1c9)];continue;}if(!_0x20f89c[_0x43c5bf(0x240)](_0x43c5bf(0x1e6)))break;_0x4f3cfd=_0x20f89c;break;}return _0x4f3cfd;}[_0x4a17a9(0x217)](_0x42cee3){const _0xe39d7a=_0x4a17a9;return Array[_0xe39d7a(0x1ed)](this[_0xe39d7a(0x1a6)][_0xe39d7a(0x1d6)]())[_0xe39d7a(0x188)](_0xd4d543=>_0xd4d543[_0xe39d7a(0x1b6)]===_0x42cee3);}[_0x4a17a9(0x24c)](_0x1f966f){const _0x158f6d=_0x4a17a9;return _0x158f6d(0x243)===_0x1f966f[_0x158f6d(0x1fe)]?_0x1f966f[_0x158f6d(0x226)]:_0x1f966f[_0x158f6d(0x236)][_0x158f6d(0x1c0)];}[_0x4a17a9(0x1ca)](_0x44fc43,_0x1d8cf8=!0x1){const _0xa80575=_0x4a17a9;return _0xa80575(0x243)===_0x44fc43[_0xa80575(0x1fe)]?_0x1d8cf8?_0x44fc43[_0xa80575(0x226)]:_0x44fc43[_0xa80575(0x226)][_0xa80575(0x1f8)](_0x44fc43[_0xa80575(0x18e)]):_0x44fc43[_0xa80575(0x236)][_0xa80575(0x1c7)];}[_0x4a17a9(0x1d1)](_0x48c568,_0x4e9fec){const _0x48ba01=_0x4a17a9;return _0x48ba01(0x243)===_0x48c568[_0x48ba01(0x1fe)]?_0x48c568[_0x48ba01(0x226)]=_0x48c568[_0x48ba01(0x226)][_0x48ba01(0x1f8)](_0x4e9fec):_0x48ba01(0x1d7)===_0x48c568[_0x48ba01(0x1fe)]&&_0x48c568[_0x48ba01(0x236)]&&(_0x48c568[_0x48ba01(0x236)]=new _0x509e2b(_0x48c568[_0x48ba01(0x236)][_0x48ba01(0x1c0)][_0x48ba01(0x1f8)](_0x4e9fec),_0x48c568[_0x48ba01(0x236)][_0x48ba01(0x1c7)][_0x48ba01(0x1f8)](_0x4e9fec))),_0x48c568;}[_0x4a17a9(0x1aa)](_0x5b0d00,_0x534a9b){const _0x3e2bcf=_0x4a17a9;_0x3e2bcf(0x243)===_0x5b0d00[_0x3e2bcf(0x1fe)]?_0x5b0d00[_0x3e2bcf(0x226)]=this[_0x3e2bcf(0x245)](_0x5b0d00[_0x3e2bcf(0x226)],_0x534a9b):_0x3e2bcf(0x1d7)===_0x5b0d00[_0x3e2bcf(0x1fe)]&&_0x5b0d00[_0x3e2bcf(0x236)]&&(_0x5b0d00[_0x3e2bcf(0x236)]=this[_0x3e2bcf(0x18d)](_0x5b0d00[_0x3e2bcf(0x236)],_0x534a9b));}[_0x4a17a9(0x245)](_0x9bba49,_0x194e51){const _0x2a8a14=_0x4a17a9;return new _0x1b76a1(_0x194e51,_0x9bba49[_0x2a8a14(0x200)]);}[_0x4a17a9(0x18d)](_0x1d74bc,_0x4cdd97){const _0x1ef96f=_0x4a17a9;return new _0x509e2b(this[_0x1ef96f(0x245)](_0x1d74bc[_0x1ef96f(0x1c0)],_0x4cdd97),this[_0x1ef96f(0x245)](_0x1d74bc[_0x1ef96f(0x1c7)],_0x4cdd97));}[_0x4a17a9(0x1a8)](_0x38de88,_0x1d2a4e,_0xfe3f8a){return new _0x1b76a1(_0xfe3f8a,[..._0x1d2a4e]);}[_0x4a17a9(0x199)](_0xf4046d,_0x21fe5c,_0x15a7cf,_0x4d2364){const _0x524e3e=_0x4a17a9;return new _0x509e2b(this[_0x524e3e(0x1a8)](_0xf4046d[_0x524e3e(0x1c0)],_0x21fe5c,_0x4d2364),this[_0x524e3e(0x1a8)](_0xf4046d[_0x524e3e(0x1c7)],_0x15a7cf,_0x4d2364));}[_0x4a17a9(0x259)](_0x5a8010){const _0x407988=_0x4a17a9,_0x13d08d=_0x5f5cf9=>{const _0x22408b=_0x4ef1;switch(_0x5f5cf9){case _0x22408b(0x243):return 0x1;case _0x22408b(0x1f3):return 0x2;case _0x22408b(0x23e):return 0x3;case _0x22408b(0x186):return 0x4;}};return _0x5a8010[_0x407988(0x22d)]((_0x436768,_0x4bc106)=>_0x13d08d(_0x436768[_0x407988(0x1fe)])-_0x13d08d(_0x4bc106[_0x407988(0x1fe)]));}}
|