@ckeditor/ckeditor5-ai 47.7.2-alpha.0 → 47.7.2
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/awstextadapter.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/ui/aichatballoonview.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/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/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aichatshortcuts/aichatshortcuts.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/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/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitranslate/aitranslate.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x4ff75a,_0x5d8b46){var _0x421730=_0xc58b,_0x2695cf=_0x4ff75a();while(!![]){try{var _0x114921=-parseInt(_0x421730(0x1da))/0x1+parseInt(_0x421730(0x1dd))/0x2*(parseInt(_0x421730(0x1e2))/0x3)+-parseInt(_0x421730(0x1e0))/0x4*(parseInt(_0x421730(0x1d5))/0x5)+parseInt(_0x421730(0x1e1))/0x6+parseInt(_0x421730(0x1d7))/0x7*(parseInt(_0x421730(0x1d8))/0x8)+parseInt(_0x421730(0x1dc))/0x9+-parseInt(_0x421730(0x1df))/0xa;if(_0x114921===_0x5d8b46)break;else _0x2695cf['push'](_0x2695cf['shift']());}catch(_0x22c90b){_0x2695cf['push'](_0x2695cf['shift']());}}}(_0xd296,0xc63fa));import{CKEditorError as _0x813e50}from'ckeditor5/src/utils.js';import{Editor as _0x2fd9a5}from'ckeditor5/src/core.js';function _0xc58b(_0x47dc12,_0x66d029){var _0xd2965=_0xd296();return _0xc58b=function(_0xc58bc5,_0x402e40){_0xc58bc5=_0xc58bc5-0x1d4;var _0x181ba5=_0xd2965[_0xc58bc5];return _0x181ba5;},_0xc58b(_0x47dc12,_0x66d029);}export function getEditorFromContext(_0x15c60f){var _0x131843=_0xc58b;if(_0x15c60f instanceof _0x2fd9a5)return _0x15c60f;if(_0x15c60f?.[_0x131843(0x1d6)]&&_0x15c60f[_0x131843(0x1d6)][_0x131843(0x1db)](0x0))return _0x15c60f[_0x131843(0x1d6)][_0x131843(0x1d4)]>0x1&&console[_0x131843(0x1de)](_0x131843(0x1d9)),_0x15c60f[_0x131843(0x1d6)][_0x131843(0x1db)](0x0);throw new _0x813e50(_0x131843(0x1e3));}function _0xd296(){var _0x526fb8=['182ZLcron','41592xDkmpZ','AIChat:\x20Multiple\x20editor\x20instances\x20detected.\x20Only\x20the\x20first\x20editor\x20instance\x20will\x20be\x20used\x20for\x20AI\x20operations.\x20This\x20configuration\x20is\x20not\x20fully\x20supported\x20and\x20may\x20lead\x20to\x20unexpected\x20behavior.','102421FIcife','get','14519133rtnBzJ','6QDfnDa','warn','21820450CzTXtb','24grjXGz','6570204YrIabM','448821cWRssG','ai-get-editor-from-context-no-editor','length','163145ngoVoV','editors'];_0xd296=function(){return _0x526fb8;};return _0xd296();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x46e218,_0xf07d0e){const _0xfaa2ae=_0x44fd,_0x54b5ac=_0x46e218();while(!![]){try{const _0x59c408=-parseInt(_0xfaa2ae(0x11d))/0x1+parseInt(_0xfaa2ae(0x10d))/0x2+-parseInt(_0xfaa2ae(0x124))/0x3+parseInt(_0xfaa2ae(0x119))/0x4*(-parseInt(_0xfaa2ae(0x122))/0x5)+-parseInt(_0xfaa2ae(0x123))/0x6+-parseInt(_0xfaa2ae(0x104))/0x7*(-parseInt(_0xfaa2ae(0x105))/0x8)+-parseInt(_0xfaa2ae(0x103))/0x9*(-parseInt(_0xfaa2ae(0x109))/0xa);if(_0x59c408===_0xf07d0e)break;else _0x54b5ac['push'](_0x54b5ac['shift']());}catch(_0x29f687){_0x54b5ac['push'](_0x54b5ac['shift']());}}}(_0x3fdf,0xcc705));import{transformOperationSets as _0x28dc39}from'ckeditor5/src/engine.js';import{append as _0x2e649b,findByAttribute as _0x410504,prependChild as _0x41d79c,removeElement as _0x3bc6ec,serialize as _0x4f0e4e}from'./htmlparser.js';function _0x44fd(_0x40490c,_0x2fa008){const _0x3fdfe4=_0x3fdf();return _0x44fd=function(_0x44fd2a,_0x24838b){_0x44fd2a=_0x44fd2a-0x101;let _0x559a7f=_0x3fdfe4[_0x44fd2a];return _0x559a7f;},_0x44fd(_0x40490c,_0x2fa008);}export function getOperationsFromReply({editor:_0x52736b,interaction:_0x1c596e,reply:_0x5c1931,groups:_0x3e1a33,transform:_0x18e87b,documentCompare:_0x5bfbdc,documentCompareOptions:_0x1e56c3}){const _0x12c06d=_0x44fd,_0x19899c=_0x1c596e[_0x12c06d(0x114)]();if(!_0x19899c)return[];const _0x7e4cce=_0x19899c[_0x12c06d(0x11b)],_0x23de45=_0x19899c[_0x12c06d(0x10b)],_0x1f93bd=_0x5c1931[_0x12c06d(0x108)][_0x12c06d(0x10a)](!0x0);for(const {changes:_0x15834c}of _0x3e1a33){const _0x8c55ff=_0x15834c[_0x12c06d(0x113)](_0x4c41d5=>_0x12c06d(0x11f)!=_0x4c41d5[_0x12c06d(0x101)])[_0x12c06d(0x117)](_0x20ae6c=>_0x410504(_0x12c06d(0x110),_0x20ae6c['id'],_0x1f93bd)),_0x2c5001=_0x15834c[_0x12c06d(0x113)](_0x31c420=>_0x12c06d(0x115)!=_0x31c420[_0x12c06d(0x101)])[_0x12c06d(0x117)](_0x27bc43=>_0x27bc43[_0x12c06d(0x121)][_0x12c06d(0x10a)](!0x0));let _0x48e3dd=null;if(_0x8c55ff[_0x12c06d(0x118)]){_0x48e3dd=_0x8c55ff[0x0][_0x12c06d(0x11a)];for(let _0xa157cb=0x0;_0xa157cb<_0x8c55ff[_0x12c06d(0x118)];_0xa157cb++)_0x3bc6ec(_0x8c55ff[_0xa157cb]);}if(_0x2c5001[_0x12c06d(0x118)]){_0x48e3dd||(_0x15834c[0x0][_0x12c06d(0x106)]?_0x48e3dd=_0x410504(_0x12c06d(0x110),_0x15834c[0x0][_0x12c06d(0x106)],_0x1f93bd):(_0x48e3dd=_0x2c5001[_0x12c06d(0x11e)](),_0x41d79c(_0x1f93bd,_0x48e3dd)));for(let _0x5ef63e=0x0;_0x5ef63e<_0x2c5001[_0x12c06d(0x118)];_0x5ef63e++)_0x2e649b(_0x48e3dd,_0x2c5001[_0x5ef63e]),_0x48e3dd=_0x2c5001[_0x5ef63e];}}const _0x45ceb1=_0x4f0e4e(_0x1f93bd),_0x38afba=_0x5bfbdc[_0x12c06d(0x112)](_0x7e4cce,_0x45ceb1,_0x1e56c3)[_0x12c06d(0x11c)]();if(_0x18e87b){const _0x5c1cc4=_0x52736b[_0x12c06d(0x102)][_0x12c06d(0x10c)][_0x12c06d(0x120)][_0x12c06d(0x11c)](_0x23de45),_0x23b4e4={'document':_0x52736b[_0x12c06d(0x102)][_0x12c06d(0x10c)],'useRelations':!0x1,'padWithNoOps':!0x1};return _0x28dc39(_0x38afba,_0x5c1cc4,_0x23b4e4)[_0x12c06d(0x10f)];}return _0x38afba;}export function fixMarkerOperationOldRange(_0x26b8c9,_0x34a89c){const _0x5e1bb8=_0x44fd;if(_0x5e1bb8(0x107)!=_0x34a89c[_0x5e1bb8(0x101)])return;const _0x585319=_0x26b8c9[_0x5e1bb8(0x102)][_0x5e1bb8(0x111)][_0x5e1bb8(0x116)](_0x34a89c[_0x5e1bb8(0x126)]);_0x585319&&(_0x34a89c[_0x5e1bb8(0x125)]=_0x585319[_0x5e1bb8(0x10e)]());}function _0x3fdf(){const _0x52ec0e=['data-id','markers','getDiff','filter','getDocumentContext','removed','get','map','length','4JTYSNx','previousSibling','content','getOperations','1344669eTYald','shift','new','history','node','1731885evSLiz','2913048qGXdhX','4273467rsKNhJ','oldRange','name','type','model','22480371iSlFFX','7kFcxUZ','11797648hTusdo','anchorId','marker','documentContextContent','10TveKnU','cloneNode','version','document','931798FFoGXB','getRange','operationsA'];_0x3fdf=function(){return _0x52ec0e;};return _0x3fdf();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x184f(_0x36ba87,_0x11c53c){const _0x8d4783=_0x8d47();return _0x184f=function(_0x184fa9,_0x3c5e93){_0x184fa9=_0x184fa9-0x9b;let _0x5316fe=_0x8d4783[_0x184fa9];return _0x5316fe;},_0x184f(_0x36ba87,_0x11c53c);}(function(_0x251190,_0x10bea8){const _0x3a47b5=_0x184f,_0x22ee10=_0x251190();while(!![]){try{const _0x15fbee=parseInt(_0x3a47b5(0xed))/0x1+parseInt(_0x3a47b5(0xba))/0x2*(-parseInt(_0x3a47b5(0xdd))/0x3)+-parseInt(_0x3a47b5(0xa7))/0x4*(-parseInt(_0x3a47b5(0xdc))/0x5)+parseInt(_0x3a47b5(0xde))/0x6*(parseInt(_0x3a47b5(0xcf))/0x7)+parseInt(_0x3a47b5(0xa5))/0x8*(parseInt(_0x3a47b5(0xfa))/0x9)+-parseInt(_0x3a47b5(0xf0))/0xa*(parseInt(_0x3a47b5(0xfb))/0xb)+-parseInt(_0x3a47b5(0xd0))/0xc*(parseInt(_0x3a47b5(0xd9))/0xd);if(_0x15fbee===_0x10bea8)break;else _0x22ee10['push'](_0x22ee10['shift']());}catch(_0x26c31b){_0x22ee10['push'](_0x22ee10['shift']());}}}(_0x8d47,0xc3c2e));import{findOne as _0x3d4878,getAttribute as _0x2d654d,Document as _0x159c58,serialize as _0x298116,parse as _0x37ad22}from'./htmlparser.js';import{fixElementSuggestionRange as _0x4c5497}from'ckeditor5-collaboration/src/collaboration-core.js';import{ModelRange as _0x536317,_DetachOperation as _0x55bb1c,_removeFromModelNodeList as _0xee08e3,_insertIntoModelNodeList as _0x2d5f7d}from'ckeditor5/src/engine.js';function _0x8d47(){const _0x31292c=['isBefore','suggestion:insertion:','newRange','13vkLSex','length','merge','16025DQRinr','57BzDtCR','6VCeVET','marker','children','_getTransformedByDeletion','model','setTo','getShiftedBy','range','move','getOperations','nodeAfter','newName','name','textNode','data','87733qayfsh','slice','oldValue','13190hAKTGx','schema','targetPosition','sourcePosition','getMovedRangeStart','isBlock','batch','delete','suggestion:attribute:','stringify','9763731dWrNKW','9251cEQNOy','_getTransformedByInsertion','suggestion:deletion:','start','rename','path','map','end','markers','baseVersion','type','isRegisteredAttribute','forward','changeAttribute','plugins','createSelection','addOperation','SuggestionsConversion','removeAttribute','get','clone','$text','word','getFirstRange','splitPosition','root','isObject','index','getMinimalFlatRanges','focus','changes','parse','isMarkedRemoveOperation','modifySelection','8QWADIJ','getDiff','1604PfLZzJ','createPositionAt','addAttribute','cloneNode','element','backward','...','POSITIVE_INFINITY','removed','offset','push','getTransformedByOperation',':$aiSuggestion','applyOperation','toNone','createPositionFromPath','$root','stickiness','split','164446vMpsMq','suggestion:formatBlock:$fakeWrap:','moveTargetPosition','_createFromRanges','new','isDocumentOperation','data-id','createRangeOn','insert','parent','howMany','change','key','remove','position','isAfter','newValue','add','DocumentCompare','nodeBefore','reverse','9412669FEHIsi','3949320rllneC','createRange','node','set','oldName','$elementName'];_0x8d47=function(){return _0x31292c;};return _0x8d47();}import{uid as _0x5d297f}from'ckeditor5/src/utils.js';export function getSuggestionPartsFromReply({editor:_0x47e0eb,changeGroups:_0x1768cf,documentContextContent:_0x3f8347,showDiff:_0x39a2c9,trimUnchanged:_0x3c9689=!0x0}){const _0x2d12cc=_0x184f;return _0x1768cf[_0x2d12cc(0x101)](_0x187f71=>{const _0x8afe78=_0x2d12cc,_0x461df4=new _0x159c58([]),_0x2e1a36=new _0x159c58([]);for(const _0x4467cf of _0x187f71[_0x8afe78(0xa1)])if(_0x39a2c9&&_0x8afe78(0xaf)==_0x4467cf[_0x8afe78(0x105)]||_0x2e1a36[_0x8afe78(0xe0)][_0x8afe78(0xb1)](_0x4467cf[_0x8afe78(0xd2)][_0x8afe78(0xaa)](!0x0)),_0x8afe78(0xbe)!=_0x4467cf[_0x8afe78(0x105)]&&(_0x39a2c9||_0x8afe78(0xaf)!=_0x4467cf[_0x8afe78(0x105)])){const _0x37ae85=_0x3d4878(_0x231171=>_0x2d654d(_0x231171,_0x8afe78(0xc0))==_0x4467cf['id'],_0x3f8347,!0x0);_0x37ae85&&_0x461df4[_0x8afe78(0xe0)][_0x8afe78(0xb1)](_0x37ae85[_0x8afe78(0xaa)](!0x0));}const {content:_0x1bdd27,hasChanges:_0x1f726b}=function(_0x5d405a,_0x14cd8f,_0x3d4c69,_0x370bb3,_0x13ea8d=!0x0){const _0xb17ffb=_0x8afe78,_0x566a5e=_0x5d405a[_0xb17ffb(0x109)][_0xb17ffb(0x10e)](_0xb17ffb(0xcc)),_0x55c6b9=_0x298116(_0x14cd8f),_0x5836a7=_0x298116(_0x3d4c69),_0x4e4ab9=_0x5d405a[_0xb17ffb(0xec)][_0xb17ffb(0xa2)](_0x55c6b9,_0xb17ffb(0xb7)),_0x45ca12=_0x5d405a[_0xb17ffb(0xe2)][_0xb17ffb(0xa8)](_0x4e4ab9,0x0),_0x343653=_0x566a5e[_0xb17ffb(0xa6)](_0x55c6b9,_0x5836a7,{'anchor':_0x45ca12,'markDeletions':_0x370bb3}),_0x20215b=_0x343653[_0xb17ffb(0xe7)]();if(0x0==_0x20215b[_0xb17ffb(0xda)])return{'content':_0x14cd8f[_0xb17ffb(0xaa)](!0x0),'hasChanges':!0x1};_0x370bb3?function(_0x12afba,_0x9a620d,_0x3ca99c){const _0x325e60=_0xb17ffb;if(0x0==_0x12afba[_0x325e60(0xda)])return;const _0x3f8863=_0x3ca99c[_0x325e60(0x109)][_0x325e60(0x10e)](_0x325e60(0xcc)),_0x38cee0=_0x3ca99c[_0x325e60(0x109)][_0x325e60(0x10e)](_0x325e60(0x10c));_0x3ca99c[_0x325e60(0xe2)][_0x325e60(0xc5)](_0x3aaf11=>{const _0x888479=_0x325e60,_0x3d12f5=new Set();for(let _0x396cd1=0x0;_0x396cd1<_0x12afba[_0x888479(0xda)];_0x396cd1++){const _0x54ef5c=_0x12afba[_0x396cd1];if(_0x54ef5c[_0x888479(0x104)]=null,_0x54ef5c[_0x888479(0xbf)]=!0x1,_0x3f8863[_0x888479(0xa3)](_0x54ef5c)){const _0x5e8a2f=_0x4c5497(_0x54ef5c[_0x888479(0xd8)],_0x3ca99c[_0x888479(0xe2)]),_0xf63656=_0x888479(0xfd)+_0x5d297f()+_0x888479(0xb3);_0x9a620d[_0x888479(0x103)][_0x888479(0xd3)](_0xf63656,_0x5e8a2f);}else switch(_0x54ef5c[_0x888479(0x105)]){case _0x888479(0xff):{if(_0x54ef5c[_0x888479(0xd4)]==_0x54ef5c[_0x888479(0xe9)])break;_0x3aaf11[_0x888479(0xf6)][_0x888479(0x10b)](_0x54ef5c),_0x3ca99c[_0x888479(0xe2)][_0x888479(0xb4)](_0x54ef5c);const _0x5d1934=_0x888479(0xd5),_0x2a82bd=_0x54ef5c[_0x888479(0xc8)],_0x1cd0ee=_0x3ca99c[_0x888479(0xe2)][_0x888479(0xd1)](_0x2a82bd,_0x3ca99c[_0x888479(0xe2)][_0x888479(0xa8)](_0x2a82bd[_0x888479(0xe8)],_0x888479(0x102))),_0xa2d81=_0x888479(0xf8)+_0x5d1934+':'+_0x5d297f()+_0x888479(0xb3);_0x9a620d[_0x888479(0x103)][_0x888479(0xd3)](_0xa2d81,_0x1cd0ee);break;}case _0x888479(0xa9):case _0x888479(0x10d):case _0x888479(0x108):{if(_0x54ef5c[_0x888479(0xef)]==_0x54ef5c[_0x888479(0xca)])break;_0x3aaf11[_0x888479(0xf6)][_0x888479(0x10b)](_0x54ef5c),_0x3ca99c[_0x888479(0xe2)][_0x888479(0xb4)](_0x54ef5c);const _0x4d5781=_0x54ef5c[_0x888479(0xc6)];if(!_0x38cee0[_0x888479(0x106)](_0x4d5781))break;const _0x386967=_0x4c5497(_0x54ef5c[_0x888479(0xe5)],_0x3ca99c[_0x888479(0xe2)]),_0x5310d5=_0x888479(0xf8)+_0x4d5781+':'+_0x5d297f()+_0x888479(0xb3);_0x9a620d[_0x888479(0x103)][_0x888479(0xd3)](_0x5310d5,_0x386967);break;}case _0x888479(0xc2):{_0x3aaf11[_0x888479(0xf6)][_0x888479(0x10b)](_0x54ef5c),_0x3ca99c[_0x888479(0xe2)][_0x888479(0xb4)](_0x54ef5c);if(_0x12afba[_0x396cd1+0x1]&&_0x888479(0xe6)==_0x12afba[_0x396cd1+0x1][_0x888479(0x105)]){no(_0x9a620d,_0x54ef5c);break;}const _0x3e1ada=_0x54ef5c[_0x888479(0xc8)],_0x4a1894=_0x54ef5c[_0x888479(0xc4)],_0x187496=_0x4c5497(_0x3ca99c[_0x888479(0xe2)][_0x888479(0xd1)](_0x3e1ada,_0x3e1ada[_0x888479(0xe4)](_0x4a1894)),_0x3ca99c[_0x888479(0xe2)]),_0x350513=_0x888479(0xd7)+_0x5d297f()+_0x888479(0xb3);_0x9a620d[_0x888479(0x103)][_0x888479(0xd3)](_0x350513,_0x187496);break;}case _0x888479(0xb9):{_0x3aaf11[_0x888479(0xf6)][_0x888479(0x10b)](_0x54ef5c),_0x3ca99c[_0x888479(0xe2)][_0x888479(0xb4)](_0x54ef5c);const _0x7ced29=_0x54ef5c[_0x888479(0x9b)],_0x4377ab=_0x54ef5c[_0x888479(0xbc)],_0x29b713=_0x3ca99c[_0x888479(0xe2)][_0x888479(0xd1)](_0x7ced29,_0x4377ab),_0x3332cc=_0x888479(0xd7)+_0x5d297f()+_0x888479(0xb3);_0x9a620d[_0x888479(0x103)][_0x888479(0xd3)](_0x3332cc,_0x29b713);break;}case _0x888479(0xe6):{_0x3aaf11[_0x888479(0xf6)][_0x888479(0x10b)](_0x54ef5c),_0x3ca99c[_0x888479(0xe2)][_0x888479(0xb4)](_0x54ef5c),_0x12afba[_0x396cd1-0x1]&&_0x888479(0xc2)==_0x12afba[_0x396cd1-0x1][_0x888479(0x105)]&&no(_0x9a620d,_0x54ef5c);const _0x5cab5f=_0x54ef5c[_0x888479(0xf4)](),_0x4037c4=_0x54ef5c[_0x888479(0xc4)];for(let _0x162a42=0x0;_0x162a42<_0x4037c4;_0x162a42++){const _0x3418d7=_0x5cab5f[_0x888479(0xe4)](_0x162a42)[_0x888479(0xe8)];_0x3d12f5[_0x888479(0xcb)](_0x3418d7);}break;}case _0x888479(0xc7):{const _0xfa1f05=_0x54ef5c[_0x888479(0xf3)],_0x423bd4=_0x54ef5c[_0x888479(0xc4)],_0x147086=new _0x55bb1c(_0xfa1f05,_0x423bd4);_0x3aaf11[_0x888479(0xf6)][_0x888479(0x10b)](_0x147086),_0x3ca99c[_0x888479(0xe2)][_0x888479(0xb4)](_0x147086);break;}}}for(const _0x545e78 of _0x3d12f5){const _0x46e27d=_0x3ca99c[_0x888479(0xe2)][_0x888479(0xc1)](_0x545e78),_0x115d27=_0x888479(0xbb)+_0x5d297f()+_0x888479(0xb3);_0x9a620d[_0x888479(0x103)][_0x888479(0xd3)](_0x115d27,_0x4c5497(_0x46e27d,_0x3ca99c[_0x888479(0xe2)]));}});}(_0x20215b,_0x4e4ab9,_0x5d405a):_0x5d405a[_0xb17ffb(0xe2)][_0xb17ffb(0xc5)](_0x233ca2=>{const _0x392602=_0xb17ffb;for(const _0x5441dd of _0x20215b)if(_0x392602(0xc7)==_0x5441dd[_0x392602(0x105)]){const _0x4e04af=_0x5441dd[_0x392602(0xf3)],_0x181f6f=_0x5441dd[_0x392602(0xc4)],_0x552084=new _0x55bb1c(_0x4e04af,_0x181f6f);_0x233ca2[_0x392602(0xf6)][_0x392602(0x10b)](_0x552084),_0x5d405a[_0x392602(0xe2)][_0x392602(0xb4)](_0x552084);}else{if(_0x392602(0xdf)==_0x5441dd[_0x392602(0x105)]){const _0xe493d1=_0x5441dd[_0x392602(0xea)],_0x3030af=_0x5441dd[_0x392602(0xd8)];null!==_0x3030af?_0x4e4ab9[_0x392602(0x103)][_0x392602(0xd3)](_0xe493d1,_0x3030af):_0x4e4ab9[_0x392602(0x103)][_0x392602(0xf7)](_0xe493d1);}else _0x5441dd[_0x392602(0x104)]=null,_0x5441dd[_0x392602(0xbf)]=!0x1,_0x233ca2[_0x392602(0xf6)][_0x392602(0x10b)](_0x5441dd),_0x5d405a[_0x392602(0xe2)][_0x392602(0xb4)](_0x5441dd);}});if(_0x13ea8d){const _0xc02fa=getMinimalSelection(_0x5d405a,_0x20215b,_0x4e4ab9);expandSelectionWithContext(_0x5d405a[_0xb17ffb(0xe2)],_0xc02fa),function(_0x5c2eb7,_0x5f0299){const _0x13acdf=_0xb17ffb,_0xcb8d15=_0x5f0299[_0x13acdf(0x112)]()[_0x13acdf(0xfe)];let _0x5d2b9d=_0x5f0299[_0x13acdf(0x112)]()[_0x13acdf(0x102)];const _0x592626=_0xcb8d15[_0x13acdf(0x9c)];(_0x5d2b9d[_0x13acdf(0xeb)]||_0x5d2b9d[_0x13acdf(0xe8)]&&_0x5d2b9d[_0x13acdf(0xe8)]['is'](_0x13acdf(0x110)))&&(_0x2d5f7d(_0x5d2b9d,_0x13acdf(0xad)),_0x5d2b9d=_0x5d2b9d[_0x13acdf(0xe4)](0x3)),(_0xcb8d15[_0x13acdf(0xeb)]||_0xcb8d15[_0x13acdf(0xcd)]&&_0xcb8d15[_0x13acdf(0xcd)]['is'](_0x13acdf(0x110)))&&(_0x2d5f7d(_0xcb8d15,_0x13acdf(0xad)),function(_0x35e7ce,_0x474524,_0x1c27d8){const _0x18ed12=_0x13acdf;for(let [_0x3865d7,_0x36e837]of _0x35e7ce[_0x18ed12(0x103)]){const _0x4723a7=_0x36e837[_0x18ed12(0xfc)](_0x474524,_0x1c27d8,!0x1);_0x36e837=_0x4723a7[0x0],_0x35e7ce[_0x18ed12(0x103)][_0x18ed12(0xd3)](_0x3865d7,_0x36e837);}}(_0x592626,_0xcb8d15,0x3),_0xcb8d15[_0x13acdf(0xc3)]==_0x5d2b9d[_0x13acdf(0xc3)]&&(_0x5d2b9d=_0x5d2b9d[_0x13acdf(0xe4)](0x3)));const _0x38c25f=_0x5c2eb7[_0x13acdf(0xd1)](_0x5c2eb7[_0x13acdf(0xa8)](_0x592626,0x0),_0xcb8d15),_0x40e4dc=_0x5c2eb7[_0x13acdf(0xd1)](_0x5d2b9d,_0x5c2eb7[_0x13acdf(0xa8)](_0x592626,_0x13acdf(0x102))),_0xf7d8c0=[..._0x38c25f[_0x13acdf(0x9f)](),..._0x40e4dc[_0x13acdf(0x9f)]()];_0xf7d8c0[_0x13acdf(0xce)]();for(const _0x37af5d of _0xf7d8c0)_0xee08e3(_0x37af5d),_transformMarkersByDeletion(_0x592626,_0x37af5d);}(_0x5d405a[_0xb17ffb(0xe2)],_0xc02fa);}const _0x3bb2c7=_0x5d405a[_0xb17ffb(0xec)][_0xb17ffb(0xf9)](_0x4e4ab9,{'showSuggestionHighlights':!0x0});return{'content':_0x37ad22(_0x3bb2c7),'hasChanges':!0x0};}(_0x47e0eb,_0x461df4,_0x2e1a36,_0x39a2c9,_0x3c9689);return{'type':_0x187f71[_0x8afe78(0xa1)][0x0][_0x8afe78(0x105)],'index':_0x187f71[_0x8afe78(0x9e)],'content':_0x1bdd27,'hasChanges':_0x1f726b};});}function no(_0x36102a,_0x4eaf13){const _0x402ca6=_0x184f;for(const [_0x406b6f,_0x5e513d]of _0x36102a[_0x402ca6(0x103)]){const _0xf93865=_0x536317[_0x402ca6(0xbd)](_0x5e513d[_0x402ca6(0xb2)](_0x4eaf13));_0x36102a[_0x402ca6(0x103)][_0x402ca6(0xd3)](_0x406b6f,_0xf93865);}}export function getMinimalSelection(_0x36e835,_0x2bef31,_0x272a40){const _0x4a0aac=_0x184f,_0x27f1dc=_0x36e835[_0x4a0aac(0x109)][_0x4a0aac(0x10e)](_0x4a0aac(0xcc));let _0x3047d5=_0x36e835[_0x4a0aac(0xe2)][_0x4a0aac(0xa8)](_0x272a40,Number[_0x4a0aac(0xae)]),_0x4cfd89=_0x36e835[_0x4a0aac(0xe2)][_0x4a0aac(0xa8)](_0x272a40,0x0);for(const _0x2fa5f3 of _0x2bef31){let _0x3fb011,_0x4b17cf;if(_0x27f1dc[_0x4a0aac(0xa3)](_0x2fa5f3))_0x3fb011=_0x2fa5f3[_0x4a0aac(0xd8)][_0x4a0aac(0xfe)],_0x4b17cf=_0x2fa5f3[_0x4a0aac(0xd8)][_0x4a0aac(0x102)];else switch(_0x3047d5=_0x3047d5[_0x4a0aac(0xb2)](_0x2fa5f3),_0x4cfd89=_0x4cfd89[_0x4a0aac(0xb2)](_0x2fa5f3),_0x2fa5f3[_0x4a0aac(0x105)]){case _0x4a0aac(0xff):_0x3fb011=_0x2fa5f3[_0x4a0aac(0xc8)],_0x4b17cf=_0x3fb011[_0x4a0aac(0xe4)](0x1);break;case _0x4a0aac(0xa9):case _0x4a0aac(0x10d):case _0x4a0aac(0x108):_0x3fb011=_0x2fa5f3[_0x4a0aac(0xe5)][_0x4a0aac(0xfe)],_0x4b17cf=_0x2fa5f3[_0x4a0aac(0xe5)][_0x4a0aac(0x102)];break;case _0x4a0aac(0xc2):_0x3fb011=_0x2fa5f3[_0x4a0aac(0xc8)],_0x4b17cf=_0x3fb011[_0x4a0aac(0xe4)](_0x2fa5f3[_0x4a0aac(0xc4)]);break;case _0x4a0aac(0xb9):_0x3fb011=_0x2fa5f3[_0x4a0aac(0x9b)],_0x4b17cf=_0x2fa5f3[_0x4a0aac(0xbc)];break;case _0x4a0aac(0xdb):{const _0x310a82=_0x2fa5f3[_0x4a0aac(0xf2)][_0x4a0aac(0x100)][_0x4a0aac(0xee)](0x0,-0x1);_0x3fb011=_0x36e835[_0x4a0aac(0xe2)][_0x4a0aac(0xb6)](_0x272a40,_0x310a82),_0x4b17cf=_0x3fb011[_0x4a0aac(0xe4)](0x1);break;}case _0x4a0aac(0xc7):{const _0x4c587f=_0x2fa5f3[_0x4a0aac(0xc4)],_0x21918c=_0x2fa5f3[_0x4a0aac(0xf3)][_0x4a0aac(0xfc)](_0x2fa5f3[_0x4a0aac(0xf2)],_0x4c587f),_0x5378fc=_0x2fa5f3[_0x4a0aac(0xf4)]();_0x4a0aac(0xc7)==_0x2fa5f3[_0x4a0aac(0x105)]?(_0x3fb011=_0x21918c,_0x4b17cf=_0x21918c):(_0x3fb011=_0x5378fc,_0x4b17cf=_0x5378fc[_0x4a0aac(0xe4)](_0x4c587f));break;}}_0x3fb011&&_0x3fb011[_0x4a0aac(0xd6)](_0x3047d5)&&(_0x3047d5=_0x3fb011[_0x4a0aac(0x10f)](),_0x3047d5[_0x4a0aac(0xb8)]=_0x4a0aac(0xb5)),_0x4b17cf&&_0x4b17cf[_0x4a0aac(0xc9)](_0x4cfd89)&&(_0x4cfd89=_0x4b17cf[_0x4a0aac(0x10f)](),_0x4cfd89[_0x4a0aac(0xb8)]=_0x4a0aac(0xb5));}return _0x36e835[_0x4a0aac(0xe2)][_0x4a0aac(0x10a)](_0x36e835[_0x4a0aac(0xe2)][_0x4a0aac(0xd1)](_0x3047d5,_0x4cfd89));}export function expandSelectionWithContext(_0x321c7d,_0x110b7f){const _0x130f93=_0x184f;ro(_0x321c7d,_0x110b7f,_0x130f93(0x107));const _0x8a5d18=_0x110b7f[_0x130f93(0x112)]();_0x110b7f[_0x130f93(0xe3)]([]),_0x110b7f[_0x130f93(0xe3)](_0x8a5d18,{'backward':!0x0}),ro(_0x321c7d,_0x110b7f,_0x130f93(0xac));}function ro(_0x5bd3f4,_0x52d166,_0x22ed56){const _0x1c1001=_0x184f;let _0x4e90aa=0x14;for(;_0x4e90aa;){_0x5bd3f4[_0x1c1001(0xa4)](_0x52d166,{'unit':_0x1c1001(0x111),'direction':_0x22ed56}),_0x4e90aa--;const _0x124c33=_0x52d166[_0x1c1001(0xa0)][_0x1c1001(0x107)==_0x22ed56?_0x1c1001(0xcd):_0x1c1001(0xe8)];if(_0x124c33&&_0x124c33['is'](_0x1c1001(0xab))&&_0x5bd3f4[_0x1c1001(0xf1)][_0x1c1001(0xf5)](_0x124c33)&&_0x5bd3f4[_0x1c1001(0xf1)][_0x1c1001(0x9d)](_0x124c33))break;}}export function _transformMarkersByDeletion(_0x26992b,_0x22bc98){const _0x15bf3c=_0x184f;for(const [_0x30a60b,_0x53cd17]of _0x26992b[_0x15bf3c(0x103)]){const _0x10bfff=_0x53cd17[_0x15bf3c(0xe1)](_0x22bc98[_0x15bf3c(0xfe)],_0x22bc98[_0x15bf3c(0x102)][_0x15bf3c(0xb0)]-_0x22bc98[_0x15bf3c(0xfe)][_0x15bf3c(0xb0)]);null!=_0x10bfff?_0x26992b[_0x15bf3c(0x103)][_0x15bf3c(0xd3)](_0x30a60b,_0x10bfff):_0x26992b[_0x15bf3c(0x103)][_0x15bf3c(0xf7)](_0x30a60b);}}
|
|
23
|
+
(function(_0x57917d,_0x308aae){const _0x4623f7=_0x439f,_0x5b1871=_0x57917d();while(!![]){try{const _0x57154f=parseInt(_0x4623f7(0xac))/0x1*(-parseInt(_0x4623f7(0x9b))/0x2)+parseInt(_0x4623f7(0xc4))/0x3+-parseInt(_0x4623f7(0xe9))/0x4+parseInt(_0x4623f7(0xb5))/0x5+parseInt(_0x4623f7(0xf2))/0x6*(parseInt(_0x4623f7(0xf0))/0x7)+-parseInt(_0x4623f7(0x107))/0x8*(-parseInt(_0x4623f7(0xbc))/0x9)+parseInt(_0x4623f7(0xc2))/0xa;if(_0x57154f===_0x308aae)break;else _0x5b1871['push'](_0x5b1871['shift']());}catch(_0x32c930){_0x5b1871['push'](_0x5b1871['shift']());}}}(_0x3dc4,0xbbc5c));import{findOne as _0x2afa0e,getAttribute as _0x5a1537,Document as _0x27116c,serialize as _0x41cafb,parse as _0xfeea39}from'./htmlparser.js';import{fixElementSuggestionRange as _0x5418ac}from'ckeditor5-collaboration/src/collaboration-core.js';import{ModelRange as _0x5cf2cf,_DetachOperation as _0x4d4022,_removeFromModelNodeList as _0x2afe10,_insertIntoModelNodeList as _0x4e5063}from'ckeditor5/src/engine.js';function _0x3dc4(){const _0x2e29cd=['removeAttribute','model','delete','isAfter','push','data','removed','add','232tsrDrM','POSITIVE_INFINITY','setTo','oldValue','insert','suggestion:insertion:','path','textNode','isObject','2hntndI','clone','element','parse','getDiff','getShiftedBy','_getTransformedByInsertion','oldName','forward','createRange','createSelection','remove','cloneNode','$root','applyOperation','moveTargetPosition','newRange','1448949xkbaqf','get','merge','newName','root','getOperations','word','splitPosition','type','804275fSWKIm','slice','length','sourcePosition','howMany','getTransformedByOperation','new','160452WdTGqu','isBefore','start','modifySelection','newValue','isBlock','5156900yPmdWb','split','3976194QPYSGt','$text','suggestion:formatBlock:$fakeWrap:','isRegisteredAttribute','batch','nodeBefore','end','baseVersion','isDocumentOperation','backward','node','createPositionFromPath','getMinimalFlatRanges','stringify','createPositionAt','createRangeOn','getFirstRange','stickiness','map','changeAttribute','range','addAttribute','plugins','parent','addOperation','_createFromRanges','children','reverse','isMarkedRemoveOperation','index','suggestion:attribute:','rename','changes','$elementName','marker',':$aiSuggestion','_getTransformedByDeletion','4864096OfGcTj','getMovedRangeStart','...','nodeAfter','key','DocumentCompare','position','154euAMxj','name','249582oPqRgB','markers','toNone','offset','focus','schema','SuggestionsConversion','move','targetPosition','suggestion:deletion:','change','set','data-id'];_0x3dc4=function(){return _0x2e29cd;};return _0x3dc4();}import{uid as _0x921827}from'ckeditor5/src/utils.js';export function getSuggestionPartsFromReply({editor:_0x37f68f,changeGroups:_0x1647e9,documentContextContent:_0x1c1ea0,showDiff:_0x33501a,trimUnchanged:_0x58360b=!0x0}){const _0x399f24=_0x439f;return _0x1647e9[_0x399f24(0xd6)](_0xca4e3=>{const _0x591436=_0x399f24,_0x3d2aad=new _0x27116c([]),_0x4446a5=new _0x27116c([]);for(const _0x40a209 of _0xca4e3[_0x591436(0xe4)])if(_0x33501a&&_0x591436(0x105)==_0x40a209[_0x591436(0xb4)]||_0x4446a5[_0x591436(0xde)][_0x591436(0x103)](_0x40a209[_0x591436(0xce)][_0x591436(0xa7)](!0x0)),_0x591436(0xbb)!=_0x40a209[_0x591436(0xb4)]&&(_0x33501a||_0x591436(0x105)!=_0x40a209[_0x591436(0xb4)])){const _0x11f728=_0x2afa0e(_0x1338bc=>_0x5a1537(_0x1338bc,_0x591436(0xfe))==_0x40a209['id'],_0x1c1ea0,!0x0);_0x11f728&&_0x3d2aad[_0x591436(0xde)][_0x591436(0x103)](_0x11f728[_0x591436(0xa7)](!0x0));}const {content:_0x19271f,hasChanges:_0x257876}=function(_0x269d63,_0x1d28be,_0x5e3039,_0x5e7d85,_0x48a34e=!0x0){const _0x35e524=_0x591436,_0x4c0cd3=_0x269d63[_0x35e524(0xda)][_0x35e524(0xad)](_0x35e524(0xee)),_0x299bca=_0x41cafb(_0x1d28be),_0x5a7db8=_0x41cafb(_0x5e3039),_0x4ae18f=_0x269d63[_0x35e524(0x104)][_0x35e524(0x9e)](_0x299bca,_0x35e524(0xa8)),_0x317921=_0x269d63[_0x35e524(0x100)][_0x35e524(0xd2)](_0x4ae18f,0x0),_0x20bb7c=_0x4c0cd3[_0x35e524(0x9f)](_0x299bca,_0x5a7db8,{'anchor':_0x317921,'markDeletions':_0x5e7d85}),_0x41fcec=_0x20bb7c[_0x35e524(0xb1)]();if(0x0==_0x41fcec[_0x35e524(0xb7)])return{'content':_0x1d28be[_0x35e524(0xa7)](!0x0),'hasChanges':!0x1};_0x5e7d85?function(_0x551bfc,_0x405323,_0x501974){const _0x39eedc=_0x35e524;if(0x0==_0x551bfc[_0x39eedc(0xb7)])return;const _0x27b865=_0x501974[_0x39eedc(0xda)][_0x39eedc(0xad)](_0x39eedc(0xee)),_0x327b81=_0x501974[_0x39eedc(0xda)][_0x39eedc(0xad)](_0x39eedc(0xf8));_0x501974[_0x39eedc(0x100)][_0x39eedc(0xfc)](_0x348674=>{const _0x2ed75f=_0x39eedc,_0x200594=new Set();for(let _0x3beaac=0x0;_0x3beaac<_0x551bfc[_0x2ed75f(0xb7)];_0x3beaac++){const _0x12f147=_0x551bfc[_0x3beaac];if(_0x12f147[_0x2ed75f(0xcb)]=null,_0x12f147[_0x2ed75f(0xcc)]=!0x1,_0x27b865[_0x2ed75f(0xe0)](_0x12f147)){const _0x44bd6b=_0x5418ac(_0x12f147[_0x2ed75f(0xab)],_0x501974[_0x2ed75f(0x100)]),_0x43b46f=_0x2ed75f(0xfb)+_0x921827()+_0x2ed75f(0xe7);_0x405323[_0x2ed75f(0xf3)][_0x2ed75f(0xfd)](_0x43b46f,_0x44bd6b);}else switch(_0x12f147[_0x2ed75f(0xb4)]){case _0x2ed75f(0xe3):{if(_0x12f147[_0x2ed75f(0xa2)]==_0x12f147[_0x2ed75f(0xaf)])break;_0x348674[_0x2ed75f(0xc8)][_0x2ed75f(0xdc)](_0x12f147),_0x501974[_0x2ed75f(0x100)][_0x2ed75f(0xa9)](_0x12f147);const _0x35ac14=_0x2ed75f(0xe5),_0x2393d1=_0x12f147[_0x2ed75f(0xef)],_0x581dde=_0x501974[_0x2ed75f(0x100)][_0x2ed75f(0xa4)](_0x2393d1,_0x501974[_0x2ed75f(0x100)][_0x2ed75f(0xd2)](_0x2393d1[_0x2ed75f(0xec)],_0x2ed75f(0xca))),_0x41d65b=_0x2ed75f(0xe2)+_0x35ac14+':'+_0x921827()+_0x2ed75f(0xe7);_0x405323[_0x2ed75f(0xf3)][_0x2ed75f(0xfd)](_0x41d65b,_0x581dde);break;}case _0x2ed75f(0xd9):case _0x2ed75f(0xff):case _0x2ed75f(0xd7):{if(_0x12f147[_0x2ed75f(0x10a)]==_0x12f147[_0x2ed75f(0xc0)])break;_0x348674[_0x2ed75f(0xc8)][_0x2ed75f(0xdc)](_0x12f147),_0x501974[_0x2ed75f(0x100)][_0x2ed75f(0xa9)](_0x12f147);const _0x57f8cb=_0x12f147[_0x2ed75f(0xed)];if(!_0x327b81[_0x2ed75f(0xc7)](_0x57f8cb))break;const _0x334e21=_0x5418ac(_0x12f147[_0x2ed75f(0xd8)],_0x501974[_0x2ed75f(0x100)]),_0x1cbb4f=_0x2ed75f(0xe2)+_0x57f8cb+':'+_0x921827()+_0x2ed75f(0xe7);_0x405323[_0x2ed75f(0xf3)][_0x2ed75f(0xfd)](_0x1cbb4f,_0x334e21);break;}case _0x2ed75f(0x10b):{_0x348674[_0x2ed75f(0xc8)][_0x2ed75f(0xdc)](_0x12f147),_0x501974[_0x2ed75f(0x100)][_0x2ed75f(0xa9)](_0x12f147);if(_0x551bfc[_0x3beaac+0x1]&&_0x2ed75f(0xf9)==_0x551bfc[_0x3beaac+0x1][_0x2ed75f(0xb4)]){no(_0x405323,_0x12f147);break;}const _0x1a859f=_0x12f147[_0x2ed75f(0xef)],_0x17cf02=_0x12f147[_0x2ed75f(0xb9)],_0x5d9f13=_0x5418ac(_0x501974[_0x2ed75f(0x100)][_0x2ed75f(0xa4)](_0x1a859f,_0x1a859f[_0x2ed75f(0xa0)](_0x17cf02)),_0x501974[_0x2ed75f(0x100)]),_0x383b84=_0x2ed75f(0x10c)+_0x921827()+_0x2ed75f(0xe7);_0x405323[_0x2ed75f(0xf3)][_0x2ed75f(0xfd)](_0x383b84,_0x5d9f13);break;}case _0x2ed75f(0xc3):{_0x348674[_0x2ed75f(0xc8)][_0x2ed75f(0xdc)](_0x12f147),_0x501974[_0x2ed75f(0x100)][_0x2ed75f(0xa9)](_0x12f147);const _0x1b5390=_0x12f147[_0x2ed75f(0xb3)],_0x457df7=_0x12f147[_0x2ed75f(0xaa)],_0x49488f=_0x501974[_0x2ed75f(0x100)][_0x2ed75f(0xa4)](_0x1b5390,_0x457df7),_0x20808e=_0x2ed75f(0x10c)+_0x921827()+_0x2ed75f(0xe7);_0x405323[_0x2ed75f(0xf3)][_0x2ed75f(0xfd)](_0x20808e,_0x49488f);break;}case _0x2ed75f(0xf9):{_0x348674[_0x2ed75f(0xc8)][_0x2ed75f(0xdc)](_0x12f147),_0x501974[_0x2ed75f(0x100)][_0x2ed75f(0xa9)](_0x12f147),_0x551bfc[_0x3beaac-0x1]&&_0x2ed75f(0x10b)==_0x551bfc[_0x3beaac-0x1][_0x2ed75f(0xb4)]&&no(_0x405323,_0x12f147);const _0x32bd7e=_0x12f147[_0x2ed75f(0xea)](),_0x19d2a6=_0x12f147[_0x2ed75f(0xb9)];for(let _0x12f558=0x0;_0x12f558<_0x19d2a6;_0x12f558++){const _0x21a7af=_0x32bd7e[_0x2ed75f(0xa0)](_0x12f558)[_0x2ed75f(0xec)];_0x200594[_0x2ed75f(0x106)](_0x21a7af);}break;}case _0x2ed75f(0xa6):{const _0x6e31af=_0x12f147[_0x2ed75f(0xb8)],_0x54c5da=_0x12f147[_0x2ed75f(0xb9)],_0x1b26e4=new _0x4d4022(_0x6e31af,_0x54c5da);_0x348674[_0x2ed75f(0xc8)][_0x2ed75f(0xdc)](_0x1b26e4),_0x501974[_0x2ed75f(0x100)][_0x2ed75f(0xa9)](_0x1b26e4);break;}}}for(const _0x550d00 of _0x200594){const _0x119674=_0x501974[_0x2ed75f(0x100)][_0x2ed75f(0xd3)](_0x550d00),_0x53e838=_0x2ed75f(0xc6)+_0x921827()+_0x2ed75f(0xe7);_0x405323[_0x2ed75f(0xf3)][_0x2ed75f(0xfd)](_0x53e838,_0x5418ac(_0x119674,_0x501974[_0x2ed75f(0x100)]));}});}(_0x41fcec,_0x4ae18f,_0x269d63):_0x269d63[_0x35e524(0x100)][_0x35e524(0xfc)](_0x470d9a=>{const _0x18c6f2=_0x35e524;for(const _0x53fb83 of _0x41fcec)if(_0x18c6f2(0xa6)==_0x53fb83[_0x18c6f2(0xb4)]){const _0x12e5d3=_0x53fb83[_0x18c6f2(0xb8)],_0x3aa137=_0x53fb83[_0x18c6f2(0xb9)],_0x377d5b=new _0x4d4022(_0x12e5d3,_0x3aa137);_0x470d9a[_0x18c6f2(0xc8)][_0x18c6f2(0xdc)](_0x377d5b),_0x269d63[_0x18c6f2(0x100)][_0x18c6f2(0xa9)](_0x377d5b);}else{if(_0x18c6f2(0xe6)==_0x53fb83[_0x18c6f2(0xb4)]){const _0x565b23=_0x53fb83[_0x18c6f2(0xf1)],_0x2098ad=_0x53fb83[_0x18c6f2(0xab)];null!==_0x2098ad?_0x4ae18f[_0x18c6f2(0xf3)][_0x18c6f2(0xfd)](_0x565b23,_0x2098ad):_0x4ae18f[_0x18c6f2(0xf3)][_0x18c6f2(0x101)](_0x565b23);}else _0x53fb83[_0x18c6f2(0xcb)]=null,_0x53fb83[_0x18c6f2(0xcc)]=!0x1,_0x470d9a[_0x18c6f2(0xc8)][_0x18c6f2(0xdc)](_0x53fb83),_0x269d63[_0x18c6f2(0x100)][_0x18c6f2(0xa9)](_0x53fb83);}});if(_0x48a34e){const _0x47e9b0=getMinimalSelection(_0x269d63,_0x41fcec,_0x4ae18f);expandSelectionWithContext(_0x269d63[_0x35e524(0x100)],_0x47e9b0),function(_0x5d05f9,_0x32b4bd){const _0x27aada=_0x35e524,_0x4d978c=_0x32b4bd[_0x27aada(0xd4)]()[_0x27aada(0xbe)];let _0x3f793f=_0x32b4bd[_0x27aada(0xd4)]()[_0x27aada(0xca)];const _0xd1ffe0=_0x4d978c[_0x27aada(0xb0)];(_0x3f793f[_0x27aada(0x99)]||_0x3f793f[_0x27aada(0xec)]&&_0x3f793f[_0x27aada(0xec)]['is'](_0x27aada(0xc5)))&&(_0x4e5063(_0x3f793f,_0x27aada(0xeb)),_0x3f793f=_0x3f793f[_0x27aada(0xa0)](0x3)),(_0x4d978c[_0x27aada(0x99)]||_0x4d978c[_0x27aada(0xc9)]&&_0x4d978c[_0x27aada(0xc9)]['is'](_0x27aada(0xc5)))&&(_0x4e5063(_0x4d978c,_0x27aada(0xeb)),function(_0xaf12aa,_0x4cc79a,_0x124d9f){const _0x1af3c0=_0x27aada;for(let [_0xa8f8d1,_0x36ac48]of _0xaf12aa[_0x1af3c0(0xf3)]){const _0x4ccd6a=_0x36ac48[_0x1af3c0(0xa1)](_0x4cc79a,_0x124d9f,!0x1);_0x36ac48=_0x4ccd6a[0x0],_0xaf12aa[_0x1af3c0(0xf3)][_0x1af3c0(0xfd)](_0xa8f8d1,_0x36ac48);}}(_0xd1ffe0,_0x4d978c,0x3),_0x4d978c[_0x27aada(0xdb)]==_0x3f793f[_0x27aada(0xdb)]&&(_0x3f793f=_0x3f793f[_0x27aada(0xa0)](0x3)));const _0xa611f=_0x5d05f9[_0x27aada(0xa4)](_0x5d05f9[_0x27aada(0xd2)](_0xd1ffe0,0x0),_0x4d978c),_0x3e7895=_0x5d05f9[_0x27aada(0xa4)](_0x3f793f,_0x5d05f9[_0x27aada(0xd2)](_0xd1ffe0,_0x27aada(0xca))),_0x37f1fe=[..._0xa611f[_0x27aada(0xd0)](),..._0x3e7895[_0x27aada(0xd0)]()];_0x37f1fe[_0x27aada(0xdf)]();for(const _0x271558 of _0x37f1fe)_0x2afe10(_0x271558),_transformMarkersByDeletion(_0xd1ffe0,_0x271558);}(_0x269d63[_0x35e524(0x100)],_0x47e9b0);}const _0xf78197=_0x269d63[_0x35e524(0x104)][_0x35e524(0xd1)](_0x4ae18f,{'showSuggestionHighlights':!0x0});return{'content':_0xfeea39(_0xf78197),'hasChanges':!0x0};}(_0x37f68f,_0x3d2aad,_0x4446a5,_0x33501a,_0x58360b);return{'type':_0xca4e3[_0x591436(0xe4)][0x0][_0x591436(0xb4)],'index':_0xca4e3[_0x591436(0xe1)],'content':_0x19271f,'hasChanges':_0x257876};});}function no(_0x55c111,_0x283375){const _0x22b41a=_0x439f;for(const [_0x51b609,_0x3f7d64]of _0x55c111[_0x22b41a(0xf3)]){const _0x36935d=_0x5cf2cf[_0x22b41a(0xdd)](_0x3f7d64[_0x22b41a(0xba)](_0x283375));_0x55c111[_0x22b41a(0xf3)][_0x22b41a(0xfd)](_0x51b609,_0x36935d);}}export function getMinimalSelection(_0x221232,_0x260160,_0x568a04){const _0x3d2478=_0x439f,_0x5e556c=_0x221232[_0x3d2478(0xda)][_0x3d2478(0xad)](_0x3d2478(0xee));let _0x3eae90=_0x221232[_0x3d2478(0x100)][_0x3d2478(0xd2)](_0x568a04,Number[_0x3d2478(0x108)]),_0x15e200=_0x221232[_0x3d2478(0x100)][_0x3d2478(0xd2)](_0x568a04,0x0);for(const _0x158ddc of _0x260160){let _0x52e5d9,_0x5e4a6c;if(_0x5e556c[_0x3d2478(0xe0)](_0x158ddc))_0x52e5d9=_0x158ddc[_0x3d2478(0xab)][_0x3d2478(0xbe)],_0x5e4a6c=_0x158ddc[_0x3d2478(0xab)][_0x3d2478(0xca)];else switch(_0x3eae90=_0x3eae90[_0x3d2478(0xba)](_0x158ddc),_0x15e200=_0x15e200[_0x3d2478(0xba)](_0x158ddc),_0x158ddc[_0x3d2478(0xb4)]){case _0x3d2478(0xe3):_0x52e5d9=_0x158ddc[_0x3d2478(0xef)],_0x5e4a6c=_0x52e5d9[_0x3d2478(0xa0)](0x1);break;case _0x3d2478(0xd9):case _0x3d2478(0xff):case _0x3d2478(0xd7):_0x52e5d9=_0x158ddc[_0x3d2478(0xd8)][_0x3d2478(0xbe)],_0x5e4a6c=_0x158ddc[_0x3d2478(0xd8)][_0x3d2478(0xca)];break;case _0x3d2478(0x10b):_0x52e5d9=_0x158ddc[_0x3d2478(0xef)],_0x5e4a6c=_0x52e5d9[_0x3d2478(0xa0)](_0x158ddc[_0x3d2478(0xb9)]);break;case _0x3d2478(0xc3):_0x52e5d9=_0x158ddc[_0x3d2478(0xb3)],_0x5e4a6c=_0x158ddc[_0x3d2478(0xaa)];break;case _0x3d2478(0xae):{const _0x4841d8=_0x158ddc[_0x3d2478(0xfa)][_0x3d2478(0x98)][_0x3d2478(0xb6)](0x0,-0x1);_0x52e5d9=_0x221232[_0x3d2478(0x100)][_0x3d2478(0xcf)](_0x568a04,_0x4841d8),_0x5e4a6c=_0x52e5d9[_0x3d2478(0xa0)](0x1);break;}case _0x3d2478(0xa6):{const _0x1f992b=_0x158ddc[_0x3d2478(0xb9)],_0x2d72d9=_0x158ddc[_0x3d2478(0xb8)][_0x3d2478(0xa1)](_0x158ddc[_0x3d2478(0xfa)],_0x1f992b),_0x4b8e38=_0x158ddc[_0x3d2478(0xea)]();_0x3d2478(0xa6)==_0x158ddc[_0x3d2478(0xb4)]?(_0x52e5d9=_0x2d72d9,_0x5e4a6c=_0x2d72d9):(_0x52e5d9=_0x4b8e38,_0x5e4a6c=_0x4b8e38[_0x3d2478(0xa0)](_0x1f992b));break;}}_0x52e5d9&&_0x52e5d9[_0x3d2478(0xbd)](_0x3eae90)&&(_0x3eae90=_0x52e5d9[_0x3d2478(0x9c)](),_0x3eae90[_0x3d2478(0xd5)]=_0x3d2478(0xf4)),_0x5e4a6c&&_0x5e4a6c[_0x3d2478(0x102)](_0x15e200)&&(_0x15e200=_0x5e4a6c[_0x3d2478(0x9c)](),_0x15e200[_0x3d2478(0xd5)]=_0x3d2478(0xf4));}return _0x221232[_0x3d2478(0x100)][_0x3d2478(0xa5)](_0x221232[_0x3d2478(0x100)][_0x3d2478(0xa4)](_0x3eae90,_0x15e200));}export function expandSelectionWithContext(_0x5cf428,_0x224a2b){const _0x3242ac=_0x439f;ro(_0x5cf428,_0x224a2b,_0x3242ac(0xa3));const _0x534539=_0x224a2b[_0x3242ac(0xd4)]();_0x224a2b[_0x3242ac(0x109)]([]),_0x224a2b[_0x3242ac(0x109)](_0x534539,{'backward':!0x0}),ro(_0x5cf428,_0x224a2b,_0x3242ac(0xcd));}function _0x439f(_0x18d191,_0x398ec4){const _0x3dc4db=_0x3dc4();return _0x439f=function(_0x439f8b,_0x590904){_0x439f8b=_0x439f8b-0x98;let _0x52878d=_0x3dc4db[_0x439f8b];return _0x52878d;},_0x439f(_0x18d191,_0x398ec4);}function ro(_0x1b27d9,_0x55b43c,_0x51d8e6){const _0x7206db=_0x439f;let _0x6ab492=0x14;for(;_0x6ab492;){_0x1b27d9[_0x7206db(0xbf)](_0x55b43c,{'unit':_0x7206db(0xb2),'direction':_0x51d8e6}),_0x6ab492--;const _0x1184bc=_0x55b43c[_0x7206db(0xf6)][_0x7206db(0xa3)==_0x51d8e6?_0x7206db(0xc9):_0x7206db(0xec)];if(_0x1184bc&&_0x1184bc['is'](_0x7206db(0x9d))&&_0x1b27d9[_0x7206db(0xf7)][_0x7206db(0xc1)](_0x1184bc)&&_0x1b27d9[_0x7206db(0xf7)][_0x7206db(0x9a)](_0x1184bc))break;}}export function _transformMarkersByDeletion(_0x2cca4d,_0x22ab5d){const _0x52dd39=_0x439f;for(const [_0x47c222,_0x325d4e]of _0x2cca4d[_0x52dd39(0xf3)]){const _0x38aec5=_0x325d4e[_0x52dd39(0xe8)](_0x22ab5d[_0x52dd39(0xbe)],_0x22ab5d[_0x52dd39(0xca)][_0x52dd39(0xf5)]-_0x22ab5d[_0x52dd39(0xbe)][_0x52dd39(0xf5)]);null!=_0x38aec5?_0x2cca4d[_0x52dd39(0xf3)][_0x52dd39(0xfd)](_0x47c222,_0x38aec5):_0x2cca4d[_0x52dd39(0xf3)][_0x52dd39(0x101)](_0x47c222);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x28b6f1,_0x1ce896){const _0x3113f9=_0x5473,_0x4a014b=_0x28b6f1();while(!![]){try{const _0x3c487b=-parseInt(_0x3113f9(0x13d))/0x1+-parseInt(_0x3113f9(0x14a))/0x2+-parseInt(_0x3113f9(0x13e))/0x3+-parseInt(_0x3113f9(0x140))/0x4+parseInt(_0x3113f9(0x146))/0x5*(-parseInt(_0x3113f9(0x137))/0x6)+parseInt(_0x3113f9(0x135))/0x7*(parseInt(_0x3113f9(0x13a))/0x8)+parseInt(_0x3113f9(0x14b))/0x9;if(_0x3c487b===_0x1ce896)break;else _0x4a014b['push'](_0x4a014b['shift']());}catch(_0x5b63cc){_0x4a014b['push'](_0x4a014b['shift']());}}}(_0xcd22,0x90de0));import{parseDocument as _0x35fe6f}from'htmlparser2';import{append as _0x495c29,appendChild as _0x441986,find as _0x2bca92,findAll as _0x21ac8d,findOne as _0x4dcbe0,getChildren as _0x240dac,isComment as _0x50983f,isTag as _0x10f230,prepend as _0x38423a,prependChild as _0x31bb36,removeElement as _0x5ada7c,replaceElement as _0x4f7028,textContent as _0x4bcdd0,getParent as _0x717de,hasChildren as _0x23719a}from'domutils';import _0x2528b0 from'dom-serializer';import{cloneNode as _0x471e39,isDocument as _0x5c3970,isText as _0x3ec03a,Element as _0x1a14d8,Text as _0xe2ecbc,Document as _0x2b1cf7,NodeWithChildren as _0x3a2220}from'domhandler';export{_0x471e39 as cloneNode,_0x2bca92 as find,_0x4dcbe0 as findOne,_0x21ac8d as findAll,_0x240dac as getChildren,_0x717de as getParent,_0x50983f as isComment,_0x5c3970 as isDocument,_0x10f230 as isTag,_0x3ec03a as isText,_0x495c29 as append,_0x441986 as appendChild,_0x38423a as prepend,_0x31bb36 as prependChild,_0x2528b0 as render,_0x5ada7c as removeElement,_0x4f7028 as replaceElement,_0x4bcdd0 as textContent,_0x23719a as hasChildren,_0x1a14d8 as Element,_0x2b1cf7 as Document,_0x3a2220 as NodeWithChildren,_0xe2ecbc as Text};export function parse(_0x1548c4){return _0x35fe6f(_0x1548c4);}export function serialize(_0x4d9746){return _0x2528b0(_0x4d9746);}export function findByAttribute(_0x5c4985,_0x726995,_0x5323ab){const _0x2f4d85=_0x5473,_0x56140a=null!==_0x726995?_0x24850b=>_0x24850b[_0x2f4d85(0x136)][_0x5c4985]===_0x726995:_0x265bf9=>Boolean(_0x265bf9[_0x2f4d85(0x136)][_0x5c4985]);return _0x4dcbe0(_0xdaa24e=>_0x10f230(_0xdaa24e)&&_0x56140a(_0xdaa24e),_0x5323ab);}export function findAllByAttribute(_0x199278,_0x4ce3cb,_0x550b8f){const _0x1db7dc=_0x5473,_0x477e6b=null!==_0x4ce3cb?_0x39a45b=>_0x39a45b[_0x1db7dc(0x136)][_0x199278]===_0x4ce3cb:_0x243690=>Boolean(_0x243690[_0x1db7dc(0x136)][_0x199278]);return _0x21ac8d(_0xff88b1=>_0x10f230(_0xff88b1)&&_0x477e6b(_0xff88b1),_0x550b8f);}export function findAllComments(_0xd64323){return _0x2bca92(_0x19babf=>_0x50983f(_0x19babf),_0xd64323,!0x0,0x1/0x0);}export function getAttribute(_0x35e90c,_0x15146b){const _0x37bb24=_0x5473;return _0x35e90c&&_0x10f230(_0x35e90c)?_0x35e90c[_0x37bb24(0x136)][_0x15146b]:null;}export function setAttribute(_0x1e3aeb,_0xa1bf,_0x402921){const _0x5c48d1=_0x5473;_0x10f230(_0x1e3aeb)&&(null===_0x402921?delete _0x1e3aeb[_0x5c48d1(0x136)][_0xa1bf]:_0x1e3aeb[_0x5c48d1(0x136)][_0xa1bf]=_0x402921);}function _0x5473(_0x1a2d1c,_0x24a9eb){const _0xcd223c=_0xcd22();return _0x5473=function(_0x54735a,_0x2ec9a6){_0x54735a=_0x54735a-0x135;let _0x1a53c4=_0xcd223c[_0x54735a];return _0x1a53c4;},_0x5473(_0x1a2d1c,_0x24a9eb);}export function insertElement(_0x2a2757,_0x4f1714,_0x3549d1){const _0x109830=_0x5473,_0x3ebba1=_0x4f1714[_0x109830(0x143)](!0x0);_0x109830(0x142)===_0x3549d1?_0x38423a(_0x2a2757,_0x3ebba1):_0x109830(0x148)===_0x3549d1?_0x31bb36(_0x2a2757,_0x3ebba1):_0x109830(0x144)===_0x3549d1?_0x441986(_0x2a2757,_0x3ebba1):_0x109830(0x13c)===_0x3549d1&&_0x495c29(_0x2a2757,_0x3ebba1);}export function moveElement(_0x5817a2,_0x406c4e){_0x5ada7c(_0x5817a2),_0x4f7028(_0x406c4e,_0x5817a2);}export function clone(_0x3e1d5){const _0x3b4034=_0x5473;return _0x3e1d5[_0x3b4034(0x143)](!0x0);}function _0xcd22(){const _0x55070a=['263416cnulFs','replace','afterend','107992KhgRqw','783612bBoCGC','slice','154116FTzXre','parentNode','beforebegin','cloneNode','beforeend','map','2454955HdfHVO','indexOf','afterbegin','reverse','299666vNzmXU','6183378mQnSbf','nextSibling','203WixMtt','attribs','6NymIUm','push','forEach'];_0xcd22=function(){return _0x55070a;};return _0xcd22();}export function getParents(_0x119c51){const _0x51909e=_0x5473,_0x26016f=[];let _0x4b33f4=_0x119c51;for(;_0x4b33f4;)_0x4b33f4=_0x717de(_0x4b33f4),_0x4b33f4&&_0x26016f[_0x51909e(0x138)](_0x4b33f4);return _0x26016f;}export function normalizeHTML(_0x495e8c){const _0x281d31=_0x5473;return _0x495e8c[_0x281d31(0x13b)](/^\s+/gm,'')[_0x281d31(0x13b)](/\s+$/gm,'')[_0x281d31(0x13b)](/\n*/g,'')[_0x281d31(0x13b)](/\s+/g,'\x20')[_0x281d31(0x13b)](/>\s*</g,'><');}export function areNodesSame(_0x49c618,_0x27a97a){return normalizeHTML(serialize(_0x49c618))===normalizeHTML(serialize(_0x27a97a));}export function getNodeNestingLevel(_0x1dd01f){const _0x26d2d6=_0x5473;let _0x17da38=0x0;for(;_0x1dd01f[_0x26d2d6(0x141)];)_0x1dd01f=_0x1dd01f[_0x26d2d6(0x141)],_0x17da38++;return _0x17da38;}export function removeElementsAfter(_0x16e45a){const _0x406db2=_0x5473,_0x416b9b=[];let _0x245fb9=_0x16e45a[_0x406db2(0x14c)];for(;_0x245fb9;)_0x416b9b[_0x406db2(0x138)](_0x245fb9),_0x245fb9=_0x245fb9[_0x406db2(0x14c)];_0x416b9b[_0x406db2(0x139)](_0x5b1b40=>{_0x5ada7c(_0x5b1b40);});}export function getNodePath(_0x276964){const _0x3e721b=_0x5473;return[_0x276964,...getParents(_0x276964)][_0x3e721b(0x13f)](0x0,-0x1)[_0x3e721b(0x145)](_0x43106d=>{const _0x1c2853=_0x3e721b,_0x2b107a=_0x717de(_0x43106d);return _0x240dac(_0x2b107a)[_0x1c2853(0x147)](_0x43106d);})[_0x3e721b(0x149)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x2b9e(){const _0x155b28=['609292MZrwTt','options','3070362etAWfY','3303923WPljXM','reset','span','entries','ins','onStreamUpdate','length','reverse','attribs','nodesList','stream','6559020izwCog','children','lastUpdateTime','del','cleanUpAnimations','signal','match','tagName','stop','sup','code','join','1040NLhfYy','push','delay','includes','childNodes','abort','timeoutAbortController','shouldBeStreamed','from','textNodeStyle','document','addEventListener','map','3239862AAOvRn','parent','isWordSplitResult','div','mark','renderNode','bind','3099fbpmvq','getParsedDocumentNodeList','isWordSplitSource','isStreaming','span[data-ck-html-streamer-word-chunk]','currentIndex','strong','forEach','querySelectorAll','sub','splitTextNodeIntoWordNodes','now','28962tzZSQj','replaceWith','540HlXYRQ'];_0x2b9e=function(){return _0x155b28;};return _0x2b9e();}const _0xa0f6d6=_0x2ead;function _0x2ead(_0x18fbf4,_0x4aa948){const _0x2b9e63=_0x2b9e();return _0x2ead=function(_0x2eadc6,_0x316e84){_0x2eadc6=_0x2eadc6-0x96;let _0x483a1b=_0x2b9e63[_0x2eadc6];return _0x483a1b;},_0x2ead(_0x18fbf4,_0x4aa948);}(function(_0x28626f,_0x18c0fc){const _0x81a668=_0x2ead,_0x233b33=_0x28626f();while(!![]){try{const _0x2125e8=-parseInt(_0x81a668(0xd1))/0x1*(parseInt(_0x81a668(0xa2))/0x2)+parseInt(_0x81a668(0xa5))/0x3+-parseInt(_0x81a668(0xa3))/0x4+parseInt(_0x81a668(0xb1))/0x5+-parseInt(_0x81a668(0xca))/0x6+-parseInt(_0x81a668(0xa6))/0x7+-parseInt(_0x81a668(0xbd))/0x8*(-parseInt(_0x81a668(0xa0))/0x9);if(_0x2125e8===_0x18c0fc)break;else _0x233b33['push'](_0x233b33['shift']());}catch(_0x223b29){_0x233b33['push'](_0x233b33['shift']());}}}(_0x2b9e,0xb7bc3));import _0x33be55 from'morphdom';import{NodeWithChildren as _0xaa5158,Text as _0x3bf4ea,Element as _0x384c7b,isText as _0x10b683,isDocument as _0xf32b11,isTag as _0x4f1b87,cloneNode as _0x3d8b9e,getChildren as _0x2c2aaa,prepend as _0x212fc3,removeElement as _0x37ad3c,textContent as _0xd05b9f,render as _0x301267}from'./htmlparser.js';export class HTMLStreamer{[_0xa0f6d6(0xa4)];[_0xa0f6d6(0x97)]=!0x1;[_0xa0f6d6(0xc7)]=null;[_0xa0f6d6(0xaf)]=[];[_0xa0f6d6(0x99)]=0x0;[_0xa0f6d6(0xc3)]=null;[_0xa0f6d6(0xb3)]=0x0;constructor(_0xb330b0){const _0x5ab073=_0xa0f6d6;this[_0x5ab073(0xa4)]={'delay':_0xb330b0[_0x5ab073(0xbf)]??0x14,'textNodeStyle':_0xb330b0[_0x5ab073(0xc6)],'onStreamUpdate':_0xb330b0[_0x5ab073(0xab)]||(()=>{})};}async[_0xa0f6d6(0xb0)]({document:_0xe115e0,targetElement:_0x44eec0,abortSignal:_0x43d757}){const _0x394ed7=_0xa0f6d6;this[_0x394ed7(0x97)]&&this[_0x394ed7(0xb9)](),_0x43d757?.[_0x394ed7(0xc8)](_0x394ed7(0xc2),this[_0x394ed7(0xb9)][_0x394ed7(0xd0)](this)),this[_0x394ed7(0xc7)]=_0x3d8b9e(_0xe115e0,!0x0),this[_0x394ed7(0xaf)]=this[_0x394ed7(0xd2)](),this[_0x394ed7(0x97)]=!0x0,this[_0x394ed7(0x99)]>this[_0x394ed7(0xaf)][_0x394ed7(0xac)]&&(this[_0x394ed7(0x99)]=this[_0x394ed7(0xaf)][_0x394ed7(0xac)]);for(let _0x4c8fce=0x0;_0x4c8fce<this[_0x394ed7(0x99)];_0x4c8fce++)this[_0x394ed7(0xaf)][_0x4c8fce][_0x394ed7(0xc4)]=!0x0;do{const _0x4a1712=Date[_0x394ed7(0x9f)](),_0x494ff5=this[_0x394ed7(0xaf)][this[_0x394ed7(0x99)]],_0x4f4dd4=_0x4a1712-this[_0x394ed7(0xb3)];if(_0x494ff5){_0x494ff5[_0x394ed7(0xc4)]=!0x0;let _0x2fb8d3=_0x494ff5[_0x394ed7(0xcb)];for(;_0x2fb8d3;)_0x2fb8d3[_0x394ed7(0xc4)]=!0x0,_0x2fb8d3=_0x2fb8d3[_0x394ed7(0xcb)];}if(_0x4f4dd4<this[_0x394ed7(0xa4)][_0x394ed7(0xbf)])try{const {promise:_0x425d69,abortController:_0x314415}=Cs(this[_0x394ed7(0xa4)][_0x394ed7(0xbf)]-_0x4f4dd4);this[_0x394ed7(0xc3)]=_0x314415,await _0x425d69;}catch(_0x36ed97){return;}_0x33be55(_0x44eec0,'<'+_0x44eec0[_0x394ed7(0xb8)]+'>'+this[_0x394ed7(0xcf)](this[_0x394ed7(0xc7)])+'</'+_0x44eec0[_0x394ed7(0xb8)]+'>',{'childrenOnly':!0x0}),this[_0x394ed7(0xa4)][_0x394ed7(0xab)]&&this[_0x394ed7(0xa4)][_0x394ed7(0xab)](),this[_0x394ed7(0x99)]++,this[_0x394ed7(0xb3)]=Date[_0x394ed7(0x9f)]();}while(this[_0x394ed7(0x99)]<this[_0x394ed7(0xaf)][_0x394ed7(0xac)]);this[_0x394ed7(0x99)]=this[_0x394ed7(0xaf)][_0x394ed7(0xac)],this[_0x394ed7(0x97)]=!0x1;}[_0xa0f6d6(0xa7)](){const _0x6c9d07=_0xa0f6d6;this[_0x6c9d07(0x97)]=!0x1,this[_0x6c9d07(0xc7)]=null,this[_0x6c9d07(0xaf)]=[],this[_0x6c9d07(0x99)]=0x0,this[_0x6c9d07(0xc3)]=null;}[_0xa0f6d6(0xb5)]({targetElement:_0x429acf}){const _0x1899a3=_0xa0f6d6;Array[_0x1899a3(0xc5)](_0x429acf[_0x1899a3(0x9c)](_0x1899a3(0x98)))[_0x1899a3(0xad)]()[_0x1899a3(0x9b)](_0x48f868=>{const _0x2e7e01=_0x1899a3;_0x48f868[_0x2e7e01(0xa1)](_0x48f868[_0x2e7e01(0xc1)][0x0]);});}[_0xa0f6d6(0xb9)](){const _0x5e4f56=_0xa0f6d6;this[_0x5e4f56(0x97)]=!0x1,this[_0x5e4f56(0xc3)]&&(this[_0x5e4f56(0xc3)][_0x5e4f56(0xc2)](),this[_0x5e4f56(0xc3)]=null);}[_0xa0f6d6(0xcf)](_0x2f34c1){const _0x544b2a=_0xa0f6d6;let _0x4180c3='';if(function(_0x479dab){return _0xf32b11(_0x479dab);}(_0x2f34c1)){for(const _0x3cbe91 of _0x2f34c1[_0x544b2a(0xb2)])_0x4180c3+=this[_0x544b2a(0xcf)](_0x3cbe91);}else{if(Ts(_0x2f34c1)){if(!_0x2f34c1[_0x544b2a(0xc4)])return'';const _0x4263d8=_0x2f34c1,_0x381fc4=Object[_0x544b2a(0xa9)](_0x4263d8[_0x544b2a(0xae)])[_0x544b2a(0xc9)](([_0xb61a07,_0x524d42])=>_0xb61a07+'=\x22'+_0x524d42+'\x22')[_0x544b2a(0xbc)]('\x20');_0x4180c3+='<'+_0x4263d8[_0x544b2a(0xb8)]+(_0x381fc4?'\x20'+_0x381fc4:'')+'>';for(const _0x1b58cb of _0x2c2aaa(_0x4263d8))_0x4180c3+=this[_0x544b2a(0xcf)](_0x1b58cb);_0x4180c3+='</'+_0x4263d8[_0x544b2a(0xb8)]+'>';}else{if(!Ss(_0x2f34c1))return'';if(!_0x2f34c1[_0x544b2a(0xc4)])return'';!function(_0x5a9898){const _0x2fbc2c=_0x544b2a;if(!_0x5a9898[_0x2fbc2c(0xcb)]||!Ts(_0x5a9898[_0x2fbc2c(0xcb)]))return!0x1;if(!ys[_0x2fbc2c(0xc0)](_0x5a9898[_0x2fbc2c(0xcb)][_0x2fbc2c(0xb8)]))return!0x1;return!_0xd05b9f(_0x5a9898)[_0x2fbc2c(0xb7)](/^\s*[<>]\s*$/);}(_0x2f34c1)?_0x4180c3+=_0x301267(_0x2f34c1):_0x4180c3+=_0x301267(new _0x384c7b(_0x544b2a(0xa8),{'data-ck-html-streamer-word-chunk':'','style':this[_0x544b2a(0xa4)][_0x544b2a(0xc6)]},[_0x2f34c1]));}}return _0x4180c3;}[_0xa0f6d6(0xd2)](){const _0x587b3b=_0xa0f6d6,_0x8b4bf6=[];return function(_0x16b759,_0x12370b){const _0x2868d9=_0x2ead,_0x346621=_0x11d9b7=>{const _0x14affb=_0x2ead;if(_0x12370b(_0x11d9b7),_0x11d9b7 instanceof _0xaa5158)for(let _0x2f3f7a=0x0;_0x2f3f7a<_0x11d9b7[_0x14affb(0xb2)][_0x14affb(0xac)];_0x2f3f7a++){const _0x345948=_0x11d9b7[_0x14affb(0xb2)][_0x2f3f7a];_0x346621(_0x345948);}};for(let _0x4dada6=0x0;_0x4dada6<_0x16b759[_0x2868d9(0xb2)][_0x2868d9(0xac)];_0x4dada6++)_0x346621(_0x16b759[_0x2868d9(0xb2)][_0x4dada6]);}(this[_0x587b3b(0xc7)],_0x3be258=>{const _0x3f12e6=_0x587b3b;if(Ss(_0x3be258)){const _0x25126e=this[_0x3f12e6(0x9e)](_0x3be258);_0x25126e[_0x3f12e6(0xac)]&&_0x8b4bf6[_0x3f12e6(0xbe)](..._0x25126e);}_0x3be258[_0x3f12e6(0x96)]||_0x3be258[_0x3f12e6(0xcc)]||_0x8b4bf6[_0x3f12e6(0xbe)](_0x3be258);}),_0x8b4bf6;}[_0xa0f6d6(0x9e)](_0x1a1f1c){const _0x399f2f=_0xa0f6d6;if(_0x1a1f1c[_0x399f2f(0x96)]||_0x1a1f1c[_0x399f2f(0xcc)])return[];const _0x43cc8f=_0xd05b9f(_0x1a1f1c)[_0x399f2f(0xb7)](/(?:\s*\S+\s*)/g),_0x2382a9=[];if(_0x43cc8f&&_0x43cc8f[_0x399f2f(0xac)]>0x1){for(const _0x4b8f3d of _0x43cc8f){const _0x21d44f=new _0x3bf4ea(_0x4b8f3d);_0x21d44f[_0x399f2f(0xcc)]=!0x0,_0x212fc3(_0x1a1f1c,_0x21d44f),_0x2382a9[_0x399f2f(0xbe)](_0x21d44f);}_0x1a1f1c[_0x399f2f(0x96)]=!0x0,_0x37ad3c(_0x1a1f1c);}return _0x2382a9;}}const ys=['p','li','td','th',_0xa0f6d6(0xa8),'h1','h2','h3','h4','h5','h6','b',_0xa0f6d6(0x9a),'i','em',_0xa0f6d6(0xce),_0xa0f6d6(0xb4),_0xa0f6d6(0xaa),_0xa0f6d6(0xba),_0xa0f6d6(0x9d),'a',_0xa0f6d6(0xbb),_0xa0f6d6(0xcd)];function Ss(_0x370f57){return _0x10b683(_0x370f57);}function Ts(_0x8594cc){return _0x4f1b87(_0x8594cc);}function Cs(_0x4576e3){const _0x17a67c=new AbortController();return{'promise':new Promise((_0x1e8530,_0x4d43fe)=>{const _0x539426=_0x2ead,_0x19c32d=setTimeout(_0x1e8530,_0x4576e3);_0x17a67c[_0x539426(0xb6)][_0x539426(0xc8)](_0x539426(0xc2),()=>{clearTimeout(_0x19c32d),_0x4d43fe();});}),'abortController':_0x17a67c};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x23f854=_0x2026;(function(_0x1de30e,_0x3458e2){var _0x5eef09=_0x2026,_0x4454dd=_0x1de30e();while(!![]){try{var _0x3c9309=parseInt(_0x5eef09(0x151))/0x1*(parseInt(_0x5eef09(0x14f))/0x2)+-parseInt(_0x5eef09(0x150))/0x3+-parseInt(_0x5eef09(0x14b))/0x4+-parseInt(_0x5eef09(0x14c))/0x5*(parseInt(_0x5eef09(0x14d))/0x6)+-parseInt(_0x5eef09(0x147))/0x7*(parseInt(_0x5eef09(0x146))/0x8)+-parseInt(_0x5eef09(0x155))/0x9+-parseInt(_0x5eef09(0x148))/0xa*(-parseInt(_0x5eef09(0x153))/0xb);if(_0x3c9309===_0x3458e2)break;else _0x4454dd['push'](_0x4454dd['shift']());}catch(_0x1023d5){_0x4454dd['push'](_0x4454dd['shift']());}}}(_0xc4e8,0x38d22));import{Plugin as _0x16af34}from'ckeditor5/src/core.js';function _0x2026(_0x38a0c5,_0x40024a){var _0xc4e827=_0xc4e8();return _0x2026=function(_0x2026c6,_0x333d5e){_0x2026c6=_0x2026c6-0x146;var _0x473918=_0xc4e827[_0x2026c6];return _0x473918;},_0x2026(_0x38a0c5,_0x40024a);}import{AIToggleButtonUI as _0x5e8532}from'./aitogglebutton/aitogglebuttonui.js';import{AIChatBalloon as _0x237c17}from'../aichat/aichatballoon.js';function _0xc4e8(){var _0x3328b7=['647949kpFkuI','22AJoyIz','requires','11CUfHpT','isPremiumPlugin','609912rcusEH','64nvmXCD','190057zUkbJe','9514300EOvbcz','isOfficialPlugin','pluginName','904000CHKBbQ','15NzJJuS','712722OXujYA','AIEditorIntegration','33148qJLwLv'];_0xc4e8=function(){return _0x3328b7;};return _0xc4e8();}import{SuggestionsConversion as _0x3c6dc9}from'ckeditor5-collaboration/src/collaboration-core.js';export class AIEditorIntegration extends _0x16af34{static get[_0x23f854(0x152)](){return[_0x5e8532,_0x237c17,_0x3c6dc9];}static get[_0x23f854(0x14a)](){var _0x7cad65=_0x23f854;return _0x7cad65(0x14e);}static get[_0x23f854(0x149)](){return!0x0;}static get[_0x23f854(0x154)](){return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xe544b0=_0xbe51;(function(_0x338e70,_0x2f3e01){const _0x2c9820=_0xbe51,_0x5bccf7=_0x338e70();while(!![]){try{const _0xf47ea1=-parseInt(_0x2c9820(0x1a6))/0x1+-parseInt(_0x2c9820(0x19c))/0x2+parseInt(_0x2c9820(0x1ab))/0x3*(parseInt(_0x2c9820(0x1a0))/0x4)+-parseInt(_0x2c9820(0x1b4))/0x5+-parseInt(_0x2c9820(0x1ae))/0x6+parseInt(_0x2c9820(0x1b8))/0x7+parseInt(_0x2c9820(0x1bc))/0x8*(parseInt(_0x2c9820(0x1a3))/0x9);if(_0xf47ea1===_0x2f3e01)break;else _0x5bccf7['push'](_0x5bccf7['shift']());}catch(_0x352498){_0x5bccf7['push'](_0x5bccf7['shift']());}}}(_0x28e6,0x9c741));import{Plugin as _0x11b9f0}from'ckeditor5/src/core.js';import{ToggleAICommand as _0x3f6ab7}from'./toggleaicommand.js';import{ButtonView as _0x6f9f6d,MenuBarMenuListItemButtonView as _0x21e91d}from'ckeditor5/src/ui.js';import{IconAIAskAI as _0x483a0c}from'@ckeditor/ckeditor5-icons';function _0xbe51(_0x26797a,_0xbea53b){const _0x28e640=_0x28e6();return _0xbe51=function(_0xbe513e,_0x5e838f){_0xbe513e=_0xbe513e-0x19b;let _0x51fde4=_0x28e640[_0xbe513e];return _0x51fde4;},_0xbe51(_0x26797a,_0xbea53b);}import{getTranslation as _0x3eaf48}from'../../aicore/utils/common-translations.js';import{AITabs as _0x23dd9f}from'../../aitabs/aitabs.js';import'../../../theme/aieditorintegration/aitogglebutton.css';function _0x28e6(){const _0x594cff=['4GrOVZC','_createAIUIButton','init','10899981EXqUmB','isPremiumPlugin','menuBar:toggleAi','440155EkKwrZ','add','AIToggleButtonUI','componentFactory','listenTo','720774Sytvcf','editor','toggleAi','1942080AIVcVa','value','pluginName','locale','bind','menuitemcheckbox','2367575ecEhrW','requires','commands','ck-ai-toggle-button','8466227kQKNUc','isEnabled','set','isOfficialPlugin','8UDVbON','execute','1565290ywdYtB','get','AI_TOGGLE_BUTTON_LABEL','isOn'];_0x28e6=function(){return _0x594cff;};return _0x28e6();}export class AIToggleButtonUI extends _0x11b9f0{static get[_0xe544b0(0x1b5)](){return[_0x23dd9f];}static get[_0xe544b0(0x1b0)](){const _0x372ff4=_0xe544b0;return _0x372ff4(0x1a8);}static get[_0xe544b0(0x1bb)](){return!0x0;}static get[_0xe544b0(0x1a4)](){return!0x0;}[_0xe544b0(0x1a2)](){const _0x47c49e=_0xe544b0,_0x56e951=this[_0x47c49e(0x1ac)];_0x56e951[_0x47c49e(0x1b6)][_0x47c49e(0x1a7)](_0x47c49e(0x1ad),new _0x3f6ab7(_0x56e951)),_0x56e951['ui'][_0x47c49e(0x1a9)][_0x47c49e(0x1a7)](_0x47c49e(0x1ad),()=>{const _0x5baf32=_0x47c49e,_0x16d701=this[_0x5baf32(0x1a1)](_0x6f9f6d);return _0x16d701[_0x5baf32(0x1ba)]({'tooltip':!0x0,'class':_0x5baf32(0x1b7)}),_0x16d701;}),_0x56e951['ui'][_0x47c49e(0x1a9)][_0x47c49e(0x1a7)](_0x47c49e(0x1a5),()=>{const _0xc976b5=_0x47c49e,_0x20abb4=this[_0xc976b5(0x1a1)](_0x21e91d);return _0x20abb4[_0xc976b5(0x1ba)]({'role':_0xc976b5(0x1b3)}),_0x20abb4;});}[_0xe544b0(0x1a1)](_0x149eb8){const _0x2a1404=_0xe544b0,_0x147e8d=this[_0x2a1404(0x1ac)],_0x166e79=_0x147e8d[_0x2a1404(0x1b6)][_0x2a1404(0x19d)](_0x2a1404(0x1ad)),_0x5de9ab=new _0x149eb8(_0x147e8d[_0x2a1404(0x1b1)]);return _0x5de9ab[_0x2a1404(0x1ba)]({'label':_0x3eaf48(_0x147e8d[_0x2a1404(0x1b1)],_0x2a1404(0x19e)),'icon':_0x483a0c,'isToggleable':!0x0}),_0x5de9ab[_0x2a1404(0x1b2)](_0x2a1404(0x1b9))['to'](_0x166e79),_0x5de9ab[_0x2a1404(0x1b2)](_0x2a1404(0x19f))['to'](_0x166e79,_0x2a1404(0x1af),_0x4e1eda=>!!_0x4e1eda),this[_0x2a1404(0x1aa)](_0x5de9ab,_0x2a1404(0x19b),()=>{const _0x1a257d=_0x2a1404;_0x166e79[_0x1a257d(0x19b)]();}),_0x5de9ab;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0xd3f0(_0x48cc17,_0x5076f8){const _0x560219=_0x5602();return _0xd3f0=function(_0xd3f06c,_0x57fb3b){_0xd3f06c=_0xd3f06c-0x15b;let _0x913d1b=_0x560219[_0xd3f06c];return _0x913d1b;},_0xd3f0(_0x48cc17,_0x5076f8);}function _0x5602(){const _0x382122=['isEnabled','8jlDOxv','7748IYMSGA','value','view','8SFHBqt','168807aeGcVt','7200fWksYy','execute','isVisible','bind','AITabs','22190iaIWGb','6993224AuDJpr','8DFuHQf','120043XdcgUq','426IeaEoF','63885yLfGmw','310tNjqnL','get','plugins','editor','8918253OHkeIK'];_0x5602=function(){return _0x382122;};return _0x5602();}const _0x230657=_0xd3f0;(function(_0x595b1f,_0x52a360){const _0x3477f5=_0xd3f0,_0x1b4d40=_0x595b1f();while(!![]){try{const _0x537319=parseInt(_0x3477f5(0x164))/0x1*(parseInt(_0x3477f5(0x16f))/0x2)+-parseInt(_0x3477f5(0x170))/0x3*(parseInt(_0x3477f5(0x16b))/0x4)+-parseInt(_0x3477f5(0x15f))/0x5*(parseInt(_0x3477f5(0x163))/0x6)+-parseInt(_0x3477f5(0x160))/0x7+-parseInt(_0x3477f5(0x161))/0x8*(-parseInt(_0x3477f5(0x169))/0x9)+parseInt(_0x3477f5(0x165))/0xa*(parseInt(_0x3477f5(0x162))/0xb)+parseInt(_0x3477f5(0x171))/0xc*(parseInt(_0x3477f5(0x16c))/0xd);if(_0x537319===_0x52a360)break;else _0x1b4d40['push'](_0x1b4d40['shift']());}catch(_0x392556){_0x1b4d40['push'](_0x1b4d40['shift']());}}}(_0x5602,0x7de6c));import{Command as _0x1a38f9}from'ckeditor5/src/core.js';export class ToggleAICommand extends _0x1a38f9{constructor(_0x560468){const _0x5441a6=_0xd3f0;super(_0x560468);const _0x4f7005=_0x560468[_0x5441a6(0x167)][_0x5441a6(0x166)](_0x5441a6(0x15e))[_0x5441a6(0x16e)];this[_0x5441a6(0x15d)](_0x5441a6(0x16d))['to'](_0x4f7005,_0x5441a6(0x15c)),this[_0x5441a6(0x16a)]=!0x0;}[_0x230657(0x15b)](){const _0x1afa85=_0x230657,_0x225eec=this[_0x1afa85(0x168)][_0x1afa85(0x167)][_0x1afa85(0x166)](_0x1afa85(0x15e))[_0x1afa85(0x16e)];_0x225eec[_0x1afa85(0x15c)]=!_0x225eec[_0x1afa85(0x15c)];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4ad124=_0x2a61;(function(_0x7efe4a,_0x5c0f63){const _0x40918d=_0x2a61,_0x2e7c4f=_0x7efe4a();while(!![]){try{const _0x2a6805=parseInt(_0x40918d(0x1c4))/0x1*(-parseInt(_0x40918d(0x1bb))/0x2)+-parseInt(_0x40918d(0x1ac))/0x3+parseInt(_0x40918d(0x1b3))/0x4*(-parseInt(_0x40918d(0x1c5))/0x5)+parseInt(_0x40918d(0x19d))/0x6*(-parseInt(_0x40918d(0x197))/0x7)+-parseInt(_0x40918d(0x1a0))/0x8+parseInt(_0x40918d(0x1a9))/0x9+-parseInt(_0x40918d(0x1c8))/0xa*(-parseInt(_0x40918d(0x1be))/0xb);if(_0x2a6805===_0x5c0f63)break;else _0x2e7c4f['push'](_0x2e7c4f['shift']());}catch(_0x46dbb4){_0x2e7c4f['push'](_0x2e7c4f['shift']());}}}(_0x32cc,0x91da5));import{Command as _0x25b598}from'ckeditor5/src/core.js';function _0x2a61(_0x3c1c1a,_0x5f3e18){const _0x32cc79=_0x32cc();return _0x2a61=function(_0x2a61b5,_0x11f5b8){_0x2a61b5=_0x2a61b5-0x18f;let _0x2f8b2e=_0x32cc79[_0x2a61b5];return _0x2f8b2e;},_0x2a61(_0x3c1c1a,_0x5f3e18);}import{CKEditorError as _0xc750d4,first as _0x953297}from'ckeditor5/src/utils.js';import{AIQuickActionType as _0xa4d6f6}from'./aiquickactionsui.js';import{getTranslation as _0x534fee}from'../aicore/utils/common-translations.js';export class AIQuickActionsCommand extends _0x25b598{[_0x4ad124(0x1c6)](_0x59241f){const _0xfc595f=_0x4ad124;switch(this[_0xfc595f(0x1a5)](),_0x59241f[_0xfc595f(0x1b0)]){case _0xa4d6f6[_0xfc595f(0x193)]:if(!this[_0xfc595f(0x1a3)][_0xfc595f(0x1b2)][_0xfc595f(0x1a8)](_0xfc595f(0x1ba))){const _0x17a3c5=_0x534fee(this[_0xfc595f(0x1a3)][_0xfc595f(0x1af)],_0xfc595f(0x1ca),_0xfc595f(0x1ba));throw new _0xc750d4(_0xfc595f(0x1b9),this[_0xfc595f(0x1a3)],{'errorMessage':_0x17a3c5});}this[_0xfc595f(0x1c3)](_0x59241f);break;case _0xa4d6f6[_0xfc595f(0x1c9)]:if(!this[_0xfc595f(0x1a3)][_0xfc595f(0x1b2)][_0xfc595f(0x1a8)](_0xfc595f(0x1a4))){const _0x4acb9b=_0x534fee(this[_0xfc595f(0x1a3)][_0xfc595f(0x1af)],_0xfc595f(0x1ca),_0xfc595f(0x1a4));throw new _0xc750d4(_0xfc595f(0x1b9),this[_0xfc595f(0x1a3)],{'errorMessage':_0x4acb9b});}this[_0xfc595f(0x18f)](_0x59241f);break;case _0xa4d6f6[_0xfc595f(0x1c1)]:if(!this[_0xfc595f(0x1a3)][_0xfc595f(0x1b2)][_0xfc595f(0x1a8)](_0xfc595f(0x1b4))){const _0x481d1b=_0x534fee(this[_0xfc595f(0x1a3)][_0xfc595f(0x1af)],_0xfc595f(0x1ca),_0xfc595f(0x1b4));throw new _0xc750d4(_0xfc595f(0x1b9),this[_0xfc595f(0x1a3)],{'errorMessage':_0x481d1b});}this[_0xfc595f(0x1a6)](_0x59241f);}}async[_0x4ad124(0x1c3)](_0x25bf33){const _0x2ef16a=_0x4ad124,_0x41ed7d=this[_0x2ef16a(0x1a3)][_0x2ef16a(0x1b2)][_0x2ef16a(0x192)](_0x2ef16a(0x1ba)),_0x4e22ae=this[_0x2ef16a(0x1a3)][_0x2ef16a(0x1b2)][_0x2ef16a(0x192)](_0x2ef16a(0x199)),_0x419ad6=this[_0x2ef16a(0x1a3)][_0x2ef16a(0x1b2)][_0x2ef16a(0x192)](_0x2ef16a(0x1cb))[_0x2ef16a(0x1bd)];if(_0x419ad6[_0x2ef16a(0x1bf)]||(_0x419ad6[_0x2ef16a(0x1bf)]=!0x0),_0x2ef16a(0x1c7)!==_0x419ad6[_0x2ef16a(0x198)]&&_0x419ad6[_0x2ef16a(0x19f)](_0x2ef16a(0x1c7)),_0x2ef16a(0x1cc)===_0x25bf33['id'])_0x4e22ae[_0x2ef16a(0x1cd)](),await _0x41ed7d[_0x2ef16a(0x1a2)](),_0x41ed7d[_0x2ef16a(0x1bc)]();else await _0x41ed7d[_0x2ef16a(0x1ce)](),_0x4e22ae[_0x2ef16a(0x1cd)](),await _0x41ed7d[_0x2ef16a(0x1a2)](),_0x41ed7d[_0x2ef16a(0x1bc)](),await _0x41ed7d[_0x2ef16a(0x194)]({'message':_0x25bf33[_0x2ef16a(0x1a1)]||_0x25bf33[_0x2ef16a(0x195)],'attributes':{'quickActionData':{'id':_0x25bf33['id']},'displayedPrompt':_0x25bf33[_0x2ef16a(0x195)]}});}[_0x4ad124(0x1a5)](){const _0x5d42dd=_0x4ad124,_0x2c1040=this[_0x5d42dd(0x1a3)],_0x167ca0=_0x2c1040[_0x5d42dd(0x19a)][_0x5d42dd(0x19e)][_0x5d42dd(0x1a7)];if(!_0x167ca0[_0x5d42dd(0x1aa)])return;const _0x169dea=_0x953297(_0x167ca0[_0x5d42dd(0x191)]())||_0x2c1040[_0x5d42dd(0x19a)][_0x5d42dd(0x1b5)][_0x5d42dd(0x190)](_0x167ca0);_0x2c1040[_0x5d42dd(0x19a)][_0x5d42dd(0x196)](_0x43858f=>{const _0x35b63b=_0x5d42dd;_0x43858f[_0x35b63b(0x1c0)](_0x169dea,'in');});}[_0x4ad124(0x19b)](_0x2b6e27){const _0x2a6357=_0x4ad124;return _0x2b6e27[_0x2a6357(0x1b7)]?.[_0x2a6357(0x1b6)]&&_0x2a6357(0x1b8)!==_0x2b6e27[_0x2a6357(0x1b7)]?.['id']?_0x2b6e27[_0x2a6357(0x1b7)][_0x2a6357(0x1b6)]+':\x20'+_0x2b6e27[_0x2a6357(0x195)]:_0x2b6e27[_0x2a6357(0x195)];}async[_0x4ad124(0x18f)](_0x3ca6f0){const _0x3ad2a5=_0x4ad124,_0xcd3d49=this[_0x3ad2a5(0x1a3)][_0x3ad2a5(0x1b2)][_0x3ad2a5(0x192)](_0x3ad2a5(0x1a4)),_0x25591f=_0x3ca6f0[_0x3ad2a5(0x1a1)]?{'userMessage':_0x3ca6f0[_0x3ad2a5(0x1a1)],'model':_0x3ca6f0[_0x3ad2a5(0x19a)]}:{'actionName':_0x3ca6f0[_0x3ad2a5(0x1c2)]||_0x3ca6f0['id'],'args':_0x3ca6f0[_0x3ad2a5(0x19c)]},_0x20f5d6=this[_0x3ad2a5(0x19b)](_0x3ca6f0);await _0xcd3d49[_0x3ad2a5(0x1ad)](_0x25591f,_0x20f5d6,_0x3ca6f0[_0x3ad2a5(0x1ab)]);}async[_0x4ad124(0x1a6)](_0x2e1e62){const _0x224961=_0x4ad124;console[_0x224961(0x1ae)](_0x224961(0x1b1),_0x2e1e62);}}function _0x32cc(){const _0x321862=['prompt','addSelectionToChatContext','editor','AIActions','_expandSelectionIfCollapsed','_handleAIReviewAction','selection','has','1906884vILgEi','isCollapsed','icon','530259HIIPCV','executeAction','log','locale','type','handleAIReviewAction','plugins','12yppQZq','AIReviewMode','schema','label','parent','other','ai-quick-actions-plugin-not-found','AIChat','402926XMWkbi','focusPromptInput','view','451UEJmRs','isVisible','setSelection','REVIEW','actionName','_handleAIChatAction','1SrEkui','1167025JvmqJO','execute','chat','916690EPdJRi','ACTION','AI_QUICK_ACTIONS_PLUGIN_NOT_FOUND','AITabs','ask-ai','removeSelectionFromChatContext','startConversation','_handleAIActionsAction','getLimitElement','getSelectedBlocks','get','CHAT','sendMessage','displayedPrompt','change','138026tjhevg','activeTab','AIChatController','model','_handleAIActionsActionLabel','args','354khBGpw','document','activateTab','9048792oNStRA'];_0x32cc=function(){return _0x321862;};return _0x32cc();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4428c6=_0x22af;(function(_0x322061,_0x239586){const _0x198a41=_0x22af,_0x2b0988=_0x322061();while(!![]){try{const _0x2086f0=-parseInt(_0x198a41(0x235))/0x1+parseInt(_0x198a41(0x22f))/0x2*(parseInt(_0x198a41(0x1b4))/0x3)+-parseInt(_0x198a41(0x1c7))/0x4+-parseInt(_0x198a41(0x1ba))/0x5+parseInt(_0x198a41(0x1fc))/0x6*(-parseInt(_0x198a41(0x1b0))/0x7)+-parseInt(_0x198a41(0x223))/0x8+parseInt(_0x198a41(0x1e5))/0x9;if(_0x2086f0===_0x239586)break;else _0x2b0988['push'](_0x2b0988['shift']());}catch(_0x55a3b6){_0x2b0988['push'](_0x2b0988['shift']());}}}(_0x136f,0x9c879));import{IconAIAdjustLength as _0x4d5d22,IconAIChangeTone as _0x20bb24,IconAIChatCommands as _0x1df0de,IconAIContinueWriting as _0x286609,IconAIGrammarCheck as _0x13d782,IconAIImproveWriting as _0x284f05,IconAIOther as _0x526eb9,IconAIQuickActions as _0x339892,IconAITranslate as _0x441d8f}from'@ckeditor/ckeditor5-icons';function _0x22af(_0x6d34b2,_0x5af386){const _0x136fc1=_0x136f();return _0x22af=function(_0x22afe1,_0x4cfec5){_0x22afe1=_0x22afe1-0x19e;let _0x331d55=_0x136fc1[_0x22afe1];return _0x331d55;},_0x22af(_0x6d34b2,_0x5af386);}import{Plugin as _0x38b5c6}from'ckeditor5/src/core.js';import{CKEditorError as _0x32cd60,logError as _0x52bcf5}from'ckeditor5/src/utils.js';import{getTranslation as _0x19f43c}from'../aicore/utils/common-translations.js';import{aiQuickActionsDropdownCreator as _0x1cae4b}from'./ui/aiquickactionsdropdowncreator.js';import{aiQuickActionsButtonCreator as _0x49519d}from'./ui/aiquickactionsbuttoncreator.js';import{BodyCollection as _0x4f0fd3,BalloonToolbar as _0x470195,MenuBarMenuView as _0xe58947,MenuBarMenuListView as _0x4496e7,MenuBarMenuListItemView as _0x59942f,MenuBarMenuListItemButtonView as _0x3ff79f}from'ckeditor5/src/ui.js';import{AIModels as _0x424c9f}from'../aicore/model/aimodels.js';import{AIConnector as _0x3278df}from'../aicore/aiconnector.js';import'../../theme/common/aibutton.css';import'../../theme/aiquickactions/aiquickactions.css';const ee=_0x4428c6(0x215),ie=_0x4428c6(0x1a4),ne=_0x4428c6(0x1b8);export var AIQuickActionType;!function(_0x54359f){const _0x224c04=_0x4428c6;_0x54359f[_0x224c04(0x1ee)]=_0x224c04(0x1ee),_0x54359f[_0x224c04(0x230)]=_0x224c04(0x230),_0x54359f[_0x224c04(0x23c)]=_0x224c04(0x23c);}(AIQuickActionType||(AIQuickActionType={}));export var AIQuickActionTypeToPluginName;!function(_0x593a7d){const _0x502184=_0x4428c6;_0x593a7d[_0x502184(0x1ee)]=_0x502184(0x1ed),_0x593a7d[_0x502184(0x230)]=_0x502184(0x21f),_0x593a7d[_0x502184(0x23c)]=_0x502184(0x1a5);}(AIQuickActionTypeToPluginName||(AIQuickActionTypeToPluginName={}));function _0x136f(){const _0x3ca2b1=['ai.quickActions.isSearchEnabled','menuBar:aiQuickActions','AI_QUICK_ACTIONS_HEADING','<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>','ai.quickActions.extraCommands','translate','make-shorter','forEach','editing','displayedPrompt','menu','panelView','highlight-key-points','AIActions','items','make-tone-friendly','replace','6383728rqGZcR','translate-to-portuguese','model','init','buttonView','find','_quickActionsDefinition','uiLanguage','AI_QUICK_ACTIONS_MAKE_LONGER','adjust-length','translate-to-japanese','AI_QUICK_ACTIONS_OTHER','910534URSIpq','ACTION','AI_QUICK_ACTIONS_TRANSLATE_FRENCH','italian','translate-to-chinese','add','1226319QBgIFV','AI_QUICK_ACTIONS_TRANSLATE_KOREAN','_prepareQuickActionsDefinition','AI_QUICK_ACTIONS_TRANSLATE_ENGLISH','russian','children','translate-to-italian','REVIEW','AI_QUICK_ACTIONS_MORE_CASUAL','push','has','pluginName','DisplayNames','execute','AI_QUICK_ACTIONS_MAKE_SHORTER','<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>','AIReviewMode','AI_QUICK_ACTIONS_CONTINUE_WRITING','AI_QUICK_ACTIONS_CHAT_COMMANDS','AI_QUICK_ACTIONS_TRANSLATE_ITALIAN','AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS','view','some','AI_QUICK_ACTIONS_SUMMARIZE','focus','includes','delegate','4061631HwAbYa','_getDefaultAndCustomActions','editor','translate-to-english','3cjksgS','plugins','componentFactory','AI_QUICK_ACTIONS_ASK_AI','<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>','aiQuickAction','5008690zxHyJT','ai-quick-actions-unavailable-model','ai.quickActions.removeCommands','AI_QUICK_ACTIONS_TRANSLATE_JAPANESE','_initializeQuickActionsComponents','requires','chat-commands','AI_QUICK_ACTIONS_TRANSLATE_PORTUGUESE','AI_QUICK_ACTIONS_MORE_CONFIDENT','AI_QUICK_ACTIONS_MORE_DIRECT','make-tone-professional','other','AI_QUICK_ACTIONS_MORE_PROFESSIONAL','3238464HkeMBv','getDefaultQuickActions','message','explain','AI_QUICK_ACTIONS_FIX_GRAMMAR_SPELLING','type','english','improve-writing','isEnabled','_initializeQuickActionsDropdown','continue','commands','close','AI_QUICK_ACTIONS_MORE_FRIENDLY','ask-ai','isOfficialPlugin','_shouldIncludeAction','aiQuickActions','get','chinese','AI_QUICK_ACTIONS_EXPLAIN','getAll','ai.chat.context.document.enabled','make-tone-casual','_initializeQuickActionsMenuBar','summarize','locale','_executeQuickAction','AIQuickActionsUI','config','41415750QhHEWy','label','attachToDom','make-longer','set','portuguese','ai-quick-actions-models-unable-to-retrieve','menuitem','AIChat','CHAT','translate-to-korean','_initializeQuickActionsComponentsAndCommands','AI_QUICK_ACTIONS_TRANSLATE_SPANISH','translate-to-russian','filter','AI_QUICK_ACTIONS_TRANSLATE_GERMAN','English','korean','change-tone','icon','isPremiumPlugin','make-tone-direct','AI_QUICK_ACTIONS_TRANSLATE_CHINESE','6UdiZuQ','menuBarView','AIConnector','language','french','german','translate-to-german','AI_QUICK_ACTIONS_IMPROVE_WRITING','translate-to-french','length','AI_QUICK_ACTIONS_CHANGE_TONE','fix-grammar','AI_QUICK_ACTIONS_ADJUST_LENGTH','japanese','translate-to-spanish','spanish','values','make-tone-confident','AI_QUICK_ACTIONS_TRANSLATE_RUSSIAN','map','AI_QUICK_ACTIONS_TRANSLATE','actions'];_0x136f=function(){return _0x3ca2b1;};return _0x136f();}export class AIQuickActionsUI extends _0x38b5c6{static get[_0x4428c6(0x1bf)](){return[_0x470195,_0x3278df];}static get[_0x4428c6(0x1a0)](){const _0x5879d7=_0x4428c6;return _0x5879d7(0x1e3);}static get[_0x4428c6(0x1d6)](){return!0x0;}static get[_0x4428c6(0x1f9)](){return!0x0;}async[_0x4428c6(0x226)](){const _0x4c3ec3=_0x4428c6,_0x316d98=await this[_0x4c3ec3(0x1b1)]();this[_0x4c3ec3(0x237)](_0x316d98),this[_0x4c3ec3(0x1f0)]();}static[_0x4428c6(0x1c8)](_0x14bc65){return function(_0x4aa737){const _0x577750=_0x22af,_0x3e9ab5=new Intl[(_0x577750(0x1a1))](['en'],{'type':_0x577750(0x1ff)})['of'](_0x4aa737[_0x577750(0x22a)]),_0x39e943=_0x3e9ab5||_0x577750(0x1f5),_0x40db0e=[{'id':_0x577750(0x1d5),'displayedPrompt':_0x19f43c(_0x4aa737,_0x577750(0x1b7)),'type':AIQuickActionType[_0x577750(0x1ee)],'icon':_0x1df0de},{'id':_0x577750(0x1c0),'label':_0x19f43c(_0x4aa737,_0x577750(0x1a7)),'icon':_0x1df0de,'actions':[{'id':_0x577750(0x1ca),'displayedPrompt':_0x19f43c(_0x4aa737,_0x577750(0x1db)),'prompt':ee[_0x577750(0x222)]('%0',_0x39e943),'type':AIQuickActionType[_0x577750(0x1ee)]},{'id':_0x577750(0x1e0),'displayedPrompt':_0x19f43c(_0x4aa737,_0x577750(0x1ac)),'prompt':ie[_0x577750(0x222)]('%0',_0x39e943),'type':AIQuickActionType[_0x577750(0x1ee)]},{'id':_0x577750(0x21e),'displayedPrompt':_0x19f43c(_0x4aa737,_0x577750(0x1a9)),'prompt':ne[_0x577750(0x222)]('%0',_0x39e943),'type':AIQuickActionType[_0x577750(0x1ee)]}]},{'id':_0x577750(0x1ce),'displayedPrompt':_0x19f43c(_0x4aa737,_0x577750(0x203)),'type':AIQuickActionType[_0x577750(0x230)],'icon':_0x284f05},{'id':_0x577750(0x1d1),'displayedPrompt':_0x19f43c(_0x4aa737,_0x577750(0x1a6)),'type':AIQuickActionType[_0x577750(0x230)],'icon':_0x286609},{'id':_0x577750(0x207),'displayedPrompt':_0x19f43c(_0x4aa737,_0x577750(0x1cb)),'type':AIQuickActionType[_0x577750(0x230)],'icon':_0x13d782},{'id':_0x577750(0x22c),'label':_0x19f43c(_0x4aa737,_0x577750(0x208)),'icon':_0x4d5d22,'actions':[{'id':_0x577750(0x218),'displayedPrompt':_0x19f43c(_0x4aa737,_0x577750(0x1a3)),'type':AIQuickActionType[_0x577750(0x230)]},{'id':_0x577750(0x1e8),'displayedPrompt':_0x19f43c(_0x4aa737,_0x577750(0x22b)),'type':AIQuickActionType[_0x577750(0x230)]}]},{'id':_0x577750(0x1f7),'label':_0x19f43c(_0x4aa737,_0x577750(0x206)),'icon':_0x20bb24,'actions':[{'id':_0x577750(0x1de),'displayedPrompt':_0x19f43c(_0x4aa737,_0x577750(0x23d)),'type':AIQuickActionType[_0x577750(0x230)]},{'id':_0x577750(0x1fa),'displayedPrompt':_0x19f43c(_0x4aa737,_0x577750(0x1c3)),'type':AIQuickActionType[_0x577750(0x230)]},{'id':_0x577750(0x221),'displayedPrompt':_0x19f43c(_0x4aa737,_0x577750(0x1d4)),'type':AIQuickActionType[_0x577750(0x230)]},{'id':_0x577750(0x20d),'displayedPrompt':_0x19f43c(_0x4aa737,_0x577750(0x1c2)),'type':AIQuickActionType[_0x577750(0x230)]},{'id':_0x577750(0x1c4),'displayedPrompt':_0x19f43c(_0x4aa737,_0x577750(0x1c6)),'type':AIQuickActionType[_0x577750(0x230)]}]},{'id':_0x577750(0x217),'label':_0x19f43c(_0x4aa737,_0x577750(0x210)),'icon':_0x441d8f,'actions':[{'id':_0x577750(0x1b3),'displayedPrompt':_0x19f43c(_0x4aa737,_0x577750(0x238)),'type':AIQuickActionType[_0x577750(0x230)],'actionName':_0x577750(0x217),'args':{'language':_0x577750(0x1cd)}},{'id':_0x577750(0x233),'displayedPrompt':_0x19f43c(_0x4aa737,_0x577750(0x1fb)),'type':AIQuickActionType[_0x577750(0x230)],'actionName':_0x577750(0x217),'args':{'language':_0x577750(0x1da)}},{'id':_0x577750(0x20a),'displayedPrompt':_0x19f43c(_0x4aa737,_0x577750(0x1f1)),'type':AIQuickActionType[_0x577750(0x230)],'actionName':_0x577750(0x217),'args':{'language':_0x577750(0x20b)}},{'id':_0x577750(0x202),'displayedPrompt':_0x19f43c(_0x4aa737,_0x577750(0x1f4)),'type':AIQuickActionType[_0x577750(0x230)],'actionName':_0x577750(0x217),'args':{'language':_0x577750(0x201)}},{'id':_0x577750(0x204),'displayedPrompt':_0x19f43c(_0x4aa737,_0x577750(0x231)),'type':AIQuickActionType[_0x577750(0x230)],'actionName':_0x577750(0x217),'args':{'language':_0x577750(0x200)}},{'id':_0x577750(0x22d),'displayedPrompt':_0x19f43c(_0x4aa737,_0x577750(0x1bd)),'type':AIQuickActionType[_0x577750(0x230)],'actionName':_0x577750(0x217),'args':{'language':_0x577750(0x209)}},{'id':_0x577750(0x224),'displayedPrompt':_0x19f43c(_0x4aa737,_0x577750(0x1c1)),'type':AIQuickActionType[_0x577750(0x230)],'actionName':_0x577750(0x217),'args':{'language':_0x577750(0x1ea)}},{'id':_0x577750(0x1ef),'displayedPrompt':_0x19f43c(_0x4aa737,_0x577750(0x236)),'type':AIQuickActionType[_0x577750(0x230)],'actionName':_0x577750(0x217),'args':{'language':_0x577750(0x1f6)}},{'id':_0x577750(0x23b),'displayedPrompt':_0x19f43c(_0x4aa737,_0x577750(0x1a8)),'type':AIQuickActionType[_0x577750(0x230)],'actionName':_0x577750(0x217),'args':{'language':_0x577750(0x232)}},{'id':_0x577750(0x1f2),'displayedPrompt':_0x19f43c(_0x4aa737,_0x577750(0x20e)),'type':AIQuickActionType[_0x577750(0x230)],'actionName':_0x577750(0x217),'args':{'language':_0x577750(0x239)}}]},{'id':_0x577750(0x1c5),'label':_0x19f43c(_0x4aa737,_0x577750(0x22e)),'icon':_0x526eb9,'actions':[]}];return _0x40db0e;}(_0x14bc65);}async[_0x4428c6(0x1b1)](){const _0xc8f49f=_0x4428c6,_0x524d6=AIQuickActionsUI[_0xc8f49f(0x1c8)](this[_0xc8f49f(0x1b2)][_0xc8f49f(0x1e1)]),_0x1346e1=this[_0xc8f49f(0x1b2)][_0xc8f49f(0x1e4)][_0xc8f49f(0x1d9)](_0xc8f49f(0x216))||[];let _0x9f37c6=[];try{_0x9f37c6=await new _0x424c9f({'connector':this[_0xc8f49f(0x1b2)][_0xc8f49f(0x1b5)][_0xc8f49f(0x1d9)](_0xc8f49f(0x1fe)),'locale':this[_0xc8f49f(0x1b2)][_0xc8f49f(0x1e1)]})[_0xc8f49f(0x1dc)]();}catch(_0xb0e89e){const _0x5c4e4=new _0x32cd60(_0xc8f49f(0x1eb),this,{'error':_0xb0e89e});_0x52bcf5(_0x5c4e4[_0xc8f49f(0x1c9)]);}finally{const _0x4c1dc1=_0x1346e1[_0xc8f49f(0x20f)](_0x18b511=>({..._0x18b511,'icon':void 0x0}));_0x524d6[_0xc8f49f(0x228)](_0x1d105a=>_0xc8f49f(0x1c5)===_0x1d105a['id'])[_0xc8f49f(0x211)][_0xc8f49f(0x19e)](..._0x4c1dc1),_0x524d6[_0xc8f49f(0x219)](_0x537255=>{const _0x5904b0=_0xc8f49f;if(_0x5904b0(0x211)in _0x537255)_0x537255[_0x5904b0(0x211)][_0x5904b0(0x219)](_0x5c3dac=>{const _0x2aafe=_0x5904b0;if(_0x5c3dac[_0x2aafe(0x1cf)]=!!_0x9f37c6[_0x2aafe(0x228)](_0x1beaa7=>_0x1beaa7['id']===_0x5c3dac[_0x2aafe(0x225)])||void 0x0===_0x5c3dac[_0x2aafe(0x225)],!_0x5c3dac[_0x2aafe(0x1cf)]){const _0x465ef0=new _0x32cd60(_0x2aafe(0x1bb),this,{'actionId':_0x5c3dac['id'],'modelId':_0x5c3dac[_0x2aafe(0x225)]});_0x52bcf5(_0x465ef0[_0x2aafe(0x1c9)]);}});else{if(_0x537255[_0x5904b0(0x1cf)]=!!_0x9f37c6[_0x5904b0(0x228)](_0xd0f1fd=>_0xd0f1fd['id']===_0x537255[_0x5904b0(0x225)])||void 0x0===_0x537255[_0x5904b0(0x225)],!_0x537255[_0x5904b0(0x1cf)]){const _0x20f226=new _0x32cd60(_0x5904b0(0x1bb),this,{'actionId':_0x537255['id'],'modelId':_0x537255[_0x5904b0(0x225)]});_0x52bcf5(_0x20f226[_0x5904b0(0x1c9)]);}}});}return _0x524d6;}[_0x4428c6(0x1f0)](){const _0x35e53f=_0x4428c6,_0x3a6558=new _0x4f0fd3(this[_0x35e53f(0x1b2)][_0x35e53f(0x1e1)]);_0x3a6558[_0x35e53f(0x1e7)](),this[_0x35e53f(0x1d0)](_0x3a6558),this[_0x35e53f(0x1df)](),this[_0x35e53f(0x1be)](_0x3a6558);}[_0x4428c6(0x1d0)](_0x1ede6d){const _0x1c3f4f=_0x4428c6,_0x763c8=this[_0x1c3f4f(0x1b2)][_0x1c3f4f(0x1e4)][_0x1c3f4f(0x1d9)](_0x1c3f4f(0x212))??!0x0;this[_0x1c3f4f(0x1b2)]['ui'][_0x1c3f4f(0x1b6)][_0x1c3f4f(0x234)](_0x1c3f4f(0x1d8),_0x1cae4b({'editor':this[_0x1c3f4f(0x1b2)],'content':this[_0x1c3f4f(0x229)],'buttonDefinition':{'icon':_0x339892,'label':_0x19f43c(this[_0x1c3f4f(0x1b2)][_0x1c3f4f(0x1e1)],_0x1c3f4f(0x214))},'bodyCollection':_0x1ede6d,'hasSearch':_0x763c8}));}[_0x4428c6(0x237)](_0x1c5246){const _0x26b8a3=_0x4428c6;this[_0x26b8a3(0x229)]=_0x1c5246[_0x26b8a3(0x20f)](_0x45a25e=>{const _0x3e1310=_0x26b8a3;if(_0x3e1310(0x211)in _0x45a25e){const _0x4818e0=_0x45a25e;return{..._0x4818e0,'actions':_0x4818e0[_0x3e1310(0x211)][_0x3e1310(0x20f)](_0x129eca=>{const {actions:_0x4b2d98,..._0x1a4b1b}=_0x4818e0;return{..._0x129eca,'parent':_0x1a4b1b};})[_0x3e1310(0x1f3)](_0x2b2b43=>this[_0x3e1310(0x1d7)](_0x2b2b43))};}return _0x45a25e;})[_0x26b8a3(0x1f3)](_0x1e5c8b=>_0x26b8a3(0x211)in _0x1e5c8b?_0x1e5c8b[_0x26b8a3(0x211)][_0x26b8a3(0x205)]>0x0:this[_0x26b8a3(0x1d7)](_0x1e5c8b));}[_0x4428c6(0x1d7)](_0x318fa8){const _0xd61286=_0x4428c6,_0x3754a7=this[_0xd61286(0x1b2)][_0xd61286(0x1e4)][_0xd61286(0x1d9)](_0xd61286(0x1bc))||[];return this[_0xd61286(0x1b2)][_0xd61286(0x1b5)][_0xd61286(0x19f)](AIQuickActionTypeToPluginName[_0x318fa8[_0xd61286(0x1cc)]])&&!_0x3754a7[_0xd61286(0x1ae)](_0x318fa8['id'])&&!(_0x318fa8[_0xd61286(0x1cc)]===AIQuickActionType[_0xd61286(0x1ee)]&&!0x1===this[_0xd61286(0x1b2)][_0xd61286(0x1e4)][_0xd61286(0x1d9)](_0xd61286(0x1dd)));}[_0x4428c6(0x1be)](_0x1be53f){const _0xde7153=_0x4428c6;this[_0xde7153(0x229)][_0xde7153(0x219)](_0x5520af=>{const _0x3a384f=_0xde7153;if(_0x3a384f(0x211)in _0x5520af){const _0x28aa5d=_0x1cae4b({'editor':this[_0x3a384f(0x1b2)],'content':_0x5520af[_0x3a384f(0x211)],'buttonDefinition':_0x5520af,'bodyCollection':_0x1be53f});this[_0x3a384f(0x1b2)]['ui'][_0x3a384f(0x1b6)][_0x3a384f(0x234)](_0x5520af['id'],_0x28aa5d),_0x5520af[_0x3a384f(0x211)][_0x3a384f(0x219)](_0x1b2318=>{const _0x5edc77=_0x3a384f,_0x29cb2c=_0x49519d({'editor':this[_0x5edc77(0x1b2)],'action':_0x1b2318});this[_0x5edc77(0x1b2)]['ui'][_0x5edc77(0x1b6)][_0x5edc77(0x234)](_0x1b2318['id'],_0x29cb2c);});}else{const _0x417bb3=_0x49519d({'editor':this[_0x3a384f(0x1b2)],'action':_0x5520af,'withText':!0x1,'withIcon':!0x0,'isInDropdown':!0x1});this[_0x3a384f(0x1b2)]['ui'][_0x3a384f(0x1b6)][_0x3a384f(0x234)](_0x5520af['id'],_0x417bb3);}});}[_0x4428c6(0x1df)](){const _0x14c4d6=_0x4428c6;this[_0x14c4d6(0x1b2)]['ui'][_0x14c4d6(0x1b6)][_0x14c4d6(0x234)](_0x14c4d6(0x213),_0x394547=>{const _0x55e91b=_0x14c4d6,_0x355a9c=new _0xe58947(_0x394547),_0x2e56f1=_0x19f43c(_0x394547,_0x55e91b(0x214));_0x355a9c[_0x55e91b(0x227)][_0x55e91b(0x1e9)]({'label':_0x2e56f1,'icon':_0x339892});const _0x5949bd=new _0x4496e7(_0x394547);_0x5949bd[_0x55e91b(0x1e9)]({'ariaLabel':_0x2e56f1,'role':_0x55e91b(0x21c)}),this[_0x55e91b(0x229)][_0x55e91b(0x219)](_0x19a6ee=>{const _0x32cbeb=_0x55e91b;if(_0x32cbeb(0x211)in _0x19a6ee){const _0x4e8b44=_0x19a6ee,_0x3a7586=new _0x59942f(_0x394547,_0x355a9c),_0x32edaa=new _0xe58947(_0x394547),_0x31397e=new _0x4496e7(_0x394547);_0x32edaa[_0x32cbeb(0x227)][_0x32cbeb(0x1e9)]({'label':_0x4e8b44[_0x32cbeb(0x1e6)],'icon':_0x4e8b44[_0x32cbeb(0x1f8)]}),_0x4e8b44[_0x32cbeb(0x211)][_0x32cbeb(0x219)](_0x18f266=>{const _0x161ddf=_0x32cbeb,_0x4e9db6=new _0x59942f(_0x394547,_0x32edaa),_0x4e6153=new _0x3ff79f(_0x394547);_0x4e6153[_0x161ddf(0x1e9)]({'label':_0x18f266[_0x161ddf(0x21b)],'icon':_0x18f266[_0x161ddf(0x1f8)],'role':_0x161ddf(0x1ec),'isEnabled':_0x18f266[_0x161ddf(0x1cf)]}),_0x4e6153['on'](_0x161ddf(0x1a2),()=>{const _0x141476=_0x161ddf;this[_0x141476(0x1e2)](_0x18f266);}),_0x4e6153[_0x161ddf(0x1af)](_0x161ddf(0x1a2))['to'](_0x32edaa),_0x4e9db6[_0x161ddf(0x23a)][_0x161ddf(0x234)](_0x4e6153),_0x31397e[_0x161ddf(0x220)][_0x161ddf(0x234)](_0x4e9db6);}),_0x32edaa[_0x32cbeb(0x21d)][_0x32cbeb(0x23a)][_0x32cbeb(0x234)](_0x31397e),_0x3a7586[_0x32cbeb(0x23a)][_0x32cbeb(0x234)](_0x32edaa),_0x5949bd[_0x32cbeb(0x220)][_0x32cbeb(0x234)](_0x3a7586);}else{const _0x12212=_0x19a6ee,_0x4634dd=new _0x59942f(_0x394547,_0x355a9c),_0x5bc464=new _0x3ff79f(_0x394547);_0x5bc464[_0x32cbeb(0x1e9)]({'label':_0x12212[_0x32cbeb(0x21b)],'icon':_0x12212[_0x32cbeb(0x1f8)],'role':_0x32cbeb(0x1ec),'isEnabled':_0x12212[_0x32cbeb(0x1cf)]}),_0x5bc464['on'](_0x32cbeb(0x1a2),()=>{const _0x592075=_0x32cbeb;this[_0x592075(0x1e2)](_0x12212);}),_0x5bc464[_0x32cbeb(0x1af)](_0x32cbeb(0x1a2))['to'](_0x355a9c),_0x4634dd[_0x32cbeb(0x23a)][_0x32cbeb(0x234)](_0x5bc464),_0x5949bd[_0x32cbeb(0x220)][_0x32cbeb(0x234)](_0x4634dd);}});const _0x3b9a07=Object[_0x55e91b(0x20c)](AIQuickActionTypeToPluginName)[_0x55e91b(0x1ab)](_0x53d051=>this[_0x55e91b(0x1b2)][_0x55e91b(0x1b5)][_0x55e91b(0x19f)](_0x53d051));return _0x355a9c[_0x55e91b(0x1e9)]({'isEnabled':_0x3b9a07}),_0x355a9c[_0x55e91b(0x21d)][_0x55e91b(0x23a)][_0x55e91b(0x234)](_0x5949bd),_0x355a9c;});}[_0x4428c6(0x1e2)](_0x3cfbe6){const _0xe75042=_0x4428c6,_0x500f08=this[_0xe75042(0x1b2)];_0x500f08[_0xe75042(0x21a)][_0xe75042(0x1aa)][_0xe75042(0x1ad)](),_0x500f08[_0xe75042(0x1d2)][_0xe75042(0x1a2)](_0xe75042(0x1b9),_0x3cfbe6);const _0x3809b3=_0x500f08['ui'][_0xe75042(0x1aa)][_0xe75042(0x1fd)];_0x3809b3&&_0x3809b3[_0xe75042(0x1d3)]&&_0x3809b3[_0xe75042(0x1d3)]();}}
|
|
23
|
+
const _0x332c23=_0x2ccc;(function(_0x3556a9,_0x19a833){const _0x4ffe2b=_0x2ccc,_0x212c60=_0x3556a9();while(!![]){try{const _0x3ad484=parseInt(_0x4ffe2b(0x1e1))/0x1*(-parseInt(_0x4ffe2b(0x1db))/0x2)+parseInt(_0x4ffe2b(0x1fa))/0x3*(parseInt(_0x4ffe2b(0x1f4))/0x4)+parseInt(_0x4ffe2b(0x1cf))/0x5+parseInt(_0x4ffe2b(0x1e9))/0x6*(parseInt(_0x4ffe2b(0x1d5))/0x7)+parseInt(_0x4ffe2b(0x1e8))/0x8*(parseInt(_0x4ffe2b(0x231))/0x9)+parseInt(_0x4ffe2b(0x221))/0xa+-parseInt(_0x4ffe2b(0x243))/0xb;if(_0x3ad484===_0x19a833)break;else _0x212c60['push'](_0x212c60['shift']());}catch(_0x21c0c6){_0x212c60['push'](_0x212c60['shift']());}}}(_0x4928,0xdbb9e));import{IconAIAdjustLength as _0x557265,IconAIChangeTone as _0x5c8e41,IconAIChatCommands as _0x27788d,IconAIContinueWriting as _0x46a027,IconAIGrammarCheck as _0x27d4db,IconAIImproveWriting as _0x2b6e2d,IconAIOther as _0x492433,IconAIQuickActions as _0x43d553,IconAITranslate as _0x23e066}from'@ckeditor/ckeditor5-icons';import{Plugin as _0x1bea86}from'ckeditor5/src/core.js';import{CKEditorError as _0x5bec33,logError as _0x42458c}from'ckeditor5/src/utils.js';import{getTranslation as _0x23ce49}from'../aicore/utils/common-translations.js';function _0x2ccc(_0x3d1459,_0x560861){const _0x4928b2=_0x4928();return _0x2ccc=function(_0x2cccbc,_0x10f37e){_0x2cccbc=_0x2cccbc-0x1ca;let _0x52db27=_0x4928b2[_0x2cccbc];return _0x52db27;},_0x2ccc(_0x3d1459,_0x560861);}import{aiQuickActionsDropdownCreator as _0x55546c}from'./ui/aiquickactionsdropdowncreator.js';function _0x4928(){const _0x157b05=['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>','_prepareQuickActionsDefinition','getAll','focus','_initializeQuickActionsMenuBar','config','AI_QUICK_ACTIONS_TRANSLATE','translate-to-chinese','german','AI_QUICK_ACTIONS_TRANSLATE_JAPANESE','ai.quickActions.removeCommands','_quickActionsDefinition','ai-quick-actions-unavailable-model','displayedPrompt','panelView','AI_QUICK_ACTIONS_TRANSLATE_ITALIAN','AI_QUICK_ACTIONS_HEADING','AI_QUICK_ACTIONS_MORE_PROFESSIONAL','_initializeQuickActionsComponents','_initializeQuickActionsComponentsAndCommands','french','AI_QUICK_ACTIONS_TRANSLATE_KOREAN','make-shorter','AI_QUICK_ACTIONS_TRANSLATE_RUSSIAN','make-longer','pluginName','_initializeQuickActionsDropdown','ai.quickActions.extraCommands','AI_QUICK_ACTIONS_MORE_DIRECT','english','commands','buttonView','translate-to-portuguese','AI_QUICK_ACTIONS_CHANGE_TONE','AI_QUICK_ACTIONS_TRANSLATE_PORTUGUESE','get','7958480JGFxMc','AI_QUICK_ACTIONS_MORE_FRIENDLY','AI_QUICK_ACTIONS_MORE_CONFIDENT','AI_QUICK_ACTIONS_ASK_AI','find','_executeQuickAction','model','message','<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>','_getDefaultAndCustomActions','translate-to-japanese','portuguese','set','translate-to-french','AI_QUICK_ACTIONS_MAKE_LONGER','init','126TwDMUc','ai-quick-actions-models-unable-to-retrieve','AIReviewMode','AI_QUICK_ACTIONS_EXPLAIN','add','fix-grammar','uiLanguage','translate-to-italian','chinese','filter','getDefaultQuickActions','translate','has','make-tone-professional','korean','translate-to-spanish','japanese','type','56754137VhZSie','plugins','map','language','AI_QUICK_ACTIONS_TRANSLATE_FRENCH','AI_QUICK_ACTIONS_FIX_GRAMMAR_SPELLING','AI_QUICK_ACTIONS_IMPROVE_WRITING','componentFactory','AIActions','AI_QUICK_ACTIONS_ADJUST_LENGTH','AI_QUICK_ACTIONS_TRANSLATE_ENGLISH','adjust-length','AI_QUICK_ACTIONS_CONTINUE_WRITING','values','menuBarView','ACTION','improve-writing','aiQuickActions','chat-commands','attachToDom','italian','isEnabled','requires','make-tone-casual','spanish','DisplayNames','label','includes','AI_QUICK_ACTIONS_MORE_CASUAL','translate-to-korean','REVIEW','translate-to-german','English','change-tone','_shouldIncludeAction','translate-to-russian','children','<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>','menuitem','AI_QUICK_ACTIONS_MAKE_SHORTER','aiQuickAction','length','locale','close','AI_QUICK_ACTIONS_TRANSLATE_CHINESE','CHAT','7499140iNJrBd','make-tone-friendly','AI_QUICK_ACTIONS_SUMMARIZE','translate-to-english','delegate','continue','10060351HMMvsf','russian','summarize','AI_QUICK_ACTIONS_CHAT_COMMANDS','editor','AIQuickActionsUI','771004EOwdvS','isOfficialPlugin','other','ai.chat.context.document.enabled','menuBar:aiQuickActions','highlight-key-points','2IhEPqh','AI_QUICK_ACTIONS_OTHER','forEach','editing','some','view','AI_QUICK_ACTIONS_TRANSLATE_GERMAN','819344FPaKhP','6NgJYMk','push','make-tone-confident','menu','explain','AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS','AIConnector','ai.quickActions.isSearchEnabled','AIChat','ask-ai','execute','4sGAGhm','icon','replace','isPremiumPlugin','make-tone-direct','items','4991244irbfjH','actions'];_0x4928=function(){return _0x157b05;};return _0x4928();}import{aiQuickActionsButtonCreator as _0x2c1156}from'./ui/aiquickactionsbuttoncreator.js';import{BodyCollection as _0x3be191,BalloonToolbar as _0x387e4f,MenuBarMenuView as _0x4936f8,MenuBarMenuListView as _0x3f2803,MenuBarMenuListItemView as _0x3d2684,MenuBarMenuListItemButtonView as _0x5a135c}from'ckeditor5/src/ui.js';import{AIModels as _0x2163c0}from'../aicore/model/aimodels.js';import{AIConnector as _0x3ec9b0}from'../aicore/aiconnector.js';import'../../theme/common/aibutton.css';import'../../theme/aiquickactions/aiquickactions.css';const ee=_0x332c23(0x268),ie=_0x332c23(0x1fd),ne=_0x332c23(0x229);export var AIQuickActionType;!function(_0x785045){const _0x53ed15=_0x332c23;_0x785045[_0x53ed15(0x1ce)]=_0x53ed15(0x1ce),_0x785045[_0x53ed15(0x252)]=_0x53ed15(0x252),_0x785045[_0x53ed15(0x261)]=_0x53ed15(0x261);}(AIQuickActionType||(AIQuickActionType={}));export var AIQuickActionTypeToPluginName;!function(_0x2d27bc){const _0x23c549=_0x332c23;_0x2d27bc[_0x23c549(0x1ce)]=_0x23c549(0x1f1),_0x2d27bc[_0x23c549(0x252)]=_0x23c549(0x24b),_0x2d27bc[_0x23c549(0x261)]=_0x23c549(0x233);}(AIQuickActionTypeToPluginName||(AIQuickActionTypeToPluginName={}));export class AIQuickActionsUI extends _0x1bea86{static get[_0x332c23(0x259)](){return[_0x387e4f,_0x3ec9b0];}static get[_0x332c23(0x216)](){const _0x51c094=_0x332c23;return _0x51c094(0x1da);}static get[_0x332c23(0x1dc)](){return!0x0;}static get[_0x332c23(0x1f7)](){return!0x0;}async[_0x332c23(0x230)](){const _0x44bbb1=_0x332c23,_0x2c188e=await this[_0x44bbb1(0x22a)]();this[_0x44bbb1(0x1fe)](_0x2c188e),this[_0x44bbb1(0x210)]();}static[_0x332c23(0x23b)](_0x2a683e){return function(_0x5b0829){const _0x43c982=_0x2ccc,_0x1a167d=new Intl[(_0x43c982(0x25c))](['en'],{'type':_0x43c982(0x246)})['of'](_0x5b0829[_0x43c982(0x237)]),_0x4f8c8f=_0x1a167d||_0x43c982(0x263),_0x5509ea=[{'id':_0x43c982(0x1f2),'displayedPrompt':_0x23ce49(_0x5b0829,_0x43c982(0x224)),'type':AIQuickActionType[_0x43c982(0x1ce)],'icon':_0x27788d},{'id':_0x43c982(0x255),'label':_0x23ce49(_0x5b0829,_0x43c982(0x1d8)),'icon':_0x27788d,'actions':[{'id':_0x43c982(0x1ed),'displayedPrompt':_0x23ce49(_0x5b0829,_0x43c982(0x234)),'prompt':ee[_0x43c982(0x1f6)]('%0',_0x4f8c8f),'type':AIQuickActionType[_0x43c982(0x1ce)]},{'id':_0x43c982(0x1d7),'displayedPrompt':_0x23ce49(_0x5b0829,_0x43c982(0x1d1)),'prompt':ie[_0x43c982(0x1f6)]('%0',_0x4f8c8f),'type':AIQuickActionType[_0x43c982(0x1ce)]},{'id':_0x43c982(0x1e0),'displayedPrompt':_0x23ce49(_0x5b0829,_0x43c982(0x1ee)),'prompt':ne[_0x43c982(0x1f6)]('%0',_0x4f8c8f),'type':AIQuickActionType[_0x43c982(0x1ce)]}]},{'id':_0x43c982(0x253),'displayedPrompt':_0x23ce49(_0x5b0829,_0x43c982(0x249)),'type':AIQuickActionType[_0x43c982(0x252)],'icon':_0x2b6e2d},{'id':_0x43c982(0x1d4),'displayedPrompt':_0x23ce49(_0x5b0829,_0x43c982(0x24f)),'type':AIQuickActionType[_0x43c982(0x252)],'icon':_0x46a027},{'id':_0x43c982(0x236),'displayedPrompt':_0x23ce49(_0x5b0829,_0x43c982(0x248)),'type':AIQuickActionType[_0x43c982(0x252)],'icon':_0x27d4db},{'id':_0x43c982(0x24e),'label':_0x23ce49(_0x5b0829,_0x43c982(0x24c)),'icon':_0x557265,'actions':[{'id':_0x43c982(0x213),'displayedPrompt':_0x23ce49(_0x5b0829,_0x43c982(0x26a)),'type':AIQuickActionType[_0x43c982(0x252)]},{'id':_0x43c982(0x215),'displayedPrompt':_0x23ce49(_0x5b0829,_0x43c982(0x22f)),'type':AIQuickActionType[_0x43c982(0x252)]}]},{'id':_0x43c982(0x264),'label':_0x23ce49(_0x5b0829,_0x43c982(0x21e)),'icon':_0x5c8e41,'actions':[{'id':_0x43c982(0x25a),'displayedPrompt':_0x23ce49(_0x5b0829,_0x43c982(0x25f)),'type':AIQuickActionType[_0x43c982(0x252)]},{'id':_0x43c982(0x1f8),'displayedPrompt':_0x23ce49(_0x5b0829,_0x43c982(0x219)),'type':AIQuickActionType[_0x43c982(0x252)]},{'id':_0x43c982(0x1d0),'displayedPrompt':_0x23ce49(_0x5b0829,_0x43c982(0x222)),'type':AIQuickActionType[_0x43c982(0x252)]},{'id':_0x43c982(0x1eb),'displayedPrompt':_0x23ce49(_0x5b0829,_0x43c982(0x223)),'type':AIQuickActionType[_0x43c982(0x252)]},{'id':_0x43c982(0x23e),'displayedPrompt':_0x23ce49(_0x5b0829,_0x43c982(0x20e)),'type':AIQuickActionType[_0x43c982(0x252)]}]},{'id':_0x43c982(0x23c),'label':_0x23ce49(_0x5b0829,_0x43c982(0x203)),'icon':_0x23e066,'actions':[{'id':_0x43c982(0x1d2),'displayedPrompt':_0x23ce49(_0x5b0829,_0x43c982(0x24d)),'type':AIQuickActionType[_0x43c982(0x252)],'actionName':_0x43c982(0x23c),'args':{'language':_0x43c982(0x21a)}},{'id':_0x43c982(0x204),'displayedPrompt':_0x23ce49(_0x5b0829,_0x43c982(0x1cd)),'type':AIQuickActionType[_0x43c982(0x252)],'actionName':_0x43c982(0x23c),'args':{'language':_0x43c982(0x239)}},{'id':_0x43c982(0x240),'displayedPrompt':_0x23ce49(_0x5b0829,_0x43c982(0x1fc)),'type':AIQuickActionType[_0x43c982(0x252)],'actionName':_0x43c982(0x23c),'args':{'language':_0x43c982(0x25b)}},{'id':_0x43c982(0x262),'displayedPrompt':_0x23ce49(_0x5b0829,_0x43c982(0x1e7)),'type':AIQuickActionType[_0x43c982(0x252)],'actionName':_0x43c982(0x23c),'args':{'language':_0x43c982(0x205)}},{'id':_0x43c982(0x22e),'displayedPrompt':_0x23ce49(_0x5b0829,_0x43c982(0x247)),'type':AIQuickActionType[_0x43c982(0x252)],'actionName':_0x43c982(0x23c),'args':{'language':_0x43c982(0x211)}},{'id':_0x43c982(0x22b),'displayedPrompt':_0x23ce49(_0x5b0829,_0x43c982(0x206)),'type':AIQuickActionType[_0x43c982(0x252)],'actionName':_0x43c982(0x23c),'args':{'language':_0x43c982(0x241)}},{'id':_0x43c982(0x21d),'displayedPrompt':_0x23ce49(_0x5b0829,_0x43c982(0x21f)),'type':AIQuickActionType[_0x43c982(0x252)],'actionName':_0x43c982(0x23c),'args':{'language':_0x43c982(0x22c)}},{'id':_0x43c982(0x260),'displayedPrompt':_0x23ce49(_0x5b0829,_0x43c982(0x212)),'type':AIQuickActionType[_0x43c982(0x252)],'actionName':_0x43c982(0x23c),'args':{'language':_0x43c982(0x23f)}},{'id':_0x43c982(0x238),'displayedPrompt':_0x23ce49(_0x5b0829,_0x43c982(0x20c)),'type':AIQuickActionType[_0x43c982(0x252)],'actionName':_0x43c982(0x23c),'args':{'language':_0x43c982(0x257)}},{'id':_0x43c982(0x266),'displayedPrompt':_0x23ce49(_0x5b0829,_0x43c982(0x214)),'type':AIQuickActionType[_0x43c982(0x252)],'actionName':_0x43c982(0x23c),'args':{'language':_0x43c982(0x1d6)}}]},{'id':_0x43c982(0x1dd),'label':_0x23ce49(_0x5b0829,_0x43c982(0x1e2)),'icon':_0x492433,'actions':[]}];return _0x5509ea;}(_0x2a683e);}async[_0x332c23(0x22a)](){const _0x476527=_0x332c23,_0x5a6684=AIQuickActionsUI[_0x476527(0x23b)](this[_0x476527(0x1d9)][_0x476527(0x1cb)]),_0x5a88c5=this[_0x476527(0x1d9)][_0x476527(0x202)][_0x476527(0x220)](_0x476527(0x218))||[];let _0x3e8058=[];try{_0x3e8058=await new _0x2163c0({'connector':this[_0x476527(0x1d9)][_0x476527(0x244)][_0x476527(0x220)](_0x476527(0x1ef)),'locale':this[_0x476527(0x1d9)][_0x476527(0x1cb)]})[_0x476527(0x1ff)]();}catch(_0x4e116b){const _0x4d4980=new _0x5bec33(_0x476527(0x232),this,{'error':_0x4e116b});_0x42458c(_0x4d4980[_0x476527(0x228)]);}finally{const _0x2dc92f=_0x5a88c5[_0x476527(0x245)](_0x418d3c=>({..._0x418d3c,'icon':void 0x0}));_0x5a6684[_0x476527(0x225)](_0x1fc899=>_0x476527(0x1dd)===_0x1fc899['id'])[_0x476527(0x1fb)][_0x476527(0x1ea)](..._0x2dc92f),_0x5a6684[_0x476527(0x1e3)](_0x213eec=>{const _0x480900=_0x476527;if(_0x480900(0x1fb)in _0x213eec)_0x213eec[_0x480900(0x1fb)][_0x480900(0x1e3)](_0x1eebcf=>{const _0x44cb25=_0x480900;if(_0x1eebcf[_0x44cb25(0x258)]=!!_0x3e8058[_0x44cb25(0x225)](_0x17fba8=>_0x17fba8['id']===_0x1eebcf[_0x44cb25(0x227)])||void 0x0===_0x1eebcf[_0x44cb25(0x227)],!_0x1eebcf[_0x44cb25(0x258)]){const _0x683c20=new _0x5bec33(_0x44cb25(0x209),this,{'actionId':_0x1eebcf['id'],'modelId':_0x1eebcf[_0x44cb25(0x227)]});_0x42458c(_0x683c20[_0x44cb25(0x228)]);}});else{if(_0x213eec[_0x480900(0x258)]=!!_0x3e8058[_0x480900(0x225)](_0x39ec82=>_0x39ec82['id']===_0x213eec[_0x480900(0x227)])||void 0x0===_0x213eec[_0x480900(0x227)],!_0x213eec[_0x480900(0x258)]){const _0x28e00b=new _0x5bec33(_0x480900(0x209),this,{'actionId':_0x213eec['id'],'modelId':_0x213eec[_0x480900(0x227)]});_0x42458c(_0x28e00b[_0x480900(0x228)]);}}});}return _0x5a6684;}[_0x332c23(0x210)](){const _0xe718e0=_0x332c23,_0x169256=new _0x3be191(this[_0xe718e0(0x1d9)][_0xe718e0(0x1cb)]);_0x169256[_0xe718e0(0x256)](),this[_0xe718e0(0x217)](_0x169256),this[_0xe718e0(0x201)](),this[_0xe718e0(0x20f)](_0x169256);}[_0x332c23(0x217)](_0x9b2408){const _0x690eb9=_0x332c23,_0x2ae991=this[_0x690eb9(0x1d9)][_0x690eb9(0x202)][_0x690eb9(0x220)](_0x690eb9(0x1f0))??!0x0;this[_0x690eb9(0x1d9)]['ui'][_0x690eb9(0x24a)][_0x690eb9(0x235)](_0x690eb9(0x254),_0x55546c({'editor':this[_0x690eb9(0x1d9)],'content':this[_0x690eb9(0x208)],'buttonDefinition':{'icon':_0x43d553,'label':_0x23ce49(this[_0x690eb9(0x1d9)][_0x690eb9(0x1cb)],_0x690eb9(0x20d))},'bodyCollection':_0x9b2408,'hasSearch':_0x2ae991}));}[_0x332c23(0x1fe)](_0xb7ad6f){const _0x58334e=_0x332c23;this[_0x58334e(0x208)]=_0xb7ad6f[_0x58334e(0x245)](_0x4360e0=>{const _0x3b559c=_0x58334e;if(_0x3b559c(0x1fb)in _0x4360e0){const _0x4975de=_0x4360e0;return{..._0x4975de,'actions':_0x4975de[_0x3b559c(0x1fb)][_0x3b559c(0x245)](_0xd509fe=>{const {actions:_0x2c2b9a,..._0x2c47d7}=_0x4975de;return{..._0xd509fe,'parent':_0x2c47d7};})[_0x3b559c(0x23a)](_0x49bcbd=>this[_0x3b559c(0x265)](_0x49bcbd))};}return _0x4360e0;})[_0x58334e(0x23a)](_0x37b7a3=>_0x58334e(0x1fb)in _0x37b7a3?_0x37b7a3[_0x58334e(0x1fb)][_0x58334e(0x1ca)]>0x0:this[_0x58334e(0x265)](_0x37b7a3));}[_0x332c23(0x265)](_0x29f5f0){const _0x5c1f5e=_0x332c23,_0x51eced=this[_0x5c1f5e(0x1d9)][_0x5c1f5e(0x202)][_0x5c1f5e(0x220)](_0x5c1f5e(0x207))||[];return this[_0x5c1f5e(0x1d9)][_0x5c1f5e(0x244)][_0x5c1f5e(0x23d)](AIQuickActionTypeToPluginName[_0x29f5f0[_0x5c1f5e(0x242)]])&&!_0x51eced[_0x5c1f5e(0x25e)](_0x29f5f0['id'])&&!(_0x29f5f0[_0x5c1f5e(0x242)]===AIQuickActionType[_0x5c1f5e(0x1ce)]&&!0x1===this[_0x5c1f5e(0x1d9)][_0x5c1f5e(0x202)][_0x5c1f5e(0x220)](_0x5c1f5e(0x1de)));}[_0x332c23(0x20f)](_0x156666){const _0x235808=_0x332c23;this[_0x235808(0x208)][_0x235808(0x1e3)](_0x19f9c0=>{const _0x3a121f=_0x235808;if(_0x3a121f(0x1fb)in _0x19f9c0){const _0x2d8426=_0x55546c({'editor':this[_0x3a121f(0x1d9)],'content':_0x19f9c0[_0x3a121f(0x1fb)],'buttonDefinition':_0x19f9c0,'bodyCollection':_0x156666});this[_0x3a121f(0x1d9)]['ui'][_0x3a121f(0x24a)][_0x3a121f(0x235)](_0x19f9c0['id'],_0x2d8426),_0x19f9c0[_0x3a121f(0x1fb)][_0x3a121f(0x1e3)](_0x419b3c=>{const _0x13a9d1=_0x3a121f,_0x1bc27a=_0x2c1156({'editor':this[_0x13a9d1(0x1d9)],'action':_0x419b3c});this[_0x13a9d1(0x1d9)]['ui'][_0x13a9d1(0x24a)][_0x13a9d1(0x235)](_0x419b3c['id'],_0x1bc27a);});}else{const _0x3f3476=_0x2c1156({'editor':this[_0x3a121f(0x1d9)],'action':_0x19f9c0,'withText':!0x1,'withIcon':!0x0,'isInDropdown':!0x1});this[_0x3a121f(0x1d9)]['ui'][_0x3a121f(0x24a)][_0x3a121f(0x235)](_0x19f9c0['id'],_0x3f3476);}});}[_0x332c23(0x201)](){const _0x301011=_0x332c23;this[_0x301011(0x1d9)]['ui'][_0x301011(0x24a)][_0x301011(0x235)](_0x301011(0x1df),_0x5d84ca=>{const _0x58ba12=_0x301011,_0x33d92f=new _0x4936f8(_0x5d84ca),_0x2f0717=_0x23ce49(_0x5d84ca,_0x58ba12(0x20d));_0x33d92f[_0x58ba12(0x21c)][_0x58ba12(0x22d)]({'label':_0x2f0717,'icon':_0x43d553});const _0x51d2c3=new _0x3f2803(_0x5d84ca);_0x51d2c3[_0x58ba12(0x22d)]({'ariaLabel':_0x2f0717,'role':_0x58ba12(0x1ec)}),this[_0x58ba12(0x208)][_0x58ba12(0x1e3)](_0x1ddb1=>{const _0x46d207=_0x58ba12;if(_0x46d207(0x1fb)in _0x1ddb1){const _0xd2d0b1=_0x1ddb1,_0xb9e9f3=new _0x3d2684(_0x5d84ca,_0x33d92f),_0x23258e=new _0x4936f8(_0x5d84ca),_0x474dca=new _0x3f2803(_0x5d84ca);_0x23258e[_0x46d207(0x21c)][_0x46d207(0x22d)]({'label':_0xd2d0b1[_0x46d207(0x25d)],'icon':_0xd2d0b1[_0x46d207(0x1f5)]}),_0xd2d0b1[_0x46d207(0x1fb)][_0x46d207(0x1e3)](_0x2631b4=>{const _0x4f27ec=_0x46d207,_0x81f81c=new _0x3d2684(_0x5d84ca,_0x23258e),_0x2beea5=new _0x5a135c(_0x5d84ca);_0x2beea5[_0x4f27ec(0x22d)]({'label':_0x2631b4[_0x4f27ec(0x20a)],'icon':_0x2631b4[_0x4f27ec(0x1f5)],'role':_0x4f27ec(0x269),'isEnabled':_0x2631b4[_0x4f27ec(0x258)]}),_0x2beea5['on'](_0x4f27ec(0x1f3),()=>{const _0xee17ca=_0x4f27ec;this[_0xee17ca(0x226)](_0x2631b4);}),_0x2beea5[_0x4f27ec(0x1d3)](_0x4f27ec(0x1f3))['to'](_0x23258e),_0x81f81c[_0x4f27ec(0x267)][_0x4f27ec(0x235)](_0x2beea5),_0x474dca[_0x4f27ec(0x1f9)][_0x4f27ec(0x235)](_0x81f81c);}),_0x23258e[_0x46d207(0x20b)][_0x46d207(0x267)][_0x46d207(0x235)](_0x474dca),_0xb9e9f3[_0x46d207(0x267)][_0x46d207(0x235)](_0x23258e),_0x51d2c3[_0x46d207(0x1f9)][_0x46d207(0x235)](_0xb9e9f3);}else{const _0xaa07c0=_0x1ddb1,_0x54b0c1=new _0x3d2684(_0x5d84ca,_0x33d92f),_0x207ea7=new _0x5a135c(_0x5d84ca);_0x207ea7[_0x46d207(0x22d)]({'label':_0xaa07c0[_0x46d207(0x20a)],'icon':_0xaa07c0[_0x46d207(0x1f5)],'role':_0x46d207(0x269),'isEnabled':_0xaa07c0[_0x46d207(0x258)]}),_0x207ea7['on'](_0x46d207(0x1f3),()=>{const _0x16b9c0=_0x46d207;this[_0x16b9c0(0x226)](_0xaa07c0);}),_0x207ea7[_0x46d207(0x1d3)](_0x46d207(0x1f3))['to'](_0x33d92f),_0x54b0c1[_0x46d207(0x267)][_0x46d207(0x235)](_0x207ea7),_0x51d2c3[_0x46d207(0x1f9)][_0x46d207(0x235)](_0x54b0c1);}});const _0x2ff44b=Object[_0x58ba12(0x250)](AIQuickActionTypeToPluginName)[_0x58ba12(0x1e5)](_0x5229b1=>this[_0x58ba12(0x1d9)][_0x58ba12(0x244)][_0x58ba12(0x23d)](_0x5229b1));return _0x33d92f[_0x58ba12(0x22d)]({'isEnabled':_0x2ff44b}),_0x33d92f[_0x58ba12(0x20b)][_0x58ba12(0x267)][_0x58ba12(0x235)](_0x51d2c3),_0x33d92f;});}[_0x332c23(0x226)](_0x59e723){const _0x42f4d4=_0x332c23,_0x3a28c9=this[_0x42f4d4(0x1d9)];_0x3a28c9[_0x42f4d4(0x1e4)][_0x42f4d4(0x1e6)][_0x42f4d4(0x200)](),_0x3a28c9[_0x42f4d4(0x21b)][_0x42f4d4(0x1f3)](_0x42f4d4(0x26b),_0x59e723);const _0x4b9b90=_0x3a28c9['ui'][_0x42f4d4(0x1e6)][_0x42f4d4(0x251)];_0x4b9b90&&_0x4b9b90[_0x42f4d4(0x1cc)]&&_0x4b9b90[_0x42f4d4(0x1cc)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0xc39a(_0x510e6d,_0x1d1f08){const _0x22b253=_0x22b2();return _0xc39a=function(_0xc39a7f,_0x52611f){_0xc39a7f=_0xc39a7f-0xa9;let _0x459603=_0x22b253[_0xc39a7f];return _0x459603;},_0xc39a(_0x510e6d,_0x1d1f08);}(function(_0x13b67f,_0x40467c){const _0x50151c=_0xc39a,_0x323113=_0x13b67f();while(!![]){try{const _0x1d7c79=-parseInt(_0x50151c(0xaf))/0x1+parseInt(_0x50151c(0xb0))/0x2*(parseInt(_0x50151c(0xb2))/0x3)+parseInt(_0x50151c(0xae))/0x4*(parseInt(_0x50151c(0xb6))/0x5)+-parseInt(_0x50151c(0xba))/0x6+-parseInt(_0x50151c(0xbb))/0x7+-parseInt(_0x50151c(0xab))/0x8*(parseInt(_0x50151c(0xb7))/0x9)+parseInt(_0x50151c(0xbe))/0xa;if(_0x1d7c79===_0x40467c)break;else _0x323113['push'](_0x323113['shift']());}catch(_0x354195){_0x323113['push'](_0x323113['shift']());}}}(_0x22b2,0x1cfba));import{ButtonView as _0x58a64c}from'ckeditor5/src/ui.js';import{IconAIQuickActions as _0x3da985}from'@ckeditor/ckeditor5-icons';export function aiQuickActionsButtonCreator(_0x608a50){const {editor:_0x4be391,action:_0x4d0584,withText:_0x3d9c6e=!0x1,withIcon:_0x5b3cc2=!0x0,isInDropdown:_0x118b1a=!0x0,shouldPreventFocus:_0x5efe48=!0x1}=_0x608a50;return()=>{const _0x4afbef=_0xc39a,_0x485833=_0x4be391[_0x4afbef(0xac)],_0x494d17=new _0x58a64c(_0x485833),_0x4b843b=_0x494d17[_0x4afbef(0xaa)];_0x118b1a&&_0x494d17[_0x4afbef(0xc2)]({'on':{'mouseenter':_0x4b843b['to'](()=>{const _0x107599=_0x4afbef;_0x5efe48&&_0x5efe48()||_0x494d17[_0x107599(0xc1)]();})}});const _0x9451fc=_0x4d0584[_0x4afbef(0xb5)]??_0x4d0584[_0x4afbef(0xbf)]?.[_0x4afbef(0xb5)];return _0x494d17[_0x4afbef(0xc0)]({'label':_0x4d0584[_0x4afbef(0xb8)],'withText':_0x3d9c6e,'role':_0x4afbef(0xb9),'icon':_0x5b3cc2?_0x9451fc??_0x3da985:void 0x0,'tooltip':!_0x3d9c6e,'class':_0x4afbef(0xb4),'isEnabled':_0x4d0584[_0x4afbef(0xb1)]}),_0x494d17['on'](_0x4afbef(0xbc),()=>{const _0xda93f0=_0x4afbef;_0x4be391[_0xda93f0(0xad)][_0xda93f0(0xb3)][_0xda93f0(0xc1)](),_0x4be391[_0xda93f0(0xa9)][_0xda93f0(0xbc)](_0xda93f0(0xbd),_0x4d0584);}),_0x494d17;};}function _0x22b2(){const _0x445b2e=['aiQuickAction','3417010mhsOQj','parent','set','focus','extendTemplate','commands','bindTemplate','608NjySHg','locale','editing','4jwVXPg','78134fABTgY','59742RvCYot','isEnabled','9DGENbV','view','ck-ai-quick-actions-button','icon','993175rbzeAb','22482fdQYyz','displayedPrompt','menuitem','599100eIdugB','1003821BKwxdI','execute'];_0x22b2=function(){return _0x445b2e;};return _0x22b2();}
|