@ckeditor/ckeditor5-ai 47.1.0-alpha.0 → 47.1.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xf1cea4=_0x8c08;function _0x391d(){const _0x264333=['_addToConversationContextItem','sources','uploadDocument','_startUploadOperation','160BqpgiX','file-','481747KipQbF','url-','clearPendingContextItems','ai-request-aborted','_isResourceInContext','getSentContextItems','abort','string','type','document','_finishContextItemLoading','values','set','updateCurrentDocument','object','Current\x20document','_ongoingUploads','File','resourceStateChanged','getPendingContextItems','420MowMpg','fetchDocument','find','url','ai-chat-document-upload-failed','has','getData','contextItemRemoved','isReadOnly','removeSelectionFromContext','version','154DkbyYW','text/markdown','SELECTION','isSelectionInContext','end','attributes','abortController','addToConversationContext','HTML','_finishUploadOperation','uploadFile','getResources','612048FDBWxY','1762LDKgRv','populateFromMessage','filter','text/html','URL','_mapContextItemToRequestData','all','_ongoingUploadOperations','urls','_addContextOptionsState','8fJEEfI','ai-chat-resource-load-failed','FILE','ai-chat-url-upload-failed','ai-chat-source-not-found','_findSourceIdsByResourceId','_connector','ai-chat-source-resources-load-failed','length','contextItemLoadingEnded','addFilesToContext','object\x20with\x20content\x20and\x20type\x20properties','push','getId','uploadUrl','_setAddContextOptionsDefaultState','_convertTextResourceToFile','addUrlToContext','uiId','136953NQIKeR','forEach','enabled','files','_config','isHidden','isInContext','_updateResourceInContextState','data','init','_removeContextItem','get','_ownerId','resourceId','getDocument','sourceResourcesLoaded','current-document','addResourceToContext','message','TEXT','size','label','contextSent','fire','stack','from','ai-chat-context-unsupported-type','_getCustomSourcesInitialState','removeFromContext','addContextOptionsChanged','contextItemAdded','454112tGrqwz','addSelectionToContext','content','MARKDOWN','ai-chat-file-upload-failed','start','isCurrentDocumentInContext','selection','uploadProgressChanged','_createContextItemFromContent','DOCUMENT','ai-chat-resource-no-data','addCurrentDocumentToContext','527706AxvZbt','delete','text/plain','mapContextItemsToRequestData','3545tRLZMt','_toggleAddCurrentDocumentOptionVisibility','files-','_pendingContextItems','2084FqzQUT','name','isCurrentDocumentInConversation','map','_conversationContextItems','error','resources','sessionId','startsWith','hidden','ai-chat-context-invalid-data','_addContextItem','loadSourceResources'];_0x391d=function(){return _0x264333;};return _0x391d();}(function(_0x19582e,_0x41e6ab){const _0x3208a4=_0x8c08,_0x5780a9=_0x19582e();while(!![]){try{const _0x3a7a7d=-parseInt(_0x3208a4(0xd6))/0x1+-parseInt(_0x3208a4(0x9a))/0x2*(-parseInt(_0x3208a4(0x112))/0x3)+-parseInt(_0x3208a4(0xeb))/0x4*(parseInt(_0x3208a4(0xe7))/0x5)+parseInt(_0x3208a4(0xe3))/0x6+parseInt(_0x3208a4(0xfe))/0x7*(parseInt(_0x3208a4(0xa4))/0x8)+-parseInt(_0x3208a4(0xb7))/0x9*(-parseInt(_0x3208a4(0xfc))/0xa)+-parseInt(_0x3208a4(0x8d))/0xb*(-parseInt(_0x3208a4(0x99))/0xc);if(_0x3a7a7d===_0x41e6ab)break;else _0x5780a9['push'](_0x5780a9['shift']());}catch(_0x388b56){_0x5780a9['push'](_0x5780a9['shift']());}}}(_0x391d,0x651bb));import{CKEditorError as _0x253b2f,ObservableMixin as _0x11f21a,uid as _0x1e8a68}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x5c271b,AIContextTextResourceType as _0x3ea9f8}from'../../aicore/model/aicontext.js';import{escape as _0x2348be}from'es-toolkit/compat';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0xf1cea4(0xd5),_0xf1cea4(0x89),_0xf1cea4(0xad),_0xf1cea4(0xcd),_0xf1cea4(0xf0),_0xf1cea4(0xd4),_0xf1cea4(0xc6),_0xf1cea4(0x110),_0xf1cea4(0xde)];function _0x8c08(_0xd658d3,_0x2d6a68){const _0x391d5a=_0x391d();return _0x8c08=function(_0x8c089,_0x4a523a){_0x8c089=_0x8c089-0x87;let _0x19ec72=_0x391d5a[_0x8c089];return _0x19ec72;},_0x8c08(_0xd658d3,_0x2d6a68);}export class AIChatContext extends _0x11f21a(){[_0xf1cea4(0xaa)];[_0xf1cea4(0xbb)];[_0xf1cea4(0xc3)];constructor({connector:_0x568fc4,config:_0x462133,ownerId:_0x13c3af}){const _0x1218e2=_0xf1cea4;super(),this[_0x1218e2(0xaa)]=_0x568fc4,this[_0x1218e2(0xbb)]=_0x462133,this[_0x1218e2(0xc3)]=_0x13c3af;}[_0xf1cea4(0xc0)](){const _0x4f4d2e=_0xf1cea4;this[_0x4f4d2e(0xea)]=new Map(),this[_0x4f4d2e(0xef)]=new Map(),this[_0x4f4d2e(0x10e)]=new Map(),this[_0x4f4d2e(0xa1)]=new Map(),this[_0x4f4d2e(0xb3)]();}[_0xf1cea4(0x111)](){const _0x1a2c69=_0xf1cea4;return this[_0x1a2c69(0xea)];}async[_0xf1cea4(0x9b)](_0x25d527){const _0x2a6ca4=_0xf1cea4,_0x4dca58=await this[_0x2a6ca4(0xdf)](_0x25d527);return this[_0x2a6ca4(0xf8)](_0x4dca58),_0x2a6ca4(0xc7)===_0x4dca58[_0x2a6ca4(0xb6)]&&this[_0x2a6ca4(0xe8)](),_0x4dca58;}async[_0xf1cea4(0xdf)](_0x3de4e7){const _0x5c70b8=_0xf1cea4;if(_0x3de4e7[_0x5c70b8(0x106)]===_0x5c271b[_0x5c70b8(0xe0)]){const _0x1fd5f8=await this[_0x5c70b8(0xaa)][_0x5c70b8(0x113)](this[_0x5c70b8(0xc3)],_0x3de4e7['id'])[_0x5c70b8(0xc5)]();return{'id':_0x5c70b8(0xc7),'uiId':_0x5c70b8(0xc7),'label':_0x5c70b8(0x10d),'type':_0x3de4e7[_0x5c70b8(0x106)],'content':_0x1fd5f8[_0x5c70b8(0xd8)],'hidden':this[_0x5c70b8(0xef)][_0x5c70b8(0x87)](_0x5c70b8(0xc7)),'version':_0x1fd5f8[_0x5c70b8(0x92)]?.[_0x5c70b8(0x8c)],'sessionId':_0x1fd5f8[_0x5c70b8(0x92)]?.[_0x5c70b8(0xf2)]};}return{'id':_0x3de4e7['id'],'uiId':_0x3de4e7['id'],'label':_0x3de4e7[_0x5c70b8(0x92)]?.[_0x5c70b8(0xcc)]||_0x3de4e7[_0x5c70b8(0xec)]||_0x3de4e7[_0x5c70b8(0x115)]||_0x3de4e7['id'],'type':_0x3de4e7[_0x5c70b8(0x106)],..._0x3de4e7?.[_0x5c70b8(0x92)]?.[_0x5c70b8(0xc4)]?{'resourceId':_0x3de4e7[_0x5c70b8(0x92)]?.[_0x5c70b8(0xc4)]}:{}};}[_0xf1cea4(0x103)](){const _0x188325=_0xf1cea4;return new Map(this[_0x188325(0xef)]);}[_0xf1cea4(0xd3)](_0x2cbf9f){const _0x34c44c=_0xf1cea4,_0x4ad2e5=this[_0x34c44c(0xea)][_0x34c44c(0xc2)](_0x2cbf9f);_0x4ad2e5?.[_0x34c44c(0x8a)]||this[_0x34c44c(0xc1)](_0x2cbf9f);}[_0xf1cea4(0x100)](){const _0x95ebb7=_0xf1cea4;if(0x0===this[_0x95ebb7(0xea)][_0x95ebb7(0xcb)])return;for(const _0x55be0d of this[_0x95ebb7(0xea)][_0x95ebb7(0x109)]())this[_0x95ebb7(0xc1)](_0x55be0d[_0x95ebb7(0xb6)]);const _0x1c0919=this[_0x95ebb7(0xef)][_0x95ebb7(0xc2)](_0x95ebb7(0xc7))||this[_0x95ebb7(0xea)][_0x95ebb7(0xc2)](_0x95ebb7(0xc7));_0x1c0919&&this[_0x95ebb7(0xf6)]({..._0x1c0919,'isReadOnly':!0x0,'hidden':!0x0});}[_0xf1cea4(0x94)](_0xa892e7){const _0x2bc3f5=_0xf1cea4;for(const _0x13d14f of _0xa892e7[_0x2bc3f5(0x109)]())this[_0x2bc3f5(0xf8)](_0x13d14f);this[_0x2bc3f5(0x100)](),this[_0x2bc3f5(0xce)](_0x2bc3f5(0xcd),{'contextItems':Array[_0x2bc3f5(0xd0)](this[_0x2bc3f5(0x103)]()[_0x2bc3f5(0x109)]())});}[_0xf1cea4(0xdc)](){const _0x25fb38=_0xf1cea4;return this[_0x25fb38(0xea)][_0x25fb38(0x87)](_0x25fb38(0xc7));}[_0xf1cea4(0x90)](){const _0x410729=_0xf1cea4;return this[_0x410729(0xea)][_0x410729(0x87)](_0x410729(0xdd));}[_0xf1cea4(0xed)](){const _0xce811a=_0xf1cea4;return this[_0xce811a(0xef)][_0xce811a(0x87)](_0xce811a(0xc7));}static[_0xf1cea4(0xe6)](_0x3a1062){const _0x8dc65=_0xf1cea4;return Array[_0x8dc65(0xd0)](_0x3a1062[_0x8dc65(0x109)]())[_0x8dc65(0xee)](_0x16a6b6=>this[_0x8dc65(0x9f)](_0x16a6b6))[_0x8dc65(0x9c)](_0x6c5eac=>null!==_0x6c5eac);}async[_0xf1cea4(0xae)](_0x24e545,_0x2d990b,_0x41a541=_0x5c271b[_0xf1cea4(0xa6)]){const _0xf612e1=_0xf1cea4,_0x3609c5=_0xf612e1(0xe9)+_0x1e8a68();this[_0xf612e1(0xfb)](_0x3609c5);try{await Promise[_0xf612e1(0xa0)](_0x24e545[_0xf612e1(0xee)](async _0x4db0a1=>{const _0x538e41=_0xf612e1,_0x3499c1=_0x538e41(0xfd)+_0x1e8a68(),_0x1c9a37=_0x2348be(_0x4db0a1[_0x538e41(0xec)]);try{this[_0x538e41(0xf6)]({'type':_0x41a541,'label':_0x2d990b?.[_0x538e41(0xcc)]||_0x1c9a37,'uiId':_0x3499c1,'resourceId':_0x2d990b?.[_0x538e41(0xc4)]},!0x0);const _0xfcc24a=this[_0x538e41(0xaa)][_0x538e41(0x97)](this[_0x538e41(0xc3)],_0x4db0a1,_0x2d990b);this[_0x538e41(0x10e)][_0x538e41(0x10a)](_0x3499c1,_0xfcc24a[_0x538e41(0x93)]);const {id:_0x1196c1}=await _0xfcc24a[_0x538e41(0xb1)]();this[_0x538e41(0x10e)][_0x538e41(0xe4)](_0x3499c1),this[_0x538e41(0x108)]({'type':_0x41a541,'id':_0x1196c1,'label':_0x2d990b?.[_0x538e41(0xcc)]||_0x1c9a37,'uiId':_0x3499c1,'resourceId':_0x2d990b?.[_0x538e41(0xc4)]},!0x1);}catch(_0x18b8b1){this[_0x538e41(0x10e)][_0x538e41(0xe4)](_0x3499c1);if(!_0x18b8b1[_0x538e41(0xc9)][_0x538e41(0xf3)](_0x538e41(0x101))){const _0xd6f4de=new _0x253b2f(_0x538e41(0xda),null,{'fileName':_0x1c9a37});_0xd6f4de[_0x538e41(0xcf)]=_0x18b8b1[_0x538e41(0xcf)],this[_0x538e41(0xce)](_0x538e41(0xf0),{'error':_0xd6f4de,'fileName':_0x1c9a37});}this[_0x538e41(0xc1)](_0x3499c1);}}));}finally{this[_0xf612e1(0x96)](_0x3609c5);}}[_0xf1cea4(0xe2)](_0x19ff4c){const _0x374aa6=_0xf1cea4;if(this[_0x374aa6(0xdc)]())return;const _0x2d68ee={'type':_0x5c271b[_0x374aa6(0xe0)],'uiId':_0x374aa6(0xc7),'label':_0x19ff4c,'isReadOnly':this[_0x374aa6(0xef)][_0x374aa6(0x87)](_0x374aa6(0xc7)),'hidden':this[_0x374aa6(0xef)][_0x374aa6(0x87)](_0x374aa6(0xc7))};this[_0x374aa6(0xf6)](_0x2d68ee);}async[_0xf1cea4(0x10b)](_0x23e0c3,_0x2a2883,_0x507b27,_0x1e4831){const _0x2b2d48=_0xf1cea4,_0x2ba4e8=this[_0x2b2d48(0xea)][_0x2b2d48(0xc2)](_0x2b2d48(0xc7));if(_0x2ba4e8&&_0x23e0c3){_0x2ba4e8[_0x2b2d48(0xdd)]=_0x1e4831?_0x1e4831[_0x2b2d48(0xee)](_0x54d0b4=>({'start':_0x54d0b4[_0x2b2d48(0xdb)],'end':_0x54d0b4[_0x2b2d48(0x91)]})):[];try{if(_0x2ba4e8[_0x2b2d48(0x8c)]===_0x2a2883)return;const {id:_0x2e3017}=await this[_0x2b2d48(0xaa)][_0x2b2d48(0xfa)](this[_0x2b2d48(0xc3)],_0x23e0c3,{'version':_0x2a2883,'sessionId':_0x507b27})[_0x2b2d48(0xb1)]();_0x2ba4e8['id']=_0x2e3017,_0x2ba4e8[_0x2b2d48(0xd8)]=_0x23e0c3,_0x2ba4e8[_0x2b2d48(0x8c)]=_0x2a2883,_0x2ba4e8[_0x2b2d48(0xf2)]=_0x507b27;}catch(_0x27fb58){const _0x32fe7b=new _0x253b2f(_0x2b2d48(0x116),null);_0x32fe7b[_0x2b2d48(0xcf)]=_0x27fb58[_0x2b2d48(0xcf)],this[_0x2b2d48(0xce)](_0x2b2d48(0xf0),{'error':_0x32fe7b});}}}[_0xf1cea4(0xd7)](_0x4878f1){const _0x125525=_0xf1cea4;this[_0x125525(0xf6)]({'type':_0x5c271b[_0x125525(0x8f)],'label':_0x4878f1,'uiId':_0x125525(0xdd),'content':_0x4878f1});}[_0xf1cea4(0x8b)](){const _0x6b4e53=_0xf1cea4;this[_0x6b4e53(0xc1)](_0x6b4e53(0xdd));}async[_0xf1cea4(0xb5)](_0x1d35ff,_0x9ba5ac){const _0x426d97=_0xf1cea4,_0x596676=_0x426d97(0xff)+_0x1e8a68();this[_0x426d97(0xfb)](_0x596676);const _0x5d010d=_0x426d97(0xff)+_0x1e8a68();try{this[_0x426d97(0xf6)]({'type':_0x5c271b[_0x426d97(0x9e)],'label':_0x9ba5ac?.[_0x426d97(0xcc)]||_0x1d35ff,'uiId':_0x5d010d,'resourceId':_0x9ba5ac?.[_0x426d97(0xc4)]},!0x0);const _0x15402a=this[_0x426d97(0xaa)][_0x426d97(0xb2)](this[_0x426d97(0xc3)],_0x1d35ff,_0x9ba5ac);this[_0x426d97(0x10e)][_0x426d97(0x10a)](_0x5d010d,_0x15402a[_0x426d97(0x93)]);const {id:_0x490f3d}=await _0x15402a[_0x426d97(0xb1)]();this[_0x426d97(0x10e)][_0x426d97(0xe4)](_0x5d010d),this[_0x426d97(0x108)]({'type':_0x5c271b[_0x426d97(0x9e)],'id':_0x490f3d,'label':_0x9ba5ac?.[_0x426d97(0xcc)]||_0x1d35ff,'uiId':_0x5d010d,'resourceId':_0x9ba5ac?.[_0x426d97(0xc4)]},!0x1);}catch(_0x2f833e){this[_0x426d97(0x10e)][_0x426d97(0xe4)](_0x5d010d),(_0x2f833e[_0x426d97(0xc9)][_0x426d97(0xf3)](_0x426d97(0x101))||this[_0x426d97(0xce)](_0x426d97(0xf0),{'error':new _0x253b2f(_0x426d97(0xa7),this,{'url':_0x1d35ff,'originalError':_0x2f833e}),'url':_0x1d35ff}),this[_0x426d97(0xc1)](_0x5d010d));}finally{this[_0x426d97(0x96)](_0x596676);}}async[_0xf1cea4(0xf7)](_0x297e28,_0x9e4ee2,_0x3b9ac6){const _0x3feba8=_0xf1cea4,_0x1e76fb=this[_0x3feba8(0xa3)][_0x3feba8(0xf9)][_0x3feba8(0x114)](_0x7e094d=>_0x7e094d['id']===_0x297e28);if(!_0x1e76fb)return this[_0x3feba8(0xce)](_0x3feba8(0xf0),{'error':new _0x253b2f(_0x3feba8(0xa8),this,{'sourceId':_0x297e28}),'sourceId':_0x297e28}),[];try{const _0x102458=(await _0x1e76fb[_0x3feba8(0x98)](_0x9e4ee2))[_0x3feba8(0xee)](_0x42d35c=>{const _0x4a7b92=_0x3feba8,_0x2a7f48=this[_0x4a7b92(0x102)](_0x42d35c['id']);return{..._0x42d35c,'isInContext':_0x2a7f48};});return _0x1e76fb[_0x3feba8(0xf1)]=_0x102458,this[_0x3feba8(0xce)](_0x3feba8(0xc6),{'sourceId':_0x297e28,'source':_0x1e76fb,'resources':_0x102458,'uid':_0x3b9ac6}),_0x102458;}catch(_0x1d332a){return this[_0x3feba8(0xce)](_0x3feba8(0xf0),{'error':new _0x253b2f(_0x3feba8(0xab),this,{'sourceId':_0x297e28,'originalError':_0x1d332a}),'sourceId':_0x297e28,'sourceLabel':_0x1e76fb[_0x3feba8(0xcc)]}),[];}}async[_0xf1cea4(0xc8)](_0x263e13,_0x26c0d9){const _0x507d61=_0xf1cea4;if(this[_0x507d61(0x102)](_0x26c0d9['id']))return;let _0x2d1701=_0x26c0d9[_0x507d61(0xbf)];if(!_0x2d1701&&_0x263e13[_0x507d61(0x88)])try{_0x2d1701=await _0x263e13[_0x507d61(0x88)](_0x26c0d9['id']);}catch(_0xe18cfa){return void this[_0x507d61(0xce)](_0x507d61(0xf0),{'error':new _0x253b2f(_0x507d61(0xa5),this,{'resourceId':_0x26c0d9['id'],'sourceId':_0x263e13['id'],'originalError':_0xe18cfa}),'resourceId':_0x26c0d9['id'],'sourceId':_0x263e13['id']});}if(_0x2d1701)switch(_0x26c0d9[_0x507d61(0x106)]){case _0x5c271b[_0x507d61(0x9e)]:if(_0x507d61(0x105)!=typeof _0x2d1701)return void this[_0x507d61(0xce)](_0x507d61(0xf0),{'error':new _0x253b2f(_0x507d61(0xf5),this,{'resourceId':_0x26c0d9['id'],'sourceId':_0x263e13['id'],'expectedType':_0x507d61(0x105),'actualType':typeof _0x2d1701}),'resourceId':_0x26c0d9['id'],'sourceId':_0x263e13['id']});await this[_0x507d61(0xb5)](_0x2d1701,{'label':_0x26c0d9[_0x507d61(0xcc)],'resourceId':_0x26c0d9['id']});break;case _0x5c271b[_0x507d61(0xa6)]:if(!(_0x2d1701 instanceof File))return void this[_0x507d61(0xce)](_0x507d61(0xf0),{'error':new _0x253b2f(_0x507d61(0xf5),this,{'resourceId':_0x26c0d9['id'],'sourceId':_0x263e13['id'],'expectedType':_0x507d61(0x10f),'actualType':typeof _0x2d1701}),'resourceId':_0x26c0d9['id'],'sourceId':_0x263e13['id']});await this[_0x507d61(0xae)]([_0x2d1701],{'label':_0x26c0d9[_0x507d61(0xcc)],'resourceId':_0x26c0d9['id']});break;case _0x5c271b[_0x507d61(0xca)]:if(_0x507d61(0x10c)!=typeof _0x2d1701||!(_0x507d61(0xd8)in _0x2d1701)||!(_0x507d61(0x106)in _0x2d1701))return void this[_0x507d61(0xce)](_0x507d61(0xf0),{'error':new _0x253b2f(_0x507d61(0xf5),this,{'resourceId':_0x26c0d9['id'],'sourceId':_0x263e13['id'],'expectedType':_0x507d61(0xaf),'actualType':typeof _0x2d1701}),'resourceId':_0x26c0d9['id'],'sourceId':_0x263e13['id']});_0x2d1701=AIChatContext[_0x507d61(0xb4)](_0x2d1701,_0x26c0d9[_0x507d61(0xcc)]),await this[_0x507d61(0xae)]([_0x2d1701],{'label':_0x26c0d9[_0x507d61(0xcc)],'resourceId':_0x26c0d9['id']},_0x5c271b[_0x507d61(0xca)]);break;default:this[_0x507d61(0xce)](_0x507d61(0xf0),{'error':new _0x253b2f(_0x507d61(0xd1),this,{'resourceId':_0x26c0d9['id'],'sourceId':_0x263e13['id'],'resourceType':_0x26c0d9[_0x507d61(0x106)]}),'resourceId':_0x26c0d9['id'],'sourceId':_0x263e13['id']});}else this[_0x507d61(0xce)](_0x507d61(0xf0),{'error':new _0x253b2f(_0x507d61(0xe1),this,{'resourceId':_0x26c0d9['id'],'sourceId':_0x263e13['id']}),'resourceId':_0x26c0d9['id'],'sourceId':_0x263e13['id']});}static[_0xf1cea4(0xb4)](_0x2852a6,_0x49d31a){const _0x46dfaf=_0xf1cea4;switch(_0x2852a6[_0x46dfaf(0x106)]){case _0x3ea9f8[_0x46dfaf(0xd9)]:return new File([_0x2852a6[_0x46dfaf(0xd8)]],_0x49d31a,{'type':_0x46dfaf(0x8e)});case _0x3ea9f8[_0x46dfaf(0x95)]:return new File([_0x2852a6[_0x46dfaf(0xd8)]],_0x49d31a,{'type':_0x46dfaf(0x9d)});default:return new File([_0x2852a6[_0x46dfaf(0xd8)]],_0x49d31a,{'type':_0x46dfaf(0xe5)});}}static[_0xf1cea4(0x9f)](_0x57cf10){const _0x744deb=_0xf1cea4;switch(_0x57cf10[_0x744deb(0x106)]){case _0x5c271b[_0x744deb(0xa6)]:return{'type':_0x5c271b[_0x744deb(0xa6)],'id':_0x57cf10['id']};case _0x5c271b[_0x744deb(0x9e)]:return{'type':_0x5c271b[_0x744deb(0x9e)],'id':_0x57cf10['id']};case _0x5c271b[_0x744deb(0xe0)]:return{'type':_0x5c271b[_0x744deb(0xe0)],'id':_0x57cf10['id'],..._0x57cf10[_0x744deb(0xdd)]?.[_0x744deb(0xac)]&&{'selection':_0x57cf10[_0x744deb(0xdd)]}};case _0x5c271b[_0x744deb(0xca)]:return{'type':_0x5c271b[_0x744deb(0xa6)],'id':_0x57cf10['id']};default:return null;}}[_0xf1cea4(0xf6)](_0x454276,_0x1ebfbd=!0x1){const _0x44a990=_0xf1cea4;if(this[_0x44a990(0xea)][_0x44a990(0x10a)](_0x454276[_0x44a990(0xb6)],_0x454276),_0x454276[_0x44a990(0xf4)]||this[_0x44a990(0xce)](_0x44a990(0xd5),{'contextItem':_0x454276,'isLoading':_0x1ebfbd}),_0x44a990(0xc7)===_0x454276[_0x44a990(0xb6)]&&this[_0x44a990(0xe8)](),_0x454276[_0x44a990(0xc4)]){const _0x46bb87=this[_0x44a990(0xa9)](_0x454276[_0x44a990(0xc4)]);_0x46bb87&&_0x46bb87[_0x44a990(0xb8)](_0x17c9a5=>{const _0xcb3974=_0x44a990;this[_0xcb3974(0xbe)](_0x17c9a5,_0x454276[_0xcb3974(0xc4)],!0x0);});}}[_0xf1cea4(0xc1)](_0x37dc3c){const _0xe26fcf=_0xf1cea4,_0x59152d=this[_0xe26fcf(0xea)][_0xe26fcf(0xc2)](_0x37dc3c),_0x2d210c=this[_0xe26fcf(0x10e)][_0xe26fcf(0xc2)](_0x37dc3c);if(_0x2d210c&&(_0x2d210c[_0xe26fcf(0x104)](),this[_0xe26fcf(0x10e)][_0xe26fcf(0xe4)](_0x37dc3c)),_0x59152d?.[_0xe26fcf(0xc4)]){const _0x237aff=this[_0xe26fcf(0xa9)](_0x59152d[_0xe26fcf(0xc4)]);_0x237aff&&_0x237aff[_0xe26fcf(0xb8)](_0x24acaa=>{const _0x1b4d75=_0xe26fcf;this[_0x1b4d75(0xbe)](_0x24acaa,_0x59152d[_0x1b4d75(0xc4)],!0x1);});}this[_0xe26fcf(0xea)][_0xe26fcf(0xe4)](_0x37dc3c),this[_0xe26fcf(0xce)](_0xe26fcf(0x89),{'uiId':_0x37dc3c,'type':_0x59152d?.[_0xe26fcf(0x106)]}),_0xe26fcf(0xc7)===_0x37dc3c&&this[_0xe26fcf(0xe8)]();}[_0xf1cea4(0x108)](_0x24f58d,_0x55efbf){const _0xde28db=_0xf1cea4;if(this[_0xde28db(0xea)][_0xde28db(0x87)](_0x24f58d[_0xde28db(0xb6)])&&(this[_0xde28db(0xea)][_0xde28db(0x10a)](_0x24f58d[_0xde28db(0xb6)],_0x24f58d),this[_0xde28db(0xce)](_0xde28db(0xad),{'contextItem':_0x24f58d,'isLoading':_0x55efbf}),_0x24f58d[_0xde28db(0xc4)])){const _0xb80605=this[_0xde28db(0xa9)](_0x24f58d[_0xde28db(0xc4)]);_0xb80605&&_0xb80605[_0xde28db(0xb8)](_0x34839d=>{const _0x418968=_0xde28db;this[_0x418968(0xbe)](_0x34839d,_0x24f58d[_0x418968(0xc4)],!0x0);});}}[_0xf1cea4(0xf8)](_0x211f2f){const _0x3a1231=_0xf1cea4;this[_0x3a1231(0xef)][_0x3a1231(0x10a)](_0x211f2f[_0x3a1231(0xb6)],_0x211f2f);}[_0xf1cea4(0xb3)](){const _0x1cfe25=_0xf1cea4;this[_0x1cfe25(0xa3)]={'document':{'enabled':!0x1!==this[_0x1cfe25(0xbb)]?.[_0x1cfe25(0x107)]?.[_0x1cfe25(0xb9)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x1cfe25(0xbb)]?.[_0x1cfe25(0xa2)]?.[_0x1cfe25(0xb9)]},'files':{'enabled':!0x1!==this[_0x1cfe25(0xbb)]?.[_0x1cfe25(0xba)]?.[_0x1cfe25(0xb9)]},'sources':this[_0x1cfe25(0xd2)]()},this[_0x1cfe25(0xce)](_0x1cfe25(0xd4),{'options':this[_0x1cfe25(0xa3)]});}[_0xf1cea4(0xd2)](){const _0xbf290f=_0xf1cea4;return this[_0xbf290f(0xbb)]?.[_0xbf290f(0xf9)]?.[_0xbf290f(0xee)](_0x13b3d9=>({..._0x13b3d9,'resources':[]}))??[];}[_0xf1cea4(0xe8)](){const _0x42f9a0=_0xf1cea4,_0x5bca29=this[_0x42f9a0(0xdc)]()||this[_0x42f9a0(0xed)]();this[_0x42f9a0(0xa3)][_0x42f9a0(0x107)][_0x42f9a0(0xbc)]=_0x5bca29,this[_0x42f9a0(0xce)](_0x42f9a0(0xd4),{'options':this[_0x42f9a0(0xa3)]});}[_0xf1cea4(0x102)](_0x3958ff){const _0x5bff54=_0xf1cea4;for(const _0xfe5a73 of this[_0x5bff54(0xea)][_0x5bff54(0x109)]())if(_0xfe5a73[_0x5bff54(0xc4)]===_0x3958ff)return!0x0;for(const _0x1c6e52 of this[_0x5bff54(0xef)][_0x5bff54(0x109)]())if(_0x1c6e52[_0x5bff54(0xc4)]===_0x3958ff)return!0x0;return!0x1;}[_0xf1cea4(0xa9)](_0x48c081){const _0xdaf701=_0xf1cea4,_0x12af7c=[];for(const _0x4e1df of this[_0xdaf701(0xa3)][_0xdaf701(0xf9)]){_0x4e1df[_0xdaf701(0xf1)][_0xdaf701(0x114)](_0xb7d9f=>_0xb7d9f['id']===_0x48c081)&&_0x12af7c[_0xdaf701(0xb0)](_0x4e1df['id']);}return 0x0===_0x12af7c[_0xdaf701(0xac)]?null:_0x12af7c;}[_0xf1cea4(0xbe)](_0x2e8583,_0x6a22dd,_0x2428e1){const _0x47368f=_0xf1cea4,_0x26f1e1=this[_0x47368f(0xa3)][_0x47368f(0xf9)][_0x47368f(0x114)](_0x48df8a=>_0x48df8a['id']===_0x2e8583);if(!_0x26f1e1)return;const _0x7f8281=_0x26f1e1[_0x47368f(0xf1)][_0x47368f(0x114)](_0x3c3142=>_0x3c3142['id']===_0x6a22dd);_0x7f8281&&(_0x7f8281[_0x47368f(0xbd)]=_0x2428e1,this[_0x47368f(0xce)](_0x47368f(0x110),{'sourceId':_0x2e8583,'resourceId':_0x6a22dd,'isInContext':_0x2428e1}));}[_0xf1cea4(0xfb)](_0x222ca5){const _0x504db7=_0xf1cea4;this[_0x504db7(0xa1)][_0x504db7(0x10a)](_0x222ca5,!0x0),this[_0x504db7(0xa1)][_0x504db7(0xcb)]&&this[_0x504db7(0xce)](_0x504db7(0xde),{'isUploadInProgress':!0x0});}[_0xf1cea4(0x96)](_0x44c490){const _0x2218cc=_0xf1cea4;this[_0x2218cc(0xa1)][_0x2218cc(0xe4)](_0x44c490),0x0===this[_0x2218cc(0xa1)][_0x2218cc(0xcb)]&&this[_0x2218cc(0xce)](_0x2218cc(0xde),{'isUploadInProgress':!0x1});}}
|
|
23
|
+
const _0x20f763=_0xdd66;(function(_0x125a9d,_0x232b69){const _0xfe7315=_0xdd66,_0x4bc08d=_0x125a9d();while(!![]){try{const _0x52c3ff=-parseInt(_0xfe7315(0x20b))/0x1*(-parseInt(_0xfe7315(0x21c))/0x2)+-parseInt(_0xfe7315(0x21b))/0x3*(parseInt(_0xfe7315(0x1ca))/0x4)+parseInt(_0xfe7315(0x1f6))/0x5*(-parseInt(_0xfe7315(0x1df))/0x6)+parseInt(_0xfe7315(0x1aa))/0x7*(parseInt(_0xfe7315(0x1a6))/0x8)+-parseInt(_0xfe7315(0x1cd))/0x9+parseInt(_0xfe7315(0x215))/0xa+parseInt(_0xfe7315(0x1a5))/0xb*(parseInt(_0xfe7315(0x1bd))/0xc);if(_0x52c3ff===_0x232b69)break;else _0x4bc08d['push'](_0x4bc08d['shift']());}catch(_0x5151b4){_0x4bc08d['push'](_0x4bc08d['shift']());}}}(_0x3608,0xa502b));function _0xdd66(_0x4974c1,_0x2d5e7b){const _0x3608a3=_0x3608();return _0xdd66=function(_0xdd66c6,_0xbad6c2){_0xdd66c6=_0xdd66c6-0x192;let _0x42d478=_0x3608a3[_0xdd66c6];return _0x42d478;},_0xdd66(_0x4974c1,_0x2d5e7b);}import{CKEditorError as _0x4e2aee,ObservableMixin as _0x36deb1,uid as _0x216130}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x76a394,AIContextTextResourceType as _0x175f0d}from'../../aicore/model/aicontext.js';import{escape as _0x492ac8}from'es-toolkit/compat';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x20f763(0x20c),_0x20f763(0x207),_0x20f763(0x209),_0x20f763(0x1c9),_0x20f763(0x1c0),_0x20f763(0x1d4),_0x20f763(0x1a3),_0x20f763(0x1b7),_0x20f763(0x1e6)];function _0x3608(){const _0x303a11=['isReadOnly','contextSent','8MlMLzz','addCurrentDocumentToContext','updateCurrentDocument','12058074cerEPR','_finishUploadOperation','isInContext','start','files','file-','document','addContextOptionsChanged','getPendingContextItems','abort','length','text/markdown','find','name','uploadFile','_config','filter','getSentContextItems','6942828OnqBXp','fetchDocument','string','_toggleAddCurrentDocumentOptionVisibility','addUrlToContext','removeFromContext','_addContextOptionsState','uploadProgressChanged','_startUploadOperation','_ongoingUploads','addToConversationContext','_removeContextItem','urls','text/plain','push','getId','object','_getCustomSourcesInitialState','getResources','FILE','map','url','_updateResourceInContextState','5JyNiYU','URL','data','_ongoingUploadOperations','size','getData','_finishContextItemLoading','values','isCurrentDocumentInContext','isHidden','uploadUrl','Current\x20document','hidden','resourceId','addResourceToContext','ai-chat-source-not-found','ai-chat-context-invalid-data','contextItemRemoved','resources','contextItemLoadingEnded','addFilesToContext','48249GnypHM','contextItemAdded','files-','forEach','clearPendingContextItems','get','_setAddContextOptionsDefaultState','url-','enabled','isCurrentDocumentInConversation','10962220gUOAzh','sources','init','end','addSelectionToContext','ai-request-aborted','1562262fizeUo','22nZJRDd','uploadDocument','populateFromMessage','TEXT','MARKDOWN','_ownerId','ai-chat-document-upload-failed','abortController','DOCUMENT','removeSelectionFromContext','content','ai-chat-source-resources-load-failed','ai-chat-resource-load-failed','selection','_pendingContextItems','uiId','attributes','_addContextItem','startsWith','_findSourceIdsByResourceId','object\x20with\x20content\x20and\x20type\x20properties','current-document','ai-chat-url-upload-failed','sourceResourcesLoaded','SELECTION','21632897pyguOC','8KnXPLJ','type','text/html','has','4345089owQPhU','_conversationContextItems','_createContextItemFromContent','from','sessionId','_addToConversationContextItem','stack','isSelectionInContext','_isResourceInContext','set','_connector','message','label','resourceStateChanged','_convertTextResourceToFile','all','ai-chat-resource-no-data','delete','getDocument','12npdNKv','mapContextItemsToRequestData','HTML','error','loadSourceResources','version','ai-chat-file-upload-failed','_mapContextItemToRequestData','ai-chat-context-unsupported-type','File','fire'];_0x3608=function(){return _0x303a11;};return _0x3608();}export class AIChatContext extends _0x36deb1(){[_0x20f763(0x1b4)];[_0x20f763(0x1dc)];[_0x20f763(0x221)];constructor({connector:_0x1c9df1,config:_0x4fec29,ownerId:_0x368d9f}){const _0x1f6487=_0x20f763;super(),this[_0x1f6487(0x1b4)]=_0x1c9df1,this[_0x1f6487(0x1dc)]=_0x4fec29,this[_0x1f6487(0x221)]=_0x368d9f;}[_0x20f763(0x217)](){const _0x24f335=_0x20f763;this[_0x24f335(0x19a)]=new Map(),this[_0x24f335(0x1ab)]=new Map(),this[_0x24f335(0x1e8)]=new Map(),this[_0x24f335(0x1f9)]=new Map(),this[_0x24f335(0x211)]();}[_0x20f763(0x1d5)](){const _0x314953=_0x20f763;return this[_0x314953(0x19a)];}async[_0x20f763(0x21e)](_0x15fabc){const _0x3845f8=_0x20f763,_0x341257=await this[_0x3845f8(0x1ac)](_0x15fabc);return this[_0x3845f8(0x1af)](_0x341257),_0x3845f8(0x1a1)===_0x341257[_0x3845f8(0x19b)]&&this[_0x3845f8(0x1e2)](),_0x341257;}async[_0x20f763(0x1ac)](_0x509ff0){const _0xb290f3=_0x20f763;if(_0x509ff0[_0xb290f3(0x1a7)]===_0x76a394[_0xb290f3(0x194)]){const _0x5a9993=await this[_0xb290f3(0x1b4)][_0xb290f3(0x1e0)](this[_0xb290f3(0x221)],_0x509ff0['id'])[_0xb290f3(0x1bc)]();return{'id':_0xb290f3(0x1a1),'uiId':_0xb290f3(0x1a1),'label':_0xb290f3(0x201),'type':_0x509ff0[_0xb290f3(0x1a7)],'content':_0x5a9993[_0xb290f3(0x196)],'hidden':this[_0xb290f3(0x1ab)][_0xb290f3(0x1a9)](_0xb290f3(0x1a1)),'version':_0x5a9993[_0xb290f3(0x19c)]?.[_0xb290f3(0x1c2)],'sessionId':_0x5a9993[_0xb290f3(0x19c)]?.[_0xb290f3(0x1ae)]};}return{'id':_0x509ff0['id'],'uiId':_0x509ff0['id'],'label':_0x509ff0[_0xb290f3(0x19c)]?.[_0xb290f3(0x1b6)]||_0x509ff0[_0xb290f3(0x1da)]||_0x509ff0[_0xb290f3(0x1f4)]||_0x509ff0['id'],'type':_0x509ff0[_0xb290f3(0x1a7)],..._0x509ff0?.[_0xb290f3(0x19c)]?.[_0xb290f3(0x203)]?{'resourceId':_0x509ff0[_0xb290f3(0x19c)]?.[_0xb290f3(0x203)]}:{}};}[_0x20f763(0x1de)](){const _0x47f563=_0x20f763;return new Map(this[_0x47f563(0x1ab)]);}[_0x20f763(0x1e4)](_0x5bcf13){const _0x5489c7=_0x20f763,_0x31ddd0=this[_0x5489c7(0x19a)][_0x5489c7(0x210)](_0x5bcf13);_0x31ddd0?.[_0x5489c7(0x1c8)]||this[_0x5489c7(0x1ea)](_0x5bcf13);}[_0x20f763(0x20f)](){const _0x298930=_0x20f763;if(0x0===this[_0x298930(0x19a)][_0x298930(0x1fa)])return;for(const _0x179099 of this[_0x298930(0x19a)][_0x298930(0x1fd)]())this[_0x298930(0x1ea)](_0x179099[_0x298930(0x19b)]);const _0x3bc52c=this[_0x298930(0x1ab)][_0x298930(0x210)](_0x298930(0x1a1))||this[_0x298930(0x19a)][_0x298930(0x210)](_0x298930(0x1a1));_0x3bc52c&&this[_0x298930(0x19d)]({..._0x3bc52c,'isReadOnly':!0x0,'hidden':!0x0});}[_0x20f763(0x1e9)](_0x4a1964){const _0x1046b8=_0x20f763;for(const _0x125004 of _0x4a1964[_0x1046b8(0x1fd)]())this[_0x1046b8(0x1af)](_0x125004);this[_0x1046b8(0x20f)](),this[_0x1046b8(0x1c7)](_0x1046b8(0x1c9),{'contextItems':Array[_0x1046b8(0x1ad)](this[_0x1046b8(0x1de)]()[_0x1046b8(0x1fd)]())});}[_0x20f763(0x1fe)](){const _0xb0bc83=_0x20f763;return this[_0xb0bc83(0x19a)][_0xb0bc83(0x1a9)](_0xb0bc83(0x1a1));}[_0x20f763(0x1b1)](){const _0x175c7d=_0x20f763;return this[_0x175c7d(0x19a)][_0x175c7d(0x1a9)](_0x175c7d(0x199));}[_0x20f763(0x214)](){const _0x439d28=_0x20f763;return this[_0x439d28(0x1ab)][_0x439d28(0x1a9)](_0x439d28(0x1a1));}static[_0x20f763(0x1be)](_0x4f5cfc){const _0x3d9790=_0x20f763;return Array[_0x3d9790(0x1ad)](_0x4f5cfc[_0x3d9790(0x1fd)]())[_0x3d9790(0x1f3)](_0x4dc6be=>this[_0x3d9790(0x1c4)](_0x4dc6be))[_0x3d9790(0x1dd)](_0x2f97fb=>null!==_0x2f97fb);}async[_0x20f763(0x20a)](_0x44abaf,_0xefb90e,_0x2c19da=_0x76a394[_0x20f763(0x1f2)]){const _0x5278ac=_0x20f763,_0x268683=_0x5278ac(0x20d)+_0x216130();this[_0x5278ac(0x1e7)](_0x268683);try{await Promise[_0x5278ac(0x1b9)](_0x44abaf[_0x5278ac(0x1f3)](async _0x74770d=>{const _0xd2fc99=_0x5278ac,_0x385534=_0xd2fc99(0x1d2)+_0x216130(),_0x1f6250=_0x492ac8(_0x74770d[_0xd2fc99(0x1da)]);try{this[_0xd2fc99(0x19d)]({'type':_0x2c19da,'label':_0xefb90e?.[_0xd2fc99(0x1b6)]||_0x1f6250,'uiId':_0x385534,'resourceId':_0xefb90e?.[_0xd2fc99(0x203)]},!0x0);const _0x5e131b=this[_0xd2fc99(0x1b4)][_0xd2fc99(0x1db)](this[_0xd2fc99(0x221)],_0x74770d,_0xefb90e);this[_0xd2fc99(0x1e8)][_0xd2fc99(0x1b3)](_0x385534,_0x5e131b[_0xd2fc99(0x193)]);const {id:_0x1fa9ba}=await _0x5e131b[_0xd2fc99(0x1ee)]();this[_0xd2fc99(0x1e8)][_0xd2fc99(0x1bb)](_0x385534),this[_0xd2fc99(0x1fc)]({'type':_0x2c19da,'id':_0x1fa9ba,'label':_0xefb90e?.[_0xd2fc99(0x1b6)]||_0x1f6250,'uiId':_0x385534,'resourceId':_0xefb90e?.[_0xd2fc99(0x203)]},!0x1);}catch(_0x2a7caf){this[_0xd2fc99(0x1e8)][_0xd2fc99(0x1bb)](_0x385534);if(!_0x2a7caf[_0xd2fc99(0x1b5)][_0xd2fc99(0x19e)](_0xd2fc99(0x21a))){const _0x5de56a=new _0x4e2aee(_0xd2fc99(0x1c3),null,{'fileName':_0x1f6250});_0x5de56a[_0xd2fc99(0x1b0)]=_0x2a7caf[_0xd2fc99(0x1b0)],this[_0xd2fc99(0x1c7)](_0xd2fc99(0x1c0),{'error':_0x5de56a,'fileName':_0x1f6250});}this[_0xd2fc99(0x1ea)](_0x385534);}}));}finally{this[_0x5278ac(0x1ce)](_0x268683);}}[_0x20f763(0x1cb)](_0x43cd40){const _0x7c690f=_0x20f763;if(this[_0x7c690f(0x1fe)]())return;const _0x5394cd={'type':_0x76a394[_0x7c690f(0x194)],'uiId':_0x7c690f(0x1a1),'label':_0x43cd40,'isReadOnly':this[_0x7c690f(0x1ab)][_0x7c690f(0x1a9)](_0x7c690f(0x1a1)),'hidden':this[_0x7c690f(0x1ab)][_0x7c690f(0x1a9)](_0x7c690f(0x1a1))};this[_0x7c690f(0x19d)](_0x5394cd);}async[_0x20f763(0x1cc)](_0x25df5e,_0x255743,_0x211035,_0x571a29){const _0x3d9e07=_0x20f763,_0x3c6e7f=this[_0x3d9e07(0x19a)][_0x3d9e07(0x210)](_0x3d9e07(0x1a1));if(_0x3c6e7f&&_0x25df5e){_0x3c6e7f[_0x3d9e07(0x199)]=_0x571a29?_0x571a29[_0x3d9e07(0x1f3)](_0x430b9a=>({'start':_0x430b9a[_0x3d9e07(0x1d0)],'end':_0x430b9a[_0x3d9e07(0x218)]})):[];try{if(_0x3c6e7f[_0x3d9e07(0x1c2)]===_0x255743)return;const {id:_0x43cab8}=await this[_0x3d9e07(0x1b4)][_0x3d9e07(0x21d)](this[_0x3d9e07(0x221)],_0x25df5e,{'version':_0x255743,'sessionId':_0x211035})[_0x3d9e07(0x1ee)]();_0x3c6e7f['id']=_0x43cab8,_0x3c6e7f[_0x3d9e07(0x196)]=_0x25df5e,_0x3c6e7f[_0x3d9e07(0x1c2)]=_0x255743,_0x3c6e7f[_0x3d9e07(0x1ae)]=_0x211035;}catch(_0x174f02){const _0x5d2cbc=new _0x4e2aee(_0x3d9e07(0x192),null);_0x5d2cbc[_0x3d9e07(0x1b0)]=_0x174f02[_0x3d9e07(0x1b0)],this[_0x3d9e07(0x1c7)](_0x3d9e07(0x1c0),{'error':_0x5d2cbc});}}}[_0x20f763(0x219)](_0x102b08){const _0x5e611d=_0x20f763;this[_0x5e611d(0x19d)]({'type':_0x76a394[_0x5e611d(0x1a4)],'label':_0x102b08,'uiId':_0x5e611d(0x199),'content':_0x102b08});}[_0x20f763(0x195)](){const _0x384fc1=_0x20f763;this[_0x384fc1(0x1ea)](_0x384fc1(0x199));}async[_0x20f763(0x1e3)](_0x5a9117,_0x5e21db){const _0x5a67c7=_0x20f763,_0x1c956f=_0x5a67c7(0x212)+_0x216130();this[_0x5a67c7(0x1e7)](_0x1c956f);const _0x59e731=_0x5a67c7(0x212)+_0x216130();try{this[_0x5a67c7(0x19d)]({'type':_0x76a394[_0x5a67c7(0x1f7)],'label':_0x5e21db?.[_0x5a67c7(0x1b6)]||_0x5a9117,'uiId':_0x59e731,'resourceId':_0x5e21db?.[_0x5a67c7(0x203)]},!0x0);const _0x10e939=this[_0x5a67c7(0x1b4)][_0x5a67c7(0x200)](this[_0x5a67c7(0x221)],_0x5a9117,_0x5e21db);this[_0x5a67c7(0x1e8)][_0x5a67c7(0x1b3)](_0x59e731,_0x10e939[_0x5a67c7(0x193)]);const {id:_0x4b9266}=await _0x10e939[_0x5a67c7(0x1ee)]();this[_0x5a67c7(0x1e8)][_0x5a67c7(0x1bb)](_0x59e731),this[_0x5a67c7(0x1fc)]({'type':_0x76a394[_0x5a67c7(0x1f7)],'id':_0x4b9266,'label':_0x5e21db?.[_0x5a67c7(0x1b6)]||_0x5a9117,'uiId':_0x59e731,'resourceId':_0x5e21db?.[_0x5a67c7(0x203)]},!0x1);}catch(_0x228724){this[_0x5a67c7(0x1e8)][_0x5a67c7(0x1bb)](_0x59e731),(_0x228724[_0x5a67c7(0x1b5)][_0x5a67c7(0x19e)](_0x5a67c7(0x21a))||this[_0x5a67c7(0x1c7)](_0x5a67c7(0x1c0),{'error':new _0x4e2aee(_0x5a67c7(0x1a2),this,{'url':_0x5a9117,'originalError':_0x228724}),'url':_0x5a9117}),this[_0x5a67c7(0x1ea)](_0x59e731));}finally{this[_0x5a67c7(0x1ce)](_0x1c956f);}}async[_0x20f763(0x1c1)](_0x4d5734,_0x446e0b,_0x4726e4){const _0x10e373=_0x20f763,_0x27fe96=this[_0x10e373(0x1e5)][_0x10e373(0x216)][_0x10e373(0x1d9)](_0x274b98=>_0x274b98['id']===_0x4d5734);if(!_0x27fe96)return this[_0x10e373(0x1c7)](_0x10e373(0x1c0),{'error':new _0x4e2aee(_0x10e373(0x205),this,{'sourceId':_0x4d5734}),'sourceId':_0x4d5734}),[];try{const _0x166905=(await _0x27fe96[_0x10e373(0x1f1)](_0x446e0b))[_0x10e373(0x1f3)](_0x17e3bc=>{const _0x45f637=_0x10e373,_0x3287bc=this[_0x45f637(0x1b2)](_0x17e3bc['id']);return{..._0x17e3bc,'isInContext':_0x3287bc};});return _0x27fe96[_0x10e373(0x208)]=_0x166905,this[_0x10e373(0x1c7)](_0x10e373(0x1a3),{'sourceId':_0x4d5734,'source':_0x27fe96,'resources':_0x166905,'uid':_0x4726e4}),_0x166905;}catch(_0x16c917){return this[_0x10e373(0x1c7)](_0x10e373(0x1c0),{'error':new _0x4e2aee(_0x10e373(0x197),this,{'sourceId':_0x4d5734,'originalError':_0x16c917}),'sourceId':_0x4d5734,'sourceLabel':_0x27fe96[_0x10e373(0x1b6)]}),[];}}async[_0x20f763(0x204)](_0x1b0b34,_0x54c9eb){const _0x24bdc9=_0x20f763;if(this[_0x24bdc9(0x1b2)](_0x54c9eb['id']))return;let _0x4e9d03=_0x54c9eb[_0x24bdc9(0x1f8)];if(!_0x4e9d03&&_0x1b0b34[_0x24bdc9(0x1fb)])try{_0x4e9d03=await _0x1b0b34[_0x24bdc9(0x1fb)](_0x54c9eb['id']);}catch(_0x2ee2a3){return void this[_0x24bdc9(0x1c7)](_0x24bdc9(0x1c0),{'error':new _0x4e2aee(_0x24bdc9(0x198),this,{'resourceId':_0x54c9eb['id'],'sourceId':_0x1b0b34['id'],'originalError':_0x2ee2a3}),'resourceId':_0x54c9eb['id'],'sourceId':_0x1b0b34['id']});}if(_0x4e9d03)switch(_0x54c9eb[_0x24bdc9(0x1a7)]){case _0x76a394[_0x24bdc9(0x1f7)]:if(_0x24bdc9(0x1e1)!=typeof _0x4e9d03)return void this[_0x24bdc9(0x1c7)](_0x24bdc9(0x1c0),{'error':new _0x4e2aee(_0x24bdc9(0x206),this,{'resourceId':_0x54c9eb['id'],'sourceId':_0x1b0b34['id'],'expectedType':_0x24bdc9(0x1e1),'actualType':typeof _0x4e9d03}),'resourceId':_0x54c9eb['id'],'sourceId':_0x1b0b34['id']});await this[_0x24bdc9(0x1e3)](_0x4e9d03,{'label':_0x54c9eb[_0x24bdc9(0x1b6)],'resourceId':_0x54c9eb['id']});break;case _0x76a394[_0x24bdc9(0x1f2)]:if(!(_0x4e9d03 instanceof File))return void this[_0x24bdc9(0x1c7)](_0x24bdc9(0x1c0),{'error':new _0x4e2aee(_0x24bdc9(0x206),this,{'resourceId':_0x54c9eb['id'],'sourceId':_0x1b0b34['id'],'expectedType':_0x24bdc9(0x1c6),'actualType':typeof _0x4e9d03}),'resourceId':_0x54c9eb['id'],'sourceId':_0x1b0b34['id']});await this[_0x24bdc9(0x20a)]([_0x4e9d03],{'label':_0x54c9eb[_0x24bdc9(0x1b6)],'resourceId':_0x54c9eb['id']});break;case _0x76a394[_0x24bdc9(0x21f)]:if(_0x24bdc9(0x1ef)!=typeof _0x4e9d03||!(_0x24bdc9(0x196)in _0x4e9d03)||!(_0x24bdc9(0x1a7)in _0x4e9d03))return void this[_0x24bdc9(0x1c7)](_0x24bdc9(0x1c0),{'error':new _0x4e2aee(_0x24bdc9(0x206),this,{'resourceId':_0x54c9eb['id'],'sourceId':_0x1b0b34['id'],'expectedType':_0x24bdc9(0x1a0),'actualType':typeof _0x4e9d03}),'resourceId':_0x54c9eb['id'],'sourceId':_0x1b0b34['id']});_0x4e9d03=AIChatContext[_0x24bdc9(0x1b8)](_0x4e9d03,_0x54c9eb[_0x24bdc9(0x1b6)]),await this[_0x24bdc9(0x20a)]([_0x4e9d03],{'label':_0x54c9eb[_0x24bdc9(0x1b6)],'resourceId':_0x54c9eb['id']},_0x76a394[_0x24bdc9(0x21f)]);break;default:this[_0x24bdc9(0x1c7)](_0x24bdc9(0x1c0),{'error':new _0x4e2aee(_0x24bdc9(0x1c5),this,{'resourceId':_0x54c9eb['id'],'sourceId':_0x1b0b34['id'],'resourceType':_0x54c9eb[_0x24bdc9(0x1a7)]}),'resourceId':_0x54c9eb['id'],'sourceId':_0x1b0b34['id']});}else this[_0x24bdc9(0x1c7)](_0x24bdc9(0x1c0),{'error':new _0x4e2aee(_0x24bdc9(0x1ba),this,{'resourceId':_0x54c9eb['id'],'sourceId':_0x1b0b34['id']}),'resourceId':_0x54c9eb['id'],'sourceId':_0x1b0b34['id']});}static[_0x20f763(0x1b8)](_0xf02425,_0x43487e){const _0xcdb80b=_0x20f763;switch(_0xf02425[_0xcdb80b(0x1a7)]){case _0x175f0d[_0xcdb80b(0x220)]:return new File([_0xf02425[_0xcdb80b(0x196)]],_0x43487e,{'type':_0xcdb80b(0x1d8)});case _0x175f0d[_0xcdb80b(0x1bf)]:return new File([_0xf02425[_0xcdb80b(0x196)]],_0x43487e,{'type':_0xcdb80b(0x1a8)});default:return new File([_0xf02425[_0xcdb80b(0x196)]],_0x43487e,{'type':_0xcdb80b(0x1ec)});}}static[_0x20f763(0x1c4)](_0x600f1c){const _0x5d6cc9=_0x20f763;switch(_0x600f1c[_0x5d6cc9(0x1a7)]){case _0x76a394[_0x5d6cc9(0x1f2)]:return{'type':_0x76a394[_0x5d6cc9(0x1f2)],'id':_0x600f1c['id']};case _0x76a394[_0x5d6cc9(0x1f7)]:return{'type':_0x76a394[_0x5d6cc9(0x1f7)],'id':_0x600f1c['id']};case _0x76a394[_0x5d6cc9(0x194)]:return{'type':_0x76a394[_0x5d6cc9(0x194)],'id':_0x600f1c['id'],..._0x600f1c[_0x5d6cc9(0x199)]?.[_0x5d6cc9(0x1d7)]&&{'selection':_0x600f1c[_0x5d6cc9(0x199)]}};case _0x76a394[_0x5d6cc9(0x21f)]:return{'type':_0x76a394[_0x5d6cc9(0x1f2)],'id':_0x600f1c['id']};default:return null;}}[_0x20f763(0x19d)](_0x4682c6,_0x423a77=!0x1){const _0x111ec2=_0x20f763;if(this[_0x111ec2(0x19a)][_0x111ec2(0x1b3)](_0x4682c6[_0x111ec2(0x19b)],_0x4682c6),_0x4682c6[_0x111ec2(0x202)]||this[_0x111ec2(0x1c7)](_0x111ec2(0x20c),{'contextItem':_0x4682c6,'isLoading':_0x423a77}),_0x111ec2(0x1a1)===_0x4682c6[_0x111ec2(0x19b)]&&this[_0x111ec2(0x1e2)](),_0x4682c6[_0x111ec2(0x203)]){const _0x5f3588=this[_0x111ec2(0x19f)](_0x4682c6[_0x111ec2(0x203)]);_0x5f3588&&_0x5f3588[_0x111ec2(0x20e)](_0x86aa10=>{const _0x212883=_0x111ec2;this[_0x212883(0x1f5)](_0x86aa10,_0x4682c6[_0x212883(0x203)],!0x0);});}}[_0x20f763(0x1ea)](_0x504920){const _0xc54fa9=_0x20f763,_0x504247=this[_0xc54fa9(0x19a)][_0xc54fa9(0x210)](_0x504920),_0x5c3426=this[_0xc54fa9(0x1e8)][_0xc54fa9(0x210)](_0x504920);if(_0x5c3426&&(_0x5c3426[_0xc54fa9(0x1d6)](),this[_0xc54fa9(0x1e8)][_0xc54fa9(0x1bb)](_0x504920)),_0x504247?.[_0xc54fa9(0x203)]){const _0x5845f9=this[_0xc54fa9(0x19f)](_0x504247[_0xc54fa9(0x203)]);_0x5845f9&&_0x5845f9[_0xc54fa9(0x20e)](_0x180369=>{const _0xa41336=_0xc54fa9;this[_0xa41336(0x1f5)](_0x180369,_0x504247[_0xa41336(0x203)],!0x1);});}this[_0xc54fa9(0x19a)][_0xc54fa9(0x1bb)](_0x504920),this[_0xc54fa9(0x1c7)](_0xc54fa9(0x207),{'uiId':_0x504920,'type':_0x504247?.[_0xc54fa9(0x1a7)]}),_0xc54fa9(0x1a1)===_0x504920&&this[_0xc54fa9(0x1e2)]();}[_0x20f763(0x1fc)](_0x19b54e,_0x5c9338){const _0x18a547=_0x20f763;if(this[_0x18a547(0x19a)][_0x18a547(0x1a9)](_0x19b54e[_0x18a547(0x19b)])&&(this[_0x18a547(0x19a)][_0x18a547(0x1b3)](_0x19b54e[_0x18a547(0x19b)],_0x19b54e),this[_0x18a547(0x1c7)](_0x18a547(0x209),{'contextItem':_0x19b54e,'isLoading':_0x5c9338}),_0x19b54e[_0x18a547(0x203)])){const _0x4e3372=this[_0x18a547(0x19f)](_0x19b54e[_0x18a547(0x203)]);_0x4e3372&&_0x4e3372[_0x18a547(0x20e)](_0x1effc8=>{const _0x367473=_0x18a547;this[_0x367473(0x1f5)](_0x1effc8,_0x19b54e[_0x367473(0x203)],!0x0);});}}[_0x20f763(0x1af)](_0x4cf319){const _0x2c5cfb=_0x20f763;this[_0x2c5cfb(0x1ab)][_0x2c5cfb(0x1b3)](_0x4cf319[_0x2c5cfb(0x19b)],_0x4cf319);}[_0x20f763(0x211)](){const _0x3c8e16=_0x20f763;this[_0x3c8e16(0x1e5)]={'document':{'enabled':!0x1!==this[_0x3c8e16(0x1dc)]?.[_0x3c8e16(0x1d3)]?.[_0x3c8e16(0x213)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x3c8e16(0x1dc)]?.[_0x3c8e16(0x1eb)]?.[_0x3c8e16(0x213)]},'files':{'enabled':!0x1!==this[_0x3c8e16(0x1dc)]?.[_0x3c8e16(0x1d1)]?.[_0x3c8e16(0x213)]},'sources':this[_0x3c8e16(0x1f0)]()},this[_0x3c8e16(0x1c7)](_0x3c8e16(0x1d4),{'options':this[_0x3c8e16(0x1e5)]});}[_0x20f763(0x1f0)](){const _0xe35ae2=_0x20f763;return this[_0xe35ae2(0x1dc)]?.[_0xe35ae2(0x216)]?.[_0xe35ae2(0x1f3)](_0x234ee4=>({..._0x234ee4,'resources':[]}))??[];}[_0x20f763(0x1e2)](){const _0x223430=_0x20f763,_0xe7fd03=this[_0x223430(0x1fe)]()||this[_0x223430(0x214)]();this[_0x223430(0x1e5)][_0x223430(0x1d3)][_0x223430(0x1ff)]=_0xe7fd03,this[_0x223430(0x1c7)](_0x223430(0x1d4),{'options':this[_0x223430(0x1e5)]});}[_0x20f763(0x1b2)](_0x4a0f8c){const _0x311f65=_0x20f763;for(const _0x4201b0 of this[_0x311f65(0x19a)][_0x311f65(0x1fd)]())if(_0x4201b0[_0x311f65(0x203)]===_0x4a0f8c)return!0x0;for(const _0x4059f3 of this[_0x311f65(0x1ab)][_0x311f65(0x1fd)]())if(_0x4059f3[_0x311f65(0x203)]===_0x4a0f8c)return!0x0;return!0x1;}[_0x20f763(0x19f)](_0x23cad8){const _0x62ce04=_0x20f763,_0x3edafd=[];for(const _0x1469e9 of this[_0x62ce04(0x1e5)][_0x62ce04(0x216)]){_0x1469e9[_0x62ce04(0x208)][_0x62ce04(0x1d9)](_0x1fcf54=>_0x1fcf54['id']===_0x23cad8)&&_0x3edafd[_0x62ce04(0x1ed)](_0x1469e9['id']);}return 0x0===_0x3edafd[_0x62ce04(0x1d7)]?null:_0x3edafd;}[_0x20f763(0x1f5)](_0x2a3d5a,_0x71a2c4,_0x28d450){const _0x518651=_0x20f763,_0x37ea38=this[_0x518651(0x1e5)][_0x518651(0x216)][_0x518651(0x1d9)](_0x44c15e=>_0x44c15e['id']===_0x2a3d5a);if(!_0x37ea38)return;const _0x3aa023=_0x37ea38[_0x518651(0x208)][_0x518651(0x1d9)](_0x4f44e8=>_0x4f44e8['id']===_0x71a2c4);_0x3aa023&&(_0x3aa023[_0x518651(0x1cf)]=_0x28d450,this[_0x518651(0x1c7)](_0x518651(0x1b7),{'sourceId':_0x2a3d5a,'resourceId':_0x71a2c4,'isInContext':_0x28d450}));}[_0x20f763(0x1e7)](_0xddc8b){const _0x187bc2=_0x20f763;this[_0x187bc2(0x1f9)][_0x187bc2(0x1b3)](_0xddc8b,!0x0),this[_0x187bc2(0x1f9)][_0x187bc2(0x1fa)]&&this[_0x187bc2(0x1c7)](_0x187bc2(0x1e6),{'isUploadInProgress':!0x0});}[_0x20f763(0x1ce)](_0x2ef94d){const _0x3f949b=_0x20f763;this[_0x3f949b(0x1f9)][_0x3f949b(0x1bb)](_0x2ef94d),0x0===this[_0x3f949b(0x1f9)][_0x3f949b(0x1fa)]&&this[_0x3f949b(0x1c7)](_0x3f949b(0x1e6),{'isUploadInProgress':!0x1});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1b4b4f=_0x5dd1;(function(_0xe2f9ec,_0x379fe9){const _0xbf6501=_0x5dd1,_0xba2bec=_0xe2f9ec();while(!![]){try{const _0x3b1b8e=-parseInt(_0xbf6501(0x24d))/0x1*(-parseInt(_0xbf6501(0x24b))/0x2)+-parseInt(_0xbf6501(0x22f))/0x3*(parseInt(_0xbf6501(0x203))/0x4)+parseInt(_0xbf6501(0x1ec))/0x5+-parseInt(_0xbf6501(0x22e))/0x6*(parseInt(_0xbf6501(0x209))/0x7)+parseInt(_0xbf6501(0x23f))/0x8+-parseInt(_0xbf6501(0x1e8))/0x9*(-parseInt(_0xbf6501(0x200))/0xa)+-parseInt(_0xbf6501(0x207))/0xb;if(_0x3b1b8e===_0x379fe9)break;else _0xba2bec['push'](_0xba2bec['shift']());}catch(_0x1bf39a){_0xba2bec['push'](_0xba2bec['shift']());}}}(_0x39c0,0x5948e));function _0x39c0(){const _0x462d3c=['model','length','18wRZShY','conversationId','getModel','reset','3007495bXTVeH','addSelectionToContext','user','addUrlToContext','toggleReasoning','fetchConversation','ai-chat-conversation-init-failed','text-delta','chatContext','getAll','isStarted','sessionId','lastInteraction','updateCurrentDocument','removeFromContext','isAvailable','handleUserInteraction','ai-chat-conversation-init-from-id-failed','load','interactions','2959930NtBatZ','hasOwn','getEditor','4VQNQqX','chatModels','contextItems','getCurrentDocumentContext','13350403XqqAMZ','updateCurrentDocumentInContext','148939BNzUYK','stop','addResourceToContext','chatCapabilities','webSearch','message','indexOf','error','isCurrentDocumentInConversation','createReply','toLowerCase','addToConversationContext','assistant','prompt','addCurrentDocumentToContext','getConversation','getMessages','options','ai-chat-conversation-set-model-null','conversationInitialized','_processMessagesToInteractions','delegate','quickActionData','ai-chat-conversation-already-started','init','title','_extractContextItems','content','modelSelected','getCapabilitiesConfig','getInteraction','connector','set','group','startConversation','attributes','capabilities','78sYIACE','343470tGiRtk','find','ai-chat-conversation-set-model-not-available','createInteraction','ai-chat-conversation-start-failed','currentReply','appendContent','interactionCreated','toggleWebSearch','currentInteraction','getDocumentContext','populateFromMessage','destroy','splice','push','getAvailableModels','1350664StzzdW','type','stack','removeInteraction','getPendingContextItems','start','ai-chat-conversation-start-no-model-selected','ai-chat-handle-user-interaction-already-in-progress','reasoning','selectedModelId','ai-chat-handle-user-conversation-not-initialized','conversationStarted','1216312VueJTJ','modification-delta','1JMPNre','selectedModel','role','removeSelectionFromContext','setModel','setConversationTitle','isSelectionInContext','isCurrentDocumentInContext','fire','addFilesToContext','fetchConversationMessages','text','loadSourceResources'];_0x39c0=function(){return _0x462d3c;};return _0x39c0();}import{CKEditorError as _0x683b6,EmitterMixin as _0x431b0e,logWarning as _0x5d0b1c}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x1dfa8c}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x222cb9,AI_CONTEXT_MODEL_EVENT_NAMES as _0x31fa6c}from'./aichatcontext.js';import{AICapabilities as _0x34407b,CAPABILITIES_MODEL_EVENT_NAMES as _0x4f1492}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x12de79}from'./aichatinteraction.js';function _0x5dd1(_0x25f969,_0xddc0c){const _0x39c054=_0x39c0();return _0x5dd1=function(_0x5dd16b,_0x4db09d){_0x5dd16b=_0x5dd16b-0x1dd;let _0x54bc70=_0x39c054[_0x5dd16b];return _0x54bc70;},_0x5dd1(_0x25f969,_0xddc0c);}export class AIChatConversation extends _0x431b0e(){['id'];[_0x1b4b4f(0x1f6)]=!0x1;[_0x1b4b4f(0x1ff)]=[];[_0x1b4b4f(0x238)];[_0x1b4b4f(0x24e)];[_0x1b4b4f(0x228)];[_0x1b4b4f(0x21a)];constructor(_0x4c65f0){const _0x122b7a=_0x1b4b4f;super(),this[_0x122b7a(0x21a)]=_0x4c65f0,this[_0x122b7a(0x228)]=_0x4c65f0[_0x122b7a(0x228)],this[_0x122b7a(0x204)]=_0x4c65f0[_0x122b7a(0x204)],this['id']=_0x4c65f0[_0x122b7a(0x1e9)];}async[_0x1b4b4f(0x221)](_0x443660){const _0x461c68=_0x1b4b4f;try{this[_0x461c68(0x1f4)]=new _0x222cb9({'connector':this[_0x461c68(0x228)],'config':_0x443660,'ownerId':this['id']}),this[_0x461c68(0x1f4)][_0x461c68(0x21e)](..._0x31fa6c)['to'](this),this[_0x461c68(0x1f4)][_0x461c68(0x221)](),this[_0x461c68(0x20c)]=new _0x34407b(),this[_0x461c68(0x20c)][_0x461c68(0x21e)](..._0x4f1492)['to'](this),this[_0x461c68(0x20c)][_0x461c68(0x221)]();const _0x1b3705=await this[_0x461c68(0x204)][_0x461c68(0x23e)]();this[_0x461c68(0x1e1)](_0x461c68(0x21c),{'availableModels':_0x1b3705});const _0x26667f=await this[_0x461c68(0x204)][_0x461c68(0x1ea)](this[_0x461c68(0x21a)][_0x461c68(0x248)]);_0x26667f&&await this[_0x461c68(0x1dd)](_0x26667f);}catch(_0x17b44b){const _0x470c7c=new _0x683b6(_0x461c68(0x1f2),null,{'message':_0x17b44b[_0x461c68(0x20e)]});_0x470c7c[_0x461c68(0x241)]=_0x17b44b[_0x461c68(0x241)],this[_0x461c68(0x1e1)](_0x461c68(0x210),{'error':_0x470c7c});}}async[_0x1b4b4f(0x244)](){const _0x1bf59e=_0x1b4b4f;if(this[_0x1bf59e(0x1f6)])throw new _0x683b6(_0x1bf59e(0x220),null,{'conversation':this});if(!this[_0x1bf59e(0x24e)])throw new _0x683b6(_0x1bf59e(0x245),null,{'conversation':this});try{const {id:_0x504015}=await this[_0x1bf59e(0x228)][_0x1bf59e(0x22b)](this['id'],this[_0x1bf59e(0x21a)][_0x1bf59e(0x22a)])[_0x1bf59e(0x218)]();this['id']=_0x504015,this[_0x1bf59e(0x1f6)]=!0x0,this[_0x1bf59e(0x1e1)](_0x1bf59e(0x24a),{'conversationId':this['id'],'selectedModel':this[_0x1bf59e(0x24e)]});}catch(_0x10d260){const _0x13f9ec=new _0x683b6(_0x1bf59e(0x233),null,{'message':_0x10d260[_0x1bf59e(0x20e)]});_0x13f9ec[_0x1bf59e(0x241)]=_0x10d260[_0x1bf59e(0x241)],this[_0x1bf59e(0x1e1)](_0x1bf59e(0x210),{'error':_0x13f9ec});}}async[_0x1b4b4f(0x1fe)](_0x377df9,_0x1282fa){const _0x29974b=_0x1b4b4f;try{const _0x3a335f=await this[_0x29974b(0x228)][_0x29974b(0x1f1)](_0x377df9)[_0x29974b(0x218)](),_0x5ace52=await this[_0x29974b(0x228)][_0x29974b(0x1e3)](_0x377df9)[_0x29974b(0x219)](),_0x162b8e=_0x5ace52[0x0][_0x29974b(0x1e6)];this[_0x29974b(0x1f6)]=!0x0,this['id']=_0x3a335f['id'],_0x29974b(0x222)in _0x3a335f?this[_0x29974b(0x1e1)](_0x29974b(0x1de),_0x3a335f[_0x29974b(0x222)],!0x0):this[_0x29974b(0x1e1)](_0x29974b(0x1de),'',!0x0);const _0x5a0aec=(await this[_0x29974b(0x204)][_0x29974b(0x1f5)]())[_0x29974b(0x230)](_0xe84755=>_0xe84755['id'][_0x29974b(0x213)]()===_0x162b8e[_0x29974b(0x213)]());return this[_0x29974b(0x24e)]=_0x5a0aec,this[_0x29974b(0x1e1)](_0x29974b(0x225),{'selectedModel':_0x5a0aec,'isDisabled':!0x0}),await this[_0x29974b(0x21d)](_0x5ace52,_0x1282fa,_0x162b8e),this[_0x29974b(0x238)]=void 0x0,this;}catch(_0x225857){const _0x56e002=new _0x683b6(_0x29974b(0x1fd),null,{'message':_0x225857[_0x29974b(0x20e)],'conversationId':_0x377df9});throw _0x56e002[_0x29974b(0x241)]=_0x225857[_0x29974b(0x241)],this[_0x29974b(0x1e1)](_0x29974b(0x210),{'error':_0x56e002}),_0x56e002;}}async[_0x1b4b4f(0x21d)](_0x2de61e,_0x312f5b,_0x89c078){const _0x1ad5db=_0x1b4b4f;let _0x4c26f;for(const _0x399f4f of _0x2de61e)if(_0x1ad5db(0x1ee)===_0x399f4f[_0x1ad5db(0x24f)]){const _0x154b85=await this[_0x1ad5db(0x223)](_0x399f4f),_0x1aa879={'isReasoningEnabled':Object[_0x1ad5db(0x201)](_0x399f4f[_0x1ad5db(0x22d)],_0x1ad5db(0x247)),'isWebSearchEnabled':Object[_0x1ad5db(0x201)](_0x399f4f[_0x1ad5db(0x22d)],_0x1ad5db(0x20d))};_0x4c26f=this[_0x1ad5db(0x232)]({'userMessage':_0x399f4f[_0x1ad5db(0x216)],'contextItems':_0x154b85,'capabilities':_0x1aa879,'modelId':_0x89c078,'quickActionData':_0x399f4f[_0x1ad5db(0x22c)]?.[_0x1ad5db(0x21f)]}),this[_0x1ad5db(0x238)]=_0x4c26f,this[_0x1ad5db(0x1f4)][_0x1ad5db(0x214)](this[_0x1ad5db(0x238)][_0x1ad5db(0x205)]);}else{if(_0x1ad5db(0x215)===_0x399f4f[_0x1ad5db(0x24f)]&&_0x4c26f)for(const _0x559a8d of _0x399f4f[_0x1ad5db(0x224)]){const _0x367de8=_0x1ad5db(0x1e4)===_0x559a8d[_0x1ad5db(0x240)]?_0x1ad5db(0x1f3):_0x1ad5db(0x24c),_0x30337a=_0x4c26f[_0x1ad5db(0x239)]()?.[_0x1ad5db(0x1f7)]!==_0x312f5b;_0x4c26f[_0x1ad5db(0x234)]=_0x4c26f[_0x1ad5db(0x212)]({'type':_0x367de8,'isDone':!0x0,'interactionId':_0x4c26f['id'],'areActionsDisabled':_0x30337a}),_0x4c26f[_0x1ad5db(0x234)][_0x1ad5db(0x235)](_0x559a8d[_0x1ad5db(0x224)]);}}}async[_0x1b4b4f(0x223)](_0x5e696d){const _0x11b6d2=_0x1b4b4f,_0x5c2e18=new Map();if(!_0x5e696d[_0x11b6d2(0x224)])return _0x5c2e18;for(const _0x517175 of _0x5e696d[_0x11b6d2(0x224)]){const _0xb8ae0c=await this[_0x11b6d2(0x1f4)][_0x11b6d2(0x23a)](_0x517175);_0xb8ae0c&&_0x5c2e18[_0x11b6d2(0x229)](_0xb8ae0c['id'],_0xb8ae0c);}return _0x5c2e18;}async[_0x1b4b4f(0x1fc)]({userMessage:_0x4ebd8b,quickActionData:_0x4abb01}){const _0x1d7694=_0x1b4b4f;if(!this[_0x1d7694(0x1f6)])throw new _0x683b6(_0x1d7694(0x249),null,{'conversation':this});if(this[_0x1d7694(0x238)])throw new _0x683b6(_0x1d7694(0x246),null,{'conversation':this});try{const _0xa1205e=this[_0x1d7694(0x1f4)][_0x1d7694(0x243)](),_0x4e995b=this[_0x1d7694(0x20c)][_0x1d7694(0x226)](),_0x3709c4=this[_0x1d7694(0x24e)]['id'];this[_0x1d7694(0x238)]=this[_0x1d7694(0x232)]({'userMessage':_0x4ebd8b,'contextItems':_0xa1205e,'capabilities':_0x4e995b,'modelId':_0x3709c4,'quickActionData':_0x4abb01}),await this[_0x1d7694(0x238)][_0x1d7694(0x244)](),this[_0x1d7694(0x1f4)][_0x1d7694(0x214)](this[_0x1d7694(0x238)][_0x1d7694(0x205)]);}catch(_0x21c03a){this[_0x1d7694(0x1e1)](_0x1d7694(0x210),{'interactionId':this[_0x1d7694(0x238)]?this[_0x1d7694(0x238)]['id']:void 0x0,'error':_0x21c03a});}finally{this[_0x1d7694(0x238)]?.[_0x1d7694(0x20a)](),this[_0x1d7694(0x238)]=void 0x0;}}[_0x1b4b4f(0x232)]({userMessage:_0x5ba5fd,contextItems:_0x2c6780,capabilities:_0x867adf,modelId:_0x40295b,quickActionData:_0x1ec45e}){const _0x5d644f=_0x1b4b4f,_0x437d13=new _0x12de79({'userMessage':_0x5ba5fd,'contextItems':_0x2c6780,'capabilities':_0x867adf,'conversationId':this['id'],'connector':this[_0x5d644f(0x228)],'editor':this[_0x5d644f(0x21a)][_0x5d644f(0x202)]&&this[_0x5d644f(0x21a)][_0x5d644f(0x202)](),'model':_0x40295b,'quickActionData':_0x1ec45e});return _0x437d13[_0x5d644f(0x21e)](..._0x1dfa8c)['to'](this),this[_0x5d644f(0x1ff)][_0x5d644f(0x23d)](_0x437d13),this[_0x5d644f(0x1e1)](_0x5d644f(0x236),_0x437d13),_0x437d13;}[_0x1b4b4f(0x227)](_0x105b58){const _0x593aa3=_0x1b4b4f;return this[_0x593aa3(0x1ff)][_0x593aa3(0x230)](_0xf5f57f=>_0xf5f57f['id']===_0x105b58);}[_0x1b4b4f(0x242)](_0x15909c){const _0x1edd6f=_0x1b4b4f,_0x300124=this[_0x1edd6f(0x227)](_0x15909c);_0x300124&&(_0x300124[_0x1edd6f(0x23b)](),this[_0x1edd6f(0x1ff)][_0x1edd6f(0x23c)](this[_0x1edd6f(0x1ff)][_0x1edd6f(0x20f)](_0x300124),0x1));}get[_0x1b4b4f(0x1f8)](){const _0x5a17fc=_0x1b4b4f;return this[_0x5a17fc(0x1ff)][this[_0x5a17fc(0x1ff)][_0x5a17fc(0x1e7)]-0x1];}[_0x1b4b4f(0x217)](_0x330092){const _0xd5430b=_0x1b4b4f;this[_0xd5430b(0x1f4)][_0xd5430b(0x217)](_0x330092);}async[_0x1b4b4f(0x208)]({content:_0x31d2d0,version:_0x1f40e3,sessionId:_0x1c6f26,selections:_0x16c8f7}){const _0x493926=_0x1b4b4f;await this[_0x493926(0x1f4)][_0x493926(0x1f9)](_0x31d2d0,_0x1f40e3,_0x1c6f26,_0x16c8f7);}[_0x1b4b4f(0x206)](){const _0xd0a916=_0x1b4b4f;return this[_0xd0a916(0x238)]?.[_0xd0a916(0x239)]()?.[_0xd0a916(0x224)]||'';}[_0x1b4b4f(0x1ed)](_0x59e29b){const _0x559f56=_0x1b4b4f;this[_0x559f56(0x1f4)][_0x559f56(0x1ed)](_0x59e29b);}[_0x1b4b4f(0x250)](){const _0x181025=_0x1b4b4f;this[_0x181025(0x1f4)][_0x181025(0x250)]();}[_0x1b4b4f(0x1e2)](_0x183bf6){const _0x295397=_0x1b4b4f;this[_0x295397(0x1f4)][_0x295397(0x1e2)](_0x183bf6);}[_0x1b4b4f(0x1ef)](_0x44c844){const _0x72a364=_0x1b4b4f;this[_0x72a364(0x1f4)][_0x72a364(0x1ef)](_0x44c844);}[_0x1b4b4f(0x20b)](_0x1e57d1,_0xc296f9){const _0x20d4a4=_0x1b4b4f;this[_0x20d4a4(0x1f4)][_0x20d4a4(0x20b)](_0x1e57d1,_0xc296f9);}[_0x1b4b4f(0x1e5)](_0x4720ec,_0x271f5a,_0x51d401){const _0x438213=_0x1b4b4f;return this[_0x438213(0x1f4)][_0x438213(0x1e5)](_0x4720ec,_0x271f5a,_0x51d401);}[_0x1b4b4f(0x1fa)](_0x26ec45){const _0x34d8d1=_0x1b4b4f;this[_0x34d8d1(0x1f4)][_0x34d8d1(0x1fa)](_0x26ec45);}[_0x1b4b4f(0x237)](){const _0x296102=_0x1b4b4f;this[_0x296102(0x20c)][_0x296102(0x237)]();}[_0x1b4b4f(0x1f0)](){const _0x592b02=_0x1b4b4f;this[_0x592b02(0x20c)][_0x592b02(0x1f0)]();}[_0x1b4b4f(0x1e0)](){const _0x2e53f8=_0x1b4b4f;return this[_0x2e53f8(0x1f4)][_0x2e53f8(0x1e0)]();}[_0x1b4b4f(0x211)](){const _0x18fe5d=_0x1b4b4f;return this[_0x18fe5d(0x1f4)][_0x18fe5d(0x211)]();}[_0x1b4b4f(0x1df)](){const _0x3d9edd=_0x1b4b4f;return this[_0x3d9edd(0x1f4)][_0x3d9edd(0x1df)]();}async[_0x1b4b4f(0x1dd)](_0x1c5a26){const _0x5c405a=_0x1b4b4f;_0x1c5a26?!0x1===await this[_0x5c405a(0x204)][_0x5c405a(0x1fb)](_0x1c5a26)&&(_0x5d0b1c(_0x5c405a(0x231),{'conversation':this,'model':_0x1c5a26}),_0x1c5a26=(await this[_0x5c405a(0x204)][_0x5c405a(0x23e)]())[0x0]):(_0x5d0b1c(_0x5c405a(0x21b),{'conversation':this}),_0x1c5a26=(await this[_0x5c405a(0x204)][_0x5c405a(0x23e)]())[0x0]),_0x1c5a26['id']!==this[_0x5c405a(0x24e)]?.['id']&&(this[_0x5c405a(0x24e)]=_0x1c5a26,this[_0x5c405a(0x20c)][_0x5c405a(0x1eb)](),this[_0x5c405a(0x1e1)](_0x5c405a(0x225),{'selectedModel':_0x1c5a26}));}}
|
|
23
|
+
const _0x564161=_0x17a9;(function(_0x3fd439,_0x367d41){const _0x39a8e5=_0x17a9,_0x5e57c9=_0x3fd439();while(!![]){try{const _0x3624ab=parseInt(_0x39a8e5(0xdc))/0x1+parseInt(_0x39a8e5(0x10a))/0x2+parseInt(_0x39a8e5(0xac))/0x3*(parseInt(_0x39a8e5(0x10c))/0x4)+-parseInt(_0x39a8e5(0x118))/0x5+-parseInt(_0x39a8e5(0x109))/0x6*(-parseInt(_0x39a8e5(0xdd))/0x7)+-parseInt(_0x39a8e5(0xad))/0x8+parseInt(_0x39a8e5(0xc3))/0x9;if(_0x3624ab===_0x367d41)break;else _0x5e57c9['push'](_0x5e57c9['shift']());}catch(_0x10cc2c){_0x5e57c9['push'](_0x5e57c9['shift']());}}}(_0x1cba,0x96e3d));import{CKEditorError as _0x331d28,EmitterMixin as _0x38ba43,logWarning as _0x1ff566}from'ckeditor5/src/utils.js';function _0x17a9(_0x558ff4,_0x168baf){const _0x1cba7b=_0x1cba();return _0x17a9=function(_0x17a922,_0x54bf01){_0x17a922=_0x17a922-0xa7;let _0x836eb7=_0x1cba7b[_0x17a922];return _0x836eb7;},_0x17a9(_0x558ff4,_0x168baf);}import{AI_MODEL_EVENT_NAMES as _0x1a4548}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x31df35,AI_CONTEXT_MODEL_EVENT_NAMES as _0x250af1}from'./aichatcontext.js';import{AICapabilities as _0x3e5c6b,CAPABILITIES_MODEL_EVENT_NAMES as _0x239143}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x5218f7}from'./aichatinteraction.js';function _0x1cba(){const _0x117421=['options','isCurrentDocumentInContext','content','_processMessagesToInteractions','interactionCreated','fetchConversation','createReply','5940685rreCCG','selectedModel','chatContext','startConversation','model','removeFromContext','87DSqoAF','6986120BVxfQB','ai-chat-conversation-start-failed','text','updateCurrentDocument','splice','createInteraction','user','length','addFilesToContext','isCurrentDocumentInConversation','connector','reset','getConversation','_extractContextItems','handleUserInteraction','push','selectedModelId','modification-delta','ai-chat-conversation-start-no-model-selected','group','sessionId','chatModels','2370285eFZETb','appendContent','getAll','isStarted','getInteraction','toggleReasoning','ai-chat-conversation-init-from-id-failed','getEditor','getDocumentContext','removeSelectionFromContext','getMessages','currentInteraction','updateCurrentDocumentInContext','setConversationTitle','prompt','load','removeInteraction','type','destroy','toggleWebSearch','ai-chat-conversation-already-started','addUrlToContext','start','getCapabilitiesConfig','stop','777073ZhfmSx','1860145yjUDpK','isAvailable','text-delta','modelSelected','ai-chat-handle-user-interaction-already-in-progress','assistant','title','fetchConversationMessages','capabilities','chatCapabilities','role','reasoning','conversationStarted','contextItems','fire','message','ai-chat-handle-user-conversation-not-initialized','currentReply','set','addToConversationContext','ai-chat-conversation-set-model-not-available','conversationId','addCurrentDocumentToContext','addSelectionToContext','getPendingContextItems','stack','getModel','setModel','getCurrentDocumentContext','error','toLowerCase','delegate','loadSourceResources','interactions','addResourceToContext','conversationInitialized','quickActionData','getAvailableModels','isSelectionInContext','attributes','ai-chat-conversation-set-model-null','lastInteraction','webSearch','ai-chat-conversation-init-failed','6WhjjvT','2210686RKJBKZ','init','36956ZATnZD','find','hasOwn','indexOf','populateFromMessage'];_0x1cba=function(){return _0x117421;};return _0x1cba();}export class AIChatConversation extends _0x38ba43(){['id'];[_0x564161(0xc6)]=!0x1;[_0x564161(0xfe)]=[];[_0x564161(0xce)];[_0x564161(0xa7)];[_0x564161(0xb7)];[_0x564161(0x111)];constructor(_0x4b0c06){const _0x116793=_0x564161;super(),this[_0x116793(0x111)]=_0x4b0c06,this[_0x116793(0xb7)]=_0x4b0c06[_0x116793(0xb7)],this[_0x116793(0xc2)]=_0x4b0c06[_0x116793(0xc2)],this['id']=_0x4b0c06[_0x116793(0xf2)];}async[_0x564161(0x10b)](_0xed46b2){const _0x36d669=_0x564161;try{this[_0x36d669(0xa8)]=new _0x31df35({'connector':this[_0x36d669(0xb7)],'config':_0xed46b2,'ownerId':this['id']}),this[_0x36d669(0xa8)][_0x36d669(0xfc)](..._0x250af1)['to'](this),this[_0x36d669(0xa8)][_0x36d669(0x10b)](),this[_0x36d669(0xe6)]=new _0x3e5c6b(),this[_0x36d669(0xe6)][_0x36d669(0xfc)](..._0x239143)['to'](this),this[_0x36d669(0xe6)][_0x36d669(0x10b)]();const _0x40889d=await this[_0x36d669(0xc2)][_0x36d669(0x102)]();this[_0x36d669(0xeb)](_0x36d669(0x100),{'availableModels':_0x40889d});const _0x312e54=await this[_0x36d669(0xc2)][_0x36d669(0xf7)](this[_0x36d669(0x111)][_0x36d669(0xbd)]);_0x312e54&&await this[_0x36d669(0xf8)](_0x312e54);}catch(_0x30f775){const _0x1e8825=new _0x331d28(_0x36d669(0x108),null,{'message':_0x30f775[_0x36d669(0xec)]});_0x1e8825[_0x36d669(0xf6)]=_0x30f775[_0x36d669(0xf6)],this[_0x36d669(0xeb)](_0x36d669(0xfa),{'error':_0x1e8825});}}async[_0x564161(0xd9)](){const _0x42c27d=_0x564161;if(this[_0x42c27d(0xc6)])throw new _0x331d28(_0x42c27d(0xd7),null,{'conversation':this});if(!this[_0x42c27d(0xa7)])throw new _0x331d28(_0x42c27d(0xbf),null,{'conversation':this});try{const {id:_0xefc66d}=await this[_0x42c27d(0xb7)][_0x42c27d(0xa9)](this['id'],this[_0x42c27d(0x111)][_0x42c27d(0xc0)])[_0x42c27d(0xb9)]();this['id']=_0xefc66d,this[_0x42c27d(0xc6)]=!0x0,this[_0x42c27d(0xeb)](_0x42c27d(0xe9),{'conversationId':this['id'],'selectedModel':this[_0x42c27d(0xa7)]});}catch(_0xbf6366){const _0x50f32b=new _0x331d28(_0x42c27d(0xae),null,{'message':_0xbf6366[_0x42c27d(0xec)]});_0x50f32b[_0x42c27d(0xf6)]=_0xbf6366[_0x42c27d(0xf6)],this[_0x42c27d(0xeb)](_0x42c27d(0xfa),{'error':_0x50f32b});}}async[_0x564161(0xd2)](_0x32118b,_0x22e269){const _0x2168dd=_0x564161;try{const _0xd843d7=await this[_0x2168dd(0xb7)][_0x2168dd(0x116)](_0x32118b)[_0x2168dd(0xb9)](),_0x5dc57f=await this[_0x2168dd(0xb7)][_0x2168dd(0xe4)](_0x32118b)[_0x2168dd(0xcd)](),_0x277a01=_0x5dc57f[0x0][_0x2168dd(0xaa)];this[_0x2168dd(0xc6)]=!0x0,this['id']=_0xd843d7['id'],_0x2168dd(0xe3)in _0xd843d7?this[_0x2168dd(0xeb)](_0x2168dd(0xd0),_0xd843d7[_0x2168dd(0xe3)],!0x0):this[_0x2168dd(0xeb)](_0x2168dd(0xd0),'',!0x0);const _0x56e75b=(await this[_0x2168dd(0xc2)][_0x2168dd(0xc5)]())[_0x2168dd(0x10d)](_0x4bd88f=>_0x4bd88f['id'][_0x2168dd(0xfb)]()===_0x277a01[_0x2168dd(0xfb)]());return this[_0x2168dd(0xa7)]=_0x56e75b,this[_0x2168dd(0xeb)](_0x2168dd(0xe0),{'selectedModel':_0x56e75b,'isDisabled':!0x0}),await this[_0x2168dd(0x114)](_0x5dc57f,_0x22e269,_0x277a01),this[_0x2168dd(0xce)]=void 0x0,this;}catch(_0x64359f){const _0x3fa1a2=new _0x331d28(_0x2168dd(0xc9),null,{'message':_0x64359f[_0x2168dd(0xec)],'conversationId':_0x32118b});throw _0x3fa1a2[_0x2168dd(0xf6)]=_0x64359f[_0x2168dd(0xf6)],this[_0x2168dd(0xeb)](_0x2168dd(0xfa),{'error':_0x3fa1a2}),_0x3fa1a2;}}async[_0x564161(0x114)](_0x3a176c,_0x23ae56,_0x24f95e){const _0x2b44c1=_0x564161;let _0x297919;for(const _0x171022 of _0x3a176c)if(_0x2b44c1(0xb3)===_0x171022[_0x2b44c1(0xe7)]){const _0xa77591=await this[_0x2b44c1(0xba)](_0x171022),_0x4d75c0={'isReasoningEnabled':Object[_0x2b44c1(0x10e)](_0x171022[_0x2b44c1(0xe5)],_0x2b44c1(0xe8)),'isWebSearchEnabled':Object[_0x2b44c1(0x10e)](_0x171022[_0x2b44c1(0xe5)],_0x2b44c1(0x107))};_0x297919=this[_0x2b44c1(0xb2)]({'userMessage':_0x171022[_0x2b44c1(0xd1)],'contextItems':_0xa77591,'capabilities':_0x4d75c0,'modelId':_0x24f95e,'quickActionData':_0x171022[_0x2b44c1(0x104)]?.[_0x2b44c1(0x101)]}),this[_0x2b44c1(0xce)]=_0x297919,this[_0x2b44c1(0xa8)][_0x2b44c1(0xf0)](this[_0x2b44c1(0xce)][_0x2b44c1(0xea)]);}else{if(_0x2b44c1(0xe2)===_0x171022[_0x2b44c1(0xe7)]&&_0x297919)for(const _0x44c569 of _0x171022[_0x2b44c1(0x113)]){const _0x4fc57e=_0x2b44c1(0xaf)===_0x44c569[_0x2b44c1(0xd4)]?_0x2b44c1(0xdf):_0x2b44c1(0xbe),_0x51ad9a=_0x297919[_0x2b44c1(0xcb)]()?.[_0x2b44c1(0xc1)]!==_0x23ae56;_0x297919[_0x2b44c1(0xee)]=_0x297919[_0x2b44c1(0x117)]({'type':_0x4fc57e,'isDone':!0x0,'interactionId':_0x297919['id'],'areActionsDisabled':_0x51ad9a}),_0x297919[_0x2b44c1(0xee)][_0x2b44c1(0xc4)](_0x44c569[_0x2b44c1(0x113)]);}}}async[_0x564161(0xba)](_0x12a40f){const _0x388f49=_0x564161,_0x264321=new Map();if(!_0x12a40f[_0x388f49(0x113)])return _0x264321;for(const _0x163b95 of _0x12a40f[_0x388f49(0x113)]){const _0xdb229f=await this[_0x388f49(0xa8)][_0x388f49(0x110)](_0x163b95);_0xdb229f&&_0x264321[_0x388f49(0xef)](_0xdb229f['id'],_0xdb229f);}return _0x264321;}async[_0x564161(0xbb)]({userMessage:_0x8a44b4,quickActionData:_0xecd4ae}){const _0x45f005=_0x564161;if(!this[_0x45f005(0xc6)])throw new _0x331d28(_0x45f005(0xed),null,{'conversation':this});if(this[_0x45f005(0xce)])throw new _0x331d28(_0x45f005(0xe1),null,{'conversation':this});try{const _0xbf6313=this[_0x45f005(0xa8)][_0x45f005(0xf5)](),_0x1b151a=this[_0x45f005(0xe6)][_0x45f005(0xda)](),_0x2e6d11=this[_0x45f005(0xa7)]['id'];this[_0x45f005(0xce)]=this[_0x45f005(0xb2)]({'userMessage':_0x8a44b4,'contextItems':_0xbf6313,'capabilities':_0x1b151a,'modelId':_0x2e6d11,'quickActionData':_0xecd4ae}),await this[_0x45f005(0xce)][_0x45f005(0xd9)](),this[_0x45f005(0xa8)][_0x45f005(0xf0)](this[_0x45f005(0xce)][_0x45f005(0xea)]);}catch(_0x3d8e57){this[_0x45f005(0xeb)](_0x45f005(0xfa),{'interactionId':this[_0x45f005(0xce)]?this[_0x45f005(0xce)]['id']:void 0x0,'error':_0x3d8e57});}finally{this[_0x45f005(0xce)]?.[_0x45f005(0xdb)](),this[_0x45f005(0xce)]=void 0x0;}}[_0x564161(0xb2)]({userMessage:_0xfc20ee,contextItems:_0x5f6a9d,capabilities:_0xed42ad,modelId:_0x8a6b,quickActionData:_0x3d34b5}){const _0x2b8e5d=_0x564161,_0x429a28=new _0x5218f7({'userMessage':_0xfc20ee,'contextItems':_0x5f6a9d,'capabilities':_0xed42ad,'conversationId':this['id'],'connector':this[_0x2b8e5d(0xb7)],'editor':this[_0x2b8e5d(0x111)][_0x2b8e5d(0xca)]&&this[_0x2b8e5d(0x111)][_0x2b8e5d(0xca)](),'model':_0x8a6b,'quickActionData':_0x3d34b5});return _0x429a28[_0x2b8e5d(0xfc)](..._0x1a4548)['to'](this),this[_0x2b8e5d(0xfe)][_0x2b8e5d(0xbc)](_0x429a28),this[_0x2b8e5d(0xeb)](_0x2b8e5d(0x115),_0x429a28),_0x429a28;}[_0x564161(0xc7)](_0x5e9064){const _0x539ab4=_0x564161;return this[_0x539ab4(0xfe)][_0x539ab4(0x10d)](_0x2c9fe2=>_0x2c9fe2['id']===_0x5e9064);}[_0x564161(0xd3)](_0x301014){const _0x5622ff=_0x564161,_0x77f4b0=this[_0x5622ff(0xc7)](_0x301014);_0x77f4b0&&(_0x77f4b0[_0x5622ff(0xd5)](),this[_0x5622ff(0xfe)][_0x5622ff(0xb1)](this[_0x5622ff(0xfe)][_0x5622ff(0x10f)](_0x77f4b0),0x1));}get[_0x564161(0x106)](){const _0x4717c2=_0x564161;return this[_0x4717c2(0xfe)][this[_0x4717c2(0xfe)][_0x4717c2(0xb4)]-0x1];}[_0x564161(0xf3)](_0x45bbe6){const _0x1fd483=_0x564161;this[_0x1fd483(0xa8)][_0x1fd483(0xf3)](_0x45bbe6);}async[_0x564161(0xcf)]({content:_0x3245d4,version:_0x2f0ef7,sessionId:_0x10cafd,selections:_0x5119fd}){const _0x2c17b7=_0x564161;await this[_0x2c17b7(0xa8)][_0x2c17b7(0xb0)](_0x3245d4,_0x2f0ef7,_0x10cafd,_0x5119fd);}[_0x564161(0xf9)](){const _0x118621=_0x564161;return this[_0x118621(0xce)]?.[_0x118621(0xcb)]()?.[_0x118621(0x113)]||'';}[_0x564161(0xf4)](_0x3253ee){const _0xe483d1=_0x564161;this[_0xe483d1(0xa8)][_0xe483d1(0xf4)](_0x3253ee);}[_0x564161(0xcc)](){const _0x32c9f5=_0x564161;this[_0x32c9f5(0xa8)][_0x32c9f5(0xcc)]();}[_0x564161(0xb5)](_0x5776b0){const _0x3c1b9d=_0x564161;this[_0x3c1b9d(0xa8)][_0x3c1b9d(0xb5)](_0x5776b0);}[_0x564161(0xd8)](_0x50fbd9){const _0x2ffe59=_0x564161;this[_0x2ffe59(0xa8)][_0x2ffe59(0xd8)](_0x50fbd9);}[_0x564161(0xff)](_0x16462e,_0x1b89ff){const _0x45f670=_0x564161;this[_0x45f670(0xa8)][_0x45f670(0xff)](_0x16462e,_0x1b89ff);}[_0x564161(0xfd)](_0x301b0f,_0x36e6b9,_0x3e8027){const _0x5373fe=_0x564161;return this[_0x5373fe(0xa8)][_0x5373fe(0xfd)](_0x301b0f,_0x36e6b9,_0x3e8027);}[_0x564161(0xab)](_0x46245d){const _0x462a8e=_0x564161;this[_0x462a8e(0xa8)][_0x462a8e(0xab)](_0x46245d);}[_0x564161(0xd6)](){const _0x50a67e=_0x564161;this[_0x50a67e(0xe6)][_0x50a67e(0xd6)]();}[_0x564161(0xc8)](){const _0x2de1aa=_0x564161;this[_0x2de1aa(0xe6)][_0x2de1aa(0xc8)]();}[_0x564161(0x112)](){const _0x14cc66=_0x564161;return this[_0x14cc66(0xa8)][_0x14cc66(0x112)]();}[_0x564161(0xb6)](){const _0xf24002=_0x564161;return this[_0xf24002(0xa8)][_0xf24002(0xb6)]();}[_0x564161(0x103)](){const _0x53bf12=_0x564161;return this[_0x53bf12(0xa8)][_0x53bf12(0x103)]();}async[_0x564161(0xf8)](_0x37164e){const _0x586edf=_0x564161;_0x37164e?!0x1===await this[_0x586edf(0xc2)][_0x586edf(0xde)](_0x37164e)&&(_0x1ff566(_0x586edf(0xf1),{'conversation':this,'model':_0x37164e}),_0x37164e=(await this[_0x586edf(0xc2)][_0x586edf(0x102)]())[0x0]):(_0x1ff566(_0x586edf(0x105),{'conversation':this}),_0x37164e=(await this[_0x586edf(0xc2)][_0x586edf(0x102)]())[0x0]),_0x37164e['id']!==this[_0x586edf(0xa7)]?.['id']&&(this[_0x586edf(0xa7)]=_0x37164e,this[_0x586edf(0xe6)][_0x586edf(0xb8)](),this[_0x586edf(0xeb)](_0x586edf(0xe0),{'selectedModel':_0x37164e}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x519a(){var _0x3baa83=['quickActionData','contextItems','63174hqjdyO','2725LusIHe','297765NLDPHa','431720loyyND','2606186dTQVSO','getCapabilitiesRequestData','404IUSpIY','getDocumentContext','10cdoYXf','13NyhnTt','userMessage','get','queryAssistant','connector','conversationId','607578CvGqOw','sendRequest','29916aIkGFG','77ZfJxiZ','current-document','model','mapContextItemsToRequestData','capabilities'];_0x519a=function(){return _0x3baa83;};return _0x519a();}var _0x8aa7e6=_0xca5f;(function(_0x3918a6,_0x50c202){var _0x369c7a=_0xca5f,_0x2136a2=_0x3918a6();while(!![]){try{var _0x3c8565=-parseInt(_0x369c7a(0x100))/0x1*(-parseInt(_0x369c7a(0xef))/0x2)+parseInt(_0x369c7a(0x106))/0x3+-parseInt(_0x369c7a(0xfd))/0x4*(-parseInt(_0x369c7a(0xf8))/0x5)+parseInt(_0x369c7a(0xf7))/0x6*(-parseInt(_0x369c7a(0xf0))/0x7)+parseInt(_0x369c7a(0xfa))/0x8+-parseInt(_0x369c7a(0xf9))/0x9+-parseInt(_0x369c7a(0xff))/0xa*(parseInt(_0x369c7a(0xfb))/0xb);if(_0x3c8565===_0x50c202)break;else _0x2136a2['push'](_0x2136a2['shift']());}catch(_0x3051b0){_0x2136a2['push'](_0x2136a2['shift']());}}}(_0x519a,0x1d560));function _0xca5f(_0x123535,_0x3eff6e){var _0x519ab7=_0x519a();return _0xca5f=function(_0xca5f18,_0x1882fd){_0xca5f18=_0xca5f18-0xef;var _0x1419b2=_0x519ab7[_0xca5f18];return _0x1419b2;},_0xca5f(_0x123535,_0x3eff6e);}import{AICapabilities as _0x4a22c7}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x257def}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x30c15f}from'./aichatcontext.js';export class AIChatInteraction extends _0x257def{[_0x8aa7e6(0x101)];[_0x8aa7e6(0x105)];[_0x8aa7e6(0xf6)]=new Map();[_0x8aa7e6(0xf2)];[_0x8aa7e6(0xf5)];constructor(_0x2a1950){var _0xc85416=_0x8aa7e6;super(_0x2a1950),this[_0xc85416(0x105)]=_0x2a1950[_0xc85416(0x105)],this[_0xc85416(0xf6)]=_0x2a1950[_0xc85416(0xf6)],this[_0xc85416(0xf4)]=_0x2a1950[_0xc85416(0xf4)],this[_0xc85416(0x101)]=_0x2a1950[_0xc85416(0x101)],this[_0xc85416(0xf2)]=_0x2a1950[_0xc85416(0xf2)],this[_0xc85416(0xf5)]=_0x2a1950[_0xc85416(0xf5)];}async[_0x8aa7e6(0x107)](){var _0x369a41=_0x8aa7e6;return this[_0x369a41(0x104)][_0x369a41(0x103)]({'message':this[_0x369a41(0x101)],'conversationId':this[_0x369a41(0x105)],'parts':_0x30c15f[_0x369a41(0xf3)](this[_0x369a41(0xf6)]),'capabilities':_0x4a22c7[_0x369a41(0xfc)](this[_0x369a41(0xf4)]),'model':this[_0x369a41(0xf2)],'quickActionData':this[_0x369a41(0xf5)]});}[_0x8aa7e6(0xfe)](){var _0x4797a2=_0x8aa7e6;return this[_0x4797a2(0xf6)][_0x4797a2(0x102)](_0x4797a2(0xf1));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x2cfdeb=_0x26ff;function _0x2454(){const _0x47d3e2=['getAvailableModels','608SeXMzq','_filterModels','11635496erdNVw','string','14NDXzcn','capabilities','_displayedModels','some','list','_modelList','push','12WEPUyA','184213zngZKB','name','_defaultModelId','getDefault','ai-chat-default-model-id-unrecognized','10PIyBkq','startsWith','values','enabled','getAll','55xYYpmm','find','provider','getModel','766974vAgrBo','ai-chat-model-id-unrecognized','2635320UFgxNf','length','isAvailable','4938010lHAYMZ','getModels','7135290LpOXDw','map','items','filter','_connector','sort','8886JLHtKU','toLocaleLowerCase'];_0x2454=function(){return _0x47d3e2;};return _0x2454();}(function(_0xd9d0bd,_0x55651b){const _0x334100=_0x26ff,_0x565cd8=_0xd9d0bd();while(!![]){try{const _0x422e87=parseInt(_0x334100(0x1ac))/0x1*(parseInt(_0x334100(0x1ab))/0x2)+parseInt(_0x334100(0x19d))/0x3*(parseInt(_0x334100(0x1a0))/0x4)+-parseInt(_0x334100(0x195))/0x5+-parseInt(_0x334100(0x1ba))/0x6*(parseInt(_0x334100(0x1a4))/0x7)+-parseInt(_0x334100(0x1a2))/0x8+-parseInt(_0x334100(0x197))/0x9*(-parseInt(_0x334100(0x1b1))/0xa)+-parseInt(_0x334100(0x1b6))/0xb*(-parseInt(_0x334100(0x192))/0xc);if(_0x422e87===_0x55651b)break;else _0x565cd8['push'](_0x565cd8['shift']());}catch(_0xb3105d){_0x565cd8['push'](_0x565cd8['shift']());}}}(_0x2454,0xb6c79));import{EmitterMixin as _0x20f49b,logWarning as _0x4abe22}from'ckeditor5/src/utils.js';function _0x26ff(_0x42f928,_0x5baccd){const _0x245402=_0x2454();return _0x26ff=function(_0x26ff86,_0x2ac9d1){_0x26ff86=_0x26ff86-0x191;let _0x1a09ac=_0x245402[_0x26ff86];return _0x1a09ac;},_0x26ff(_0x42f928,_0x5baccd);}export class AIChatModels extends _0x20f49b(){[_0x2cfdeb(0x1a9)]=[];[_0x2cfdeb(0x19b)];[_0x2cfdeb(0x1a6)];[_0x2cfdeb(0x1ae)];constructor({connector:_0x402e2e,displayedModels:_0x535a52,defaultModelId:_0x361cb5}){const _0x5c952b=_0x2cfdeb;super(),this[_0x5c952b(0x19b)]=_0x402e2e,this[_0x5c952b(0x1a6)]=_0x535a52,this[_0x5c952b(0x1ae)]=_0x361cb5;}async[_0x2cfdeb(0x1b5)](){const _0x252449=_0x2cfdeb;if(!this[_0x252449(0x1a9)][_0x252449(0x193)]){const _0xf3a8b5=this[_0x252449(0x19b)][_0x252449(0x196)](),_0x5a3c30=(await _0xf3a8b5[_0x252449(0x1a8)]())[_0x252449(0x199)][_0x252449(0x19c)]((_0x43be9f,_0x9955e6)=>{const _0x486627=_0x252449,_0x20d99a=Object[_0x486627(0x1b3)](_0x43be9f[_0x486627(0x1a5)])[_0x486627(0x19a)](_0x3b06d4=>_0x3b06d4[_0x486627(0x1b4)])[_0x486627(0x193)];return Object[_0x486627(0x1b3)](_0x9955e6[_0x486627(0x1a5)])[_0x486627(0x19a)](_0x28ae1d=>_0x28ae1d[_0x486627(0x1b4)])[_0x486627(0x193)]-_0x20d99a;});this[_0x252449(0x1a9)]=_0x5a3c30;}return this[_0x252449(0x1a9)];}async[_0x2cfdeb(0x19f)](){const _0xf2365b=_0x2cfdeb,_0x4d3a01=await this[_0xf2365b(0x1b5)]();return this[_0xf2365b(0x1a1)](_0x4d3a01,this[_0xf2365b(0x1a6)]);}async[_0x2cfdeb(0x1b9)](_0x5b0655){const _0x28359f=_0x2cfdeb,_0xd983c5=await this[_0x28359f(0x1b5)]();if(!_0xd983c5[_0x28359f(0x193)])return null;if(_0x5b0655){const _0x418581=_0xd983c5[_0x28359f(0x1b7)](_0x3f77ae=>_0x3f77ae['id']===_0x5b0655);if(_0x418581)return _0x418581;_0x4abe22(_0x28359f(0x191),{'modelId':_0x5b0655,'fallBackModelId':this[_0x28359f(0x1ae)]});}return this[_0x28359f(0x1af)]();}async[_0x2cfdeb(0x1af)](){const _0x5779e6=_0x2cfdeb,_0x3f3699=await this[_0x5779e6(0x19f)]();if(!_0x3f3699[_0x5779e6(0x193)])return null;if(this[_0x5779e6(0x1ae)]){const _0x4ce0b8=_0x3f3699[_0x5779e6(0x1b7)](_0x30c32b=>_0x30c32b['id']===this[_0x5779e6(0x1ae)]);if(_0x4ce0b8)return _0x4ce0b8;_0x4abe22(_0x5779e6(0x1b0),{'defaultModelId':this[_0x5779e6(0x1ae)],'fallBackModelId':_0x3f3699[0x0]['id']});}return _0x3f3699[0x0];}async[_0x2cfdeb(0x194)](_0x380f1e){const _0x57e59f=_0x2cfdeb;return(await this[_0x57e59f(0x19f)]())[_0x57e59f(0x1a7)](_0x10abc8=>_0x10abc8[_0x57e59f(0x1ad)]===_0x380f1e[_0x57e59f(0x1ad)]&&_0x10abc8[_0x57e59f(0x1b8)]===_0x380f1e[_0x57e59f(0x1b8)]);}[_0x2cfdeb(0x1a1)](_0x4cc2a5,_0x36345f){const _0x1a65c2=_0x2cfdeb;let _0x352844;if(_0x36345f){_0x352844=[];const _0x376ff8=_0x1a65c2(0x1a3)==typeof _0x36345f?[_0x36345f[_0x1a65c2(0x19e)]()]:_0x36345f[_0x1a65c2(0x198)](_0x2789d8=>_0x2789d8[_0x1a65c2(0x19e)]());for(const _0x3b0a48 of _0x376ff8)for(const _0x2e9a5e of _0x4cc2a5)(_0x2e9a5e['id'][_0x1a65c2(0x19e)]()===_0x3b0a48||_0x2e9a5e[_0x1a65c2(0x1ad)][_0x1a65c2(0x19e)]()===_0x3b0a48||_0x2e9a5e[_0x1a65c2(0x1b8)][_0x1a65c2(0x19e)]()===_0x3b0a48||_0x2e9a5e['id'][_0x1a65c2(0x19e)]()[_0x1a65c2(0x1b2)](_0x3b0a48))&&_0x352844[_0x1a65c2(0x1aa)](_0x2e9a5e);}else _0x352844=_0x4cc2a5;return _0x352844;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x4be2(_0xf07a2e,_0x2acc25){const _0x1e1e8b=_0x1e1e();return _0x4be2=function(_0x4be23e,_0x13d19e){_0x4be23e=_0x4be23e-0x15b;let _0x1ccc5e=_0x1e1e8b[_0x4be23e];return _0x1ccc5e;},_0x4be2(_0xf07a2e,_0x2acc25);}const _0x540c98=_0x4be2;(function(_0x31116a,_0x3da991){const _0x2222f4=_0x4be2,_0x2c7f0c=_0x31116a();while(!![]){try{const _0x2433e7=parseInt(_0x2222f4(0x1a7))/0x1*(-parseInt(_0x2222f4(0x162))/0x2)+parseInt(_0x2222f4(0x1a6))/0x3*(parseInt(_0x2222f4(0x173))/0x4)+-parseInt(_0x2222f4(0x174))/0x5+-parseInt(_0x2222f4(0x18b))/0x6+-parseInt(_0x2222f4(0x167))/0x7+parseInt(_0x2222f4(0x168))/0x8*(-parseInt(_0x2222f4(0x172))/0x9)+-parseInt(_0x2222f4(0x192))/0xa*(-parseInt(_0x2222f4(0x1a3))/0xb);if(_0x2433e7===_0x3da991)break;else _0x2c7f0c['push'](_0x2c7f0c['shift']());}catch(_0x5f220e){_0x2c7f0c['push'](_0x2c7f0c['shift']());}}}(_0x1e1e,0xb5e49));import{ButtonView as _0x593373,clickOutsideHandler as _0x4c041a,View as _0x4db962}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x208b88}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x468809}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x4b9546,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x45cdae}from'./controls/aichatcontextpanelview.js';function _0x1e1e(){const _0x4a65c4=['35532UNvlFm','40myvkTu','389195BvabXU','isModelAvailable','updateResourceState','bindTemplate','_shouldRestorePromptInputFocus','execute','removeContextItem','setWebSearch','find','toggleReasoning','abortPromptStream','_displayedModels','selectModel','addContextButtonView','ck-ai-chat-controls-model-unavailable-message','clearCurrentContextItems','reset','setInputPlaceholder','agent','focusPromptInput','resetMessageInput','ck-ai-chat-controls__start-new-chat-button','set','8359062ZgRxoL','setReasoning','ck-ai-chat-controls-disabled','setPlaceholderText','toggleWebSearch','_createContextPanelView','locale','10wVcwBV','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','disableModelSelector','element','setAddContextOptions','setTemplate','ck-hidden','low','_createPromptCapabilitiesView','ck-ai-chat-controls','_modelUnavailableMessageView','closeSourceResourceBalloon','_loaderView','clearConversationContextUI','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','setModel','delegate','48183179lJHAQK','_promptCapabilitiesView','focus','18534eQaTNo','110452NejNkA','div','addContextItem','isLoading','_createModelUnavailableMessageView','_promptInputView','startsWith','setContextItemLoading','enableModelSelector','setModelList','_createLoaderView','2eTMOTL','form','populateSourceResourceBalloon','_contextPanelView','setConversationContext','8121064LBTvTW','1936buJwbJ','_createPromptInputView','sendUserMessage','startConversation','clearPendingContextUI','clearConversationContextItems','change:isLoading','_handlePromptInputFocus','setIsUploadInProgress','isDisabled'];_0x1e1e=function(){return _0x4a65c4;};return _0x1e1e();}import{AIChatControlsLoaderView as _0x4a5a0d}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x4874e0}from'../../aicore/utils/common-translations.js';export class AIChatControlsView extends _0x4db962{[_0x540c98(0x17f)]=[];[_0x540c98(0x165)];[_0x540c98(0x15c)];[_0x540c98(0x1a4)];[_0x540c98(0x19e)];[_0x540c98(0x19c)];[_0x540c98(0x178)];constructor(_0xc039ed,_0x4312bb){const _0x2299db=_0x540c98;super(_0xc039ed),this[_0x2299db(0x165)]=this[_0x2299db(0x190)](_0xc039ed,_0x4312bb),this[_0x2299db(0x15c)]=this[_0x2299db(0x169)](_0xc039ed),this[_0x2299db(0x1a4)]=this[_0x2299db(0x19a)](_0xc039ed),this[_0x2299db(0x19e)]=this[_0x2299db(0x161)](_0xc039ed),this[_0x2299db(0x19c)]=this[_0x2299db(0x15b)](_0xc039ed),this[_0x2299db(0x178)]=!0x1,this[_0x2299db(0x15c)][_0x2299db(0x1a2)](_0x2299db(0x16a))['to'](this),this[_0x2299db(0x19e)][_0x2299db(0x1a2)](_0x2299db(0x17e))['to'](this),this[_0x2299db(0x1a4)][_0x2299db(0x1a2)](_0x2299db(0x18f))['to'](this),this[_0x2299db(0x1a4)][_0x2299db(0x1a2)](_0x2299db(0x17d))['to'](this),this[_0x2299db(0x1a4)][_0x2299db(0x1a2)](_0x2299db(0x180))['to'](this),this[_0x2299db(0x165)][_0x2299db(0x1a2)](..._0x45cdae)['to'](this),this[_0x2299db(0x18a)](_0x2299db(0x175),!0x0),this[_0x2299db(0x18a)](_0x2299db(0x171),!0x1);const _0x36092d=this[_0x2299db(0x177)];this[_0x2299db(0x197)]({'tag':_0x2299db(0x163),'attributes':{'class':['ck',_0x2299db(0x19b),_0x36092d['if'](_0x2299db(0x171),_0x2299db(0x18d))]},'children':[{'tag':_0x2299db(0x1a8),'attributes':{'class':[_0x36092d['if'](_0x2299db(0x1aa),_0x2299db(0x198),_0x249813=>_0x249813||!this[_0x2299db(0x175)]),_0x36092d['if'](_0x2299db(0x175),_0x2299db(0x198),_0x3aa545=>!_0x3aa545||this[_0x2299db(0x1aa)])]},'children':[this[_0x2299db(0x165)],this[_0x2299db(0x15c)],this[_0x2299db(0x1a4)]]},{'tag':_0x2299db(0x1a8),'attributes':{'class':[_0x36092d['if'](_0x2299db(0x1aa),_0x2299db(0x198),_0x8615bb=>!_0x8615bb)]},'children':[this[_0x2299db(0x19e)]]},{'tag':_0x2299db(0x1a8),'attributes':{'class':[_0x36092d['if'](_0x2299db(0x175),_0x2299db(0x198),_0x439028=>_0x439028)]},'children':[this[_0x2299db(0x19c)]]}]}),_0x4c041a({'emitter':this[_0x2299db(0x15c)],'activator':()=>this[_0x2299db(0x1aa)],'contextElements':()=>[this[_0x2299db(0x195)]],'callback':()=>{const _0x34862b=_0x2299db;this[_0x34862b(0x178)]=!0x1;}}),this['on'](_0x2299db(0x16e),this[_0x2299db(0x16f)],{'priority':_0x2299db(0x199)});}[_0x540c98(0x190)](_0x32189c,_0x1887aa){return new _0x4b9546(_0x32189c,_0x1887aa);}[_0x540c98(0x169)](_0x569767){const _0x4cf548=_0x540c98;return new _0x208b88(_0x569767,this[_0x4cf548(0x165)][_0x4cf548(0x181)]);}[_0x540c98(0x19a)](_0xf6a85a){return new _0x468809(_0xf6a85a);}[_0x540c98(0x161)](_0x2ce103){return new _0x4a5a0d(_0x2ce103);}[_0x540c98(0x15b)](_0x16d467){const _0x2cabd1=_0x540c98,_0x4cd421=new _s(_0x16d467);return _0x4cd421[_0x2cabd1(0x1a2)](_0x2cabd1(0x16b))['to'](this),_0x4cd421;}[_0x540c98(0x16f)](_0x314416,_0x446c68,_0x2bd29d){const _0x37e13d=_0x540c98;_0x2bd29d?this[_0x37e13d(0x178)]=!0x0:this[_0x37e13d(0x178)]&&this[_0x37e13d(0x15c)][_0x37e13d(0x1a5)]();}[_0x540c98(0x1a9)](_0x53c1d4,_0x21d223){const _0x99953a=_0x540c98;this[_0x99953a(0x165)][_0x99953a(0x1a9)](_0x53c1d4,_0x21d223);}[_0x540c98(0x17a)](_0x1539be){const _0x255f46=_0x540c98;this[_0x255f46(0x165)][_0x255f46(0x17a)](_0x1539be);}[_0x540c98(0x15e)](_0x4c14e,_0x543957){const _0x4a8910=_0x540c98;this[_0x4a8910(0x165)][_0x4a8910(0x15e)](_0x4c14e,_0x543957);}[_0x540c98(0x170)](_0x4c849a){const _0x1f9906=_0x540c98;this[_0x1f9906(0x15c)][_0x1f9906(0x170)](_0x4c849a);}[_0x540c98(0x166)](_0x3f3389){const _0x332d3e=_0x540c98;this[_0x332d3e(0x165)][_0x332d3e(0x166)](_0x3f3389);}[_0x540c98(0x16c)](){const _0x517c74=_0x540c98;this[_0x517c74(0x165)][_0x517c74(0x183)]();}[_0x540c98(0x19f)](){const _0x1bee14=_0x540c98;this[_0x1bee14(0x165)][_0x1bee14(0x16d)]();}[_0x540c98(0x176)](_0x57707d,_0xa7c157,_0x1f225e){const _0x2bdc51=_0x540c98;this[_0x2bdc51(0x165)][_0x2bdc51(0x176)](_0x57707d,_0xa7c157,_0x1f225e);}[_0x540c98(0x17b)](_0x222f1a){const _0x1aa6a6=_0x540c98;this[_0x1aa6a6(0x1a4)][_0x1aa6a6(0x17b)](_0x222f1a);}[_0x540c98(0x18c)](_0x4fc486){const _0x13e43f=_0x540c98;this[_0x13e43f(0x1a4)][_0x13e43f(0x18c)](_0x4fc486);}[_0x540c98(0x188)](){const _0x4cc82f=_0x540c98;this[_0x4cc82f(0x15c)][_0x4cc82f(0x184)]();}[_0x540c98(0x196)](_0x52721f){const _0x49c426=_0x540c98;this[_0x49c426(0x165)][_0x49c426(0x196)](_0x52721f);}[_0x540c98(0x185)](_0x1b39dc){const _0x37e624=_0x540c98;this[_0x37e624(0x15c)][_0x37e624(0x18e)](_0x1b39dc);}[_0x540c98(0x160)](_0x1b8501,_0x6d6cf){const _0x12ab6b=_0x540c98;this[_0x12ab6b(0x17f)]=_0x1b8501,this[_0x12ab6b(0x1a4)][_0x12ab6b(0x160)](_0x1b8501,_0x6d6cf);}[_0x540c98(0x1a1)](_0x3fa80d){const _0x24a419=_0x540c98;(_0x3fa80d?this[_0x24a419(0x17f)][_0x24a419(0x17c)](_0xdbc8a5=>_0xdbc8a5['id']===_0x3fa80d['id']):null)?(this[_0x24a419(0x175)]=!0x0,this[_0x24a419(0x1a4)][_0x24a419(0x1a1)](_0x3fa80d)):_0x3fa80d?.['id'][_0x24a419(0x15d)](_0x24a419(0x186))?(this[_0x24a419(0x175)]=!0x0,this[_0x24a419(0x1a4)][_0x24a419(0x1a1)](this[_0x24a419(0x17f)][0x0])):this[_0x24a419(0x175)]=!0x1;}[_0x540c98(0x15f)](){const _0x5efe04=_0x540c98;this[_0x5efe04(0x1a4)][_0x5efe04(0x15f)]();}[_0x540c98(0x194)](_0x290947){const _0x4ff8d7=_0x540c98;this[_0x4ff8d7(0x1a4)][_0x4ff8d7(0x194)](_0x290947);}[_0x540c98(0x164)](_0x50e45b,_0x3d402f,_0x5e98ce,_0x5a1906){const _0x421add=_0x540c98;this[_0x421add(0x165)][_0x421add(0x164)](_0x50e45b,_0x3d402f,_0x5e98ce,_0x5a1906);}[_0x540c98(0x19d)](_0x468fee){const _0x3e1088=_0x540c98;this[_0x3e1088(0x165)][_0x3e1088(0x19d)](_0x468fee);}[_0x540c98(0x187)](){const _0xa4ba37=_0x540c98;this[_0xa4ba37(0x15c)][_0xa4ba37(0x1a5)]();}}class _s extends _0x4db962{constructor(_0x575fc4){const _0x5a82f2=_0x540c98;super(_0x575fc4);const _0x3794db=new _0x593373(_0x575fc4);_0x3794db[_0x5a82f2(0x18a)]({'label':_0x4874e0(this[_0x5a82f2(0x191)],_0x5a82f2(0x193)),'withText':!0x0,'class':[_0x5a82f2(0x189)],'tooltip':''}),_0x3794db[_0x5a82f2(0x1a2)](_0x5a82f2(0x179))['to'](this,_0x5a82f2(0x16b)),this[_0x5a82f2(0x197)]({'tag':_0x5a82f2(0x1a8),'attributes':{'class':['ck',_0x5a82f2(0x182)]},'children':[{'tag':'p','children':[{'text':_0x4874e0(this[_0x5a82f2(0x191)],_0x5a82f2(0x1a0))+'\x20'},_0x3794db]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1c0112=_0x3b44;(function(_0x48a3a1,_0x454e30){const _0xafbbc7=_0x3b44,_0x378b8e=_0x48a3a1();while(!![]){try{const _0x38bc93=parseInt(_0xafbbc7(0x1a7))/0x1*(parseInt(_0xafbbc7(0x1d5))/0x2)+parseInt(_0xafbbc7(0x1e8))/0x3*(-parseInt(_0xafbbc7(0x1d7))/0x4)+-parseInt(_0xafbbc7(0x1ec))/0x5*(parseInt(_0xafbbc7(0x1aa))/0x6)+parseInt(_0xafbbc7(0x1b6))/0x7+parseInt(_0xafbbc7(0x1e0))/0x8*(parseInt(_0xafbbc7(0x1be))/0x9)+-parseInt(_0xafbbc7(0x1f5))/0xa+parseInt(_0xafbbc7(0x1cd))/0xb;if(_0x38bc93===_0x454e30)break;else _0x378b8e['push'](_0x378b8e['shift']());}catch(_0x47b196){_0x378b8e['push'](_0x378b8e['shift']());}}}(_0x1809,0xb74bb));import{CKEditorError as _0x49c7bd,logWarning as _0x1f881e,scrollViewportToShowTarget as _0x221c8e}from'ckeditor5/src/utils.js';import{View as _0x4a78a8}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x35cf0f}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x20c602}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x41115a}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x5c5c8e}from'./feed/aichatfeedusermessageitem.js';function _0x3b44(_0xf99ed3,_0x1cf354){const _0x1809c3=_0x1809();return _0x3b44=function(_0x3b447a,_0x45b68d){_0x3b447a=_0x3b447a-0x1a5;let _0x42cb19=_0x1809c3[_0x3b447a];return _0x42cb19;},_0x3b44(_0xf99ed3,_0x1cf354);}function _0x1809(){const _0x406be4=['_createLoaderChildren','div','48mhSTSa','isTrackChangesOn','bindTemplate','isVisible','updateWebSources','updateSuggestionPartState','setLoadingMessage','_createTemplateChildren','3LvyEix','extendTemplate','updateSources','children','104815NRLKDv','isLoadingSkeletonVisible','getItemById','stop','bind','ck-ai-chat__feed','ck-ai-chat__loader','updatePartState','ai-chat-feed-view-item-not-a-reply-item','2208800xqlsNk','scrollManager','delegate','ai-chat-feed-view-item-not-found','241ZcgdNR','remove','ai-chat-feed-view-item-not-a-suggestion-item','132tQrPMw','destroy','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','add','ai-reply','updateSuggestionItem','element','locale','_setupTemplate','removeItem','updateReplyItem','1842967Ferydp','ck-hidden','updateContent','map','getPartView','interaction-header','markItemAsDone','toggleLoadingSkeleton','335295HloQAa','markAsDone','ck-ai-chat__feed__items','setTemplate','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','stopAutoScroll','find','loadingMessage','getItemIds','ai-suggestion-reply','_createSkeletonLoader','_bodyCollection','startAutoScroll','_createFeedLoader','options','6261629JeLkYN','clear','aiFeed','start','user-message','_createFeedItems','ck-ai-chat__loader-text','scrollToSuggestion','4726zbLxod','createCollection','770752HsENFs','addItem','span','set','includes','isPending','render'];_0x1809=function(){return _0x406be4;};return _0x1809();}import{AIChatFeedErrorItemView as _0x39c2ef}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x458b97}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x10df7a}from'../utils/scrollmanager.js';import{AISkeletonView as _0x49e7a1,SKELETON_DEFINITIONS as _0x2a9e52}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x2c59e1}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x4a78a8{[_0x1c0112(0x1eb)];[_0x1c0112(0x1f6)];[_0x1c0112(0x1c9)];constructor(_0x21f534,_0x1726e3){const _0x16a685=_0x1c0112;super(_0x21f534),this[_0x16a685(0x1c9)]=_0x1726e3,this[_0x16a685(0x1da)](_0x16a685(0x1dc),!0x1),this[_0x16a685(0x1da)](_0x16a685(0x1c5),''),this[_0x16a685(0x1da)](_0x16a685(0x1ed),!0x1),this[_0x16a685(0x1da)](_0x16a685(0x1e1),!0x1),this[_0x16a685(0x1eb)]=this[_0x16a685(0x1d6)](),this[_0x16a685(0x1eb)][_0x16a685(0x1a5)](..._0x35cf0f)['to'](this),this[_0x16a685(0x1b3)]();}[_0x1c0112(0x1dd)](){const _0x497108=_0x1c0112;super[_0x497108(0x1dd)](),this[_0x497108(0x1f6)]=new _0x10df7a(this[_0x497108(0x1b1)]);}[_0x1c0112(0x1ab)](){const _0x26a2b0=_0x1c0112;super[_0x26a2b0(0x1ab)](),this[_0x26a2b0(0x1f6)][_0x26a2b0(0x1ab)]();}[_0x1c0112(0x1ce)](){const _0x316039=_0x1c0112;this[_0x316039(0x1eb)][_0x316039(0x1ce)]();}[_0x1c0112(0x1d8)](_0x31e026,_0x32eb00){const _0x20bc9c=_0x1c0112;let _0x3d859f;_0x20bc9c(0x1af)===_0x31e026?_0x3d859f=new _0x41115a(this[_0x20bc9c(0x1b2)],_0x32eb00):_0x20bc9c(0x1c7)===_0x31e026?(_0x3d859f=new _0x20c602(this[_0x20bc9c(0x1b2)],_0x32eb00),_0x3d859f[_0x20bc9c(0x1f0)](_0x20bc9c(0x1e1))['to'](this,_0x20bc9c(0x1e1))):_0x3d859f=_0x20bc9c(0x1d1)===_0x31e026?new _0x5c5c8e(this[_0x20bc9c(0x1b2)],_0x32eb00,this[_0x20bc9c(0x1c9)]):_0x20bc9c(0x1bb)===_0x31e026?new _0x458b97(this[_0x20bc9c(0x1b2)],_0x32eb00):new _0x39c2ef(_0x32eb00),this[_0x20bc9c(0x1eb)][_0x20bc9c(0x1ae)](_0x3d859f);}async[_0x1c0112(0x1b5)]({id:_0x510df6,parsedContent:_0xde64bc,renderingStrategy:_0x3f0ce5,abortSignal:_0x780da}){const _0x245ec9=_0x1c0112,_0x46f776=this[_0x245ec9(0x1ee)](_0x510df6);if(!(_0x46f776 instanceof _0x41115a))throw new _0x49c7bd(_0x245ec9(0x1f4),null,{'itemView':_0x46f776,'id':_0x510df6,'parsedContent':_0xde64bc});await _0x46f776[_0x245ec9(0x1b8)]({'parsedContent':_0xde64bc,'renderingStrategy':_0x3f0ce5,'abortSignal':_0x780da});}async[_0x1c0112(0x1e4)](_0x560ab6,_0x3394f5){const _0x4138f3=_0x1c0112,_0x250593=this[_0x4138f3(0x1ee)](_0x560ab6);if(_0x250593 instanceof _0x20c602)_0x250593[_0x4138f3(0x1ea)](_0x3394f5);else{if(!(_0x250593 instanceof _0x41115a))throw new _0x49c7bd(_0x4138f3(0x1ad),null,{'itemView':_0x250593,'id':_0x560ab6,'sources':_0x3394f5});_0x250593[_0x4138f3(0x1ea)](_0x3394f5);}}async[_0x1c0112(0x1b0)]({id:_0x2c6c26,parts:_0xc8d783,renderingStrategy:_0x18b293,abortSignal:_0x49247b}){const _0x59af8c=_0x1c0112,_0x2aed68=this[_0x59af8c(0x1ee)](_0x2c6c26);if(!(_0x2aed68 instanceof _0x20c602))throw new _0x49c7bd(_0x59af8c(0x1a9),null,{'itemView':_0x2aed68,'id':_0x2c6c26,'parts':_0xc8d783});await _0x2aed68[_0x59af8c(0x1b8)]({'parts':_0xc8d783,'renderingStrategy':_0x18b293,'abortSignal':_0x49247b});}[_0x1c0112(0x1e5)]({id:_0x4fe3f0,index:_0x1bb350,state:_0x1fcc6b}){const _0x1cc0ba=_0x1c0112,_0x56e2f1=this[_0x1cc0ba(0x1ee)](_0x4fe3f0);if(!(_0x56e2f1 instanceof _0x20c602))throw new _0x49c7bd(_0x1cc0ba(0x1a9),this,{'id':_0x4fe3f0});_0x56e2f1[_0x1cc0ba(0x1f3)](_0x1bb350,_0x1fcc6b);}[_0x1c0112(0x1bc)](_0x1dfe6c){const _0xb67046=_0x1c0112;this[_0xb67046(0x1ee)](_0x1dfe6c)[_0xb67046(0x1bf)]();}[_0x1c0112(0x1c6)](){const _0x190f3d=_0x1c0112;return this[_0x190f3d(0x1eb)][_0x190f3d(0x1b9)](_0x416aee=>_0x416aee[_0x190f3d(0x1cc)]['id']);}[_0x1c0112(0x1b4)](_0x4e0704){const _0x213547=_0x1c0112;this[_0x213547(0x1eb)][_0x213547(0x1a8)](this[_0x213547(0x1ee)](_0x4e0704));}[_0x1c0112(0x1d4)](_0x2f4d6f,_0x28e8ea){const _0x18e4fb=_0x1c0112,_0x50616a=this[_0x18e4fb(0x1ee)](_0x2f4d6f);if(!(_0x50616a instanceof _0x20c602))return void _0x1f881e(_0x18e4fb(0x1ac),{'replyId':_0x2f4d6f,'partIndex':_0x28e8ea});const _0x8f1904=_0x50616a[_0x18e4fb(0x1ba)](_0x28e8ea);_0x8f1904?_0x221c8e({'target':_0x8f1904[_0x18e4fb(0x1b1)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x1f881e(_0x18e4fb(0x1c2),{'replyId':_0x2f4d6f,'partIndex':_0x28e8ea});}[_0x1c0112(0x1b3)](){const _0x3fe01a=_0x1c0112;this[_0x3fe01a(0x1c1)]({'tag':_0x3fe01a(0x1df),'attributes':{'class':['ck',_0x3fe01a(0x1f1)]},'children':this[_0x3fe01a(0x1e7)]()});}[_0x1c0112(0x1e7)](){const _0x5b3a5a=_0x1c0112,_0x1ad28d=this[_0x5b3a5a(0x1c8)]();return[this[_0x5b3a5a(0x1d2)](),_0x1ad28d,this[_0x5b3a5a(0x1cb)]()];}[_0x1c0112(0x1c8)](){const _0x526b67=_0x1c0112,_0x25f650=new _0x49e7a1(this[_0x526b67(0x1b2)],_0x2a9e52[_0x526b67(0x1cf)]);return _0x25f650[_0x526b67(0x1e9)]({'attributes':{'class':[this[_0x526b67(0x1e2)]['if'](_0x526b67(0x1ed),_0x526b67(0x1b7),_0x5d310d=>!_0x5d310d)]}}),_0x25f650;}[_0x1c0112(0x1d2)](){const _0x4527dd=_0x1c0112,_0x4cf7e6=new _0x4a78a8(this[_0x4527dd(0x1b2)]);return _0x4cf7e6[_0x4527dd(0x1c1)]({'tag':_0x4527dd(0x1df),'attributes':{'class':['ck',_0x4527dd(0x1c0),this[_0x4527dd(0x1e2)]['if'](_0x4527dd(0x1ed),_0x4527dd(0x1b7))]},'children':this[_0x4527dd(0x1eb)]}),_0x4cf7e6;}[_0x1c0112(0x1cb)](){const _0x347760=_0x1c0112,_0x1a4607=new _0x4a78a8(this[_0x347760(0x1b2)]);return _0x1a4607[_0x347760(0x1c1)]({'tag':_0x347760(0x1df),'attributes':{'class':['ck',_0x347760(0x1f2),this[_0x347760(0x1e2)]['if'](_0x347760(0x1dc),_0x347760(0x1b7),_0x3b56a4=>!_0x3b56a4)]},'children':this[_0x347760(0x1de)]()}),_0x1a4607;}[_0x1c0112(0x1de)](){const _0x4a0ddf=_0x1c0112,_0x1b0c10=new _0x2c59e1();return _0x1b0c10[_0x4a0ddf(0x1e3)]=!0x0,[_0x1b0c10,{'tag':_0x4a0ddf(0x1d9),'attributes':{'class':['ck',_0x4a0ddf(0x1d3)]},'children':[{'text':this[_0x4a0ddf(0x1e2)]['to'](_0x4a0ddf(0x1c5))}]}];}[_0x1c0112(0x1ee)](_0x4ab4b3){const _0x2a28ee=_0x1c0112,_0x27f06b=this[_0x2a28ee(0x1eb)][_0x2a28ee(0x1c4)](_0x8d2029=>_0x8d2029[_0x2a28ee(0x1cc)]['id'][_0x2a28ee(0x1db)](_0x4ab4b3));if(!_0x27f06b)throw new _0x49c7bd(_0x2a28ee(0x1a6),this,{'id':_0x4ab4b3});return _0x27f06b;}[_0x1c0112(0x1e6)](_0x5dadda){const _0x3171e5=_0x1c0112;this[_0x3171e5(0x1da)](_0x3171e5(0x1c5),_0x5dadda);}[_0x1c0112(0x1bd)](_0x4f2099){const _0x1c757e=_0x1c0112;this[_0x1c757e(0x1da)](_0x1c757e(0x1ed),_0x4f2099);}[_0x1c0112(0x1ca)](){const _0x1357fa=_0x1c0112;this[_0x1357fa(0x1f6)][_0x1357fa(0x1d0)]();}[_0x1c0112(0x1c3)](){const _0x155358=_0x1c0112;this[_0x155358(0x1f6)][_0x155358(0x1ef)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x453ba4=_0x5b3a;function _0x5b3a(_0x4c1f9e,_0x19a068){const _0x51d586=_0x51d5();return _0x5b3a=function(_0x5b3a15,_0x12044a){_0x5b3a15=_0x5b3a15-0x1d0;let _0x19e5ca=_0x51d586[_0x5b3a15];return _0x19e5ca;},_0x5b3a(_0x4c1f9e,_0x19a068);}(function(_0x5ec61f,_0xb37c9f){const _0x23a569=_0x5b3a,_0x334e0d=_0x5ec61f();while(!![]){try{const _0x358e55=parseInt(_0x23a569(0x1e3))/0x1+parseInt(_0x23a569(0x1e0))/0x2*(parseInt(_0x23a569(0x1d9))/0x3)+parseInt(_0x23a569(0x1d1))/0x4+-parseInt(_0x23a569(0x1df))/0x5+parseInt(_0x23a569(0x1d3))/0x6+-parseInt(_0x23a569(0x1e4))/0x7+parseInt(_0x23a569(0x1d8))/0x8*(-parseInt(_0x23a569(0x1d6))/0x9);if(_0x358e55===_0xb37c9f)break;else _0x334e0d['push'](_0x334e0d['shift']());}catch(_0x17e8e8){_0x334e0d['push'](_0x334e0d['shift']());}}}(_0x51d5,0x4df24));import{ButtonView as _0x14a667,FormHeaderView as _0x43e8e9}from'ckeditor5/src/ui.js';import{IconPlus as _0x4b280d,IconAIChat as _0x5a734e}from'ckeditor5/src/icons.js';import{getTranslation as _0x464627}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x2c5d61}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0x43e8e9{[_0x453ba4(0x1dc)];[_0x453ba4(0x1de)];constructor(_0x245559,_0x2f5b1f){const _0x2e97f2=_0x453ba4;super(_0x245559,{'label':_0x464627(_0x245559,_0x2e97f2(0x1d0)),'class':_0x2e97f2(0x1e7),'icon':_0x5a734e}),this[_0x2e97f2(0x1dd)](_0x2e97f2(0x1e1),!0x1),this[_0x2e97f2(0x1dc)]=this[_0x2e97f2(0x1e5)](_0x245559),this[_0x2e97f2(0x1db)][_0x2e97f2(0x1d5)](this[_0x2e97f2(0x1dc)]),_0x2f5b1f&&(this[_0x2e97f2(0x1de)]=_0x2c5d61(_0x245559,this),this[_0x2e97f2(0x1db)][_0x2e97f2(0x1d5)](this[_0x2e97f2(0x1de)]));}[_0x453ba4(0x1e5)](_0x25a7b2){const _0x5cf3d6=_0x453ba4,_0x2c8836=new _0x14a667(_0x25a7b2);return _0x2c8836[_0x5cf3d6(0x1dd)]({'label':_0x464627(this[_0x5cf3d6(0x1d7)],_0x5cf3d6(0x1e6)),'withText':!0x0,'icon':_0x4b280d,'class':_0x5cf3d6(0x1e2)}),_0x2c8836['on'](_0x5cf3d6(0x1d2),()=>{const _0x2ffbe8=_0x5cf3d6;this[_0x2ffbe8(0x1d4)](_0x2ffbe8(0x1da));}),_0x2c8836;}}function _0x51d5(){const _0x4eb4ac=['4kjzWYg','isMaximized','ck-ai-chat__start-conversation','536253ifLukl','2488906LLhLCZ','_createStartConversationButton','AI_CHAT_LABEL_NEW_CHAT','ck-ai-header\x20ck-ai-header_chat','AI_CHAT_HEADING','984480ynvrSA','execute','2830884fjbwsB','fire','add','6247764WpsDpX','locale','8ZRGSYD','194112fCHcxl','startConversation','children','conversationStartButton','set','resizeButton','72865bXuZtK'];_0x51d5=function(){return _0x4eb4ac;};return _0x51d5();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x447dcb=_0x15b6;(function(_0x53d9ba,_0x52084c){var _0x109289=_0x15b6,_0x3f32f6=_0x53d9ba();while(!![]){try{var _0x5ed743=-parseInt(_0x109289(0xc9))/0x1*(-parseInt(_0x109289(0xca))/0x2)+parseInt(_0x109289(0xd4))/0x3+parseInt(_0x109289(0xcd))/0x4*(parseInt(_0x109289(0xcf))/0x5)+-parseInt(_0x109289(0xc1))/0x6+parseInt(_0x109289(0xc2))/0x7*(parseInt(_0x109289(0xc3))/0x8)+parseInt(_0x109289(0xc6))/0x9+-parseInt(_0x109289(0xd6))/0xa;if(_0x5ed743===_0x52084c)break;else _0x3f32f6['push'](_0x3f32f6['shift']());}catch(_0x14ca85){_0x3f32f6['push'](_0x3f32f6['shift']());}}}(_0xd0cb,0x7c541));import{View as _0x4c08dd,BodyCollection as _0x3b9394}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x2ae0e0}from'../utils/eventnames.js';import{AIChatFeedView as _0x46aff8}from'./aichatfeedview.js';function _0x15b6(_0x16fb5b,_0x3e358f){var _0xd0cb6=_0xd0cb();return _0x15b6=function(_0x15b6d0,_0x1f69bd){_0x15b6d0=_0x15b6d0-0xc1;var _0x2c4aac=_0xd0cb6[_0x15b6d0];return _0x2c4aac;},_0x15b6(_0x16fb5b,_0x3e358f);}import{AIChatControlsView as _0xc23084}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x139129}from'./aichatheaderview.js';import{AIDisclaimerView as _0x51b718}from'../../aicore/ui/aidisclaimerview.js';function _0xd0cb(){var _0x5b8981=['ck-rounded-corners','closeSourceResourceBalloon','1790358SndfEU','2884svNtOz','4800auKTEA','delegate','chatControls','7484157sDywbx','detachFromDom','destroy','21461WoiwyK','88UCfyVu','_bodyCollection','ck-ai-chat','978992rpLHcY','populateSourceResourceBalloon','5oyTKBV','div','chatHeader','attachToDom','chatFeed','1391250DrvOUI','setTemplate','19239130SejImB','chatDisclaimer','uiLanguageDirection','ck-reset_all'];_0xd0cb=function(){return _0x5b8981;};return _0xd0cb();}export class AIChatView extends _0x4c08dd{[_0x447dcb(0xd1)];[_0x447dcb(0xd3)];[_0x447dcb(0xc5)];[_0x447dcb(0xd7)];[_0x447dcb(0xcb)];constructor(_0x38a56f,_0x3b6062){var _0x210e3c=_0x447dcb;super(_0x38a56f),this[_0x210e3c(0xcb)]=new _0x3b9394(_0x38a56f),this[_0x210e3c(0xcb)][_0x210e3c(0xd2)](),this[_0x210e3c(0xd1)]=new _0x139129(_0x38a56f,_0x3b6062),this[_0x210e3c(0xd1)][_0x210e3c(0xc4)](..._0x2ae0e0)['to'](this),this[_0x210e3c(0xd3)]=new _0x46aff8(_0x38a56f,this[_0x210e3c(0xcb)]),this[_0x210e3c(0xd3)][_0x210e3c(0xc4)](..._0x2ae0e0)['to'](this),this[_0x210e3c(0xc5)]=new _0xc23084(_0x38a56f,this[_0x210e3c(0xcb)]),this[_0x210e3c(0xc5)][_0x210e3c(0xc4)](..._0x2ae0e0)['to'](this),this[_0x210e3c(0xd7)]=new _0x51b718(_0x38a56f),this[_0x210e3c(0xd5)]({'tag':_0x210e3c(0xd0),'attributes':{'class':['ck',_0x210e3c(0xd9),_0x210e3c(0xcc),_0x210e3c(0xda)],'dir':_0x38a56f[_0x210e3c(0xd8)]},'children':[this[_0x210e3c(0xd1)],this[_0x210e3c(0xd3)],this[_0x210e3c(0xc5)],this[_0x210e3c(0xd7)]]});}[_0x447dcb(0xce)](_0x322972,_0x2ea8be,_0x184a97,_0x4674be){var _0x439c80=_0x447dcb;this[_0x439c80(0xc5)][_0x439c80(0xce)](_0x322972,_0x2ea8be,_0x184a97,_0x4674be);}[_0x447dcb(0xdb)](_0x140ec4){var _0x3267b6=_0x447dcb;this[_0x3267b6(0xc5)][_0x3267b6(0xdb)](_0x140ec4);}[_0x447dcb(0xc8)](){var _0xa5eb8b=_0x447dcb;this[_0xa5eb8b(0xcb)][_0xa5eb8b(0xc7)](),super[_0xa5eb8b(0xc8)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x27157a=_0x5cbd;(function(_0x382aff,_0x496aad){const _0x263468=_0x5cbd,_0x5b73bb=_0x382aff();while(!![]){try{const _0x474ee0=parseInt(_0x263468(0x142))/0x1*(-parseInt(_0x263468(0x16a))/0x2)+parseInt(_0x263468(0x12e))/0x3*(-parseInt(_0x263468(0xf2))/0x4)+-parseInt(_0x263468(0x129))/0x5+-parseInt(_0x263468(0xf7))/0x6*(-parseInt(_0x263468(0xfa))/0x7)+-parseInt(_0x263468(0x15c))/0x8*(-parseInt(_0x263468(0x11a))/0x9)+parseInt(_0x263468(0x17d))/0xa+parseInt(_0x263468(0x149))/0xb*(parseInt(_0x263468(0x111))/0xc);if(_0x474ee0===_0x496aad)break;else _0x5b73bb['push'](_0x5b73bb['shift']());}catch(_0x3adb47){_0x5b73bb['push'](_0x5b73bb['shift']());}}}(_0x578a,0x819cf));function _0x5cbd(_0x294d28,_0x55ad0f){const _0x578a56=_0x578a();return _0x5cbd=function(_0x5cbd43,_0x5735af){_0x5cbd43=_0x5cbd43-0xef;let _0x3fa845=_0x578a56[_0x5cbd43];return _0x3fa845;},_0x5cbd(_0x294d28,_0x55ad0f);}import{View as _0x1f4113,BalloonPanelView as _0x10034c,ButtonView as _0x452677,clickOutsideHandler as _0x89e0f6}from'ckeditor5/src/ui.js';import{Collection as _0x56cc9b}from'ckeditor5/src/utils.js';function _0x578a(){const _0xacbadf=['50px','showBalloonPanel','getBoundingClientRect','children','_restoreAncestorVisibility','add','_distributeChips','_createShowMoreButtonView','bottom','_parentView','-9999px','innerWidth','_config','some','12XghMDS','cssClasses','toLowerCase','_createCalculationContainer','tagName','reorganizeChips','length','visible\x20!important','height','4708197WdJTWf','+\x201','left','block\x20!important','overflowContainer','push','_updateShowMoreButtonVisibility','_targetContainer','width','isVisible','_handleShowMoreButtonClick','abs','pin','className','pop','4971240cUSmcm','controlsButton','_createShowMoreBalloonPanelView','_containerElement','showMoreLabelPrefix','1362JPaPYr','content','_makeAncestorsVisible','createElement','pointerEvents','_createContainerElements','hide','_overflowChips','set','div','opacity','block','includes','innerHTML','_calculateContainerWidth','observe','show','clear','setContainerElement','.ck-ai-chat','2SlundG','calculationContainer','body','extendTemplate','getComputedStyle','hidden','_checkAndHandleOverflow','7267249gLMlIy','destroy','style','_repinBalloonPanel','setTemplate','slice','isOn','none','documentElement','_testButtonFit','showMoreButtonView','remove','label','_calculateOverflowInContainer','position','zIndex','offsetWidth','cloneNode','_intersectionObserver','8AYwPdf','_updateBalloonContent','querySelector','display','_isContainerVisible','0px','_showMoreBalloonPanelView','absolute','_visibleChips','right','from','visibility','ck-calculation-container','_applyCalculationStyles','665288KUBNHn','forEach','_findTargetContainer','_bodyCollection','button','hideBalloonPanel','isIntersecting','_ancestorsToRestore','_updateOverflowUI','appendChild','top','maxVisibleRows','render','_renderChipsAndCountRows','_showMoreButtonView','auto','clientHeight','disconnect','overflowChips','4765490OqBHDD','_pendingCalculation','showMoreButton','textContent','border-box','classList','disableAnimationOnEnter','innerHeight','clientWidth','300px','visible','8HOMxiS','parentElement','_setupVisibilityObserver','element','boxSizing','12YBrZsN','execute','_createShowMoreButton','1858493bhBbjx','_createMockButton','rowDetectionTolerance','isConnected','undefined','_applyOverflowResults','_locale','filter','showMoreBalloon'];_0x578a=function(){return _0xacbadf;};return _0x578a();}const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},ln=_0x27157a(0xf0);export class AIChatChipsOverflowManager{[_0x27157a(0x100)];[_0x27157a(0x10f)];[_0x27157a(0x164)];[_0x27157a(0x135)];[_0x27157a(0x178)]=null;[_0x27157a(0x162)]=null;[_0x27157a(0x12c)]=null;[_0x27157a(0x16d)];[_0x27157a(0x10c)]=null;[_0x27157a(0x15b)]=null;[_0x27157a(0x17e)]=!0x1;constructor(_0x3dd647,_0x306ebc,_0x5b544d,_0x316ba2,_0x29a719){const _0x314af8=_0x27157a;this[_0x314af8(0x100)]=_0x3dd647,this[_0x314af8(0x164)]=_0x306ebc,this[_0x314af8(0x10f)]={...hn,..._0x5b544d,'cssClasses':{'controlsButton':'','calculationContainer':_0x314af8(0x168),..._0x5b544d[_0x314af8(0x112)]}},this[_0x314af8(0x135)]=new _0x56cc9b(),this[_0x314af8(0x16d)]=_0x316ba2,this[_0x314af8(0x10c)]=_0x29a719||null;}[_0x27157a(0x140)](_0x52ccbe){const _0x15a258=_0x27157a;this[_0x15a258(0x15b)]&&(this[_0x15a258(0x15b)][_0x15a258(0x17b)](),this[_0x15a258(0x15b)]=null),this[_0x15a258(0x12c)]=_0x52ccbe,this[_0x15a258(0xf4)]();}get[_0x27157a(0x153)](){const _0xad844f=_0x27157a;return this[_0xad844f(0x178)];}get[_0x27157a(0x17c)](){const _0xba3481=_0x27157a;return this[_0xba3481(0x135)];}[_0x27157a(0x116)](){requestAnimationFrame(()=>{const _0x513146=_0x5cbd;this[_0x513146(0x148)]();});}[_0x27157a(0x104)](){const _0x87364c=_0x27157a;this[_0x87364c(0x178)]&&this[_0x87364c(0x162)]&&(this[_0x87364c(0x15d)](),this[_0x87364c(0x178)][_0x87364c(0x14f)]=!0x0,this[_0x87364c(0x162)][_0x87364c(0x13e)](),this[_0x87364c(0x162)][_0x87364c(0x126)]({'target':this[_0x87364c(0x178)][_0x87364c(0xf5)],'limiter':document[_0x87364c(0x15e)](_0x87364c(0x141))}));}[_0x27157a(0x16f)](){const _0x1e1901=_0x27157a;this[_0x1e1901(0x178)]&&this[_0x1e1901(0x162)]&&(this[_0x1e1901(0x178)][_0x1e1901(0x14f)]=!0x1,this[_0x1e1901(0x162)][_0x1e1901(0x134)]());}[_0x27157a(0x13f)](){const _0x100b93=_0x27157a;this[_0x100b93(0x135)][_0x100b93(0x13f)](),this[_0x100b93(0x16f)](),this[_0x100b93(0x120)](),this[_0x100b93(0x178)]&&(this[_0x100b93(0x178)][_0x100b93(0x155)]=''),this[_0x100b93(0x162)]&&this[_0x100b93(0x162)][_0x100b93(0x12f)][_0x100b93(0x13f)]();}[_0x27157a(0x14a)](){const _0x52e569=_0x27157a;this[_0x52e569(0x15b)]&&(this[_0x52e569(0x15b)][_0x52e569(0x17b)](),this[_0x52e569(0x15b)]=null),this[_0x52e569(0x178)]&&(this[_0x52e569(0x178)][_0x52e569(0x14a)](),this[_0x52e569(0x178)]=null),this[_0x52e569(0x162)]&&(this[_0x52e569(0x162)][_0x52e569(0x14a)](),this[_0x52e569(0x162)]=null);}[_0x27157a(0x148)](){const _0xb9799e=_0x27157a;if(!this[_0xb9799e(0x12c)])return;if(!this[_0xb9799e(0x160)]())return void(this[_0xb9799e(0x17e)]=!0x0);this[_0xb9799e(0x17e)]=!0x1;const _0x227516=[...this[_0xb9799e(0x164)],...this[_0xb9799e(0x135)]],_0x68d84d=this[_0xb9799e(0x114)](),_0x2d896e=this[_0xb9799e(0x156)](_0x68d84d,_0x227516),_0x2e4491=_0x68d84d[_0xb9799e(0x171)];_0x2e4491&&this[_0xb9799e(0x107)](_0x2e4491),_0x68d84d[_0xb9799e(0x154)](),this[_0xb9799e(0xff)](_0x227516,_0x2d896e);}[_0x27157a(0xf9)](){const _0x8ca824=_0x27157a;this[_0x8ca824(0x178)]=this[_0x8ca824(0x10a)](),this[_0x8ca824(0x162)]=this[_0x8ca824(0x12b)](),this[_0x8ca824(0x178)][_0x8ca824(0x176)](),this[_0x8ca824(0x12c)][_0x8ca824(0x173)](this[_0x8ca824(0x178)][_0x8ca824(0xf5)]),this[_0x8ca824(0x178)]['on'](_0x8ca824(0xf8),()=>{const _0x3f0548=_0x8ca824;this[_0x3f0548(0x124)]();}),_0x89e0f6({'emitter':this[_0x8ca824(0x162)],'contextElements':[this[_0x8ca824(0x162)][_0x8ca824(0xf5)],this[_0x8ca824(0x178)][_0x8ca824(0xf5)]],'callback':()=>this[_0x8ca824(0x16f)](),'activator':()=>this[_0x8ca824(0x178)][_0x8ca824(0x14f)]});}[_0x27157a(0x10a)](){const _0x4bc996=_0x27157a,_0x39776a=new _0x452677(this[_0x4bc996(0x100)]);_0x39776a[_0x4bc996(0x136)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x2d9d8f=[this[_0x4bc996(0x10f)][_0x4bc996(0x112)][_0x4bc996(0x17f)]];return this[_0x4bc996(0x10f)][_0x4bc996(0x112)][_0x4bc996(0x12a)]&&_0x2d9d8f[_0x4bc996(0x11f)](this[_0x4bc996(0x10f)][_0x4bc996(0x112)][_0x4bc996(0x12a)]),_0x39776a[_0x4bc996(0x145)]({'attributes':{'class':_0x2d9d8f}}),_0x39776a;}[_0x27157a(0x12b)](){const _0x1ef85e=_0x27157a,_0x5c5e6a=new _0x10034c(this[_0x1ef85e(0x100)]);return _0x5c5e6a[_0x1ef85e(0x145)]({'attributes':{'class':this[_0x1ef85e(0x10f)][_0x1ef85e(0x112)][_0x1ef85e(0x102)]}}),this[_0x1ef85e(0x16d)][_0x1ef85e(0x108)](_0x5c5e6a),_0x5c5e6a;}[_0x27157a(0x15d)](){const _0xa75352=_0x27157a;if(this[_0xa75352(0x162)]&&(this[_0xa75352(0x162)][_0xa75352(0x12f)][_0xa75352(0x13f)](),this[_0xa75352(0x135)][_0xa75352(0x117)]>0x0)){this[_0xa75352(0x135)][_0xa75352(0x16b)](_0xeac4bc=>{const _0x47969e=_0xa75352;_0xeac4bc[_0x47969e(0x183)]();});const _0x2f7a5f=new _0x1f4113(this[_0xa75352(0x100)]);_0x2f7a5f[_0xa75352(0x14d)]({'tag':_0xa75352(0x137),'attributes':{'class':this[_0xa75352(0x10f)][_0xa75352(0x112)][_0xa75352(0x11e)]},'children':this[_0xa75352(0x135)]}),this[_0xa75352(0x162)][_0xa75352(0x12f)][_0xa75352(0x108)](_0x2f7a5f);}}[_0x27157a(0x124)](){const _0x110a4f=_0x27157a;this[_0x110a4f(0x178)][_0x110a4f(0x14f)]?this[_0x110a4f(0x16f)]():this[_0x110a4f(0x104)]();}[_0x27157a(0x120)](){const _0x23dc46=_0x27157a,_0x64115d=this[_0x23dc46(0x135)][_0x23dc46(0x117)]>0x0;this[_0x23dc46(0x178)]?.[_0x23dc46(0xf5)]&&(this[_0x23dc46(0x178)][_0x23dc46(0xf5)][_0x23dc46(0x14b)][_0x23dc46(0x15f)]=_0x64115d?'':_0x23dc46(0x150));}[_0x27157a(0x14c)](){const _0x84707d=_0x27157a;this[_0x84707d(0x178)]?.[_0x84707d(0x14f)]&&this[_0x84707d(0x162)]?.[_0x84707d(0x123)]&&this[_0x84707d(0x178)][_0x84707d(0xf5)]&&this[_0x84707d(0x162)][_0x84707d(0x126)]({'target':this[_0x84707d(0x178)][_0x84707d(0xf5)],'limiter':document[_0x84707d(0x15e)](_0x84707d(0x141))});}[_0x27157a(0x16c)](_0x5dec61){const _0x3418c0=_0x27157a,_0xdabc44=this[_0x3418c0(0x12c)]?.[_0x3418c0(0x115)][_0x3418c0(0x113)]()||_0x3418c0(0x137),_0x305ec0=this[_0x3418c0(0x12c)]?.[_0x3418c0(0x182)];if(_0x305ec0){const _0x44a12e=_0x305ec0[0x0]||'',_0x5e0d3d=_0x5dec61[_0x3418c0(0x15e)]('.'+_0x44a12e),_0x24e61c=_0x5dec61[_0x3418c0(0x15e)](_0xdabc44);return _0x5e0d3d||_0x24e61c||_0x5dec61;}return _0x5dec61[_0x3418c0(0x15e)](_0xdabc44)||_0x5dec61;}[_0x27157a(0x13c)](){const _0x34fbb0=_0x27157a,_0x25f59d=this[_0x34fbb0(0x10c)]?.[_0x34fbb0(0xf5)]||this[_0x34fbb0(0x12c)];if(!_0x25f59d)return ln;const _0x5810a1=window[_0x34fbb0(0x146)](_0x25f59d)[_0x34fbb0(0x122)];if(_0x34fbb0(0x179)===_0x5810a1||_0x34fbb0(0x161)===_0x5810a1||!_0x5810a1){const _0x4c10d0=_0x25f59d[_0x34fbb0(0xf3)];if(_0x4c10d0){const _0xe31675=window[_0x34fbb0(0x146)](_0x4c10d0);return _0x34fbb0(0x179)!==_0xe31675[_0x34fbb0(0x122)]?_0xe31675[_0x34fbb0(0x122)]:ln;}return ln;}return _0x5810a1;}[_0x27157a(0x169)](_0x9cac7d,_0x133eb6){const _0xdeee33=_0x27157a;this[_0xdeee33(0x10f)][_0xdeee33(0x112)][_0xdeee33(0x143)]&&_0x9cac7d[_0xdeee33(0x182)][_0xdeee33(0x108)](this[_0xdeee33(0x10f)][_0xdeee33(0x112)][_0xdeee33(0x143)]),_0x9cac7d[_0xdeee33(0x14b)][_0xdeee33(0x122)]=_0x133eb6,_0x9cac7d[_0xdeee33(0x14b)][_0xdeee33(0x157)]=_0xdeee33(0x163),_0x9cac7d[_0xdeee33(0x14b)][_0xdeee33(0x174)]=_0xdeee33(0x10d),_0x9cac7d[_0xdeee33(0x14b)][_0xdeee33(0x11c)]=_0xdeee33(0x10d),_0x9cac7d[_0xdeee33(0x14b)][_0xdeee33(0x138)]='0',_0x9cac7d[_0xdeee33(0x14b)][_0xdeee33(0x132)]=_0xdeee33(0x150),_0x9cac7d[_0xdeee33(0x14b)][_0xdeee33(0x158)]='-1',_0x9cac7d[_0xdeee33(0x14b)][_0xdeee33(0x167)]=_0xdeee33(0x118),_0x9cac7d[_0xdeee33(0x14b)][_0xdeee33(0x15f)]=_0xdeee33(0x11d),_0x9cac7d[_0xdeee33(0x14b)][_0xdeee33(0xf6)]=_0xdeee33(0x181);}[_0x27157a(0x107)](_0x3960fd){const _0x52b5fd=_0x27157a;_0x3960fd[_0x52b5fd(0x16b)](({element:_0x2a78b1,originalDisplay:_0x707b56,originalVisibility:_0x4d2c86})=>{const _0x413157=_0x52b5fd;_0x2a78b1[_0x413157(0x14b)][_0x413157(0x15f)]=_0x707b56,_0x2a78b1[_0x413157(0x14b)][_0x413157(0x167)]=_0x4d2c86;});}[_0x27157a(0x130)](_0xef6998){const _0x3bdc06=_0x27157a,_0x5dd0ce=[];let _0xad2e7b=_0xef6998;for(;_0xad2e7b&&_0xad2e7b!==document[_0x3bdc06(0x144)];){const _0x1d5dfa=window[_0x3bdc06(0x146)](_0xad2e7b);_0x3bdc06(0x150)!==_0x1d5dfa[_0x3bdc06(0x15f)]&&_0x3bdc06(0x147)!==_0x1d5dfa[_0x3bdc06(0x167)]||(_0x5dd0ce[_0x3bdc06(0x11f)]({'element':_0xad2e7b,'originalDisplay':_0xad2e7b[_0x3bdc06(0x14b)][_0x3bdc06(0x15f)],'originalVisibility':_0xad2e7b[_0x3bdc06(0x14b)][_0x3bdc06(0x167)]}),_0xad2e7b[_0x3bdc06(0x14b)][_0x3bdc06(0x15f)]=_0x3bdc06(0x139),_0xad2e7b[_0x3bdc06(0x14b)][_0x3bdc06(0x167)]=_0x3bdc06(0xf1)),_0xad2e7b=_0xad2e7b[_0x3bdc06(0xf3)];}return _0x5dd0ce;}[_0x27157a(0x133)](){const _0x5f209e=_0x27157a;let _0x3402ca,_0x56dc67;return this[_0x5f209e(0x10c)]?.[_0x5f209e(0xf5)]?(_0x3402ca=this[_0x5f209e(0x10c)][_0x5f209e(0xf5)][_0x5f209e(0x15a)](!0x0),_0x56dc67=this[_0x5f209e(0x16c)](_0x3402ca)):(_0x3402ca=document[_0x5f209e(0x131)](_0x5f209e(0x137)),_0x56dc67=_0x3402ca),{'calculationContainer':_0x3402ca,'targetContainer':_0x56dc67};}[_0x27157a(0x114)](){const _0x478d24=_0x27157a,{calculationContainer:_0x5e2c71,targetContainer:_0x5c6427}=this[_0x478d24(0x133)](),_0x5f26dc=this[_0x478d24(0x13c)]();this[_0x478d24(0x169)](_0x5e2c71,_0x5f26dc);const _0x5a1d7d=this[_0x478d24(0x10c)]?.[_0x478d24(0xf5)]||this[_0x478d24(0x12c)],_0x5c41ca=_0x5a1d7d?.[_0x478d24(0xf3)];_0x5c41ca?_0x5c41ca[_0x478d24(0x173)](_0x5e2c71):document[_0x478d24(0x144)][_0x478d24(0x173)](_0x5e2c71),_0x5e2c71[_0x478d24(0x121)]=_0x5c6427;const _0x15ac90=this[_0x478d24(0x130)](_0x5c41ca||null);return _0x5e2c71[_0x478d24(0x159)],_0x5e2c71[_0x478d24(0x171)]=_0x15ac90,_0x5e2c71;}[_0x27157a(0x156)](_0x2ec5ac,_0x18a504){const _0x45c7de=_0x27157a,_0x4e0917=_0x2ec5ac[_0x45c7de(0x121)]||_0x2ec5ac,_0x551467=[],{rowCount:_0x5249bc}=this[_0x45c7de(0x177)](_0x4e0917,_0x18a504);if(_0x5249bc<=this[_0x45c7de(0x10f)][_0x45c7de(0x175)])return _0x551467;const _0xf664f4=_0x18a504[_0x45c7de(0x14e)]();for(;_0xf664f4[_0x45c7de(0x117)]>0x0;){if(this[_0x45c7de(0x152)](_0x2ec5ac,_0x4e0917,_0xf664f4)){const _0x3ac0ed=_0x18a504[_0x45c7de(0x101)](_0x466404=>!_0xf664f4[_0x45c7de(0x13a)](_0x466404));_0x551467[_0x45c7de(0x11f)](..._0x3ac0ed);break;}if(!_0xf664f4[_0x45c7de(0x128)]())break;}return _0x551467;}[_0x27157a(0x177)](_0x7afb3d,_0x38f056){const _0x3a202c=_0x27157a;_0x7afb3d[_0x3a202c(0x13b)]='',_0x38f056[_0x3a202c(0x16b)](_0x48006e=>{const _0x15ae74=_0x3a202c;if(_0x48006e[_0x15ae74(0xf5)]){const _0x5e933f=_0x48006e[_0x15ae74(0xf5)][_0x15ae74(0x15a)](!0x0);_0x7afb3d[_0x15ae74(0x173)](_0x5e933f);}}),_0x7afb3d[_0x3a202c(0x159)];const _0x5e334f=_0x7afb3d[_0x3a202c(0x106)],_0x49beee=[];return Array[_0x3a202c(0x166)](_0x5e334f)[_0x3a202c(0x16b)](_0x258f51=>{const _0xe3294e=_0x3a202c,_0x10625d=_0x258f51[_0xe3294e(0x105)]()[_0xe3294e(0x174)];_0x49beee[_0xe3294e(0x110)](_0x5580b4=>Math[_0xe3294e(0x125)](_0x5580b4-_0x10625d)<this[_0xe3294e(0x10f)][_0xe3294e(0xfc)])||_0x49beee[_0xe3294e(0x11f)](_0x10625d);}),{'rowCount':_0x49beee[_0x3a202c(0x117)]};}[_0x27157a(0xfb)](){const _0x5951de=_0x27157a,_0x4cb942=document[_0x5951de(0x131)](_0x5951de(0x16e));return _0x4cb942[_0x5951de(0x127)]=this[_0x5951de(0x10f)][_0x5951de(0x112)][_0x5951de(0x17f)],this[_0x5951de(0x10f)][_0x5951de(0x112)][_0x5951de(0x12a)]&&_0x4cb942[_0x5951de(0x182)][_0x5951de(0x108)](this[_0x5951de(0x10f)][_0x5951de(0x112)][_0x5951de(0x12a)]),_0x4cb942[_0x5951de(0x180)]=_0x5951de(0x11b),_0x4cb942;}[_0x27157a(0x152)](_0x268001,_0x48f4d7,_0x196d30){const _0x235a43=_0x27157a;this[_0x235a43(0x177)](_0x48f4d7,_0x196d30);const _0x4eec63=this[_0x235a43(0xfb)]();_0x268001[_0x235a43(0x173)](_0x4eec63),_0x268001[_0x235a43(0x159)];const _0x2344e0=[..._0x48f4d7[_0x235a43(0x106)],_0x4eec63],_0x8ada3f=[];_0x2344e0[_0x235a43(0x16b)](_0x2ceb90=>{const _0x472ac5=_0x235a43,_0x5e6044=_0x2ceb90[_0x472ac5(0x105)]()[_0x472ac5(0x174)];_0x8ada3f[_0x472ac5(0x110)](_0x4b751b=>Math[_0x472ac5(0x125)](_0x4b751b-_0x5e6044)<this[_0x472ac5(0x10f)][_0x472ac5(0xfc)])||_0x8ada3f[_0x472ac5(0x11f)](_0x5e6044);});const _0x592903=_0x8ada3f[_0x235a43(0x117)];return _0x4eec63[_0x235a43(0x154)](),_0x592903<=this[_0x235a43(0x10f)][_0x235a43(0x175)];}[_0x27157a(0x109)](_0x7ce33d,_0x1a493a){const _0x23ef6f=_0x27157a;this[_0x23ef6f(0x164)][_0x23ef6f(0x13f)](),this[_0x23ef6f(0x135)][_0x23ef6f(0x13f)](),_0x7ce33d[_0x23ef6f(0x16b)](_0x4d94af=>{const _0x35fcd8=_0x23ef6f;_0x1a493a[_0x35fcd8(0x13a)](_0x4d94af)?this[_0x35fcd8(0x135)][_0x35fcd8(0x108)](_0x4d94af):this[_0x35fcd8(0x164)][_0x35fcd8(0x108)](_0x4d94af);});}[_0x27157a(0x172)](_0x16b35b){const _0x1e94d1=_0x27157a;if(_0x16b35b>0x0&&!this[_0x1e94d1(0x178)]&&this[_0x1e94d1(0xf9)](),_0x16b35b>0x0&&this[_0x1e94d1(0x178)]){const _0x2de43c=''+this[_0x1e94d1(0x10f)][_0x1e94d1(0x12d)]+(_0x16b35b<0x63?_0x16b35b:'99');this[_0x1e94d1(0x178)][_0x1e94d1(0x155)]=_0x2de43c;}this[_0x1e94d1(0x15d)](),this[_0x1e94d1(0x120)](),this[_0x1e94d1(0x14c)]();}[_0x27157a(0xff)](_0x59d6b1,_0x25f192){const _0x1dfd71=_0x27157a;this[_0x1dfd71(0x109)](_0x59d6b1,_0x25f192),this[_0x1dfd71(0x172)](_0x25f192[_0x1dfd71(0x117)]);}[_0x27157a(0xf4)](){const _0x32eba9=_0x27157a;this[_0x32eba9(0x12c)]&&_0x32eba9(0xfe)!=typeof IntersectionObserver&&(this[_0x32eba9(0x15b)]=new IntersectionObserver(_0x353c83=>{const _0x1e1ba5=_0x32eba9;_0x353c83[0x0][_0x1e1ba5(0x170)]&&this[_0x1e1ba5(0x17e)]&&requestAnimationFrame(()=>{const _0x27c9b8=_0x1e1ba5;this[_0x27c9b8(0x148)]();});},{'threshold':0.01,'rootMargin':_0x32eba9(0x103)}),this[_0x32eba9(0x15b)][_0x32eba9(0x13d)](this[_0x32eba9(0x12c)]));}[_0x27157a(0x160)](){const _0x107b14=_0x27157a;if(!this[_0x107b14(0x12c)])return!0x1;if(!this[_0x107b14(0x12c)][_0x107b14(0xfd)])return!0x1;const _0x2e4908=this[_0x107b14(0x12c)][_0x107b14(0x105)]();if(0x0===_0x2e4908[_0x107b14(0x122)]||0x0===_0x2e4908[_0x107b14(0x119)])return!0x1;const _0x7eb8ca=window[_0x107b14(0x184)]||document[_0x107b14(0x151)][_0x107b14(0x17a)],_0x335ec8=window[_0x107b14(0x10e)]||document[_0x107b14(0x151)][_0x107b14(0xef)],_0xafda4a=0xc8;return _0x2e4908[_0x107b14(0x10b)]>=-0xc8&&_0x2e4908[_0x107b14(0x174)]<=_0x7eb8ca+_0xafda4a&&_0x2e4908[_0x107b14(0x165)]>=-0xc8&&_0x2e4908[_0x107b14(0x11c)]<=_0x335ec8+_0xafda4a;}}
|
|
23
|
+
const _0x103eef=_0x5c94;(function(_0x49d17c,_0x2090ad){const _0x5b75ff=_0x5c94,_0x529334=_0x49d17c();while(!![]){try{const _0x65dc69=parseInt(_0x5b75ff(0x183))/0x1*(-parseInt(_0x5b75ff(0x17f))/0x2)+parseInt(_0x5b75ff(0x1ba))/0x3+-parseInt(_0x5b75ff(0x15f))/0x4*(-parseInt(_0x5b75ff(0x1ae))/0x5)+-parseInt(_0x5b75ff(0x1a6))/0x6+-parseInt(_0x5b75ff(0x1d2))/0x7+-parseInt(_0x5b75ff(0x1a7))/0x8+-parseInt(_0x5b75ff(0x175))/0x9*(-parseInt(_0x5b75ff(0x196))/0xa);if(_0x65dc69===_0x2090ad)break;else _0x529334['push'](_0x529334['shift']());}catch(_0x14fa2c){_0x529334['push'](_0x529334['shift']());}}}(_0x36ff,0x81be6));import{View as _0x48e354,BalloonPanelView as _0x3f17ca,ButtonView as _0x5ab417,clickOutsideHandler as _0x2ab105}from'ckeditor5/src/ui.js';import{Collection as _0x437402}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},ln=_0x103eef(0x17d);function _0x5c94(_0x54f1a3,_0x26f3e0){const _0x36ff17=_0x36ff();return _0x5c94=function(_0x5c94db,_0xd977c){_0x5c94db=_0x5c94db-0x157;let _0x402d43=_0x36ff17[_0x5c94db];return _0x402d43;},_0x5c94(_0x54f1a3,_0x26f3e0);}function _0x36ff(){const _0x858061=['auto','_createShowMoreButtonView','opacity','execute','_createCalculationContainer','showBalloonPanel','_createContainerElements','appendChild','controlsButton','width','setTemplate','_distributeChips','block\x20!important','visible','141564VHkmXV','children','extendTemplate','_visibleChips','overflowContainer','_createMockButton','destroy','_applyOverflowResults','_ancestorsToRestore','pointerEvents','height','_parentView','_createShowMoreButton','pin','isOn','visible\x20!important','show','slice','length','push','_renderChipsAndCountRows','_intersectionObserver','81AOecso','content','top','absolute','_handleShowMoreButtonClick','_updateShowMoreButtonVisibility','_targetContainer','filter','300px','isIntersecting','2049586cQqdTJ','_calculateOverflowInContainer','disableAnimationOnEnter','.ck-ai-chat','1cpbQnG','clientHeight','left','calculationContainer','hidden','showMoreButtonView','style','_showMoreBalloonPanelView','cloneNode','_locale','getBoundingClientRect','className','rowDetectionTolerance','_testButtonFit','display','render','innerHTML','div','clientWidth','2197110NFkwue','createElement','maxVisibleRows','_makeAncestorsVisible','set','isConnected','innerWidth','_config','disconnect','button','showMoreLabelPrefix','none','observe','body','visibility','_showMoreButtonView','716514WroQqj','8206472dJsYNn','_setupVisibilityObserver','boxSizing','-9999px','_pendingCalculation','_restoreAncestorVisibility','hideBalloonPanel','15xeqMsR','pop','clear','undefined','overflowChips','_updateOverflowUI','position','remove','classList','border-box','showMoreBalloon','_checkAndHandleOverflow','2190588BYDcQA','innerHeight','_containerElement','querySelector','tagName','_applyCalculationStyles','0px','add','_isContainerVisible','reorganizeChips','element','_findTargetContainer','toLowerCase','hide','abs','isVisible','bottom','_bodyCollection','_createShowMoreBalloonPanelView','some','label','block','_repinBalloonPanel','getComputedStyle','786219PcbDqQ','from','parentElement','+\x201','forEach','setContainerElement','_overflowChips','50px','right','offsetWidth','zIndex','_updateBalloonContent','cssClasses','ck-calculation-container','textContent','_calculateContainerWidth','showMoreButton','includes','documentElement'];_0x36ff=function(){return _0x858061;};return _0x36ff();}export class AIChatChipsOverflowManager{[_0x103eef(0x18c)];[_0x103eef(0x19d)];[_0x103eef(0x162)];[_0x103eef(0x1d8)];[_0x103eef(0x1a5)]=null;[_0x103eef(0x18a)]=null;[_0x103eef(0x1bc)]=null;[_0x103eef(0x1cb)];[_0x103eef(0x16a)]=null;[_0x103eef(0x174)]=null;[_0x103eef(0x1ab)]=!0x1;constructor(_0x2fb68,_0x2e9031,_0x273aec,_0x46bc6f,_0x322e2f){const _0x3f3c56=_0x103eef;this[_0x3f3c56(0x18c)]=_0x2fb68,this[_0x3f3c56(0x162)]=_0x2e9031,this[_0x3f3c56(0x19d)]={...hn,..._0x273aec,'cssClasses':{'controlsButton':'','calculationContainer':_0x3f3c56(0x1df),..._0x273aec[_0x3f3c56(0x1de)]}},this[_0x3f3c56(0x1d8)]=new _0x437402(),this[_0x3f3c56(0x1cb)]=_0x46bc6f,this[_0x3f3c56(0x16a)]=_0x322e2f||null;}[_0x103eef(0x1d7)](_0x1624a1){const _0x479938=_0x103eef;this[_0x479938(0x174)]&&(this[_0x479938(0x174)][_0x479938(0x19e)](),this[_0x479938(0x174)]=null),this[_0x479938(0x1bc)]=_0x1624a1,this[_0x479938(0x1a8)]();}get[_0x103eef(0x188)](){const _0x28d8f7=_0x103eef;return this[_0x28d8f7(0x1a5)];}get[_0x103eef(0x1b2)](){const _0x4cb34a=_0x103eef;return this[_0x4cb34a(0x1d8)];}[_0x103eef(0x1c3)](){requestAnimationFrame(()=>{const _0x3cf56e=_0x5c94;this[_0x3cf56e(0x1b9)]();});}[_0x103eef(0x1ea)](){const _0x1a22a5=_0x103eef;this[_0x1a22a5(0x1a5)]&&this[_0x1a22a5(0x18a)]&&(this[_0x1a22a5(0x1dd)](),this[_0x1a22a5(0x1a5)][_0x1a22a5(0x16d)]=!0x0,this[_0x1a22a5(0x18a)][_0x1a22a5(0x16f)](),this[_0x1a22a5(0x18a)][_0x1a22a5(0x16c)]({'target':this[_0x1a22a5(0x1a5)][_0x1a22a5(0x1c4)],'limiter':document[_0x1a22a5(0x1bd)](_0x1a22a5(0x182))}));}[_0x103eef(0x1ad)](){const _0x3d75d9=_0x103eef;this[_0x3d75d9(0x1a5)]&&this[_0x3d75d9(0x18a)]&&(this[_0x3d75d9(0x1a5)][_0x3d75d9(0x16d)]=!0x1,this[_0x3d75d9(0x18a)][_0x3d75d9(0x1c7)]());}[_0x103eef(0x1b0)](){const _0x242c76=_0x103eef;this[_0x242c76(0x1d8)][_0x242c76(0x1b0)](),this[_0x242c76(0x1ad)](),this[_0x242c76(0x17a)](),this[_0x242c76(0x1a5)]&&(this[_0x242c76(0x1a5)][_0x242c76(0x1ce)]=''),this[_0x242c76(0x18a)]&&this[_0x242c76(0x18a)][_0x242c76(0x176)][_0x242c76(0x1b0)]();}[_0x103eef(0x165)](){const _0x40fc11=_0x103eef;this[_0x40fc11(0x174)]&&(this[_0x40fc11(0x174)][_0x40fc11(0x19e)](),this[_0x40fc11(0x174)]=null),this[_0x40fc11(0x1a5)]&&(this[_0x40fc11(0x1a5)][_0x40fc11(0x165)](),this[_0x40fc11(0x1a5)]=null),this[_0x40fc11(0x18a)]&&(this[_0x40fc11(0x18a)][_0x40fc11(0x165)](),this[_0x40fc11(0x18a)]=null);}[_0x103eef(0x1b9)](){const _0x33567c=_0x103eef;if(!this[_0x33567c(0x1bc)])return;if(!this[_0x33567c(0x1c2)]())return void(this[_0x33567c(0x1ab)]=!0x0);this[_0x33567c(0x1ab)]=!0x1;const _0x51a600=[...this[_0x33567c(0x162)],...this[_0x33567c(0x1d8)]],_0x53186f=this[_0x33567c(0x1e9)](),_0x2e8b8b=this[_0x33567c(0x180)](_0x53186f,_0x51a600),_0x3f35af=_0x53186f[_0x33567c(0x167)];_0x3f35af&&this[_0x33567c(0x1ac)](_0x3f35af),_0x53186f[_0x33567c(0x1b5)](),this[_0x33567c(0x166)](_0x51a600,_0x2e8b8b);}[_0x103eef(0x16b)](){const _0x28c2cc=_0x103eef;this[_0x28c2cc(0x1a5)]=this[_0x28c2cc(0x1e6)](),this[_0x28c2cc(0x18a)]=this[_0x28c2cc(0x1cc)](),this[_0x28c2cc(0x1a5)][_0x28c2cc(0x192)](),this[_0x28c2cc(0x1bc)][_0x28c2cc(0x158)](this[_0x28c2cc(0x1a5)][_0x28c2cc(0x1c4)]),this[_0x28c2cc(0x1a5)]['on'](_0x28c2cc(0x1e8),()=>{const _0x431325=_0x28c2cc;this[_0x431325(0x179)]();}),_0x2ab105({'emitter':this[_0x28c2cc(0x18a)],'contextElements':[this[_0x28c2cc(0x18a)][_0x28c2cc(0x1c4)],this[_0x28c2cc(0x1a5)][_0x28c2cc(0x1c4)]],'callback':()=>this[_0x28c2cc(0x1ad)](),'activator':()=>this[_0x28c2cc(0x1a5)][_0x28c2cc(0x16d)]});}[_0x103eef(0x1e6)](){const _0x2a2839=_0x103eef,_0x50e128=new _0x5ab417(this[_0x2a2839(0x18c)]);_0x50e128[_0x2a2839(0x19a)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x475399=[this[_0x2a2839(0x19d)][_0x2a2839(0x1de)][_0x2a2839(0x1e2)]];return this[_0x2a2839(0x19d)][_0x2a2839(0x1de)][_0x2a2839(0x159)]&&_0x475399[_0x2a2839(0x172)](this[_0x2a2839(0x19d)][_0x2a2839(0x1de)][_0x2a2839(0x159)]),_0x50e128[_0x2a2839(0x161)]({'attributes':{'class':_0x475399}}),_0x50e128;}[_0x103eef(0x1cc)](){const _0x6b1284=_0x103eef,_0x16f8b2=new _0x3f17ca(this[_0x6b1284(0x18c)]);return _0x16f8b2[_0x6b1284(0x161)]({'attributes':{'class':this[_0x6b1284(0x19d)][_0x6b1284(0x1de)][_0x6b1284(0x1b8)]}}),this[_0x6b1284(0x1cb)][_0x6b1284(0x1c1)](_0x16f8b2),_0x16f8b2;}[_0x103eef(0x1dd)](){const _0xd7e180=_0x103eef;if(this[_0xd7e180(0x18a)]&&(this[_0xd7e180(0x18a)][_0xd7e180(0x176)][_0xd7e180(0x1b0)](),this[_0xd7e180(0x1d8)][_0xd7e180(0x171)]>0x0)){this[_0xd7e180(0x1d8)][_0xd7e180(0x1d6)](_0x17208c=>{const _0x512666=_0xd7e180;_0x17208c[_0x512666(0x181)]();});const _0x557853=new _0x48e354(this[_0xd7e180(0x18c)]);_0x557853[_0xd7e180(0x15b)]({'tag':_0xd7e180(0x194),'attributes':{'class':this[_0xd7e180(0x19d)][_0xd7e180(0x1de)][_0xd7e180(0x163)]},'children':this[_0xd7e180(0x1d8)]}),this[_0xd7e180(0x18a)][_0xd7e180(0x176)][_0xd7e180(0x1c1)](_0x557853);}}[_0x103eef(0x179)](){const _0x450c57=_0x103eef;this[_0x450c57(0x1a5)][_0x450c57(0x16d)]?this[_0x450c57(0x1ad)]():this[_0x450c57(0x1ea)]();}[_0x103eef(0x17a)](){const _0x191a2f=_0x103eef,_0x27ac75=this[_0x191a2f(0x1d8)][_0x191a2f(0x171)]>0x0;this[_0x191a2f(0x1a5)]?.[_0x191a2f(0x1c4)]&&(this[_0x191a2f(0x1a5)][_0x191a2f(0x1c4)][_0x191a2f(0x189)][_0x191a2f(0x191)]=_0x27ac75?'':_0x191a2f(0x1a1));}[_0x103eef(0x1d0)](){const _0x5a3a3d=_0x103eef;this[_0x5a3a3d(0x1a5)]?.[_0x5a3a3d(0x16d)]&&this[_0x5a3a3d(0x18a)]?.[_0x5a3a3d(0x1c9)]&&this[_0x5a3a3d(0x1a5)][_0x5a3a3d(0x1c4)]&&this[_0x5a3a3d(0x18a)][_0x5a3a3d(0x16c)]({'target':this[_0x5a3a3d(0x1a5)][_0x5a3a3d(0x1c4)],'limiter':document[_0x5a3a3d(0x1bd)](_0x5a3a3d(0x182))});}[_0x103eef(0x1c5)](_0x58f1b3){const _0x41dd07=_0x103eef,_0x72461b=this[_0x41dd07(0x1bc)]?.[_0x41dd07(0x1be)][_0x41dd07(0x1c6)]()||_0x41dd07(0x194),_0x2580fa=this[_0x41dd07(0x1bc)]?.[_0x41dd07(0x1b6)];if(_0x2580fa){const _0x109913=_0x2580fa[0x0]||'',_0x321884=_0x58f1b3[_0x41dd07(0x1bd)]('.'+_0x109913),_0x375502=_0x58f1b3[_0x41dd07(0x1bd)](_0x72461b);return _0x321884||_0x375502||_0x58f1b3;}return _0x58f1b3[_0x41dd07(0x1bd)](_0x72461b)||_0x58f1b3;}[_0x103eef(0x1e1)](){const _0x381aee=_0x103eef,_0x4caafe=this[_0x381aee(0x16a)]?.[_0x381aee(0x1c4)]||this[_0x381aee(0x1bc)];if(!_0x4caafe)return ln;const _0xbca312=window[_0x381aee(0x1d1)](_0x4caafe)[_0x381aee(0x15a)];if(_0x381aee(0x1e5)===_0xbca312||_0x381aee(0x1c0)===_0xbca312||!_0xbca312){const _0x511007=_0x4caafe[_0x381aee(0x1d4)];if(_0x511007){const _0x8f352f=window[_0x381aee(0x1d1)](_0x511007);return _0x381aee(0x1e5)!==_0x8f352f[_0x381aee(0x15a)]?_0x8f352f[_0x381aee(0x15a)]:ln;}return ln;}return _0xbca312;}[_0x103eef(0x1bf)](_0x85f8c4,_0x50dcf1){const _0x3c81b1=_0x103eef;this[_0x3c81b1(0x19d)][_0x3c81b1(0x1de)][_0x3c81b1(0x186)]&&_0x85f8c4[_0x3c81b1(0x1b6)][_0x3c81b1(0x1c1)](this[_0x3c81b1(0x19d)][_0x3c81b1(0x1de)][_0x3c81b1(0x186)]),_0x85f8c4[_0x3c81b1(0x189)][_0x3c81b1(0x15a)]=_0x50dcf1,_0x85f8c4[_0x3c81b1(0x189)][_0x3c81b1(0x1b4)]=_0x3c81b1(0x178),_0x85f8c4[_0x3c81b1(0x189)][_0x3c81b1(0x177)]=_0x3c81b1(0x1aa),_0x85f8c4[_0x3c81b1(0x189)][_0x3c81b1(0x185)]=_0x3c81b1(0x1aa),_0x85f8c4[_0x3c81b1(0x189)][_0x3c81b1(0x1e7)]='0',_0x85f8c4[_0x3c81b1(0x189)][_0x3c81b1(0x168)]=_0x3c81b1(0x1a1),_0x85f8c4[_0x3c81b1(0x189)][_0x3c81b1(0x1dc)]='-1',_0x85f8c4[_0x3c81b1(0x189)][_0x3c81b1(0x1a4)]=_0x3c81b1(0x16e),_0x85f8c4[_0x3c81b1(0x189)][_0x3c81b1(0x191)]=_0x3c81b1(0x15d),_0x85f8c4[_0x3c81b1(0x189)][_0x3c81b1(0x1a9)]=_0x3c81b1(0x1b7);}[_0x103eef(0x1ac)](_0x39beda){const _0xafcf4=_0x103eef;_0x39beda[_0xafcf4(0x1d6)](({element:_0x55614e,originalDisplay:_0x202ca1,originalVisibility:_0xdd452c})=>{const _0x29bb2b=_0xafcf4;_0x55614e[_0x29bb2b(0x189)][_0x29bb2b(0x191)]=_0x202ca1,_0x55614e[_0x29bb2b(0x189)][_0x29bb2b(0x1a4)]=_0xdd452c;});}[_0x103eef(0x199)](_0x4bb0cc){const _0x583720=_0x103eef,_0x172ed0=[];let _0x1d11d7=_0x4bb0cc;for(;_0x1d11d7&&_0x1d11d7!==document[_0x583720(0x1a3)];){const _0xcdb2d5=window[_0x583720(0x1d1)](_0x1d11d7);_0x583720(0x1a1)!==_0xcdb2d5[_0x583720(0x191)]&&_0x583720(0x187)!==_0xcdb2d5[_0x583720(0x1a4)]||(_0x172ed0[_0x583720(0x172)]({'element':_0x1d11d7,'originalDisplay':_0x1d11d7[_0x583720(0x189)][_0x583720(0x191)],'originalVisibility':_0x1d11d7[_0x583720(0x189)][_0x583720(0x1a4)]}),_0x1d11d7[_0x583720(0x189)][_0x583720(0x191)]=_0x583720(0x1cf),_0x1d11d7[_0x583720(0x189)][_0x583720(0x1a4)]=_0x583720(0x15e)),_0x1d11d7=_0x1d11d7[_0x583720(0x1d4)];}return _0x172ed0;}[_0x103eef(0x157)](){const _0x428ff4=_0x103eef;let _0xb7a8b0,_0x11d9c9;return this[_0x428ff4(0x16a)]?.[_0x428ff4(0x1c4)]?(_0xb7a8b0=this[_0x428ff4(0x16a)][_0x428ff4(0x1c4)][_0x428ff4(0x18b)](!0x0),_0x11d9c9=this[_0x428ff4(0x1c5)](_0xb7a8b0)):(_0xb7a8b0=document[_0x428ff4(0x197)](_0x428ff4(0x194)),_0x11d9c9=_0xb7a8b0),{'calculationContainer':_0xb7a8b0,'targetContainer':_0x11d9c9};}[_0x103eef(0x1e9)](){const _0x1e6bee=_0x103eef,{calculationContainer:_0x392d5d,targetContainer:_0x43b819}=this[_0x1e6bee(0x157)](),_0x562053=this[_0x1e6bee(0x1e1)]();this[_0x1e6bee(0x1bf)](_0x392d5d,_0x562053);const _0x23a88d=this[_0x1e6bee(0x16a)]?.[_0x1e6bee(0x1c4)]||this[_0x1e6bee(0x1bc)],_0x7bab9c=_0x23a88d?.[_0x1e6bee(0x1d4)];_0x7bab9c?_0x7bab9c[_0x1e6bee(0x158)](_0x392d5d):document[_0x1e6bee(0x1a3)][_0x1e6bee(0x158)](_0x392d5d),_0x392d5d[_0x1e6bee(0x17b)]=_0x43b819;const _0x3cb8f6=this[_0x1e6bee(0x199)](_0x7bab9c||null);return _0x392d5d[_0x1e6bee(0x1db)],_0x392d5d[_0x1e6bee(0x167)]=_0x3cb8f6,_0x392d5d;}[_0x103eef(0x180)](_0x3e8b66,_0x5b83fe){const _0x3a3b19=_0x103eef,_0x1586bc=_0x3e8b66[_0x3a3b19(0x17b)]||_0x3e8b66,_0x5a6de4=[],{rowCount:_0x5d8a48}=this[_0x3a3b19(0x173)](_0x1586bc,_0x5b83fe);if(_0x5d8a48<=this[_0x3a3b19(0x19d)][_0x3a3b19(0x198)])return _0x5a6de4;const _0x43c182=_0x5b83fe[_0x3a3b19(0x170)]();for(;_0x43c182[_0x3a3b19(0x171)]>0x0;){if(this[_0x3a3b19(0x190)](_0x3e8b66,_0x1586bc,_0x43c182)){const _0xf07569=_0x5b83fe[_0x3a3b19(0x17c)](_0x2c53df=>!_0x43c182[_0x3a3b19(0x1e3)](_0x2c53df));_0x5a6de4[_0x3a3b19(0x172)](..._0xf07569);break;}if(!_0x43c182[_0x3a3b19(0x1af)]())break;}return _0x5a6de4;}[_0x103eef(0x173)](_0x1333e1,_0x30e8f5){const _0x4748ca=_0x103eef;_0x1333e1[_0x4748ca(0x193)]='',_0x30e8f5[_0x4748ca(0x1d6)](_0x327592=>{const _0x495348=_0x4748ca;if(_0x327592[_0x495348(0x1c4)]){const _0x5cd011=_0x327592[_0x495348(0x1c4)][_0x495348(0x18b)](!0x0);_0x1333e1[_0x495348(0x158)](_0x5cd011);}}),_0x1333e1[_0x4748ca(0x1db)];const _0x4269b4=_0x1333e1[_0x4748ca(0x160)],_0x28beea=[];return Array[_0x4748ca(0x1d3)](_0x4269b4)[_0x4748ca(0x1d6)](_0x5e133a=>{const _0x3baaa5=_0x4748ca,_0x452a16=_0x5e133a[_0x3baaa5(0x18d)]()[_0x3baaa5(0x177)];_0x28beea[_0x3baaa5(0x1cd)](_0x39e48a=>Math[_0x3baaa5(0x1c8)](_0x39e48a-_0x452a16)<this[_0x3baaa5(0x19d)][_0x3baaa5(0x18f)])||_0x28beea[_0x3baaa5(0x172)](_0x452a16);}),{'rowCount':_0x28beea[_0x4748ca(0x171)]};}[_0x103eef(0x164)](){const _0x237dd0=_0x103eef,_0x5cd663=document[_0x237dd0(0x197)](_0x237dd0(0x19f));return _0x5cd663[_0x237dd0(0x18e)]=this[_0x237dd0(0x19d)][_0x237dd0(0x1de)][_0x237dd0(0x1e2)],this[_0x237dd0(0x19d)][_0x237dd0(0x1de)][_0x237dd0(0x159)]&&_0x5cd663[_0x237dd0(0x1b6)][_0x237dd0(0x1c1)](this[_0x237dd0(0x19d)][_0x237dd0(0x1de)][_0x237dd0(0x159)]),_0x5cd663[_0x237dd0(0x1e0)]=_0x237dd0(0x1d5),_0x5cd663;}[_0x103eef(0x190)](_0x29dac1,_0x5e55d5,_0x47a289){const _0x459a57=_0x103eef;this[_0x459a57(0x173)](_0x5e55d5,_0x47a289);const _0x2d8eae=this[_0x459a57(0x164)]();_0x29dac1[_0x459a57(0x158)](_0x2d8eae),_0x29dac1[_0x459a57(0x1db)];const _0x4d5a5a=[..._0x5e55d5[_0x459a57(0x160)],_0x2d8eae],_0x48708a=[];_0x4d5a5a[_0x459a57(0x1d6)](_0x3f3853=>{const _0xe6aefa=_0x459a57,_0x123a99=_0x3f3853[_0xe6aefa(0x18d)]()[_0xe6aefa(0x177)];_0x48708a[_0xe6aefa(0x1cd)](_0x37abed=>Math[_0xe6aefa(0x1c8)](_0x37abed-_0x123a99)<this[_0xe6aefa(0x19d)][_0xe6aefa(0x18f)])||_0x48708a[_0xe6aefa(0x172)](_0x123a99);});const _0x5136f8=_0x48708a[_0x459a57(0x171)];return _0x2d8eae[_0x459a57(0x1b5)](),_0x5136f8<=this[_0x459a57(0x19d)][_0x459a57(0x198)];}[_0x103eef(0x15c)](_0x46de99,_0x50ef95){const _0x269bef=_0x103eef;this[_0x269bef(0x162)][_0x269bef(0x1b0)](),this[_0x269bef(0x1d8)][_0x269bef(0x1b0)](),_0x46de99[_0x269bef(0x1d6)](_0x491dfa=>{const _0x43d123=_0x269bef;_0x50ef95[_0x43d123(0x1e3)](_0x491dfa)?this[_0x43d123(0x1d8)][_0x43d123(0x1c1)](_0x491dfa):this[_0x43d123(0x162)][_0x43d123(0x1c1)](_0x491dfa);});}[_0x103eef(0x1b3)](_0x41ce4e){const _0x2037ea=_0x103eef;if(_0x41ce4e>0x0&&!this[_0x2037ea(0x1a5)]&&this[_0x2037ea(0x16b)](),_0x41ce4e>0x0&&this[_0x2037ea(0x1a5)]){const _0x3c2976=''+this[_0x2037ea(0x19d)][_0x2037ea(0x1a0)]+(_0x41ce4e<0x63?_0x41ce4e:'99');this[_0x2037ea(0x1a5)][_0x2037ea(0x1ce)]=_0x3c2976;}this[_0x2037ea(0x1dd)](),this[_0x2037ea(0x17a)](),this[_0x2037ea(0x1d0)]();}[_0x103eef(0x166)](_0x57563d,_0x2661e4){const _0x2ff5f3=_0x103eef;this[_0x2ff5f3(0x15c)](_0x57563d,_0x2661e4),this[_0x2ff5f3(0x1b3)](_0x2661e4[_0x2ff5f3(0x171)]);}[_0x103eef(0x1a8)](){const _0x2b116c=_0x103eef;this[_0x2b116c(0x1bc)]&&_0x2b116c(0x1b1)!=typeof IntersectionObserver&&(this[_0x2b116c(0x174)]=new IntersectionObserver(_0x5f4ef0=>{const _0x2149fd=_0x2b116c;_0x5f4ef0[0x0][_0x2149fd(0x17e)]&&this[_0x2149fd(0x1ab)]&&requestAnimationFrame(()=>{const _0x262742=_0x2149fd;this[_0x262742(0x1b9)]();});},{'threshold':0.01,'rootMargin':_0x2b116c(0x1d9)}),this[_0x2b116c(0x174)][_0x2b116c(0x1a2)](this[_0x2b116c(0x1bc)]));}[_0x103eef(0x1c2)](){const _0x3df925=_0x103eef;if(!this[_0x3df925(0x1bc)])return!0x1;if(!this[_0x3df925(0x1bc)][_0x3df925(0x19b)])return!0x1;const _0x4d54d8=this[_0x3df925(0x1bc)][_0x3df925(0x18d)]();if(0x0===_0x4d54d8[_0x3df925(0x15a)]||0x0===_0x4d54d8[_0x3df925(0x169)])return!0x1;const _0x35ef1b=window[_0x3df925(0x1bb)]||document[_0x3df925(0x1e4)][_0x3df925(0x184)],_0x20adfe=window[_0x3df925(0x19c)]||document[_0x3df925(0x1e4)][_0x3df925(0x195)],_0x333ba4=0xc8;return _0x4d54d8[_0x3df925(0x1ca)]>=-0xc8&&_0x4d54d8[_0x3df925(0x177)]<=_0x35ef1b+_0x333ba4&&_0x4d54d8[_0x3df925(0x1da)]>=-0xc8&&_0x4d54d8[_0x3df925(0x185)]<=_0x20adfe+_0x333ba4;}}
|