@ckeditor/ckeditor5-ai 47.6.2-alpha.0 → 47.6.2-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 +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- 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/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- 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/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.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/ui/aichatballoonview.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/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.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/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.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/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 +2 -2
- 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/aichatshortcuts/aichatshortcuts.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutview.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/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.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/aispinner.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/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
- package/src/aicore/utils/common-translations.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/eventnames.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/aicore/utils/scrollmanager.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/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/model/aireviewcheck.js +1 -1
- package/src/aireviewcore/model/aireviewchecklist.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
- package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.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
- package/src/aitranslate/aitranslate.js +1 -1
- package/src/aitranslate/aitranslatecontroller.js +1 -1
- package/src/aitranslate/aitranslateui.js +1 -1
- package/src/aitranslate/model/aitranslatecheck.js +1 -1
- package/src/aitranslate/model/aitranslatechecklist.js +1 -1
- package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
- package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
- package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3b163c=_0xa2cb;(function(_0x330b70,_0x37c6ca){const _0x4cdc61=_0xa2cb,_0x1857a0=_0x330b70();while(!![]){try{const _0x56f38a=parseInt(_0x4cdc61(0xf3))/0x1+-parseInt(_0x4cdc61(0xe1))/0x2+parseInt(_0x4cdc61(0xfe))/0x3+parseInt(_0x4cdc61(0xff))/0x4*(-parseInt(_0x4cdc61(0xbb))/0x5)+parseInt(_0x4cdc61(0xb8))/0x6*(-parseInt(_0x4cdc61(0xf7))/0x7)+-parseInt(_0x4cdc61(0x102))/0x8+parseInt(_0x4cdc61(0xb1))/0x9;if(_0x56f38a===_0x37c6ca)break;else _0x1857a0['push'](_0x1857a0['shift']());}catch(_0x959b94){_0x1857a0['push'](_0x1857a0['shift']());}}}(_0x1cf7,0x2e66f));import{CKEditorError as _0xe8da2a,EmitterMixin as _0x2cc2fc,uid as _0x5e449c}from'ckeditor5/src/utils.js';function _0xa2cb(_0x6884b8,_0x2c7b4a){const _0x1cf7e9=_0x1cf7();return _0xa2cb=function(_0xa2cb1a,_0x4ea71d){_0xa2cb1a=_0xa2cb1a-0xad;let _0x5b3911=_0x1cf7e9[_0xa2cb1a];return _0x5b3911;},_0xa2cb(_0x6884b8,_0x2c7b4a);}import{AIReply as _0x99ff67}from'./aireply.js';function _0x1cf7(){const _0x36a3eb=['notification','abortController','webSearchStarted','destroy','resetReasoningState','reasoningFinished','_finalizeInteraction','interactionStopped','getStream','replies','textDelta','interactionStarted','toolName','result','resetWebSearchState','conversationTitle','start','stopListening','isDestroyed','isStopped','appendContent','interactionFinished','getReply','delegate','text-delta','action-metadata','text','callId','currentRequest','_handleToolResultData','data','find','470952xOMpER','webSearchFinished','done','reasoning','replyCreated','sources','interactionDestroyed','event','push','attributes','connector','editor','_isReasoning','actionCallId','_handleToolNotificationData','replyContentUpdated','length','_isWebSearching','41395pFxBgl','forEach','modification-delta','stop','231AuQqbj','sendRequest','interactionCreated','replyChangeGroupStateUpdated','content','conversation-title','setConversationTitle','350385eNPjMF','100BgSIjl','reasoningStarted','currentReply','1681080LfilXO','modification','abort','mcp-tool-notification','web-search','7536960GbhYiI','fire','type','ai-chat-interaction-error','mcp-tool-result','splice','error','10842UKMTPd','messageId','createReply','60065fTjLuz','toolDataReceived','message-metadata','source','getDocumentContext','parse'];_0x1cf7=function(){return _0x36a3eb;};return _0x1cf7();}export const AI_MODEL_EVENT_NAMES=[_0x3b163c(0xf9),_0x3b163c(0xcc),_0x3b163c(0xc8),_0x3b163c(0xd6),_0x3b163c(0xe7),_0x3b163c(0xe5),_0x3b163c(0xf0),_0x3b163c(0xfa),_0x3b163c(0xfd),_0x3b163c(0xc3),_0x3b163c(0xe2),_0x3b163c(0x100),_0x3b163c(0xc6),_0x3b163c(0xbc),_0x3b163c(0xb7)];export class AIInteraction extends _0x2cc2fc(){['id'];[_0x3b163c(0xca)]=[];[_0x3b163c(0x101)];[_0x3b163c(0xb9)];[_0x3b163c(0xee)];[_0x3b163c(0xdd)];[_0x3b163c(0xeb)];[_0x3b163c(0xd4)]=!0x1;[_0x3b163c(0xd3)]=!0x1;[_0x3b163c(0xec)];[_0x3b163c(0xed)]=!0x1;[_0x3b163c(0xf2)]=!0x1;constructor({connector:_0x90f838,editor:_0x58ec12}){const _0x141caf=_0x3b163c;super(),this['id']=_0x5e449c(),this[_0x141caf(0xeb)]=_0x90f838,this[_0x141caf(0xd4)]=!0x0,this[_0x141caf(0xec)]=_0x58ec12;}async[_0x3b163c(0xd1)](){const _0x14471a=_0x3b163c,_0x3ec272=[];let _0x4dc93c,_0x357d48,_0x14cc73;this[_0x14471a(0xd4)]=!0x1;try{this[_0x14471a(0xdd)]=await this[_0x14471a(0xf8)](),this[_0x14471a(0xb2)](_0x14471a(0xcc),this);const _0x22d966=await this[_0x14471a(0xdd)][_0x14471a(0xc9)]();for await(const _0x5dfcc7 of _0x22d966){if(this[_0x14471a(0xd4)])return;if(_0x14471a(0xb7)==_0x5dfcc7[_0x14471a(0xe8)])return void this[_0x14471a(0xb2)](_0x14471a(0xb7),{'error':new _0xe8da2a(_0x14471a(0xb4),this)});switch(_0x5dfcc7[_0x14471a(0xe8)]){case _0x14471a(0xbd):this[_0x14471a(0xb9)]=_0x5dfcc7[_0x14471a(0xdf)][_0x14471a(0xb9)];break;case _0x14471a(0xda):this[_0x14471a(0xee)]=_0x5dfcc7[_0x14471a(0xdf)][_0x14471a(0xdc)];break;case _0x14471a(0xfc):this[_0x14471a(0xfd)](_0x5dfcc7[_0x14471a(0xdf)][_0x14471a(0xd0)],!0x0);break;case _0x14471a(0xbe):_0x3ec272[_0x14471a(0xe9)](_0x5dfcc7[_0x14471a(0xdf)][_0x14471a(0xbe)]);break;case _0x14471a(0xb0):this[_0x14471a(0xf2)]||(this[_0x14471a(0xf2)]=!0x0,this[_0x14471a(0xb2)](_0x14471a(0xc3),this));break;case _0x14471a(0xe4):this[_0x14471a(0xed)]||(this[_0x14471a(0xed)]=!0x0,this[_0x14471a(0xb2)](_0x14471a(0x100),this));break;case _0x14471a(0xf5):case _0x14471a(0xd9):this[_0x14471a(0xc5)](),this[_0x14471a(0xcf)](),_0x4dc93c=_0x14471a(0xf5)==_0x5dfcc7[_0x14471a(0xe8)]?_0x14471a(0xad):_0x14471a(0xdb),_0x357d48=_0x14471a(0xf5)==_0x5dfcc7[_0x14471a(0xe8)]?_0x5dfcc7[_0x14471a(0xdf)]['id']:void 0x0,this[_0x14471a(0x101)]&&this[_0x14471a(0x101)][_0x14471a(0xb3)]!=_0x4dc93c&&(this[_0x14471a(0x101)][_0x14471a(0xe3)](),this[_0x14471a(0x101)]=void 0x0),this[_0x14471a(0x101)]||(this[_0x14471a(0x101)]=this[_0x14471a(0xba)]({'type':_0x4dc93c,'interactionId':this['id'],'id':_0x357d48}),_0x14471a(0xad)==_0x4dc93c&&(this[_0x14471a(0x101)][_0x14471a(0xe6)]=_0x3ec272[_0x14471a(0xb6)](0x0))),this[_0x14471a(0x101)][_0x14471a(0xd5)](_0x5dfcc7[_0x14471a(0xdf)][_0x14471a(0xcb)]);break;case _0x14471a(0xb5):_0x14cc73=JSON[_0x14471a(0xc0)](_0x5dfcc7[_0x14471a(0xdf)][_0x14471a(0xce)]),this[_0x14471a(0xde)]({'toolName':_0x5dfcc7[_0x14471a(0xdf)][_0x14471a(0xcd)],'data':_0x14cc73[_0x14471a(0xdf)],'attributes':_0x14cc73[_0x14471a(0xea)]});break;case _0x14471a(0xaf):this[_0x14471a(0xef)]({'toolName':_0x5dfcc7[_0x14471a(0xdf)][_0x14471a(0xcd)],'data':_0x5dfcc7[_0x14471a(0xdf)][_0x14471a(0xdf)]});}}}finally{this[_0x14471a(0xd4)]||(this[_0x14471a(0x101)]&&_0x3ec272[_0x14471a(0xf1)]>0x0&&(this[_0x14471a(0x101)][_0x14471a(0xe6)]=_0x3ec272[_0x14471a(0xb6)](0x0)),this[_0x14471a(0xc7)](),this[_0x14471a(0xb2)](_0x14471a(0xd6),this));}}[_0x3b163c(0xf6)](){const _0x410386=_0x3b163c;this[_0x410386(0xd4)]||(this[_0x410386(0xc7)](),this[_0x410386(0xb2)](_0x410386(0xc8),this));}[_0x3b163c(0xd7)](_0x4af7be){const _0x25775d=_0x3b163c;return this[_0x25775d(0xca)][_0x25775d(0xe0)](_0x5f173a=>_0x5f173a['id']===_0x4af7be);}[_0x3b163c(0xc4)](){const _0xb6f4df=_0x3b163c;this[_0xb6f4df(0xd3)]||(this[_0xb6f4df(0xf6)](),this[_0xb6f4df(0xca)][_0xb6f4df(0xf4)](_0x33e312=>_0x33e312[_0xb6f4df(0xc4)]()),this[_0xb6f4df(0xca)]=[],this[_0xb6f4df(0xd3)]=!0x0,this[_0xb6f4df(0xb2)](_0xb6f4df(0xe7),this),this[_0xb6f4df(0xd2)]());}[_0x3b163c(0xba)](_0x2a78c9){const _0x21474a=_0x3b163c,_0x1f5f43=new _0x99ff67({'editor':this[_0x21474a(0xec)],'documentContextContent':this[_0x21474a(0xbf)]()?.[_0x21474a(0xfb)],..._0x2a78c9});return this[_0x21474a(0xca)][_0x21474a(0xe9)](_0x1f5f43),_0x1f5f43[_0x21474a(0xd8)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x21474a(0xb2)](_0x21474a(0xe5),_0x1f5f43),_0x1f5f43;}[_0x3b163c(0xfd)](_0x46eea8,_0x4bed72=!0x1){const _0x383390=_0x3b163c;this[_0x383390(0xb2)](_0x383390(0xfd),_0x46eea8,_0x4bed72);}[_0x3b163c(0xcf)](){const _0x38d77f=_0x3b163c;this[_0x38d77f(0xf2)]&&(this[_0x38d77f(0xf2)]=!0x1,this[_0x38d77f(0xb2)](_0x38d77f(0xe2),this));}[_0x3b163c(0xc5)](){const _0x1a9d78=_0x3b163c;this[_0x1a9d78(0xed)]&&(this[_0x1a9d78(0xed)]=!0x1,this[_0x1a9d78(0xb2)](_0x1a9d78(0xc6),this));}[_0x3b163c(0xde)](_0x4252e2){const _0x33092f=_0x3b163c;this[_0x33092f(0xb2)](_0x33092f(0xbc),{'type':_0x33092f(0xce),'toolName':_0x4252e2[_0x33092f(0xcd)],'data':structuredClone(_0x4252e2[_0x33092f(0xdf)]||{}),'attributes':structuredClone(_0x4252e2[_0x33092f(0xea)]||{})},this);}[_0x3b163c(0xef)](_0xa07846){const _0x22d964=_0x3b163c;this[_0x22d964(0xb2)](_0x22d964(0xbc),{'type':_0x22d964(0xc1),'toolName':_0xa07846[_0x22d964(0xcd)],'data':structuredClone(_0xa07846[_0x22d964(0xdf)])},this);}[_0x3b163c(0xc7)](){const _0x393f43=_0x3b163c;this[_0x393f43(0xd4)]=!0x0,this[_0x393f43(0xdd)]&&this[_0x393f43(0xdd)][_0x393f43(0xc2)][_0x393f43(0xae)](),this[_0x393f43(0x101)]&&this[_0x393f43(0x101)][_0x393f43(0xe3)](),this[_0x393f43(0xdd)]=this[_0x393f43(0x101)]=void 0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x5b288d=_0x4067;(function(_0x1d4b82,_0x14172e){const _0x57f320=_0x4067,_0x14fcf7=_0x1d4b82();while(!![]){try{const _0x483fb4=-parseInt(_0x57f320(0xf3))/0x1+-parseInt(_0x57f320(0xd6))/0x2+parseInt(_0x57f320(0xea))/0x3*(-parseInt(_0x57f320(0xd1))/0x4)+-parseInt(_0x57f320(0xec))/0x5*(parseInt(_0x57f320(0xe6))/0x6)+parseInt(_0x57f320(0xd0))/0x7+-parseInt(_0x57f320(0xe3))/0x8*(parseInt(_0x57f320(0xf5))/0x9)+parseInt(_0x57f320(0xc6))/0xa*(parseInt(_0x57f320(0xf4))/0xb);if(_0x483fb4===_0x14172e)break;else _0x14fcf7['push'](_0x14fcf7['shift']());}catch(_0x4b326f){_0x14fcf7['push'](_0x14fcf7['shift']());}}}(_0x37fd,0x60e17));function _0x4067(_0x4bc023,_0x29c5d3){const _0x37fde2=_0x37fd();return _0x4067=function(_0x406758,_0x2447b0){_0x406758=_0x406758-0xc2;let _0x3b34c8=_0x37fde2[_0x406758];return _0x3b34c8;},_0x4067(_0x4bc023,_0x29c5d3);}import{EmitterMixin as _0xa9054b,logWarning as _0x27c5b9,logError as _0x17f1fc}from'ckeditor5/src/utils.js';import{getTranslation as _0x5112d7}from'../utils/common-translations.js';function _0x37fd(){const _0x1f8378=['getModels','length','1214072JwSNex','_modelList','recommended','24TGJVzC','_filterModels','list','_availableModels','3CsAXKu','_modelsRequest','348200iwywJj','defaultModelId','getAll','_getModelById','ai-chat-default-model-id-unrecognized','displayedModels','_defaultModelId','390540ySiDXV','3451646pNDusM','18oUDitm','isAvailable','auto','has','_locale','agent','40cVtXpQ','getAvailableModels','some','provider','items','_isMatchingFilter','uiLanguage','_config','_retrieveModels','ai-chat-model-id-unrecognized','3051377jfOvXX','603676wKVCeY','ai-models-unable-to-retrieve','getDefault','push','_connector','341390kdMBcm','getModel','filter','startsWith','find','toLocaleLowerCase','AI_MODEL_NAME_AUTO','string','add','name','map'];_0x37fd=function(){return _0x1f8378;};return _0x37fd();}export class AIModels extends _0xa9054b(){[_0x5b288d(0xd5)];[_0x5b288d(0xcd)];[_0x5b288d(0xc4)];[_0x5b288d(0xe4)]=[];[_0x5b288d(0xeb)]=null;constructor({connector:_0x90e892,config:_0x422cef,locale:_0x55f0a7}){const _0x5939b2=_0x5b288d;super(),this[_0x5939b2(0xd5)]=_0x90e892,this[_0x5939b2(0xcd)]=_0x422cef,this[_0x5939b2(0xc4)]=_0x55f0a7;}get[_0x5b288d(0xe9)](){const _0x4f0e47=_0x5b288d;return this[_0x4f0e47(0xcd)]?.[_0x4f0e47(0xf1)];}get[_0x5b288d(0xf2)](){const _0x139c2d=_0x5b288d;return this[_0x139c2d(0xcd)]?.[_0x139c2d(0xed)];}async[_0x5b288d(0xee)](){const _0xf087ff=_0x5b288d;return this[_0xf087ff(0xeb)]||(this[_0xf087ff(0xeb)]=this[_0xf087ff(0xce)]()),this[_0xf087ff(0xeb)];}async[_0x5b288d(0xc7)](){const _0x52f87c=_0x5b288d,_0xc0e87=await this[_0x52f87c(0xee)]();let _0x5415a5;return _0x5415a5=this[_0x52f87c(0xe9)]?this[_0x52f87c(0xe7)](_0xc0e87,this[_0x52f87c(0xe9)]):_0xc0e87[_0x52f87c(0xd8)](_0x201a3a=>_0x201a3a[_0x52f87c(0xe5)]),_0x5415a5;}async[_0x5b288d(0xd7)](_0xda08ce){const _0x2158dd=_0x5b288d,_0x37ca76=await this[_0x2158dd(0xee)]();if(!_0x37ca76[_0x2158dd(0xe2)])return null;if(_0xda08ce){const _0x1a9e0d=this[_0x2158dd(0xef)](_0x37ca76,_0xda08ce);if(_0x1a9e0d)return _0x1a9e0d;_0x27c5b9(_0x2158dd(0xcf),{'modelId':_0xda08ce,'fallBackModelId':this[_0x2158dd(0xf2)]});}return this[_0x2158dd(0xd3)]();}async[_0x5b288d(0xd3)](){const _0x5b9c9e=_0x5b288d,_0x3605ae=await this[_0x5b9c9e(0xc7)]();if(!_0x3605ae[_0x5b9c9e(0xe2)])return null;if(this[_0x5b9c9e(0xf2)]){const _0x5044bb=this[_0x5b9c9e(0xef)](_0x3605ae,this[_0x5b9c9e(0xf2)]);if(_0x5044bb)return _0x5044bb;_0x27c5b9(_0x5b9c9e(0xf0),{'defaultModelId':this[_0x5b9c9e(0xf2)],'fallBackModelId':_0x3605ae[0x0]['id']});}return _0x3605ae[0x0];}async[_0x5b288d(0xf6)](_0x76b1ea){const _0x2e5c63=_0x5b288d;return(await this[_0x2e5c63(0xc7)]())[_0x2e5c63(0xc8)](_0x210856=>_0x210856[_0x2e5c63(0xdf)]===_0x76b1ea[_0x2e5c63(0xdf)]&&_0x210856[_0x2e5c63(0xc9)]===_0x76b1ea[_0x2e5c63(0xc9)]);}async[_0x5b288d(0xce)](){const _0x14e780=_0x5b288d;if(!this[_0x14e780(0xe4)][_0x14e780(0xe2)])try{const _0x3a8d53=this[_0x14e780(0xc4)][_0x14e780(0xcc)]||'en',_0x1751af=this[_0x14e780(0xd5)][_0x14e780(0xe1)](_0x3a8d53),_0x347795=await _0x1751af[_0x14e780(0xe8)]();this[_0x14e780(0xe4)]=_0x347795[_0x14e780(0xca)][_0x14e780(0xe0)](_0x40b475=>Xi(_0x40b475)?{..._0x40b475,'name':_0x5112d7(this[_0x14e780(0xc4)],_0x14e780(0xdc))}:_0x40b475);}catch(_0x2ee8eb){throw _0x17f1fc(_0x14e780(0xd2),{'error':_0x2ee8eb}),_0x2ee8eb;}return[...this[_0x14e780(0xe4)]];}[_0x5b288d(0xe7)](_0x220c34,_0x56c9ed){const _0x1d839d=_0x5b288d;let _0x424f13;if(_0x56c9ed){_0x424f13=[];const _0x3aca56=new Set(),_0x12fccf=_0x1d839d(0xdd)==typeof _0x56c9ed?[_0x56c9ed[_0x1d839d(0xdb)]()]:_0x56c9ed[_0x1d839d(0xe0)](_0x20c7ad=>_0x20c7ad[_0x1d839d(0xdb)]());for(const _0x1d76d8 of _0x12fccf)for(const _0x166f06 of _0x220c34)!_0x3aca56[_0x1d839d(0xc3)](_0x166f06['id'])&&this[_0x1d839d(0xcb)](_0x166f06,_0x1d76d8)&&(_0x424f13[_0x1d839d(0xd4)](_0x166f06),_0x3aca56[_0x1d839d(0xde)](_0x166f06['id']));}else _0x424f13=_0x220c34;return _0x424f13;}[_0x5b288d(0xcb)](_0x5bc993,_0x580822){const _0x3ff00c=_0x5b288d,_0x4fa786=_0x5bc993['id'][_0x3ff00c(0xdb)](),_0x5c4e63=_0x5bc993[_0x3ff00c(0xdf)][_0x3ff00c(0xdb)](),_0x88b139=_0x5bc993[_0x3ff00c(0xc9)][_0x3ff00c(0xdb)]();return _0x4fa786===_0x580822||_0x5c4e63===_0x580822||Xi(_0x5bc993)&&_0x3ff00c(0xc2)===_0x580822||_0x88b139===_0x580822||_0x4fa786[_0x3ff00c(0xd9)](_0x580822);}[_0x5b288d(0xef)](_0x3756bf,_0x4b3062){const _0x343567=_0x5b288d;return _0x3756bf[_0x343567(0xda)](_0x249a77=>Xi(_0x249a77)&&_0x343567(0xc2)===_0x4b3062?_0x249a77:_0x249a77['id']===_0x4b3062)||null;}}function Xi(_0x44cb94){const _0x55edc1=_0x5b288d;return _0x44cb94['id'][_0x55edc1(0xd9)](_0x55edc1(0xc5));}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4d5b1c=_0x2f9d;(function(_0x5901f2,_0x2000ae){const _0x5e4c6a=_0x2f9d,_0x455000=_0x5901f2();while(!![]){try{const _0x523246=-parseInt(_0x5e4c6a(0x1ae))/0x1*(-parseInt(_0x5e4c6a(0x190))/0x2)+-parseInt(_0x5e4c6a(0x1c9))/0x3+-parseInt(_0x5e4c6a(0x18d))/0x4*(-parseInt(_0x5e4c6a(0x1c2))/0x5)+parseInt(_0x5e4c6a(0x1ce))/0x6*(-parseInt(_0x5e4c6a(0x1bc))/0x7)+parseInt(_0x5e4c6a(0x196))/0x8*(-parseInt(_0x5e4c6a(0x1b5))/0x9)+parseInt(_0x5e4c6a(0x1c4))/0xa*(parseInt(_0x5e4c6a(0x19d))/0xb)+-parseInt(_0x5e4c6a(0x184))/0xc*(-parseInt(_0x5e4c6a(0x1bb))/0xd);if(_0x523246===_0x2000ae)break;else _0x455000['push'](_0x455000['shift']());}catch(_0xaf12e3){_0x455000['push'](_0x455000['shift']());}}}(_0x441c,0x9174f));import{CKEditorError as _0x69dba,ObservableMixin as _0x3e332e,uid as _0x41558e}from'ckeditor5/src/utils.js';import{Element as _0x32d893,findAll as _0xdecbc3,getAttribute as _0x341a39,getParents as _0x2cc929,Document as _0x56f944,parse as _0x37a537,Text as _0x19d853}from'../utils/htmlparser.js';import{AIResponseParser as _0x1aaa8f}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x45faf0}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x552929}from'../utils/getsuggestionpartsfromreply.js';function _0x441c(){const _0x3f75b2=['updateChangeGroups','withoutDiff','map','changes','modified','1518BgprCd','setChangeGroupState','newNodeIds','editor','every','AI_SUGGESTION_CONTENT_PART_REMOVED','convertMarkdownToHTML','set','change:content','context','filter','includes','_getCachedContentParts','removedNodeIds','documentContextContent','aiResponseParser','parseAndNormalizeHTML','838YXkTYF','isDone','find','previousSibling','modifiedNodeIds','withDiff','locale','9mjvEEc','indexOf','new','done','splice','destroy','525031lRfUvV','7eDjLks','push','merge','node','replyContentUpdated','appendContent','10jCIYEB','fire','79510KNarQl','ai-get-editor-from-context-no-editor','data-id','changeGroups','interactionId','2283168CNxjLD','ai-reply-get-content-parts-group-not-found','aiResponseApplier','_setCachedContentParts','cloneNode','2873634kGwHgK','forEach','modification','removed','sources','content','length','areActionsDisabled','parsedMergedContent','276QHatoO','state','getContentParts','type','parsedContent','onContentChange','index','unshift','stopListening','1688268OFIvPV','nextSibling','color:\x20#808080;\x20font-style:\x20italic','190CIndmF','cachedSuggestionContentParts','span','replyChangeGroupStateUpdated','_getDifferentChangeGroups','data-unstable','8912776QnedeQ','pending'];_0x441c=function(){return _0x3f75b2;};return _0x441c();}function _0x2f9d(_0x568d67,_0x41c642){const _0x441cc9=_0x441c();return _0x2f9d=function(_0x2f9de4,_0x1063db){_0x2f9de4=_0x2f9de4-0x17d;let _0x4fa8dc=_0x441cc9[_0x2f9de4];return _0x4fa8dc;},_0x2f9d(_0x568d67,_0x41c642);}import{getTranslation as _0x93bbad}from'../utils/common-translations.js';import{cloneDeep as _0xdda41}from'es-toolkit';export class AIReply extends _0x3e332e(){['id'];[_0x4d5b1c(0x1c8)];[_0x4d5b1c(0x187)];[_0x4d5b1c(0x17f)]=[];[_0x4d5b1c(0x188)]=new _0x56f944([]);[_0x4d5b1c(0x183)]=new _0x56f944([]);[_0x4d5b1c(0x1c7)]=[];[_0x4d5b1c(0x182)]=!0x1;[_0x4d5b1c(0x1ab)];[_0x4d5b1c(0x1ac)];[_0x4d5b1c(0x1cb)];[_0x4d5b1c(0x1a0)];[_0x4d5b1c(0x191)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x2015e4,content:_0x1b4ce9='',isDone:_0x3d8e8f=!0x1,interactionId:_0x1bb853,areActionsDisabled:_0x3459c6,documentContextContent:_0x533453,editor:_0x5e9f07,id:_0x4d7b15}){const _0x30e3ca=_0x4d5b1c;super(),this['id']=_0x4d7b15||_0x41558e(),this[_0x30e3ca(0x1c8)]=_0x1bb853,this[_0x30e3ca(0x187)]=_0x2015e4,this[_0x30e3ca(0x182)]=!!_0x3459c6,this[_0x30e3ca(0x1a0)]=_0x5e9f07,this[_0x30e3ca(0x1ac)]=new _0x1aaa8f(),this[_0x30e3ca(0x1cb)]=new _0x45faf0(),this[_0x30e3ca(0x1ab)]=_0x37a537(_0x533453||''),this[_0x30e3ca(0x1a4)](_0x30e3ca(0x1af),_0x3d8e8f),this['on'](_0x30e3ca(0x1a5),()=>{const _0x1d2b44=_0x30e3ca;this[_0x1d2b44(0x189)]();}),this[_0x30e3ca(0x1a4)](_0x30e3ca(0x180),_0x1b4ce9);}[_0x4d5b1c(0x1c1)](_0x1b0245){const _0x4d9e43=_0x4d5b1c;this[_0x4d9e43(0x1a4)](_0x4d9e43(0x180),this[_0x4d9e43(0x180)]+_0x1b0245);}[_0x4d5b1c(0x1b8)](){const _0x15e493=_0x4d5b1c;this[_0x15e493(0x1af)]||(this[_0x15e493(0x1a4)](_0x15e493(0x1af),!0x0),this[_0x15e493(0x189)]());}[_0x4d5b1c(0x1ba)](){const _0x4fc714=_0x4d5b1c;this[_0x4fc714(0x18c)]();}[_0x4d5b1c(0x19e)](_0xbf97b0,_0x2373f8){const _0xd337b4=_0x4d5b1c;this[_0xd337b4(0x1c7)][_0xbf97b0][_0xd337b4(0x185)]=_0x2373f8,this[_0xd337b4(0x1c3)](_0xd337b4(0x193),{'reply':this,'index':_0xbf97b0,'state':_0x2373f8});}[_0x4d5b1c(0x186)]({showDiff:_0x58f9c0,groupIndex:_0x5c8c45}){const _0x4636fd=_0x4d5b1c;if(!this[_0x4636fd(0x1a0)])throw new _0x69dba(_0x4636fd(0x1c5),null,{'aiReply':this});const _0x52e3e3=this[_0x4636fd(0x1a9)](_0x58f9c0,_0x5c8c45);if(_0x52e3e3)return _0x52e3e3;let _0x165322=[];if(void 0x0===_0x5c8c45)_0x165322=this[_0x4636fd(0x1c7)];else{const _0x40d3cc=this[_0x4636fd(0x1c7)][_0x4636fd(0x1b0)](({index:_0x2e033e})=>_0x2e033e===_0x5c8c45);if(!_0x40d3cc)throw new _0x69dba(_0x4636fd(0x1ca),null,{'aiReply':this,'groupIndex':_0x5c8c45});_0x165322=[_0x40d3cc];}const _0x1ac291=_0x552929({'editor':this[_0x4636fd(0x1a0)],'showDiff':_0x58f9c0,'changeGroups':_0x165322,'documentContextContent':this[_0x4636fd(0x1ab)]});return this[_0x4636fd(0x1cc)](_0x58f9c0,_0x1ac291),_0x1ac291;}[_0x4d5b1c(0x1a9)](_0x3bb2a8,_0x3a44ce){const _0x5ef897=_0x4d5b1c,_0x3b5663=_0x3bb2a8?_0x5ef897(0x1b3):_0x5ef897(0x199);if(!this[_0x5ef897(0x191)][_0x3b5663][_0x5ef897(0x181)])return null;const _0x2d942e=this[_0x5ef897(0x191)][_0x3b5663];if(void 0x0===_0x3a44ce)return _0x2d942e[_0x5ef897(0x181)]>0x0&&_0x2d942e[_0x5ef897(0x181)]!==this[_0x5ef897(0x1c7)][_0x5ef897(0x181)]?(this[_0x5ef897(0x1cc)](_0x3bb2a8,null),null):_0xdda41(_0x2d942e);{const _0x385cf2=_0x2d942e[_0x5ef897(0x1b0)](({index:_0x47024c})=>_0x47024c===_0x3a44ce);if(_0x385cf2)return[_0xdda41(_0x385cf2)];}return null;}[_0x4d5b1c(0x1cc)](_0x31488d,_0x5139b1){const _0x1d9641=_0x4d5b1c,_0x2fe619=_0x31488d?_0x1d9641(0x1b3):_0x1d9641(0x199);_0x5139b1?_0x5139b1[_0x1d9641(0x1cf)](_0xdb09e6=>{const _0x4ad6df=_0x1d9641,_0xd950d1=this[_0x4ad6df(0x191)][_0x2fe619],_0x20bfbb=_0xd950d1[_0x4ad6df(0x1b0)](({index:_0x4bb910})=>_0x4bb910===_0xdb09e6[_0x4ad6df(0x18a)]);if(_0x20bfbb){const _0x1e4cec=_0xd950d1[_0x4ad6df(0x1b6)](_0x20bfbb);_0xd950d1[_0x4ad6df(0x1b9)](_0x1e4cec,0x1,_0xdb09e6);}else _0xd950d1[_0x4ad6df(0x1bd)](_0xdb09e6);}):this[_0x1d9641(0x191)][_0x2fe619][_0x1d9641(0x181)]=0x0;}[_0x4d5b1c(0x189)](){const _0x416022=_0x4d5b1c;if(_0x416022(0x17d)===this[_0x416022(0x187)]){this[_0x416022(0x188)]=this[_0x416022(0x1ac)][_0x416022(0x1ad)](this[_0x416022(0x180)]);const _0x557707=this[_0x416022(0x1c7)];this[_0x416022(0x198)]();const _0x2f26a4=this[_0x416022(0x194)](_0x557707,this[_0x416022(0x1c7)]);(_0x2f26a4[_0x416022(0x181)]||this[_0x416022(0x1af)])&&(this[_0x416022(0x1c3)](_0x416022(0x1c0),this,_0x2f26a4),this[_0x416022(0x191)][_0x416022(0x1b3)][_0x416022(0x181)]=this[_0x416022(0x191)][_0x416022(0x199)][_0x416022(0x181)]=0x0);}else this[_0x416022(0x188)]=this[_0x416022(0x1ac)][_0x416022(0x1a3)](this[_0x416022(0x180)]),this[_0x416022(0x1c3)](_0x416022(0x1c0),this);}[_0x4d5b1c(0x194)](_0x32eaed,_0x275ca8){const _0xbc8508=_0x4d5b1c,_0x567efc=[];for(const _0x3ea424 of _0x275ca8){const _0x327c80=_0x32eaed[_0x3ea424[_0xbc8508(0x18a)]];_0x327c80?_0x327c80[_0xbc8508(0x19b)][_0xbc8508(0x181)]!==_0x3ea424[_0xbc8508(0x19b)][_0xbc8508(0x181)]?_0x567efc[_0xbc8508(0x1bd)](_0x3ea424):_0x327c80[_0xbc8508(0x19b)][_0xbc8508(0x1cf)]((_0x44d310,_0x1444cd)=>{const _0x21ecc6=_0xbc8508,_0x34470a=_0x3ea424[_0x21ecc6(0x19b)][_0x1444cd];_0x44d310['id']!==_0x34470a['id']&&_0x567efc[_0x21ecc6(0x1bd)](_0x3ea424);}):_0x567efc[_0xbc8508(0x1bd)](_0x3ea424);}return _0x567efc;}[_0x4d5b1c(0x198)](){const _0x41ad3f=_0x4d5b1c,_0x4aee95=new _0x32d893('p',{},[new _0x32d893(_0x41ad3f(0x192),{'style':_0x41ad3f(0x18f)},[new _0x19d853(_0x93bbad(this[_0x41ad3f(0x1a0)][_0x41ad3f(0x1b4)],_0x41ad3f(0x1a2)))])]),_0x49cdac=this[_0x41ad3f(0x1cb)][_0x41ad3f(0x1be)](this[_0x41ad3f(0x188)],this[_0x41ad3f(0x1ab)][_0x41ad3f(0x1cd)](!0x0),{'markUnstableElements':!this[_0x41ad3f(0x1af)],'replaceRemovedWith':_0x4aee95,'cutAfterLastChange':!this[_0x41ad3f(0x1af)]});if(!_0x49cdac[_0x41ad3f(0x1b2)][_0x41ad3f(0x181)]&&!this[_0x41ad3f(0x1af)])return;this[_0x41ad3f(0x183)]=_0x49cdac[_0x41ad3f(0x188)];let _0x496bad=[];if(_0xdecbc3(_0x3651ea=>{const _0x2f4ebb=_0x41ad3f,_0x2a4d01=_0x341a39(_0x3651ea,_0x2f4ebb(0x1c6));if(!_0x2a4d01||!_0x349663(_0x2a4d01))return!0x1;const _0x29e34b=[_0x3651ea,..._0x2cc929(_0x3651ea)]['at'](-0x2);if(_0x3651ea!=_0x29e34b){const _0x338213=_0x341a39(_0x29e34b,_0x2f4ebb(0x1c6));_0x349663(_0x338213)||(_0x496bad[_0x2f4ebb(0x1bd)]({'node':_0x29e34b,'id':_0x338213,'type':_0x2f4ebb(0x19c)}),_0x49cdac[_0x2f4ebb(0x1b2)][_0x2f4ebb(0x1bd)](_0x338213));}else _0x49cdac[_0x2f4ebb(0x1b2)][_0x2f4ebb(0x1a8)](_0x2a4d01)?_0x496bad[_0x2f4ebb(0x1bd)]({'node':_0x3651ea,'type':_0x2f4ebb(0x19c),'id':_0x2a4d01}):_0x49cdac[_0x2f4ebb(0x19f)][_0x2f4ebb(0x1a8)](_0x2a4d01)?_0x496bad[_0x2f4ebb(0x1bd)]({'node':_0x3651ea,'type':_0x2f4ebb(0x1b7),'id':_0x2a4d01,'anchorId':_0x341a39(_0x3651ea[_0x2f4ebb(0x1b1)],_0x2f4ebb(0x1c6))}):_0x496bad[_0x2f4ebb(0x1bd)]({'node':_0x3651ea,'type':_0x2f4ebb(0x17e),'id':_0x2a4d01});return!0x0;},this[_0x41ad3f(0x183)]),_0x496bad=_0x496bad[_0x41ad3f(0x1a7)](({node:_0x43d8f4})=>[..._0x2cc929(_0x43d8f4),_0x43d8f4][_0x41ad3f(0x1a1)](_0x5456c6=>!_0x341a39(_0x5456c6,_0x41ad3f(0x195)))),0x0==_0x496bad[_0x41ad3f(0x181)])return;const _0x14f94b=[[_0x496bad[0x0]]];for(let _0x53d9e8=0x1;_0x53d9e8<_0x496bad[_0x41ad3f(0x181)];_0x53d9e8++){const _0x3c5234=_0x14f94b[_0x14f94b[_0x41ad3f(0x181)]-0x1],_0x3de1a7=_0x3c5234[_0x3c5234[_0x41ad3f(0x181)]-0x1];_0x496bad[_0x53d9e8][_0x41ad3f(0x1bf)][_0x41ad3f(0x1b1)]==_0x3de1a7[_0x41ad3f(0x1bf)]&&_0x41ad3f(0x19c)!=_0x496bad[_0x53d9e8][_0x41ad3f(0x187)]&&_0x41ad3f(0x19c)!=_0x3de1a7[_0x41ad3f(0x187)]?_0x3c5234[_0x41ad3f(0x1bd)](_0x496bad[_0x53d9e8]):_0x14f94b[_0x41ad3f(0x1bd)]([_0x496bad[_0x53d9e8]]);}for(const _0x122b17 of _0x14f94b){const _0x429bad=_0x122b17[0x0],_0x1e3da7=_0x122b17[_0x122b17[_0x41ad3f(0x181)]-0x1],_0x15cdea=_0x4d9479(_0x429bad[_0x41ad3f(0x1bf)][_0x41ad3f(0x1b1)]);_0x15cdea&&_0x122b17[_0x41ad3f(0x18b)](_0x15cdea);const _0xd8a5ba=_0x4d9479(_0x1e3da7[_0x41ad3f(0x1bf)][_0x41ad3f(0x18e)]);_0xd8a5ba&&_0x122b17[_0x41ad3f(0x1bd)](_0xd8a5ba);}function _0x349663(_0x391ee9){const _0x240473=_0x41ad3f;return _0x49cdac[_0x240473(0x1b2)][_0x240473(0x1a8)](_0x391ee9)||_0x49cdac[_0x240473(0x19f)][_0x240473(0x1a8)](_0x391ee9)||_0x49cdac[_0x240473(0x1aa)][_0x240473(0x1a8)](_0x391ee9);}function _0x4d9479(_0x24649f){const _0x15c1d1=_0x41ad3f;if(_0x24649f&&_0x341a39(_0x24649f,_0x15c1d1(0x1c6))&&!_0x341a39(_0x24649f,_0x15c1d1(0x195))){const _0x1e5b01=_0x341a39(_0x24649f,_0x15c1d1(0x1c6));if(!_0x349663(_0x1e5b01))return{'node':_0x24649f,'type':_0x15c1d1(0x1a6),'id':_0x1e5b01};}return null;}this[_0x41ad3f(0x1c7)]=_0x14f94b[_0x41ad3f(0x19a)]((_0x49ec4e,_0x8f68dc)=>({'changes':_0x49ec4e,'state':_0x41ad3f(0x197),'index':_0x8f68dc}));}}
|
|
23
|
+
function _0x9d56(){const _0x33ac6c=['state','17809ZFoOwe','parsedContent','nextSibling','stopListening','modifiedNodeIds','every','setChangeGroupState','removed','5702268DwsTbD','modified','type','content','modification','changeGroups','withDiff','done','_getCachedContentParts','change:content','map','5890OCCKtF','filter','find','new','ai-get-editor-from-context-no-editor','replyChangeGroupStateUpdated','201658GowTFN','getContentParts','sources','editor','data-unstable','isDone','replyContentUpdated','newNodeIds','parsedMergedContent','documentContextContent','appendContent','changes','areActionsDisabled','includes','locale','withoutDiff','ai-reply-get-content-parts-group-not-found','unshift','onContentChange','span','fire','152ahEFlE','cachedSuggestionContentParts','index','736094QsXYEp','318afTQzw','merge','interactionId','convertMarkdownToHTML','_setCachedContentParts','_getDifferentChangeGroups','7790590kksBYx','color:\x20#808080;\x20font-style:\x20italic','node','parseAndNormalizeHTML','splice','aiResponseParser','aiResponseApplier','535662XRHPbi','14371pVGkfI','context','previousSibling','set','3ldIMrR','AI_SUGGESTION_CONTENT_PART_REMOVED','cloneNode','updateChangeGroups','push','length','forEach','data-id','pending','removedNodeIds','indexOf','destroy'];_0x9d56=function(){return _0x33ac6c;};return _0x9d56();}const _0x3b346d=_0x2d63;(function(_0x3c10fe,_0x4f293e){const _0x2fe7e7=_0x2d63,_0x1e98d2=_0x3c10fe();while(!![]){try{const _0x8c8216=parseInt(_0x2fe7e7(0xa8))/0x1+-parseInt(_0x2fe7e7(0x90))/0x2*(parseInt(_0x2fe7e7(0x6a))/0x3)+parseInt(_0x2fe7e7(0x7f))/0x4+-parseInt(_0x2fe7e7(0xaf))/0x5+-parseInt(_0x2fe7e7(0xa9))/0x6*(-parseInt(_0x2fe7e7(0xb7))/0x7)+-parseInt(_0x2fe7e7(0xa5))/0x8*(-parseInt(_0x2fe7e7(0xb6))/0x9)+parseInt(_0x2fe7e7(0x8a))/0xa*(-parseInt(_0x2fe7e7(0x77))/0xb);if(_0x8c8216===_0x4f293e)break;else _0x1e98d2['push'](_0x1e98d2['shift']());}catch(_0xc918c3){_0x1e98d2['push'](_0x1e98d2['shift']());}}}(_0x9d56,0xc0926));import{CKEditorError as _0x2bdca8,ObservableMixin as _0x3c52d2,uid as _0x509d19}from'ckeditor5/src/utils.js';import{Element as _0x3fc04d,findAll as _0x5705d2,getAttribute as _0x29d93b,getParents as _0x2096bd,Document as _0x56695b,parse as _0x4d28b1,Text as _0x45154a}from'../utils/htmlparser.js';import{AIResponseParser as _0x1e1f6b}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0xc4be5a}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x56ca6c}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x2c585}from'../utils/common-translations.js';import{cloneDeep as _0x44146c}from'es-toolkit';function _0x2d63(_0x27af23,_0x5d8658){const _0x9d56f=_0x9d56();return _0x2d63=function(_0x2d6307,_0x5ca6d0){_0x2d6307=_0x2d6307-0x68;let _0x2fc746=_0x9d56f[_0x2d6307];return _0x2fc746;},_0x2d63(_0x27af23,_0x5d8658);}export class AIReply extends _0x3c52d2(){['id'];[_0x3b346d(0xab)];[_0x3b346d(0x81)];[_0x3b346d(0x92)]=[];[_0x3b346d(0x78)]=new _0x56695b([]);[_0x3b346d(0x98)]=new _0x56695b([]);[_0x3b346d(0x84)]=[];[_0x3b346d(0x9c)]=!0x1;[_0x3b346d(0x99)];[_0x3b346d(0xb4)];[_0x3b346d(0xb5)];[_0x3b346d(0x93)];[_0x3b346d(0xa6)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x5ae6b8,content:_0x2804dc='',isDone:_0x1212b4=!0x1,interactionId:_0x7cb4d0,areActionsDisabled:_0x2343de,documentContextContent:_0x3990b9,editor:_0x4afa3b,id:_0x43b38c}){const _0x316b8b=_0x3b346d;super(),this['id']=_0x43b38c||_0x509d19(),this[_0x316b8b(0xab)]=_0x7cb4d0,this[_0x316b8b(0x81)]=_0x5ae6b8,this[_0x316b8b(0x9c)]=!!_0x2343de,this[_0x316b8b(0x93)]=_0x4afa3b,this[_0x316b8b(0xb4)]=new _0x1e1f6b(),this[_0x316b8b(0xb5)]=new _0xc4be5a(),this[_0x316b8b(0x99)]=_0x4d28b1(_0x3990b9||''),this[_0x316b8b(0x69)](_0x316b8b(0x95),_0x1212b4),this['on'](_0x316b8b(0x88),()=>{const _0x3204a9=_0x316b8b;this[_0x3204a9(0xa2)]();}),this[_0x316b8b(0x69)](_0x316b8b(0x82),_0x2804dc);}[_0x3b346d(0x9a)](_0x3b5c68){const _0x1d5393=_0x3b346d;this[_0x1d5393(0x69)](_0x1d5393(0x82),this[_0x1d5393(0x82)]+_0x3b5c68);}[_0x3b346d(0x86)](){const _0x570bb9=_0x3b346d;this[_0x570bb9(0x95)]||(this[_0x570bb9(0x69)](_0x570bb9(0x95),!0x0),this[_0x570bb9(0xa2)]());}[_0x3b346d(0x75)](){const _0x40fbb5=_0x3b346d;this[_0x40fbb5(0x7a)]();}[_0x3b346d(0x7d)](_0x276901,_0x1cd232){const _0x3631c9=_0x3b346d;this[_0x3631c9(0x84)][_0x276901][_0x3631c9(0x76)]=_0x1cd232,this[_0x3631c9(0xa4)](_0x3631c9(0x8f),{'reply':this,'index':_0x276901,'state':_0x1cd232});}[_0x3b346d(0x91)]({showDiff:_0xe75e0b,groupIndex:_0x5b6066}){const _0x2d30bf=_0x3b346d;if(!this[_0x2d30bf(0x93)])throw new _0x2bdca8(_0x2d30bf(0x8e),null,{'aiReply':this});const _0x52f3eb=this[_0x2d30bf(0x87)](_0xe75e0b,_0x5b6066);if(_0x52f3eb)return _0x52f3eb;let _0x11b95f=[];if(void 0x0===_0x5b6066)_0x11b95f=this[_0x2d30bf(0x84)];else{const _0x2607b2=this[_0x2d30bf(0x84)][_0x2d30bf(0x8c)](({index:_0x21a1c5})=>_0x21a1c5===_0x5b6066);if(!_0x2607b2)throw new _0x2bdca8(_0x2d30bf(0xa0),null,{'aiReply':this,'groupIndex':_0x5b6066});_0x11b95f=[_0x2607b2];}const _0x551b41=_0x56ca6c({'editor':this[_0x2d30bf(0x93)],'showDiff':_0xe75e0b,'changeGroups':_0x11b95f,'documentContextContent':this[_0x2d30bf(0x99)]});return this[_0x2d30bf(0xad)](_0xe75e0b,_0x551b41),_0x551b41;}[_0x3b346d(0x87)](_0x587e45,_0x568523){const _0xf2806e=_0x3b346d,_0x411ba3=_0x587e45?_0xf2806e(0x85):_0xf2806e(0x9f);if(!this[_0xf2806e(0xa6)][_0x411ba3][_0xf2806e(0x6f)])return null;const _0xbe0ea9=this[_0xf2806e(0xa6)][_0x411ba3];if(void 0x0===_0x568523)return _0xbe0ea9[_0xf2806e(0x6f)]>0x0&&_0xbe0ea9[_0xf2806e(0x6f)]!==this[_0xf2806e(0x84)][_0xf2806e(0x6f)]?(this[_0xf2806e(0xad)](_0x587e45,null),null):_0x44146c(_0xbe0ea9);{const _0x467a32=_0xbe0ea9[_0xf2806e(0x8c)](({index:_0x1eb91e})=>_0x1eb91e===_0x568523);if(_0x467a32)return[_0x44146c(_0x467a32)];}return null;}[_0x3b346d(0xad)](_0x21f278,_0x567c2f){const _0x4ce6a8=_0x3b346d,_0x475da7=_0x21f278?_0x4ce6a8(0x85):_0x4ce6a8(0x9f);_0x567c2f?_0x567c2f[_0x4ce6a8(0x70)](_0x4043ba=>{const _0x44c6bc=_0x4ce6a8,_0x145cc9=this[_0x44c6bc(0xa6)][_0x475da7],_0x5d7aff=_0x145cc9[_0x44c6bc(0x8c)](({index:_0x5a23b7})=>_0x5a23b7===_0x4043ba[_0x44c6bc(0xa7)]);if(_0x5d7aff){const _0x30e1c8=_0x145cc9[_0x44c6bc(0x74)](_0x5d7aff);_0x145cc9[_0x44c6bc(0xb3)](_0x30e1c8,0x1,_0x4043ba);}else _0x145cc9[_0x44c6bc(0x6e)](_0x4043ba);}):this[_0x4ce6a8(0xa6)][_0x475da7][_0x4ce6a8(0x6f)]=0x0;}[_0x3b346d(0xa2)](){const _0x3a593e=_0x3b346d;if(_0x3a593e(0x83)===this[_0x3a593e(0x81)]){this[_0x3a593e(0x78)]=this[_0x3a593e(0xb4)][_0x3a593e(0xb2)](this[_0x3a593e(0x82)]);const _0x356104=this[_0x3a593e(0x84)];this[_0x3a593e(0x6d)]();const _0x4196c8=this[_0x3a593e(0xae)](_0x356104,this[_0x3a593e(0x84)]);(_0x4196c8[_0x3a593e(0x6f)]||this[_0x3a593e(0x95)])&&(this[_0x3a593e(0xa4)](_0x3a593e(0x96),this,_0x4196c8),this[_0x3a593e(0xa6)][_0x3a593e(0x85)][_0x3a593e(0x6f)]=this[_0x3a593e(0xa6)][_0x3a593e(0x9f)][_0x3a593e(0x6f)]=0x0);}else this[_0x3a593e(0x78)]=this[_0x3a593e(0xb4)][_0x3a593e(0xac)](this[_0x3a593e(0x82)]),this[_0x3a593e(0xa4)](_0x3a593e(0x96),this);}[_0x3b346d(0xae)](_0x23c4b0,_0x513f6b){const _0x5e3949=_0x3b346d,_0x30d515=[];for(const _0x357de5 of _0x513f6b){const _0x21e921=_0x23c4b0[_0x357de5[_0x5e3949(0xa7)]];_0x21e921?_0x21e921[_0x5e3949(0x9b)][_0x5e3949(0x6f)]!==_0x357de5[_0x5e3949(0x9b)][_0x5e3949(0x6f)]?_0x30d515[_0x5e3949(0x6e)](_0x357de5):_0x21e921[_0x5e3949(0x9b)][_0x5e3949(0x70)]((_0x3c59b5,_0x5b8451)=>{const _0x4ceae0=_0x5e3949,_0xd8d050=_0x357de5[_0x4ceae0(0x9b)][_0x5b8451];_0x3c59b5['id']!==_0xd8d050['id']&&_0x30d515[_0x4ceae0(0x6e)](_0x357de5);}):_0x30d515[_0x5e3949(0x6e)](_0x357de5);}return _0x30d515;}[_0x3b346d(0x6d)](){const _0x5cdaa5=_0x3b346d,_0x454088=new _0x3fc04d('p',{},[new _0x3fc04d(_0x5cdaa5(0xa3),{'style':_0x5cdaa5(0xb0)},[new _0x45154a(_0x2c585(this[_0x5cdaa5(0x93)][_0x5cdaa5(0x9e)],_0x5cdaa5(0x6b)))])]),_0x2c61b5=this[_0x5cdaa5(0xb5)][_0x5cdaa5(0xaa)](this[_0x5cdaa5(0x78)],this[_0x5cdaa5(0x99)][_0x5cdaa5(0x6c)](!0x0),{'markUnstableElements':!this[_0x5cdaa5(0x95)],'replaceRemovedWith':_0x454088,'cutAfterLastChange':!this[_0x5cdaa5(0x95)]});if(!_0x2c61b5[_0x5cdaa5(0x7b)][_0x5cdaa5(0x6f)]&&!this[_0x5cdaa5(0x95)])return;this[_0x5cdaa5(0x98)]=_0x2c61b5[_0x5cdaa5(0x78)];let _0x43b9a1=[];if(_0x5705d2(_0x58938d=>{const _0x48253d=_0x5cdaa5,_0x45abad=_0x29d93b(_0x58938d,_0x48253d(0x71));if(!_0x45abad||!_0x1a1f92(_0x45abad))return!0x1;const _0x9680fc=[_0x58938d,..._0x2096bd(_0x58938d)]['at'](-0x2);if(_0x58938d!=_0x9680fc){const _0x5ebdef=_0x29d93b(_0x9680fc,_0x48253d(0x71));_0x1a1f92(_0x5ebdef)||(_0x43b9a1[_0x48253d(0x6e)]({'node':_0x9680fc,'id':_0x5ebdef,'type':_0x48253d(0x80)}),_0x2c61b5[_0x48253d(0x7b)][_0x48253d(0x6e)](_0x5ebdef));}else _0x2c61b5[_0x48253d(0x7b)][_0x48253d(0x9d)](_0x45abad)?_0x43b9a1[_0x48253d(0x6e)]({'node':_0x58938d,'type':_0x48253d(0x80),'id':_0x45abad}):_0x2c61b5[_0x48253d(0x97)][_0x48253d(0x9d)](_0x45abad)?_0x43b9a1[_0x48253d(0x6e)]({'node':_0x58938d,'type':_0x48253d(0x8d),'id':_0x45abad,'anchorId':_0x29d93b(_0x58938d[_0x48253d(0x68)],_0x48253d(0x71))}):_0x43b9a1[_0x48253d(0x6e)]({'node':_0x58938d,'type':_0x48253d(0x7e),'id':_0x45abad});return!0x0;},this[_0x5cdaa5(0x98)]),_0x43b9a1=_0x43b9a1[_0x5cdaa5(0x8b)](({node:_0xdebb0b})=>[..._0x2096bd(_0xdebb0b),_0xdebb0b][_0x5cdaa5(0x7c)](_0x1442e8=>!_0x29d93b(_0x1442e8,_0x5cdaa5(0x94)))),0x0==_0x43b9a1[_0x5cdaa5(0x6f)])return;const _0x31d011=[[_0x43b9a1[0x0]]];for(let _0x3ead73=0x1;_0x3ead73<_0x43b9a1[_0x5cdaa5(0x6f)];_0x3ead73++){const _0x3eaab6=_0x31d011[_0x31d011[_0x5cdaa5(0x6f)]-0x1],_0x350da4=_0x3eaab6[_0x3eaab6[_0x5cdaa5(0x6f)]-0x1];_0x43b9a1[_0x3ead73][_0x5cdaa5(0xb1)][_0x5cdaa5(0x68)]==_0x350da4[_0x5cdaa5(0xb1)]&&_0x5cdaa5(0x80)!=_0x43b9a1[_0x3ead73][_0x5cdaa5(0x81)]&&_0x5cdaa5(0x80)!=_0x350da4[_0x5cdaa5(0x81)]?_0x3eaab6[_0x5cdaa5(0x6e)](_0x43b9a1[_0x3ead73]):_0x31d011[_0x5cdaa5(0x6e)]([_0x43b9a1[_0x3ead73]]);}for(const _0x128760 of _0x31d011){const _0x56b1ae=_0x128760[0x0],_0x3d4092=_0x128760[_0x128760[_0x5cdaa5(0x6f)]-0x1],_0x432692=_0x1d3194(_0x56b1ae[_0x5cdaa5(0xb1)][_0x5cdaa5(0x68)]);_0x432692&&_0x128760[_0x5cdaa5(0xa1)](_0x432692);const _0x46643a=_0x1d3194(_0x3d4092[_0x5cdaa5(0xb1)][_0x5cdaa5(0x79)]);_0x46643a&&_0x128760[_0x5cdaa5(0x6e)](_0x46643a);}function _0x1a1f92(_0x1d4464){const _0x40ce04=_0x5cdaa5;return _0x2c61b5[_0x40ce04(0x7b)][_0x40ce04(0x9d)](_0x1d4464)||_0x2c61b5[_0x40ce04(0x97)][_0x40ce04(0x9d)](_0x1d4464)||_0x2c61b5[_0x40ce04(0x73)][_0x40ce04(0x9d)](_0x1d4464);}function _0x1d3194(_0x3e81f7){const _0x4af681=_0x5cdaa5;if(_0x3e81f7&&_0x29d93b(_0x3e81f7,_0x4af681(0x71))&&!_0x29d93b(_0x3e81f7,_0x4af681(0x94))){const _0x393f23=_0x29d93b(_0x3e81f7,_0x4af681(0x71));if(!_0x1a1f92(_0x393f23))return{'node':_0x3e81f7,'type':_0x4af681(0xb8),'id':_0x393f23};}return null;}this[_0x5cdaa5(0x84)]=_0x31d011[_0x5cdaa5(0x89)]((_0xc212c3,_0x17c865)=>({'changes':_0xc212c3,'state':_0x5cdaa5(0x72),'index':_0x17c865}));}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
24
|
-
_0x7fc3ff(){[_0x420e15(0x198)];[_0x420e15(0x18b)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x420e15(0x1a1)]=new Set();constructor(_0x325520){const _0x4ecba1=_0x420e15;super(),this[_0x4ecba1(0x198)]=_0x325520||_0x418eeb;}[_0x420e15(0x19e)](_0xd01d91,_0x1ac0a4,_0x145f66){const _0x4cbd64=_0x420e15,_0x54d2e0=_0x1d3472(_0xd01d91);if(0x0===_0x1ac0a4[_0x4cbd64(0x1bd)][_0x4cbd64(0x1bb)]){const _0x52eb45=[];return _0x223374(_0x4cbd64(0x1c3),_0x4cbd64(0x1bf),_0x54d2e0)[_0x4cbd64(0x191)](_0x64a831=>{const _0x3505d5=_0x4cbd64,_0x253e01=this[_0x3505d5(0x198)]();_0x16b2d5(_0x64a831,_0x3505d5(0x1c3),_0x253e01),_0x52eb45[_0x3505d5(0x1ad)](_0x253e01);}),this[_0x4cbd64(0x1c8)](_0x54d2e0),{'parsedContent':_0x54d2e0,'newNodeIds':_0x52eb45,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x145f66&&_0x145f66[_0x4cbd64(0x1a5)]&&this[_0x4cbd64(0x1c5)](_0x54d2e0),this[_0x4cbd64(0x18b)][_0x4cbd64(0x190)]=[],this[_0x4cbd64(0x18b)][_0x4cbd64(0x1cd)]=[],this[_0x4cbd64(0x18b)][_0x4cbd64(0x19d)]=[],this[_0x4cbd64(0x18b)][_0x4cbd64(0x1b6)]=[],this[_0x4cbd64(0x18b)][_0x4cbd64(0x188)]=null,this[_0x4cbd64(0x1a1)]=new Set(_0x223374(_0x4cbd64(0x1c3),null,_0x1ac0a4)[_0x4cbd64(0x1c0)](_0x168b35=>_0x57e206(_0x168b35,_0x4cbd64(0x1c3)))[_0x4cbd64(0x1cc)](_0x14c88b=>!!_0x14c88b));let _0x29c0f5=-0x1,_0x469104=!0x1;const _0x360e20=_0x54d2e0[_0x4cbd64(0x1bd)],_0xe402af=Array[_0x4cbd64(0x1aa)](_0x360e20)[_0x4cbd64(0x1cc)](_0x3d19a0=>!(0x3===_0x3d19a0[_0x4cbd64(0x1c4)]&&''===_0x5dfc79(_0x3d19a0)[_0x4cbd64(0x1c1)]())),_0x1cb069=_0xe402af[_0x4cbd64(0x1bb)];for(let _0x593517=0x0;_0x593517<_0x1cb069;_0x593517++){const _0x2b4492=_0xe402af[_0x593517],_0x368f26=_0xe402af[_0x593517+0x1];if(this[_0x4cbd64(0x1c7)](_0x2b4492)){if(-0x1===_0x29c0f5&&(_0x29c0f5=_0x593517),this[_0x4cbd64(0x1ab)](_0x2b4492),!this[_0x4cbd64(0x1c7)](_0x368f26)){const [_0x54fdc4,_0x20200b]=this[_0x4cbd64(0x1a4)](_0x2b4492,_0x469104,_0x1ac0a4);if(_0x54fdc4){const _0x4bfb8e=Array[_0x4cbd64(0x1aa)](_0xe402af)[_0x4cbd64(0x1af)](_0x29c0f5,_0x593517+0x1);this[_0x4cbd64(0x1ac)](_0x54fdc4,_0x4bfb8e,_0x20200b),_0x29c0f5=-0x1;}}}else{if(this[_0x4cbd64(0x1b3)](_0x2b4492))_0x469104=!0x0;else{if(this[_0x4cbd64(0x1a8)](_0x2b4492)){const _0x5d64a3=_0x57e206(_0x2b4492,_0x4cbd64(0x1c3));if(_0x5d64a3&&this[_0x4cbd64(0x1a1)][_0x4cbd64(0x1ca)](_0x5d64a3)){const _0x4fb7ee=_0x50016e(_0x4cbd64(0x1c3),_0x5d64a3,_0x1ac0a4);this[_0x4cbd64(0x18c)](_0x4fb7ee,_0x2b4492);}if(this[_0x4cbd64(0x18b)][_0x4cbd64(0x19d)][_0x4cbd64(0x196)](_0x5d64a3)){const _0x3fb2d3=this[_0x4cbd64(0x18b)][_0x4cbd64(0x19d)][_0x4cbd64(0x1a6)](_0x5d64a3);this[_0x4cbd64(0x18b)][_0x4cbd64(0x19d)][_0x4cbd64(0x199)](_0x3fb2d3,0x1);}}else{if(this[_0x4cbd64(0x1a0)](_0x2b4492)){const _0x5367dd=_0x57e206(_0x2b4492,_0x4cbd64(0x1c3));this[_0x4cbd64(0x18b)][_0x4cbd64(0x1cd)][_0x4cbd64(0x196)](_0x5367dd)||this[_0x4cbd64(0x18f)](_0x2b4492);}}}}}for(const _0x1be8b7 of this[_0x4cbd64(0x18b)][_0x4cbd64(0x19d)]){const _0x3109fe=_0x50016e(_0x4cbd64(0x1c3),_0x1be8b7,_0x1ac0a4);if(_0x3109fe){if(_0x145f66&&_0x145f66[_0x4cbd64(0x19b)]){this[_0x4cbd64(0x18b)][_0x4cbd64(0x188)]=_0x1be8b7;const _0x57961c=_0x145f66[_0x4cbd64(0x19b)][_0x4cbd64(0x1c9)](!0x0);_0x16b2d5(_0x57961c,_0x4cbd64(0x1c3),_0x1be8b7),_0x16b2d5(_0x57961c,_0x4cbd64(0x1b9),_0x4cbd64(0x1ae)),_0x260f97(_0x3109fe,_0x57961c);}else _0x1a9613(_0x3109fe);}}if(_0x223374(_0x4cbd64(0x1b8),null,_0x1ac0a4)[_0x4cbd64(0x191)](_0x302b99=>{const _0x5b8d32=_0x4cbd64,_0x14f4e6=_0x57e206(_0x302b99,_0x5b8d32(0x1b8)),_0x1531b2=_0x50016e(_0x5b8d32(0x1c3),_0x14f4e6,_0x1ac0a4);_0x1531b2&&_0x3f4977(_0x1531b2,_0x302b99);}),_0x223374(_0x4cbd64(0x1c3),_0x4cbd64(0x1bf),_0x1ac0a4)[_0x4cbd64(0x191)](_0x419d2e=>{const _0x5c4bc3=_0x4cbd64,_0x4466d2=this[_0x5c4bc3(0x1c2)](_0x419d2e);_0x16b2d5(_0x419d2e,_0x5c4bc3(0x1c3),_0x4466d2),this[_0x5c4bc3(0x18b)][_0x5c4bc3(0x190)][_0x5c4bc3(0x1ad)](_0x4466d2);}),this[_0x4cbd64(0x1c8)](_0x1ac0a4),_0x145f66&&_0x145f66[_0x4cbd64(0x1a5)]&&this[_0x4cbd64(0x194)](_0x1ac0a4,_0x145f66[_0x4cbd64(0x193)]||0x0),_0x145f66&&_0x145f66[_0x4cbd64(0x1c6)]&&this[_0x4cbd64(0x18b)][_0x4cbd64(0x188)]){let _0x267a6b=_0x50016e(_0x4cbd64(0x1c3),this[_0x4cbd64(0x18b)][_0x4cbd64(0x188)],_0x1ac0a4);for(;_0x267a6b;)_0x51fe75(_0x267a6b),_0x267a6b=_0x267a6b[_0x4cbd64(0x18e)];}return{'parsedContent':_0x1ac0a4,'newNodeIds':this[_0x4cbd64(0x18b)][_0x4cbd64(0x190)],'modifiedNodeIds':this[_0x4cbd64(0x18b)][_0x4cbd64(0x1cd)],'removedNodeIds':this[_0x4cbd64(0x18b)][_0x4cbd64(0x19d)]};}[_0x420e15(0x1ac)](_0x263456,_0xd69eb3,_0x863f6b){const _0x515530=_0x420e15;for(const _0x184d59 of _0xd69eb3){const _0x26a081=this[_0x515530(0x1c2)](_0x184d59);_0x16b2d5(_0x184d59,_0x515530(0x1c3),_0x26a081),this[_0x515530(0x18b)][_0x515530(0x190)][_0x515530(0x1ad)](_0x26a081),this[_0x515530(0x18b)][_0x515530(0x188)]=_0x26a081;}const _0x116668=_0x515530(0x18a)===_0x863f6b||_0x515530(0x195)===_0x863f6b?_0xd69eb3[_0x515530(0x1cb)]():_0xd69eb3;for(const _0x40f6bc of _0x116668)_0x2df6db(_0x263456,_0x40f6bc,_0x863f6b);}[_0x420e15(0x18c)](_0x25c3ac,_0x38fe70){const _0x454a37=_0x420e15;if(!_0x25c3ac)return;if(_0x1a4ece(_0x25c3ac,_0x38fe70))return;const _0x1c678e=this[_0x454a37(0x1c2)](_0x25c3ac);_0x16b2d5(_0x38fe70,_0x454a37(0x1c3),_0x1c678e),this[_0x454a37(0x18b)][_0x454a37(0x1cd)][_0x454a37(0x1ad)](_0x1c678e),this[_0x454a37(0x18b)][_0x454a37(0x188)]=_0x1c678e,_0x260f97(_0x25c3ac,_0x38fe70[_0x454a37(0x1c9)](!0x0));}[_0x420e15(0x1a4)](_0x47d703,_0xcbd309,_0x576a03){const _0x233c8c=_0x420e15,_0x2f3f14=this[_0x233c8c(0x1a7)](_0x47d703,!0x1);if(_0x2f3f14){const _0x1b9244=this[_0x233c8c(0x1bc)](_0x2f3f14),_0x1d7326=_0x50016e(_0x233c8c(0x1c3),_0x1b9244,_0x576a03);if(_0x1d7326)return[_0x1d7326,_0x233c8c(0x195)];this[_0x233c8c(0x18b)][_0x233c8c(0x1b6)][_0x233c8c(0x1ad)](_0x1b9244);}const _0x1c6eb0=this[_0x233c8c(0x189)](_0x47d703,!0x1);if(_0x1c6eb0){const _0x461c12=this[_0x233c8c(0x1bc)](_0x1c6eb0),_0x5b165e=_0x50016e(_0x233c8c(0x1c3),_0x461c12,_0x576a03);if(_0x5b165e)return[_0x5b165e,_0x233c8c(0x1b4)];this[_0x233c8c(0x18b)][_0x233c8c(0x1b6)][_0x233c8c(0x1ad)](_0x461c12);}return _0xcbd309?_0x47d703[_0x233c8c(0x1ba)]?this[_0x233c8c(0x1a2)](_0x47d703,_0x576a03):[_0x576a03[_0x233c8c(0x1bd)][_0x576a03[_0x233c8c(0x1bd)][_0x233c8c(0x1bb)]-0x1],_0x233c8c(0x195)]:[_0x576a03[_0x233c8c(0x1bd)][0x0],_0x233c8c(0x1b4)];}[_0x420e15(0x1a2)](_0x4a111f,_0x2e9476){const _0x2e084e=_0x420e15,_0x543158=[],_0x4a0e3b=this[_0x2e084e(0x1a7)](_0x4a111f,!0x0);if(_0x4a0e3b){const _0x22c37c=this[_0x2e084e(0x1bc)](_0x4a0e3b),_0x22fa70=_0x50016e(_0x2e084e(0x1c3),_0x22c37c,_0x2e9476);_0x22fa70&&_0x543158[_0x2e084e(0x1ad)]([_0x22fa70,_0x2e084e(0x195)]);}const _0x3e2444=this[_0x2e084e(0x189)](_0x4a111f,!0x0);if(_0x3e2444){const _0x52710d=this[_0x2e084e(0x1bc)](_0x3e2444),_0x57e0cd=_0x50016e(_0x2e084e(0x1c3),_0x52710d,_0x2e9476);_0x57e0cd&&_0x543158[_0x2e084e(0x1ad)]([_0x57e0cd,_0x2e084e(0x1b4)]);}if(_0x543158[_0x2e084e(0x1bb)]>0x1)return _0x5d6191(_0x543158[0x0][0x0])<=_0x5d6191(_0x543158[0x1][0x0])?_0x543158[0x0]:_0x543158[0x1];return 0x1===_0x543158[_0x2e084e(0x1bb)]?_0x543158[0x0]:[_0x2e9476[_0x2e084e(0x1b1)],_0x2e084e(0x195)];}[_0x420e15(0x189)](_0x444ad8,_0x5a318b){const _0x24d596=_0x420e15;let _0x4b64ad=_0x444ad8[_0x24d596(0x1ba)],_0x3d7349=null,_0x2b76fa=!0x1;for(;_0x4b64ad;){if(_0x210596(_0x4b64ad)){if(this[_0x24d596(0x1a0)](_0x4b64ad)&&(_0x3d7349=_0x4b64ad),this[_0x24d596(0x1b3)](_0x4b64ad)&&_0x5a318b&&!_0x2b76fa){_0x2b76fa=!0x0,_0x4b64ad=_0x4b64ad[_0x24d596(0x1ba)];continue;}break;}const _0x361168=_0x57e206(_0x4b64ad,_0x24d596(0x1c3));if(_0x361168&&_0x24d596(0x1bf)!==_0x361168&&this[_0x24d596(0x1a1)][_0x24d596(0x1ca)](_0x361168)){_0x3d7349=_0x4b64ad;break;}_0x4b64ad=_0x4b64ad[_0x24d596(0x1ba)];}return _0x3d7349;}[_0x420e15(0x1a7)](_0x107214,_0x14da61){const _0xf7edea=_0x420e15;let _0x803db0=_0x107214[_0xf7edea(0x19f)],_0x3b8dd4=null,_0x2568a5=!0x1;for(;_0x803db0;){if(_0x210596(_0x803db0)){if(this[_0xf7edea(0x1a0)](_0x803db0)&&(_0x3b8dd4=_0x803db0),this[_0xf7edea(0x1b3)](_0x803db0)&&_0x14da61&&!_0x2568a5){_0x2568a5=!0x0,_0x803db0=_0x803db0[_0xf7edea(0x19f)];continue;}break;}const _0x49d32c=_0x57e206(_0x803db0,_0xf7edea(0x1c3));if(_0x49d32c&&_0xf7edea(0x1bf)!==_0x49d32c&&this[_0xf7edea(0x1a1)][_0xf7edea(0x1ca)](_0x49d32c)){_0x3b8dd4=_0x803db0;break;}_0x803db0=_0x803db0[_0xf7edea(0x19f)];}return _0x3b8dd4;}[_0x420e15(0x1ab)](_0x441886){const _0x2ff83f=_0x420e15;_0x8e6afe(_0x441886)&&_0x223374(_0x2ff83f(0x1c3),null,_0x441886)[_0x2ff83f(0x191)](_0x4b14e6=>{const _0x462603=_0x2ff83f;if(this[_0x462603(0x1a8)](_0x4b14e6)&&!this[_0x462603(0x1a9)](_0x4b14e6)){const _0x4cde9f=_0x57e206(_0x4b14e6,_0x462603(0x1c3));_0x16b2d5(_0x4b14e6,_0x462603(0x1b8),_0x4cde9f),_0x16b2d5(_0x4b14e6,_0x462603(0x1c3),null);}});}[_0x420e15(0x1bc)](_0x208da8){const _0x3fedbe=_0x420e15;if(!_0x208da8)return null;if(_0x8e6afe(_0x208da8))return _0x57e206(_0x208da8,_0x3fedbe(0x1c3));if(_0x210596(_0x208da8)){const _0x2ea232=_0x5dfc79(_0x208da8)[_0x3fedbe(0x197)](/removed[\s*-]data-id="([^"]+)"/);if(_0x2ea232&&_0x2ea232[0x1])return _0x2ea232[0x1];}return null;}[_0x420e15(0x18f)](_0x5dd1d3){const _0x5adfb9=_0x420e15;if(_0x210596(_0x5dd1d3)){const _0x1e67ea=_0x5dfc79(_0x5dd1d3)[_0x5adfb9(0x197)](/removed[\s*-]data-id="([^"]+)"/);_0x1e67ea&&_0x1e67ea[0x1]&&this[_0x5adfb9(0x18b)][_0x5adfb9(0x19d)][_0x5adfb9(0x1ad)](_0x1e67ea[0x1]);}}[_0x420e15(0x1c2)](_0x1c4802){const _0x1a27db=_0x420e15;return this[_0x1a27db(0x1a8)](_0x1c4802)?_0x57e206(_0x1c4802,_0x1a27db(0x1c3)):this[_0x1a27db(0x198)]();}[_0x420e15(0x1c8)](_0x95379a){const _0x346c33=_0x420e15;_0x191ff8(_0x95379a)[_0x346c33(0x1cc)](_0x5093ae=>this[_0x346c33(0x1a0)](_0x5093ae)||this[_0x346c33(0x1b3)](_0x5093ae))[_0x346c33(0x191)](_0x276634=>{_0x1a9613(_0x276634);});}[_0x420e15(0x1c5)](_0x2c3319){const _0x2032f5=_0x420e15,_0xa150d0=_0x2c3319[_0x2032f5(0x1bd)],_0x258c07=_0xa150d0[_0xa150d0[_0x2032f5(0x1bb)]-0x1];_0x258c07&&_0x8e6afe(_0x258c07)&&_0x16b2d5(_0x258c07,_0x2032f5(0x1b7),_0x2032f5(0x1ae));}[_0x420e15(0x194)](_0x26635e,_0x807e20){const _0x57cf6d=_0x420e15,_0x354e6c=_0x50016e(_0x57cf6d(0x1b7),_0x57cf6d(0x1ae),_0x26635e);if(!_0x354e6c)return;const _0x15313f=_0x1d32e6(_0x354e6c)[_0x57cf6d(0x1af)](0x0,-0x1),_0x43b3da=_0x15313f[_0x57cf6d(0x1bb)];let _0x248c99=_0x354e6c;if(_0x43b3da>_0x807e20){let _0x274f2a=_0x43b3da,_0x23a40d=null;for(;_0x274f2a>_0x807e20&&_0x274f2a>=0x0;)_0x274f2a--,_0x23a40d=_0x15313f[_0x274f2a];_0x23a40d&&(_0x248c99=_0x23a40d,_0x16b2d5(_0x354e6c,_0x57cf6d(0x1b7),null),_0x16b2d5(_0x23a40d,_0x57cf6d(0x1b7),_0x57cf6d(0x1ae)));}else{if(_0x43b3da<_0x807e20){let _0x250303=_0x43b3da,_0x3a8ed7=_0x354e6c;for(;_0x250303<_0x807e20;){const _0x17c601=_0x3a8ed7[_0x57cf6d(0x1bd)][_0x57cf6d(0x1cc)](_0x17d715=>_0x8e6afe(_0x17d715));if(0x0===_0x17c601[_0x57cf6d(0x1bb)])break;_0x250303++,_0x3a8ed7=_0x17c601[_0x17c601[_0x57cf6d(0x1bb)]-0x1];}_0x3a8ed7&&(_0x248c99=_0x3a8ed7,_0x16b2d5(_0x354e6c,_0x57cf6d(0x1b7),null),_0x16b2d5(_0x3a8ed7,_0x57cf6d(0x1b7),_0x57cf6d(0x1ae)));}}let _0x102d64=_0x248c99;for(;_0x102d64;){for(;_0x102d64[_0x57cf6d(0x1ba)];)_0x102d64=_0x102d64[_0x57cf6d(0x1ba)],_0x8e6afe(_0x102d64)&&_0x16b2d5(_0x102d64,_0x57cf6d(0x1b7),_0x57cf6d(0x1ae));_0x102d64=_0x102d64[_0x57cf6d(0x18e)];}}[_0x420e15(0x1c7)](_0x398905){const _0x451579=_0x420e15;return Boolean(_0x451579(0x1bf)===_0x57e206(_0x398905,_0x451579(0x1c3)));}[_0x420e15(0x1a8)](_0x28be7f){const _0x4d0777=_0x420e15;return Boolean((_0x57e206(_0x28be7f,_0x4d0777(0x1c3))||'')[_0x4d0777(0x1bb)]>0x0&&_0x4d0777(0x1bf)!==_0x57e206(_0x28be7f,_0x4d0777(0x1c3)));}[_0x420e15(0x1a0)](_0x58fbba){const _0x3ef9c2=_0x420e15;return!!_0x58fbba&&Boolean(_0x210596(_0x58fbba)&&_0x5dfc79(_0x58fbba)[_0x3ef9c2(0x197)](/removed[\s*-]data-id="[^"]+"/));}[_0x420e15(0x1a9)](_0xe8c5cd){const _0x5c0cad=_0x420e15;let _0x29d165=_0xe8c5cd[_0x5c0cad(0x18e)];for(;_0x29d165;){if(_0x57e206(_0x29d165,_0x5c0cad(0x1b8)))return!0x0;_0x29d165=_0x29d165[_0x5c0cad(0x18e)];}return!0x1;}[_0x420e15(0x1b3)](_0x2a28ca){const _0x45a87b=_0x420e15;return Boolean(_0x210596(_0x2a28ca)&&_0x5dfc79(_0x2a28ca)[_0x45a87b(0x197)](/\s*existing[\s*-](content|document)\s*/g));}}
|
|
23
|
+
function _0x4efe(_0x28d514,_0x1feeab){const _0xec3e88=_0xec3e();return _0x4efe=function(_0x4efe3b,_0x26cbe5){_0x4efe3b=_0x4efe3b-0x116;let _0x4449d8=_0xec3e88[_0x4efe3b];return _0x4449d8;},_0x4efe(_0x28d514,_0x1feeab);}function _0xec3e(){const _0x2d06c5=['previousSibling','1188080BWACeZ','from','push','includes','_hasWrappedParent','data-removed','data-id','parentNode','_touchedNodesState','108DTZXru','afterbegin','filter','length','merge','childNodes','_markWrappedElements','_findNextElementWithDataId','forEach','26RELGeq','markUnstableElements','225QhSkZK','25600HQqiUD','_removeSpecialComments','trim','data-wrapped-id','true','_findFallbackReferenceNode','_findPrevElementWithDataId','_generateUid','nextSibling','removedIds','_isExistingNode','indexOf','_markLastTagElementUnstable','data-unstable','has','12mpJQFs','_isNewNode','afterend','splice','230fUGYGi','_isDelNode','new-element','markUnstableElementsDepth','_insertNodes','reverse','nodeType','_getNodeDataId','lastChild','169628QzSjcS','_markUnstableElements','cloneNode','_getUid','slice','modifiedIds','1638021PwxQAa','lastTouchedId','match','_storeDeletedElementIds','3JWGfAm','_findReferenceNode','_replaceNode','replaceRemovedWith','beforebegin','cutAfterLastChange','_existingDataIds','map','_isExistingContentComment','12660saHkyr','invalidIds','newIds','1424542XktPEG'];_0xec3e=function(){return _0x2d06c5;};return _0xec3e();}const _0x4da76b=_0x4efe;(function(_0x1d2d17,_0x245222){const _0x3cdb22=_0x4efe,_0x54728e=_0x1d2d17();while(!![]){try{const _0x5e816b=parseInt(_0x3cdb22(0x12a))/0x1*(-parseInt(_0x3cdb22(0x128))/0x2)+parseInt(_0x3cdb22(0x151))/0x3*(-parseInt(_0x3cdb22(0x147))/0x4)+-parseInt(_0x3cdb22(0x13e))/0x5*(-parseInt(_0x3cdb22(0x15a))/0x6)+-parseInt(_0x3cdb22(0x15d))/0x7+parseInt(_0x3cdb22(0x116))/0x8+parseInt(_0x3cdb22(0x11f))/0x9*(-parseInt(_0x3cdb22(0x12b))/0xa)+parseInt(_0x3cdb22(0x14d))/0xb*(parseInt(_0x3cdb22(0x13a))/0xc);if(_0x5e816b===_0x245222)break;else _0x54728e['push'](_0x54728e['shift']());}catch(_0x47f317){_0x54728e['push'](_0x54728e['shift']());}}}(_0xec3e,0x1c0eb));import{ObservableMixin as _0x185acb,uid as _0x247c22}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x2a7f33,findByAttribute as _0xbd672a,getAttribute as _0x34a64d,isComment as _0x141f2f,isTag as _0x5ce0bf,insertElement as _0x4fcf58,moveElement as _0x1c3317,removeElement as _0x5e14b3,replaceElement as _0x15ed01,serialize as _0x5420e9,setAttribute as _0x515741,clone as _0xd9d3eb,findAllComments as _0x336510,getParents as _0x49fa0f,getNodeNestingLevel as _0x373df,areNodesSame as _0x440862,removeElementsAfter as _0x2d35b7}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x185acb(){[_0x4da76b(0x132)];[_0x4da76b(0x11e)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x4da76b(0x157)]=new Set();constructor(_0x572e49){const _0x35c04b=_0x4da76b;super(),this[_0x35c04b(0x132)]=_0x572e49||_0x247c22;}[_0x4da76b(0x123)](_0x260628,_0x1e4937,_0x304167){const _0x40981a=_0x4da76b,_0x1747d9=_0xd9d3eb(_0x260628);if(0x0===_0x1e4937[_0x40981a(0x124)][_0x40981a(0x122)]){const _0x323826=[];return _0x2a7f33(_0x40981a(0x11c),_0x40981a(0x140),_0x1747d9)[_0x40981a(0x127)](_0x2de2bf=>{const _0x327e4a=_0x40981a,_0x246c3e=this[_0x327e4a(0x132)]();_0x515741(_0x2de2bf,_0x327e4a(0x11c),_0x246c3e),_0x323826[_0x327e4a(0x118)](_0x246c3e);}),this[_0x40981a(0x12c)](_0x1747d9),{'parsedContent':_0x1747d9,'newNodeIds':_0x323826,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x304167&&_0x304167[_0x40981a(0x129)]&&this[_0x40981a(0x137)](_0x1747d9),this[_0x40981a(0x11e)][_0x40981a(0x15c)]=[],this[_0x40981a(0x11e)][_0x40981a(0x14c)]=[],this[_0x40981a(0x11e)][_0x40981a(0x134)]=[],this[_0x40981a(0x11e)][_0x40981a(0x15b)]=[],this[_0x40981a(0x11e)][_0x40981a(0x14e)]=null,this[_0x40981a(0x157)]=new Set(_0x2a7f33(_0x40981a(0x11c),null,_0x1e4937)[_0x40981a(0x158)](_0x1e4e43=>_0x34a64d(_0x1e4e43,_0x40981a(0x11c)))[_0x40981a(0x121)](_0x419ce6=>!!_0x419ce6));let _0x477ddc=-0x1,_0x5c5410=!0x1;const _0x527468=_0x1747d9[_0x40981a(0x124)],_0xdbc719=Array[_0x40981a(0x117)](_0x527468)[_0x40981a(0x121)](_0x9bc16e=>!(0x3===_0x9bc16e[_0x40981a(0x144)]&&''===_0x5420e9(_0x9bc16e)[_0x40981a(0x12d)]())),_0x5dbf13=_0xdbc719[_0x40981a(0x122)];for(let _0x20f3d6=0x0;_0x20f3d6<_0x5dbf13;_0x20f3d6++){const _0x3d6bf1=_0xdbc719[_0x20f3d6],_0x5f0a4f=_0xdbc719[_0x20f3d6+0x1];if(this[_0x40981a(0x13b)](_0x3d6bf1)){if(-0x1===_0x477ddc&&(_0x477ddc=_0x20f3d6),this[_0x40981a(0x125)](_0x3d6bf1),!this[_0x40981a(0x13b)](_0x5f0a4f)){const [_0x293be9,_0x30de60]=this[_0x40981a(0x152)](_0x3d6bf1,_0x5c5410,_0x1e4937);if(_0x293be9){const _0x1631c7=Array[_0x40981a(0x117)](_0xdbc719)[_0x40981a(0x14b)](_0x477ddc,_0x20f3d6+0x1);this[_0x40981a(0x142)](_0x293be9,_0x1631c7,_0x30de60),_0x477ddc=-0x1;}}}else{if(this[_0x40981a(0x159)](_0x3d6bf1))_0x5c5410=!0x0;else{if(this[_0x40981a(0x135)](_0x3d6bf1)){const _0x969ddc=_0x34a64d(_0x3d6bf1,_0x40981a(0x11c));if(_0x969ddc&&this[_0x40981a(0x157)][_0x40981a(0x139)](_0x969ddc)){const _0x54410d=_0xbd672a(_0x40981a(0x11c),_0x969ddc,_0x1e4937);this[_0x40981a(0x153)](_0x54410d,_0x3d6bf1);}if(this[_0x40981a(0x11e)][_0x40981a(0x134)][_0x40981a(0x119)](_0x969ddc)){const _0x7e0bda=this[_0x40981a(0x11e)][_0x40981a(0x134)][_0x40981a(0x136)](_0x969ddc);this[_0x40981a(0x11e)][_0x40981a(0x134)][_0x40981a(0x13d)](_0x7e0bda,0x1);}}else{if(this[_0x40981a(0x13f)](_0x3d6bf1)){const _0x1300ec=_0x34a64d(_0x3d6bf1,_0x40981a(0x11c));this[_0x40981a(0x11e)][_0x40981a(0x14c)][_0x40981a(0x119)](_0x1300ec)||this[_0x40981a(0x150)](_0x3d6bf1);}}}}}for(const _0xd8c97a of this[_0x40981a(0x11e)][_0x40981a(0x134)]){const _0x37d1a8=_0xbd672a(_0x40981a(0x11c),_0xd8c97a,_0x1e4937);if(_0x37d1a8){if(_0x304167&&_0x304167[_0x40981a(0x154)]){this[_0x40981a(0x11e)][_0x40981a(0x14e)]=_0xd8c97a;const _0x4fabd6=_0x304167[_0x40981a(0x154)][_0x40981a(0x149)](!0x0);_0x515741(_0x4fabd6,_0x40981a(0x11c),_0xd8c97a),_0x515741(_0x4fabd6,_0x40981a(0x11b),_0x40981a(0x12f)),_0x15ed01(_0x37d1a8,_0x4fabd6);}else _0x5e14b3(_0x37d1a8);}}if(_0x2a7f33(_0x40981a(0x12e),null,_0x1e4937)[_0x40981a(0x127)](_0x1128d4=>{const _0x1455e3=_0x40981a,_0x34c965=_0x34a64d(_0x1128d4,_0x1455e3(0x12e)),_0x4d4995=_0xbd672a(_0x1455e3(0x11c),_0x34c965,_0x1e4937);_0x4d4995&&_0x1c3317(_0x4d4995,_0x1128d4);}),_0x2a7f33(_0x40981a(0x11c),_0x40981a(0x140),_0x1e4937)[_0x40981a(0x127)](_0x4f0d98=>{const _0x3e6f1d=_0x40981a,_0x15c2bc=this[_0x3e6f1d(0x14a)](_0x4f0d98);_0x515741(_0x4f0d98,_0x3e6f1d(0x11c),_0x15c2bc),this[_0x3e6f1d(0x11e)][_0x3e6f1d(0x15c)][_0x3e6f1d(0x118)](_0x15c2bc);}),this[_0x40981a(0x12c)](_0x1e4937),_0x304167&&_0x304167[_0x40981a(0x129)]&&this[_0x40981a(0x148)](_0x1e4937,_0x304167[_0x40981a(0x141)]||0x0),_0x304167&&_0x304167[_0x40981a(0x156)]&&this[_0x40981a(0x11e)][_0x40981a(0x14e)]){let _0x116ef9=_0xbd672a(_0x40981a(0x11c),this[_0x40981a(0x11e)][_0x40981a(0x14e)],_0x1e4937);for(;_0x116ef9;)_0x2d35b7(_0x116ef9),_0x116ef9=_0x116ef9[_0x40981a(0x11d)];}return{'parsedContent':_0x1e4937,'newNodeIds':this[_0x40981a(0x11e)][_0x40981a(0x15c)],'modifiedNodeIds':this[_0x40981a(0x11e)][_0x40981a(0x14c)],'removedNodeIds':this[_0x40981a(0x11e)][_0x40981a(0x134)]};}[_0x4da76b(0x142)](_0x20f716,_0x358d96,_0x210020){const _0x505fe5=_0x4da76b;for(const _0x99e0ae of _0x358d96){const _0x29fe11=this[_0x505fe5(0x14a)](_0x99e0ae);_0x515741(_0x99e0ae,_0x505fe5(0x11c),_0x29fe11),this[_0x505fe5(0x11e)][_0x505fe5(0x15c)][_0x505fe5(0x118)](_0x29fe11),this[_0x505fe5(0x11e)][_0x505fe5(0x14e)]=_0x29fe11;}const _0x5f3374=_0x505fe5(0x120)===_0x210020||_0x505fe5(0x13c)===_0x210020?_0x358d96[_0x505fe5(0x143)]():_0x358d96;for(const _0x1db774 of _0x5f3374)_0x4fcf58(_0x20f716,_0x1db774,_0x210020);}[_0x4da76b(0x153)](_0x3baee3,_0x49f329){const _0x2230f1=_0x4da76b;if(!_0x3baee3)return;if(_0x440862(_0x3baee3,_0x49f329))return;const _0x42f522=this[_0x2230f1(0x14a)](_0x3baee3);_0x515741(_0x49f329,_0x2230f1(0x11c),_0x42f522),this[_0x2230f1(0x11e)][_0x2230f1(0x14c)][_0x2230f1(0x118)](_0x42f522),this[_0x2230f1(0x11e)][_0x2230f1(0x14e)]=_0x42f522,_0x15ed01(_0x3baee3,_0x49f329[_0x2230f1(0x149)](!0x0));}[_0x4da76b(0x152)](_0x8822d2,_0x407085,_0x1a20b4){const _0x236404=_0x4da76b,_0x3674fe=this[_0x236404(0x131)](_0x8822d2,!0x1);if(_0x3674fe){const _0x54b5bc=this[_0x236404(0x145)](_0x3674fe),_0x12bca9=_0xbd672a(_0x236404(0x11c),_0x54b5bc,_0x1a20b4);if(_0x12bca9)return[_0x12bca9,_0x236404(0x13c)];this[_0x236404(0x11e)][_0x236404(0x15b)][_0x236404(0x118)](_0x54b5bc);}const _0x4489dd=this[_0x236404(0x126)](_0x8822d2,!0x1);if(_0x4489dd){const _0x481177=this[_0x236404(0x145)](_0x4489dd),_0xf6e94e=_0xbd672a(_0x236404(0x11c),_0x481177,_0x1a20b4);if(_0xf6e94e)return[_0xf6e94e,_0x236404(0x155)];this[_0x236404(0x11e)][_0x236404(0x15b)][_0x236404(0x118)](_0x481177);}return _0x407085?_0x8822d2[_0x236404(0x133)]?this[_0x236404(0x130)](_0x8822d2,_0x1a20b4):[_0x1a20b4[_0x236404(0x124)][_0x1a20b4[_0x236404(0x124)][_0x236404(0x122)]-0x1],_0x236404(0x13c)]:[_0x1a20b4[_0x236404(0x124)][0x0],_0x236404(0x155)];}[_0x4da76b(0x130)](_0x28b901,_0x5b1df1){const _0x244d12=_0x4da76b,_0x54cbb7=[],_0x2c5db5=this[_0x244d12(0x131)](_0x28b901,!0x0);if(_0x2c5db5){const _0x52ba6d=this[_0x244d12(0x145)](_0x2c5db5),_0x34059a=_0xbd672a(_0x244d12(0x11c),_0x52ba6d,_0x5b1df1);_0x34059a&&_0x54cbb7[_0x244d12(0x118)]([_0x34059a,_0x244d12(0x13c)]);}const _0x458181=this[_0x244d12(0x126)](_0x28b901,!0x0);if(_0x458181){const _0x6b7215=this[_0x244d12(0x145)](_0x458181),_0x555c91=_0xbd672a(_0x244d12(0x11c),_0x6b7215,_0x5b1df1);_0x555c91&&_0x54cbb7[_0x244d12(0x118)]([_0x555c91,_0x244d12(0x155)]);}if(_0x54cbb7[_0x244d12(0x122)]>0x1)return _0x373df(_0x54cbb7[0x0][0x0])<=_0x373df(_0x54cbb7[0x1][0x0])?_0x54cbb7[0x0]:_0x54cbb7[0x1];return 0x1===_0x54cbb7[_0x244d12(0x122)]?_0x54cbb7[0x0]:[_0x5b1df1[_0x244d12(0x146)],_0x244d12(0x13c)];}[_0x4da76b(0x126)](_0x45d5c2,_0x33b469){const _0x486d30=_0x4da76b;let _0x39c416=_0x45d5c2[_0x486d30(0x133)],_0x53a74d=null,_0x4360a0=!0x1;for(;_0x39c416;){if(_0x141f2f(_0x39c416)){if(this[_0x486d30(0x13f)](_0x39c416)&&(_0x53a74d=_0x39c416),this[_0x486d30(0x159)](_0x39c416)&&_0x33b469&&!_0x4360a0){_0x4360a0=!0x0,_0x39c416=_0x39c416[_0x486d30(0x133)];continue;}break;}const _0xf2abc3=_0x34a64d(_0x39c416,_0x486d30(0x11c));if(_0xf2abc3&&_0x486d30(0x140)!==_0xf2abc3&&this[_0x486d30(0x157)][_0x486d30(0x139)](_0xf2abc3)){_0x53a74d=_0x39c416;break;}_0x39c416=_0x39c416[_0x486d30(0x133)];}return _0x53a74d;}[_0x4da76b(0x131)](_0x341ca4,_0x543209){const _0x69eb97=_0x4da76b;let _0x51db6b=_0x341ca4[_0x69eb97(0x15e)],_0x4b7caa=null,_0x3e944e=!0x1;for(;_0x51db6b;){if(_0x141f2f(_0x51db6b)){if(this[_0x69eb97(0x13f)](_0x51db6b)&&(_0x4b7caa=_0x51db6b),this[_0x69eb97(0x159)](_0x51db6b)&&_0x543209&&!_0x3e944e){_0x3e944e=!0x0,_0x51db6b=_0x51db6b[_0x69eb97(0x15e)];continue;}break;}const _0x37201e=_0x34a64d(_0x51db6b,_0x69eb97(0x11c));if(_0x37201e&&_0x69eb97(0x140)!==_0x37201e&&this[_0x69eb97(0x157)][_0x69eb97(0x139)](_0x37201e)){_0x4b7caa=_0x51db6b;break;}_0x51db6b=_0x51db6b[_0x69eb97(0x15e)];}return _0x4b7caa;}[_0x4da76b(0x125)](_0x4e6c46){const _0x39c680=_0x4da76b;_0x5ce0bf(_0x4e6c46)&&_0x2a7f33(_0x39c680(0x11c),null,_0x4e6c46)[_0x39c680(0x127)](_0x2d341c=>{const _0x265de5=_0x39c680;if(this[_0x265de5(0x135)](_0x2d341c)&&!this[_0x265de5(0x11a)](_0x2d341c)){const _0x247dee=_0x34a64d(_0x2d341c,_0x265de5(0x11c));_0x515741(_0x2d341c,_0x265de5(0x12e),_0x247dee),_0x515741(_0x2d341c,_0x265de5(0x11c),null);}});}[_0x4da76b(0x145)](_0x48a935){const _0x30b15c=_0x4da76b;if(!_0x48a935)return null;if(_0x5ce0bf(_0x48a935))return _0x34a64d(_0x48a935,_0x30b15c(0x11c));if(_0x141f2f(_0x48a935)){const _0x4ee80b=_0x5420e9(_0x48a935)[_0x30b15c(0x14f)](/removed[\s*-]data-id="([^"]+)"/);if(_0x4ee80b&&_0x4ee80b[0x1])return _0x4ee80b[0x1];}return null;}[_0x4da76b(0x150)](_0x35d123){const _0x37af7f=_0x4da76b;if(_0x141f2f(_0x35d123)){const _0x5290fd=_0x5420e9(_0x35d123)[_0x37af7f(0x14f)](/removed[\s*-]data-id="([^"]+)"/);_0x5290fd&&_0x5290fd[0x1]&&this[_0x37af7f(0x11e)][_0x37af7f(0x134)][_0x37af7f(0x118)](_0x5290fd[0x1]);}}[_0x4da76b(0x14a)](_0x493c90){const _0x1c01d2=_0x4da76b;return this[_0x1c01d2(0x135)](_0x493c90)?_0x34a64d(_0x493c90,_0x1c01d2(0x11c)):this[_0x1c01d2(0x132)]();}[_0x4da76b(0x12c)](_0x2fd859){const _0x2df66f=_0x4da76b;_0x336510(_0x2fd859)[_0x2df66f(0x121)](_0x332c1b=>this[_0x2df66f(0x13f)](_0x332c1b)||this[_0x2df66f(0x159)](_0x332c1b))[_0x2df66f(0x127)](_0x143c33=>{_0x5e14b3(_0x143c33);});}[_0x4da76b(0x137)](_0x42f107){const _0x1988aa=_0x4da76b,_0x4405b2=_0x42f107[_0x1988aa(0x124)],_0x4a836a=_0x4405b2[_0x4405b2[_0x1988aa(0x122)]-0x1];_0x4a836a&&_0x5ce0bf(_0x4a836a)&&_0x515741(_0x4a836a,_0x1988aa(0x138),_0x1988aa(0x12f));}[_0x4da76b(0x148)](_0x3d1662,_0x387c94){const _0x1f37a2=_0x4da76b,_0x4f3f35=_0xbd672a(_0x1f37a2(0x138),_0x1f37a2(0x12f),_0x3d1662);if(!_0x4f3f35)return;const _0x33e537=_0x49fa0f(_0x4f3f35)[_0x1f37a2(0x14b)](0x0,-0x1),_0x20b02e=_0x33e537[_0x1f37a2(0x122)];let _0x4851de=_0x4f3f35;if(_0x20b02e>_0x387c94){let _0x4c5d86=_0x20b02e,_0x40c76c=null;for(;_0x4c5d86>_0x387c94&&_0x4c5d86>=0x0;)_0x4c5d86--,_0x40c76c=_0x33e537[_0x4c5d86];_0x40c76c&&(_0x4851de=_0x40c76c,_0x515741(_0x4f3f35,_0x1f37a2(0x138),null),_0x515741(_0x40c76c,_0x1f37a2(0x138),_0x1f37a2(0x12f)));}else{if(_0x20b02e<_0x387c94){let _0x14d84e=_0x20b02e,_0x464d2e=_0x4f3f35;for(;_0x14d84e<_0x387c94;){const _0x2bccfb=_0x464d2e[_0x1f37a2(0x124)][_0x1f37a2(0x121)](_0x3670eb=>_0x5ce0bf(_0x3670eb));if(0x0===_0x2bccfb[_0x1f37a2(0x122)])break;_0x14d84e++,_0x464d2e=_0x2bccfb[_0x2bccfb[_0x1f37a2(0x122)]-0x1];}_0x464d2e&&(_0x4851de=_0x464d2e,_0x515741(_0x4f3f35,_0x1f37a2(0x138),null),_0x515741(_0x464d2e,_0x1f37a2(0x138),_0x1f37a2(0x12f)));}}let _0x4afef4=_0x4851de;for(;_0x4afef4;){for(;_0x4afef4[_0x1f37a2(0x133)];)_0x4afef4=_0x4afef4[_0x1f37a2(0x133)],_0x5ce0bf(_0x4afef4)&&_0x515741(_0x4afef4,_0x1f37a2(0x138),_0x1f37a2(0x12f));_0x4afef4=_0x4afef4[_0x1f37a2(0x11d)];}}[_0x4da76b(0x13b)](_0x49d001){const _0x18eba5=_0x4da76b;return Boolean(_0x18eba5(0x140)===_0x34a64d(_0x49d001,_0x18eba5(0x11c)));}[_0x4da76b(0x135)](_0x4bf311){const _0x97fa06=_0x4da76b;return Boolean((_0x34a64d(_0x4bf311,_0x97fa06(0x11c))||'')[_0x97fa06(0x122)]>0x0&&_0x97fa06(0x140)!==_0x34a64d(_0x4bf311,_0x97fa06(0x11c)));}[_0x4da76b(0x13f)](_0x518129){const _0x598759=_0x4da76b;return!!_0x518129&&Boolean(_0x141f2f(_0x518129)&&_0x5420e9(_0x518129)[_0x598759(0x14f)](/removed[\s*-]data-id="[^"]+"/));}[_0x4da76b(0x11a)](_0x188846){const _0x25e529=_0x4da76b;let _0x4ea6c7=_0x188846[_0x25e529(0x11d)];for(;_0x4ea6c7;){if(_0x34a64d(_0x4ea6c7,_0x25e529(0x12e)))return!0x0;_0x4ea6c7=_0x4ea6c7[_0x25e529(0x11d)];}return!0x1;}[_0x4da76b(0x159)](_0x40aa85){const _0x3b1d1b=_0x4da76b;return Boolean(_0x141f2f(_0x40aa85)&&_0x5420e9(_0x40aa85)[_0x3b1d1b(0x14f)](/\s*existing[\s*-](content|document)\s*/g));}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x3f1107=_0x5664;(function(_0x55baf9,_0x212c5b){const _0x2c0e9a=_0x5664,_0x4a714b=_0x55baf9();while(!![]){try{const _0x4b7f6c=parseInt(_0x2c0e9a(0x8f))/0x1+parseInt(_0x2c0e9a(0x94))/0x2*(-parseInt(_0x2c0e9a(0x93))/0x3)+-parseInt(_0x2c0e9a(0x8e))/0x4+-parseInt(_0x2c0e9a(0x9c))/0x5+-parseInt(_0x2c0e9a(0x96))/0x6*(-parseInt(_0x2c0e9a(0x8d))/0x7)+-parseInt(_0x2c0e9a(0x98))/0x8+parseInt(_0x2c0e9a(0x91))/0x9*(parseInt(_0x2c0e9a(0x8a))/0xa);if(_0x4b7f6c===_0x212c5b)break;else _0x4a714b['push'](_0x4a714b['shift']());}catch(_0x5d1f2d){_0x4a714b['push'](_0x4a714b['shift']());}}}(_0x399b,0xe29f2));function _0x399b(){const _0x14fa7e=['585UnIklO','convertMarkdownToHTML','15iyRYlm','540466BTBaDi','_m2html','7356jjPnyx','children','14019376bgwAoC','parse','parseAndNormalizeHTML','<dummy>','1243735zdPckT','494310SvSBkY','</dummy>','replace','6937cxhgDf','4520292iextLw','982668Iulqnd','_parseHTML'];_0x399b=function(){return _0x14fa7e;};return _0x399b();}import{ObservableMixin as _0x32a212}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x110259}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0x4a917c}from'../utils/htmlparser.js';function _0x5664(_0x224786,_0x20f551){const _0x399b3e=_0x399b();return _0x5664=function(_0x566419,_0x1b78c7){_0x566419=_0x566419-0x8a;let _0x4aed1a=_0x399b3e[_0x566419];return _0x4aed1a;},_0x5664(_0x224786,_0x20f551);}export class AIResponseParser extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x32a212(){[_0x3f1107(0x95)];constructor(){const _0x277235=_0x3f1107;super(),this[_0x277235(0x95)]=new _0x110259();}[_0x3f1107(0x92)](_0x1d442a){const _0x20fb2d=_0x3f1107,_0xa55dbf=this[_0x20fb2d(0x95)][_0x20fb2d(0x99)](_0x1d442a);return this[_0x20fb2d(0x9a)](_0xa55dbf);}[_0x3f1107(0x9a)](_0x3f3662){const _0x2a9750=_0x3f1107;return this[_0x2a9750(0x90)](_0x3f3662);}[_0x3f1107(0x90)](_0x4ac9c0){const _0x5e27c4=_0x3f1107,_0xbed28b=_0x4ac9c0[_0x5e27c4(0x8c)](/^\t+/gm,'\x20')[_0x5e27c4(0x8c)](/\n*/g,'')[_0x5e27c4(0x8c)](/\s+/g,'\x20')[_0x5e27c4(0x8c)](/<[^>]*?$/g,''),_0x18695a=_0x4a917c(_0x5e27c4(0x9b)+_0xbed28b+_0x5e27c4(0x8b));return _0x18695a[_0x5e27c4(0x97)]=_0x18695a[_0x5e27c4(0x97)][0x0][_0x5e27c4(0x97)],_0x18695a;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x2b3f18,_0x5e7201){var _0x45f07d=_0x5106,_0x27aa89=_0x2b3f18();while(!![]){try{var _0x3057ba=-parseInt(_0x45f07d(0x186))/0x1+parseInt(_0x45f07d(0x183))/0x2*(parseInt(_0x45f07d(0x181))/0x3)+-parseInt(_0x45f07d(0x17b))/0x4*(-parseInt(_0x45f07d(0x178))/0x5)+parseInt(_0x45f07d(0x182))/0x6*(parseInt(_0x45f07d(0x17d))/0x7)+parseInt(_0x45f07d(0x185))/0x8*(-parseInt(_0x45f07d(0x184))/0x9)+-parseInt(_0x45f07d(0x17f))/0xa+parseInt(_0x45f07d(0x179))/0xb*(parseInt(_0x45f07d(0x17c))/0xc);if(_0x3057ba===_0x5e7201)break;else _0x27aa89['push'](_0x27aa89['shift']());}catch(_0x5daed2){_0x27aa89['push'](_0x27aa89['shift']());}}}(_0xb1ba,0x5cd2d));import{View as _0x32b692}from'ckeditor5/src/ui.js';import{getTranslation as _0x219cd9}from'../../aicore/utils/common-translations.js';import'../../../theme/common/aidisclaimer.css';function _0x5106(_0x3d9371,_0x597755){var _0xb1ba44=_0xb1ba();return _0x5106=function(_0x51067b,_0x4cafd7){_0x51067b=_0x51067b-0x177;var _0x2a3b7a=_0xb1ba44[_0x51067b];return _0x2a3b7a;},_0x5106(_0x3d9371,_0x597755);}function _0xb1ba(){var _0x66da54=['66qAHqVt','60482nTMZul','9jJgXZA','5944696yvZReW','689456qZFWKt','ck-ai-disclaimer__content','setTemplate','674450gOAdmo','11qWqUnI','ck-ai-disclaimer','20BYBvGo','11945268DlmnMD','232589dSnIaL','AI_DISCLAIMER_TEXT','5855300pCqtTs','div','36seLpUQ'];_0xb1ba=function(){return _0x66da54;};return _0xb1ba();}export class AIDisclaimerView extends _0x32b692{constructor(_0x12d0ed){var _0x472f47=_0x5106;super(_0x12d0ed),this[_0x472f47(0x177)]({'tag':_0x472f47(0x180),'attributes':{'class':['ck',_0x472f47(0x17a)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x472f47(0x187)]},'children':[{'text':_0x219cd9(_0x12d0ed,_0x472f47(0x17e))}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x54e6c9=_0x3c6c;(function(_0x5e7de9,_0x5036ae){const _0x9f25e4=_0x3c6c,_0xe50031=_0x5e7de9();while(!![]){try{const _0x33c137=parseInt(_0x9f25e4(0x1e0))/0x1*(-parseInt(_0x9f25e4(0x1d5))/0x2)+parseInt(_0x9f25e4(0x1fb))/0x3+parseInt(_0x9f25e4(0x1e2))/0x4*(parseInt(_0x9f25e4(0x1df))/0x5)+-parseInt(_0x9f25e4(0x1f3))/0x6*(-parseInt(_0x9f25e4(0x1f9))/0x7)+-parseInt(_0x9f25e4(0x1e8))/0x8+parseInt(_0x9f25e4(0x1e5))/0x9*(-parseInt(_0x9f25e4(0x1e7))/0xa)+parseInt(_0x9f25e4(0x1f0))/0xb*(parseInt(_0x9f25e4(0x1e9))/0xc);if(_0x33c137===_0x5036ae)break;else _0xe50031['push'](_0xe50031['shift']());}catch(_0x18cb98){_0xe50031['push'](_0xe50031['shift']());}}}(_0x18fd,0xaa612));import{View as _0x11408a}from'ckeditor5/src/ui.js';function _0x18fd(){const _0x1bdcc4=['40px','72px','1490069XNnvaH','44px','2243748WXoFOL','setTemplate','100%','tag','fill','812962raoRGo','ck-ai-skeleton__item','attributes','150px','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','88px','250px','div',';\x20height:\x20','class','4805fvCmqY','3dpDnFH','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','4924WltzpF','24px','left','49293ogrRjj','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','970JLwRoY','2259088jqQDGT','4491972YNCYji','align','center','right','128px','_createSkeletonItems','ck-ai-skeleton','11jdRCrZ','height','map','12qMjIbF','width:\x20','140px','width'];_0x18fd=function(){return _0x1bdcc4;};return _0x18fd();}function _0x3c6c(_0x4d1bd6,_0x11de98){const _0x18fd28=_0x18fd();return _0x3c6c=function(_0x3c6c28,_0x5908ca){_0x3c6c28=_0x3c6c28-0x1d4;let _0x4c62d2=_0x18fd28[_0x3c6c28];return _0x4c62d2;},_0x3c6c(_0x4d1bd6,_0x11de98);}import'../../../theme/common/aiskeleton.css';export class AISkeletonView extends _0x11408a{constructor(_0x572354,_0x16e651){const _0x33c98d=_0x3c6c;super(_0x572354),this[_0x33c98d(0x1fc)]({'tag':_0x33c98d(0x1dc),'attributes':{'class':['ck',_0x33c98d(0x1ef)]},'children':this[_0x33c98d(0x1ee)](_0x16e651)});}[_0x54e6c9(0x1ee)](_0x2f13a9){const _0x21d2ea=_0x54e6c9,_0x49b6dc=['ck',_0x21d2ea(0x1d6)];return _0x2f13a9[_0x21d2ea(0x1f2)](_0x54008c=>{const _0x47260e=_0x21d2ea;let _0x3326af='';switch(_0x54008c[_0x47260e(0x1d7)][_0x47260e(0x1ea)]){case _0x47260e(0x1ec):_0x3326af=_0x47260e(0x1e1);break;case _0x47260e(0x1eb):_0x3326af=_0x47260e(0x1d9);break;case _0x47260e(0x1e4):_0x3326af=_0x47260e(0x1e6);}return{'tag':_0x54008c[_0x47260e(0x1fe)],'attributes':{'class':[..._0x49b6dc,_0x54008c[_0x47260e(0x1d7)][_0x47260e(0x1de)]?_0x54008c[_0x47260e(0x1d7)][_0x47260e(0x1de)]:''],'style':_0x47260e(0x1f4)+_0x54008c[_0x47260e(0x1d7)][_0x47260e(0x1f6)]+_0x47260e(0x1dd)+_0x54008c[_0x47260e(0x1d7)][_0x47260e(0x1f1)]+';'+_0x3326af}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x54e6c9(0x1dc),'attributes':{'width':_0x54e6c9(0x1fd),'height':_0x54e6c9(0x1f8),'align':_0x54e6c9(0x1ec)}},{'tag':_0x54e6c9(0x1dc),'attributes':{'width':_0x54e6c9(0x1db),'height':_0x54e6c9(0x1f7),'align':_0x54e6c9(0x1ec)}},{'tag':_0x54e6c9(0x1dc),'attributes':{'width':_0x54e6c9(0x1fd),'height':_0x54e6c9(0x1da),'align':_0x54e6c9(0x1ec)}},{'tag':_0x54e6c9(0x1dc),'attributes':{'width':_0x54e6c9(0x1d8),'height':_0x54e6c9(0x1f7),'align':_0x54e6c9(0x1ec)}},{'tag':_0x54e6c9(0x1dc),'attributes':{'width':_0x54e6c9(0x1fd),'height':_0x54e6c9(0x1f5),'align':_0x54e6c9(0x1ec)}},{'tag':_0x54e6c9(0x1dc),'attributes':{'width':_0x54e6c9(0x1db),'height':_0x54e6c9(0x1f7),'align':_0x54e6c9(0x1ec)}},{'tag':_0x54e6c9(0x1dc),'attributes':{'width':_0x54e6c9(0x1fd),'height':_0x54e6c9(0x1da),'align':_0x54e6c9(0x1ec)}}],'aiHistory':ta(0x5,_0x54e6c9(0x1fd),_0x54e6c9(0x1fa),_0x54e6c9(0x1ec)),'aiChatResources':ta(0x8,_0x54e6c9(0x1fd),_0x54e6c9(0x1e3),_0x54e6c9(0x1ec)),'aiReviewChecks':[{'tag':_0x54e6c9(0x1dc),'attributes':{'width':_0x54e6c9(0x1ed),'height':_0x54e6c9(0x1e3),'align':_0x54e6c9(0x1e4)}},{'tag':_0x54e6c9(0x1dc),'attributes':{'width':_0x54e6c9(0x1fd),'height':_0x54e6c9(0x1e3),'align':_0x54e6c9(0x1e4)}},{'tag':_0x54e6c9(0x1dc),'attributes':{'width':_0x54e6c9(0x1ed),'height':_0x54e6c9(0x1e3),'align':_0x54e6c9(0x1e4)}}]};function ta(_0x23b48a,_0x4f9a13,_0x1a371e,_0x210446){const _0x2c94db=_0x54e6c9;return new Array(_0x23b48a)[_0x2c94db(0x1d4)](null)[_0x2c94db(0x1f2)](()=>({'tag':_0x2c94db(0x1dc),'attributes':{'width':_0x4f9a13,'height':_0x1a371e,'align':_0x210446}}));}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x4ed8(_0x20c2f0,_0x418a70){const _0x4a1f35=_0x4a1f();return _0x4ed8=function(_0x4ed8bf,_0x598ed3){_0x4ed8bf=_0x4ed8bf-0x196;let _0x252111=_0x4a1f35[_0x4ed8bf];return _0x252111;},_0x4ed8(_0x20c2f0,_0x418a70);}(function(_0x2c3e4f,_0x467e7a){const _0x2284a7=_0x4ed8,_0x23f392=_0x2c3e4f();while(!![]){try{const _0x538a63=-parseInt(_0x2284a7(0x1a1))/0x1+parseInt(_0x2284a7(0x197))/0x2+-parseInt(_0x2284a7(0x19a))/0x3*(-parseInt(_0x2284a7(0x19c))/0x4)+parseInt(_0x2284a7(0x1a2))/0x5+parseInt(_0x2284a7(0x199))/0x6+parseInt(_0x2284a7(0x19e))/0x7+parseInt(_0x2284a7(0x19f))/0x8*(-parseInt(_0x2284a7(0x19d))/0x9);if(_0x538a63===_0x467e7a)break;else _0x23f392['push'](_0x23f392['shift']());}catch(_0x3214a2){_0x23f392['push'](_0x23f392['shift']());}}}(_0x4a1f,0xc2b12));import{SpinnerView as _0x3b6f40}from'ckeditor5/src/ui.js';import'../../../theme/common/aispinner.css';function _0x4a1f(){const _0x547f51=['8539938lGApdr','45492Dziofp','ck-ai-spinner','196DytioG','6669yeFIlt','1009785Fuarmf','45832Qkgpui','ck-ai-spinner_','210276vSpPyX','7705645XrYwMg','extendTemplate','2802360KWCjmp','span'];_0x4a1f=function(){return _0x547f51;};return _0x4a1f();}export class AISpinnerView extends _0x3b6f40{constructor(_0x1b12f2=void 0x0){const _0x3f4f60=_0x4ed8;super();const _0x159ff9=_0x1b12f2?_0x3f4f60(0x1a0)+_0x1b12f2:'';this[_0x3f4f60(0x196)]({'tag':_0x3f4f60(0x198),'attributes':{'class':[_0x3f4f60(0x19b),_0x159ff9]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1ea07b=_0x43cf;function _0x43cf(_0x441c8f,_0x1fe4bd){const _0x44a9dc=_0x44a9();return _0x43cf=function(_0x43cf42,_0x50d3af){_0x43cf42=_0x43cf42-0x7d;let _0x56a2ed=_0x44a9dc[_0x43cf42];return _0x56a2ed;},_0x43cf(_0x441c8f,_0x1fe4bd);}function _0x44a9(){const _0x22dbc2=['ck-ai-mini-toolbar-copy-button__check-mark','addMany','like','locale','showChangesButton','toggleShowChanges','showChanges','AI_SUGGESTION_BUTTON_SHOW_CHANGES','isShowChangesOn','ck-ai-mini-toolbar','447nsBJaQ','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','_setupCopyButton','_config','1642EkREgZ','889209EEDoOz','AI_MINI_TOOLBAR_DISLIKE','AI_MINI_TOOLBAR_LIKE','execute','toggleShowChangesEnabled','24cqCZKO','showDislike','6fkjFLS','ck-ai-mini-toolbar\x20ck-hidden','icon','class','set','items','408rFOnha','copyButton','children','dislikeButton','isEnabled','bind','customView','ck-ai-mini-toolbar-copy-button','dislike','ck-ai-button-tertiary','length','29747685KOXoPV','_setupShowChangesButton','likeButton','_setupRatingButtons','1682247NXVRSF','fire','full','6216415PDMbTn','AI_MINI_TOOLBAR_COPY','extendTemplate','6216040QyWcjp','showCopy','add','showLike','30872SPKYeb','isOn'];_0x44a9=function(){return _0x22dbc2;};return _0x44a9();}(function(_0x51d3b3,_0x4d331a){const _0x281723=_0x43cf,_0x4936fe=_0x51d3b3();while(!![]){try{const _0x2455c5=-parseInt(_0x281723(0x9c))/0x1*(-parseInt(_0x281723(0xaa))/0x2)+-parseInt(_0x281723(0x98))/0x3*(parseInt(_0x281723(0x8c))/0x4)+-parseInt(_0x281723(0x85))/0x5*(parseInt(_0x281723(0xa4))/0x6)+-parseInt(_0x281723(0x82))/0x7+parseInt(_0x281723(0xa2))/0x8*(-parseInt(_0x281723(0x9d))/0x9)+parseInt(_0x281723(0x88))/0xa+parseInt(_0x281723(0x7e))/0xb;if(_0x2455c5===_0x4d331a)break;else _0x4936fe['push'](_0x4936fe['shift']());}catch(_0x596876){_0x4936fe['push'](_0x4936fe['shift']());}}}(_0x44a9,0xb2726));import{ButtonView as _0xdbcbaa,IconView as _0x4052f5,ToolbarView as _0x3c91af}from'ckeditor5/src/ui.js';import{IconCheck as _0x579d10,IconCopy as _0x44ae2e,IconShowChangesOff as _0x219286,IconShowChangesOn as _0x52e9eb,IconThumbDown as _0x3767aa,IconThumbUp as _0x375b73}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x24ae85}from'../../utils/common-translations.js';import'../../../../theme/aichat/aiminitoolbar.css';export class AIMiniToolbarView extends _0x3c91af{[_0x1ea07b(0xab)];[_0x1ea07b(0x80)];[_0x1ea07b(0xad)];[_0x1ea07b(0x92)];[_0x1ea07b(0x9b)];constructor(_0x408a09,_0x3efc11={}){const _0x3309e7=_0x1ea07b;super(_0x408a09),this[_0x3309e7(0xa8)](_0x3309e7(0xae),!0x0),this[_0x3309e7(0xa8)](_0x3309e7(0x96),!0x1),this[_0x3309e7(0x9b)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x3efc11};const _0x5b24d4=!(this[_0x3309e7(0x9b)][_0x3309e7(0x89)]||this[_0x3309e7(0x9b)][_0x3309e7(0x94)]||this[_0x3309e7(0x9b)][_0x3309e7(0x8b)]||this[_0x3309e7(0x9b)][_0x3309e7(0xa3)]||this[_0x3309e7(0x9b)][_0x3309e7(0xb0)]?.[_0x3309e7(0x7d)]);this[_0x3309e7(0xa7)]=_0x5b24d4?_0x3309e7(0xa5):_0x3309e7(0x97),this[_0x3309e7(0x9b)][_0x3309e7(0x89)]&&(this[_0x3309e7(0x9a)](),this[_0x3309e7(0xa9)][_0x3309e7(0x8a)](this[_0x3309e7(0xab)])),this[_0x3309e7(0x9b)][_0x3309e7(0x94)]&&(this[_0x3309e7(0x7f)](),this[_0x3309e7(0xa9)][_0x3309e7(0x8a)](this[_0x3309e7(0x92)])),this[_0x3309e7(0x81)](),this[_0x3309e7(0x9b)][_0x3309e7(0x8b)]&&this[_0x3309e7(0xa9)][_0x3309e7(0x8a)](this[_0x3309e7(0x80)]),this[_0x3309e7(0x9b)][_0x3309e7(0xa3)]&&this[_0x3309e7(0xa9)][_0x3309e7(0x8a)](this[_0x3309e7(0xad)]),this[_0x3309e7(0x9b)][_0x3309e7(0xb0)]&&this[_0x3309e7(0xa9)][_0x3309e7(0x8f)](this[_0x3309e7(0x9b)][_0x3309e7(0xb0)]);}[_0x1ea07b(0xa1)](_0xa317a3){const _0x3bba5d=_0x1ea07b;this[_0x3bba5d(0x92)][_0x3bba5d(0xae)]=_0xa317a3;}[_0x1ea07b(0x81)](){const _0x457c56=_0x1ea07b;this[_0x457c56(0x80)]=new _0xdbcbaa(this[_0x457c56(0x91)]),this[_0x457c56(0x80)][_0x457c56(0xa8)]({'icon':_0x375b73,'label':_0x24ae85(this[_0x457c56(0x91)],_0x457c56(0x9f)),'tooltip':!0x0}),this[_0x457c56(0x80)][_0x457c56(0xaf)](_0x457c56(0xae))['to'](this),this[_0x457c56(0x80)]['on'](_0x457c56(0xa0),()=>{const _0xf238f4=_0x457c56;this[_0xf238f4(0x83)](_0xf238f4(0x90));}),this[_0x457c56(0xad)]=new _0xdbcbaa(this[_0x457c56(0x91)]),this[_0x457c56(0xad)][_0x457c56(0xa8)]({'icon':_0x3767aa,'label':_0x24ae85(this[_0x457c56(0x91)],_0x457c56(0x9e)),'tooltip':!0x0}),this[_0x457c56(0xad)][_0x457c56(0xaf)](_0x457c56(0xae))['to'](this),this[_0x457c56(0xad)]['on'](_0x457c56(0xa0),()=>{const _0x3efe12=_0x457c56;this[_0x3efe12(0x83)](_0x3efe12(0xb2));});}[_0x1ea07b(0x9a)](){const _0x4c6395=_0x1ea07b;this[_0x4c6395(0xab)]=new _0xdbcbaa(this[_0x4c6395(0x91)]),this[_0x4c6395(0xab)][_0x4c6395(0xa8)]({'icon':_0x44ae2e,'label':_0x24ae85(this[_0x4c6395(0x91)],_0x4c6395(0x86)),'class':_0x4c6395(0xb1),'tooltip':!0x0}),this[_0x4c6395(0xab)][_0x4c6395(0xaf)](_0x4c6395(0xae))['to'](this);const _0x29a21d=new _0x4052f5();_0x29a21d[_0x4c6395(0xa8)]({'content':_0x579d10}),_0x29a21d[_0x4c6395(0x87)]({'attributes':{'class':[_0x4c6395(0x8e)]}}),this[_0x4c6395(0xab)]['on'](_0x4c6395(0xa0),()=>{const _0x6f11c4=_0x4c6395;this[_0x6f11c4(0xab)][_0x6f11c4(0xa7)]=_0x6f11c4(0x99),setTimeout(()=>{const _0x3f0f97=_0x6f11c4;this[_0x3f0f97(0xab)][_0x3f0f97(0xa7)]=_0x3f0f97(0xb1);},0x7d0);}),this[_0x4c6395(0xab)][_0x4c6395(0xac)][_0x4c6395(0x8a)](_0x29a21d);}[_0x1ea07b(0x7f)](){const _0x3a9881=_0x1ea07b;this[_0x3a9881(0x92)]=new _0xdbcbaa(this[_0x3a9881(0x91)]),this[_0x3a9881(0x92)][_0x3a9881(0xa8)]({'icon':_0x219286,'label':_0x24ae85(this[_0x3a9881(0x91)],_0x3a9881(0x95)),'withText':_0x3a9881(0x84)==this[_0x3a9881(0x9b)][_0x3a9881(0x94)],'tooltip':_0x3a9881(0x84)!=this[_0x3a9881(0x9b)][_0x3a9881(0x94)],'class':_0x3a9881(0xb3)}),this[_0x3a9881(0x92)][_0x3a9881(0xaf)](_0x3a9881(0x8d))['to'](this,_0x3a9881(0x96)),this[_0x3a9881(0x92)][_0x3a9881(0xaf)](_0x3a9881(0xae))['to'](this),this[_0x3a9881(0x92)][_0x3a9881(0xaf)](_0x3a9881(0xa6))['to'](this,_0x3a9881(0x96),_0x178717=>_0x178717?_0x52e9eb:_0x219286),this[_0x3a9881(0x92)]['on'](_0x3a9881(0xa0),()=>{const _0x277294=_0x3a9881;this[_0x277294(0x83)](_0x277294(0x93));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x2e41(){const _0x21d3eb=['AI_SUGGESTION_NO_PARTS_WARNING','_actionsView','index','124996FXeTCY','updatePartState','bind','empty-parts-warning','_sourcesView','isEnabled','partsCount','1957812MYSEqC','bodyCollection','push','updateVisibility','4jTYrTd','858903qnJjLp','forEach','5rdOUZp','enqueue','setContent','div','_children','set','_updateContentPartsPromiseQueue','8RDLEti','_availableActions','setPartActive','isTrackChangesOn','_showUnchangedParts','setTemplate','_emptyPartsWarningView','addSource','ck-ai-suggestion__body__content-parts','isVisible','markAsDone','hasChanges','queueEmptyPromise','AI_SUGGESTION_EMPTY_PART_WARNING','hasNonEmptyParts','pending','filter','360829XmKQaI','_switchButtonLabelsPlurality','35865zCvdFE','hasPendingParts','some','10pOTrrD','findIndex','areActionsDisabled','warning','addEventListener','length','updateContentParts','state','locale','abort','availableActions','partDefinition','ck-ai-suggestion__body','2899622sbUGVn','createCollection','updateContent','updateSources','49663EbzNow','find','getPartView','from','_cachedContentParts','delegate','_areActionsDisabled','add','isActive'];_0x2e41=function(){return _0x21d3eb;};return _0x2e41();}const _0x477ff3=_0x382b;(function(_0x5560a2,_0x10bfe9){const _0x20adfd=_0x382b,_0x390168=_0x5560a2();while(!![]){try{const _0x42dfd1=parseInt(_0x20adfd(0x157))/0x1*(-parseInt(_0x20adfd(0x126))/0x2)+parseInt(_0x20adfd(0x127))/0x3+-parseInt(_0x20adfd(0x163))/0x4+parseInt(_0x20adfd(0x129))/0x5*(parseInt(_0x20adfd(0x16a))/0x6)+parseInt(_0x20adfd(0x141))/0x7*(-parseInt(_0x20adfd(0x130))/0x8)+parseInt(_0x20adfd(0x143))/0x9+parseInt(_0x20adfd(0x146))/0xa*(-parseInt(_0x20adfd(0x153))/0xb);if(_0x42dfd1===_0x10bfe9)break;else _0x390168['push'](_0x390168['shift']());}catch(_0x3e1816){_0x390168['push'](_0x390168['shift']());}}}(_0x2e41,0x29b70));import{View as _0x59c749}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0x4541fd}from'./aisuggestioncontentpartview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x5c291a}from'../../utils/eventnames.js';import{PromiseQueue as _0x3a6fe1}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0x396d37}from'../../../aichat/ui/feed/aichatfeederroritemview.js';function _0x382b(_0x57250d,_0x522e6c){const _0x2e414d=_0x2e41();return _0x382b=function(_0x382b68,_0x288372){_0x382b68=_0x382b68-0x123;let _0x2fb2ab=_0x2e414d[_0x382b68];return _0x2fb2ab;},_0x382b(_0x57250d,_0x522e6c);}import{getTranslation as _0x9f1469}from'../../utils/common-translations.js';import{AIChatFeedSuggestionItemActionsView as _0x430739}from'../../../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIWebSourcesView as _0x4fe7ee}from'./aiwebsourcesview.js';export class AISuggestionBodyView extends _0x59c749{[_0x477ff3(0x161)];[_0x477ff3(0x167)];[_0x477ff3(0x12d)];[_0x477ff3(0x15d)];[_0x477ff3(0x134)];[_0x477ff3(0x12f)];[_0x477ff3(0x136)];[_0x477ff3(0x131)];[_0x477ff3(0x15b)]=[];constructor(_0x218873,_0x4b403b){const _0x30adb6=_0x477ff3;super(_0x218873);const {areActionsDisabled:_0x2bbbbc,showUnchangedParts:_0x35bd60,availableActions:_0x2d5ab7}=_0x4b403b;this[_0x30adb6(0x15d)]=_0x2bbbbc,this[_0x30adb6(0x134)]=_0x35bd60,this[_0x30adb6(0x131)]=_0x2d5ab7,this[_0x30adb6(0x12e)](_0x30adb6(0x144),!0x1),this[_0x30adb6(0x12e)](_0x30adb6(0x133),!0x1),this[_0x30adb6(0x12d)]=this[_0x30adb6(0x154)](),this[_0x30adb6(0x12f)]=new _0x3a6fe1(),this[_0x30adb6(0x136)]=new _0x396d37({'id':_0x30adb6(0x166),'initialContent':_0x9f1469(_0x218873,_0x30adb6(0x13d)),'level':_0x30adb6(0x149)}),this[_0x30adb6(0x136)][_0x30adb6(0x139)]=!0x1,this[_0x30adb6(0x161)]=new _0x430739(_0x218873,_0x4b403b[_0x30adb6(0x150)],this[_0x30adb6(0x15d)]),this[_0x30adb6(0x161)][_0x30adb6(0x165)](_0x30adb6(0x133))['to'](this),this[_0x30adb6(0x167)]=new _0x4fe7ee(this[_0x30adb6(0x14e)],_0x4b403b[_0x30adb6(0x123)]),_0x4b403b[_0x30adb6(0x148)]?this[_0x30adb6(0x161)][_0x30adb6(0x168)]=!0x1:this[_0x30adb6(0x161)][_0x30adb6(0x165)](_0x30adb6(0x168))['to'](this,_0x30adb6(0x144)),this[_0x30adb6(0x161)][_0x30adb6(0x15c)](..._0x5c291a)['to'](this),this[_0x30adb6(0x135)]({'tag':_0x30adb6(0x12c),'attributes':{'class':['ck',_0x30adb6(0x152)]},'children':[{'tag':_0x30adb6(0x12c),'attributes':{'class':['ck',_0x30adb6(0x138)]},'children':this[_0x30adb6(0x12d)]},this[_0x30adb6(0x136)],this[_0x30adb6(0x161)],this[_0x30adb6(0x167)]]});}get[_0x477ff3(0x169)](){const _0x1ead5e=_0x477ff3;return this[_0x1ead5e(0x12d)][_0x1ead5e(0x14b)];}async[_0x477ff3(0x14c)]({parts:_0x3e95c8,renderingStrategy:_0x5eb2fc,abortSignal:_0x225bbb}){const _0x36dea2=_0x477ff3;this[_0x36dea2(0x12d)][_0x36dea2(0x14b)]?_0x3e95c8[_0x36dea2(0x128)](_0x5ad85b=>{const _0x414043=_0x36dea2,_0x188815=this[_0x414043(0x15b)][_0x414043(0x147)](_0x5de400=>_0x5de400[_0x414043(0x162)]==_0x5ad85b[_0x414043(0x162)]);-0x1===_0x188815?this[_0x414043(0x15b)][_0x414043(0x124)](_0x5ad85b):this[_0x414043(0x15b)][_0x188815]=_0x5ad85b;}):this[_0x36dea2(0x15b)]=_0x3e95c8;const _0xc0c954=this[_0x36dea2(0x134)]?_0x3e95c8:_0x3e95c8[_0x36dea2(0x140)](_0x57a3cf=>_0x57a3cf[_0x36dea2(0x13b)]);this[_0x36dea2(0x161)][_0x36dea2(0x142)](_0xc0c954[_0x36dea2(0x14b)]>0x1);for(const _0xb9e05c of _0xc0c954)this[_0x36dea2(0x12f)][_0x36dea2(0x12a)](async _0x3aaf3d=>{const _0x29db8b=_0x36dea2;let _0x33c2b3=this[_0x29db8b(0x159)](_0xb9e05c[_0x29db8b(0x162)]);_0x33c2b3||(_0x33c2b3=new _0x4541fd(this[_0x29db8b(0x14e)],{'part':_0xb9e05c,'uiIndex':this[_0x29db8b(0x12d)][_0x29db8b(0x14b)]+0x1,'areActionsDisabled':this[_0x29db8b(0x15d)],'availableActions':this[_0x29db8b(0x131)]}),_0x33c2b3[_0x29db8b(0x15c)](..._0x5c291a)['to'](this),this[_0x29db8b(0x12d)][_0x29db8b(0x15e)](_0x33c2b3),this[_0x29db8b(0x144)]=!0x0),await _0x33c2b3[_0x29db8b(0x155)]({'part':_0xb9e05c,'renderingStrategy':_0x5eb2fc,'showUnchangedParts':this[_0x29db8b(0x134)],'abortSignal':_0x3aaf3d}),_0x33c2b3[_0x29db8b(0x13a)]();});return _0x225bbb?.[_0x36dea2(0x14a)](_0x36dea2(0x14f),()=>{const _0x4c6e4d=_0x36dea2;this[_0x4c6e4d(0x12f)][_0x4c6e4d(0x14f)]();}),this[_0x36dea2(0x12f)][_0x36dea2(0x13c)];}[_0x477ff3(0x164)](_0x585881,_0x50a5cf){const _0xed3010=_0x477ff3,_0x43f0db=this[_0xed3010(0x159)](_0x585881);_0x43f0db&&(_0x43f0db[_0xed3010(0x14d)]=_0x50a5cf),this[_0xed3010(0x144)]=_0xed3010(0x13f)==_0x50a5cf||Array[_0xed3010(0x15a)](this[_0xed3010(0x12d)])[_0xed3010(0x145)](_0x46fc6f=>_0xed3010(0x13f)==_0x46fc6f[_0xed3010(0x14d)]);}[_0x477ff3(0x132)](_0x207875,_0x598a9a){const _0x5b04dc=_0x477ff3;if(!0x1===_0x207875){for(const _0x187099 of this[_0x5b04dc(0x12d)])_0x187099[_0x5b04dc(0x15f)]=!0x1;}else{const _0xd55858=this[_0x5b04dc(0x159)](_0x207875);_0xd55858&&(_0xd55858[_0x5b04dc(0x15f)]=_0x598a9a);}}[_0x477ff3(0x156)](_0x2ab5b2){const _0x17cee3=_0x477ff3;_0x2ab5b2[_0x17cee3(0x128)](_0x728376=>this[_0x17cee3(0x167)][_0x17cee3(0x137)](_0x728376)),this[_0x17cee3(0x167)][_0x17cee3(0x139)]=!0x0;}[_0x477ff3(0x159)](_0x3c8e02){const _0x2f5f2b=_0x477ff3;return this[_0x2f5f2b(0x12d)][_0x2f5f2b(0x158)](_0x31360f=>_0x31360f[_0x2f5f2b(0x151)][_0x2f5f2b(0x162)]==_0x3c8e02)??null;}[_0x477ff3(0x13a)](){const _0x1d643b=_0x477ff3;if(!this[_0x1d643b(0x134)]){const _0x335ec8=!this[_0x1d643b(0x15b)][_0x1d643b(0x158)](({hasChanges:_0x75592e})=>_0x75592e),_0x3fe8f6=!!this[_0x1d643b(0x15b)][_0x1d643b(0x158)](({hasChanges:_0x46372a})=>!_0x46372a);this[_0x1d643b(0x136)][_0x1d643b(0x139)]=0x0==this[_0x1d643b(0x12d)][_0x1d643b(0x14b)]||_0x3fe8f6,_0x335ec8?this[_0x1d643b(0x136)][_0x1d643b(0x12b)](_0x9f1469(this[_0x1d643b(0x14e)],_0x1d643b(0x160))):this[_0x1d643b(0x136)][_0x1d643b(0x12b)](_0x9f1469(this[_0x1d643b(0x14e)],_0x1d643b(0x13d)));}this[_0x1d643b(0x12d)][_0x1d643b(0x128)](_0xbae5a3=>_0xbae5a3[_0x1d643b(0x13a)]()),this[_0x1d643b(0x161)][_0x1d643b(0x125)](this[_0x1d643b(0x13e)]);}get[_0x477ff3(0x13e)](){const _0x5ab731=_0x477ff3;return this[_0x5ab731(0x12d)][_0x5ab731(0x140)](_0x37f2cf=>_0x37f2cf[_0x5ab731(0x151)][_0x5ab731(0x13b)])[_0x5ab731(0x14b)]>0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3dc87a=_0x18a7;(function(_0x5c9f33,_0x308865){const _0x4eaa9a=_0x18a7,_0xc8ad28=_0x5c9f33();while(!![]){try{const _0x46a1d5=parseInt(_0x4eaa9a(0x89))/0x1*(-parseInt(_0x4eaa9a(0xa3))/0x2)+-parseInt(_0x4eaa9a(0x82))/0x3*(parseInt(_0x4eaa9a(0x8e))/0x4)+-parseInt(_0x4eaa9a(0x81))/0x5+-parseInt(_0x4eaa9a(0x87))/0x6*(parseInt(_0x4eaa9a(0x98))/0x7)+-parseInt(_0x4eaa9a(0x93))/0x8+-parseInt(_0x4eaa9a(0x9e))/0x9+parseInt(_0x4eaa9a(0x84))/0xa*(parseInt(_0x4eaa9a(0x92))/0xb);if(_0x46a1d5===_0x308865)break;else _0xc8ad28['push'](_0xc8ad28['shift']());}catch(_0x379c4e){_0xc8ad28['push'](_0xc8ad28['shift']());}}}(_0x3d04,0xda0a9));import{View as _0xf9f0af}from'ckeditor5/src/ui.js';import{AISuggestionHeaderView as _0x55a291}from'./aisuggestionheaderview.js';function _0x18a7(_0x3a4313,_0x4a76ce){const _0x3d0489=_0x3d04();return _0x18a7=function(_0x18a7f1,_0x20cc05){_0x18a7f1=_0x18a7f1-0x81;let _0xcbb1e4=_0x3d0489[_0x18a7f1];return _0xcbb1e4;},_0x18a7(_0x3a4313,_0x4a76ce);}import{AISuggestionBodyView as _0x9a6e10}from'./aisuggestionbodyview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x2df636}from'../../utils/eventnames.js';import'../../../../theme/aichat/aisuggestioncontainer.css';function _0x3d04(){const _0x41a833=['25982xcAjBM','13669528xxstOe','children','headerView','set','delegate','75236NehEEX','hasNonEmptyParts','updateContent','toggleSuggestionDisplayMode','updateSources','fire','3473802pNrRfJ','updateContentParts','markAsDone','bind','setTemplate','749754NXHLkX','373825RWBnlt','6549tIAlyz','createCollection','21600znydJh','areChangesVisible','isShowChangesToggleVisible','54FwoRMu','ck-ai-suggestion__container','4WHoNFY','isOn','isTrackChangesOn','ck-rounded-corners','div','812CBHPBR','toggleShowChanges','add','bodyView'];_0x3d04=function(){return _0x41a833;};return _0x3d04();}export class AISuggestionContainerView extends _0xf9f0af{[_0x3dc87a(0x91)];[_0x3dc87a(0x94)];[_0x3dc87a(0x95)];constructor(_0x4b3f19,_0x406fd0,_0x2bdc0d){const _0x2eae32=_0x3dc87a;super(_0x4b3f19);const {showDiff:_0x2be3a9,areActionsDisabled:_0x4d8dca,showUnchangedParts:_0x5b4458,availableActions:_0x4c1bf3}=_0x406fd0;this[_0x2eae32(0x96)](_0x2eae32(0x8b),!0x1),this[_0x2eae32(0x96)](_0x2eae32(0x85),!0x1),this[_0x2eae32(0x94)]=this[_0x2eae32(0x83)](),this[_0x2eae32(0x95)]=new _0x55a291(_0x4b3f19,{'showDiff':_0x2be3a9}),this[_0x2eae32(0x95)]['on'](_0x2eae32(0x8f),(_0x21aca2,_0x5d205f)=>{const _0xbfe1a0=_0x2eae32;this[_0xbfe1a0(0x85)]=_0x5d205f[_0xbfe1a0(0x8a)],this[_0xbfe1a0(0x9d)](_0xbfe1a0(0x9b),{'showDiff':_0x5d205f[_0xbfe1a0(0x8a)]});}),this[_0x2eae32(0x94)][_0x2eae32(0x90)](this[_0x2eae32(0x95)]),this[_0x2eae32(0x91)]=new _0x9a6e10(_0x4b3f19,{'areActionsDisabled':_0x4d8dca,'showUnchangedParts':!!_0x5b4458,'availableActions':_0x4c1bf3,'bodyCollection':_0x2bdc0d}),this[_0x2eae32(0x91)][_0x2eae32(0x97)](..._0x2df636)['to'](this),this[_0x2eae32(0x91)][_0x2eae32(0xa1)](_0x2eae32(0x8b))['to'](this),this[_0x2eae32(0x94)][_0x2eae32(0x90)](this[_0x2eae32(0x91)]),this[_0x2eae32(0xa2)]({'tag':_0x2eae32(0x8d),'attributes':{'class':['ck',_0x2eae32(0x88),_0x2eae32(0x8c)]},'children':this[_0x2eae32(0x94)]});}async[_0x3dc87a(0x9a)](_0x2a0d2d){const _0x383536=_0x3dc87a;await this[_0x383536(0x91)][_0x383536(0x9f)](_0x2a0d2d);}[_0x3dc87a(0x9c)](_0x33f090){const _0x2a15c7=_0x3dc87a;this[_0x2a15c7(0x91)][_0x2a15c7(0x9c)](_0x33f090);}[_0x3dc87a(0xa0)](){const _0x30145=_0x3dc87a;this[_0x30145(0x91)][_0x30145(0xa0)](),this[_0x30145(0x95)]&&(this[_0x30145(0x95)][_0x30145(0x86)]=this[_0x30145(0x91)][_0x30145(0x99)]);}}
|