@ckeditor/ckeditor5-ai 47.1.0-alpha.0 → 47.1.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x3a0f(){const _0x3173bf=['reduce','index','path','length','43834EwJglV','createAt','match','same','3126105SpBcTV','createBefore','getNudgedToWordBoundary','previousNode','slice','createFromPath','3300657EhcHuA','nextNode','ai-documentposition-index-out-of-bounds','2676eTeril','data','isEqual','81762bAHsdB','1353340lQvzni','905CVsNHw','856WKJtOl','99cBGfRU','12AVbCgC','indexOf','document','parent','3735020dOzUGt','end','start','ai-documentposition-createfrompath-path-cannot-be-empty','createAfter'];_0x3a0f=function(){return _0x3173bf;};return _0x3a0f();}function _0x5baa(_0x221b5d,_0x48f020){const _0x3a0f7b=_0x3a0f();return _0x5baa=function(_0x5baaab,_0x4d7ca2){_0x5baaab=_0x5baaab-0x88;let _0x3ed703=_0x3a0f7b[_0x5baaab];return _0x3ed703;},_0x5baa(_0x221b5d,_0x48f020);}const _0xaeede2=_0x5baa;(function(_0x340149,_0x37110d){const _0x324033=_0x5baa,_0x2d5205=_0x340149();while(!![]){try{const _0x5179d8=parseInt(_0x324033(0xa0))/0x1*(-parseInt(_0x324033(0x9b))/0x2)+parseInt(_0x324033(0x95))/0x3+parseInt(_0x324033(0xa4))/0x4+parseInt(_0x324033(0x9d))/0x5*(parseInt(_0x324033(0x98))/0x6)+-parseInt(_0x324033(0x8b))/0x7*(-parseInt(_0x324033(0x9e))/0x8)+-parseInt(_0x324033(0x8f))/0x9+-parseInt(_0x324033(0x9c))/0xa*(parseInt(_0x324033(0x9f))/0xb);if(_0x5179d8===_0x37110d)break;else _0x2d5205['push'](_0x2d5205['shift']());}catch(_0x4240de){_0x2d5205['push'](_0x2d5205['shift']());}}}(_0x3a0f,0xb1eeb));import{CKEditorError as _0x17a684,compareArrays as _0x34481b}from'ckeditor5/src/utils.js';import{getNodePath as _0x2eb0ed,isText as _0x21d262,getChildren as _0xd615c,isDocument as _0x18f67d,getParent as _0x424809,textContent as _0x14c741,hasChildren as _0x354f22}from'./htmlparser.js';export class DocumentPosition{[_0xaeede2(0xa3)];[_0xaeede2(0x88)];[_0xaeede2(0xa2)];constructor(_0x3e49fc,_0x4e7a7f,_0xc1c4a5){const _0x47dcba=_0xaeede2;if(_0x21d262(_0x4e7a7f)&&_0xc1c4a5>_0x4e7a7f[_0x47dcba(0x99)][_0x47dcba(0x8a)])throw new _0x17a684(_0x47dcba(0x97),null,{'index':_0xc1c4a5,'parent':_0x4e7a7f});if(_0x354f22(_0x4e7a7f)&&_0xc1c4a5>_0xd615c(_0x4e7a7f)[_0x47dcba(0x8a)])throw new _0x17a684(_0x47dcba(0x97),null,{'index':_0xc1c4a5,'parent':_0x4e7a7f});if(_0xc1c4a5<0x0)throw new _0x17a684(_0x47dcba(0x97),null,{'index':_0xc1c4a5,'parent':_0x4e7a7f});this[_0x47dcba(0xa3)]=_0x4e7a7f,this[_0x47dcba(0x88)]=_0xc1c4a5,this[_0x47dcba(0xa2)]=_0x3e49fc;}get[_0xaeede2(0x89)](){const _0x2cf5dd=_0xaeede2;return[..._0x2eb0ed(this[_0x2cf5dd(0xa3)]),this[_0x2cf5dd(0x88)]];}[_0xaeede2(0x9a)](_0x9e092c){const _0x224056=_0xaeede2;return this[_0x224056(0xa2)]==_0x9e092c[_0x224056(0xa2)]&&_0x224056(0x8e)===_0x34481b(this[_0x224056(0x89)],_0x9e092c[_0x224056(0x89)]);}get[_0xaeede2(0x96)](){const _0x6812e3=_0xaeede2;if(_0x354f22(this[_0x6812e3(0xa3)])){const _0x3070b6=_0xd615c(this[_0x6812e3(0xa3)])[this[_0x6812e3(0x88)]];if(_0x3070b6)return _0x3070b6;{const _0x573ebf=DocumentPosition[_0x6812e3(0xa8)](this[_0x6812e3(0xa2)],this[_0x6812e3(0xa3)]);if(_0x573ebf)return _0x573ebf[_0x6812e3(0x96)];}}return null;}get[_0xaeede2(0x92)](){const _0x38188f=_0xaeede2;if(_0x354f22(this[_0x38188f(0xa3)])){const _0x2a51eb=_0xd615c(this[_0x38188f(0xa3)])[this[_0x38188f(0x88)]-0x1];if(_0x2a51eb)return _0x2a51eb;{const _0x31f9fb=DocumentPosition[_0x38188f(0x90)](this[_0x38188f(0xa2)],this[_0x38188f(0xa3)]);if(_0x31f9fb)return _0x31f9fb[_0x38188f(0x92)];}}return null;}[_0xaeede2(0x91)](_0x5b952b=_0xaeede2(0xa6)){const _0x4e369a=_0xaeede2;if(!_0x21d262(this[_0x4e369a(0xa3)]))return this;const _0x3ac055=this[_0x4e369a(0x89)][this[_0x4e369a(0x89)][_0x4e369a(0x8a)]-0x1],_0x29b55e=_0x14c741(this[_0x4e369a(0xa3)])[_0x4e369a(0x8d)](/(?:\s*\S+\s*)/g);let _0x33e122=0x0,_0x11e2a8=_0x3ac055;for(const _0x536b68 of _0x29b55e){if(_0x33e122+_0x536b68[_0x4e369a(0x8a)]===_0x3ac055)return this;if(_0x33e122+_0x536b68[_0x4e369a(0x8a)]>_0x3ac055){_0x11e2a8=_0x4e369a(0xa6)===_0x5b952b?_0x33e122:_0x33e122+_0x536b68[_0x4e369a(0x8a)];break;}_0x33e122+=_0x536b68[_0x4e369a(0x8a)];}return DocumentPosition[_0x4e369a(0x8c)](this[_0x4e369a(0xa2)],this[_0x4e369a(0xa3)],_0x11e2a8);}static[_0xaeede2(0xa8)](_0x39f86d,_0x4474af){const _0x24f90a=_0xaeede2;if(_0x18f67d(_0x4474af))return null;const _0x51276f=_0x424809(_0x4474af);return DocumentPosition[_0x24f90a(0x8c)](_0x39f86d,_0x51276f,_0xd615c(_0x51276f)[_0x24f90a(0xa1)](_0x4474af)+0x1);}static[_0xaeede2(0x90)](_0x380c22,_0x7c2e65){const _0x1c31ca=_0xaeede2;if(_0x18f67d(_0x7c2e65))return null;const _0x52e313=_0x424809(_0x7c2e65);return DocumentPosition[_0x1c31ca(0x8c)](_0x380c22,_0x52e313,_0xd615c(_0x52e313)[_0x1c31ca(0xa1)](_0x7c2e65));}static[_0xaeede2(0x8c)](_0x458932,_0x321969,_0x22708c=_0xaeede2(0xa6)){const _0x51afcb=_0xaeede2;return new DocumentPosition(_0x458932,_0x321969,_0x51afcb(0xa6)===_0x22708c?0x0:_0x51afcb(0xa5)===_0x22708c?_0x21d262(_0x321969)?_0x321969[_0x51afcb(0x99)][_0x51afcb(0x8a)]:_0xd615c(_0x321969)[_0x51afcb(0x8a)]:_0x22708c);}static[_0xaeede2(0x94)](_0xeaff29,_0x6295d5){const _0x2cb5dc=_0xaeede2;if(!_0x6295d5[_0x2cb5dc(0x8a)])throw new _0x17a684(_0x2cb5dc(0xa7),null,{'path':_0x6295d5});const _0x10fb2e=_0x6295d5[_0x2cb5dc(0x93)](0x0,-0x1)[_0x2cb5dc(0xa9)]((_0x490abe,_0x1c3580)=>_0x21d262(_0x490abe)?_0x490abe:_0xd615c(_0x490abe)[_0x1c3580],_0xeaff29);return DocumentPosition[_0x2cb5dc(0x8c)](_0xeaff29,_0x10fb2e,_0x6295d5[_0x6295d5[_0x2cb5dc(0x8a)]-0x1]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x19f2(_0xfb9357,_0x419ee3){const _0x3c3c2d=_0x3c3c();return _0x19f2=function(_0x19f226,_0x3da1a1){_0x19f226=_0x19f226-0x1c2;let _0x4a762c=_0x3c3c2d[_0x19f226];return _0x4a762c;},_0x19f2(_0xfb9357,_0x419ee3);}const _0x5e36b7=_0x19f2;(function(_0xd12e3f,_0x4b6fdd){const _0xeb44cf=_0x19f2,_0x1d6c6a=_0xd12e3f();while(!![]){try{const _0x48c085=parseInt(_0xeb44cf(0x1d0))/0x1*(parseInt(_0xeb44cf(0x1cd))/0x2)+-parseInt(_0xeb44cf(0x1d4))/0x3+-parseInt(_0xeb44cf(0x1ce))/0x4+parseInt(_0xeb44cf(0x1e0))/0x5+parseInt(_0xeb44cf(0x1ca))/0x6+-parseInt(_0xeb44cf(0x1d1))/0x7+parseInt(_0xeb44cf(0x1c5))/0x8*(parseInt(_0xeb44cf(0x1d3))/0x9);if(_0x48c085===_0x4b6fdd)break;else _0x1d6c6a['push'](_0x1d6c6a['shift']());}catch(_0xbe7231){_0x1d6c6a['push'](_0x1d6c6a['shift']());}}}(_0x3c3c,0x4df94));import{DocumentPosition as _0x464ce8}from'./documentposition.js';import{clone as _0x37cedf,getParents as _0x46c7f1,Document as _0x22d56f,Text as _0x21b477,isTag as _0x50980b,isText as _0x25f706,replaceElement as _0x55b629,removeElement as _0x441966}from'./htmlparser.js';export class DocumentRange{[_0x5e36b7(0x1dd)];[_0x5e36b7(0x1c4)];constructor(_0x24d8fa,_0xae94a3){const _0x477968=_0x5e36b7;this[_0x477968(0x1dd)]=_0x24d8fa,this[_0x477968(0x1c4)]=_0xae94a3;}[_0x5e36b7(0x1df)](_0x5278a1){const _0xdce0c7=_0x5e36b7;return this==_0x5278a1||this[_0xdce0c7(0x1dd)][_0xdce0c7(0x1df)](_0x5278a1[_0xdce0c7(0x1dd)])&&this[_0xdce0c7(0x1c4)][_0xdce0c7(0x1df)](_0x5278a1[_0xdce0c7(0x1c4)]);}[_0x5e36b7(0x1c9)](){const _0x5f0582=_0x5e36b7;return new DocumentRange(this[_0x5f0582(0x1dd)][_0x5f0582(0x1c9)](_0x5f0582(0x1dd)),this[_0x5f0582(0x1c4)][_0x5f0582(0x1c9)](_0x5f0582(0x1c4)));}[_0x5e36b7(0x1c7)](){const _0x630f70=_0x5e36b7,_0x1cf54f=_0x37cedf(this[_0x630f70(0x1dd)][_0x630f70(0x1cc)]),_0x14c401=_0x464ce8[_0x630f70(0x1da)](_0x1cf54f,this[_0x630f70(0x1dd)][_0x630f70(0x1d5)]),_0x5fcc9e=_0x464ce8[_0x630f70(0x1da)](_0x1cf54f,this[_0x630f70(0x1c4)][_0x630f70(0x1d5)]);let _0x3f1e1f,_0x2b4326;if(_0x25f706(_0x14c401[_0x630f70(0x1db)])){const _0x590460=_0x14c401[_0x630f70(0x1d5)][_0x14c401[_0x630f70(0x1d5)][_0x630f70(0x1c3)]-0x1],_0x5ceb5f=new _0x21b477(_0x14c401[_0x630f70(0x1db)][_0x630f70(0x1c2)][_0x630f70(0x1e1)](_0x590460));_0x55b629(_0x14c401[_0x630f70(0x1db)],_0x5ceb5f),_0x3f1e1f=_0x5ceb5f;}else _0x3f1e1f=_0x14c401[_0x630f70(0x1d8)];if(_0x25f706(_0x5fcc9e[_0x630f70(0x1db)])){const _0x57badf=_0x5fcc9e[_0x630f70(0x1d5)][_0x5fcc9e[_0x630f70(0x1d5)][_0x630f70(0x1c3)]-0x1],_0x23a32e=new _0x21b477(_0x5fcc9e[_0x630f70(0x1db)][_0x630f70(0x1c2)][_0x630f70(0x1e1)](0x0,_0x57badf));_0x55b629(_0x5fcc9e[_0x630f70(0x1db)],_0x23a32e),_0x2b4326=_0x23a32e;}else _0x2b4326=_0x5fcc9e[_0x630f70(0x1de)];if(!(_0x3f1e1f&&_0x2b4326&&_0x1cf54f[_0x630f70(0x1d7)]&&_0x1cf54f[_0x630f70(0x1c8)]))return new _0x22d56f([]);const _0x3a98d8=_0x46c7f1(_0x3f1e1f),_0x1dfb3a=_0x46c7f1(_0x2b4326),_0x334b6c=[],_0x3c43cf=[];let _0x4015f2=_0x1cf54f[_0x630f70(0x1d7)];for(;_0x4015f2&&_0x4015f2!==_0x3f1e1f;){let _0x1f6c26;_0x3a98d8[_0x630f70(0x1cf)](_0x4015f2)||_0x334b6c[_0x630f70(0x1d6)](_0x4015f2),_0x1f6c26=_0x50980b(_0x4015f2)?_0x464ce8[_0x630f70(0x1d2)](_0x1cf54f,_0x4015f2,_0x630f70(0x1dd)):_0x464ce8[_0x630f70(0x1dc)](_0x1cf54f,_0x4015f2),_0x4015f2=_0x1f6c26?_0x1f6c26[_0x630f70(0x1d8)]:null;}for(_0x4015f2=_0x1cf54f[_0x630f70(0x1c8)];_0x4015f2&&_0x4015f2!==_0x2b4326;){let _0x41f703;_0x1dfb3a[_0x630f70(0x1cf)](_0x4015f2)||_0x3c43cf[_0x630f70(0x1d6)](_0x4015f2),_0x41f703=_0x50980b(_0x4015f2)?_0x464ce8[_0x630f70(0x1d2)](_0x1cf54f,_0x4015f2,_0x630f70(0x1c4)):_0x464ce8[_0x630f70(0x1cb)](_0x1cf54f,_0x4015f2),_0x4015f2=_0x41f703?_0x41f703[_0x630f70(0x1de)]:null;}return _0x334b6c[_0x630f70(0x1c6)](_0x7c3f33=>{_0x441966(_0x7c3f33);}),_0x3c43cf[_0x630f70(0x1d9)]()[_0x630f70(0x1c6)](_0x440769=>{_0x441966(_0x440769);}),_0x1cf54f;}}function _0x3c3c(){const _0x39fd10=['createAt','8874mHgPbn','951078QkiNDs','path','push','firstChild','nextNode','reverse','createFromPath','parent','createAfter','start','previousNode','isEqual','1835395rmVdsq','slice','data','length','end','1096ymSnvE','forEach','getContent','lastChild','getNudgedToWordBoundary','259728hrXHHm','createBefore','document','2QGDVge','1445796vucncn','includes','619663rRXPLh','1170799YDqacM'];_0x3c3c=function(){return _0x39fd10;};return _0x3c3c();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0xdab0ac,_0x2c4f1d){var _0x12b7dd=_0x148f,_0x19e758=_0xdab0ac();while(!![]){try{var _0x2de8bf=-parseInt(_0x12b7dd(0x11a))/0x1*(parseInt(_0x12b7dd(0x123))/0x2)+-parseInt(_0x12b7dd(0x121))/0x3+-parseInt(_0x12b7dd(0x11d))/0x4*(parseInt(_0x12b7dd(0x120))/0x5)+parseInt(_0x12b7dd(0x127))/0x6*(-parseInt(_0x12b7dd(0x125))/0x7)+parseInt(_0x12b7dd(0x122))/0x8*(parseInt(_0x12b7dd(0x128))/0x9)+-parseInt(_0x12b7dd(0x119))/0xa+parseInt(_0x12b7dd(0x11b))/0xb*(parseInt(_0x12b7dd(0x129))/0xc);if(_0x2de8bf===_0x2c4f1d)break;else _0x19e758['push'](_0x19e758['shift']());}catch(_0x4aa556){_0x19e758['push'](_0x19e758['shift']());}}}(_0x6b6f,0x6f125));import{CKEditorError as _0x586253}from'ckeditor5/src/utils.js';import{Editor as _0x458540}from'ckeditor5/src/core.js';function _0x6b6f(){var _0x3e6042=['2055765RuRqBF','16JcdLOq','353958OdWpJF','get','2336061SirIjL','warn','6ngUflW','745047USKBGw','24ALGTYO','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.','3591560hOjvTF','4WJyrxk','14960759OzOLKi','ai-get-editor-from-context-no-editor','19420UvZGfP','length','editors','355hTfTnC'];_0x6b6f=function(){return _0x3e6042;};return _0x6b6f();}function _0x148f(_0x230cc4,_0x39a730){var _0x6b6f7=_0x6b6f();return _0x148f=function(_0x148f25,_0x41bd2d){_0x148f25=_0x148f25-0x119;var _0x777666=_0x6b6f7[_0x148f25];return _0x777666;},_0x148f(_0x230cc4,_0x39a730);}export function getEditorFromContext(_0x10dace){var _0x3a025b=_0x148f;if(_0x10dace instanceof _0x458540)return _0x10dace;if(_0x10dace?.[_0x3a025b(0x11f)]&&_0x10dace[_0x3a025b(0x11f)][_0x3a025b(0x124)](0x0))return _0x10dace[_0x3a025b(0x11f)][_0x3a025b(0x11e)]>0x1&&console[_0x3a025b(0x126)](_0x3a025b(0x12a)),_0x10dace[_0x3a025b(0x11f)][_0x3a025b(0x124)](0x0);throw new _0x586253(_0x3a025b(0x11c));}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x2423(_0x15ff37,_0x488e24){const _0x57bebd=_0x57be();return _0x2423=function(_0x24231a,_0x1c89af){_0x24231a=_0x24231a-0x13e;let _0x44c900=_0x57bebd[_0x24231a];return _0x44c900;},_0x2423(_0x15ff37,_0x488e24);}(function(_0x340d15,_0x2aca8b){const _0x3033a3=_0x2423,_0x474d76=_0x340d15();while(!![]){try{const _0x397812=-parseInt(_0x3033a3(0x142))/0x1*(parseInt(_0x3033a3(0x14d))/0x2)+-parseInt(_0x3033a3(0x149))/0x3+parseInt(_0x3033a3(0x154))/0x4+parseInt(_0x3033a3(0x14c))/0x5*(parseInt(_0x3033a3(0x150))/0x6)+parseInt(_0x3033a3(0x14b))/0x7+-parseInt(_0x3033a3(0x15a))/0x8+parseInt(_0x3033a3(0x141))/0x9*(parseInt(_0x3033a3(0x159))/0xa);if(_0x397812===_0x2aca8b)break;else _0x474d76['push'](_0x474d76['shift']());}catch(_0x423776){_0x474d76['push'](_0x474d76['shift']());}}}(_0x57be,0xefc02));import{transformOperationSets as _0xc1c06c}from'ckeditor5/src/engine.js';function _0x57be(){const _0x1494a5=['history','37694000kxOqpi','10939976dHfToO','filter','getDocumentContext','content','document','shift','removed','9bgVdoz','4aPKeAb','map','node','new','documentContextContent','getDiff','data-id','5127165OHsnLq','getOperations','2074387uiyFYR','3945490NYGrhN','453124pEuuhF','version','model','6MISDrq','cloneNode','length','type','439916wCSIOt','operationsA','anchorId','previousSibling'];_0x57be=function(){return _0x1494a5;};return _0x57be();}import{append as _0xd09a8e,findByAttribute as _0x210823,prependChild as _0x5961ed,removeElement as _0x430736,serialize as _0x501dfa}from'./htmlparser.js';export function getOperationsFromReply({editor:_0x2eebf0,interaction:_0x365c6e,reply:_0x2e4ecf,groups:_0x3bd991,transform:_0x1cc8ae,documentCompare:_0x45808a,documentCompareOptions:_0x20d453}){const _0x17c78f=_0x2423,_0x3e4300=_0x365c6e[_0x17c78f(0x15c)]();if(!_0x3e4300)return[];const _0x4a3d00=_0x3e4300[_0x17c78f(0x15d)],_0x1f3df3=_0x3e4300[_0x17c78f(0x14e)],_0x4e5c88=_0x2e4ecf[_0x17c78f(0x146)][_0x17c78f(0x151)](!0x0);for(const {changes:_0x2988d6}of _0x3bd991){const _0x15a7e0=_0x2988d6[_0x17c78f(0x15b)](_0x2cce59=>_0x17c78f(0x145)!=_0x2cce59[_0x17c78f(0x153)])[_0x17c78f(0x143)](_0x4f1e9e=>_0x210823(_0x17c78f(0x148),_0x4f1e9e['id'],_0x4e5c88)),_0x535788=_0x2988d6[_0x17c78f(0x15b)](_0x8889ed=>_0x17c78f(0x140)!=_0x8889ed[_0x17c78f(0x153)])[_0x17c78f(0x143)](_0x2fc3f7=>_0x2fc3f7[_0x17c78f(0x144)][_0x17c78f(0x151)](!0x0));let _0x14c146=null;if(_0x15a7e0[_0x17c78f(0x152)]){_0x14c146=_0x15a7e0[0x0][_0x17c78f(0x157)];for(let _0xab488a=0x0;_0xab488a<_0x15a7e0[_0x17c78f(0x152)];_0xab488a++)_0x430736(_0x15a7e0[_0xab488a]);}if(_0x535788[_0x17c78f(0x152)]){_0x14c146||(_0x2988d6[0x0][_0x17c78f(0x156)]?_0x14c146=_0x210823(_0x17c78f(0x148),_0x2988d6[0x0][_0x17c78f(0x156)],_0x4e5c88):(_0x14c146=_0x535788[_0x17c78f(0x13f)](),_0x5961ed(_0x4e5c88,_0x14c146)));for(let _0x128539=0x0;_0x128539<_0x535788[_0x17c78f(0x152)];_0x128539++)_0xd09a8e(_0x14c146,_0x535788[_0x128539]),_0x14c146=_0x535788[_0x128539];}}const _0x3ccb16=_0x501dfa(_0x4e5c88),_0x37dd7e=_0x45808a[_0x17c78f(0x147)](_0x4a3d00,_0x3ccb16,_0x20d453)[_0x17c78f(0x14a)]();if(_0x1cc8ae){const _0x474078=_0x2eebf0[_0x17c78f(0x14f)][_0x17c78f(0x13e)][_0x17c78f(0x158)][_0x17c78f(0x14a)](_0x1f3df3),_0xf2e1eb={'document':_0x2eebf0[_0x17c78f(0x14f)][_0x17c78f(0x13e)],'useRelations':!0x1,'padWithNoOps':!0x1};return _0xc1c06c(_0x37dd7e,_0x474078,_0xf2e1eb)[_0x17c78f(0x155)];}return _0x37dd7e;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(_0x3dda39,_0x58ca2b){const _0x354481=_0xc2fd,_0xee17b8=_0x3dda39();while(!![]){try{const _0xccfc62=-parseInt(_0x354481(0x15f))/0x1*(parseInt(_0x354481(0x184))/0x2)+parseInt(_0x354481(0x14c))/0x3*(parseInt(_0x354481(0x195))/0x4)+-parseInt(_0x354481(0x19d))/0x5+-parseInt(_0x354481(0x194))/0x6+-parseInt(_0x354481(0x142))/0x7*(parseInt(_0x354481(0x138))/0x8)+parseInt(_0x354481(0x14f))/0x9*(parseInt(_0x354481(0x179))/0xa)+parseInt(_0x354481(0x16e))/0xb;if(_0xccfc62===_0x58ca2b)break;else _0xee17b8['push'](_0xee17b8['shift']());}catch(_0x350624){_0xee17b8['push'](_0xee17b8['shift']());}}}(_0x2528,0x3005e));import{findOne as _0x468e43,getAttribute as _0x77fded,Document as _0x11d737,serialize as _0x50054c,parse as _0x40a109}from'./htmlparser.js';import{_DetachOperation as _0x503550,_removeFromModelNodeList as _0x421285,_insertIntoModelNodeList as _0x3d0eda}from'ckeditor5/src/engine.js';export function getSuggestionPartsFromReply({editor:_0xe7ae13,changeGroups:_0x47c037,documentContextContent:_0x291ed5,showDiff:_0x36c6f4,trimUnchanged:_0x23e011=!0x0}){const _0x790df3=_0xc2fd;return _0x47c037[_0x790df3(0x18d)](_0x2d6061=>{const _0x4e5316=_0x790df3,_0x40734a=new _0x11d737([]),_0x4f1cee=new _0x11d737([]);for(const _0x63af01 of _0x2d6061[_0x4e5316(0x188)])if(_0x36c6f4&&_0x4e5316(0x16b)==_0x63af01[_0x4e5316(0x164)]||_0x4f1cee[_0x4e5316(0x160)][_0x4e5316(0x13e)](_0x63af01[_0x4e5316(0x18c)][_0x4e5316(0x147)](!0x0)),_0x4e5316(0x169)!=_0x63af01[_0x4e5316(0x164)]&&(_0x36c6f4||_0x4e5316(0x16b)!=_0x63af01[_0x4e5316(0x164)])){const _0x2cad6e=_0x468e43(_0x14b20f=>_0x77fded(_0x14b20f,_0x4e5316(0x19c))==_0x63af01['id'],_0x291ed5,!0x0);_0x2cad6e&&_0x40734a[_0x4e5316(0x160)][_0x4e5316(0x13e)](_0x2cad6e[_0x4e5316(0x147)](!0x0));}const {content:_0x21885f,hasChanges:_0x40dbb2}=function(_0x3c4aff,_0x5f0287,_0x372351,_0x5e4728,_0x3d27e5=!0x0){const _0x389383=_0x4e5316,_0x4719ac=_0x3c4aff[_0x389383(0x151)][_0x389383(0x173)](_0x389383(0x17c)),_0x101dfe=_0x3c4aff[_0x389383(0x151)][_0x389383(0x173)](_0x389383(0x137)),_0x4f4caf=_0x50054c(_0x5f0287),_0x54785e=_0x50054c(_0x372351),_0x40f6b2=_0x3c4aff[_0x389383(0x13f)][_0x389383(0x17d)](_0x4f4caf,_0x389383(0x163)),_0x4b4c80=_0x3c4aff[_0x389383(0x13c)][_0x389383(0x14a)](_0x40f6b2,0x0),_0x2845ba=_0x4719ac[_0x389383(0x187)](_0x4f4caf,_0x54785e,{'anchor':_0x4b4c80,'markDeletions':_0x5e4728}),_0x2b0704=_0x2845ba[_0x389383(0x168)]();if(0x0==_0x2b0704[_0x389383(0x144)])return{'content':_0x5f0287[_0x389383(0x147)](!0x0),'hasChanges':!0x1};_0x5e4728?_0x101dfe[_0x389383(0x174)](_0x2b0704):_0x3c4aff[_0x389383(0x13c)][_0x389383(0x172)](_0x5af1e4=>{const _0x4b18c7=_0x389383;for(const _0x56e3bc of _0x2b0704)if(_0x4b18c7(0x196)==_0x56e3bc[_0x4b18c7(0x164)]){const _0x1cb7ea=_0x56e3bc[_0x4b18c7(0x175)],_0x3abc60=_0x56e3bc[_0x4b18c7(0x156)],_0x3468ab=new _0x503550(_0x1cb7ea,_0x3abc60);_0x5af1e4[_0x4b18c7(0x15d)][_0x4b18c7(0x162)](_0x3468ab),_0x3c4aff[_0x4b18c7(0x13c)][_0x4b18c7(0x17e)](_0x3468ab);}else{if(_0x4b18c7(0x18b)==_0x56e3bc[_0x4b18c7(0x164)]){const _0x1ec0a0=_0x56e3bc[_0x4b18c7(0x159)],_0x3c70ac=_0x56e3bc[_0x4b18c7(0x181)];_0x40f6b2[_0x4b18c7(0x192)][_0x4b18c7(0x139)](_0x1ec0a0,_0x3c70ac);}else _0x56e3bc[_0x4b18c7(0x19b)]=null,_0x56e3bc[_0x4b18c7(0x198)]=!0x1,_0x5af1e4[_0x4b18c7(0x15d)][_0x4b18c7(0x162)](_0x56e3bc),_0x3c4aff[_0x4b18c7(0x13c)][_0x4b18c7(0x17e)](_0x56e3bc);}});if(_0x3d27e5){const _0x613d94=getMinimalSelection(_0x3c4aff,_0x2b0704,_0x40f6b2);expandSelectionWithContext(_0x3c4aff[_0x389383(0x13c)],_0x613d94),function(_0x318523,_0x4c1b1f){const _0x2c78c9=_0x389383,_0x43e0bf=_0x4c1b1f[_0x2c78c9(0x197)]()[_0x2c78c9(0x14e)];let _0x3e590d=_0x4c1b1f[_0x2c78c9(0x197)]()[_0x2c78c9(0x146)];const _0x50db69=_0x43e0bf[_0x2c78c9(0x140)];(_0x3e590d[_0x2c78c9(0x141)]||_0x3e590d[_0x2c78c9(0x17f)]&&_0x3e590d[_0x2c78c9(0x17f)]['is'](_0x2c78c9(0x16c)))&&(_0x3d0eda(_0x3e590d,_0x2c78c9(0x18f)),_0x3e590d=_0x3e590d[_0x2c78c9(0x155)](0x3)),(_0x43e0bf[_0x2c78c9(0x141)]||_0x43e0bf[_0x2c78c9(0x14b)]&&_0x43e0bf[_0x2c78c9(0x14b)]['is'](_0x2c78c9(0x16c)))&&(_0x3d0eda(_0x43e0bf,_0x2c78c9(0x18f)),function(_0x7c5be8,_0x3be51e,_0x1a47b6){const _0x46f9db=_0x2c78c9;for(let [_0x1db142,_0x2d9729]of _0x7c5be8[_0x46f9db(0x192)]){const _0x1f7b03=_0x2d9729[_0x46f9db(0x16f)](_0x3be51e,_0x1a47b6,!0x1);_0x2d9729=_0x1f7b03[0x0],_0x7c5be8[_0x46f9db(0x192)][_0x46f9db(0x139)](_0x1db142,_0x2d9729);}}(_0x50db69,_0x43e0bf,0x3),_0x43e0bf[_0x2c78c9(0x191)]==_0x3e590d[_0x2c78c9(0x191)]&&(_0x3e590d=_0x3e590d[_0x2c78c9(0x155)](0x3)));const _0x51bce9=_0x318523[_0x2c78c9(0x15c)](_0x318523[_0x2c78c9(0x14a)](_0x50db69,0x0),_0x43e0bf),_0x864ff1=_0x318523[_0x2c78c9(0x15c)](_0x3e590d,_0x318523[_0x2c78c9(0x14a)](_0x50db69,_0x2c78c9(0x146))),_0x5eb7fb=[..._0x51bce9[_0x2c78c9(0x178)](),..._0x864ff1[_0x2c78c9(0x178)]()];_0x5eb7fb[_0x2c78c9(0x193)]();for(const _0x3aac8a of _0x5eb7fb)_0x421285(_0x3aac8a),_transformMarkersByDeletion(_0x50db69,_0x3aac8a);}(_0x3c4aff[_0x389383(0x13c)],_0x613d94);}const _0x5d384c=_0x3c4aff[_0x389383(0x13f)][_0x389383(0x19a)](_0x40f6b2,{'showSuggestionHighlights':!0x0});return{'content':_0x40a109(_0x5d384c),'hasChanges':!0x0};}(_0xe7ae13,_0x40734a,_0x4f1cee,_0x36c6f4,_0x23e011);return{'type':_0x2d6061[_0x4e5316(0x188)][0x0][_0x4e5316(0x164)],'index':_0x2d6061[_0x4e5316(0x176)],'content':_0x21885f,'hasChanges':_0x40dbb2};});}function _0xc2fd(_0x3de58c,_0x4a4735){const _0x252873=_0x2528();return _0xc2fd=function(_0xc2fd6f,_0x202a63){_0xc2fd6f=_0xc2fd6f-0x137;let _0x24291c=_0x252873[_0xc2fd6f];return _0x24291c;},_0xc2fd(_0x3de58c,_0x4a4735);}export function getMinimalSelection(_0x1ff56d,_0x5349a2,_0x30d641){const _0x14cb76=_0xc2fd,_0x4544c3=_0x1ff56d[_0x14cb76(0x151)][_0x14cb76(0x173)](_0x14cb76(0x17c));let _0xb6104f=_0x1ff56d[_0x14cb76(0x13c)][_0x14cb76(0x14a)](_0x30d641,Number[_0x14cb76(0x158)]),_0x2208d2=_0x1ff56d[_0x14cb76(0x13c)][_0x14cb76(0x14a)](_0x30d641,0x0);for(const _0x4a243b of _0x5349a2){let _0x503cf8,_0x369a7f;if(_0x4544c3[_0x14cb76(0x145)](_0x4a243b))_0x503cf8=_0x4a243b[_0x14cb76(0x181)][_0x14cb76(0x14e)],_0x369a7f=_0x4a243b[_0x14cb76(0x181)][_0x14cb76(0x146)];else switch(_0xb6104f=_0xb6104f[_0x14cb76(0x15e)](_0x4a243b),_0x2208d2=_0x2208d2[_0x14cb76(0x15e)](_0x4a243b),_0x4a243b[_0x14cb76(0x164)]){case _0x14cb76(0x17b):_0x503cf8=_0x4a243b[_0x14cb76(0x165)],_0x369a7f=_0x503cf8[_0x14cb76(0x155)](0x1);break;case _0x14cb76(0x13b):case _0x14cb76(0x170):case _0x14cb76(0x177):_0x503cf8=_0x4a243b[_0x14cb76(0x199)][_0x14cb76(0x14e)],_0x369a7f=_0x4a243b[_0x14cb76(0x199)][_0x14cb76(0x146)];break;case _0x14cb76(0x14d):_0x503cf8=_0x4a243b[_0x14cb76(0x165)],_0x369a7f=_0x503cf8[_0x14cb76(0x155)](_0x4a243b[_0x14cb76(0x156)]);break;case _0x14cb76(0x186):_0x503cf8=_0x4a243b[_0x14cb76(0x182)],_0x369a7f=_0x4a243b[_0x14cb76(0x143)];break;case _0x14cb76(0x18e):{const _0x185198=_0x4a243b[_0x14cb76(0x154)][_0x14cb76(0x15a)][_0x14cb76(0x152)](0x0,-0x1);_0x503cf8=_0x1ff56d[_0x14cb76(0x13c)][_0x14cb76(0x13a)](_0x30d641,_0x185198),_0x369a7f=_0x503cf8[_0x14cb76(0x155)](0x1);break;}case _0x14cb76(0x196):{const _0x4475ae=_0x4a243b[_0x14cb76(0x156)],_0x230959=_0x4a243b[_0x14cb76(0x175)][_0x14cb76(0x16f)](_0x4a243b[_0x14cb76(0x154)],_0x4475ae),_0x3c7360=_0x4a243b[_0x14cb76(0x185)]();_0x14cb76(0x196)==_0x4a243b[_0x14cb76(0x164)]?(_0x503cf8=_0x230959,_0x369a7f=_0x230959):(_0x503cf8=_0x3c7360,_0x369a7f=_0x3c7360[_0x14cb76(0x155)](_0x4475ae));break;}}_0x503cf8&&_0x503cf8[_0x14cb76(0x18a)](_0xb6104f)&&(_0xb6104f=_0x503cf8[_0x14cb76(0x161)](),_0xb6104f[_0x14cb76(0x16a)]=_0x14cb76(0x150)),_0x369a7f&&_0x369a7f[_0x14cb76(0x166)](_0x2208d2)&&(_0x2208d2=_0x369a7f[_0x14cb76(0x161)](),_0x2208d2[_0x14cb76(0x16a)]=_0x14cb76(0x150));}return _0x1ff56d[_0x14cb76(0x13c)][_0x14cb76(0x148)](_0x1ff56d[_0x14cb76(0x13c)][_0x14cb76(0x15c)](_0xb6104f,_0x2208d2));}function _0x2528(){const _0x24f01b=['removeAttribute','isBlock','change','get','_applyOperationsAsSuggestions','sourcePosition','index','changeAttribute','getMinimalFlatRanges','29900ajmlrl','forward','rename','DocumentCompare','parse','applyOperation','nodeAfter','_getTransformedByDeletion','newRange','splitPosition','element','3898DJDuIW','getMovedRangeStart','split','getDiff','changes','focus','isBefore','marker','node','map','merge','...','delete','parent','markers','reverse','858240QWhSYO','632908MZgLNb','remove','getFirstRange','isDocumentOperation','range','stringify','baseVersion','data-id','411610EXkFwI','TrackChangesEditing','8TSvtSo','set','createPositionFromPath','addAttribute','model','offset','push','data','root','textNode','907102NIXkin','moveTargetPosition','length','isMarkedRemoveOperation','end','cloneNode','createSelection','backward','createPositionAt','nodeBefore','6aWkYSe','insert','start','360fmkjqn','toNone','plugins','slice','setTo','targetPosition','getShiftedBy','howMany','modifySelection','POSITIVE_INFINITY','name','path','schema','createRange','batch','getTransformedByOperation','191oBfRAp','children','clone','addOperation','$root','type','position','isAfter','word','getOperations','new','stickiness','removed','$text','isObject','5366405VlHSTD','_getTransformedByInsertion'];_0x2528=function(){return _0x24f01b;};return _0x2528();}export function expandSelectionWithContext(_0x5d8a3a,_0x4a190c){const _0x40b360=_0xc2fd;fn(_0x5d8a3a,_0x4a190c,_0x40b360(0x17a));const _0x1ad8dd=_0x4a190c[_0x40b360(0x197)]();_0x4a190c[_0x40b360(0x153)]([]),_0x4a190c[_0x40b360(0x153)](_0x1ad8dd,{'backward':!0x0}),fn(_0x5d8a3a,_0x4a190c,_0x40b360(0x149));}function fn(_0x3e220f,_0x305dfa,_0x42c392){const _0x3ac914=_0xc2fd;let _0xeb6f69=0x14;for(;_0xeb6f69;){_0x3e220f[_0x3ac914(0x157)](_0x305dfa,{'unit':_0x3ac914(0x167),'direction':_0x42c392}),_0xeb6f69--;const _0x196ad9=_0x305dfa[_0x3ac914(0x189)][_0x3ac914(0x17a)==_0x42c392?_0x3ac914(0x14b):_0x3ac914(0x17f)];if(_0x196ad9&&_0x196ad9['is'](_0x3ac914(0x183))&&_0x3e220f[_0x3ac914(0x15b)][_0x3ac914(0x171)](_0x196ad9)&&_0x3e220f[_0x3ac914(0x15b)][_0x3ac914(0x16d)](_0x196ad9))break;}}export function _transformMarkersByDeletion(_0x1a0c53,_0x2e6d72){const _0x4213f9=_0xc2fd;for(const [_0x379605,_0x4c6daf]of _0x1a0c53[_0x4213f9(0x192)]){const _0x93168=_0x4c6daf[_0x4213f9(0x180)](_0x2e6d72[_0x4213f9(0x14e)],_0x2e6d72[_0x4213f9(0x146)][_0x4213f9(0x13d)]-_0x2e6d72[_0x4213f9(0x14e)][_0x4213f9(0x13d)]);null!=_0x93168?_0x1a0c53[_0x4213f9(0x192)][_0x4213f9(0x139)](_0x379605,_0x93168):_0x1a0c53[_0x4213f9(0x192)][_0x4213f9(0x190)](_0x379605);}}
|
|
23
|
+
(function(_0x2f6fc4,_0x24a7b8){const _0x4f2ba0=_0x3557,_0x4f1e5f=_0x2f6fc4();while(!![]){try{const _0x3f8421=-parseInt(_0x4f2ba0(0x110))/0x1*(-parseInt(_0x4f2ba0(0x11b))/0x2)+-parseInt(_0x4f2ba0(0xf1))/0x3*(-parseInt(_0x4f2ba0(0x137))/0x4)+-parseInt(_0x4f2ba0(0xf5))/0x5*(-parseInt(_0x4f2ba0(0x127))/0x6)+-parseInt(_0x4f2ba0(0x140))/0x7+parseInt(_0x4f2ba0(0x125))/0x8*(parseInt(_0x4f2ba0(0x113))/0x9)+-parseInt(_0x4f2ba0(0x14d))/0xa+parseInt(_0x4f2ba0(0x155))/0xb;if(_0x3f8421===_0x24a7b8)break;else _0x4f1e5f['push'](_0x4f1e5f['shift']());}catch(_0x5ea31d){_0x4f1e5f['push'](_0x4f1e5f['shift']());}}}(_0x3a8e,0x26792));import{findOne as _0x50a885,getAttribute as _0x17731f,Document as _0x1ca586,serialize as _0x18533b,parse as _0x3587b5}from'./htmlparser.js';import{_DetachOperation as _0x19b301,_removeFromModelNodeList as _0x5f250b,_insertIntoModelNodeList as _0x4c971b}from'ckeditor5/src/engine.js';export function getSuggestionPartsFromReply({editor:_0xb8e3c2,changeGroups:_0x5bcc0b,documentContextContent:_0x37e32e,showDiff:_0x51977a,trimUnchanged:_0x45c148=!0x0}){const _0x2ca049=_0x3557;return _0x5bcc0b[_0x2ca049(0x151)](_0x559a7b=>{const _0xdd3ff5=_0x2ca049,_0x388850=new _0x1ca586([]),_0x41e420=new _0x1ca586([]);for(const _0x17a8e9 of _0x559a7b[_0xdd3ff5(0x145)])if(_0x51977a&&_0xdd3ff5(0xfe)==_0x17a8e9[_0xdd3ff5(0xf4)]||_0x41e420[_0xdd3ff5(0x101)][_0xdd3ff5(0x141)](_0x17a8e9[_0xdd3ff5(0x144)][_0xdd3ff5(0x12f)](!0x0)),_0xdd3ff5(0x10c)!=_0x17a8e9[_0xdd3ff5(0xf4)]&&(_0x51977a||_0xdd3ff5(0xfe)!=_0x17a8e9[_0xdd3ff5(0xf4)])){const _0x54b16c=_0x50a885(_0x2a5d97=>_0x17731f(_0x2a5d97,_0xdd3ff5(0x14b))==_0x17a8e9['id'],_0x37e32e,!0x0);_0x54b16c&&_0x388850[_0xdd3ff5(0x101)][_0xdd3ff5(0x141)](_0x54b16c[_0xdd3ff5(0x12f)](!0x0));}const {content:_0x3feacf,hasChanges:_0x4a1f8e}=function(_0x1c0d35,_0x219d93,_0x48bcdc,_0x1f7fbe,_0x16d145=!0x0){const _0x1d1aa7=_0xdd3ff5,_0x57cda1=_0x1c0d35[_0x1d1aa7(0x130)][_0x1d1aa7(0x10e)](_0x1d1aa7(0x121)),_0xa14966=_0x1c0d35[_0x1d1aa7(0x130)][_0x1d1aa7(0x10e)](_0x1d1aa7(0x10d)),_0x528d11=_0x18533b(_0x219d93),_0x1d2152=_0x18533b(_0x48bcdc),_0x139554=_0x1c0d35[_0x1d1aa7(0x131)][_0x1d1aa7(0x13d)](_0x528d11,_0x1d1aa7(0x134)),_0xa8ebb6=_0x1c0d35[_0x1d1aa7(0x11f)][_0x1d1aa7(0x118)](_0x139554,0x0),_0x3c48ce=_0x57cda1[_0x1d1aa7(0xf6)](_0x528d11,_0x1d2152,{'anchor':_0xa8ebb6,'markDeletions':_0x1f7fbe}),_0x4b1941=_0x3c48ce[_0x1d1aa7(0x13a)]();if(0x0==_0x4b1941[_0x1d1aa7(0x154)])return{'content':_0x219d93[_0x1d1aa7(0x12f)](!0x0),'hasChanges':!0x1};_0x1f7fbe?_0xa14966[_0x1d1aa7(0x143)](_0x4b1941):_0x1c0d35[_0x1d1aa7(0x11f)][_0x1d1aa7(0x133)](_0x3b5cfb=>{const _0x510649=_0x1d1aa7;for(const _0x48c080 of _0x4b1941)if(_0x510649(0xfd)==_0x48c080[_0x510649(0xf4)]){const _0x57efe5=_0x48c080[_0x510649(0x12e)],_0x4eb775=_0x48c080[_0x510649(0x136)],_0x118516=new _0x19b301(_0x57efe5,_0x4eb775);_0x3b5cfb[_0x510649(0x14a)][_0x510649(0x135)](_0x118516),_0x1c0d35[_0x510649(0x11f)][_0x510649(0x10b)](_0x118516);}else{if(_0x510649(0x114)==_0x48c080[_0x510649(0xf4)]){const _0x1e167e=_0x48c080[_0x510649(0x139)],_0x559d8f=_0x48c080[_0x510649(0x142)];_0x139554[_0x510649(0x147)][_0x510649(0x119)](_0x1e167e,_0x559d8f);}else _0x48c080[_0x510649(0x117)]=null,_0x48c080[_0x510649(0xf0)]=!0x1,_0x3b5cfb[_0x510649(0x14a)][_0x510649(0x135)](_0x48c080),_0x1c0d35[_0x510649(0x11f)][_0x510649(0x10b)](_0x48c080);}});if(_0x16d145){const _0x420a37=getMinimalSelection(_0x1c0d35,_0x4b1941,_0x139554);expandSelectionWithContext(_0x1c0d35[_0x1d1aa7(0x11f)],_0x420a37),function(_0x230c3c,_0x594373){const _0x568140=_0x1d1aa7,_0x397c7b=_0x594373[_0x568140(0x13c)]()[_0x568140(0xf2)];let _0x3a10a4=_0x594373[_0x568140(0x13c)]()[_0x568140(0x111)];const _0x58e84c=_0x397c7b[_0x568140(0xff)];(_0x3a10a4[_0x568140(0x12b)]||_0x3a10a4[_0x568140(0x100)]&&_0x3a10a4[_0x568140(0x100)]['is'](_0x568140(0x152)))&&(_0x4c971b(_0x3a10a4,_0x568140(0x122)),_0x3a10a4=_0x3a10a4[_0x568140(0xf9)](0x3)),(_0x397c7b[_0x568140(0x12b)]||_0x397c7b[_0x568140(0x153)]&&_0x397c7b[_0x568140(0x153)]['is'](_0x568140(0x152)))&&(_0x4c971b(_0x397c7b,_0x568140(0x122)),function(_0x7775d0,_0x51678a,_0x37c846){const _0x2a5bac=_0x568140;for(let [_0x438dc9,_0x38335a]of _0x7775d0[_0x2a5bac(0x147)]){const _0x5dac64=_0x38335a[_0x2a5bac(0x132)](_0x51678a,_0x37c846,!0x1);_0x38335a=_0x5dac64[0x0],_0x7775d0[_0x2a5bac(0x147)][_0x2a5bac(0x119)](_0x438dc9,_0x38335a);}}(_0x58e84c,_0x397c7b,0x3),_0x397c7b[_0x568140(0x116)]==_0x3a10a4[_0x568140(0x116)]&&(_0x3a10a4=_0x3a10a4[_0x568140(0xf9)](0x3)));const _0xe97dba=_0x230c3c[_0x568140(0x104)](_0x230c3c[_0x568140(0x118)](_0x58e84c,0x0),_0x397c7b),_0x508840=_0x230c3c[_0x568140(0x104)](_0x3a10a4,_0x230c3c[_0x568140(0x118)](_0x58e84c,_0x568140(0x111))),_0x3be488=[..._0xe97dba[_0x568140(0x11e)](),..._0x508840[_0x568140(0x11e)]()];_0x3be488[_0x568140(0x107)]();for(const _0xd57e6f of _0x3be488)_0x5f250b(_0xd57e6f),_transformMarkersByDeletion(_0x58e84c,_0xd57e6f);}(_0x1c0d35[_0x1d1aa7(0x11f)],_0x420a37);}const _0x525a90=_0x1c0d35[_0x1d1aa7(0x131)][_0x1d1aa7(0x11d)](_0x139554,{'showSuggestionHighlights':!0x0});return{'content':_0x3587b5(_0x525a90),'hasChanges':!0x0};}(_0xb8e3c2,_0x388850,_0x41e420,_0x51977a,_0x45c148);return{'type':_0x559a7b[_0xdd3ff5(0x145)][0x0][_0xdd3ff5(0xf4)],'index':_0x559a7b[_0xdd3ff5(0x148)],'content':_0x3feacf,'hasChanges':_0x4a1f8e};});}export function getMinimalSelection(_0x1a36e3,_0x5f3d36,_0x29a0ed){const _0x2683b8=_0x3557,_0x434253=_0x1a36e3[_0x2683b8(0x130)][_0x2683b8(0x10e)](_0x2683b8(0x121));let _0x26b5ab=_0x1a36e3[_0x2683b8(0x11f)][_0x2683b8(0x118)](_0x29a0ed,Number[_0x2683b8(0x126)]),_0x44980a=_0x1a36e3[_0x2683b8(0x11f)][_0x2683b8(0x118)](_0x29a0ed,0x0);for(const _0x2a6383 of _0x5f3d36){let _0x5d8960,_0x29b2cd;if(_0x434253[_0x2683b8(0x120)](_0x2a6383))_0x5d8960=_0x2a6383[_0x2683b8(0x142)][_0x2683b8(0xf2)],_0x29b2cd=_0x2a6383[_0x2683b8(0x142)][_0x2683b8(0x111)];else switch(_0x26b5ab=_0x26b5ab[_0x2683b8(0xf8)](_0x2a6383),_0x44980a=_0x44980a[_0x2683b8(0xf8)](_0x2a6383),_0x2a6383[_0x2683b8(0xf4)]){case _0x2683b8(0x12c):_0x5d8960=_0x2a6383[_0x2683b8(0x150)],_0x29b2cd=_0x5d8960[_0x2683b8(0xf9)](0x1);break;case _0x2683b8(0x123):case _0x2683b8(0x10a):case _0x2683b8(0x13f):_0x5d8960=_0x2a6383[_0x2683b8(0x12a)][_0x2683b8(0xf2)],_0x29b2cd=_0x2a6383[_0x2683b8(0x12a)][_0x2683b8(0x111)];break;case _0x2683b8(0x11c):_0x5d8960=_0x2a6383[_0x2683b8(0x150)],_0x29b2cd=_0x5d8960[_0x2683b8(0xf9)](_0x2a6383[_0x2683b8(0x136)]);break;case _0x2683b8(0x138):_0x5d8960=_0x2a6383[_0x2683b8(0x12d)],_0x29b2cd=_0x2a6383[_0x2683b8(0x103)];break;case _0x2683b8(0xfa):{const _0x356d50=_0x2a6383[_0x2683b8(0x156)][_0x2683b8(0x109)][_0x2683b8(0x10f)](0x0,-0x1);_0x5d8960=_0x1a36e3[_0x2683b8(0x11f)][_0x2683b8(0x112)](_0x29a0ed,_0x356d50),_0x29b2cd=_0x5d8960[_0x2683b8(0xf9)](0x1);break;}case _0x2683b8(0xfd):{const _0x47b970=_0x2a6383[_0x2683b8(0x136)],_0x4c4c06=_0x2a6383[_0x2683b8(0x12e)][_0x2683b8(0x132)](_0x2a6383[_0x2683b8(0x156)],_0x47b970),_0x2c1392=_0x2a6383[_0x2683b8(0x106)]();_0x2683b8(0xfd)==_0x2a6383[_0x2683b8(0xf4)]?(_0x5d8960=_0x4c4c06,_0x29b2cd=_0x4c4c06):(_0x5d8960=_0x2c1392,_0x29b2cd=_0x2c1392[_0x2683b8(0xf9)](_0x47b970));break;}}_0x5d8960&&_0x5d8960[_0x2683b8(0xfc)](_0x26b5ab)&&(_0x26b5ab=_0x5d8960[_0x2683b8(0x14e)](),_0x26b5ab[_0x2683b8(0x14c)]=_0x2683b8(0xf7)),_0x29b2cd&&_0x29b2cd[_0x2683b8(0x115)](_0x44980a)&&(_0x44980a=_0x29b2cd[_0x2683b8(0x14e)](),_0x44980a[_0x2683b8(0x14c)]=_0x2683b8(0xf7));}return _0x1a36e3[_0x2683b8(0x11f)][_0x2683b8(0x108)](_0x1a36e3[_0x2683b8(0x11f)][_0x2683b8(0x104)](_0x26b5ab,_0x44980a));}function _0x3557(_0x24fc84,_0x2fbd8c){const _0x3a8ede=_0x3a8e();return _0x3557=function(_0x355775,_0x2f6a97){_0x355775=_0x355775-0xf0;let _0xe73b89=_0x3a8ede[_0x355775];return _0xe73b89;},_0x3557(_0x24fc84,_0x2fbd8c);}export function expandSelectionWithContext(_0xd26c14,_0x1ff468){const _0xf53fff=_0x3557;fn(_0xd26c14,_0x1ff468,_0xf53fff(0xfb));const _0x204572=_0x1ff468[_0xf53fff(0x13c)]();_0x1ff468[_0xf53fff(0x149)]([]),_0x1ff468[_0xf53fff(0x149)](_0x204572,{'backward':!0x0}),fn(_0xd26c14,_0x1ff468,_0xf53fff(0x14f));}function _0x3a8e(){const _0x204f35=['end','createPositionFromPath','9gouIYP','marker','isAfter','parent','baseVersion','createPositionAt','set','word','9772HVofAu','insert','stringify','getMinimalFlatRanges','model','isMarkedRemoveOperation','DocumentCompare','...','addAttribute','schema','573032iskmcH','POSITIVE_INFINITY','226524RYGADI','modifySelection','isBlock','range','textNode','rename','splitPosition','sourcePosition','cloneNode','plugins','data','_getTransformedByInsertion','change','$root','addOperation','howMany','500204FhLEDF','split','name','getOperations','element','getFirstRange','parse','focus','changeAttribute','1249906UCGyAK','push','newRange','_applyOperationsAsSuggestions','node','changes','isObject','markers','index','setTo','batch','data-id','stickiness','1199670WmUlug','clone','backward','position','map','$text','nodeBefore','length','1847241qgDczf','targetPosition','isDocumentOperation','3IaOUfg','start','delete','type','5OyUbim','getDiff','toNone','getTransformedByOperation','getShiftedBy','merge','forward','isBefore','remove','removed','root','nodeAfter','children','offset','moveTargetPosition','createRange','_getTransformedByDeletion','getMovedRangeStart','reverse','createSelection','path','removeAttribute','applyOperation','new','TrackChangesEditing','get','slice','11zPxOBF'];_0x3a8e=function(){return _0x204f35;};return _0x3a8e();}function fn(_0x449d68,_0xe51694,_0x1e9e34){const _0x52c2ad=_0x3557;let _0x56c311=0x14;for(;_0x56c311;){_0x449d68[_0x52c2ad(0x128)](_0xe51694,{'unit':_0x52c2ad(0x11a),'direction':_0x1e9e34}),_0x56c311--;const _0x49e4b6=_0xe51694[_0x52c2ad(0x13e)][_0x52c2ad(0xfb)==_0x1e9e34?_0x52c2ad(0x153):_0x52c2ad(0x100)];if(_0x49e4b6&&_0x49e4b6['is'](_0x52c2ad(0x13b))&&_0x449d68[_0x52c2ad(0x124)][_0x52c2ad(0x129)](_0x49e4b6)&&_0x449d68[_0x52c2ad(0x124)][_0x52c2ad(0x146)](_0x49e4b6))break;}}export function _transformMarkersByDeletion(_0x203957,_0x150f26){const _0x2788e3=_0x3557;for(const [_0x3eac13,_0x2acfce]of _0x203957[_0x2788e3(0x147)]){const _0x3ce693=_0x2acfce[_0x2788e3(0x105)](_0x150f26[_0x2788e3(0xf2)],_0x150f26[_0x2788e3(0x111)][_0x2788e3(0x102)]-_0x150f26[_0x2788e3(0xf2)][_0x2788e3(0x102)]);null!=_0x3ce693?_0x203957[_0x2788e3(0x147)][_0x2788e3(0x119)](_0x3eac13,_0x3ce693):_0x203957[_0x2788e3(0x147)][_0x2788e3(0xf3)](_0x3eac13);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x413b1c,_0x434014){const _0x1ba61f=_0x1262,_0x20bfb8=_0x413b1c();while(!![]){try{const _0x664886=-parseInt(_0x1ba61f(0xf2))/0x1*(-parseInt(_0x1ba61f(0xe1))/0x2)+-parseInt(_0x1ba61f(0xda))/0x3+-parseInt(_0x1ba61f(0xef))/0x4*(parseInt(_0x1ba61f(0xdf))/0x5)+-parseInt(_0x1ba61f(0xdb))/0x6+-parseInt(_0x1ba61f(0xe8))/0x7*(parseInt(_0x1ba61f(0xde))/0x8)+parseInt(_0x1ba61f(0xf1))/0x9*(-parseInt(_0x1ba61f(0xdd))/0xa)+parseInt(_0x1ba61f(0xf0))/0xb;if(_0x664886===_0x434014)break;else _0x20bfb8['push'](_0x20bfb8['shift']());}catch(_0x5c6702){_0x20bfb8['push'](_0x20bfb8['shift']());}}}(_0x44b9,0x41e9d));import{parseDocument as _0x5c855c}from'htmlparser2';import{append as _0x55f38e,appendChild as _0x3d09ec,find as _0x371cac,findAll as _0x3ecc86,findOne as _0xff2a04,getChildren as _0x12e87f,isComment as _0x1b8007,isTag as _0x4a2425,prepend as _0x1579b6,prependChild as _0x43a232,removeElement as _0x2a16d3,replaceElement as _0x27b52a,textContent as _0x73dc88,getParent as _0x4ec46d,hasChildren as _0x403568}from'domutils';import _0x266fa5 from'dom-serializer';import{cloneNode as _0x1a8f5d,isDocument as _0x5ba39d,isText as _0x429f24,Element as _0x4a1e6d,Text as _0x318e44,Document as _0x42a976,NodeWithChildren as _0x416e88}from'domhandler';export{_0x1a8f5d as cloneNode,_0x371cac as find,_0xff2a04 as findOne,_0x3ecc86 as findAll,_0x12e87f as getChildren,_0x4ec46d as getParent,_0x1b8007 as isComment,_0x5ba39d as isDocument,_0x4a2425 as isTag,_0x429f24 as isText,_0x55f38e as append,_0x3d09ec as appendChild,_0x1579b6 as prepend,_0x43a232 as prependChild,_0x266fa5 as render,_0x2a16d3 as removeElement,_0x27b52a as replaceElement,_0x73dc88 as textContent,_0x403568 as hasChildren,_0x4a1e6d as Element,_0x42a976 as Document,_0x416e88 as NodeWithChildren,_0x318e44 as Text};export function parse(_0x3ce518){return _0x5c855c(_0x3ce518);}function _0x44b9(){const _0x33f8a9=['8iFfmqO','65uoMGxD','replace','2xFTPbV','cloneNode','attribs','beforebegin','map','reverse','afterend','1830759DVzpip','push','parentNode','indexOf','forEach','afterbegin','nextSibling','70884lVqjKw','20920625IOZnmz','18uWyCAt','259339vIUtrn','beforeend','1530558INMRnn','2616270tjIGcM','slice','2265460TLXtxE'];_0x44b9=function(){return _0x33f8a9;};return _0x44b9();}export function serialize(_0x4fde88){return _0x266fa5(_0x4fde88);}export function findByAttribute(_0x11bc1d,_0x12d76a,_0x3ea35d){const _0x14c537=_0x1262,_0x77ed66=null!==_0x12d76a?_0x10e74c=>_0x10e74c[_0x14c537(0xe3)][_0x11bc1d]===_0x12d76a:_0x1de466=>Boolean(_0x1de466[_0x14c537(0xe3)][_0x11bc1d]);return _0xff2a04(_0x10795a=>_0x4a2425(_0x10795a)&&_0x77ed66(_0x10795a),_0x3ea35d);}export function findAllByAttribute(_0x34dd72,_0x3d285b,_0x570f23){const _0x53192a=_0x1262,_0x975dcc=null!==_0x3d285b?_0x49caf8=>_0x49caf8[_0x53192a(0xe3)][_0x34dd72]===_0x3d285b:_0x5ba830=>Boolean(_0x5ba830[_0x53192a(0xe3)][_0x34dd72]);return _0x3ecc86(_0x35df22=>_0x4a2425(_0x35df22)&&_0x975dcc(_0x35df22),_0x570f23);}export function findAllComments(_0x3ff5ea){return _0x371cac(_0x4f28a5=>_0x1b8007(_0x4f28a5),_0x3ff5ea,!0x0,0x1/0x0);}function _0x1262(_0x512736,_0x311faf){const _0x44b9ce=_0x44b9();return _0x1262=function(_0x12627a,_0x5be0e2){_0x12627a=_0x12627a-0xda;let _0x5aa8ae=_0x44b9ce[_0x12627a];return _0x5aa8ae;},_0x1262(_0x512736,_0x311faf);}export function getAttribute(_0x4d0cd6,_0x4dc79a){const _0x19d0db=_0x1262;return _0x4d0cd6&&_0x4a2425(_0x4d0cd6)?_0x4d0cd6[_0x19d0db(0xe3)][_0x4dc79a]:null;}export function setAttribute(_0x14b94a,_0x52a31a,_0xec282b){const _0x1ddfe3=_0x1262;_0x4a2425(_0x14b94a)&&(null===_0xec282b?delete _0x14b94a[_0x1ddfe3(0xe3)][_0x52a31a]:_0x14b94a[_0x1ddfe3(0xe3)][_0x52a31a]=_0xec282b);}export function insertElement(_0x896ab7,_0x5407a7,_0x56a8fb){const _0x24e62c=_0x1262,_0x2bedce=_0x5407a7[_0x24e62c(0xe2)](!0x0);_0x24e62c(0xe4)===_0x56a8fb?_0x1579b6(_0x896ab7,_0x2bedce):_0x24e62c(0xed)===_0x56a8fb?_0x43a232(_0x896ab7,_0x2bedce):_0x24e62c(0xf3)===_0x56a8fb?_0x3d09ec(_0x896ab7,_0x2bedce):_0x24e62c(0xe7)===_0x56a8fb&&_0x55f38e(_0x896ab7,_0x2bedce);}export function moveElement(_0x3e8e3a,_0x3ca3b1){_0x2a16d3(_0x3e8e3a),_0x27b52a(_0x3ca3b1,_0x3e8e3a);}export function clone(_0x54a3c9){const _0x746c2a=_0x1262;return _0x54a3c9[_0x746c2a(0xe2)](!0x0);}export function getParents(_0x2551ea){const _0x50440a=_0x1262,_0x1a2aa6=[];let _0xab7bff=_0x2551ea;for(;_0xab7bff;)_0xab7bff=_0x4ec46d(_0xab7bff),_0xab7bff&&_0x1a2aa6[_0x50440a(0xe9)](_0xab7bff);return _0x1a2aa6;}export function normalizeHTML(_0x3895fd){const _0x3424d1=_0x1262;return _0x3895fd[_0x3424d1(0xe0)](/^\s+/gm,'')[_0x3424d1(0xe0)](/\s+$/gm,'')[_0x3424d1(0xe0)](/\n*/g,'')[_0x3424d1(0xe0)](/\s+/g,'\x20')[_0x3424d1(0xe0)](/>\s*</g,'><');}export function areNodesSame(_0x14dea5,_0x22d976){return normalizeHTML(serialize(_0x14dea5))===normalizeHTML(serialize(_0x22d976));}export function getNodeNestingLevel(_0xc0489f){const _0x3d199f=_0x1262;let _0x45b69d=0x0;for(;_0xc0489f[_0x3d199f(0xea)];)_0xc0489f=_0xc0489f[_0x3d199f(0xea)],_0x45b69d++;return _0x45b69d;}export function removeElementsAfter(_0xe8d3e6){const _0x2428fa=_0x1262,_0x44cc70=[];let _0x266edf=_0xe8d3e6[_0x2428fa(0xee)];for(;_0x266edf;)_0x44cc70[_0x2428fa(0xe9)](_0x266edf),_0x266edf=_0x266edf[_0x2428fa(0xee)];_0x44cc70[_0x2428fa(0xec)](_0x3498e4=>{_0x2a16d3(_0x3498e4);});}export function getNodePath(_0x42453e){const _0x1f92b0=_0x1262;return[_0x42453e,...getParents(_0x42453e)][_0x1f92b0(0xdc)](0x0,-0x1)[_0x1f92b0(0xe5)](_0x1465bf=>{const _0x399f06=_0x1f92b0,_0x542887=_0x4ec46d(_0x1465bf);return _0x12e87f(_0x542887)[_0x399f06(0xeb)](_0x1465bf);})[_0x1f92b0(0xe6)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x22ed(_0x471e6a,_0x248d00){const _0xdcb2be=_0xdcb2();return _0x22ed=function(_0x22ed3f,_0x40adf1){_0x22ed3f=_0x22ed3f-0xfe;let _0xf0105=_0xdcb2be[_0x22ed3f];return _0xf0105;},_0x22ed(_0x471e6a,_0x248d00);}const _0x46b173=_0x22ed;(function(_0x49193b,_0xd6077b){const _0xf1c936=_0x22ed,_0x3555c0=_0x49193b();while(!![]){try{const _0x44d112=-parseInt(_0xf1c936(0x111))/0x1*(-parseInt(_0xf1c936(0x12c))/0x2)+parseInt(_0xf1c936(0x118))/0x3+-parseInt(_0xf1c936(0x123))/0x4+-parseInt(_0xf1c936(0x120))/0x5*(parseInt(_0xf1c936(0x10c))/0x6)+parseInt(_0xf1c936(0x114))/0x7+-parseInt(_0xf1c936(0x11e))/0x8*(-parseInt(_0xf1c936(0x107))/0x9)+-parseInt(_0xf1c936(0x121))/0xa;if(_0x44d112===_0xd6077b)break;else _0x3555c0['push'](_0x3555c0['shift']());}catch(_0x37eebe){_0x3555c0['push'](_0x3555c0['shift']());}}}(_0xdcb2,0x47443));import _0x235c4a from'morphdom';import{NodeWithChildren as _0xa31e38,Text as _0x193fba,Element as _0x56752e,isText as _0x530962,isDocument as _0xc28f31,isTag as _0x138037,cloneNode as _0x4e47cf,getChildren as _0x4d91bc,prepend as _0x52e201,removeElement as _0x2d16f1,textContent as _0xc48c8f,render as _0x1ccdae}from'./htmlparser.js';import{logWarning as _0x2f4844}from'ckeditor5/src/utils.js';export class HTMLStreamer{[_0x46b173(0x10b)];[_0x46b173(0x10e)]=!0x1;[_0x46b173(0x10d)]=null;[_0x46b173(0x101)]=[];[_0x46b173(0x124)]=0x0;[_0x46b173(0x125)]=null;constructor(_0x31d906){const _0x494db6=_0x46b173;this[_0x494db6(0x10b)]={'delay':_0x31d906[_0x494db6(0x139)]??0x14,'textNodeStyle':_0x31d906[_0x494db6(0xfe)],'onStreamUpdate':_0x31d906[_0x494db6(0x12a)]||(()=>{})};}async[_0x46b173(0x137)]({document:_0x189d46,targetElement:_0x347f2c,abortSignal:_0x577776}){const _0x30f2ab=_0x46b173;this[_0x30f2ab(0x10e)]&&this[_0x30f2ab(0x127)](),_0x577776?.[_0x30f2ab(0x122)](_0x30f2ab(0x128),this[_0x30f2ab(0x127)][_0x30f2ab(0x117)](this)),this[_0x30f2ab(0x10d)]=_0x4e47cf(_0x189d46,!0x0),this[_0x30f2ab(0x101)]=this[_0x30f2ab(0x135)](),this[_0x30f2ab(0x10e)]=!0x0,this[_0x30f2ab(0x124)]>this[_0x30f2ab(0x101)][_0x30f2ab(0x109)]&&(_0x2f4844(_0x30f2ab(0x12b),{'currentIndex':this[_0x30f2ab(0x124)],'nodeList':this[_0x30f2ab(0x101)]}),this[_0x30f2ab(0x124)]=this[_0x30f2ab(0x101)][_0x30f2ab(0x109)]);for(let _0x4c79f6=0x0;_0x4c79f6<this[_0x30f2ab(0x124)];_0x4c79f6++)this[_0x30f2ab(0x101)][_0x4c79f6][_0x30f2ab(0x108)]=!0x0;let _0x68fae8=0x0;for(let _0xff4dbf=this[_0x30f2ab(0x124)];_0xff4dbf<this[_0x30f2ab(0x101)][_0x30f2ab(0x109)];_0xff4dbf++){const _0x18aabf=Date[_0x30f2ab(0x113)](),_0x5e08f3=this[_0x30f2ab(0x101)][_0xff4dbf],_0x2dcd25=_0x18aabf-_0x68fae8;_0x5e08f3[_0x30f2ab(0x108)]=!0x0;let _0x140b01=_0x5e08f3[_0x30f2ab(0x102)];for(;_0x140b01;)_0x140b01[_0x30f2ab(0x108)]=!0x0,_0x140b01=_0x140b01[_0x30f2ab(0x102)];if(_0x2dcd25<this[_0x30f2ab(0x10b)][_0x30f2ab(0x139)])try{const {promise:_0x2c9c6e,abortController:_0x94adaa}=mr(this[_0x30f2ab(0x10b)][_0x30f2ab(0x139)]-_0x2dcd25);this[_0x30f2ab(0x125)]=_0x94adaa,await _0x2c9c6e;}catch(_0x11f39d){return;}_0x235c4a(_0x347f2c,'<'+_0x347f2c[_0x30f2ab(0x132)]+'>'+this[_0x30f2ab(0x104)](this[_0x30f2ab(0x10d)])+'</'+_0x347f2c[_0x30f2ab(0x132)]+'>',{'childrenOnly':!0x0}),this[_0x30f2ab(0x10b)][_0x30f2ab(0x12a)]&&this[_0x30f2ab(0x10b)][_0x30f2ab(0x12a)](),this[_0x30f2ab(0x124)]=_0xff4dbf,_0x68fae8=Date[_0x30f2ab(0x113)]();}this[_0x30f2ab(0x10e)]=!0x1;}[_0x46b173(0x100)]({targetElement:_0x2194ff}){const _0x4444f8=_0x46b173;Array[_0x4444f8(0x105)](_0x2194ff[_0x4444f8(0x10a)](_0x4444f8(0x133)))[_0x4444f8(0x112)]()[_0x4444f8(0x103)](_0x48ba45=>{const _0x4a5282=_0x4444f8;_0x48ba45[_0x4a5282(0x12e)](_0x48ba45[_0x4a5282(0x12d)][0x0]);});}[_0x46b173(0x127)](){const _0x30eebc=_0x46b173;this[_0x30eebc(0x10e)]=!0x1,this[_0x30eebc(0x125)]&&(this[_0x30eebc(0x125)][_0x30eebc(0x128)](),this[_0x30eebc(0x125)]=null);}[_0x46b173(0x104)](_0x55db1d){const _0x9d4076=_0x46b173;let _0x5e5cf4='';if(function(_0x2c0225){return _0xc28f31(_0x2c0225);}(_0x55db1d)){for(const _0xcd25a3 of _0x55db1d[_0x9d4076(0xff)])_0x5e5cf4+=this[_0x9d4076(0x104)](_0xcd25a3);}else{if(ar(_0x55db1d)){if(!_0x55db1d[_0x9d4076(0x108)])return'';const _0xc5e877=_0x55db1d,_0x4fed1a=Object[_0x9d4076(0x11c)](_0xc5e877[_0x9d4076(0x11d)])[_0x9d4076(0x126)](([_0x59dd8a,_0x29538b])=>_0x59dd8a+'=\x22'+_0x29538b+'\x22')[_0x9d4076(0x129)]('\x20');_0x5e5cf4+='<'+_0xc5e877[_0x9d4076(0x132)]+(_0x4fed1a?'\x20'+_0x4fed1a:'')+'>';for(const _0x5144eb of _0x4d91bc(_0xc5e877))_0x5e5cf4+=this[_0x9d4076(0x104)](_0x5144eb);_0x5e5cf4+='</'+_0xc5e877[_0x9d4076(0x132)]+'>';}else{if(!cr(_0x55db1d))return'';if(!_0x55db1d[_0x9d4076(0x108)])return'';!function(_0x330cca){const _0x408a2c=_0x9d4076;if(!_0x330cca[_0x408a2c(0x102)]||!ar(_0x330cca[_0x408a2c(0x102)]))return!0x1;if(!hr[_0x408a2c(0x110)](_0x330cca[_0x408a2c(0x102)][_0x408a2c(0x132)]))return!0x1;return!_0xc48c8f(_0x330cca)[_0x408a2c(0x115)](/^\s*[<>]\s*$/);}(_0x55db1d)?_0x5e5cf4+=_0x1ccdae(_0x55db1d):_0x5e5cf4+=_0x1ccdae(new _0x56752e(_0x9d4076(0x130),{'data-ck-html-streamer-word-chunk':'','style':this[_0x9d4076(0x10b)][_0x9d4076(0xfe)]},[_0x55db1d]));}}return _0x5e5cf4;}[_0x46b173(0x135)](){const _0x33e2f5=_0x46b173,_0x44ce9d=[];return function(_0x39d222,_0x572687){const _0x546726=_0x22ed,_0x36e81e=_0x546c3b=>{const _0x2a1a0d=_0x22ed;if(_0x572687(_0x546c3b),_0x546c3b instanceof _0xa31e38)for(let _0x555f63=0x0;_0x555f63<_0x546c3b[_0x2a1a0d(0xff)][_0x2a1a0d(0x109)];_0x555f63++){const _0x1e9fee=_0x546c3b[_0x2a1a0d(0xff)][_0x555f63];_0x36e81e(_0x1e9fee);}};for(let _0x1cd6ff=0x0;_0x1cd6ff<_0x39d222[_0x546726(0xff)][_0x546726(0x109)];_0x1cd6ff++)_0x36e81e(_0x39d222[_0x546726(0xff)][_0x1cd6ff]);}(this[_0x33e2f5(0x10d)],_0x4dc1fb=>{const _0x503d04=_0x33e2f5;if(cr(_0x4dc1fb)){const _0x43079d=this[_0x503d04(0x11a)](_0x4dc1fb);_0x43079d[_0x503d04(0x109)]&&_0x44ce9d[_0x503d04(0x10f)](..._0x43079d);}_0x4dc1fb[_0x503d04(0x119)]||_0x4dc1fb[_0x503d04(0x116)]||_0x44ce9d[_0x503d04(0x10f)](_0x4dc1fb);}),_0x44ce9d;}[_0x46b173(0x11a)](_0x5c122f){const _0x14c05a=_0x46b173;if(_0x5c122f[_0x14c05a(0x119)]||_0x5c122f[_0x14c05a(0x116)])return[];const _0x69f502=_0xc48c8f(_0x5c122f)[_0x14c05a(0x115)](/(?:\s*\S+\s*)/g),_0x2e5ecf=[];if(_0x69f502&&_0x69f502[_0x14c05a(0x109)]>0x1){for(const _0x594877 of _0x69f502){const _0xab975a=new _0x193fba(_0x594877);_0xab975a[_0x14c05a(0x116)]=!0x0,_0x52e201(_0x5c122f,_0xab975a),_0x2e5ecf[_0x14c05a(0x10f)](_0xab975a);}_0x5c122f[_0x14c05a(0x119)]=!0x0,_0x2d16f1(_0x5c122f);}return _0x2e5ecf;}}const hr=['p','li','td','th',_0x46b173(0x130),'h1','h2','h3','h4','h5','h6','b',_0x46b173(0x13a),'i','em',_0x46b173(0x11b),_0x46b173(0x136),_0x46b173(0x131),_0x46b173(0x106),_0x46b173(0x138),'a',_0x46b173(0x12f),_0x46b173(0x11f)];function _0xdcb2(){const _0x3b4b11=['sup','68463OcCQru','shouldBeStreamed','length','querySelectorAll','options','1182nphojB','document','isStreaming','push','includes','653qLYaPC','reverse','now','2620667ByequC','match','isWordSplitResult','bind','1678800XDFzDz','isWordSplitSource','splitTextNodeIntoWordNodes','mark','entries','attribs','72azxedM','div','11065QhpqbX','897140UKWtvm','addEventListener','1682380YzGcDF','currentIndex','timeoutAbortController','map','stop','abort','join','onStreamUpdate','ai-html-streamer-current-index-out-of-bounds','722BgyVrx','childNodes','replaceWith','code','span','ins','tagName','span[data-ck-html-streamer-word-chunk]','signal','getParsedDocumentNodeList','del','stream','sub','delay','strong','textNodeStyle','children','cleanUpAnimations','nodesList','parent','forEach','renderNode','from'];_0xdcb2=function(){return _0x3b4b11;};return _0xdcb2();}function cr(_0x2cd95f){return _0x530962(_0x2cd95f);}function ar(_0x2b2629){return _0x138037(_0x2b2629);}function mr(_0x2c4b54){const _0x53bc88=new AbortController();return{'promise':new Promise((_0x3fdb04,_0x39a508)=>{const _0x596a6b=_0x22ed,_0x4b0b28=setTimeout(_0x3fdb04,_0x2c4b54);_0x53bc88[_0x596a6b(0x134)][_0x596a6b(0x122)](_0x596a6b(0x128),()=>{clearTimeout(_0x4b0b28),_0x39a508();});}),'abortController':_0x53bc88};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x468005=_0x26ca;(function(_0x3022ee,_0x1f9844){var _0x33c2da=_0x26ca,_0x11d54=_0x3022ee();while(!![]){try{var _0x1bbeed=parseInt(_0x33c2da(0x6c))/0x1*(-parseInt(_0x33c2da(0x65))/0x2)+-parseInt(_0x33c2da(0x72))/0x3+parseInt(_0x33c2da(0x6b))/0x4+parseInt(_0x33c2da(0x6a))/0x5*(-parseInt(_0x33c2da(0x70))/0x6)+parseInt(_0x33c2da(0x6e))/0x7*(parseInt(_0x33c2da(0x74))/0x8)+-parseInt(_0x33c2da(0x68))/0x9*(parseInt(_0x33c2da(0x66))/0xa)+parseInt(_0x33c2da(0x69))/0xb*(parseInt(_0x33c2da(0x67))/0xc);if(_0x1bbeed===_0x1f9844)break;else _0x11d54['push'](_0x11d54['shift']());}catch(_0x351dbc){_0x11d54['push'](_0x11d54['shift']());}}}(_0xa6ab,0xedb16));function _0x26ca(_0x528152,_0x39ea69){var _0xa6abe4=_0xa6ab();return _0x26ca=function(_0x26cadb,_0x4c0c7b){_0x26cadb=_0x26cadb-0x65;var _0x4e2513=_0xa6abe4[_0x26cadb];return _0x4e2513;},_0x26ca(_0x528152,_0x39ea69);}import{Plugin as _0x4f5fe9}from'ckeditor5/src/core.js';function _0xa6ab(){var _0x523695=['2157804ynipCy','isPremiumPlugin','43336VwnprB','AIEditorIntegration','1784886jOFRgq','10OeisQw','444hcYnzS','728163vDkfYq','462044OcVkgs','487765LtnLJt','4037676XYiwUR','1umsoQg','isOfficialPlugin','889IOTeVP','pluginName','36QuZJZc','requires'];_0xa6ab=function(){return _0x523695;};return _0xa6ab();}import{AIToggleButtonUI as _0x18282b}from'./aitogglebutton/aitogglebuttonui.js';export class AIEditorIntegration extends _0x4f5fe9{static get[_0x468005(0x71)](){return[_0x18282b];}static get[_0x468005(0x6f)](){var _0x2f4468=_0x468005;return _0x2f4468(0x75);}static get[_0x468005(0x6d)](){return!0x0;}static get[_0x468005(0x73)](){return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xa90a59=_0x3a6a;(function(_0x1e7b9e,_0x18e24d){const _0xebd02e=_0x3a6a,_0x4c3dbc=_0x1e7b9e();while(!![]){try{const _0x3ad8bf=parseInt(_0xebd02e(0x108))/0x1*(parseInt(_0xebd02e(0x117))/0x2)+parseInt(_0xebd02e(0x129))/0x3*(parseInt(_0xebd02e(0x112))/0x4)+-parseInt(_0xebd02e(0x116))/0x5*(parseInt(_0xebd02e(0x10f))/0x6)+-parseInt(_0xebd02e(0x125))/0x7+parseInt(_0xebd02e(0x10e))/0x8*(-parseInt(_0xebd02e(0x126))/0x9)+-parseInt(_0xebd02e(0x109))/0xa*(parseInt(_0xebd02e(0x11a))/0xb)+parseInt(_0xebd02e(0x121))/0xc;if(_0x3ad8bf===_0x18e24d)break;else _0x4c3dbc['push'](_0x4c3dbc['shift']());}catch(_0xeb4e2c){_0x4c3dbc['push'](_0x4c3dbc['shift']());}}}(_0x20dd,0xf3d7f));import{Plugin as _0x47266e}from'ckeditor5/src/core.js';import{ToggleAICommand as _0x1d0718}from'./toggleaicommand.js';import{ButtonView as _0x14cf57,MenuBarMenuListItemButtonView as _0x4b0e26}from'ckeditor5/src/ui.js';function _0x3a6a(_0x349389,_0x1ff02a){const _0x20dddb=_0x20dd();return _0x3a6a=function(_0x3a6a4a,_0x5ccc29){_0x3a6a4a=_0x3a6a4a-0x106;let _0x4ff7b9=_0x20dddb[_0x3a6a4a];return _0x4ff7b9;},_0x3a6a(_0x349389,_0x1ff02a);}import{IconAIAskAI as _0x207c7b}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x44d050}from'../../aicore/utils/common-translations.js';import{AITabs as _0x228e2c}from'../../aitabs/aitabs.js';function _0x20dd(){const _0x229bab=['isEnabled','isOfficialPlugin','listenTo','2283296rHUzLT','4375908eqotCI','requires','execute','148BnCHNu','locale','editor','AIToggleButtonUI','5CRriwb','260432NomBIE','bind','set','11tCBXKC','add','commands','AI_TOGGLE_BUTTON_LABEL','init','_createAIUIButton','isOn','48660480tMJdEy','menuBar:toggleAi','componentFactory','value','9074534GcZpOf','9CnrJEo','isPremiumPlugin','toggleAi','3954NfjzDj','ck-ai-toggle-button','pluginName','get','1FiOoxE','9241470HvjNIr','menuitemcheckbox'];_0x20dd=function(){return _0x229bab;};return _0x20dd();}import'../../../theme/aieditorintegration/aitogglebutton.css';export class AIToggleButtonUI extends _0x47266e{static get[_0xa90a59(0x110)](){return[_0x228e2c];}static get[_0xa90a59(0x106)](){const _0x5ae35a=_0xa90a59;return _0x5ae35a(0x115);}static get[_0xa90a59(0x10c)](){return!0x0;}static get[_0xa90a59(0x127)](){return!0x0;}[_0xa90a59(0x11e)](){const _0xd1c693=_0xa90a59,_0x551777=this[_0xd1c693(0x114)];_0x551777[_0xd1c693(0x11c)][_0xd1c693(0x11b)](_0xd1c693(0x128),new _0x1d0718(_0x551777)),_0x551777['ui'][_0xd1c693(0x123)][_0xd1c693(0x11b)](_0xd1c693(0x128),()=>{const _0x17e165=_0xd1c693,_0x2c93b0=this[_0x17e165(0x11f)](_0x14cf57);return _0x2c93b0[_0x17e165(0x119)]({'tooltip':!0x0,'class':_0x17e165(0x12a)}),_0x2c93b0;}),_0x551777['ui'][_0xd1c693(0x123)][_0xd1c693(0x11b)](_0xd1c693(0x122),()=>{const _0x432e3c=_0xd1c693,_0x492187=this[_0x432e3c(0x11f)](_0x4b0e26);return _0x492187[_0x432e3c(0x119)]({'role':_0x432e3c(0x10a)}),_0x492187;});}[_0xa90a59(0x11f)](_0x7d885f){const _0x33289d=_0xa90a59,_0x5356eb=this[_0x33289d(0x114)],_0x2d8744=_0x5356eb[_0x33289d(0x11c)][_0x33289d(0x107)](_0x33289d(0x128)),_0x4632d9=new _0x7d885f(_0x5356eb[_0x33289d(0x113)]);return _0x4632d9[_0x33289d(0x119)]({'label':_0x44d050(_0x5356eb[_0x33289d(0x113)],_0x33289d(0x11d)),'icon':_0x207c7b,'isToggleable':!0x0}),_0x4632d9[_0x33289d(0x118)](_0x33289d(0x10b))['to'](_0x2d8744),_0x4632d9[_0x33289d(0x118)](_0x33289d(0x120))['to'](_0x2d8744,_0x33289d(0x124),_0x353863=>!!_0x353863),this[_0x33289d(0x10d)](_0x4632d9,_0x33289d(0x111),()=>{const _0x2d4768=_0x33289d;_0x2d8744[_0x2d4768(0x111)]();}),_0x4632d9;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x111024=_0x4503;(function(_0x788f42,_0x47ad7d){const _0x48c37c=_0x4503,_0x3bb86c=_0x788f42();while(!![]){try{const _0x3f3d9a=-parseInt(_0x48c37c(0x170))/0x1*(parseInt(_0x48c37c(0x166))/0x2)+parseInt(_0x48c37c(0x169))/0x3*(-parseInt(_0x48c37c(0x16d))/0x4)+parseInt(_0x48c37c(0x16a))/0x5*(-parseInt(_0x48c37c(0x15e))/0x6)+-parseInt(_0x48c37c(0x168))/0x7*(parseInt(_0x48c37c(0x165))/0x8)+-parseInt(_0x48c37c(0x164))/0x9*(-parseInt(_0x48c37c(0x15f))/0xa)+-parseInt(_0x48c37c(0x15a))/0xb+-parseInt(_0x48c37c(0x15c))/0xc*(-parseInt(_0x48c37c(0x16b))/0xd);if(_0x3f3d9a===_0x47ad7d)break;else _0x3bb86c['push'](_0x3bb86c['shift']());}catch(_0xc217dc){_0x3bb86c['push'](_0x3bb86c['shift']());}}}(_0xd4ea,0xa86fb));function _0x4503(_0x417650,_0x3b4872){const _0xd4ea43=_0xd4ea();return _0x4503=function(_0x45038e,_0x197ea2){_0x45038e=_0x45038e-0x15a;let _0x598b70=_0xd4ea43[_0x45038e];return _0x598b70;},_0x4503(_0x417650,_0x3b4872);}import{Command as _0xf949ca}from'ckeditor5/src/core.js';export class ToggleAICommand extends _0xf949ca{constructor(_0xeb2ac2){const _0x49556f=_0x4503;super(_0xeb2ac2);const _0x427b04=_0xeb2ac2[_0x49556f(0x167)][_0x49556f(0x16e)](_0x49556f(0x15b))[_0x49556f(0x16f)];this[_0x49556f(0x162)](_0x49556f(0x16c))['to'](_0x427b04,_0x49556f(0x15d)),this[_0x49556f(0x161)]=!0x0;}[_0x111024(0x163)](){const _0x5831b4=_0x111024,_0x5f155f=this[_0x5831b4(0x160)][_0x5831b4(0x167)][_0x5831b4(0x16e)](_0x5831b4(0x15b))[_0x5831b4(0x16f)];_0x5f155f[_0x5831b4(0x15d)]=!_0x5f155f[_0x5831b4(0x15d)];}}function _0xd4ea(){const _0x4c1bbf=['1827570JgVxfO','editor','isEnabled','bind','execute','27MYdmGT','16fzelwU','1948WhJnsb','plugins','2238796vkAdAN','153138edyrLY','5245585hwuQzD','45175ZoDmjx','value','64KDzMUq','get','view','1256KBaBIY','2568258PKHvVz','AITabs','14172FTinBl','isVisible','6rsvWei'];_0xd4ea=function(){return _0x4c1bbf;};return _0xd4ea();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1f7694=_0x4f84;function _0x41f1(){var _0x443a20=['44uRKNPZ','18uWDGfU','isOfficialPlugin','pluginName','24ExPxBY','242448Yhwrjg','4Jnrqwl','59432jAELiI','199659CsYyUS','50592lQFzrn','340570EvRWjt','AIQuickActions','define','14287unwrmn','config','157105pRCVCB','requires','isPremiumPlugin','472xaueoG','ai.quickActions'];_0x41f1=function(){return _0x443a20;};return _0x41f1();}(function(_0x4fd700,_0xc24b2){var _0x4ef900=_0x4f84,_0x4a6e5b=_0x4fd700();while(!![]){try{var _0x3f6005=parseInt(_0x4ef900(0x171))/0x1+parseInt(_0x4ef900(0x16f))/0x2+-parseInt(_0x4ef900(0x170))/0x3*(parseInt(_0x4ef900(0x16e))/0x4)+-parseInt(_0x4ef900(0x177))/0x5*(-parseInt(_0x4ef900(0x180))/0x6)+parseInt(_0x4ef900(0x175))/0x7*(parseInt(_0x4ef900(0x17a))/0x8)+parseInt(_0x4ef900(0x17d))/0x9*(-parseInt(_0x4ef900(0x172))/0xa)+-parseInt(_0x4ef900(0x17c))/0xb*(parseInt(_0x4ef900(0x16d))/0xc);if(_0x3f6005===_0xc24b2)break;else _0x4a6e5b['push'](_0x4a6e5b['shift']());}catch(_0x198422){_0x4a6e5b['push'](_0x4a6e5b['shift']());}}}(_0x41f1,0x1b150));import{Plugin as _0x3e253a}from'ckeditor5/src/core.js';import{AIQuickActionsUI as _0x3d37c2}from'./aiquickactionsui.js';function _0x4f84(_0x2d679e,_0x23c032){var _0x41f117=_0x41f1();return _0x4f84=function(_0x4f84d1,_0xd12949){_0x4f84d1=_0x4f84d1-0x16d;var _0x57df24=_0x41f117[_0x4f84d1];return _0x57df24;},_0x4f84(_0x2d679e,_0x23c032);}import{AIQuickActionsEditing as _0x565044}from'./aiquickactionsediting.js';import{AIActions as _0x235e8c}from'../aiactions/aiactions.js';export class AIQuickActions extends _0x3e253a{static get[_0x1f7694(0x178)](){return[_0x3d37c2,_0x565044,_0x235e8c];}static get[_0x1f7694(0x17f)](){var _0x42f5c5=_0x1f7694;return _0x42f5c5(0x173);}static get[_0x1f7694(0x17e)](){return!0x0;}static get[_0x1f7694(0x179)](){return!0x0;}constructor(_0xeb2103){var _0x801503=_0x1f7694;super(_0xeb2103),_0xeb2103[_0x801503(0x176)][_0x801503(0x174)](_0x801503(0x17b),{'extraCommands':[],'removeCommands':[]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x1e4e(_0x11fbd,_0x324f69){const _0x207100=_0x2071();return _0x1e4e=function(_0x1e4eac,_0x2c5f97){_0x1e4eac=_0x1e4eac-0xc3;let _0x570e36=_0x207100[_0x1e4eac];return _0x570e36;},_0x1e4e(_0x11fbd,_0x324f69);}function _0x2071(){const _0x4f9c3d=['addSelectionToChatContext','label','selection','_handleAIActionsAction','change','handleAIReviewAction','execute','7731504lDYGEJ','_handleAIChatAction','10nsORRO','setSelection','getLimitElement','isCollapsed','activateTab','4530075aIpohV','type','AIChatController','editor','AIChat','executeAction','129647RmDwLi','icon','getSelectedBlocks','_expandSelectionIfCollapsed','document','has','2aRsbFn','get','actionName','AITabs','locale','schema','7931718LeEawJ','displayedPrompt','6732PeSLYH','550437rzIuoR','model','view','AIActions','246JmMZYo','CHAT','startConversation','plugins','_handleAIReviewAction','48411605WaWZcI','ai-quick-actions-plugin-not-found','parent','prompt','_handleAIActionsActionLabel','log','ACTION','focusPromptInput','1623ZzjPek','chat','AIReviewMode','removeSelectionFromChatContext','other','sendMessage','AI_QUICK_ACTIONS_PLUGIN_NOT_FOUND','REVIEW','args','ask-ai'];_0x2071=function(){return _0x4f9c3d;};return _0x2071();}const _0x215385=_0x1e4e;(function(_0x5612bc,_0x426205){const _0x4018cd=_0x1e4e,_0x51799c=_0x5612bc();while(!![]){try{const _0x54385d=parseInt(_0x4018cd(0xfe))/0x1*(parseInt(_0x4018cd(0xf5))/0x2)+-parseInt(_0x4018cd(0xd1))/0x3*(parseInt(_0x4018cd(0xfd))/0x4)+-parseInt(_0x4018cd(0xe9))/0x5+-parseInt(_0x4018cd(0xc4))/0x6*(parseInt(_0x4018cd(0xef))/0x7)+-parseInt(_0x4018cd(0xe2))/0x8+parseInt(_0x4018cd(0xfb))/0x9*(-parseInt(_0x4018cd(0xe4))/0xa)+parseInt(_0x4018cd(0xc9))/0xb;if(_0x54385d===_0x426205)break;else _0x51799c['push'](_0x51799c['shift']());}catch(_0x1db2f7){_0x51799c['push'](_0x51799c['shift']());}}}(_0x2071,0x80e01));import{Command as _0x26d089}from'ckeditor5/src/core.js';import{CKEditorError as _0x1c0a61,first as _0x31b843}from'ckeditor5/src/utils.js';import{AIQuickActionType as _0x5eebb2}from'./aiquickactionsui.js';import{getTranslation as _0x56805a}from'../aicore/utils/common-translations.js';export class AIQuickActionsCommand extends _0x26d089{[_0x215385(0xe1)](_0x3a5646){const _0x2ddbd5=_0x215385;switch(this[_0x2ddbd5(0xf2)](),_0x3a5646[_0x2ddbd5(0xea)]){case _0x5eebb2[_0x2ddbd5(0xc5)]:if(!this[_0x2ddbd5(0xec)][_0x2ddbd5(0xc7)][_0x2ddbd5(0xf4)](_0x2ddbd5(0xed))){const _0x1dd512=_0x56805a(this[_0x2ddbd5(0xec)][_0x2ddbd5(0xf9)],_0x2ddbd5(0xd7),_0x2ddbd5(0xed));throw new _0x1c0a61(_0x2ddbd5(0xca),this[_0x2ddbd5(0xec)],{'errorMessage':_0x1dd512});}this[_0x2ddbd5(0xe3)](_0x3a5646);break;case _0x5eebb2[_0x2ddbd5(0xcf)]:if(!this[_0x2ddbd5(0xec)][_0x2ddbd5(0xc7)][_0x2ddbd5(0xf4)](_0x2ddbd5(0xc3))){const _0xc358a0=_0x56805a(this[_0x2ddbd5(0xec)][_0x2ddbd5(0xf9)],_0x2ddbd5(0xd7),_0x2ddbd5(0xc3));throw new _0x1c0a61(_0x2ddbd5(0xca),this[_0x2ddbd5(0xec)],{'errorMessage':_0xc358a0});}this[_0x2ddbd5(0xde)](_0x3a5646);break;case _0x5eebb2[_0x2ddbd5(0xd8)]:if(!this[_0x2ddbd5(0xec)][_0x2ddbd5(0xc7)][_0x2ddbd5(0xf4)](_0x2ddbd5(0xd3))){const _0x1db025=_0x56805a(this[_0x2ddbd5(0xec)][_0x2ddbd5(0xf9)],_0x2ddbd5(0xd7),_0x2ddbd5(0xd3));throw new _0x1c0a61(_0x2ddbd5(0xca),this[_0x2ddbd5(0xec)],{'errorMessage':_0x1db025});}this[_0x2ddbd5(0xc8)](_0x3a5646);}}async[_0x215385(0xe3)](_0x5ececc){const _0x6e3961=_0x215385,_0x336089=this[_0x6e3961(0xec)][_0x6e3961(0xc7)][_0x6e3961(0xf6)](_0x6e3961(0xed)),_0x104a0d=this[_0x6e3961(0xec)][_0x6e3961(0xc7)][_0x6e3961(0xf6)](_0x6e3961(0xeb));if(this[_0x6e3961(0xec)][_0x6e3961(0xc7)][_0x6e3961(0xf6)](_0x6e3961(0xf8))[_0x6e3961(0x100)][_0x6e3961(0xe8)](_0x6e3961(0xd2)),_0x6e3961(0xda)===_0x5ececc['id'])_0x104a0d[_0x6e3961(0xd4)](),await _0x336089[_0x6e3961(0xdb)](),_0x336089[_0x6e3961(0xd0)]();else await _0x336089[_0x6e3961(0xc6)](),_0x104a0d[_0x6e3961(0xd4)](),await _0x336089[_0x6e3961(0xdb)](),_0x336089[_0x6e3961(0xd0)](),await _0x336089[_0x6e3961(0xd6)]({'message':_0x5ececc[_0x6e3961(0xcc)]||_0x5ececc[_0x6e3961(0xfc)],'quickActionData':{'id':_0x5ececc['id'],'displayedPrompt':_0x5ececc[_0x6e3961(0xfc)]}});}[_0x215385(0xf2)](){const _0x425296=_0x215385,_0x9c321a=this[_0x425296(0xec)],_0x5c7561=_0x9c321a[_0x425296(0xff)][_0x425296(0xf3)][_0x425296(0xdd)];if(!_0x5c7561[_0x425296(0xe7)])return;const _0x3a88ac=_0x31b843(_0x5c7561[_0x425296(0xf1)]())||_0x9c321a[_0x425296(0xff)][_0x425296(0xfa)][_0x425296(0xe6)](_0x5c7561);_0x9c321a[_0x425296(0xff)][_0x425296(0xdf)](_0x546725=>{const _0x2d354a=_0x425296;_0x546725[_0x2d354a(0xe5)](_0x3a88ac,'in');});}[_0x215385(0xcd)](_0x434a18){const _0x41e1ff=_0x215385;return _0x434a18[_0x41e1ff(0xcb)]?.[_0x41e1ff(0xdc)]&&_0x41e1ff(0xd5)!==_0x434a18[_0x41e1ff(0xcb)]?.['id']?_0x434a18[_0x41e1ff(0xcb)][_0x41e1ff(0xdc)]+':\x20'+_0x434a18[_0x41e1ff(0xfc)]:_0x434a18[_0x41e1ff(0xfc)];}async[_0x215385(0xde)](_0x5d6a8f){const _0xa9e550=_0x215385,_0x388859=this[_0xa9e550(0xec)][_0xa9e550(0xc7)][_0xa9e550(0xf6)](_0xa9e550(0xc3)),_0x22f137=_0x5d6a8f[_0xa9e550(0xcc)]?{'userMessage':_0x5d6a8f[_0xa9e550(0xcc)],'model':_0x5d6a8f[_0xa9e550(0xff)]}:{'actionName':_0x5d6a8f[_0xa9e550(0xf7)]||_0x5d6a8f['id'],'args':_0x5d6a8f[_0xa9e550(0xd9)]},_0x6bed7b=this[_0xa9e550(0xcd)](_0x5d6a8f);await _0x388859[_0xa9e550(0xee)](_0x22f137,_0x6bed7b,_0x5d6a8f[_0xa9e550(0xf0)]);}async[_0x215385(0xc8)](_0x340cc1){const _0x177f3c=_0x215385;console[_0x177f3c(0xce)](_0x177f3c(0xe0),_0x340cc1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x5c4ec3=_0x43f3;(function(_0x193310,_0x36c09a){const _0x3fd379=_0x43f3,_0x284ea1=_0x193310();while(!![]){try{const _0x486cac=parseInt(_0x3fd379(0x1b0))/0x1+-parseInt(_0x3fd379(0x1aa))/0x2*(-parseInt(_0x3fd379(0x1a6))/0x3)+-parseInt(_0x3fd379(0x1a2))/0x4+parseInt(_0x3fd379(0x19e))/0x5+parseInt(_0x3fd379(0x1a9))/0x6*(-parseInt(_0x3fd379(0x1b4))/0x7)+parseInt(_0x3fd379(0x1ad))/0x8*(-parseInt(_0x3fd379(0x1ab))/0x9)+-parseInt(_0x3fd379(0x19a))/0xa*(-parseInt(_0x3fd379(0x1a8))/0xb);if(_0x486cac===_0x36c09a)break;else _0x284ea1['push'](_0x284ea1['shift']());}catch(_0x419ac3){_0x284ea1['push'](_0x284ea1['shift']());}}}(_0x56be,0x56f6c));function _0x43f3(_0x434fa1,_0x51ce18){const _0x56be9b=_0x56be();return _0x43f3=function(_0x43f339,_0x3b2a4c){_0x43f339=_0x43f339-0x198;let _0x50543f=_0x56be9b[_0x43f339];return _0x50543f;},_0x43f3(_0x434fa1,_0x51ce18);}import{Plugin as _0x4ab1f8}from'ckeditor5/src/core.js';import{AIQuickActionsCommand as _0x3e504d}from'./aiquickactionscommand.js';function _0x56be(){const _0x260bd6=['48sxbyvp','aiQuickAction','12254evFoLL','258816yCOrHu','16508KUiOpU','321795HADLtB','editor','152PswJNo','init','commands','90865orOSgx','selection','has','removeSelectionFromChatContext','84XetGxw','get','directChange','document','14490iYKGiZ','AIQuickActionsEditing','pluginName','plugins','890160GwZhaB','add','model','AIChat','1847864lkAxzV','isOfficialPlugin','isPremiumPlugin','change:range'];_0x56be=function(){return _0x260bd6;};return _0x56be();}export class AIQuickActionsEditing extends _0x4ab1f8{static get[_0x5c4ec3(0x19c)](){const _0x58c290=_0x5c4ec3;return _0x58c290(0x19b);}static get[_0x5c4ec3(0x1a3)](){return!0x0;}static get[_0x5c4ec3(0x1a4)](){return!0x0;}[_0x5c4ec3(0x1ae)](){const _0x4d94e3=_0x5c4ec3,_0x6d16de=this[_0x4d94e3(0x1ac)],_0x413b49=new _0x3e504d(this[_0x4d94e3(0x1ac)]);if(_0x6d16de[_0x4d94e3(0x1af)][_0x4d94e3(0x19f)](_0x4d94e3(0x1a7),_0x413b49),_0x6d16de[_0x4d94e3(0x19d)][_0x4d94e3(0x1b2)](_0x4d94e3(0x1a1))){const _0x157c7d=this[_0x4d94e3(0x1ac)][_0x4d94e3(0x19d)][_0x4d94e3(0x1b5)](_0x4d94e3(0x1a1));_0x6d16de[_0x4d94e3(0x1a0)][_0x4d94e3(0x199)][_0x4d94e3(0x1b1)]['on'](_0x4d94e3(0x1a5),(_0x23e481,_0x17cf94)=>{const _0x43b295=_0x4d94e3;_0x17cf94[_0x43b295(0x198)]&&_0x157c7d[_0x43b295(0x1b3)]();});}}}
|