@ckeditor/ckeditor5-ai 47.3.0-alpha.4 → 47.3.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x497f1b=_0x5a0c;(function(_0x3e4dfd,_0x477c64){const _0x1cb33b=_0x5a0c,_0x54742b=_0x3e4dfd();while(!![]){try{const _0x1b4bed=parseInt(_0x1cb33b(0x1c2))/0x1*(-parseInt(_0x1cb33b(0x1a2))/0x2)+parseInt(_0x1cb33b(0x1b2))/0x3+parseInt(_0x1cb33b(0x1ae))/0x4*(parseInt(_0x1cb33b(0x19f))/0x5)+-parseInt(_0x1cb33b(0x1a8))/0x6*(parseInt(_0x1cb33b(0x19e))/0x7)+-parseInt(_0x1cb33b(0x1c8))/0x8+-parseInt(_0x1cb33b(0x1bb))/0x9+-parseInt(_0x1cb33b(0x1b0))/0xa*(-parseInt(_0x1cb33b(0x1af))/0xb);if(_0x1b4bed===_0x477c64)break;else _0x54742b['push'](_0x54742b['shift']());}catch(_0x556752){_0x54742b['push'](_0x54742b['shift']());}}}(_0x32d9,0x3f1b3));function _0x32d9(){const _0x2af038=['ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','add','isOn','942882BzTXks','locale','customView','_config','bind','full','10896zjzTiG','1182907pvxIvK','60WkaHsL','ck-ai-mini-toolbar-copy-button__check-mark','1442310QYdDhK','dislike','isLoading','AI_SUGGESTION_BUTTON_SHOW_CHANGES','AI_MINI_TOOLBAR_LIKE','length','addMany','showDislike','children','1458783bgOvxo','set','likeButton','showCopy','items','isEnabled','ck-ai-mini-toolbar\x20ck-hidden','49qmrUJY','execute','extendTemplate','_setupRatingButtons','toggleShowChanges','_setupCopyButton','2870232wLbJHp','AI_MINI_TOOLBAR_DISLIKE','showChangesButton','copyButton','showChanges','AI_MINI_TOOLBAR_COPY','ck-ai-mini-toolbar','showLike','fire','ck-ai-mini-toolbar-copy-button','21gJzBcs','920dWCKme','dislikeButton','like','15364XvuJDF','_setupShowChangesButton','class'];_0x32d9=function(){return _0x2af038;};return _0x32d9();}import{ButtonView as _0x5607d1,IconView as _0x504fef,ToolbarView as _0x31c8a1}from'ckeditor5/src/ui.js';import{IconCheck as _0x540777,IconCopy as _0x19e506,IconShowChangesOff as _0x39c249,IconShowChangesOn as _0x59fec4,IconThumbDown as _0x5e9b57,IconThumbUp as _0x1a0ae7}from'@ckeditor/ckeditor5-icons';function _0x5a0c(_0x472ec3,_0x25b35f){const _0x32d9e3=_0x32d9();return _0x5a0c=function(_0x5a0c63,_0x2ba9f8){_0x5a0c63=_0x5a0c63-0x19b;let _0x10fd06=_0x32d9e3[_0x5a0c63];return _0x10fd06;},_0x5a0c(_0x472ec3,_0x25b35f);}import{getTranslation as _0x1de9af}from'../../utils/common-translations.js';export class AIMiniToolbarView extends _0x31c8a1{[_0x497f1b(0x1cb)];[_0x497f1b(0x1bd)];[_0x497f1b(0x1a0)];[_0x497f1b(0x1ca)];[_0x497f1b(0x1ab)];constructor(_0x293fc3,_0x5831e2={},_0x2882c8){const _0x49794e=_0x497f1b;super(_0x293fc3),this[_0x49794e(0x1bc)](_0x49794e(0x1b4),!0x1),this[_0x49794e(0x1ab)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x5831e2};const _0x4712d1=!(this[_0x49794e(0x1ab)][_0x49794e(0x1be)]||this[_0x49794e(0x1ab)][_0x49794e(0x1cc)]||this[_0x49794e(0x1ab)][_0x49794e(0x19b)]||this[_0x49794e(0x1ab)][_0x49794e(0x1b9)]||this[_0x49794e(0x1ab)][_0x49794e(0x1aa)]?.[_0x49794e(0x1b7)]);this[_0x49794e(0x1a4)]=_0x4712d1?_0x49794e(0x1c1):_0x49794e(0x1ce),this[_0x49794e(0x1ab)][_0x49794e(0x1be)]&&(this[_0x49794e(0x1c7)](),this[_0x49794e(0x1bf)][_0x49794e(0x1a6)](this[_0x49794e(0x1cb)])),this[_0x49794e(0x1ab)][_0x49794e(0x1cc)]&&(this[_0x49794e(0x1a3)](_0x2882c8),this[_0x49794e(0x1bf)][_0x49794e(0x1a6)](this[_0x49794e(0x1ca)])),this[_0x49794e(0x1c5)](),this[_0x49794e(0x1ab)][_0x49794e(0x19b)]&&this[_0x49794e(0x1bf)][_0x49794e(0x1a6)](this[_0x49794e(0x1bd)]),this[_0x49794e(0x1ab)][_0x49794e(0x1b9)]&&this[_0x49794e(0x1bf)][_0x49794e(0x1a6)](this[_0x49794e(0x1a0)]),this[_0x49794e(0x1ab)][_0x49794e(0x1aa)]&&this[_0x49794e(0x1bf)][_0x49794e(0x1b8)](this[_0x49794e(0x1ab)][_0x49794e(0x1aa)]);}[_0x497f1b(0x1c5)](){const _0x4339ac=_0x497f1b;this[_0x4339ac(0x1bd)]=new _0x5607d1(this[_0x4339ac(0x1a9)]),this[_0x4339ac(0x1bd)][_0x4339ac(0x1bc)]({'icon':_0x1a0ae7,'label':_0x1de9af(this[_0x4339ac(0x1a9)],_0x4339ac(0x1b6)),'tooltip':!0x0}),this[_0x4339ac(0x1bd)][_0x4339ac(0x1ac)](_0x4339ac(0x1c0))['to'](this,_0x4339ac(0x1b4),_0x4c0353=>!_0x4c0353),this[_0x4339ac(0x1bd)]['on'](_0x4339ac(0x1c3),()=>{const _0x210a88=_0x4339ac;this[_0x210a88(0x19c)](_0x210a88(0x1a1));}),this[_0x4339ac(0x1a0)]=new _0x5607d1(this[_0x4339ac(0x1a9)]),this[_0x4339ac(0x1a0)][_0x4339ac(0x1bc)]({'icon':_0x5e9b57,'label':_0x1de9af(this[_0x4339ac(0x1a9)],_0x4339ac(0x1c9)),'tooltip':!0x0}),this[_0x4339ac(0x1a0)][_0x4339ac(0x1ac)](_0x4339ac(0x1c0))['to'](this,_0x4339ac(0x1b4),_0x249c70=>!_0x249c70),this[_0x4339ac(0x1a0)]['on'](_0x4339ac(0x1c3),()=>{const _0x139269=_0x4339ac;this[_0x139269(0x19c)](_0x139269(0x1b3));});}[_0x497f1b(0x1c7)](){const _0x4d00e0=_0x497f1b;this[_0x4d00e0(0x1cb)]=new _0x5607d1(this[_0x4d00e0(0x1a9)]),this[_0x4d00e0(0x1cb)][_0x4d00e0(0x1bc)]({'icon':_0x19e506,'label':_0x1de9af(this[_0x4d00e0(0x1a9)],_0x4d00e0(0x1cd)),'class':_0x4d00e0(0x19d),'tooltip':!0x0}),this[_0x4d00e0(0x1cb)][_0x4d00e0(0x1ac)](_0x4d00e0(0x1c0))['to'](this,_0x4d00e0(0x1b4),_0x68f114=>!_0x68f114);const _0x30a012=new _0x504fef();_0x30a012[_0x4d00e0(0x1bc)]({'content':_0x540777}),_0x30a012[_0x4d00e0(0x1c4)]({'attributes':{'class':[_0x4d00e0(0x1b1)]}}),this[_0x4d00e0(0x1cb)]['on'](_0x4d00e0(0x1c3),()=>{const _0x14ec1c=_0x4d00e0;this[_0x14ec1c(0x1cb)][_0x14ec1c(0x1a4)]=_0x14ec1c(0x1a5),setTimeout(()=>{const _0x20ca41=_0x14ec1c;this[_0x20ca41(0x1cb)][_0x20ca41(0x1a4)]=_0x20ca41(0x19d);},0x7d0);}),this[_0x4d00e0(0x1cb)][_0x4d00e0(0x1ba)][_0x4d00e0(0x1a6)](_0x30a012);}[_0x497f1b(0x1a3)](_0x432172){const _0x1c9419=_0x497f1b;this[_0x1c9419(0x1ca)]=new _0x5607d1(this[_0x1c9419(0x1a9)]),this[_0x1c9419(0x1ca)][_0x1c9419(0x1bc)]({'icon':_0x39c249,'label':_0x1de9af(this[_0x1c9419(0x1a9)],_0x1c9419(0x1b5)),'withText':_0x1c9419(0x1ad)==this[_0x1c9419(0x1ab)][_0x1c9419(0x1cc)],'tooltip':_0x1c9419(0x1ad)!=this[_0x1c9419(0x1ab)][_0x1c9419(0x1cc)],'isOn':_0x432172}),this[_0x1c9419(0x1ca)][_0x1c9419(0x1ac)](_0x1c9419(0x1c0))['to'](this,_0x1c9419(0x1b4),_0x1532b0=>!_0x1532b0),this[_0x1c9419(0x1ca)]['on'](_0x1c9419(0x1c3),()=>{const _0x42ddbb=_0x1c9419,_0x244011=!this[_0x42ddbb(0x1ca)][_0x42ddbb(0x1a7)];this[_0x42ddbb(0x1ca)][_0x42ddbb(0x1bc)]({'isOn':_0x244011,'icon':_0x244011?_0x59fec4:_0x39c249}),this[_0x42ddbb(0x19c)](_0x42ddbb(0x1c6),_0x244011);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1950b3=_0x1936;(function(_0x2f5c9e,_0x34a88c){const _0x53d4dd=_0x1936,_0x7a3c12=_0x2f5c9e();while(!![]){try{const _0x99c9d0=-parseInt(_0x53d4dd(0xdc))/0x1*(parseInt(_0x53d4dd(0xe4))/0x2)+-parseInt(_0x53d4dd(0xcc))/0x3+-parseInt(_0x53d4dd(0xd0))/0x4*(parseInt(_0x53d4dd(0x104))/0x5)+-parseInt(_0x53d4dd(0xdb))/0x6+-parseInt(_0x53d4dd(0xcb))/0x7+-parseInt(_0x53d4dd(0xe0))/0x8+parseInt(_0x53d4dd(0xd8))/0x9*(parseInt(_0x53d4dd(0xde))/0xa);if(_0x99c9d0===_0x34a88c)break;else _0x7a3c12['push'](_0x7a3c12['shift']());}catch(_0x4e4fed){_0x7a3c12['push'](_0x7a3c12['shift']());}}}(_0x16e1,0x73ff8));import{View as _0x57d1c3}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0x10a1e7}from'./aisuggestioncontentpartview.js';function _0x16e1(){const _0x32dec1=['33633430zPqZFP','pending','4011320kUTCfn','hasNonEmptyParts','_cachedContentParts','push','961326hNclWH','add','AI_SUGGESTION_NO_PARTS_WARNING','setContent','isVisible','_emptyPartsWarningView','_children','warning','find','partsCount','hasPendingParts','createCollection','partDefinition','toggleHeader','updateContentParts','set','getPartView','ck-ai-suggestion__body__content-parts','ck-ai-suggestion__body','first','_updateContentPartsPromiseQueue','addEventListener','_availableActions','from','setTemplate','delegate','hasChanges','index','locale','AI_SUGGESTION_EMPTY_PART_WARNING','queueEmptyPromise','enqueue','345JGnmIN','div','3914666LgbZZx','2162970kxKlzs','findIndex','state','updateContent','32496WffqzC','_areActionsDisabled','updatePartState','length','filter','_showUnchangedParts','some','empty-parts-warning','9AbWJDs','abort','markAsDone','392118ZIDuBj','1PsEBVM','forEach'];_0x16e1=function(){return _0x32dec1;};return _0x16e1();}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x7dabd4}from'../../utils/eventnames.js';import{PromiseQueue as _0x1308e7}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0xe7f91f}from'../../../aichat/ui/feed/aichatfeederroritemview.js';function _0x1936(_0x3cbe03,_0x2b24cf){const _0x16e17c=_0x16e1();return _0x1936=function(_0x193677,_0x27d40c){_0x193677=_0x193677-0xca;let _0x26535b=_0x16e17c[_0x193677];return _0x26535b;},_0x1936(_0x3cbe03,_0x2b24cf);}import{getTranslation as _0x26a937}from'../../utils/common-translations.js';export class AISuggestionBodyView extends _0x57d1c3{[_0x1950b3(0xea)];[_0x1950b3(0xd1)];[_0x1950b3(0xd5)];[_0x1950b3(0xf8)];[_0x1950b3(0xe9)];[_0x1950b3(0xfa)];[_0x1950b3(0xe2)]=[];constructor(_0x9333fe,_0x11969b){const _0x4668af=_0x1950b3;super(_0x9333fe);const {areActionsDisabled:_0x4fc59e,showUnchangedParts:_0x472111,availableActions:_0xbc96ec}=_0x11969b;this[_0x4668af(0xd1)]=_0x4fc59e,this[_0x4668af(0xd5)]=_0x472111,this[_0x4668af(0xfa)]=_0xbc96ec,this[_0x4668af(0xf3)](_0x4668af(0xee),!0x1),this[_0x4668af(0xea)]=this[_0x4668af(0xef)](),this[_0x4668af(0xf8)]=new _0x1308e7(),this[_0x4668af(0xe9)]=new _0xe7f91f({'id':_0x4668af(0xd7),'initialContent':_0x26a937(_0x9333fe,_0x4668af(0x101)),'level':_0x4668af(0xeb)}),this[_0x4668af(0xe9)][_0x4668af(0xe8)]=!0x1,this[_0x4668af(0xfc)]({'tag':_0x4668af(0xca),'attributes':{'class':['ck',_0x4668af(0xf6)]},'children':[{'tag':_0x4668af(0xca),'attributes':{'class':['ck',_0x4668af(0xf5)]},'children':this[_0x4668af(0xea)]},this[_0x4668af(0xe9)]]});}get[_0x1950b3(0xed)](){const _0x39f4ac=_0x1950b3;return this[_0x39f4ac(0xea)][_0x39f4ac(0xd3)];}async[_0x1950b3(0xf2)]({parts:_0x10f604,renderingStrategy:_0x263c8a,abortSignal:_0x2ddc09}){const _0x16cb4c=_0x1950b3;this[_0x16cb4c(0xea)][_0x16cb4c(0xd3)]?_0x10f604[_0x16cb4c(0xdd)](_0x36e499=>{const _0x38aff8=_0x16cb4c,_0x766d5c=this[_0x38aff8(0xe2)][_0x38aff8(0xcd)](_0x19e0b1=>_0x19e0b1[_0x38aff8(0xff)]==_0x36e499[_0x38aff8(0xff)]);-0x1===_0x766d5c?this[_0x38aff8(0xe2)][_0x38aff8(0xe3)](_0x36e499):this[_0x38aff8(0xe2)][_0x766d5c]=_0x36e499;}):this[_0x16cb4c(0xe2)]=_0x10f604;for(const _0x26f1c2 of _0x10f604[_0x16cb4c(0xd4)](_0x120cbc=>_0x120cbc[_0x16cb4c(0xfe)]))this[_0x16cb4c(0xf8)][_0x16cb4c(0x103)](async _0x41304a=>{const _0x361aa3=_0x16cb4c;let _0xaa5200=this[_0x361aa3(0xf4)](_0x26f1c2[_0x361aa3(0xff)]);_0xaa5200||(_0xaa5200=new _0x10a1e7(this[_0x361aa3(0x100)],{'part':_0x26f1c2,'uiIndex':this[_0x361aa3(0xea)][_0x361aa3(0xd3)]+0x1,'areActionsDisabled':this[_0x361aa3(0xd1)],'availableActions':this[_0x361aa3(0xfa)]}),_0xaa5200[_0x361aa3(0xfd)](..._0x7dabd4)['to'](this),this[_0x361aa3(0xea)][_0x361aa3(0xe5)](_0xaa5200),this[_0x361aa3(0xee)]=!0x0),0x2===this[_0x361aa3(0xea)][_0x361aa3(0xd3)]&&this[_0x361aa3(0xea)][_0x361aa3(0xf7)][_0x361aa3(0xf1)](!0x0),_0xaa5200[_0x361aa3(0xf1)](this[_0x361aa3(0xea)][_0x361aa3(0xd3)]>0x1),await _0xaa5200[_0x361aa3(0xcf)]({'part':_0x26f1c2,'renderingStrategy':_0x263c8a,'showUnchangedParts':this[_0x361aa3(0xd5)],'abortSignal':_0x41304a});});return _0x2ddc09?.[_0x16cb4c(0xf9)](_0x16cb4c(0xd9),()=>{const _0x30535e=_0x16cb4c;this[_0x30535e(0xf8)][_0x30535e(0xd9)]();}),this[_0x16cb4c(0xf8)][_0x16cb4c(0x102)];}[_0x1950b3(0xd2)](_0x2ce17f,_0x5ed718){const _0x5b7d03=_0x1950b3,_0x3262b8=this[_0x5b7d03(0xf4)](_0x2ce17f);_0x3262b8&&(_0x3262b8[_0x5b7d03(0xce)]=_0x5ed718),this[_0x5b7d03(0xee)]=_0x5b7d03(0xdf)==_0x5ed718||Array[_0x5b7d03(0xfb)](this[_0x5b7d03(0xea)])[_0x5b7d03(0xd6)](_0x21e7a1=>_0x5b7d03(0xdf)==_0x21e7a1[_0x5b7d03(0xce)]);}[_0x1950b3(0xf4)](_0x2ef020){const _0x138f42=_0x1950b3;return this[_0x138f42(0xea)][_0x138f42(0xec)](_0x35b826=>_0x35b826[_0x138f42(0xf0)][_0x138f42(0xff)]==_0x2ef020)??null;}[_0x1950b3(0xda)](){const _0x5f0756=_0x1950b3;if(!this[_0x5f0756(0xd5)]){const _0x192813=!this[_0x5f0756(0xe2)][_0x5f0756(0xec)](({hasChanges:_0x406230})=>_0x406230),_0x2ce6a4=!!this[_0x5f0756(0xe2)][_0x5f0756(0xec)](({hasChanges:_0x41c82c})=>!_0x41c82c);this[_0x5f0756(0xe9)][_0x5f0756(0xe8)]=0x0==this[_0x5f0756(0xea)][_0x5f0756(0xd3)]||_0x2ce6a4,_0x192813?this[_0x5f0756(0xe9)][_0x5f0756(0xe7)](_0x26a937(this[_0x5f0756(0x100)],_0x5f0756(0xe6))):this[_0x5f0756(0xe9)][_0x5f0756(0xe7)](_0x26a937(this[_0x5f0756(0x100)],_0x5f0756(0x101)));}}get[_0x1950b3(0xe1)](){const _0x8b44c1=_0x1950b3;return!!this[_0x8b44c1(0xea)][_0x8b44c1(0xec)](_0x13ecd0=>_0x13ecd0[_0x8b44c1(0xf0)][_0x8b44c1(0xfe)]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x46f562=_0x1350;(function(_0x3713f5,_0xde0409){const _0x484a5b=_0x1350,_0x1429ac=_0x3713f5();while(!![]){try{const _0x1d1f84=parseInt(_0x484a5b(0xc5))/0x1*(-parseInt(_0x484a5b(0xaf))/0x2)+parseInt(_0x484a5b(0xf7))/0x3*(-parseInt(_0x484a5b(0xb8))/0x4)+parseInt(_0x484a5b(0xe0))/0x5+parseInt(_0x484a5b(0xc4))/0x6*(-parseInt(_0x484a5b(0xdf))/0x7)+parseInt(_0x484a5b(0xd9))/0x8+parseInt(_0x484a5b(0xdb))/0x9+-parseInt(_0x484a5b(0xcb))/0xa;if(_0x1d1f84===_0xde0409)break;else _0x1429ac['push'](_0x1429ac['shift']());}catch(_0x414990){_0x1429ac['push'](_0x1429ac['shift']());}}}(_0x518f,0xbeaeb));import{IconWeb as _0x2504ae}from'@ckeditor/ckeditor5-icons';import{View as _0x361c0a,ButtonView as _0x34b59f,IconView as _0x4be8ed}from'ckeditor5/src/ui.js';import{AIMiniToolbarView as _0x1226ca}from'./aiminitoolbarview.js';import{AISuggestionHeaderView as _0x16062b}from'./aisuggestionheaderview.js';import{AISuggestionBodyView as _0x529352}from'./aisuggestionbodyview.js';function _0x518f(){const _0x49c5f5=['setTemplate','toggleSuggestionDisplayMode','errorView','img','span','set','title','isLoading','isVisible','textContent','hasNonEmptyParts','38974wxbSvv','_createLoaderView','isErrorVisible','addNavigationItem','hideLoader','open','createCollection','fire','bind','8xhniub','ck-ai-suggestion__error-text','isEnabled','icon','remove','querySelector','removeNavigationItem','clearErrorState','isShowChangesToggleVisible','toggleShowChanges','addMany','ck-ai-web-source__image','906MQBgbB','55UtrLZp','showLoader','ck-ai-suggestion__loader','ck-ai-suggestion__error','updateContent','showChangesToggleView','16259910jTqIRN','hideError','small','ck-ai-web-sources__header','element','ck\x20ck-ai-web-source','div','ck-ai-suggestion__loader-text','loaderView','url','clearLoading','favicon','isLoaderVisible','setErrorState','9787808gIoBRo','ck-ai-web-sources','11553507PwUtPH','ck-rounded-corners','children','bodyView','14833ALfLMk','6692785wNetld','content','updateContentParts','map','_blank','delegate','_createErrorView','AI_CHAT_SOURCES_HEADER','miniToolbarView','headerView','AI_CHAT_IS_WRITING','bindTemplate','AI_CHAT_GENERIC_ERROR','add','extendTemplate','markAsDone','ck-ai-suggestion__container','setLoading','updateSources','showError','items','.ck-ai-suggestion__error-text','locale','70464umxLcL','isOn','areChangesVisible','ck-hidden','sourcesView'];_0x518f=function(){return _0x49c5f5;};return _0x518f();}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x4802fa}from'../../utils/eventnames.js';import{AISpinnerView as _0x1807fe}from'../aispinner.js';function _0x1350(_0x5d4087,_0x401e21){const _0x518f66=_0x518f();return _0x1350=function(_0x135027,_0xdc692){_0x135027=_0x135027-0xa5;let _0x4e5f8a=_0x518f66[_0x135027];return _0x4e5f8a;},_0x1350(_0x5d4087,_0x401e21);}import{getTranslation as _0x42a13e}from'../../utils/common-translations.js';export class AISuggestionContainerView extends _0x361c0a{[_0x46f562(0xde)];[_0x46f562(0xe8)];[_0x46f562(0xdd)];[_0x46f562(0xe9)];[_0x46f562(0xd3)];[_0x46f562(0xa6)];[_0x46f562(0xfb)];constructor(_0x5ed5d3,_0x47176e){const _0x3f12f1=_0x46f562;super(_0x5ed5d3);const {showDiff:_0x5cf953,areActionsDisabled:_0xce51a8,miniToolbarConfig:_0x537063,hideHeader:_0x4fd7f0,showLoader:_0x40900b,showUnchangedParts:_0x5ca830,availableActions:_0x534ba4}=_0x47176e;this[_0x3f12f1(0xa9)](_0x3f12f1(0xf9),!0x1),this[_0x3f12f1(0xa9)](_0x3f12f1(0xd7),!!_0x40900b),this[_0x3f12f1(0xa9)](_0x3f12f1(0xb1),!0x1),this[_0x3f12f1(0xa9)](_0x3f12f1(0xab),!0x1),this[_0x3f12f1(0xdd)]=this[_0x3f12f1(0xb5)](),_0x4fd7f0||(this[_0x3f12f1(0xe9)]=new _0x16062b(_0x5ed5d3,{'showDiff':_0x5cf953}),this[_0x3f12f1(0xe9)]['on'](_0x3f12f1(0xc1),(_0xf9eb03,_0x1beea5)=>{const _0x47ce3f=_0x3f12f1;this[_0x47ce3f(0xf9)]=_0x1beea5[_0x47ce3f(0xf8)],this[_0x47ce3f(0xb6)](_0x47ce3f(0xa5),{'showDiff':_0x1beea5[_0x47ce3f(0xf8)]});}),this[_0x3f12f1(0xdd)][_0x3f12f1(0xed)](this[_0x3f12f1(0xe9)])),this[_0x3f12f1(0xde)]=new _0x529352(_0x5ed5d3,{'areActionsDisabled':_0xce51a8,'showUnchangedParts':!!_0x5ca830,'availableActions':_0x534ba4}),this[_0x3f12f1(0xde)][_0x3f12f1(0xe5)](..._0x4802fa)['to'](this),this[_0x3f12f1(0xde)][_0x3f12f1(0xee)]({'attributes':{'class':[this[_0x3f12f1(0xeb)]['if'](_0x3f12f1(0xd7),_0x3f12f1(0xfa)),this[_0x3f12f1(0xeb)]['if'](_0x3f12f1(0xb1),_0x3f12f1(0xfa))]}}),this[_0x3f12f1(0xe8)]=new _0x1226ca(_0x5ed5d3,_0x537063,_0x5cf953),this[_0x3f12f1(0xe8)][_0x3f12f1(0xe5)](..._0x4802fa)['to'](this),this[_0x3f12f1(0xe8)]['on'](_0x3f12f1(0xc1),(_0x510d58,_0xb4024b)=>{const _0x2f3b1b=_0x3f12f1;this[_0x2f3b1b(0xf9)]=_0xb4024b,this[_0x2f3b1b(0xb6)](_0x2f3b1b(0xa5),{'showDiff':_0xb4024b});}),this[_0x3f12f1(0xe8)][_0x3f12f1(0xb7)](_0x3f12f1(0xab))['to'](this),this[_0x3f12f1(0xdd)][_0x3f12f1(0xed)](this[_0x3f12f1(0xde)]),this[_0x3f12f1(0xdd)][_0x3f12f1(0xed)](this[_0x3f12f1(0xe8)]),this[_0x3f12f1(0xfb)]=new AIWebSourcesView(this[_0x3f12f1(0xf6)]),this[_0x3f12f1(0xdd)][_0x3f12f1(0xed)](this[_0x3f12f1(0xfb)]),_0x40900b&&(this[_0x3f12f1(0xd3)]=this[_0x3f12f1(0xb0)](),this[_0x3f12f1(0xdd)][_0x3f12f1(0xed)](this[_0x3f12f1(0xd3)])),this[_0x3f12f1(0xa6)]=this[_0x3f12f1(0xe6)](),this[_0x3f12f1(0xdd)][_0x3f12f1(0xed)](this[_0x3f12f1(0xa6)]),this[_0x3f12f1(0xfc)]({'tag':_0x3f12f1(0xd1),'attributes':{'class':['ck',_0x3f12f1(0xf0),_0x3f12f1(0xdc)]},'children':this[_0x3f12f1(0xdd)]});}async[_0x46f562(0xc9)](_0x4cc995){const _0x36a633=_0x46f562;await this[_0x36a633(0xde)][_0x36a633(0xe2)](_0x4cc995);}[_0x46f562(0xf2)](_0x1949b5){const _0x3f4488=_0x46f562;this[_0x3f4488(0xfb)][_0x3f4488(0xdd)][_0x3f4488(0xc2)](_0x1949b5[_0x3f4488(0xe3)](_0x28323b=>new AIWebSourceView(this[_0x3f4488(0xf6)],_0x28323b))),this[_0x3f4488(0xfb)][_0x3f4488(0xac)]=!0x0;}[_0x46f562(0xc6)](){const _0x5482d5=_0x46f562;this[_0x5482d5(0xd3)]&&(this[_0x5482d5(0xd7)]=!0x0);}[_0x46f562(0xb3)](){const _0x2dc164=_0x46f562;this[_0x2dc164(0xd3)]&&(this[_0x2dc164(0xd7)]=!0x1);}[_0x46f562(0xf3)](_0x557cfc){const _0x302d3f=_0x46f562;if(this[_0x302d3f(0xa6)]){const _0x591c47=this[_0x302d3f(0xa6)][_0x302d3f(0xcf)]?.[_0x302d3f(0xbd)](_0x302d3f(0xf5));_0x591c47&&(_0x591c47[_0x302d3f(0xad)]=_0x557cfc),this[_0x302d3f(0xb1)]=!0x0;}}[_0x46f562(0xcc)](){const _0x319c48=_0x46f562;this[_0x319c48(0xa6)]&&(this[_0x319c48(0xb1)]=!0x1);}[_0x46f562(0xef)](){const _0x3723c7=_0x46f562;this[_0x3723c7(0xde)][_0x3723c7(0xef)](),this[_0x3723c7(0xe9)]&&(this[_0x3723c7(0xe9)][_0x3723c7(0xc0)]=this[_0x3723c7(0xde)][_0x3723c7(0xae)]);}[_0x46f562(0xf1)](){const _0x5cc767=_0x46f562;this[_0x5cc767(0xab)]=!0x0;}[_0x46f562(0xd5)](){const _0x431fc4=_0x46f562;this[_0x431fc4(0xab)]=!0x1;}[_0x46f562(0xd8)](){const _0x2d8acf=_0x46f562;this[_0x2d8acf(0xe8)]&&(this[_0x2d8acf(0xe8)][_0x2d8acf(0xab)]=!0x0),this[_0x2d8acf(0xe9)]?.[_0x2d8acf(0xca)]&&(this[_0x2d8acf(0xe9)][_0x2d8acf(0xca)][_0x2d8acf(0xba)]=!0x1);}[_0x46f562(0xbf)](){const _0x4f2411=_0x46f562;this[_0x4f2411(0xe8)]&&(this[_0x4f2411(0xe8)][_0x4f2411(0xab)]=!0x1),this[_0x4f2411(0xe9)]?.[_0x4f2411(0xca)]&&(this[_0x4f2411(0xe9)][_0x4f2411(0xca)][_0x4f2411(0xba)]=!0x0);}[_0x46f562(0xb2)](_0x2729a7){const _0x3333fd=_0x46f562;this[_0x3333fd(0xe8)][_0x3333fd(0xf4)][_0x3333fd(0xed)](_0x2729a7);}[_0x46f562(0xbe)](_0x5ea1b9){const _0x2c10d1=_0x46f562;this[_0x2c10d1(0xe8)][_0x2c10d1(0xf4)][_0x2c10d1(0xbc)](_0x5ea1b9);}[_0x46f562(0xb0)](){const _0x4c877a=_0x46f562,_0x312b3d=new _0x361c0a(this[_0x4c877a(0xf6)]),_0x2630f9=new _0x1807fe(_0x4c877a(0xcd));_0x2630f9[_0x4c877a(0xac)]=!0x0;const _0x4a81df=new _0x361c0a(this[_0x4c877a(0xf6)]);return _0x4a81df[_0x4c877a(0xfc)]({'tag':_0x4c877a(0xa8),'attributes':{'class':['ck',_0x4c877a(0xd2)]},'children':[_0x42a13e(this[_0x4c877a(0xf6)],_0x4c877a(0xea))]}),_0x312b3d[_0x4c877a(0xfc)]({'tag':_0x4c877a(0xd1),'attributes':{'class':['ck',_0x4c877a(0xc7),this[_0x4c877a(0xeb)]['if'](_0x4c877a(0xd7),_0x4c877a(0xfa),_0x1628e9=>!_0x1628e9)]},'children':[_0x2630f9,_0x4a81df]}),_0x312b3d;}[_0x46f562(0xe6)](){const _0x372b7e=_0x46f562,_0x3c40bf=new _0x361c0a(this[_0x372b7e(0xf6)]),_0x8027a2=new _0x361c0a(this[_0x372b7e(0xf6)]);return _0x8027a2[_0x372b7e(0xfc)]({'tag':_0x372b7e(0xa8),'attributes':{'class':['ck',_0x372b7e(0xb9)]},'children':[_0x42a13e(this[_0x372b7e(0xf6)],_0x372b7e(0xec))]}),_0x3c40bf[_0x372b7e(0xfc)]({'tag':_0x372b7e(0xd1),'attributes':{'class':['ck',_0x372b7e(0xc8),this[_0x372b7e(0xeb)]['if'](_0x372b7e(0xb1),_0x372b7e(0xfa),_0x738744=>!_0x738744)]},'children':[_0x8027a2]}),_0x3c40bf;}}export class AIWebSourcesView extends _0x361c0a{[_0x46f562(0xdd)];constructor(_0x589669){const _0x34b320=_0x46f562;super(_0x589669),this[_0x34b320(0xdd)]=this[_0x34b320(0xb5)](),this[_0x34b320(0xa9)](_0x34b320(0xac),!0x1),this[_0x34b320(0xfc)]({'tag':_0x34b320(0xd1),'attributes':{'class':['ck',_0x34b320(0xda),this[_0x34b320(0xeb)]['if'](_0x34b320(0xac),_0x34b320(0xfa),_0x3ca816=>!_0x3ca816)]},'children':this[_0x34b320(0xdd)]});const _0x3a9a95=new _0x361c0a(this[_0x34b320(0xf6)]),_0x67aaaa=new _0x4be8ed();_0x67aaaa[_0x34b320(0xe1)]=_0x2504ae,_0x3a9a95[_0x34b320(0xfc)]({'tag':_0x34b320(0xd1),'attributes':{'class':['ck',_0x34b320(0xce)]},'children':[_0x67aaaa,{'tag':_0x34b320(0xa8),'children':[{'text':_0x42a13e(this[_0x34b320(0xf6)],_0x34b320(0xe7))}]}]}),this[_0x34b320(0xdd)][_0x34b320(0xed)](_0x3a9a95);}}export class AIWebSourceView extends _0x34b59f{constructor(_0x2ffa1e,_0x228bc1){const _0x513636=_0x46f562;super(_0x2ffa1e),this[_0x513636(0xa9)]({'label':_0x228bc1[_0x513636(0xaa)],'tooltip':_0x228bc1[_0x513636(0xaa)],'class':[_0x513636(0xd0)],'withText':!0x0});const _0x2343f7=this[_0x513636(0xeb)];if(this[_0x513636(0xee)]({'on':{'click':_0x2343f7['to'](()=>{const _0x592b40=_0x513636;window[_0x592b40(0xb4)](_0x228bc1[_0x592b40(0xd4)],_0x592b40(0xe4));})}}),_0x228bc1[_0x513636(0xd6)]){const _0x33c23d=new _0x361c0a(_0x2ffa1e);_0x33c23d[_0x513636(0xfc)]({'tag':_0x513636(0xa7),'attributes':{'src':_0x228bc1[_0x513636(0xd6)]||_0x2504ae,'alt':_0x228bc1[_0x513636(0xaa)],'class':[_0x513636(0xc3)]}}),this[_0x513636(0xdd)][_0x513636(0xed)](_0x33c23d);}else this[_0x513636(0xa9)](_0x513636(0xbb),_0x2504ae);}}
|
|
23
|
+
function _0x3246(){const _0xf6ea7c=['bodyView','markAsDone','hasNonEmptyParts','content','isLoaderVisible','querySelector','ck-ai-web-source__image','img','loaderView','1874302SRVuMZ','ck-hidden','favicon','clearLoading','ck-ai-suggestion__loader-text','remove','isEnabled','isVisible','hideError','201862jIfEnE','set','toggleSuggestionDisplayMode','_createLoaderView','small','ck-ai-suggestion__loader','1120035PFLrSE','delegate','clearErrorState','191156zpjLfi','AI_CHAT_GENERIC_ERROR','ck-ai-suggestion__container','ck-ai-web-sources','999030bTdPTt','span','element','setTemplate','isOn','textContent','extendTemplate','createCollection','isLoading','url','showLoader','AI_CHAT_SOURCES_HEADER','isErrorVisible','bind','fire','areChangesVisible','35TzurAu','232YiVvUO','children','addMany','map','setErrorState','.ck-ai-suggestion__error-text','updateSources','locale','hideLoader','136144FfJyqC','ck-ai-suggestion__error','AI_CHAT_IS_WRITING','_createErrorView','_blank','icon','div','1053540HITiIr','updateContentParts','ck-rounded-corners','setLoading','toggleShowChanges','headerView','showError','removeNavigationItem','items','sourcesView','miniToolbarView','addNavigationItem','isShowChangesToggleVisible','ck\x20ck-ai-web-source','title','updateContent','open','showChangesToggleView','bindTemplate','ck-ai-suggestion__error-text','errorView','ck-ai-web-sources__header','add'];_0x3246=function(){return _0xf6ea7c;};return _0x3246();}const _0x2f1639=_0x9716;(function(_0x47c540,_0x435fbb){const _0x13dcbf=_0x9716,_0xabbe5a=_0x47c540();while(!![]){try{const _0x325b78=-parseInt(_0x13dcbf(0x1af))/0x1+parseInt(_0x13dcbf(0x1fd))/0x2+-parseInt(_0x13dcbf(0x1b5))/0x3+-parseInt(_0x13dcbf(0x1d6))/0x4+parseInt(_0x13dcbf(0x1cc))/0x5*(parseInt(_0x13dcbf(0x1bc))/0x6)+parseInt(_0x13dcbf(0x1b8))/0x7*(-parseInt(_0x13dcbf(0x1cd))/0x8)+-parseInt(_0x13dcbf(0x1dd))/0x9;if(_0x325b78===_0x435fbb)break;else _0xabbe5a['push'](_0xabbe5a['shift']());}catch(_0x2ad99c){_0xabbe5a['push'](_0xabbe5a['shift']());}}}(_0x3246,0x8eb03));function _0x9716(_0x1e5aed,_0x21ae4f){const _0x32469a=_0x3246();return _0x9716=function(_0x9716de,_0x53f7e4){_0x9716de=_0x9716de-0x1ad;let _0x47f07c=_0x32469a[_0x9716de];return _0x47f07c;},_0x9716(_0x1e5aed,_0x21ae4f);}import{IconWeb as _0x6e63c3}from'@ckeditor/ckeditor5-icons';import{View as _0x14337a,ButtonView as _0x11c48b,IconView as _0x19cc7e}from'ckeditor5/src/ui.js';import{AIMiniToolbarView as _0x496718}from'./aiminitoolbarview.js';import{AISuggestionHeaderView as _0x877bb9}from'./aisuggestionheaderview.js';import{AISuggestionBodyView as _0x5e456c}from'./aisuggestionbodyview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x33a484}from'../../utils/eventnames.js';import{AISpinnerView as _0x41183f}from'../aispinner.js';import{getTranslation as _0x4469c5}from'../../utils/common-translations.js';export class AISuggestionContainerView extends _0x14337a{[_0x2f1639(0x1f4)];[_0x2f1639(0x1e7)];[_0x2f1639(0x1ce)];[_0x2f1639(0x1e2)];[_0x2f1639(0x1fc)];[_0x2f1639(0x1f1)];[_0x2f1639(0x1e6)];constructor(_0x311e3e,_0xcf66c9){const _0x5b4405=_0x2f1639;super(_0x311e3e);const {showDiff:_0x2a73db,areActionsDisabled:_0x2cba0f,miniToolbarConfig:_0x48d56c,hideHeader:_0x2cfaf3,showLoader:_0x4cbe43,showUnchangedParts:_0x5e518f,availableActions:_0x450b79}=_0xcf66c9;this[_0x5b4405(0x1b0)](_0x5b4405(0x1cb),!0x1),this[_0x5b4405(0x1b0)](_0x5b4405(0x1f8),!!_0x4cbe43),this[_0x5b4405(0x1b0)](_0x5b4405(0x1c8),!0x1),this[_0x5b4405(0x1b0)](_0x5b4405(0x1c4),!0x1),this[_0x5b4405(0x1ce)]=this[_0x5b4405(0x1c3)](),_0x2cfaf3||(this[_0x5b4405(0x1e2)]=new _0x877bb9(_0x311e3e,{'showDiff':_0x2a73db}),this[_0x5b4405(0x1e2)]['on'](_0x5b4405(0x1e1),(_0x329b65,_0x66ea08)=>{const _0x33593c=_0x5b4405;this[_0x33593c(0x1cb)]=_0x66ea08[_0x33593c(0x1c0)],this[_0x33593c(0x1ca)](_0x33593c(0x1b1),{'showDiff':_0x66ea08[_0x33593c(0x1c0)]});}),this[_0x5b4405(0x1ce)][_0x5b4405(0x1f3)](this[_0x5b4405(0x1e2)])),this[_0x5b4405(0x1f4)]=new _0x5e456c(_0x311e3e,{'areActionsDisabled':_0x2cba0f,'showUnchangedParts':!!_0x5e518f,'availableActions':_0x450b79}),this[_0x5b4405(0x1f4)][_0x5b4405(0x1b6)](..._0x33a484)['to'](this),this[_0x5b4405(0x1f4)][_0x5b4405(0x1c2)]({'attributes':{'class':[this[_0x5b4405(0x1ef)]['if'](_0x5b4405(0x1f8),_0x5b4405(0x1fe)),this[_0x5b4405(0x1ef)]['if'](_0x5b4405(0x1c8),_0x5b4405(0x1fe))]}}),this[_0x5b4405(0x1e7)]=new _0x496718(_0x311e3e,_0x48d56c,_0x2a73db),this[_0x5b4405(0x1e7)][_0x5b4405(0x1b6)](..._0x33a484)['to'](this),this[_0x5b4405(0x1e7)]['on'](_0x5b4405(0x1e1),(_0x2612f1,_0x514ea8)=>{const _0x102cee=_0x5b4405;this[_0x102cee(0x1cb)]=_0x514ea8,this[_0x102cee(0x1ca)](_0x102cee(0x1b1),{'showDiff':_0x514ea8});}),this[_0x5b4405(0x1e7)][_0x5b4405(0x1c9)](_0x5b4405(0x1c4))['to'](this),this[_0x5b4405(0x1ce)][_0x5b4405(0x1f3)](this[_0x5b4405(0x1f4)]),this[_0x5b4405(0x1ce)][_0x5b4405(0x1f3)](this[_0x5b4405(0x1e7)]),this[_0x5b4405(0x1e6)]=new AIWebSourcesView(this[_0x5b4405(0x1d4)]),this[_0x5b4405(0x1ce)][_0x5b4405(0x1f3)](this[_0x5b4405(0x1e6)]),_0x4cbe43&&(this[_0x5b4405(0x1fc)]=this[_0x5b4405(0x1b2)](),this[_0x5b4405(0x1ce)][_0x5b4405(0x1f3)](this[_0x5b4405(0x1fc)])),this[_0x5b4405(0x1f1)]=this[_0x5b4405(0x1d9)](),this[_0x5b4405(0x1ce)][_0x5b4405(0x1f3)](this[_0x5b4405(0x1f1)]),this[_0x5b4405(0x1bf)]({'tag':_0x5b4405(0x1dc),'attributes':{'class':['ck',_0x5b4405(0x1ba),_0x5b4405(0x1df)]},'children':this[_0x5b4405(0x1ce)]});}async[_0x2f1639(0x1ec)](_0x5048b2){const _0x5d59e5=_0x2f1639;await this[_0x5d59e5(0x1f4)][_0x5d59e5(0x1de)](_0x5048b2);}[_0x2f1639(0x1d3)](_0x55b91d){const _0x3ce44d=_0x2f1639;this[_0x3ce44d(0x1e6)][_0x3ce44d(0x1ce)][_0x3ce44d(0x1cf)](_0x55b91d[_0x3ce44d(0x1d0)](_0x5c0e75=>new AIWebSourceView(this[_0x3ce44d(0x1d4)],_0x5c0e75))),this[_0x3ce44d(0x1e6)][_0x3ce44d(0x1ad)]=!0x0;}[_0x2f1639(0x1c6)](){const _0x3ae0a6=_0x2f1639;this[_0x3ae0a6(0x1fc)]&&(this[_0x3ae0a6(0x1f8)]=!0x0);}[_0x2f1639(0x1d5)](){const _0x44a194=_0x2f1639;this[_0x44a194(0x1fc)]&&(this[_0x44a194(0x1f8)]=!0x1);}[_0x2f1639(0x1e3)](_0x522565){const _0x3352b8=_0x2f1639;if(this[_0x3352b8(0x1f1)]){const _0x4495b6=this[_0x3352b8(0x1f1)][_0x3352b8(0x1be)]?.[_0x3352b8(0x1f9)](_0x3352b8(0x1d2));_0x4495b6&&(_0x4495b6[_0x3352b8(0x1c1)]=_0x522565),this[_0x3352b8(0x1c8)]=!0x0;}}[_0x2f1639(0x1ae)](){const _0x54a66f=_0x2f1639;this[_0x54a66f(0x1f1)]&&(this[_0x54a66f(0x1c8)]=!0x1);}[_0x2f1639(0x1f5)](){const _0x48aa8d=_0x2f1639;this[_0x48aa8d(0x1f4)][_0x48aa8d(0x1f5)](),this[_0x48aa8d(0x1e2)]&&(this[_0x48aa8d(0x1e2)][_0x48aa8d(0x1e9)]=this[_0x48aa8d(0x1f4)][_0x48aa8d(0x1f6)]);}[_0x2f1639(0x1e0)](){const _0x5e9482=_0x2f1639;this[_0x5e9482(0x1c4)]=!0x0;}[_0x2f1639(0x200)](){const _0x3c47f3=_0x2f1639;this[_0x3c47f3(0x1c4)]=!0x1;}[_0x2f1639(0x1d1)](){const _0x1eb76e=_0x2f1639;this[_0x1eb76e(0x1e7)]&&(this[_0x1eb76e(0x1e7)][_0x1eb76e(0x1c4)]=!0x0),this[_0x1eb76e(0x1e2)]?.[_0x1eb76e(0x1ee)]&&(this[_0x1eb76e(0x1e2)][_0x1eb76e(0x1ee)][_0x1eb76e(0x203)]=!0x1);}[_0x2f1639(0x1b7)](){const _0x5ac08e=_0x2f1639;this[_0x5ac08e(0x1e7)]&&(this[_0x5ac08e(0x1e7)][_0x5ac08e(0x1c4)]=!0x1),this[_0x5ac08e(0x1e2)]?.[_0x5ac08e(0x1ee)]&&(this[_0x5ac08e(0x1e2)][_0x5ac08e(0x1ee)][_0x5ac08e(0x203)]=!0x0);}[_0x2f1639(0x1e8)](_0x2421a8){const _0x37aef6=_0x2f1639;this[_0x37aef6(0x1e7)][_0x37aef6(0x1e5)][_0x37aef6(0x1f3)](_0x2421a8);}[_0x2f1639(0x1e4)](_0x15781){const _0x330eaf=_0x2f1639;this[_0x330eaf(0x1e7)][_0x330eaf(0x1e5)][_0x330eaf(0x202)](_0x15781);}[_0x2f1639(0x1b2)](){const _0x2741db=_0x2f1639,_0x20c51f=new _0x14337a(this[_0x2741db(0x1d4)]),_0x26cf0a=new _0x41183f(_0x2741db(0x1b3));_0x26cf0a[_0x2741db(0x1ad)]=!0x0;const _0xedd5ca=new _0x14337a(this[_0x2741db(0x1d4)]);return _0xedd5ca[_0x2741db(0x1bf)]({'tag':_0x2741db(0x1bd),'attributes':{'class':['ck',_0x2741db(0x201)]},'children':[_0x4469c5(this[_0x2741db(0x1d4)],_0x2741db(0x1d8))]}),_0x20c51f[_0x2741db(0x1bf)]({'tag':_0x2741db(0x1dc),'attributes':{'class':['ck',_0x2741db(0x1b4),this[_0x2741db(0x1ef)]['if'](_0x2741db(0x1f8),_0x2741db(0x1fe),_0x320eb2=>!_0x320eb2)]},'children':[_0x26cf0a,_0xedd5ca]}),_0x20c51f;}[_0x2f1639(0x1d9)](){const _0x50ee22=_0x2f1639,_0x39c467=new _0x14337a(this[_0x50ee22(0x1d4)]),_0x73db87=new _0x14337a(this[_0x50ee22(0x1d4)]);return _0x73db87[_0x50ee22(0x1bf)]({'tag':_0x50ee22(0x1bd),'attributes':{'class':['ck',_0x50ee22(0x1f0)]},'children':[_0x4469c5(this[_0x50ee22(0x1d4)],_0x50ee22(0x1b9))]}),_0x39c467[_0x50ee22(0x1bf)]({'tag':_0x50ee22(0x1dc),'attributes':{'class':['ck',_0x50ee22(0x1d7),this[_0x50ee22(0x1ef)]['if'](_0x50ee22(0x1c8),_0x50ee22(0x1fe),_0x2d5f32=>!_0x2d5f32)]},'children':[_0x73db87]}),_0x39c467;}}export class AIWebSourcesView extends _0x14337a{[_0x2f1639(0x1ce)];constructor(_0xe84acd){const _0x53d278=_0x2f1639;super(_0xe84acd),this[_0x53d278(0x1ce)]=this[_0x53d278(0x1c3)](),this[_0x53d278(0x1b0)](_0x53d278(0x1ad),!0x1),this[_0x53d278(0x1bf)]({'tag':_0x53d278(0x1dc),'attributes':{'class':['ck',_0x53d278(0x1bb),this[_0x53d278(0x1ef)]['if'](_0x53d278(0x1ad),_0x53d278(0x1fe),_0x22b906=>!_0x22b906)]},'children':this[_0x53d278(0x1ce)]});const _0x934bb0=new _0x14337a(this[_0x53d278(0x1d4)]),_0x1f21ef=new _0x19cc7e();_0x1f21ef[_0x53d278(0x1f7)]=_0x6e63c3,_0x934bb0[_0x53d278(0x1bf)]({'tag':_0x53d278(0x1dc),'attributes':{'class':['ck',_0x53d278(0x1f2)]},'children':[_0x1f21ef,{'tag':_0x53d278(0x1bd),'children':[{'text':_0x4469c5(this[_0x53d278(0x1d4)],_0x53d278(0x1c7))}]}]}),this[_0x53d278(0x1ce)][_0x53d278(0x1f3)](_0x934bb0);}}export class AIWebSourceView extends _0x11c48b{constructor(_0x545354,_0xea0a52){const _0x535b7e=_0x2f1639;super(_0x545354),this[_0x535b7e(0x1b0)]({'label':_0xea0a52[_0x535b7e(0x1eb)],'tooltip':_0xea0a52[_0x535b7e(0x1eb)],'class':[_0x535b7e(0x1ea)],'withText':!0x0});const _0x597166=this[_0x535b7e(0x1ef)];if(this[_0x535b7e(0x1c2)]({'on':{'click':_0x597166['to'](()=>{const _0x5c1be7=_0x535b7e;window[_0x5c1be7(0x1ed)](_0xea0a52[_0x5c1be7(0x1c5)],_0x5c1be7(0x1da));})}}),_0xea0a52[_0x535b7e(0x1ff)]){const _0x176644=new _0x14337a(_0x545354);_0x176644[_0x535b7e(0x1bf)]({'tag':_0x535b7e(0x1fb),'attributes':{'src':_0xea0a52[_0x535b7e(0x1ff)]||_0x6e63c3,'alt':_0xea0a52[_0x535b7e(0x1eb)],'class':[_0x535b7e(0x1fa)]}}),this[_0x535b7e(0x1ce)][_0x535b7e(0x1f3)](_0x176644);}else this[_0x535b7e(0x1b0)](_0x535b7e(0x1db),_0x6e63c3);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5d0056=_0xeae3;(function(_0x3f1165,_0x5c128d){const _0x2ac84f=_0xeae3,_0x4a69f2=_0x3f1165();while(!![]){try{const _0x5e3461=parseInt(_0x2ac84f(0x201))/0x1+parseInt(_0x2ac84f(0x1fb))/0x2+parseInt(_0x2ac84f(0x1d9))/0x3*(parseInt(_0x2ac84f(0x1e8))/0x4)+parseInt(_0x2ac84f(0x1d2))/0x5*(-parseInt(_0x2ac84f(0x1ed))/0x6)+-parseInt(_0x2ac84f(0x1ec))/0x7*(parseInt(_0x2ac84f(0x1d8))/0x8)+parseInt(_0x2ac84f(0x1e6))/0x9+parseInt(_0x2ac84f(0x1be))/0xa*(-parseInt(_0x2ac84f(0x1d0))/0xb);if(_0x5e3461===_0x5c128d)break;else _0x4a69f2['push'](_0x4a69f2['shift']());}catch(_0xe940e6){_0x4a69f2['push'](_0x4a69f2['shift']());}}}(_0xfbda,0x2f3be));function _0xfbda(){const _0x4100cb=['toString','AI_SUGGESTION_CONTENT_PART_ADD_AS_SUGGESTION','AI_SUGGESTION_CONTENT_PART_OUTDATED','element','createCollection','div','ck-ai-suggestion__body__content-part__icon-title','ck-reset_all-excluded','stream','ck-hidden','ck-ai-suggestion__body__content-part__title__label','11GsYyXb','toggleHeader','5tqHsYj','has','_iconStateAccepted','set','addMany','animation:\x20ck-html-streamer-fade-in\x20.5s','14464ZgPRSH','356364VfwSWE','state','ck-ai-suggestion__body__content-part__title','push','ck-ai-suggestion__body__content-part_active','extendTemplate','index','AI_SUGGESTION_CONTENT_PART_ALREADY_APPLIED','bind','updateContent','streaming','items','isVisible','258552XgcYNw','ck-ai-suggestion__body__content-part__icon-accepted','8JQXKLQ','rejected','_toolbarView','ck-ai-suggestion__body__content-part__content','245FKGDzB','1125510BcDWVJ','isEnabled','execute','_iconStateOutdated','children','add','contentView','mouseLeaveSuggestion','setTemplate','ck-ai-suggestion__body__content-part__icon-rejected','outdated','accepted','insertSuggestion','ck-ai-suggestion__body__content-part_','94546rVHLOU','mouseOverSuggestion','AI_SUGGESTION_CONTENT_PART_REJECTED','hasChanges','htmlStreamer','_iconStateRejected','361240XNkISD','change:state','AI_SUGGESTION_CONTENT_PART_TITLE','partDefinition','delegate','content','fire','span','includes','ck-content','headerView','showChangeInText','ck-ai-suggestion__body__content-part__icon-outdated','innerHTML','AI_SUGGESTION_CONTENT_PART_DELETE','2304820itrUQa','remove','bindTemplate','AI_SUGGESTION_CONTENT_PART_SHOW_IN_THE_TEXT','rejectSuggestion','pending','ck-ai-suggestion__body__content-part'];_0xfbda=function(){return _0x4100cb;};return _0xfbda();}import{View as _0x3da864,IconView as _0x28d3cc,ToolbarView as _0x4cc149,ButtonView as _0x10bf02}from'ckeditor5/src/ui.js';import{IconAddComment as _0x4c393,IconDocumentWithLoupe as _0x372ed2,IconDocumentWithCheckmark as _0x888892,IconDocumentWithCross as _0x4e3ee1,IconRemove as _0x2b5fb4,IconThreeStars as _0x1b4519}from'ckeditor5/src/icons.js';import{HTMLStreamer as _0x3f7026}from'../../utils/htmlstreamer.js';import{getTranslation as _0xb1d47d}from'../../utils/common-translations.js';function _0xeae3(_0x27c204,_0x1d37c){const _0xfbda54=_0xfbda();return _0xeae3=function(_0xeae3cb,_0x4bf282){_0xeae3cb=_0xeae3cb-0x1bd;let _0x2becb6=_0xfbda54[_0xeae3cb];return _0x2becb6;},_0xeae3(_0x27c204,_0x1d37c);}import{serialize as _0x29b06d}from'../../utils/htmlparser.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x497cd3}from'../../utils/eventnames.js';export class AISuggestionBodyViewContentPartView extends _0x3da864{[_0x5d0056(0x1ff)];[_0x5d0056(0x1f1)];[_0x5d0056(0x20b)];[_0x5d0056(0x1f3)];constructor(_0x3617ef,{part:_0x310127,uiIndex:_0x331081,areActionsDisabled:_0x614d5d,availableActions:_0x104d0c}){const _0x11fe69=_0x5d0056;super(_0x3617ef),this[_0x11fe69(0x1d5)](_0x11fe69(0x204),_0x310127),this[_0x11fe69(0x1d5)](_0x11fe69(0x1da),_0x11fe69(0x1c3)),this[_0x11fe69(0x1d5)](_0x11fe69(0x1e5),!0x1),this[_0x11fe69(0x1e1)](_0x11fe69(0x1ee))['to'](this,_0x11fe69(0x1da),_0x47dca6=>_0x11fe69(0x1c3)==_0x47dca6&&!_0x614d5d),this[_0x11fe69(0x1f1)]=this[_0x11fe69(0x1c9)](),this[_0x11fe69(0x1ff)]=new _0x3f7026({'textNodeStyle':_0x11fe69(0x1d7),'delay':0x14}),this[_0x11fe69(0x20b)]=new Vn(_0x3617ef,{'part':_0x310127,'uiIndex':_0x331081,'availableActions':_0x104d0c}),this[_0x11fe69(0x20b)][_0x11fe69(0x1e1)](_0x11fe69(0x204))['to'](this),this[_0x11fe69(0x20b)][_0x11fe69(0x1e1)](_0x11fe69(0x1ee))['to'](this),this[_0x11fe69(0x20b)][_0x11fe69(0x1e1)](_0x11fe69(0x1da))['to'](this),this[_0x11fe69(0x20b)][_0x11fe69(0x205)](..._0x497cd3)['to'](this);const _0x446334=this[_0x11fe69(0x1c0)];this[_0x11fe69(0x1f3)]=new _0x3da864(),this[_0x11fe69(0x1f3)][_0x11fe69(0x1f5)]({'tag':_0x11fe69(0x1ca),'attributes':{'class':['ck',_0x11fe69(0x20a),_0x11fe69(0x1cc),_0x11fe69(0x1eb)]}}),this[_0x11fe69(0x1f1)][_0x11fe69(0x1d6)]([this[_0x11fe69(0x1f3)]]),this[_0x11fe69(0x1f5)]({'tag':_0x11fe69(0x1ca),'attributes':{'class':['ck',_0x11fe69(0x1c4),_0x446334['to'](_0x11fe69(0x1da),_0x47c82b=>_0x11fe69(0x1fa)+_0x47c82b),_0x446334['to'](_0x11fe69(0x1ee),_0x13579e=>_0x13579e?_0x11fe69(0x1dd):void 0x0),_0x446334['if'](_0x11fe69(0x1e5),_0x11fe69(0x1ce),_0x4a1f0c=>!_0x4a1f0c)]},'children':this[_0x11fe69(0x1f1)],'on':{'mouseenter':_0x446334['to'](()=>{const _0x197503=_0x11fe69;this[_0x197503(0x1ee)]&&this[_0x197503(0x207)](_0x197503(0x1fc),{'index':_0x310127[_0x197503(0x1df)]});}),'mouseleave':_0x446334['to'](()=>{const _0x5cec0f=_0x11fe69;this[_0x5cec0f(0x1ee)]&&this[_0x5cec0f(0x207)](_0x5cec0f(0x1f4),{'index':_0x310127[_0x5cec0f(0x1df)]});})}});}async[_0x5d0056(0x1e2)]({part:_0x285513,renderingStrategy:_0x42dc28,showUnchangedParts:_0x473ea7=!0x1,abortSignal:_0x236417}){const _0x4fc40f=_0x5d0056;this[_0x4fc40f(0x204)]=_0x285513,this[_0x4fc40f(0x1e5)]=this[_0x4fc40f(0x204)][_0x4fc40f(0x1fe)]||_0x473ea7,this[_0x4fc40f(0x1e5)]&&(_0x4fc40f(0x1e3)===_0x42dc28?await this[_0x4fc40f(0x1ff)][_0x4fc40f(0x1cd)]({'document':this[_0x4fc40f(0x204)][_0x4fc40f(0x206)],'targetElement':this[_0x4fc40f(0x1f3)][_0x4fc40f(0x1c8)],'abortSignal':_0x236417}):this[_0x4fc40f(0x1f3)][_0x4fc40f(0x1c8)][_0x4fc40f(0x20e)]=_0x29b06d(this[_0x4fc40f(0x204)][_0x4fc40f(0x206)]));}[_0x5d0056(0x1d1)](_0x362965){const _0x5a6035=_0x5d0056;_0x362965?this[_0x5a6035(0x1f1)][_0x5a6035(0x1d3)](this[_0x5a6035(0x20b)])||this[_0x5a6035(0x1f1)][_0x5a6035(0x1f2)](this[_0x5a6035(0x20b)],0x0):this[_0x5a6035(0x1f1)][_0x5a6035(0x1d3)](this[_0x5a6035(0x20b)])&&this[_0x5a6035(0x1f1)][_0x5a6035(0x1bf)](this[_0x5a6035(0x20b)]);}}class Vn extends _0x3da864{[_0x5d0056(0x1f1)];[_0x5d0056(0x1ea)];[_0x5d0056(0x1d4)];[_0x5d0056(0x200)];[_0x5d0056(0x1f0)];constructor(_0x1fc96a,{part:_0x220b22,uiIndex:_0x1d2a10,availableActions:_0x3b45ce}){const _0x219d05=_0x5d0056;super(_0x1fc96a),this[_0x219d05(0x1d5)](_0x219d05(0x204),_0x220b22),this[_0x219d05(0x1d5)](_0x219d05(0x1ee),!0x0),this[_0x219d05(0x1d5)](_0x219d05(0x1da),_0x219d05(0x1c3));const _0x193fbd=new _0x28d3cc();_0x193fbd[_0x219d05(0x206)]=_0x1b4519,_0x193fbd[_0x219d05(0x1de)]({'attributes':{'class':[_0x219d05(0x1cb)]}});const _0xe8cbab=[];if(_0x3b45ce[_0x219d05(0x209)](_0x219d05(0x20c))){const _0x13228f=new _0x10bf02(_0x1fc96a);_0x13228f[_0x219d05(0x1d5)]({'label':_0xb1d47d(_0x1fc96a,_0x219d05(0x1c1)),'tooltip':!0x0,'withText':!0x1,'icon':_0x372ed2}),_0x13228f[_0x219d05(0x1e1)](_0x219d05(0x1ee))['to'](this),_0x13228f['on'](_0x219d05(0x1ef),()=>{const _0x26bc6f=_0x219d05;this[_0x26bc6f(0x207)](_0x26bc6f(0x20c),{'index':_0x220b22[_0x26bc6f(0x1df)]});}),_0xe8cbab[_0x219d05(0x1dc)](_0x13228f);}if(_0x3b45ce[_0x219d05(0x209)](_0x219d05(0x1f9))){const _0x106682=new _0x10bf02(_0x1fc96a);_0x106682[_0x219d05(0x1d5)]({'label':_0xb1d47d(_0x1fc96a,_0x219d05(0x1c6)),'tooltip':!0x0,'withText':!0x1,'icon':_0x4c393}),_0x106682[_0x219d05(0x1e1)](_0x219d05(0x1ee))['to'](this),_0x106682['on'](_0x219d05(0x1ef),()=>{const _0x229064=_0x219d05;this[_0x229064(0x207)](_0x229064(0x1f9),{'index':_0x220b22[_0x229064(0x1df)]});}),_0xe8cbab[_0x219d05(0x1dc)](_0x106682);}const _0x47c453=new _0x10bf02(_0x1fc96a);_0x47c453[_0x219d05(0x1d5)]({'label':_0xb1d47d(_0x1fc96a,_0x219d05(0x1bd)),'tooltip':!0x0,'withText':!0x1,'icon':_0x2b5fb4}),_0x47c453[_0x219d05(0x1e1)](_0x219d05(0x1ee))['to'](this),_0x47c453['on'](_0x219d05(0x1ef),()=>{const _0x11d5f4=_0x219d05;this[_0x11d5f4(0x207)](_0x11d5f4(0x1c2),{'index':_0x220b22[_0x11d5f4(0x1df)]});}),_0xe8cbab[_0x219d05(0x1dc)](_0x47c453),this[_0x219d05(0x1ea)]=new _0x4cc149(_0x1fc96a),this[_0x219d05(0x1ea)][_0x219d05(0x1e4)][_0x219d05(0x1d6)](_0xe8cbab),this[_0x219d05(0x1d4)]=new _0x28d3cc(),this[_0x219d05(0x1d4)][_0x219d05(0x206)]=_0x888892,this[_0x219d05(0x1d4)][_0x219d05(0x1de)]({'attributes':{'class':[_0x219d05(0x1e7)],'data-cke-tooltip-text':_0xb1d47d(_0x1fc96a,_0x219d05(0x1e0)),'data-cke-tooltip-position':'n'}}),this[_0x219d05(0x200)]=new _0x28d3cc(),this[_0x219d05(0x200)][_0x219d05(0x206)]=_0x4e3ee1,this[_0x219d05(0x200)][_0x219d05(0x1de)]({'attributes':{'class':[_0x219d05(0x1f6)],'data-cke-tooltip-text':_0xb1d47d(_0x1fc96a,_0x219d05(0x1fd)),'data-cke-tooltip-position':'n'}}),this[_0x219d05(0x1f0)]=new _0x28d3cc(),this[_0x219d05(0x1f0)][_0x219d05(0x206)]=_0x4e3ee1,this[_0x219d05(0x1f0)][_0x219d05(0x1de)]({'attributes':{'class':[_0x219d05(0x20d)],'data-cke-tooltip-text':_0xb1d47d(_0x1fc96a,_0x219d05(0x1c7)),'data-cke-tooltip-position':'n'}});const _0x9fdbe2=new _0x3da864(_0x1fc96a);_0x9fdbe2[_0x219d05(0x1f5)]({'tag':_0x219d05(0x208),'attributes':{'class':['ck',_0x219d05(0x1cf)]},'children':[_0xb1d47d(_0x1fc96a,_0x219d05(0x203),_0x1d2a10[_0x219d05(0x1c5)]())]}),this[_0x219d05(0x1f1)]=this[_0x219d05(0x1c9)](),this[_0x219d05(0x1f1)][_0x219d05(0x1d6)]([_0x193fbd,_0x9fdbe2,this[_0x219d05(0x1ea)]]),this[_0x219d05(0x1f5)]({'tag':_0x219d05(0x1ca),'attributes':{'class':['ck',_0x219d05(0x1cc),_0x219d05(0x1db)]},'children':this[_0x219d05(0x1f1)]}),this['on'](_0x219d05(0x202),(_0x229489,_0x52564c,_0x4ec740,_0x53e6e6)=>{const _0x1ba2d4=_0x219d05;switch(_0x53e6e6){case _0x1ba2d4(0x1c3):this[_0x1ba2d4(0x1f1)][_0x1ba2d4(0x1bf)](this[_0x1ba2d4(0x1ea)]);break;case _0x1ba2d4(0x1f8):this[_0x1ba2d4(0x1f1)][_0x1ba2d4(0x1bf)](this[_0x1ba2d4(0x1d4)]);break;case _0x1ba2d4(0x1e9):this[_0x1ba2d4(0x1f1)][_0x1ba2d4(0x1bf)](this[_0x1ba2d4(0x200)]);break;case _0x1ba2d4(0x1f7):this[_0x1ba2d4(0x1f1)][_0x1ba2d4(0x1bf)](this[_0x1ba2d4(0x1f0)]);}switch(_0x4ec740){case _0x1ba2d4(0x1c3):this[_0x1ba2d4(0x1f1)][_0x1ba2d4(0x1f2)](this[_0x1ba2d4(0x1ea)]);break;case _0x1ba2d4(0x1f8):this[_0x1ba2d4(0x1f1)][_0x1ba2d4(0x1f2)](this[_0x1ba2d4(0x1d4)]);break;case _0x1ba2d4(0x1e9):this[_0x1ba2d4(0x1f1)][_0x1ba2d4(0x1f2)](this[_0x1ba2d4(0x200)]);break;case _0x1ba2d4(0x1f7):this[_0x1ba2d4(0x1f1)][_0x1ba2d4(0x1f2)](this[_0x1ba2d4(0x1f0)]);}});}}
|
|
23
|
+
function _0x6bc4(_0x8099d0,_0x209258){const _0x346a33=_0x346a();return _0x6bc4=function(_0x6bc4b4,_0x554422){_0x6bc4b4=_0x6bc4b4-0xcd;let _0x56e964=_0x346a33[_0x6bc4b4];return _0x56e964;},_0x6bc4(_0x8099d0,_0x209258);}const _0x156108=_0x6bc4;(function(_0x52b7cc,_0xdd4d8f){const _0x5e2d01=_0x6bc4,_0x18daf4=_0x52b7cc();while(!![]){try{const _0x11a7a3=parseInt(_0x5e2d01(0x107))/0x1+parseInt(_0x5e2d01(0x113))/0x2+parseInt(_0x5e2d01(0x11a))/0x3*(parseInt(_0x5e2d01(0xd8))/0x4)+-parseInt(_0x5e2d01(0x109))/0x5*(parseInt(_0x5e2d01(0xcf))/0x6)+-parseInt(_0x5e2d01(0xda))/0x7*(parseInt(_0x5e2d01(0xcd))/0x8)+parseInt(_0x5e2d01(0x101))/0x9+-parseInt(_0x5e2d01(0x105))/0xa;if(_0x11a7a3===_0xdd4d8f)break;else _0x18daf4['push'](_0x18daf4['shift']());}catch(_0x12300a){_0x18daf4['push'](_0x18daf4['shift']());}}}(_0x346a,0xc3be7));import{View as _0x5343f6,IconView as _0x5a9b5c,ToolbarView as _0xa03e44,ButtonView as _0x1328f9}from'ckeditor5/src/ui.js';import{IconAddComment as _0x485ca3,IconDocumentWithLoupe as _0x37a4a7,IconDocumentWithCheckmark as _0x1795e6,IconDocumentWithCross as _0x447a9f,IconRemove as _0x3a2abb,IconThreeStars as _0x39905a}from'ckeditor5/src/icons.js';import{HTMLStreamer as _0x530a9f}from'../../utils/htmlstreamer.js';import{getTranslation as _0x1f3326}from'../../utils/common-translations.js';import{serialize as _0x30aab2}from'../../utils/htmlparser.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x1db1ad}from'../../utils/eventnames.js';function _0x346a(){const _0x55e2ba=['_iconStateAccepted','insertSuggestion','_iconStateRejected','ck-ai-suggestion__body__content-part__icon-title','333ldHwOe','ck-ai-suggestion__body__content-part_active','mouseLeaveSuggestion','extendTemplate','27248Mjxtxi','element','12lgqvdx','push','AI_SUGGESTION_CONTENT_PART_ALREADY_APPLIED','items','ck-ai-suggestion__body__content-part__content','ck-ai-suggestion__body__content-part__icon-rejected','has','AI_SUGGESTION_CONTENT_PART_DELETE','toString','9788lHuCcV','execute','1246eQOIuf','createCollection','ck-content','headerView','ck-ai-suggestion__body__content-part','addMany','state','showChangeInText','ck-ai-suggestion__body__content-part__icon-accepted','includes','updateContent','_iconStateOutdated','index','ck-ai-suggestion__body__content-part__title__label','delegate','bind','streaming','accepted','pending','toggleHeader','div','htmlStreamer','contentView','AI_SUGGESTION_CONTENT_PART_TITLE','AI_SUGGESTION_CONTENT_PART_ADD_AS_SUGGESTION','rejected','stream','ck-ai-suggestion__body__content-part__title','span','ck-ai-suggestion__body__content-part_','add','bindTemplate','innerHTML','AI_SUGGESTION_CONTENT_PART_SHOW_IN_THE_TEXT','set','ck-hidden','change:state','mouseOverSuggestion','remove','713016lRhQxZ','ck-ai-suggestion__body__content-part__icon-outdated','content','AI_SUGGESTION_CONTENT_PART_REJECTED','264020SPwthV','AI_SUGGESTION_CONTENT_PART_OUTDATED','1143633vVlGNv','partDefinition','471895SOlMUy','hasChanges','outdated','ck-reset_all-excluded','children','fire','isVisible','_toolbarView','animation:\x20ck-html-streamer-fade-in\x20.5s','rejectSuggestion','257442OmSpwT','isEnabled','setTemplate'];_0x346a=function(){return _0x55e2ba;};return _0x346a();}export class AISuggestionBodyViewContentPartView extends _0x5343f6{[_0x156108(0xef)];[_0x156108(0x10d)];[_0x156108(0xdd)];[_0x156108(0xf0)];constructor(_0x4e8278,{part:_0x18e4e6,uiIndex:_0x6479a8,areActionsDisabled:_0x7f135e,availableActions:_0x15fd47}){const _0x1ba3aa=_0x156108;super(_0x4e8278),this[_0x1ba3aa(0xfc)](_0x1ba3aa(0x108),_0x18e4e6),this[_0x1ba3aa(0xfc)](_0x1ba3aa(0xe0),_0x1ba3aa(0xec)),this[_0x1ba3aa(0xfc)](_0x1ba3aa(0x10f),!0x1),this[_0x1ba3aa(0xe9)](_0x1ba3aa(0x114))['to'](this,_0x1ba3aa(0xe0),_0x4e36c2=>_0x1ba3aa(0xec)==_0x4e36c2&&!_0x7f135e),this[_0x1ba3aa(0x10d)]=this[_0x1ba3aa(0xdb)](),this[_0x1ba3aa(0xef)]=new _0x530a9f({'textNodeStyle':_0x1ba3aa(0x111),'delay':0x14}),this[_0x1ba3aa(0xdd)]=new Un(_0x4e8278,{'part':_0x18e4e6,'uiIndex':_0x6479a8,'availableActions':_0x15fd47}),this[_0x1ba3aa(0xdd)][_0x1ba3aa(0xe9)](_0x1ba3aa(0x108))['to'](this),this[_0x1ba3aa(0xdd)][_0x1ba3aa(0xe9)](_0x1ba3aa(0x114))['to'](this),this[_0x1ba3aa(0xdd)][_0x1ba3aa(0xe9)](_0x1ba3aa(0xe0))['to'](this),this[_0x1ba3aa(0xdd)][_0x1ba3aa(0xe8)](..._0x1db1ad)['to'](this);const _0x458798=this[_0x1ba3aa(0xf9)];this[_0x1ba3aa(0xf0)]=new _0x5343f6(),this[_0x1ba3aa(0xf0)][_0x1ba3aa(0x115)]({'tag':_0x1ba3aa(0xee),'attributes':{'class':['ck',_0x1ba3aa(0xdc),_0x1ba3aa(0x10c),_0x1ba3aa(0xd3)]}}),this[_0x1ba3aa(0x10d)][_0x1ba3aa(0xdf)]([this[_0x1ba3aa(0xf0)]]),this[_0x1ba3aa(0x115)]({'tag':_0x1ba3aa(0xee),'attributes':{'class':['ck',_0x1ba3aa(0xde),_0x458798['to'](_0x1ba3aa(0xe0),_0x474033=>_0x1ba3aa(0xf7)+_0x474033),_0x458798['to'](_0x1ba3aa(0x114),_0x1d459d=>_0x1d459d?_0x1ba3aa(0x11b):void 0x0),_0x458798['if'](_0x1ba3aa(0x10f),_0x1ba3aa(0xfd),_0x2a7176=>!_0x2a7176)]},'children':this[_0x1ba3aa(0x10d)],'on':{'mouseenter':_0x458798['to'](()=>{const _0x5338ed=_0x1ba3aa;this[_0x5338ed(0x114)]&&this[_0x5338ed(0x10e)](_0x5338ed(0xff),{'index':_0x18e4e6[_0x5338ed(0xe6)]});}),'mouseleave':_0x458798['to'](()=>{const _0x24582e=_0x1ba3aa;this[_0x24582e(0x114)]&&this[_0x24582e(0x10e)](_0x24582e(0x11c),{'index':_0x18e4e6[_0x24582e(0xe6)]});})}});}async[_0x156108(0xe4)]({part:_0x4d6da7,renderingStrategy:_0x4b1141,showUnchangedParts:_0x4c5ca6=!0x1,abortSignal:_0x2163f5}){const _0x5e2e59=_0x156108;this[_0x5e2e59(0x108)]=_0x4d6da7,this[_0x5e2e59(0x10f)]=this[_0x5e2e59(0x108)][_0x5e2e59(0x10a)]||_0x4c5ca6,this[_0x5e2e59(0x10f)]&&(_0x5e2e59(0xea)===_0x4b1141?await this[_0x5e2e59(0xef)][_0x5e2e59(0xf4)]({'document':this[_0x5e2e59(0x108)][_0x5e2e59(0x103)],'targetElement':this[_0x5e2e59(0xf0)][_0x5e2e59(0xce)],'abortSignal':_0x2163f5}):this[_0x5e2e59(0xf0)][_0x5e2e59(0xce)][_0x5e2e59(0xfa)]=_0x30aab2(this[_0x5e2e59(0x108)][_0x5e2e59(0x103)]));}[_0x156108(0xed)](_0x3d832d){const _0x417646=_0x156108;_0x3d832d?this[_0x417646(0x10d)][_0x417646(0xd5)](this[_0x417646(0xdd)])||this[_0x417646(0x10d)][_0x417646(0xf8)](this[_0x417646(0xdd)],0x0):this[_0x417646(0x10d)][_0x417646(0xd5)](this[_0x417646(0xdd)])&&this[_0x417646(0x10d)][_0x417646(0x100)](this[_0x417646(0xdd)]);}}class Un extends _0x5343f6{[_0x156108(0x10d)];[_0x156108(0x110)];[_0x156108(0x116)];[_0x156108(0x118)];[_0x156108(0xe5)];constructor(_0x209083,{part:_0x3caddb,uiIndex:_0x20d57d,availableActions:_0x1cbeea}){const _0x1f51df=_0x156108;super(_0x209083),this[_0x1f51df(0xfc)](_0x1f51df(0x108),_0x3caddb),this[_0x1f51df(0xfc)](_0x1f51df(0x114),!0x0),this[_0x1f51df(0xfc)](_0x1f51df(0xe0),_0x1f51df(0xec));const _0x8c508c=new _0x5a9b5c();_0x8c508c[_0x1f51df(0x103)]=_0x39905a,_0x8c508c[_0x1f51df(0x11d)]({'attributes':{'class':[_0x1f51df(0x119)]}});const _0x19140c=[];if(_0x1cbeea[_0x1f51df(0xe3)](_0x1f51df(0xe1))){const _0x3d242d=new _0x1328f9(_0x209083);_0x3d242d[_0x1f51df(0xfc)]({'label':_0x1f3326(_0x209083,_0x1f51df(0xfb)),'tooltip':!0x0,'withText':!0x1,'icon':_0x37a4a7}),_0x3d242d[_0x1f51df(0xe9)](_0x1f51df(0x114))['to'](this),_0x3d242d['on'](_0x1f51df(0xd9),()=>{const _0x3f3b59=_0x1f51df;this[_0x3f3b59(0x10e)](_0x3f3b59(0xe1),{'index':_0x3caddb[_0x3f3b59(0xe6)]});}),_0x19140c[_0x1f51df(0xd0)](_0x3d242d);}if(_0x1cbeea[_0x1f51df(0xe3)](_0x1f51df(0x117))){const _0x25e7c4=new _0x1328f9(_0x209083);_0x25e7c4[_0x1f51df(0xfc)]({'label':_0x1f3326(_0x209083,_0x1f51df(0xf2)),'tooltip':!0x0,'withText':!0x1,'icon':_0x485ca3}),_0x25e7c4[_0x1f51df(0xe9)](_0x1f51df(0x114))['to'](this),_0x25e7c4['on'](_0x1f51df(0xd9),()=>{const _0x4aa7db=_0x1f51df;this[_0x4aa7db(0x10e)](_0x4aa7db(0x117),{'index':_0x3caddb[_0x4aa7db(0xe6)]});}),_0x19140c[_0x1f51df(0xd0)](_0x25e7c4);}const _0x2cffbc=new _0x1328f9(_0x209083);_0x2cffbc[_0x1f51df(0xfc)]({'label':_0x1f3326(_0x209083,_0x1f51df(0xd6)),'tooltip':!0x0,'withText':!0x1,'icon':_0x3a2abb}),_0x2cffbc[_0x1f51df(0xe9)](_0x1f51df(0x114))['to'](this),_0x2cffbc['on'](_0x1f51df(0xd9),()=>{const _0x3536e2=_0x1f51df;this[_0x3536e2(0x10e)](_0x3536e2(0x112),{'index':_0x3caddb[_0x3536e2(0xe6)]});}),_0x19140c[_0x1f51df(0xd0)](_0x2cffbc),this[_0x1f51df(0x110)]=new _0xa03e44(_0x209083),this[_0x1f51df(0x110)][_0x1f51df(0xd2)][_0x1f51df(0xdf)](_0x19140c),this[_0x1f51df(0x116)]=new _0x5a9b5c(),this[_0x1f51df(0x116)][_0x1f51df(0x103)]=_0x1795e6,this[_0x1f51df(0x116)][_0x1f51df(0x11d)]({'attributes':{'class':[_0x1f51df(0xe2)],'data-cke-tooltip-text':_0x1f3326(_0x209083,_0x1f51df(0xd1)),'data-cke-tooltip-position':'n'}}),this[_0x1f51df(0x118)]=new _0x5a9b5c(),this[_0x1f51df(0x118)][_0x1f51df(0x103)]=_0x447a9f,this[_0x1f51df(0x118)][_0x1f51df(0x11d)]({'attributes':{'class':[_0x1f51df(0xd4)],'data-cke-tooltip-text':_0x1f3326(_0x209083,_0x1f51df(0x104)),'data-cke-tooltip-position':'n'}}),this[_0x1f51df(0xe5)]=new _0x5a9b5c(),this[_0x1f51df(0xe5)][_0x1f51df(0x103)]=_0x447a9f,this[_0x1f51df(0xe5)][_0x1f51df(0x11d)]({'attributes':{'class':[_0x1f51df(0x102)],'data-cke-tooltip-text':_0x1f3326(_0x209083,_0x1f51df(0x106)),'data-cke-tooltip-position':'n'}});const _0x11b94b=new _0x5343f6(_0x209083);_0x11b94b[_0x1f51df(0x115)]({'tag':_0x1f51df(0xf6),'attributes':{'class':['ck',_0x1f51df(0xe7)]},'children':[_0x1f3326(_0x209083,_0x1f51df(0xf1),_0x20d57d[_0x1f51df(0xd7)]())]}),this[_0x1f51df(0x10d)]=this[_0x1f51df(0xdb)](),this[_0x1f51df(0x10d)][_0x1f51df(0xdf)]([_0x8c508c,_0x11b94b,this[_0x1f51df(0x110)]]),this[_0x1f51df(0x115)]({'tag':_0x1f51df(0xee),'attributes':{'class':['ck',_0x1f51df(0x10c),_0x1f51df(0xf5)]},'children':this[_0x1f51df(0x10d)]}),this['on'](_0x1f51df(0xfe),(_0x3a2bb4,_0x5e7947,_0x320a0d,_0x5d3fd4)=>{const _0x4348c6=_0x1f51df;switch(_0x5d3fd4){case _0x4348c6(0xec):this[_0x4348c6(0x10d)][_0x4348c6(0x100)](this[_0x4348c6(0x110)]);break;case _0x4348c6(0xeb):this[_0x4348c6(0x10d)][_0x4348c6(0x100)](this[_0x4348c6(0x116)]);break;case _0x4348c6(0xf3):this[_0x4348c6(0x10d)][_0x4348c6(0x100)](this[_0x4348c6(0x118)]);break;case _0x4348c6(0x10b):this[_0x4348c6(0x10d)][_0x4348c6(0x100)](this[_0x4348c6(0xe5)]);}switch(_0x320a0d){case _0x4348c6(0xec):this[_0x4348c6(0x10d)][_0x4348c6(0xf8)](this[_0x4348c6(0x110)]);break;case _0x4348c6(0xeb):this[_0x4348c6(0x10d)][_0x4348c6(0xf8)](this[_0x4348c6(0x116)]);break;case _0x4348c6(0xf3):this[_0x4348c6(0x10d)][_0x4348c6(0xf8)](this[_0x4348c6(0x118)]);break;case _0x4348c6(0x10b):this[_0x4348c6(0x10d)][_0x4348c6(0xf8)](this[_0x4348c6(0xe5)]);}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0xac84(_0xee1e47,_0x2f4178){const _0x502143=_0x5021();return _0xac84=function(_0xac84e6,_0x5f066e){_0xac84e6=_0xac84e6-0x15c;let _0x3375e1=_0x502143[_0xac84e6];return _0x3375e1;},_0xac84(_0xee1e47,_0x2f4178);}const _0x1f0597=_0xac84;(function(_0x265e65,_0x246208){const _0x267ff8=_0xac84,_0x193f36=_0x265e65();while(!![]){try{const _0x2c9599=-parseInt(_0x267ff8(0x16b))/0x1*(parseInt(_0x267ff8(0x170))/0x2)+-parseInt(_0x267ff8(0x162))/0x3*(-parseInt(_0x267ff8(0x173))/0x4)+-parseInt(_0x267ff8(0x16d))/0x5*(parseInt(_0x267ff8(0x175))/0x6)+-parseInt(_0x267ff8(0x171))/0x7*(-parseInt(_0x267ff8(0x16f))/0x8)+parseInt(_0x267ff8(0x182))/0x9*(-parseInt(_0x267ff8(0x167))/0xa)+parseInt(_0x267ff8(0x17e))/0xb*(parseInt(_0x267ff8(0x15f))/0xc)+-parseInt(_0x267ff8(0x178))/0xd*(-parseInt(_0x267ff8(0x17a))/0xe);if(_0x2c9599===_0x246208)break;else _0x193f36['push'](_0x193f36['shift']());}catch(_0x15a598){_0x193f36['push'](_0x193f36['shift']());}}}(_0x5021,0xa654b));import{getTranslation as _0x253017}from'../../utils/common-translations.js';import{ButtonView as _0x3e6a92,IconView as _0x47886f,View as _0xdceaee}from'ckeditor5/src/ui.js';import{IconDocument as _0xd9a1ac,IconShowChangesOff as _0x5e88c7,IconShowChangesOn as _0x31ec15}from'ckeditor5/src/icons.js';export class AISuggestionHeaderView extends _0xdceaee{[_0x1f0597(0x15e)];constructor(_0x37d9b2,_0x188a84){const _0x3fc7ef=_0x1f0597;super(_0x37d9b2),this[_0x3fc7ef(0x184)](_0x3fc7ef(0x172),!0x0),this[_0x3fc7ef(0x15e)]=new ShowChangesToggleView(_0x37d9b2),this[_0x3fc7ef(0x15e)][_0x3fc7ef(0x184)]({'class':_0x3fc7ef(0x165),'label':_0x253017(_0x37d9b2,_0x3fc7ef(0x160)),'withText':!0x0}),this[_0x3fc7ef(0x15e)][_0x3fc7ef(0x183)]=_0x188a84[_0x3fc7ef(0x16c)],this[_0x3fc7ef(0x15e)][_0x3fc7ef(0x17f)](_0x3fc7ef(0x16a))['to'](this,_0x3fc7ef(0x172)),this[_0x3fc7ef(0x15e)][_0x3fc7ef(0x17f)](_0x3fc7ef(0x17b))['to'](this[_0x3fc7ef(0x15e)],_0x3fc7ef(0x183),_0x373998=>_0x373998?_0x31ec15:_0x5e88c7),this[_0x3fc7ef(0x15e)]['on'](_0x3fc7ef(0x179),()=>{const _0xab7694=_0x3fc7ef;this[_0xab7694(0x15e)][_0xab7694(0x183)]=!this[_0xab7694(0x15e)][_0xab7694(0x183)],this[_0xab7694(0x177)](_0xab7694(0x15c),{'isOn':this[_0xab7694(0x15e)][_0xab7694(0x183)]});});const _0xc8f94f=new _0x47886f();_0xc8f94f[_0x3fc7ef(0x16e)]=_0xd9a1ac,this[_0x3fc7ef(0x181)]({'tag':_0x3fc7ef(0x17c),'attributes':{'class':['ck',_0x3fc7ef(0x17d),!0x1===_0x188a84[_0x3fc7ef(0x166)]?_0x3fc7ef(0x163):null][_0x3fc7ef(0x180)](Boolean)},'children':[_0xc8f94f,{'tag':_0x3fc7ef(0x176),'children':[_0x253017(_0x37d9b2,_0x3fc7ef(0x15d))]},this[_0x3fc7ef(0x15e)]]});}}export class ShowChangesToggleView extends _0x3e6a92{[_0x1f0597(0x174)](){const _0x596284=_0x1f0597;super[_0x596284(0x174)](),this[_0x596284(0x169)][_0x596284(0x168)](this[_0x596284(0x164)]),this[_0x596284(0x169)][_0x596284(0x161)](this[_0x596284(0x164)]);}}function _0x5021(){const _0xe865ef=['705951DiyawW','isOn','set','toggleShowChanges','AI_SUGGESTION_HEADER_TITLE','showChangesToggleView','93336JEgpVJ','AI_SUGGESTION_BUTTON_SHOW_CHANGES','add','3849xKlQlH','ck-hidden','iconView','ck-ai-suggestion__header__show-changes-toggle\x20ck-ai-chat-controls-button','showHeader','70JADLAL','remove','children','isVisible','1FTVKeD','showDiff','42410feioNO','content','24GKYQkM','2663806dwuvQg','967057RZdPDm','isShowChangesToggleVisible','2184nqMYyG','render','6exPgGs','span','fire','1392417xcksyH','execute','112SoKwrt','icon','div','ck-ai-suggestion__header','847HErTVZ','bind','filter','setTemplate'];_0x5021=function(){return _0xe865ef;};return _0x5021();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x49ce54=_0x4a16;function _0x20a2(){const _0x5af584=['102152zIajhJ','forEach','19076120kgOBEY','236hPTCey','4585470cyFqUt','6941949aoSmsC','data','includes','isEqual','288SwFSzU','createAt','nextNode','2608608yqRRrv','start','path','27UxzNKf','parent','lastChild','getNudgedToWordBoundary','length','document','createAfter','createFromPath','108608liwhQp','createBefore','end','reverse','slice','previousNode','5386nBBLuJ','firstChild','getContent','push'];_0x20a2=function(){return _0x5af584;};return _0x20a2();}(function(_0x628604,_0x14599c){const _0x1b6ce4=_0x4a16,_0x10f8eb=_0x628604();while(!![]){try{const _0x2ddd93=parseInt(_0x1b6ce4(0x198))/0x1*(-parseInt(_0x1b6ce4(0x19f))/0x2)+-parseInt(_0x1b6ce4(0x1ab))/0x3*(-parseInt(_0x1b6ce4(0x19c))/0x4)+parseInt(_0x1b6ce4(0x1a0))/0x5+-parseInt(_0x1b6ce4(0x1a8))/0x6+-parseInt(_0x1b6ce4(0x1a1))/0x7+-parseInt(_0x1b6ce4(0x1b3))/0x8*(parseInt(_0x1b6ce4(0x1a5))/0x9)+parseInt(_0x1b6ce4(0x19e))/0xa;if(_0x2ddd93===_0x14599c)break;else _0x10f8eb['push'](_0x10f8eb['shift']());}catch(_0x1ac1bc){_0x10f8eb['push'](_0x10f8eb['shift']());}}}(_0x20a2,0x8840d));import{DocumentPosition as _0x39b0ca}from'./documentposition.js';import{clone as _0x345a7e,getParents as _0xfe1e47,Document as _0x84013e,Text as _0x4e1667,isTag as _0x918168,isText as _0x2510b4,replaceElement as _0x5f44f1,removeElement as _0x34bc2c}from'./htmlparser.js';function _0x4a16(_0x54dda5,_0x2facc0){const _0x20a235=_0x20a2();return _0x4a16=function(_0x4a163f,_0x15905e){_0x4a163f=_0x4a163f-0x193;let _0x3e7bfc=_0x20a235[_0x4a163f];return _0x3e7bfc;},_0x4a16(_0x54dda5,_0x2facc0);}export class DocumentRange{[_0x49ce54(0x1a9)];[_0x49ce54(0x194)];constructor(_0x1d6d02,_0x76bdfa){const _0x2bbecb=_0x49ce54;this[_0x2bbecb(0x1a9)]=_0x1d6d02,this[_0x2bbecb(0x194)]=_0x76bdfa;}[_0x49ce54(0x1a4)](_0x459006){const _0x436109=_0x49ce54;return this==_0x459006||this[_0x436109(0x1a9)][_0x436109(0x1a4)](_0x459006[_0x436109(0x1a9)])&&this[_0x436109(0x194)][_0x436109(0x1a4)](_0x459006[_0x436109(0x194)]);}[_0x49ce54(0x1ae)](){const _0x3f0644=_0x49ce54;return new DocumentRange(this[_0x3f0644(0x1a9)][_0x3f0644(0x1ae)](_0x3f0644(0x1a9)),this[_0x3f0644(0x194)][_0x3f0644(0x1ae)](_0x3f0644(0x194)));}[_0x49ce54(0x19a)](){const _0xa0f46e=_0x49ce54,_0x183fc2=_0x345a7e(this[_0xa0f46e(0x1a9)][_0xa0f46e(0x1b0)]),_0x1389d9=_0x39b0ca[_0xa0f46e(0x1b2)](_0x183fc2,this[_0xa0f46e(0x1a9)][_0xa0f46e(0x1aa)]),_0x51e1a1=_0x39b0ca[_0xa0f46e(0x1b2)](_0x183fc2,this[_0xa0f46e(0x194)][_0xa0f46e(0x1aa)]);let _0xc87dcd,_0x4f4abd;if(_0x2510b4(_0x1389d9[_0xa0f46e(0x1ac)])){const _0x1ef74a=_0x1389d9[_0xa0f46e(0x1aa)][_0x1389d9[_0xa0f46e(0x1aa)][_0xa0f46e(0x1af)]-0x1],_0x368169=new _0x4e1667(_0x1389d9[_0xa0f46e(0x1ac)][_0xa0f46e(0x1a2)][_0xa0f46e(0x196)](_0x1ef74a));_0x5f44f1(_0x1389d9[_0xa0f46e(0x1ac)],_0x368169),_0xc87dcd=_0x368169;}else _0xc87dcd=_0x1389d9[_0xa0f46e(0x1a7)];if(_0x2510b4(_0x51e1a1[_0xa0f46e(0x1ac)])){const _0x3c6b29=_0x51e1a1[_0xa0f46e(0x1aa)][_0x51e1a1[_0xa0f46e(0x1aa)][_0xa0f46e(0x1af)]-0x1],_0x6680e3=new _0x4e1667(_0x51e1a1[_0xa0f46e(0x1ac)][_0xa0f46e(0x1a2)][_0xa0f46e(0x196)](0x0,_0x3c6b29));_0x5f44f1(_0x51e1a1[_0xa0f46e(0x1ac)],_0x6680e3),_0x4f4abd=_0x6680e3;}else _0x4f4abd=_0x51e1a1[_0xa0f46e(0x197)];if(!(_0xc87dcd&&_0x4f4abd&&_0x183fc2[_0xa0f46e(0x199)]&&_0x183fc2[_0xa0f46e(0x1ad)]))return new _0x84013e([]);const _0x3844ac=_0xfe1e47(_0xc87dcd),_0x1461bd=_0xfe1e47(_0x4f4abd),_0x451d9e=[],_0x166969=[];let _0x4dc2f9=_0x183fc2[_0xa0f46e(0x199)];for(;_0x4dc2f9&&_0x4dc2f9!==_0xc87dcd;){let _0x5071c7;_0x3844ac[_0xa0f46e(0x1a3)](_0x4dc2f9)||_0x451d9e[_0xa0f46e(0x19b)](_0x4dc2f9),_0x5071c7=_0x918168(_0x4dc2f9)?_0x39b0ca[_0xa0f46e(0x1a6)](_0x183fc2,_0x4dc2f9,_0xa0f46e(0x1a9)):_0x39b0ca[_0xa0f46e(0x1b1)](_0x183fc2,_0x4dc2f9),_0x4dc2f9=_0x5071c7?_0x5071c7[_0xa0f46e(0x1a7)]:null;}for(_0x4dc2f9=_0x183fc2[_0xa0f46e(0x1ad)];_0x4dc2f9&&_0x4dc2f9!==_0x4f4abd;){let _0x50525f;_0x1461bd[_0xa0f46e(0x1a3)](_0x4dc2f9)||_0x166969[_0xa0f46e(0x19b)](_0x4dc2f9),_0x50525f=_0x918168(_0x4dc2f9)?_0x39b0ca[_0xa0f46e(0x1a6)](_0x183fc2,_0x4dc2f9,_0xa0f46e(0x194)):_0x39b0ca[_0xa0f46e(0x193)](_0x183fc2,_0x4dc2f9),_0x4dc2f9=_0x50525f?_0x50525f[_0xa0f46e(0x197)]:null;}return _0x451d9e[_0xa0f46e(0x19d)](_0x4f6a56=>{_0x34bc2c(_0x4f6a56);}),_0x166969[_0xa0f46e(0x195)]()[_0xa0f46e(0x19d)](_0x23525d=>{_0x34bc2c(_0x23525d);}),_0x183fc2;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x4921(_0x54a272,_0x33095d){const _0xeb6e87=_0xeb6e();return _0x4921=function(_0x49219f,_0x2a2843){_0x49219f=_0x49219f-0xca;let _0x4c12a3=_0xeb6e87[_0x49219f];return _0x4c12a3;},_0x4921(_0x54a272,_0x33095d);}function _0xeb6e(){const _0x51a6b7=['4108086pUOKju','150537MpuDCI','getRange','removed','1422MEHivl','content','type','data-id','3303932rXSnqU','filter','previousSibling','marker','2072260NQummk','getDiff','model','get','oldRange','documentContextContent','130294GbTTik','operationsA','markers','node','length','anchorId','map','18288rbIgBt','document','cloneNode','getOperations','version','shift','getDocumentContext','name','6787900OAaOUP','2ZqhgIY','history','new'];_0xeb6e=function(){return _0x51a6b7;};return _0xeb6e();}(function(_0x5af7b4,_0x4178d8){const _0x48ffea=_0x4921,_0x4fd0ac=_0x5af7b4();while(!![]){try{const _0x584459=parseInt(_0x48ffea(0xde))/0x1+parseInt(_0x48ffea(0xee))/0x2*(-parseInt(_0x48ffea(0xcd))/0x3)+parseInt(_0x48ffea(0xd4))/0x4+-parseInt(_0x48ffea(0xd8))/0x5+parseInt(_0x48ffea(0xcc))/0x6+-parseInt(_0x48ffea(0xed))/0x7+parseInt(_0x48ffea(0xe5))/0x8*(parseInt(_0x48ffea(0xd0))/0x9);if(_0x584459===_0x4178d8)break;else _0x4fd0ac['push'](_0x4fd0ac['shift']());}catch(_0x1540ef){_0x4fd0ac['push'](_0x4fd0ac['shift']());}}}(_0xeb6e,0x8aa07));import{transformOperationSets as _0x5a5a19}from'ckeditor5/src/engine.js';import{append as _0x7754d6,findByAttribute as _0x4386ed,prependChild as _0xb0f365,removeElement as _0xbcbc74,serialize as _0x4086e4}from'./htmlparser.js';export function getOperationsFromReply({editor:_0x356be1,interaction:_0x141ff9,reply:_0x4646ec,groups:_0x5e2586,transform:_0x161e02,documentCompare:_0xf55441,documentCompareOptions:_0x60265f}){const _0x17d3f1=_0x4921,_0xbbe6b=_0x141ff9[_0x17d3f1(0xeb)]();if(!_0xbbe6b)return[];const _0x4fd82c=_0xbbe6b[_0x17d3f1(0xd1)],_0x4bb626=_0xbbe6b[_0x17d3f1(0xe9)],_0x5560c3=_0x4646ec[_0x17d3f1(0xdd)][_0x17d3f1(0xe7)](!0x0);for(const {changes:_0x414bf7}of _0x5e2586){const _0x56117b=_0x414bf7[_0x17d3f1(0xd5)](_0x2e84b8=>_0x17d3f1(0xcb)!=_0x2e84b8[_0x17d3f1(0xd2)])[_0x17d3f1(0xe4)](_0x19dda2=>_0x4386ed(_0x17d3f1(0xd3),_0x19dda2['id'],_0x5560c3)),_0xf7faa0=_0x414bf7[_0x17d3f1(0xd5)](_0x103045=>_0x17d3f1(0xcf)!=_0x103045[_0x17d3f1(0xd2)])[_0x17d3f1(0xe4)](_0x13a12b=>_0x13a12b[_0x17d3f1(0xe1)][_0x17d3f1(0xe7)](!0x0));let _0x57f411=null;if(_0x56117b[_0x17d3f1(0xe2)]){_0x57f411=_0x56117b[0x0][_0x17d3f1(0xd6)];for(let _0x478d84=0x0;_0x478d84<_0x56117b[_0x17d3f1(0xe2)];_0x478d84++)_0xbcbc74(_0x56117b[_0x478d84]);}if(_0xf7faa0[_0x17d3f1(0xe2)]){_0x57f411||(_0x414bf7[0x0][_0x17d3f1(0xe3)]?_0x57f411=_0x4386ed(_0x17d3f1(0xd3),_0x414bf7[0x0][_0x17d3f1(0xe3)],_0x5560c3):(_0x57f411=_0xf7faa0[_0x17d3f1(0xea)](),_0xb0f365(_0x5560c3,_0x57f411)));for(let _0x4f8d9f=0x0;_0x4f8d9f<_0xf7faa0[_0x17d3f1(0xe2)];_0x4f8d9f++)_0x7754d6(_0x57f411,_0xf7faa0[_0x4f8d9f]),_0x57f411=_0xf7faa0[_0x4f8d9f];}}const _0x2ac5e9=_0x4086e4(_0x5560c3),_0xb2c6ac=_0xf55441[_0x17d3f1(0xd9)](_0x4fd82c,_0x2ac5e9,_0x60265f)[_0x17d3f1(0xe8)]();if(_0x161e02){const _0x5e304d=_0x356be1[_0x17d3f1(0xda)][_0x17d3f1(0xe6)][_0x17d3f1(0xca)][_0x17d3f1(0xe8)](_0x4bb626),_0x1aef25={'document':_0x356be1[_0x17d3f1(0xda)][_0x17d3f1(0xe6)],'useRelations':!0x1,'padWithNoOps':!0x1};return _0x5a5a19(_0xb2c6ac,_0x5e304d,_0x1aef25)[_0x17d3f1(0xdf)];}return _0xb2c6ac;}export function fixMarkerOperationOldRange(_0x1a7dfe,_0x464488){const _0x28cfa6=_0x4921;if(_0x28cfa6(0xd7)!=_0x464488[_0x28cfa6(0xd2)])return;const _0x2f5e3e=_0x1a7dfe[_0x28cfa6(0xda)][_0x28cfa6(0xe0)][_0x28cfa6(0xdb)](_0x464488[_0x28cfa6(0xec)]);_0x2f5e3e&&(_0x464488[_0x28cfa6(0xdc)]=_0x2f5e3e[_0x28cfa6(0xce)]());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(_0xc50e58,_0x192a0c){const _0x142b8c=_0x1de3,_0x38e97f=_0xc50e58();while(!![]){try{const _0x457b76=-parseInt(_0x142b8c(0x227))/0x1+-parseInt(_0x142b8c(0x1dd))/0x2+parseInt(_0x142b8c(0x1e6))/0x3*(-parseInt(_0x142b8c(0x226))/0x4)+parseInt(_0x142b8c(0x20d))/0x5*(parseInt(_0x142b8c(0x1ee))/0x6)+parseInt(_0x142b8c(0x1e8))/0x7*(parseInt(_0x142b8c(0x229))/0x8)+-parseInt(_0x142b8c(0x234))/0x9+parseInt(_0x142b8c(0x220))/0xa*(parseInt(_0x142b8c(0x1ec))/0xb);if(_0x457b76===_0x192a0c)break;else _0x38e97f['push'](_0x38e97f['shift']());}catch(_0x4d66c2){_0x38e97f['push'](_0x38e97f['shift']());}}}(_0x46a2,0xd0210));import{findOne as _0x836628,getAttribute as _0x8abe46,Document as _0xf0db5,serialize as _0x1977c3,parse as _0xb2cefc}from'./htmlparser.js';import{fixElementSuggestionRange as _0x25f471}from'ckeditor5-collaboration/src/collaboration-core.js';import{ModelRange as _0x38f4aa,_DetachOperation as _0x3879dd,_removeFromModelNodeList as _0x417361,_insertIntoModelNodeList as _0x4ffd4a}from'ckeditor5/src/engine.js';import{uid as _0x2dd1ff}from'ckeditor5/src/utils.js';export function getSuggestionPartsFromReply({editor:_0x553a57,changeGroups:_0x5a2442,documentContextContent:_0x1e1101,showDiff:_0x1eb1c9,trimUnchanged:_0x487411=!0x0}){const _0x17ef8d=_0x1de3;return _0x5a2442[_0x17ef8d(0x22e)](_0x3a1001=>{const _0x2e18c2=_0x17ef8d,_0x5b9a46=new _0xf0db5([]),_0x3773f5=new _0xf0db5([]);for(const _0x559568 of _0x3a1001[_0x2e18c2(0x213)])if(_0x1eb1c9&&_0x2e18c2(0x1cc)==_0x559568[_0x2e18c2(0x1e2)]||_0x3773f5[_0x2e18c2(0x1ce)][_0x2e18c2(0x20f)](_0x559568[_0x2e18c2(0x1d1)][_0x2e18c2(0x1dc)](!0x0)),_0x2e18c2(0x1f8)!=_0x559568[_0x2e18c2(0x1e2)]&&(_0x1eb1c9||_0x2e18c2(0x1cc)!=_0x559568[_0x2e18c2(0x1e2)])){const _0xa4d830=_0x836628(_0x2e96b7=>_0x8abe46(_0x2e96b7,_0x2e18c2(0x1d0))==_0x559568['id'],_0x1e1101,!0x0);_0xa4d830&&_0x5b9a46[_0x2e18c2(0x1ce)][_0x2e18c2(0x20f)](_0xa4d830[_0x2e18c2(0x1dc)](!0x0));}const {content:_0x599cc5,hasChanges:_0x59d8d2}=function(_0xb7a44,_0x209290,_0x4462c5,_0x2af98a,_0x41ea74=!0x0){const _0x142192=_0x2e18c2,_0x3a8434=_0xb7a44[_0x142192(0x22b)][_0x142192(0x22c)](_0x142192(0x230)),_0x51d4f8=_0x1977c3(_0x209290),_0xdb0745=_0x1977c3(_0x4462c5),_0x498aa9=_0xb7a44[_0x142192(0x212)][_0x142192(0x1ca)](_0x51d4f8,_0x142192(0x238)),_0x3e435c=_0xb7a44[_0x142192(0x1db)][_0x142192(0x208)](_0x498aa9,0x0),_0x5d9354=_0x3a8434[_0x142192(0x232)](_0x51d4f8,_0xdb0745,{'anchor':_0x3e435c,'markDeletions':_0x2af98a}),_0x27fd38=_0x5d9354[_0x142192(0x222)]();if(0x0==_0x27fd38[_0x142192(0x20b)])return{'content':_0x209290[_0x142192(0x1dc)](!0x0),'hasChanges':!0x1};_0x2af98a?function(_0x1569db,_0x538ef0,_0x9265e3){const _0x19e5d7=_0x142192;if(0x0==_0x1569db[_0x19e5d7(0x20b)])return;const _0x4c7fca=_0x9265e3[_0x19e5d7(0x22b)][_0x19e5d7(0x22c)](_0x19e5d7(0x230)),_0x3e0f0c=_0x9265e3[_0x19e5d7(0x22b)][_0x19e5d7(0x22c)](_0x19e5d7(0x228));_0x9265e3[_0x19e5d7(0x1db)][_0x19e5d7(0x1ed)](_0x3ee5e5=>{const _0x540e5e=_0x19e5d7,_0x184b12=new Set();for(let _0x9687d3=0x0;_0x9687d3<_0x1569db[_0x540e5e(0x20b)];_0x9687d3++){const _0x4eb77f=_0x1569db[_0x9687d3];if(_0x4eb77f[_0x540e5e(0x20a)]=null,_0x4eb77f[_0x540e5e(0x205)]=!0x1,_0x4c7fca[_0x540e5e(0x20c)](_0x4eb77f)){const _0x1c0492=_0x25f471(_0x4eb77f[_0x540e5e(0x202)],_0x9265e3[_0x540e5e(0x1db)]),_0x2172dd=_0x540e5e(0x225)+_0x2dd1ff()+_0x540e5e(0x233);_0x538ef0[_0x540e5e(0x1d4)][_0x540e5e(0x22f)](_0x2172dd,_0x1c0492);}else switch(_0x4eb77f[_0x540e5e(0x1e2)]){case _0x540e5e(0x206):{if(_0x4eb77f[_0x540e5e(0x1f3)]==_0x4eb77f[_0x540e5e(0x1c9)])break;_0x3ee5e5[_0x540e5e(0x1d7)][_0x540e5e(0x1ea)](_0x4eb77f),_0x9265e3[_0x540e5e(0x1db)][_0x540e5e(0x1d9)](_0x4eb77f);const _0x5889b7=_0x540e5e(0x1e3),_0x5b28b2=_0x4eb77f[_0x540e5e(0x22a)],_0x31c506=_0x9265e3[_0x540e5e(0x1db)][_0x540e5e(0x200)](_0x5b28b2,_0x9265e3[_0x540e5e(0x1db)][_0x540e5e(0x208)](_0x5b28b2[_0x540e5e(0x237)],_0x540e5e(0x223))),_0x1af094=_0x540e5e(0x239)+_0x5889b7+':'+_0x2dd1ff()+_0x540e5e(0x233);_0x538ef0[_0x540e5e(0x1d4)][_0x540e5e(0x22f)](_0x1af094,_0x31c506);break;}case _0x540e5e(0x1d6):case _0x540e5e(0x21e):case _0x540e5e(0x201):{if(_0x4eb77f[_0x540e5e(0x1e4)]==_0x4eb77f[_0x540e5e(0x203)])break;_0x3ee5e5[_0x540e5e(0x1d7)][_0x540e5e(0x1ea)](_0x4eb77f),_0x9265e3[_0x540e5e(0x1db)][_0x540e5e(0x1d9)](_0x4eb77f);const _0x725fb9=_0x4eb77f[_0x540e5e(0x1e7)];if(!_0x3e0f0c[_0x540e5e(0x207)](_0x725fb9))break;const _0x5ccbf4=_0x25f471(_0x4eb77f[_0x540e5e(0x23b)],_0x9265e3[_0x540e5e(0x1db)]),_0x4c61c5=_0x540e5e(0x239)+_0x725fb9+':'+_0x2dd1ff()+_0x540e5e(0x233);_0x538ef0[_0x540e5e(0x1d4)][_0x540e5e(0x22f)](_0x4c61c5,_0x5ccbf4);break;}case _0x540e5e(0x214):{_0x3ee5e5[_0x540e5e(0x1d7)][_0x540e5e(0x1ea)](_0x4eb77f),_0x9265e3[_0x540e5e(0x1db)][_0x540e5e(0x1d9)](_0x4eb77f);if(_0x1569db[_0x9687d3+0x1]&&_0x540e5e(0x209)==_0x1569db[_0x9687d3+0x1][_0x540e5e(0x1e2)]){ro(_0x538ef0,_0x4eb77f);break;}const _0x42d151=_0x4eb77f[_0x540e5e(0x22a)],_0x4cad87=_0x4eb77f[_0x540e5e(0x1f9)],_0x1c15dd=_0x25f471(_0x9265e3[_0x540e5e(0x1db)][_0x540e5e(0x200)](_0x42d151,_0x42d151[_0x540e5e(0x1cd)](_0x4cad87)),_0x9265e3[_0x540e5e(0x1db)]),_0x2a3a88=_0x540e5e(0x210)+_0x2dd1ff()+_0x540e5e(0x233);_0x538ef0[_0x540e5e(0x1d4)][_0x540e5e(0x22f)](_0x2a3a88,_0x1c15dd);break;}case _0x540e5e(0x1d5):{_0x3ee5e5[_0x540e5e(0x1d7)][_0x540e5e(0x1ea)](_0x4eb77f),_0x9265e3[_0x540e5e(0x1db)][_0x540e5e(0x1d9)](_0x4eb77f);const _0x39b5e1=_0x4eb77f[_0x540e5e(0x1ff)],_0x4f7dc6=_0x4eb77f[_0x540e5e(0x1f5)],_0x13743a=_0x9265e3[_0x540e5e(0x1db)][_0x540e5e(0x200)](_0x39b5e1,_0x4f7dc6),_0x809637=_0x540e5e(0x210)+_0x2dd1ff()+_0x540e5e(0x233);_0x538ef0[_0x540e5e(0x1d4)][_0x540e5e(0x22f)](_0x809637,_0x13743a);break;}case _0x540e5e(0x209):{_0x3ee5e5[_0x540e5e(0x1d7)][_0x540e5e(0x1ea)](_0x4eb77f),_0x9265e3[_0x540e5e(0x1db)][_0x540e5e(0x1d9)](_0x4eb77f),_0x1569db[_0x9687d3-0x1]&&_0x540e5e(0x214)==_0x1569db[_0x9687d3-0x1][_0x540e5e(0x1e2)]&&ro(_0x538ef0,_0x4eb77f);const _0x2e1e19=_0x4eb77f[_0x540e5e(0x1f0)](),_0x549c4d=_0x4eb77f[_0x540e5e(0x1f9)];for(let _0x4f0550=0x0;_0x4f0550<_0x549c4d;_0x4f0550++){const _0x2036dc=_0x2e1e19[_0x540e5e(0x1cd)](_0x4f0550)[_0x540e5e(0x237)];_0x184b12[_0x540e5e(0x1e0)](_0x2036dc);}break;}case _0x540e5e(0x21f):{const _0x1d0746=_0x4eb77f[_0x540e5e(0x1e5)],_0x18f1cd=_0x4eb77f[_0x540e5e(0x1f9)],_0x3cbe02=new _0x3879dd(_0x1d0746,_0x18f1cd);_0x3ee5e5[_0x540e5e(0x1d7)][_0x540e5e(0x1ea)](_0x3cbe02),_0x9265e3[_0x540e5e(0x1db)][_0x540e5e(0x1d9)](_0x3cbe02);break;}}}for(const _0x6a818d of _0x184b12){const _0x49ffba=_0x9265e3[_0x540e5e(0x1db)][_0x540e5e(0x1cb)](_0x6a818d),_0xb5922f=_0x540e5e(0x20e)+_0x2dd1ff()+_0x540e5e(0x233);_0x538ef0[_0x540e5e(0x1d4)][_0x540e5e(0x22f)](_0xb5922f,_0x25f471(_0x49ffba,_0x9265e3[_0x540e5e(0x1db)]));}});}(_0x27fd38,_0x498aa9,_0xb7a44):_0xb7a44[_0x142192(0x1db)][_0x142192(0x1ed)](_0x1b1361=>{const _0x4395ba=_0x142192;for(const _0x16095c of _0x27fd38)if(_0x4395ba(0x21f)==_0x16095c[_0x4395ba(0x1e2)]){const _0x215df4=_0x16095c[_0x4395ba(0x1e5)],_0xcea1ba=_0x16095c[_0x4395ba(0x1f9)],_0x4af35e=new _0x3879dd(_0x215df4,_0xcea1ba);_0x1b1361[_0x4395ba(0x1d7)][_0x4395ba(0x1ea)](_0x4af35e),_0xb7a44[_0x4395ba(0x1db)][_0x4395ba(0x1d9)](_0x4af35e);}else{if(_0x4395ba(0x21c)==_0x16095c[_0x4395ba(0x1e2)]){const _0x131c3a=_0x16095c[_0x4395ba(0x21a)],_0x110bed=_0x16095c[_0x4395ba(0x202)];_0x498aa9[_0x4395ba(0x1d4)][_0x4395ba(0x22f)](_0x131c3a,_0x110bed);}else _0x16095c[_0x4395ba(0x20a)]=null,_0x16095c[_0x4395ba(0x205)]=!0x1,_0x1b1361[_0x4395ba(0x1d7)][_0x4395ba(0x1ea)](_0x16095c),_0xb7a44[_0x4395ba(0x1db)][_0x4395ba(0x1d9)](_0x16095c);}});if(_0x41ea74){const _0x352c0e=getMinimalSelection(_0xb7a44,_0x27fd38,_0x498aa9);expandSelectionWithContext(_0xb7a44[_0x142192(0x1db)],_0x352c0e),function(_0x59d55d,_0x2fc504){const _0x5d31a6=_0x142192,_0x1d4360=_0x2fc504[_0x5d31a6(0x211)]()[_0x5d31a6(0x1da)];let _0x55df61=_0x2fc504[_0x5d31a6(0x211)]()[_0x5d31a6(0x223)];const _0x981ec8=_0x1d4360[_0x5d31a6(0x21d)];(_0x55df61[_0x5d31a6(0x1df)]||_0x55df61[_0x5d31a6(0x237)]&&_0x55df61[_0x5d31a6(0x237)]['is'](_0x5d31a6(0x1f6)))&&(_0x4ffd4a(_0x55df61,_0x5d31a6(0x221)),_0x55df61=_0x55df61[_0x5d31a6(0x1cd)](0x3)),(_0x1d4360[_0x5d31a6(0x1df)]||_0x1d4360[_0x5d31a6(0x1d3)]&&_0x1d4360[_0x5d31a6(0x1d3)]['is'](_0x5d31a6(0x1f6)))&&(_0x4ffd4a(_0x1d4360,_0x5d31a6(0x221)),function(_0x44e401,_0x48083a,_0x4d0b5e){const _0x45f29b=_0x5d31a6;for(let [_0x133249,_0x210d10]of _0x44e401[_0x45f29b(0x1d4)]){const _0x38567b=_0x210d10[_0x45f29b(0x1d8)](_0x48083a,_0x4d0b5e,!0x1);_0x210d10=_0x38567b[0x0],_0x44e401[_0x45f29b(0x1d4)][_0x45f29b(0x22f)](_0x133249,_0x210d10);}}(_0x981ec8,_0x1d4360,0x3),_0x1d4360[_0x5d31a6(0x1fb)]==_0x55df61[_0x5d31a6(0x1fb)]&&(_0x55df61=_0x55df61[_0x5d31a6(0x1cd)](0x3)));const _0x58a770=_0x59d55d[_0x5d31a6(0x200)](_0x59d55d[_0x5d31a6(0x208)](_0x981ec8,0x0),_0x1d4360),_0x5c0909=_0x59d55d[_0x5d31a6(0x200)](_0x55df61,_0x59d55d[_0x5d31a6(0x208)](_0x981ec8,_0x5d31a6(0x223))),_0x4587d4=[..._0x58a770[_0x5d31a6(0x1fa)](),..._0x5c0909[_0x5d31a6(0x1fa)]()];_0x4587d4[_0x5d31a6(0x1f7)]();for(const _0xb28d80 of _0x4587d4)_0x417361(_0xb28d80),_transformMarkersByDeletion(_0x981ec8,_0xb28d80);}(_0xb7a44[_0x142192(0x1db)],_0x352c0e);}const _0x2d4987=_0xb7a44[_0x142192(0x212)][_0x142192(0x1eb)](_0x498aa9,{'showSuggestionHighlights':!0x0});return{'content':_0xb2cefc(_0x2d4987),'hasChanges':!0x0};}(_0x553a57,_0x5b9a46,_0x3773f5,_0x1eb1c9,_0x487411);return{'type':_0x3a1001[_0x2e18c2(0x213)][0x0][_0x2e18c2(0x1e2)],'index':_0x3a1001[_0x2e18c2(0x219)],'content':_0x599cc5,'hasChanges':_0x59d8d2};});}function ro(_0xd26346,_0x2eba98){const _0x4516aa=_0x1de3;for(const [_0x29012a,_0x942fae]of _0xd26346[_0x4516aa(0x1d4)]){const _0x3c5328=_0x38f4aa[_0x4516aa(0x1c7)](_0x942fae[_0x4516aa(0x21b)](_0x2eba98));_0xd26346[_0x4516aa(0x1d4)][_0x4516aa(0x22f)](_0x29012a,_0x3c5328);}}export function getMinimalSelection(_0x410832,_0x26e34d,_0x52ff54){const _0x31cd1a=_0x1de3,_0x5cfc4a=_0x410832[_0x31cd1a(0x22b)][_0x31cd1a(0x22c)](_0x31cd1a(0x230));let _0x52caf5=_0x410832[_0x31cd1a(0x1db)][_0x31cd1a(0x208)](_0x52ff54,Number[_0x31cd1a(0x1ef)]),_0x279e6c=_0x410832[_0x31cd1a(0x1db)][_0x31cd1a(0x208)](_0x52ff54,0x0);for(const _0x590104 of _0x26e34d){let _0x2c8f40,_0x263ff0;if(_0x5cfc4a[_0x31cd1a(0x20c)](_0x590104))_0x2c8f40=_0x590104[_0x31cd1a(0x202)][_0x31cd1a(0x1da)],_0x263ff0=_0x590104[_0x31cd1a(0x202)][_0x31cd1a(0x223)];else switch(_0x52caf5=_0x52caf5[_0x31cd1a(0x21b)](_0x590104),_0x279e6c=_0x279e6c[_0x31cd1a(0x21b)](_0x590104),_0x590104[_0x31cd1a(0x1e2)]){case _0x31cd1a(0x206):_0x2c8f40=_0x590104[_0x31cd1a(0x22a)],_0x263ff0=_0x2c8f40[_0x31cd1a(0x1cd)](0x1);break;case _0x31cd1a(0x1d6):case _0x31cd1a(0x21e):case _0x31cd1a(0x201):_0x2c8f40=_0x590104[_0x31cd1a(0x23b)][_0x31cd1a(0x1da)],_0x263ff0=_0x590104[_0x31cd1a(0x23b)][_0x31cd1a(0x223)];break;case _0x31cd1a(0x214):_0x2c8f40=_0x590104[_0x31cd1a(0x22a)],_0x263ff0=_0x2c8f40[_0x31cd1a(0x1cd)](_0x590104[_0x31cd1a(0x1f9)]);break;case _0x31cd1a(0x1d5):_0x2c8f40=_0x590104[_0x31cd1a(0x1ff)],_0x263ff0=_0x590104[_0x31cd1a(0x1f5)];break;case _0x31cd1a(0x231):{const _0x45e672=_0x590104[_0x31cd1a(0x218)][_0x31cd1a(0x1d2)][_0x31cd1a(0x1de)](0x0,-0x1);_0x2c8f40=_0x410832[_0x31cd1a(0x1db)][_0x31cd1a(0x1e1)](_0x52ff54,_0x45e672),_0x263ff0=_0x2c8f40[_0x31cd1a(0x1cd)](0x1);break;}case _0x31cd1a(0x21f):{const _0x8bded3=_0x590104[_0x31cd1a(0x1f9)],_0x6943dd=_0x590104[_0x31cd1a(0x1e5)][_0x31cd1a(0x1d8)](_0x590104[_0x31cd1a(0x218)],_0x8bded3),_0x375969=_0x590104[_0x31cd1a(0x1f0)]();_0x31cd1a(0x21f)==_0x590104[_0x31cd1a(0x1e2)]?(_0x2c8f40=_0x6943dd,_0x263ff0=_0x6943dd):(_0x2c8f40=_0x375969,_0x263ff0=_0x375969[_0x31cd1a(0x1cd)](_0x8bded3));break;}}_0x2c8f40&&_0x2c8f40[_0x31cd1a(0x224)](_0x52caf5)&&(_0x52caf5=_0x2c8f40[_0x31cd1a(0x22d)](),_0x52caf5[_0x31cd1a(0x1cf)]=_0x31cd1a(0x1fc)),_0x263ff0&&_0x263ff0[_0x31cd1a(0x1fe)](_0x279e6c)&&(_0x279e6c=_0x263ff0[_0x31cd1a(0x22d)](),_0x279e6c[_0x31cd1a(0x1cf)]=_0x31cd1a(0x1fc));}return _0x410832[_0x31cd1a(0x1db)][_0x31cd1a(0x1fd)](_0x410832[_0x31cd1a(0x1db)][_0x31cd1a(0x200)](_0x52caf5,_0x279e6c));}function _0x46a2(){const _0x48bf04=['removed','getShiftedBy','children','stickiness','data-id','node','path','nodeBefore','markers','split','addAttribute','batch','_getTransformedByInsertion','applyOperation','start','model','cloneNode','288636wzKyEr','slice','textNode','add','createPositionFromPath','type','$elementName','oldValue','sourcePosition','16977uFARIq','key','3577xzgtSP','isBlock','addOperation','stringify','28665923guivpX','change','18kWMmnf','POSITIVE_INFINITY','getMovedRangeStart','backward','element','oldName','_getTransformedByDeletion','moveTargetPosition','$text','reverse','new','howMany','getMinimalFlatRanges','parent','toNone','createSelection','isAfter','splitPosition','createRange','changeAttribute','newRange','newValue','offset','isDocumentOperation','rename','isRegisteredAttribute','createPositionAt','move','baseVersion','length','isMarkedRemoveOperation','1525555kdKXYl','suggestion:formatBlock:$fakeWrap:','push','suggestion:insertion:','getFirstRange','data','changes','insert','isObject','schema','setTo','targetPosition','index','name','getTransformedByOperation','marker','root','removeAttribute','remove','10xzcUbs','...','getOperations','end','isBefore','suggestion:deletion:','908txxivr','1068771IOFGNI','SuggestionsConversion','1688MlXBgP','position','plugins','get','clone','map','set','DocumentCompare','merge','getDiff',':$aiSuggestion','2510721wRLSRH','forward','word','nodeAfter','$root','suggestion:attribute:','delete','range','focus','_createFromRanges','modifySelection','newName','parse','createRangeOn'];_0x46a2=function(){return _0x48bf04;};return _0x46a2();}export function expandSelectionWithContext(_0x4bf17f,_0x4d7710){const _0x4af124=_0x1de3;so(_0x4bf17f,_0x4d7710,_0x4af124(0x235));const _0x56758b=_0x4d7710[_0x4af124(0x211)]();_0x4d7710[_0x4af124(0x217)]([]),_0x4d7710[_0x4af124(0x217)](_0x56758b,{'backward':!0x0}),so(_0x4bf17f,_0x4d7710,_0x4af124(0x1f1));}function _0x1de3(_0x127dab,_0x35c602){const _0x46a2b3=_0x46a2();return _0x1de3=function(_0x1de3f9,_0x5076bd){_0x1de3f9=_0x1de3f9-0x1c6;let _0x3378c9=_0x46a2b3[_0x1de3f9];return _0x3378c9;},_0x1de3(_0x127dab,_0x35c602);}function so(_0x24ccc3,_0x1b93c8,_0x53075c){const _0x375b88=_0x1de3;let _0x31cf52=0x14;for(;_0x31cf52;){_0x24ccc3[_0x375b88(0x1c8)](_0x1b93c8,{'unit':_0x375b88(0x236),'direction':_0x53075c}),_0x31cf52--;const _0x5025ff=_0x1b93c8[_0x375b88(0x1c6)][_0x375b88(0x235)==_0x53075c?_0x375b88(0x1d3):_0x375b88(0x237)];if(_0x5025ff&&_0x5025ff['is'](_0x375b88(0x1f2))&&_0x24ccc3[_0x375b88(0x216)][_0x375b88(0x1e9)](_0x5025ff)&&_0x24ccc3[_0x375b88(0x216)][_0x375b88(0x215)](_0x5025ff))break;}}export function _transformMarkersByDeletion(_0x43f827,_0x173425){const _0x36438e=_0x1de3;for(const [_0x52f1c3,_0x4ba1d4]of _0x43f827[_0x36438e(0x1d4)]){const _0x1bfec5=_0x4ba1d4[_0x36438e(0x1f4)](_0x173425[_0x36438e(0x1da)],_0x173425[_0x36438e(0x223)][_0x36438e(0x204)]-_0x173425[_0x36438e(0x1da)][_0x36438e(0x204)]);null!=_0x1bfec5?_0x43f827[_0x36438e(0x1d4)][_0x36438e(0x22f)](_0x52f1c3,_0x1bfec5):_0x43f827[_0x36438e(0x1d4)][_0x36438e(0x23a)](_0x52f1c3);}}
|
|
23
|
+
(function(_0x3d4ea2,_0x50593a){const _0x244226=_0x516e,_0x484b4c=_0x3d4ea2();while(!![]){try{const _0x3a6e81=parseInt(_0x244226(0x1f0))/0x1*(-parseInt(_0x244226(0x1b4))/0x2)+-parseInt(_0x244226(0x1b1))/0x3+parseInt(_0x244226(0x1d7))/0x4+parseInt(_0x244226(0x18f))/0x5+-parseInt(_0x244226(0x1db))/0x6+parseInt(_0x244226(0x1c3))/0x7+parseInt(_0x244226(0x1d9))/0x8;if(_0x3a6e81===_0x50593a)break;else _0x484b4c['push'](_0x484b4c['shift']());}catch(_0x1bbb06){_0x484b4c['push'](_0x484b4c['shift']());}}}(_0xddd5,0xb8831));import{findOne as _0x56f4e1,getAttribute as _0x194eca,Document as _0x244283,serialize as _0xfedc36,parse as _0x5b8ad0}from'./htmlparser.js';import{fixElementSuggestionRange as _0x111c4d}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x516e(_0x1244c2,_0x2562b5){const _0xddd5dd=_0xddd5();return _0x516e=function(_0x516e02,_0x2a7b09){_0x516e02=_0x516e02-0x18c;let _0x341fb5=_0xddd5dd[_0x516e02];return _0x341fb5;},_0x516e(_0x1244c2,_0x2562b5);}import{ModelRange as _0x3f8fae,_DetachOperation as _0x4cabff,_removeFromModelNodeList as _0x3a04aa,_insertIntoModelNodeList as _0x349b02}from'ckeditor5/src/engine.js';import{uid as _0x3f1988}from'ckeditor5/src/utils.js';export function getSuggestionPartsFromReply({editor:_0x107b43,changeGroups:_0x4b428b,documentContextContent:_0x5a50f3,showDiff:_0x3d7f6a,trimUnchanged:_0x39ed19=!0x0}){const _0x4daaae=_0x516e;return _0x4b428b[_0x4daaae(0x1d6)](_0x35d9d2=>{const _0x2eec60=_0x4daaae,_0x36aa1d=new _0x244283([]),_0x14955c=new _0x244283([]);for(const _0x1583bd of _0x35d9d2[_0x2eec60(0x1a6)])if(_0x3d7f6a&&_0x2eec60(0x1ef)==_0x1583bd[_0x2eec60(0x1ab)]||_0x14955c[_0x2eec60(0x1f8)][_0x2eec60(0x1bd)](_0x1583bd[_0x2eec60(0x1a2)][_0x2eec60(0x1cb)](!0x0)),_0x2eec60(0x1a1)!=_0x1583bd[_0x2eec60(0x1ab)]&&(_0x3d7f6a||_0x2eec60(0x1ef)!=_0x1583bd[_0x2eec60(0x1ab)])){const _0x591e50=_0x56f4e1(_0x58375f=>_0x194eca(_0x58375f,_0x2eec60(0x1bc))==_0x1583bd['id'],_0x5a50f3,!0x0);_0x591e50&&_0x36aa1d[_0x2eec60(0x1f8)][_0x2eec60(0x1bd)](_0x591e50[_0x2eec60(0x1cb)](!0x0));}const {content:_0x139f32,hasChanges:_0x2f94c5}=function(_0x2d049d,_0x129026,_0x40a79c,_0x422297,_0x1ae94=!0x0){const _0x56d335=_0x2eec60,_0x473145=_0x2d049d[_0x56d335(0x191)][_0x56d335(0x1f4)](_0x56d335(0x1da)),_0x51730a=_0xfedc36(_0x129026),_0x5f45ad=_0xfedc36(_0x40a79c),_0x1b5e06=_0x2d049d[_0x56d335(0x1d2)][_0x56d335(0x199)](_0x51730a,_0x56d335(0x1ba)),_0x5b5b0a=_0x2d049d[_0x56d335(0x1f5)][_0x56d335(0x1af)](_0x1b5e06,0x0),_0x2c90eb=_0x473145[_0x56d335(0x1f7)](_0x51730a,_0x5f45ad,{'anchor':_0x5b5b0a,'markDeletions':_0x422297}),_0x4d0c24=_0x2c90eb[_0x56d335(0x1c7)]();if(0x0==_0x4d0c24[_0x56d335(0x1e1)])return{'content':_0x129026[_0x56d335(0x1cb)](!0x0),'hasChanges':!0x1};_0x422297?function(_0x224af1,_0x13be72,_0x477626){const _0x58a66a=_0x56d335;if(0x0==_0x224af1[_0x58a66a(0x1e1)])return;const _0x394008=_0x477626[_0x58a66a(0x191)][_0x58a66a(0x1f4)](_0x58a66a(0x1da)),_0x15db63=_0x477626[_0x58a66a(0x191)][_0x58a66a(0x1f4)](_0x58a66a(0x1df));_0x477626[_0x58a66a(0x1f5)][_0x58a66a(0x1c5)](_0x2e2675=>{const _0x2ecd97=_0x58a66a,_0x18cd22=new Set();for(let _0x35bca4=0x0;_0x35bca4<_0x224af1[_0x2ecd97(0x1e1)];_0x35bca4++){const _0x197d1b=_0x224af1[_0x35bca4];if(_0x197d1b[_0x2ecd97(0x1d1)]=null,_0x197d1b[_0x2ecd97(0x18c)]=!0x1,_0x394008[_0x2ecd97(0x1ee)](_0x197d1b)){const _0x6ff6d1=_0x111c4d(_0x197d1b[_0x2ecd97(0x1c1)],_0x477626[_0x2ecd97(0x1f5)]),_0xa42cf=_0x2ecd97(0x1bf)+_0x3f1988()+_0x2ecd97(0x1dc);_0x13be72[_0x2ecd97(0x1fd)][_0x2ecd97(0x19d)](_0xa42cf,_0x6ff6d1);}else switch(_0x197d1b[_0x2ecd97(0x1ab)]){case _0x2ecd97(0x1a7):{if(_0x197d1b[_0x2ecd97(0x1a4)]==_0x197d1b[_0x2ecd97(0x195)])break;_0x2e2675[_0x2ecd97(0x1c0)][_0x2ecd97(0x1b5)](_0x197d1b),_0x477626[_0x2ecd97(0x1f5)][_0x2ecd97(0x18d)](_0x197d1b);const _0x599b1f=_0x2ecd97(0x1d3),_0x3ae1bf=_0x197d1b[_0x2ecd97(0x1e6)],_0x174cb7=_0x477626[_0x2ecd97(0x1f5)][_0x2ecd97(0x1ad)](_0x3ae1bf,_0x477626[_0x2ecd97(0x1f5)][_0x2ecd97(0x1af)](_0x3ae1bf[_0x2ecd97(0x1cc)],_0x2ecd97(0x19f))),_0x1c30f7=_0x2ecd97(0x1ca)+_0x599b1f+':'+_0x3f1988()+_0x2ecd97(0x1dc);_0x13be72[_0x2ecd97(0x1fd)][_0x2ecd97(0x19d)](_0x1c30f7,_0x174cb7);break;}case _0x2ecd97(0x1bb):case _0x2ecd97(0x1fb):case _0x2ecd97(0x1aa):{if(_0x197d1b[_0x2ecd97(0x1c9)]==_0x197d1b[_0x2ecd97(0x1ec)])break;_0x2e2675[_0x2ecd97(0x1c0)][_0x2ecd97(0x1b5)](_0x197d1b),_0x477626[_0x2ecd97(0x1f5)][_0x2ecd97(0x18d)](_0x197d1b);const _0x2bd6ac=_0x197d1b[_0x2ecd97(0x1ac)];if(!_0x15db63[_0x2ecd97(0x1e8)](_0x2bd6ac))break;const _0x2ff88e=_0x111c4d(_0x197d1b[_0x2ecd97(0x1f1)],_0x477626[_0x2ecd97(0x1f5)]),_0x2b355f=_0x2ecd97(0x1ca)+_0x2bd6ac+':'+_0x3f1988()+_0x2ecd97(0x1dc);_0x13be72[_0x2ecd97(0x1fd)][_0x2ecd97(0x19d)](_0x2b355f,_0x2ff88e);break;}case _0x2ecd97(0x1a8):{_0x2e2675[_0x2ecd97(0x1c0)][_0x2ecd97(0x1b5)](_0x197d1b),_0x477626[_0x2ecd97(0x1f5)][_0x2ecd97(0x18d)](_0x197d1b);if(_0x224af1[_0x35bca4+0x1]&&_0x2ecd97(0x192)==_0x224af1[_0x35bca4+0x1][_0x2ecd97(0x1ab)]){ro(_0x13be72,_0x197d1b);break;}const _0x478d77=_0x197d1b[_0x2ecd97(0x1e6)],_0x4078a9=_0x197d1b[_0x2ecd97(0x1f2)],_0x2028d4=_0x111c4d(_0x477626[_0x2ecd97(0x1f5)][_0x2ecd97(0x1ad)](_0x478d77,_0x478d77[_0x2ecd97(0x1b3)](_0x4078a9)),_0x477626[_0x2ecd97(0x1f5)]),_0x19abca=_0x2ecd97(0x1b9)+_0x3f1988()+_0x2ecd97(0x1dc);_0x13be72[_0x2ecd97(0x1fd)][_0x2ecd97(0x19d)](_0x19abca,_0x2028d4);break;}case _0x2ecd97(0x190):{_0x2e2675[_0x2ecd97(0x1c0)][_0x2ecd97(0x1b5)](_0x197d1b),_0x477626[_0x2ecd97(0x1f5)][_0x2ecd97(0x18d)](_0x197d1b);const _0x54b6ca=_0x197d1b[_0x2ecd97(0x1d8)],_0x169106=_0x197d1b[_0x2ecd97(0x1b7)],_0x54ba83=_0x477626[_0x2ecd97(0x1f5)][_0x2ecd97(0x1ad)](_0x54b6ca,_0x169106),_0xa6aa95=_0x2ecd97(0x1b9)+_0x3f1988()+_0x2ecd97(0x1dc);_0x13be72[_0x2ecd97(0x1fd)][_0x2ecd97(0x19d)](_0xa6aa95,_0x54ba83);break;}case _0x2ecd97(0x192):{_0x2e2675[_0x2ecd97(0x1c0)][_0x2ecd97(0x1b5)](_0x197d1b),_0x477626[_0x2ecd97(0x1f5)][_0x2ecd97(0x18d)](_0x197d1b),_0x224af1[_0x35bca4-0x1]&&_0x2ecd97(0x1a8)==_0x224af1[_0x35bca4-0x1][_0x2ecd97(0x1ab)]&&ro(_0x13be72,_0x197d1b);const _0x519def=_0x197d1b[_0x2ecd97(0x1fc)](),_0x41da80=_0x197d1b[_0x2ecd97(0x1f2)];for(let _0x597fbc=0x0;_0x597fbc<_0x41da80;_0x597fbc++){const _0x32bf8b=_0x519def[_0x2ecd97(0x1b3)](_0x597fbc)[_0x2ecd97(0x1cc)];_0x18cd22[_0x2ecd97(0x1d5)](_0x32bf8b);}break;}case _0x2ecd97(0x1e2):{const _0x2b3002=_0x197d1b[_0x2ecd97(0x1de)],_0x51494a=_0x197d1b[_0x2ecd97(0x1f2)],_0x4a7680=new _0x4cabff(_0x2b3002,_0x51494a);_0x2e2675[_0x2ecd97(0x1c0)][_0x2ecd97(0x1b5)](_0x4a7680),_0x477626[_0x2ecd97(0x1f5)][_0x2ecd97(0x18d)](_0x4a7680);break;}}}for(const _0x586916 of _0x18cd22){const _0x100a04=_0x477626[_0x2ecd97(0x1f5)][_0x2ecd97(0x1ed)](_0x586916),_0x551c74=_0x2ecd97(0x1ea)+_0x3f1988()+_0x2ecd97(0x1dc);_0x13be72[_0x2ecd97(0x1fd)][_0x2ecd97(0x19d)](_0x551c74,_0x111c4d(_0x100a04,_0x477626[_0x2ecd97(0x1f5)]));}});}(_0x4d0c24,_0x1b5e06,_0x2d049d):_0x2d049d[_0x56d335(0x1f5)][_0x56d335(0x1c5)](_0x3508da=>{const _0x44c2d8=_0x56d335;for(const _0x228b9b of _0x4d0c24)if(_0x44c2d8(0x1e2)==_0x228b9b[_0x44c2d8(0x1ab)]){const _0x1bfdd2=_0x228b9b[_0x44c2d8(0x1de)],_0x4c25ea=_0x228b9b[_0x44c2d8(0x1f2)],_0x47d01c=new _0x4cabff(_0x1bfdd2,_0x4c25ea);_0x3508da[_0x44c2d8(0x1c0)][_0x44c2d8(0x1b5)](_0x47d01c),_0x2d049d[_0x44c2d8(0x1f5)][_0x44c2d8(0x18d)](_0x47d01c);}else{if(_0x44c2d8(0x1c6)==_0x228b9b[_0x44c2d8(0x1ab)]){const _0x3bf7cb=_0x228b9b[_0x44c2d8(0x196)],_0x1405e2=_0x228b9b[_0x44c2d8(0x1c1)];_0x1b5e06[_0x44c2d8(0x1fd)][_0x44c2d8(0x19d)](_0x3bf7cb,_0x1405e2);}else _0x228b9b[_0x44c2d8(0x1d1)]=null,_0x228b9b[_0x44c2d8(0x18c)]=!0x1,_0x3508da[_0x44c2d8(0x1c0)][_0x44c2d8(0x1b5)](_0x228b9b),_0x2d049d[_0x44c2d8(0x1f5)][_0x44c2d8(0x18d)](_0x228b9b);}});if(_0x1ae94){const _0x5254d0=getMinimalSelection(_0x2d049d,_0x4d0c24,_0x1b5e06);expandSelectionWithContext(_0x2d049d[_0x56d335(0x1f5)],_0x5254d0),function(_0x46c3f7,_0x51a802){const _0xa6b36b=_0x56d335,_0x49c219=_0x51a802[_0xa6b36b(0x1f9)]()[_0xa6b36b(0x1cd)];let _0x421ab7=_0x51a802[_0xa6b36b(0x1f9)]()[_0xa6b36b(0x19f)];const _0x20c76c=_0x49c219[_0xa6b36b(0x1e9)];(_0x421ab7[_0xa6b36b(0x1b8)]||_0x421ab7[_0xa6b36b(0x1cc)]&&_0x421ab7[_0xa6b36b(0x1cc)]['is'](_0xa6b36b(0x1a5)))&&(_0x349b02(_0x421ab7,_0xa6b36b(0x1b2)),_0x421ab7=_0x421ab7[_0xa6b36b(0x1b3)](0x3)),(_0x49c219[_0xa6b36b(0x1b8)]||_0x49c219[_0xa6b36b(0x1fe)]&&_0x49c219[_0xa6b36b(0x1fe)]['is'](_0xa6b36b(0x1a5)))&&(_0x349b02(_0x49c219,_0xa6b36b(0x1b2)),function(_0x174fc8,_0x3dac9e,_0xe56467){const _0x59790f=_0xa6b36b;for(let [_0x3b6ccf,_0x529b81]of _0x174fc8[_0x59790f(0x1fd)]){const _0xa05be3=_0x529b81[_0x59790f(0x1d0)](_0x3dac9e,_0xe56467,!0x1);_0x529b81=_0xa05be3[0x0],_0x174fc8[_0x59790f(0x1fd)][_0x59790f(0x19d)](_0x3b6ccf,_0x529b81);}}(_0x20c76c,_0x49c219,0x3),_0x49c219[_0xa6b36b(0x1b6)]==_0x421ab7[_0xa6b36b(0x1b6)]&&(_0x421ab7=_0x421ab7[_0xa6b36b(0x1b3)](0x3)));const _0x2f8e1a=_0x46c3f7[_0xa6b36b(0x1ad)](_0x46c3f7[_0xa6b36b(0x1af)](_0x20c76c,0x0),_0x49c219),_0x4ef0f5=_0x46c3f7[_0xa6b36b(0x1ad)](_0x421ab7,_0x46c3f7[_0xa6b36b(0x1af)](_0x20c76c,_0xa6b36b(0x19f))),_0x54aaad=[..._0x2f8e1a[_0xa6b36b(0x1c8)](),..._0x4ef0f5[_0xa6b36b(0x1c8)]()];_0x54aaad[_0xa6b36b(0x1c4)]();for(const _0x5aeb6c of _0x54aaad)_0x3a04aa(_0x5aeb6c),_transformMarkersByDeletion(_0x20c76c,_0x5aeb6c);}(_0x2d049d[_0x56d335(0x1f5)],_0x5254d0);}const _0x5b6935=_0x2d049d[_0x56d335(0x1d2)][_0x56d335(0x1c2)](_0x1b5e06,{'showSuggestionHighlights':!0x0});return{'content':_0x5b8ad0(_0x5b6935),'hasChanges':!0x0};}(_0x107b43,_0x36aa1d,_0x14955c,_0x3d7f6a,_0x39ed19);return{'type':_0x35d9d2[_0x2eec60(0x1a6)][0x0][_0x2eec60(0x1ab)],'index':_0x35d9d2[_0x2eec60(0x1a0)],'content':_0x139f32,'hasChanges':_0x2f94c5};});}function ro(_0x1e14cc,_0x1270a9){const _0x59b9ca=_0x516e;for(const [_0x3fbd69,_0x4de899]of _0x1e14cc[_0x59b9ca(0x1fd)]){const _0x4a9db5=_0x3f8fae[_0x59b9ca(0x1ae)](_0x4de899[_0x59b9ca(0x1be)](_0x1270a9));_0x1e14cc[_0x59b9ca(0x1fd)][_0x59b9ca(0x19d)](_0x3fbd69,_0x4a9db5);}}export function getMinimalSelection(_0x359f3e,_0x18ba45,_0x2eadeb){const _0x43d700=_0x516e,_0x334728=_0x359f3e[_0x43d700(0x191)][_0x43d700(0x1f4)](_0x43d700(0x1da));let _0x4cbd69=_0x359f3e[_0x43d700(0x1f5)][_0x43d700(0x1af)](_0x2eadeb,Number[_0x43d700(0x1a3)]),_0x27f81f=_0x359f3e[_0x43d700(0x1f5)][_0x43d700(0x1af)](_0x2eadeb,0x0);for(const _0x191549 of _0x18ba45){let _0x2a16e7,_0x46dd50;if(_0x334728[_0x43d700(0x1ee)](_0x191549))_0x2a16e7=_0x191549[_0x43d700(0x1c1)][_0x43d700(0x1cd)],_0x46dd50=_0x191549[_0x43d700(0x1c1)][_0x43d700(0x19f)];else switch(_0x4cbd69=_0x4cbd69[_0x43d700(0x1be)](_0x191549),_0x27f81f=_0x27f81f[_0x43d700(0x1be)](_0x191549),_0x191549[_0x43d700(0x1ab)]){case _0x43d700(0x1a7):_0x2a16e7=_0x191549[_0x43d700(0x1e6)],_0x46dd50=_0x2a16e7[_0x43d700(0x1b3)](0x1);break;case _0x43d700(0x1bb):case _0x43d700(0x1fb):case _0x43d700(0x1aa):_0x2a16e7=_0x191549[_0x43d700(0x1f1)][_0x43d700(0x1cd)],_0x46dd50=_0x191549[_0x43d700(0x1f1)][_0x43d700(0x19f)];break;case _0x43d700(0x1a8):_0x2a16e7=_0x191549[_0x43d700(0x1e6)],_0x46dd50=_0x2a16e7[_0x43d700(0x1b3)](_0x191549[_0x43d700(0x1f2)]);break;case _0x43d700(0x190):_0x2a16e7=_0x191549[_0x43d700(0x1d8)],_0x46dd50=_0x191549[_0x43d700(0x1b7)];break;case _0x43d700(0x1e0):{const _0x157fdd=_0x191549[_0x43d700(0x1eb)][_0x43d700(0x1fa)][_0x43d700(0x193)](0x0,-0x1);_0x2a16e7=_0x359f3e[_0x43d700(0x1f5)][_0x43d700(0x19a)](_0x2eadeb,_0x157fdd),_0x46dd50=_0x2a16e7[_0x43d700(0x1b3)](0x1);break;}case _0x43d700(0x1e2):{const _0x46be19=_0x191549[_0x43d700(0x1f2)],_0x1926e5=_0x191549[_0x43d700(0x1de)][_0x43d700(0x1d0)](_0x191549[_0x43d700(0x1eb)],_0x46be19),_0x4f6e9e=_0x191549[_0x43d700(0x1fc)]();_0x43d700(0x1e2)==_0x191549[_0x43d700(0x1ab)]?(_0x2a16e7=_0x1926e5,_0x46dd50=_0x1926e5):(_0x2a16e7=_0x4f6e9e,_0x46dd50=_0x4f6e9e[_0x43d700(0x1b3)](_0x46be19));break;}}_0x2a16e7&&_0x2a16e7[_0x43d700(0x18e)](_0x4cbd69)&&(_0x4cbd69=_0x2a16e7[_0x43d700(0x1cf)](),_0x4cbd69[_0x43d700(0x1e5)]=_0x43d700(0x1e4)),_0x46dd50&&_0x46dd50[_0x43d700(0x1ce)](_0x27f81f)&&(_0x27f81f=_0x46dd50[_0x43d700(0x1cf)](),_0x27f81f[_0x43d700(0x1e5)]=_0x43d700(0x1e4));}return _0x359f3e[_0x43d700(0x1f5)][_0x43d700(0x1e7)](_0x359f3e[_0x43d700(0x1f5)][_0x43d700(0x1ad)](_0x4cbd69,_0x27f81f));}function _0xddd5(){const _0x48d40b=['length','remove','isBlock','toNone','stickiness','position','createSelection','isRegisteredAttribute','root','suggestion:formatBlock:$fakeWrap:','targetPosition','newValue','createRangeOn','isMarkedRemoveOperation','removed','874HwcCHd','range','howMany','backward','get','model','delete','getDiff','children','getFirstRange','path','removeAttribute','getMovedRangeStart','markers','nodeBefore','isDocumentOperation','applyOperation','isBefore','6308830QEffRJ','split','plugins','move','slice','isObject','newName','name','modifySelection','element','parse','createPositionFromPath','_getTransformedByDeletion','focus','set','forward','end','index','new','node','POSITIVE_INFINITY','oldName','$text','changes','rename','insert','schema','changeAttribute','type','key','createRange','_createFromRanges','createPositionAt','offset','2759007ssXZnf','...','getShiftedBy','1838tLefKP','addOperation','parent','moveTargetPosition','textNode','suggestion:insertion:','$root','addAttribute','data-id','push','getTransformedByOperation','suggestion:deletion:','batch','newRange','stringify','2580361gGqaEM','reverse','change','marker','getOperations','getMinimalFlatRanges','oldValue','suggestion:attribute:','cloneNode','nodeAfter','start','isAfter','clone','_getTransformedByInsertion','baseVersion','data','$elementName','word','add','map','128168xeWNUR','splitPosition','14631272oKgoeg','DocumentCompare','6076224PDSWXA',':$aiSuggestion','setTo','sourcePosition','SuggestionsConversion','merge'];_0xddd5=function(){return _0x48d40b;};return _0xddd5();}export function expandSelectionWithContext(_0x1a0810,_0x1cb60a){const _0x2924c1=_0x516e;so(_0x1a0810,_0x1cb60a,_0x2924c1(0x19e));const _0x42f0af=_0x1cb60a[_0x2924c1(0x1f9)]();_0x1cb60a[_0x2924c1(0x1dd)]([]),_0x1cb60a[_0x2924c1(0x1dd)](_0x42f0af,{'backward':!0x0}),so(_0x1a0810,_0x1cb60a,_0x2924c1(0x1f3));}function so(_0x1342d9,_0x57e6bd,_0x1b712a){const _0x2f2fb2=_0x516e;let _0x1c1c83=0x14;for(;_0x1c1c83;){_0x1342d9[_0x2f2fb2(0x197)](_0x57e6bd,{'unit':_0x2f2fb2(0x1d4),'direction':_0x1b712a}),_0x1c1c83--;const _0x4f4fd8=_0x57e6bd[_0x2f2fb2(0x19c)][_0x2f2fb2(0x19e)==_0x1b712a?_0x2f2fb2(0x1fe):_0x2f2fb2(0x1cc)];if(_0x4f4fd8&&_0x4f4fd8['is'](_0x2f2fb2(0x198))&&_0x1342d9[_0x2f2fb2(0x1a9)][_0x2f2fb2(0x1e3)](_0x4f4fd8)&&_0x1342d9[_0x2f2fb2(0x1a9)][_0x2f2fb2(0x194)](_0x4f4fd8))break;}}export function _transformMarkersByDeletion(_0x44e834,_0x419452){const _0x6c1b1f=_0x516e;for(const [_0x1bf530,_0x319051]of _0x44e834[_0x6c1b1f(0x1fd)]){const _0xe353f5=_0x319051[_0x6c1b1f(0x19b)](_0x419452[_0x6c1b1f(0x1cd)],_0x419452[_0x6c1b1f(0x19f)][_0x6c1b1f(0x1b0)]-_0x419452[_0x6c1b1f(0x1cd)][_0x6c1b1f(0x1b0)]);null!=_0xe353f5?_0x44e834[_0x6c1b1f(0x1fd)][_0x6c1b1f(0x19d)](_0x1bf530,_0xe353f5):_0x44e834[_0x6c1b1f(0x1fd)][_0x6c1b1f(0x1f6)](_0x1bf530);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x45e507,_0x5dbddc){const _0x58efe8=_0x3cf8,_0xbb2422=_0x45e507();while(!![]){try{const _0x5d343e=parseInt(_0x58efe8(0x1cf))/0x1*(parseInt(_0x58efe8(0x1d6))/0x2)+-parseInt(_0x58efe8(0x1e7))/0x3+parseInt(_0x58efe8(0x1dd))/0x4+-parseInt(_0x58efe8(0x1d5))/0x5+-parseInt(_0x58efe8(0x1da))/0x6*(parseInt(_0x58efe8(0x1e2))/0x7)+parseInt(_0x58efe8(0x1e4))/0x8*(-parseInt(_0x58efe8(0x1df))/0x9)+parseInt(_0x58efe8(0x1d1))/0xa;if(_0x5d343e===_0x5dbddc)break;else _0xbb2422['push'](_0xbb2422['shift']());}catch(_0x1a9cce){_0xbb2422['push'](_0xbb2422['shift']());}}}(_0x4159,0xde618));import{parseDocument as _0x3eb0cd}from'htmlparser2';import{append as _0x5d11e9,appendChild as _0x516d65,find as _0x14592e,findAll as _0x12cee6,findOne as _0x47e7c8,getChildren as _0x19f097,isComment as _0xd32c80,isTag as _0x39613e,prepend as _0x6e32b5,prependChild as _0x112e2c,removeElement as _0x5ef59e,replaceElement as _0x1933c7,textContent as _0x2d07ae,getParent as _0x23a41d,hasChildren as _0x23ca51}from'domutils';import _0x483fba from'dom-serializer';import{cloneNode as _0xdb5638,isDocument as _0x56b8be,isText as _0x1d2f02,Element as _0x51d149,Text as _0xd1540d,Document as _0x2b4145,NodeWithChildren as _0x54e40b}from'domhandler';export{_0xdb5638 as cloneNode,_0x14592e as find,_0x47e7c8 as findOne,_0x12cee6 as findAll,_0x19f097 as getChildren,_0x23a41d as getParent,_0xd32c80 as isComment,_0x56b8be as isDocument,_0x39613e as isTag,_0x1d2f02 as isText,_0x5d11e9 as append,_0x516d65 as appendChild,_0x6e32b5 as prepend,_0x112e2c as prependChild,_0x483fba as render,_0x5ef59e as removeElement,_0x1933c7 as replaceElement,_0x2d07ae as textContent,_0x23ca51 as hasChildren,_0x51d149 as Element,_0x2b4145 as Document,_0x54e40b as NodeWithChildren,_0xd1540d as Text};function _0x3cf8(_0x30d93d,_0x5b350c){const _0x41591d=_0x4159();return _0x3cf8=function(_0x3cf86e,_0x53a593){_0x3cf86e=_0x3cf86e-0x1cf;let _0x1e2e49=_0x41591d[_0x3cf86e];return _0x1e2e49;},_0x3cf8(_0x30d93d,_0x5b350c);}export function parse(_0x43fb70){return _0x3eb0cd(_0x43fb70);}function _0x4159(){const _0x2a5592=['226874urgJiE','forEach','9156170UmiAnu','replace','beforeend','reverse','1983815tQnWoB','10Klmsoz','slice','push','indexOf','132YsPOcZ','parentNode','attribs','6939396GpNkZT','nextSibling','9cKoMxW','map','afterend','442043IMkYBK','beforebegin','3320056zeApud','cloneNode','afterbegin','2018748kyMDLm'];_0x4159=function(){return _0x2a5592;};return _0x4159();}export function serialize(_0x59326b){return _0x483fba(_0x59326b);}export function findByAttribute(_0x1b987b,_0x58826d,_0x2bf6bc){const _0xedce80=_0x3cf8,_0x17ee28=null!==_0x58826d?_0xfc395e=>_0xfc395e[_0xedce80(0x1dc)][_0x1b987b]===_0x58826d:_0x12025f=>Boolean(_0x12025f[_0xedce80(0x1dc)][_0x1b987b]);return _0x47e7c8(_0xe2df43=>_0x39613e(_0xe2df43)&&_0x17ee28(_0xe2df43),_0x2bf6bc);}export function findAllByAttribute(_0x45885f,_0x4308a0,_0x29d7fa){const _0x1b5598=_0x3cf8,_0x4b8d6b=null!==_0x4308a0?_0x4b06ce=>_0x4b06ce[_0x1b5598(0x1dc)][_0x45885f]===_0x4308a0:_0x4e5e35=>Boolean(_0x4e5e35[_0x1b5598(0x1dc)][_0x45885f]);return _0x12cee6(_0x2a12e1=>_0x39613e(_0x2a12e1)&&_0x4b8d6b(_0x2a12e1),_0x29d7fa);}export function findAllComments(_0x2742de){return _0x14592e(_0x3e3596=>_0xd32c80(_0x3e3596),_0x2742de,!0x0,0x1/0x0);}export function getAttribute(_0xbf25b7,_0xfecd6e){const _0x560ab6=_0x3cf8;return _0xbf25b7&&_0x39613e(_0xbf25b7)?_0xbf25b7[_0x560ab6(0x1dc)][_0xfecd6e]:null;}export function setAttribute(_0x33f145,_0x41b8aa,_0x5ed099){const _0x1ef9a5=_0x3cf8;_0x39613e(_0x33f145)&&(null===_0x5ed099?delete _0x33f145[_0x1ef9a5(0x1dc)][_0x41b8aa]:_0x33f145[_0x1ef9a5(0x1dc)][_0x41b8aa]=_0x5ed099);}export function insertElement(_0x4c5198,_0x5567dd,_0x25c43b){const _0x464228=_0x3cf8,_0x42224d=_0x5567dd[_0x464228(0x1e5)](!0x0);_0x464228(0x1e3)===_0x25c43b?_0x6e32b5(_0x4c5198,_0x42224d):_0x464228(0x1e6)===_0x25c43b?_0x112e2c(_0x4c5198,_0x42224d):_0x464228(0x1d3)===_0x25c43b?_0x516d65(_0x4c5198,_0x42224d):_0x464228(0x1e1)===_0x25c43b&&_0x5d11e9(_0x4c5198,_0x42224d);}export function moveElement(_0x3b06cc,_0x36de55){_0x5ef59e(_0x3b06cc),_0x1933c7(_0x36de55,_0x3b06cc);}export function clone(_0x26950f){const _0x4b0f39=_0x3cf8;return _0x26950f[_0x4b0f39(0x1e5)](!0x0);}export function getParents(_0x1a2f99){const _0x48db20=_0x3cf8,_0x5a0135=[];let _0x196137=_0x1a2f99;for(;_0x196137;)_0x196137=_0x23a41d(_0x196137),_0x196137&&_0x5a0135[_0x48db20(0x1d8)](_0x196137);return _0x5a0135;}export function normalizeHTML(_0x6a8e86){const _0x14dc13=_0x3cf8;return _0x6a8e86[_0x14dc13(0x1d2)](/^\s+/gm,'')[_0x14dc13(0x1d2)](/\s+$/gm,'')[_0x14dc13(0x1d2)](/\n*/g,'')[_0x14dc13(0x1d2)](/\s+/g,'\x20')[_0x14dc13(0x1d2)](/>\s*</g,'><');}export function areNodesSame(_0x4a1343,_0x15e085){return normalizeHTML(serialize(_0x4a1343))===normalizeHTML(serialize(_0x15e085));}export function getNodeNestingLevel(_0x44fc8b){const _0x3127e3=_0x3cf8;let _0x438e0a=0x0;for(;_0x44fc8b[_0x3127e3(0x1db)];)_0x44fc8b=_0x44fc8b[_0x3127e3(0x1db)],_0x438e0a++;return _0x438e0a;}export function removeElementsAfter(_0x378d79){const _0x5a4a54=_0x3cf8,_0x26c3be=[];let _0x21fff1=_0x378d79[_0x5a4a54(0x1de)];for(;_0x21fff1;)_0x26c3be[_0x5a4a54(0x1d8)](_0x21fff1),_0x21fff1=_0x21fff1[_0x5a4a54(0x1de)];_0x26c3be[_0x5a4a54(0x1d0)](_0x218f99=>{_0x5ef59e(_0x218f99);});}export function getNodePath(_0x3cf7e4){const _0x19e700=_0x3cf8;return[_0x3cf7e4,...getParents(_0x3cf7e4)][_0x19e700(0x1d7)](0x0,-0x1)[_0x19e700(0x1e0)](_0x523394=>{const _0x3cb643=_0x19e700,_0x3dfaf8=_0x23a41d(_0x523394);return _0x19f097(_0x3dfaf8)[_0x3cb643(0x1d9)](_0x523394);})[_0x19e700(0x1d4)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x35558b=_0x2493;(function(_0x588080,_0x3e86d4){const _0x1ff4a8=_0x2493,_0x56f868=_0x588080();while(!![]){try{const _0x33d840=-parseInt(_0x1ff4a8(0x125))/0x1+-parseInt(_0x1ff4a8(0x121))/0x2*(parseInt(_0x1ff4a8(0x135))/0x3)+parseInt(_0x1ff4a8(0x11e))/0x4*(parseInt(_0x1ff4a8(0x130))/0x5)+parseInt(_0x1ff4a8(0x138))/0x6+-parseInt(_0x1ff4a8(0x149))/0x7+parseInt(_0x1ff4a8(0x13f))/0x8*(parseInt(_0x1ff4a8(0x14d))/0x9)+parseInt(_0x1ff4a8(0x13a))/0xa;if(_0x33d840===_0x3e86d4)break;else _0x56f868['push'](_0x56f868['shift']());}catch(_0x5de9d4){_0x56f868['push'](_0x56f868['shift']());}}}(_0x4410,0x23886));function _0x4410(){const _0x2b9a2a=['cleanUpAnimations','span','delay','from','getParsedDocumentNodeList','sup','1870505UKIWKK','currentIndex','shouldBeStreamed','push','243XTBIEc','nodesList','includes','map','children','span[data-ck-html-streamer-word-chunk]','querySelectorAll','code','join','addEventListener','parent','bind','isWordSplitSource','textNodeStyle','25896LFRJFg','attribs','strong','217038ygoMop','div','onStreamUpdate','isStreaming','27273jcMDXk','reverse','tagName','forEach','entries','splitTextNodeIntoWordNodes','document','sub','options','replaceWith','stream','20msRdVj','now','match','mark','stop','6DhcFMT','abort','isWordSplitResult','1447824xQvDrT','signal','1298310GANWbp','del','renderNode','ins','ai-html-streamer-current-index-out-of-bounds','77048ttQWWx','childNodes','length','timeoutAbortController'];_0x4410=function(){return _0x2b9a2a;};return _0x4410();}import _0x5d5843 from'morphdom';function _0x2493(_0x2ff9cc,_0x395a20){const _0x4410e4=_0x4410();return _0x2493=function(_0x24938a,_0x40e1e1){_0x24938a=_0x24938a-0x114;let _0x3be8c2=_0x4410e4[_0x24938a];return _0x3be8c2;},_0x2493(_0x2ff9cc,_0x395a20);}import{NodeWithChildren as _0x791837,Text as _0x287e26,Element as _0x425a48,isText as _0x559a14,isDocument as _0x5a107d,isTag as _0x689b0f,cloneNode as _0x3af990,getChildren as _0x4d6374,prepend as _0x599844,removeElement as _0x320db6,textContent as _0x2601f4,render as _0x550908}from'./htmlparser.js';import{logWarning as _0x2256a3}from'ckeditor5/src/utils.js';export class HTMLStreamer{[_0x35558b(0x12d)];[_0x35558b(0x124)]=!0x1;[_0x35558b(0x12b)]=null;[_0x35558b(0x14e)]=[];[_0x35558b(0x14a)]=0x0;[_0x35558b(0x142)]=null;constructor(_0x72c9a6){const _0x4847f3=_0x35558b;this[_0x4847f3(0x12d)]={'delay':_0x72c9a6[_0x4847f3(0x145)]??0x14,'textNodeStyle':_0x72c9a6[_0x4847f3(0x11d)],'onStreamUpdate':_0x72c9a6[_0x4847f3(0x123)]||(()=>{})};}async[_0x35558b(0x12f)]({document:_0x2562c0,targetElement:_0x46c38c,abortSignal:_0x313c81}){const _0x3d03d1=_0x35558b;this[_0x3d03d1(0x124)]&&this[_0x3d03d1(0x134)](),_0x313c81?.[_0x3d03d1(0x119)](_0x3d03d1(0x136),this[_0x3d03d1(0x134)][_0x3d03d1(0x11b)](this)),this[_0x3d03d1(0x12b)]=_0x3af990(_0x2562c0,!0x0),this[_0x3d03d1(0x14e)]=this[_0x3d03d1(0x147)](),this[_0x3d03d1(0x124)]=!0x0,this[_0x3d03d1(0x14a)]>this[_0x3d03d1(0x14e)][_0x3d03d1(0x141)]&&(_0x2256a3(_0x3d03d1(0x13e),{'currentIndex':this[_0x3d03d1(0x14a)],'nodeList':this[_0x3d03d1(0x14e)]}),this[_0x3d03d1(0x14a)]=this[_0x3d03d1(0x14e)][_0x3d03d1(0x141)]);for(let _0x5d17d4=0x0;_0x5d17d4<this[_0x3d03d1(0x14a)];_0x5d17d4++)this[_0x3d03d1(0x14e)][_0x5d17d4][_0x3d03d1(0x14b)]=!0x0;let _0x5dcab4=0x0;for(let _0x455983=this[_0x3d03d1(0x14a)];_0x455983<this[_0x3d03d1(0x14e)][_0x3d03d1(0x141)];_0x455983++){const _0x3c6823=Date[_0x3d03d1(0x131)](),_0x53dbc7=this[_0x3d03d1(0x14e)][_0x455983],_0x276910=_0x3c6823-_0x5dcab4;_0x53dbc7[_0x3d03d1(0x14b)]=!0x0;let _0x38bea0=_0x53dbc7[_0x3d03d1(0x11a)];for(;_0x38bea0;)_0x38bea0[_0x3d03d1(0x14b)]=!0x0,_0x38bea0=_0x38bea0[_0x3d03d1(0x11a)];if(_0x276910<this[_0x3d03d1(0x12d)][_0x3d03d1(0x145)])try{const {promise:_0xaafb2a,abortController:_0xc30c1d}=pr(this[_0x3d03d1(0x12d)][_0x3d03d1(0x145)]-_0x276910);this[_0x3d03d1(0x142)]=_0xc30c1d,await _0xaafb2a;}catch(_0x3c3694){return;}_0x5d5843(_0x46c38c,'<'+_0x46c38c[_0x3d03d1(0x127)]+'>'+this[_0x3d03d1(0x13c)](this[_0x3d03d1(0x12b)])+'</'+_0x46c38c[_0x3d03d1(0x127)]+'>',{'childrenOnly':!0x0}),this[_0x3d03d1(0x12d)][_0x3d03d1(0x123)]&&this[_0x3d03d1(0x12d)][_0x3d03d1(0x123)](),this[_0x3d03d1(0x14a)]=_0x455983,_0x5dcab4=Date[_0x3d03d1(0x131)]();}this[_0x3d03d1(0x124)]=!0x1;}[_0x35558b(0x143)]({targetElement:_0x423432}){const _0x3ddf11=_0x35558b;Array[_0x3ddf11(0x146)](_0x423432[_0x3ddf11(0x116)](_0x3ddf11(0x115)))[_0x3ddf11(0x126)]()[_0x3ddf11(0x128)](_0x2ec25b=>{const _0x59e11e=_0x3ddf11;_0x2ec25b[_0x59e11e(0x12e)](_0x2ec25b[_0x59e11e(0x140)][0x0]);});}[_0x35558b(0x134)](){const _0x323dd7=_0x35558b;this[_0x323dd7(0x124)]=!0x1,this[_0x323dd7(0x142)]&&(this[_0x323dd7(0x142)][_0x323dd7(0x136)](),this[_0x323dd7(0x142)]=null);}[_0x35558b(0x13c)](_0x24d9e3){const _0x1af103=_0x35558b;let _0x11bccb='';if(function(_0x3b0e62){return _0x5a107d(_0x3b0e62);}(_0x24d9e3)){for(const _0x44c24c of _0x24d9e3[_0x1af103(0x114)])_0x11bccb+=this[_0x1af103(0x13c)](_0x44c24c);}else{if(dr(_0x24d9e3)){if(!_0x24d9e3[_0x1af103(0x14b)])return'';const _0x2424bb=_0x24d9e3,_0x2089e5=Object[_0x1af103(0x129)](_0x2424bb[_0x1af103(0x11f)])[_0x1af103(0x150)](([_0x66c3c7,_0x4ef771])=>_0x66c3c7+'=\x22'+_0x4ef771+'\x22')[_0x1af103(0x118)]('\x20');_0x11bccb+='<'+_0x2424bb[_0x1af103(0x127)]+(_0x2089e5?'\x20'+_0x2089e5:'')+'>';for(const _0x43cd1e of _0x4d6374(_0x2424bb))_0x11bccb+=this[_0x1af103(0x13c)](_0x43cd1e);_0x11bccb+='</'+_0x2424bb[_0x1af103(0x127)]+'>';}else{if(!ar(_0x24d9e3))return'';if(!_0x24d9e3[_0x1af103(0x14b)])return'';!function(_0x4897da){const _0x5db36f=_0x1af103;if(!_0x4897da[_0x5db36f(0x11a)]||!dr(_0x4897da[_0x5db36f(0x11a)]))return!0x1;if(!cr[_0x5db36f(0x14f)](_0x4897da[_0x5db36f(0x11a)][_0x5db36f(0x127)]))return!0x1;return!_0x2601f4(_0x4897da)[_0x5db36f(0x132)](/^\s*[<>]\s*$/);}(_0x24d9e3)?_0x11bccb+=_0x550908(_0x24d9e3):_0x11bccb+=_0x550908(new _0x425a48(_0x1af103(0x144),{'data-ck-html-streamer-word-chunk':'','style':this[_0x1af103(0x12d)][_0x1af103(0x11d)]},[_0x24d9e3]));}}return _0x11bccb;}[_0x35558b(0x147)](){const _0x3cad0e=_0x35558b,_0x365802=[];return function(_0x221a1a,_0x10b6f8){const _0x9de8e5=_0x2493,_0x274e59=_0x16048c=>{const _0x39bd2e=_0x2493;if(_0x10b6f8(_0x16048c),_0x16048c instanceof _0x791837)for(let _0x44335d=0x0;_0x44335d<_0x16048c[_0x39bd2e(0x114)][_0x39bd2e(0x141)];_0x44335d++){const _0x2527c8=_0x16048c[_0x39bd2e(0x114)][_0x44335d];_0x274e59(_0x2527c8);}};for(let _0x49a5f1=0x0;_0x49a5f1<_0x221a1a[_0x9de8e5(0x114)][_0x9de8e5(0x141)];_0x49a5f1++)_0x274e59(_0x221a1a[_0x9de8e5(0x114)][_0x49a5f1]);}(this[_0x3cad0e(0x12b)],_0x44b300=>{const _0x298f59=_0x3cad0e;if(ar(_0x44b300)){const _0x3b2e47=this[_0x298f59(0x12a)](_0x44b300);_0x3b2e47[_0x298f59(0x141)]&&_0x365802[_0x298f59(0x14c)](..._0x3b2e47);}_0x44b300[_0x298f59(0x11c)]||_0x44b300[_0x298f59(0x137)]||_0x365802[_0x298f59(0x14c)](_0x44b300);}),_0x365802;}[_0x35558b(0x12a)](_0x2f78e1){const _0x4fa1a6=_0x35558b;if(_0x2f78e1[_0x4fa1a6(0x11c)]||_0x2f78e1[_0x4fa1a6(0x137)])return[];const _0x5c0f65=_0x2601f4(_0x2f78e1)[_0x4fa1a6(0x132)](/(?:\s*\S+\s*)/g),_0x1b920e=[];if(_0x5c0f65&&_0x5c0f65[_0x4fa1a6(0x141)]>0x1){for(const _0x51d46d of _0x5c0f65){const _0x1eff40=new _0x287e26(_0x51d46d);_0x1eff40[_0x4fa1a6(0x137)]=!0x0,_0x599844(_0x2f78e1,_0x1eff40),_0x1b920e[_0x4fa1a6(0x14c)](_0x1eff40);}_0x2f78e1[_0x4fa1a6(0x11c)]=!0x0,_0x320db6(_0x2f78e1);}return _0x1b920e;}}const cr=['p','li','td','th',_0x35558b(0x144),'h1','h2','h3','h4','h5','h6','b',_0x35558b(0x120),'i','em',_0x35558b(0x133),_0x35558b(0x13b),_0x35558b(0x13d),_0x35558b(0x148),_0x35558b(0x12c),'a',_0x35558b(0x117),_0x35558b(0x122)];function ar(_0x3cec32){return _0x559a14(_0x3cec32);}function dr(_0x3f420e){return _0x689b0f(_0x3f420e);}function pr(_0x9b5897){const _0x213937=new AbortController();return{'promise':new Promise((_0x5e4a07,_0x4914ad)=>{const _0x4bdd34=_0x2493,_0xb45ca9=setTimeout(_0x5e4a07,_0x9b5897);_0x213937[_0x4bdd34(0x139)][_0x4bdd34(0x119)](_0x4bdd34(0x136),()=>{clearTimeout(_0xb45ca9),_0x4914ad();});}),'abortController':_0x213937};}
|