@ckeditor/ckeditor5-ai 47.3.0-alpha.4 → 47.3.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.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/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/documentrange.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/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.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/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.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/aireviewmodegeneralerrorview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x20b978=_0x44f1;(function(_0x3d8566,_0x29e498){const _0x3c795a=_0x44f1,_0x18b220=_0x3d8566();while(!![]){try{const _0x4e2349=-parseInt(_0x3c795a(0xec))/0x1+-parseInt(_0x3c795a(0xe5))/0x2+-parseInt(_0x3c795a(0xf9))/0x3*(parseInt(_0x3c795a(0xef))/0x4)+-parseInt(_0x3c795a(0xee))/0x5*(-parseInt(_0x3c795a(0xf8))/0x6)+parseInt(_0x3c795a(0xfa))/0x7+parseInt(_0x3c795a(0xfb))/0x8+parseInt(_0x3c795a(0xfd))/0x9;if(_0x4e2349===_0x29e498)break;else _0x18b220['push'](_0x18b220['shift']());}catch(_0x367349){_0x18b220['push'](_0x18b220['shift']());}}}(_0x2d7c,0xbe9e0));function _0x44f1(_0x28b426,_0x1ee35d){const _0x2d7c27=_0x2d7c();return _0x44f1=function(_0x44f1d1,_0xd7162a){_0x44f1d1=_0x44f1d1-0xe3;let _0x3d25a1=_0x2d7c27[_0x44f1d1];return _0x3d25a1;},_0x44f1(_0x28b426,_0x1ee35d);}import{ListItemView as _0x56ace3,View as _0x2185ed,ListView as _0x56667f}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x56ace3{[_0x20b978(0xed)];[_0x20b978(0xfe)];[_0x20b978(0xe3)];constructor(_0x479d6c,{title:_0x322294,items:_0x4771c8}){const _0x196038=_0x20b978;super(_0x479d6c);const _0x2ff117=this[_0x196038(0xf6)];this[_0x196038(0x102)](_0x196038(0xf2),!0x0),this[_0x196038(0xed)]=_0x322294,this[_0x196038(0xfe)]=_0x4771c8;const _0xdd0218=new _0x2185ed(_0x479d6c);_0xdd0218[_0x196038(0xeb)]({'tag':_0x196038(0xf7),'attributes':{'class':[_0x196038(0x100)]},'children':[this[_0x196038(0xed)]]}),this[_0x196038(0xe3)]=new _0x56667f(_0x479d6c),this[_0x196038(0xe3)][_0x196038(0xf4)][_0x196038(0xfc)](this[_0x196038(0xfe)]),this[_0x196038(0xeb)]({'tag':'li','attributes':{'class':[_0x196038(0xff),_0x2ff117['if'](_0x196038(0xf2),_0x196038(0xe9),_0x4d6293=>!_0x4d6293)]},'children':[_0xdd0218,this[_0x196038(0xe3)]]});}[_0x20b978(0xf0)](_0x18221e){const _0x1c98c5=_0x20b978,_0x3c896c=this[_0x1c98c5(0xfe)][_0x1c98c5(0xf1)];let _0x5b4fe8=0x0;for(const _0x194433 of this[_0x1c98c5(0xfe)]){if(_0x18221e){const _0x1f3de0=_0x194433[_0x1c98c5(0xf3)](_0x18221e);_0x194433[_0x1c98c5(0xf2)]=!!_0x1f3de0,_0x194433[_0x1c98c5(0xe8)](_0x18221e);}else _0x194433[_0x1c98c5(0xf2)]=!0x0,_0x194433[_0x1c98c5(0xe8)](null);_0x194433[_0x1c98c5(0xf2)]&&_0x5b4fe8++;}return this[_0x1c98c5(0xf2)]=_0x5b4fe8>0x0,{'resultsCount':_0x5b4fe8,'totalItemsCount':_0x3c896c};}[_0x20b978(0xe6)](_0x15fd4c){const _0x54f7c7=_0x20b978;return this[_0x54f7c7(0xfe)][_0x54f7c7(0xe7)](_0x529bfe=>_0x529bfe['id']===_0x15fd4c);}[_0x20b978(0xe4)](_0xdbea30){const _0x52bfa9=_0x20b978,_0x4241b7=this[_0x52bfa9(0xfe)][_0x52bfa9(0xf5)](_0xdbea30);-0x1!==_0x4241b7&&(this[_0x52bfa9(0xfe)][_0x52bfa9(0x101)](_0x4241b7,0x1),this[_0x52bfa9(0xe3)][_0x52bfa9(0xf4)][_0x52bfa9(0xea)](_0xdbea30));}}function _0x2d7c(){const _0x3137c3=['removeItem','1133714RXeynO','getItem','find','highlightText','ck-hidden','remove','setTemplate','941172dwVulX','title','59765yxRmOH','1613756FcoCEv','filter','length','isVisible','isMatching','items','indexOf','bindTemplate','div','468DaWJlJ','9TFcdKU','871815xOljWy','10225280SrzBJm','addMany','10476675dJflOl','itemsViews','ck-ai-chat-history__section','ck-ai-chat-history__section-title','splice','set','_itemsListView'];_0x2d7c=function(){return _0x3137c3;};return _0x2d7c();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x35682a=_0x1e3e;function _0x1e3e(_0x58c697,_0x2f2b35){const _0x35bb69=_0x35bb();return _0x1e3e=function(_0x1e3eda,_0x1f6657){_0x1e3eda=_0x1e3eda-0x18f;let _0x393ef1=_0x35bb69[_0x1e3eda];return _0x393ef1;},_0x1e3e(_0x58c697,_0x2f2b35);}(function(_0x2d7e6b,_0x487256){const _0x450b9a=_0x1e3e,_0x29b960=_0x2d7e6b();while(!![]){try{const _0x195aa1=parseInt(_0x450b9a(0x1b1))/0x1+parseInt(_0x450b9a(0x1d6))/0x2*(parseInt(_0x450b9a(0x196))/0x3)+-parseInt(_0x450b9a(0x1ad))/0x4+-parseInt(_0x450b9a(0x1cb))/0x5*(parseInt(_0x450b9a(0x19c))/0x6)+parseInt(_0x450b9a(0x1a4))/0x7*(parseInt(_0x450b9a(0x1ac))/0x8)+parseInt(_0x450b9a(0x1d2))/0x9*(-parseInt(_0x450b9a(0x1ca))/0xa)+parseInt(_0x450b9a(0x1ba))/0xb;if(_0x195aa1===_0x487256)break;else _0x29b960['push'](_0x29b960['shift']());}catch(_0x456043){_0x29b960['push'](_0x29b960['shift']());}}}(_0x35bb,0xaefd8));import{View as _0x5d19a2,SearchTextView as _0x1a3940,FormHeaderView as _0x5a0b01,ButtonView as _0x195a13}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x398e9d,IconCancel as _0x32e766,IconPlus as _0x29ab2b}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x1f86b4}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x1b133f}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x214e86}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x2bcf33}from'../aichathistoryui.js';import{AISkeletonView as _0x28d6d2,SKELETON_DEFINITIONS as _0x3cb250}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x2f4487}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x39be0d}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x5d19a2{[_0x35682a(0x1d0)];[_0x35682a(0x1e5)];[_0x35682a(0x199)];[_0x35682a(0x1a2)];[_0x35682a(0x1b5)];[_0x35682a(0x1a6)];constructor(_0x3ddd05,_0x5d2910){const _0x4c73a8=_0x35682a;super(_0x3ddd05),this[_0x4c73a8(0x1d8)](_0x4c73a8(0x1a5),!0x1),this[_0x4c73a8(0x1d8)](_0x4c73a8(0x1aa),!0x0),this[_0x4c73a8(0x1d8)](_0x4c73a8(0x1b9),''),this[_0x4c73a8(0x1d8)](_0x4c73a8(0x194),!0x1),this[_0x4c73a8(0x1d8)](_0x4c73a8(0x1d4),!0x1),this[_0x4c73a8(0x1d8)](_0x4c73a8(0x1e2),!0x1),this[_0x4c73a8(0x1d8)](_0x4c73a8(0x1bc),!0x1);const _0x1a8a4d=new _0x5a0b01(_0x3ddd05,{'label':_0x39be0d(_0x3ddd05,_0x4c73a8(0x1d5)),'icon':_0x398e9d,'class':_0x4c73a8(0x192)});_0x5d2910&&(this[_0x4c73a8(0x1a6)]=_0x2f4487(_0x3ddd05,this),_0x1a8a4d[_0x4c73a8(0x1c8)][_0x4c73a8(0x1e3)](this[_0x4c73a8(0x1a6)])),this[_0x4c73a8(0x1b5)]=new _0x1f86b4(_0x3ddd05,[]),this[_0x4c73a8(0x1b5)][_0x4c73a8(0x1ec)](..._0x2bcf33)['to'](this),this[_0x4c73a8(0x1e5)]=this[_0x4c73a8(0x1c3)](),this[_0x4c73a8(0x199)]=this[_0x4c73a8(0x1b4)](),this[_0x4c73a8(0x1a2)]=this[_0x4c73a8(0x1e8)](),this[_0x4c73a8(0x1d0)]=this[_0x4c73a8(0x1c9)](),this[_0x4c73a8(0x1e5)][_0x4c73a8(0x1a7)]({'attributes':{'class':[this[_0x4c73a8(0x1bf)]['if'](_0x4c73a8(0x1bc),_0x4c73a8(0x190),_0x564fc9=>!_0x564fc9)]}}),this['on'](_0x4c73a8(0x1cc),()=>this[_0x4c73a8(0x1b3)]()),this['on'](_0x4c73a8(0x1a1),()=>this[_0x4c73a8(0x1b3)]()),this['on'](_0x4c73a8(0x1d9),()=>this[_0x4c73a8(0x1b3)]()),this[_0x4c73a8(0x1cf)]({'tag':_0x4c73a8(0x193),'attributes':{'class':['ck',_0x4c73a8(0x1c7),_0x4c73a8(0x1df),_0x4c73a8(0x1db)],'dir':_0x4c73a8(0x19e)},'children':[_0x1a8a4d,{'tag':_0x4c73a8(0x193),'attributes':{'class':[_0x4c73a8(0x191)]},'children':[this[_0x4c73a8(0x199)],this[_0x4c73a8(0x1e5)],this[_0x4c73a8(0x1a2)],this[_0x4c73a8(0x1d0)]]}]});}[_0x35682a(0x1b3)](){const _0xe147e0=_0x35682a;this[_0xe147e0(0x1d4)]=!this[_0xe147e0(0x1aa)]&&this[_0xe147e0(0x1a5)],this[_0xe147e0(0x1e2)]=!this[_0xe147e0(0x1aa)]&&!this[_0xe147e0(0x1a5)]&&!this[_0xe147e0(0x1b9)],this[_0xe147e0(0x1bc)]=!this[_0xe147e0(0x1d4)]&&!!this[_0xe147e0(0x1b9)];}[_0x35682a(0x1c9)](){const _0xd3fdac=_0x35682a,_0x3cc1be=new _0x1a3940(this[_0xd3fdac(0x1a8)],{'filteredView':this[_0xd3fdac(0x1b5)],'queryView':{'label':_0x39be0d(this[_0xd3fdac(0x1a8)],_0xd3fdac(0x1c5))},'infoView':{'text':{'notFound':{'primary':_0x183057=>_0x39be0d(this[_0xd3fdac(0x1a8)],_0xd3fdac(0x19a),_0x183057),'secondary':_0x39be0d(this[_0xd3fdac(0x1a8)],_0xd3fdac(0x1af))}}}}),_0x2b0a8a=this[_0xd3fdac(0x1c3)]();return _0x2b0a8a[_0xd3fdac(0x1a7)]({'attributes':{'class':[this[_0xd3fdac(0x1bf)]['if'](_0xd3fdac(0x1b9),_0xd3fdac(0x190),_0x1cff60=>!_0x1cff60)]}}),_0x3cc1be['on'](_0xd3fdac(0x198),()=>{const _0x54a5e9=_0xd3fdac;_0x3cc1be[_0x54a5e9(0x1c8)][_0x54a5e9(0x1e3)](_0x2b0a8a,0x1);}),_0x3cc1be[_0xd3fdac(0x1a7)]({'attributes':{'class':[this[_0xd3fdac(0x1bf)]['if'](_0xd3fdac(0x1d4),_0xd3fdac(0x190),_0x4da3fe=>!_0x4da3fe)]}}),_0x3cc1be;}[_0x35682a(0x1b4)](){const _0x2ccd96=_0x35682a,_0x1a0573=new _0x28d6d2(this[_0x2ccd96(0x1a8)],_0x3cb250[_0x2ccd96(0x197)]);return _0x1a0573[_0x2ccd96(0x1a7)]({'attributes':{'class':[this[_0x2ccd96(0x1bf)]['if'](_0x2ccd96(0x1aa),_0x2ccd96(0x190),_0x5206b4=>!_0x5206b4)]}}),_0x1a0573;}[_0x35682a(0x1c3)](){const _0x4a0d30=_0x35682a,_0x144218=new _0x5d19a2(this[_0x4a0d30(0x1a8)]),_0x48b1eb=new _0x195a13(this[_0x4a0d30(0x1a8)]);_0x48b1eb[_0x4a0d30(0x1d8)]({'withText':!0x1,'icon':_0x32e766,'class':_0x4a0d30(0x1e1)}),_0x48b1eb[_0x4a0d30(0x1c4)](_0x4a0d30(0x1e9))['to'](this,_0x4a0d30(0x1a5),_0x56697b=>!!_0x56697b),_0x48b1eb['on'](_0x4a0d30(0x19b),()=>{const _0x64358e=_0x4a0d30;this[_0x64358e(0x1b9)]='';});const _0x103eaf=this[_0x4a0d30(0x1bf)];return _0x144218[_0x4a0d30(0x1cf)]({'tag':_0x4a0d30(0x193),'attributes':{'class':['ck',_0x4a0d30(0x1c0),_0x4a0d30(0x1b8)]},'children':[{'tag':'p','children':[{'text':_0x103eaf['to'](_0x4a0d30(0x1b9))}]},_0x48b1eb]}),_0x144218;}[_0x35682a(0x1e8)](){const _0x2a8555=_0x35682a,_0x27833b=new _0x195a13(this[_0x2a8555(0x1a8)]);_0x27833b[_0x2a8555(0x1d8)]({'label':_0x39be0d(this[_0x2a8555(0x1a8)],_0x2a8555(0x1dc)),'withText':!0x0,'icon':_0x29ab2b,'class':_0x2a8555(0x195)}),_0x27833b['on'](_0x2a8555(0x19b),()=>{const _0x39dd69=_0x2a8555;this[_0x39dd69(0x1dd)](_0x39dd69(0x1b7));});const _0x3ae471=new _0x5d19a2(this[_0x2a8555(0x1a8)]);return _0x3ae471[_0x2a8555(0x1cf)]({'tag':_0x2a8555(0x193),'attributes':{'class':[_0x2a8555(0x1e7),this[_0x2a8555(0x1bf)]['if'](_0x2a8555(0x1e2),_0x2a8555(0x190),_0x4d7d90=>!_0x4d7d90)]},'children':[{'tag':'p','attributes':{'class':[_0x2a8555(0x1b2)]},'children':[_0x39be0d(this[_0x2a8555(0x1a8)],_0x2a8555(0x1b0))]},_0x27833b]}),_0x3ae471;}[_0x35682a(0x1eb)](_0x4bf7f7,_0x4630da){const _0x4fa871=_0x35682a,_0x508b75=[];for(const _0x459425 of _0x4bf7f7){const _0x5054cb=new _0x214e86(_0x4630da,_0x459425);_0x5054cb[_0x4fa871(0x1ec)](..._0x2bcf33)['to'](this),_0x508b75[_0x4fa871(0x1a0)](_0x5054cb);}return _0x508b75;}[_0x35682a(0x1ea)](_0x344d7e){const _0x4d916d=_0x35682a,_0x5e065a=this[_0x4d916d(0x1a8)]||'en',_0x24066b=[];for(const _0x15c2cf of _0x344d7e){const _0x2f0135=this[_0x4d916d(0x1eb)](_0x15c2cf[_0x4d916d(0x1e6)],_0x5e065a);_0x24066b[_0x4d916d(0x1a0)](new _0x1b133f(_0x5e065a,{'title':_0x15c2cf[_0x4d916d(0x1da)],'items':_0x2f0135}));}this[_0x4d916d(0x1b5)][_0x4d916d(0x1a9)]=_0x24066b,this[_0x4d916d(0x1b5)][_0x4d916d(0x1e6)][_0x4d916d(0x1bd)](),this[_0x4d916d(0x1b5)][_0x4d916d(0x1e6)][_0x4d916d(0x19f)](_0x24066b),this[_0x4d916d(0x1a5)]=_0x344d7e[_0x4d916d(0x1c2)](_0x420759=>_0x420759[_0x4d916d(0x1e6)][_0x4d916d(0x19d)]>0x0),this[_0x4d916d(0x1d7)]();}[_0x35682a(0x1ce)](_0x576057){const _0x22f185=_0x35682a;for(const _0x532446 of this[_0x22f185(0x1b5)][_0x22f185(0x1a9)]){const _0x2fdc83=_0x532446[_0x22f185(0x1cd)](_0x576057);if(_0x2fdc83){if(_0x532446[_0x22f185(0x1ae)](_0x2fdc83),0x0===_0x532446[_0x22f185(0x1a3)][_0x22f185(0x19d)]){const _0x1262c8=this[_0x22f185(0x1b5)][_0x22f185(0x1a9)][_0x22f185(0x18f)](_0x532446);-0x1!==_0x1262c8&&(this[_0x22f185(0x1b5)][_0x22f185(0x1a9)][_0x22f185(0x1bb)](_0x1262c8,0x1),this[_0x22f185(0x1b5)][_0x22f185(0x1e6)][_0x22f185(0x1c1)](_0x532446));}this[_0x22f185(0x1a5)]=this[_0x22f185(0x1b5)][_0x22f185(0x1a9)][_0x22f185(0x19d)]>0x0,this[_0x22f185(0x1d7)]();break;}}}[_0x35682a(0x1d1)](_0xddce7b,_0x3082db){const _0x597696=_0x35682a;for(const _0x4781c7 of this[_0x597696(0x1b5)][_0x597696(0x1a9)]){const _0x2438f5=_0x4781c7[_0x597696(0x1cd)](_0xddce7b);if(_0x2438f5){_0x2438f5[_0x597696(0x1ab)](_0x3082db);break;}}}[_0x35682a(0x1d3)](_0x149fa7,_0x4d1a7a,_0x48cd39){const _0x5d4605=_0x35682a;for(const _0x46f8ed of this[_0x5d4605(0x1b5)][_0x5d4605(0x1a9)]){const _0x915d86=_0x46f8ed[_0x5d4605(0x1cd)](_0x149fa7);if(_0x915d86){_0x915d86[_0x5d4605(0x1e4)](_0x4d1a7a,_0x48cd39);break;}}}[_0x35682a(0x1d7)](){const _0x519ee2=_0x35682a;if(this[_0x519ee2(0x1a5)]){const _0x4367ee=this[_0x519ee2(0x1d0)][_0x519ee2(0x1c6)][_0x519ee2(0x1b6)]?.[_0x519ee2(0x1de)]?.[_0x519ee2(0x1e0)]||'';this[_0x519ee2(0x1d0)][_0x519ee2(0x1be)](_0x4367ee);}}}function _0x35bb(){const _0x1e082c=['AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','AI_CHAT_HISTORY_EMPTY_MESSAGE','328009nqnxTo','ck-ai-chat-history__empty-message','_updateViewVisibility','_createSkeletonView','sectionsView','fieldView','openChat','ck-ai-notification_error','errorMessage','1653322UqwBsQ','splice','isMainErrorViewVisible','clear','search','bindTemplate','ck-ai-notification','remove','some','_createErrorView','bind','AI_CHAT_HISTORY_SEARCH_LABEL','queryView','ck-reset_all','children','_createSearchView','10NPSznt','5wMPIQo','change:isLoading','getItem','removeHistoryItem','setTemplate','searchView','updateItemTitle','2131965yYNJlx','updateItemLoadingState','isSearchViewVisible','AI_CHAT_HISTORY_HEADING','16970kOjkGm','_refreshSearch','set','change:errorMessage','title','ck-rounded-corners','AI_CHAT_LABEL_NEW_CHAT','fire','element','ck-ai-chat-history','value','ck-ai-notification_error__dismiss-button','isEmptyViewVisible','add','updateLoadingState','mainErrorView','items','ck-ai-chat-history__empty','_createEmptyStateView','isVisible','updateHistoryItemsWithCategories','_createListItemViews','delegate','indexOf','ck-hidden','ck-ai-chat-history__content','ck-ai-header\x20ck-ai-header_history','div','isMaximized','ck-ai-chat__start-conversation','402biRUyx','aiHistory','render','skeletonView','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','execute','4645002SQeXgJ','length','ltr','addMany','push','change:hasItems','emptyView','itemsViews','24227JWXUkn','hasItems','resizeButton','extendTemplate','locale','sections','isLoading','updateTitle','2696uBAoBL','4215384MHVYoT','removeItem'];_0x35bb=function(){return _0x1e082c;};return _0x35bb();}
|
|
23
|
+
const _0x3638f2=_0x4627;(function(_0x1a6d39,_0x4f3e6b){const _0x3de284=_0x4627,_0x5ef57a=_0x1a6d39();while(!![]){try{const _0x548e64=-parseInt(_0x3de284(0x1b6))/0x1+-parseInt(_0x3de284(0x1b4))/0x2*(-parseInt(_0x3de284(0x1d4))/0x3)+parseInt(_0x3de284(0x199))/0x4*(-parseInt(_0x3de284(0x1e2))/0x5)+-parseInt(_0x3de284(0x1c3))/0x6+-parseInt(_0x3de284(0x1d7))/0x7*(parseInt(_0x3de284(0x1ba))/0x8)+parseInt(_0x3de284(0x1cd))/0x9+parseInt(_0x3de284(0x19c))/0xa;if(_0x548e64===_0x4f3e6b)break;else _0x5ef57a['push'](_0x5ef57a['shift']());}catch(_0x4e9c92){_0x5ef57a['push'](_0x5ef57a['shift']());}}}(_0x4c2d,0x4cbb3));import{View as _0x150ad0,SearchTextView as _0x3b2dad,FormHeaderView as _0x5b2a9d,ButtonView as _0x2c6ab4}from'ckeditor5/src/ui.js';import{IconAIHistory as _0xd1706a,IconCancel as _0x44d81b,IconPlus as _0x548678}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x2d33a9}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x3d0584}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x2490ad}from'./aichathistorylistitemview.js';function _0x4627(_0x4665f6,_0x2823b2){const _0x4c2de5=_0x4c2d();return _0x4627=function(_0x462753,_0x1ea645){_0x462753=_0x462753-0x189;let _0xdeb31c=_0x4c2de5[_0x462753];return _0xdeb31c;},_0x4627(_0x4665f6,_0x2823b2);}function _0x4c2d(){const _0x486162=['AI_CHAT_HISTORY_EMPTY_MESSAGE','_refreshSearch','setTemplate','1085LTvXzt','AI_CHAT_HISTORY_SEARCH_LABEL','bindTemplate','mainErrorView','ck-reset_all','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','isLoading','ck-hidden','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','ck-ai-chat-history__content','updateTitle','removeHistoryItem','isMaximized','ck-rounded-corners','fire','remove','ck-ai-chat-history','getItem','element','isEmptyViewVisible','11036EAyFkB','AI_CHAT_LABEL_NEW_CHAT','children','9269680DMULec','updateItemLoadingState','errorMessage','ck-ai-notification_error__dismiss-button','isVisible','itemsViews','openChat','title','updateLoadingState','clear','some','push','AI_CHAT_HISTORY_HEADING','queryView','aiHistory','searchView','addMany','change:errorMessage','ck-ai-chat-history__empty','emptyView','sectionsView','change:isLoading','isMainErrorViewVisible','resizeButton','4aKvZZY','set','397142mFfFis','ck-ai-chat__start-conversation','ck-ai-notification_error','_createListItemViews','24GpHMuk','value','_updateViewVisibility','fieldView','updateItemTitle','splice','div','locale','ltr','3317298swSJOI','removeItem','sections','_createErrorView','isSearchViewVisible','_createSearchView','length','items','search','change:hasItems','4847472vkeKkf','_createSkeletonView','ck-ai-chat-history__empty-message','hasItems','ck-ai-notification','delegate','indexOf','880254ymaQIx','updateHistoryItemsWithCategories','add','441917nacfug','bind','skeletonView','render','execute','extendTemplate','_createEmptyStateView','ck-ai-header\x20ck-ai-header_history'];_0x4c2d=function(){return _0x486162;};return _0x4c2d();}import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x1af161}from'../aichathistoryui.js';import{AISkeletonView as _0x2c3e80,SKELETON_DEFINITIONS as _0x14d5c9}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x303b5e}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x639742}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x150ad0{[_0x3638f2(0x1ab)];[_0x3638f2(0x1e5)];[_0x3638f2(0x1d9)];[_0x3638f2(0x1af)];[_0x3638f2(0x1b0)];[_0x3638f2(0x1b3)];constructor(_0x238815,_0x2f8181){const _0x2d7abd=_0x3638f2;super(_0x238815),this[_0x2d7abd(0x1b5)](_0x2d7abd(0x1d0),!0x1),this[_0x2d7abd(0x1b5)](_0x2d7abd(0x18b),!0x0),this[_0x2d7abd(0x1b5)](_0x2d7abd(0x19e),''),this[_0x2d7abd(0x1b5)](_0x2d7abd(0x191),!0x1),this[_0x2d7abd(0x1b5)](_0x2d7abd(0x1c7),!0x1),this[_0x2d7abd(0x1b5)](_0x2d7abd(0x198),!0x1),this[_0x2d7abd(0x1b5)](_0x2d7abd(0x1b2),!0x1);const _0x41d386=new _0x5b2a9d(_0x238815,{'label':_0x639742(_0x238815,_0x2d7abd(0x1a8)),'icon':_0xd1706a,'class':_0x2d7abd(0x1de)});_0x2f8181&&(this[_0x2d7abd(0x1b3)]=_0x303b5e(_0x238815,this),_0x41d386[_0x2d7abd(0x19b)][_0x2d7abd(0x1d6)](this[_0x2d7abd(0x1b3)])),this[_0x2d7abd(0x1b0)]=new _0x2d33a9(_0x238815,[]),this[_0x2d7abd(0x1b0)][_0x2d7abd(0x1d2)](..._0x1af161)['to'](this),this[_0x2d7abd(0x1e5)]=this[_0x2d7abd(0x1c6)](),this[_0x2d7abd(0x1d9)]=this[_0x2d7abd(0x1ce)](),this[_0x2d7abd(0x1af)]=this[_0x2d7abd(0x1dd)](),this[_0x2d7abd(0x1ab)]=this[_0x2d7abd(0x1c8)](),this[_0x2d7abd(0x1e5)][_0x2d7abd(0x1dc)]({'attributes':{'class':[this[_0x2d7abd(0x1e4)]['if'](_0x2d7abd(0x1b2),_0x2d7abd(0x18c),_0x5dd3d2=>!_0x5dd3d2)]}}),this['on'](_0x2d7abd(0x1b1),()=>this[_0x2d7abd(0x1bc)]()),this['on'](_0x2d7abd(0x1cc),()=>this[_0x2d7abd(0x1bc)]()),this['on'](_0x2d7abd(0x1ad),()=>this[_0x2d7abd(0x1bc)]()),this[_0x2d7abd(0x1e1)]({'tag':_0x2d7abd(0x1c0),'attributes':{'class':['ck',_0x2d7abd(0x189),_0x2d7abd(0x195),_0x2d7abd(0x192)],'dir':_0x2d7abd(0x1c2)},'children':[_0x41d386,{'tag':_0x2d7abd(0x1c0),'attributes':{'class':[_0x2d7abd(0x18e)]},'children':[this[_0x2d7abd(0x1d9)],this[_0x2d7abd(0x1e5)],this[_0x2d7abd(0x1af)],this[_0x2d7abd(0x1ab)]]}]});}[_0x3638f2(0x1bc)](){const _0x17ee5d=_0x3638f2;this[_0x17ee5d(0x1c7)]=!this[_0x17ee5d(0x18b)]&&this[_0x17ee5d(0x1d0)],this[_0x17ee5d(0x198)]=!this[_0x17ee5d(0x18b)]&&!this[_0x17ee5d(0x1d0)]&&!this[_0x17ee5d(0x19e)],this[_0x17ee5d(0x1b2)]=!this[_0x17ee5d(0x1c7)]&&!!this[_0x17ee5d(0x19e)];}[_0x3638f2(0x1c8)](){const _0x4836c2=_0x3638f2,_0x45fc24=new _0x3b2dad(this[_0x4836c2(0x1c1)],{'filteredView':this[_0x4836c2(0x1b0)],'queryView':{'label':_0x639742(this[_0x4836c2(0x1c1)],_0x4836c2(0x1e3))},'infoView':{'text':{'notFound':{'primary':_0x1294f5=>_0x639742(this[_0x4836c2(0x1c1)],_0x4836c2(0x18a),_0x1294f5),'secondary':_0x639742(this[_0x4836c2(0x1c1)],_0x4836c2(0x18d))}}}}),_0x4ec474=this[_0x4836c2(0x1c6)]();return _0x4ec474[_0x4836c2(0x1dc)]({'attributes':{'class':[this[_0x4836c2(0x1e4)]['if'](_0x4836c2(0x19e),_0x4836c2(0x18c),_0x3cab72=>!_0x3cab72)]}}),_0x45fc24['on'](_0x4836c2(0x1da),()=>{const _0x9a4c72=_0x4836c2;_0x45fc24[_0x9a4c72(0x19b)][_0x9a4c72(0x1d6)](_0x4ec474,0x1);}),_0x45fc24[_0x4836c2(0x1dc)]({'attributes':{'class':[this[_0x4836c2(0x1e4)]['if'](_0x4836c2(0x1c7),_0x4836c2(0x18c),_0x1b6dc4=>!_0x1b6dc4)]}}),_0x45fc24;}[_0x3638f2(0x1ce)](){const _0x278e52=_0x3638f2,_0x184d6d=new _0x2c3e80(this[_0x278e52(0x1c1)],_0x14d5c9[_0x278e52(0x1aa)]);return _0x184d6d[_0x278e52(0x1dc)]({'attributes':{'class':[this[_0x278e52(0x1e4)]['if'](_0x278e52(0x18b),_0x278e52(0x18c),_0x3575a4=>!_0x3575a4)]}}),_0x184d6d;}[_0x3638f2(0x1c6)](){const _0xeae7f0=_0x3638f2,_0xfcd4c6=new _0x150ad0(this[_0xeae7f0(0x1c1)]),_0x210f77=new _0x2c6ab4(this[_0xeae7f0(0x1c1)]);_0x210f77[_0xeae7f0(0x1b5)]({'withText':!0x1,'icon':_0x44d81b,'class':_0xeae7f0(0x19f)}),_0x210f77[_0xeae7f0(0x1d8)](_0xeae7f0(0x1a0))['to'](this,_0xeae7f0(0x1d0),_0x2b17e1=>!!_0x2b17e1),_0x210f77['on'](_0xeae7f0(0x1db),()=>{const _0x1a804f=_0xeae7f0;this[_0x1a804f(0x19e)]='';});const _0xa2e43=this[_0xeae7f0(0x1e4)];return _0xfcd4c6[_0xeae7f0(0x1e1)]({'tag':_0xeae7f0(0x1c0),'attributes':{'class':['ck',_0xeae7f0(0x1d1),_0xeae7f0(0x1b8)]},'children':[{'tag':'p','children':[{'text':_0xa2e43['to'](_0xeae7f0(0x19e))}]},_0x210f77]}),_0xfcd4c6;}[_0x3638f2(0x1dd)](){const _0x2cd046=_0x3638f2,_0x2f5ab9=new _0x2c6ab4(this[_0x2cd046(0x1c1)]);_0x2f5ab9[_0x2cd046(0x1b5)]({'label':_0x639742(this[_0x2cd046(0x1c1)],_0x2cd046(0x19a)),'withText':!0x0,'icon':_0x548678,'class':_0x2cd046(0x1b7)}),_0x2f5ab9['on'](_0x2cd046(0x1db),()=>{const _0x1b1465=_0x2cd046;this[_0x1b1465(0x193)](_0x1b1465(0x1a2));});const _0x5234a5=new _0x150ad0(this[_0x2cd046(0x1c1)]);return _0x5234a5[_0x2cd046(0x1e1)]({'tag':_0x2cd046(0x1c0),'attributes':{'class':[_0x2cd046(0x1ae),this[_0x2cd046(0x1e4)]['if'](_0x2cd046(0x198),_0x2cd046(0x18c),_0x5c25c9=>!_0x5c25c9)]},'children':[{'tag':'p','attributes':{'class':[_0x2cd046(0x1cf)]},'children':[_0x639742(this[_0x2cd046(0x1c1)],_0x2cd046(0x1df))]},_0x2f5ab9]}),_0x5234a5;}[_0x3638f2(0x1b9)](_0x108853,_0x1bdfc2){const _0x505e60=_0x3638f2,_0xb24b7c=[];for(const _0x499759 of _0x108853){const _0x19201f=new _0x2490ad(_0x1bdfc2,_0x499759);_0x19201f[_0x505e60(0x1d2)](..._0x1af161)['to'](this),_0xb24b7c[_0x505e60(0x1a7)](_0x19201f);}return _0xb24b7c;}[_0x3638f2(0x1d5)](_0xb11da0){const _0x5a6346=_0x3638f2,_0x11ea8e=this[_0x5a6346(0x1c1)]||'en',_0x4bc918=[];for(const _0x8861c5 of _0xb11da0){const _0x3df94d=this[_0x5a6346(0x1b9)](_0x8861c5[_0x5a6346(0x1ca)],_0x11ea8e);_0x4bc918[_0x5a6346(0x1a7)](new _0x3d0584(_0x11ea8e,{'title':_0x8861c5[_0x5a6346(0x1a3)],'items':_0x3df94d}));}this[_0x5a6346(0x1b0)][_0x5a6346(0x1c5)]=_0x4bc918,this[_0x5a6346(0x1b0)][_0x5a6346(0x1ca)][_0x5a6346(0x1a5)](),this[_0x5a6346(0x1b0)][_0x5a6346(0x1ca)][_0x5a6346(0x1ac)](_0x4bc918),this[_0x5a6346(0x1d0)]=_0xb11da0[_0x5a6346(0x1a6)](_0x3428fa=>_0x3428fa[_0x5a6346(0x1ca)][_0x5a6346(0x1c9)]>0x0),this[_0x5a6346(0x1e0)]();}[_0x3638f2(0x190)](_0x1b00e5){const _0x508c82=_0x3638f2;for(const _0x398d13 of this[_0x508c82(0x1b0)][_0x508c82(0x1c5)]){const _0x41de29=_0x398d13[_0x508c82(0x196)](_0x1b00e5);if(_0x41de29){if(_0x398d13[_0x508c82(0x1c4)](_0x41de29),0x0===_0x398d13[_0x508c82(0x1a1)][_0x508c82(0x1c9)]){const _0x35ff57=this[_0x508c82(0x1b0)][_0x508c82(0x1c5)][_0x508c82(0x1d3)](_0x398d13);-0x1!==_0x35ff57&&(this[_0x508c82(0x1b0)][_0x508c82(0x1c5)][_0x508c82(0x1bf)](_0x35ff57,0x1),this[_0x508c82(0x1b0)][_0x508c82(0x1ca)][_0x508c82(0x194)](_0x398d13));}this[_0x508c82(0x1d0)]=this[_0x508c82(0x1b0)][_0x508c82(0x1c5)][_0x508c82(0x1c9)]>0x0,this[_0x508c82(0x1e0)]();break;}}}[_0x3638f2(0x1be)](_0x1c1730,_0x509ef4){const _0x1b9db1=_0x3638f2;for(const _0x28fda8 of this[_0x1b9db1(0x1b0)][_0x1b9db1(0x1c5)]){const _0x3c1c49=_0x28fda8[_0x1b9db1(0x196)](_0x1c1730);if(_0x3c1c49){_0x3c1c49[_0x1b9db1(0x18f)](_0x509ef4);break;}}}[_0x3638f2(0x19d)](_0x5af566,_0x3e4e9e,_0x7598cb){const _0x3003c0=_0x3638f2;for(const _0x26f430 of this[_0x3003c0(0x1b0)][_0x3003c0(0x1c5)]){const _0x2b30eb=_0x26f430[_0x3003c0(0x196)](_0x5af566);if(_0x2b30eb){_0x2b30eb[_0x3003c0(0x1a4)](_0x3e4e9e,_0x7598cb);break;}}}[_0x3638f2(0x1e0)](){const _0x2fe395=_0x3638f2;if(this[_0x2fe395(0x1d0)]){const _0x4d0289=this[_0x2fe395(0x1ab)][_0x2fe395(0x1a9)][_0x2fe395(0x1bd)]?.[_0x2fe395(0x197)]?.[_0x2fe395(0x1bb)]||'';this[_0x2fe395(0x1ab)][_0x2fe395(0x1cb)](_0x4d0289);}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1d51b9=_0x3d41;function _0x4a7e(){const _0x11d39e=['callCustomReview','pluginName','json','signal','/documents','https://ai.cke-cs.com/v1','ai-request-failed','application/json','fix-grammar','uploadDocument','MAKE_LONGER','isOfficialPlugin','reset','continue','/files','/calls/','PUT','upsertAIActionRating','toString','releaseLock','PATCH','/models/1','define','make-longer','stringify','ai-request-aborted','IMPROVE_WRITING','callSystemReview','executeAction','statusText','deleteDocument','init','traceId','queryAssistant','_decoder','MAKE_SHORTER','24ksjEZN','TRANSLATE','212iJtlsw','MAKE_TONE_FORMAL','true','requires','config','deleteFile','group','make-shorter','fetchConversationMessages','GET','get','make-tone-casual','length','executeCustomAction','push','excludeEmpty','_getStreamReader','30jnJOtI','positiveCount','MAKE_TONE_CASUAL','body','ai-missing-token','DELETE','/calls','file','then','Content-Type','AIConnector','translate','CONTINUE','search','deleteWebResource','deleteConversation','items','/conversations','token','limit','/conversations/','catch','improve-writing','100','fetchConversations','message','7739721TRohUT','5443208ymlSAp','/ratings','upsertAIReviewRating','getReader','fetchDocument','decode','updateConversation','upsertAIChatRating','_handleError','read','_token','/messages','/actions/system/','feed','totalCount','/web-resources','keys','/reviews/custom/calls/','attributes','FIX_GRAMMAR','/reviews/system/','58680VRvKVc','2818242KtVhHI','/reviews/custom/calls','context','/actions/custom/calls/','uploadFile','modificationId','/documents/','ai.serviceUrl','Bearer\x20','/messages/','2748pFxHCE','_apiUrl','data','code','/web-resources/','startConversation','name','fetchConversation','append','value','text','abortController','AbortError','getModels','isPremiumPlugin','/conversations?','679803Gcgrwl','upsertCustomAIActionRating','status','request','plugins','uploadUrl','make-tone-formal','40705WZHZxj','777wplGZT','POST','upsertCustomAIReviewRating','parse','CloudServices','/files/','/actions/custom/calls','_sendApiRequest'];_0x4a7e=function(){return _0x11d39e;};return _0x4a7e();}(function(_0x4d11ab,_0x6c9dc){const _0x4aba88=_0x3d41,_0xd3c7cb=_0x4d11ab();while(!![]){try{const _0x15708a=parseInt(_0x4aba88(0x198))/0x1*(-parseInt(_0x4aba88(0x133))/0x2)+-parseInt(_0x4aba88(0x191))/0x3+parseInt(_0x4aba88(0x135))/0x4*(-parseInt(_0x4aba88(0x176))/0x5)+parseInt(_0x4aba88(0x181))/0x6*(parseInt(_0x4aba88(0x199))/0x7)+-parseInt(_0x4aba88(0x161))/0x8+parseInt(_0x4aba88(0x177))/0x9+parseInt(_0x4aba88(0x146))/0xa*(parseInt(_0x4aba88(0x160))/0xb);if(_0x15708a===_0x6c9dc)break;else _0xd3c7cb['push'](_0xd3c7cb['shift']());}catch(_0x3f597c){_0xd3c7cb['push'](_0xd3c7cb['shift']());}}}(_0x4a7e,0x6fa7b));import{createParser as _0x34775d}from'eventsource-parser';import{ContextPlugin as _0x498ac0}from'ckeditor5/src/core.js';import{CKEditorError as _0xc91ee9}from'ckeditor5/src/utils.js';function _0x3d41(_0x2bb8f9,_0x4561d8){const _0x4a7e28=_0x4a7e();return _0x3d41=function(_0x3d41d7,_0x27c71e){_0x3d41d7=_0x3d41d7-0x132;let _0x32e1e7=_0x4a7e28[_0x3d41d7];return _0x32e1e7;},_0x3d41(_0x2bb8f9,_0x4561d8);}export var AIActionsNames;!function(_0x39f7ab){const _0x4514e9=_0x3d41;_0x39f7ab[_0x4514e9(0x152)]=_0x4514e9(0x1ae),_0x39f7ab[_0x4514e9(0x174)]=_0x4514e9(0x1a9),_0x39f7ab[_0x4514e9(0x1bb)]=_0x4514e9(0x15c),_0x39f7ab[_0x4514e9(0x1ab)]=_0x4514e9(0x1b8),_0x39f7ab[_0x4514e9(0x132)]=_0x4514e9(0x13c),_0x39f7ab[_0x4514e9(0x148)]=_0x4514e9(0x140),_0x39f7ab[_0x4514e9(0x136)]=_0x4514e9(0x197),_0x39f7ab[_0x4514e9(0x134)]=_0x4514e9(0x151);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x498ac0{[_0x1d51b9(0x182)];[_0x1d51b9(0x16b)];[_0x1d51b9(0x1c3)];static get[_0x1d51b9(0x138)](){const _0x44b864=_0x1d51b9;return[_0x44b864(0x19d)];}static get[_0x1d51b9(0x1a2)](){const _0x3d5e7e=_0x1d51b9;return _0x3d5e7e(0x150);}static get[_0x1d51b9(0x1ac)](){return!0x0;}static get[_0x1d51b9(0x18f)](){return!0x0;}constructor(_0x5ef50c){const _0x3fbb04=_0x1d51b9;super(_0x5ef50c),this[_0x3fbb04(0x179)][_0x3fbb04(0x139)][_0x3fbb04(0x1b7)](_0x3fbb04(0x17e),_0x3fbb04(0x1a6)),this[_0x3fbb04(0x182)]=this[_0x3fbb04(0x179)][_0x3fbb04(0x139)][_0x3fbb04(0x13f)](_0x3fbb04(0x17e)),this[_0x3fbb04(0x16b)]=null,this[_0x3fbb04(0x1c3)]=new TextDecoder();}[_0x1d51b9(0x1c0)](){const _0x82e936=_0x1d51b9,_0x159925=this[_0x82e936(0x179)][_0x82e936(0x195)][_0x82e936(0x13f)](_0x82e936(0x19d));if(!_0x159925[_0x82e936(0x158)])throw new _0xc91ee9(_0x82e936(0x14a),this);this[_0x82e936(0x16b)]=_0x159925[_0x82e936(0x158)];}[_0x1d51b9(0x186)](_0x508d01,_0xffce2c){const _0xf05e86=_0x1d51b9,_0x17b939=this[_0xf05e86(0x1a0)](_0xf05e86(0x157),_0xf05e86(0x19a),{'id':_0x508d01,'group':_0xffce2c});return{'getConversation':async()=>(await _0x17b939[_0xf05e86(0x194)])[_0xf05e86(0x1a3)](),'abortController':_0x17b939[_0xf05e86(0x18c)]};}[_0x1d51b9(0x1c2)]({message:_0x2d21c,conversationId:_0x44a677,parts:_0x1a9664,capabilities:_0x24c2e6,model:_0x186769,quickActionData:_0x3d6d3d}){const _0x38f20d=_0x1d51b9,_0x451277={..._0x3d6d3d&&{'quickActionData':_0x3d6d3d}},_0x3c0183={'prompt':_0x2d21c,'content':_0x1a9664,'model':_0x186769,..._0x24c2e6&&{'capabilities':_0x24c2e6},...Object[_0x38f20d(0x171)](_0x451277)[_0x38f20d(0x141)]>0x0&&{'attributes':_0x451277}},_0x147639=this[_0x38f20d(0x1a0)](_0x38f20d(0x15a)+_0x44a677+_0x38f20d(0x16c),_0x38f20d(0x19a),_0x3c0183);return{'getStream':async()=>{const _0x37e203=_0x38f20d,_0x5358b9=(await _0x147639[_0x37e203(0x194)])[_0x37e203(0x149)];return this[_0x37e203(0x145)](_0x5358b9);},'abortController':_0x147639[_0x38f20d(0x18c)]};}[_0x1d51b9(0x142)]({content:_0x12eaaf,message:_0x49338b,model:_0x317741,outputFormat:_0x56a5a5}){const _0x373f1c=_0x1d51b9,_0x3faed3={'content':[{'type':_0x373f1c(0x18b),'content':_0x12eaaf}],'prompt':_0x49338b,'model':_0x317741,'outputFormat':_0x56a5a5},_0x393ca6=this[_0x373f1c(0x1a0)](_0x373f1c(0x19f),_0x373f1c(0x19a),_0x3faed3);return{'getStream':async()=>{const _0x8a97e5=_0x373f1c,_0x353220=(await _0x393ca6[_0x8a97e5(0x194)])[_0x8a97e5(0x149)];return this[_0x8a97e5(0x145)](_0x353220);},'abortController':_0x393ca6[_0x373f1c(0x18c)]};}[_0x1d51b9(0x1bd)]({actionName:_0x5c3c82,content:_0x4eedc5,args:_0x8162ba}){const _0x108bab=_0x1d51b9,_0x3dc443={'content':[{'type':_0x108bab(0x18b),'content':_0x4eedc5}],'args':_0x8162ba},_0x3a50d4=this[_0x108bab(0x1a0)](_0x108bab(0x16d)+_0x5c3c82+_0x108bab(0x14c),_0x108bab(0x19a),_0x3dc443);return{'getStream':async()=>{const _0x41adf5=_0x108bab,_0x1ebe3b=(await _0x3a50d4[_0x41adf5(0x194)])[_0x41adf5(0x149)];return this[_0x41adf5(0x145)](_0x1ebe3b);},'abortController':_0x3a50d4[_0x108bab(0x18c)]};}[_0x1d51b9(0x17b)](_0x3ffaf8,_0x2bf640,_0x3bdd4f){const _0x2a2929=_0x1d51b9,_0xb7e0a2=new FormData();_0xb7e0a2[_0x2a2929(0x189)](_0x2a2929(0x14d),_0x2bf640,_0x2bf640[_0x2a2929(0x187)]),_0x3bdd4f&&_0xb7e0a2[_0x2a2929(0x189)](_0x2a2929(0x173),JSON[_0x2a2929(0x1b9)](_0x3bdd4f));const _0x12f7f1=this[_0x2a2929(0x1a0)](_0x2a2929(0x15a)+_0x3ffaf8+_0x2a2929(0x1af),_0x2a2929(0x19a),_0xb7e0a2);return{'getId':async()=>(await _0x12f7f1[_0x2a2929(0x194)])[_0x2a2929(0x1a3)](),'abortController':_0x12f7f1[_0x2a2929(0x18c)]};}[_0x1d51b9(0x165)](_0xe53136,_0x1b999a){const _0x3c2442=_0x1d51b9,_0x384ea0=this[_0x3c2442(0x1a0)](_0x3c2442(0x15a)+_0xe53136+_0x3c2442(0x17d)+_0x1b999a,_0x3c2442(0x13e));return{'getDocument':async()=>(await _0x384ea0[_0x3c2442(0x194)])[_0x3c2442(0x1a3)](),'abortController':_0x384ea0[_0x3c2442(0x18c)]};}[_0x1d51b9(0x1aa)](_0x277985,_0x53aebf,_0x19c987){const _0x4b719e=_0x1d51b9,_0x3a5324={'content':_0x53aebf};_0x19c987&&(_0x3a5324[_0x4b719e(0x173)]=_0x19c987);const _0x5125fa=this[_0x4b719e(0x1a0)](_0x4b719e(0x15a)+_0x277985+_0x4b719e(0x1a5),_0x4b719e(0x19a),_0x3a5324);return{'getId':async()=>(await _0x5125fa[_0x4b719e(0x194)])[_0x4b719e(0x1a3)](),'abortController':_0x5125fa[_0x4b719e(0x18c)]};}[_0x1d51b9(0x15e)](_0x216a38,_0x2b612f){const _0x1eb831=_0x1d51b9,_0x36c124=new URLSearchParams();_0x36c124[_0x1eb831(0x189)](_0x1eb831(0x144),_0x1eb831(0x137)),_0x36c124[_0x1eb831(0x189)](_0x1eb831(0x159),_0x1eb831(0x15d)),_0x36c124[_0x1eb831(0x189)](_0x1eb831(0x13b),_0x216a38),_0x2b612f&&_0x36c124[_0x1eb831(0x189)](_0x1eb831(0x153),_0x2b612f);const _0x455c2f=this[_0x1eb831(0x1a0)](_0x1eb831(0x190)+_0x36c124[_0x1eb831(0x1b3)](),_0x1eb831(0x13e));return{'getConversations':async()=>{const _0x5b10fb=_0x1eb831,_0x4374f7=await _0x455c2f[_0x5b10fb(0x194)];return(await _0x4374f7[_0x5b10fb(0x1a3)]())[_0x5b10fb(0x156)];},'abortController':_0x455c2f[_0x1eb831(0x18c)]};}[_0x1d51b9(0x155)](_0x264c14){const _0xbfbb90=_0x1d51b9,_0x1a91ef=this[_0xbfbb90(0x1a0)](_0xbfbb90(0x15a)+_0x264c14,_0xbfbb90(0x14b));return{'execute':async()=>{const _0x355d07=_0xbfbb90;await _0x1a91ef[_0x355d07(0x194)];},'abortController':_0x1a91ef[_0xbfbb90(0x18c)]};}[_0x1d51b9(0x167)](_0x41472f,_0x52e173){const _0x403867=_0x1d51b9,_0x5b684f=this[_0x403867(0x1a0)](_0x403867(0x15a)+_0x41472f,_0x403867(0x1b5),_0x52e173);return{'getResult':async()=>(await _0x5b684f[_0x403867(0x194)],_0x52e173),'abortController':_0x5b684f[_0x403867(0x18c)]};}[_0x1d51b9(0x188)](_0x2fd4a2){const _0x28cb08=_0x1d51b9,_0x46d627=this[_0x28cb08(0x1a0)](_0x28cb08(0x15a)+_0x2fd4a2,_0x28cb08(0x13e));return{'getConversation':async()=>(await _0x46d627[_0x28cb08(0x194)])[_0x28cb08(0x1a3)](),'abortController':_0x46d627[_0x28cb08(0x18c)]};}[_0x1d51b9(0x13d)](_0xa5b6a1){const _0x18e577=_0x1d51b9,_0x56ff16=this[_0x18e577(0x1a0)](_0x18e577(0x15a)+_0xa5b6a1+_0x18e577(0x16c),_0x18e577(0x13e));return{'getMessages':async()=>{const _0x338a7f=_0x18e577,_0x4f29b6=await _0x56ff16[_0x338a7f(0x194)];return(await _0x4f29b6[_0x338a7f(0x1a3)]())[_0x338a7f(0x156)];},'abortController':_0x56ff16[_0x18e577(0x18c)]};}[_0x1d51b9(0x196)](_0x1527fe,_0x58123b,_0x1cc05f){const _0x4601bb=_0x1d51b9,_0x28a886=this[_0x4601bb(0x1a0)](_0x4601bb(0x15a)+_0x1527fe+_0x4601bb(0x170),_0x4601bb(0x19a),{'url':_0x58123b,'attributes':_0x1cc05f});return{'getId':async()=>(await _0x28a886[_0x4601bb(0x194)])[_0x4601bb(0x1a3)](),'abortController':_0x28a886[_0x4601bb(0x18c)]};}[_0x1d51b9(0x18e)](){const _0x5e3939=_0x1d51b9,_0x5ae95e=this[_0x5e3939(0x1a0)](_0x5e3939(0x1b6),_0x5e3939(0x13e));return{'list':async()=>await(await _0x5ae95e[_0x5e3939(0x194)])[_0x5e3939(0x1a3)](),'abortController':_0x5ae95e[_0x5e3939(0x18c)]};}[_0x1d51b9(0x13a)](_0x1ac123,_0x2698a2){const _0x4c5350=_0x1d51b9,_0x158517=this[_0x4c5350(0x1a0)](_0x4c5350(0x15a)+_0x1ac123+_0x4c5350(0x19e)+_0x2698a2,_0x4c5350(0x14b));return{'execute':async()=>{const _0x1b7191=_0x4c5350;await _0x158517[_0x1b7191(0x194)];},'abortController':_0x158517[_0x4c5350(0x18c)]};}[_0x1d51b9(0x1bf)](_0x204cb2,_0x1a7b26){const _0x5ec68c=_0x1d51b9,_0x2e934a=this[_0x5ec68c(0x1a0)](_0x5ec68c(0x15a)+_0x204cb2+_0x5ec68c(0x17d)+_0x1a7b26,_0x5ec68c(0x14b));return{'execute':async()=>{const _0x3391e0=_0x5ec68c;await _0x2e934a[_0x3391e0(0x194)];},'abortController':_0x2e934a[_0x5ec68c(0x18c)]};}[_0x1d51b9(0x154)](_0x112343,_0x2a399f){const _0xe3cb7e=_0x1d51b9,_0x514194=this[_0xe3cb7e(0x1a0)](_0xe3cb7e(0x15a)+_0x112343+_0xe3cb7e(0x185)+_0x2a399f,_0xe3cb7e(0x14b));return{'execute':async()=>{const _0x458e38=_0xe3cb7e;await _0x514194[_0x458e38(0x194)];},'abortController':_0x514194[_0xe3cb7e(0x18c)]};}[_0x1d51b9(0x1bc)]({reviewName:_0x3826e4,content:_0x5bc974,args:_0x45b7e3}){const _0x4c5932=_0x1d51b9,_0x2fc13b=this[_0x4c5932(0x1a0)](_0x4c5932(0x175)+_0x3826e4+_0x4c5932(0x14c),_0x4c5932(0x19a),{'content':[{'type':_0x4c5932(0x18b),'content':_0x5bc974}],'args':_0x45b7e3});return{'getStream':async()=>{const _0x3dad5a=_0x4c5932,_0x3da2ea=(await _0x2fc13b[_0x3dad5a(0x194)])[_0x3dad5a(0x149)];return this[_0x3dad5a(0x145)](_0x3da2ea);},'abortController':_0x2fc13b[_0x4c5932(0x18c)]};}[_0x1d51b9(0x1a1)]({content:_0x108ace,prompt:_0x1afd70,model:_0x55cc18}){const _0x48c152=_0x1d51b9,_0x4a05ac=this[_0x48c152(0x1a0)](_0x48c152(0x178),_0x48c152(0x19a),{'content':[{'type':_0x48c152(0x18b),'content':_0x108ace}],'prompt':_0x1afd70,'model':_0x55cc18});return{'getStream':async()=>{const _0x458ee0=_0x48c152,_0x2912ab=(await _0x4a05ac[_0x458ee0(0x194)])[_0x458ee0(0x149)];return this[_0x458ee0(0x145)](_0x2912ab);},'abortController':_0x4a05ac[_0x48c152(0x18c)]};}[_0x1d51b9(0x168)](_0x10c0a3,_0x2656f1,_0x17d706){const _0x4fd35e=_0x1d51b9,_0x32827b=this[_0x4fd35e(0x1a0)](_0x4fd35e(0x15a)+_0x10c0a3+_0x4fd35e(0x180)+_0x2656f1+_0x4fd35e(0x162),_0x4fd35e(0x1b1),{'positiveCount':_0x17d706[_0x4fd35e(0x147)],'totalCount':_0x17d706[_0x4fd35e(0x16f)],'modificationId':_0x17d706[_0x4fd35e(0x17c)]});return{'execute':async()=>{const _0x49d8e2=_0x4fd35e;await _0x32827b[_0x49d8e2(0x194)];},'abortController':_0x32827b[_0x4fd35e(0x18c)]};}[_0x1d51b9(0x1b2)](_0x22c3d0,_0x1b15cf,_0x300930){const _0x42ce57=_0x1d51b9,_0x166f99=this[_0x42ce57(0x1a0)](_0x42ce57(0x16d)+_0x22c3d0+_0x42ce57(0x1b0)+_0x1b15cf+_0x42ce57(0x162),_0x42ce57(0x1b1),{'positiveCount':_0x300930[_0x42ce57(0x147)],'totalCount':_0x300930[_0x42ce57(0x16f)]});return{'execute':async()=>{const _0x4b4c67=_0x42ce57;await _0x166f99[_0x4b4c67(0x194)];},'abortController':_0x166f99[_0x42ce57(0x18c)]};}[_0x1d51b9(0x192)](_0x3d0338,_0x1bbb07){const _0x4324ab=_0x1d51b9,_0x823b56=this[_0x4324ab(0x1a0)](_0x4324ab(0x17a)+_0x3d0338+_0x4324ab(0x162),_0x4324ab(0x1b1),{'positiveCount':_0x1bbb07[_0x4324ab(0x147)],'totalCount':_0x1bbb07[_0x4324ab(0x16f)]});return{'execute':async()=>{const _0x42c841=_0x4324ab;await _0x823b56[_0x42c841(0x194)];},'abortController':_0x823b56[_0x4324ab(0x18c)]};}[_0x1d51b9(0x163)](_0x2f2b40,_0x11f74f,_0x226366,_0x47a706){const _0x28edac=_0x1d51b9,_0x83c6ee=this[_0x28edac(0x1a0)](_0x28edac(0x175)+_0x2f2b40+_0x28edac(0x1b0)+_0x11f74f+_0x28edac(0x162),_0x28edac(0x1b1),{'positiveCount':_0x226366[_0x28edac(0x147)],'totalCount':_0x226366[_0x28edac(0x16f)],'dataId':_0x47a706});return{'execute':async()=>{const _0x11c062=_0x28edac;await _0x83c6ee[_0x11c062(0x194)];},'abortController':_0x83c6ee[_0x28edac(0x18c)]};}[_0x1d51b9(0x19b)](_0x2a1f0d,_0xd1ffc5,_0x16d7c7){const _0x14abb3=_0x1d51b9,_0x25c4c2=this[_0x14abb3(0x1a0)](_0x14abb3(0x172)+_0x2a1f0d+_0x14abb3(0x162),_0x14abb3(0x1b1),{'positiveCount':_0xd1ffc5[_0x14abb3(0x147)],'totalCount':_0xd1ffc5[_0x14abb3(0x16f)],'dataId':_0x16d7c7});return{'execute':async()=>{const _0x2eb069=_0x14abb3;await _0x25c4c2[_0x2eb069(0x194)];},'abortController':_0x25c4c2[_0x14abb3(0x18c)]};}[_0x1d51b9(0x1a0)](_0x23fe7f,_0x1911be,_0x4c59ae){const _0x26317a=_0x1d51b9,_0x1a18f2=new AbortController(),_0x29177b=_0x4c59ae instanceof FormData,_0x40dd70={'Authorization':_0x26317a(0x17f)+this[_0x26317a(0x16b)]?.[_0x26317a(0x18a)]};_0x4c59ae&&!_0x29177b&&(_0x40dd70[_0x26317a(0x14f)]=_0x26317a(0x1a8));const _0x4c6b63={'method':_0x1911be,'headers':_0x40dd70,'signal':_0x1a18f2[_0x26317a(0x1a4)]};return _0x4c59ae&&(_0x4c6b63[_0x26317a(0x149)]=_0x29177b?_0x4c59ae:JSON[_0x26317a(0x1b9)](_0x4c59ae)),{'request':fetch(''+this[_0x26317a(0x182)]+_0x23fe7f,_0x4c6b63)[_0x26317a(0x15b)](_0xc6c613=>{const _0x434d29=_0x26317a;this[_0x434d29(0x169)](_0xc6c613);})[_0x26317a(0x14e)](_0x5c63a6=>_0x5c63a6['ok']?_0x5c63a6:_0x5c63a6[_0x26317a(0x1a3)]()[_0x26317a(0x14e)](_0x2926fe=>{const _0x2f3887=_0x26317a;throw{'url':this[_0x2f3887(0x182)],'path':_0x23fe7f,'method':_0x1911be,'body':_0x4c59ae,'status':(_0x5c63a6||{})[_0x2f3887(0x193)],'statusText':(_0x5c63a6||{})[_0x2f3887(0x1be)],'code':_0x2926fe[_0x2f3887(0x184)],'message':_0x2926fe[_0x2f3887(0x15f)],'traceId':_0x2926fe[_0x2f3887(0x1c1)]};})),'abortController':_0x1a18f2};}async*[_0x1d51b9(0x145)](_0x535db4){const _0x46fbfd=_0x1d51b9,_0x16b97f=[],_0x12dbfa=_0x535db4[_0x46fbfd(0x164)](),_0x6f8d2d=_0x34775d({'onError':_0x28896f=>{const _0x20c338=_0x46fbfd;this[_0x20c338(0x169)](_0x28896f);},'onEvent':_0x1ffd12=>{const _0x443399=_0x46fbfd;_0x1ffd12[_0x443399(0x183)]=JSON[_0x443399(0x19c)](_0x1ffd12[_0x443399(0x183)]),_0x16b97f[_0x443399(0x143)](_0x1ffd12);}});try{let _0xd60158=!0x1;for(;!_0xd60158;){const {done:_0xad78b4,value:_0x4a4ff5}=await _0x12dbfa[_0x46fbfd(0x16a)]();_0xad78b4&&(_0xd60158=!0x0),_0x6f8d2d[_0x46fbfd(0x16e)](this[_0x46fbfd(0x1c3)][_0x46fbfd(0x166)](_0x4a4ff5,{'stream':!0x0})),yield*_0x16b97f,_0x16b97f[_0x46fbfd(0x141)]=0x0;}}catch(_0x2b31e2){this[_0x46fbfd(0x169)](_0x2b31e2);}finally{_0x12dbfa[_0x46fbfd(0x1b4)](),_0x6f8d2d[_0x46fbfd(0x1ad)]();}}[_0x1d51b9(0x169)](_0x4a4bdc){const _0x23e474=_0x1d51b9;if(_0x4a4bdc instanceof _0xc91ee9)throw _0x4a4bdc;if(_0x4a4bdc instanceof Error&&_0x23e474(0x18d)===_0x4a4bdc[_0x23e474(0x187)])throw new _0xc91ee9(_0x23e474(0x1ba),this,{'originalError':_0x4a4bdc});throw new _0xc91ee9(_0x23e474(0x1a7),this,{'originalError':_0x4a4bdc});}}
|
|
23
|
+
const _0x5c68a1=_0x1bc5;(function(_0x2c9030,_0x4baa8f){const _0xd0e1d9=_0x1bc5,_0x32d557=_0x2c9030();while(!![]){try{const _0x1f2278=parseInt(_0xd0e1d9(0x16c))/0x1*(-parseInt(_0xd0e1d9(0x125))/0x2)+parseInt(_0xd0e1d9(0x167))/0x3*(parseInt(_0xd0e1d9(0x12b))/0x4)+parseInt(_0xd0e1d9(0x172))/0x5*(parseInt(_0xd0e1d9(0x12e))/0x6)+parseInt(_0xd0e1d9(0x119))/0x7+-parseInt(_0xd0e1d9(0x16a))/0x8*(-parseInt(_0xd0e1d9(0x13f))/0x9)+-parseInt(_0xd0e1d9(0x182))/0xa*(parseInt(_0xd0e1d9(0x122))/0xb)+-parseInt(_0xd0e1d9(0x18b))/0xc*(parseInt(_0xd0e1d9(0x12d))/0xd);if(_0x1f2278===_0x4baa8f)break;else _0x32d557['push'](_0x32d557['shift']());}catch(_0x471247){_0x32d557['push'](_0x32d557['shift']());}}}(_0x323b,0xb39c9));import{createParser as _0x34a277}from'eventsource-parser';import{ContextPlugin as _0x32a72e}from'ckeditor5/src/core.js';import{CKEditorError as _0x15786f}from'ckeditor5/src/utils.js';function _0x323b(){const _0xad27fb=['fix-grammar','traceId','_sendApiRequest','100','push','IMPROVE_WRITING','true','deleteFile','DELETE','make-shorter','executeAction','CloudServices','upsertCustomAIActionRating','PATCH','feed','make-tone-casual','fetchConversation','make-tone-formal','requires','AbortError','plugins','pluginName','/calls/','queryAssistant','/documents/','decode','/actions/custom/calls','ai-request-aborted','3JSEYvQ','/documents','/messages/','2936BQrWPJ','keys','1513UFsAiE','GET','/conversations/','MAKE_TONE_FORMAL','/files/','ai.serviceUrl','10JHyYfn','/actions/system/','then','/reviews/custom/calls','PUT','/web-resources/','positiveCount','getModels','message','search','CONTINUE','modificationId','attributes','deleteDocument','request','context','10IySUWb','make-longer','toString','improve-writing','/files','excludeEmpty','code','executeCustomAction','TRANSLATE','144IIZcRN','ai-missing-token','items','file','/ratings','upsertAIReviewRating','data','text','ai-request-failed','upsertCustomAIReviewRating','config','_token','/conversations','limit','/reviews/system/','application/json','value','updateConversation','_apiUrl','startConversation','FIX_GRAMMAR','/conversations?','callCustomReview','token','https://ai.cke-cs.com/v1','init','/models/1','status','MAKE_TONE_CASUAL','callSystemReview','_decoder','catch','Content-Type','POST','363573wuGOmF','_handleError','get','/reviews/custom/calls/','fetchConversations','/web-resources','isPremiumPlugin','uploadUrl','define','806344ULkyQm','reset','_getStreamReader','178MIeyOp','MAKE_LONGER','upsertAIChatRating','AIConnector','statusText','upsertAIActionRating','1506616NGTnkO','translate','583622QhmgDv','1799418CWuGrU','MAKE_SHORTER','/messages','getReader','Bearer\x20','json','uploadDocument','fetchConversationMessages','totalCount','/calls','stringify','body','name','uploadFile','signal','deleteWebResource','continue','11133jSdVNa','group','read','length','deleteConversation','isOfficialPlugin','/actions/custom/calls/','abortController','append','releaseLock','fetchDocument','parse'];_0x323b=function(){return _0xad27fb;};return _0x323b();}export var AIActionsNames;!function(_0x431ad2){const _0x5c89f6=_0x1bc5;_0x431ad2[_0x5c89f6(0x17c)]=_0x5c89f6(0x13e),_0x431ad2[_0x5c89f6(0x19f)]=_0x5c89f6(0x14b),_0x431ad2[_0x5c89f6(0x150)]=_0x5c89f6(0x185),_0x431ad2[_0x5c89f6(0x126)]=_0x5c89f6(0x183),_0x431ad2[_0x5c89f6(0x12f)]=_0x5c89f6(0x154),_0x431ad2[_0x5c89f6(0x1a7)]=_0x5c89f6(0x15a),_0x431ad2[_0x5c89f6(0x16f)]=_0x5c89f6(0x15c),_0x431ad2[_0x5c89f6(0x18a)]=_0x5c89f6(0x12c);}(AIActionsNames||(AIActionsNames={}));function _0x1bc5(_0xa5b955,_0x284337){const _0x323b5b=_0x323b();return _0x1bc5=function(_0x1bc508,_0x3f6ea4){_0x1bc508=_0x1bc508-0x117;let _0x271bec=_0x323b5b[_0x1bc508];return _0x271bec;},_0x1bc5(_0xa5b955,_0x284337);}export class AIConnector extends _0x32a72e{[_0x5c68a1(0x19d)];[_0x5c68a1(0x196)];[_0x5c68a1(0x1a9)];static get[_0x5c68a1(0x15d)](){const _0x1d45f1=_0x5c68a1;return[_0x1d45f1(0x156)];}static get[_0x5c68a1(0x160)](){const _0x2e43f7=_0x5c68a1;return _0x2e43f7(0x128);}static get[_0x5c68a1(0x144)](){return!0x0;}static get[_0x5c68a1(0x11f)](){return!0x0;}constructor(_0x2e243c){const _0x180e79=_0x5c68a1;super(_0x2e243c),this[_0x180e79(0x181)][_0x180e79(0x195)][_0x180e79(0x121)](_0x180e79(0x171),_0x180e79(0x1a3)),this[_0x180e79(0x19d)]=this[_0x180e79(0x181)][_0x180e79(0x195)][_0x180e79(0x11b)](_0x180e79(0x171)),this[_0x180e79(0x196)]=null,this[_0x180e79(0x1a9)]=new TextDecoder();}[_0x5c68a1(0x1a4)](){const _0x44a586=_0x5c68a1,_0x37d6c2=this[_0x44a586(0x181)][_0x44a586(0x15f)][_0x44a586(0x11b)](_0x44a586(0x156));if(!_0x37d6c2[_0x44a586(0x1a2)])throw new _0x15786f(_0x44a586(0x18c),this);this[_0x44a586(0x196)]=_0x37d6c2[_0x44a586(0x1a2)];}[_0x5c68a1(0x19e)](_0x1ef217,_0x11a54e){const _0x5af426=_0x5c68a1,_0x40770b=this[_0x5af426(0x14d)](_0x5af426(0x197),_0x5af426(0x118),{'id':_0x1ef217,'group':_0x11a54e});return{'getConversation':async()=>(await _0x40770b[_0x5af426(0x180)])[_0x5af426(0x133)](),'abortController':_0x40770b[_0x5af426(0x146)]};}[_0x5c68a1(0x162)]({message:_0x780169,conversationId:_0x265bad,parts:_0x46bba6,capabilities:_0x59aa86,model:_0x53bd04,quickActionData:_0x5a41a3}){const _0xc0ec37=_0x5c68a1,_0xa05830={..._0x5a41a3&&{'quickActionData':_0x5a41a3}},_0x1962e5={'prompt':_0x780169,'content':_0x46bba6,'model':_0x53bd04,..._0x59aa86&&{'capabilities':_0x59aa86},...Object[_0xc0ec37(0x16b)](_0xa05830)[_0xc0ec37(0x142)]>0x0&&{'attributes':_0xa05830}},_0xc14139=this[_0xc0ec37(0x14d)](_0xc0ec37(0x16e)+_0x265bad+_0xc0ec37(0x130),_0xc0ec37(0x118),_0x1962e5);return{'getStream':async()=>{const _0x2b121a=_0xc0ec37,_0x437390=(await _0xc14139[_0x2b121a(0x180)])[_0x2b121a(0x139)];return this[_0x2b121a(0x124)](_0x437390);},'abortController':_0xc14139[_0xc0ec37(0x146)]};}[_0x5c68a1(0x189)]({content:_0x1f26ee,message:_0x13417d,model:_0x275b59,outputFormat:_0x451551}){const _0x3588f9=_0x5c68a1,_0x5c5ac9={'content':[{'type':_0x3588f9(0x192),'content':_0x1f26ee}],'prompt':_0x13417d,'model':_0x275b59,'outputFormat':_0x451551},_0x377eb9=this[_0x3588f9(0x14d)](_0x3588f9(0x165),_0x3588f9(0x118),_0x5c5ac9);return{'getStream':async()=>{const _0x4c728e=_0x3588f9,_0x2de063=(await _0x377eb9[_0x4c728e(0x180)])[_0x4c728e(0x139)];return this[_0x4c728e(0x124)](_0x2de063);},'abortController':_0x377eb9[_0x3588f9(0x146)]};}[_0x5c68a1(0x155)]({actionName:_0x3f3631,content:_0x588fc4,args:_0x3a0687}){const _0xf2cf4=_0x5c68a1,_0x41c05a={'content':[{'type':_0xf2cf4(0x192),'content':_0x588fc4}],'args':_0x3a0687},_0x12b99b=this[_0xf2cf4(0x14d)](_0xf2cf4(0x173)+_0x3f3631+_0xf2cf4(0x137),_0xf2cf4(0x118),_0x41c05a);return{'getStream':async()=>{const _0xcc85cf=_0xf2cf4,_0x2f9e7e=(await _0x12b99b[_0xcc85cf(0x180)])[_0xcc85cf(0x139)];return this[_0xcc85cf(0x124)](_0x2f9e7e);},'abortController':_0x12b99b[_0xf2cf4(0x146)]};}[_0x5c68a1(0x13b)](_0x5a634c,_0x5171bf,_0x125f19){const _0x5ce4b9=_0x5c68a1,_0x486d66=new FormData();_0x486d66[_0x5ce4b9(0x147)](_0x5ce4b9(0x18e),_0x5171bf,_0x5171bf[_0x5ce4b9(0x13a)]),_0x125f19&&_0x486d66[_0x5ce4b9(0x147)](_0x5ce4b9(0x17e),JSON[_0x5ce4b9(0x138)](_0x125f19));const _0x2c8caf=this[_0x5ce4b9(0x14d)](_0x5ce4b9(0x16e)+_0x5a634c+_0x5ce4b9(0x186),_0x5ce4b9(0x118),_0x486d66);return{'getId':async()=>(await _0x2c8caf[_0x5ce4b9(0x180)])[_0x5ce4b9(0x133)](),'abortController':_0x2c8caf[_0x5ce4b9(0x146)]};}[_0x5c68a1(0x149)](_0x1d32c1,_0x53a647){const _0xe4a70c=_0x5c68a1,_0x14335d=this[_0xe4a70c(0x14d)](_0xe4a70c(0x16e)+_0x1d32c1+_0xe4a70c(0x163)+_0x53a647,_0xe4a70c(0x16d));return{'getDocument':async()=>(await _0x14335d[_0xe4a70c(0x180)])[_0xe4a70c(0x133)](),'abortController':_0x14335d[_0xe4a70c(0x146)]};}[_0x5c68a1(0x134)](_0x274cc1,_0x3c8d59,_0x2406e2){const _0x1527d8=_0x5c68a1,_0x223452={'content':_0x3c8d59};_0x2406e2&&(_0x223452[_0x1527d8(0x17e)]=_0x2406e2);const _0x15c038=this[_0x1527d8(0x14d)](_0x1527d8(0x16e)+_0x274cc1+_0x1527d8(0x168),_0x1527d8(0x118),_0x223452);return{'getId':async()=>(await _0x15c038[_0x1527d8(0x180)])[_0x1527d8(0x133)](),'abortController':_0x15c038[_0x1527d8(0x146)]};}[_0x5c68a1(0x11d)](_0x411e2e,_0x5c241d){const _0x4ba9dd=_0x5c68a1,_0x542071=new URLSearchParams();_0x542071[_0x4ba9dd(0x147)](_0x4ba9dd(0x187),_0x4ba9dd(0x151)),_0x542071[_0x4ba9dd(0x147)](_0x4ba9dd(0x198),_0x4ba9dd(0x14e)),_0x542071[_0x4ba9dd(0x147)](_0x4ba9dd(0x140),_0x411e2e),_0x5c241d&&_0x542071[_0x4ba9dd(0x147)](_0x4ba9dd(0x17b),_0x5c241d);const _0x4e79ff=this[_0x4ba9dd(0x14d)](_0x4ba9dd(0x1a0)+_0x542071[_0x4ba9dd(0x184)](),_0x4ba9dd(0x16d));return{'getConversations':async()=>{const _0x5d0d0d=_0x4ba9dd,_0x5b78c8=await _0x4e79ff[_0x5d0d0d(0x180)];return(await _0x5b78c8[_0x5d0d0d(0x133)]())[_0x5d0d0d(0x18d)];},'abortController':_0x4e79ff[_0x4ba9dd(0x146)]};}[_0x5c68a1(0x143)](_0x456e17){const _0x497d18=_0x5c68a1,_0x3f3f34=this[_0x497d18(0x14d)](_0x497d18(0x16e)+_0x456e17,_0x497d18(0x153));return{'execute':async()=>{const _0x720f1=_0x497d18;await _0x3f3f34[_0x720f1(0x180)];},'abortController':_0x3f3f34[_0x497d18(0x146)]};}[_0x5c68a1(0x19c)](_0x346cbb,_0x5ecb0d){const _0x56b1fc=_0x5c68a1,_0x5bee81=this[_0x56b1fc(0x14d)](_0x56b1fc(0x16e)+_0x346cbb,_0x56b1fc(0x158),_0x5ecb0d);return{'getResult':async()=>(await _0x5bee81[_0x56b1fc(0x180)],_0x5ecb0d),'abortController':_0x5bee81[_0x56b1fc(0x146)]};}[_0x5c68a1(0x15b)](_0x10532e){const _0x33ea1=_0x5c68a1,_0x4d442f=this[_0x33ea1(0x14d)](_0x33ea1(0x16e)+_0x10532e,_0x33ea1(0x16d));return{'getConversation':async()=>(await _0x4d442f[_0x33ea1(0x180)])[_0x33ea1(0x133)](),'abortController':_0x4d442f[_0x33ea1(0x146)]};}[_0x5c68a1(0x135)](_0xcf8fa3){const _0x55d281=_0x5c68a1,_0x5d869e=this[_0x55d281(0x14d)](_0x55d281(0x16e)+_0xcf8fa3+_0x55d281(0x130),_0x55d281(0x16d));return{'getMessages':async()=>{const _0x4d16c3=_0x55d281,_0x1f7908=await _0x5d869e[_0x4d16c3(0x180)];return(await _0x1f7908[_0x4d16c3(0x133)]())[_0x4d16c3(0x18d)];},'abortController':_0x5d869e[_0x55d281(0x146)]};}[_0x5c68a1(0x120)](_0x5912ac,_0xc30c33,_0x5a5869){const _0x4ee8d3=_0x5c68a1,_0x3040ad=this[_0x4ee8d3(0x14d)](_0x4ee8d3(0x16e)+_0x5912ac+_0x4ee8d3(0x11e),_0x4ee8d3(0x118),{'url':_0xc30c33,'attributes':_0x5a5869});return{'getId':async()=>(await _0x3040ad[_0x4ee8d3(0x180)])[_0x4ee8d3(0x133)](),'abortController':_0x3040ad[_0x4ee8d3(0x146)]};}[_0x5c68a1(0x179)](){const _0x338c4f=_0x5c68a1,_0x1bde10=this[_0x338c4f(0x14d)](_0x338c4f(0x1a5),_0x338c4f(0x16d));return{'list':async()=>await(await _0x1bde10[_0x338c4f(0x180)])[_0x338c4f(0x133)](),'abortController':_0x1bde10[_0x338c4f(0x146)]};}[_0x5c68a1(0x152)](_0x545ca1,_0x34add1){const _0x110d8a=_0x5c68a1,_0x2fe368=this[_0x110d8a(0x14d)](_0x110d8a(0x16e)+_0x545ca1+_0x110d8a(0x170)+_0x34add1,_0x110d8a(0x153));return{'execute':async()=>{const _0x5b5e46=_0x110d8a;await _0x2fe368[_0x5b5e46(0x180)];},'abortController':_0x2fe368[_0x110d8a(0x146)]};}[_0x5c68a1(0x17f)](_0x2762f5,_0x5502f7){const _0x1b4c4c=_0x5c68a1,_0x58439b=this[_0x1b4c4c(0x14d)](_0x1b4c4c(0x16e)+_0x2762f5+_0x1b4c4c(0x163)+_0x5502f7,_0x1b4c4c(0x153));return{'execute':async()=>{const _0x15bba0=_0x1b4c4c;await _0x58439b[_0x15bba0(0x180)];},'abortController':_0x58439b[_0x1b4c4c(0x146)]};}[_0x5c68a1(0x13d)](_0x383eea,_0x28ff59){const _0x414570=_0x5c68a1,_0x3f6db0=this[_0x414570(0x14d)](_0x414570(0x16e)+_0x383eea+_0x414570(0x177)+_0x28ff59,_0x414570(0x153));return{'execute':async()=>{const _0x452612=_0x414570;await _0x3f6db0[_0x452612(0x180)];},'abortController':_0x3f6db0[_0x414570(0x146)]};}[_0x5c68a1(0x1a8)]({reviewName:_0x5399cf,content:_0x12f31f,args:_0x43b9a5}){const _0x53abea=_0x5c68a1,_0x3adc14=this[_0x53abea(0x14d)](_0x53abea(0x199)+_0x5399cf+_0x53abea(0x137),_0x53abea(0x118),{'content':[{'type':_0x53abea(0x192),'content':_0x12f31f}],'args':_0x43b9a5});return{'getStream':async()=>{const _0x318759=_0x53abea,_0x5a1af3=(await _0x3adc14[_0x318759(0x180)])[_0x318759(0x139)];return this[_0x318759(0x124)](_0x5a1af3);},'abortController':_0x3adc14[_0x53abea(0x146)]};}[_0x5c68a1(0x1a1)]({content:_0x25eda9,prompt:_0xe9ebb1,model:_0x8a085d}){const _0x1b996e=_0x5c68a1,_0x4e7930=this[_0x1b996e(0x14d)](_0x1b996e(0x175),_0x1b996e(0x118),{'content':[{'type':_0x1b996e(0x192),'content':_0x25eda9}],'prompt':_0xe9ebb1,'model':_0x8a085d});return{'getStream':async()=>{const _0x10a8fa=_0x1b996e,_0x38b56c=(await _0x4e7930[_0x10a8fa(0x180)])[_0x10a8fa(0x139)];return this[_0x10a8fa(0x124)](_0x38b56c);},'abortController':_0x4e7930[_0x1b996e(0x146)]};}[_0x5c68a1(0x127)](_0x2b5cbe,_0x3bbb2d,_0x390fc1){const _0x5c381a=_0x5c68a1,_0x4b9fc6=this[_0x5c381a(0x14d)](_0x5c381a(0x16e)+_0x2b5cbe+_0x5c381a(0x169)+_0x3bbb2d+_0x5c381a(0x18f),_0x5c381a(0x176),{'positiveCount':_0x390fc1[_0x5c381a(0x178)],'totalCount':_0x390fc1[_0x5c381a(0x136)],'modificationId':_0x390fc1[_0x5c381a(0x17d)]});return{'execute':async()=>{const _0x546c72=_0x5c381a;await _0x4b9fc6[_0x546c72(0x180)];},'abortController':_0x4b9fc6[_0x5c381a(0x146)]};}[_0x5c68a1(0x12a)](_0x1f6a0f,_0x1d70a9,_0x26acd7){const _0x434939=_0x5c68a1,_0x149f89=this[_0x434939(0x14d)](_0x434939(0x173)+_0x1f6a0f+_0x434939(0x161)+_0x1d70a9+_0x434939(0x18f),_0x434939(0x176),{'positiveCount':_0x26acd7[_0x434939(0x178)],'totalCount':_0x26acd7[_0x434939(0x136)]});return{'execute':async()=>{const _0x288b64=_0x434939;await _0x149f89[_0x288b64(0x180)];},'abortController':_0x149f89[_0x434939(0x146)]};}[_0x5c68a1(0x157)](_0x52e3eb,_0x32affd){const _0x31d43f=_0x5c68a1,_0x1897d7=this[_0x31d43f(0x14d)](_0x31d43f(0x145)+_0x52e3eb+_0x31d43f(0x18f),_0x31d43f(0x176),{'positiveCount':_0x32affd[_0x31d43f(0x178)],'totalCount':_0x32affd[_0x31d43f(0x136)]});return{'execute':async()=>{const _0x1af47d=_0x31d43f;await _0x1897d7[_0x1af47d(0x180)];},'abortController':_0x1897d7[_0x31d43f(0x146)]};}[_0x5c68a1(0x190)](_0x340a57,_0x27a932,_0x372e04,_0x5e3afc){const _0x286ea1=_0x5c68a1,_0x57e73b=this[_0x286ea1(0x14d)](_0x286ea1(0x199)+_0x340a57+_0x286ea1(0x161)+_0x27a932+_0x286ea1(0x18f),_0x286ea1(0x176),{'positiveCount':_0x372e04[_0x286ea1(0x178)],'totalCount':_0x372e04[_0x286ea1(0x136)],'dataId':_0x5e3afc});return{'execute':async()=>{const _0xe24f6b=_0x286ea1;await _0x57e73b[_0xe24f6b(0x180)];},'abortController':_0x57e73b[_0x286ea1(0x146)]};}[_0x5c68a1(0x194)](_0x3ce7ae,_0x24c9f4,_0x2a59b1){const _0x28c1e6=_0x5c68a1,_0x4aaeec=this[_0x28c1e6(0x14d)](_0x28c1e6(0x11c)+_0x3ce7ae+_0x28c1e6(0x18f),_0x28c1e6(0x176),{'positiveCount':_0x24c9f4[_0x28c1e6(0x178)],'totalCount':_0x24c9f4[_0x28c1e6(0x136)],'dataId':_0x2a59b1});return{'execute':async()=>{const _0x5b210e=_0x28c1e6;await _0x4aaeec[_0x5b210e(0x180)];},'abortController':_0x4aaeec[_0x28c1e6(0x146)]};}[_0x5c68a1(0x14d)](_0xb10ab8,_0xaf5ed2,_0x320d34){const _0x52f2e7=_0x5c68a1,_0x1718fe=new AbortController(),_0x7471a6=_0x320d34 instanceof FormData,_0x495087={'Authorization':_0x52f2e7(0x132)+this[_0x52f2e7(0x196)]?.[_0x52f2e7(0x19b)]};_0x320d34&&!_0x7471a6&&(_0x495087[_0x52f2e7(0x117)]=_0x52f2e7(0x19a));const _0x5139db={'method':_0xaf5ed2,'headers':_0x495087,'signal':_0x1718fe[_0x52f2e7(0x13c)]};return _0x320d34&&(_0x5139db[_0x52f2e7(0x139)]=_0x7471a6?_0x320d34:JSON[_0x52f2e7(0x138)](_0x320d34)),{'request':fetch(''+this[_0x52f2e7(0x19d)]+_0xb10ab8,_0x5139db)[_0x52f2e7(0x1aa)](_0x394db7=>{const _0x10d6bc=_0x52f2e7;this[_0x10d6bc(0x11a)](_0x394db7);})[_0x52f2e7(0x174)](_0x3096db=>_0x3096db['ok']?_0x3096db:_0x3096db[_0x52f2e7(0x133)]()[_0x52f2e7(0x174)](_0x2a92cd=>{const _0x40691f=_0x52f2e7;throw{'url':this[_0x40691f(0x19d)],'path':_0xb10ab8,'method':_0xaf5ed2,'body':_0x320d34,'status':(_0x3096db||{})[_0x40691f(0x1a6)],'statusText':(_0x3096db||{})[_0x40691f(0x129)],'code':_0x2a92cd[_0x40691f(0x188)],'message':_0x2a92cd[_0x40691f(0x17a)],'traceId':_0x2a92cd[_0x40691f(0x14c)]};})),'abortController':_0x1718fe};}async*[_0x5c68a1(0x124)](_0x49ffba){const _0x44da72=_0x5c68a1,_0x3c55ff=[],_0x76f5b8=_0x49ffba[_0x44da72(0x131)](),_0x9de6ac=_0x34a277({'onError':_0x56f4d3=>{const _0x1dd9a0=_0x44da72;this[_0x1dd9a0(0x11a)](_0x56f4d3);},'onEvent':_0x523d69=>{const _0x4bbf21=_0x44da72;_0x523d69[_0x4bbf21(0x191)]=JSON[_0x4bbf21(0x14a)](_0x523d69[_0x4bbf21(0x191)]),_0x3c55ff[_0x4bbf21(0x14f)](_0x523d69);}});try{let _0x33328b=!0x1;for(;!_0x33328b;){const {done:_0xd9e817,value:_0x2d90d7}=await _0x76f5b8[_0x44da72(0x141)]();_0xd9e817&&(_0x33328b=!0x0),_0x9de6ac[_0x44da72(0x159)](this[_0x44da72(0x1a9)][_0x44da72(0x164)](_0x2d90d7,{'stream':!0x0})),yield*_0x3c55ff,_0x3c55ff[_0x44da72(0x142)]=0x0;}}catch(_0x5e6747){this[_0x44da72(0x11a)](_0x5e6747);}finally{_0x76f5b8[_0x44da72(0x148)](),_0x9de6ac[_0x44da72(0x123)]();}}[_0x5c68a1(0x11a)](_0x11eb92){const _0x38e747=_0x5c68a1;if(_0x11eb92 instanceof _0x15786f)throw _0x11eb92;if(_0x11eb92 instanceof Error&&_0x38e747(0x15e)===_0x11eb92[_0x38e747(0x13a)])throw new _0x15786f(_0x38e747(0x166),this,{'originalError':_0x11eb92});throw new _0x15786f(_0x38e747(0x193),this,{'originalError':_0x11eb92});}}
|
package/src/aicore/aiediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x1d166d=_0x25db;(function(_0x3f47dd,_0x310242){const _0x54fa75=_0x25db,_0x15c71d=_0x3f47dd();while(!![]){try{const _0xb495ea=parseInt(_0x54fa75(0x196))/0x1*(parseInt(_0x54fa75(0x1a5))/0x2)+-parseInt(_0x54fa75(0x1d8))/0x3*(-parseInt(_0x54fa75(0x1ac))/0x4)+parseInt(_0x54fa75(0x1b5))/0x5+parseInt(_0x54fa75(0x1a9))/0x6+parseInt(_0x54fa75(0x1cc))/0x7*(parseInt(_0x54fa75(0x1c1))/0x8)+parseInt(_0x54fa75(0x19b))/0x9+parseInt(_0x54fa75(0x1b9))/0xa*(-parseInt(_0x54fa75(0x1c7))/0xb);if(_0xb495ea===_0x310242)break;else _0x15c71d['push'](_0x15c71d['shift']());}catch(_0x43e954){_0x15c71d['push'](_0x15c71d['shift']());}}}(_0x4fc5,0xb79d8));import{ViewDowncastWriter as _0x50caa1}from'ckeditor5/src/engine.js';import{ContextPlugin as _0xc0446e,Editor as _0x4d1243}from'ckeditor5/src/core.js';import{uid as _0x4714dc}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x3ab8a8}from'./utils/geteditorfromcontext.js';function _0x25db(_0x1bf558,_0xfe3955){const _0x4fc50d=_0x4fc5();return _0x25db=function(_0x25dbcd,_0x5e7cf7){_0x25dbcd=_0x25dbcd-0x189;let _0x249f98=_0x4fc50d[_0x25dbcd];return _0x249f98;},_0x25db(_0x1bf558,_0xfe3955);}export const AI_VISUAL_SELECTION_MARKER_NAME=_0x1d166d(0x18c);export class AIEditing extends _0xc0446e{[_0x1d166d(0x1ab)]=null;[_0x1d166d(0x1af)]=!0x1;[_0x1d166d(0x1e9)];static get[_0x1d166d(0x1ed)](){const _0x2bb737=_0x1d166d;return _0x2bb737(0x19f);}static get[_0x1d166d(0x1c5)](){return!0x0;}static get[_0x1d166d(0x1ee)](){return!0x0;}get[_0x1d166d(0x193)](){const _0x41d06c=_0x1d166d;if(!this[_0x41d06c(0x1e9)]){const _0x322917=_0x3ab8a8(this[_0x41d06c(0x1f1)]),_0x21cab4=_0x322917[_0x41d06c(0x1dd)][_0x41d06c(0x1f0)](_0x41d06c(0x1cd))&&_0x322917[_0x41d06c(0x1dd)][_0x41d06c(0x1e5)](_0x41d06c(0x1cd))[_0x41d06c(0x193)];this[_0x41d06c(0x1e9)]=_0x21cab4||_0x4714dc();}return this[_0x41d06c(0x1e9)];}[_0x1d166d(0x1d3)](){const _0x1192fa=_0x1d166d,_0x3cd46b=_0x3ab8a8(this[_0x1192fa(0x1f1)]),_0x4e4c12=_0x3cd46b[_0x1192fa(0x1e8)],_0x3427d3=_0x3cd46b[_0x1192fa(0x1c9)][_0x1192fa(0x1c0)](_0x4e4c12[_0x1192fa(0x198)][_0x1192fa(0x1d0)](),{'convertAiChatSelectionMarker':!0x0}),_0x5d2e4e=new _0x50caa1(_0x3cd46b[_0x1192fa(0x1a2)][_0x1192fa(0x18a)][_0x1192fa(0x198)]);this[_0x1192fa(0x194)](_0x3427d3,_0x5d2e4e);let _0x32605b=_0x3cd46b[_0x1192fa(0x1c9)][_0x1192fa(0x1b4)][_0x1192fa(0x1bc)](_0x3427d3);const _0x4263be=this[_0x1192fa(0x1b8)](),_0x3b187e=[];for(const _0x47d231 of _0x4263be){const _0x552130='<'+_0x47d231[_0x1192fa(0x1e0)]+_0x1192fa(0x1f2)+_0x47d231[_0x1192fa(0x1e0)]+_0x1192fa(0x1b3),_0x57b463=_0x32605b[_0x1192fa(0x1c3)](_0x552130);_0x32605b=_0x32605b[_0x1192fa(0x1eb)](0x0,_0x57b463)+_0x32605b[_0x1192fa(0x1eb)](_0x57b463+_0x552130[_0x1192fa(0x1a0)]);const _0x3522dd='<'+_0x47d231[_0x1192fa(0x1e0)]+_0x1192fa(0x19a)+_0x47d231[_0x1192fa(0x1e0)]+_0x1192fa(0x1d4),_0x43e352=_0x32605b[_0x1192fa(0x1c3)](_0x3522dd);_0x32605b=_0x32605b[_0x1192fa(0x1eb)](0x0,_0x43e352)+_0x32605b[_0x1192fa(0x1eb)](_0x43e352+_0x3522dd[_0x1192fa(0x1a0)]),_0x3b187e[_0x1192fa(0x1bf)]({'markerName':_0x47d231[_0x1192fa(0x1e0)],'start':_0x57b463,'end':_0x43e352,'htmlFragment':_0x32605b[_0x1192fa(0x1eb)](_0x57b463,_0x43e352)});}return{'content':_0x32605b,'version':_0x3cd46b[_0x1192fa(0x1e8)][_0x1192fa(0x198)][_0x1192fa(0x19d)],'sessionId':this[_0x1192fa(0x193)],'selections':_0x3b187e};}async[_0x1d166d(0x1ae)](){const _0x1859ad=_0x1d166d;this[_0x1859ad(0x1f1)]instanceof _0x4d1243?this[_0x1859ad(0x1ea)](this[_0x1859ad(0x1f1)]):this[_0x1859ad(0x1e4)](this[_0x1859ad(0x1f1)][_0x1859ad(0x195)],_0x1859ad(0x1b2),(_0x36d321,_0x1e2036)=>{const _0x51d9ed=_0x1859ad;_0x1e2036['on'](_0x51d9ed(0x1cb),()=>{const _0x54dff1=_0x51d9ed;this[_0x54dff1(0x1ea)](_0x1e2036);});});}[_0x1d166d(0x1ea)](_0x44df2f){const _0x2ca054=_0x1d166d;_0x44df2f[_0x2ca054(0x1c4)][_0x2ca054(0x1d7)](_0x2ca054(0x1c2))[_0x2ca054(0x1bb)]({'model':_0x2ca054(0x18c),'view':{'classes':[_0x2ca054(0x1ec),_0x2ca054(0x1d1)],'priority':0xc}}),_0x44df2f[_0x2ca054(0x1c4)][_0x2ca054(0x1d7)](_0x2ca054(0x19e))[_0x2ca054(0x18f)]({'model':_0x2ca054(0x18c),'view':(_0x5994f3,{writer:_0x49549d,options:_0x40bc67})=>_0x40bc67[_0x2ca054(0x1e2)]?_0x49549d[_0x2ca054(0x1b7)](_0x5994f3[_0x2ca054(0x1b0)]+':'+(_0x5994f3[_0x2ca054(0x192)]?_0x2ca054(0x1e6):_0x2ca054(0x1ef))):null});}[_0x1d166d(0x1aa)](_0x370c5a,_0x8548f7,_0x328da8=!0x1,_0x3ca8a6=!0x1){const _0x4bcaa9=_0x1d166d;if(this[_0x4bcaa9(0x1af)]&&!_0x3ca8a6)return!0x1;const _0x262c8a=_0x3ab8a8(this[_0x4bcaa9(0x1f1)])[_0x4bcaa9(0x1e8)];return _0x262c8a[_0x4bcaa9(0x1d6)](_0x40d573=>{const _0x5092f9=_0x4bcaa9;this[_0x5092f9(0x1ab)]&&this[_0x5092f9(0x1a6)](this[_0x5092f9(0x1ab)]),this[_0x5092f9(0x1ab)]=_0x8548f7,this[_0x5092f9(0x1af)]=_0x328da8;let _0xca9c08=0x0;for(let _0x32b4e6 of _0x370c5a){const _0x2ccf65=_0x5092f9(0x1b1)+_0xca9c08;if(_0x32b4e6[_0x5092f9(0x1e6)][_0x5092f9(0x197)]){const _0x21e367=_0x32b4e6[_0x5092f9(0x1e6)][_0x5092f9(0x1e7)](({item:_0x5e5367})=>!_0x262c8a[_0x5092f9(0x1e3)][_0x5092f9(0x1a7)](_0x5e5367),{'boundaries':_0x32b4e6});_0x32b4e6=_0x40d573[_0x5092f9(0x190)](_0x21e367,_0x32b4e6[_0x5092f9(0x1ef)]);}_0x40d573[_0x5092f9(0x1cf)](_0x2ccf65,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x32b4e6}),_0xca9c08++;}}),window[_0x4bcaa9(0x1ba)]()?.[_0x4bcaa9(0x1d2)](),!0x0;}[_0x1d166d(0x1a6)](_0x2d72c1){const _0x1f3988=_0x1d166d;if(this[_0x1f3988(0x1ab)]!=_0x2d72c1)return!0x1;this[_0x1f3988(0x1ab)]=null,this[_0x1f3988(0x1af)]=!0x1;const _0x2d3308=_0x3ab8a8(this[_0x1f3988(0x1f1)]),_0x41fbd8=_0x2d3308[_0x1f3988(0x1e8)][_0x1f3988(0x1a4)][_0x1f3988(0x1b6)](_0x1f3988(0x18c));return _0x2d3308[_0x1f3988(0x1e8)][_0x1f3988(0x1d6)](_0x3effd1=>{const _0x2a3976=_0x1f3988;for(const _0x498b09 of _0x41fbd8)_0x3effd1[_0x2a3976(0x18e)](_0x498b09);}),!0x0;}[_0x1d166d(0x19c)](_0x2b69f6){const _0x4b17c5=_0x1d166d,_0x214d92=_0x3ab8a8(this[_0x4b17c5(0x1f1)]),_0x29bd57=_0x214d92[_0x4b17c5(0x1c9)][_0x4b17c5(0x1c0)](_0x2b69f6),_0x26e79c=new _0x50caa1(_0x214d92[_0x4b17c5(0x1a2)][_0x4b17c5(0x18a)][_0x4b17c5(0x198)]);return this[_0x4b17c5(0x194)](_0x29bd57,_0x26e79c),_0x29bd57;}[_0x1d166d(0x194)](_0x41144c,_0x532753){const _0x256e76=_0x1d166d;let _0x33e5a3=!0x1;const _0x457cfc=new Set();for(const _0x457f25 of _0x41144c[_0x256e76(0x1ce)]()){const _0x875255=_0x457f25['is'](_0x256e76(0x1ad))||_0x457f25['is'](_0x256e76(0x1de));if(!_0x457f25['is'](_0x256e76(0x1db)))continue;(this[_0x256e76(0x194)](_0x457f25,_0x532753)||_0x875255)&&(_0x532753[_0x256e76(0x1df)](_0x256e76(0x1ca),this[_0x256e76(0x1a1)](_0x457cfc),_0x457f25),_0x33e5a3=!0x0);}return _0x33e5a3;}[_0x1d166d(0x1a1)](_0x3855ed){const _0x6b47af=_0x1d166d;let _0x62bffc;do{_0x62bffc='';for(let _0x2da1c4=0x0;_0x2da1c4<0x4;_0x2da1c4++)_0x62bffc+=String[_0x6b47af(0x199)](0x61+Math[_0x6b47af(0x18b)](0x1a*Math[_0x6b47af(0x1a3)]()));}while(_0x3855ed[_0x6b47af(0x1f0)](_0x62bffc));return _0x3855ed[_0x6b47af(0x1b2)](_0x62bffc),_0x62bffc;}[_0x1d166d(0x1e1)](){const _0x5b1fba=_0x1d166d,{model:_0x4a1845}=_0x3ab8a8(this[_0x5b1fba(0x1f1)]),_0x56cfac=_0x4a1845[_0x5b1fba(0x198)][_0x5b1fba(0x1a8)],_0x5ce97b=_0x4a1845[_0x5b1fba(0x1d9)](_0x56cfac),_0x1acf51=[],_0x160076=_0x4a1845[_0x5b1fba(0x191)](_0x5ce97b)[_0x5b1fba(0x1d5)]();for(const {item:_0x487b9d}of _0x160076)_0x487b9d['is'](_0x5b1fba(0x1bd))?_0x1acf51[_0x5b1fba(0x1bf)](_0x487b9d[_0x5b1fba(0x1c9)]):_0x487b9d['is'](_0x5b1fba(0x1db))&&_0x1acf51[_0x5b1fba(0x1a0)]>0x0&&'\x20'!==_0x1acf51[_0x1acf51[_0x5b1fba(0x1a0)]-0x1]&&_0x1acf51[_0x5b1fba(0x1bf)]('\x20');return'\x22'+_0x1acf51[_0x5b1fba(0x189)]('')[_0x5b1fba(0x1c6)]()+'\x22';}[_0x1d166d(0x1b8)](){const _0x242715=_0x1d166d,_0x18c2db=_0x3ab8a8(this[_0x242715(0x1f1)])[_0x242715(0x1e8)];return Array[_0x242715(0x18d)](_0x18c2db[_0x242715(0x1a4)][_0x242715(0x1b6)](_0x242715(0x18c)))[_0x242715(0x1be)]((_0x42f032,_0x1bb6e8)=>_0x42f032[_0x242715(0x1c8)]()[_0x242715(0x1da)](_0x1bb6e8[_0x242715(0x1c8)]())?-0x1:_0x42f032[_0x242715(0x1c8)]()[_0x242715(0x1dc)](_0x1bb6e8[_0x242715(0x1c8)]())?0x1:0x0);}}function _0x4fc5(){const _0x1491fd=['indexOf','conversion','isOfficialPlugin','trim','880sTtKze','getStart','data','data-id','ready','217aFAuca','RealTimeCollaborationClient','getChildren','addMarker','getRoot','ck-ai-assistant-ui_theme','removeAllRanges','getDocumentData',':end>','getWalker','change','for','4097991MmjAFh','getSelectedContent','isBefore','element','isAfter','plugins','containerElement','setAttribute','name','getSelectionText','convertAiChatSelectionMarker','schema','listenTo','get','start','getLastMatchingPosition','model','_sessionId','_integrateEditor','substring','ck-fake-ai-selection','pluginName','isPremiumPlugin','end','has','context',':start></','join','view','floor','ai-selection','from','removeMarker','markerToElement','createRange','createRangeIn','isOpening','sessionId','_setDataIdsOnChildren','editors','3844ZDsHKo','isAtEnd','document','fromCharCode',':end></','13508307PZQSiw','modelToViewWithIds','version','dataDowncast','AIEditing','length','_nextDataId','editing','random','markers','272JQTekJ','hideFakeVisualSelection','isContent','selection','1947210KwmJMq','showFakeVisualSelection','_displayedFakeSelectionId','4aYvdhK','emptyElement','afterInit','_displayedFakeSelectionLocked','markerName','ai-selection:','add',':start>','processor','4069620coPiQI','getMarkersGroup','createUIElement','_getMarkersInDocumentOrder','514770Cmhbla','getSelection','markerToHighlight','toData','$textProxy','sort','push','toView','88280gnZUzM','editingDowncast'];_0x4fc5=function(){return _0x1491fd;};return _0x4fc5();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x42ae93=_0xd66a;(function(_0x3222b2,_0x30a2d2){const _0x5f3021=_0xd66a,_0x21bf60=_0x3222b2();while(!![]){try{const _0x3c39b6=-parseInt(_0x5f3021(0x156))/0x1+parseInt(_0x5f3021(0x13f))/0x2*(parseInt(_0x5f3021(0x134))/0x3)+-parseInt(_0x5f3021(0x142))/0x4+-parseInt(_0x5f3021(0x15c))/0x5+-parseInt(_0x5f3021(0x136))/0x6+-parseInt(_0x5f3021(0x137))/0x7*(-parseInt(_0x5f3021(0x15d))/0x8)+parseInt(_0x5f3021(0x155))/0x9*(parseInt(_0x5f3021(0x14a))/0xa);if(_0x3c39b6===_0x30a2d2)break;else _0x21bf60['push'](_0x21bf60['shift']());}catch(_0x3bb520){_0x21bf60['push'](_0x21bf60['shift']());}}}(_0x3ad0,0x7943d));import{EmitterMixin as _0x4522f7,logWarning as _0xacc0af,logError as _0x9c1618}from'ckeditor5/src/utils.js';function _0xd66a(_0x73d962,_0x5293b3){const _0x3ad08e=_0x3ad0();return _0xd66a=function(_0xd66a11,_0x48d4d1){_0xd66a11=_0xd66a11-0x133;let _0x17e094=_0x3ad08e[_0xd66a11];return _0x17e094;},_0xd66a(_0x73d962,_0x5293b3);}import{getTranslation as _0x3c2065}from'../utils/common-translations.js';export class AIModels extends _0x4522f7(){[_0x42ae93(0x150)];[_0x42ae93(0x154)];[_0x42ae93(0x138)];[_0x42ae93(0x13d)]=[];constructor({connector:_0x6e974e,availableModels:_0x510b25,defaultModelId:_0x1f470d}){const _0xd6a80b=_0x42ae93;super(),this[_0xd6a80b(0x150)]=_0x6e974e,this[_0xd6a80b(0x154)]=_0x510b25,this[_0xd6a80b(0x138)]=_0x1f470d;}async[_0x42ae93(0x153)](){const _0x6a1202=_0x42ae93;if(!this[_0x6a1202(0x13d)][_0x6a1202(0x143)])try{const _0x251243=this[_0x6a1202(0x150)][_0x6a1202(0x13b)](),_0x452eef=await _0x251243[_0x6a1202(0x148)]();this[_0x6a1202(0x13d)]=_0x452eef[_0x6a1202(0x157)];}catch(_0x544cf6){throw _0x9c1618(_0x6a1202(0x14c),{'error':_0x544cf6}),_0x544cf6;}return[...this[_0x6a1202(0x13d)]];}async[_0x42ae93(0x146)](){const _0x3f1dd6=_0x42ae93,_0x5c4946=await this[_0x3f1dd6(0x153)]();return this[_0x3f1dd6(0x14d)](_0x5c4946,this[_0x3f1dd6(0x154)]);}async[_0x42ae93(0x133)](_0x12195f){const _0x33f5f0=_0x42ae93,_0x266248=await this[_0x33f5f0(0x153)]();if(!_0x266248[_0x33f5f0(0x143)])return null;if(_0x12195f){const _0x2f1831=this[_0x33f5f0(0x159)](_0x266248,_0x12195f);if(_0x2f1831)return _0x2f1831;_0xacc0af(_0x33f5f0(0x15b),{'modelId':_0x12195f,'fallBackModelId':this[_0x33f5f0(0x138)]});}return this[_0x33f5f0(0x147)]();}async[_0x42ae93(0x147)](){const _0x1f72df=_0x42ae93,_0x56c97f=await this[_0x1f72df(0x146)]();if(!_0x56c97f[_0x1f72df(0x143)])return null;if(this[_0x1f72df(0x138)]){const _0x13ff45=this[_0x1f72df(0x159)](_0x56c97f,this[_0x1f72df(0x138)]);if(_0x13ff45)return _0x13ff45;_0xacc0af(_0x1f72df(0x15e),{'defaultModelId':this[_0x1f72df(0x138)],'fallBackModelId':_0x56c97f[0x0]['id']});}return _0x56c97f[0x0];}async[_0x42ae93(0x151)](_0x4987c4){const _0x3568dd=_0x42ae93;return(await this[_0x3568dd(0x146)]())[_0x3568dd(0x135)](_0x306c3d=>_0x306c3d[_0x3568dd(0x144)]===_0x4987c4[_0x3568dd(0x144)]&&_0x306c3d[_0x3568dd(0x14f)]===_0x4987c4[_0x3568dd(0x14f)]);}[_0x42ae93(0x14d)](_0x9ff5cc,_0x4e0064){const _0x1219e5=_0x42ae93;let _0x1d9184;if(_0x4e0064){_0x1d9184=[];const _0x17d315=_0x1219e5(0x139)==typeof _0x4e0064?[_0x4e0064[_0x1219e5(0x140)]()]:_0x4e0064[_0x1219e5(0x158)](_0x53b392=>_0x53b392[_0x1219e5(0x140)]());for(const _0x5c1f40 of _0x17d315)for(const _0x3b3e50 of _0x9ff5cc)(_0x3b3e50['id'][_0x1219e5(0x140)]()===_0x5c1f40||_0x3b3e50[_0x1219e5(0x144)][_0x1219e5(0x140)]()===_0x5c1f40||ze(_0x3b3e50)&&_0x1219e5(0x13c)===_0x5c1f40||_0x3b3e50[_0x1219e5(0x14f)][_0x1219e5(0x140)]()===_0x5c1f40||_0x3b3e50['id'][_0x1219e5(0x140)]()[_0x1219e5(0x14b)](_0x5c1f40))&&_0x1d9184[_0x1219e5(0x149)](_0x3b3e50);}else _0x1d9184=_0x9ff5cc;return _0x1d9184;}[_0x42ae93(0x159)](_0x548d6b,_0x39ddbc){const _0xe96f4d=_0x42ae93;return _0x548d6b[_0xe96f4d(0x13e)](_0x8a2a5e=>ze(_0x8a2a5e)&&_0xe96f4d(0x13c)===_0x39ddbc?_0x8a2a5e:_0x8a2a5e['id']===_0x39ddbc)||null;}static[_0x42ae93(0x15a)](_0x3971ee,_0x340caf){const _0x584e55=_0x42ae93;return _0x340caf[_0x584e55(0x158)](_0x5527e9=>{const _0x1ddb74=_0x584e55;if(ze(_0x5527e9))_0x5527e9[_0x1ddb74(0x144)]=_0x3c2065(_0x3971ee,_0x1ddb74(0x152)),_0x5527e9[_0x1ddb74(0x13a)]=_0x3c2065(_0x3971ee,_0x1ddb74(0x15f));else _0x3c2065(_0x3971ee,_0x1ddb74(0x145)+_0x5527e9['id'][_0x1ddb74(0x141)]())[_0x1ddb74(0x14b)](_0x1ddb74(0x145))||(_0x5527e9[_0x1ddb74(0x13a)]=_0x3c2065(_0x3971ee,_0x1ddb74(0x145)+_0x5527e9['id'][_0x1ddb74(0x141)]()));return _0x5527e9;});}}function ze(_0x10d94c){const _0x25aa58=_0x42ae93;return _0x10d94c['id'][_0x25aa58(0x14b)](_0x25aa58(0x14e));}function _0x3ad0(){const _0xfbdab6=['some','2952624JnRvqG','5369dHIgSt','_defaultModelId','string','description','getModels','auto','_modelList','find','148jBprkF','toLocaleLowerCase','toUpperCase','625636GNEXeJ','length','name','AI_MODEL_DESCRIPTION_','getAvailableModels','getDefault','list','push','1270jnYaYP','startsWith','ai-models-unable-to-retrieve','_filterModels','agent','provider','_connector','isAvailable','AI_MODEL_NAME_AUTO','getAll','_availableModels','71703eKbLgM','840286vpNTfw','items','map','_getModelById','getLocalized','ai-chat-model-id-unrecognized','3259750oNKldr','9672fDlMcl','ai-chat-default-model-id-unrecognized','AI_MODEL_DESCRIPTION_AUTO','getModel','28311cDjhwP'];_0x3ad0=function(){return _0xfbdab6;};return _0x3ad0();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x164748=_0x59e6;function _0x3f19(){const _0x57d78b=['map','forEach','push','text-delta','type','aiResponseParser','span','235886zKuxyK','includes','AI_SUGGESTION_CONTENT_PART_REMOVED','filter','withoutDiff','modified','values','4024NKtLhR','1471074gTPZuC','115365bPtssV','aiResponseApplier','find','convertMarkdownToHTML','updateChangeGroups','done','stopListening','modification-delta','_getCachedContentParts','removed','change:content','getContentParts','set','12dFmNgc','content','pending','new','ai-reply-get-content-parts-group-not-found','parsedContent','reasoning','documentContextContent','withDiff','replyChangeGroupStateUpdated','parseAndNormalizeHTML','areActionsDisabled','color:\x20#808080;\x20font-style:\x20italic','sources','51491UtqFzT','parsedMergedContent','1000dThrWi','newNodeIds','indexOf','data-unstable','state','source','conversation-title','onContentChange','locale','data-id','length','60XZuugF','nextSibling','unshift','_setCachedContentParts','context','interactionId','2283Sbdtlv','replyContentUpdated','splice','12397221HCgAkI','cachedSuggestionContentParts','modifiedNodeIds','index','cloneNode','changes','ai-get-editor-from-context-no-editor','fire','node','appendContent','removedNodeIds','destroy','web-search','setChangeGroupState','previousSibling','isDone','merge','changeGroups','11604080FtQacd','_getDifferentChangeGroups','editor','every'];_0x3f19=function(){return _0x57d78b;};return _0x3f19();}(function(_0x475500,_0x2b9e4d){const _0x292af0=_0x59e6,_0x45b3db=_0x475500();while(!![]){try{const _0x5ce9b5=parseInt(_0x292af0(0x10e))/0x1+-parseInt(_0x292af0(0x10d))/0x2*(parseInt(_0x292af0(0x13d))/0x3)+-parseInt(_0x292af0(0x11c))/0x4*(-parseInt(_0x292af0(0x10f))/0x5)+parseInt(_0x292af0(0x137))/0x6*(parseInt(_0x292af0(0x106))/0x7)+parseInt(_0x292af0(0xfb))/0x8+-parseInt(_0x292af0(0x140))/0x9+-parseInt(_0x292af0(0x12c))/0xa*(-parseInt(_0x292af0(0x12a))/0xb);if(_0x5ce9b5===_0x2b9e4d)break;else _0x45b3db['push'](_0x45b3db['shift']());}catch(_0x319b7f){_0x45b3db['push'](_0x45b3db['shift']());}}}(_0x3f19,0xd89f2));import{CKEditorError as _0x56611b,ObservableMixin as _0x58df9e,uid as _0x46edc5}from'ckeditor5/src/utils.js';import{Element as _0x2be3ca,findAll as _0x5d682e,getAttribute as _0x4bb938,getParents as _0x233ccd,Document as _0x38344b,parse as _0x4e23fe,Text as _0x19e2f7}from'../utils/htmlparser.js';import{AIResponseParser as _0x2d0e03}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x1ba911}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x2ed705}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x2484a4}from'../utils/common-translations.js';import{cloneDeep as _0x5ea9e6}from'es-toolkit';export const AI_REPLY_TYPES=[_0x164748(0x116),_0x164748(0x102),_0x164748(0xf5),_0x164748(0x122)];export const AI_REPLY_TYPES_IGNORED=[_0x164748(0x132)];export const AI_REPLY_TITLE_TYPE=_0x164748(0x132);export class AIReply extends _0x58df9e(){['id'];[_0x164748(0x13c)];[_0x164748(0x103)];[_0x164748(0x129)]=[];[_0x164748(0x121)]=new _0x38344b([]);[_0x164748(0x12b)]=new _0x38344b([]);[_0x164748(0xfa)]=[];[_0x164748(0x127)]=!0x1;[_0x164748(0x123)];[_0x164748(0x104)];[_0x164748(0x110)];[_0x164748(0xfd)];[_0x164748(0x141)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x472a51,content:_0x15cba4='',isDone:_0x19f5f1=!0x1,interactionId:_0x13fe77,areActionsDisabled:_0x4c0009,documentContextContent:_0xd059f9,editor:_0x469135,id:_0x5cfdb1}){const _0xb1766f=_0x164748;super(),this['id']=_0x5cfdb1||_0x46edc5(),this[_0xb1766f(0x13c)]=_0x13fe77,this[_0xb1766f(0x103)]=_0x472a51,this[_0xb1766f(0x127)]=!!_0x4c0009,this[_0xb1766f(0xfd)]=_0x469135,this[_0xb1766f(0x104)]=new _0x2d0e03(),this[_0xb1766f(0x110)]=new _0x1ba911(),this[_0xb1766f(0x123)]=_0x4e23fe(_0xd059f9||''),this[_0xb1766f(0x11b)](_0xb1766f(0xf8),_0x19f5f1),this['on'](_0xb1766f(0x119),()=>{const _0x1824bf=_0xb1766f;this[_0x1824bf(0x133)]();}),this[_0xb1766f(0x11b)](_0xb1766f(0x11d),_0x15cba4);}[_0x164748(0xf2)](_0x183af9){const _0x1f1df9=_0x164748;this[_0x1f1df9(0x11b)](_0x1f1df9(0x11d),this[_0x1f1df9(0x11d)]+_0x183af9);}[_0x164748(0x114)](){const _0x30c4c6=_0x164748;this[_0x30c4c6(0xf8)]||(this[_0x30c4c6(0x11b)](_0x30c4c6(0xf8),!0x0),this[_0x30c4c6(0x133)]());}[_0x164748(0xf4)](){const _0x3cee27=_0x164748;this[_0x3cee27(0x115)]();}[_0x164748(0xf6)](_0x22ac45,_0x45bedb){const _0x5547b3=_0x164748;this[_0x5547b3(0xfa)][_0x22ac45][_0x5547b3(0x130)]=_0x45bedb,this[_0x5547b3(0xf0)](_0x5547b3(0x125),{'reply':this,'index':_0x22ac45,'state':_0x45bedb});}[_0x164748(0x11a)]({showDiff:_0x4cbdb2,groupIndex:_0x24f42e}){const _0x2ef93c=_0x164748;if(!this[_0x2ef93c(0xfd)])throw new _0x56611b(_0x2ef93c(0xef),null,{'aiReply':this});const _0x58b6f3=this[_0x2ef93c(0x117)](_0x4cbdb2,_0x24f42e);if(_0x58b6f3)return _0x58b6f3;let _0x1e7550=[];if(void 0x0===_0x24f42e)_0x1e7550=this[_0x2ef93c(0xfa)];else{const _0x241791=this[_0x2ef93c(0xfa)][_0x2ef93c(0x111)](({index:_0x14fb3a})=>_0x14fb3a===_0x24f42e);if(!_0x241791)throw new _0x56611b(_0x2ef93c(0x120),null,{'aiReply':this,'groupIndex':_0x24f42e});_0x1e7550=[_0x241791];}const _0x257eef=_0x2ed705({'editor':this[_0x2ef93c(0xfd)],'showDiff':_0x4cbdb2,'changeGroups':_0x1e7550,'documentContextContent':this[_0x2ef93c(0x123)]});return this[_0x2ef93c(0x13a)](_0x4cbdb2,_0x257eef),_0x257eef;}[_0x164748(0x117)](_0x3c2d7f,_0x1d898a){const _0x2a482f=_0x164748,_0x458444=_0x3c2d7f?_0x2a482f(0x124):_0x2a482f(0x10a);if(!this[_0x2a482f(0x141)][_0x458444][_0x2a482f(0x136)])return null;const _0x1e0858=this[_0x2a482f(0x141)][_0x458444];if(void 0x0===_0x1d898a)return _0x5ea9e6(_0x1e0858);{const _0x15e2f6=_0x1e0858[_0x2a482f(0x111)](({index:_0x130bdb})=>_0x130bdb===_0x1d898a);if(_0x15e2f6)return[_0x5ea9e6(_0x15e2f6)];}return null;}[_0x164748(0x13a)](_0x1f5dc0,_0xedceb2){const _0x5e87a9=_0x164748,_0x1f2725=_0x1f5dc0?_0x5e87a9(0x124):_0x5e87a9(0x10a);_0xedceb2[_0x5e87a9(0x100)](_0x3daf9f=>{const _0x4624a3=_0x5e87a9,_0x3514b3=this[_0x4624a3(0x141)][_0x1f2725],_0xd8e6a9=_0x3514b3[_0x4624a3(0x111)](({index:_0x24a52f})=>_0x24a52f===_0x3daf9f[_0x4624a3(0xec)]);if(_0xd8e6a9){const _0x11a646=_0x3514b3[_0x4624a3(0x12e)](_0xd8e6a9);_0x3514b3[_0x4624a3(0x13f)](_0x11a646,0x1,_0x3daf9f);}else _0x3514b3[_0x4624a3(0x101)](_0x3daf9f);});}[_0x164748(0x133)](){const _0x720f31=_0x164748;if(_0x720f31(0x116)===this[_0x720f31(0x103)]){this[_0x720f31(0x121)]=this[_0x720f31(0x104)][_0x720f31(0x126)](this[_0x720f31(0x11d)]);const _0x2d9a66=this[_0x720f31(0xfa)];this[_0x720f31(0x113)]();const _0x482b6c=this[_0x720f31(0xfc)](_0x2d9a66,this[_0x720f31(0xfa)]);(_0x482b6c[_0x720f31(0x136)]||this[_0x720f31(0xf8)])&&(this[_0x720f31(0xf0)](_0x720f31(0x13e),this,_0x482b6c),this[_0x720f31(0x141)][_0x720f31(0x124)][_0x720f31(0x136)]=this[_0x720f31(0x141)][_0x720f31(0x10a)][_0x720f31(0x136)]=0x0);}else this[_0x720f31(0x121)]=this[_0x720f31(0x104)][_0x720f31(0x112)](this[_0x720f31(0x11d)]),this[_0x720f31(0xf0)](_0x720f31(0x13e),this);}[_0x164748(0xfc)](_0x374049,_0x27906b){const _0x225648=_0x164748,_0x574b0b=[];for(const _0xd8fce5 of _0x27906b){const _0x10e4ae=_0x374049[_0xd8fce5[_0x225648(0xec)]];_0x10e4ae?_0x10e4ae[_0x225648(0xee)][_0x225648(0x136)]!==_0xd8fce5[_0x225648(0xee)][_0x225648(0x136)]?_0x574b0b[_0x225648(0x101)](_0xd8fce5):_0x10e4ae[_0x225648(0xee)][_0x225648(0x100)]((_0x4f17c2,_0x32c057)=>{const _0x1a81a5=_0x225648,_0x15bc31=_0xd8fce5[_0x1a81a5(0xee)][_0x32c057];_0x4f17c2['id']!==_0x15bc31['id']&&_0x574b0b[_0x1a81a5(0x101)](_0xd8fce5);}):_0x574b0b[_0x225648(0x101)](_0xd8fce5);}return _0x574b0b;}[_0x164748(0x113)](){const _0x497534=_0x164748,_0x12accd=new _0x2be3ca('p',{},[new _0x2be3ca(_0x497534(0x105),{'style':_0x497534(0x128)},[new _0x19e2f7(_0x2484a4(this[_0x497534(0xfd)][_0x497534(0x134)],_0x497534(0x108)))])]),_0x9c2ea6=this[_0x497534(0x110)][_0x497534(0xf9)](this[_0x497534(0x121)],this[_0x497534(0x123)][_0x497534(0xed)](!0x0),{'markUnstableElements':!this[_0x497534(0xf8)],'replaceRemovedWith':_0x12accd,'cutAfterLastChange':!this[_0x497534(0xf8)]});if(!_0x9c2ea6[_0x497534(0x142)][_0x497534(0x136)]&&!this[_0x497534(0xf8)])return;this[_0x497534(0x12b)]=_0x9c2ea6[_0x497534(0x121)];let _0x3de901=[];if(_0x5d682e(_0x2b3828=>{const _0x396e2b=_0x497534,_0x5c1526=_0x4bb938(_0x2b3828,_0x396e2b(0x135));if(!_0x5c1526||!_0x240670(_0x5c1526))return!0x1;const _0xe67cd6=[_0x2b3828,..._0x233ccd(_0x2b3828)]['at'](-0x2);if(_0x2b3828!=_0xe67cd6){const _0xbc5cc8=_0x4bb938(_0xe67cd6,_0x396e2b(0x135));_0x240670(_0xbc5cc8)||(_0x3de901[_0x396e2b(0x101)]({'node':_0xe67cd6,'id':_0xbc5cc8,'type':_0x396e2b(0x10b)}),_0x9c2ea6[_0x396e2b(0x142)][_0x396e2b(0x101)](_0xbc5cc8));}else _0x9c2ea6[_0x396e2b(0x142)][_0x396e2b(0x107)](_0x5c1526)?_0x3de901[_0x396e2b(0x101)]({'node':_0x2b3828,'type':_0x396e2b(0x10b),'id':_0x5c1526}):_0x9c2ea6[_0x396e2b(0x12d)][_0x396e2b(0x107)](_0x5c1526)?_0x3de901[_0x396e2b(0x101)]({'node':_0x2b3828,'type':_0x396e2b(0x11f),'id':_0x5c1526,'anchorId':_0x4bb938(_0x2b3828[_0x396e2b(0xf7)],_0x396e2b(0x135))}):_0x3de901[_0x396e2b(0x101)]({'node':_0x2b3828,'type':_0x396e2b(0x118),'id':_0x5c1526});return!0x0;},this[_0x497534(0x12b)]),_0x3de901=_0x3de901[_0x497534(0x109)](({node:_0x57d6de})=>[..._0x233ccd(_0x57d6de),_0x57d6de][_0x497534(0xfe)](_0x2a14e9=>!_0x4bb938(_0x2a14e9,_0x497534(0x12f)))),0x0==_0x3de901[_0x497534(0x136)])return;const _0x55fde7=[[_0x3de901[0x0]]];for(let _0x351f34=0x1;_0x351f34<_0x3de901[_0x497534(0x136)];_0x351f34++){const _0x31fe26=_0x55fde7[_0x55fde7[_0x497534(0x136)]-0x1],_0x4dc07e=_0x31fe26[_0x31fe26[_0x497534(0x136)]-0x1];_0x3de901[_0x351f34][_0x497534(0xf1)][_0x497534(0xf7)]==_0x4dc07e[_0x497534(0xf1)]&&_0x497534(0x10b)!=_0x3de901[_0x351f34][_0x497534(0x103)]&&_0x497534(0x10b)!=_0x4dc07e[_0x497534(0x103)]?_0x31fe26[_0x497534(0x101)](_0x3de901[_0x351f34]):_0x55fde7[_0x497534(0x101)]([_0x3de901[_0x351f34]]);}for(const _0x2b20bd of _0x55fde7){const _0x3b5605=_0x2b20bd[0x0],_0x476c21=_0x2b20bd[_0x2b20bd[_0x497534(0x136)]-0x1],_0x3c54ad=_0x271126(_0x3b5605[_0x497534(0xf1)][_0x497534(0xf7)]);_0x3c54ad&&_0x2b20bd[_0x497534(0x139)](_0x3c54ad);const _0x42a925=_0x271126(_0x476c21[_0x497534(0xf1)][_0x497534(0x138)]);_0x42a925&&_0x2b20bd[_0x497534(0x101)](_0x42a925);}function _0x240670(_0x2e3963){const _0x23225b=_0x497534;return _0x9c2ea6[_0x23225b(0x142)][_0x23225b(0x107)](_0x2e3963)||_0x9c2ea6[_0x23225b(0x12d)][_0x23225b(0x107)](_0x2e3963)||_0x9c2ea6[_0x23225b(0xf3)][_0x23225b(0x107)](_0x2e3963);}function _0x271126(_0x1a6430){const _0x34b3c8=_0x497534;if(_0x1a6430&&_0x4bb938(_0x1a6430,_0x34b3c8(0x135))&&!_0x4bb938(_0x1a6430,_0x34b3c8(0x12f))){const _0x220443=_0x4bb938(_0x1a6430,_0x34b3c8(0x135));if(!_0x240670(_0x220443))return{'node':_0x1a6430,'type':_0x34b3c8(0x13b),'id':_0x220443};}return null;}this[_0x497534(0xfa)]=_0x55fde7[_0x497534(0xff)]((_0x1972c,_0x1dd330)=>({'changes':_0x1972c,'state':_0x497534(0x11e),'index':_0x1dd330}));}}export function isValidReplyType(_0x37d662){const _0x18c83d=_0x164748;return Object[_0x18c83d(0x10c)](AI_REPLY_TYPES)[_0x18c83d(0x107)](_0x37d662);}export function isIgnoredReplyType(_0x1e163d){const _0x1ea97c=_0x164748;return AI_REPLY_TYPES_IGNORED[_0x1ea97c(0x107)](_0x1e163d);}function _0x59e6(_0x5d5821,_0x51cdb2){const _0x3f1990=_0x3f19();return _0x59e6=function(_0x59e612,_0x42a3e6){_0x59e612=_0x59e612-0xec;let _0x542a32=_0x3f1990[_0x59e612];return _0x542a32;},_0x59e6(_0x5d5821,_0x51cdb2);}export function isReplyTitleType(_0x225bba){return _0x225bba===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0xa2cde2){const _0x51ef07=_0x164748;return _0x51ef07(0x131)===_0xa2cde2;}
|
|
23
|
+
const _0x4af744=_0x5559;(function(_0x28b2b3,_0x2c071e){const _0x3da143=_0x5559,_0x3eed76=_0x28b2b3();while(!![]){try{const _0x4deee3=parseInt(_0x3da143(0x166))/0x1+-parseInt(_0x3da143(0x184))/0x2*(-parseInt(_0x3da143(0x167))/0x3)+-parseInt(_0x3da143(0x160))/0x4+parseInt(_0x3da143(0x179))/0x5*(-parseInt(_0x3da143(0x15c))/0x6)+-parseInt(_0x3da143(0x15b))/0x7*(-parseInt(_0x3da143(0x153))/0x8)+-parseInt(_0x3da143(0x183))/0x9*(parseInt(_0x3da143(0x14e))/0xa)+parseInt(_0x3da143(0x177))/0xb;if(_0x4deee3===_0x2c071e)break;else _0x3eed76['push'](_0x3eed76['shift']());}catch(_0x560cee){_0x3eed76['push'](_0x3eed76['shift']());}}}(_0x1219,0x49907));import{CKEditorError as _0x2e909d,ObservableMixin as _0x2c8a4a,uid as _0x3a54c1}from'ckeditor5/src/utils.js';import{Element as _0x3e473c,findAll as _0x545dd0,getAttribute as _0x296da2,getParents as _0x4c1619,Document as _0xb3d6b4,parse as _0x38e2a8,Text as _0x467001}from'../utils/htmlparser.js';import{AIResponseParser as _0xf7a3a}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x5d2d17}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x18beec}from'../utils/getsuggestionpartsfromreply.js';function _0x5559(_0x10da92,_0x491e1e){const _0x12195c=_0x1219();return _0x5559=function(_0x5559d7,_0x33e04f){_0x5559d7=_0x5559d7-0x137;let _0xade62a=_0x12195c[_0x5559d7];return _0xade62a;},_0x5559(_0x10da92,_0x491e1e);}import{getTranslation as _0x56ad69}from'../utils/common-translations.js';import{cloneDeep as _0xb660dc}from'es-toolkit';function _0x1219(){const _0x1abd10=['span','pending','previousSibling','index','length','change:content','parsedMergedContent','state','modified','type','aiResponseParser','splice','documentContextContent','fire','indexOf','6543119ZpJlDD','set','1155445nmokFX','withDiff','web-search','push','merge','reasoning','parsedContent','areActionsDisabled','setChangeGroupState','updateChangeGroups','29277nuQATg','5918vADDeR','aiResponseApplier','filter','every','color:\x20#808080;\x20font-style:\x20italic','find','conversation-title','ai-reply-get-content-parts-group-not-found','forEach','done','getContentParts','replyChangeGroupStateUpdated','_setCachedContentParts','modifiedNodeIds','replyContentUpdated','AI_SUGGESTION_CONTENT_PART_REMOVED','parseAndNormalizeHTML','_getCachedContentParts','destroy','text-delta','changeGroups','editor','new','nextSibling','context','modification-delta','removedNodeIds','locale','cachedSuggestionContentParts','newNodeIds','unshift','isDone','sources','210QXIpPH','removed','data-id','values','stopListening','2920eufrAc','withoutDiff','_getDifferentChangeGroups','map','data-unstable','cloneNode','appendContent','convertMarkdownToHTML','56zspRTD','12FbGRHb','changes','content','node','1285024BOmGOt','source','includes','ai-get-editor-from-context-no-editor','onContentChange','interactionId','422162qcWwys','135jisIss'];_0x1219=function(){return _0x1abd10;};return _0x1219();}export const AI_REPLY_TYPES=[_0x4af744(0x146),_0x4af744(0x140),_0x4af744(0x17b),_0x4af744(0x17e)];export const AI_REPLY_TYPES_IGNORED=[_0x4af744(0x18a)];export const AI_REPLY_TITLE_TYPE=_0x4af744(0x18a);export class AIReply extends _0x2c8a4a(){['id'];[_0x4af744(0x165)];[_0x4af744(0x171)];[_0x4af744(0x14d)]=[];[_0x4af744(0x17f)]=new _0xb3d6b4([]);[_0x4af744(0x16e)]=new _0xb3d6b4([]);[_0x4af744(0x141)]=[];[_0x4af744(0x180)]=!0x1;[_0x4af744(0x174)];[_0x4af744(0x172)];[_0x4af744(0x185)];[_0x4af744(0x142)];[_0x4af744(0x149)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x53f5c6,content:_0x43a3ef='',isDone:_0x34b7e4=!0x1,interactionId:_0x38fdd0,areActionsDisabled:_0x3a3cb4,documentContextContent:_0x332439,editor:_0x409618,id:_0x28d79f}){const _0x8c0f57=_0x4af744;super(),this['id']=_0x28d79f||_0x3a54c1(),this[_0x8c0f57(0x165)]=_0x38fdd0,this[_0x8c0f57(0x171)]=_0x53f5c6,this[_0x8c0f57(0x180)]=!!_0x3a3cb4,this[_0x8c0f57(0x142)]=_0x409618,this[_0x8c0f57(0x172)]=new _0xf7a3a(),this[_0x8c0f57(0x185)]=new _0x5d2d17(),this[_0x8c0f57(0x174)]=_0x38e2a8(_0x332439||''),this[_0x8c0f57(0x178)](_0x8c0f57(0x14c),_0x34b7e4),this['on'](_0x8c0f57(0x16d),()=>{const _0x2f231c=_0x8c0f57;this[_0x2f231c(0x164)]();}),this[_0x8c0f57(0x178)](_0x8c0f57(0x15e),_0x43a3ef);}[_0x4af744(0x159)](_0x36f21d){const _0x4c51e6=_0x4af744;this[_0x4c51e6(0x178)](_0x4c51e6(0x15e),this[_0x4c51e6(0x15e)]+_0x36f21d);}[_0x4af744(0x18d)](){const _0x468c56=_0x4af744;this[_0x468c56(0x14c)]||(this[_0x468c56(0x178)](_0x468c56(0x14c),!0x0),this[_0x468c56(0x164)]());}[_0x4af744(0x13f)](){const _0x30ad5a=_0x4af744;this[_0x30ad5a(0x152)]();}[_0x4af744(0x181)](_0x3fdd32,_0x3e2b68){const _0xaf2ec4=_0x4af744;this[_0xaf2ec4(0x141)][_0x3fdd32][_0xaf2ec4(0x16f)]=_0x3e2b68,this[_0xaf2ec4(0x175)](_0xaf2ec4(0x138),{'reply':this,'index':_0x3fdd32,'state':_0x3e2b68});}[_0x4af744(0x137)]({showDiff:_0x298da3,groupIndex:_0x1af748}){const _0x2fe399=_0x4af744;if(!this[_0x2fe399(0x142)])throw new _0x2e909d(_0x2fe399(0x163),null,{'aiReply':this});const _0x176395=this[_0x2fe399(0x13e)](_0x298da3,_0x1af748);if(_0x176395)return _0x176395;let _0x3adc2b=[];if(void 0x0===_0x1af748)_0x3adc2b=this[_0x2fe399(0x141)];else{const _0x168593=this[_0x2fe399(0x141)][_0x2fe399(0x189)](({index:_0x4268d9})=>_0x4268d9===_0x1af748);if(!_0x168593)throw new _0x2e909d(_0x2fe399(0x18b),null,{'aiReply':this,'groupIndex':_0x1af748});_0x3adc2b=[_0x168593];}const _0x29c2c9=_0x18beec({'editor':this[_0x2fe399(0x142)],'showDiff':_0x298da3,'changeGroups':_0x3adc2b,'documentContextContent':this[_0x2fe399(0x174)]});return this[_0x2fe399(0x139)](_0x298da3,_0x29c2c9),_0x29c2c9;}[_0x4af744(0x13e)](_0x4d54aa,_0x30a8e6){const _0x8df6b7=_0x4af744,_0x18b49d=_0x4d54aa?_0x8df6b7(0x17a):_0x8df6b7(0x154);if(!this[_0x8df6b7(0x149)][_0x18b49d][_0x8df6b7(0x16c)])return null;const _0x12c307=this[_0x8df6b7(0x149)][_0x18b49d];if(void 0x0===_0x30a8e6)return _0xb660dc(_0x12c307);{const _0x4c9d17=_0x12c307[_0x8df6b7(0x189)](({index:_0x539c69})=>_0x539c69===_0x30a8e6);if(_0x4c9d17)return[_0xb660dc(_0x4c9d17)];}return null;}[_0x4af744(0x139)](_0x26e7eb,_0x16722b){const _0x590b5a=_0x4af744,_0x10d771=_0x26e7eb?_0x590b5a(0x17a):_0x590b5a(0x154);_0x16722b[_0x590b5a(0x18c)](_0x5a3589=>{const _0x203110=_0x590b5a,_0x398144=this[_0x203110(0x149)][_0x10d771],_0x438bd6=_0x398144[_0x203110(0x189)](({index:_0x455c2d})=>_0x455c2d===_0x5a3589[_0x203110(0x16b)]);if(_0x438bd6){const _0x243230=_0x398144[_0x203110(0x176)](_0x438bd6);_0x398144[_0x203110(0x173)](_0x243230,0x1,_0x5a3589);}else _0x398144[_0x203110(0x17c)](_0x5a3589);});}[_0x4af744(0x164)](){const _0x30d2c3=_0x4af744;if(_0x30d2c3(0x146)===this[_0x30d2c3(0x171)]){this[_0x30d2c3(0x17f)]=this[_0x30d2c3(0x172)][_0x30d2c3(0x13d)](this[_0x30d2c3(0x15e)]);const _0x53bde2=this[_0x30d2c3(0x141)];this[_0x30d2c3(0x182)]();const _0x2dff5f=this[_0x30d2c3(0x155)](_0x53bde2,this[_0x30d2c3(0x141)]);(_0x2dff5f[_0x30d2c3(0x16c)]||this[_0x30d2c3(0x14c)])&&(this[_0x30d2c3(0x175)](_0x30d2c3(0x13b),this,_0x2dff5f),this[_0x30d2c3(0x149)][_0x30d2c3(0x17a)][_0x30d2c3(0x16c)]=this[_0x30d2c3(0x149)][_0x30d2c3(0x154)][_0x30d2c3(0x16c)]=0x0);}else this[_0x30d2c3(0x17f)]=this[_0x30d2c3(0x172)][_0x30d2c3(0x15a)](this[_0x30d2c3(0x15e)]),this[_0x30d2c3(0x175)](_0x30d2c3(0x13b),this);}[_0x4af744(0x155)](_0x294cf9,_0x5c4e86){const _0x262436=_0x4af744,_0x13a697=[];for(const _0x563420 of _0x5c4e86){const _0x2df30e=_0x294cf9[_0x563420[_0x262436(0x16b)]];_0x2df30e?_0x2df30e[_0x262436(0x15d)][_0x262436(0x16c)]!==_0x563420[_0x262436(0x15d)][_0x262436(0x16c)]?_0x13a697[_0x262436(0x17c)](_0x563420):_0x2df30e[_0x262436(0x15d)][_0x262436(0x18c)]((_0x6a422c,_0xb3c194)=>{const _0xbfc8cd=_0x262436,_0xe67d67=_0x563420[_0xbfc8cd(0x15d)][_0xb3c194];_0x6a422c['id']!==_0xe67d67['id']&&_0x13a697[_0xbfc8cd(0x17c)](_0x563420);}):_0x13a697[_0x262436(0x17c)](_0x563420);}return _0x13a697;}[_0x4af744(0x182)](){const _0x183a79=_0x4af744,_0x40a142=new _0x3e473c('p',{},[new _0x3e473c(_0x183a79(0x168),{'style':_0x183a79(0x188)},[new _0x467001(_0x56ad69(this[_0x183a79(0x142)][_0x183a79(0x148)],_0x183a79(0x13c)))])]),_0xe15535=this[_0x183a79(0x185)][_0x183a79(0x17d)](this[_0x183a79(0x17f)],this[_0x183a79(0x174)][_0x183a79(0x158)](!0x0),{'markUnstableElements':!this[_0x183a79(0x14c)],'replaceRemovedWith':_0x40a142,'cutAfterLastChange':!this[_0x183a79(0x14c)]});if(!_0xe15535[_0x183a79(0x13a)][_0x183a79(0x16c)]&&!this[_0x183a79(0x14c)])return;this[_0x183a79(0x16e)]=_0xe15535[_0x183a79(0x17f)];let _0x419855=[];if(_0x545dd0(_0x45ce72=>{const _0x293928=_0x183a79,_0x429ea3=_0x296da2(_0x45ce72,_0x293928(0x150));if(!_0x429ea3||!_0x221295(_0x429ea3))return!0x1;const _0x4a09fe=[_0x45ce72,..._0x4c1619(_0x45ce72)]['at'](-0x2);if(_0x45ce72!=_0x4a09fe){const _0xe8cf39=_0x296da2(_0x4a09fe,_0x293928(0x150));_0x221295(_0xe8cf39)||(_0x419855[_0x293928(0x17c)]({'node':_0x4a09fe,'id':_0xe8cf39,'type':_0x293928(0x170)}),_0xe15535[_0x293928(0x13a)][_0x293928(0x17c)](_0xe8cf39));}else _0xe15535[_0x293928(0x13a)][_0x293928(0x162)](_0x429ea3)?_0x419855[_0x293928(0x17c)]({'node':_0x45ce72,'type':_0x293928(0x170),'id':_0x429ea3}):_0xe15535[_0x293928(0x14a)][_0x293928(0x162)](_0x429ea3)?_0x419855[_0x293928(0x17c)]({'node':_0x45ce72,'type':_0x293928(0x143),'id':_0x429ea3,'anchorId':_0x296da2(_0x45ce72[_0x293928(0x16a)],_0x293928(0x150))}):_0x419855[_0x293928(0x17c)]({'node':_0x45ce72,'type':_0x293928(0x14f),'id':_0x429ea3});return!0x0;},this[_0x183a79(0x16e)]),_0x419855=_0x419855[_0x183a79(0x186)](({node:_0x50a643})=>[..._0x4c1619(_0x50a643),_0x50a643][_0x183a79(0x187)](_0xf6ae80=>!_0x296da2(_0xf6ae80,_0x183a79(0x157)))),0x0==_0x419855[_0x183a79(0x16c)])return;const _0x5a5dce=[[_0x419855[0x0]]];for(let _0x1c0563=0x1;_0x1c0563<_0x419855[_0x183a79(0x16c)];_0x1c0563++){const _0x33b98e=_0x5a5dce[_0x5a5dce[_0x183a79(0x16c)]-0x1],_0x5e6492=_0x33b98e[_0x33b98e[_0x183a79(0x16c)]-0x1];_0x419855[_0x1c0563][_0x183a79(0x15f)][_0x183a79(0x16a)]==_0x5e6492[_0x183a79(0x15f)]&&_0x183a79(0x170)!=_0x419855[_0x1c0563][_0x183a79(0x171)]&&_0x183a79(0x170)!=_0x5e6492[_0x183a79(0x171)]?_0x33b98e[_0x183a79(0x17c)](_0x419855[_0x1c0563]):_0x5a5dce[_0x183a79(0x17c)]([_0x419855[_0x1c0563]]);}for(const _0x4ec39c of _0x5a5dce){const _0x4a3a23=_0x4ec39c[0x0],_0x1e1a3f=_0x4ec39c[_0x4ec39c[_0x183a79(0x16c)]-0x1],_0x57359d=_0xaa942(_0x4a3a23[_0x183a79(0x15f)][_0x183a79(0x16a)]);_0x57359d&&_0x4ec39c[_0x183a79(0x14b)](_0x57359d);const _0x54ed4d=_0xaa942(_0x1e1a3f[_0x183a79(0x15f)][_0x183a79(0x144)]);_0x54ed4d&&_0x4ec39c[_0x183a79(0x17c)](_0x54ed4d);}function _0x221295(_0x5902e4){const _0x312bfa=_0x183a79;return _0xe15535[_0x312bfa(0x13a)][_0x312bfa(0x162)](_0x5902e4)||_0xe15535[_0x312bfa(0x14a)][_0x312bfa(0x162)](_0x5902e4)||_0xe15535[_0x312bfa(0x147)][_0x312bfa(0x162)](_0x5902e4);}function _0xaa942(_0x1cdf57){const _0x5f793f=_0x183a79;if(_0x1cdf57&&_0x296da2(_0x1cdf57,_0x5f793f(0x150))&&!_0x296da2(_0x1cdf57,_0x5f793f(0x157))){const _0x3e11c8=_0x296da2(_0x1cdf57,_0x5f793f(0x150));if(!_0x221295(_0x3e11c8))return{'node':_0x1cdf57,'type':_0x5f793f(0x145),'id':_0x3e11c8};}return null;}this[_0x183a79(0x141)]=_0x5a5dce[_0x183a79(0x156)]((_0x12394b,_0xae3e6a)=>({'changes':_0x12394b,'state':_0x183a79(0x169),'index':_0xae3e6a}));}}export function isValidReplyType(_0x4bcd57){const _0x53a632=_0x4af744;return Object[_0x53a632(0x151)](AI_REPLY_TYPES)[_0x53a632(0x162)](_0x4bcd57);}export function isIgnoredReplyType(_0x50aee6){const _0x487170=_0x4af744;return AI_REPLY_TYPES_IGNORED[_0x487170(0x162)](_0x50aee6);}export function isReplyTitleType(_0x249886){return _0x249886===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x45a184){const _0x4ff691=_0x4af744;return _0x4ff691(0x161)===_0x45a184;}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
_0x24d659(){[_0x11de9e(0xf4)];[_0x11de9e(0xd3)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x11de9e(0xe4)]=new Set();constructor(_0x557b2c){const _0x4494d9=_0x11de9e;super(),this[_0x4494d9(0xf4)]=_0x557b2c||_0x286459;}[_0x11de9e(0x103)](_0x187502,_0x4a4073,_0x36cd15){const _0x475836=_0x11de9e,_0x191ba5=_0xcbd285(_0x187502);if(0x0===_0x4a4073[_0x475836(0x105)][_0x475836(0x108)]){const _0x2b2ad9=[];return _0x469be7(_0x475836(0x10c),_0x475836(0xef),_0x191ba5)[_0x475836(0xeb)](_0x302988=>{const _0x357a9f=_0x475836,_0x5454f6=this[_0x357a9f(0xf4)]();_0x4c04ff(_0x302988,_0x357a9f(0x10c),_0x5454f6),_0x2b2ad9[_0x357a9f(0x101)](_0x5454f6);}),this[_0x475836(0xce)](_0x191ba5),{'parsedContent':_0x191ba5,'newNodeIds':_0x2b2ad9,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x36cd15&&_0x36cd15[_0x475836(0xcb)]&&this[_0x475836(0x107)](_0x191ba5),this[_0x475836(0xd3)][_0x475836(0xf7)]=[],this[_0x475836(0xd3)][_0x475836(0xed)]=[],this[_0x475836(0xd3)][_0x475836(0xd0)]=[],this[_0x475836(0xd3)][_0x475836(0xe7)]=[],this[_0x475836(0xd3)][_0x475836(0xf0)]=null,this[_0x475836(0xe4)]=new Set(_0x469be7(_0x475836(0x10c),null,_0x4a4073)[_0x475836(0xde)](_0x4f9703=>_0xbf53f2(_0x4f9703,_0x475836(0x10c)))[_0x475836(0xe0)](_0x222f9d=>!!_0x222f9d));let _0x21ee67=-0x1,_0x3d7967=!0x1;const _0x1509fb=_0x191ba5[_0x475836(0x105)],_0x59c7bf=Array[_0x475836(0xc8)](_0x1509fb)[_0x475836(0xe0)](_0x47c0d1=>!(0x3===_0x47c0d1[_0x475836(0xec)]&&''===_0x243c05(_0x47c0d1)[_0x475836(0xf8)]())),_0x3b2879=_0x59c7bf[_0x475836(0x108)];for(let _0x3a9926=0x0;_0x3a9926<_0x3b2879;_0x3a9926++){const _0x1f758a=_0x59c7bf[_0x3a9926],_0x5a5106=_0x59c7bf[_0x3a9926+0x1];if(this[_0x475836(0xd8)](_0x1f758a)){if(-0x1===_0x21ee67&&(_0x21ee67=_0x3a9926),this[_0x475836(0xd5)](_0x1f758a),!this[_0x475836(0xd8)](_0x5a5106)){const [_0x1bdbfb,_0x27fbf9]=this[_0x475836(0xcf)](_0x1f758a,_0x3d7967,_0x4a4073);if(_0x1bdbfb){const _0x6a9e17=Array[_0x475836(0xc8)](_0x59c7bf)[_0x475836(0x102)](_0x21ee67,_0x3a9926+0x1);this[_0x475836(0xdf)](_0x1bdbfb,_0x6a9e17,_0x27fbf9),_0x21ee67=-0x1;}}}else{if(this[_0x475836(0xc6)](_0x1f758a))_0x3d7967=!0x0;else{if(this[_0x475836(0x109)](_0x1f758a)){const _0x5ba1d5=_0xbf53f2(_0x1f758a,_0x475836(0x10c));if(_0x5ba1d5&&this[_0x475836(0xe4)][_0x475836(0xe9)](_0x5ba1d5)){const _0x59de86=_0x203772(_0x475836(0x10c),_0x5ba1d5,_0x4a4073);this[_0x475836(0xe1)](_0x59de86,_0x1f758a);}if(this[_0x475836(0xd3)][_0x475836(0xd0)][_0x475836(0xdd)](_0x5ba1d5)){const _0x55cd3b=this[_0x475836(0xd3)][_0x475836(0xd0)][_0x475836(0xcc)](_0x5ba1d5);this[_0x475836(0xd3)][_0x475836(0xd0)][_0x475836(0xc7)](_0x55cd3b,0x1);}}else{if(this[_0x475836(0xf3)](_0x1f758a)){const _0x28393e=_0xbf53f2(_0x1f758a,_0x475836(0x10c));this[_0x475836(0xd3)][_0x475836(0xed)][_0x475836(0xdd)](_0x28393e)||this[_0x475836(0xf1)](_0x1f758a);}}}}}for(const _0x3f63be of this[_0x475836(0xd3)][_0x475836(0xd0)]){const _0x958dde=_0x203772(_0x475836(0x10c),_0x3f63be,_0x4a4073);if(_0x958dde){if(_0x36cd15&&_0x36cd15[_0x475836(0xe2)]){this[_0x475836(0xd3)][_0x475836(0xf0)]=_0x3f63be;const _0x5f52d6=_0x36cd15[_0x475836(0xe2)][_0x475836(0x10a)](!0x0);_0x4c04ff(_0x5f52d6,_0x475836(0x10c),_0x3f63be),_0x4c04ff(_0x5f52d6,_0x475836(0xd6),_0x475836(0xd1)),_0x3ab67b(_0x958dde,_0x5f52d6);}else _0x438fd0(_0x958dde);}}if(_0x469be7(_0x475836(0x104),null,_0x4a4073)[_0x475836(0xeb)](_0xc3df39=>{const _0x268727=_0x475836,_0x1a1cba=_0xbf53f2(_0xc3df39,_0x268727(0x104)),_0x3268d5=_0x203772(_0x268727(0x10c),_0x1a1cba,_0x4a4073);_0x3268d5&&_0x429156(_0x3268d5,_0xc3df39);}),_0x469be7(_0x475836(0x10c),_0x475836(0xef),_0x4a4073)[_0x475836(0xeb)](_0x4bc8d0=>{const _0x1787f8=_0x475836,_0x2b40b7=this[_0x1787f8(0xf5)](_0x4bc8d0);_0x4c04ff(_0x4bc8d0,_0x1787f8(0x10c),_0x2b40b7),this[_0x1787f8(0xd3)][_0x1787f8(0xf7)][_0x1787f8(0x101)](_0x2b40b7);}),this[_0x475836(0xce)](_0x4a4073),_0x36cd15&&_0x36cd15[_0x475836(0xcb)]&&this[_0x475836(0xfc)](_0x4a4073,_0x36cd15[_0x475836(0xdb)]||0x0),_0x36cd15&&_0x36cd15[_0x475836(0xe8)]&&this[_0x475836(0xd3)][_0x475836(0xf0)]){let _0x35155f=_0x203772(_0x475836(0x10c),this[_0x475836(0xd3)][_0x475836(0xf0)],_0x4a4073);for(;_0x35155f;)_0x12cb4a(_0x35155f),_0x35155f=_0x35155f[_0x475836(0xca)];}return{'parsedContent':_0x4a4073,'newNodeIds':this[_0x475836(0xd3)][_0x475836(0xf7)],'modifiedNodeIds':this[_0x475836(0xd3)][_0x475836(0xed)],'removedNodeIds':this[_0x475836(0xd3)][_0x475836(0xd0)]};}[_0x11de9e(0xdf)](_0x158c3c,_0x370e80,_0x22d351){const _0x178d97=_0x11de9e;for(const _0x2a8962 of _0x370e80){const _0x398a42=this[_0x178d97(0xf5)](_0x2a8962);_0x4c04ff(_0x2a8962,_0x178d97(0x10c),_0x398a42),this[_0x178d97(0xd3)][_0x178d97(0xf7)][_0x178d97(0x101)](_0x398a42),this[_0x178d97(0xd3)][_0x178d97(0xf0)]=_0x398a42;}const _0x3a8069=_0x178d97(0xff)===_0x22d351||_0x178d97(0xd7)===_0x22d351?_0x370e80[_0x178d97(0x106)]():_0x370e80;for(const _0xf69eb4 of _0x3a8069)_0x54a7b6(_0x158c3c,_0xf69eb4,_0x22d351);}[_0x11de9e(0xe1)](_0x23e585,_0x2c3151){const _0x3356b6=_0x11de9e;if(!_0x23e585)return;if(_0x5766b9(_0x23e585,_0x2c3151))return;const _0x33c8cb=this[_0x3356b6(0xf5)](_0x23e585);_0x4c04ff(_0x2c3151,_0x3356b6(0x10c),_0x33c8cb),this[_0x3356b6(0xd3)][_0x3356b6(0xed)][_0x3356b6(0x101)](_0x33c8cb),this[_0x3356b6(0xd3)][_0x3356b6(0xf0)]=_0x33c8cb,_0x3ab67b(_0x23e585,_0x2c3151[_0x3356b6(0x10a)](!0x0));}[_0x11de9e(0xcf)](_0x16de4f,_0x253e2b,_0x265b01){const _0x49e472=_0x11de9e,_0x43a0ec=this[_0x49e472(0xe5)](_0x16de4f,!0x1);if(_0x43a0ec){const _0x1b9b63=this[_0x49e472(0xe3)](_0x43a0ec),_0x3a6032=_0x203772(_0x49e472(0x10c),_0x1b9b63,_0x265b01);if(_0x3a6032)return[_0x3a6032,_0x49e472(0xd7)];this[_0x49e472(0xd3)][_0x49e472(0xe7)][_0x49e472(0x101)](_0x1b9b63);}const _0x355641=this[_0x49e472(0xe6)](_0x16de4f,!0x1);if(_0x355641){const _0x1e09cd=this[_0x49e472(0xe3)](_0x355641),_0x2dfa34=_0x203772(_0x49e472(0x10c),_0x1e09cd,_0x265b01);if(_0x2dfa34)return[_0x2dfa34,_0x49e472(0xd4)];this[_0x49e472(0xd3)][_0x49e472(0xe7)][_0x49e472(0x101)](_0x1e09cd);}return _0x253e2b?_0x16de4f[_0x49e472(0xc9)]?this[_0x49e472(0xfd)](_0x16de4f,_0x265b01):[_0x265b01[_0x49e472(0x105)][_0x265b01[_0x49e472(0x105)][_0x49e472(0x108)]-0x1],_0x49e472(0xd7)]:[_0x265b01[_0x49e472(0x105)][0x0],_0x49e472(0xd4)];}[_0x11de9e(0xfd)](_0x178362,_0x17f072){const _0x36559b=_0x11de9e,_0x3bb4b8=[],_0x1362d2=this[_0x36559b(0xe5)](_0x178362,!0x0);if(_0x1362d2){const _0x2f48b8=this[_0x36559b(0xe3)](_0x1362d2),_0x4749e0=_0x203772(_0x36559b(0x10c),_0x2f48b8,_0x17f072);_0x4749e0&&_0x3bb4b8[_0x36559b(0x101)]([_0x4749e0,_0x36559b(0xd7)]);}const _0x13c5d7=this[_0x36559b(0xe6)](_0x178362,!0x0);if(_0x13c5d7){const _0x3f59d1=this[_0x36559b(0xe3)](_0x13c5d7),_0x1044ce=_0x203772(_0x36559b(0x10c),_0x3f59d1,_0x17f072);_0x1044ce&&_0x3bb4b8[_0x36559b(0x101)]([_0x1044ce,_0x36559b(0xd4)]);}if(_0x3bb4b8[_0x36559b(0x108)]>0x1)return _0xe646f0(_0x3bb4b8[0x0][0x0])<=_0xe646f0(_0x3bb4b8[0x1][0x0])?_0x3bb4b8[0x0]:_0x3bb4b8[0x1];return 0x1===_0x3bb4b8[_0x36559b(0x108)]?_0x3bb4b8[0x0]:[_0x17f072[_0x36559b(0xda)],_0x36559b(0xd7)];}[_0x11de9e(0xe6)](_0x279439,_0x1451cf){const _0x507a88=_0x11de9e;let _0x3e1a7=_0x279439[_0x507a88(0xc9)],_0x452e24=null,_0x358e29=!0x1;for(;_0x3e1a7;){if(_0xb10e39(_0x3e1a7)){if(this[_0x507a88(0xf3)](_0x3e1a7)&&(_0x452e24=_0x3e1a7),this[_0x507a88(0xc6)](_0x3e1a7)&&_0x1451cf&&!_0x358e29){_0x358e29=!0x0,_0x3e1a7=_0x3e1a7[_0x507a88(0xc9)];continue;}break;}const _0x3828a6=_0xbf53f2(_0x3e1a7,_0x507a88(0x10c));if(_0x3828a6&&_0x507a88(0xef)!==_0x3828a6&&this[_0x507a88(0xe4)][_0x507a88(0xe9)](_0x3828a6)){_0x452e24=_0x3e1a7;break;}_0x3e1a7=_0x3e1a7[_0x507a88(0xc9)];}return _0x452e24;}[_0x11de9e(0xe5)](_0x10cb98,_0x5b2bcc){const _0x5ed628=_0x11de9e;let _0x38d2a7=_0x10cb98[_0x5ed628(0xdc)],_0x4dfc8f=null,_0x39b47c=!0x1;for(;_0x38d2a7;){if(_0xb10e39(_0x38d2a7)){if(this[_0x5ed628(0xf3)](_0x38d2a7)&&(_0x4dfc8f=_0x38d2a7),this[_0x5ed628(0xc6)](_0x38d2a7)&&_0x5b2bcc&&!_0x39b47c){_0x39b47c=!0x0,_0x38d2a7=_0x38d2a7[_0x5ed628(0xdc)];continue;}break;}const _0x1e0dba=_0xbf53f2(_0x38d2a7,_0x5ed628(0x10c));if(_0x1e0dba&&_0x5ed628(0xef)!==_0x1e0dba&&this[_0x5ed628(0xe4)][_0x5ed628(0xe9)](_0x1e0dba)){_0x4dfc8f=_0x38d2a7;break;}_0x38d2a7=_0x38d2a7[_0x5ed628(0xdc)];}return _0x4dfc8f;}[_0x11de9e(0xd5)](_0x1a0901){const _0x21bbe9=_0x11de9e;_0x31a714(_0x1a0901)&&_0x469be7(_0x21bbe9(0x10c),null,_0x1a0901)[_0x21bbe9(0xeb)](_0x431780=>{const _0x37b3b8=_0x21bbe9;if(this[_0x37b3b8(0x109)](_0x431780)&&!this[_0x37b3b8(0xee)](_0x431780)){const _0x5566ad=_0xbf53f2(_0x431780,_0x37b3b8(0x10c));_0x4c04ff(_0x431780,_0x37b3b8(0x104),_0x5566ad),_0x4c04ff(_0x431780,_0x37b3b8(0x10c),null);}});}[_0x11de9e(0xe3)](_0xac06e1){const _0x28b6ab=_0x11de9e;if(!_0xac06e1)return null;if(_0x31a714(_0xac06e1))return _0xbf53f2(_0xac06e1,_0x28b6ab(0x10c));if(_0xb10e39(_0xac06e1)){const _0x3934bb=_0x243c05(_0xac06e1)[_0x28b6ab(0xea)](/removed[\s*-]data-id="([^"]+)"/);if(_0x3934bb&&_0x3934bb[0x1])return _0x3934bb[0x1];}return null;}[_0x11de9e(0xf1)](_0x4a4ebc){const _0x626c54=_0x11de9e;if(_0xb10e39(_0x4a4ebc)){const _0x136f38=_0x243c05(_0x4a4ebc)[_0x626c54(0xea)](/removed[\s*-]data-id="([^"]+)"/);_0x136f38&&_0x136f38[0x1]&&this[_0x626c54(0xd3)][_0x626c54(0xd0)][_0x626c54(0x101)](_0x136f38[0x1]);}}[_0x11de9e(0xf5)](_0x381734){const _0x2a652e=_0x11de9e;return this[_0x2a652e(0x109)](_0x381734)?_0xbf53f2(_0x381734,_0x2a652e(0x10c)):this[_0x2a652e(0xf4)]();}[_0x11de9e(0xce)](_0x5e6de3){const _0x623879=_0x11de9e;_0x39d7b2(_0x5e6de3)[_0x623879(0xe0)](_0x5e6a97=>this[_0x623879(0xf3)](_0x5e6a97)||this[_0x623879(0xc6)](_0x5e6a97))[_0x623879(0xeb)](_0x5a5746=>{_0x438fd0(_0x5a5746);});}[_0x11de9e(0x107)](_0x21e9eb){const _0x211efd=_0x11de9e,_0x3af43f=_0x21e9eb[_0x211efd(0x105)],_0x50aebc=_0x3af43f[_0x3af43f[_0x211efd(0x108)]-0x1];_0x50aebc&&_0x31a714(_0x50aebc)&&_0x4c04ff(_0x50aebc,_0x211efd(0xc5),_0x211efd(0xd1));}[_0x11de9e(0xfc)](_0x26ec21,_0x455abf){const _0x41cc60=_0x11de9e,_0xf8faa9=_0x203772(_0x41cc60(0xc5),_0x41cc60(0xd1),_0x26ec21);if(!_0xf8faa9)return;const _0xa6a619=_0x5b1fd7(_0xf8faa9)[_0x41cc60(0x102)](0x0,-0x1),_0x41e3ae=_0xa6a619[_0x41cc60(0x108)];let _0x1222ef=_0xf8faa9;if(_0x41e3ae>_0x455abf){let _0x328ee8=_0x41e3ae,_0x3e0d7a=null;for(;_0x328ee8>_0x455abf&&_0x328ee8>=0x0;)_0x328ee8--,_0x3e0d7a=_0xa6a619[_0x328ee8];_0x3e0d7a&&(_0x1222ef=_0x3e0d7a,_0x4c04ff(_0xf8faa9,_0x41cc60(0xc5),null),_0x4c04ff(_0x3e0d7a,_0x41cc60(0xc5),_0x41cc60(0xd1)));}else{if(_0x41e3ae<_0x455abf){let _0x52cc39=_0x41e3ae,_0x395eb4=_0xf8faa9;for(;_0x52cc39<_0x455abf;){const _0x4b8cf4=_0x395eb4[_0x41cc60(0x105)][_0x41cc60(0xe0)](_0x4996f0=>_0x31a714(_0x4996f0));if(0x0===_0x4b8cf4[_0x41cc60(0x108)])break;_0x52cc39++,_0x395eb4=_0x4b8cf4[_0x4b8cf4[_0x41cc60(0x108)]-0x1];}_0x395eb4&&(_0x1222ef=_0x395eb4,_0x4c04ff(_0xf8faa9,_0x41cc60(0xc5),null),_0x4c04ff(_0x395eb4,_0x41cc60(0xc5),_0x41cc60(0xd1)));}}let _0x3491f1=_0x1222ef;for(;_0x3491f1;){for(;_0x3491f1[_0x41cc60(0xc9)];)_0x3491f1=_0x3491f1[_0x41cc60(0xc9)],_0x31a714(_0x3491f1)&&_0x4c04ff(_0x3491f1,_0x41cc60(0xc5),_0x41cc60(0xd1));_0x3491f1=_0x3491f1[_0x41cc60(0xca)];}}[_0x11de9e(0xd8)](_0x7eb748){const _0x59eecb=_0x11de9e;return Boolean(_0x59eecb(0xef)===_0xbf53f2(_0x7eb748,_0x59eecb(0x10c)));}[_0x11de9e(0x109)](_0x3f8296){const _0x4ae19f=_0x11de9e;return Boolean((_0xbf53f2(_0x3f8296,_0x4ae19f(0x10c))||'')[_0x4ae19f(0x108)]>0x0&&_0x4ae19f(0xef)!==_0xbf53f2(_0x3f8296,_0x4ae19f(0x10c)));}[_0x11de9e(0xf3)](_0x31461a){const _0x362751=_0x11de9e;return!!_0x31461a&&Boolean(_0xb10e39(_0x31461a)&&_0x243c05(_0x31461a)[_0x362751(0xea)](/removed[\s*-]data-id="[^"]+"/));}[_0x11de9e(0xee)](_0x55d666){const _0x44fb34=_0x11de9e;let _0x32d31f=_0x55d666[_0x44fb34(0xca)];for(;_0x32d31f;){if(_0xbf53f2(_0x32d31f,_0x44fb34(0x104)))return!0x0;_0x32d31f=_0x32d31f[_0x44fb34(0xca)];}return!0x1;}[_0x11de9e(0xc6)](_0x1c20e7){const _0x3109e5=_0x11de9e;return Boolean(_0xb10e39(_0x1c20e7)&&_0x243c05(_0x1c20e7)[_0x3109e5(0xea)](/\s*existing[\s*-](content|document)\s*/g));}}
|
|
23
|
+
const _0x5100d4=_0x19c3;function _0x19c3(_0x28ab79,_0x115053){const _0x379983=_0x3799();return _0x19c3=function(_0x19c33e,_0x833b5){_0x19c33e=_0x19c33e-0x1c4;let _0x3af534=_0x379983[_0x19c33e];return _0x3af534;},_0x19c3(_0x28ab79,_0x115053);}(function(_0x3b7d1c,_0x4cee4a){const _0x526b22=_0x19c3,_0x2840f8=_0x3b7d1c();while(!![]){try{const _0x427500=parseInt(_0x526b22(0x1fa))/0x1+-parseInt(_0x526b22(0x1d5))/0x2+-parseInt(_0x526b22(0x205))/0x3+parseInt(_0x526b22(0x1dc))/0x4*(parseInt(_0x526b22(0x1f0))/0x5)+parseInt(_0x526b22(0x1d0))/0x6+parseInt(_0x526b22(0x1ce))/0x7*(-parseInt(_0x526b22(0x1db))/0x8)+parseInt(_0x526b22(0x1f5))/0x9;if(_0x427500===_0x4cee4a)break;else _0x2840f8['push'](_0x2840f8['shift']());}catch(_0x4d3374){_0x2840f8['push'](_0x2840f8['shift']());}}}(_0x3799,0x7b630));import{ObservableMixin as _0x2e16ab,uid as _0x184f00}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x45ebbc,findByAttribute as _0x410325,getAttribute as _0x4a5f16,isComment as _0x42c8c7,isTag as _0x1c973b,insertElement as _0x23fff3,moveElement as _0x21956f,removeElement as _0xff1fac,replaceElement as _0x5a4ec4,serialize as _0x4d4df9,setAttribute as _0x5d1ea5,clone as _0x54d697,findAllComments as _0x2565ca,getParents as _0x5078ad,getNodeNestingLevel as _0x183505,areNodesSame as _0x2ec878,removeElementsAfter as _0x3ef760}from'../utils/htmlparser.js';function _0x3799(){const _0x20791d=['4060505ePnPri','_existingDataIds','_markUnstableElements','_removeSpecialComments','lastTouchedId','9159183vlIYSV','reverse','_markWrappedElements','_findPrevElementWithDataId','nextSibling','816762GtNKYv','afterbegin','lastChild','indexOf','replaceRemovedWith','cloneNode','beforebegin','_findReferenceNode','match','_hasWrappedParent','has','2928021qOmiKp','_storeDeletedElementIds','_isDelNode','childNodes','_getUid','nodeType','removedIds','_isExistingContentComment','map','data-unstable','cutAfterLastChange','push','parentNode','_generateUid','slice','28mAcwpO','_isNewNode','2055822UtmRcg','_markLastTagElementUnstable','trim','_insertNodes','filter','1408312fuExvy','newIds','from','length','new-element','_findNextElementWithDataId','1607264zYSWxb','4dVlMNG','_getNodeDataId','forEach','_findFallbackReferenceNode','data-wrapped-id','modifiedIds','previousSibling','data-id','merge','splice','true','markUnstableElementsDepth','_touchedNodesState','invalidIds','afterend','markUnstableElements','_replaceNode','includes','_isExistingNode','data-removed'];_0x3799=function(){return _0x20791d;};return _0x3799();}export class AIResponseApplier extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2e16ab(){[_0x5100d4(0x1cc)];[_0x5100d4(0x1e8)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x5100d4(0x1f1)]=new Set();constructor(_0x39f3ee){const _0x8d32c2=_0x5100d4;super(),this[_0x8d32c2(0x1cc)]=_0x39f3ee||_0x184f00;}[_0x5100d4(0x1e4)](_0x6f8bc4,_0x5b8d97,_0xe4c39d){const _0x5ec2cb=_0x5100d4,_0x1801f0=_0x54d697(_0x6f8bc4);if(0x0===_0x5b8d97[_0x5ec2cb(0x208)][_0x5ec2cb(0x1d8)]){const _0x496061=[];return _0x45ebbc(_0x5ec2cb(0x1e3),_0x5ec2cb(0x1d9),_0x1801f0)[_0x5ec2cb(0x1de)](_0x395929=>{const _0x355db1=_0x5ec2cb,_0x2e9f8d=this[_0x355db1(0x1cc)]();_0x5d1ea5(_0x395929,_0x355db1(0x1e3),_0x2e9f8d),_0x496061[_0x355db1(0x1ca)](_0x2e9f8d);}),this[_0x5ec2cb(0x1f3)](_0x1801f0),{'parsedContent':_0x1801f0,'newNodeIds':_0x496061,'modifiedNodeIds':[],'removedNodeIds':[]};}_0xe4c39d&&_0xe4c39d[_0x5ec2cb(0x1eb)]&&this[_0x5ec2cb(0x1d1)](_0x1801f0),this[_0x5ec2cb(0x1e8)][_0x5ec2cb(0x1d6)]=[],this[_0x5ec2cb(0x1e8)][_0x5ec2cb(0x1e1)]=[],this[_0x5ec2cb(0x1e8)][_0x5ec2cb(0x1c5)]=[],this[_0x5ec2cb(0x1e8)][_0x5ec2cb(0x1e9)]=[],this[_0x5ec2cb(0x1e8)][_0x5ec2cb(0x1f4)]=null,this[_0x5ec2cb(0x1f1)]=new Set(_0x45ebbc(_0x5ec2cb(0x1e3),null,_0x5b8d97)[_0x5ec2cb(0x1c7)](_0x2474b4=>_0x4a5f16(_0x2474b4,_0x5ec2cb(0x1e3)))[_0x5ec2cb(0x1d4)](_0x21fccc=>!!_0x21fccc));let _0x142798=-0x1,_0x35beb=!0x1;const _0x89219d=_0x1801f0[_0x5ec2cb(0x208)],_0x49a189=Array[_0x5ec2cb(0x1d7)](_0x89219d)[_0x5ec2cb(0x1d4)](_0x538d00=>!(0x3===_0x538d00[_0x5ec2cb(0x1c4)]&&''===_0x4d4df9(_0x538d00)[_0x5ec2cb(0x1d2)]())),_0x72850a=_0x49a189[_0x5ec2cb(0x1d8)];for(let _0x1fc6b3=0x0;_0x1fc6b3<_0x72850a;_0x1fc6b3++){const _0x826d10=_0x49a189[_0x1fc6b3],_0x308755=_0x49a189[_0x1fc6b3+0x1];if(this[_0x5ec2cb(0x1cf)](_0x826d10)){if(-0x1===_0x142798&&(_0x142798=_0x1fc6b3),this[_0x5ec2cb(0x1f7)](_0x826d10),!this[_0x5ec2cb(0x1cf)](_0x308755)){const [_0x9a1c6a,_0x3d49f9]=this[_0x5ec2cb(0x201)](_0x826d10,_0x35beb,_0x5b8d97);if(_0x9a1c6a){const _0x403591=Array[_0x5ec2cb(0x1d7)](_0x49a189)[_0x5ec2cb(0x1cd)](_0x142798,_0x1fc6b3+0x1);this[_0x5ec2cb(0x1d3)](_0x9a1c6a,_0x403591,_0x3d49f9),_0x142798=-0x1;}}}else{if(this[_0x5ec2cb(0x1c6)](_0x826d10))_0x35beb=!0x0;else{if(this[_0x5ec2cb(0x1ee)](_0x826d10)){const _0x25d5f5=_0x4a5f16(_0x826d10,_0x5ec2cb(0x1e3));if(_0x25d5f5&&this[_0x5ec2cb(0x1f1)][_0x5ec2cb(0x204)](_0x25d5f5)){const _0x264416=_0x410325(_0x5ec2cb(0x1e3),_0x25d5f5,_0x5b8d97);this[_0x5ec2cb(0x1ec)](_0x264416,_0x826d10);}if(this[_0x5ec2cb(0x1e8)][_0x5ec2cb(0x1c5)][_0x5ec2cb(0x1ed)](_0x25d5f5)){const _0x4a9703=this[_0x5ec2cb(0x1e8)][_0x5ec2cb(0x1c5)][_0x5ec2cb(0x1fd)](_0x25d5f5);this[_0x5ec2cb(0x1e8)][_0x5ec2cb(0x1c5)][_0x5ec2cb(0x1e5)](_0x4a9703,0x1);}}else{if(this[_0x5ec2cb(0x207)](_0x826d10)){const _0x2114d2=_0x4a5f16(_0x826d10,_0x5ec2cb(0x1e3));this[_0x5ec2cb(0x1e8)][_0x5ec2cb(0x1e1)][_0x5ec2cb(0x1ed)](_0x2114d2)||this[_0x5ec2cb(0x206)](_0x826d10);}}}}}for(const _0x16fced of this[_0x5ec2cb(0x1e8)][_0x5ec2cb(0x1c5)]){const _0x213925=_0x410325(_0x5ec2cb(0x1e3),_0x16fced,_0x5b8d97);if(_0x213925){if(_0xe4c39d&&_0xe4c39d[_0x5ec2cb(0x1fe)]){this[_0x5ec2cb(0x1e8)][_0x5ec2cb(0x1f4)]=_0x16fced;const _0x6ced63=_0xe4c39d[_0x5ec2cb(0x1fe)][_0x5ec2cb(0x1ff)](!0x0);_0x5d1ea5(_0x6ced63,_0x5ec2cb(0x1e3),_0x16fced),_0x5d1ea5(_0x6ced63,_0x5ec2cb(0x1ef),_0x5ec2cb(0x1e6)),_0x5a4ec4(_0x213925,_0x6ced63);}else _0xff1fac(_0x213925);}}if(_0x45ebbc(_0x5ec2cb(0x1e0),null,_0x5b8d97)[_0x5ec2cb(0x1de)](_0x5d229c=>{const _0x2ba879=_0x5ec2cb,_0x3c6443=_0x4a5f16(_0x5d229c,_0x2ba879(0x1e0)),_0x16e6c5=_0x410325(_0x2ba879(0x1e3),_0x3c6443,_0x5b8d97);_0x16e6c5&&_0x21956f(_0x16e6c5,_0x5d229c);}),_0x45ebbc(_0x5ec2cb(0x1e3),_0x5ec2cb(0x1d9),_0x5b8d97)[_0x5ec2cb(0x1de)](_0x2dd689=>{const _0xe71a49=_0x5ec2cb,_0x2aceec=this[_0xe71a49(0x209)](_0x2dd689);_0x5d1ea5(_0x2dd689,_0xe71a49(0x1e3),_0x2aceec),this[_0xe71a49(0x1e8)][_0xe71a49(0x1d6)][_0xe71a49(0x1ca)](_0x2aceec);}),this[_0x5ec2cb(0x1f3)](_0x5b8d97),_0xe4c39d&&_0xe4c39d[_0x5ec2cb(0x1eb)]&&this[_0x5ec2cb(0x1f2)](_0x5b8d97,_0xe4c39d[_0x5ec2cb(0x1e7)]||0x0),_0xe4c39d&&_0xe4c39d[_0x5ec2cb(0x1c9)]&&this[_0x5ec2cb(0x1e8)][_0x5ec2cb(0x1f4)]){let _0x290a41=_0x410325(_0x5ec2cb(0x1e3),this[_0x5ec2cb(0x1e8)][_0x5ec2cb(0x1f4)],_0x5b8d97);for(;_0x290a41;)_0x3ef760(_0x290a41),_0x290a41=_0x290a41[_0x5ec2cb(0x1cb)];}return{'parsedContent':_0x5b8d97,'newNodeIds':this[_0x5ec2cb(0x1e8)][_0x5ec2cb(0x1d6)],'modifiedNodeIds':this[_0x5ec2cb(0x1e8)][_0x5ec2cb(0x1e1)],'removedNodeIds':this[_0x5ec2cb(0x1e8)][_0x5ec2cb(0x1c5)]};}[_0x5100d4(0x1d3)](_0x4cc98c,_0x40c94f,_0x25db3e){const _0x53738a=_0x5100d4;for(const _0x2afa47 of _0x40c94f){const _0x1c56fa=this[_0x53738a(0x209)](_0x2afa47);_0x5d1ea5(_0x2afa47,_0x53738a(0x1e3),_0x1c56fa),this[_0x53738a(0x1e8)][_0x53738a(0x1d6)][_0x53738a(0x1ca)](_0x1c56fa),this[_0x53738a(0x1e8)][_0x53738a(0x1f4)]=_0x1c56fa;}const _0x5eedde=_0x53738a(0x1fb)===_0x25db3e||_0x53738a(0x1ea)===_0x25db3e?_0x40c94f[_0x53738a(0x1f6)]():_0x40c94f;for(const _0x392829 of _0x5eedde)_0x23fff3(_0x4cc98c,_0x392829,_0x25db3e);}[_0x5100d4(0x1ec)](_0x20a64e,_0x3ce548){const _0xdd917f=_0x5100d4;if(!_0x20a64e)return;if(_0x2ec878(_0x20a64e,_0x3ce548))return;const _0x40e1e1=this[_0xdd917f(0x209)](_0x20a64e);_0x5d1ea5(_0x3ce548,_0xdd917f(0x1e3),_0x40e1e1),this[_0xdd917f(0x1e8)][_0xdd917f(0x1e1)][_0xdd917f(0x1ca)](_0x40e1e1),this[_0xdd917f(0x1e8)][_0xdd917f(0x1f4)]=_0x40e1e1,_0x5a4ec4(_0x20a64e,_0x3ce548[_0xdd917f(0x1ff)](!0x0));}[_0x5100d4(0x201)](_0x4704af,_0x203903,_0x522b7b){const _0x2d4cd5=_0x5100d4,_0x2ee47f=this[_0x2d4cd5(0x1f8)](_0x4704af,!0x1);if(_0x2ee47f){const _0x105c23=this[_0x2d4cd5(0x1dd)](_0x2ee47f),_0xc0e387=_0x410325(_0x2d4cd5(0x1e3),_0x105c23,_0x522b7b);if(_0xc0e387)return[_0xc0e387,_0x2d4cd5(0x1ea)];this[_0x2d4cd5(0x1e8)][_0x2d4cd5(0x1e9)][_0x2d4cd5(0x1ca)](_0x105c23);}const _0xe220d3=this[_0x2d4cd5(0x1da)](_0x4704af,!0x1);if(_0xe220d3){const _0x1604de=this[_0x2d4cd5(0x1dd)](_0xe220d3),_0x44673a=_0x410325(_0x2d4cd5(0x1e3),_0x1604de,_0x522b7b);if(_0x44673a)return[_0x44673a,_0x2d4cd5(0x200)];this[_0x2d4cd5(0x1e8)][_0x2d4cd5(0x1e9)][_0x2d4cd5(0x1ca)](_0x1604de);}return _0x203903?_0x4704af[_0x2d4cd5(0x1f9)]?this[_0x2d4cd5(0x1df)](_0x4704af,_0x522b7b):[_0x522b7b[_0x2d4cd5(0x208)][_0x522b7b[_0x2d4cd5(0x208)][_0x2d4cd5(0x1d8)]-0x1],_0x2d4cd5(0x1ea)]:[_0x522b7b[_0x2d4cd5(0x208)][0x0],_0x2d4cd5(0x200)];}[_0x5100d4(0x1df)](_0x557caf,_0x501297){const _0x4c45f9=_0x5100d4,_0x43ccf3=[],_0x443745=this[_0x4c45f9(0x1f8)](_0x557caf,!0x0);if(_0x443745){const _0x382f9a=this[_0x4c45f9(0x1dd)](_0x443745),_0x361c43=_0x410325(_0x4c45f9(0x1e3),_0x382f9a,_0x501297);_0x361c43&&_0x43ccf3[_0x4c45f9(0x1ca)]([_0x361c43,_0x4c45f9(0x1ea)]);}const _0x5cc12a=this[_0x4c45f9(0x1da)](_0x557caf,!0x0);if(_0x5cc12a){const _0x250ade=this[_0x4c45f9(0x1dd)](_0x5cc12a),_0x2b36ea=_0x410325(_0x4c45f9(0x1e3),_0x250ade,_0x501297);_0x2b36ea&&_0x43ccf3[_0x4c45f9(0x1ca)]([_0x2b36ea,_0x4c45f9(0x200)]);}if(_0x43ccf3[_0x4c45f9(0x1d8)]>0x1)return _0x183505(_0x43ccf3[0x0][0x0])<=_0x183505(_0x43ccf3[0x1][0x0])?_0x43ccf3[0x0]:_0x43ccf3[0x1];return 0x1===_0x43ccf3[_0x4c45f9(0x1d8)]?_0x43ccf3[0x0]:[_0x501297[_0x4c45f9(0x1fc)],_0x4c45f9(0x1ea)];}[_0x5100d4(0x1da)](_0x2d2f5c,_0x448714){const _0x2a7da0=_0x5100d4;let _0xf74fa1=_0x2d2f5c[_0x2a7da0(0x1f9)],_0x41d1c3=null,_0x2122da=!0x1;for(;_0xf74fa1;){if(_0x42c8c7(_0xf74fa1)){if(this[_0x2a7da0(0x207)](_0xf74fa1)&&(_0x41d1c3=_0xf74fa1),this[_0x2a7da0(0x1c6)](_0xf74fa1)&&_0x448714&&!_0x2122da){_0x2122da=!0x0,_0xf74fa1=_0xf74fa1[_0x2a7da0(0x1f9)];continue;}break;}const _0x587c09=_0x4a5f16(_0xf74fa1,_0x2a7da0(0x1e3));if(_0x587c09&&_0x2a7da0(0x1d9)!==_0x587c09&&this[_0x2a7da0(0x1f1)][_0x2a7da0(0x204)](_0x587c09)){_0x41d1c3=_0xf74fa1;break;}_0xf74fa1=_0xf74fa1[_0x2a7da0(0x1f9)];}return _0x41d1c3;}[_0x5100d4(0x1f8)](_0x6268d1,_0x11409e){const _0x74f22d=_0x5100d4;let _0x15c117=_0x6268d1[_0x74f22d(0x1e2)],_0x59f182=null,_0x16a19a=!0x1;for(;_0x15c117;){if(_0x42c8c7(_0x15c117)){if(this[_0x74f22d(0x207)](_0x15c117)&&(_0x59f182=_0x15c117),this[_0x74f22d(0x1c6)](_0x15c117)&&_0x11409e&&!_0x16a19a){_0x16a19a=!0x0,_0x15c117=_0x15c117[_0x74f22d(0x1e2)];continue;}break;}const _0x25711c=_0x4a5f16(_0x15c117,_0x74f22d(0x1e3));if(_0x25711c&&_0x74f22d(0x1d9)!==_0x25711c&&this[_0x74f22d(0x1f1)][_0x74f22d(0x204)](_0x25711c)){_0x59f182=_0x15c117;break;}_0x15c117=_0x15c117[_0x74f22d(0x1e2)];}return _0x59f182;}[_0x5100d4(0x1f7)](_0x2dfe35){const _0x16de65=_0x5100d4;_0x1c973b(_0x2dfe35)&&_0x45ebbc(_0x16de65(0x1e3),null,_0x2dfe35)[_0x16de65(0x1de)](_0xd2bf9f=>{const _0x2be85d=_0x16de65;if(this[_0x2be85d(0x1ee)](_0xd2bf9f)&&!this[_0x2be85d(0x203)](_0xd2bf9f)){const _0x950a2e=_0x4a5f16(_0xd2bf9f,_0x2be85d(0x1e3));_0x5d1ea5(_0xd2bf9f,_0x2be85d(0x1e0),_0x950a2e),_0x5d1ea5(_0xd2bf9f,_0x2be85d(0x1e3),null);}});}[_0x5100d4(0x1dd)](_0x9f6a69){const _0x453bfa=_0x5100d4;if(!_0x9f6a69)return null;if(_0x1c973b(_0x9f6a69))return _0x4a5f16(_0x9f6a69,_0x453bfa(0x1e3));if(_0x42c8c7(_0x9f6a69)){const _0x5884c9=_0x4d4df9(_0x9f6a69)[_0x453bfa(0x202)](/removed[\s*-]data-id="([^"]+)"/);if(_0x5884c9&&_0x5884c9[0x1])return _0x5884c9[0x1];}return null;}[_0x5100d4(0x206)](_0x2c5bce){const _0x301e12=_0x5100d4;if(_0x42c8c7(_0x2c5bce)){const _0x4aa2c3=_0x4d4df9(_0x2c5bce)[_0x301e12(0x202)](/removed[\s*-]data-id="([^"]+)"/);_0x4aa2c3&&_0x4aa2c3[0x1]&&this[_0x301e12(0x1e8)][_0x301e12(0x1c5)][_0x301e12(0x1ca)](_0x4aa2c3[0x1]);}}[_0x5100d4(0x209)](_0x2b4f42){const _0x281683=_0x5100d4;return this[_0x281683(0x1ee)](_0x2b4f42)?_0x4a5f16(_0x2b4f42,_0x281683(0x1e3)):this[_0x281683(0x1cc)]();}[_0x5100d4(0x1f3)](_0x55ff65){const _0x5bdc56=_0x5100d4;_0x2565ca(_0x55ff65)[_0x5bdc56(0x1d4)](_0x149fa4=>this[_0x5bdc56(0x207)](_0x149fa4)||this[_0x5bdc56(0x1c6)](_0x149fa4))[_0x5bdc56(0x1de)](_0x364bb7=>{_0xff1fac(_0x364bb7);});}[_0x5100d4(0x1d1)](_0xd9b43d){const _0x515477=_0x5100d4,_0x305981=_0xd9b43d[_0x515477(0x208)],_0x4a0ae2=_0x305981[_0x305981[_0x515477(0x1d8)]-0x1];_0x4a0ae2&&_0x1c973b(_0x4a0ae2)&&_0x5d1ea5(_0x4a0ae2,_0x515477(0x1c8),_0x515477(0x1e6));}[_0x5100d4(0x1f2)](_0x5b0a19,_0x4a0bbe){const _0x4fee56=_0x5100d4,_0x4ce541=_0x410325(_0x4fee56(0x1c8),_0x4fee56(0x1e6),_0x5b0a19);if(!_0x4ce541)return;const _0x53ad8f=_0x5078ad(_0x4ce541)[_0x4fee56(0x1cd)](0x0,-0x1),_0x405005=_0x53ad8f[_0x4fee56(0x1d8)];let _0x4ced9c=_0x4ce541;if(_0x405005>_0x4a0bbe){let _0x3963af=_0x405005,_0x8d117e=null;for(;_0x3963af>_0x4a0bbe&&_0x3963af>=0x0;)_0x3963af--,_0x8d117e=_0x53ad8f[_0x3963af];_0x8d117e&&(_0x4ced9c=_0x8d117e,_0x5d1ea5(_0x4ce541,_0x4fee56(0x1c8),null),_0x5d1ea5(_0x8d117e,_0x4fee56(0x1c8),_0x4fee56(0x1e6)));}else{if(_0x405005<_0x4a0bbe){let _0x315fc4=_0x405005,_0x2a012e=_0x4ce541;for(;_0x315fc4<_0x4a0bbe;){const _0x321d10=_0x2a012e[_0x4fee56(0x208)][_0x4fee56(0x1d4)](_0x4fb19f=>_0x1c973b(_0x4fb19f));if(0x0===_0x321d10[_0x4fee56(0x1d8)])break;_0x315fc4++,_0x2a012e=_0x321d10[_0x321d10[_0x4fee56(0x1d8)]-0x1];}_0x2a012e&&(_0x4ced9c=_0x2a012e,_0x5d1ea5(_0x4ce541,_0x4fee56(0x1c8),null),_0x5d1ea5(_0x2a012e,_0x4fee56(0x1c8),_0x4fee56(0x1e6)));}}let _0x2564b4=_0x4ced9c;for(;_0x2564b4;){for(;_0x2564b4[_0x4fee56(0x1f9)];)_0x2564b4=_0x2564b4[_0x4fee56(0x1f9)],_0x1c973b(_0x2564b4)&&_0x5d1ea5(_0x2564b4,_0x4fee56(0x1c8),_0x4fee56(0x1e6));_0x2564b4=_0x2564b4[_0x4fee56(0x1cb)];}}[_0x5100d4(0x1cf)](_0x5456b6){const _0x5df42e=_0x5100d4;return Boolean(_0x5df42e(0x1d9)===_0x4a5f16(_0x5456b6,_0x5df42e(0x1e3)));}[_0x5100d4(0x1ee)](_0x5607cf){const _0x29e18b=_0x5100d4;return Boolean((_0x4a5f16(_0x5607cf,_0x29e18b(0x1e3))||'')[_0x29e18b(0x1d8)]>0x0&&_0x29e18b(0x1d9)!==_0x4a5f16(_0x5607cf,_0x29e18b(0x1e3)));}[_0x5100d4(0x207)](_0xbe4e44){const _0xa9db89=_0x5100d4;return!!_0xbe4e44&&Boolean(_0x42c8c7(_0xbe4e44)&&_0x4d4df9(_0xbe4e44)[_0xa9db89(0x202)](/removed[\s*-]data-id="[^"]+"/));}[_0x5100d4(0x203)](_0x9100d2){const _0x2ba37b=_0x5100d4;let _0x25af83=_0x9100d2[_0x2ba37b(0x1cb)];for(;_0x25af83;){if(_0x4a5f16(_0x25af83,_0x2ba37b(0x1e0)))return!0x0;_0x25af83=_0x25af83[_0x2ba37b(0x1cb)];}return!0x1;}[_0x5100d4(0x1c6)](_0x35c094){const _0x44fce5=_0x5100d4;return Boolean(_0x42c8c7(_0x35c094)&&_0x4d4df9(_0x35c094)[_0x44fce5(0x202)](/\s*existing[\s*-](content|document)\s*/g));}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x270438=_0x5551;(function(_0x16a82b,_0x3f5d87){const _0x350151=_0x5551,_0xb753d9=_0x16a82b();while(!![]){try{const _0x214f21=parseInt(_0x350151(0x193))/0x1*(parseInt(_0x350151(0x19b))/0x2)+parseInt(_0x350151(0x192))/0x3*(-parseInt(_0x350151(0x190))/0x4)+parseInt(_0x350151(0x194))/0x5*(parseInt(_0x350151(0x19e))/0x6)+parseInt(_0x350151(0x198))/0x7+parseInt(_0x350151(0x196))/0x8*(parseInt(_0x350151(0x195))/0x9)+parseInt(_0x350151(0x19a))/0xa+-parseInt(_0x350151(0x197))/0xb;if(_0x214f21===_0x3f5d87)break;else _0xb753d9['push'](_0xb753d9['shift']());}catch(_0x3adf3f){_0xb753d9['push'](_0xb753d9['shift']());}}}(_0x6d03,0xadb49));import{ObservableMixin as _0x892bd1}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x43b302}from'@ckeditor/ckeditor5-markdown-gfm';function _0x6d03(){const _0x58031d=['5104071JibAlV','8eeGQEq','25447389uAnJrv','9322222VyWeER','_parseHTML','2391190rhprLq','22808WiAFSu','parseAndNormalizeHTML','<dummy>','6DWePxn','convertMarkdownToHTML','</dummy>','children','replace','_m2html','436oVcFdn','parse','3495jQAklP','60tQiZfC','1648285gryTZI'];_0x6d03=function(){return _0x58031d;};return _0x6d03();}function _0x5551(_0x2df270,_0x26c8e7){const _0x6d03fa=_0x6d03();return _0x5551=function(_0x555110,_0x5d1a21){_0x555110=_0x555110-0x18d;let _0xd73016=_0x6d03fa[_0x555110];return _0xd73016;},_0x5551(_0x2df270,_0x26c8e7);}import{parse as _0x51e5aa}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x892bd1(){[_0x270438(0x18f)];constructor(){const _0x347838=_0x270438;super(),this[_0x347838(0x18f)]=new _0x43b302();}[_0x270438(0x19f)](_0x471054){const _0x189a9c=_0x270438,_0x1e63fb=this[_0x189a9c(0x18f)][_0x189a9c(0x191)](_0x471054);return this[_0x189a9c(0x19c)](_0x1e63fb);}[_0x270438(0x19c)](_0x7bc05f){const _0x4c546c=_0x270438;return this[_0x4c546c(0x199)](_0x7bc05f);}[_0x270438(0x199)](_0x4d30ce){const _0x2f0b5c=_0x270438,_0x3a0e89=_0x4d30ce[_0x2f0b5c(0x18e)](/^\t+/gm,'\x20')[_0x2f0b5c(0x18e)](/\n*/g,'')[_0x2f0b5c(0x18e)](/\s+/g,'\x20')[_0x2f0b5c(0x18e)](/<[^>]*?$/g,''),_0x175449=_0x51e5aa(_0x2f0b5c(0x19d)+_0x3a0e89+_0x2f0b5c(0x1a0));return _0x175449[_0x2f0b5c(0x18d)]=_0x175449[_0x2f0b5c(0x18d)][0x0][_0x2f0b5c(0x18d)],_0x175449;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x4f5348,_0x3cbd65){var _0x5f1797=_0x2947,_0x2111c4=_0x4f5348();while(!![]){try{var _0x4babee=-parseInt(_0x5f1797(0x1d9))/0x1+-parseInt(_0x5f1797(0x1db))/0x2*(parseInt(_0x5f1797(0x1dd))/0x3)+-parseInt(_0x5f1797(0x1da))/0x4*(parseInt(_0x5f1797(0x1de))/0x5)+parseInt(_0x5f1797(0x1d4))/0x6*(parseInt(_0x5f1797(0x1d5))/0x7)+-parseInt(_0x5f1797(0x1d3))/0x8+parseInt(_0x5f1797(0x1dc))/0x9*(parseInt(_0x5f1797(0x1d6))/0xa)+parseInt(_0x5f1797(0x1d2))/0xb;if(_0x4babee===_0x3cbd65)break;else _0x2111c4['push'](_0x2111c4['shift']());}catch(_0x54fab4){_0x2111c4['push'](_0x2111c4['shift']());}}}(_0x1340,0xbb423));function _0x2947(_0x52ff5f,_0x411dc6){var _0x13400a=_0x1340();return _0x2947=function(_0x294713,_0x35db0b){_0x294713=_0x294713-0x1cf;var _0x346d35=_0x13400a[_0x294713];return _0x346d35;},_0x2947(_0x52ff5f,_0x411dc6);}import{View as _0xa2fa1a}from'ckeditor5/src/ui.js';import{getTranslation as _0xa501c9}from'../../aicore/utils/common-translations.js';export class AIDisclaimerView extends _0xa2fa1a{constructor(_0x2645ce){var _0x5ef175=_0x2947;super(_0x2645ce),this[_0x5ef175(0x1d8)]({'tag':_0x5ef175(0x1d1),'attributes':{'class':['ck',_0x5ef175(0x1d7)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x5ef175(0x1d0)]},'children':[{'text':_0xa501c9(_0x2645ce,_0x5ef175(0x1cf))}]}]});}}function _0x1340(){var _0x3faa94=['AI_DISCLAIMER_TEXT','ck-ai-disclaimer__content','div','38658037MXdCcA','2249584UDnrKy','6jZXEQU','990031aCrGXf','70UbCOGc','ck-ai-disclaimer','setTemplate','1181116HSNfxl','12124OECtEO','2647486SUaNsp','1391643mzguUC','3zxjzGb','1955TYoFoJ'];_0x1340=function(){return _0x3faa94;};return _0x1340();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x291c26=_0x3760;(function(_0x3d88b1,_0x46770b){const _0x46cd49=_0x3760,_0x30daf8=_0x3d88b1();while(!![]){try{const _0x360c36=-parseInt(_0x46cd49(0x205))/0x1+-parseInt(_0x46cd49(0x202))/0x2+-parseInt(_0x46cd49(0x1e5))/0x3+-parseInt(_0x46cd49(0x206))/0x4+parseInt(_0x46cd49(0x1f3))/0x5+parseInt(_0x46cd49(0x1f0))/0x6+-parseInt(_0x46cd49(0x1f8))/0x7*(-parseInt(_0x46cd49(0x1f9))/0x8);if(_0x360c36===_0x46770b)break;else _0x30daf8['push'](_0x30daf8['shift']());}catch(_0x41ad4a){_0x30daf8['push'](_0x30daf8['shift']());}}}(_0x50f5,0xf2d1a));function _0x50f5(){const _0x14944c=['width:\x20','40px','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','140px','24px','height','class','ck-ai-skeleton','div','72px','11213802SZTTGs','150px','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','7485505pbgPWE','tag','left','100%','ck-ai-skeleton__item','1420811QRTGZE','48LOyqKt','fill','88px','map','250px','attributes','setTemplate','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','44px','452960qlsbkA','align','right','1033992gEXiKk','6716728bvOSkK','center',';\x20height:\x20','128px','width','_createSkeletonItems','1948998isEplH'];_0x50f5=function(){return _0x14944c;};return _0x50f5();}import{View as _0x237424}from'ckeditor5/src/ui.js';export class AISkeletonView extends _0x237424{constructor(_0x4ec9fe,_0x5df083){const _0x19a251=_0x3760;super(_0x4ec9fe),this[_0x19a251(0x1ff)]({'tag':_0x19a251(0x1ee),'attributes':{'class':['ck',_0x19a251(0x1ed)]},'children':this[_0x19a251(0x1e4)](_0x5df083)});}[_0x291c26(0x1e4)](_0xbe6b27){const _0x29d957=_0x291c26,_0x313e02=['ck',_0x29d957(0x1f7)];return _0xbe6b27[_0x29d957(0x1fc)](_0x3c7e76=>{const _0x5a68c2=_0x29d957;let _0x57478c='';switch(_0x3c7e76[_0x5a68c2(0x1fe)][_0x5a68c2(0x203)]){case _0x5a68c2(0x204):_0x57478c=_0x5a68c2(0x200);break;case _0x5a68c2(0x207):_0x57478c=_0x5a68c2(0x1f2);break;case _0x5a68c2(0x1f5):_0x57478c=_0x5a68c2(0x1e8);}return{'tag':_0x3c7e76[_0x5a68c2(0x1f4)],'attributes':{'class':[..._0x313e02,_0x3c7e76[_0x5a68c2(0x1fe)][_0x5a68c2(0x1ec)]?_0x3c7e76[_0x5a68c2(0x1fe)][_0x5a68c2(0x1ec)]:''],'style':_0x5a68c2(0x1e6)+_0x3c7e76[_0x5a68c2(0x1fe)][_0x5a68c2(0x1e3)]+_0x5a68c2(0x1e1)+_0x3c7e76[_0x5a68c2(0x1fe)][_0x5a68c2(0x1eb)]+';'+_0x57478c}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x291c26(0x1ee),'attributes':{'width':_0x291c26(0x1f6),'height':_0x291c26(0x1ef),'align':_0x291c26(0x204)}},{'tag':_0x291c26(0x1ee),'attributes':{'width':_0x291c26(0x1fd),'height':_0x291c26(0x1e7),'align':_0x291c26(0x204)}},{'tag':_0x291c26(0x1ee),'attributes':{'width':_0x291c26(0x1f6),'height':_0x291c26(0x1fb),'align':_0x291c26(0x204)}},{'tag':_0x291c26(0x1ee),'attributes':{'width':_0x291c26(0x1f1),'height':_0x291c26(0x1e7),'align':_0x291c26(0x204)}},{'tag':_0x291c26(0x1ee),'attributes':{'width':_0x291c26(0x1f6),'height':_0x291c26(0x1e9),'align':_0x291c26(0x204)}},{'tag':_0x291c26(0x1ee),'attributes':{'width':_0x291c26(0x1fd),'height':_0x291c26(0x1e7),'align':_0x291c26(0x204)}},{'tag':_0x291c26(0x1ee),'attributes':{'width':_0x291c26(0x1f6),'height':_0x291c26(0x1fb),'align':_0x291c26(0x204)}}],'aiHistory':ta(0x5,_0x291c26(0x1f6),_0x291c26(0x201),_0x291c26(0x204)),'aiChatResources':ta(0x8,_0x291c26(0x1f6),_0x291c26(0x1ea),_0x291c26(0x204)),'aiReviewChecks':[{'tag':_0x291c26(0x1ee),'attributes':{'width':_0x291c26(0x1e2),'height':_0x291c26(0x1ea),'align':_0x291c26(0x1f5)}},{'tag':_0x291c26(0x1ee),'attributes':{'width':_0x291c26(0x1f6),'height':_0x291c26(0x1ea),'align':_0x291c26(0x1f5)}},{'tag':_0x291c26(0x1ee),'attributes':{'width':_0x291c26(0x1e2),'height':_0x291c26(0x1ea),'align':_0x291c26(0x1f5)}}]};function _0x3760(_0x270834,_0x40d91e){const _0x50f53b=_0x50f5();return _0x3760=function(_0x376092,_0x4b9c42){_0x376092=_0x376092-0x1e1;let _0x506436=_0x50f53b[_0x376092];return _0x506436;},_0x3760(_0x270834,_0x40d91e);}function ta(_0x43f8e3,_0x8e428c,_0x4ef4b7,_0x217129){const _0x32400f=_0x291c26;return new Array(_0x43f8e3)[_0x32400f(0x1fa)](null)[_0x32400f(0x1fc)](()=>({'tag':_0x32400f(0x1ee),'attributes':{'width':_0x8e428c,'height':_0x4ef4b7,'align':_0x217129}}));}
|