@ckeditor/ckeditor5-ai 47.0.0-alpha.5 → 47.0.0-alpha.7
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/LICENSE.md +4 -0
- package/build/ai.js +1 -1
- package/ckeditor5-metadata.json +14 -0
- package/dist/index-editor.css +70 -19
- package/dist/index.css +80 -19
- package/dist/index.js +4 -4
- 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/lang/contexts.json +6 -0
- package/package.json +15 -15
- package/src/aiactions/aiactions.d.ts +0 -2
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.d.ts +1 -0
- 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/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.d.ts +3 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.d.ts +4 -0
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.d.ts +9 -2
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.d.ts +6 -0
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.d.ts +4 -0
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.d.ts +1 -0
- 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.d.ts +8 -2
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.d.ts +9 -0
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aiconfig.d.ts +17 -0
- package/src/aicore/aiconnector.d.ts +13 -0
- 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.d.ts +41 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aireply.d.ts +2 -2
- 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.d.ts +16 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/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/aieditorintegration/aieditorintegration.d.ts +35 -0
- package/src/aieditorintegration/aieditorintegration.js +23 -0
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.d.ts +38 -0
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +23 -0
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.d.ts +16 -0
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +23 -0
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.d.ts +4 -0
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.d.ts +6 -0
- 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/augmentation.d.ts +6 -0
- package/src/index.d.ts +4 -1
- package/src/index.js +1 -1
- package/theme/aiballoon/aiballoon.css +17 -4
- package/theme/aichat/aichat-controls.css +6 -0
- package/theme/aichat/aichat.css +2 -0
- package/theme/aichat/aichathistory.css +26 -9
- package/theme/aichat/aiminitoolbar.css +8 -0
- package/theme/aichat/aisuggestioncontainer.css +14 -2
- package/theme/aireviewmode/aireviewmode-check-run-result.css +6 -0
- package/theme/aitabs/aitabsview.css +6 -1
- package/theme/common/aibutton.css +0 -4
- package/theme/common/aiheader.css +1 -0
- package/src/aiquickactions/utils/common-translations.d.ts +0 -9
- package/src/aiquickactions/utils/common-translations.js +0 -23
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1f8e1e=_0x3ad7;(function(_0x17f245,_0x50ae31){const _0x3d15ae=_0x3ad7,_0x5de641=_0x17f245();while(!![]){try{const _0x2a6c0b=-parseInt(_0x3d15ae(0x1a2))/0x1*(-parseInt(_0x3d15ae(0x199))/0x2)+-parseInt(_0x3d15ae(0x1a0))/0x3*(parseInt(_0x3d15ae(0x19a))/0x4)+-parseInt(_0x3d15ae(0x1bd))/0x5*(-parseInt(_0x3d15ae(0x1d6))/0x6)+parseInt(_0x3d15ae(0x1a8))/0x7*(parseInt(_0x3d15ae(0x1aa))/0x8)+-parseInt(_0x3d15ae(0x1c7))/0x9*(-parseInt(_0x3d15ae(0x1ab))/0xa)+parseInt(_0x3d15ae(0x1a3))/0xb+-parseInt(_0x3d15ae(0x192))/0xc;if(_0x2a6c0b===_0x50ae31)break;else _0x5de641['push'](_0x5de641['shift']());}catch(_0x5e7a7b){_0x5de641['push'](_0x5de641['shift']());}}}(_0xde5e,0xe9767));function _0x3ad7(_0x555712,_0x4ba4a1){const _0xde5e58=_0xde5e();return _0x3ad7=function(_0x3ad7cf,_0x2b288c){_0x3ad7cf=_0x3ad7cf-0x18e;let _0x471b84=_0xde5e58[_0x3ad7cf];return _0x471b84;},_0x3ad7(_0x555712,_0x4ba4a1);}import{CKEditorError as _0x4a42d2,EmitterMixin as _0x4fb59a,logWarning as _0x27176a,uid as _0x1e72a4}from'ckeditor5/src/utils.js';function _0xde5e(){const _0x494ac3=['callId','replyChangeGroupStateUpdated','ai-interaction-invalid-event-type','getReply','abortController','webSearchStarted','currentRequest','find','replyCreated','editor','getStream','reasoningStarted','action-metadata','textDelta','96PsizKC','stop','push','isDestroyed','connector','41782596HQGsvV','stopListening','currentReply','content','_isWebSearching','modification-delta','messageId','2JQPWgE','8CleLsP','message-metadata','interactionStopped','interactionFinished','reasoningFinished','_finalizeInteraction','45987enLwjg','interactionDestroyed','675079kNdwAl','5666199IBkulN','sendRequest','createReply','replyContentUpdated','actionCallId','49903VCrYlw','done','1432XXXOXk','10PXSouk','replies','destroy','fire','isStopped','splice','web-search','interactionStarted','sources','length','webSearchFinished','delegate','ai-chat-interaction-error','abort','error','getDocumentContext','forEach','setConversationTitle','179405SxJPss','_isReasoning','start','conversationTitle','event','reasoning','data','interactionCreated','appendContent','source','12855861OyxPXJ'];_0xde5e=function(){return _0x494ac3;};return _0xde5e();}import{AIReply as _0x4e4328,isIgnoredReplyType as _0x57099b,isValidReplyType as _0x50190e,isReplyTitleType as _0xbf6b22,isSourceType as _0x276ee0}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x1f8e1e(0x1c4),_0x1f8e1e(0x1b2),_0x1f8e1e(0x19c),_0x1f8e1e(0x19d),_0x1f8e1e(0x1a1),_0x1f8e1e(0x1d0),_0x1f8e1e(0x1a6),_0x1f8e1e(0x1c9),_0x1f8e1e(0x1bc),_0x1f8e1e(0x1cd),_0x1f8e1e(0x1b5),_0x1f8e1e(0x1d3),_0x1f8e1e(0x19e),_0x1f8e1e(0x1b9)];export class AIInteraction extends _0x4fb59a(){['id'];[_0x1f8e1e(0x1ac)]=[];[_0x1f8e1e(0x194)];[_0x1f8e1e(0x198)];[_0x1f8e1e(0x1a7)];[_0x1f8e1e(0x1ce)];[_0x1f8e1e(0x191)];[_0x1f8e1e(0x1af)]=!0x1;[_0x1f8e1e(0x190)]=!0x1;[_0x1f8e1e(0x1d1)];[_0x1f8e1e(0x1be)]=!0x1;[_0x1f8e1e(0x196)]=!0x1;constructor({connector:_0x26d653,editor:_0xa2a4f0}){const _0x45428d=_0x1f8e1e;super(),this['id']=_0x1e72a4(),this[_0x45428d(0x191)]=_0x26d653,this[_0x45428d(0x1af)]=!0x0,this[_0x45428d(0x1d1)]=_0xa2a4f0;}async[_0x1f8e1e(0x1bf)](){const _0x1b6025=_0x1f8e1e;let _0x4f2a2a;const _0x3b1a30=[];this[_0x1b6025(0x1af)]=!0x1;try{this[_0x1b6025(0x1ce)]=await this[_0x1b6025(0x1a4)](),this[_0x1b6025(0x1ae)](_0x1b6025(0x1b2),this);const _0x2de625=await this[_0x1b6025(0x1ce)][_0x1b6025(0x1d2)]();for await(const _0xcdd357 of _0x2de625){if(this[_0x1b6025(0x1af)])return;if(_0x1b6025(0x1b9)===_0xcdd357[_0x1b6025(0x1c1)])return void this[_0x1b6025(0x1ae)](_0x1b6025(0x1b9),{'error':new _0x4a42d2(_0x1b6025(0x1b7),this)});if(_0x1b6025(0x19b)!==_0xcdd357[_0x1b6025(0x1c1)]){if(_0x1b6025(0x1d4)!==_0xcdd357[_0x1b6025(0x1c1)]){if(_0xbf6b22(_0xcdd357[_0x1b6025(0x1c1)])&&this[_0x1b6025(0x1bc)](_0xcdd357[_0x1b6025(0x1c3)][_0x1b6025(0x1c0)],!0x0),_0x276ee0(_0xcdd357[_0x1b6025(0x1c1)]))_0x3b1a30[_0x1b6025(0x18f)](_0xcdd357[_0x1b6025(0x1c3)][_0x1b6025(0x1c6)]);else{if(_0x50190e(_0xcdd357[_0x1b6025(0x1c1)])){if(_0xcdd357[_0x1b6025(0x1c1)]!==_0x4f2a2a){if(_0x4f2a2a=_0xcdd357[_0x1b6025(0x1c1)],_0x1b6025(0x1b1)===_0xcdd357[_0x1b6025(0x1c1)]){this[_0x1b6025(0x196)]||(this[_0x1b6025(0x196)]=!0x0,this[_0x1b6025(0x1ae)](_0x1b6025(0x1cd),this));continue;}if(_0x1b6025(0x1c2)===_0xcdd357[_0x1b6025(0x1c1)]){this[_0x1b6025(0x1be)]||(this[_0x1b6025(0x1be)]=!0x0,this[_0x1b6025(0x1ae)](_0x1b6025(0x1d3),this));continue;}this[_0x1b6025(0x1be)]&&(this[_0x1b6025(0x1be)]=!0x1,this[_0x1b6025(0x1ae)](_0x1b6025(0x19e),this)),this[_0x1b6025(0x196)]&&(this[_0x1b6025(0x196)]=!0x1,this[_0x1b6025(0x1ae)](_0x1b6025(0x1b5),this)),this[_0x1b6025(0x194)]&&this[_0x1b6025(0x194)][_0x1b6025(0x1a9)](),this[_0x1b6025(0x194)]=this[_0x1b6025(0x1a5)]({'type':_0xcdd357[_0x1b6025(0x1c1)],'interactionId':this['id']}),_0x3b1a30[_0x1b6025(0x1b4)]>0x0&&_0x1b6025(0x197)===_0xcdd357[_0x1b6025(0x1c1)]&&(this[_0x1b6025(0x194)][_0x1b6025(0x1b3)]=_0x3b1a30[_0x1b6025(0x1b0)](0x0));}_0xcdd357[_0x1b6025(0x1c3)][_0x1b6025(0x1d5)]&&this[_0x1b6025(0x194)][_0x1b6025(0x1c5)](_0xcdd357[_0x1b6025(0x1c3)][_0x1b6025(0x1d5)]);}else _0x57099b(_0xcdd357[_0x1b6025(0x1c1)])||_0x27176a(_0x1b6025(0x1ca),{'chunk':_0xcdd357});}}else this[_0x1b6025(0x1a7)]=_0xcdd357[_0x1b6025(0x1c3)][_0x1b6025(0x1c8)];}else this[_0x1b6025(0x198)]=_0xcdd357[_0x1b6025(0x1c3)]['id'];}}finally{this[_0x1b6025(0x1af)]||(_0x3b1a30[_0x1b6025(0x1b4)]>0x0&&(this[_0x1b6025(0x194)][_0x1b6025(0x1b3)]=_0x3b1a30[_0x1b6025(0x1b0)](0x0)),this[_0x1b6025(0x19f)](),this[_0x1b6025(0x1ae)](_0x1b6025(0x19d),this));}}[_0x1f8e1e(0x18e)](){const _0xaa3ed9=_0x1f8e1e;this[_0xaa3ed9(0x1af)]||(this[_0xaa3ed9(0x19f)](),this[_0xaa3ed9(0x1ae)](_0xaa3ed9(0x19c),this));}[_0x1f8e1e(0x1cb)](_0x137794){const _0x2e7071=_0x1f8e1e;return this[_0x2e7071(0x1ac)][_0x2e7071(0x1cf)](_0x448a4f=>_0x448a4f['id']===_0x137794);}[_0x1f8e1e(0x1ad)](){const _0x55e796=_0x1f8e1e;this[_0x55e796(0x190)]||(this[_0x55e796(0x18e)](),this[_0x55e796(0x1ac)][_0x55e796(0x1bb)](_0x3c0423=>_0x3c0423[_0x55e796(0x1ad)]()),this[_0x55e796(0x1ac)]=[],this[_0x55e796(0x190)]=!0x0,this[_0x55e796(0x1ae)](_0x55e796(0x1a1),this),this[_0x55e796(0x193)]());}[_0x1f8e1e(0x1a5)](_0xcc2611){const _0x27f003=_0x1f8e1e,_0x58c3db=new _0x4e4328({'editor':this[_0x27f003(0x1d1)],'documentContextContent':this[_0x27f003(0x1ba)]()?.[_0x27f003(0x195)],..._0xcc2611});return this[_0x27f003(0x1ac)][_0x27f003(0x18f)](_0x58c3db),_0x58c3db[_0x27f003(0x1b6)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x27f003(0x1ae)](_0x27f003(0x1d0),_0x58c3db),_0x58c3db;}[_0x1f8e1e(0x1bc)](_0x4f5b41,_0x28abdb=!0x1){const _0x57f51c=_0x1f8e1e;this[_0x57f51c(0x1ae)](_0x57f51c(0x1bc),_0x4f5b41,_0x28abdb);}[_0x1f8e1e(0x19f)](){const _0x3f2f1a=_0x1f8e1e;this[_0x3f2f1a(0x1af)]=!0x0,this[_0x3f2f1a(0x1ce)]&&this[_0x3f2f1a(0x1ce)][_0x3f2f1a(0x1cc)][_0x3f2f1a(0x1b8)](),this[_0x3f2f1a(0x194)]&&this[_0x3f2f1a(0x194)][_0x3f2f1a(0x1a9)](),this[_0x3f2f1a(0x1ce)]=this[_0x3f2f1a(0x194)]=void 0x0;}}
|
|
@@ -8,11 +8,11 @@ import { type AISuggestionContentPartDefinition } from '../utils/getsuggestionpa
|
|
|
8
8
|
/**
|
|
9
9
|
* The reply types that are provided by the AI endpoint.
|
|
10
10
|
*/
|
|
11
|
-
export declare const AI_REPLY_TYPES: readonly ["modification-delta", "text-delta"];
|
|
11
|
+
export declare const AI_REPLY_TYPES: readonly ["modification-delta", "text-delta", "web-search", "reasoning"];
|
|
12
12
|
/**
|
|
13
13
|
* The reply types that are intentionally ignored.
|
|
14
14
|
*/
|
|
15
|
-
export declare const AI_REPLY_TYPES_IGNORED: readonly ["
|
|
15
|
+
export declare const AI_REPLY_TYPES_IGNORED: readonly ["conversation-title"];
|
|
16
16
|
/**
|
|
17
17
|
* The type of the reply that is responsible for the conversation title.
|
|
18
18
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x38d392=_0x2c56;(function(_0x285fd8,_0x537f3e){const _0xcde2c0=_0x2c56,_0x356ada=_0x285fd8();while(!![]){try{const _0x1c9fc3=parseInt(_0xcde2c0(0x77))/0x1*(parseInt(_0xcde2c0(0xb5))/0x2)+parseInt(_0xcde2c0(0xb9))/0x3*(-parseInt(_0xcde2c0(0xb2))/0x4)+parseInt(_0xcde2c0(0x9c))/0x5*(-parseInt(_0xcde2c0(0x7d))/0x6)+-parseInt(_0xcde2c0(0x7f))/0x7*(-parseInt(_0xcde2c0(0x78))/0x8)+parseInt(_0xcde2c0(0x7a))/0x9+-parseInt(_0xcde2c0(0x9f))/0xa+-parseInt(_0xcde2c0(0x7e))/0xb*(parseInt(_0xcde2c0(0xab))/0xc);if(_0x1c9fc3===_0x537f3e)break;else _0x356ada['push'](_0x356ada['shift']());}catch(_0x689fbf){_0x356ada['push'](_0x356ada['shift']());}}}(_0x1864,0xdc95e));function _0x2c56(_0x1ad097,_0x28fa46){const _0x1864b4=_0x1864();return _0x2c56=function(_0x2c56b8,_0x213733){_0x2c56b8=_0x2c56b8-0x72;let _0x54b6ff=_0x1864b4[_0x2c56b8];return _0x54b6ff;},_0x2c56(_0x1ad097,_0x28fa46);}import{ObservableMixin as _0x39cc7f,uid as _0x326c5f}from'ckeditor5/src/utils.js';import{Element as _0x35fbbb,findAll as _0x4bb407,getAttribute as _0x26c7bf,getParents as _0x4eb5ea,Document as _0x4f034e,parse as _0xcaf1c9,Text as _0x1ef4b0}from'../utils/htmlparser.js';import{AIResponseParser as _0x5ebe39}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x3b8401}from'../pipeline/airesponseapplier.js';export const AI_REPLY_TYPES=[_0x38d392(0x98),_0x38d392(0xa2),_0x38d392(0x84),_0x38d392(0xb8)];function _0x1864(){const _0x294484=['aiResponseParser','data-id','Removed\x20content.\x20Use\x20\x22Show\x20changes\x22\x20to\x20learn\x20more.','2426084yAgigY','previousSibling','index','2xiUaaA','stopListening','fire','reasoning','6miHZxU','source','cloneNode','documentContextContent','context','data-unstable','appendContent','changes','state','parseAndNormalizeHTML','1466274FSoTVb','7266104BFTJbA','replyContentUpdated','12407976NrPtda','forEach','unshift','49014puEelO','11yWYDTr','7DvPwnT','parsedContent','change:content','pending','length','web-search','modified','node','aiResponseApplier','newNodeIds','map','set','setChangeGroupState','type','sources','areActionsDisabled','updateChangeGroups','replyChangeGroupStateUpdated','content','changeGroups','interactionId','span','nextSibling','parsedMergedContent','convertMarkdownToHTML','modification-delta','editor','values','isDone','970OwcqOv','merge','modifiedNodeIds','451460wXbkHB','color:\x20#808080;\x20font-style:\x20italic','onContentChange','text-delta','push','new','destroy','filter','removedNodeIds','includes','done','_getDifferentChangeGroups','80508oeDvUB','conversation-title','removed','every'];_0x1864=function(){return _0x294484;};return _0x1864();}export const AI_REPLY_TYPES_IGNORED=[_0x38d392(0xac)];export const AI_REPLY_TITLE_TYPE=_0x38d392(0xac);export class AIReply extends _0x39cc7f(){['id'];[_0x38d392(0x93)];[_0x38d392(0x8c)];[_0x38d392(0x8d)]=[];[_0x38d392(0x80)]=new _0x4f034e([]);[_0x38d392(0x96)]=new _0x4f034e([]);[_0x38d392(0x92)]=[];[_0x38d392(0x8e)]=!0x1;[_0x38d392(0xbc)];[_0x38d392(0xaf)];[_0x38d392(0x87)];[_0x38d392(0x99)];constructor({type:_0x427890,content:_0x54d1e0='',isDone:_0x10ed38=!0x1,interactionId:_0x1ffe0b,areActionsDisabled:_0x279307,documentContextContent:_0x5bb405,editor:_0x3c9c01}){const _0x4eae3d=_0x38d392;super(),this['id']=_0x326c5f(),this[_0x4eae3d(0x93)]=_0x1ffe0b,this[_0x4eae3d(0x8c)]=_0x427890,this[_0x4eae3d(0x8e)]=!!_0x279307,this[_0x4eae3d(0x99)]=_0x3c9c01,this[_0x4eae3d(0xaf)]=new _0x5ebe39(),this[_0x4eae3d(0x87)]=new _0x3b8401(),this[_0x4eae3d(0xbc)]=_0xcaf1c9(_0x5bb405||''),this[_0x4eae3d(0x8a)](_0x4eae3d(0x9b),_0x10ed38),this['on'](_0x4eae3d(0x81),()=>{const _0x37b3f4=_0x4eae3d;this[_0x37b3f4(0xa1)]();}),this[_0x4eae3d(0x8a)](_0x4eae3d(0x91),_0x54d1e0);}[_0x38d392(0x73)](_0x2c2730){const _0x130d9a=_0x38d392;this[_0x130d9a(0x8a)](_0x130d9a(0x91),this[_0x130d9a(0x91)]+_0x2c2730);}[_0x38d392(0xa9)](){const _0x2663bb=_0x38d392;this[_0x2663bb(0x9b)]||(this[_0x2663bb(0x8a)](_0x2663bb(0x9b),!0x0),this[_0x2663bb(0xa1)]());}[_0x38d392(0xa5)](){const _0x5815c5=_0x38d392;this[_0x5815c5(0xb6)]();}[_0x38d392(0x8b)](_0x3f35ba,_0x549d1c){const _0x305a77=_0x38d392;this[_0x305a77(0x92)][_0x3f35ba][_0x305a77(0x75)]=_0x549d1c,this[_0x305a77(0xb7)](_0x305a77(0x90),{'reply':this,'index':_0x3f35ba,'state':_0x549d1c});}[_0x38d392(0xa1)](){const _0x5dd80d=_0x38d392;if(_0x5dd80d(0x98)===this[_0x5dd80d(0x8c)]){this[_0x5dd80d(0x80)]=this[_0x5dd80d(0xaf)][_0x5dd80d(0x76)](this[_0x5dd80d(0x91)]);const _0x189ac2=this[_0x5dd80d(0x92)];this[_0x5dd80d(0x8f)]();const _0xd9fd2c=this[_0x5dd80d(0xaa)](_0x189ac2,this[_0x5dd80d(0x92)]);(_0xd9fd2c[_0x5dd80d(0x83)]||this[_0x5dd80d(0x9b)])&&this[_0x5dd80d(0xb7)](_0x5dd80d(0x79),this,_0xd9fd2c);}else this[_0x5dd80d(0x80)]=this[_0x5dd80d(0xaf)][_0x5dd80d(0x97)](this[_0x5dd80d(0x91)]),this[_0x5dd80d(0xb7)](_0x5dd80d(0x79),this);}[_0x38d392(0xaa)](_0x423806,_0x170ad1){const _0x49cbc7=_0x38d392,_0x2f3549=[];for(const _0x38d5eb of _0x170ad1){const _0x8c1dda=_0x423806[_0x38d5eb[_0x49cbc7(0xb4)]];_0x8c1dda?_0x8c1dda[_0x49cbc7(0x74)][_0x49cbc7(0x83)]!==_0x38d5eb[_0x49cbc7(0x74)][_0x49cbc7(0x83)]?_0x2f3549[_0x49cbc7(0xa3)](_0x38d5eb):_0x8c1dda[_0x49cbc7(0x74)][_0x49cbc7(0x7b)]((_0x5a2504,_0x1911ab)=>{const _0xbbb8f=_0x49cbc7,_0x22d8ab=_0x38d5eb[_0xbbb8f(0x74)][_0x1911ab];_0x5a2504['id']!==_0x22d8ab['id']&&_0x2f3549[_0xbbb8f(0xa3)](_0x38d5eb);}):_0x2f3549[_0x49cbc7(0xa3)](_0x38d5eb);}return _0x2f3549;}[_0x38d392(0x8f)](){const _0x1bbb51=_0x38d392,_0x14fece=new _0x35fbbb('p',{},[new _0x35fbbb(_0x1bbb51(0x94),{'style':_0x1bbb51(0xa0)},[new _0x1ef4b0(_0x1bbb51(0xb1))])]),_0x4a7268=this[_0x1bbb51(0x87)][_0x1bbb51(0x9d)](this[_0x1bbb51(0x80)],this[_0x1bbb51(0xbc)][_0x1bbb51(0xbb)](!0x0),{'markUnstableElements':!this[_0x1bbb51(0x9b)],'replaceRemovedWith':_0x14fece,'cutAfterLastChange':!this[_0x1bbb51(0x9b)]});if(!_0x4a7268[_0x1bbb51(0x9e)][_0x1bbb51(0x83)]&&!this[_0x1bbb51(0x9b)])return;this[_0x1bbb51(0x96)]=_0x4a7268[_0x1bbb51(0x80)];let _0x4f656e=[];if(_0x4bb407(_0x5a23f4=>{const _0x3d0861=_0x1bbb51,_0x5a8cbd=_0x26c7bf(_0x5a23f4,_0x3d0861(0xb0));if(!_0x5a8cbd||!_0x55e540(_0x5a8cbd))return!0x1;const _0x5777e0=[_0x5a23f4,..._0x4eb5ea(_0x5a23f4)]['at'](-0x2);if(_0x5a23f4!=_0x5777e0){const _0x20b78a=_0x26c7bf(_0x5777e0,_0x3d0861(0xb0));_0x55e540(_0x20b78a)||(_0x4f656e[_0x3d0861(0xa3)]({'node':_0x5777e0,'id':_0x20b78a,'type':_0x3d0861(0x85)}),_0x4a7268[_0x3d0861(0x9e)][_0x3d0861(0xa3)](_0x20b78a));}else _0x4a7268[_0x3d0861(0x9e)][_0x3d0861(0xa8)](_0x5a8cbd)?_0x4f656e[_0x3d0861(0xa3)]({'node':_0x5a23f4,'type':_0x3d0861(0x85),'id':_0x5a8cbd}):_0x4a7268[_0x3d0861(0x88)][_0x3d0861(0xa8)](_0x5a8cbd)?_0x4f656e[_0x3d0861(0xa3)]({'node':_0x5a23f4,'type':_0x3d0861(0xa4),'id':_0x5a8cbd,'anchorId':_0x26c7bf(_0x5a23f4[_0x3d0861(0xb3)],_0x3d0861(0xb0))}):_0x4f656e[_0x3d0861(0xa3)]({'node':_0x5a23f4,'type':_0x3d0861(0xad),'id':_0x5a8cbd});return!0x0;},this[_0x1bbb51(0x96)]),_0x4f656e=_0x4f656e[_0x1bbb51(0xa6)](({node:_0x375af0})=>[..._0x4eb5ea(_0x375af0),_0x375af0][_0x1bbb51(0xae)](_0x3d31c7=>!_0x26c7bf(_0x3d31c7,_0x1bbb51(0x72)))),0x0==_0x4f656e[_0x1bbb51(0x83)])return;const _0x47b6a7=[[_0x4f656e[0x0]]];for(let _0x117a8a=0x1;_0x117a8a<_0x4f656e[_0x1bbb51(0x83)];_0x117a8a++){const _0x5e9149=_0x47b6a7[_0x47b6a7[_0x1bbb51(0x83)]-0x1],_0x1d269f=_0x5e9149[_0x5e9149[_0x1bbb51(0x83)]-0x1];_0x4f656e[_0x117a8a][_0x1bbb51(0x86)][_0x1bbb51(0xb3)]==_0x1d269f[_0x1bbb51(0x86)]&&_0x1bbb51(0x85)!=_0x4f656e[_0x117a8a][_0x1bbb51(0x8c)]&&_0x1bbb51(0x85)!=_0x1d269f[_0x1bbb51(0x8c)]?_0x5e9149[_0x1bbb51(0xa3)](_0x4f656e[_0x117a8a]):_0x47b6a7[_0x1bbb51(0xa3)]([_0x4f656e[_0x117a8a]]);}for(const _0x36f69d of _0x47b6a7){const _0x70b55f=_0x36f69d[0x0],_0xc05870=_0x36f69d[_0x36f69d[_0x1bbb51(0x83)]-0x1],_0x3f5ab6=_0x4219d6(_0x70b55f[_0x1bbb51(0x86)][_0x1bbb51(0xb3)]);_0x3f5ab6&&_0x36f69d[_0x1bbb51(0x7c)](_0x3f5ab6);const _0x2365ec=_0x4219d6(_0xc05870[_0x1bbb51(0x86)][_0x1bbb51(0x95)]);_0x2365ec&&_0x36f69d[_0x1bbb51(0xa3)](_0x2365ec);}function _0x55e540(_0x2af61f){const _0x49f646=_0x1bbb51;return _0x4a7268[_0x49f646(0x9e)][_0x49f646(0xa8)](_0x2af61f)||_0x4a7268[_0x49f646(0x88)][_0x49f646(0xa8)](_0x2af61f)||_0x4a7268[_0x49f646(0xa7)][_0x49f646(0xa8)](_0x2af61f);}function _0x4219d6(_0x32d12e){const _0x459c18=_0x1bbb51;if(_0x32d12e&&_0x26c7bf(_0x32d12e,_0x459c18(0xb0))&&!_0x26c7bf(_0x32d12e,_0x459c18(0x72))){const _0x5cee59=_0x26c7bf(_0x32d12e,_0x459c18(0xb0));if(!_0x55e540(_0x5cee59))return{'node':_0x32d12e,'type':_0x459c18(0xbd),'id':_0x5cee59};}return null;}this[_0x1bbb51(0x92)]=_0x47b6a7[_0x1bbb51(0x89)]((_0xa5fad,_0x5c04ca)=>({'changes':_0xa5fad,'state':_0x1bbb51(0x82),'index':_0x5c04ca}));}}export function isValidReplyType(_0x573a8a){const _0x5cd8aa=_0x38d392;return Object[_0x5cd8aa(0x9a)](AI_REPLY_TYPES)[_0x5cd8aa(0xa8)](_0x573a8a);}export function isIgnoredReplyType(_0x1e984e){const _0x2295cb=_0x38d392;return AI_REPLY_TYPES_IGNORED[_0x2295cb(0xa8)](_0x1e984e);}export function isReplyTitleType(_0xc30e80){return _0xc30e80===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x19137c){const _0x22bdd6=_0x38d392;return _0x22bdd6(0xba)===_0x19137c;}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
24
|
-
_0x286046(){[_0x3717cf(0xee)];[_0x3717cf(0xba)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x3717cf(0xbc)]=new Set();constructor(_0x29cbec){const _0x1843b4=_0x3717cf;super(),this[_0x1843b4(0xee)]=_0x29cbec||_0xd72eb6;}[_0x3717cf(0xdb)](_0x55a206,_0x1a94e9,_0x1c5aa2){const _0x3f0c71=_0x3717cf,_0x4558c2=_0x428b9a(_0x55a206);if(0x0===_0x1a94e9[_0x3f0c71(0xb1)][_0x3f0c71(0xe8)]){const _0x3364ad=[];return _0x55152f(_0x3f0c71(0xe7),_0x3f0c71(0xcd),_0x4558c2)[_0x3f0c71(0xb8)](_0x251e9c=>{const _0x5aeaa2=_0x3f0c71,_0x3ce9b2=this[_0x5aeaa2(0xee)]();_0x596360(_0x251e9c,_0x5aeaa2(0xe7),_0x3ce9b2),_0x3364ad[_0x5aeaa2(0xd5)](_0x3ce9b2);}),this[_0x3f0c71(0xde)](_0x4558c2),{'parsedContent':_0x4558c2,'newNodeIds':_0x3364ad,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x1c5aa2&&_0x1c5aa2[_0x3f0c71(0xc2)]&&this[_0x3f0c71(0xc5)](_0x4558c2),this[_0x3f0c71(0xba)][_0x3f0c71(0xe1)]=[],this[_0x3f0c71(0xba)][_0x3f0c71(0xcf)]=[],this[_0x3f0c71(0xba)][_0x3f0c71(0xad)]=[],this[_0x3f0c71(0xba)][_0x3f0c71(0xe2)]=[],this[_0x3f0c71(0xba)][_0x3f0c71(0xc9)]=null,this[_0x3f0c71(0xbc)]=new Set(_0x55152f(_0x3f0c71(0xe7),null,_0x1a94e9)[_0x3f0c71(0xc8)](_0x541ab9=>_0x37f6b9(_0x541ab9,_0x3f0c71(0xe7)))[_0x3f0c71(0xb5)](_0x47a8d3=>!!_0x47a8d3));let _0x565330=-0x1,_0x3e9844=!0x1;const _0x4b7e98=_0x4558c2[_0x3f0c71(0xb1)],_0x457c6f=Array[_0x3f0c71(0xe4)](_0x4b7e98)[_0x3f0c71(0xb5)](_0x14e66e=>!(0x3===_0x14e66e[_0x3f0c71(0xe9)]&&''===_0x5b1f1d(_0x14e66e)[_0x3f0c71(0xbe)]())),_0xc086d5=_0x457c6f[_0x3f0c71(0xe8)];for(let _0x38b04f=0x0;_0x38b04f<_0xc086d5;_0x38b04f++){const _0x382739=_0x457c6f[_0x38b04f],_0x4c545e=_0x457c6f[_0x38b04f+0x1];if(this[_0x3f0c71(0xc4)](_0x382739)){if(-0x1===_0x565330&&(_0x565330=_0x38b04f),this[_0x3f0c71(0xb2)](_0x382739),!this[_0x3f0c71(0xc4)](_0x4c545e)){const [_0x37b6c,_0x5e4926]=this[_0x3f0c71(0xbb)](_0x382739,_0x3e9844,_0x1a94e9);if(_0x37b6c){const _0x563e77=Array[_0x3f0c71(0xe4)](_0x457c6f)[_0x3f0c71(0xaa)](_0x565330,_0x38b04f+0x1);this[_0x3f0c71(0xaf)](_0x37b6c,_0x563e77,_0x5e4926),_0x565330=-0x1;}}}else{if(this[_0x3f0c71(0xdf)](_0x382739))_0x3e9844=!0x0;else{if(this[_0x3f0c71(0xe3)](_0x382739)){const _0x4c6f5e=_0x37f6b9(_0x382739,_0x3f0c71(0xe7));if(_0x4c6f5e&&this[_0x3f0c71(0xbc)][_0x3f0c71(0xd2)](_0x4c6f5e)){const _0x5c6394=_0x59a4ef(_0x3f0c71(0xe7),_0x4c6f5e,_0x1a94e9);this[_0x3f0c71(0xcc)](_0x5c6394,_0x382739);}if(this[_0x3f0c71(0xba)][_0x3f0c71(0xad)][_0x3f0c71(0xac)](_0x4c6f5e)){const _0x5e4c29=this[_0x3f0c71(0xba)][_0x3f0c71(0xad)][_0x3f0c71(0xa9)](_0x4c6f5e);this[_0x3f0c71(0xba)][_0x3f0c71(0xad)][_0x3f0c71(0xd8)](_0x5e4c29,0x1);}}else{if(this[_0x3f0c71(0xd6)](_0x382739)){const _0x2da4=_0x37f6b9(_0x382739,_0x3f0c71(0xe7));this[_0x3f0c71(0xba)][_0x3f0c71(0xcf)][_0x3f0c71(0xac)](_0x2da4)||this[_0x3f0c71(0xe5)](_0x382739);}}}}}for(const _0x129498 of this[_0x3f0c71(0xba)][_0x3f0c71(0xad)]){const _0x8ef271=_0x59a4ef(_0x3f0c71(0xe7),_0x129498,_0x1a94e9);if(_0x8ef271){if(_0x1c5aa2&&_0x1c5aa2[_0x3f0c71(0xc3)]){this[_0x3f0c71(0xba)][_0x3f0c71(0xc9)]=_0x129498;const _0x583aeb=_0x1c5aa2[_0x3f0c71(0xc3)][_0x3f0c71(0xdd)](!0x0);_0x596360(_0x583aeb,_0x3f0c71(0xe7),_0x129498),_0x596360(_0x583aeb,_0x3f0c71(0xce),_0x3f0c71(0xbf)),_0x426237(_0x8ef271,_0x583aeb);}else _0x26a502(_0x8ef271);}}if(_0x55152f(_0x3f0c71(0xe6),null,_0x1a94e9)[_0x3f0c71(0xb8)](_0x41484d=>{const _0x3e2649=_0x3f0c71,_0x2df444=_0x37f6b9(_0x41484d,_0x3e2649(0xe6)),_0x40d7f0=_0x59a4ef(_0x3e2649(0xe7),_0x2df444,_0x1a94e9);_0x40d7f0&&_0x56304e(_0x40d7f0,_0x41484d);}),_0x55152f(_0x3f0c71(0xe7),_0x3f0c71(0xcd),_0x1a94e9)[_0x3f0c71(0xb8)](_0x1218eb=>{const _0x4aeb2e=_0x3f0c71,_0x541a17=this[_0x4aeb2e(0xca)](_0x1218eb);_0x596360(_0x1218eb,_0x4aeb2e(0xe7),_0x541a17),this[_0x4aeb2e(0xba)][_0x4aeb2e(0xe1)][_0x4aeb2e(0xd5)](_0x541a17);}),this[_0x3f0c71(0xde)](_0x1a94e9),_0x1c5aa2&&_0x1c5aa2[_0x3f0c71(0xc2)]&&this[_0x3f0c71(0xef)](_0x1a94e9,_0x1c5aa2[_0x3f0c71(0xd3)]||0x0),_0x1c5aa2&&_0x1c5aa2[_0x3f0c71(0xb7)]&&this[_0x3f0c71(0xba)][_0x3f0c71(0xc9)]){let _0x132d0c=_0x59a4ef(_0x3f0c71(0xe7),this[_0x3f0c71(0xba)][_0x3f0c71(0xc9)],_0x1a94e9);for(;_0x132d0c;)_0x350869(_0x132d0c),_0x132d0c=_0x132d0c[_0x3f0c71(0xc0)];}return{'parsedContent':_0x1a94e9,'newNodeIds':this[_0x3f0c71(0xba)][_0x3f0c71(0xe1)],'modifiedNodeIds':this[_0x3f0c71(0xba)][_0x3f0c71(0xcf)],'removedNodeIds':this[_0x3f0c71(0xba)][_0x3f0c71(0xad)]};}[_0x3717cf(0xaf)](_0x26a052,_0x16cf0c,_0x290052){const _0x1f2727=_0x3717cf;for(const _0x2addd8 of _0x16cf0c){const _0xec87b5=this[_0x1f2727(0xca)](_0x2addd8);_0x596360(_0x2addd8,_0x1f2727(0xe7),_0xec87b5),this[_0x1f2727(0xba)][_0x1f2727(0xe1)][_0x1f2727(0xd5)](_0xec87b5),this[_0x1f2727(0xba)][_0x1f2727(0xc9)]=_0xec87b5;}const _0x3089a0=_0x1f2727(0xda)===_0x290052||_0x1f2727(0xb3)===_0x290052?_0x16cf0c[_0x1f2727(0xb6)]():_0x16cf0c;for(const _0x453e7c of _0x3089a0)_0x1475e4(_0x26a052,_0x453e7c,_0x290052);}[_0x3717cf(0xcc)](_0x551aa3,_0x455cb1){const _0x4cdb58=_0x3717cf;if(!_0x551aa3)return;if(_0x9ead59(_0x551aa3,_0x455cb1))return;const _0x1fca30=this[_0x4cdb58(0xca)](_0x551aa3);_0x596360(_0x455cb1,_0x4cdb58(0xe7),_0x1fca30),this[_0x4cdb58(0xba)][_0x4cdb58(0xcf)][_0x4cdb58(0xd5)](_0x1fca30),this[_0x4cdb58(0xba)][_0x4cdb58(0xc9)]=_0x1fca30,_0x426237(_0x551aa3,_0x455cb1[_0x4cdb58(0xdd)](!0x0));}[_0x3717cf(0xbb)](_0xb4b915,_0x263b54,_0x5536d0){const _0x713f4f=_0x3717cf,_0x2a252e=this[_0x713f4f(0xab)](_0xb4b915,!0x1);if(_0x2a252e){const _0x4857d9=this[_0x713f4f(0xb9)](_0x2a252e),_0x41f844=_0x59a4ef(_0x713f4f(0xe7),_0x4857d9,_0x5536d0);if(_0x41f844)return[_0x41f844,_0x713f4f(0xb3)];this[_0x713f4f(0xba)][_0x713f4f(0xe2)][_0x713f4f(0xd5)](_0x4857d9);}const _0xeae6d4=this[_0x713f4f(0xd9)](_0xb4b915,!0x1);if(_0xeae6d4){const _0x47cbc2=this[_0x713f4f(0xb9)](_0xeae6d4),_0x38a8c8=_0x59a4ef(_0x713f4f(0xe7),_0x47cbc2,_0x5536d0);if(_0x38a8c8)return[_0x38a8c8,_0x713f4f(0xb0)];this[_0x713f4f(0xba)][_0x713f4f(0xe2)][_0x713f4f(0xd5)](_0x47cbc2);}return _0x263b54?_0xb4b915[_0x713f4f(0xea)]?this[_0x713f4f(0xbd)](_0xb4b915,_0x5536d0):[_0x5536d0[_0x713f4f(0xb1)][_0x5536d0[_0x713f4f(0xb1)][_0x713f4f(0xe8)]-0x1],_0x713f4f(0xb3)]:[_0x5536d0[_0x713f4f(0xb1)][0x0],_0x713f4f(0xb0)];}[_0x3717cf(0xbd)](_0x54ab17,_0x480bf3){const _0x5a907f=_0x3717cf,_0x174639=[],_0x566f99=this[_0x5a907f(0xab)](_0x54ab17,!0x0);if(_0x566f99){const _0x171660=this[_0x5a907f(0xb9)](_0x566f99),_0x219e3e=_0x59a4ef(_0x5a907f(0xe7),_0x171660,_0x480bf3);_0x219e3e&&_0x174639[_0x5a907f(0xd5)]([_0x219e3e,_0x5a907f(0xb3)]);}const _0x1a0201=this[_0x5a907f(0xd9)](_0x54ab17,!0x0);if(_0x1a0201){const _0x4dec01=this[_0x5a907f(0xb9)](_0x1a0201),_0x3ccd77=_0x59a4ef(_0x5a907f(0xe7),_0x4dec01,_0x480bf3);_0x3ccd77&&_0x174639[_0x5a907f(0xd5)]([_0x3ccd77,_0x5a907f(0xb0)]);}if(_0x174639[_0x5a907f(0xe8)]>0x1)return _0x50c1ba(_0x174639[0x0][0x0])<=_0x50c1ba(_0x174639[0x1][0x0])?_0x174639[0x0]:_0x174639[0x1];return 0x1===_0x174639[_0x5a907f(0xe8)]?_0x174639[0x0]:[_0x480bf3[_0x5a907f(0xb4)],_0x5a907f(0xb3)];}[_0x3717cf(0xd9)](_0xadd901,_0x1d6c30){const _0x23b88e=_0x3717cf;let _0xf04c5b=_0xadd901[_0x23b88e(0xea)],_0x454723=null,_0x3e9d3c=!0x1;for(;_0xf04c5b;){if(_0x347e4c(_0xf04c5b)){if(this[_0x23b88e(0xd6)](_0xf04c5b)&&(_0x454723=_0xf04c5b),this[_0x23b88e(0xdf)](_0xf04c5b)&&_0x1d6c30&&!_0x3e9d3c){_0x3e9d3c=!0x0,_0xf04c5b=_0xf04c5b[_0x23b88e(0xea)];continue;}break;}const _0x274d0c=_0x37f6b9(_0xf04c5b,_0x23b88e(0xe7));if(_0x274d0c&&_0x23b88e(0xcd)!==_0x274d0c&&this[_0x23b88e(0xbc)][_0x23b88e(0xd2)](_0x274d0c)){_0x454723=_0xf04c5b;break;}_0xf04c5b=_0xf04c5b[_0x23b88e(0xea)];}return _0x454723;}[_0x3717cf(0xab)](_0x40c681,_0x2178b3){const _0x278bac=_0x3717cf;let _0x5af4f8=_0x40c681[_0x278bac(0xec)],_0x3af02a=null,_0x6ce45a=!0x1;for(;_0x5af4f8;){if(_0x347e4c(_0x5af4f8)){if(this[_0x278bac(0xd6)](_0x5af4f8)&&(_0x3af02a=_0x5af4f8),this[_0x278bac(0xdf)](_0x5af4f8)&&_0x2178b3&&!_0x6ce45a){_0x6ce45a=!0x0,_0x5af4f8=_0x5af4f8[_0x278bac(0xec)];continue;}break;}const _0x198403=_0x37f6b9(_0x5af4f8,_0x278bac(0xe7));if(_0x198403&&_0x278bac(0xcd)!==_0x198403&&this[_0x278bac(0xbc)][_0x278bac(0xd2)](_0x198403)){_0x3af02a=_0x5af4f8;break;}_0x5af4f8=_0x5af4f8[_0x278bac(0xec)];}return _0x3af02a;}[_0x3717cf(0xb2)](_0xe81c60){const _0x3a9e0d=_0x3717cf;_0x1487ed(_0xe81c60)&&_0x55152f(_0x3a9e0d(0xe7),null,_0xe81c60)[_0x3a9e0d(0xb8)](_0x2316ae=>{const _0x355b9c=_0x3a9e0d;if(this[_0x355b9c(0xe3)](_0x2316ae)&&!this[_0x355b9c(0xdc)](_0x2316ae)){const _0x3dd596=_0x37f6b9(_0x2316ae,_0x355b9c(0xe7));_0x596360(_0x2316ae,_0x355b9c(0xe6),_0x3dd596),_0x596360(_0x2316ae,_0x355b9c(0xe7),null);}});}[_0x3717cf(0xb9)](_0x3e794d){const _0x53647b=_0x3717cf;if(!_0x3e794d)return null;if(_0x1487ed(_0x3e794d))return _0x37f6b9(_0x3e794d,_0x53647b(0xe7));if(_0x347e4c(_0x3e794d)){const _0x56f79d=_0x5b1f1d(_0x3e794d)[_0x53647b(0xd7)](/removed[\s*-]data-id="([^"]+)"/);if(_0x56f79d&&_0x56f79d[0x1])return _0x56f79d[0x1];}return null;}[_0x3717cf(0xe5)](_0x4af462){const _0x52194c=_0x3717cf;if(_0x347e4c(_0x4af462)){const _0x233324=_0x5b1f1d(_0x4af462)[_0x52194c(0xd7)](/removed[\s*-]data-id="([^"]+)"/);_0x233324&&_0x233324[0x1]&&this[_0x52194c(0xba)][_0x52194c(0xad)][_0x52194c(0xd5)](_0x233324[0x1]);}}[_0x3717cf(0xca)](_0x41c273){const _0x483382=_0x3717cf;return this[_0x483382(0xe3)](_0x41c273)?_0x37f6b9(_0x41c273,_0x483382(0xe7)):this[_0x483382(0xee)]();}[_0x3717cf(0xde)](_0x22162e){const _0x51b3d6=_0x3717cf;_0x352743(_0x22162e)[_0x51b3d6(0xb5)](_0xcc8ea3=>this[_0x51b3d6(0xd6)](_0xcc8ea3)||this[_0x51b3d6(0xdf)](_0xcc8ea3))[_0x51b3d6(0xb8)](_0x1f01a0=>{_0x26a502(_0x1f01a0);});}[_0x3717cf(0xc5)](_0x57c7d0){const _0x4379fe=_0x3717cf,_0x447ec6=_0x57c7d0[_0x4379fe(0xb1)],_0x3c1638=_0x447ec6[_0x447ec6[_0x4379fe(0xe8)]-0x1];_0x3c1638&&_0x1487ed(_0x3c1638)&&_0x596360(_0x3c1638,_0x4379fe(0xc6),_0x4379fe(0xbf));}[_0x3717cf(0xef)](_0x28b899,_0x473228){const _0x450d3f=_0x3717cf,_0x20896a=_0x59a4ef(_0x450d3f(0xc6),_0x450d3f(0xbf),_0x28b899);if(!_0x20896a)return;const _0x24a010=_0x14c991(_0x20896a)[_0x450d3f(0xaa)](0x0,-0x1),_0x238952=_0x24a010[_0x450d3f(0xe8)];let _0x3f4f73=_0x20896a;if(_0x238952>_0x473228){let _0x2e73ac=_0x238952,_0x3567d6=null;for(;_0x2e73ac>_0x473228&&_0x2e73ac>=0x0;)_0x2e73ac--,_0x3567d6=_0x24a010[_0x2e73ac];_0x3567d6&&(_0x3f4f73=_0x3567d6,_0x596360(_0x20896a,_0x450d3f(0xc6),null),_0x596360(_0x3567d6,_0x450d3f(0xc6),_0x450d3f(0xbf)));}else{if(_0x238952<_0x473228){let _0x4d1fef=_0x238952,_0x431915=_0x20896a;for(;_0x4d1fef<_0x473228;){const _0x40f40e=_0x431915[_0x450d3f(0xb1)][_0x450d3f(0xb5)](_0x5f8265=>_0x1487ed(_0x5f8265));if(0x0===_0x40f40e[_0x450d3f(0xe8)])break;_0x4d1fef++,_0x431915=_0x40f40e[_0x40f40e[_0x450d3f(0xe8)]-0x1];}_0x431915&&(_0x3f4f73=_0x431915,_0x596360(_0x20896a,_0x450d3f(0xc6),null),_0x596360(_0x431915,_0x450d3f(0xc6),_0x450d3f(0xbf)));}}let _0x1aa20c=_0x3f4f73;for(;_0x1aa20c;){for(;_0x1aa20c[_0x450d3f(0xea)];)_0x1aa20c=_0x1aa20c[_0x450d3f(0xea)],_0x1487ed(_0x1aa20c)&&_0x596360(_0x1aa20c,_0x450d3f(0xc6),_0x450d3f(0xbf));_0x1aa20c=_0x1aa20c[_0x450d3f(0xc0)];}}[_0x3717cf(0xc4)](_0x35539d){const _0x4d57d4=_0x3717cf;return Boolean(_0x4d57d4(0xcd)===_0x37f6b9(_0x35539d,_0x4d57d4(0xe7)));}[_0x3717cf(0xe3)](_0x47eb55){const _0x5867f1=_0x3717cf;return Boolean((_0x37f6b9(_0x47eb55,_0x5867f1(0xe7))||'')[_0x5867f1(0xe8)]>0x0&&_0x5867f1(0xcd)!==_0x37f6b9(_0x47eb55,_0x5867f1(0xe7)));}[_0x3717cf(0xd6)](_0x5aafda){const _0x3cec6a=_0x3717cf;return!!_0x5aafda&&Boolean(_0x347e4c(_0x5aafda)&&_0x5b1f1d(_0x5aafda)[_0x3cec6a(0xd7)](/removed[\s*-]data-id="[^"]+"/));}[_0x3717cf(0xdc)](_0x3efff2){const _0x448533=_0x3717cf;let _0x3f435d=_0x3efff2[_0x448533(0xc0)];for(;_0x3f435d;){if(_0x37f6b9(_0x3f435d,_0x448533(0xe6)))return!0x0;_0x3f435d=_0x3f435d[_0x448533(0xc0)];}return!0x1;}[_0x3717cf(0xdf)](_0x42a6dc){const _0x300134=_0x3717cf;return Boolean(_0x347e4c(_0x42a6dc)&&_0x5b1f1d(_0x42a6dc)[_0x300134(0xd7)](/\s*existing[\s*-](content|document)\s*/g));}}
|
|
23
|
+
const _0x2a17e0=_0x240a;(function(_0x2cdc2c,_0x25b7c9){const _0x2fe4de=_0x240a,_0xd54ff8=_0x2cdc2c();while(!![]){try{const _0x5cc84e=parseInt(_0x2fe4de(0x17b))/0x1*(parseInt(_0x2fe4de(0x187))/0x2)+-parseInt(_0x2fe4de(0x196))/0x3*(-parseInt(_0x2fe4de(0x19c))/0x4)+-parseInt(_0x2fe4de(0x1ac))/0x5*(parseInt(_0x2fe4de(0x17f))/0x6)+-parseInt(_0x2fe4de(0x194))/0x7*(parseInt(_0x2fe4de(0x1bb))/0x8)+parseInt(_0x2fe4de(0x1be))/0x9+-parseInt(_0x2fe4de(0x1b3))/0xa*(parseInt(_0x2fe4de(0x179))/0xb)+parseInt(_0x2fe4de(0x1a3))/0xc;if(_0x5cc84e===_0x25b7c9)break;else _0xd54ff8['push'](_0xd54ff8['shift']());}catch(_0x565fae){_0xd54ff8['push'](_0xd54ff8['shift']());}}}(_0x3602,0x8cbf1));function _0x3602(){const _0x3a95e4=['_generateUid','_touchedNodesState','invalidIds','_storeDeletedElementIds','5502520pyKDYt','removedIds','markUnstableElementsDepth','newIds','previousSibling','match','lastChild','19420YByhTU','beforebegin','data-wrapped-id','_isExistingContentComment','merge','_findPrevElementWithDataId','map','_markUnstableElements','8549344DHVexC','has','_existingDataIds','3408345cucTYP','_insertNodes','_markLastTagElementUnstable','nextSibling','1991gLxvfu','slice','952807YxCVvP','nodeType','_getNodeDataId','_isNewNode','6WxyDAA','reverse','modifiedIds','childNodes','markUnstableElements','_findReferenceNode','includes','_markWrappedElements','2QEVQPd','cloneNode','splice','cutAfterLastChange','_findNextElementWithDataId','new-element','true','_isExistingNode','trim','forEach','_findFallbackReferenceNode','_replaceNode','lastTouchedId','7mcuQzy','replaceRemovedWith','69VDwxMb','_hasWrappedParent','_getUid','afterend','parentNode','data-removed','12136yYJlYJ','filter','data-unstable','_isDelNode','indexOf','afterbegin','length','20350524WutKRF','data-id','push','_removeSpecialComments','from'];_0x3602=function(){return _0x3a95e4;};return _0x3602();}import{ObservableMixin as _0x518bf3,uid as _0x214f44}from'ckeditor5/src/utils.js';function _0x240a(_0x32fc20,_0x1803f6){const _0x36022d=_0x3602();return _0x240a=function(_0x240a69,_0x54909d){_0x240a69=_0x240a69-0x178;let _0x3a0951=_0x36022d[_0x240a69];return _0x3a0951;},_0x240a(_0x32fc20,_0x1803f6);}import{findAllByAttribute as _0x28f73f,findByAttribute as _0x115259,getAttribute as _0x385c72,isComment as _0x295072,isTag as _0x4fda30,insertElement as _0x3c374e,moveElement as _0x270037,removeElement as _0x27dac7,replaceElement as _0x329523,serialize as _0x13e2ae,setAttribute as _0x38d089,clone as _0x103b62,findAllComments as _0x258c14,getParents as _0x3b63f5,getNodeNestingLevel as _0x1eea67,areNodesSame as _0x3ef93a,removeElementsAfter as _0x256f25}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x518bf3(){[_0x2a17e0(0x1a8)];[_0x2a17e0(0x1a9)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x2a17e0(0x1bd)]=new Set();constructor(_0xb2aa59){const _0x5a5ded=_0x2a17e0;super(),this[_0x5a5ded(0x1a8)]=_0xb2aa59||_0x214f44;}[_0x2a17e0(0x1b7)](_0x200d8a,_0x13995a,_0x589529){const _0x538631=_0x2a17e0,_0x5b9aee=_0x103b62(_0x200d8a);if(0x0===_0x13995a[_0x538631(0x182)][_0x538631(0x1a2)]){const _0x3af279=[];return _0x28f73f(_0x538631(0x1a4),_0x538631(0x18c),_0x5b9aee)[_0x538631(0x190)](_0x2c63ad=>{const _0x1ace27=_0x538631,_0x509cfc=this[_0x1ace27(0x1a8)]();_0x38d089(_0x2c63ad,_0x1ace27(0x1a4),_0x509cfc),_0x3af279[_0x1ace27(0x1a5)](_0x509cfc);}),this[_0x538631(0x1a6)](_0x5b9aee),{'parsedContent':_0x5b9aee,'newNodeIds':_0x3af279,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x589529&&_0x589529[_0x538631(0x183)]&&this[_0x538631(0x1c0)](_0x5b9aee),this[_0x538631(0x1a9)][_0x538631(0x1af)]=[],this[_0x538631(0x1a9)][_0x538631(0x181)]=[],this[_0x538631(0x1a9)][_0x538631(0x1ad)]=[],this[_0x538631(0x1a9)][_0x538631(0x1aa)]=[],this[_0x538631(0x1a9)][_0x538631(0x193)]=null,this[_0x538631(0x1bd)]=new Set(_0x28f73f(_0x538631(0x1a4),null,_0x13995a)[_0x538631(0x1b9)](_0x3cf117=>_0x385c72(_0x3cf117,_0x538631(0x1a4)))[_0x538631(0x19d)](_0x558677=>!!_0x558677));let _0x598bca=-0x1,_0x648cd6=!0x1;const _0x5501af=_0x5b9aee[_0x538631(0x182)],_0xec6453=Array[_0x538631(0x1a7)](_0x5501af)[_0x538631(0x19d)](_0x4775d5=>!(0x3===_0x4775d5[_0x538631(0x17c)]&&''===_0x13e2ae(_0x4775d5)[_0x538631(0x18f)]())),_0x5ebf01=_0xec6453[_0x538631(0x1a2)];for(let _0x307fbb=0x0;_0x307fbb<_0x5ebf01;_0x307fbb++){const _0x2f50e4=_0xec6453[_0x307fbb],_0x5e3968=_0xec6453[_0x307fbb+0x1];if(this[_0x538631(0x17e)](_0x2f50e4)){if(-0x1===_0x598bca&&(_0x598bca=_0x307fbb),this[_0x538631(0x186)](_0x2f50e4),!this[_0x538631(0x17e)](_0x5e3968)){const [_0x38e19f,_0x3e2a1e]=this[_0x538631(0x184)](_0x2f50e4,_0x648cd6,_0x13995a);if(_0x38e19f){const _0x546de7=Array[_0x538631(0x1a7)](_0xec6453)[_0x538631(0x17a)](_0x598bca,_0x307fbb+0x1);this[_0x538631(0x1bf)](_0x38e19f,_0x546de7,_0x3e2a1e),_0x598bca=-0x1;}}}else{if(this[_0x538631(0x1b6)](_0x2f50e4))_0x648cd6=!0x0;else{if(this[_0x538631(0x18e)](_0x2f50e4)){const _0xe788c1=_0x385c72(_0x2f50e4,_0x538631(0x1a4));if(_0xe788c1&&this[_0x538631(0x1bd)][_0x538631(0x1bc)](_0xe788c1)){const _0x534f4a=_0x115259(_0x538631(0x1a4),_0xe788c1,_0x13995a);this[_0x538631(0x192)](_0x534f4a,_0x2f50e4);}if(this[_0x538631(0x1a9)][_0x538631(0x1ad)][_0x538631(0x185)](_0xe788c1)){const _0x721efc=this[_0x538631(0x1a9)][_0x538631(0x1ad)][_0x538631(0x1a0)](_0xe788c1);this[_0x538631(0x1a9)][_0x538631(0x1ad)][_0x538631(0x189)](_0x721efc,0x1);}}else{if(this[_0x538631(0x19f)](_0x2f50e4)){const _0x33254a=_0x385c72(_0x2f50e4,_0x538631(0x1a4));this[_0x538631(0x1a9)][_0x538631(0x181)][_0x538631(0x185)](_0x33254a)||this[_0x538631(0x1ab)](_0x2f50e4);}}}}}for(const _0x280276 of this[_0x538631(0x1a9)][_0x538631(0x1ad)]){const _0x10faa0=_0x115259(_0x538631(0x1a4),_0x280276,_0x13995a);if(_0x10faa0){if(_0x589529&&_0x589529[_0x538631(0x195)]){this[_0x538631(0x1a9)][_0x538631(0x193)]=_0x280276;const _0x4f2708=_0x589529[_0x538631(0x195)][_0x538631(0x188)](!0x0);_0x38d089(_0x4f2708,_0x538631(0x1a4),_0x280276),_0x38d089(_0x4f2708,_0x538631(0x19b),_0x538631(0x18d)),_0x329523(_0x10faa0,_0x4f2708);}else _0x27dac7(_0x10faa0);}}if(_0x28f73f(_0x538631(0x1b5),null,_0x13995a)[_0x538631(0x190)](_0x501766=>{const _0x57141b=_0x538631,_0x6843ff=_0x385c72(_0x501766,_0x57141b(0x1b5)),_0x4e9d2f=_0x115259(_0x57141b(0x1a4),_0x6843ff,_0x13995a);_0x4e9d2f&&_0x270037(_0x4e9d2f,_0x501766);}),_0x28f73f(_0x538631(0x1a4),_0x538631(0x18c),_0x13995a)[_0x538631(0x190)](_0x197dad=>{const _0x1d1a48=_0x538631,_0x2f4366=this[_0x1d1a48(0x198)](_0x197dad);_0x38d089(_0x197dad,_0x1d1a48(0x1a4),_0x2f4366),this[_0x1d1a48(0x1a9)][_0x1d1a48(0x1af)][_0x1d1a48(0x1a5)](_0x2f4366);}),this[_0x538631(0x1a6)](_0x13995a),_0x589529&&_0x589529[_0x538631(0x183)]&&this[_0x538631(0x1ba)](_0x13995a,_0x589529[_0x538631(0x1ae)]||0x0),_0x589529&&_0x589529[_0x538631(0x18a)]&&this[_0x538631(0x1a9)][_0x538631(0x193)]){let _0x1de819=_0x115259(_0x538631(0x1a4),this[_0x538631(0x1a9)][_0x538631(0x193)],_0x13995a);for(;_0x1de819;)_0x256f25(_0x1de819),_0x1de819=_0x1de819[_0x538631(0x19a)];}return{'parsedContent':_0x13995a,'newNodeIds':this[_0x538631(0x1a9)][_0x538631(0x1af)],'modifiedNodeIds':this[_0x538631(0x1a9)][_0x538631(0x181)],'removedNodeIds':this[_0x538631(0x1a9)][_0x538631(0x1ad)]};}[_0x2a17e0(0x1bf)](_0x23191d,_0x227251,_0x1555b5){const _0xb4bee4=_0x2a17e0;for(const _0x4d8577 of _0x227251){const _0x187702=this[_0xb4bee4(0x198)](_0x4d8577);_0x38d089(_0x4d8577,_0xb4bee4(0x1a4),_0x187702),this[_0xb4bee4(0x1a9)][_0xb4bee4(0x1af)][_0xb4bee4(0x1a5)](_0x187702),this[_0xb4bee4(0x1a9)][_0xb4bee4(0x193)]=_0x187702;}const _0x4deeba=_0xb4bee4(0x1a1)===_0x1555b5||_0xb4bee4(0x199)===_0x1555b5?_0x227251[_0xb4bee4(0x180)]():_0x227251;for(const _0x376652 of _0x4deeba)_0x3c374e(_0x23191d,_0x376652,_0x1555b5);}[_0x2a17e0(0x192)](_0x5db8ca,_0x175354){const _0x33cc27=_0x2a17e0;if(!_0x5db8ca)return;if(_0x3ef93a(_0x5db8ca,_0x175354))return;const _0x2426b2=this[_0x33cc27(0x198)](_0x5db8ca);_0x38d089(_0x175354,_0x33cc27(0x1a4),_0x2426b2),this[_0x33cc27(0x1a9)][_0x33cc27(0x181)][_0x33cc27(0x1a5)](_0x2426b2),this[_0x33cc27(0x1a9)][_0x33cc27(0x193)]=_0x2426b2,_0x329523(_0x5db8ca,_0x175354[_0x33cc27(0x188)](!0x0));}[_0x2a17e0(0x184)](_0x4271a5,_0x4f4cef,_0xc9e842){const _0x52a4ca=_0x2a17e0,_0x436603=this[_0x52a4ca(0x1b8)](_0x4271a5,!0x1);if(_0x436603){const _0x395fbf=this[_0x52a4ca(0x17d)](_0x436603),_0x56361f=_0x115259(_0x52a4ca(0x1a4),_0x395fbf,_0xc9e842);if(_0x56361f)return[_0x56361f,_0x52a4ca(0x199)];this[_0x52a4ca(0x1a9)][_0x52a4ca(0x1aa)][_0x52a4ca(0x1a5)](_0x395fbf);}const _0x48332a=this[_0x52a4ca(0x18b)](_0x4271a5,!0x1);if(_0x48332a){const _0x3a958e=this[_0x52a4ca(0x17d)](_0x48332a),_0x6c672c=_0x115259(_0x52a4ca(0x1a4),_0x3a958e,_0xc9e842);if(_0x6c672c)return[_0x6c672c,_0x52a4ca(0x1b4)];this[_0x52a4ca(0x1a9)][_0x52a4ca(0x1aa)][_0x52a4ca(0x1a5)](_0x3a958e);}return _0x4f4cef?_0x4271a5[_0x52a4ca(0x178)]?this[_0x52a4ca(0x191)](_0x4271a5,_0xc9e842):[_0xc9e842[_0x52a4ca(0x182)][_0xc9e842[_0x52a4ca(0x182)][_0x52a4ca(0x1a2)]-0x1],_0x52a4ca(0x199)]:[_0xc9e842[_0x52a4ca(0x182)][0x0],_0x52a4ca(0x1b4)];}[_0x2a17e0(0x191)](_0x58a6e7,_0x44db15){const _0x506d81=_0x2a17e0,_0x25a3c3=[],_0x51f5c0=this[_0x506d81(0x1b8)](_0x58a6e7,!0x0);if(_0x51f5c0){const _0xd6419f=this[_0x506d81(0x17d)](_0x51f5c0),_0x105272=_0x115259(_0x506d81(0x1a4),_0xd6419f,_0x44db15);_0x105272&&_0x25a3c3[_0x506d81(0x1a5)]([_0x105272,_0x506d81(0x199)]);}const _0x4b6676=this[_0x506d81(0x18b)](_0x58a6e7,!0x0);if(_0x4b6676){const _0x4a5a87=this[_0x506d81(0x17d)](_0x4b6676),_0x5121a2=_0x115259(_0x506d81(0x1a4),_0x4a5a87,_0x44db15);_0x5121a2&&_0x25a3c3[_0x506d81(0x1a5)]([_0x5121a2,_0x506d81(0x1b4)]);}if(_0x25a3c3[_0x506d81(0x1a2)]>0x1)return _0x1eea67(_0x25a3c3[0x0][0x0])<=_0x1eea67(_0x25a3c3[0x1][0x0])?_0x25a3c3[0x0]:_0x25a3c3[0x1];return 0x1===_0x25a3c3[_0x506d81(0x1a2)]?_0x25a3c3[0x0]:[_0x44db15[_0x506d81(0x1b2)],_0x506d81(0x199)];}[_0x2a17e0(0x18b)](_0x5dbf0c,_0x481f71){const _0x3a012b=_0x2a17e0;let _0x4e5ceb=_0x5dbf0c[_0x3a012b(0x178)],_0xae0b9b=null,_0x3e6caf=!0x1;for(;_0x4e5ceb;){if(_0x295072(_0x4e5ceb)){if(this[_0x3a012b(0x19f)](_0x4e5ceb)&&(_0xae0b9b=_0x4e5ceb),this[_0x3a012b(0x1b6)](_0x4e5ceb)&&_0x481f71&&!_0x3e6caf){_0x3e6caf=!0x0,_0x4e5ceb=_0x4e5ceb[_0x3a012b(0x178)];continue;}break;}const _0x50d8a2=_0x385c72(_0x4e5ceb,_0x3a012b(0x1a4));if(_0x50d8a2&&_0x3a012b(0x18c)!==_0x50d8a2&&this[_0x3a012b(0x1bd)][_0x3a012b(0x1bc)](_0x50d8a2)){_0xae0b9b=_0x4e5ceb;break;}_0x4e5ceb=_0x4e5ceb[_0x3a012b(0x178)];}return _0xae0b9b;}[_0x2a17e0(0x1b8)](_0xebea51,_0x10dba8){const _0x520102=_0x2a17e0;let _0x269747=_0xebea51[_0x520102(0x1b0)],_0x2ef95d=null,_0x1bcf6b=!0x1;for(;_0x269747;){if(_0x295072(_0x269747)){if(this[_0x520102(0x19f)](_0x269747)&&(_0x2ef95d=_0x269747),this[_0x520102(0x1b6)](_0x269747)&&_0x10dba8&&!_0x1bcf6b){_0x1bcf6b=!0x0,_0x269747=_0x269747[_0x520102(0x1b0)];continue;}break;}const _0x465982=_0x385c72(_0x269747,_0x520102(0x1a4));if(_0x465982&&_0x520102(0x18c)!==_0x465982&&this[_0x520102(0x1bd)][_0x520102(0x1bc)](_0x465982)){_0x2ef95d=_0x269747;break;}_0x269747=_0x269747[_0x520102(0x1b0)];}return _0x2ef95d;}[_0x2a17e0(0x186)](_0x11ab4a){const _0x5df342=_0x2a17e0;_0x4fda30(_0x11ab4a)&&_0x28f73f(_0x5df342(0x1a4),null,_0x11ab4a)[_0x5df342(0x190)](_0x4d989f=>{const _0x18042f=_0x5df342;if(this[_0x18042f(0x18e)](_0x4d989f)&&!this[_0x18042f(0x197)](_0x4d989f)){const _0x47b0ad=_0x385c72(_0x4d989f,_0x18042f(0x1a4));_0x38d089(_0x4d989f,_0x18042f(0x1b5),_0x47b0ad),_0x38d089(_0x4d989f,_0x18042f(0x1a4),null);}});}[_0x2a17e0(0x17d)](_0x16c366){const _0x572e82=_0x2a17e0;if(!_0x16c366)return null;if(_0x4fda30(_0x16c366))return _0x385c72(_0x16c366,_0x572e82(0x1a4));if(_0x295072(_0x16c366)){const _0x1cbc93=_0x13e2ae(_0x16c366)[_0x572e82(0x1b1)](/removed[\s*-]data-id="([^"]+)"/);if(_0x1cbc93&&_0x1cbc93[0x1])return _0x1cbc93[0x1];}return null;}[_0x2a17e0(0x1ab)](_0x15add7){const _0x22dd8f=_0x2a17e0;if(_0x295072(_0x15add7)){const _0x16568c=_0x13e2ae(_0x15add7)[_0x22dd8f(0x1b1)](/removed[\s*-]data-id="([^"]+)"/);_0x16568c&&_0x16568c[0x1]&&this[_0x22dd8f(0x1a9)][_0x22dd8f(0x1ad)][_0x22dd8f(0x1a5)](_0x16568c[0x1]);}}[_0x2a17e0(0x198)](_0x576900){const _0x513ed0=_0x2a17e0;return this[_0x513ed0(0x18e)](_0x576900)?_0x385c72(_0x576900,_0x513ed0(0x1a4)):this[_0x513ed0(0x1a8)]();}[_0x2a17e0(0x1a6)](_0x466c05){const _0x3e1806=_0x2a17e0;_0x258c14(_0x466c05)[_0x3e1806(0x19d)](_0x169503=>this[_0x3e1806(0x19f)](_0x169503)||this[_0x3e1806(0x1b6)](_0x169503))[_0x3e1806(0x190)](_0xf7e188=>{_0x27dac7(_0xf7e188);});}[_0x2a17e0(0x1c0)](_0x6bec86){const _0x19d84d=_0x2a17e0,_0x103ce5=_0x6bec86[_0x19d84d(0x182)],_0x11aa99=_0x103ce5[_0x103ce5[_0x19d84d(0x1a2)]-0x1];_0x11aa99&&_0x4fda30(_0x11aa99)&&_0x38d089(_0x11aa99,_0x19d84d(0x19e),_0x19d84d(0x18d));}[_0x2a17e0(0x1ba)](_0x1541cd,_0x517bc8){const _0x290b99=_0x2a17e0,_0x7d8c06=_0x115259(_0x290b99(0x19e),_0x290b99(0x18d),_0x1541cd);if(!_0x7d8c06)return;const _0x1be77c=_0x3b63f5(_0x7d8c06)[_0x290b99(0x17a)](0x0,-0x1),_0x43a795=_0x1be77c[_0x290b99(0x1a2)];let _0x220964=_0x7d8c06;if(_0x43a795>_0x517bc8){let _0x2119a0=_0x43a795,_0x4eafa7=null;for(;_0x2119a0>_0x517bc8&&_0x2119a0>=0x0;)_0x2119a0--,_0x4eafa7=_0x1be77c[_0x2119a0];_0x4eafa7&&(_0x220964=_0x4eafa7,_0x38d089(_0x7d8c06,_0x290b99(0x19e),null),_0x38d089(_0x4eafa7,_0x290b99(0x19e),_0x290b99(0x18d)));}else{if(_0x43a795<_0x517bc8){let _0x24db8e=_0x43a795,_0x545f6f=_0x7d8c06;for(;_0x24db8e<_0x517bc8;){const _0x8227c9=_0x545f6f[_0x290b99(0x182)][_0x290b99(0x19d)](_0x26c610=>_0x4fda30(_0x26c610));if(0x0===_0x8227c9[_0x290b99(0x1a2)])break;_0x24db8e++,_0x545f6f=_0x8227c9[_0x8227c9[_0x290b99(0x1a2)]-0x1];}_0x545f6f&&(_0x220964=_0x545f6f,_0x38d089(_0x7d8c06,_0x290b99(0x19e),null),_0x38d089(_0x545f6f,_0x290b99(0x19e),_0x290b99(0x18d)));}}let _0x5654f7=_0x220964;for(;_0x5654f7;){for(;_0x5654f7[_0x290b99(0x178)];)_0x5654f7=_0x5654f7[_0x290b99(0x178)],_0x4fda30(_0x5654f7)&&_0x38d089(_0x5654f7,_0x290b99(0x19e),_0x290b99(0x18d));_0x5654f7=_0x5654f7[_0x290b99(0x19a)];}}[_0x2a17e0(0x17e)](_0x1d59b4){const _0x582e5c=_0x2a17e0;return Boolean(_0x582e5c(0x18c)===_0x385c72(_0x1d59b4,_0x582e5c(0x1a4)));}[_0x2a17e0(0x18e)](_0x118445){const _0x139d1e=_0x2a17e0;return Boolean((_0x385c72(_0x118445,_0x139d1e(0x1a4))||'')[_0x139d1e(0x1a2)]>0x0&&_0x139d1e(0x18c)!==_0x385c72(_0x118445,_0x139d1e(0x1a4)));}[_0x2a17e0(0x19f)](_0x2e4621){const _0x259e2d=_0x2a17e0;return!!_0x2e4621&&Boolean(_0x295072(_0x2e4621)&&_0x13e2ae(_0x2e4621)[_0x259e2d(0x1b1)](/removed[\s*-]data-id="[^"]+"/));}[_0x2a17e0(0x197)](_0x1faaee){const _0x2385af=_0x2a17e0;let _0x10dc9d=_0x1faaee[_0x2385af(0x19a)];for(;_0x10dc9d;){if(_0x385c72(_0x10dc9d,_0x2385af(0x1b5)))return!0x0;_0x10dc9d=_0x10dc9d[_0x2385af(0x19a)];}return!0x1;}[_0x2a17e0(0x1b6)](_0x90bbcf){const _0x31ad66=_0x2a17e0;return Boolean(_0x295072(_0x90bbcf)&&_0x13e2ae(_0x90bbcf)[_0x31ad66(0x1b1)](/\s*existing[\s*-](content|document)\s*/g));}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x338f80=_0x58d7;(function(_0x3f5295,_0x2d2f8a){const _0x18ec50=_0x58d7,_0x4fd339=_0x3f5295();while(!![]){try{const _0x1b8203=-parseInt(_0x18ec50(0xd1))/0x1*(-parseInt(_0x18ec50(0xd8))/0x2)+-parseInt(_0x18ec50(0xd3))/0x3+parseInt(_0x18ec50(0xdd))/0x4+-parseInt(_0x18ec50(0xdb))/0x5*(-parseInt(_0x18ec50(0xe0))/0x6)+parseInt(_0x18ec50(0xd0))/0x7*(parseInt(_0x18ec50(0xd4))/0x8)+-parseInt(_0x18ec50(0xd2))/0x9+-parseInt(_0x18ec50(0xd6))/0xa*(parseInt(_0x18ec50(0xd9))/0xb);if(_0x1b8203===_0x2d2f8a)break;else _0x4fd339['push'](_0x4fd339['shift']());}catch(_0x2d86be){_0x4fd339['push'](_0x4fd339['shift']());}}}(_0x3c8c,0xde0d9));import{ObservableMixin as _0x329772}from'ckeditor5/src/utils.js';function _0x3c8c(){const _0x2cec2a=['11PSnian','<dummy>','25sPMuYh','parse','4643980rPdBvz','</dummy>','_parseHTML','1273692rjDTWV','replace','children','parseAndNormalizeHTML','238hvbjkU','292993qOYRjr','7544196OLJqmp','2748924ELJMGS','297456asyGyQ','convertMarkdownToHTML','17014910KxBUhR','_m2html','6owYyZK'];_0x3c8c=function(){return _0x2cec2a;};return _0x3c8c();}import{MarkdownGfmMdToHtml as _0x2cd376}from'@ckeditor/ckeditor5-markdown-gfm';function _0x58d7(_0x31fad6,_0x1cac5e){const _0x3c8c1d=_0x3c8c();return _0x58d7=function(_0x58d7da,_0x5c0b35){_0x58d7da=_0x58d7da-0xd0;let _0x4dbc53=_0x3c8c1d[_0x58d7da];return _0x4dbc53;},_0x58d7(_0x31fad6,_0x1cac5e);}import{parse as _0x33dd4e}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x329772(){[_0x338f80(0xd7)];constructor(){const _0x3ec0d1=_0x338f80;super(),this[_0x3ec0d1(0xd7)]=new _0x2cd376();}[_0x338f80(0xd5)](_0x2f3214){const _0x434034=_0x338f80,_0x2d205d=this[_0x434034(0xd7)][_0x434034(0xdc)](_0x2f3214);return this[_0x434034(0xe3)](_0x2d205d);}[_0x338f80(0xe3)](_0xe25333){const _0x795905=_0x338f80;return this[_0x795905(0xdf)](_0xe25333);}[_0x338f80(0xdf)](_0x17aef7){const _0x2e7afb=_0x338f80,_0xd47c2e=_0x17aef7[_0x2e7afb(0xe1)](/^\t+/gm,'\x20')[_0x2e7afb(0xe1)](/\n*/g,'')[_0x2e7afb(0xe1)](/\s+/g,'\x20')[_0x2e7afb(0xe1)](/<[^>]*?$/g,''),_0x1f909a=_0x33dd4e(_0x2e7afb(0xda)+_0xd47c2e+_0x2e7afb(0xde));return _0x1f909a[_0x2e7afb(0xe2)]=_0x1f909a[_0x2e7afb(0xe2)][0x0][_0x2e7afb(0xe2)],_0x1f909a;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x30440e,_0x5bfb4f){var _0x4b08e7=_0x4e42,_0xc6420b=_0x30440e();while(!![]){try{var _0x334531=-parseInt(_0x4b08e7(0x1d8))/0x1*(-parseInt(_0x4b08e7(0x1da))/0x2)+-parseInt(_0x4b08e7(0x1d3))/0x3*(parseInt(_0x4b08e7(0x1d7))/0x4)+parseInt(_0x4b08e7(0x1db))/0x5*(-parseInt(_0x4b08e7(0x1d5))/0x6)+parseInt(_0x4b08e7(0x1d1))/0x7*(-parseInt(_0x4b08e7(0x1de))/0x8)+-parseInt(_0x4b08e7(0x1d2))/0x9+parseInt(_0x4b08e7(0x1cf))/0xa*(-parseInt(_0x4b08e7(0x1d6))/0xb)+parseInt(_0x4b08e7(0x1d4))/0xc;if(_0x334531===_0x5bfb4f)break;else _0xc6420b['push'](_0xc6420b['shift']());}catch(_0x193196){_0xc6420b['push'](_0xc6420b['shift']());}}}(_0x3ef9,0xec7ca));function _0x4e42(_0x44db80,_0xdf9dfc){var _0x3ef9b5=_0x3ef9();return _0x4e42=function(_0x4e42a5,_0x419c7b){_0x4e42a5=_0x4e42a5-0x1ce;var _0x8b0e7f=_0x3ef9b5[_0x4e42a5];return _0x8b0e7f;},_0x4e42(_0x44db80,_0xdf9dfc);}function _0x3ef9(){var _0x2c00ce=['15217368TVaHjB','ck-ai-disclaimer','20GFIHex','setTemplate','7RjCPmT','12048687xZtXBL','963636afWoFl','82767732muVXgd','6HLFpiM','8852151hPgJsO','20DCcLgv','154272GvdzTB','AI_DISCLAIMER_TEXT','12fJwSTD','1989185ISmYhy','div','ck-ai-disclaimer__content'];_0x3ef9=function(){return _0x2c00ce;};return _0x3ef9();}import{View as _0x6f7fcf}from'ckeditor5/src/ui.js';import{getTranslation as _0x57eceb}from'../../aicore/utils/common-translations.js';export class AIDisclaimerView extends _0x6f7fcf{constructor(_0x11f581){var _0x3fa31c=_0x4e42;super(_0x11f581),this[_0x3fa31c(0x1d0)]({'tag':_0x3fa31c(0x1dc),'attributes':{'class':['ck',_0x3fa31c(0x1ce)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x3fa31c(0x1dd)]},'children':[{'text':_0x57eceb(_0x11f581,_0x3fa31c(0x1d9))}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x220905=_0x5a60;(function(_0x46967a,_0x592f8e){const _0x19f1eb=_0x5a60,_0x4f788a=_0x46967a();while(!![]){try{const _0x11e74d=parseInt(_0x19f1eb(0x88))/0x1*(parseInt(_0x19f1eb(0xa8))/0x2)+parseInt(_0x19f1eb(0x87))/0x3+parseInt(_0x19f1eb(0xad))/0x4+parseInt(_0x19f1eb(0x8f))/0x5+-parseInt(_0x19f1eb(0x9a))/0x6*(parseInt(_0x19f1eb(0x98))/0x7)+-parseInt(_0x19f1eb(0x89))/0x8+parseInt(_0x19f1eb(0x86))/0x9*(parseInt(_0x19f1eb(0x92))/0xa);if(_0x11e74d===_0x592f8e)break;else _0x4f788a['push'](_0x4f788a['shift']());}catch(_0x135a93){_0x4f788a['push'](_0x4f788a['shift']());}}}(_0x26c5,0xce63a));function _0x26c5(){const _0x3298d3=['height','24px','128px',';\x20height:\x20','77042IfnDhy','140px','834OJWylx','left','ck-ai-skeleton__item','class','ck-ai-skeleton','44px','72px','250px','center','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','40px','align','150px','map','2185198wTOgtN','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','tag','div','_createSkeletonItems','5012800YxiPdV','width','9mCVfgr','417477beGhgh','1vCJXsv','12443080TzWLCR','fill','100%','right','width:\x20','setTemplate','5450230fgRZTa','attributes','88px','3555850PICTLV','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;'];_0x26c5=function(){return _0x3298d3;};return _0x26c5();}import{View as _0x53b711}from'ckeditor5/src/ui.js';export class AISkeletonView extends _0x53b711{constructor(_0x3ed856,_0x24d724){const _0x5dfad0=_0x5a60;super(_0x3ed856),this[_0x5dfad0(0x8e)]({'tag':_0x5dfad0(0xab),'attributes':{'class':['ck',_0x5dfad0(0x9e)]},'children':this[_0x5dfad0(0xac)](_0x24d724)});}[_0x220905(0xac)](_0x47bf61){const _0x3999ac=_0x220905,_0x465820=['ck',_0x3999ac(0x9c)];return _0x47bf61[_0x3999ac(0xa7)](_0xee0e78=>{const _0x42c18f=_0x3999ac;let _0xce6b2e='';switch(_0xee0e78[_0x42c18f(0x90)][_0x42c18f(0xa5)]){case _0x42c18f(0x8c):_0xce6b2e=_0x42c18f(0x93);break;case _0x42c18f(0xa2):_0xce6b2e=_0x42c18f(0xa9);break;case _0x42c18f(0x9b):_0xce6b2e=_0x42c18f(0xa3);}return{'tag':_0xee0e78[_0x42c18f(0xaa)],'attributes':{'class':[..._0x465820,_0xee0e78[_0x42c18f(0x90)][_0x42c18f(0x9d)]?_0xee0e78[_0x42c18f(0x90)][_0x42c18f(0x9d)]:''],'style':_0x42c18f(0x8d)+_0xee0e78[_0x42c18f(0x90)][_0x42c18f(0xae)]+_0x42c18f(0x97)+_0xee0e78[_0x42c18f(0x90)][_0x42c18f(0x94)]+';'+_0xce6b2e}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x220905(0xab),'attributes':{'width':_0x220905(0x8b),'height':_0x220905(0xa0),'align':_0x220905(0x8c)}},{'tag':_0x220905(0xab),'attributes':{'width':_0x220905(0xa1),'height':_0x220905(0xa4),'align':_0x220905(0x8c)}},{'tag':_0x220905(0xab),'attributes':{'width':_0x220905(0x8b),'height':_0x220905(0x91),'align':_0x220905(0x8c)}},{'tag':_0x220905(0xab),'attributes':{'width':_0x220905(0xa6),'height':_0x220905(0xa4),'align':_0x220905(0x8c)}},{'tag':_0x220905(0xab),'attributes':{'width':_0x220905(0x8b),'height':_0x220905(0x99),'align':_0x220905(0x8c)}},{'tag':_0x220905(0xab),'attributes':{'width':_0x220905(0xa1),'height':_0x220905(0xa4),'align':_0x220905(0x8c)}},{'tag':_0x220905(0xab),'attributes':{'width':_0x220905(0x8b),'height':_0x220905(0x91),'align':_0x220905(0x8c)}}],'aiHistory':$i(0x5,_0x220905(0x8b),_0x220905(0x9f),_0x220905(0x8c)),'aiChatResources':$i(0x8,_0x220905(0x8b),_0x220905(0x95),_0x220905(0x8c)),'aiReviewChecks':[{'tag':_0x220905(0xab),'attributes':{'width':_0x220905(0x96),'height':_0x220905(0x95),'align':_0x220905(0x9b)}},{'tag':_0x220905(0xab),'attributes':{'width':_0x220905(0x8b),'height':_0x220905(0x95),'align':_0x220905(0x9b)}},{'tag':_0x220905(0xab),'attributes':{'width':_0x220905(0x96),'height':_0x220905(0x95),'align':_0x220905(0x9b)}}]};function _0x5a60(_0xe2fe7b,_0x26068c){const _0x26c503=_0x26c5();return _0x5a60=function(_0x5a60ee,_0x1a95ed){_0x5a60ee=_0x5a60ee-0x86;let _0x145801=_0x26c503[_0x5a60ee];return _0x145801;},_0x5a60(_0xe2fe7b,_0x26068c);}function $i(_0x3b5abc,_0x4f557b,_0x319f57,_0xa539f){const _0x9eec7=_0x220905;return new Array(_0x3b5abc)[_0x9eec7(0x8a)](null)[_0x9eec7(0xa7)](()=>({'tag':_0x9eec7(0xab),'attributes':{'width':_0x4f557b,'height':_0x319f57,'align':_0xa539f}}));}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x19f251,_0x460ef9){const _0x39a106=_0x2b96,_0x4cc14f=_0x19f251();while(!![]){try{const _0x472323=parseInt(_0x39a106(0x15c))/0x1*(parseInt(_0x39a106(0x154))/0x2)+parseInt(_0x39a106(0x157))/0x3+-parseInt(_0x39a106(0x151))/0x4*(parseInt(_0x39a106(0x158))/0x5)+parseInt(_0x39a106(0x150))/0x6*(-parseInt(_0x39a106(0x153))/0x7)+parseInt(_0x39a106(0x156))/0x8+-parseInt(_0x39a106(0x15a))/0x9+parseInt(_0x39a106(0x15b))/0xa*(parseInt(_0x39a106(0x15e))/0xb);if(_0x472323===_0x460ef9)break;else _0x4cc14f['push'](_0x4cc14f['shift']());}catch(_0x4db861){_0x4cc14f['push'](_0x4cc14f['shift']());}}}(_0x2613,0x70fa6));import{SpinnerView as _0x42e559}from'ckeditor5/src/ui.js';function _0x2613(){const _0x52e482=['171930DzvoiW','40734ujgMFD','2260820YGxoEi','extendTemplate','567GEnIRa','3306IMQXtm','ck-ai-spinner_','976392BonljY','237012BWghUu','5wTGpvX','span','172080tHBLDC','340VxEUTU','523SiLyoO','ck-ai-spinner'];_0x2613=function(){return _0x52e482;};return _0x2613();}function _0x2b96(_0x2ecbba,_0x323713){const _0x2613db=_0x2613();return _0x2b96=function(_0x2b9685,_0x4a4db3){_0x2b9685=_0x2b9685-0x150;let _0xa2b3e8=_0x2613db[_0x2b9685];return _0xa2b3e8;},_0x2b96(_0x2ecbba,_0x323713);}export class AISpinnerView extends _0x42e559{constructor(_0x2079b3=void 0x0){const _0x3e5d19=_0x2b96;super();const _0x252ad8=_0x2079b3?_0x3e5d19(0x155)+_0x2079b3:'';this[_0x3e5d19(0x152)]({'tag':_0x3e5d19(0x159),'attributes':{'class':[_0x3e5d19(0x15d),_0x252ad8]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x518d09=_0x12ee;function _0x40da(){const _0x1571b2=['328vjYTdh','isOn','3174241mNEDnT','AI_SUGGESTION_BUTTON_SHOW_CHANGES','AI_MINI_TOOLBAR_LIKE','isEnabled','showCopy','isLoading','32474DjmAKY','set','_setupRatingButtons','9oHDlOX','ck-ai-mini-toolbar-copy-button__check-mark','dislikeButton','bind','1qMYjXL','11763NlkGti','558884NMBHXY','children','extendTemplate','showLike','911202dEYLAb','addMany','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','like','ck-ai-mini-toolbar-copy-button','_setupCopyButton','showChanges','fire','ck-ai-mini-toolbar','add','likeButton','ck-ai-mini-toolbar\x20ck-hidden','_setupShowChangesButton','class','20efpJCX','10Ksonrl','length','showChangesButton','1159042rcZyUs','execute','customView','1832941quSNCe','locale','showDislike','dislike','copyButton','items','toggleShowChanges','_config','full','AI_MINI_TOOLBAR_DISLIKE','AI_MINI_TOOLBAR_COPY','4380baXiwC'];_0x40da=function(){return _0x1571b2;};return _0x40da();}(function(_0x5ce623,_0x4a8d0e){const _0xe04e85=_0x12ee,_0x32928c=_0x5ce623();while(!![]){try{const _0xd0c4c8=-parseInt(_0xe04e85(0x99))/0x1*(-parseInt(_0xe04e85(0xb1))/0x2)+-parseInt(_0xe04e85(0x95))/0x3*(-parseInt(_0xe04e85(0x9b))/0x4)+parseInt(_0xe04e85(0xad))/0x5*(parseInt(_0xe04e85(0x9f))/0x6)+-parseInt(_0xe04e85(0x8c))/0x7+-parseInt(_0xe04e85(0x8a))/0x8*(parseInt(_0xe04e85(0x9a))/0x9)+-parseInt(_0xe04e85(0xae))/0xa*(-parseInt(_0xe04e85(0xb4))/0xb)+-parseInt(_0xe04e85(0x89))/0xc*(parseInt(_0xe04e85(0x92))/0xd);if(_0xd0c4c8===_0x4a8d0e)break;else _0x32928c['push'](_0x32928c['shift']());}catch(_0x783533){_0x32928c['push'](_0x32928c['shift']());}}}(_0x40da,0x566ab));function _0x12ee(_0x5c895e,_0x45e6a3){const _0x40da73=_0x40da();return _0x12ee=function(_0x12ee76,_0x1607f){_0x12ee76=_0x12ee76-0x84;let _0x4048c2=_0x40da73[_0x12ee76];return _0x4048c2;},_0x12ee(_0x5c895e,_0x45e6a3);}import{ButtonView as _0x169bdb,IconView as _0x34443c,ToolbarView as _0x39ba3c}from'ckeditor5/src/ui.js';import{IconCheck as _0x1446d4,IconCopy as _0x306383,IconShowChangesOff as _0x2cc585,IconShowChangesOn as _0x5ed5dd,IconThumbDown as _0x46c12b,IconThumbUp as _0x86fd04}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x21ed1a}from'../../utils/common-translations.js';export class AIMiniToolbarView extends _0x39ba3c{[_0x518d09(0xb8)];[_0x518d09(0xa9)];[_0x518d09(0x97)];[_0x518d09(0xb0)];[_0x518d09(0x85)];constructor(_0x282805,_0x290163={},_0x43e8ab){const _0x4dc996=_0x518d09;super(_0x282805),this[_0x4dc996(0x93)](_0x4dc996(0x91),!0x1),this[_0x4dc996(0x85)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x290163};const _0x28df50=!(this[_0x4dc996(0x85)][_0x4dc996(0x90)]||this[_0x4dc996(0x85)][_0x4dc996(0xa5)]||this[_0x4dc996(0x85)][_0x4dc996(0x9e)]||this[_0x4dc996(0x85)][_0x4dc996(0xb6)]||this[_0x4dc996(0x85)][_0x4dc996(0xb3)]?.[_0x4dc996(0xaf)]);this[_0x4dc996(0xac)]=_0x28df50?_0x4dc996(0xaa):_0x4dc996(0xa7),this[_0x4dc996(0x85)][_0x4dc996(0x90)]&&(this[_0x4dc996(0xa4)](),this[_0x4dc996(0xb9)][_0x4dc996(0xa8)](this[_0x4dc996(0xb8)])),this[_0x4dc996(0x85)][_0x4dc996(0xa5)]&&(this[_0x4dc996(0xab)](_0x43e8ab),this[_0x4dc996(0xb9)][_0x4dc996(0xa8)](this[_0x4dc996(0xb0)])),this[_0x4dc996(0x94)](),this[_0x4dc996(0x85)][_0x4dc996(0x9e)]&&this[_0x4dc996(0xb9)][_0x4dc996(0xa8)](this[_0x4dc996(0xa9)]),this[_0x4dc996(0x85)][_0x4dc996(0xb6)]&&this[_0x4dc996(0xb9)][_0x4dc996(0xa8)](this[_0x4dc996(0x97)]),this[_0x4dc996(0x85)][_0x4dc996(0xb3)]&&this[_0x4dc996(0xb9)][_0x4dc996(0xa0)](this[_0x4dc996(0x85)][_0x4dc996(0xb3)]);}[_0x518d09(0x94)](){const _0x4096da=_0x518d09;this[_0x4096da(0xa9)]=new _0x169bdb(this[_0x4096da(0xb5)]),this[_0x4096da(0xa9)][_0x4096da(0x93)]({'icon':_0x86fd04,'label':_0x21ed1a(this[_0x4096da(0xb5)],_0x4096da(0x8e)),'tooltip':!0x0}),this[_0x4096da(0xa9)][_0x4096da(0x98)](_0x4096da(0x8f))['to'](this,_0x4096da(0x91),_0x216568=>!_0x216568),this[_0x4096da(0xa9)]['on'](_0x4096da(0xb2),()=>{const _0x477376=_0x4096da;this[_0x477376(0xa6)](_0x477376(0xa2));}),this[_0x4096da(0x97)]=new _0x169bdb(this[_0x4096da(0xb5)]),this[_0x4096da(0x97)][_0x4096da(0x93)]({'icon':_0x46c12b,'label':_0x21ed1a(this[_0x4096da(0xb5)],_0x4096da(0x87)),'tooltip':!0x0}),this[_0x4096da(0x97)][_0x4096da(0x98)](_0x4096da(0x8f))['to'](this,_0x4096da(0x91),_0x30715d=>!_0x30715d),this[_0x4096da(0x97)]['on'](_0x4096da(0xb2),()=>{const _0x3eeaa7=_0x4096da;this[_0x3eeaa7(0xa6)](_0x3eeaa7(0xb7));});}[_0x518d09(0xa4)](){const _0x55f77c=_0x518d09;this[_0x55f77c(0xb8)]=new _0x169bdb(this[_0x55f77c(0xb5)]),this[_0x55f77c(0xb8)][_0x55f77c(0x93)]({'icon':_0x306383,'label':_0x21ed1a(this[_0x55f77c(0xb5)],_0x55f77c(0x88)),'class':_0x55f77c(0xa3),'tooltip':!0x0}),this[_0x55f77c(0xb8)][_0x55f77c(0x98)](_0x55f77c(0x8f))['to'](this,_0x55f77c(0x91),_0x2493f8=>!_0x2493f8);const _0x1369be=new _0x34443c();_0x1369be[_0x55f77c(0x93)]({'content':_0x1446d4}),_0x1369be[_0x55f77c(0x9d)]({'attributes':{'class':[_0x55f77c(0x96)]}}),this[_0x55f77c(0xb8)]['on'](_0x55f77c(0xb2),()=>{const _0x32e276=_0x55f77c;this[_0x32e276(0xb8)][_0x32e276(0xac)]=_0x32e276(0xa1),setTimeout(()=>{const _0x3d8e8a=_0x32e276;this[_0x3d8e8a(0xb8)][_0x3d8e8a(0xac)]=_0x3d8e8a(0xa3);},0x7d0);}),this[_0x55f77c(0xb8)][_0x55f77c(0x9c)][_0x55f77c(0xa8)](_0x1369be);}[_0x518d09(0xab)](_0x2b4059){const _0x12a01c=_0x518d09;this[_0x12a01c(0xb0)]=new _0x169bdb(this[_0x12a01c(0xb5)]),this[_0x12a01c(0xb0)][_0x12a01c(0x93)]({'icon':_0x2cc585,'label':_0x21ed1a(this[_0x12a01c(0xb5)],_0x12a01c(0x8d)),'withText':_0x12a01c(0x86)==this[_0x12a01c(0x85)][_0x12a01c(0xa5)],'tooltip':_0x12a01c(0x86)!=this[_0x12a01c(0x85)][_0x12a01c(0xa5)],'isOn':_0x2b4059}),this[_0x12a01c(0xb0)][_0x12a01c(0x98)](_0x12a01c(0x8f))['to'](this,_0x12a01c(0x91),_0x106d19=>!_0x106d19),this[_0x12a01c(0xb0)]['on'](_0x12a01c(0xb2),()=>{const _0x4fd3c8=_0x12a01c,_0xfde37c=!this[_0x4fd3c8(0xb0)][_0x4fd3c8(0x8b)];this[_0x4fd3c8(0xb0)][_0x4fd3c8(0x93)]({'isOn':_0xfde37c,'icon':_0xfde37c?_0x5ed5dd:_0x2cc585}),this[_0x4fd3c8(0xa6)](_0x4fd3c8(0x84),_0xfde37c);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x59db(_0x278588,_0x3a8f3d){const _0x1d7bda=_0x1d7b();return _0x59db=function(_0x59db97,_0x17604e){_0x59db97=_0x59db97-0xa3;let _0x3fe9eb=_0x1d7bda[_0x59db97];return _0x3fe9eb;},_0x59db(_0x278588,_0x3a8f3d);}const _0x4d8cd4=_0x59db;(function(_0xdcd482,_0x52f838){const _0x17161b=_0x59db,_0x36cb29=_0xdcd482();while(!![]){try{const _0x4694f5=parseInt(_0x17161b(0xd3))/0x1*(parseInt(_0x17161b(0xa7))/0x2)+parseInt(_0x17161b(0xb9))/0x3*(parseInt(_0x17161b(0xac))/0x4)+parseInt(_0x17161b(0xcb))/0x5+parseInt(_0x17161b(0xb1))/0x6*(parseInt(_0x17161b(0xd4))/0x7)+-parseInt(_0x17161b(0xb5))/0x8*(-parseInt(_0x17161b(0xb0))/0x9)+parseInt(_0x17161b(0xcf))/0xa*(-parseInt(_0x17161b(0xd8))/0xb)+-parseInt(_0x17161b(0xb4))/0xc*(parseInt(_0x17161b(0xa6))/0xd);if(_0x4694f5===_0x52f838)break;else _0x36cb29['push'](_0x36cb29['shift']());}catch(_0x57e16e){_0x36cb29['push'](_0x36cb29['shift']());}}}(_0x1d7b,0x81933));import{View as _0x182497}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0x165bc6}from'./aisuggestioncontentpartview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x5de37b}from'../../utils/eventnames.js';import{PromiseQueue as _0xae270b}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0x266d0f}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0x332466}from'../../utils/common-translations.js';function _0x1d7b(){const _0x15a5df=['get','updateContentParts','setContent','25129GjKgNm','593884tAAwCJ','warning','some','hasNonEmptyParts','updateContent','1560844eruZBr','ck-ai-suggestion__body__content-parts','state','div','1296315ZNeJFY','282StZiUO','getPartView','_children','10416hWegiY','40lQJXSz','isVisible','partDefinition','addEventListener','6OJPNxL','add','length','hasChanges','index','find','queueEmptyPromise','ck-ai-suggestion__body','delegate','createCollection','_showUnchangedParts','_updateContentPartsPromiseQueue','pending','_emptyPartsWarningView','setTemplate','enqueue','toggleHeader','AI_SUGGESTION_NO_PARTS_WARNING','4792835YtVnWk','markAsDone','locale','from','621620ZxOIas','set','first','AI_SUGGESTION_EMPTY_PART_WARNING','2nJCaEr','3843HWHlqd','hasPendingParts','empty-parts-warning','partsCount','154UzMAUc','_areActionsDisabled','updatePartState','abort'];_0x1d7b=function(){return _0x15a5df;};return _0x1d7b();}export class AISuggestionBodyView extends _0x182497{[_0x4d8cd4(0xb3)];[_0x4d8cd4(0xd9)];[_0x4d8cd4(0xc3)];[_0x4d8cd4(0xc4)];[_0x4d8cd4(0xc6)];constructor(_0x352d57,{areActionsDisabled:_0x18b470,showUnchangedParts:_0x417f3e}){const _0x21a582=_0x4d8cd4;super(_0x352d57),this[_0x21a582(0xd9)]=_0x18b470,this[_0x21a582(0xc3)]=_0x417f3e,this[_0x21a582(0xd0)](_0x21a582(0xd5),!0x1),this[_0x21a582(0xb3)]=this[_0x21a582(0xc2)](),this[_0x21a582(0xc4)]=new _0xae270b(),this[_0x21a582(0xc6)]=new _0x266d0f({'id':_0x21a582(0xd6),'initialContent':_0x332466(_0x352d57,_0x21a582(0xd2)),'level':_0x21a582(0xa8)}),this[_0x21a582(0xc6)][_0x21a582(0xb6)]=!0x1,this[_0x21a582(0xc7)]({'tag':_0x21a582(0xaf),'attributes':{'class':['ck',_0x21a582(0xc0)]},'children':[{'tag':_0x21a582(0xaf),'attributes':{'class':['ck',_0x21a582(0xad)]},'children':this[_0x21a582(0xb3)]},this[_0x21a582(0xc6)]]});}get[_0x4d8cd4(0xd7)](){const _0x23a8d0=_0x4d8cd4;return this[_0x23a8d0(0xb3)][_0x23a8d0(0xbb)];}async[_0x4d8cd4(0xa4)]({parts:_0x2c30dd,renderingStrategy:_0x3ab609,abortSignal:_0x2369df}){const _0x25108e=_0x4d8cd4;for(const _0x5abac6 of _0x2c30dd)this[_0x25108e(0xc4)][_0x25108e(0xc8)](async _0x41baf5=>{const _0x21a983=_0x25108e;let _0x514b2d=this[_0x21a983(0xb3)][_0x21a983(0xbe)](_0x114104=>_0x114104[_0x21a983(0xb7)][_0x21a983(0xbd)]==_0x5abac6[_0x21a983(0xbd)]);_0x514b2d||(_0x514b2d=new _0x165bc6(this[_0x21a983(0xcd)],{'part':_0x5abac6,'areActionsDisabled':this[_0x21a983(0xd9)]}),_0x514b2d[_0x21a983(0xc1)](..._0x5de37b)['to'](this),this[_0x21a983(0xb3)][_0x21a983(0xba)](_0x514b2d),this[_0x21a983(0xd5)]=!0x0),0x2===this[_0x21a983(0xb3)][_0x21a983(0xbb)]&&this[_0x21a983(0xb3)][_0x21a983(0xd1)][_0x21a983(0xc9)](!0x0),_0x514b2d[_0x21a983(0xc9)](this[_0x21a983(0xb3)][_0x21a983(0xbb)]>0x1),await _0x514b2d[_0x21a983(0xab)]({'part':_0x5abac6,'renderingStrategy':_0x3ab609,'showUnchangedParts':this[_0x21a983(0xc3)],'abortSignal':_0x41baf5});});return _0x2369df?.[_0x25108e(0xb8)](_0x25108e(0xdb),()=>{const _0x29baaf=_0x25108e;this[_0x29baaf(0xc4)][_0x29baaf(0xdb)]();}),this[_0x25108e(0xc4)][_0x25108e(0xbf)];}[_0x4d8cd4(0xda)](_0x50962b,_0x2c4f60){const _0xa8a4ba=_0x4d8cd4;this[_0xa8a4ba(0xb3)][_0xa8a4ba(0xa3)](_0x50962b)[_0xa8a4ba(0xae)]=_0x2c4f60,this[_0xa8a4ba(0xd5)]=_0xa8a4ba(0xc5)==_0x2c4f60||Array[_0xa8a4ba(0xce)](this[_0xa8a4ba(0xb3)])[_0xa8a4ba(0xa9)](_0x4bef9a=>_0xa8a4ba(0xc5)==_0x4bef9a[_0xa8a4ba(0xae)]);}[_0x4d8cd4(0xb2)](_0x338b7b){const _0x7f3542=_0x4d8cd4;return this[_0x7f3542(0xb3)][_0x7f3542(0xa3)](_0x338b7b);}[_0x4d8cd4(0xcc)](){const _0x7503f5=_0x4d8cd4;if(!this[_0x7503f5(0xc3)]){const _0x541f5a=!this[_0x7503f5(0xb3)][_0x7503f5(0xbe)](_0x53f4a6=>_0x53f4a6[_0x7503f5(0xb7)][_0x7503f5(0xbc)]),_0x387924=!!this[_0x7503f5(0xb3)][_0x7503f5(0xbe)](_0x3bba84=>!_0x3bba84[_0x7503f5(0xb7)][_0x7503f5(0xbc)]);this[_0x7503f5(0xc6)][_0x7503f5(0xb6)]=_0x387924,_0x541f5a?this[_0x7503f5(0xc6)][_0x7503f5(0xa5)](_0x332466(this[_0x7503f5(0xcd)],_0x7503f5(0xca))):this[_0x7503f5(0xc6)][_0x7503f5(0xa5)](_0x332466(this[_0x7503f5(0xcd)],_0x7503f5(0xd2)));}}get[_0x4d8cd4(0xaa)](){const _0x1e09ed=_0x4d8cd4;return!!this[_0x1e09ed(0xb3)][_0x1e09ed(0xbe)](_0x50e200=>_0x50e200[_0x1e09ed(0xb7)][_0x1e09ed(0xbc)]);}}
|
|
@@ -44,6 +44,14 @@ export declare class AISuggestionContainerView extends View<HTMLDivElement> {
|
|
|
44
44
|
* Hides the loader if it exists.
|
|
45
45
|
*/
|
|
46
46
|
hideLoader(): void;
|
|
47
|
+
/**
|
|
48
|
+
* Shows an error message in the suggestion container.
|
|
49
|
+
*/
|
|
50
|
+
showError(message: string): void;
|
|
51
|
+
/**
|
|
52
|
+
* Hides the error message.
|
|
53
|
+
*/
|
|
54
|
+
hideError(): void;
|
|
47
55
|
/**
|
|
48
56
|
* Marks the suggestion container as done.
|
|
49
57
|
*/
|
|
@@ -56,6 +64,14 @@ export declare class AISuggestionContainerView extends View<HTMLDivElement> {
|
|
|
56
64
|
* Clears the loading state, enabling all interactive elements.
|
|
57
65
|
*/
|
|
58
66
|
clearLoading(): void;
|
|
67
|
+
/**
|
|
68
|
+
* Disables specific buttons (show changes) for error state.
|
|
69
|
+
*/
|
|
70
|
+
setErrorState(): void;
|
|
71
|
+
/**
|
|
72
|
+
* Re-enables specific buttons (show changes) after clearing error state.
|
|
73
|
+
*/
|
|
74
|
+
clearErrorState(): void;
|
|
59
75
|
}
|
|
60
76
|
export type AISuggestionContainerToggleSuggestionDisplayModeEvent = {
|
|
61
77
|
name: 'toggleSuggestionDisplayMode';
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3feba2=_0x2e91;(function(_0x400258,_0xcf5f7c){const _0x5bf6fd=_0x2e91,_0xa7f6ed=_0x400258();while(!![]){try{const _0x444aa0=-parseInt(_0x5bf6fd(0xc0))/0x1*(-parseInt(_0x5bf6fd(0xcc))/0x2)+-parseInt(_0x5bf6fd(0xdb))/0x3*(parseInt(_0x5bf6fd(0xd8))/0x4)+parseInt(_0x5bf6fd(0xce))/0x5*(-parseInt(_0x5bf6fd(0x9f))/0x6)+parseInt(_0x5bf6fd(0xd7))/0x7*(parseInt(_0x5bf6fd(0xb2))/0x8)+parseInt(_0x5bf6fd(0x9c))/0x9*(-parseInt(_0x5bf6fd(0xbe))/0xa)+parseInt(_0x5bf6fd(0xaf))/0xb*(-parseInt(_0x5bf6fd(0xd4))/0xc)+parseInt(_0x5bf6fd(0xb6))/0xd;if(_0x444aa0===_0xcf5f7c)break;else _0xa7f6ed['push'](_0xa7f6ed['shift']());}catch(_0x1d632b){_0xa7f6ed['push'](_0xa7f6ed['shift']());}}}(_0x2a92,0xdd377));import{IconWeb as _0x174610}from'@ckeditor/ckeditor5-icons';function _0x2a92(){const _0x2d8349=['40VZFZiC','set','map','hasNonEmptyParts','sourcesView','extendTemplate','60RUWGCk','fire','isLoaderVisible','26117TsTNxP','4oHSUzT','delegate','AI_CHAT_SOURCES_HEADER','1813773xNPnta','span','addMany','icon','open','content','toggleShowChanges','updateContentParts','12366zEOzAT','ck-ai-suggestion__loader-text','updateContent','36702yBYPPr','headerView','markAsDone','add','bindTemplate','miniToolbarView','ck-ai-web-source__image','hideLoader','updateSources','ck-ai-suggestion__container','areChangesVisible','ck-hidden','bodyView','ck-ai-web-sources','showLoader','bind','1620399ciaEqN','div','ck-ai-web-sources__header','3272sfdFTc','toggleSuggestionDisplayMode','setLoading','url','4452994rpTSce','ck-ai-suggestion__loader','createCollection','isVisible','children','_blank','ck\x20ck-ai-web-source','ck-rounded-corners','4840rfWCVo','setTemplate','546337DFfsmO','img','locale','loaderView','clearLoading','_createLoaderView','small','title','isShowChangesToggleVisible','favicon','isOn','isLoading','4pOOUDd','AI_CHAT_IS_WRITING'];_0x2a92=function(){return _0x2d8349;};return _0x2a92();}import{View as _0x5fa207,ButtonView as _0x142021,IconView as _0x50fd5b}from'ckeditor5/src/ui.js';import{AIMiniToolbarView as _0x41a78c}from'./aiminitoolbarview.js';import{AISuggestionHeaderView as _0x3bfdb1}from'./aisuggestionheaderview.js';import{AISuggestionBodyView as _0x31e717}from'./aisuggestionbodyview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0xa93189}from'../../utils/eventnames.js';import{AISpinnerView as _0x269d36}from'../aispinner.js';function _0x2e91(_0x26b7fc,_0x46719e){const _0x2a92fd=_0x2a92();return _0x2e91=function(_0x2e9153,_0x2d28b9){_0x2e9153=_0x2e9153-0x97;let _0x445a17=_0x2a92fd[_0x2e9153];return _0x445a17;},_0x2e91(_0x26b7fc,_0x46719e);}import{getTranslation as _0x129a06}from'../../utils/common-translations.js';export class AISuggestionContainerView extends _0x5fa207{[_0x3feba2(0xab)];[_0x3feba2(0xba)];[_0x3feba2(0xa0)];[_0x3feba2(0xa4)];[_0x3feba2(0xc3)];[_0x3feba2(0xd2)];constructor(_0x25af90,{showDiff:_0x191122,areActionsDisabled:_0x49df79,miniToolbarConfig:_0x31a5d4,hideHeader:_0x4ba64f,showLoader:_0x58b76f,showUnchangedParts:_0x504906}){const _0x58fcb9=_0x3feba2;super(_0x25af90),this[_0x58fcb9(0xcf)](_0x58fcb9(0xa9),!0x1),this[_0x58fcb9(0xcf)](_0x58fcb9(0xd6),!!_0x58b76f),this[_0x58fcb9(0xcf)](_0x58fcb9(0xcb),!0x1),this[_0x58fcb9(0xba)]=this[_0x58fcb9(0xb8)](),_0x4ba64f||(this[_0x58fcb9(0xa0)]=new _0x3bfdb1(_0x25af90,{'showDiff':_0x191122}),this[_0x58fcb9(0xa0)]['on'](_0x58fcb9(0x9a),(_0x5e7a15,_0x5d1a8e)=>{const _0x31411e=_0x58fcb9;this[_0x31411e(0xa9)]=_0x5d1a8e[_0x31411e(0xca)],this[_0x31411e(0xd5)](_0x31411e(0xb3),{'showDiff':_0x5d1a8e[_0x31411e(0xca)]});}),this[_0x58fcb9(0xba)][_0x58fcb9(0xa2)](this[_0x58fcb9(0xa0)])),this[_0x58fcb9(0xab)]=new _0x31e717(_0x25af90,{'areActionsDisabled':_0x49df79,'showUnchangedParts':!!_0x504906}),this[_0x58fcb9(0xab)][_0x58fcb9(0xd9)](..._0xa93189)['to'](this),this[_0x58fcb9(0xab)][_0x58fcb9(0xd3)]({'attributes':{'class':[this[_0x58fcb9(0xa3)]['if'](_0x58fcb9(0xd6),_0x58fcb9(0xaa))]}}),this[_0x58fcb9(0xa4)]=new _0x41a78c(_0x25af90,_0x31a5d4,_0x191122),this[_0x58fcb9(0xa4)][_0x58fcb9(0xd9)](..._0xa93189)['to'](this),this[_0x58fcb9(0xa4)]['on'](_0x58fcb9(0x9a),(_0x51f8f9,_0x5cfd84)=>{const _0x34538d=_0x58fcb9;this[_0x34538d(0xa9)]=_0x5cfd84,this[_0x34538d(0xd5)](_0x34538d(0xb3),{'showDiff':_0x5cfd84});}),this[_0x58fcb9(0xa4)][_0x58fcb9(0xae)](_0x58fcb9(0xcb))['to'](this),this[_0x58fcb9(0xba)][_0x58fcb9(0xa2)](this[_0x58fcb9(0xab)]),this[_0x58fcb9(0xba)][_0x58fcb9(0xa2)](this[_0x58fcb9(0xa4)]),this[_0x58fcb9(0xd2)]=new AIWebSourcesView(this[_0x58fcb9(0xc2)]),this[_0x58fcb9(0xba)][_0x58fcb9(0xa2)](this[_0x58fcb9(0xd2)]),_0x58b76f&&(this[_0x58fcb9(0xc3)]=this[_0x58fcb9(0xc5)](),this[_0x58fcb9(0xba)][_0x58fcb9(0xa2)](this[_0x58fcb9(0xc3)])),this[_0x58fcb9(0xbf)]({'tag':_0x58fcb9(0xb0),'attributes':{'class':['ck',_0x58fcb9(0xa8),_0x58fcb9(0xbd)]},'children':this[_0x58fcb9(0xba)]});}async[_0x3feba2(0x9e)](_0x32bf63){const _0x3098b6=_0x3feba2;await this[_0x3098b6(0xab)][_0x3098b6(0x9b)](_0x32bf63);}[_0x3feba2(0xa7)](_0x4f9ee0){const _0x3f2b06=_0x3feba2;this[_0x3f2b06(0xd2)][_0x3f2b06(0xba)][_0x3f2b06(0xdd)](_0x4f9ee0[_0x3f2b06(0xd0)](_0x3acace=>new AIWebSourceView(this[_0x3f2b06(0xc2)],_0x3acace))),this[_0x3f2b06(0xd2)][_0x3f2b06(0xb9)]=!0x0;}[_0x3feba2(0xad)](){const _0x2799c4=_0x3feba2;this[_0x2799c4(0xc3)]&&(this[_0x2799c4(0xd6)]=!0x0);}[_0x3feba2(0xa6)](){const _0x4506d8=_0x3feba2;this[_0x4506d8(0xc3)]&&(this[_0x4506d8(0xd6)]=!0x1);}[_0x3feba2(0xa1)](){const _0x37fa40=_0x3feba2;this[_0x37fa40(0xab)][_0x37fa40(0xa1)](),this[_0x37fa40(0xa0)]&&(this[_0x37fa40(0xa0)][_0x37fa40(0xc8)]=this[_0x37fa40(0xab)][_0x37fa40(0xd1)]);}[_0x3feba2(0xb4)](){const _0x3ba76f=_0x3feba2;this[_0x3ba76f(0xcb)]=!0x0;}[_0x3feba2(0xc4)](){const _0x30cbb5=_0x3feba2;this[_0x30cbb5(0xcb)]=!0x1;}[_0x3feba2(0xc5)](){const _0x5ab312=_0x3feba2,_0x39facb=new _0x5fa207(this[_0x5ab312(0xc2)]),_0x3b85e6=new _0x269d36(_0x5ab312(0xc6));_0x3b85e6[_0x5ab312(0xb9)]=!0x0;const _0x170275=new _0x5fa207(this[_0x5ab312(0xc2)]);return _0x170275[_0x5ab312(0xbf)]({'tag':_0x5ab312(0xdc),'attributes':{'class':['ck',_0x5ab312(0x9d)]},'children':[_0x129a06(this[_0x5ab312(0xc2)],_0x5ab312(0xcd))]}),_0x39facb[_0x5ab312(0xbf)]({'tag':_0x5ab312(0xb0),'attributes':{'class':['ck',_0x5ab312(0xb7),this[_0x5ab312(0xa3)]['if'](_0x5ab312(0xd6),_0x5ab312(0xaa),_0x5f2174=>!_0x5f2174)]},'children':[_0x3b85e6,_0x170275]}),_0x39facb;}}export class AIWebSourcesView extends _0x5fa207{[_0x3feba2(0xba)];constructor(_0x5cf65d){const _0x57dbea=_0x3feba2;super(_0x5cf65d),this[_0x57dbea(0xba)]=this[_0x57dbea(0xb8)](),this[_0x57dbea(0xcf)](_0x57dbea(0xb9),!0x1),this[_0x57dbea(0xbf)]({'tag':_0x57dbea(0xb0),'attributes':{'class':['ck',_0x57dbea(0xac),this[_0x57dbea(0xa3)]['if'](_0x57dbea(0xb9),_0x57dbea(0xaa),_0x14ccb1=>!_0x14ccb1)]},'children':this[_0x57dbea(0xba)]});const _0x10234e=new _0x5fa207(this[_0x57dbea(0xc2)]),_0x299b5b=new _0x50fd5b();_0x299b5b[_0x57dbea(0x99)]=_0x174610,_0x10234e[_0x57dbea(0xbf)]({'tag':_0x57dbea(0xb0),'attributes':{'class':['ck',_0x57dbea(0xb1)]},'children':[_0x299b5b,{'tag':_0x57dbea(0xdc),'children':[{'text':_0x129a06(this[_0x57dbea(0xc2)],_0x57dbea(0xda))}]}]}),this[_0x57dbea(0xba)][_0x57dbea(0xa2)](_0x10234e);}}export class AIWebSourceView extends _0x142021{constructor(_0x42c050,_0x2e045a){const _0x560505=_0x3feba2;super(_0x42c050),this[_0x560505(0xcf)]({'label':_0x2e045a[_0x560505(0xc7)],'tooltip':_0x2e045a[_0x560505(0xc7)],'class':[_0x560505(0xbc)],'withText':!0x0});const _0x5e17c0=this[_0x560505(0xa3)];if(this[_0x560505(0xd3)]({'on':{'click':_0x5e17c0['to'](()=>{const _0x160a0e=_0x560505;window[_0x160a0e(0x98)](_0x2e045a[_0x160a0e(0xb5)],_0x160a0e(0xbb));})}}),_0x2e045a[_0x560505(0xc9)]){const _0x148686=new _0x5fa207(_0x42c050);_0x148686[_0x560505(0xbf)]({'tag':_0x560505(0xc1),'attributes':{'src':_0x2e045a[_0x560505(0xc9)]||_0x174610,'alt':_0x2e045a[_0x560505(0xc7)],'class':[_0x560505(0xa5)]}}),this[_0x560505(0xba)][_0x560505(0xa2)](_0x148686);}else this[_0x560505(0xcf)](_0x560505(0x97),_0x174610);}}
|
|
23
|
+
const _0x2b8ff8=_0x514a;(function(_0x12fe1b,_0x57b215){const _0x5e469d=_0x514a,_0x1150fd=_0x12fe1b();while(!![]){try{const _0x5d8727=parseInt(_0x5e469d(0x167))/0x1*(-parseInt(_0x5e469d(0x1b0))/0x2)+-parseInt(_0x5e469d(0x161))/0x3+parseInt(_0x5e469d(0x160))/0x4*(-parseInt(_0x5e469d(0x16c))/0x5)+parseInt(_0x5e469d(0x17e))/0x6*(parseInt(_0x5e469d(0x186))/0x7)+parseInt(_0x5e469d(0x1a9))/0x8+parseInt(_0x5e469d(0x1a0))/0x9*(-parseInt(_0x5e469d(0x17a))/0xa)+-parseInt(_0x5e469d(0x16f))/0xb*(-parseInt(_0x5e469d(0x18a))/0xc);if(_0x5d8727===_0x57b215)break;else _0x1150fd['push'](_0x1150fd['shift']());}catch(_0x449008){_0x1150fd['push'](_0x1150fd['shift']());}}}(_0x28de,0x5dbb6));import{IconWeb as _0x8980dd}from'@ckeditor/ckeditor5-icons';import{View as _0x261d22,ButtonView as _0x220614,IconView as _0x5126fb}from'ckeditor5/src/ui.js';import{AIMiniToolbarView as _0x12c50e}from'./aiminitoolbarview.js';import{AISuggestionHeaderView as _0xb56132}from'./aisuggestionheaderview.js';import{AISuggestionBodyView as _0xdcd74a}from'./aisuggestionbodyview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x5eac34}from'../../utils/eventnames.js';import{AISpinnerView as _0x5c76d2}from'../aispinner.js';import{getTranslation as _0x3d9dd5}from'../../utils/common-translations.js';function _0x514a(_0x53b8b0,_0x2acd36){const _0x28de04=_0x28de();return _0x514a=function(_0x514acb,_0x52f0c6){_0x514acb=_0x514acb-0x15d;let _0x58f19d=_0x28de04[_0x514acb];return _0x58f19d;},_0x514a(_0x53b8b0,_0x2acd36);}function _0x28de(){const _0x47f19b=['4LfrAnR','setErrorState','updateContentParts','updateContent','bind','584645xnGeoJ','content','ck-ai-web-source__image','11095293rMGuUH','.ck-ai-suggestion__error-text','ck-ai-web-sources__header','createCollection','extendTemplate','setLoading','updateSources','open','isLoading','ck-rounded-corners','isEnabled','40dyfpiM','set','isErrorVisible','add','36ysQCjC','loaderView','remove','isShowChangesToggleVisible','ck-ai-suggestion__container','showError','ck-ai-suggestion__loader-text','addMany','165221XGYPAV','isOn','children','hideError','12ZQhDPI','map','areChangesVisible','fire','AI_CHAT_GENERIC_ERROR','title','errorView','_blank','hasNonEmptyParts','div','removeNavigationItem','img','_createErrorView','clearErrorState','toggleShowChanges','AI_CHAT_IS_WRITING','ck-ai-suggestion__loader','hideLoader','favicon','delegate','miniToolbarView','ck-ai-suggestion__error-text','1292427WKNatY','bodyView','ck-ai-web-sources','ck-hidden','span','showLoader','bindTemplate','headerView','textContent','4350440OFexTD','markAsDone','querySelector','showChangesToggleView','small','ck\x20ck-ai-web-source','ck-ai-suggestion__error','77728PRrzua','url','icon','toggleSuggestionDisplayMode','isLoaderVisible','addNavigationItem','setTemplate','isVisible','_createLoaderView','clearLoading','12rKtDPN','688515npGvga','items','AI_CHAT_SOURCES_HEADER','sourcesView','element','locale'];_0x28de=function(){return _0x47f19b;};return _0x28de();}export class AISuggestionContainerView extends _0x261d22{[_0x2b8ff8(0x1a1)];[_0x2b8ff8(0x19e)];[_0x2b8ff8(0x188)];[_0x2b8ff8(0x1a7)];[_0x2b8ff8(0x17f)];[_0x2b8ff8(0x190)];[_0x2b8ff8(0x164)];constructor(_0x104bb8,{showDiff:_0x48d611,areActionsDisabled:_0x3d621d,miniToolbarConfig:_0x391914,hideHeader:_0x1b512c,showLoader:_0x1b2ab7,showUnchangedParts:_0xe38a5}){const _0x421829=_0x2b8ff8;super(_0x104bb8),this[_0x421829(0x17b)](_0x421829(0x18c),!0x1),this[_0x421829(0x17b)](_0x421829(0x1b4),!!_0x1b2ab7),this[_0x421829(0x17b)](_0x421829(0x17c),!0x1),this[_0x421829(0x17b)](_0x421829(0x177),!0x1),this[_0x421829(0x188)]=this[_0x421829(0x172)](),_0x1b512c||(this[_0x421829(0x1a7)]=new _0xb56132(_0x104bb8,{'showDiff':_0x48d611}),this[_0x421829(0x1a7)]['on'](_0x421829(0x198),(_0x570920,_0x2093a6)=>{const _0x103740=_0x421829;this[_0x103740(0x18c)]=_0x2093a6[_0x103740(0x187)],this[_0x103740(0x18d)](_0x103740(0x1b3),{'showDiff':_0x2093a6[_0x103740(0x187)]});}),this[_0x421829(0x188)][_0x421829(0x17d)](this[_0x421829(0x1a7)])),this[_0x421829(0x1a1)]=new _0xdcd74a(_0x104bb8,{'areActionsDisabled':_0x3d621d,'showUnchangedParts':!!_0xe38a5}),this[_0x421829(0x1a1)][_0x421829(0x19d)](..._0x5eac34)['to'](this),this[_0x421829(0x1a1)][_0x421829(0x173)]({'attributes':{'class':[this[_0x421829(0x1a6)]['if'](_0x421829(0x1b4),_0x421829(0x1a3)),this[_0x421829(0x1a6)]['if'](_0x421829(0x17c),_0x421829(0x1a3))]}}),this[_0x421829(0x19e)]=new _0x12c50e(_0x104bb8,_0x391914,_0x48d611),this[_0x421829(0x19e)][_0x421829(0x19d)](..._0x5eac34)['to'](this),this[_0x421829(0x19e)]['on'](_0x421829(0x198),(_0x38069d,_0x4b2e09)=>{const _0x4dbc5a=_0x421829;this[_0x4dbc5a(0x18c)]=_0x4b2e09,this[_0x4dbc5a(0x18d)](_0x4dbc5a(0x1b3),{'showDiff':_0x4b2e09});}),this[_0x421829(0x19e)][_0x421829(0x16b)](_0x421829(0x177))['to'](this),this[_0x421829(0x188)][_0x421829(0x17d)](this[_0x421829(0x1a1)]),this[_0x421829(0x188)][_0x421829(0x17d)](this[_0x421829(0x19e)]),this[_0x421829(0x164)]=new AIWebSourcesView(this[_0x421829(0x166)]),this[_0x421829(0x188)][_0x421829(0x17d)](this[_0x421829(0x164)]),_0x1b2ab7&&(this[_0x421829(0x17f)]=this[_0x421829(0x15e)](),this[_0x421829(0x188)][_0x421829(0x17d)](this[_0x421829(0x17f)])),this[_0x421829(0x190)]=this[_0x421829(0x196)](),this[_0x421829(0x188)][_0x421829(0x17d)](this[_0x421829(0x190)]),this[_0x421829(0x1b6)]({'tag':_0x421829(0x193),'attributes':{'class':['ck',_0x421829(0x182),_0x421829(0x178)]},'children':this[_0x421829(0x188)]});}async[_0x2b8ff8(0x16a)](_0x48ee44){const _0x29e132=_0x2b8ff8;await this[_0x29e132(0x1a1)][_0x29e132(0x169)](_0x48ee44);}[_0x2b8ff8(0x175)](_0x95bbe9){const _0x3f3136=_0x2b8ff8;this[_0x3f3136(0x164)][_0x3f3136(0x188)][_0x3f3136(0x185)](_0x95bbe9[_0x3f3136(0x18b)](_0x4013ea=>new AIWebSourceView(this[_0x3f3136(0x166)],_0x4013ea))),this[_0x3f3136(0x164)][_0x3f3136(0x15d)]=!0x0;}[_0x2b8ff8(0x1a5)](){const _0x3c62f2=_0x2b8ff8;this[_0x3c62f2(0x17f)]&&(this[_0x3c62f2(0x1b4)]=!0x0);}[_0x2b8ff8(0x19b)](){const _0x1a908e=_0x2b8ff8;this[_0x1a908e(0x17f)]&&(this[_0x1a908e(0x1b4)]=!0x1);}[_0x2b8ff8(0x183)](_0x875914){const _0x1d3081=_0x2b8ff8;if(this[_0x1d3081(0x190)]){const _0x172986=this[_0x1d3081(0x190)][_0x1d3081(0x165)]?.[_0x1d3081(0x1ab)](_0x1d3081(0x170));_0x172986&&(_0x172986[_0x1d3081(0x1a8)]=_0x875914),this[_0x1d3081(0x17c)]=!0x0;}}[_0x2b8ff8(0x189)](){const _0x230c03=_0x2b8ff8;this[_0x230c03(0x190)]&&(this[_0x230c03(0x17c)]=!0x1);}[_0x2b8ff8(0x1aa)](){const _0x4a15c5=_0x2b8ff8;this[_0x4a15c5(0x1a1)][_0x4a15c5(0x1aa)](),this[_0x4a15c5(0x1a7)]&&(this[_0x4a15c5(0x1a7)][_0x4a15c5(0x181)]=this[_0x4a15c5(0x1a1)][_0x4a15c5(0x192)]);}[_0x2b8ff8(0x174)](){const _0x4cb1d0=_0x2b8ff8;this[_0x4cb1d0(0x177)]=!0x0;}[_0x2b8ff8(0x15f)](){const _0x56d001=_0x2b8ff8;this[_0x56d001(0x177)]=!0x1;}[_0x2b8ff8(0x168)](){const _0x39ad0d=_0x2b8ff8;this[_0x39ad0d(0x19e)]&&(this[_0x39ad0d(0x19e)][_0x39ad0d(0x177)]=!0x0),this[_0x39ad0d(0x1a7)]?.[_0x39ad0d(0x1ac)]&&(this[_0x39ad0d(0x1a7)][_0x39ad0d(0x1ac)][_0x39ad0d(0x179)]=!0x1);}[_0x2b8ff8(0x197)](){const _0x419e4f=_0x2b8ff8;this[_0x419e4f(0x19e)]&&(this[_0x419e4f(0x19e)][_0x419e4f(0x177)]=!0x1),this[_0x419e4f(0x1a7)]?.[_0x419e4f(0x1ac)]&&(this[_0x419e4f(0x1a7)][_0x419e4f(0x1ac)][_0x419e4f(0x179)]=!0x0);}[_0x2b8ff8(0x1b5)](_0x46951f){const _0x52f96b=_0x2b8ff8;this[_0x52f96b(0x19e)][_0x52f96b(0x162)][_0x52f96b(0x17d)](_0x46951f);}[_0x2b8ff8(0x194)](_0xfbe459){const _0x44c7cc=_0x2b8ff8;this[_0x44c7cc(0x19e)][_0x44c7cc(0x162)][_0x44c7cc(0x180)](_0xfbe459);}[_0x2b8ff8(0x15e)](){const _0x81782c=_0x2b8ff8,_0x3ec075=new _0x261d22(this[_0x81782c(0x166)]),_0xc3914a=new _0x5c76d2(_0x81782c(0x1ad));_0xc3914a[_0x81782c(0x15d)]=!0x0;const _0x2d9d4f=new _0x261d22(this[_0x81782c(0x166)]);return _0x2d9d4f[_0x81782c(0x1b6)]({'tag':_0x81782c(0x1a4),'attributes':{'class':['ck',_0x81782c(0x184)]},'children':[_0x3d9dd5(this[_0x81782c(0x166)],_0x81782c(0x199))]}),_0x3ec075[_0x81782c(0x1b6)]({'tag':_0x81782c(0x193),'attributes':{'class':['ck',_0x81782c(0x19a),this[_0x81782c(0x1a6)]['if'](_0x81782c(0x1b4),_0x81782c(0x1a3),_0x44fe17=>!_0x44fe17)]},'children':[_0xc3914a,_0x2d9d4f]}),_0x3ec075;}[_0x2b8ff8(0x196)](){const _0x25b859=_0x2b8ff8,_0x48bb26=new _0x261d22(this[_0x25b859(0x166)]),_0x15946c=new _0x261d22(this[_0x25b859(0x166)]);return _0x15946c[_0x25b859(0x1b6)]({'tag':_0x25b859(0x1a4),'attributes':{'class':['ck',_0x25b859(0x19f)]},'children':[_0x3d9dd5(this[_0x25b859(0x166)],_0x25b859(0x18e))]}),_0x48bb26[_0x25b859(0x1b6)]({'tag':_0x25b859(0x193),'attributes':{'class':['ck',_0x25b859(0x1af),this[_0x25b859(0x1a6)]['if'](_0x25b859(0x17c),_0x25b859(0x1a3),_0x5244df=>!_0x5244df)]},'children':[_0x15946c]}),_0x48bb26;}}export class AIWebSourcesView extends _0x261d22{[_0x2b8ff8(0x188)];constructor(_0x3dae2c){const _0x13b19d=_0x2b8ff8;super(_0x3dae2c),this[_0x13b19d(0x188)]=this[_0x13b19d(0x172)](),this[_0x13b19d(0x17b)](_0x13b19d(0x15d),!0x1),this[_0x13b19d(0x1b6)]({'tag':_0x13b19d(0x193),'attributes':{'class':['ck',_0x13b19d(0x1a2),this[_0x13b19d(0x1a6)]['if'](_0x13b19d(0x15d),_0x13b19d(0x1a3),_0xa460d2=>!_0xa460d2)]},'children':this[_0x13b19d(0x188)]});const _0x49324a=new _0x261d22(this[_0x13b19d(0x166)]),_0x516446=new _0x5126fb();_0x516446[_0x13b19d(0x16d)]=_0x8980dd,_0x49324a[_0x13b19d(0x1b6)]({'tag':_0x13b19d(0x193),'attributes':{'class':['ck',_0x13b19d(0x171)]},'children':[_0x516446,{'tag':_0x13b19d(0x1a4),'children':[{'text':_0x3d9dd5(this[_0x13b19d(0x166)],_0x13b19d(0x163))}]}]}),this[_0x13b19d(0x188)][_0x13b19d(0x17d)](_0x49324a);}}export class AIWebSourceView extends _0x220614{constructor(_0x5add6c,_0x3fda2a){const _0x467f6b=_0x2b8ff8;super(_0x5add6c),this[_0x467f6b(0x17b)]({'label':_0x3fda2a[_0x467f6b(0x18f)],'tooltip':_0x3fda2a[_0x467f6b(0x18f)],'class':[_0x467f6b(0x1ae)],'withText':!0x0});const _0x151c1f=this[_0x467f6b(0x1a6)];if(this[_0x467f6b(0x173)]({'on':{'click':_0x151c1f['to'](()=>{const _0x2a6a96=_0x467f6b;window[_0x2a6a96(0x176)](_0x3fda2a[_0x2a6a96(0x1b1)],_0x2a6a96(0x191));})}}),_0x3fda2a[_0x467f6b(0x19c)]){const _0x3fb138=new _0x261d22(_0x5add6c);_0x3fb138[_0x467f6b(0x1b6)]({'tag':_0x467f6b(0x195),'attributes':{'src':_0x3fda2a[_0x467f6b(0x19c)]||_0x8980dd,'alt':_0x3fda2a[_0x467f6b(0x18f)],'class':[_0x467f6b(0x16e)]}}),this[_0x467f6b(0x188)][_0x467f6b(0x17d)](_0x3fb138);}else this[_0x467f6b(0x17b)](_0x467f6b(0x1b2),_0x8980dd);}}
|