@ckeditor/ckeditor5-ai 47.4.0-alpha.6 → 47.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/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/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/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/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/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/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/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/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/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/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x5564(){const _0x3cc3b3=['196255zkjDDk','_getTransformedByInsertion','2841202wAkRko','_getTransformedByDeletion','createSelection','isObject','split','changes','toNone','delete','offset','parse','POSITIVE_INFINITY','merge','textNode',':$aiSuggestion','getShiftedBy','8067015peBlXa','type','isRegisteredAttribute','stickiness','suggestion:formatBlock:$fakeWrap:','isMarkedRemoveOperation','batch','isBlock','$elementName','key','backward','newName','createRange','insert','node','root','isAfter','clone','change','focus','name','$root','suggestion:attribute:','move','index','removeAttribute','forward','1505973HdkluA','add','nodeAfter','reverse','oldName','getFirstRange','stringify','createPositionFromPath','push','newValue','1954LdosiP','changeAttribute','data-id','suggestion:insertion:','_createFromRanges','sourcePosition','remove','applyOperation','newRange','431IUybnw','schema','modifySelection','parent','getOperations','slice','targetPosition','nodeBefore','$text','new','...','rename','range','word','SuggestionsConversion','data','cloneNode','138OyfsId','getMinimalFlatRanges','element','splitPosition','length','isBefore','plugins','createRangeOn','getMovedRangeStart','addOperation','get','howMany','setTo','children','7097560rALnKZ','removed','baseVersion','createPositionAt','isDocumentOperation','map','end','oldValue','getDiff','model','3712912AfSYXD','getTransformedByOperation','suggestion:deletion:','position','marker','DocumentCompare','path','moveTargetPosition','set','addAttribute','start','markers'];_0x5564=function(){return _0x3cc3b3;};return _0x5564();}(function(_0x31cd61,_0x2fc720){const _0x1ded11=_0x5d6b,_0x37b344=_0x31cd61();while(!![]){try{const _0x41388b=parseInt(_0x1ded11(0x1f1))/0x1*(-parseInt(_0x1ded11(0x1e8))/0x2)+-parseInt(_0x1ded11(0x1de))/0x3+parseInt(_0x1ded11(0x21a))/0x4+parseInt(_0x1ded11(0x226))/0x5*(-parseInt(_0x1ded11(0x202))/0x6)+-parseInt(_0x1ded11(0x228))/0x7+parseInt(_0x1ded11(0x210))/0x8+parseInt(_0x1ded11(0x1c3))/0x9;if(_0x41388b===_0x2fc720)break;else _0x37b344['push'](_0x37b344['shift']());}catch(_0x2f322d){_0x37b344['push'](_0x37b344['shift']());}}}(_0x5564,0x75315));import{findOne as _0x252097,getAttribute as _0x242686,Document as _0x121913,serialize as _0x3ca3ab,parse as _0x16f2e3}from'./htmlparser.js';import{fixElementSuggestionRange as _0x2407a4}from'ckeditor5-collaboration/src/collaboration-core.js';import{ModelRange as _0x2a0091,_DetachOperation as _0x25ac04,_removeFromModelNodeList as _0x46387b,_insertIntoModelNodeList as _0x3b6a9c}from'ckeditor5/src/engine.js';import{uid as _0x4f8875}from'ckeditor5/src/utils.js';export function getSuggestionPartsFromReply({editor:_0x1c400e,changeGroups:_0x33a924,documentContextContent:_0x33cc8b,showDiff:_0x5b4e41,trimUnchanged:_0xad6b8f=!0x0}){const _0x1133b6=_0x5d6b;return _0x33a924[_0x1133b6(0x215)](_0x178638=>{const _0x247036=_0x1133b6,_0x977f1d=new _0x121913([]),_0x41379b=new _0x121913([]);for(const _0x2738c4 of _0x178638[_0x247036(0x22d)])if(_0x5b4e41&&_0x247036(0x211)==_0x2738c4[_0x247036(0x1c4)]||_0x41379b[_0x247036(0x20f)][_0x247036(0x1e6)](_0x2738c4[_0x247036(0x1d1)][_0x247036(0x201)](!0x0)),_0x247036(0x1fa)!=_0x2738c4[_0x247036(0x1c4)]&&(_0x5b4e41||_0x247036(0x211)!=_0x2738c4[_0x247036(0x1c4)])){const _0x575634=_0x252097(_0x4a9027=>_0x242686(_0x4a9027,_0x247036(0x1ea))==_0x2738c4['id'],_0x33cc8b,!0x0);_0x575634&&_0x977f1d[_0x247036(0x20f)][_0x247036(0x1e6)](_0x575634[_0x247036(0x201)](!0x0));}const {content:_0x45d4a1,hasChanges:_0x42da1e}=function(_0x591873,_0x2f3392,_0x2ffa26,_0x1441b4,_0x1cd879=!0x0){const _0xe0b01f=_0x247036,_0x336407=_0x591873[_0xe0b01f(0x208)][_0xe0b01f(0x20c)](_0xe0b01f(0x21f)),_0xa5671f=_0x3ca3ab(_0x2f3392),_0x578709=_0x3ca3ab(_0x2ffa26),_0x5116ea=_0x591873[_0xe0b01f(0x200)][_0xe0b01f(0x1bd)](_0xa5671f,_0xe0b01f(0x1d8)),_0x4d8f77=_0x591873[_0xe0b01f(0x219)][_0xe0b01f(0x213)](_0x5116ea,0x0),_0x2d9cd6=_0x336407[_0xe0b01f(0x218)](_0xa5671f,_0x578709,{'anchor':_0x4d8f77,'markDeletions':_0x1441b4}),_0xb11776=_0x2d9cd6[_0xe0b01f(0x1f5)]();if(0x0==_0xb11776[_0xe0b01f(0x206)])return{'content':_0x2f3392[_0xe0b01f(0x201)](!0x0),'hasChanges':!0x1};_0x1441b4?function(_0x43e277,_0x5f2bfd,_0x4288d7){const _0x2f15b0=_0xe0b01f;if(0x0==_0x43e277[_0x2f15b0(0x206)])return;const _0x35a019=_0x4288d7[_0x2f15b0(0x208)][_0x2f15b0(0x20c)](_0x2f15b0(0x21f)),_0x4838f0=_0x4288d7[_0x2f15b0(0x208)][_0x2f15b0(0x20c)](_0x2f15b0(0x1ff));_0x4288d7[_0x2f15b0(0x219)][_0x2f15b0(0x1d5)](_0x4865a5=>{const _0x16d623=_0x2f15b0,_0x324a70=new Set();for(let _0x1a1a68=0x0;_0x1a1a68<_0x43e277[_0x16d623(0x206)];_0x1a1a68++){const _0x1e7530=_0x43e277[_0x1a1a68];if(_0x1e7530[_0x16d623(0x212)]=null,_0x1e7530[_0x16d623(0x214)]=!0x1,_0x35a019[_0x16d623(0x1c8)](_0x1e7530)){const _0xa206bd=_0x2407a4(_0x1e7530[_0x16d623(0x1f0)],_0x4288d7[_0x16d623(0x219)]),_0x401303=_0x16d623(0x21c)+_0x4f8875()+_0x16d623(0x1c1);_0x5f2bfd[_0x16d623(0x225)][_0x16d623(0x222)](_0x401303,_0xa206bd);}else switch(_0x1e7530[_0x16d623(0x1c4)]){case _0x16d623(0x1fc):{if(_0x1e7530[_0x16d623(0x1e2)]==_0x1e7530[_0x16d623(0x1ce)])break;_0x4865a5[_0x16d623(0x1c9)][_0x16d623(0x20b)](_0x1e7530),_0x4288d7[_0x16d623(0x219)][_0x16d623(0x1ef)](_0x1e7530);const _0x2dd278=_0x16d623(0x1cb),_0x4fb4ca=_0x1e7530[_0x16d623(0x21d)],_0x282e8d=_0x4288d7[_0x16d623(0x219)][_0x16d623(0x1cf)](_0x4fb4ca,_0x4288d7[_0x16d623(0x219)][_0x16d623(0x213)](_0x4fb4ca[_0x16d623(0x1e0)],_0x16d623(0x216))),_0x3f987e=_0x16d623(0x1d9)+_0x2dd278+':'+_0x4f8875()+_0x16d623(0x1c1);_0x5f2bfd[_0x16d623(0x225)][_0x16d623(0x222)](_0x3f987e,_0x282e8d);break;}case _0x16d623(0x223):case _0x16d623(0x1dc):case _0x16d623(0x1e9):{if(_0x1e7530[_0x16d623(0x217)]==_0x1e7530[_0x16d623(0x1e7)])break;_0x4865a5[_0x16d623(0x1c9)][_0x16d623(0x20b)](_0x1e7530),_0x4288d7[_0x16d623(0x219)][_0x16d623(0x1ef)](_0x1e7530);const _0x2f7109=_0x1e7530[_0x16d623(0x1cc)];if(!_0x4838f0[_0x16d623(0x1c5)](_0x2f7109))break;const _0xe796b5=_0x2407a4(_0x1e7530[_0x16d623(0x1fd)],_0x4288d7[_0x16d623(0x219)]),_0x152258=_0x16d623(0x1d9)+_0x2f7109+':'+_0x4f8875()+_0x16d623(0x1c1);_0x5f2bfd[_0x16d623(0x225)][_0x16d623(0x222)](_0x152258,_0xe796b5);break;}case _0x16d623(0x1d0):{_0x4865a5[_0x16d623(0x1c9)][_0x16d623(0x20b)](_0x1e7530),_0x4288d7[_0x16d623(0x219)][_0x16d623(0x1ef)](_0x1e7530);if(_0x43e277[_0x1a1a68+0x1]&&_0x16d623(0x1da)==_0x43e277[_0x1a1a68+0x1][_0x16d623(0x1c4)]){to(_0x5f2bfd,_0x1e7530);break;}const _0x18ea71=_0x1e7530[_0x16d623(0x21d)],_0x31459f=_0x1e7530[_0x16d623(0x20d)],_0xe156f4=_0x2407a4(_0x4288d7[_0x16d623(0x219)][_0x16d623(0x1cf)](_0x18ea71,_0x18ea71[_0x16d623(0x1c2)](_0x31459f)),_0x4288d7[_0x16d623(0x219)]),_0x2c6f6b=_0x16d623(0x1eb)+_0x4f8875()+_0x16d623(0x1c1);_0x5f2bfd[_0x16d623(0x225)][_0x16d623(0x222)](_0x2c6f6b,_0xe156f4);break;}case _0x16d623(0x22c):{_0x4865a5[_0x16d623(0x1c9)][_0x16d623(0x20b)](_0x1e7530),_0x4288d7[_0x16d623(0x219)][_0x16d623(0x1ef)](_0x1e7530);const _0x2a22ec=_0x1e7530[_0x16d623(0x205)],_0x56103f=_0x1e7530[_0x16d623(0x221)],_0x252312=_0x4288d7[_0x16d623(0x219)][_0x16d623(0x1cf)](_0x2a22ec,_0x56103f),_0x31fc32=_0x16d623(0x1eb)+_0x4f8875()+_0x16d623(0x1c1);_0x5f2bfd[_0x16d623(0x225)][_0x16d623(0x222)](_0x31fc32,_0x252312);break;}case _0x16d623(0x1da):{_0x4865a5[_0x16d623(0x1c9)][_0x16d623(0x20b)](_0x1e7530),_0x4288d7[_0x16d623(0x219)][_0x16d623(0x1ef)](_0x1e7530),_0x43e277[_0x1a1a68-0x1]&&_0x16d623(0x1d0)==_0x43e277[_0x1a1a68-0x1][_0x16d623(0x1c4)]&&to(_0x5f2bfd,_0x1e7530);const _0x467095=_0x1e7530[_0x16d623(0x20a)](),_0x393a11=_0x1e7530[_0x16d623(0x20d)];for(let _0x40991b=0x0;_0x40991b<_0x393a11;_0x40991b++){const _0x15f0ed=_0x467095[_0x16d623(0x1c2)](_0x40991b)[_0x16d623(0x1e0)];_0x324a70[_0x16d623(0x1df)](_0x15f0ed);}break;}case _0x16d623(0x1ee):{const _0x51d827=_0x1e7530[_0x16d623(0x1ed)],_0x4a1b82=_0x1e7530[_0x16d623(0x20d)],_0x52a20e=new _0x25ac04(_0x51d827,_0x4a1b82);_0x4865a5[_0x16d623(0x1c9)][_0x16d623(0x20b)](_0x52a20e),_0x4288d7[_0x16d623(0x219)][_0x16d623(0x1ef)](_0x52a20e);break;}}}for(const _0x281ace of _0x324a70){const _0x32a9c9=_0x4288d7[_0x16d623(0x219)][_0x16d623(0x209)](_0x281ace),_0x15acac=_0x16d623(0x1c7)+_0x4f8875()+_0x16d623(0x1c1);_0x5f2bfd[_0x16d623(0x225)][_0x16d623(0x222)](_0x15acac,_0x2407a4(_0x32a9c9,_0x4288d7[_0x16d623(0x219)]));}});}(_0xb11776,_0x5116ea,_0x591873):_0x591873[_0xe0b01f(0x219)][_0xe0b01f(0x1d5)](_0x2ec564=>{const _0x50f389=_0xe0b01f;for(const _0x19940d of _0xb11776)if(_0x50f389(0x1ee)==_0x19940d[_0x50f389(0x1c4)]){const _0x59e426=_0x19940d[_0x50f389(0x1ed)],_0x38e471=_0x19940d[_0x50f389(0x20d)],_0x1cccad=new _0x25ac04(_0x59e426,_0x38e471);_0x2ec564[_0x50f389(0x1c9)][_0x50f389(0x20b)](_0x1cccad),_0x591873[_0x50f389(0x219)][_0x50f389(0x1ef)](_0x1cccad);}else{if(_0x50f389(0x21e)==_0x19940d[_0x50f389(0x1c4)]){const _0x34b481=_0x19940d[_0x50f389(0x1d7)],_0x3799a3=_0x19940d[_0x50f389(0x1f0)];_0x5116ea[_0x50f389(0x225)][_0x50f389(0x222)](_0x34b481,_0x3799a3);}else _0x19940d[_0x50f389(0x212)]=null,_0x19940d[_0x50f389(0x214)]=!0x1,_0x2ec564[_0x50f389(0x1c9)][_0x50f389(0x20b)](_0x19940d),_0x591873[_0x50f389(0x219)][_0x50f389(0x1ef)](_0x19940d);}});if(_0x1cd879){const _0x3802c0=getMinimalSelection(_0x591873,_0xb11776,_0x5116ea);expandSelectionWithContext(_0x591873[_0xe0b01f(0x219)],_0x3802c0),function(_0x30813f,_0x26435b){const _0x2644c3=_0xe0b01f,_0x44f13=_0x26435b[_0x2644c3(0x1e3)]()[_0x2644c3(0x224)];let _0x5536c4=_0x26435b[_0x2644c3(0x1e3)]()[_0x2644c3(0x216)];const _0x3dc409=_0x44f13[_0x2644c3(0x1d2)];(_0x5536c4[_0x2644c3(0x1c0)]||_0x5536c4[_0x2644c3(0x1e0)]&&_0x5536c4[_0x2644c3(0x1e0)]['is'](_0x2644c3(0x1f9)))&&(_0x3b6a9c(_0x5536c4,_0x2644c3(0x1fb)),_0x5536c4=_0x5536c4[_0x2644c3(0x1c2)](0x3)),(_0x44f13[_0x2644c3(0x1c0)]||_0x44f13[_0x2644c3(0x1f8)]&&_0x44f13[_0x2644c3(0x1f8)]['is'](_0x2644c3(0x1f9)))&&(_0x3b6a9c(_0x44f13,_0x2644c3(0x1fb)),function(_0x2a6ad0,_0x55bfd5,_0x25416e){const _0x2d883a=_0x2644c3;for(let [_0x4c2a31,_0x4a48da]of _0x2a6ad0[_0x2d883a(0x225)]){const _0x39c223=_0x4a48da[_0x2d883a(0x227)](_0x55bfd5,_0x25416e,!0x1);_0x4a48da=_0x39c223[0x0],_0x2a6ad0[_0x2d883a(0x225)][_0x2d883a(0x222)](_0x4c2a31,_0x4a48da);}}(_0x3dc409,_0x44f13,0x3),_0x44f13[_0x2644c3(0x1f4)]==_0x5536c4[_0x2644c3(0x1f4)]&&(_0x5536c4=_0x5536c4[_0x2644c3(0x1c2)](0x3)));const _0xd5ff9c=_0x30813f[_0x2644c3(0x1cf)](_0x30813f[_0x2644c3(0x213)](_0x3dc409,0x0),_0x44f13),_0x436001=_0x30813f[_0x2644c3(0x1cf)](_0x5536c4,_0x30813f[_0x2644c3(0x213)](_0x3dc409,_0x2644c3(0x216))),_0x15aba4=[..._0xd5ff9c[_0x2644c3(0x203)](),..._0x436001[_0x2644c3(0x203)]()];_0x15aba4[_0x2644c3(0x1e1)]();for(const _0x2a86df of _0x15aba4)_0x46387b(_0x2a86df),_transformMarkersByDeletion(_0x3dc409,_0x2a86df);}(_0x591873[_0xe0b01f(0x219)],_0x3802c0);}const _0x265c28=_0x591873[_0xe0b01f(0x200)][_0xe0b01f(0x1e4)](_0x5116ea,{'showSuggestionHighlights':!0x0});return{'content':_0x16f2e3(_0x265c28),'hasChanges':!0x0};}(_0x1c400e,_0x977f1d,_0x41379b,_0x5b4e41,_0xad6b8f);return{'type':_0x178638[_0x247036(0x22d)][0x0][_0x247036(0x1c4)],'index':_0x178638[_0x247036(0x1db)],'content':_0x45d4a1,'hasChanges':_0x42da1e};});}function to(_0x1fca6a,_0xe048af){const _0x4ea527=_0x5d6b;for(const [_0x26874a,_0x42e82a]of _0x1fca6a[_0x4ea527(0x225)]){const _0x93386a=_0x2a0091[_0x4ea527(0x1ec)](_0x42e82a[_0x4ea527(0x21b)](_0xe048af));_0x1fca6a[_0x4ea527(0x225)][_0x4ea527(0x222)](_0x26874a,_0x93386a);}}function _0x5d6b(_0x5cf9eb,_0x5bbf78){const _0x55647e=_0x5564();return _0x5d6b=function(_0x5d6b13,_0x5c53cc){_0x5d6b13=_0x5d6b13-0x1bd;let _0x3768f6=_0x55647e[_0x5d6b13];return _0x3768f6;},_0x5d6b(_0x5cf9eb,_0x5bbf78);}export function getMinimalSelection(_0x5b1ab0,_0x496a84,_0x5cdfa2){const _0x23add9=_0x5d6b,_0x402682=_0x5b1ab0[_0x23add9(0x208)][_0x23add9(0x20c)](_0x23add9(0x21f));let _0x5d42f5=_0x5b1ab0[_0x23add9(0x219)][_0x23add9(0x213)](_0x5cdfa2,Number[_0x23add9(0x1be)]),_0x5e578f=_0x5b1ab0[_0x23add9(0x219)][_0x23add9(0x213)](_0x5cdfa2,0x0);for(const _0x9253ef of _0x496a84){let _0x47cb6f,_0x5ed4bd;if(_0x402682[_0x23add9(0x1c8)](_0x9253ef))_0x47cb6f=_0x9253ef[_0x23add9(0x1f0)][_0x23add9(0x224)],_0x5ed4bd=_0x9253ef[_0x23add9(0x1f0)][_0x23add9(0x216)];else switch(_0x5d42f5=_0x5d42f5[_0x23add9(0x21b)](_0x9253ef),_0x5e578f=_0x5e578f[_0x23add9(0x21b)](_0x9253ef),_0x9253ef[_0x23add9(0x1c4)]){case _0x23add9(0x1fc):_0x47cb6f=_0x9253ef[_0x23add9(0x21d)],_0x5ed4bd=_0x47cb6f[_0x23add9(0x1c2)](0x1);break;case _0x23add9(0x223):case _0x23add9(0x1dc):case _0x23add9(0x1e9):_0x47cb6f=_0x9253ef[_0x23add9(0x1fd)][_0x23add9(0x224)],_0x5ed4bd=_0x9253ef[_0x23add9(0x1fd)][_0x23add9(0x216)];break;case _0x23add9(0x1d0):_0x47cb6f=_0x9253ef[_0x23add9(0x21d)],_0x5ed4bd=_0x47cb6f[_0x23add9(0x1c2)](_0x9253ef[_0x23add9(0x20d)]);break;case _0x23add9(0x22c):_0x47cb6f=_0x9253ef[_0x23add9(0x205)],_0x5ed4bd=_0x9253ef[_0x23add9(0x221)];break;case _0x23add9(0x1bf):{const _0x3f7d09=_0x9253ef[_0x23add9(0x1f7)][_0x23add9(0x220)][_0x23add9(0x1f6)](0x0,-0x1);_0x47cb6f=_0x5b1ab0[_0x23add9(0x219)][_0x23add9(0x1e5)](_0x5cdfa2,_0x3f7d09),_0x5ed4bd=_0x47cb6f[_0x23add9(0x1c2)](0x1);break;}case _0x23add9(0x1ee):{const _0x4e7651=_0x9253ef[_0x23add9(0x20d)],_0x2da7a2=_0x9253ef[_0x23add9(0x1ed)][_0x23add9(0x227)](_0x9253ef[_0x23add9(0x1f7)],_0x4e7651),_0x4c7389=_0x9253ef[_0x23add9(0x20a)]();_0x23add9(0x1ee)==_0x9253ef[_0x23add9(0x1c4)]?(_0x47cb6f=_0x2da7a2,_0x5ed4bd=_0x2da7a2):(_0x47cb6f=_0x4c7389,_0x5ed4bd=_0x4c7389[_0x23add9(0x1c2)](_0x4e7651));break;}}_0x47cb6f&&_0x47cb6f[_0x23add9(0x207)](_0x5d42f5)&&(_0x5d42f5=_0x47cb6f[_0x23add9(0x1d4)](),_0x5d42f5[_0x23add9(0x1c6)]=_0x23add9(0x22e)),_0x5ed4bd&&_0x5ed4bd[_0x23add9(0x1d3)](_0x5e578f)&&(_0x5e578f=_0x5ed4bd[_0x23add9(0x1d4)](),_0x5e578f[_0x23add9(0x1c6)]=_0x23add9(0x22e));}return _0x5b1ab0[_0x23add9(0x219)][_0x23add9(0x22a)](_0x5b1ab0[_0x23add9(0x219)][_0x23add9(0x1cf)](_0x5d42f5,_0x5e578f));}export function expandSelectionWithContext(_0x1854ab,_0x1b42ec){const _0x13527f=_0x5d6b;oo(_0x1854ab,_0x1b42ec,_0x13527f(0x1dd));const _0x46975e=_0x1b42ec[_0x13527f(0x1e3)]();_0x1b42ec[_0x13527f(0x20e)]([]),_0x1b42ec[_0x13527f(0x20e)](_0x46975e,{'backward':!0x0}),oo(_0x1854ab,_0x1b42ec,_0x13527f(0x1cd));}function oo(_0x25c434,_0xda8f7a,_0x96e641){const _0x2fbfe9=_0x5d6b;let _0x120670=0x14;for(;_0x120670;){_0x25c434[_0x2fbfe9(0x1f3)](_0xda8f7a,{'unit':_0x2fbfe9(0x1fe),'direction':_0x96e641}),_0x120670--;const _0x37bb90=_0xda8f7a[_0x2fbfe9(0x1d6)][_0x2fbfe9(0x1dd)==_0x96e641?_0x2fbfe9(0x1f8):_0x2fbfe9(0x1e0)];if(_0x37bb90&&_0x37bb90['is'](_0x2fbfe9(0x204))&&_0x25c434[_0x2fbfe9(0x1f2)][_0x2fbfe9(0x1ca)](_0x37bb90)&&_0x25c434[_0x2fbfe9(0x1f2)][_0x2fbfe9(0x22b)](_0x37bb90))break;}}export function _transformMarkersByDeletion(_0x328a89,_0x20a0f5){const _0x2810cf=_0x5d6b;for(const [_0x12a4f1,_0xc0b785]of _0x328a89[_0x2810cf(0x225)]){const _0xdefbfa=_0xc0b785[_0x2810cf(0x229)](_0x20a0f5[_0x2810cf(0x224)],_0x20a0f5[_0x2810cf(0x216)][_0x2810cf(0x230)]-_0x20a0f5[_0x2810cf(0x224)][_0x2810cf(0x230)]);null!=_0xdefbfa?_0x328a89[_0x2810cf(0x225)][_0x2810cf(0x222)](_0x12a4f1,_0xdefbfa):_0x328a89[_0x2810cf(0x225)][_0x2810cf(0x22f)](_0x12a4f1);}}
|
|
23
|
+
function _0x114c(_0x4b897c,_0x111384){const _0x1c3db2=_0x1c3d();return _0x114c=function(_0x114ca7,_0x511933){_0x114ca7=_0x114ca7-0x13c;let _0x24b14b=_0x1c3db2[_0x114ca7];return _0x24b14b;},_0x114c(_0x4b897c,_0x111384);}(function(_0x3a9133,_0x32be11){const _0x2b6bf6=_0x114c,_0x8974a0=_0x3a9133();while(!![]){try{const _0x1523b0=parseInt(_0x2b6bf6(0x195))/0x1*(parseInt(_0x2b6bf6(0x173))/0x2)+-parseInt(_0x2b6bf6(0x17c))/0x3+parseInt(_0x2b6bf6(0x13d))/0x4*(parseInt(_0x2b6bf6(0x193))/0x5)+parseInt(_0x2b6bf6(0x187))/0x6+-parseInt(_0x2b6bf6(0x1a1))/0x7*(-parseInt(_0x2b6bf6(0x141))/0x8)+-parseInt(_0x2b6bf6(0x14f))/0x9+parseInt(_0x2b6bf6(0x182))/0xa*(-parseInt(_0x2b6bf6(0x144))/0xb);if(_0x1523b0===_0x32be11)break;else _0x8974a0['push'](_0x8974a0['shift']());}catch(_0x231ea0){_0x8974a0['push'](_0x8974a0['shift']());}}}(_0x1c3d,0x55674));import{findOne as _0x532510,getAttribute as _0x475c6e,Document as _0x35a305,serialize as _0x38b3f9,parse as _0xc71a93}from'./htmlparser.js';function _0x1c3d(){const _0xbee262=['rename','schema','length','createRange','suggestion:deletion:','applyOperation','newRange','isBefore','get','getFirstRange','path','baseVersion','POSITIVE_INFINITY','textNode','createPositionAt','$text','suggestion:formatBlock:$fakeWrap:','change','isRegisteredAttribute','2688wQqIJt','end','clone','key','isAfter','nodeBefore','push','plugins','parse','1536225DRFGcs','position','$root','_getTransformedByDeletion','getMinimalFlatRanges','model','32170HEzWvU','markers','node','offset','start','917142LaFQpd','changes','delete','splitPosition','split','...','isMarkedRemoveOperation','addAttribute','getTransformedByOperation','createRangeOn','index','add','1460UHxwmi','getShiftedBy','430PRwalG','name','word','nodeAfter','DocumentCompare','suggestion:insertion:','setTo','removeAttribute','set','insert','stringify','oldValue','2956583xbVmXF','marker','isObject','createSelection','_getTransformedByInsertion','isDocumentOperation',':$aiSuggestion','addOperation','batch','createPositionFromPath','focus','$elementName','type','forward','map','children','SuggestionsConversion','backward','3436oeKgpy','removed','moveTargetPosition','isBlock','8rudorN','parent','data-id','1595mDQhpR','move','cloneNode','newValue','getMovedRangeStart','getDiff','changeAttribute','sourcePosition','stickiness','newName','root','680598CdMpen','toNone','_createFromRanges','reverse','element','merge','modifySelection','suggestion:attribute:','data','targetPosition','range','remove','howMany','oldName','new','slice','getOperations'];_0x1c3d=function(){return _0xbee262;};return _0x1c3d();}import{fixElementSuggestionRange as _0x26d547}from'ckeditor5-collaboration/src/collaboration-core.js';import{ModelRange as _0x15d486,_DetachOperation as _0x17de60,_removeFromModelNodeList as _0x3e26f9,_insertIntoModelNodeList as _0x2177a0}from'ckeditor5/src/engine.js';import{uid as _0xe737e5}from'ckeditor5/src/utils.js';export function getSuggestionPartsFromReply({editor:_0x22a3c8,changeGroups:_0x4177db,documentContextContent:_0x52e0fe,showDiff:_0x32b37f,trimUnchanged:_0x3242f4=!0x0}){const _0x38d54e=_0x114c;return _0x4177db[_0x38d54e(0x1af)](_0x1c1c0f=>{const _0x275920=_0x38d54e,_0x414c35=new _0x35a305([]),_0x7c009c=new _0x35a305([]);for(const _0x44e3e8 of _0x1c1c0f[_0x275920(0x188)])if(_0x32b37f&&_0x275920(0x13e)==_0x44e3e8[_0x275920(0x1ad)]||_0x7c009c[_0x275920(0x1b0)][_0x275920(0x179)](_0x44e3e8[_0x275920(0x184)][_0x275920(0x146)](!0x0)),_0x275920(0x15d)!=_0x44e3e8[_0x275920(0x1ad)]&&(_0x32b37f||_0x275920(0x13e)!=_0x44e3e8[_0x275920(0x1ad)])){const _0x390a8e=_0x532510(_0x1757db=>_0x475c6e(_0x1757db,_0x275920(0x143))==_0x44e3e8['id'],_0x52e0fe,!0x0);_0x390a8e&&_0x414c35[_0x275920(0x1b0)][_0x275920(0x179)](_0x390a8e[_0x275920(0x146)](!0x0));}const {content:_0x55db23,hasChanges:_0x5843b6}=function(_0x5928a5,_0x480881,_0x28421b,_0x41ee7a,_0x14664e=!0x0){const _0x6a5b46=_0x275920,_0x3e1f5a=_0x5928a5[_0x6a5b46(0x17a)][_0x6a5b46(0x168)](_0x6a5b46(0x199)),_0x121f1a=_0x38b3f9(_0x480881),_0x31a0f4=_0x38b3f9(_0x28421b),_0x5afe5b=_0x5928a5[_0x6a5b46(0x157)][_0x6a5b46(0x17b)](_0x121f1a,_0x6a5b46(0x17e)),_0x12850f=_0x5928a5[_0x6a5b46(0x181)][_0x6a5b46(0x16e)](_0x5afe5b,0x0),_0x1cb54b=_0x3e1f5a[_0x6a5b46(0x149)](_0x121f1a,_0x31a0f4,{'anchor':_0x12850f,'markDeletions':_0x41ee7a}),_0x2901a8=_0x1cb54b[_0x6a5b46(0x15f)]();if(0x0==_0x2901a8[_0x6a5b46(0x162)])return{'content':_0x480881[_0x6a5b46(0x146)](!0x0),'hasChanges':!0x1};_0x41ee7a?function(_0x3a648b,_0x36e60b,_0x2b8392){const _0x53003d=_0x6a5b46;if(0x0==_0x3a648b[_0x53003d(0x162)])return;const _0x469c5e=_0x2b8392[_0x53003d(0x17a)][_0x53003d(0x168)](_0x53003d(0x199)),_0x4ba9c5=_0x2b8392[_0x53003d(0x17a)][_0x53003d(0x168)](_0x53003d(0x1b1));_0x2b8392[_0x53003d(0x181)][_0x53003d(0x171)](_0x4d138f=>{const _0x41eadd=_0x53003d,_0x6f60b2=new Set();for(let _0x43ffaf=0x0;_0x43ffaf<_0x3a648b[_0x41eadd(0x162)];_0x43ffaf++){const _0x20cb61=_0x3a648b[_0x43ffaf];if(_0x20cb61[_0x41eadd(0x16b)]=null,_0x20cb61[_0x41eadd(0x1a6)]=!0x1,_0x469c5e[_0x41eadd(0x18d)](_0x20cb61)){const _0x6df1ac=_0x26d547(_0x20cb61[_0x41eadd(0x166)],_0x2b8392[_0x41eadd(0x181)]),_0x419ec9=_0x41eadd(0x164)+_0xe737e5()+_0x41eadd(0x1a7);_0x36e60b[_0x41eadd(0x183)][_0x41eadd(0x19d)](_0x419ec9,_0x6df1ac);}else switch(_0x20cb61[_0x41eadd(0x1ad)]){case _0x41eadd(0x160):{if(_0x20cb61[_0x41eadd(0x15c)]==_0x20cb61[_0x41eadd(0x14d)])break;_0x4d138f[_0x41eadd(0x1a9)][_0x41eadd(0x1a8)](_0x20cb61),_0x2b8392[_0x41eadd(0x181)][_0x41eadd(0x165)](_0x20cb61);const _0x15f3ed=_0x41eadd(0x1ac),_0x4ed8cc=_0x20cb61[_0x41eadd(0x17d)],_0x2a2ca9=_0x2b8392[_0x41eadd(0x181)][_0x41eadd(0x163)](_0x4ed8cc,_0x2b8392[_0x41eadd(0x181)][_0x41eadd(0x16e)](_0x4ed8cc[_0x41eadd(0x198)],_0x41eadd(0x174))),_0x1e647b=_0x41eadd(0x156)+_0x15f3ed+':'+_0xe737e5()+_0x41eadd(0x1a7);_0x36e60b[_0x41eadd(0x183)][_0x41eadd(0x19d)](_0x1e647b,_0x2a2ca9);break;}case _0x41eadd(0x18e):case _0x41eadd(0x19c):case _0x41eadd(0x14a):{if(_0x20cb61[_0x41eadd(0x1a0)]==_0x20cb61[_0x41eadd(0x147)])break;_0x4d138f[_0x41eadd(0x1a9)][_0x41eadd(0x1a8)](_0x20cb61),_0x2b8392[_0x41eadd(0x181)][_0x41eadd(0x165)](_0x20cb61);const _0x1cf5f2=_0x20cb61[_0x41eadd(0x176)];if(!_0x4ba9c5[_0x41eadd(0x172)](_0x1cf5f2))break;const _0x5db964=_0x26d547(_0x20cb61[_0x41eadd(0x159)],_0x2b8392[_0x41eadd(0x181)]),_0xc8814f=_0x41eadd(0x156)+_0x1cf5f2+':'+_0xe737e5()+_0x41eadd(0x1a7);_0x36e60b[_0x41eadd(0x183)][_0x41eadd(0x19d)](_0xc8814f,_0x5db964);break;}case _0x41eadd(0x19e):{_0x4d138f[_0x41eadd(0x1a9)][_0x41eadd(0x1a8)](_0x20cb61),_0x2b8392[_0x41eadd(0x181)][_0x41eadd(0x165)](_0x20cb61);if(_0x3a648b[_0x43ffaf+0x1]&&_0x41eadd(0x145)==_0x3a648b[_0x43ffaf+0x1][_0x41eadd(0x1ad)]){ro(_0x36e60b,_0x20cb61);break;}const _0x26b312=_0x20cb61[_0x41eadd(0x17d)],_0x3194de=_0x20cb61[_0x41eadd(0x15b)],_0x3c4270=_0x26d547(_0x2b8392[_0x41eadd(0x181)][_0x41eadd(0x163)](_0x26b312,_0x26b312[_0x41eadd(0x194)](_0x3194de)),_0x2b8392[_0x41eadd(0x181)]),_0x43b3fd=_0x41eadd(0x19a)+_0xe737e5()+_0x41eadd(0x1a7);_0x36e60b[_0x41eadd(0x183)][_0x41eadd(0x19d)](_0x43b3fd,_0x3c4270);break;}case _0x41eadd(0x18b):{_0x4d138f[_0x41eadd(0x1a9)][_0x41eadd(0x1a8)](_0x20cb61),_0x2b8392[_0x41eadd(0x181)][_0x41eadd(0x165)](_0x20cb61);const _0xad9c1c=_0x20cb61[_0x41eadd(0x18a)],_0x118060=_0x20cb61[_0x41eadd(0x13f)],_0x117c1b=_0x2b8392[_0x41eadd(0x181)][_0x41eadd(0x163)](_0xad9c1c,_0x118060),_0x187063=_0x41eadd(0x19a)+_0xe737e5()+_0x41eadd(0x1a7);_0x36e60b[_0x41eadd(0x183)][_0x41eadd(0x19d)](_0x187063,_0x117c1b);break;}case _0x41eadd(0x145):{_0x4d138f[_0x41eadd(0x1a9)][_0x41eadd(0x1a8)](_0x20cb61),_0x2b8392[_0x41eadd(0x181)][_0x41eadd(0x165)](_0x20cb61),_0x3a648b[_0x43ffaf-0x1]&&_0x41eadd(0x19e)==_0x3a648b[_0x43ffaf-0x1][_0x41eadd(0x1ad)]&&ro(_0x36e60b,_0x20cb61);const _0x5341c3=_0x20cb61[_0x41eadd(0x148)](),_0x49edba=_0x20cb61[_0x41eadd(0x15b)];for(let _0x3e92e3=0x0;_0x3e92e3<_0x49edba;_0x3e92e3++){const _0xdbef39=_0x5341c3[_0x41eadd(0x194)](_0x3e92e3)[_0x41eadd(0x198)];_0x6f60b2[_0x41eadd(0x192)](_0xdbef39);}break;}case _0x41eadd(0x15a):{const _0x13acbb=_0x20cb61[_0x41eadd(0x14b)],_0xd8f7ff=_0x20cb61[_0x41eadd(0x15b)],_0x4dfc87=new _0x17de60(_0x13acbb,_0xd8f7ff);_0x4d138f[_0x41eadd(0x1a9)][_0x41eadd(0x1a8)](_0x4dfc87),_0x2b8392[_0x41eadd(0x181)][_0x41eadd(0x165)](_0x4dfc87);break;}}}for(const _0x395a89 of _0x6f60b2){const _0xd32288=_0x2b8392[_0x41eadd(0x181)][_0x41eadd(0x190)](_0x395a89),_0x2a5f6f=_0x41eadd(0x170)+_0xe737e5()+_0x41eadd(0x1a7);_0x36e60b[_0x41eadd(0x183)][_0x41eadd(0x19d)](_0x2a5f6f,_0x26d547(_0xd32288,_0x2b8392[_0x41eadd(0x181)]));}});}(_0x2901a8,_0x5afe5b,_0x5928a5):_0x5928a5[_0x6a5b46(0x181)][_0x6a5b46(0x171)](_0x3d04be=>{const _0x2e8194=_0x6a5b46;for(const _0x182f7c of _0x2901a8)if(_0x2e8194(0x15a)==_0x182f7c[_0x2e8194(0x1ad)]){const _0x476595=_0x182f7c[_0x2e8194(0x14b)],_0x869a91=_0x182f7c[_0x2e8194(0x15b)],_0x5e4765=new _0x17de60(_0x476595,_0x869a91);_0x3d04be[_0x2e8194(0x1a9)][_0x2e8194(0x1a8)](_0x5e4765),_0x5928a5[_0x2e8194(0x181)][_0x2e8194(0x165)](_0x5e4765);}else{if(_0x2e8194(0x1a2)==_0x182f7c[_0x2e8194(0x1ad)]){const _0x73555a=_0x182f7c[_0x2e8194(0x196)],_0x143ddf=_0x182f7c[_0x2e8194(0x166)];_0x5afe5b[_0x2e8194(0x183)][_0x2e8194(0x19d)](_0x73555a,_0x143ddf);}else _0x182f7c[_0x2e8194(0x16b)]=null,_0x182f7c[_0x2e8194(0x1a6)]=!0x1,_0x3d04be[_0x2e8194(0x1a9)][_0x2e8194(0x1a8)](_0x182f7c),_0x5928a5[_0x2e8194(0x181)][_0x2e8194(0x165)](_0x182f7c);}});if(_0x14664e){const _0x2f1405=getMinimalSelection(_0x5928a5,_0x2901a8,_0x5afe5b);expandSelectionWithContext(_0x5928a5[_0x6a5b46(0x181)],_0x2f1405),function(_0x22b02f,_0x21cae7){const _0x5313a8=_0x6a5b46,_0x37ecc4=_0x21cae7[_0x5313a8(0x169)]()[_0x5313a8(0x186)];let _0x5a2491=_0x21cae7[_0x5313a8(0x169)]()[_0x5313a8(0x174)];const _0x5c6053=_0x37ecc4[_0x5313a8(0x14e)];(_0x5a2491[_0x5313a8(0x16d)]||_0x5a2491[_0x5313a8(0x198)]&&_0x5a2491[_0x5313a8(0x198)]['is'](_0x5313a8(0x16f)))&&(_0x2177a0(_0x5a2491,_0x5313a8(0x18c)),_0x5a2491=_0x5a2491[_0x5313a8(0x194)](0x3)),(_0x37ecc4[_0x5313a8(0x16d)]||_0x37ecc4[_0x5313a8(0x178)]&&_0x37ecc4[_0x5313a8(0x178)]['is'](_0x5313a8(0x16f)))&&(_0x2177a0(_0x37ecc4,_0x5313a8(0x18c)),function(_0x1f0184,_0x261e1b,_0x2061be){const _0x3438c1=_0x5313a8;for(let [_0x482eb3,_0x54b2e5]of _0x1f0184[_0x3438c1(0x183)]){const _0x3eeae4=_0x54b2e5[_0x3438c1(0x1a5)](_0x261e1b,_0x2061be,!0x1);_0x54b2e5=_0x3eeae4[0x0],_0x1f0184[_0x3438c1(0x183)][_0x3438c1(0x19d)](_0x482eb3,_0x54b2e5);}}(_0x5c6053,_0x37ecc4,0x3),_0x37ecc4[_0x5313a8(0x142)]==_0x5a2491[_0x5313a8(0x142)]&&(_0x5a2491=_0x5a2491[_0x5313a8(0x194)](0x3)));const _0x26cbc4=_0x22b02f[_0x5313a8(0x163)](_0x22b02f[_0x5313a8(0x16e)](_0x5c6053,0x0),_0x37ecc4),_0x1f1138=_0x22b02f[_0x5313a8(0x163)](_0x5a2491,_0x22b02f[_0x5313a8(0x16e)](_0x5c6053,_0x5313a8(0x174))),_0x23ec31=[..._0x26cbc4[_0x5313a8(0x180)](),..._0x1f1138[_0x5313a8(0x180)]()];_0x23ec31[_0x5313a8(0x152)]();for(const _0x14a716 of _0x23ec31)_0x3e26f9(_0x14a716),_transformMarkersByDeletion(_0x5c6053,_0x14a716);}(_0x5928a5[_0x6a5b46(0x181)],_0x2f1405);}const _0x519d76=_0x5928a5[_0x6a5b46(0x157)][_0x6a5b46(0x19f)](_0x5afe5b,{'showSuggestionHighlights':!0x0});return{'content':_0xc71a93(_0x519d76),'hasChanges':!0x0};}(_0x22a3c8,_0x414c35,_0x7c009c,_0x32b37f,_0x3242f4);return{'type':_0x1c1c0f[_0x275920(0x188)][0x0][_0x275920(0x1ad)],'index':_0x1c1c0f[_0x275920(0x191)],'content':_0x55db23,'hasChanges':_0x5843b6};});}function ro(_0x220118,_0x2f7b90){const _0x290f4a=_0x114c;for(const [_0x20819f,_0x2afbe4]of _0x220118[_0x290f4a(0x183)]){const _0x1c0211=_0x15d486[_0x290f4a(0x151)](_0x2afbe4[_0x290f4a(0x18f)](_0x2f7b90));_0x220118[_0x290f4a(0x183)][_0x290f4a(0x19d)](_0x20819f,_0x1c0211);}}export function getMinimalSelection(_0x2a6d93,_0xe69d9a,_0xd0d620){const _0x3896e4=_0x114c,_0x252341=_0x2a6d93[_0x3896e4(0x17a)][_0x3896e4(0x168)](_0x3896e4(0x199));let _0x2d8cb8=_0x2a6d93[_0x3896e4(0x181)][_0x3896e4(0x16e)](_0xd0d620,Number[_0x3896e4(0x16c)]),_0x24fdec=_0x2a6d93[_0x3896e4(0x181)][_0x3896e4(0x16e)](_0xd0d620,0x0);for(const _0x1d24eb of _0xe69d9a){let _0x10ab62,_0x7a9846;if(_0x252341[_0x3896e4(0x18d)](_0x1d24eb))_0x10ab62=_0x1d24eb[_0x3896e4(0x166)][_0x3896e4(0x186)],_0x7a9846=_0x1d24eb[_0x3896e4(0x166)][_0x3896e4(0x174)];else switch(_0x2d8cb8=_0x2d8cb8[_0x3896e4(0x18f)](_0x1d24eb),_0x24fdec=_0x24fdec[_0x3896e4(0x18f)](_0x1d24eb),_0x1d24eb[_0x3896e4(0x1ad)]){case _0x3896e4(0x160):_0x10ab62=_0x1d24eb[_0x3896e4(0x17d)],_0x7a9846=_0x10ab62[_0x3896e4(0x194)](0x1);break;case _0x3896e4(0x18e):case _0x3896e4(0x19c):case _0x3896e4(0x14a):_0x10ab62=_0x1d24eb[_0x3896e4(0x159)][_0x3896e4(0x186)],_0x7a9846=_0x1d24eb[_0x3896e4(0x159)][_0x3896e4(0x174)];break;case _0x3896e4(0x19e):_0x10ab62=_0x1d24eb[_0x3896e4(0x17d)],_0x7a9846=_0x10ab62[_0x3896e4(0x194)](_0x1d24eb[_0x3896e4(0x15b)]);break;case _0x3896e4(0x18b):_0x10ab62=_0x1d24eb[_0x3896e4(0x18a)],_0x7a9846=_0x1d24eb[_0x3896e4(0x13f)];break;case _0x3896e4(0x154):{const _0x3a3c5c=_0x1d24eb[_0x3896e4(0x158)][_0x3896e4(0x16a)][_0x3896e4(0x15e)](0x0,-0x1);_0x10ab62=_0x2a6d93[_0x3896e4(0x181)][_0x3896e4(0x1aa)](_0xd0d620,_0x3a3c5c),_0x7a9846=_0x10ab62[_0x3896e4(0x194)](0x1);break;}case _0x3896e4(0x15a):{const _0xf5e1df=_0x1d24eb[_0x3896e4(0x15b)],_0x27d175=_0x1d24eb[_0x3896e4(0x14b)][_0x3896e4(0x1a5)](_0x1d24eb[_0x3896e4(0x158)],_0xf5e1df),_0xf6ec77=_0x1d24eb[_0x3896e4(0x148)]();_0x3896e4(0x15a)==_0x1d24eb[_0x3896e4(0x1ad)]?(_0x10ab62=_0x27d175,_0x7a9846=_0x27d175):(_0x10ab62=_0xf6ec77,_0x7a9846=_0xf6ec77[_0x3896e4(0x194)](_0xf5e1df));break;}}_0x10ab62&&_0x10ab62[_0x3896e4(0x167)](_0x2d8cb8)&&(_0x2d8cb8=_0x10ab62[_0x3896e4(0x175)](),_0x2d8cb8[_0x3896e4(0x14c)]=_0x3896e4(0x150)),_0x7a9846&&_0x7a9846[_0x3896e4(0x177)](_0x24fdec)&&(_0x24fdec=_0x7a9846[_0x3896e4(0x175)](),_0x24fdec[_0x3896e4(0x14c)]=_0x3896e4(0x150));}return _0x2a6d93[_0x3896e4(0x181)][_0x3896e4(0x1a4)](_0x2a6d93[_0x3896e4(0x181)][_0x3896e4(0x163)](_0x2d8cb8,_0x24fdec));}export function expandSelectionWithContext(_0x2441ef,_0x305615){const _0x4420a1=_0x114c;so(_0x2441ef,_0x305615,_0x4420a1(0x1ae));const _0x4abbb9=_0x305615[_0x4420a1(0x169)]();_0x305615[_0x4420a1(0x19b)]([]),_0x305615[_0x4420a1(0x19b)](_0x4abbb9,{'backward':!0x0}),so(_0x2441ef,_0x305615,_0x4420a1(0x13c));}function so(_0x2700c0,_0x554433,_0x12e116){const _0x5c5472=_0x114c;let _0x4606fd=0x14;for(;_0x4606fd;){_0x2700c0[_0x5c5472(0x155)](_0x554433,{'unit':_0x5c5472(0x197),'direction':_0x12e116}),_0x4606fd--;const _0x40628b=_0x554433[_0x5c5472(0x1ab)][_0x5c5472(0x1ae)==_0x12e116?_0x5c5472(0x178):_0x5c5472(0x198)];if(_0x40628b&&_0x40628b['is'](_0x5c5472(0x153))&&_0x2700c0[_0x5c5472(0x161)][_0x5c5472(0x140)](_0x40628b)&&_0x2700c0[_0x5c5472(0x161)][_0x5c5472(0x1a3)](_0x40628b))break;}}export function _transformMarkersByDeletion(_0x8c2ab5,_0x5ab302){const _0x13b2cc=_0x114c;for(const [_0x396151,_0x190ded]of _0x8c2ab5[_0x13b2cc(0x183)]){const _0x101d14=_0x190ded[_0x13b2cc(0x17f)](_0x5ab302[_0x13b2cc(0x186)],_0x5ab302[_0x13b2cc(0x174)][_0x13b2cc(0x185)]-_0x5ab302[_0x13b2cc(0x186)][_0x13b2cc(0x185)]);null!=_0x101d14?_0x8c2ab5[_0x13b2cc(0x183)][_0x13b2cc(0x19d)](_0x396151,_0x101d14):_0x8c2ab5[_0x13b2cc(0x183)][_0x13b2cc(0x189)](_0x396151);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x46bb6c,_0xccec45){const _0x3d5a16=_0x1fcc,_0x193b46=_0x46bb6c();while(!![]){try{const _0xd2f868=-parseInt(_0x3d5a16(0xed))/0x1+-parseInt(_0x3d5a16(0xe7))/0x2+-parseInt(_0x3d5a16(0xe6))/0x3*(-parseInt(_0x3d5a16(0xec))/0x4)+parseInt(_0x3d5a16(0xf8))/0x5+-parseInt(_0x3d5a16(0xf3))/0x6*(parseInt(_0x3d5a16(0xef))/0x7)+-parseInt(_0x3d5a16(0xf4))/0x8*(parseInt(_0x3d5a16(0xf2))/0x9)+parseInt(_0x3d5a16(0xfd))/0xa;if(_0xd2f868===_0xccec45)break;else _0x193b46['push'](_0x193b46['shift']());}catch(_0x1f0914){_0x193b46['push'](_0x193b46['shift']());}}}(_0x1457,0xbf5da));import{parseDocument as _0x40c322}from'htmlparser2';import{append as _0xf5012c,appendChild as _0x11efce,find as _0x4ea061,findAll as _0x8546dd,findOne as _0x15f052,getChildren as _0x50046a,isComment as _0x2aec52,isTag as _0x9ba579,prepend as _0x55688d,prependChild as _0x262537,removeElement as _0x21c3cc,replaceElement as _0x26ab1d,textContent as _0x57922d,getParent as _0x26304f,hasChildren as _0x5cc65f}from'domutils';import _0x531f15 from'dom-serializer';import{cloneNode as _0x2a987a,isDocument as _0x796f12,isText as _0x5de87c,Element as _0x148a40,Text as _0x14fb79,Document as _0x4eb95c,NodeWithChildren as _0x14391b}from'domhandler';export{_0x2a987a as cloneNode,_0x4ea061 as find,_0x15f052 as findOne,_0x8546dd as findAll,_0x50046a as getChildren,_0x26304f as getParent,_0x2aec52 as isComment,_0x796f12 as isDocument,_0x9ba579 as isTag,_0x5de87c as isText,_0xf5012c as append,_0x11efce as appendChild,_0x55688d as prepend,_0x262537 as prependChild,_0x531f15 as render,_0x21c3cc as removeElement,_0x26ab1d as replaceElement,_0x57922d as textContent,_0x5cc65f as hasChildren,_0x148a40 as Element,_0x4eb95c as Document,_0x14391b as NodeWithChildren,_0x14fb79 as Text};export function parse(_0x213d21){return _0x40c322(_0x213d21);}export function serialize(_0x1d7542){return _0x531f15(_0x1d7542);}export function findByAttribute(_0x2beebe,_0x4c0663,_0x2de5a8){const _0x40c466=_0x1fcc,_0x55823f=null!==_0x4c0663?_0x5b3ef0=>_0x5b3ef0[_0x40c466(0xf1)][_0x2beebe]===_0x4c0663:_0x48767d=>Boolean(_0x48767d[_0x40c466(0xf1)][_0x2beebe]);return _0x15f052(_0x305cf4=>_0x9ba579(_0x305cf4)&&_0x55823f(_0x305cf4),_0x2de5a8);}function _0x1fcc(_0x4bc396,_0x39aa8f){const _0x1457d1=_0x1457();return _0x1fcc=function(_0x1fcc3a,_0x8d6eac){_0x1fcc3a=_0x1fcc3a-0xe5;let _0x22424c=_0x1457d1[_0x1fcc3a];return _0x22424c;},_0x1fcc(_0x4bc396,_0x39aa8f);}export function findAllByAttribute(_0x1dff8b,_0x268e29,_0x5c5001){const _0x48ac96=_0x1fcc,_0x2566e4=null!==_0x268e29?_0x5b3b2b=>_0x5b3b2b[_0x48ac96(0xf1)][_0x1dff8b]===_0x268e29:_0x473256=>Boolean(_0x473256[_0x48ac96(0xf1)][_0x1dff8b]);return _0x8546dd(_0x2e68ea=>_0x9ba579(_0x2e68ea)&&_0x2566e4(_0x2e68ea),_0x5c5001);}export function findAllComments(_0x473ebe){return _0x4ea061(_0x29efbc=>_0x2aec52(_0x29efbc),_0x473ebe,!0x0,0x1/0x0);}function _0x1457(){const _0x500890=['slice','1018132ZMrpiq','1246866TFmaPJ','replace','1183KRiMaV','parentNode','attribs','45NlMLMg','22230sqbela','1578152EiOeZX','nextSibling','reverse','push','458185tzRpIz','indexOf','cloneNode','beforeend','afterbegin','38307100newtql','forEach','3YXgkoh','1067380sevQYT','map','beforebegin','afterend'];_0x1457=function(){return _0x500890;};return _0x1457();}export function getAttribute(_0x15eb36,_0x5d0f6f){const _0x5a042a=_0x1fcc;return _0x15eb36&&_0x9ba579(_0x15eb36)?_0x15eb36[_0x5a042a(0xf1)][_0x5d0f6f]:null;}export function setAttribute(_0x1dfe48,_0x5e8355,_0x3a38b7){const _0x1faecd=_0x1fcc;_0x9ba579(_0x1dfe48)&&(null===_0x3a38b7?delete _0x1dfe48[_0x1faecd(0xf1)][_0x5e8355]:_0x1dfe48[_0x1faecd(0xf1)][_0x5e8355]=_0x3a38b7);}export function insertElement(_0x3b96aa,_0x3885e8,_0x5b33fb){const _0x524f87=_0x1fcc,_0x367a0d=_0x3885e8[_0x524f87(0xfa)](!0x0);_0x524f87(0xe9)===_0x5b33fb?_0x55688d(_0x3b96aa,_0x367a0d):_0x524f87(0xfc)===_0x5b33fb?_0x262537(_0x3b96aa,_0x367a0d):_0x524f87(0xfb)===_0x5b33fb?_0x11efce(_0x3b96aa,_0x367a0d):_0x524f87(0xea)===_0x5b33fb&&_0xf5012c(_0x3b96aa,_0x367a0d);}export function moveElement(_0x5386b6,_0x28bd48){_0x21c3cc(_0x5386b6),_0x26ab1d(_0x28bd48,_0x5386b6);}export function clone(_0x18acdd){const _0x37d230=_0x1fcc;return _0x18acdd[_0x37d230(0xfa)](!0x0);}export function getParents(_0x15a010){const _0xbba57f=_0x1fcc,_0x112d9d=[];let _0x13b786=_0x15a010;for(;_0x13b786;)_0x13b786=_0x26304f(_0x13b786),_0x13b786&&_0x112d9d[_0xbba57f(0xf7)](_0x13b786);return _0x112d9d;}export function normalizeHTML(_0xd2c931){const _0xf10e00=_0x1fcc;return _0xd2c931[_0xf10e00(0xee)](/^\s+/gm,'')[_0xf10e00(0xee)](/\s+$/gm,'')[_0xf10e00(0xee)](/\n*/g,'')[_0xf10e00(0xee)](/\s+/g,'\x20')[_0xf10e00(0xee)](/>\s*</g,'><');}export function areNodesSame(_0x5947d7,_0x9d6efe){return normalizeHTML(serialize(_0x5947d7))===normalizeHTML(serialize(_0x9d6efe));}export function getNodeNestingLevel(_0x403831){const _0x1c945d=_0x1fcc;let _0xc0c38a=0x0;for(;_0x403831[_0x1c945d(0xf0)];)_0x403831=_0x403831[_0x1c945d(0xf0)],_0xc0c38a++;return _0xc0c38a;}export function removeElementsAfter(_0x50ca02){const _0x127bfc=_0x1fcc,_0x25ef27=[];let _0x22deb8=_0x50ca02[_0x127bfc(0xf5)];for(;_0x22deb8;)_0x25ef27[_0x127bfc(0xf7)](_0x22deb8),_0x22deb8=_0x22deb8[_0x127bfc(0xf5)];_0x25ef27[_0x127bfc(0xe5)](_0x4792d6=>{_0x21c3cc(_0x4792d6);});}export function getNodePath(_0x7420d7){const _0x198187=_0x1fcc;return[_0x7420d7,...getParents(_0x7420d7)][_0x198187(0xeb)](0x0,-0x1)[_0x198187(0xe8)](_0x564a81=>{const _0x187e6d=_0x198187,_0x2cdc6d=_0x26304f(_0x564a81);return _0x50046a(_0x2cdc6d)[_0x187e6d(0xf9)](_0x564a81);})[_0x198187(0xf6)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x25d4b6=_0x23e7;(function(_0x109c50,_0x2a613d){const _0x21cd6d=_0x23e7,_0x568b89=_0x109c50();while(!![]){try{const _0x53bece=-parseInt(_0x21cd6d(0xb2))/0x1*(parseInt(_0x21cd6d(0xb7))/0x2)+parseInt(_0x21cd6d(0x95))/0x3+-parseInt(_0x21cd6d(0xcd))/0x4*(parseInt(_0x21cd6d(0xa4))/0x5)+parseInt(_0x21cd6d(0xc4))/0x6*(parseInt(_0x21cd6d(0xcc))/0x7)+-parseInt(_0x21cd6d(0x96))/0x8*(-parseInt(_0x21cd6d(0xc1))/0x9)+parseInt(_0x21cd6d(0xa9))/0xa+-parseInt(_0x21cd6d(0xbd))/0xb*(-parseInt(_0x21cd6d(0xc7))/0xc);if(_0x53bece===_0x2a613d)break;else _0x568b89['push'](_0x568b89['shift']());}catch(_0xaa81d3){_0x568b89['push'](_0x568b89['shift']());}}}(_0x34f1,0xdfa86));import _0x284a11 from'morphdom';import{NodeWithChildren as _0x58d080,Text as _0x5ee1f6,Element as _0x9d9ca3,isText as _0x58e3d5,isDocument as _0xc33219,isTag as _0x46ac60,cloneNode as _0x1680dc,getChildren as _0x25884c,prepend as _0x10bfd7,removeElement as _0x455270,textContent as _0x25eb0a,render as _0x216e7d}from'./htmlparser.js';import{logWarning as _0x4b0f95}from'ckeditor5/src/utils.js';function _0x23e7(_0xc180d2,_0x30963c){const _0x34f157=_0x34f1();return _0x23e7=function(_0x23e768,_0x174675){_0x23e768=_0x23e768-0x94;let _0x4afd5f=_0x34f157[_0x23e768];return _0x4afd5f;},_0x23e7(_0xc180d2,_0x30963c);}function _0x34f1(){const _0x14225d=['span[data-ck-html-streamer-word-chunk]','includes','getParsedDocumentNodeList','document','8571385AEFECg','bind','entries','strong','sub','15096170hOQRyL','from','cleanUpAnimations','now','timeoutAbortController','abort','stop','currentIndex','splitTextNodeIntoWordNodes','1794396rqwpfi','isWordSplitResult','push','signal','ins','2mLtiWF','stream','map','attribs','addEventListener','del','1727KpIlNp','forEach','shouldBeStreamed','match','9GZUCvU','reverse','textNodeStyle','5251518GMyWYO','onStreamUpdate','isStreaming','121764Oltffc','delay','code','renderNode','options','7CZGTqj','4oZHjKX','span','parent','replaceWith','isWordSplitSource','querySelectorAll','childNodes','1249980JZLoFW','241328tIisTc','tagName','ai-html-streamer-current-index-out-of-bounds','nodesList','div','children','join','mark','length','sup'];_0x34f1=function(){return _0x14225d;};return _0x34f1();}export class HTMLStreamer{[_0x25d4b6(0xcb)];[_0x25d4b6(0xc6)]=!0x1;[_0x25d4b6(0xa3)]=null;[_0x25d4b6(0x99)]=[];[_0x25d4b6(0xb0)]=0x0;[_0x25d4b6(0xad)]=null;constructor(_0x15b53d){const _0x1eae91=_0x25d4b6;this[_0x1eae91(0xcb)]={'delay':_0x15b53d[_0x1eae91(0xc8)]??0x14,'textNodeStyle':_0x15b53d[_0x1eae91(0xc3)],'onStreamUpdate':_0x15b53d[_0x1eae91(0xc5)]||(()=>{})};}async[_0x25d4b6(0xb8)]({document:_0x4165f5,targetElement:_0x15642e,abortSignal:_0x48eab5}){const _0x4cd6df=_0x25d4b6;this[_0x4cd6df(0xc6)]&&this[_0x4cd6df(0xaf)](),_0x48eab5?.[_0x4cd6df(0xbb)](_0x4cd6df(0xae),this[_0x4cd6df(0xaf)][_0x4cd6df(0xa5)](this)),this[_0x4cd6df(0xa3)]=_0x1680dc(_0x4165f5,!0x0),this[_0x4cd6df(0x99)]=this[_0x4cd6df(0xa2)](),this[_0x4cd6df(0xc6)]=!0x0,this[_0x4cd6df(0xb0)]>this[_0x4cd6df(0x99)][_0x4cd6df(0x9e)]&&(_0x4b0f95(_0x4cd6df(0x98),{'currentIndex':this[_0x4cd6df(0xb0)],'nodeList':this[_0x4cd6df(0x99)]}),this[_0x4cd6df(0xb0)]=this[_0x4cd6df(0x99)][_0x4cd6df(0x9e)]);for(let _0x26f98e=0x0;_0x26f98e<this[_0x4cd6df(0xb0)];_0x26f98e++)this[_0x4cd6df(0x99)][_0x26f98e][_0x4cd6df(0xbf)]=!0x0;let _0x24ce13=0x0;for(let _0x4c3a9a=this[_0x4cd6df(0xb0)];_0x4c3a9a<this[_0x4cd6df(0x99)][_0x4cd6df(0x9e)];_0x4c3a9a++){const _0x2154c0=Date[_0x4cd6df(0xac)](),_0x48e8be=this[_0x4cd6df(0x99)][_0x4c3a9a],_0xf20b47=_0x2154c0-_0x24ce13;_0x48e8be[_0x4cd6df(0xbf)]=!0x0;let _0x56f2d4=_0x48e8be[_0x4cd6df(0xcf)];for(;_0x56f2d4;)_0x56f2d4[_0x4cd6df(0xbf)]=!0x0,_0x56f2d4=_0x56f2d4[_0x4cd6df(0xcf)];if(_0xf20b47<this[_0x4cd6df(0xcb)][_0x4cd6df(0xc8)])try{const {promise:_0x59ba1f,abortController:_0x5963ac}=br(this[_0x4cd6df(0xcb)][_0x4cd6df(0xc8)]-_0xf20b47);this[_0x4cd6df(0xad)]=_0x5963ac,await _0x59ba1f;}catch(_0x182e34){return;}_0x284a11(_0x15642e,'<'+_0x15642e[_0x4cd6df(0x97)]+'>'+this[_0x4cd6df(0xca)](this[_0x4cd6df(0xa3)])+'</'+_0x15642e[_0x4cd6df(0x97)]+'>',{'childrenOnly':!0x0}),this[_0x4cd6df(0xcb)][_0x4cd6df(0xc5)]&&this[_0x4cd6df(0xcb)][_0x4cd6df(0xc5)](),this[_0x4cd6df(0xb0)]=_0x4c3a9a,_0x24ce13=Date[_0x4cd6df(0xac)]();}this[_0x4cd6df(0xc6)]=!0x1;}[_0x25d4b6(0xab)]({targetElement:_0x2b91b2}){const _0x11bdf8=_0x25d4b6;Array[_0x11bdf8(0xaa)](_0x2b91b2[_0x11bdf8(0xd2)](_0x11bdf8(0xa0)))[_0x11bdf8(0xc2)]()[_0x11bdf8(0xbe)](_0x21d394=>{const _0x46c9f8=_0x11bdf8;_0x21d394[_0x46c9f8(0xd0)](_0x21d394[_0x46c9f8(0x94)][0x0]);});}[_0x25d4b6(0xaf)](){const _0x3eda8c=_0x25d4b6;this[_0x3eda8c(0xc6)]=!0x1,this[_0x3eda8c(0xad)]&&(this[_0x3eda8c(0xad)][_0x3eda8c(0xae)](),this[_0x3eda8c(0xad)]=null);}[_0x25d4b6(0xca)](_0xe51be1){const _0x1dcc7e=_0x25d4b6;let _0x2d80ad='';if(function(_0x3f8b9f){return _0xc33219(_0x3f8b9f);}(_0xe51be1)){for(const _0x4f0801 of _0xe51be1[_0x1dcc7e(0x9b)])_0x2d80ad+=this[_0x1dcc7e(0xca)](_0x4f0801);}else{if(pr(_0xe51be1)){if(!_0xe51be1[_0x1dcc7e(0xbf)])return'';const _0x3dbc5a=_0xe51be1,_0x27f9e8=Object[_0x1dcc7e(0xa6)](_0x3dbc5a[_0x1dcc7e(0xba)])[_0x1dcc7e(0xb9)](([_0x16559f,_0x5f1372])=>_0x16559f+'=\x22'+_0x5f1372+'\x22')[_0x1dcc7e(0x9c)]('\x20');_0x2d80ad+='<'+_0x3dbc5a[_0x1dcc7e(0x97)]+(_0x27f9e8?'\x20'+_0x27f9e8:'')+'>';for(const _0x455ff8 of _0x25884c(_0x3dbc5a))_0x2d80ad+=this[_0x1dcc7e(0xca)](_0x455ff8);_0x2d80ad+='</'+_0x3dbc5a[_0x1dcc7e(0x97)]+'>';}else{if(!dr(_0xe51be1))return'';if(!_0xe51be1[_0x1dcc7e(0xbf)])return'';!function(_0x5c099e){const _0x43b5f8=_0x1dcc7e;if(!_0x5c099e[_0x43b5f8(0xcf)]||!pr(_0x5c099e[_0x43b5f8(0xcf)]))return!0x1;if(!ar[_0x43b5f8(0xa1)](_0x5c099e[_0x43b5f8(0xcf)][_0x43b5f8(0x97)]))return!0x1;return!_0x25eb0a(_0x5c099e)[_0x43b5f8(0xc0)](/^\s*[<>]\s*$/);}(_0xe51be1)?_0x2d80ad+=_0x216e7d(_0xe51be1):_0x2d80ad+=_0x216e7d(new _0x9d9ca3(_0x1dcc7e(0xce),{'data-ck-html-streamer-word-chunk':'','style':this[_0x1dcc7e(0xcb)][_0x1dcc7e(0xc3)]},[_0xe51be1]));}}return _0x2d80ad;}[_0x25d4b6(0xa2)](){const _0x2a3f0b=_0x25d4b6,_0x15a396=[];return function(_0x5e3d1a,_0x3f148a){const _0x383a5b=_0x23e7,_0x50cac3=_0x26bfe6=>{const _0x231feb=_0x23e7;if(_0x3f148a(_0x26bfe6),_0x26bfe6 instanceof _0x58d080)for(let _0x1a6998=0x0;_0x1a6998<_0x26bfe6[_0x231feb(0x9b)][_0x231feb(0x9e)];_0x1a6998++){const _0x4fd398=_0x26bfe6[_0x231feb(0x9b)][_0x1a6998];_0x50cac3(_0x4fd398);}};for(let _0x2d2e7d=0x0;_0x2d2e7d<_0x5e3d1a[_0x383a5b(0x9b)][_0x383a5b(0x9e)];_0x2d2e7d++)_0x50cac3(_0x5e3d1a[_0x383a5b(0x9b)][_0x2d2e7d]);}(this[_0x2a3f0b(0xa3)],_0x2dbf4b=>{const _0x49dc4c=_0x2a3f0b;if(dr(_0x2dbf4b)){const _0x42d23a=this[_0x49dc4c(0xb1)](_0x2dbf4b);_0x42d23a[_0x49dc4c(0x9e)]&&_0x15a396[_0x49dc4c(0xb4)](..._0x42d23a);}_0x2dbf4b[_0x49dc4c(0xd1)]||_0x2dbf4b[_0x49dc4c(0xb3)]||_0x15a396[_0x49dc4c(0xb4)](_0x2dbf4b);}),_0x15a396;}[_0x25d4b6(0xb1)](_0x310e47){const _0x4b22e7=_0x25d4b6;if(_0x310e47[_0x4b22e7(0xd1)]||_0x310e47[_0x4b22e7(0xb3)])return[];const _0x2a8e61=_0x25eb0a(_0x310e47)[_0x4b22e7(0xc0)](/(?:\s*\S+\s*)/g),_0x298baa=[];if(_0x2a8e61&&_0x2a8e61[_0x4b22e7(0x9e)]>0x1){for(const _0x19c35d of _0x2a8e61){const _0x23b608=new _0x5ee1f6(_0x19c35d);_0x23b608[_0x4b22e7(0xb3)]=!0x0,_0x10bfd7(_0x310e47,_0x23b608),_0x298baa[_0x4b22e7(0xb4)](_0x23b608);}_0x310e47[_0x4b22e7(0xd1)]=!0x0,_0x455270(_0x310e47);}return _0x298baa;}}const ar=['p','li','td','th',_0x25d4b6(0xce),'h1','h2','h3','h4','h5','h6','b',_0x25d4b6(0xa7),'i','em',_0x25d4b6(0x9d),_0x25d4b6(0xbc),_0x25d4b6(0xb6),_0x25d4b6(0x9f),_0x25d4b6(0xa8),'a',_0x25d4b6(0xc9),_0x25d4b6(0x9a)];function dr(_0x5cf3a1){return _0x58e3d5(_0x5cf3a1);}function pr(_0x312c9b){return _0x46ac60(_0x312c9b);}function br(_0x2573c9){const _0x498049=new AbortController();return{'promise':new Promise((_0x26cbed,_0xc4f4f)=>{const _0x4e10f1=_0x23e7,_0x343338=setTimeout(_0x26cbed,_0x2573c9);_0x498049[_0x4e10f1(0xb5)][_0x4e10f1(0xbb)](_0x4e10f1(0xae),()=>{clearTimeout(_0x343338),_0xc4f4f();});}),'abortController':_0x498049};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1bea5f=_0x24e9;function _0x137d(){const _0x55b391=['ArrowUp','bind','570QxTVbe','End','ArrowDown','element','766711kSyklU','signal','abort','_onUserEvent','isUserPaused','4392648viHxRt','includes','12cKrngd','keydown','scrollTo','pointerdown','Home','type','key','27rQAGwI','auto','animationFrameId','isRunning','abortController','9162258wWCpKR','976445XSUlwd','3NrwMRC','_isAtBottom','PageDown','2238290xzqnVX','wheel','deltaY','PageUp','start','_stop','addEventListener','scrollHeight','1140705msCfCg','_rafUpdate','destroy','stop','1488064wZedWz','touchstart'];_0x137d=function(){return _0x55b391;};return _0x137d();}(function(_0x51eb72,_0x52f73e){const _0x467299=_0x24e9,_0x5ce01e=_0x51eb72();while(!![]){try{const _0x1817e2=-parseInt(_0x467299(0xa4))/0x1+parseInt(_0x467299(0xa8))/0x2*(parseInt(_0x467299(0xa5))/0x3)+-parseInt(_0x467299(0x95))/0x4+-parseInt(_0x467299(0xb0))/0x5*(parseInt(_0x467299(0x97))/0x6)+-parseInt(_0x467299(0xa3))/0x7+-parseInt(_0x467299(0x88))/0x8*(parseInt(_0x467299(0x9e))/0x9)+-parseInt(_0x467299(0x8c))/0xa*(-parseInt(_0x467299(0x90))/0xb);if(_0x1817e2===_0x52f73e)break;else _0x5ce01e['push'](_0x5ce01e['shift']());}catch(_0x4e7b82){_0x5ce01e['push'](_0x5ce01e['shift']());}}}(_0x137d,0xa9817));const ws=[_0x1bea5f(0xa9),_0x1bea5f(0x89),_0x1bea5f(0x9a),_0x1bea5f(0x98)],As=[_0x1bea5f(0x8a),_0x1bea5f(0x8e),_0x1bea5f(0xab),_0x1bea5f(0xa7),_0x1bea5f(0x9b),_0x1bea5f(0x8d),'\x20'];function _0x24e9(_0x21f550,_0x20313e){const _0x137dd8=_0x137d();return _0x24e9=function(_0x24e966,_0x53f5d3){_0x24e966=_0x24e966-0x86;let _0x2b2409=_0x137dd8[_0x24e966];return _0x2b2409;},_0x24e9(_0x21f550,_0x20313e);}export class ScrollManager{[_0x1bea5f(0x8f)];[_0x1bea5f(0xa0)];[_0x1bea5f(0xa1)];[_0x1bea5f(0xa2)];[_0x1bea5f(0x94)];constructor(_0x4a69bb){const _0x4f123a=_0x1bea5f;this[_0x4f123a(0x8f)]=_0x4a69bb,this[_0x4f123a(0xa0)]=null,this[_0x4f123a(0xa1)]=!0x1,this[_0x4f123a(0xa2)]=new AbortController(),this[_0x4f123a(0x94)]=!0x1;for(const _0x5c95ce of ws){const _0x1423f1=_0x4f123a(0x98)!==_0x5c95ce;this[_0x4f123a(0x8f)][_0x4f123a(0xae)](_0x5c95ce,this[_0x4f123a(0x93)][_0x4f123a(0x8b)](this),{'passive':_0x1423f1,'signal':this[_0x4f123a(0xa2)][_0x4f123a(0x91)]});}}[_0x1bea5f(0xac)](){const _0x4c9999=_0x1bea5f;this[_0x4c9999(0xa1)]||(this[_0x4c9999(0xa1)]=!0x0,this[_0x4c9999(0x94)]=!0x1,this[_0x4c9999(0xa0)]=requestAnimationFrame(this[_0x4c9999(0xb1)][_0x4c9999(0x8b)](this)));}[_0x1bea5f(0x87)](){requestAnimationFrame(()=>{const _0x9d13b=_0x24e9;this[_0x9d13b(0xad)]();});}[_0x1bea5f(0x86)](){const _0x5ea401=_0x1bea5f;this[_0x5ea401(0xad)](),this[_0x5ea401(0xa2)][_0x5ea401(0x92)]();}[_0x1bea5f(0xad)](){const _0x5e9a3f=_0x1bea5f;null!==this[_0x5e9a3f(0xa0)]&&(cancelAnimationFrame(this[_0x5e9a3f(0xa0)]),this[_0x5e9a3f(0xa0)]=null),this[_0x5e9a3f(0xa1)]&&(this[_0x5e9a3f(0xa1)]=!0x1),this[_0x5e9a3f(0x94)]=!0x1;}[_0x1bea5f(0x93)](_0x1155f0){const _0x51b7ca=_0x1bea5f;if(this[_0x51b7ca(0xa1)]){if(_0x51b7ca(0x98)===_0x1155f0[_0x51b7ca(0x9c)]){const _0x40046c=_0x1155f0[_0x51b7ca(0x9d)];if(!As[_0x51b7ca(0x96)](_0x40046c))return;}_0x1155f0 instanceof WheelEvent?_0x1155f0[_0x51b7ca(0xaa)]<0x0?this[_0x51b7ca(0x94)]=!0x0:this[_0x51b7ca(0x94)]=!this[_0x51b7ca(0xa6)]():this[_0x51b7ca(0x94)]=!0x0;}}[_0x1bea5f(0xa6)](){const _0x97bee9=_0x1bea5f,{scrollTop:_0x2a1b23,scrollHeight:_0x29ba30,clientHeight:_0x152e1f}=this[_0x97bee9(0x8f)];return _0x29ba30-_0x2a1b23-_0x152e1f<=0x5;}[_0x1bea5f(0xb1)](){const _0x574e6b=_0x1bea5f;this[_0x574e6b(0xa1)]&&(this[_0x574e6b(0x94)]||this[_0x574e6b(0x8f)][_0x574e6b(0x99)]({'top':this[_0x574e6b(0x8f)][_0x574e6b(0xaf)],'behavior':_0x574e6b(0x9f)}),this[_0x574e6b(0xa0)]=requestAnimationFrame(this[_0x574e6b(0xb1)][_0x574e6b(0x8b)](this)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x46328a=_0x5d75;function _0x35b5(){var _0x22f209=['requires','isPremiumPlugin','7201398nVAXqo','7523titGod','72355kjJRYA','pluginName','AIEditorIntegration','194oGdyzd','5327448ArHYpL','48429OEGZZo','1797738GvMRTn','100wxRrGC','isOfficialPlugin','6249464DDttTb','3460tThRlH'];_0x35b5=function(){return _0x22f209;};return _0x35b5();}(function(_0x6eec9b,_0x20823a){var _0x463f9a=_0x5d75,_0x2a901a=_0x6eec9b();while(!![]){try{var _0x5e7b19=-parseInt(_0x463f9a(0x15f))/0x1*(-parseInt(_0x463f9a(0x163))/0x2)+parseInt(_0x463f9a(0x166))/0x3+parseInt(_0x463f9a(0x167))/0x4*(parseInt(_0x463f9a(0x160))/0x5)+-parseInt(_0x463f9a(0x15e))/0x6+-parseInt(_0x463f9a(0x164))/0x7+-parseInt(_0x463f9a(0x15a))/0x8+parseInt(_0x463f9a(0x165))/0x9*(parseInt(_0x463f9a(0x15b))/0xa);if(_0x5e7b19===_0x20823a)break;else _0x2a901a['push'](_0x2a901a['shift']());}catch(_0x1d6317){_0x2a901a['push'](_0x2a901a['shift']());}}}(_0x35b5,0xc5c72));import{Plugin as _0x4ac35d}from'ckeditor5/src/core.js';import{AIToggleButtonUI as _0x3ac4d7}from'./aitogglebutton/aitogglebuttonui.js';import{SuggestionsConversion as _0x234cd4}from'@ckeditor/ckeditor5-collaboration-core';function _0x5d75(_0x548d22,_0x459974){var _0x35b5c7=_0x35b5();return _0x5d75=function(_0x5d75c9,_0x5d2b0c){_0x5d75c9=_0x5d75c9-0x15a;var _0x54d71e=_0x35b5c7[_0x5d75c9];return _0x54d71e;},_0x5d75(_0x548d22,_0x459974);}export class AIEditorIntegration extends _0x4ac35d{static get[_0x46328a(0x15c)](){return[_0x3ac4d7,_0x234cd4];}static get[_0x46328a(0x161)](){var _0x5b9b39=_0x46328a;return _0x5b9b39(0x162);}static get[_0x46328a(0x168)](){return!0x0;}static get[_0x46328a(0x15d)](){return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1bc3ff=_0x16c0;function _0x16c0(_0x161ff1,_0x5108d5){const _0x1e1fd9=_0x1e1f();return _0x16c0=function(_0x16c0a5,_0x2d9e9d){_0x16c0a5=_0x16c0a5-0x169;let _0x2cf902=_0x1e1fd9[_0x16c0a5];return _0x2cf902;},_0x16c0(_0x161ff1,_0x5108d5);}(function(_0x2c8437,_0x181f22){const _0x47607e=_0x16c0,_0x246185=_0x2c8437();while(!![]){try{const _0xc9d205=parseInt(_0x47607e(0x170))/0x1+parseInt(_0x47607e(0x177))/0x2+-parseInt(_0x47607e(0x176))/0x3*(parseInt(_0x47607e(0x18a))/0x4)+parseInt(_0x47607e(0x17e))/0x5+parseInt(_0x47607e(0x178))/0x6*(parseInt(_0x47607e(0x172))/0x7)+parseInt(_0x47607e(0x180))/0x8+-parseInt(_0x47607e(0x16b))/0x9*(parseInt(_0x47607e(0x183))/0xa);if(_0xc9d205===_0x181f22)break;else _0x246185['push'](_0x246185['shift']());}catch(_0x753a81){_0x246185['push'](_0x246185['shift']());}}}(_0x1e1f,0x359ef));import{Plugin as _0x357439}from'ckeditor5/src/core.js';import{ToggleAICommand as _0xdeda13}from'./toggleaicommand.js';import{ButtonView as _0x4b0974,MenuBarMenuListItemButtonView as _0x76028f}from'ckeditor5/src/ui.js';function _0x1e1f(){const _0x99f657=['componentFactory','AI_TOGGLE_BUTTON_LABEL','set','36iyZnoK','add','isEnabled','editor','68346HIIhmQ','locale','get','toggleAi','init','90738QkNnDU','requires','1246NxWarb','menuBar:toggleAi','AIToggleButtonUI','ck-ai-toggle-button','114420rFcgcs','552980suvQqE','378dNVWTX','isOfficialPlugin','_createAIUIButton','bind','menuitemcheckbox','listenTo','495715voWvrT','isPremiumPlugin','2383504ImSUZv','value','execute','280AcGaHK','isOn','commands','pluginName'];_0x1e1f=function(){return _0x99f657;};return _0x1e1f();}import{IconAIAskAI as _0x5ac9e4}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0xbfbfa0}from'../../aicore/utils/common-translations.js';import{AITabs as _0x45e656}from'../../aitabs/aitabs.js';import'../../../theme/aieditorintegration/aitogglebutton.css';export class AIToggleButtonUI extends _0x357439{static get[_0x1bc3ff(0x171)](){return[_0x45e656];}static get[_0x1bc3ff(0x186)](){const _0x5b0fda=_0x1bc3ff;return _0x5b0fda(0x174);}static get[_0x1bc3ff(0x179)](){return!0x0;}static get[_0x1bc3ff(0x17f)](){return!0x0;}[_0x1bc3ff(0x16f)](){const _0x513bef=_0x1bc3ff,_0x3f612e=this[_0x513bef(0x16a)];_0x3f612e[_0x513bef(0x185)][_0x513bef(0x18b)](_0x513bef(0x16e),new _0xdeda13(_0x3f612e)),_0x3f612e['ui'][_0x513bef(0x187)][_0x513bef(0x18b)](_0x513bef(0x16e),()=>{const _0x2cb1ec=_0x513bef,_0x29a217=this[_0x2cb1ec(0x17a)](_0x4b0974);return _0x29a217[_0x2cb1ec(0x189)]({'tooltip':!0x0,'class':_0x2cb1ec(0x175)}),_0x29a217;}),_0x3f612e['ui'][_0x513bef(0x187)][_0x513bef(0x18b)](_0x513bef(0x173),()=>{const _0x4a4e03=_0x513bef,_0x57c987=this[_0x4a4e03(0x17a)](_0x76028f);return _0x57c987[_0x4a4e03(0x189)]({'role':_0x4a4e03(0x17c)}),_0x57c987;});}[_0x1bc3ff(0x17a)](_0x58bbf3){const _0x46d5f9=_0x1bc3ff,_0x4f5d0d=this[_0x46d5f9(0x16a)],_0x5c15a6=_0x4f5d0d[_0x46d5f9(0x185)][_0x46d5f9(0x16d)](_0x46d5f9(0x16e)),_0x442ac2=new _0x58bbf3(_0x4f5d0d[_0x46d5f9(0x16c)]);return _0x442ac2[_0x46d5f9(0x189)]({'label':_0xbfbfa0(_0x4f5d0d[_0x46d5f9(0x16c)],_0x46d5f9(0x188)),'icon':_0x5ac9e4,'isToggleable':!0x0}),_0x442ac2[_0x46d5f9(0x17b)](_0x46d5f9(0x169))['to'](_0x5c15a6),_0x442ac2[_0x46d5f9(0x17b)](_0x46d5f9(0x184))['to'](_0x5c15a6,_0x46d5f9(0x181),_0x3e7746=>!!_0x3e7746),this[_0x46d5f9(0x17d)](_0x442ac2,_0x46d5f9(0x182),()=>{const _0x4d7c26=_0x46d5f9;_0x5c15a6[_0x4d7c26(0x182)]();}),_0x442ac2;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x579a8d=_0x23cf;(function(_0x3e1cfd,_0x5799c1){const _0x24b00e=_0x23cf,_0x516651=_0x3e1cfd();while(!![]){try{const _0x2ac160=parseInt(_0x24b00e(0xc7))/0x1+-parseInt(_0x24b00e(0xc2))/0x2*(parseInt(_0x24b00e(0xbc))/0x3)+parseInt(_0x24b00e(0xbd))/0x4*(-parseInt(_0x24b00e(0xc0))/0x5)+-parseInt(_0x24b00e(0xb6))/0x6+parseInt(_0x24b00e(0xb9))/0x7*(-parseInt(_0x24b00e(0xc1))/0x8)+-parseInt(_0x24b00e(0xb5))/0x9*(-parseInt(_0x24b00e(0xbf))/0xa)+parseInt(_0x24b00e(0xbe))/0xb;if(_0x2ac160===_0x5799c1)break;else _0x516651['push'](_0x516651['shift']());}catch(_0x299661){_0x516651['push'](_0x516651['shift']());}}}(_0x5a3f,0x51652));function _0x5a3f(){const _0x787f5=['value','189KCoIsB','view','editor','115281FVgjTY','63368SyTecS','16323912oXRhjG','1127270bsuVyn','210vxCkqk','15128VKhNrN','32kNAOem','execute','isVisible','plugins','get','39269yGXrmY','AITabs','isEnabled','36Tdaofu','1857132dfzBZl','bind'];_0x5a3f=function(){return _0x787f5;};return _0x5a3f();}function _0x23cf(_0x34a1c2,_0x40023c){const _0x5a3f5e=_0x5a3f();return _0x23cf=function(_0x23cfcf,_0x5bd78c){_0x23cfcf=_0x23cfcf-0xb3;let _0x3fea8a=_0x5a3f5e[_0x23cfcf];return _0x3fea8a;},_0x23cf(_0x34a1c2,_0x40023c);}import{Command as _0x5a7cae}from'ckeditor5/src/core.js';export class ToggleAICommand extends _0x5a7cae{constructor(_0x189bd6){const _0xe1d401=_0x23cf;super(_0x189bd6);const _0x989c8b=_0x189bd6[_0xe1d401(0xc5)][_0xe1d401(0xc6)](_0xe1d401(0xb3))[_0xe1d401(0xba)];this[_0xe1d401(0xb7)](_0xe1d401(0xb8))['to'](_0x989c8b,_0xe1d401(0xc4)),this[_0xe1d401(0xb4)]=!0x0;}[_0x579a8d(0xc3)](){const _0x1ba6bc=_0x579a8d,_0x2c071b=this[_0x1ba6bc(0xbb)][_0x1ba6bc(0xc5)][_0x1ba6bc(0xc6)](_0x1ba6bc(0xb3))[_0x1ba6bc(0xba)];_0x2c071b[_0x1ba6bc(0xc4)]=!_0x2c071b[_0x1ba6bc(0xc4)];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x5e93(_0x3063ba,_0x3ded8b){var _0x2eb49b=_0x2eb4();return _0x5e93=function(_0x5e93f7,_0x4dbe71){_0x5e93f7=_0x5e93f7-0x65;var _0x2cd79b=_0x2eb49b[_0x5e93f7];return _0x2cd79b;},_0x5e93(_0x3063ba,_0x3ded8b);}var _0x18b8dc=_0x5e93;(function(_0x2a6c37,_0x4690ae){var _0x991e40=_0x5e93,_0x5e300a=_0x2a6c37();while(!![]){try{var _0x4ac2f1=parseInt(_0x991e40(0x72))/0x1+-parseInt(_0x991e40(0x74))/0x2*(parseInt(_0x991e40(0x6c))/0x3)+-parseInt(_0x991e40(0x67))/0x4*(parseInt(_0x991e40(0x73))/0x5)+-parseInt(_0x991e40(0x6e))/0x6*(parseInt(_0x991e40(0x77))/0x7)+parseInt(_0x991e40(0x75))/0x8+-parseInt(_0x991e40(0x71))/0x9*(-parseInt(_0x991e40(0x69))/0xa)+parseInt(_0x991e40(0x76))/0xb*(parseInt(_0x991e40(0x6d))/0xc);if(_0x4ac2f1===_0x4690ae)break;else _0x5e300a['push'](_0x5e300a['shift']());}catch(_0x85d4f2){_0x5e300a['push'](_0x5e300a['shift']());}}}(_0x2eb4,0x89715));import{Plugin as _0x3b2581}from'ckeditor5/src/core.js';function _0x2eb4(){var _0x480c65=['ai.quickActions','AIQuickActions','692739WNZiEd','536165izVnuZ','20SqBMxA','2080498FYGdLF','4743776cfvsIn','37202MrKNne','77NiManv','pluginName','define','isOfficialPlugin','959120xSZTia','isPremiumPlugin','20lFhSCz','config','requires','3QZoXem','5964KRTHhT','219054UjDhRQ'];_0x2eb4=function(){return _0x480c65;};return _0x2eb4();}import{AIQuickActionsUI as _0x5985d0}from'./aiquickactionsui.js';import{AIQuickActionsEditing as _0x1852c8}from'./aiquickactionsediting.js';import{AIActions as _0x596482}from'../aiactions/aiactions.js';export class AIQuickActions extends _0x3b2581{static get[_0x18b8dc(0x6b)](){return[_0x5985d0,_0x1852c8,_0x596482];}static get[_0x18b8dc(0x78)](){var _0x171acf=_0x18b8dc;return _0x171acf(0x70);}static get[_0x18b8dc(0x66)](){return!0x0;}static get[_0x18b8dc(0x68)](){return!0x0;}constructor(_0x5dc60a){var _0x5dd69f=_0x18b8dc;super(_0x5dc60a),_0x5dc60a[_0x5dd69f(0x6a)][_0x5dd69f(0x65)](_0x5dd69f(0x6f),{'extraCommands':[],'removeCommands':[],'isSearchEnabled':!0x0});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x34d7(_0x27f264,_0xa06bd8){const _0x533c09=_0x533c();return _0x34d7=function(_0x34d763,_0x9d3def){_0x34d763=_0x34d763-0x143;let _0x398280=_0x533c09[_0x34d763];return _0x398280;},_0x34d7(_0x27f264,_0xa06bd8);}function _0x533c(){const _0xe1373c=['removeSelectionFromChatContext','isCollapsed','10989846UcwXez','879505OSPXHB','isVisible','icon','selection','16eTVnjG','getLimitElement','view','editor','AIReviewMode','14678aRhLDE','170yCfPNx','addSelectionToChatContext','label','plugins','startConversation','_handleAIActionsActionLabel','sendMessage','AIChatController','other','document','ai-quick-actions-plugin-not-found','model','locale','log','CHAT','get','AI_QUICK_ACTIONS_PLUGIN_NOT_FOUND','_handleAIReviewAction','305921uUxgKi','execute','ACTION','1917684hAbslt','change','6IpqZIk','AITabs','type','activeTab','AIActions','has','_handleAIChatAction','chat','args','parent','_handleAIActionsAction','ask-ai','REVIEW','activateTab','setSelection','prompt','actionName','schema','handleAIReviewAction','2200977jmCekZ','68wYuViA','_expandSelectionIfCollapsed','executeAction','3058756AzWipW','getSelectedBlocks','displayedPrompt','AIChat','focusPromptInput'];_0x533c=function(){return _0xe1373c;};return _0x533c();}const _0x2c8026=_0x34d7;(function(_0x584151,_0x34fc5c){const _0x556bbb=_0x34d7,_0x184ffe=_0x584151();while(!![]){try{const _0x3dca19=-parseInt(_0x556bbb(0x15f))/0x1*(parseInt(_0x556bbb(0x173))/0x2)+-parseInt(_0x556bbb(0x149))/0x3+-parseInt(_0x556bbb(0x162))/0x4+-parseInt(_0x556bbb(0x16a))/0x5*(-parseInt(_0x556bbb(0x14b))/0x6)+parseInt(_0x556bbb(0x169))/0x7+-parseInt(_0x556bbb(0x16e))/0x8*(-parseInt(_0x556bbb(0x15e))/0x9)+parseInt(_0x556bbb(0x174))/0xa*(parseInt(_0x556bbb(0x146))/0xb);if(_0x3dca19===_0x34fc5c)break;else _0x184ffe['push'](_0x184ffe['shift']());}catch(_0x47f0d0){_0x184ffe['push'](_0x184ffe['shift']());}}}(_0x533c,0xc47c3));import{Command as _0x40d7b1}from'ckeditor5/src/core.js';import{CKEditorError as _0x3c1173,first as _0x1817c0}from'ckeditor5/src/utils.js';import{AIQuickActionType as _0x1b1181}from'./aiquickactionsui.js';import{getTranslation as _0x105088}from'../aicore/utils/common-translations.js';export class AIQuickActionsCommand extends _0x40d7b1{[_0x2c8026(0x147)](_0x2c4c9d){const _0x17c0f3=_0x2c8026;switch(this[_0x17c0f3(0x160)](),_0x2c4c9d[_0x17c0f3(0x14d)]){case _0x1b1181[_0x17c0f3(0x182)]:if(!this[_0x17c0f3(0x171)][_0x17c0f3(0x177)][_0x17c0f3(0x150)](_0x17c0f3(0x165))){const _0x2f08b6=_0x105088(this[_0x17c0f3(0x171)][_0x17c0f3(0x180)],_0x17c0f3(0x144),_0x17c0f3(0x165));throw new _0x3c1173(_0x17c0f3(0x17e),this[_0x17c0f3(0x171)],{'errorMessage':_0x2f08b6});}this[_0x17c0f3(0x151)](_0x2c4c9d);break;case _0x1b1181[_0x17c0f3(0x148)]:if(!this[_0x17c0f3(0x171)][_0x17c0f3(0x177)][_0x17c0f3(0x150)](_0x17c0f3(0x14f))){const _0x521e74=_0x105088(this[_0x17c0f3(0x171)][_0x17c0f3(0x180)],_0x17c0f3(0x144),_0x17c0f3(0x14f));throw new _0x3c1173(_0x17c0f3(0x17e),this[_0x17c0f3(0x171)],{'errorMessage':_0x521e74});}this[_0x17c0f3(0x155)](_0x2c4c9d);break;case _0x1b1181[_0x17c0f3(0x157)]:if(!this[_0x17c0f3(0x171)][_0x17c0f3(0x177)][_0x17c0f3(0x150)](_0x17c0f3(0x172))){const _0x31543b=_0x105088(this[_0x17c0f3(0x171)][_0x17c0f3(0x180)],_0x17c0f3(0x144),_0x17c0f3(0x172));throw new _0x3c1173(_0x17c0f3(0x17e),this[_0x17c0f3(0x171)],{'errorMessage':_0x31543b});}this[_0x17c0f3(0x145)](_0x2c4c9d);}}async[_0x2c8026(0x151)](_0x45a360){const _0x128134=_0x2c8026,_0x4adaf6=this[_0x128134(0x171)][_0x128134(0x177)][_0x128134(0x143)](_0x128134(0x165)),_0x430bba=this[_0x128134(0x171)][_0x128134(0x177)][_0x128134(0x143)](_0x128134(0x17b)),_0x443652=this[_0x128134(0x171)][_0x128134(0x177)][_0x128134(0x143)](_0x128134(0x14c))[_0x128134(0x170)];if(_0x443652[_0x128134(0x16b)]||(_0x443652[_0x128134(0x16b)]=!0x0),_0x128134(0x152)!==_0x443652[_0x128134(0x14e)]&&_0x443652[_0x128134(0x158)](_0x128134(0x152)),_0x128134(0x156)===_0x45a360['id'])_0x430bba[_0x128134(0x167)](),await _0x4adaf6[_0x128134(0x175)](),_0x4adaf6[_0x128134(0x166)]();else await _0x4adaf6[_0x128134(0x178)](),_0x430bba[_0x128134(0x167)](),await _0x4adaf6[_0x128134(0x175)](),_0x4adaf6[_0x128134(0x166)](),await _0x4adaf6[_0x128134(0x17a)]({'message':_0x45a360[_0x128134(0x15a)]||_0x45a360[_0x128134(0x164)],'quickActionData':{'id':_0x45a360['id'],'displayedPrompt':_0x45a360[_0x128134(0x164)]}});}[_0x2c8026(0x160)](){const _0x91e3fb=_0x2c8026,_0x39f3ce=this[_0x91e3fb(0x171)],_0x5164a6=_0x39f3ce[_0x91e3fb(0x17f)][_0x91e3fb(0x17d)][_0x91e3fb(0x16d)];if(!_0x5164a6[_0x91e3fb(0x168)])return;const _0x58b319=_0x1817c0(_0x5164a6[_0x91e3fb(0x163)]())||_0x39f3ce[_0x91e3fb(0x17f)][_0x91e3fb(0x15c)][_0x91e3fb(0x16f)](_0x5164a6);_0x39f3ce[_0x91e3fb(0x17f)][_0x91e3fb(0x14a)](_0x57659c=>{const _0x397c4b=_0x91e3fb;_0x57659c[_0x397c4b(0x159)](_0x58b319,'in');});}[_0x2c8026(0x179)](_0x22e7f6){const _0x56f213=_0x2c8026;return _0x22e7f6[_0x56f213(0x154)]?.[_0x56f213(0x176)]&&_0x56f213(0x17c)!==_0x22e7f6[_0x56f213(0x154)]?.['id']?_0x22e7f6[_0x56f213(0x154)][_0x56f213(0x176)]+':\x20'+_0x22e7f6[_0x56f213(0x164)]:_0x22e7f6[_0x56f213(0x164)];}async[_0x2c8026(0x155)](_0x2192db){const _0x39c981=_0x2c8026,_0x1f4a05=this[_0x39c981(0x171)][_0x39c981(0x177)][_0x39c981(0x143)](_0x39c981(0x14f)),_0xae36b9=_0x2192db[_0x39c981(0x15a)]?{'userMessage':_0x2192db[_0x39c981(0x15a)],'model':_0x2192db[_0x39c981(0x17f)]}:{'actionName':_0x2192db[_0x39c981(0x15b)]||_0x2192db['id'],'args':_0x2192db[_0x39c981(0x153)]},_0x15dd57=this[_0x39c981(0x179)](_0x2192db);await _0x1f4a05[_0x39c981(0x161)](_0xae36b9,_0x15dd57,_0x2192db[_0x39c981(0x16c)]);}async[_0x2c8026(0x145)](_0x1213bd){const _0x22875f=_0x2c8026;console[_0x22875f(0x181)](_0x22875f(0x15d),_0x1213bd);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2eaa11=_0x1aca;(function(_0x32044f,_0x3e459a){const _0x1779fc=_0x1aca,_0xcd41d6=_0x32044f();while(!![]){try{const _0x5d6a35=-parseInt(_0x1779fc(0x149))/0x1+parseInt(_0x1779fc(0x14d))/0x2*(-parseInt(_0x1779fc(0x143))/0x3)+parseInt(_0x1779fc(0x147))/0x4+parseInt(_0x1779fc(0x152))/0x5+-parseInt(_0x1779fc(0x155))/0x6*(parseInt(_0x1779fc(0x144))/0x7)+parseInt(_0x1779fc(0x14a))/0x8+-parseInt(_0x1779fc(0x14f))/0x9;if(_0x5d6a35===_0x3e459a)break;else _0xcd41d6['push'](_0xcd41d6['shift']());}catch(_0x3d0704){_0xcd41d6['push'](_0xcd41d6['shift']());}}}(_0x7c40,0x6dc7c));import{Plugin as _0x31aaac}from'ckeditor5/src/core.js';function _0x1aca(_0x34e321,_0x4c687b){const _0x7c4092=_0x7c40();return _0x1aca=function(_0x1acaa2,_0x4440de){_0x1acaa2=_0x1acaa2-0x13b;let _0x3304a0=_0x7c4092[_0x1acaa2];return _0x3304a0;},_0x1aca(_0x34e321,_0x4c687b);}import{AIQuickActionsCommand as _0x11f2ce}from'./aiquickactionscommand.js';function _0x7c40(){const _0x3e47e1=['model','pluginName','6GeSqQI','editor','isPremiumPlugin','directChange','get','commands','add','aiQuickAction','document','selection','7773iDXMjD','2800196oHfyny','AIChat','isOfficialPlugin','3474748gFSSnI','AIQuickActionsEditing','209321ePtCjo','5928936kUycPS','has','init','346wEMbBl','change:range','7688844RsKQCx','removeSelectionFromChatContext','plugins','3758820NGgzJo'];_0x7c40=function(){return _0x3e47e1;};return _0x7c40();}export class AIQuickActionsEditing extends _0x31aaac{static get[_0x2eaa11(0x154)](){const _0x173451=_0x2eaa11;return _0x173451(0x148);}static get[_0x2eaa11(0x146)](){return!0x0;}static get[_0x2eaa11(0x13b)](){return!0x0;}[_0x2eaa11(0x14c)](){const _0xe9d763=_0x2eaa11,_0x4f12a8=this[_0xe9d763(0x156)],_0x558ef3=new _0x11f2ce(this[_0xe9d763(0x156)]);if(_0x4f12a8[_0xe9d763(0x13e)][_0xe9d763(0x13f)](_0xe9d763(0x140),_0x558ef3),_0x4f12a8[_0xe9d763(0x151)][_0xe9d763(0x14b)](_0xe9d763(0x145))){const _0x5b0da5=this[_0xe9d763(0x156)][_0xe9d763(0x151)][_0xe9d763(0x13d)](_0xe9d763(0x145));_0x4f12a8[_0xe9d763(0x153)][_0xe9d763(0x141)][_0xe9d763(0x142)]['on'](_0xe9d763(0x14e),(_0x440381,_0x412451)=>{const _0x528f27=_0xe9d763;_0x412451[_0x528f27(0x13c)]&&_0x5b0da5[_0x528f27(0x150)]();});}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x545ac1=_0x1289;(function(_0x61c734,_0x44a510){const _0x131bf9=_0x1289,_0x20a5bf=_0x61c734();while(!![]){try{const _0x21fde9=-parseInt(_0x131bf9(0x1dd))/0x1*(-parseInt(_0x131bf9(0x1fe))/0x2)+parseInt(_0x131bf9(0x1d0))/0x3+-parseInt(_0x131bf9(0x1bd))/0x4*(-parseInt(_0x131bf9(0x1c0))/0x5)+parseInt(_0x131bf9(0x1f3))/0x6+parseInt(_0x131bf9(0x21c))/0x7*(parseInt(_0x131bf9(0x1e1))/0x8)+parseInt(_0x131bf9(0x1a3))/0x9*(parseInt(_0x131bf9(0x1ec))/0xa)+parseInt(_0x131bf9(0x1b2))/0xb*(-parseInt(_0x131bf9(0x211))/0xc);if(_0x21fde9===_0x44a510)break;else _0x20a5bf['push'](_0x20a5bf['shift']());}catch(_0x169cdb){_0x20a5bf['push'](_0x20a5bf['shift']());}}}(_0x1919,0xd9252));import{IconAIAdjustLength as _0x4e3641,IconAIChangeTone as _0x436e6e,IconAIChatCommands as _0x28581a,IconAIContinueWriting as _0x349770,IconAIGrammarCheck as _0x54df7e,IconAIImproveWriting as _0x5bd579,IconAIOther as _0x1de7c4,IconAIQuickActions as _0x4e3b6a,IconAITranslate as _0x4cd12e}from'@ckeditor/ckeditor5-icons';import{Plugin as _0x307a2a}from'ckeditor5/src/core.js';import{CKEditorError as _0x3f4e80,logError as _0x56884d}from'ckeditor5/src/utils.js';import{getTranslation as _0x41fca3}from'../aicore/utils/common-translations.js';import{aiQuickActionsDropdownCreator as _0x404d3a}from'./ui/aiquickactionsdropdowncreator.js';import{aiQuickActionsButtonCreator as _0x2c96f1}from'./ui/aiquickactionsbuttoncreator.js';import{BodyCollection as _0xe73188,BalloonToolbar as _0x201579,MenuBarMenuView as _0x25739e,MenuBarMenuListView as _0x2e34af,MenuBarMenuListItemView as _0x435806,MenuBarMenuListItemButtonView as _0x1ebb9c}from'ckeditor5/src/ui.js';import'../../theme/aiquickactions/aiquickactions.css';import{AIModels as _0x2b11b7}from'../aicore/model/aimodels.js';const Xt=_0x545ac1(0x1e2),Zt=_0x545ac1(0x1ac),te=_0x545ac1(0x21a);function _0x1919(){const _0x394738=['plugins','actions','find','AIConnector','AI_QUICK_ACTIONS_OTHER','7856109wonVtU','translate-to-german','AIQuickActionsUI','_initializeQuickActionsMenuBar','make-longer','execute','explain','AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS','AI_QUICK_ACTIONS_TRANSLATE_SPANISH','<task>For\x20the\x20given\x20selected\x20part\x20of\x20an\x20HTML\x20document\x20you\x20must\x20summarize\x20its\x20content\x20in\x20a\x20few\x20sentences,\x20keeping\x20only\x20the\x20essential\x20meaning.</task><rules>1.\x20Your\x20summary\x20should\x20be\x20short\x20and\x20clear:-\x20Aim\x20for\x202–4\x20sentences\x20unless\x20the\x20text\x20is\x20extremely\x20short.-\x20Focus\x20on\x20capturing\x20the\x20main\x20idea(s)\x20without\x20unnecessary\x20detail.2.\x20Identify\x20what\x20type\x20of\x20text\x20it\x20is\x20and\x20adapt\x20the\x20summary\x20style:-\x20If\x20it\x20is\x20descriptive\x20condense\x20the\x20description\x20into\x20its\x20core\x20idea.-\x20If\x20it\x20is\x20argumentative\x20or\x20opinion-based\x20summarize\x20the\x20main\x20claim\x20and\x20reasoning\x20neutrally.-\x20If\x20it\x20is\x20narrative/story-like\x20capture\x20the\x20main\x20event\x20or\x20outcome\x20without\x20side\x20details.-\x20If\x20it\x20is\x20data-driven\x20(stats,\x20figures,\x20facts)\x20summarize\x20what\x20the\x20data\x20shows\x20in\x20plain\x20language.-\x20If\x20it\x20is\x20instructional\x20restate\x20the\x20overall\x20purpose\x20of\x20the\x20steps\x20without\x20listing\x20every\x20step.-\x20If\x20it\x20does\x20not\x20fit\x20any\x20of\x20the\x20categories\x20above\x20provide\x20a\x20general\x20concise\x20summary.3.\x20Provide\x20context\x20if\x20necessary\x20for\x20clarity:-\x20Mention\x20the\x20subject\x20or\x20topic\x20explicitly\x20so\x20the\x20summary\x20can\x20stand\x20alone.4.\x20Do\x20not\x20simply\x20copy\x20sentences\x20from\x20the\x20original\x20text\x20—\x20rephrase\x20in\x20plain\x20language.5.\x20Avoid\x20adding\x20new\x20information\x20or\x20interpretation\x20not\x20present\x20in\x20the\x20text.6.\x20Summarize\x20in\x20a\x20way\x20that\x20would\x20make\x20sense\x20to\x20someone\x20who\x20has\x20not\x20read\x20the\x20original\x20text.7.\x20Use\x20the\x20context\x20of\x20the\x20whole\x20document,\x20but\x20focus\x20on\x20the\x20selected\x20part\x20when\x20creating\x20your\x20summary.8.\x20Your\x20summary\x20should\x20be\x20written\x20in\x20%0\x20language.</rules><constraints>1.\x20You\x20MUST\x20NOT\x20perform\x20any\x20edits\x20or\x20modifications\x20on\x20the\x20provided\x20document.2.\x20You\x20MUST\x20NOT\x20include\x20document\x20modifications\x20in\x20your\x20response.3.\x20Your\x20message\x20should\x20only\x20include\x20the\x20summary.\x20Do\x20not\x20add\x20any\x20additional\x20text,\x20flattery,\x20questions\x20or\x20followup\x20suggestions.</constraints>','AI_QUICK_ACTIONS_TRANSLATE_CHINESE','uiLanguage','AI_QUICK_ACTIONS_ASK_AI','translate-to-english','AIReviewMode','9361LxdtPO','adjust-length','french','filter','_executeQuickAction','forEach','view','English','requires','focus','set','4TOrzqv','improve-writing','russian','2985895GnujHp','replace','AI_QUICK_ACTIONS_MAKE_LONGER','translate-to-korean','menuBarView','AI_QUICK_ACTIONS_TRANSLATE_JAPANESE','language','highlight-key-points','_initializeQuickActionsComponents','translate-to-russian','translate-to-italian','icon','summarize','AI_QUICK_ACTIONS_CONTINUE_WRITING','getAvailableModels','message','1832205xYwnje','get','AI_QUICK_ACTIONS_TRANSLATE_FRENCH','AI_QUICK_ACTIONS_TRANSLATE','attachToDom','model','AI_QUICK_ACTIONS_ADJUST_LENGTH','AI_QUICK_ACTIONS_MORE_CONFIDENT','length','chat-commands','korean','ai-quick-actions-models-unable-to-retrieve','getDefaultQuickActions','268974PzjVqd','aiQuickAction','add','translate-to-spanish','28744xMomli','<task>For\x20given\x20selected\x20part\x20of\x20HTML\x20document\x20you\x20must\x20explain\x20the\x20meaning\x20of\x20it\x27s\x20content\x20clearly\x20and\x20in\x20plain\x20language.</task><rules>1.\x20Identify\x20what\x20type\x20of\x20text\x20it\x20is:-\x20If\x20it\x20looks\x20like\x20a\x20definition\x20explain\x20the\x20concept\x20in\x20simple\x20terms.-\x20If\x20it\x20looks\x20like\x20a\x20description\x20clarify\x20what\x20it\x20is\x20describing\x20and\x20why\x20it\x20matters.-\x20If\x20it\x20contains\x20technical\x20terms\x20or\x20jargon\x20break\x20them\x20down\x20into\x20everyday\x20language.-\x20If\x20it\x20looks\x20instructional\x20restate\x20as\x20clear\x20steps\x20someone\x20can\x20follow.-\x20If\x20it\x20provides\x20examples\x20explain\x20what\x20the\x20example\x20shows\x20and\x20why\x20it\x27s\x20relevant.-\x20If\x20it\x20presents\x20an\x20argument\x20or\x20claim\x20restate\x20the\x20claim\x20neutrally\x20and\x20explain\x20its\x20purpose.-\x20If\x20it\x20is\x20narrative/story-like\x20explain\x20what\x20event\x20or\x20situation\x20is\x20being\x20described.-\x20If\x20it\x20is\x20data-driven\x20(stats,\x20figures,\x20facts)\x20explain\x20what\x20the\x20data\x20indicates.-\x20If\x20it\x20is\x20a\x20quotation\x20explain\x20the\x20meaning\x20of\x20the\x20quote\x20in\x20context.-\x20If\x20it\x20compares/contrasts\x20things\x20explain\x20the\x20key\x20differences\x20or\x20similarities\x20simply.-\x20If\x20it\x20does\x20not\x20fit\x20any\x20of\x20the\x20categories\x20above\x20give\x20a\x20clear,\x20plain-language\x20explanation\x20of\x20its\x20meaning,\x20focusing\x20on\x20usefulness.2.\x20Provide\x20context\x20if\x20the\x20meaning\x20could\x20be\x20unclear\x20without\x20it.\x20(e.g.,\x20explain\x20where\x20such\x20a\x20term\x20might\x20be\x20used,\x20or\x20why\x20it\x20is\x20important).3.\x20Keep\x20the\x20explanation\x20short\x20but\x20complete\x20(2–5\x20sentences).Avoid\x20overly\x20technical\x20detail\x20unless\x20it\x20is\x20necessary\x20for\x20understanding.4.\x20Do\x20not\x20simply\x20repeat\x20the\x20original\x20text\x20—\x20restate\x20and\x20expand\x20it\x20in\x20plain\x20words.5.\x20If\x20possible,\x20add\x20a\x20short\x20example\x20or\x20analogy\x20to\x20make\x20it\x20easier\x20to\x20understand.6.\x20Use\x20the\x20context\x20of\x20the\x20whole\x20document,\x20but\x20focus\x20on\x20the\x20selected\x20part\x20when\x20creating\x20your\x20explanation.7.\x20Your\x20explanation\x20should\x20be\x20written\x20in\x20%0\x20language.</rules><constraints>1.\x20You\x20MUST\x20NOT\x20perform\x20any\x20edits\x20or\x20modifications\x20on\x20provided\x20document.2.\x20You\x20MUST\x20NOT\x20include\x20document\x20modifications\x20in\x20your\x20response.3.\x20Your\x20message\x20should\x20only\x20include\x20explanation.\x20Do\x20not\x20add\x20any\x20additional\x20text,\x20flattery,\x20questions\x20or\x20followup\x20suggestions.</constraints>','values','german','locale','make-tone-casual','change-tone','_shouldIncludeAction','make-tone-friendly','ai.chat.models.displayedModels','displayedPrompt','10wfnwjb','isOfficialPlugin','componentFactory','config','ai.quickActions.extraCommands','translate-to-chinese','has','2052858kUIMKU','CHAT','delegate','children','AI_QUICK_ACTIONS_MORE_CASUAL','AI_QUICK_ACTIONS_SUMMARIZE','_prepareQuickActionsDefinition','isEnabled','AIActions','AI_QUICK_ACTIONS_MORE_PROFESSIONAL','aiQuickActions','10CxTDVG','push','ACTION','ai-quick-actions-unavailable-model','AI_QUICK_ACTIONS_FIX_GRAMMAR_SPELLING','menuitem','DisplayNames','map','italian','ai.chat.context.document.enabled','menu','continue','items','AI_QUICK_ACTIONS_TRANSLATE_ENGLISH','_quickActionsDefinition','ai.quickActions.isSearchEnabled','ask-ai','AI_QUICK_ACTIONS_MORE_FRIENDLY','make-tone-professional','57156HSGcLG','fix-grammar','AI_QUICK_ACTIONS_TRANSLATE_ITALIAN','spanish','AI_QUICK_ACTIONS_CHANGE_TONE','translate-to-japanese','editor','chinese','translate-to-portuguese','<task>For\x20the\x20given\x20selected\x20part\x20of\x20an\x20HTML\x20document\x20you\x20must\x20extract\x20and\x20present\x20the\x20key\x20points\x20from\x20its\x20content.</task><rules>1.\x20Present\x20the\x20output\x20as\x20a\x20clear,\x20structured\x20list\x20(bullets\x20or\x20numbered).-\x20Each\x20point\x20should\x20be\x20concise\x20(one\x20sentence\x20or\x20less).-\x20Do\x20not\x20merge\x20distinct\x20ideas\x20into\x20one\x20bullet.2.\x20Identify\x20what\x20type\x20of\x20text\x20it\x20is\x20and\x20adapt\x20the\x20extraction\x20style:-\x20If\x20it\x20is\x20descriptive\x20capture\x20the\x20main\x20attributes\x20or\x20features.-\x20If\x20it\x20is\x20argumentative\x20extract\x20the\x20main\x20claim\x20and\x20supporting\x20reasons\x20separately.-\x20If\x20it\x20is\x20narrative/story-like\x20extract\x20the\x20main\x20events\x20in\x20chronological\x20order.-\x20If\x20it\x20is\x20data-driven\x20(stats,\x20figures,\x20facts)\x20highlight\x20the\x20most\x20important\x20facts\x20or\x20numbers.-\x20If\x20it\x20is\x20instructional\x20list\x20the\x20steps\x20or\x20main\x20actions\x20in\x20simplified\x20form.-\x20If\x20it\x20provides\x20comparisons\x20extract\x20the\x20contrasted\x20items\x20and\x20their\x20differences/similarities.-\x20If\x20it\x20does\x20not\x20fit\x20any\x20category\x20above\x20extract\x20the\x20main\x20ideas\x20in\x20plain,\x20short\x20statements.3.\x20Keep\x20the\x20list\x20between\x203–7\x20items\x20where\x20possible.-\x20If\x20the\x20text\x20is\x20very\x20short,\x20fewer\x20items\x20are\x20fine.-\x20If\x20it\x20is\x20very\x20long,\x20focus\x20on\x20the\x20most\x20important\x20ideas\x20only.4.\x20Do\x20not\x20copy\x20long\x20text\x20fragments\x20—\x20restate\x20in\x20simple\x20words.5.\x20Do\x20not\x20add\x20interpretation,\x20evaluation,\x20or\x20commentary\x20beyond\x20the\x20text.6.\x20Ensure\x20the\x20list\x20can\x20stand\x20alone\x20without\x20requiring\x20the\x20reader\x20to\x20see\x20the\x20original\x20document.7.\x20Use\x20the\x20context\x20of\x20the\x20whole\x20document,\x20but\x20focus\x20on\x20the\x20selected\x20part\x20when\x20creating\x20your\x20key\x20points.8.\x20Your\x20key\x20points\x20should\x20be\x20written\x20in\x20%0\x20language.</rules><constraints>1.\x20You\x20MUST\x20NOT\x20perform\x20any\x20edits\x20or\x20modifications\x20on\x20the\x20provided\x20document.2.\x20You\x20MUST\x20NOT\x20include\x20document\x20modifications\x20in\x20your\x20response.3.\x20Your\x20message\x20should\x20only\x20include\x20the\x20extracted\x20key\x20points.\x20Do\x20not\x20add\x20any\x20additional\x20text,\x20flattery,\x20questions\x20or\x20followup\x20suggestions.</constraints>','buttonView','2289ppCfvQ','AI_QUICK_ACTIONS_MAKE_SHORTER','_initializeQuickActionsDropdown','ai.quickActions.removeCommands','AIChat','make-tone-confident','AI_QUICK_ACTIONS_HEADING','includes','pluginName','english','label','isPremiumPlugin','AI_QUICK_ACTIONS_EXPLAIN','panelView','type','AI_QUICK_ACTIONS_CHAT_COMMANDS','translate','_getDefaultAndCustomActions','portuguese','translate-to-french','japanese','make-tone-direct','AI_QUICK_ACTIONS_TRANSLATE_RUSSIAN','some','commands','AI_QUICK_ACTIONS_MORE_DIRECT','AI_QUICK_ACTIONS_TRANSLATE_PORTUGUESE','make-shorter','editing','close','other','_initializeQuickActionsComponentsAndCommands','menuBar:aiQuickActions','AI_QUICK_ACTIONS_TRANSLATE_KOREAN','init','AI_QUICK_ACTIONS_IMPROVE_WRITING','REVIEW','AI_QUICK_ACTIONS_TRANSLATE_GERMAN'];_0x1919=function(){return _0x394738;};return _0x1919();}export var AIQuickActionType;!function(_0x309548){const _0x458f89=_0x545ac1;_0x309548[_0x458f89(0x1f4)]=_0x458f89(0x1f4),_0x309548[_0x458f89(0x200)]=_0x458f89(0x200),_0x309548[_0x458f89(0x240)]=_0x458f89(0x240);}(AIQuickActionType||(AIQuickActionType={}));function _0x1289(_0x36d310,_0x558d4e){const _0x191917=_0x1919();return _0x1289=function(_0x1289cb,_0x2662f4){_0x1289cb=_0x1289cb-0x19d;let _0x4d61f7=_0x191917[_0x1289cb];return _0x4d61f7;},_0x1289(_0x36d310,_0x558d4e);}export var AIQuickActionTypeToPluginName;!function(_0x39a178){const _0x1e9636=_0x545ac1;_0x39a178[_0x1e9636(0x1f4)]=_0x1e9636(0x220),_0x39a178[_0x1e9636(0x200)]=_0x1e9636(0x1fb),_0x39a178[_0x1e9636(0x240)]=_0x1e9636(0x1b1);}(AIQuickActionTypeToPluginName||(AIQuickActionTypeToPluginName={}));export class AIQuickActionsUI extends _0x307a2a{static get[_0x545ac1(0x1ba)](){return[_0x201579];}static get[_0x545ac1(0x224)](){const _0x5737df=_0x545ac1;return _0x5737df(0x1a5);}static get[_0x545ac1(0x1ed)](){return!0x0;}static get[_0x545ac1(0x227)](){return!0x0;}async[_0x545ac1(0x23e)](){const _0x2d8537=_0x545ac1,_0x142583=await this[_0x2d8537(0x22d)]();this[_0x2d8537(0x1f9)](_0x142583),this[_0x2d8537(0x23b)]();}static[_0x545ac1(0x1dc)](_0x1c7ddf){return function(_0x4df902){const _0x4c8db7=_0x1289,_0x93ec38=new Intl[(_0x4c8db7(0x204))](['en'],{'type':_0x4c8db7(0x1c6)})['of'](_0x4df902[_0x4c8db7(0x1ae)]),_0x1d0f8e=_0x93ec38||_0x4c8db7(0x1b9),_0x372ac6=[{'id':_0x4c8db7(0x20e),'displayedPrompt':_0x41fca3(_0x4df902,_0x4c8db7(0x1af)),'type':AIQuickActionType[_0x4c8db7(0x1f4)],'icon':_0x28581a},{'id':_0x4c8db7(0x1d9),'label':_0x41fca3(_0x4df902,_0x4c8db7(0x22b)),'icon':_0x28581a,'actions':[{'id':_0x4c8db7(0x1a9),'displayedPrompt':_0x41fca3(_0x4df902,_0x4c8db7(0x228)),'prompt':Xt[_0x4c8db7(0x1c1)]('%0',_0x1d0f8e),'type':AIQuickActionType[_0x4c8db7(0x1f4)]},{'id':_0x4c8db7(0x1cc),'displayedPrompt':_0x41fca3(_0x4df902,_0x4c8db7(0x1f8)),'prompt':Zt[_0x4c8db7(0x1c1)]('%0',_0x1d0f8e),'type':AIQuickActionType[_0x4c8db7(0x1f4)]},{'id':_0x4c8db7(0x1c7),'displayedPrompt':_0x41fca3(_0x4df902,_0x4c8db7(0x1aa)),'prompt':te[_0x4c8db7(0x1c1)]('%0',_0x1d0f8e),'type':AIQuickActionType[_0x4c8db7(0x1f4)]}]},{'id':_0x4c8db7(0x1be),'displayedPrompt':_0x41fca3(_0x4df902,_0x4c8db7(0x23f)),'type':AIQuickActionType[_0x4c8db7(0x200)],'icon':_0x5bd579},{'id':_0x4c8db7(0x209),'displayedPrompt':_0x41fca3(_0x4df902,_0x4c8db7(0x1cd)),'type':AIQuickActionType[_0x4c8db7(0x200)],'icon':_0x349770},{'id':_0x4c8db7(0x212),'displayedPrompt':_0x41fca3(_0x4df902,_0x4c8db7(0x202)),'type':AIQuickActionType[_0x4c8db7(0x200)],'icon':_0x54df7e},{'id':_0x4c8db7(0x1b3),'label':_0x41fca3(_0x4df902,_0x4c8db7(0x1d6)),'icon':_0x4e3641,'actions':[{'id':_0x4c8db7(0x237),'displayedPrompt':_0x41fca3(_0x4df902,_0x4c8db7(0x21d)),'type':AIQuickActionType[_0x4c8db7(0x200)]},{'id':_0x4c8db7(0x1a7),'displayedPrompt':_0x41fca3(_0x4df902,_0x4c8db7(0x1c2)),'type':AIQuickActionType[_0x4c8db7(0x200)]}]},{'id':_0x4c8db7(0x1e7),'label':_0x41fca3(_0x4df902,_0x4c8db7(0x215)),'icon':_0x436e6e,'actions':[{'id':_0x4c8db7(0x1e6),'displayedPrompt':_0x41fca3(_0x4df902,_0x4c8db7(0x1f7)),'type':AIQuickActionType[_0x4c8db7(0x200)]},{'id':_0x4c8db7(0x231),'displayedPrompt':_0x41fca3(_0x4df902,_0x4c8db7(0x235)),'type':AIQuickActionType[_0x4c8db7(0x200)]},{'id':_0x4c8db7(0x1e9),'displayedPrompt':_0x41fca3(_0x4df902,_0x4c8db7(0x20f)),'type':AIQuickActionType[_0x4c8db7(0x200)]},{'id':_0x4c8db7(0x221),'displayedPrompt':_0x41fca3(_0x4df902,_0x4c8db7(0x1d7)),'type':AIQuickActionType[_0x4c8db7(0x200)]},{'id':_0x4c8db7(0x210),'displayedPrompt':_0x41fca3(_0x4df902,_0x4c8db7(0x1fc)),'type':AIQuickActionType[_0x4c8db7(0x200)]}]},{'id':_0x4c8db7(0x22c),'label':_0x41fca3(_0x4df902,_0x4c8db7(0x1d3)),'icon':_0x4cd12e,'actions':[{'id':_0x4c8db7(0x1b0),'displayedPrompt':_0x41fca3(_0x4df902,_0x4c8db7(0x20b)),'type':AIQuickActionType[_0x4c8db7(0x200)],'actionName':_0x4c8db7(0x22c),'args':{'language':_0x4c8db7(0x225)}},{'id':_0x4c8db7(0x1f1),'displayedPrompt':_0x41fca3(_0x4df902,_0x4c8db7(0x1ad)),'type':AIQuickActionType[_0x4c8db7(0x200)],'actionName':_0x4c8db7(0x22c),'args':{'language':_0x4c8db7(0x218)}},{'id':_0x4c8db7(0x1e0),'displayedPrompt':_0x41fca3(_0x4df902,_0x4c8db7(0x1ab)),'type':AIQuickActionType[_0x4c8db7(0x200)],'actionName':_0x4c8db7(0x22c),'args':{'language':_0x4c8db7(0x214)}},{'id':_0x4c8db7(0x1a4),'displayedPrompt':_0x41fca3(_0x4df902,_0x4c8db7(0x19d)),'type':AIQuickActionType[_0x4c8db7(0x200)],'actionName':_0x4c8db7(0x22c),'args':{'language':_0x4c8db7(0x1e4)}},{'id':_0x4c8db7(0x22f),'displayedPrompt':_0x41fca3(_0x4df902,_0x4c8db7(0x1d2)),'type':AIQuickActionType[_0x4c8db7(0x200)],'actionName':_0x4c8db7(0x22c),'args':{'language':_0x4c8db7(0x1b4)}},{'id':_0x4c8db7(0x216),'displayedPrompt':_0x41fca3(_0x4df902,_0x4c8db7(0x1c5)),'type':AIQuickActionType[_0x4c8db7(0x200)],'actionName':_0x4c8db7(0x22c),'args':{'language':_0x4c8db7(0x230)}},{'id':_0x4c8db7(0x219),'displayedPrompt':_0x41fca3(_0x4df902,_0x4c8db7(0x236)),'type':AIQuickActionType[_0x4c8db7(0x200)],'actionName':_0x4c8db7(0x22c),'args':{'language':_0x4c8db7(0x22e)}},{'id':_0x4c8db7(0x1c3),'displayedPrompt':_0x41fca3(_0x4df902,_0x4c8db7(0x23d)),'type':AIQuickActionType[_0x4c8db7(0x200)],'actionName':_0x4c8db7(0x22c),'args':{'language':_0x4c8db7(0x1da)}},{'id':_0x4c8db7(0x1ca),'displayedPrompt':_0x41fca3(_0x4df902,_0x4c8db7(0x213)),'type':AIQuickActionType[_0x4c8db7(0x200)],'actionName':_0x4c8db7(0x22c),'args':{'language':_0x4c8db7(0x206)}},{'id':_0x4c8db7(0x1c9),'displayedPrompt':_0x41fca3(_0x4df902,_0x4c8db7(0x232)),'type':AIQuickActionType[_0x4c8db7(0x200)],'actionName':_0x4c8db7(0x22c),'args':{'language':_0x4c8db7(0x1bf)}}]},{'id':_0x4c8db7(0x23a),'label':_0x41fca3(_0x4df902,_0x4c8db7(0x1a2)),'icon':_0x1de7c4,'actions':[]}];return _0x372ac6;}(_0x1c7ddf);}async[_0x545ac1(0x22d)](){const _0x12a8f1=_0x545ac1,_0x88d4da=AIQuickActionsUI[_0x12a8f1(0x1dc)](this[_0x12a8f1(0x217)][_0x12a8f1(0x1e5)]),_0x2f1f5f=this[_0x12a8f1(0x217)][_0x12a8f1(0x1ef)][_0x12a8f1(0x1d1)](_0x12a8f1(0x1f0))||[];let _0xa11c2f=[];try{_0xa11c2f=await new _0x2b11b7({'connector':this[_0x12a8f1(0x217)][_0x12a8f1(0x19e)][_0x12a8f1(0x1d1)](_0x12a8f1(0x1a1)),'availableModels':this[_0x12a8f1(0x217)][_0x12a8f1(0x1ef)][_0x12a8f1(0x1d1)](_0x12a8f1(0x1ea)),'locale':this[_0x12a8f1(0x217)][_0x12a8f1(0x1e5)]})[_0x12a8f1(0x1ce)]();}catch(_0x4b84af){const _0x125802=new _0x3f4e80(_0x12a8f1(0x1db),this,{'error':_0x4b84af});_0x56884d(_0x125802[_0x12a8f1(0x1cf)]);}finally{const _0x46c861=_0x2f1f5f[_0x12a8f1(0x205)](_0x2fd1fa=>({..._0x2fd1fa,'icon':void 0x0}));_0x88d4da[_0x12a8f1(0x1a0)](_0x11fbd3=>_0x12a8f1(0x23a)===_0x11fbd3['id'])[_0x12a8f1(0x19f)][_0x12a8f1(0x1ff)](..._0x46c861),_0x88d4da[_0x12a8f1(0x1b7)](_0x2a761e=>{const _0x33d3c9=_0x12a8f1;if(_0x33d3c9(0x19f)in _0x2a761e)_0x2a761e[_0x33d3c9(0x19f)][_0x33d3c9(0x1b7)](_0x51aa19=>{const _0x3084bb=_0x33d3c9;if(_0x51aa19[_0x3084bb(0x1fa)]=!!_0xa11c2f[_0x3084bb(0x1a0)](_0x1866ce=>_0x1866ce['id']===_0x51aa19[_0x3084bb(0x1d5)])||void 0x0===_0x51aa19[_0x3084bb(0x1d5)],!_0x51aa19[_0x3084bb(0x1fa)]){const _0x4f775e=new _0x3f4e80(_0x3084bb(0x201),this,{'actionId':_0x51aa19['id'],'modelId':_0x51aa19[_0x3084bb(0x1d5)]});_0x56884d(_0x4f775e[_0x3084bb(0x1cf)]);}});else{if(_0x2a761e[_0x33d3c9(0x1fa)]=!!_0xa11c2f[_0x33d3c9(0x1a0)](_0x1ab46e=>_0x1ab46e['id']===_0x2a761e[_0x33d3c9(0x1d5)])||void 0x0===_0x2a761e[_0x33d3c9(0x1d5)],!_0x2a761e[_0x33d3c9(0x1fa)]){const _0x320bdc=new _0x3f4e80(_0x33d3c9(0x201),this,{'actionId':_0x2a761e['id'],'modelId':_0x2a761e[_0x33d3c9(0x1d5)]});_0x56884d(_0x320bdc[_0x33d3c9(0x1cf)]);}}});}return _0x88d4da;}[_0x545ac1(0x23b)](){const _0x32068c=_0x545ac1,_0x4bcaf6=new _0xe73188(this[_0x32068c(0x217)][_0x32068c(0x1e5)]);_0x4bcaf6[_0x32068c(0x1d4)](),this[_0x32068c(0x21e)](_0x4bcaf6),this[_0x32068c(0x1a6)](),this[_0x32068c(0x1c8)](_0x4bcaf6);}[_0x545ac1(0x21e)](_0x41f7de){const _0xa2dcea=_0x545ac1,_0x3c21a6=this[_0xa2dcea(0x217)][_0xa2dcea(0x1ef)][_0xa2dcea(0x1d1)](_0xa2dcea(0x20d))??!0x0;this[_0xa2dcea(0x217)]['ui'][_0xa2dcea(0x1ee)][_0xa2dcea(0x1df)](_0xa2dcea(0x1fd),_0x404d3a({'editor':this[_0xa2dcea(0x217)],'content':this[_0xa2dcea(0x20c)],'buttonDefinition':{'icon':_0x4e3b6a,'label':_0x41fca3(this[_0xa2dcea(0x217)][_0xa2dcea(0x1e5)],_0xa2dcea(0x222))},'bodyCollection':_0x41f7de,'hasSearch':_0x3c21a6}));}[_0x545ac1(0x1f9)](_0x388dd9){const _0x90194=_0x545ac1;this[_0x90194(0x20c)]=_0x388dd9[_0x90194(0x205)](_0x174be3=>{const _0x40175a=_0x90194;if(_0x40175a(0x19f)in _0x174be3){const _0x458941=_0x174be3;return{..._0x458941,'actions':_0x458941[_0x40175a(0x19f)][_0x40175a(0x205)](_0x58145c=>{const {actions:_0xf70a8e,..._0x5ad2bb}=_0x458941;return{..._0x58145c,'parent':_0x5ad2bb};})[_0x40175a(0x1b5)](_0x50f80d=>this[_0x40175a(0x1e8)](_0x50f80d))};}return _0x174be3;})[_0x90194(0x1b5)](_0x33957b=>_0x90194(0x19f)in _0x33957b?_0x33957b[_0x90194(0x19f)][_0x90194(0x1d8)]>0x0:this[_0x90194(0x1e8)](_0x33957b));}[_0x545ac1(0x1e8)](_0xcf8639){const _0x203daa=_0x545ac1,_0x49aa31=this[_0x203daa(0x217)][_0x203daa(0x1ef)][_0x203daa(0x1d1)](_0x203daa(0x21f))||[];return this[_0x203daa(0x217)][_0x203daa(0x19e)][_0x203daa(0x1f2)](AIQuickActionTypeToPluginName[_0xcf8639[_0x203daa(0x22a)]])&&!_0x49aa31[_0x203daa(0x223)](_0xcf8639['id'])&&!(_0xcf8639[_0x203daa(0x22a)]===AIQuickActionType[_0x203daa(0x1f4)]&&!0x1===this[_0x203daa(0x217)][_0x203daa(0x1ef)][_0x203daa(0x1d1)](_0x203daa(0x207)));}[_0x545ac1(0x1c8)](_0x46f22b){const _0x1ae24f=_0x545ac1;this[_0x1ae24f(0x20c)][_0x1ae24f(0x1b7)](_0x4ec444=>{const _0x5a6e4a=_0x1ae24f;if(_0x5a6e4a(0x19f)in _0x4ec444){const _0xd9d0c6=_0x404d3a({'editor':this[_0x5a6e4a(0x217)],'content':_0x4ec444[_0x5a6e4a(0x19f)],'buttonDefinition':_0x4ec444,'bodyCollection':_0x46f22b});this[_0x5a6e4a(0x217)]['ui'][_0x5a6e4a(0x1ee)][_0x5a6e4a(0x1df)](_0x4ec444['id'],_0xd9d0c6),_0x4ec444[_0x5a6e4a(0x19f)][_0x5a6e4a(0x1b7)](_0x5ea0f5=>{const _0x505c4e=_0x5a6e4a,_0x2b6332=_0x2c96f1({'editor':this[_0x505c4e(0x217)],'action':_0x5ea0f5});this[_0x505c4e(0x217)]['ui'][_0x505c4e(0x1ee)][_0x505c4e(0x1df)](_0x5ea0f5['id'],_0x2b6332);});}else{const _0x174fa8=_0x2c96f1({'editor':this[_0x5a6e4a(0x217)],'action':_0x4ec444,'withText':!0x1,'withIcon':!0x0,'isInDropdown':!0x1});this[_0x5a6e4a(0x217)]['ui'][_0x5a6e4a(0x1ee)][_0x5a6e4a(0x1df)](_0x4ec444['id'],_0x174fa8);}});}[_0x545ac1(0x1a6)](){const _0x5a7941=_0x545ac1;this[_0x5a7941(0x217)]['ui'][_0x5a7941(0x1ee)][_0x5a7941(0x1df)](_0x5a7941(0x23c),_0x261696=>{const _0x506163=_0x5a7941,_0x4bc414=new _0x25739e(_0x261696),_0x32d76e=_0x41fca3(_0x261696,_0x506163(0x222));_0x4bc414[_0x506163(0x21b)][_0x506163(0x1bc)]({'label':_0x32d76e,'icon':_0x4e3b6a});const _0x4abacb=new _0x2e34af(_0x261696);_0x4abacb[_0x506163(0x1bc)]({'ariaLabel':_0x32d76e,'role':_0x506163(0x208)}),this[_0x506163(0x20c)][_0x506163(0x1b7)](_0x12fc39=>{const _0x341f12=_0x506163;if(_0x341f12(0x19f)in _0x12fc39){const _0x58c085=_0x12fc39,_0x44fc0b=new _0x435806(_0x261696,_0x4bc414),_0x54188f=new _0x25739e(_0x261696),_0x3ebfad=new _0x2e34af(_0x261696);_0x54188f[_0x341f12(0x21b)][_0x341f12(0x1bc)]({'label':_0x58c085[_0x341f12(0x226)],'icon':_0x58c085[_0x341f12(0x1cb)]}),_0x58c085[_0x341f12(0x19f)][_0x341f12(0x1b7)](_0x336cdf=>{const _0x266a9d=_0x341f12,_0x207150=new _0x435806(_0x261696,_0x54188f),_0x42012a=new _0x1ebb9c(_0x261696);_0x42012a[_0x266a9d(0x1bc)]({'label':_0x336cdf[_0x266a9d(0x1eb)],'icon':_0x336cdf[_0x266a9d(0x1cb)],'role':_0x266a9d(0x203),'isEnabled':_0x336cdf[_0x266a9d(0x1fa)]}),_0x42012a['on'](_0x266a9d(0x1a8),()=>{const _0x2852b0=_0x266a9d;this[_0x2852b0(0x1b6)](_0x336cdf);}),_0x42012a[_0x266a9d(0x1f5)](_0x266a9d(0x1a8))['to'](_0x54188f),_0x207150[_0x266a9d(0x1f6)][_0x266a9d(0x1df)](_0x42012a),_0x3ebfad[_0x266a9d(0x20a)][_0x266a9d(0x1df)](_0x207150);}),_0x54188f[_0x341f12(0x229)][_0x341f12(0x1f6)][_0x341f12(0x1df)](_0x3ebfad),_0x44fc0b[_0x341f12(0x1f6)][_0x341f12(0x1df)](_0x54188f),_0x4abacb[_0x341f12(0x20a)][_0x341f12(0x1df)](_0x44fc0b);}else{const _0x109948=_0x12fc39,_0x78a45e=new _0x435806(_0x261696,_0x4bc414),_0x5ce73b=new _0x1ebb9c(_0x261696);_0x5ce73b[_0x341f12(0x1bc)]({'label':_0x109948[_0x341f12(0x1eb)],'icon':_0x109948[_0x341f12(0x1cb)],'role':_0x341f12(0x203),'isEnabled':_0x109948[_0x341f12(0x1fa)]}),_0x5ce73b['on'](_0x341f12(0x1a8),()=>{const _0x2e1441=_0x341f12;this[_0x2e1441(0x1b6)](_0x109948);}),_0x5ce73b[_0x341f12(0x1f5)](_0x341f12(0x1a8))['to'](_0x4bc414),_0x78a45e[_0x341f12(0x1f6)][_0x341f12(0x1df)](_0x5ce73b),_0x4abacb[_0x341f12(0x20a)][_0x341f12(0x1df)](_0x78a45e);}});const _0x5f2d83=Object[_0x506163(0x1e3)](AIQuickActionTypeToPluginName)[_0x506163(0x233)](_0x14de83=>this[_0x506163(0x217)][_0x506163(0x19e)][_0x506163(0x1f2)](_0x14de83));return _0x4bc414[_0x506163(0x1bc)]({'isEnabled':_0x5f2d83}),_0x4bc414[_0x506163(0x229)][_0x506163(0x1f6)][_0x506163(0x1df)](_0x4abacb),_0x4bc414;});}[_0x545ac1(0x1b6)](_0xbc3646){const _0xaca399=_0x545ac1,_0xbb338a=this[_0xaca399(0x217)];_0xbb338a[_0xaca399(0x238)][_0xaca399(0x1b8)][_0xaca399(0x1bb)](),_0xbb338a[_0xaca399(0x234)][_0xaca399(0x1a8)](_0xaca399(0x1de),_0xbc3646);const _0x343645=_0xbb338a['ui'][_0xaca399(0x1b8)][_0xaca399(0x1c4)];_0x343645&&_0x343645[_0xaca399(0x239)]&&_0x343645[_0xaca399(0x239)]();}}
|
|
23
|
+
const _0x14649a=_0x7c8d;(function(_0x478305,_0x4229d0){const _0x4e638f=_0x7c8d,_0xf823bf=_0x478305();while(!![]){try{const _0x1257ad=parseInt(_0x4e638f(0xb8))/0x1*(-parseInt(_0x4e638f(0xd8))/0x2)+-parseInt(_0x4e638f(0xe8))/0x3+parseInt(_0x4e638f(0x97))/0x4*(-parseInt(_0x4e638f(0xaa))/0x5)+-parseInt(_0x4e638f(0xa8))/0x6+-parseInt(_0x4e638f(0xc7))/0x7+-parseInt(_0x4e638f(0xdc))/0x8*(parseInt(_0x4e638f(0x125))/0x9)+parseInt(_0x4e638f(0x110))/0xa;if(_0x1257ad===_0x4229d0)break;else _0xf823bf['push'](_0xf823bf['shift']());}catch(_0x129f5c){_0xf823bf['push'](_0xf823bf['shift']());}}}(_0x3a38,0x98cd9));import{IconAIAdjustLength as _0x35616d,IconAIChangeTone as _0x4fc5bf,IconAIChatCommands as _0x53ea0e,IconAIContinueWriting as _0x2d6940,IconAIGrammarCheck as _0x4d437a,IconAIImproveWriting as _0x5eef3a,IconAIOther as _0x39469e,IconAIQuickActions as _0x4b89e4,IconAITranslate as _0x31847f}from'@ckeditor/ckeditor5-icons';import{Plugin as _0x50ca04}from'ckeditor5/src/core.js';import{CKEditorError as _0x494629,logError as _0x1b2882}from'ckeditor5/src/utils.js';import{getTranslation as _0x5983a5}from'../aicore/utils/common-translations.js';import{aiQuickActionsDropdownCreator as _0x2f0941}from'./ui/aiquickactionsdropdowncreator.js';function _0x3a38(){const _0x463a6d=['AI_QUICK_ACTIONS_MORE_CASUAL','getDefaultQuickActions','translate-to-spanish','view','ask-ai','explain','config','componentFactory','AI_QUICK_ACTIONS_IMPROVE_WRITING','AI_QUICK_ACTIONS_EXPLAIN','isPremiumPlugin','AI_QUICK_ACTIONS_TRANSLATE_ENGLISH','313663zaPHke','add','<task>For\x20given\x20selected\x20part\x20of\x20HTML\x20document\x20you\x20must\x20explain\x20the\x20meaning\x20of\x20it\x27s\x20content\x20clearly\x20and\x20in\x20plain\x20language.</task><rules>1.\x20Identify\x20what\x20type\x20of\x20text\x20it\x20is:-\x20If\x20it\x20looks\x20like\x20a\x20definition\x20explain\x20the\x20concept\x20in\x20simple\x20terms.-\x20If\x20it\x20looks\x20like\x20a\x20description\x20clarify\x20what\x20it\x20is\x20describing\x20and\x20why\x20it\x20matters.-\x20If\x20it\x20contains\x20technical\x20terms\x20or\x20jargon\x20break\x20them\x20down\x20into\x20everyday\x20language.-\x20If\x20it\x20looks\x20instructional\x20restate\x20as\x20clear\x20steps\x20someone\x20can\x20follow.-\x20If\x20it\x20provides\x20examples\x20explain\x20what\x20the\x20example\x20shows\x20and\x20why\x20it\x27s\x20relevant.-\x20If\x20it\x20presents\x20an\x20argument\x20or\x20claim\x20restate\x20the\x20claim\x20neutrally\x20and\x20explain\x20its\x20purpose.-\x20If\x20it\x20is\x20narrative/story-like\x20explain\x20what\x20event\x20or\x20situation\x20is\x20being\x20described.-\x20If\x20it\x20is\x20data-driven\x20(stats,\x20figures,\x20facts)\x20explain\x20what\x20the\x20data\x20indicates.-\x20If\x20it\x20is\x20a\x20quotation\x20explain\x20the\x20meaning\x20of\x20the\x20quote\x20in\x20context.-\x20If\x20it\x20compares/contrasts\x20things\x20explain\x20the\x20key\x20differences\x20or\x20similarities\x20simply.-\x20If\x20it\x20does\x20not\x20fit\x20any\x20of\x20the\x20categories\x20above\x20give\x20a\x20clear,\x20plain-language\x20explanation\x20of\x20its\x20meaning,\x20focusing\x20on\x20usefulness.2.\x20Provide\x20context\x20if\x20the\x20meaning\x20could\x20be\x20unclear\x20without\x20it.\x20(e.g.,\x20explain\x20where\x20such\x20a\x20term\x20might\x20be\x20used,\x20or\x20why\x20it\x20is\x20important).3.\x20Keep\x20the\x20explanation\x20short\x20but\x20complete\x20(2–5\x20sentences).Avoid\x20overly\x20technical\x20detail\x20unless\x20it\x20is\x20necessary\x20for\x20understanding.4.\x20Do\x20not\x20simply\x20repeat\x20the\x20original\x20text\x20—\x20restate\x20and\x20expand\x20it\x20in\x20plain\x20words.5.\x20If\x20possible,\x20add\x20a\x20short\x20example\x20or\x20analogy\x20to\x20make\x20it\x20easier\x20to\x20understand.6.\x20Use\x20the\x20context\x20of\x20the\x20whole\x20document,\x20but\x20focus\x20on\x20the\x20selected\x20part\x20when\x20creating\x20your\x20explanation.7.\x20Your\x20explanation\x20should\x20be\x20written\x20in\x20%0\x20language.</rules><constraints>1.\x20You\x20MUST\x20NOT\x20perform\x20any\x20edits\x20or\x20modifications\x20on\x20provided\x20document.2.\x20You\x20MUST\x20NOT\x20include\x20document\x20modifications\x20in\x20your\x20response.3.\x20Your\x20message\x20should\x20only\x20include\x20explanation.\x20Do\x20not\x20add\x20any\x20additional\x20text,\x20flattery,\x20questions\x20or\x20followup\x20suggestions.</constraints>','portuguese','russian','make-tone-casual','AI_QUICK_ACTIONS_TRANSLATE_CHINESE','make-shorter','CHAT','aiQuickActions','DisplayNames','AI_QUICK_ACTIONS_ADJUST_LENGTH','AI_QUICK_ACTIONS_MORE_PROFESSIONAL','delegate','translate-to-english','items','execute','13222HhlxLd','make-tone-direct','some','editor','32UdgLLq','attachToDom','translate-to-italian','actions','ai-quick-actions-unavailable-model','ai.chat.context.document.enabled','AI_QUICK_ACTIONS_FIX_GRAMMAR_SPELLING','french','AI_QUICK_ACTIONS_TRANSLATE_ITALIAN','AIConnector','has','<task>For\x20the\x20given\x20selected\x20part\x20of\x20an\x20HTML\x20document\x20you\x20must\x20summarize\x20its\x20content\x20in\x20a\x20few\x20sentences,\x20keeping\x20only\x20the\x20essential\x20meaning.</task><rules>1.\x20Your\x20summary\x20should\x20be\x20short\x20and\x20clear:-\x20Aim\x20for\x202–4\x20sentences\x20unless\x20the\x20text\x20is\x20extremely\x20short.-\x20Focus\x20on\x20capturing\x20the\x20main\x20idea(s)\x20without\x20unnecessary\x20detail.2.\x20Identify\x20what\x20type\x20of\x20text\x20it\x20is\x20and\x20adapt\x20the\x20summary\x20style:-\x20If\x20it\x20is\x20descriptive\x20condense\x20the\x20description\x20into\x20its\x20core\x20idea.-\x20If\x20it\x20is\x20argumentative\x20or\x20opinion-based\x20summarize\x20the\x20main\x20claim\x20and\x20reasoning\x20neutrally.-\x20If\x20it\x20is\x20narrative/story-like\x20capture\x20the\x20main\x20event\x20or\x20outcome\x20without\x20side\x20details.-\x20If\x20it\x20is\x20data-driven\x20(stats,\x20figures,\x20facts)\x20summarize\x20what\x20the\x20data\x20shows\x20in\x20plain\x20language.-\x20If\x20it\x20is\x20instructional\x20restate\x20the\x20overall\x20purpose\x20of\x20the\x20steps\x20without\x20listing\x20every\x20step.-\x20If\x20it\x20does\x20not\x20fit\x20any\x20of\x20the\x20categories\x20above\x20provide\x20a\x20general\x20concise\x20summary.3.\x20Provide\x20context\x20if\x20necessary\x20for\x20clarity:-\x20Mention\x20the\x20subject\x20or\x20topic\x20explicitly\x20so\x20the\x20summary\x20can\x20stand\x20alone.4.\x20Do\x20not\x20simply\x20copy\x20sentences\x20from\x20the\x20original\x20text\x20—\x20rephrase\x20in\x20plain\x20language.5.\x20Avoid\x20adding\x20new\x20information\x20or\x20interpretation\x20not\x20present\x20in\x20the\x20text.6.\x20Summarize\x20in\x20a\x20way\x20that\x20would\x20make\x20sense\x20to\x20someone\x20who\x20has\x20not\x20read\x20the\x20original\x20text.7.\x20Use\x20the\x20context\x20of\x20the\x20whole\x20document,\x20but\x20focus\x20on\x20the\x20selected\x20part\x20when\x20creating\x20your\x20summary.8.\x20Your\x20summary\x20should\x20be\x20written\x20in\x20%0\x20language.</rules><constraints>1.\x20You\x20MUST\x20NOT\x20perform\x20any\x20edits\x20or\x20modifications\x20on\x20the\x20provided\x20document.2.\x20You\x20MUST\x20NOT\x20include\x20document\x20modifications\x20in\x20your\x20response.3.\x20Your\x20message\x20should\x20only\x20include\x20the\x20summary.\x20Do\x20not\x20add\x20any\x20additional\x20text,\x20flattery,\x20questions\x20or\x20followup\x20suggestions.</constraints>','2217435hrDnsX','AI_QUICK_ACTIONS_SUMMARIZE','focus','<task>For\x20the\x20given\x20selected\x20part\x20of\x20an\x20HTML\x20document\x20you\x20must\x20extract\x20and\x20present\x20the\x20key\x20points\x20from\x20its\x20content.</task><rules>1.\x20Present\x20the\x20output\x20as\x20a\x20clear,\x20structured\x20list\x20(bullets\x20or\x20numbered).-\x20Each\x20point\x20should\x20be\x20concise\x20(one\x20sentence\x20or\x20less).-\x20Do\x20not\x20merge\x20distinct\x20ideas\x20into\x20one\x20bullet.2.\x20Identify\x20what\x20type\x20of\x20text\x20it\x20is\x20and\x20adapt\x20the\x20extraction\x20style:-\x20If\x20it\x20is\x20descriptive\x20capture\x20the\x20main\x20attributes\x20or\x20features.-\x20If\x20it\x20is\x20argumentative\x20extract\x20the\x20main\x20claim\x20and\x20supporting\x20reasons\x20separately.-\x20If\x20it\x20is\x20narrative/story-like\x20extract\x20the\x20main\x20events\x20in\x20chronological\x20order.-\x20If\x20it\x20is\x20data-driven\x20(stats,\x20figures,\x20facts)\x20highlight\x20the\x20most\x20important\x20facts\x20or\x20numbers.-\x20If\x20it\x20is\x20instructional\x20list\x20the\x20steps\x20or\x20main\x20actions\x20in\x20simplified\x20form.-\x20If\x20it\x20provides\x20comparisons\x20extract\x20the\x20contrasted\x20items\x20and\x20their\x20differences/similarities.-\x20If\x20it\x20does\x20not\x20fit\x20any\x20category\x20above\x20extract\x20the\x20main\x20ideas\x20in\x20plain,\x20short\x20statements.3.\x20Keep\x20the\x20list\x20between\x203–7\x20items\x20where\x20possible.-\x20If\x20the\x20text\x20is\x20very\x20short,\x20fewer\x20items\x20are\x20fine.-\x20If\x20it\x20is\x20very\x20long,\x20focus\x20on\x20the\x20most\x20important\x20ideas\x20only.4.\x20Do\x20not\x20copy\x20long\x20text\x20fragments\x20—\x20restate\x20in\x20simple\x20words.5.\x20Do\x20not\x20add\x20interpretation,\x20evaluation,\x20or\x20commentary\x20beyond\x20the\x20text.6.\x20Ensure\x20the\x20list\x20can\x20stand\x20alone\x20without\x20requiring\x20the\x20reader\x20to\x20see\x20the\x20original\x20document.7.\x20Use\x20the\x20context\x20of\x20the\x20whole\x20document,\x20but\x20focus\x20on\x20the\x20selected\x20part\x20when\x20creating\x20your\x20key\x20points.8.\x20Your\x20key\x20points\x20should\x20be\x20written\x20in\x20%0\x20language.</rules><constraints>1.\x20You\x20MUST\x20NOT\x20perform\x20any\x20edits\x20or\x20modifications\x20on\x20the\x20provided\x20document.2.\x20You\x20MUST\x20NOT\x20include\x20document\x20modifications\x20in\x20your\x20response.3.\x20Your\x20message\x20should\x20only\x20include\x20the\x20extracted\x20key\x20points.\x20Do\x20not\x20add\x20any\x20additional\x20text,\x20flattery,\x20questions\x20or\x20followup\x20suggestions.</constraints>','translate','AI_QUICK_ACTIONS_HEADING','summarize','isOfficialPlugin','_getDefaultAndCustomActions','length','AI_QUICK_ACTIONS_CONTINUE_WRITING','push','translate-to-portuguese','translate-to-russian','replace','AI_QUICK_ACTIONS_ASK_AI','highlight-key-points','commands','getAvailableModels','ai.chat.models.displayedModels','AI_QUICK_ACTIONS_TRANSLATE_JAPANESE','find','_initializeQuickActionsComponentsAndCommands','improve-writing','set','AI_QUICK_ACTIONS_TRANSLATE_GERMAN','ai.quickActions.isSearchEnabled','italian','AIReviewMode','translate-to-french','panelView','korean','AI_QUICK_ACTIONS_CHAT_COMMANDS','label','requires','editing','spanish','buttonView','make-tone-confident','menuitem','34884320dQwVbV','message','AI_QUICK_ACTIONS_CHANGE_TONE','_executeQuickAction','ai.quickActions.removeCommands','menuBar:aiQuickActions','values','ai.quickActions.extraCommands','uiLanguage','icon','REVIEW','chat-commands','aiQuickAction','AI_QUICK_ACTIONS_TRANSLATE_SPANISH','English','close','_initializeQuickActionsComponents','translate-to-chinese','AI_QUICK_ACTIONS_TRANSLATE','adjust-length','AI_QUICK_ACTIONS_TRANSLATE_PORTUGUESE','1576899qhKFlr','filter','AI_QUICK_ACTIONS_MORE_DIRECT','isEnabled','german','AIQuickActionsUI','AI_QUICK_ACTIONS_MORE_CONFIDENT','continue','menuBarView','AI_QUICK_ACTIONS_TRANSLATE_FRENCH','includes','_initializeQuickActionsDropdown','plugins','_quickActionsDefinition','language','get','ACTION','AI_QUICK_ACTIONS_MAKE_SHORTER','translate-to-german','make-longer','320004FzgphE','change-tone','AIActions','_prepareQuickActionsDefinition','displayedPrompt','_initializeQuickActionsMenuBar','fix-grammar','_shouldIncludeAction','menu','AI_QUICK_ACTIONS_TRANSLATE_KOREAN','map','pluginName','japanese','other','type','init','translate-to-japanese','1828110XFDrEn','locale','65YQQRft','AI_QUICK_ACTIONS_OTHER','translate-to-korean','AI_QUICK_ACTIONS_MAKE_LONGER','chinese','english','ai-quick-actions-models-unable-to-retrieve','model','children','AI_QUICK_ACTIONS_MORE_FRIENDLY','AIChat','forEach','make-tone-professional','make-tone-friendly','5nxAJvk','AI_QUICK_ACTIONS_TRANSLATE_RUSSIAN','AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS'];_0x3a38=function(){return _0x463a6d;};return _0x3a38();}import{aiQuickActionsButtonCreator as _0x380aca}from'./ui/aiquickactionsbuttoncreator.js';import{BodyCollection as _0x489446,BalloonToolbar as _0x3e1f12,MenuBarMenuView as _0x4b714a,MenuBarMenuListView as _0xccbea1,MenuBarMenuListItemView as _0x3d2e32,MenuBarMenuListItemButtonView as _0x28400c}from'ckeditor5/src/ui.js';import'../../theme/aiquickactions/aiquickactions.css';function _0x7c8d(_0x24ac61,_0x4e136c){const _0x3a382f=_0x3a38();return _0x7c8d=function(_0x7c8d7b,_0x417db2){_0x7c8d7b=_0x7c8d7b-0x95;let _0x428365=_0x3a382f[_0x7c8d7b];return _0x428365;},_0x7c8d(_0x24ac61,_0x4e136c);}import{AIModels as _0x4ad11b}from'../aicore/model/aimodels.js';const Mt=_0x14649a(0xc9),Lt=_0x14649a(0xe7),Dt=_0x14649a(0xeb);export var AIQuickActionType;!function(_0x4d433c){const _0x4f0a13=_0x14649a;_0x4d433c[_0x4f0a13(0xcf)]=_0x4f0a13(0xcf),_0x4d433c[_0x4f0a13(0x135)]=_0x4f0a13(0x135),_0x4d433c[_0x4f0a13(0x11a)]=_0x4f0a13(0x11a);}(AIQuickActionType||(AIQuickActionType={}));export var AIQuickActionTypeToPluginName;!function(_0x31d36c){const _0x33470d=_0x14649a;_0x31d36c[_0x33470d(0xcf)]=_0x33470d(0xb4),_0x31d36c[_0x33470d(0x135)]=_0x33470d(0x99),_0x31d36c[_0x33470d(0x11a)]=_0x33470d(0x104);}(AIQuickActionTypeToPluginName||(AIQuickActionTypeToPluginName={}));export class AIQuickActionsUI extends _0x50ca04{static get[_0x14649a(0x10a)](){return[_0x3e1f12];}static get[_0x14649a(0xa2)](){const _0x4e3f8d=_0x14649a;return _0x4e3f8d(0x12a);}static get[_0x14649a(0xef)](){return!0x0;}static get[_0x14649a(0xc5)](){return!0x0;}async[_0x14649a(0xa6)](){const _0x26b853=_0x14649a,_0x503d35=await this[_0x26b853(0xf0)]();this[_0x26b853(0x9a)](_0x503d35),this[_0x26b853(0xfe)]();}static[_0x14649a(0xbc)](_0x532d4b){return function(_0x435172){const _0x5573cf=_0x7c8d,_0x1c5828=new Intl[(_0x5573cf(0xd1))](['en'],{'type':_0x5573cf(0x133)})['of'](_0x435172[_0x5573cf(0x118)]),_0x4711bd=_0x1c5828||_0x5573cf(0x11e),_0x521fb6=[{'id':_0x5573cf(0xbf),'displayedPrompt':_0x5983a5(_0x435172,_0x5573cf(0xf7)),'type':AIQuickActionType[_0x5573cf(0xcf)],'icon':_0x53ea0e},{'id':_0x5573cf(0x11b),'label':_0x5983a5(_0x435172,_0x5573cf(0x108)),'icon':_0x53ea0e,'actions':[{'id':_0x5573cf(0xc0),'displayedPrompt':_0x5983a5(_0x435172,_0x5573cf(0xc4)),'prompt':Mt[_0x5573cf(0xf6)]('%0',_0x4711bd),'type':AIQuickActionType[_0x5573cf(0xcf)]},{'id':_0x5573cf(0xee),'displayedPrompt':_0x5983a5(_0x435172,_0x5573cf(0xe9)),'prompt':Lt[_0x5573cf(0xf6)]('%0',_0x4711bd),'type':AIQuickActionType[_0x5573cf(0xcf)]},{'id':_0x5573cf(0xf8),'displayedPrompt':_0x5983a5(_0x435172,_0x5573cf(0xba)),'prompt':Dt[_0x5573cf(0xf6)]('%0',_0x4711bd),'type':AIQuickActionType[_0x5573cf(0xcf)]}]},{'id':_0x5573cf(0xff),'displayedPrompt':_0x5983a5(_0x435172,_0x5573cf(0xc3)),'type':AIQuickActionType[_0x5573cf(0x135)],'icon':_0x5eef3a},{'id':_0x5573cf(0x12c),'displayedPrompt':_0x5983a5(_0x435172,_0x5573cf(0xf2)),'type':AIQuickActionType[_0x5573cf(0x135)],'icon':_0x2d6940},{'id':_0x5573cf(0x9d),'displayedPrompt':_0x5983a5(_0x435172,_0x5573cf(0xe2)),'type':AIQuickActionType[_0x5573cf(0x135)],'icon':_0x4d437a},{'id':_0x5573cf(0x123),'label':_0x5983a5(_0x435172,_0x5573cf(0xd2)),'icon':_0x35616d,'actions':[{'id':_0x5573cf(0xce),'displayedPrompt':_0x5983a5(_0x435172,_0x5573cf(0x136)),'type':AIQuickActionType[_0x5573cf(0x135)]},{'id':_0x5573cf(0x96),'displayedPrompt':_0x5983a5(_0x435172,_0x5573cf(0xad)),'type':AIQuickActionType[_0x5573cf(0x135)]}]},{'id':_0x5573cf(0x98),'label':_0x5983a5(_0x435172,_0x5573cf(0x112)),'icon':_0x4fc5bf,'actions':[{'id':_0x5573cf(0xcc),'displayedPrompt':_0x5983a5(_0x435172,_0x5573cf(0xbb)),'type':AIQuickActionType[_0x5573cf(0x135)]},{'id':_0x5573cf(0xd9),'displayedPrompt':_0x5983a5(_0x435172,_0x5573cf(0x127)),'type':AIQuickActionType[_0x5573cf(0x135)]},{'id':_0x5573cf(0xb7),'displayedPrompt':_0x5983a5(_0x435172,_0x5573cf(0xb3)),'type':AIQuickActionType[_0x5573cf(0x135)]},{'id':_0x5573cf(0x10e),'displayedPrompt':_0x5983a5(_0x435172,_0x5573cf(0x12b)),'type':AIQuickActionType[_0x5573cf(0x135)]},{'id':_0x5573cf(0xb6),'displayedPrompt':_0x5983a5(_0x435172,_0x5573cf(0xd3)),'type':AIQuickActionType[_0x5573cf(0x135)]}]},{'id':_0x5573cf(0xec),'label':_0x5983a5(_0x435172,_0x5573cf(0x122)),'icon':_0x31847f,'actions':[{'id':_0x5573cf(0xd5),'displayedPrompt':_0x5983a5(_0x435172,_0x5573cf(0xc6)),'type':AIQuickActionType[_0x5573cf(0x135)],'actionName':_0x5573cf(0xec),'args':{'language':_0x5573cf(0xaf)}},{'id':_0x5573cf(0x121),'displayedPrompt':_0x5983a5(_0x435172,_0x5573cf(0xcd)),'type':AIQuickActionType[_0x5573cf(0x135)],'actionName':_0x5573cf(0xec),'args':{'language':_0x5573cf(0xae)}},{'id':_0x5573cf(0xbd),'displayedPrompt':_0x5983a5(_0x435172,_0x5573cf(0x11d)),'type':AIQuickActionType[_0x5573cf(0x135)],'actionName':_0x5573cf(0xec),'args':{'language':_0x5573cf(0x10c)}},{'id':_0x5573cf(0x95),'displayedPrompt':_0x5983a5(_0x435172,_0x5573cf(0x101)),'type':AIQuickActionType[_0x5573cf(0x135)],'actionName':_0x5573cf(0xec),'args':{'language':_0x5573cf(0x129)}},{'id':_0x5573cf(0x105),'displayedPrompt':_0x5983a5(_0x435172,_0x5573cf(0x12e)),'type':AIQuickActionType[_0x5573cf(0x135)],'actionName':_0x5573cf(0xec),'args':{'language':_0x5573cf(0xe3)}},{'id':_0x5573cf(0xa7),'displayedPrompt':_0x5983a5(_0x435172,_0x5573cf(0xfc)),'type':AIQuickActionType[_0x5573cf(0x135)],'actionName':_0x5573cf(0xec),'args':{'language':_0x5573cf(0xa3)}},{'id':_0x5573cf(0xf4),'displayedPrompt':_0x5983a5(_0x435172,_0x5573cf(0x124)),'type':AIQuickActionType[_0x5573cf(0x135)],'actionName':_0x5573cf(0xec),'args':{'language':_0x5573cf(0xca)}},{'id':_0x5573cf(0xac),'displayedPrompt':_0x5983a5(_0x435172,_0x5573cf(0xa0)),'type':AIQuickActionType[_0x5573cf(0x135)],'actionName':_0x5573cf(0xec),'args':{'language':_0x5573cf(0x107)}},{'id':_0x5573cf(0xde),'displayedPrompt':_0x5983a5(_0x435172,_0x5573cf(0xe4)),'type':AIQuickActionType[_0x5573cf(0x135)],'actionName':_0x5573cf(0xec),'args':{'language':_0x5573cf(0x103)}},{'id':_0x5573cf(0xf5),'displayedPrompt':_0x5983a5(_0x435172,_0x5573cf(0xb9)),'type':AIQuickActionType[_0x5573cf(0x135)],'actionName':_0x5573cf(0xec),'args':{'language':_0x5573cf(0xcb)}}]},{'id':_0x5573cf(0xa4),'label':_0x5983a5(_0x435172,_0x5573cf(0xab)),'icon':_0x39469e,'actions':[]}];return _0x521fb6;}(_0x532d4b);}async[_0x14649a(0xf0)](){const _0x48ed1f=_0x14649a,_0x31cf4d=AIQuickActionsUI[_0x48ed1f(0xbc)](this[_0x48ed1f(0xdb)][_0x48ed1f(0xa9)]),_0x266cd3=this[_0x48ed1f(0xdb)][_0x48ed1f(0xc1)][_0x48ed1f(0x134)](_0x48ed1f(0x117))||[];let _0x15c577=[];try{_0x15c577=await new _0x4ad11b({'connector':this[_0x48ed1f(0xdb)][_0x48ed1f(0x131)][_0x48ed1f(0x134)](_0x48ed1f(0xe5)),'availableModels':this[_0x48ed1f(0xdb)][_0x48ed1f(0xc1)][_0x48ed1f(0x134)](_0x48ed1f(0xfb)),'locale':this[_0x48ed1f(0xdb)][_0x48ed1f(0xa9)]})[_0x48ed1f(0xfa)]();}catch(_0x44a51a){const _0x19db37=new _0x494629(_0x48ed1f(0xb0),this,{'error':_0x44a51a});_0x1b2882(_0x19db37[_0x48ed1f(0x111)]);}finally{const _0x25fc61=_0x266cd3[_0x48ed1f(0xa1)](_0x4e7879=>({..._0x4e7879,'icon':void 0x0}));_0x31cf4d[_0x48ed1f(0xfd)](_0x3ccd4f=>_0x48ed1f(0xa4)===_0x3ccd4f['id'])[_0x48ed1f(0xdf)][_0x48ed1f(0xf3)](..._0x25fc61),_0x31cf4d[_0x48ed1f(0xb5)](_0xdd84c4=>{const _0x49d8fa=_0x48ed1f;if(_0x49d8fa(0xdf)in _0xdd84c4)_0xdd84c4[_0x49d8fa(0xdf)][_0x49d8fa(0xb5)](_0x2731c4=>{const _0x1b6f50=_0x49d8fa;if(_0x2731c4[_0x1b6f50(0x128)]=!!_0x15c577[_0x1b6f50(0xfd)](_0x5a47f4=>_0x5a47f4['id']===_0x2731c4[_0x1b6f50(0xb1)])||void 0x0===_0x2731c4[_0x1b6f50(0xb1)],!_0x2731c4[_0x1b6f50(0x128)]){const _0x3d5b2d=new _0x494629(_0x1b6f50(0xe0),this,{'actionId':_0x2731c4['id'],'modelId':_0x2731c4[_0x1b6f50(0xb1)]});_0x1b2882(_0x3d5b2d[_0x1b6f50(0x111)]);}});else{if(_0xdd84c4[_0x49d8fa(0x128)]=!!_0x15c577[_0x49d8fa(0xfd)](_0x2a6922=>_0x2a6922['id']===_0xdd84c4[_0x49d8fa(0xb1)])||void 0x0===_0xdd84c4[_0x49d8fa(0xb1)],!_0xdd84c4[_0x49d8fa(0x128)]){const _0x1fa869=new _0x494629(_0x49d8fa(0xe0),this,{'actionId':_0xdd84c4['id'],'modelId':_0xdd84c4[_0x49d8fa(0xb1)]});_0x1b2882(_0x1fa869[_0x49d8fa(0x111)]);}}});}return _0x31cf4d;}[_0x14649a(0xfe)](){const _0x51880b=_0x14649a,_0x5d5783=new _0x489446(this[_0x51880b(0xdb)][_0x51880b(0xa9)]);_0x5d5783[_0x51880b(0xdd)](),this[_0x51880b(0x130)](_0x5d5783),this[_0x51880b(0x9c)](),this[_0x51880b(0x120)](_0x5d5783);}[_0x14649a(0x130)](_0x4506d1){const _0x10fa4b=_0x14649a,_0x15b2c9=this[_0x10fa4b(0xdb)][_0x10fa4b(0xc1)][_0x10fa4b(0x134)](_0x10fa4b(0x102))??!0x0;this[_0x10fa4b(0xdb)]['ui'][_0x10fa4b(0xc2)][_0x10fa4b(0xc8)](_0x10fa4b(0xd0),_0x2f0941({'editor':this[_0x10fa4b(0xdb)],'content':this[_0x10fa4b(0x132)],'buttonDefinition':{'icon':_0x4b89e4,'label':_0x5983a5(this[_0x10fa4b(0xdb)][_0x10fa4b(0xa9)],_0x10fa4b(0xed))},'bodyCollection':_0x4506d1,'hasSearch':_0x15b2c9}));}[_0x14649a(0x9a)](_0x2da3fb){const _0xaeddd0=_0x14649a;this[_0xaeddd0(0x132)]=_0x2da3fb[_0xaeddd0(0xa1)](_0x2dbdfd=>{const _0x11a137=_0xaeddd0;if(_0x11a137(0xdf)in _0x2dbdfd){const _0x1ffdf0=_0x2dbdfd;return{..._0x1ffdf0,'actions':_0x1ffdf0[_0x11a137(0xdf)][_0x11a137(0xa1)](_0x1570bc=>{const {actions:_0x12a773,..._0x2a1bdf}=_0x1ffdf0;return{..._0x1570bc,'parent':_0x2a1bdf};})[_0x11a137(0x126)](_0x542175=>this[_0x11a137(0x9e)](_0x542175))};}return _0x2dbdfd;})[_0xaeddd0(0x126)](_0x5b0513=>_0xaeddd0(0xdf)in _0x5b0513?_0x5b0513[_0xaeddd0(0xdf)][_0xaeddd0(0xf1)]>0x0:this[_0xaeddd0(0x9e)](_0x5b0513));}[_0x14649a(0x9e)](_0x3fff7f){const _0x4638d6=_0x14649a,_0x26c4f9=this[_0x4638d6(0xdb)][_0x4638d6(0xc1)][_0x4638d6(0x134)](_0x4638d6(0x114))||[];return this[_0x4638d6(0xdb)][_0x4638d6(0x131)][_0x4638d6(0xe6)](AIQuickActionTypeToPluginName[_0x3fff7f[_0x4638d6(0xa5)]])&&!_0x26c4f9[_0x4638d6(0x12f)](_0x3fff7f['id'])&&!(_0x3fff7f[_0x4638d6(0xa5)]===AIQuickActionType[_0x4638d6(0xcf)]&&!0x1===this[_0x4638d6(0xdb)][_0x4638d6(0xc1)][_0x4638d6(0x134)](_0x4638d6(0xe1)));}[_0x14649a(0x120)](_0x46a042){const _0x54d745=_0x14649a;this[_0x54d745(0x132)][_0x54d745(0xb5)](_0x18bdb6=>{const _0x4ddfe9=_0x54d745;if(_0x4ddfe9(0xdf)in _0x18bdb6){const _0x5fdae2=_0x2f0941({'editor':this[_0x4ddfe9(0xdb)],'content':_0x18bdb6[_0x4ddfe9(0xdf)],'buttonDefinition':_0x18bdb6,'bodyCollection':_0x46a042});this[_0x4ddfe9(0xdb)]['ui'][_0x4ddfe9(0xc2)][_0x4ddfe9(0xc8)](_0x18bdb6['id'],_0x5fdae2),_0x18bdb6[_0x4ddfe9(0xdf)][_0x4ddfe9(0xb5)](_0x4ddc5c=>{const _0x2a9d4f=_0x4ddfe9,_0x36805f=_0x380aca({'editor':this[_0x2a9d4f(0xdb)],'action':_0x4ddc5c});this[_0x2a9d4f(0xdb)]['ui'][_0x2a9d4f(0xc2)][_0x2a9d4f(0xc8)](_0x4ddc5c['id'],_0x36805f);});}else{const _0x53ef72=_0x380aca({'editor':this[_0x4ddfe9(0xdb)],'action':_0x18bdb6,'withText':!0x1,'withIcon':!0x0,'isInDropdown':!0x1});this[_0x4ddfe9(0xdb)]['ui'][_0x4ddfe9(0xc2)][_0x4ddfe9(0xc8)](_0x18bdb6['id'],_0x53ef72);}});}[_0x14649a(0x9c)](){const _0x2635e5=_0x14649a;this[_0x2635e5(0xdb)]['ui'][_0x2635e5(0xc2)][_0x2635e5(0xc8)](_0x2635e5(0x115),_0x356ddc=>{const _0xad458c=_0x2635e5,_0x4c10d0=new _0x4b714a(_0x356ddc),_0x3f62ac=_0x5983a5(_0x356ddc,_0xad458c(0xed));_0x4c10d0[_0xad458c(0x10d)][_0xad458c(0x100)]({'label':_0x3f62ac,'icon':_0x4b89e4});const _0x19027f=new _0xccbea1(_0x356ddc);_0x19027f[_0xad458c(0x100)]({'ariaLabel':_0x3f62ac,'role':_0xad458c(0x9f)}),this[_0xad458c(0x132)][_0xad458c(0xb5)](_0x249ded=>{const _0x2dfd95=_0xad458c;if(_0x2dfd95(0xdf)in _0x249ded){const _0x217208=_0x249ded,_0x103167=new _0x3d2e32(_0x356ddc,_0x4c10d0),_0x1324b8=new _0x4b714a(_0x356ddc),_0x161988=new _0xccbea1(_0x356ddc);_0x1324b8[_0x2dfd95(0x10d)][_0x2dfd95(0x100)]({'label':_0x217208[_0x2dfd95(0x109)],'icon':_0x217208[_0x2dfd95(0x119)]}),_0x217208[_0x2dfd95(0xdf)][_0x2dfd95(0xb5)](_0x5d7ec8=>{const _0x1fd971=_0x2dfd95,_0x4373db=new _0x3d2e32(_0x356ddc,_0x1324b8),_0x58ec36=new _0x28400c(_0x356ddc);_0x58ec36[_0x1fd971(0x100)]({'label':_0x5d7ec8[_0x1fd971(0x9b)],'icon':_0x5d7ec8[_0x1fd971(0x119)],'role':_0x1fd971(0x10f),'isEnabled':_0x5d7ec8[_0x1fd971(0x128)]}),_0x58ec36['on'](_0x1fd971(0xd7),()=>{const _0x23439d=_0x1fd971;this[_0x23439d(0x113)](_0x5d7ec8);}),_0x58ec36[_0x1fd971(0xd4)](_0x1fd971(0xd7))['to'](_0x1324b8),_0x4373db[_0x1fd971(0xb2)][_0x1fd971(0xc8)](_0x58ec36),_0x161988[_0x1fd971(0xd6)][_0x1fd971(0xc8)](_0x4373db);}),_0x1324b8[_0x2dfd95(0x106)][_0x2dfd95(0xb2)][_0x2dfd95(0xc8)](_0x161988),_0x103167[_0x2dfd95(0xb2)][_0x2dfd95(0xc8)](_0x1324b8),_0x19027f[_0x2dfd95(0xd6)][_0x2dfd95(0xc8)](_0x103167);}else{const _0x26ee13=_0x249ded,_0x4d2107=new _0x3d2e32(_0x356ddc,_0x4c10d0),_0x7cd7e9=new _0x28400c(_0x356ddc);_0x7cd7e9[_0x2dfd95(0x100)]({'label':_0x26ee13[_0x2dfd95(0x9b)],'icon':_0x26ee13[_0x2dfd95(0x119)],'role':_0x2dfd95(0x10f),'isEnabled':_0x26ee13[_0x2dfd95(0x128)]}),_0x7cd7e9['on'](_0x2dfd95(0xd7),()=>{const _0x3fc98a=_0x2dfd95;this[_0x3fc98a(0x113)](_0x26ee13);}),_0x7cd7e9[_0x2dfd95(0xd4)](_0x2dfd95(0xd7))['to'](_0x4c10d0),_0x4d2107[_0x2dfd95(0xb2)][_0x2dfd95(0xc8)](_0x7cd7e9),_0x19027f[_0x2dfd95(0xd6)][_0x2dfd95(0xc8)](_0x4d2107);}});const _0x54c578=Object[_0xad458c(0x116)](AIQuickActionTypeToPluginName)[_0xad458c(0xda)](_0x4bac34=>this[_0xad458c(0xdb)][_0xad458c(0x131)][_0xad458c(0xe6)](_0x4bac34));return _0x4c10d0[_0xad458c(0x100)]({'isEnabled':_0x54c578}),_0x4c10d0[_0xad458c(0x106)][_0xad458c(0xb2)][_0xad458c(0xc8)](_0x19027f),_0x4c10d0;});}[_0x14649a(0x113)](_0xf3e887){const _0x5a6286=_0x14649a,_0x3ef7bd=this[_0x5a6286(0xdb)];_0x3ef7bd[_0x5a6286(0x10b)][_0x5a6286(0xbe)][_0x5a6286(0xea)](),_0x3ef7bd[_0x5a6286(0xf9)][_0x5a6286(0xd7)](_0x5a6286(0x11c),_0xf3e887);const _0x5a6656=_0x3ef7bd['ui'][_0x5a6286(0xbe)][_0x5a6286(0x12d)];_0x5a6656&&_0x5a6656[_0x5a6286(0x11f)]&&_0x5a6656[_0x5a6286(0x11f)]();}}
|